@redneckz/wildless-cms-uni-blocks 0.8.11 → 0.8.12
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/bundle/bundle.umd.js +8 -4
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/services/BlockRouter/BlockRouter.js +4 -1
- package/dist/services/BlockRouter/BlockRouter.js.map +1 -1
- package/dist/ui-kit/BlockWrapper.js +3 -2
- package/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/lib/services/BlockRouter/BlockRouter.js +4 -1
- package/lib/services/BlockRouter/BlockRouter.js.map +1 -1
- package/lib/ui-kit/BlockWrapper.js +3 -2
- package/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +8 -4
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/services/BlockRouter/BlockRouter.js +4 -1
- package/mobile/dist/services/BlockRouter/BlockRouter.js.map +1 -1
- package/mobile/dist/ui-kit/BlockWrapper.js +3 -2
- package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/lib/services/BlockRouter/BlockRouter.js +4 -1
- package/mobile/lib/services/BlockRouter/BlockRouter.js.map +1 -1
- package/mobile/lib/ui-kit/BlockWrapper.js +3 -2
- package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/src/services/BlockRouter/BlockRouter.ts +5 -5
- package/mobile/src/ui-kit/BlockWrapper.tsx +3 -2
- package/package.json +1 -1
- package/src/services/BlockRouter/BlockRouter.ts +5 -5
- package/src/ui-kit/BlockWrapper.tsx +3 -2
package/bundle/bundle.umd.js
CHANGED
|
@@ -368,8 +368,9 @@
|
|
|
368
368
|
const [isVisible, setVisible] = useState(true);
|
|
369
369
|
useEffect(() => defaultEventBus.subscribe('tab', (event) => {
|
|
370
370
|
if (event.type === 'group') {
|
|
371
|
-
|
|
372
|
-
|
|
371
|
+
setVisible(!block?.labels?.length ||
|
|
372
|
+
!event.label ||
|
|
373
|
+
Boolean(block?.labels?.includes(event.label)));
|
|
373
374
|
}
|
|
374
375
|
else {
|
|
375
376
|
setVisible(true);
|
|
@@ -4435,7 +4436,10 @@
|
|
|
4435
4436
|
|
|
4436
4437
|
const normalizeAnchor = (anchor) => anchor?.replace('#', '') || '';
|
|
4437
4438
|
function trackBlock(block) {
|
|
4438
|
-
|
|
4439
|
+
const hash = `#${normalizeAnchor(block?.anchor)}`;
|
|
4440
|
+
if (globalThis.location?.hash !== hash) {
|
|
4441
|
+
globalThis.history?.replaceState(globalThis.history?.state, '', hash);
|
|
4442
|
+
}
|
|
4439
4443
|
}
|
|
4440
4444
|
|
|
4441
4445
|
const SPECIAL_BLOCK_TYPES = ['Header', 'Footer'];
|
|
@@ -4537,7 +4541,7 @@
|
|
|
4537
4541
|
return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-lg sticky bottom-0 pointer-events-auto" }) }));
|
|
4538
4542
|
}
|
|
4539
4543
|
|
|
4540
|
-
const packageVersion = "0.8.
|
|
4544
|
+
const packageVersion = "0.8.12";
|
|
4541
4545
|
|
|
4542
4546
|
exports.Blocks = Blocks;
|
|
4543
4547
|
exports.ContentPage = ContentPage;
|