@redneckz/wildless-cms-uni-blocks 0.8.0 → 0.8.1
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 +13 -17
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/hooks/useLink.js +8 -13
- package/dist/hooks/useLink.js.map +1 -1
- package/lib/hooks/useLink.js +8 -13
- package/lib/hooks/useLink.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +13 -17
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/hooks/useLink.js +8 -13
- package/mobile/dist/hooks/useLink.js.map +1 -1
- package/mobile/lib/hooks/useLink.js +8 -13
- package/mobile/lib/hooks/useLink.js.map +1 -1
- package/mobile/src/hooks/useLink.ts +8 -14
- package/package.json +1 -1
- package/src/hooks/useLink.ts +8 -14
package/bundle/bundle.umd.js
CHANGED
|
@@ -679,10 +679,6 @@
|
|
|
679
679
|
getHash: getHash
|
|
680
680
|
});
|
|
681
681
|
|
|
682
|
-
const adjustHref = (href) => href && projectSettings.BASE_PATH && !(isURL(href) || href.startsWith('/'))
|
|
683
|
-
? `${projectSettings.BASE_PATH}${href}`
|
|
684
|
-
: href;
|
|
685
|
-
|
|
686
682
|
/* eslint-disable @typescript-eslint/ban-types */
|
|
687
683
|
const handlerDecorator = (handler, targetContent) => {
|
|
688
684
|
return handlerDecorator._impl(handler, targetContent);
|
|
@@ -727,18 +723,14 @@
|
|
|
727
723
|
router.push(href);
|
|
728
724
|
}
|
|
729
725
|
};
|
|
730
|
-
return (props) => {
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
handleLocalURL(href, props.target)(ev);
|
|
739
|
-
}, props),
|
|
740
|
-
};
|
|
741
|
-
};
|
|
726
|
+
return (props) => ({
|
|
727
|
+
...props,
|
|
728
|
+
'aria-label': props.text,
|
|
729
|
+
onClick: handlerDecorator((ev) => {
|
|
730
|
+
props.onClick && props.onClick(ev);
|
|
731
|
+
handleLocalURL(props.href, props.target)(ev);
|
|
732
|
+
}, props),
|
|
733
|
+
});
|
|
742
734
|
}
|
|
743
735
|
|
|
744
736
|
const buttonStyleMap = {
|
|
@@ -2564,6 +2556,10 @@
|
|
|
2564
2556
|
const renderMonthNames = (item, colSize) => item.month?.map((_, i) => (jsx("div", { style: { flexBasis: `${colSize}%` }, children: _.text }, `monthName-${i}`)));
|
|
2565
2557
|
const renderMonthImages = (item) => item.month?.map((_) => _.image?.src ? (jsx("div", { className: "h-[207px] border-r pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0", children: jsx(ImgInner, { image: _.image, className: "flex" }) }, `monthImage-${_.image.src}`)) : null);
|
|
2566
2558
|
|
|
2559
|
+
const adjustHref = (href) => href && projectSettings.BASE_PATH && !(isURL(href) || href.startsWith('/'))
|
|
2560
|
+
? `${projectSettings.BASE_PATH}${href}`
|
|
2561
|
+
: href;
|
|
2562
|
+
|
|
2567
2563
|
const isHrefActive = (href, router) => withoutQuery(isURL(href) ? router.href : getPathname(router.href)).startsWith(withoutQuery(adjustHref(href)));
|
|
2568
2564
|
|
|
2569
2565
|
const isSubItemActive = (router) => (subItem) => isHrefActive(subItem.href, router);
|
|
@@ -4483,7 +4479,7 @@
|
|
|
4483
4479
|
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" }) }));
|
|
4484
4480
|
}
|
|
4485
4481
|
|
|
4486
|
-
const packageVersion = "0.8.
|
|
4482
|
+
const packageVersion = "0.8.1";
|
|
4487
4483
|
|
|
4488
4484
|
exports.Blocks = Blocks;
|
|
4489
4485
|
exports.ContentPage = ContentPage;
|