@plasmicapp/react-web 0.2.115 → 0.2.117
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 +25 -24
- package/dist/index-common.d.ts +2 -0
- package/dist/index.d.ts +0 -2
- package/dist/react-web.cjs.development.js +1611 -1598
- 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 +1611 -1598
- package/dist/react-web.esm.js.map +1 -1
- package/dist/states/valtio.d.ts +1 -0
- package/dist/stories/UseDollarState.stories.d.ts +3 -0
- package/package.json +2 -2
- package/skinny/dist/index-common.d.ts +2 -0
- package/skinny/dist/index.d.ts +0 -2
- package/skinny/dist/index.js +423 -1
- package/skinny/dist/index.js.map +1 -1
- package/skinny/dist/plume/checkbox/index.js +2 -2
- package/skinny/dist/plume/checkbox/index.js.map +1 -1
- package/skinny/dist/plume/switch/index.js +2 -2
- package/skinny/dist/plume/switch/index.js.map +1 -1
- package/skinny/dist/states/valtio.d.ts +1 -0
- package/skinny/dist/stories/UseDollarState.stories.d.ts +3 -0
package/dist/all.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ interface $StateSpec<T> {
|
|
|
35
35
|
type: "private" | "readonly" | "writable";
|
|
36
36
|
valueProp?: string;
|
|
37
37
|
onChangeProp?: string;
|
|
38
|
+
isArray?: boolean;
|
|
38
39
|
}
|
|
39
40
|
declare function useDollarState(specs: $StateSpec<any>[], props: Record<string, any>): any;
|
|
40
41
|
|
|
@@ -654,6 +655,30 @@ interface TriggerOpts {
|
|
|
654
655
|
*/
|
|
655
656
|
declare function useTrigger(trigger: TriggerType, opts: TriggerOpts): [boolean, React.HTMLAttributes<HTMLElement>];
|
|
656
657
|
|
|
658
|
+
// Type definitions for dlv 1.1
|
|
659
|
+
|
|
660
|
+
declare function dlv(object: object, key: string | Array<string | number>, defaultValue?: any): any;
|
|
661
|
+
|
|
662
|
+
declare type InitFunc<T> = ($props: Record<string, any>, $state: $State) => T;
|
|
663
|
+
interface $State {
|
|
664
|
+
[key: string]: any;
|
|
665
|
+
registerInitFunc?: (path: string, f: InitFunc<any>) => any;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
declare function generateStateOnChangeProp($state: $State, stateName: string, dataReps: number[]): (val: any, path: (string | number)[]) => void;
|
|
669
|
+
/**
|
|
670
|
+
* This function generate the state value prop for repeated states
|
|
671
|
+
* Example:
|
|
672
|
+
* - parent[][].counter[].count
|
|
673
|
+
* We need to pass `parent[index1][index2].counter to the child component
|
|
674
|
+
*/
|
|
675
|
+
declare function generateStateValueProp($state: $State, path: (string | number)[]): any;
|
|
676
|
+
/**
|
|
677
|
+
* Forked from https://github.com/lukeed/dset
|
|
678
|
+
* Changes: fixed setting a deep value to a proxy object
|
|
679
|
+
*/
|
|
680
|
+
declare function set(obj: any, keys: any, val: any): void;
|
|
681
|
+
|
|
657
682
|
declare const classNames: typeof classNames$1;
|
|
658
683
|
|
|
659
684
|
declare function setPlumeStrictMode(mode: boolean): void;
|
|
@@ -1612,28 +1637,4 @@ interface TriggeredOverlayContextValue {
|
|
|
1612
1637
|
}
|
|
1613
1638
|
declare const TriggeredOverlayContext: React.Context<TriggeredOverlayContextValue | undefined>;
|
|
1614
1639
|
|
|
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
1640
|
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";
|
package/dist/index.d.ts
CHANGED
|
@@ -9,5 +9,3 @@ export * from "./plume/select";
|
|
|
9
9
|
export * from "./plume/switch";
|
|
10
10
|
export * from "./plume/text-input";
|
|
11
11
|
export * from "./plume/triggered-overlay";
|
|
12
|
-
export * from "./states/helpers";
|
|
13
|
-
export { $State, default as useDollarState, useCanvasDollarState, } from "./states/valtio";
|