@plasmicapp/react-web 0.2.234 → 0.2.236
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 +20 -5
- package/dist/index.cjs.js +12 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/react-web.esm.js +12 -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 +4 -1
- package/package.json +4 -4
- package/skinny/dist/index.js +12 -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 +4 -1
package/dist/react-web.esm.js
CHANGED
|
@@ -2014,9 +2014,13 @@ function subscribeToValtio($$state, statePath, node) {
|
|
|
2014
2014
|
var maybeValtioProxy = spec.valueProp
|
|
2015
2015
|
? $$state.env.$props[spec.valueProp]
|
|
2016
2016
|
: get($$state.stateValues, statePath);
|
|
2017
|
-
if (getVersion(maybeValtioProxy) &&
|
|
2017
|
+
if (getVersion(maybeValtioProxy) &&
|
|
2018
|
+
(spec.onChangeProp || (spec.onMutate && node.isLeaf()))) {
|
|
2018
2019
|
var unsub = subscribe(maybeValtioProxy, function () {
|
|
2019
2020
|
var _a, _b;
|
|
2021
|
+
if (spec.onMutate && node.isLeaf()) {
|
|
2022
|
+
spec.onMutate(maybeValtioProxy, spec.refName ? $$state.env.$refs[spec.refName] : undefined);
|
|
2023
|
+
}
|
|
2020
2024
|
(_b = (_a = $$state.env.$props)[spec.onChangeProp]) === null || _b === void 0 ? void 0 : _b.call(_a, spec.valueProp
|
|
2021
2025
|
? $$state.env.$props[spec.valueProp]
|
|
2022
2026
|
: get($$state.stateValues, statePath));
|
|
@@ -2185,11 +2189,12 @@ var mkUntrackedValue = function (o) {
|
|
|
2185
2189
|
return o != null && typeof o === "object" ? ref(o) : o;
|
|
2186
2190
|
};
|
|
2187
2191
|
var envFieldsAreNonNill = function (env) {
|
|
2188
|
-
var _a, _b;
|
|
2192
|
+
var _a, _b, _c;
|
|
2189
2193
|
return ({
|
|
2190
2194
|
$props: env.$props,
|
|
2191
2195
|
$ctx: (_a = env.$ctx) !== null && _a !== void 0 ? _a : {},
|
|
2192
2196
|
$queries: (_b = env.$queries) !== null && _b !== void 0 ? _b : {},
|
|
2197
|
+
$refs: (_c = env.$refs) !== null && _c !== void 0 ? _c : {},
|
|
2193
2198
|
});
|
|
2194
2199
|
};
|
|
2195
2200
|
/**
|
|
@@ -2426,6 +2431,10 @@ function initializeCodeComponentStates($state, states, repetitionIndex, componen
|
|
|
2426
2431
|
finally { if (e_1) throw e_1.error; }
|
|
2427
2432
|
}
|
|
2428
2433
|
}
|
|
2434
|
+
function generateOnMutateForSpec(stateName, componentHelpers) {
|
|
2435
|
+
var _a, _b;
|
|
2436
|
+
return (_b = (_a = componentHelpers === null || componentHelpers === void 0 ? void 0 : componentHelpers.states) === null || _a === void 0 ? void 0 : _a[stateName]) === null || _b === void 0 ? void 0 : _b.onMutate;
|
|
2437
|
+
}
|
|
2429
2438
|
function initializePlasmicStates($state, states, repetitionIndex) {
|
|
2430
2439
|
var e_2, _a;
|
|
2431
2440
|
var _b;
|
|
@@ -3819,5 +3828,5 @@ function useTriggeredOverlay(plasmicClass, props, config, outerRef, isDismissabl
|
|
|
3819
3828
|
};
|
|
3820
3829
|
}
|
|
3821
3830
|
|
|
3822
|
-
export { DropdownMenu, PlasmicHead, PlasmicIcon, PlasmicImg, PlasmicLink, PlasmicPageGuard, PlasmicRootProvider, PlasmicSlot, SelectContext, Stack, Trans, TriggeredOverlayContext, classNames, createPlasmicElementProxy, createUseScreenVariants, deriveRenderOpts, ensureGlobalVariants, genTranslatableString, generateStateOnChangeProp, generateStateOnChangePropForCodeComponents, generateStateValueProp, getCurrentInitialValue, getDataProps, getStateCellsInPlasmicProxy, getStateSpecInPlasmicProxy, hasVariant, initializeCodeComponentStates, initializePlasmicStates, is$StateProxy, isPlasmicStateProxy, makeFragment, mergeVariantsWithStates, omit, pick, plasmicHeadMeta, renderPlasmicSlot, resetToInitialValue, set, setPlumeStrictMode, useButton, useCheckbox, useDollarState, useIsSSR, useMenu, useMenuButton, useMenuGroup, useMenuItem, usePlasmicTranslator, useSelect, useSelectOption, useSelectOptionGroup, useSwitch, useTextInput, useTrigger, useTriggeredOverlay, withPlasmicPageGuard, wrapWithClassName };
|
|
3831
|
+
export { DropdownMenu, PlasmicHead, PlasmicIcon, PlasmicImg, PlasmicLink, PlasmicPageGuard, PlasmicRootProvider, PlasmicSlot, SelectContext, Stack, Trans, TriggeredOverlayContext, classNames, createPlasmicElementProxy, createUseScreenVariants, deriveRenderOpts, ensureGlobalVariants, genTranslatableString, generateOnMutateForSpec, generateStateOnChangeProp, generateStateOnChangePropForCodeComponents, generateStateValueProp, getCurrentInitialValue, getDataProps, getStateCellsInPlasmicProxy, getStateSpecInPlasmicProxy, hasVariant, initializeCodeComponentStates, initializePlasmicStates, is$StateProxy, isPlasmicStateProxy, makeFragment, mergeVariantsWithStates, omit, pick, plasmicHeadMeta, renderPlasmicSlot, resetToInitialValue, set, setPlumeStrictMode, useButton, useCheckbox, useDollarState, useIsSSR, useMenu, useMenuButton, useMenuGroup, useMenuItem, usePlasmicTranslator, useSelect, useSelectOption, useSelectOptionGroup, useSwitch, useTextInput, useTrigger, useTriggeredOverlay, withPlasmicPageGuard, wrapWithClassName };
|
|
3823
3832
|
//# sourceMappingURL=react-web.esm.js.map
|