@plasmicapp/react-web 0.2.231 → 0.2.233
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/auth/index.d.ts +1 -0
- package/dist/index.cjs.js +5 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/react-web.esm.js +5 -1
- package/dist/react-web.esm.js.map +1 -1
- package/lib/auth/PlasmicPageGuard.d.ts +12 -0
- package/lib/auth/index.cjs.js +17 -0
- package/lib/auth/index.cjs.js.map +1 -0
- package/lib/auth/index.d.ts +1 -0
- package/lib/auth/index.js +2 -0
- package/lib/auth/index.js.map +1 -0
- package/lib/auth/package.json +8 -0
- package/package.json +9 -3
- package/skinny/dist/auth/index.d.ts +1 -0
- package/skinny/dist/index.js +2 -2
- package/skinny/dist/plume/checkbox/index.js +1 -1
- package/skinny/dist/plume/menu/index.js +1 -1
- package/skinny/dist/plume/menu-button/index.js +1 -1
- package/skinny/dist/plume/select/index.js +1 -1
- package/skinny/dist/plume/switch/index.js +1 -1
- package/skinny/dist/{ssr-b32a66e3.js → ssr-3a7c5af2.js} +6 -2
- package/skinny/dist/ssr-3a7c5af2.js.map +1 -0
- package/skinny/dist/ssr-b32a66e3.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@plasmicapp/auth-react";
|
package/dist/index.cjs.js
CHANGED
|
@@ -1424,6 +1424,7 @@ var PlasmicLink = React__default['default'].forwardRef(function PlasmicLink(prop
|
|
|
1424
1424
|
}
|
|
1425
1425
|
});
|
|
1426
1426
|
var PlasmicLinkInternal = React__default['default'].forwardRef(function PlasmicLinkInternal(props, ref) {
|
|
1427
|
+
var _a;
|
|
1427
1428
|
// props.href is required for nextjs; if no props.href,
|
|
1428
1429
|
// then we just render the default anchor element
|
|
1429
1430
|
if (props.platform === "nextjs" && props.href) {
|
|
@@ -1436,7 +1437,10 @@ var PlasmicLinkInternal = React__default['default'].forwardRef(function PlasmicL
|
|
|
1436
1437
|
"prefetch",
|
|
1437
1438
|
"locale",
|
|
1438
1439
|
];
|
|
1439
|
-
|
|
1440
|
+
// If this is a fragment identifier link, then we set
|
|
1441
|
+
// scroll={false} so that smooth scrolling works
|
|
1442
|
+
var isFragment = (_a = props.href) === null || _a === void 0 ? void 0 : _a.startsWith("#");
|
|
1443
|
+
return React__default['default'].createElement(props.component, __assign(__assign({ scroll: !isFragment }, pick.apply(void 0, __spreadArray([props], __read(nextjsProps), false))), { legacyBehavior: true }), React__default['default'].createElement("a", __assign({}, omit.apply(void 0, __spreadArray([props, "component", "platform"], __read(nextjsProps), false)), { ref: ref })));
|
|
1440
1444
|
}
|
|
1441
1445
|
if (props.platform === "gatsby" && isInternalHref(props.href)) {
|
|
1442
1446
|
return React__default['default'].createElement(props.component, __assign(__assign({}, omit(props, "component", "platform", "href")), { to: props.href, ref: ref }));
|