@plasmicapp/react-web 0.2.379 → 0.2.380

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 +5 -2
  2. package/package.json +4 -4
package/dist/all.d.ts CHANGED
@@ -11976,7 +11976,7 @@ interface EventHandlerType<P> extends PropTypeBase<P> {
11976
11976
  }
11977
11977
  interface ChoiceTypeBase$1<P, T> extends PropTypeBaseDefault<P, T> {
11978
11978
  type: "choice";
11979
- options: string[] | {
11979
+ options: (string | number | boolean)[] | {
11980
11980
  label: string;
11981
11981
  value: string | number | boolean;
11982
11982
  }[] | ContextDependentConfig$1<P, string[] | {
@@ -12255,7 +12255,10 @@ interface PlainVoidType extends BaseParam {
12255
12255
  type: "void";
12256
12256
  }
12257
12257
  type VoidType = PlainVoidType | AnyType;
12258
- type RestrictedType<P, T> = T extends string ? StringType<P, T> : T extends number ? NumberType<P, T> : T extends boolean ? BooleanType<P, T> : T extends null ? NullType : T extends undefined ? UndefinedType : T extends Array<any> ? ArrayType : T extends object ? ObjectType : AnyType;
12258
+ type IsAny<T> = 0 extends 1 & T ? true : false;
12259
+ type CommonType<T> = T extends null ? NullType : T extends undefined ? UndefinedType : T extends Array<any> ? ArrayType : T extends object ? ObjectType : AnyType;
12260
+ type AnyTyping<P, T> = T extends string ? StringType<P, T> : T extends number ? NumberType<P, T> : T extends boolean ? BooleanType<P, T> : CommonType<T>;
12261
+ type RestrictedType<P, T> = IsAny<T> extends true ? AnyTyping<P, T> : [T] extends [string] ? StringType<P, T> : [T] extends [number] ? NumberType<P, T> : [T] extends [boolean] ? BooleanType<P, T> : CommonType<T>;
12259
12262
  type ParamType<P, T> = RestrictedType<P, T>;
12260
12263
  type RequiredParam<P, T> = ParamType<P, T> & {
12261
12264
  isOptional?: false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasmicapp/react-web",
3
- "version": "0.2.379",
3
+ "version": "0.2.380",
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",
@@ -97,9 +97,9 @@
97
97
  },
98
98
  "dependencies": {
99
99
  "@plasmicapp/auth-react": "0.0.22",
100
- "@plasmicapp/data-sources": "0.1.176",
100
+ "@plasmicapp/data-sources": "0.1.177",
101
101
  "@plasmicapp/data-sources-context": "0.1.21",
102
- "@plasmicapp/host": "1.0.212",
102
+ "@plasmicapp/host": "1.0.213",
103
103
  "@plasmicapp/loader-splits": "1.0.64",
104
104
  "@plasmicapp/nextjs-app-router": "1.0.16",
105
105
  "@plasmicapp/prepass": "1.0.19",
@@ -156,5 +156,5 @@
156
156
  "react": ">=16.8.0",
157
157
  "react-dom": ">=16.8.0"
158
158
  },
159
- "gitHead": "e14716fd42ea79a35e4844d660f6d12aa97a9768"
159
+ "gitHead": "3a42fbf1505e2f4e51f0a4d93cb4de16617bba84"
160
160
  }