@plasmicapp/react-web 0.2.380 → 0.2.382

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 +16 -4
  2. package/package.json +4 -4
package/dist/all.d.ts CHANGED
@@ -11886,11 +11886,11 @@ interface RichBooleanType<P> extends PropTypeBaseDefault<P, boolean> {
11886
11886
  type: "boolean";
11887
11887
  }
11888
11888
  type BooleanType$1<P> = "boolean" | RichBooleanType<P>;
11889
- type GraphQLValue = {
11889
+ type GraphQLValue$1 = {
11890
11890
  query: string;
11891
11891
  variables?: Record<string, any>;
11892
11892
  };
11893
- interface GraphQLType<P> extends PropTypeBaseDefault<P, GraphQLValue> {
11893
+ interface GraphQLType$1<P> extends PropTypeBaseDefault<P, GraphQLValue$1> {
11894
11894
  type: "code";
11895
11895
  lang: "graphql";
11896
11896
  endpoint: string | ContextDependentConfig$1<P, string>;
@@ -12130,7 +12130,7 @@ interface RichCustomType<P> extends PropTypeBaseDefault<P, any> {
12130
12130
  }
12131
12131
  type CustomType<P> = RichCustomType<P> | CustomControl<P>;
12132
12132
  type PrimitiveType<P = any> = Extract<StringType$1<P> | BooleanType$1<P> | NumberType$1<P> | JSONLikeType<P>, string>;
12133
- type PropType$1<P> = StringType$1<P> | BooleanType$1<P> | GraphQLType<P> | NumberType$1<P> | JSONLikeType<P> | DataSourceType<P> | DataPickerType<P> | ExprEditorType<P> | FormValidationRulesType<P> | EventHandlerType<P> | ChoiceType$1<P> | CustomType<P> | ImageUrlType<P> | SlotType<P> | DateStringType<P> | DateRangeStringsType<P>;
12133
+ type PropType$1<P> = StringType$1<P> | BooleanType$1<P> | GraphQLType$1<P> | NumberType$1<P> | JSONLikeType<P> | DataSourceType<P> | DataPickerType<P> | ExprEditorType<P> | FormValidationRulesType<P> | EventHandlerType<P> | ChoiceType$1<P> | CustomType<P> | ImageUrlType<P> | SlotType<P> | DateStringType<P> | DateRangeStringsType<P>;
12134
12134
  type ArgType<P> = Exclude<PropType$1<P>, SlotType<P> | EventHandlerType<P>>;
12135
12135
  type StringCompatType<P> = DateStringType<P> | StringType$1<P> | ChoiceType$1<P> | JSONLikeType<P> | ImageUrlType<P> | CustomType<P> | DataPickerType<P>;
12136
12136
  type BoolCompatType<P> = BooleanType$1<P> | CustomType<P> | DataPickerType<P>;
@@ -12192,6 +12192,7 @@ type ControlContext<P> = [
12192
12192
  type ContextDependentConfig<P, R> = (...args: ControlContext<P>) => R;
12193
12193
  interface BaseParam {
12194
12194
  name: string;
12195
+ displayName?: string;
12195
12196
  description?: string;
12196
12197
  isOptional?: boolean;
12197
12198
  isRestParameter?: boolean;
@@ -12231,6 +12232,17 @@ interface PlainBooleanType<T extends boolean = boolean> extends BaseParam {
12231
12232
  type: "boolean" | `${boolean extends T ? boolean : T}`;
12232
12233
  }
12233
12234
  type BooleanType<P, T extends boolean = boolean> = PlainBooleanType<T> | ChoiceType<P, T> | AnyType;
12235
+ type GraphQLValue = {
12236
+ query: string;
12237
+ variables?: Record<string, any>;
12238
+ };
12239
+ interface GraphQLType<P> extends BaseParam {
12240
+ type: "code";
12241
+ lang: "graphql";
12242
+ endpoint: string | ContextDependentConfig<P, string>;
12243
+ method?: string | ContextDependentConfig<P, string>;
12244
+ headers?: object | ContextDependentConfig<P, object>;
12245
+ }
12234
12246
  interface PlainNullType extends BaseParam {
12235
12247
  type: "null";
12236
12248
  }
@@ -12256,7 +12268,7 @@ interface PlainVoidType extends BaseParam {
12256
12268
  }
12257
12269
  type VoidType = PlainVoidType | AnyType;
12258
12270
  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;
12271
+ type CommonType<T> = T extends GraphQLValue ? GraphQLType<T> : T extends null ? NullType : T extends undefined ? UndefinedType : T extends Array<any> ? ArrayType : T extends object ? ObjectType : AnyType;
12260
12272
  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
12273
  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>;
12262
12274
  type ParamType<P, T> = RestrictedType<P, T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasmicapp/react-web",
3
- "version": "0.2.380",
3
+ "version": "0.2.382",
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.177",
100
+ "@plasmicapp/data-sources": "0.1.179",
101
101
  "@plasmicapp/data-sources-context": "0.1.21",
102
- "@plasmicapp/host": "1.0.213",
102
+ "@plasmicapp/host": "1.0.215",
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": "3a42fbf1505e2f4e51f0a4d93cb4de16617bba84"
159
+ "gitHead": "cb158b9718e795e57bbafc544236e704ace9a809"
160
160
  }