@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.
@@ -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
- const hasSettings = block?.labels?.length || block?.anchor;
372
- setVisible(event.label ? !hasSettings || Boolean(block?.labels?.includes(event.label)) : true);
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
- globalThis.history?.replaceState(globalThis.history?.state, '', `#${normalizeAnchor(block?.anchor)}`);
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.11";
4544
+ const packageVersion = "0.8.12";
4541
4545
 
4542
4546
  exports.Blocks = Blocks;
4543
4547
  exports.ContentPage = ContentPage;