@plasmicapp/react-web 0.2.235 → 0.2.236

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 +6 -0
  2. package/package.json +4 -4
package/dist/all.d.ts CHANGED
@@ -11263,6 +11263,7 @@ interface PropTypeBase<P> {
11263
11263
  displayName?: string;
11264
11264
  description?: string;
11265
11265
  helpText?: string;
11266
+ required?: boolean;
11266
11267
  /**
11267
11268
  * If the user has chosen to use a dynamic expression for this prop, provide
11268
11269
  * a hint as to the expected values that the expression should evaluate to.
@@ -11306,6 +11307,11 @@ interface Defaultable<P, T> {
11306
11307
  */
11307
11308
  defaultExpr?: string;
11308
11309
  defaultExprHint?: string;
11310
+ /**
11311
+ * This function validates whether the prop value is valid.
11312
+ * If the value is invalid, it returns an error message. Otherwise, it returns true.
11313
+ */
11314
+ validator?: (value: T, ...args: ControlContext<P>) => (string | true) | Promise<string | true>;
11309
11315
  }
11310
11316
  interface Controllable {
11311
11317
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasmicapp/react-web",
3
- "version": "0.2.235",
3
+ "version": "0.2.236",
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,9 +86,9 @@
86
86
  "prettier": {},
87
87
  "dependencies": {
88
88
  "@plasmicapp/auth-react": "^0.0.5",
89
- "@plasmicapp/data-sources": "0.1.95",
89
+ "@plasmicapp/data-sources": "0.1.96",
90
90
  "@plasmicapp/data-sources-context": "0.1.11",
91
- "@plasmicapp/host": "1.0.150",
91
+ "@plasmicapp/host": "1.0.151",
92
92
  "@plasmicapp/prepass": "1.0.1",
93
93
  "@plasmicapp/query": "0.1.67",
94
94
  "@react-aria/checkbox": "^3.5.0",
@@ -155,5 +155,5 @@
155
155
  "react": ">=16.8.0",
156
156
  "react-dom": ">=16.8.0"
157
157
  },
158
- "gitHead": "d933fd1793c7b2d01af2400582593724ec364085"
158
+ "gitHead": "35d4595c6d82b47128fdb0c536fab54d7bbc609f"
159
159
  }