@plasmicapp/react-web 0.2.348 → 0.2.350

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.
Files changed (2) hide show
  1. package/dist/all.d.ts +19 -0
  2. package/package.json +4 -4
package/dist/all.d.ts CHANGED
@@ -11446,6 +11446,10 @@ interface ActionProps<P> {
11446
11446
  * Operations available to the editor that allow modifying the entire component.
11447
11447
  */
11448
11448
  studioOps: StudioOps;
11449
+ /**
11450
+ * Metadata from the studio project.
11451
+ */
11452
+ projectData: ProjectData;
11449
11453
  /**
11450
11454
  * The document that the component will be rendered into; instead of using
11451
11455
  * `document` directly (for, say, `document.querySelector()` etc.), you
@@ -12132,6 +12136,17 @@ interface StudioOps {
12132
12136
  updateProps: (newValues: any) => void;
12133
12137
  updateStates: (newValues: any) => void;
12134
12138
  }
12139
+ interface ProjectData {
12140
+ components: {
12141
+ name: string;
12142
+ }[];
12143
+ pages: {
12144
+ name: string;
12145
+ pageMeta: {
12146
+ path: string;
12147
+ };
12148
+ }[];
12149
+ }
12135
12150
  interface CustomControlProps<P> {
12136
12151
  componentProps: P;
12137
12152
  /**
@@ -12145,6 +12160,10 @@ interface CustomControlProps<P> {
12145
12160
  * Can be null if the custom prop is used in a global context.
12146
12161
  */
12147
12162
  studioOps: StudioOps | null;
12163
+ /**
12164
+ * Metadata from the studio project.
12165
+ */
12166
+ projectData: ProjectData;
12148
12167
  value: any;
12149
12168
  /**
12150
12169
  * 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.348",
3
+ "version": "0.2.350",
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,9 +97,9 @@
97
97
  },
98
98
  "dependencies": {
99
99
  "@plasmicapp/auth-react": "0.0.21",
100
- "@plasmicapp/data-sources": "0.1.163",
100
+ "@plasmicapp/data-sources": "0.1.165",
101
101
  "@plasmicapp/data-sources-context": "0.1.21",
102
- "@plasmicapp/host": "1.0.204",
102
+ "@plasmicapp/host": "1.0.206",
103
103
  "@plasmicapp/loader-splits": "1.0.62",
104
104
  "@plasmicapp/nextjs-app-router": "1.0.12",
105
105
  "@plasmicapp/prepass": "1.0.17",
@@ -168,5 +168,5 @@
168
168
  "react": ">=16.8.0",
169
169
  "react-dom": ">=16.8.0"
170
170
  },
171
- "gitHead": "5817e198ddc11f3050c47314f85a33888351b129"
171
+ "gitHead": "94d5603125aac87b0d1952dad0241fba1a6be371"
172
172
  }