@plasmicapp/react-web 0.2.243 → 0.2.244

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 +22 -1
  2. package/package.json +5 -5
package/dist/all.d.ts CHANGED
@@ -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.244",
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.102",
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.157",
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": "298c58ac987632c558aaf32afed63aab5a26e154"
159
159
  }