@plasmicapp/react-web 0.2.138 → 0.2.139
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 +2 -1
- package/dist/react-web.cjs.development.js +10 -2
- package/dist/react-web.cjs.development.js.map +1 -1
- package/dist/react-web.cjs.production.min.js +1 -1
- package/dist/react-web.cjs.production.min.js.map +1 -1
- package/dist/react-web.esm.js +10 -3
- package/dist/react-web.esm.js.map +1 -1
- package/dist/states/helpers.d.ts +1 -0
- package/dist/states/index.d.ts +1 -1
- package/dist/states/types.d.ts +1 -0
- package/package.json +2 -2
- package/skinny/dist/index.js +10 -3
- package/skinny/dist/index.js.map +1 -1
- package/skinny/dist/states/helpers.d.ts +1 -0
- package/skinny/dist/states/index.d.ts +1 -1
- package/skinny/dist/states/types.d.ts +1 -0
package/dist/react-web.esm.js
CHANGED
|
@@ -1503,6 +1503,9 @@ function useTrigger(trigger, opts) {
|
|
|
1503
1503
|
return TRIGGER_TO_HOOK[trigger](opts);
|
|
1504
1504
|
}
|
|
1505
1505
|
|
|
1506
|
+
var ARRAY_SYMBOL = /*#__PURE__*/Symbol("[]");
|
|
1507
|
+
var PLASMIC_STATE_PROXY_SYMBOL = /*#__PURE__*/Symbol("plasmic.state.proxy");
|
|
1508
|
+
|
|
1506
1509
|
function generateStateOnChangeProp($state, stateName, dataReps) {
|
|
1507
1510
|
return function (val, path) {
|
|
1508
1511
|
return set($state, [stateName].concat(dataReps, path), val);
|
|
@@ -1519,6 +1522,9 @@ function generateStateValueProp($state, path // ["parent", 0, 1, "counter"]
|
|
|
1519
1522
|
return _get($state, path);
|
|
1520
1523
|
}
|
|
1521
1524
|
var useIsomorphicLayoutEffect$1 = typeof window !== "undefined" ? useLayoutEffect : useEffect;
|
|
1525
|
+
function isPlasmicStateProxy(obj) {
|
|
1526
|
+
return obj != null && typeof obj === "object" && obj[PLASMIC_STATE_PROXY_SYMBOL];
|
|
1527
|
+
}
|
|
1522
1528
|
function shallowEqual(a1, a2) {
|
|
1523
1529
|
if (a1.length !== a2.length) {
|
|
1524
1530
|
return false;
|
|
@@ -1589,8 +1595,6 @@ function assignValue(object, key, value) {
|
|
|
1589
1595
|
}
|
|
1590
1596
|
}
|
|
1591
1597
|
|
|
1592
|
-
var ARRAY_SYMBOL = /*#__PURE__*/Symbol("[]");
|
|
1593
|
-
|
|
1594
1598
|
var UNINITIALIZED = /*#__PURE__*/Symbol("plasmic.unitialized");
|
|
1595
1599
|
var StateSpecNode = /*#__PURE__*/function () {
|
|
1596
1600
|
function StateSpecNode(specs) {
|
|
@@ -1802,6 +1806,9 @@ function create$StateProxy($$state, leafHandlers) {
|
|
|
1802
1806
|
return Reflect.deleteProperty(target, property);
|
|
1803
1807
|
},
|
|
1804
1808
|
get: function get(target, property, receiver) {
|
|
1809
|
+
if (property === PLASMIC_STATE_PROXY_SYMBOL) {
|
|
1810
|
+
return true;
|
|
1811
|
+
}
|
|
1805
1812
|
proxyRoot = proxyRoot == null ? receiver : proxyRoot;
|
|
1806
1813
|
var nextPath = getNextPath(property);
|
|
1807
1814
|
if (isOutside || currNode.isLeaf()) {
|
|
@@ -3395,5 +3402,5 @@ function useTriggeredOverlay(plasmicClass, props, config, outerRef, isDismissabl
|
|
|
3395
3402
|
};
|
|
3396
3403
|
}
|
|
3397
3404
|
|
|
3398
|
-
export { DropdownMenu, PlasmicHead, PlasmicIcon, PlasmicImg, PlasmicLink, PlasmicPageGuard, PlasmicRootProvider, PlasmicSlot, SelectContext, Stack, Trans, TriggeredOverlayContext, classNames, createPlasmicElementProxy, createUseScreenVariants, deriveRenderOpts, ensureGlobalVariants, genTranslatableString, generateStateOnChangeProp, generateStateValueProp, getDataProps, hasVariant, makeFragment, mergeVariantsWithStates, omit, pick, plasmicHeadMeta, renderPlasmicSlot, set, setPlumeStrictMode, useButton, useCheckbox, useDollarState, useIsSSR, useMenu, useMenuButton, useMenuGroup, useMenuItem, useSelect, useSelectOption, useSelectOptionGroup, useSwitch, useTextInput, useTrigger, useTriggeredOverlay, wrapWithClassName };
|
|
3405
|
+
export { DropdownMenu, PlasmicHead, PlasmicIcon, PlasmicImg, PlasmicLink, PlasmicPageGuard, PlasmicRootProvider, PlasmicSlot, SelectContext, Stack, Trans, TriggeredOverlayContext, classNames, createPlasmicElementProxy, createUseScreenVariants, deriveRenderOpts, ensureGlobalVariants, genTranslatableString, generateStateOnChangeProp, generateStateValueProp, getDataProps, hasVariant, isPlasmicStateProxy, makeFragment, mergeVariantsWithStates, omit, pick, plasmicHeadMeta, renderPlasmicSlot, set, setPlumeStrictMode, useButton, useCheckbox, useDollarState, useIsSSR, useMenu, useMenuButton, useMenuGroup, useMenuItem, useSelect, useSelectOption, useSelectOptionGroup, useSwitch, useTextInput, useTrigger, useTriggeredOverlay, wrapWithClassName };
|
|
3399
3406
|
//# sourceMappingURL=react-web.esm.js.map
|