@plasmicapp/react-web 0.2.124 → 0.2.125

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.
@@ -1,4 +1,4 @@
1
- declare type InitFunc<T> = ($props: Record<string, any>, $state: $State, indexes: number[]) => T;
1
+ declare type InitFunc<T> = ($props: Record<string, any>, $state: $State, $ctx: Record<string, any>, indexes: number[]) => T;
2
2
  export interface $State {
3
3
  [key: string]: any;
4
4
  registerInitFunc?: (path: string, f: InitFunc<any>) => any;
@@ -12,6 +12,6 @@ export interface $StateSpec<T> {
12
12
  onChangeProp?: string;
13
13
  isArray?: boolean;
14
14
  }
15
- export declare function useDollarState(specs: $StateSpec<any>[], props: Record<string, any>): any;
15
+ export declare function useDollarState(specs: $StateSpec<any>[], props: Record<string, any>, $ctx?: Record<string, any>): any;
16
16
  export default useDollarState;
17
- export declare function useCanvasDollarState(specs: $StateSpec<any>[], props: Record<string, any>): any;
17
+ export declare function useCanvasDollarState(specs: $StateSpec<any>[], props: Record<string, any>, $ctx?: Record<string, any>): any;
@@ -32,7 +32,13 @@ export declare const RepeatedStates: Story<{
32
32
  }>;
33
33
  export declare const NestedRepeatedCounter: Story<{}>;
34
34
  export declare const MatrixRepeatedCounter: Story<{}>;
35
- export declare const InitFuncFromContextData: Story<{
35
+ export declare const InitFuncFromInternalContextData: Story<{
36
+ products: {
37
+ price: number;
38
+ name: string;
39
+ }[];
40
+ }>;
41
+ export declare const InitFuncFromRootContextData: Story<{
36
42
  products: {
37
43
  price: number;
38
44
  name: string;