@plasmicapp/react-web 0.2.243 → 0.2.245

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 +24 -3
  2. package/package.json +5 -5
package/dist/all.d.ts CHANGED
@@ -11651,13 +11651,13 @@ interface RichDataPickerType<P> extends PropTypeBaseDefault<P, DataPickerValueTy
11651
11651
  type: "dataSelector";
11652
11652
  data?: Record<string, any> | ContextDependentConfig<P, Record<string, any>>;
11653
11653
  alwaysShowValuePathAsLabel?: boolean;
11654
- mergeWithExternalData?: boolean;
11654
+ isolateEnv?: boolean;
11655
11655
  }
11656
11656
  type DataPickerType<P> = "dataPicker" | RichDataPickerType<P>;
11657
11657
  interface RichExprEditorType<P> extends PropTypeBaseDefault<P, DataPickerValueType> {
11658
11658
  type: "exprEditor";
11659
11659
  data?: Record<string, any> | ContextDependentConfig<P, Record<string, any>>;
11660
- mergeWithExternalData?: boolean;
11660
+ isolateEnv?: boolean;
11661
11661
  }
11662
11662
  type ExprEditorType<P> = "exprEditor" | RichExprEditorType<P>;
11663
11663
  interface FormValidationRulesType<P> extends PropTypeBaseDefault<P, any> {
@@ -11894,10 +11894,31 @@ declare global {
11894
11894
 
11895
11895
  type TokenType = "color" | "spacing" | "font-family" | "font-size" | "line-height" | "opacity";
11896
11896
  interface TokenRegistration {
11897
+ /**
11898
+ * Name for this token; should be stable across updates
11899
+ */
11897
11900
  name: string;
11898
- displayName: string;
11901
+ /**
11902
+ * Value for the token, which can either be a valid css value or a css reference
11903
+ * to a css variable provided by your host app, like `var(--my-token)`
11904
+ */
11899
11905
  value: string;
11906
+ /**
11907
+ * Type of token
11908
+ */
11900
11909
  type: TokenType;
11910
+ /**
11911
+ * Optional display name to use for this token, if you'd like to use a friendlier
11912
+ * name to display to Studio users
11913
+ */
11914
+ displayName?: string;
11915
+ /**
11916
+ * By default, if this token is a css variable reference like `var(--my-token)`,
11917
+ * then it is assumed that `--my-token` is defined on `:root`. If it is defined
11918
+ * in another element, then you can pass in a selector for that element,
11919
+ * like `.themeRoot`.
11920
+ */
11921
+ selector?: string;
11901
11922
  }
11902
11923
  declare global {
11903
11924
  interface Window {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasmicapp/react-web",
3
- "version": "0.2.243",
3
+ "version": "0.2.245",
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,10 +86,10 @@
86
86
  "prettier": {},
87
87
  "dependencies": {
88
88
  "@plasmicapp/auth-react": "0.0.6",
89
- "@plasmicapp/data-sources": "0.1.101",
89
+ "@plasmicapp/data-sources": "0.1.103",
90
90
  "@plasmicapp/data-sources-context": "0.1.11",
91
- "@plasmicapp/host": "1.0.156",
92
- "@plasmicapp/prepass": "1.0.1",
91
+ "@plasmicapp/host": "1.0.158",
92
+ "@plasmicapp/prepass": "1.0.2",
93
93
  "@plasmicapp/query": "0.1.67",
94
94
  "@react-aria/checkbox": "^3.5.0",
95
95
  "@react-aria/focus": "^3.7.0",
@@ -155,5 +155,5 @@
155
155
  "react": ">=16.8.0",
156
156
  "react-dom": ">=16.8.0"
157
157
  },
158
- "gitHead": "bad6fad8d377645b740133976cff201b1b20dc8d"
158
+ "gitHead": "2d1906eaf6967fc72e65858ddac67a0721563fd5"
159
159
  }