@liquidcommerce/elements-sdk 2.4.2 → 2.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { IElementsActionsEventsMap, IElementsFormsEventsMap, SpecificActionEvent, SpecificFormEvent } from '@/core/pubsub/interfaces';
|
|
2
2
|
export declare class PubSubService {
|
|
3
3
|
private readonly logger;
|
|
4
|
+
private clientReadyEvent;
|
|
4
5
|
constructor();
|
|
5
6
|
private readonly eventPrefix;
|
|
6
7
|
static getInstance(): PubSubService;
|
|
@@ -8,5 +9,5 @@ export declare class PubSubService {
|
|
|
8
9
|
publishForm<K extends SpecificFormEvent>(eventType: K, data: IElementsFormsEventsMap[K]): void;
|
|
9
10
|
private publishSpecific;
|
|
10
11
|
private dispatchNativeEvents;
|
|
11
|
-
private
|
|
12
|
+
private setupClientReadyBuffering;
|
|
12
13
|
}
|
package/docs/CONFIGURATION.md
CHANGED
|
@@ -315,8 +315,9 @@ data-debug-mode="console"
|
|
|
315
315
|
Container ID, CSS selector, or position-prefixed selector for simple cart button (no badge).
|
|
316
316
|
|
|
317
317
|
```html
|
|
318
|
-
<!-- Simple ID -->
|
|
319
|
-
data-cart-button="header-cart"
|
|
318
|
+
<!-- Simple ID (with or without # prefix) -->
|
|
319
|
+
data-cart-button="header-cart" <!-- Works with or without # -->
|
|
320
|
+
data-cart-button="#header-cart" <!-- Also works with # prefix -->
|
|
320
321
|
|
|
321
322
|
<!-- CSS Selector (from browser inspect tool) -->
|
|
322
323
|
data-cart-button=".header .nav-links"
|
|
@@ -325,6 +326,7 @@ data-cart-button="#main-navigation"
|
|
|
325
326
|
<!-- Position-prefixed selectors -->
|
|
326
327
|
data-cart-button="above:.header .logo" <!-- Place above the target -->
|
|
327
328
|
data-cart-button="below:#main-navigation" <!-- Place below the target -->
|
|
329
|
+
data-cart-button="below:main-navigation" <!-- Also works without # prefix -->
|
|
328
330
|
data-cart-button="replace:.old-cart" <!-- Replace the target -->
|
|
329
331
|
data-cart-button="inside:.header .nav" <!-- Place inside the target (default) -->
|
|
330
332
|
```
|
|
@@ -336,8 +338,9 @@ data-cart-button="inside:.header .nav" <!-- Place inside the target (default
|
|
|
336
338
|
Container ID, CSS selector, or position-prefixed selector for cart button with item count badge.
|
|
337
339
|
|
|
338
340
|
```html
|
|
339
|
-
<!-- Simple ID -->
|
|
340
|
-
data-cart-badge-button="header-cart"
|
|
341
|
+
<!-- Simple ID (with or without # prefix) -->
|
|
342
|
+
data-cart-badge-button="header-cart" <!-- Works with or without # -->
|
|
343
|
+
data-cart-badge-button="#header-cart" <!-- Also works with # prefix -->
|
|
341
344
|
|
|
342
345
|
<!-- CSS Selector (from browser inspect tool) -->
|
|
343
346
|
data-cart-badge-button=".header .nav-links"
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "LiquidCommerce Elements SDK",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"author": "LiquidCommerce Team",
|
|
6
|
-
"version": "2.4.
|
|
6
|
+
"version": "2.4.3",
|
|
7
7
|
"homepage": "https://docs.liquidcommerce.co/elements-sdk",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"@commitlint/cli": "^20.1.0",
|
|
76
76
|
"@commitlint/config-conventional": "^20.0.0",
|
|
77
77
|
"@rollup/plugin-alias": "^5.1.1",
|
|
78
|
-
"@rollup/plugin-commonjs": "^28.0.
|
|
78
|
+
"@rollup/plugin-commonjs": "^28.0.9",
|
|
79
79
|
"@rollup/plugin-json": "^6.1.0",
|
|
80
80
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
81
81
|
"@rollup/plugin-replace": "^6.0.2",
|