@plasmicapp/react-web 0.2.380 → 0.2.381
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.
- package/dist/all.d.ts +15 -4
- 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>;
|
|
@@ -12231,6 +12231,17 @@ interface PlainBooleanType<T extends boolean = boolean> extends BaseParam {
|
|
|
12231
12231
|
type: "boolean" | `${boolean extends T ? boolean : T}`;
|
|
12232
12232
|
}
|
|
12233
12233
|
type BooleanType<P, T extends boolean = boolean> = PlainBooleanType<T> | ChoiceType<P, T> | AnyType;
|
|
12234
|
+
type GraphQLValue = {
|
|
12235
|
+
query: string;
|
|
12236
|
+
variables?: Record<string, any>;
|
|
12237
|
+
};
|
|
12238
|
+
interface GraphQLType<P> extends BaseParam {
|
|
12239
|
+
type: "code";
|
|
12240
|
+
lang: "graphql";
|
|
12241
|
+
endpoint: string | ContextDependentConfig<P, string>;
|
|
12242
|
+
method?: string | ContextDependentConfig<P, string>;
|
|
12243
|
+
headers?: object | ContextDependentConfig<P, object>;
|
|
12244
|
+
}
|
|
12234
12245
|
interface PlainNullType extends BaseParam {
|
|
12235
12246
|
type: "null";
|
|
12236
12247
|
}
|
|
@@ -12256,7 +12267,7 @@ interface PlainVoidType extends BaseParam {
|
|
|
12256
12267
|
}
|
|
12257
12268
|
type VoidType = PlainVoidType | AnyType;
|
|
12258
12269
|
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;
|
|
12270
|
+
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
12271
|
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
12272
|
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
12273
|
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.
|
|
3
|
+
"version": "0.2.381",
|
|
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.
|
|
100
|
+
"@plasmicapp/data-sources": "0.1.178",
|
|
101
101
|
"@plasmicapp/data-sources-context": "0.1.21",
|
|
102
|
-
"@plasmicapp/host": "1.0.
|
|
102
|
+
"@plasmicapp/host": "1.0.214",
|
|
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": "
|
|
159
|
+
"gitHead": "e25172b4452e1a8405c93cfc7fd54e531ecab146"
|
|
160
160
|
}
|