Yireo_LokiComponents

This is the main core package for Loki Components, as is being used by the Loki Checkout suite.

Current status: Stable

Installation

Install this package via composer (assuming you have setup the composer.yireo.com repository correctly already):

composer require yireo/magento2-loki-components

Next, enable this module:

bin/magento module:enable Yireo_LokiComponents

Support

For getting support, create an Issue under the following project URL:

https://github.com/yireo/Yireo_LokiComponents

Todo

Module
Module Setup
Intended functionality

Versions

dev-main 27 February 2025
0.0.13 25 February 2025
0.0.12 24 February 2025
0.0.11 24 February 2025
0.0.10 24 February 2025
0.0.9 24 February 2025
0.0.8 24 February 2025
0.0.7 24 February 2025
0.0.6 23 February 2025
0.0.5 22 February 2025
0.0.4 20 February 2025
0.0.3 18 February 2025
0.0.2 13 February 2025
0.0.1 17 January 2025

Composer details

Magento module name Yireo_LokiComponents
Composer name yireo/magento2-loki-components
Composer version 0.0.13
Default branch main
Requirements magento/framework: ^103.0
magento/module-customer: ^103.0
yireo/magento2-csp-utilities: ^1.0
php: ^8.3
ext-json: *
ext-pcre: *
ext-dom: *

Changelog

[0.0.13] - 25 February 2025

Fixed

  • Standardize JS event names
  • Rename yireo-loki-checkout.component-change to loki-components.component.update
  • Add generic LokiComponentsLogger
  • StepForwardButton not activated after component updates ($nextTick is now used)
  • Hide entire global messages div if empty

[0.0.12] - 24 February 2025

Fixed

  • Remove obsolete NoBlockFoundException

[0.0.11] - 24 February 2025

Fixed

  • Setting for disabling MX lookup for email validator
  • Destroy components before updating their HTML

[0.0.10] - 24 February 2025

Fixed

  • Allow multiple destroy actions

[0.0.9] - 24 February 2025

Fixed

  • Remove old hasChanges method
  • Do not display NoComponentFoundException on frontend
  • Improve autofill mechanism

[0.0.8] - 24 February 2025

Fixed

  • Default target definitions were dropped when cache was refreshed from non-frontend
  • Add little hint about microseconds
  • Listen to autofill changes
  • Add support default value

[0.0.7] - 24 February 2025

Fixed

  • Implement focus listener in a better way

[0.0.6] - 23 February 2025

Fixed

  • Allow stack trace to be shown as global message while debugging
  • Position global messages fixed in top
  • Add new setting for timeout of global messages
  • Only add trace to exceptions if debugging is enabled
  • Do not switch back to originalValue, preventing AJAX loop
  • Only validate AJAX calls by default

[0.0.5] - 22 February 2025

Fixed

  • Fix issue with HTML attributes for nested components
  • Prevent duplicate HTML attributes

[0.0.4] - 20 February 2025

Fixed

  • Re-add getFilters and getValidators differently
  • Only validate AJAX calls setting
  • Rewrite updating of HTML and component props
  • Remove duplicate newlines for easier debugging
  • Add failsafe checks

Added

  • Add debug config option

[0.0.3] - 18 February 2025

Fixed

  • Friendlier message for unknown email domain in validator

Refactor

  • Refactor LocalMessageRegistry methods
  • Remove obsolete ViewModel methods getFilters and getValidators

[0.0.2] - 13 February 2025

Fixed

  • Fix rendering of global messages
  • Fix issue in refreshing other targets
  • Fix autofocus after HTML updates
  • Redirect to cart when AJAX fails with empty quote
  • Fix preg_match issue
  • Allow for default core messages to be used as Loki GlobalMessages
  • Fix message location for Luma
  • Improve logic of AJAX handling
  • Pass original request through to layout

Added

  • Move CssClass to LokiComponents

Refactor

  • Remove dependency between validators and component object

[0.0.1] - 18 January 2025

  • Initial release

Last modified: January 26, 2025