@gemboss/gem-framework 0.5.1 → 0.5.2
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.
- package/dist/SOURCE.json +2 -2
- package/dist/gem-runtime.js +1 -1
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/dist/SOURCE.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": "@gemboss/gem-framework",
|
|
3
|
-
"version": "0.5.
|
|
4
|
-
"gemtheme_sha": "
|
|
3
|
+
"version": "0.5.2",
|
|
4
|
+
"gemtheme_sha": "c390250c5bfc1ac92a4b5a8e418ca403653e4b58",
|
|
5
5
|
"gemtheme_dirty": false,
|
|
6
6
|
"framework_version": "0.1.0"
|
|
7
7
|
}
|
package/dist/gem-runtime.js
CHANGED
|
@@ -547,7 +547,7 @@
|
|
|
547
547
|
api.emit('gem:quick-view:ready', { source: 'gem-runtime', count: bound, hasSurface: Boolean(surface) });
|
|
548
548
|
});
|
|
549
549
|
registerPlugin('promo-popup', ({ api }) => {
|
|
550
|
-
const popups = document.querySelectorAll('[data-gem-promo-popup]
|
|
550
|
+
const popups = document.querySelectorAll('[data-gem-promo-popup]');
|
|
551
551
|
let bound = 0;
|
|
552
552
|
const storagePrefix = 'gem:promo-popup-dismissed:';
|
|
553
553
|
const now = () => Date.now ? Date.now() : new Date().getTime();
|
package/dist/index.js
CHANGED
|
@@ -4388,7 +4388,9 @@ var quickViewPluginRegistrationLines = [
|
|
|
4388
4388
|
];
|
|
4389
4389
|
var promoPopupPluginRegistrationLines = [
|
|
4390
4390
|
" registerPlugin('promo-popup', ({ api }) => {",
|
|
4391
|
-
|
|
4391
|
+
// Only the explicit hook opts in. Every promo-popup section carries the archetype class .gem-promo-popup, and
|
|
4392
|
+
// binding by class took over variants that run their own behavior.js (GemFactory gap #16, 03/10/2026).
|
|
4393
|
+
" const popups = document.querySelectorAll('[data-gem-promo-popup]');",
|
|
4392
4394
|
" let bound = 0;",
|
|
4393
4395
|
" const storagePrefix = 'gem:promo-popup-dismissed:';",
|
|
4394
4396
|
" const now = () => Date.now ? Date.now() : new Date().getTime();",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gemboss/gem-framework",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "gem-framework của GemTheme (CSS, runtime, token, bộ kiểm) cộng đúng bộ kiểm section gemtheme dùng khi duyệt. Build từ gemtheme, không sửa ở đây.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|