@plasmicapp/host
Advanced tools
Comparing version 1.0.163 to 1.0.164
@@ -502,3 +502,3 @@ 'use client'; | ||
var hostVersion = "1.0.163"; | ||
var hostVersion = "1.0.164"; | ||
@@ -505,0 +505,0 @@ var _a; |
@@ -524,3 +524,3 @@ 'use client'; | ||
var hostVersion = "1.0.163"; | ||
var hostVersion = "1.0.164"; | ||
@@ -527,0 +527,0 @@ var _a; |
@@ -50,9 +50,13 @@ /// <reference types="react" /> | ||
} | ||
export type StateSpec = { | ||
export type StateSpec<P> = { | ||
onChangeProp: string; | ||
/** | ||
* If true, will hide the state on studio. | ||
*/ | ||
hidden?: ContextDependentConfig<P, boolean>; | ||
/** | ||
* If true, will hide the state in a collapsed section; good for states that | ||
* should not usually be used. | ||
*/ | ||
advanced?: boolean; | ||
advanced?: ContextDependentConfig<P, boolean>; | ||
} & ({ | ||
@@ -135,3 +139,3 @@ type: "readonly"; | ||
*/ | ||
states?: Record<string, StateSpec>; | ||
states?: Record<string, StateSpec<P>>; | ||
/** | ||
@@ -138,0 +142,0 @@ * An object describing the components helpers to be used in Studio. |
@@ -1,1 +0,1 @@ | ||
export declare const hostVersion = "1.0.163"; | ||
export declare const hostVersion = "1.0.164"; |
{ | ||
"name": "@plasmicapp/host", | ||
"version": "1.0.163", | ||
"version": "1.0.164", | ||
"description": "plasmic library for app hosting", | ||
@@ -83,3 +83,3 @@ "main": "dist/index.cjs.js", | ||
}, | ||
"gitHead": "ab608db4274a0622f29909c4c735aa79313b779d" | ||
"gitHead": "83b92a98990acc021cc904ef919c6176e88a3238" | ||
} |
@@ -50,9 +50,13 @@ /// <reference types="react" /> | ||
} | ||
export type StateSpec = { | ||
export type StateSpec<P> = { | ||
onChangeProp: string; | ||
/** | ||
* If true, will hide the state on studio. | ||
*/ | ||
hidden?: ContextDependentConfig<P, boolean>; | ||
/** | ||
* If true, will hide the state in a collapsed section; good for states that | ||
* should not usually be used. | ||
*/ | ||
advanced?: boolean; | ||
advanced?: ContextDependentConfig<P, boolean>; | ||
} & ({ | ||
@@ -135,3 +139,3 @@ type: "readonly"; | ||
*/ | ||
states?: Record<string, StateSpec>; | ||
states?: Record<string, StateSpec<P>>; | ||
/** | ||
@@ -138,0 +142,0 @@ * An object describing the components helpers to be used in Studio. |
@@ -1,1 +0,1 @@ | ||
export declare const hostVersion = "1.0.163"; | ||
export declare const hostVersion = "1.0.164"; |
@@ -50,9 +50,13 @@ /// <reference types="react" /> | ||
} | ||
export type StateSpec = { | ||
export type StateSpec<P> = { | ||
onChangeProp: string; | ||
/** | ||
* If true, will hide the state on studio. | ||
*/ | ||
hidden?: ContextDependentConfig<P, boolean>; | ||
/** | ||
* If true, will hide the state in a collapsed section; good for states that | ||
* should not usually be used. | ||
*/ | ||
advanced?: boolean; | ||
advanced?: ContextDependentConfig<P, boolean>; | ||
} & ({ | ||
@@ -135,3 +139,3 @@ type: "readonly"; | ||
*/ | ||
states?: Record<string, StateSpec>; | ||
states?: Record<string, StateSpec<P>>; | ||
/** | ||
@@ -138,0 +142,0 @@ * An object describing the components helpers to be used in Studio. |
@@ -1,1 +0,1 @@ | ||
export declare const hostVersion = "1.0.163"; | ||
export declare const hostVersion = "1.0.164"; |
@@ -50,9 +50,13 @@ /// <reference types="react" /> | ||
} | ||
export type StateSpec = { | ||
export type StateSpec<P> = { | ||
onChangeProp: string; | ||
/** | ||
* If true, will hide the state on studio. | ||
*/ | ||
hidden?: ContextDependentConfig<P, boolean>; | ||
/** | ||
* If true, will hide the state in a collapsed section; good for states that | ||
* should not usually be used. | ||
*/ | ||
advanced?: boolean; | ||
advanced?: ContextDependentConfig<P, boolean>; | ||
} & ({ | ||
@@ -135,3 +139,3 @@ type: "readonly"; | ||
*/ | ||
states?: Record<string, StateSpec>; | ||
states?: Record<string, StateSpec<P>>; | ||
/** | ||
@@ -138,0 +142,0 @@ * An object describing the components helpers to be used in Studio. |
@@ -1,1 +0,1 @@ | ||
export declare const hostVersion = "1.0.163"; | ||
export declare const hostVersion = "1.0.164"; |
@@ -50,9 +50,13 @@ /// <reference types="react" /> | ||
} | ||
export type StateSpec = { | ||
export type StateSpec<P> = { | ||
onChangeProp: string; | ||
/** | ||
* If true, will hide the state on studio. | ||
*/ | ||
hidden?: ContextDependentConfig<P, boolean>; | ||
/** | ||
* If true, will hide the state in a collapsed section; good for states that | ||
* should not usually be used. | ||
*/ | ||
advanced?: boolean; | ||
advanced?: ContextDependentConfig<P, boolean>; | ||
} & ({ | ||
@@ -135,3 +139,3 @@ type: "readonly"; | ||
*/ | ||
states?: Record<string, StateSpec>; | ||
states?: Record<string, StateSpec<P>>; | ||
/** | ||
@@ -138,0 +142,0 @@ * An object describing the components helpers to be used in Studio. |
@@ -1,1 +0,1 @@ | ||
export declare const hostVersion = "1.0.163"; | ||
export declare const hostVersion = "1.0.164"; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
437710
6724