@redneckz/wildless-cms-uni-blocks 0.14.87 → 0.14.88
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/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +10 -4
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Tabs/TabActivationEvent.d.ts +1 -0
- package/bundle/components/Tabs/TabsContent.d.ts +2 -0
- package/bundle/model/ContentPageDef.d.ts +1 -0
- package/dist/components/Tabs/TabActivationEvent.d.ts +1 -0
- package/dist/components/Tabs/Tabs.js +6 -2
- package/dist/components/Tabs/Tabs.js.map +1 -1
- package/dist/components/Tabs/TabsContent.d.ts +2 -0
- package/dist/model/ContentPageDef.d.ts +1 -0
- package/dist/ui-kit/BlockWrapper.js +3 -1
- package/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/lib/components/Tabs/TabActivationEvent.d.ts +1 -0
- package/lib/components/Tabs/Tabs.js +6 -2
- package/lib/components/Tabs/Tabs.js.map +1 -1
- package/lib/components/Tabs/TabsContent.d.ts +2 -0
- package/lib/model/ContentPageDef.d.ts +1 -0
- package/lib/ui-kit/BlockWrapper.js +3 -1
- package/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +10 -4
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Tabs/TabActivationEvent.d.ts +1 -0
- package/mobile/bundle/components/Tabs/TabsContent.d.ts +2 -0
- package/mobile/bundle/model/ContentPageDef.d.ts +1 -0
- package/mobile/dist/components/Tabs/TabActivationEvent.d.ts +1 -0
- package/mobile/dist/components/Tabs/Tabs.js +6 -2
- package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
- package/mobile/dist/components/Tabs/TabsContent.d.ts +2 -0
- package/mobile/dist/model/ContentPageDef.d.ts +1 -0
- package/mobile/dist/ui-kit/BlockWrapper.js +3 -1
- package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/lib/components/Tabs/TabActivationEvent.d.ts +1 -0
- package/mobile/lib/components/Tabs/Tabs.js +6 -2
- package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
- package/mobile/lib/components/Tabs/TabsContent.d.ts +2 -0
- package/mobile/lib/model/ContentPageDef.d.ts +1 -0
- package/mobile/lib/ui-kit/BlockWrapper.js +3 -1
- package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/src/components/Tabs/TabActivationEvent.ts +1 -0
- package/mobile/src/components/Tabs/Tabs.tsx +6 -2
- package/mobile/src/components/Tabs/TabsContent.ts +2 -0
- package/mobile/src/model/ContentPageDef.ts +1 -0
- package/mobile/src/ui-kit/BlockWrapper.tsx +5 -3
- package/package.json +1 -1
- package/src/components/Tabs/TabActivationEvent.ts +1 -0
- package/src/components/Tabs/Tabs.tsx +6 -2
- package/src/components/Tabs/TabsContent.ts +2 -0
- package/src/model/ContentPageDef.ts +1 -0
- package/src/ui-kit/BlockWrapper.tsx +5 -3
package/bundle/bundle.umd.js
CHANGED
|
@@ -294,7 +294,9 @@
|
|
|
294
294
|
const Tag = tag;
|
|
295
295
|
const [isHidden, setHidden] = useState(false);
|
|
296
296
|
useEffect(() => defaultEventBus.subscribe('tab', (event) => {
|
|
297
|
-
|
|
297
|
+
if (!event.groupName || event.groupName === block?.labelGroup) {
|
|
298
|
+
setHidden(Boolean(event.label && block?.labels?.length && !block.labels.includes(event.label)));
|
|
299
|
+
}
|
|
298
300
|
}), [block]);
|
|
299
301
|
const isGroup = version && isTheme;
|
|
300
302
|
return (jsx(Tag, { className: style('@container font-sans', isGroup ? 'group' : '', blockStyles[version], isHidden ? 'hidden' : '', padding || defaultPadding, className), ...(isGroup ? { 'data-ver': version } : {}), ...(block?.anchor ? { id: block.anchor } : {}), role: role, children: children }));
|
|
@@ -5326,7 +5328,11 @@
|
|
|
5326
5328
|
useEffect(() => {
|
|
5327
5329
|
const activeTab = tabs[activeTabIndex];
|
|
5328
5330
|
if (activeTab?.type === 'group') {
|
|
5329
|
-
defaultEventBus.subject('tab', {
|
|
5331
|
+
defaultEventBus.subject('tab', {
|
|
5332
|
+
type: activeTab.type,
|
|
5333
|
+
label: activeTab.ref,
|
|
5334
|
+
groupName: activeTab.name,
|
|
5335
|
+
});
|
|
5330
5336
|
}
|
|
5331
5337
|
}, [tabs, activeTabIndex]);
|
|
5332
5338
|
const updateUrlSearchTabParam = (_) => {
|
|
@@ -5357,7 +5363,7 @@
|
|
|
5357
5363
|
});
|
|
5358
5364
|
const fireTabEvent = (tab) => {
|
|
5359
5365
|
if (tab.type === 'group') {
|
|
5360
|
-
defaultEventBus.fire('tab', { type: tab.type, label: tab.ref });
|
|
5366
|
+
defaultEventBus.fire('tab', { type: tab.type, label: tab.ref, groupName: tab.name });
|
|
5361
5367
|
}
|
|
5362
5368
|
if (tab.type === 'link') {
|
|
5363
5369
|
defaultEventBus.fire('tab', { type: tab.type, label: tab.href });
|
|
@@ -5789,7 +5795,7 @@
|
|
|
5789
5795
|
return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-3xl sticky bottom-0 pointer-events-auto" }) }));
|
|
5790
5796
|
}
|
|
5791
5797
|
|
|
5792
|
-
const packageVersion = "0.14.
|
|
5798
|
+
const packageVersion = "0.14.87";
|
|
5793
5799
|
|
|
5794
5800
|
exports.Blocks = Blocks;
|
|
5795
5801
|
exports.ContentPage = ContentPage;
|