@plasmicapp/react-web 0.2.253 → 0.2.254

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 +7 -3
  2. package/package.json +4 -4
package/dist/all.d.ts CHANGED
@@ -11187,13 +11187,17 @@ interface ComponentTemplate<P> extends Omit<CodeComponentElement<P>, "type" | "n
11187
11187
  interface ComponentTemplates<P> {
11188
11188
  [name: string]: ComponentTemplate<P>;
11189
11189
  }
11190
- type StateSpec = {
11190
+ type StateSpec<P> = {
11191
11191
  onChangeProp: string;
11192
+ /**
11193
+ * If true, will hide the state on studio.
11194
+ */
11195
+ hidden?: ContextDependentConfig<P, boolean>;
11192
11196
  /**
11193
11197
  * If true, will hide the state in a collapsed section; good for states that
11194
11198
  * should not usually be used.
11195
11199
  */
11196
- advanced?: boolean;
11200
+ advanced?: ContextDependentConfig<P, boolean>;
11197
11201
  } & ({
11198
11202
  type: "readonly";
11199
11203
  variableType: "text";
@@ -11270,7 +11274,7 @@ interface CodeComponentMeta<P> {
11270
11274
  /**
11271
11275
  * An object describing the component states to be used in Studio.
11272
11276
  */
11273
- states?: Record<string, StateSpec>;
11277
+ states?: Record<string, StateSpec<P>>;
11274
11278
  /**
11275
11279
  * An object describing the components helpers to be used in Studio.
11276
11280
  * 1. states helpers: Each state can receive an "initFunc" prop to initialize
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasmicapp/react-web",
3
- "version": "0.2.253",
3
+ "version": "0.2.254",
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",
@@ -89,9 +89,9 @@
89
89
  "prettier": {},
90
90
  "dependencies": {
91
91
  "@plasmicapp/auth-react": "0.0.7",
92
- "@plasmicapp/data-sources": "0.1.110",
92
+ "@plasmicapp/data-sources": "0.1.111",
93
93
  "@plasmicapp/data-sources-context": "0.1.11",
94
- "@plasmicapp/host": "1.0.163",
94
+ "@plasmicapp/host": "1.0.164",
95
95
  "@plasmicapp/prepass": "1.0.3",
96
96
  "@plasmicapp/query": "0.1.68",
97
97
  "@react-aria/checkbox": "^3.5.0",
@@ -165,5 +165,5 @@
165
165
  "react": ">=16.8.0",
166
166
  "react-dom": ">=16.8.0"
167
167
  },
168
- "gitHead": "07863c702fe90fad546df84838265ab7348f2470"
168
+ "gitHead": "83b92a98990acc021cc904ef919c6176e88a3238"
169
169
  }