@plasmicapp/react-web 1.0.6 → 1.0.8
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 +8 -2
- package/package.json +4 -4
package/dist/all.d.ts
CHANGED
|
@@ -12158,7 +12158,7 @@ interface Defaultable<Ctx extends any[], T> {
|
|
|
12158
12158
|
/**
|
|
12159
12159
|
* Default value to set for this prop when the component is instantiated
|
|
12160
12160
|
*/
|
|
12161
|
-
defaultValue?: T
|
|
12161
|
+
defaultValue?: T | ContextDependentConfig<Ctx, T | undefined>;
|
|
12162
12162
|
/**
|
|
12163
12163
|
* Specify that default when no prop/param is provided,
|
|
12164
12164
|
* so the Plasmic user can see it in the studio UI
|
|
@@ -12974,8 +12974,14 @@ interface SimplifiedField {
|
|
|
12974
12974
|
type PartialParams<P extends any[]> = {
|
|
12975
12975
|
[K in keyof P]: P[K] | undefined;
|
|
12976
12976
|
};
|
|
12977
|
+
interface FunctionControlExtras {
|
|
12978
|
+
path: (string | number)[];
|
|
12979
|
+
item?: any;
|
|
12980
|
+
mode?: "query" | "mutation";
|
|
12981
|
+
}
|
|
12977
12982
|
type FunctionControlContext<P extends any[]> = GenericContext<PartialParams<P>, // Function params, each may be undefined
|
|
12978
|
-
any
|
|
12983
|
+
any, // Data from fnContext
|
|
12984
|
+
FunctionControlExtras>;
|
|
12979
12985
|
type FunctionContextConfig<P extends any[], R> = ContextDependentConfig<FunctionControlContext<P>, R>;
|
|
12980
12986
|
interface TypeBaseDefault<Ctx extends any[], T> extends CommonTypeBase, Defaultable<Ctx, T> {
|
|
12981
12987
|
displayName?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasmicapp/react-web",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "plasmic library for rendering in the presentational style",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
88
|
"@plasmicapp/auth-react": "0.0.27",
|
|
89
|
-
"@plasmicapp/data-sources": "1.0.
|
|
89
|
+
"@plasmicapp/data-sources": "1.0.7",
|
|
90
90
|
"@plasmicapp/data-sources-context": "0.1.23",
|
|
91
|
-
"@plasmicapp/host": "2.0.
|
|
91
|
+
"@plasmicapp/host": "2.0.3",
|
|
92
92
|
"@plasmicapp/loader-splits": "1.0.70",
|
|
93
93
|
"@plasmicapp/nextjs-app-router": "1.0.23",
|
|
94
94
|
"@plasmicapp/prepass": "1.0.24",
|
|
@@ -142,5 +142,5 @@
|
|
|
142
142
|
"react": ">=18.0.0",
|
|
143
143
|
"react-dom": ">=18.0.0"
|
|
144
144
|
},
|
|
145
|
-
"gitHead": "
|
|
145
|
+
"gitHead": "9b61e0f3ae3424690b98ea05cfc6c3a470f32f39"
|
|
146
146
|
}
|