@plasmicapp/react-web 0.2.102 → 0.2.103
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/README.md +13 -0
- package/dist/all.d.ts +11 -3
- package/dist/index.d.ts +1 -0
- package/dist/react-web.cjs.development.js +394 -347
- 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 +392 -347
- package/dist/react-web.esm.js.map +1 -1
- package/dist/states/helpers.d.ts +9 -0
- package/dist/states/index.d.ts +4 -6
- package/dist/stories/PlasmicImg.stories.d.ts +2 -2
- package/dist/stories/UseDollarState.stories.d.ts +33 -0
- package/package.json +8 -3
- package/skinny/dist/index.d.ts +1 -0
- package/skinny/dist/index.js +5 -2
- package/skinny/dist/index.js.map +1 -1
- package/skinny/dist/states/helpers.d.ts +9 -0
- package/skinny/dist/states/index.d.ts +4 -6
- package/skinny/dist/stories/UseDollarState.stories.d.ts +34 -0
- package/README +0 -8
package/README.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# @plasmicapp/react-web
|
|
2
|
+
|
|
3
|
+
This is the runtime for code generated by Plasmic, the visual builder for React.
|
|
4
|
+
This package contains functions
|
|
5
|
+
and type definitions used by generated presentational code.
|
|
6
|
+
|
|
7
|
+
Learn more about Plasmic:
|
|
8
|
+
|
|
9
|
+
https://www.plasmic.app
|
|
10
|
+
|
|
11
|
+
Learn more about Plasmic codegen:
|
|
12
|
+
|
|
13
|
+
https://docs.plasmic.app/learn/codegen-guide/
|
package/dist/all.d.ts
CHANGED
|
@@ -1193,7 +1193,15 @@ interface $StateSpec<T> {
|
|
|
1193
1193
|
valueProp?: string;
|
|
1194
1194
|
onChangeProp?: string;
|
|
1195
1195
|
}
|
|
1196
|
-
declare function useVanillaDollarState(
|
|
1197
|
-
declare const useDollarState: typeof useVanillaDollarState;
|
|
1196
|
+
declare function useVanillaDollarState(_specs: $StateSpec<any>[], props: Record<string, any>): $State;
|
|
1198
1197
|
|
|
1199
|
-
|
|
1198
|
+
declare function generateStateOnChangeProp($state: $State, stateName: string, dataReps: number[]): (val: any, path: (string | number)[]) => void;
|
|
1199
|
+
/**
|
|
1200
|
+
* This function generate the state value prop for repeated states
|
|
1201
|
+
* Example:
|
|
1202
|
+
* - parent[][].counter[].count
|
|
1203
|
+
* We need to pass `parent[index1][index2].counter to the child component
|
|
1204
|
+
*/
|
|
1205
|
+
declare function generateStateValueProp($state: $State, path: (string | number)[]): any;
|
|
1206
|
+
|
|
1207
|
+
export { BaseButtonProps, BaseMenuButtonProps, BaseMenuGroupProps, BaseMenuItemProps, BaseMenuProps, BaseSelectOptionGroupProps, BaseSelectOptionProps, BaseSelectProps, BaseTextInputProps, BaseTriggeredOverlayProps, ButtonRef, CheckboxProps, CheckboxRef, CheckboxRefValue, DropdownMenu, Flex, HTMLElementRefOf, HtmlAnchorOnlyProps, HtmlButtonOnlyProps, MenuButtonRef, MenuButtonRefValue, MenuRef, MenuRefValue, MultiChoiceArg, PlasmicIcon, PlasmicImg, PlasmicLink, PlasmicRootProvider, PlasmicSlot, SelectOptionRef, SelectRef, SelectRefValue, SingleBooleanChoiceArg, SingleChoiceArg, Stack, StrictProps, SwitchProps, SwitchRef, SwitchRefValue, TextInputRef, TextInputRefValue, Trans, TriggeredOverlayConfig, TriggeredOverlayRef, classNames, createPlasmicElementProxy, createUseScreenVariants, deriveRenderOpts, ensureGlobalVariants, genTranslatableString, generateStateOnChangeProp, generateStateValueProp, getDataProps, hasVariant, makeFragment, omit, pick, renderPlasmicSlot, setPlumeStrictMode, useButton, useCheckbox, useVanillaDollarState as useDollarState, useIsSSR, useMenu, useMenuButton, useMenuGroup, useMenuItem, useSelect, useSelectOption, useSelectOptionGroup, useSwitch, useTextInput, useTrigger, useTriggeredOverlay, wrapWithClassName };
|
package/dist/index.d.ts
CHANGED