@plasmicapp/react-web 0.2.114 → 0.2.116
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 +24 -24
- package/dist/index-common.d.ts +2 -0
- package/dist/react-web.cjs.development.js +1607 -1605
- 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 +1607 -1605
- package/dist/react-web.esm.js.map +1 -1
- package/package.json +2 -2
- package/skinny/dist/index-common.d.ts +2 -0
- package/skinny/dist/index.js +408 -2
- package/skinny/dist/index.js.map +1 -1
package/dist/all.d.ts
CHANGED
|
@@ -654,6 +654,30 @@ interface TriggerOpts {
|
|
|
654
654
|
*/
|
|
655
655
|
declare function useTrigger(trigger: TriggerType, opts: TriggerOpts): [boolean, React.HTMLAttributes<HTMLElement>];
|
|
656
656
|
|
|
657
|
+
// Type definitions for dlv 1.1
|
|
658
|
+
|
|
659
|
+
declare function dlv(object: object, key: string | Array<string | number>, defaultValue?: any): any;
|
|
660
|
+
|
|
661
|
+
declare type InitFunc<T> = ($props: Record<string, any>, $state: $State) => T;
|
|
662
|
+
interface $State {
|
|
663
|
+
[key: string]: any;
|
|
664
|
+
registerInitFunc?: (path: string, f: InitFunc<any>) => any;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
declare function generateStateOnChangeProp($state: $State, stateName: string, dataReps: number[]): (val: any, path: (string | number)[]) => void;
|
|
668
|
+
/**
|
|
669
|
+
* This function generate the state value prop for repeated states
|
|
670
|
+
* Example:
|
|
671
|
+
* - parent[][].counter[].count
|
|
672
|
+
* We need to pass `parent[index1][index2].counter to the child component
|
|
673
|
+
*/
|
|
674
|
+
declare function generateStateValueProp($state: $State, path: (string | number)[]): any;
|
|
675
|
+
/**
|
|
676
|
+
* Forked from https://github.com/lukeed/dset
|
|
677
|
+
* Changes: fixed setting a deep value to a proxy object
|
|
678
|
+
*/
|
|
679
|
+
declare function set(obj: any, keys: any, val: any): void;
|
|
680
|
+
|
|
657
681
|
declare const classNames: typeof classNames$1;
|
|
658
682
|
|
|
659
683
|
declare function setPlumeStrictMode(mode: boolean): void;
|
|
@@ -1612,28 +1636,4 @@ interface TriggeredOverlayContextValue {
|
|
|
1612
1636
|
}
|
|
1613
1637
|
declare const TriggeredOverlayContext: React.Context<TriggeredOverlayContextValue | undefined>;
|
|
1614
1638
|
|
|
1615
|
-
// Type definitions for dlv 1.1
|
|
1616
|
-
|
|
1617
|
-
declare function dlv(object: object, key: string | Array<string | number>, defaultValue?: any): any;
|
|
1618
|
-
|
|
1619
|
-
declare type InitFunc<T> = ($props: Record<string, any>, $state: $State) => T;
|
|
1620
|
-
interface $State {
|
|
1621
|
-
[key: string]: any;
|
|
1622
|
-
registerInitFunc?: (path: string, f: InitFunc<any>) => any;
|
|
1623
|
-
}
|
|
1624
|
-
|
|
1625
|
-
declare function generateStateOnChangeProp($state: $State, stateName: string, dataReps: number[]): (val: any, path: (string | number)[]) => void;
|
|
1626
|
-
/**
|
|
1627
|
-
* This function generate the state value prop for repeated states
|
|
1628
|
-
* Example:
|
|
1629
|
-
* - parent[][].counter[].count
|
|
1630
|
-
* We need to pass `parent[index1][index2].counter to the child component
|
|
1631
|
-
*/
|
|
1632
|
-
declare function generateStateValueProp($state: $State, path: (string | number)[]): any;
|
|
1633
|
-
/**
|
|
1634
|
-
* Forked from https://github.com/lukeed/dset
|
|
1635
|
-
* Changes: fixed setting a deep value to a proxy object
|
|
1636
|
-
*/
|
|
1637
|
-
declare function set(obj: any, keys: any, val: any): void;
|
|
1638
|
-
|
|
1639
1639
|
export { $State$1 as $State, BaseButtonProps, BaseMenuButtonProps, BaseMenuGroupProps, BaseMenuItemProps, BaseMenuProps, BaseSelectOptionGroupProps, BaseSelectOptionProps, BaseSelectProps, BaseTextInputProps, BaseTriggeredOverlayProps, ButtonRef, CheckboxProps, CheckboxRef, CheckboxRefValue, DropdownMenu, Flex, HTMLElementRefOf, HtmlAnchorOnlyProps, HtmlButtonOnlyProps, MenuButtonRef, MenuButtonRefValue, MenuRef, MenuRefValue, MultiChoiceArg, PlasmicDataSourceContextProvider, PlasmicHead, PlasmicIcon, PlasmicImg, PlasmicLink, PlasmicRootProvider, PlasmicSlot, SelectContext, SelectOptionRef, SelectRef, SelectRefValue, SingleBooleanChoiceArg, SingleChoiceArg, Stack, StrictProps, SwitchProps, SwitchRef, SwitchRefValue, TextInputRef, TextInputRefValue, Trans, TriggeredOverlayConfig, TriggeredOverlayContext, TriggeredOverlayRef, classNames, createPlasmicElementProxy, createUseScreenVariants, deriveRenderOpts, ensureGlobalVariants, genTranslatableString, generateStateOnChangeProp, generateStateValueProp, dlv as get, getDataProps, hasVariant, makeFragment, mergeVariantsWithStates, omit, pick, plasmicHeadMeta, renderPlasmicSlot, set, setPlumeStrictMode, useButton, useCanvasDollarState, useCheckbox, useCurrentUser, useDollarState, useIsSSR, useMenu, useMenuButton, useMenuGroup, useMenuItem, useSelect, useSelectOption, useSelectOptionGroup, useSwitch, useTextInput, useTrigger, useTriggeredOverlay, wrapWithClassName };
|
package/dist/index-common.d.ts
CHANGED
|
@@ -14,3 +14,5 @@ export { PlasmicDataSourceContextProvider, PlasmicRootProvider, useCurrentUser,
|
|
|
14
14
|
export { Stack } from "./render/Stack";
|
|
15
15
|
export { genTranslatableString, Trans } from "./render/translation";
|
|
16
16
|
export { useTrigger } from "./render/triggers";
|
|
17
|
+
export * from "./states/helpers";
|
|
18
|
+
export { $State, default as useDollarState, useCanvasDollarState, } from "./states/valtio";
|