@plasmicapp/react-web 0.2.226 → 0.2.227
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/all.d.ts +1 -0
- package/dist/index.cjs.js +17 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/react-web.esm.js +17 -4
- package/dist/react-web.esm.js.map +1 -1
- package/dist/render/PlasmicLink.d.ts +1 -0
- package/dist/render/ssr.d.ts +1 -0
- package/package.json +4 -4
- package/skinny/dist/index.js +3 -27
- package/skinny/dist/index.js.map +1 -1
- 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/render/PlasmicLink.d.ts +1 -0
- package/skinny/dist/render/ssr.d.ts +1 -0
- package/skinny/dist/{ssr-e2ce462a.js → ssr-3ce4cefe.js} +44 -6
- package/skinny/dist/ssr-3ce4cefe.js.map +1 -0
- package/skinny/dist/ssr-e2ce462a.js.map +0 -1
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
export declare const PlasmicLink: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<any>>;
|
|
3
|
+
export declare const PlasmicLinkInternal: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<any>>;
|
package/dist/render/ssr.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export interface PlasmicRootProviderProps extends PlasmicDataSourceContextValue
|
|
|
15
15
|
*/
|
|
16
16
|
translator?: PlasmicTranslator;
|
|
17
17
|
Head?: React.ComponentType<any>;
|
|
18
|
+
Link?: React.ComponentType<any>;
|
|
18
19
|
disableLoadingBoundary?: boolean;
|
|
19
20
|
suspenseFallback?: React.ReactNode;
|
|
20
21
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasmicapp/react-web",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.227",
|
|
4
4
|
"description": "plasmic library for rendering in the presentational style",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
},
|
|
76
76
|
"prettier": {},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@plasmicapp/data-sources": "0.1.
|
|
78
|
+
"@plasmicapp/data-sources": "0.1.92",
|
|
79
79
|
"@plasmicapp/data-sources-context": "0.1.11",
|
|
80
|
-
"@plasmicapp/host": "1.0.
|
|
80
|
+
"@plasmicapp/host": "1.0.149",
|
|
81
81
|
"@plasmicapp/query": "0.1.67",
|
|
82
82
|
"@react-aria/checkbox": "^3.5.0",
|
|
83
83
|
"@react-aria/focus": "^3.7.0",
|
|
@@ -143,5 +143,5 @@
|
|
|
143
143
|
"react": ">=16.8.0",
|
|
144
144
|
"react-dom": ">=16.8.0"
|
|
145
145
|
},
|
|
146
|
-
"gitHead": "
|
|
146
|
+
"gitHead": "53fbc64e76b6edec87fc05403944e52c292d4d1c"
|
|
147
147
|
}
|
package/skinny/dist/index.js
CHANGED
|
@@ -10,8 +10,8 @@ import { _ as __awaiter, a as __generator, b as __assign, c as __rest, d as __sp
|
|
|
10
10
|
export { o as omit, p as pick } from './common-ed411407.js';
|
|
11
11
|
export { PlasmicHead, plasmicHeadMeta } from './render/PlasmicHead/index.js';
|
|
12
12
|
export { PlasmicImg } from './render/PlasmicImg/index.js';
|
|
13
|
-
import { T as Trans } from './ssr-
|
|
14
|
-
export { P as PlasmicRootProvider, T as Trans, g as genTranslatableString, u as useIsSSR } from './ssr-
|
|
13
|
+
import { T as Trans } from './ssr-3ce4cefe.js';
|
|
14
|
+
export { P as PlasmicLink, a as PlasmicRootProvider, T as Trans, g as genTranslatableString, u as useIsSSR } from './ssr-3ce4cefe.js';
|
|
15
15
|
import ReactDOM__default from 'react-dom';
|
|
16
16
|
import { useFocusRing } from '@react-aria/focus';
|
|
17
17
|
import { proxy, ref, useSnapshot, getVersion, subscribe } from 'valtio';
|
|
@@ -528,30 +528,6 @@ function PlasmicIcon(props) {
|
|
|
528
528
|
return React.createElement(PlasmicIconType, __assign({}, rest));
|
|
529
529
|
}
|
|
530
530
|
|
|
531
|
-
var PlasmicLink = React__default.forwardRef(function PlasmicLink(props, ref) {
|
|
532
|
-
// props.href is required for nextjs; if no props.href,
|
|
533
|
-
// then we just render the default anchor element
|
|
534
|
-
if (props.platform === "nextjs" && props.href) {
|
|
535
|
-
var nextjsProps = [
|
|
536
|
-
"href",
|
|
537
|
-
"replace",
|
|
538
|
-
"scroll",
|
|
539
|
-
"shallow",
|
|
540
|
-
"passHref",
|
|
541
|
-
"prefetch",
|
|
542
|
-
"locale",
|
|
543
|
-
];
|
|
544
|
-
return React__default.createElement(props.component, __assign(__assign({}, pick.apply(void 0, __spreadArray([props], __read(nextjsProps), false))), { legacyBehavior: true }), React__default.createElement("a", __assign({}, omit.apply(void 0, __spreadArray([props, "component", "platform"], __read(nextjsProps), false)), { ref: ref })));
|
|
545
|
-
}
|
|
546
|
-
if (props.platform === "gatsby" && isInternalHref(props.href)) {
|
|
547
|
-
return React__default.createElement(props.component, __assign(__assign({}, omit(props, "component", "platform", "href")), { to: props.href, ref: ref }));
|
|
548
|
-
}
|
|
549
|
-
return React__default.createElement("a", __assign({}, omit(props, "component", "platform"), { ref: ref }));
|
|
550
|
-
});
|
|
551
|
-
function isInternalHref(href) {
|
|
552
|
-
return /^\/(?!\/)/.test(href);
|
|
553
|
-
}
|
|
554
|
-
|
|
555
531
|
function PlasmicSlot(props) {
|
|
556
532
|
return renderPlasmicSlot(props);
|
|
557
533
|
}
|
|
@@ -1604,5 +1580,5 @@ function assignValue(object, key, value) {
|
|
|
1604
1580
|
// Utilities used by generated code
|
|
1605
1581
|
var classNames = classNames$1;
|
|
1606
1582
|
|
|
1607
|
-
export { PlasmicIcon,
|
|
1583
|
+
export { PlasmicIcon, PlasmicPageGuard, PlasmicSlot, Stack, classNames, createPlasmicElementProxy, createUseScreenVariants, deriveRenderOpts, ensureGlobalVariants, generateStateOnChangeProp, generateStateOnChangePropForCodeComponents, generateStateValueProp, getCurrentInitialValue, getStateCellsInPlasmicProxy, getStateSpecInPlasmicProxy, hasVariant, initializeCodeComponentStates, initializePlasmicStates, is$StateProxy, isPlasmicStateProxy, makeFragment, mergeVariantsWithStates, renderPlasmicSlot, resetToInitialValue, set, useDollarState, useTrigger, withPlasmicPageGuard, wrapWithClassName };
|
|
1608
1584
|
//# sourceMappingURL=index.js.map
|