All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Move TransferableAncestorBlockProperties from components to base
- Allow properties of ancestor block to populate child block
- Fix infinite loop and page freeze caused by async Alpine.effect
- Messages with timeout 0 were removed right away, instead of kept forever
- Make call to LocalStorage.get async
- Better way of rendering containers via ChildRenderer::all()
- Remove trailing slash from
customer/section/loadURL
- Make
Alpine.store('LocalStorage').get()andrefresh()asynchronous
- Allow PHP Config to read from current store level
- Allow filtering of child blocks by prefix
- Add ancestor block to children
- Prevent empty cookie from causing JS error
- Remove debugging console log
- Add new GitHub Action workflows
- Copy generic CI/CD files
- Copy generic CI/CD files
- Disable messages if
MageOS_AlpineMessagesis enabled
- Upgrade tests
- Cleanup duplicates in CHANGELOG
- Move dependency ComponentViewModelInterface from
Loki_BasetoLoki_Components
- Rename
LOKI_BASE_URLtoBASE_URL
- Add compatibility with
MageOS_AlpineLoader - Replace
$block->getChildHtml()with$childRenderer->all()including better sorting - Automatically sync localStorage.setItem to Alpine store
- Make sure component scripts are loaded after all other scripts
- Rename LokiMessageStore to Message
- Only load MageCookies if
MageOS_AlpineLocalStorageis not enabled - Fix wrong template variable
- Rename LokiLocalStorage to LocalStorage
- Check for duplicate
MageOS_AlpineLocalStorage - Move layout that is duplicate to Mage-OS Alpine to separate handles
- Remove temporarily Tailwind LESS attempt
- Change z-index for messages from 100 to 5
- Update composer keywords
- Do not escape
$css()withescapeHtmlAttr()butescapeHtml()
- Adjust messages under Luma from z-index:300 to 100 to prevent clash with minicart
- Remove cookies by stripping all non-relevant cookie parts
- Change messages to position:sticky in Luma
- Allow for JS translations of dates
- Use new LOKI_THEME_URL variable in JS
- Remove block cache lifetime
- When removing cookies, ignore the domain-value
- Add Loki Component exception as complex message
- Move messages timeout configuration from
Loki_ComponentstoLoki_Base - Add custom Block class that adds layout-name to cache key info
- Move frontend assets to base to allow for admin features
- Add custom event "loki:init:localstorage-store"
- Remove redundant CSS classes from icon containers
- Reset message timeout to 5000
- Rename
loki.scriptfrom container to block to allow caching - Skip handling messages via cookies and localStorage under Hyva
- Rewrite transfer of global messages from components to be a lot simpler
- Rename loki-directive to loki.script.directive
- Rename loki-store to loki.script.store
- Rename loki-components to loki.script.component
- Rename loki-component-types to loki.script.component-type
- Rename loki-component-partials to loki.script.component-partial
- Cleanup duplicate containers, move to
Loki_Base
- Re-add styling of buttons
- Really move all LESS away from CSS folder
- Move experimental LESS sources away from compilation
- Remove console.log message
- Remove dep with
Loki_Components
- Disable Tailwind for LESS for now (experimental)
- Add LESS sources
- Prevent weird mage-messages cookie value from breaking things
- New ViewModel
- Properly implement section invalidation from Luma customerData JS
- Always use get('messages') when retrieving message section from store
- Remove expired sections in localStorage
- Remove messages with ESC
- Add box shadow to messages
- Sef long lifetime on
user_allowed_save_cookiecookie - Fix CSP compliance of message timeout
- Better notice colors under Luma
- Better API for cookies and messaging
- Fix mobile menu
- Correct padding of message close button under Luma
- Set timeout to 10000
- Move LokiComponents global messages to regular messages template
- Add to both Hyva and Luma
- Add SVG and click button to remove message
- Add close X
- Autoremove messages or double-click to remove
- Copy generic CI/CD files
- Adding all files to git via Yireo Command
- Initial release