@plasmicapp/host 1.0.225 → 1.0.227
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/host.esm.js +1 -1
- package/dist/host.esm.js.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/prop-types.d.ts +2 -2
- package/dist/types/component-types.d.ts +4 -2
- package/dist/types/function-types.d.ts +4 -2
- package/dist/types/misc-types.d.ts +10 -0
- package/dist/version.d.ts +1 -1
- package/package.json +3 -3
- package/registerComponent/dist/prop-types.d.ts +2 -2
- package/registerComponent/dist/types/component-types.d.ts +4 -2
- package/registerComponent/dist/types/function-types.d.ts +4 -2
- package/registerComponent/dist/types/misc-types.d.ts +10 -0
- package/registerComponent/dist/version.d.ts +1 -1
- package/registerFunction/dist/prop-types.d.ts +2 -2
- package/registerFunction/dist/types/component-types.d.ts +4 -2
- package/registerFunction/dist/types/function-types.d.ts +4 -2
- package/registerFunction/dist/types/misc-types.d.ts +10 -0
- package/registerFunction/dist/version.d.ts +1 -1
- package/registerGlobalContext/dist/prop-types.d.ts +2 -2
- package/registerGlobalContext/dist/types/component-types.d.ts +4 -2
- package/registerGlobalContext/dist/types/function-types.d.ts +4 -2
- package/registerGlobalContext/dist/types/misc-types.d.ts +10 -0
- package/registerGlobalContext/dist/version.d.ts +1 -1
- package/registerToken/dist/prop-types.d.ts +2 -2
- package/registerToken/dist/types/component-types.d.ts +4 -2
- package/registerToken/dist/types/function-types.d.ts +4 -2
- package/registerToken/dist/types/misc-types.d.ts +10 -0
- package/registerToken/dist/version.d.ts +1 -1
- package/registerTrait/dist/prop-types.d.ts +2 -2
- package/registerTrait/dist/types/component-types.d.ts +4 -2
- package/registerTrait/dist/types/function-types.d.ts +4 -2
- package/registerTrait/dist/types/misc-types.d.ts +10 -0
- package/registerTrait/dist/version.d.ts +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { CSSProperties, PlasmicElement } from "../element-types";
|
|
3
3
|
import { ChoiceCore, ChoiceValue } from "./choice-type";
|
|
4
4
|
import { ArrayTypeBaseCore, ObjectTypeBaseCore } from "./container-types";
|
|
5
|
-
import { DataPickerValueType, DataSourceCore, GraphQLCore, GraphQLValue, RichDataPickerCore, RichExprEditorCore } from "./misc-types";
|
|
5
|
+
import { DataPickerValueType, DataSourceCore, DynamicCore, GraphQLCore, GraphQLValue, RichDataPickerCore, RichExprEditorCore } from "./misc-types";
|
|
6
6
|
import { CardPickerCore, ClassCore, CodeStringCore, ColorCore, DateRangeStringsCore, DateStringCore, HrefCore, NumberTypeBaseCore, PlainNumberCore, PlainStringCore, RichBooleanCore, RichTextCore, SliderNumberCore, ThemeResetClassCore } from "./primitive-types";
|
|
7
7
|
import { CommonTypeBase, ContextDependentConfig, ControlExtras, GenericContext, InferDataType } from "./shared-controls";
|
|
8
8
|
export type ComponentControlContext<P> = GenericContext<P, // Full component props
|
|
@@ -247,8 +247,10 @@ export interface RichCustomType<P> extends PropTypeBaseDefault<P, any> {
|
|
|
247
247
|
control: CustomControl<P>;
|
|
248
248
|
}
|
|
249
249
|
export type CustomType<P> = RichCustomType<P> | CustomControl<P>;
|
|
250
|
+
export interface DynamicType<P> extends PropTypeBase<ComponentControlContext<P>>, DynamicCore<ComponentControlContext<P>, PropType<P>> {
|
|
251
|
+
}
|
|
250
252
|
export type PrimitiveType<P = any> = Extract<StringType<P> | BooleanType<P> | NumberType<P> | JSONLikeType<P>, string>;
|
|
251
|
-
export type PropType<P> = StringType<P> | BooleanType<P> | GraphQLType<P> | NumberType<P> | JSONLikeType<P> | DataSourceType<P> | DataPickerType<P> | ExprEditorType<P> | FormValidationRulesType<P> | EventHandlerType<P> | ChoiceType<P> | CustomType<P> | ImageUrlType<P> | SlotType<P> | DateStringType<P> | DateRangeStringsType<P>;
|
|
253
|
+
export type PropType<P> = StringType<P> | BooleanType<P> | GraphQLType<P> | NumberType<P> | JSONLikeType<P> | DataSourceType<P> | DataPickerType<P> | ExprEditorType<P> | FormValidationRulesType<P> | EventHandlerType<P> | ChoiceType<P> | CustomType<P> | DynamicType<P> | ImageUrlType<P> | SlotType<P> | DateStringType<P> | DateRangeStringsType<P>;
|
|
252
254
|
export type ArgType<P> = Exclude<PropType<P>, SlotType<P> | EventHandlerType<P>>;
|
|
253
255
|
export type StringCompatType<P> = DateStringType<P> | StringType<P> | ChoiceType<P> | JSONLikeType<P> | ImageUrlType<P> | CustomType<P> | DataPickerType<P>;
|
|
254
256
|
export type BoolCompatType<P> = BooleanType<P> | CustomType<P> | DataPickerType<P>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChoiceCore, ChoiceValue } from "./choice-type";
|
|
2
2
|
import { ArrayTypeBaseCore, ObjectTypeBaseCore } from "./container-types";
|
|
3
|
-
import { GraphQLCore, GraphQLValue } from "./misc-types";
|
|
3
|
+
import { DynamicCore, GraphQLCore, GraphQLValue } from "./misc-types";
|
|
4
4
|
import { DateRangeStringsCore, DateStringCore, NumberTypeBaseCore, RichBooleanCore } from "./primitive-types";
|
|
5
5
|
import { CommonTypeBase, ContextDependentConfig, GenericContext } from "./shared-controls";
|
|
6
6
|
import { Nullish } from "./type-utils";
|
|
@@ -65,10 +65,12 @@ export interface CustomChoiceType<P, Opt extends ChoiceValue = ChoiceValue> exte
|
|
|
65
65
|
export type ChoiceType<P, T extends ChoiceValue = ChoiceValue> = SingleChoiceType<P, T> | MultiChoiceType<P, T> | CustomChoiceType<P, T>;
|
|
66
66
|
export type DateStringType = BaseParam & DateStringCore;
|
|
67
67
|
export type DateRangeStringsType = BaseParam & DateRangeStringsCore;
|
|
68
|
+
export interface DynamicType<P> extends BaseParam, DynamicCore<FunctionControlContext<ToTuple<P>>, ParamType<P, any>> {
|
|
69
|
+
}
|
|
68
70
|
export type RestrictedType<P, T> = IsAny<T> extends true ? AnyTyping<P, T> : [
|
|
69
71
|
T
|
|
70
72
|
] extends [string] ? StringType<P, T> : [T] extends [number] ? NumberType<P, T> : [T] extends [boolean] ? BooleanType<P, T> : T extends string | null | undefined ? Exclude<T, null | undefined> extends string ? StringType<P, T extends string ? T : string> : CommonType<P, T> : T extends number | null | undefined ? Exclude<T, null | undefined> extends number ? NumberType<P, T extends number ? T : number> : CommonType<P, T> : T extends boolean | null | undefined ? Exclude<T, null | undefined> extends boolean ? BooleanType<P, T extends boolean ? T : boolean> : CommonType<P, T> : CommonType<P, T>;
|
|
71
|
-
export type ParamType<P, T> = RestrictedType<P, T>;
|
|
73
|
+
export type ParamType<P, T> = RestrictedType<P, T> | DynamicType<P>;
|
|
72
74
|
export type RequiredParam<P, T> = ParamType<P, T> & {
|
|
73
75
|
isOptional?: false;
|
|
74
76
|
isRestParameter?: false;
|
|
@@ -26,3 +26,13 @@ export interface GraphQLCore<Ctx extends any[]> {
|
|
|
26
26
|
method?: string | ContextDependentConfig<Ctx, string>;
|
|
27
27
|
headers?: object | ContextDependentConfig<Ctx, object>;
|
|
28
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* Dynamic prop/param type that returns different control types based on context
|
|
31
|
+
*/
|
|
32
|
+
export interface DynamicCore<Ctx extends any[], ControlType> {
|
|
33
|
+
type: "dynamic";
|
|
34
|
+
/**
|
|
35
|
+
* Function that takes the context and returns a control type
|
|
36
|
+
*/
|
|
37
|
+
control: ContextDependentConfig<Ctx, ControlType>;
|
|
38
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const hostVersion = "1.0.
|
|
1
|
+
export declare const hostVersion = "1.0.227";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChoiceObject, ChoiceOptions, ChoiceValue } from "./types/choice-type";
|
|
2
|
-
import { ComponentControlContext } from "./types/component-types";
|
|
2
|
+
import { ComponentControlContext, DynamicType } from "./types/component-types";
|
|
3
3
|
import { DataPickerValueType, GraphQLValue } from "./types/misc-types";
|
|
4
4
|
import { CanvasComponentProps, ContextDependentConfig, ControlExtras, InferDataType } from "./types/shared-controls";
|
|
5
|
-
export type { CanvasComponentProps, ChoiceObject, ChoiceOptions, ChoiceValue, ComponentControlContext, ContextDependentConfig, ControlExtras, DataPickerValueType, GraphQLValue, InferDataType, };
|
|
5
|
+
export type { CanvasComponentProps, ChoiceObject, ChoiceOptions, ChoiceValue, ComponentControlContext, ContextDependentConfig, ControlExtras, DataPickerValueType, DynamicType, GraphQLValue, InferDataType, };
|
|
6
6
|
export type * from "./types/component-types";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { CSSProperties, PlasmicElement } from "../element-types";
|
|
3
3
|
import { ChoiceCore, ChoiceValue } from "./choice-type";
|
|
4
4
|
import { ArrayTypeBaseCore, ObjectTypeBaseCore } from "./container-types";
|
|
5
|
-
import { DataPickerValueType, DataSourceCore, GraphQLCore, GraphQLValue, RichDataPickerCore, RichExprEditorCore } from "./misc-types";
|
|
5
|
+
import { DataPickerValueType, DataSourceCore, DynamicCore, GraphQLCore, GraphQLValue, RichDataPickerCore, RichExprEditorCore } from "./misc-types";
|
|
6
6
|
import { CardPickerCore, ClassCore, CodeStringCore, ColorCore, DateRangeStringsCore, DateStringCore, HrefCore, NumberTypeBaseCore, PlainNumberCore, PlainStringCore, RichBooleanCore, RichTextCore, SliderNumberCore, ThemeResetClassCore } from "./primitive-types";
|
|
7
7
|
import { CommonTypeBase, ContextDependentConfig, ControlExtras, GenericContext, InferDataType } from "./shared-controls";
|
|
8
8
|
export type ComponentControlContext<P> = GenericContext<P, // Full component props
|
|
@@ -247,8 +247,10 @@ export interface RichCustomType<P> extends PropTypeBaseDefault<P, any> {
|
|
|
247
247
|
control: CustomControl<P>;
|
|
248
248
|
}
|
|
249
249
|
export type CustomType<P> = RichCustomType<P> | CustomControl<P>;
|
|
250
|
+
export interface DynamicType<P> extends PropTypeBase<ComponentControlContext<P>>, DynamicCore<ComponentControlContext<P>, PropType<P>> {
|
|
251
|
+
}
|
|
250
252
|
export type PrimitiveType<P = any> = Extract<StringType<P> | BooleanType<P> | NumberType<P> | JSONLikeType<P>, string>;
|
|
251
|
-
export type PropType<P> = StringType<P> | BooleanType<P> | GraphQLType<P> | NumberType<P> | JSONLikeType<P> | DataSourceType<P> | DataPickerType<P> | ExprEditorType<P> | FormValidationRulesType<P> | EventHandlerType<P> | ChoiceType<P> | CustomType<P> | ImageUrlType<P> | SlotType<P> | DateStringType<P> | DateRangeStringsType<P>;
|
|
253
|
+
export type PropType<P> = StringType<P> | BooleanType<P> | GraphQLType<P> | NumberType<P> | JSONLikeType<P> | DataSourceType<P> | DataPickerType<P> | ExprEditorType<P> | FormValidationRulesType<P> | EventHandlerType<P> | ChoiceType<P> | CustomType<P> | DynamicType<P> | ImageUrlType<P> | SlotType<P> | DateStringType<P> | DateRangeStringsType<P>;
|
|
252
254
|
export type ArgType<P> = Exclude<PropType<P>, SlotType<P> | EventHandlerType<P>>;
|
|
253
255
|
export type StringCompatType<P> = DateStringType<P> | StringType<P> | ChoiceType<P> | JSONLikeType<P> | ImageUrlType<P> | CustomType<P> | DataPickerType<P>;
|
|
254
256
|
export type BoolCompatType<P> = BooleanType<P> | CustomType<P> | DataPickerType<P>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChoiceCore, ChoiceValue } from "./choice-type";
|
|
2
2
|
import { ArrayTypeBaseCore, ObjectTypeBaseCore } from "./container-types";
|
|
3
|
-
import { GraphQLCore, GraphQLValue } from "./misc-types";
|
|
3
|
+
import { DynamicCore, GraphQLCore, GraphQLValue } from "./misc-types";
|
|
4
4
|
import { DateRangeStringsCore, DateStringCore, NumberTypeBaseCore, RichBooleanCore } from "./primitive-types";
|
|
5
5
|
import { CommonTypeBase, ContextDependentConfig, GenericContext } from "./shared-controls";
|
|
6
6
|
import { Nullish } from "./type-utils";
|
|
@@ -65,10 +65,12 @@ export interface CustomChoiceType<P, Opt extends ChoiceValue = ChoiceValue> exte
|
|
|
65
65
|
export type ChoiceType<P, T extends ChoiceValue = ChoiceValue> = SingleChoiceType<P, T> | MultiChoiceType<P, T> | CustomChoiceType<P, T>;
|
|
66
66
|
export type DateStringType = BaseParam & DateStringCore;
|
|
67
67
|
export type DateRangeStringsType = BaseParam & DateRangeStringsCore;
|
|
68
|
+
export interface DynamicType<P> extends BaseParam, DynamicCore<FunctionControlContext<ToTuple<P>>, ParamType<P, any>> {
|
|
69
|
+
}
|
|
68
70
|
export type RestrictedType<P, T> = IsAny<T> extends true ? AnyTyping<P, T> : [
|
|
69
71
|
T
|
|
70
72
|
] extends [string] ? StringType<P, T> : [T] extends [number] ? NumberType<P, T> : [T] extends [boolean] ? BooleanType<P, T> : T extends string | null | undefined ? Exclude<T, null | undefined> extends string ? StringType<P, T extends string ? T : string> : CommonType<P, T> : T extends number | null | undefined ? Exclude<T, null | undefined> extends number ? NumberType<P, T extends number ? T : number> : CommonType<P, T> : T extends boolean | null | undefined ? Exclude<T, null | undefined> extends boolean ? BooleanType<P, T extends boolean ? T : boolean> : CommonType<P, T> : CommonType<P, T>;
|
|
71
|
-
export type ParamType<P, T> = RestrictedType<P, T>;
|
|
73
|
+
export type ParamType<P, T> = RestrictedType<P, T> | DynamicType<P>;
|
|
72
74
|
export type RequiredParam<P, T> = ParamType<P, T> & {
|
|
73
75
|
isOptional?: false;
|
|
74
76
|
isRestParameter?: false;
|
|
@@ -26,3 +26,13 @@ export interface GraphQLCore<Ctx extends any[]> {
|
|
|
26
26
|
method?: string | ContextDependentConfig<Ctx, string>;
|
|
27
27
|
headers?: object | ContextDependentConfig<Ctx, object>;
|
|
28
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* Dynamic prop/param type that returns different control types based on context
|
|
31
|
+
*/
|
|
32
|
+
export interface DynamicCore<Ctx extends any[], ControlType> {
|
|
33
|
+
type: "dynamic";
|
|
34
|
+
/**
|
|
35
|
+
* Function that takes the context and returns a control type
|
|
36
|
+
*/
|
|
37
|
+
control: ContextDependentConfig<Ctx, ControlType>;
|
|
38
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const hostVersion = "1.0.
|
|
1
|
+
export declare const hostVersion = "1.0.227";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChoiceObject, ChoiceOptions, ChoiceValue } from "./types/choice-type";
|
|
2
|
-
import { ComponentControlContext } from "./types/component-types";
|
|
2
|
+
import { ComponentControlContext, DynamicType } from "./types/component-types";
|
|
3
3
|
import { DataPickerValueType, GraphQLValue } from "./types/misc-types";
|
|
4
4
|
import { CanvasComponentProps, ContextDependentConfig, ControlExtras, InferDataType } from "./types/shared-controls";
|
|
5
|
-
export type { CanvasComponentProps, ChoiceObject, ChoiceOptions, ChoiceValue, ComponentControlContext, ContextDependentConfig, ControlExtras, DataPickerValueType, GraphQLValue, InferDataType, };
|
|
5
|
+
export type { CanvasComponentProps, ChoiceObject, ChoiceOptions, ChoiceValue, ComponentControlContext, ContextDependentConfig, ControlExtras, DataPickerValueType, DynamicType, GraphQLValue, InferDataType, };
|
|
6
6
|
export type * from "./types/component-types";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { CSSProperties, PlasmicElement } from "../element-types";
|
|
3
3
|
import { ChoiceCore, ChoiceValue } from "./choice-type";
|
|
4
4
|
import { ArrayTypeBaseCore, ObjectTypeBaseCore } from "./container-types";
|
|
5
|
-
import { DataPickerValueType, DataSourceCore, GraphQLCore, GraphQLValue, RichDataPickerCore, RichExprEditorCore } from "./misc-types";
|
|
5
|
+
import { DataPickerValueType, DataSourceCore, DynamicCore, GraphQLCore, GraphQLValue, RichDataPickerCore, RichExprEditorCore } from "./misc-types";
|
|
6
6
|
import { CardPickerCore, ClassCore, CodeStringCore, ColorCore, DateRangeStringsCore, DateStringCore, HrefCore, NumberTypeBaseCore, PlainNumberCore, PlainStringCore, RichBooleanCore, RichTextCore, SliderNumberCore, ThemeResetClassCore } from "./primitive-types";
|
|
7
7
|
import { CommonTypeBase, ContextDependentConfig, ControlExtras, GenericContext, InferDataType } from "./shared-controls";
|
|
8
8
|
export type ComponentControlContext<P> = GenericContext<P, // Full component props
|
|
@@ -247,8 +247,10 @@ export interface RichCustomType<P> extends PropTypeBaseDefault<P, any> {
|
|
|
247
247
|
control: CustomControl<P>;
|
|
248
248
|
}
|
|
249
249
|
export type CustomType<P> = RichCustomType<P> | CustomControl<P>;
|
|
250
|
+
export interface DynamicType<P> extends PropTypeBase<ComponentControlContext<P>>, DynamicCore<ComponentControlContext<P>, PropType<P>> {
|
|
251
|
+
}
|
|
250
252
|
export type PrimitiveType<P = any> = Extract<StringType<P> | BooleanType<P> | NumberType<P> | JSONLikeType<P>, string>;
|
|
251
|
-
export type PropType<P> = StringType<P> | BooleanType<P> | GraphQLType<P> | NumberType<P> | JSONLikeType<P> | DataSourceType<P> | DataPickerType<P> | ExprEditorType<P> | FormValidationRulesType<P> | EventHandlerType<P> | ChoiceType<P> | CustomType<P> | ImageUrlType<P> | SlotType<P> | DateStringType<P> | DateRangeStringsType<P>;
|
|
253
|
+
export type PropType<P> = StringType<P> | BooleanType<P> | GraphQLType<P> | NumberType<P> | JSONLikeType<P> | DataSourceType<P> | DataPickerType<P> | ExprEditorType<P> | FormValidationRulesType<P> | EventHandlerType<P> | ChoiceType<P> | CustomType<P> | DynamicType<P> | ImageUrlType<P> | SlotType<P> | DateStringType<P> | DateRangeStringsType<P>;
|
|
252
254
|
export type ArgType<P> = Exclude<PropType<P>, SlotType<P> | EventHandlerType<P>>;
|
|
253
255
|
export type StringCompatType<P> = DateStringType<P> | StringType<P> | ChoiceType<P> | JSONLikeType<P> | ImageUrlType<P> | CustomType<P> | DataPickerType<P>;
|
|
254
256
|
export type BoolCompatType<P> = BooleanType<P> | CustomType<P> | DataPickerType<P>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChoiceCore, ChoiceValue } from "./choice-type";
|
|
2
2
|
import { ArrayTypeBaseCore, ObjectTypeBaseCore } from "./container-types";
|
|
3
|
-
import { GraphQLCore, GraphQLValue } from "./misc-types";
|
|
3
|
+
import { DynamicCore, GraphQLCore, GraphQLValue } from "./misc-types";
|
|
4
4
|
import { DateRangeStringsCore, DateStringCore, NumberTypeBaseCore, RichBooleanCore } from "./primitive-types";
|
|
5
5
|
import { CommonTypeBase, ContextDependentConfig, GenericContext } from "./shared-controls";
|
|
6
6
|
import { Nullish } from "./type-utils";
|
|
@@ -65,10 +65,12 @@ export interface CustomChoiceType<P, Opt extends ChoiceValue = ChoiceValue> exte
|
|
|
65
65
|
export type ChoiceType<P, T extends ChoiceValue = ChoiceValue> = SingleChoiceType<P, T> | MultiChoiceType<P, T> | CustomChoiceType<P, T>;
|
|
66
66
|
export type DateStringType = BaseParam & DateStringCore;
|
|
67
67
|
export type DateRangeStringsType = BaseParam & DateRangeStringsCore;
|
|
68
|
+
export interface DynamicType<P> extends BaseParam, DynamicCore<FunctionControlContext<ToTuple<P>>, ParamType<P, any>> {
|
|
69
|
+
}
|
|
68
70
|
export type RestrictedType<P, T> = IsAny<T> extends true ? AnyTyping<P, T> : [
|
|
69
71
|
T
|
|
70
72
|
] extends [string] ? StringType<P, T> : [T] extends [number] ? NumberType<P, T> : [T] extends [boolean] ? BooleanType<P, T> : T extends string | null | undefined ? Exclude<T, null | undefined> extends string ? StringType<P, T extends string ? T : string> : CommonType<P, T> : T extends number | null | undefined ? Exclude<T, null | undefined> extends number ? NumberType<P, T extends number ? T : number> : CommonType<P, T> : T extends boolean | null | undefined ? Exclude<T, null | undefined> extends boolean ? BooleanType<P, T extends boolean ? T : boolean> : CommonType<P, T> : CommonType<P, T>;
|
|
71
|
-
export type ParamType<P, T> = RestrictedType<P, T>;
|
|
73
|
+
export type ParamType<P, T> = RestrictedType<P, T> | DynamicType<P>;
|
|
72
74
|
export type RequiredParam<P, T> = ParamType<P, T> & {
|
|
73
75
|
isOptional?: false;
|
|
74
76
|
isRestParameter?: false;
|
|
@@ -26,3 +26,13 @@ export interface GraphQLCore<Ctx extends any[]> {
|
|
|
26
26
|
method?: string | ContextDependentConfig<Ctx, string>;
|
|
27
27
|
headers?: object | ContextDependentConfig<Ctx, object>;
|
|
28
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* Dynamic prop/param type that returns different control types based on context
|
|
31
|
+
*/
|
|
32
|
+
export interface DynamicCore<Ctx extends any[], ControlType> {
|
|
33
|
+
type: "dynamic";
|
|
34
|
+
/**
|
|
35
|
+
* Function that takes the context and returns a control type
|
|
36
|
+
*/
|
|
37
|
+
control: ContextDependentConfig<Ctx, ControlType>;
|
|
38
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const hostVersion = "1.0.
|
|
1
|
+
export declare const hostVersion = "1.0.227";
|