@plasmicapp/react-web 0.2.345 → 0.2.347
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 +19 -10
- package/package.json +5 -5
package/dist/all.d.ts
CHANGED
|
@@ -11442,16 +11442,10 @@ interface ActionProps<P> {
|
|
|
11442
11442
|
* calls `setControlContextData`)
|
|
11443
11443
|
*/
|
|
11444
11444
|
contextData: InferDataType<P> | null;
|
|
11445
|
-
|
|
11446
|
-
|
|
11447
|
-
|
|
11448
|
-
|
|
11449
|
-
refreshQueryData: () => void;
|
|
11450
|
-
appendToSlot: (element: PlasmicElement, slotName: string) => void;
|
|
11451
|
-
removeFromSlotAt: (pos: number, slotName: string) => void;
|
|
11452
|
-
updateProps: (newValues: any) => void;
|
|
11453
|
-
updateStates: (newValues: any) => void;
|
|
11454
|
-
};
|
|
11445
|
+
/**
|
|
11446
|
+
* Operations available to the editor that allow modifying the entire component.
|
|
11447
|
+
*/
|
|
11448
|
+
studioOps: StudioOps;
|
|
11455
11449
|
/**
|
|
11456
11450
|
* The document that the component will be rendered into; instead of using
|
|
11457
11451
|
* `document` directly (for, say, `document.querySelector()` etc.), you
|
|
@@ -12128,6 +12122,16 @@ interface ModalProps {
|
|
|
12128
12122
|
onClose: () => void;
|
|
12129
12123
|
style?: CSSProperties;
|
|
12130
12124
|
}
|
|
12125
|
+
interface StudioOps {
|
|
12126
|
+
showModal: (modalProps: Omit<ModalProps, "onClose"> & {
|
|
12127
|
+
onClose?: () => void;
|
|
12128
|
+
}) => void;
|
|
12129
|
+
refreshQueryData: () => void;
|
|
12130
|
+
appendToSlot: (element: PlasmicElement, slotName: string) => void;
|
|
12131
|
+
removeFromSlotAt: (pos: number, slotName: string) => void;
|
|
12132
|
+
updateProps: (newValues: any) => void;
|
|
12133
|
+
updateStates: (newValues: any) => void;
|
|
12134
|
+
}
|
|
12131
12135
|
interface CustomControlProps<P> {
|
|
12132
12136
|
componentProps: P;
|
|
12133
12137
|
/**
|
|
@@ -12136,6 +12140,11 @@ interface CustomControlProps<P> {
|
|
|
12136
12140
|
* calls `setControlContextData`)
|
|
12137
12141
|
*/
|
|
12138
12142
|
contextData: InferDataType<P> | null;
|
|
12143
|
+
/**
|
|
12144
|
+
* Operations available to the editor that allow modifying the entire component.
|
|
12145
|
+
* Can be null if the custom prop is used in a global context.
|
|
12146
|
+
*/
|
|
12147
|
+
studioOps: StudioOps | null;
|
|
12139
12148
|
value: any;
|
|
12140
12149
|
/**
|
|
12141
12150
|
* Sets the value to be passed to the prop. Expects a JSON-compatible value.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasmicapp/react-web",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.347",
|
|
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",
|
|
@@ -97,11 +97,11 @@
|
|
|
97
97
|
},
|
|
98
98
|
"dependencies": {
|
|
99
99
|
"@plasmicapp/auth-react": "0.0.21",
|
|
100
|
-
"@plasmicapp/data-sources": "0.1.
|
|
100
|
+
"@plasmicapp/data-sources": "0.1.163",
|
|
101
101
|
"@plasmicapp/data-sources-context": "0.1.21",
|
|
102
|
-
"@plasmicapp/host": "1.0.
|
|
102
|
+
"@plasmicapp/host": "1.0.204",
|
|
103
103
|
"@plasmicapp/loader-splits": "1.0.62",
|
|
104
|
-
"@plasmicapp/nextjs-app-router": "1.0.
|
|
104
|
+
"@plasmicapp/nextjs-app-router": "1.0.12",
|
|
105
105
|
"@plasmicapp/prepass": "1.0.17",
|
|
106
106
|
"@plasmicapp/query": "0.1.79",
|
|
107
107
|
"@react-aria/checkbox": "^3.14.2",
|
|
@@ -168,5 +168,5 @@
|
|
|
168
168
|
"react": ">=16.8.0",
|
|
169
169
|
"react-dom": ">=16.8.0"
|
|
170
170
|
},
|
|
171
|
-
"gitHead": "
|
|
171
|
+
"gitHead": "9e7af0b37cc771d0189c30332d65b12cc891e48c"
|
|
172
172
|
}
|