@makeswift/prop-controllers 0.3.0-canary.1 → 0.3.0-canary.3

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 (34) hide show
  1. package/dist/index.cjs +301 -136
  2. package/dist/types/data.d.ts +12 -0
  3. package/dist/types/data.d.ts.map +1 -1
  4. package/dist/types/gap-x/gap-x.d.ts +147 -358
  5. package/dist/types/gap-x/gap-x.d.ts.map +1 -1
  6. package/dist/types/index.d.ts +5 -0
  7. package/dist/types/index.d.ts.map +1 -1
  8. package/dist/types/prop-controllers.d.ts +4 -0
  9. package/dist/types/prop-controllers.d.ts.map +1 -1
  10. package/dist/types/responsive-number/responsive-number.d.ts +69 -179
  11. package/dist/types/responsive-number/responsive-number.d.ts.map +1 -1
  12. package/dist/types/responsive-opacity/responsive-opacity.d.ts +74 -187
  13. package/dist/types/responsive-opacity/responsive-opacity.d.ts.map +1 -1
  14. package/dist/types/responsive-select/index.d.ts +2 -0
  15. package/dist/types/responsive-select/index.d.ts.map +1 -0
  16. package/dist/types/responsive-select/responsive-select.d.ts +76 -0
  17. package/dist/types/responsive-select/responsive-select.d.ts.map +1 -0
  18. package/dist/types/responsive-select/responsive-select.test.d.ts +2 -0
  19. package/dist/types/responsive-select/responsive-select.test.d.ts.map +1 -0
  20. package/dist/types/social-links/index.d.ts +2 -0
  21. package/dist/types/social-links/index.d.ts.map +1 -0
  22. package/dist/types/social-links/social-links.d.ts +648 -0
  23. package/dist/types/social-links/social-links.d.ts.map +1 -0
  24. package/dist/types/social-links/social-links.test.d.ts +2 -0
  25. package/dist/types/social-links/social-links.test.d.ts.map +1 -0
  26. package/dist/types/text-input/index.d.ts +2 -0
  27. package/dist/types/text-input/index.d.ts.map +1 -0
  28. package/dist/types/text-input/text-input.d.ts +52 -0
  29. package/dist/types/text-input/text-input.d.ts.map +1 -0
  30. package/dist/types/text-input/text-input.test.d.ts +2 -0
  31. package/dist/types/text-input/text-input.test.d.ts.map +1 -0
  32. package/dist/types/versioned.d.ts +121 -241
  33. package/dist/types/versioned.d.ts.map +1 -1
  34. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"social-links.d.ts","sourceRoot":"","sources":["../../../src/social-links/social-links.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAsB,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AA6DxE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAGhC,CAAA;AAEF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEnE,QAAA,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAwB,CAAA;AAEnE,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,qCAAqC,CAC7C,CAAA;AAED,eAAO,MAAM,mCAAmC,uCACV,CAAA;AAEtC,QAAA,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGzC,CAAA;AAEF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,qCAAqC,CAC7C,CAAA;AAED,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAgB,sDAAsD,CACpE,IAAI,EAAE,eAAe,EACrB,UAAU,EAAE,qBAAqB,GAChC,6BAA6B,CAW/B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=social-links.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"social-links.test.d.ts","sourceRoot":"","sources":["../../../src/social-links/social-links.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from './text-input';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/text-input/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
@@ -0,0 +1,52 @@
1
+ import { z } from 'zod';
2
+ import { Options, Types } from '../prop-controllers';
3
+ declare const textInputPropControllerDataV0Schema: z.ZodString;
4
+ export type TextInputPropControllerDataV0 = z.infer<typeof textInputPropControllerDataV0Schema>;
5
+ export declare const TextInputPropControllerDataV1Type = "prop-controllers::text-input::v1";
6
+ declare const textInputPropControllerDataV1Schema: z.ZodObject<{
7
+ "@@makeswift/type": z.ZodLiteral<"prop-controllers::text-input::v1">;
8
+ value: z.ZodString;
9
+ }, "strip", z.ZodTypeAny, {
10
+ "@@makeswift/type": "prop-controllers::text-input::v1";
11
+ value: string;
12
+ }, {
13
+ "@@makeswift/type": "prop-controllers::text-input::v1";
14
+ value: string;
15
+ }>;
16
+ export type TextInputPropControllerDataV1 = z.infer<typeof textInputPropControllerDataV1Schema>;
17
+ export declare const textInputPropControllerDataSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
18
+ "@@makeswift/type": z.ZodLiteral<"prop-controllers::text-input::v1">;
19
+ value: z.ZodString;
20
+ }, "strip", z.ZodTypeAny, {
21
+ "@@makeswift/type": "prop-controllers::text-input::v1";
22
+ value: string;
23
+ }, {
24
+ "@@makeswift/type": "prop-controllers::text-input::v1";
25
+ value: string;
26
+ }>]>;
27
+ export type TextInputPropControllerData = z.infer<typeof textInputPropControllerDataSchema>;
28
+ export type TextInputOptions = Options<{
29
+ label?: string;
30
+ placeholder?: string;
31
+ hidden?: boolean;
32
+ }>;
33
+ type TextInputDescriptorV0<_T = TextInputPropControllerDataV0> = {
34
+ type: typeof Types.TextInput;
35
+ options: TextInputOptions;
36
+ };
37
+ type TextInputDescriptorV1<_T = TextInputPropControllerData, U extends TextInputOptions = TextInputOptions> = {
38
+ type: typeof Types.TextInput;
39
+ version: 1;
40
+ options: U;
41
+ };
42
+ export type TextInputDescriptor<_T = TextInputPropControllerData> = TextInputDescriptorV0 | TextInputDescriptorV1;
43
+ export type ResolveTextInputPropControllerValue<T extends TextInputDescriptor> = T extends TextInputDescriptor ? string | undefined : never;
44
+ /**
45
+ * @deprecated Imports from @makeswift/prop-controllers are deprecated. Use
46
+ * @makeswift/runtime/controls instead.
47
+ */
48
+ export declare function TextInput(options?: TextInputOptions): TextInputDescriptorV1;
49
+ export declare function getTextInputPropControllerDataString(data: TextInputPropControllerData | undefined): string | undefined;
50
+ export declare function createTextInputPropControllerDataFromString(value: string, definition: TextInputDescriptor): TextInputPropControllerData;
51
+ export {};
52
+ //# sourceMappingURL=text-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-input.d.ts","sourceRoot":"","sources":["../../../src/text-input/text-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAsB,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAGxE,QAAA,MAAM,mCAAmC,aAAa,CAAA;AAEtD,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,mCAAmC,CAC3C,CAAA;AAED,eAAO,MAAM,iCAAiC,qCACV,CAAA;AAEpC,QAAA,MAAM,mCAAmC;;;;;;;;;EAGvC,CAAA;AAEF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,mCAAmC,CAC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@@
1
+ {"version":3,"file":"text-input.test.d.ts","sourceRoot":"","sources":["../../../src/text-input/text-input.test.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { type Options, ControlDataTypeKey } from './prop-controllers';
2
+ import { ControlDataTypeKey, type Options, type PrimitiveValue, type ResponsiveValue } from './prop-controllers';
3
3
  export type VersionDiscriminator<Version extends number = number, Key extends string = string> = {
4
4
  version: Version;
5
5
  dataKey: Key;
@@ -15,7 +15,7 @@ type VersionedPropData<Value, Key extends string = string> = Value | {
15
15
  [ControlDataTypeKey]: Key;
16
16
  value: Value;
17
17
  };
18
- export declare abstract class PropDef<Type = string, Value = any, PropData extends VersionedPropData<Value> = VersionedPropData<Value>, Descriptor extends VersionedDescriptor = VersionedDescriptor> extends Function {
18
+ export declare abstract class PropDef<Type = string, Value = any, PropData extends VersionedPropData<Value> = VersionedPropData<Value>, Descriptor extends VersionedDescriptor = VersionedDescriptor> {
19
19
  readonly __associated_types__?: () => {
20
20
  Type: Type;
21
21
  Value: Value;
@@ -23,11 +23,11 @@ export declare abstract class PropDef<Type = string, Value = any, PropData exten
23
23
  Descriptor: Descriptor;
24
24
  Discriminator: VersionDiscriminator | {};
25
25
  };
26
- readonly _callable: any;
27
- constructor();
28
26
  abstract get type(): Type;
29
27
  abstract get schema(): z.ZodSchema;
30
28
  abstract fromPropData(propData: PropData): Value;
29
+ abstract fromPropData(propData: PropData | undefined): Value | undefined;
30
+ abstract fromPropData<V extends PrimitiveValue<Value>>(propData: PropData | undefined): ResponsiveValue<V> | undefined;
31
31
  abstract toPropData(data: Value, descriptor: VersionDiscriminator | {}): PropData;
32
32
  }
33
33
  type FillPresetType<RawOptions, Preset> = RawOptions extends {
@@ -36,159 +36,124 @@ type FillPresetType<RawOptions, Preset> = RawOptions extends {
36
36
  preset?: Preset;
37
37
  } : RawOptions;
38
38
  type IfNullable<Opts extends Options<any>, R> = Opts extends Options<infer T> ? {} extends NonNullable<T> ? R : 'non-empty options are required' : never;
39
- export declare const versionedPropDef: <RawOptions>() => <Type extends "Backgrounds" | "Border" | "BorderRadius" | "Checkbox" | "Date" | "ElementID" | "Font" | "GapX" | "GapY" | "Grid" | "Image" | "Images" | "Link" | "Margin" | "NavigationLinks" | "Padding" | "Number" | "Shadows" | "ResponsiveColor" | "ResponsiveLength" | "ResponsiveNumber" | "ResponsiveOpacity" | "TextArea" | "Table" | "TableFormFields" | "TextStyle" | "Width" | "Video", ValueSchema extends z.ZodTypeAny, Version extends number, Key extends string>(type: Type, valueSchema: ValueSchema, discriminator: VersionDiscriminator<Version, Key>) => {
40
- (options: Options<FillPresetType<RawOptions, (ValueSchema | z.ZodObject<{
41
- "@@makeswift/type": z.ZodLiteral<Key>;
42
- value: ValueSchema;
43
- }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
44
- "@@makeswift/type": z.ZodLiteral<Key>;
45
- value: ValueSchema;
46
- }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
47
- "@@makeswift/type": z.ZodLiteral<Key>;
48
- value: ValueSchema;
49
- }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
50
- "@@makeswift/type": z.ZodLiteral<Key>;
51
- value: ValueSchema;
52
- }>]: z.baseObjectInputType<{
53
- "@@makeswift/type": z.ZodLiteral<Key>;
54
- value: ValueSchema;
55
- }>[k_2]; }>)["_output"]>>): VersionedDescriptor<VersionDiscriminator<Version, Key>, Type, Options<FillPresetType<RawOptions, (ValueSchema | z.ZodObject<{
56
- "@@makeswift/type": z.ZodLiteral<Key>;
57
- value: ValueSchema;
58
- }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
59
- "@@makeswift/type": z.ZodLiteral<Key>;
60
- value: ValueSchema;
61
- }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
62
- "@@makeswift/type": z.ZodLiteral<Key>;
63
- value: ValueSchema;
64
- }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
65
- "@@makeswift/type": z.ZodLiteral<Key>;
66
- value: ValueSchema;
67
- }>]: z.baseObjectInputType<{
68
- "@@makeswift/type": z.ZodLiteral<Key>;
69
- value: ValueSchema;
70
- }>[k_2]; }>)["_output"]>>> & {
71
- __associated_types__?: (() => {
72
- Options: Options<FillPresetType<RawOptions, (ValueSchema | z.ZodObject<{
73
- "@@makeswift/type": z.ZodLiteral<Key>;
74
- value: ValueSchema;
75
- }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
76
- "@@makeswift/type": z.ZodLiteral<Key>;
77
- value: ValueSchema;
78
- }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
79
- "@@makeswift/type": z.ZodLiteral<Key>;
80
- value: ValueSchema;
81
- }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
82
- "@@makeswift/type": z.ZodLiteral<Key>;
83
- value: ValueSchema;
84
- }>]: z.baseObjectInputType<{
85
- "@@makeswift/type": z.ZodLiteral<Key>;
86
- value: ValueSchema;
87
- }>[k_2]; }>)["_output"]>>;
88
- Value: z.TypeOf<ValueSchema>;
89
- }) | undefined;
39
+ type Select<T, U> = unknown extends T ? U : T;
40
+ declare class TypeArg<T> {
41
+ __associated_types__?: () => {
42
+ T: T;
90
43
  };
91
- (): IfNullable<FillPresetType<RawOptions, (ValueSchema | z.ZodObject<{
92
- "@@makeswift/type": z.ZodLiteral<Key>;
93
- value: ValueSchema;
94
- }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
95
- "@@makeswift/type": z.ZodLiteral<Key>;
96
- value: ValueSchema;
97
- }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
98
- "@@makeswift/type": z.ZodLiteral<Key>;
99
- value: ValueSchema;
100
- }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
101
- "@@makeswift/type": z.ZodLiteral<Key>;
102
- value: ValueSchema;
103
- }>]: z.baseObjectInputType<{
104
- "@@makeswift/type": z.ZodLiteral<Key>;
105
- value: ValueSchema;
106
- }>[k_2]; }>)["_output"]>, VersionedDescriptor<VersionDiscriminator<Version, Key>, Type, Options<FillPresetType<RawOptions, (ValueSchema | z.ZodObject<{
107
- "@@makeswift/type": z.ZodLiteral<Key>;
108
- value: ValueSchema;
109
- }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
110
- "@@makeswift/type": z.ZodLiteral<Key>;
111
- value: ValueSchema;
112
- }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
113
- "@@makeswift/type": z.ZodLiteral<Key>;
114
- value: ValueSchema;
115
- }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
116
- "@@makeswift/type": z.ZodLiteral<Key>;
117
- value: ValueSchema;
118
- }>]: z.baseObjectInputType<{
119
- "@@makeswift/type": z.ZodLiteral<Key>;
120
- value: ValueSchema;
121
- }>[k_2]; }>)["_output"]>>> & {
122
- __associated_types__?: (() => {
123
- Options: Options<FillPresetType<RawOptions, (ValueSchema | z.ZodObject<{
124
- "@@makeswift/type": z.ZodLiteral<Key>;
125
- value: ValueSchema;
126
- }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
127
- "@@makeswift/type": z.ZodLiteral<Key>;
128
- value: ValueSchema;
129
- }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
130
- "@@makeswift/type": z.ZodLiteral<Key>;
131
- value: ValueSchema;
132
- }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
133
- "@@makeswift/type": z.ZodLiteral<Key>;
134
- value: ValueSchema;
135
- }>]: z.baseObjectInputType<{
136
- "@@makeswift/type": z.ZodLiteral<Key>;
137
- value: ValueSchema;
138
- }>[k_2]; }>)["_output"]>>;
139
- Value: z.TypeOf<ValueSchema>;
140
- }) | undefined;
141
- }> | IfNullable<(props: Record<string, unknown>, deviceMode: string) => FillPresetType<RawOptions, (ValueSchema | z.ZodObject<{
142
- "@@makeswift/type": z.ZodLiteral<Key>;
143
- value: ValueSchema;
144
- }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
145
- "@@makeswift/type": z.ZodLiteral<Key>;
146
- value: ValueSchema;
147
- }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
148
- "@@makeswift/type": z.ZodLiteral<Key>;
149
- value: ValueSchema;
150
- }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
151
- "@@makeswift/type": z.ZodLiteral<Key>;
152
- value: ValueSchema;
153
- }>]: z.baseObjectInputType<{
154
- "@@makeswift/type": z.ZodLiteral<Key>;
155
- value: ValueSchema;
156
- }>[k_2]; }>)["_output"]>, VersionedDescriptor<VersionDiscriminator<Version, Key>, Type, Options<FillPresetType<RawOptions, (ValueSchema | z.ZodObject<{
157
- "@@makeswift/type": z.ZodLiteral<Key>;
158
- value: ValueSchema;
159
- }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
160
- "@@makeswift/type": z.ZodLiteral<Key>;
161
- value: ValueSchema;
162
- }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
163
- "@@makeswift/type": z.ZodLiteral<Key>;
164
- value: ValueSchema;
165
- }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
166
- "@@makeswift/type": z.ZodLiteral<Key>;
167
- value: ValueSchema;
168
- }>]: z.baseObjectInputType<{
169
- "@@makeswift/type": z.ZodLiteral<Key>;
170
- value: ValueSchema;
171
- }>[k_2]; }>)["_output"]>>> & {
172
- __associated_types__?: (() => {
173
- Options: Options<FillPresetType<RawOptions, (ValueSchema | z.ZodObject<{
174
- "@@makeswift/type": z.ZodLiteral<Key>;
175
- value: ValueSchema;
176
- }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
177
- "@@makeswift/type": z.ZodLiteral<Key>;
178
- value: ValueSchema;
179
- }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
180
- "@@makeswift/type": z.ZodLiteral<Key>;
181
- value: ValueSchema;
182
- }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
183
- "@@makeswift/type": z.ZodLiteral<Key>;
184
- value: ValueSchema;
185
- }>]: z.baseObjectInputType<{
186
- "@@makeswift/type": z.ZodLiteral<Key>;
187
- value: ValueSchema;
188
- }>[k_2]; }>)["_output"]>>;
189
- Value: z.TypeOf<ValueSchema>;
190
- }) | undefined;
191
- }>;
44
+ }
45
+ export declare const typeArg: <T>() => TypeArg<T>;
46
+ export interface DefaultCtor<Opts, Descriptor> {
47
+ /**
48
+ * @deprecated Prop controllers are deprecated. Use `@makeswift/runtime/controls` instead.
49
+ */
50
+ (options: Opts): Descriptor;
51
+ /**
52
+ * @deprecated Prop controllers are deprecated. Use `@makeswift/runtime/controls` instead.
53
+ */
54
+ (): IfNullable<Opts, Descriptor>;
55
+ }
56
+ export declare const versionedPropDef: <Type extends "Backgrounds" | "Border" | "BorderRadius" | "Checkbox" | "Date" | "ElementID" | "Font" | "GapX" | "GapY" | "Grid" | "Image" | "Images" | "Link" | "Margin" | "NavigationLinks" | "Padding" | "Number" | "Shadows" | "ResponsiveColor" | "ResponsiveLength" | "ResponsiveNumber" | "ResponsiveOpacity" | "ResponsiveSelect" | "SocialLinks" | "TextArea" | "TextInput" | "Table" | "TableFormFields" | "TextStyle" | "Width" | "Video", ValueSchema extends z.ZodTypeAny, Version extends number, Key extends string, RawOptions, Constructor>(type: Type, valueSchema: ValueSchema, discriminator: VersionDiscriminator<Version, Key>, _rawOptionsType: TypeArg<RawOptions>, _ctor?: TypeArg<Constructor> | undefined) => PropDef<Type, z.TypeOf<ValueSchema>, (ValueSchema | z.ZodObject<{
57
+ "@@makeswift/type": z.ZodLiteral<Key>;
58
+ value: ValueSchema;
59
+ }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
60
+ "@@makeswift/type": z.ZodLiteral<Key>;
61
+ value: ValueSchema;
62
+ }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
63
+ "@@makeswift/type": z.ZodLiteral<Key>;
64
+ value: ValueSchema;
65
+ }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
66
+ "@@makeswift/type": z.ZodLiteral<Key>;
67
+ value: ValueSchema;
68
+ }>]: z.baseObjectInputType<{
69
+ "@@makeswift/type": z.ZodLiteral<Key>;
70
+ value: ValueSchema;
71
+ }>[k_2]; }>)["_output"], VersionedDescriptor<VersionDiscriminator<Version, Key>, Type, Options<FillPresetType<RawOptions, (ValueSchema | z.ZodObject<{
72
+ "@@makeswift/type": z.ZodLiteral<Key>;
73
+ value: ValueSchema;
74
+ }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
75
+ "@@makeswift/type": z.ZodLiteral<Key>;
76
+ value: ValueSchema;
77
+ }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
78
+ "@@makeswift/type": z.ZodLiteral<Key>;
79
+ value: ValueSchema;
80
+ }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
81
+ "@@makeswift/type": z.ZodLiteral<Key>;
82
+ value: ValueSchema;
83
+ }>]: z.baseObjectInputType<{
84
+ "@@makeswift/type": z.ZodLiteral<Key>;
85
+ value: ValueSchema;
86
+ }>[k_2]; }>)["_output"]>>> & {
87
+ __associated_types__?: (() => {
88
+ Options: Options<FillPresetType<RawOptions, (ValueSchema | z.ZodObject<{
89
+ "@@makeswift/type": z.ZodLiteral<Key>;
90
+ value: ValueSchema;
91
+ }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
92
+ "@@makeswift/type": z.ZodLiteral<Key>;
93
+ value: ValueSchema;
94
+ }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
95
+ "@@makeswift/type": z.ZodLiteral<Key>;
96
+ value: ValueSchema;
97
+ }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
98
+ "@@makeswift/type": z.ZodLiteral<Key>;
99
+ value: ValueSchema;
100
+ }>]: z.baseObjectInputType<{
101
+ "@@makeswift/type": z.ZodLiteral<Key>;
102
+ value: ValueSchema;
103
+ }>[k_2]; }>)["_output"]>>;
104
+ Value: z.TypeOf<ValueSchema>;
105
+ }) | undefined;
106
+ }> & Select<Constructor, DefaultCtor<Options<FillPresetType<RawOptions, (ValueSchema | z.ZodObject<{
107
+ "@@makeswift/type": z.ZodLiteral<Key>;
108
+ value: ValueSchema;
109
+ }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
110
+ "@@makeswift/type": z.ZodLiteral<Key>;
111
+ value: ValueSchema;
112
+ }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
113
+ "@@makeswift/type": z.ZodLiteral<Key>;
114
+ value: ValueSchema;
115
+ }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
116
+ "@@makeswift/type": z.ZodLiteral<Key>;
117
+ value: ValueSchema;
118
+ }>]: z.baseObjectInputType<{
119
+ "@@makeswift/type": z.ZodLiteral<Key>;
120
+ value: ValueSchema;
121
+ }>[k_2]; }>)["_output"]>>, VersionedDescriptor<VersionDiscriminator<Version, Key>, Type, Options<FillPresetType<RawOptions, (ValueSchema | z.ZodObject<{
122
+ "@@makeswift/type": z.ZodLiteral<Key>;
123
+ value: ValueSchema;
124
+ }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
125
+ "@@makeswift/type": z.ZodLiteral<Key>;
126
+ value: ValueSchema;
127
+ }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
128
+ "@@makeswift/type": z.ZodLiteral<Key>;
129
+ value: ValueSchema;
130
+ }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
131
+ "@@makeswift/type": z.ZodLiteral<Key>;
132
+ value: ValueSchema;
133
+ }>]: z.baseObjectInputType<{
134
+ "@@makeswift/type": z.ZodLiteral<Key>;
135
+ value: ValueSchema;
136
+ }>[k_2]; }>)["_output"]>>> & {
137
+ __associated_types__?: (() => {
138
+ Options: Options<FillPresetType<RawOptions, (ValueSchema | z.ZodObject<{
139
+ "@@makeswift/type": z.ZodLiteral<Key>;
140
+ value: ValueSchema;
141
+ }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
142
+ "@@makeswift/type": z.ZodLiteral<Key>;
143
+ value: ValueSchema;
144
+ }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
145
+ "@@makeswift/type": z.ZodLiteral<Key>;
146
+ value: ValueSchema;
147
+ }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
148
+ "@@makeswift/type": z.ZodLiteral<Key>;
149
+ value: ValueSchema;
150
+ }>]: z.baseObjectInputType<{
151
+ "@@makeswift/type": z.ZodLiteral<Key>;
152
+ value: ValueSchema;
153
+ }>[k_2]; }>)["_output"]>>;
154
+ Value: z.TypeOf<ValueSchema>;
155
+ }) | undefined;
156
+ }>> & {
192
157
  __associated_types__?: (() => {
193
158
  Type: Type;
194
159
  Value: z.TypeOf<ValueSchema>;
@@ -246,92 +211,7 @@ export declare const versionedPropDef: <RawOptions>() => <Type extends "Backgrou
246
211
  };
247
212
  Discriminator: {} | VersionDiscriminator<Version, Key>;
248
213
  }) | undefined;
249
- readonly schemaV0: ValueSchema;
250
- readonly schemaV1: z.ZodObject<{
251
- "@@makeswift/type": z.ZodLiteral<Key>;
252
- value: ValueSchema;
253
- }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
254
- "@@makeswift/type": z.ZodLiteral<Key>;
255
- value: ValueSchema;
256
- }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
257
- "@@makeswift/type": z.ZodLiteral<Key>;
258
- value: ValueSchema;
259
- }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
260
- "@@makeswift/type": z.ZodLiteral<Key>;
261
- value: ValueSchema;
262
- }>]: z.baseObjectInputType<{
263
- "@@makeswift/type": z.ZodLiteral<Key>;
264
- value: ValueSchema;
265
- }>[k_2]; }>;
266
- readonly schema: z.ZodUnion<[ValueSchema, z.ZodObject<{
267
- "@@makeswift/type": z.ZodLiteral<Key>;
268
- value: ValueSchema;
269
- }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
270
- "@@makeswift/type": z.ZodLiteral<Key>;
271
- value: ValueSchema;
272
- }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
273
- "@@makeswift/type": z.ZodLiteral<Key>;
274
- value: ValueSchema;
275
- }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
276
- "@@makeswift/type": z.ZodLiteral<Key>;
277
- value: ValueSchema;
278
- }>]: z.baseObjectInputType<{
279
- "@@makeswift/type": z.ZodLiteral<Key>;
280
- value: ValueSchema;
281
- }>[k_2]; }>]>;
282
- readonly type: Type;
283
214
  readonly discriminator: VersionDiscriminator<Version, Key>;
284
- __call__(options?: Options<FillPresetType<RawOptions, (ValueSchema | z.ZodObject<{
285
- "@@makeswift/type": z.ZodLiteral<Key>;
286
- value: ValueSchema;
287
- }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
288
- "@@makeswift/type": z.ZodLiteral<Key>;
289
- value: ValueSchema;
290
- }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
291
- "@@makeswift/type": z.ZodLiteral<Key>;
292
- value: ValueSchema;
293
- }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
294
- "@@makeswift/type": z.ZodLiteral<Key>;
295
- value: ValueSchema;
296
- }>]: z.baseObjectInputType<{
297
- "@@makeswift/type": z.ZodLiteral<Key>;
298
- value: ValueSchema;
299
- }>[k_2]; }>)["_output"]>> | undefined): {
300
- type: Type;
301
- version: Version;
302
- options: any;
303
- };
304
- fromPropData(propData: (ValueSchema | z.ZodObject<{
305
- "@@makeswift/type": z.ZodLiteral<Key>;
306
- value: ValueSchema;
307
- }, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
308
- "@@makeswift/type": z.ZodLiteral<Key>;
309
- value: ValueSchema;
310
- }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
311
- "@@makeswift/type": z.ZodLiteral<Key>;
312
- value: ValueSchema;
313
- }>, (undefined extends Key ? never : "@@makeswift/type") | (undefined extends ValueSchema["_output"] ? never : "value")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
314
- "@@makeswift/type": z.ZodLiteral<Key>;
315
- value: ValueSchema;
316
- }>]: z.baseObjectInputType<{
317
- "@@makeswift/type": z.ZodLiteral<Key>;
318
- value: ValueSchema;
319
- }>[k_2]; }>)["_output"]): z.TypeOf<ValueSchema>;
320
- toPropData(data: z.TypeOf<ValueSchema>, descriptor: {} | VersionDiscriminator<Version, Key>): import("ts-pattern/dist/types/helpers").Union<{
321
- readonly "@@makeswift/type": Key;
322
- readonly value: z.TypeOf<ValueSchema>;
323
- }, z.TypeOf<ValueSchema>>;
324
- readonly _callable: any;
325
- apply(this: Function, thisArg: any, argArray?: any): any;
326
- call(this: Function, thisArg: any, ...argArray: any[]): any;
327
- bind(this: Function, thisArg: any, ...argArray: any[]): any;
328
- toString(): string;
329
- prototype: any;
330
- readonly length: number;
331
- arguments: any;
332
- caller: Function;
333
- readonly name: string;
334
- [Symbol.hasInstance](value: any): boolean;
335
215
  };
336
216
  export {};
337
217
  //# sourceMappingURL=versioned.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"versioned.d.ts","sourceRoot":"","sources":["../../src/versioned.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,KAAK,OAAO,EAAE,kBAAkB,EAAS,MAAM,oBAAoB,CAAA;AAE5E,MAAM,MAAM,oBAAoB,CAC9B,OAAO,SAAS,MAAM,GAAG,MAAM,EAC/B,GAAG,SAAS,MAAM,GAAG,MAAM,IACzB;IACF,OAAO,EAAE,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
3
+ "version": "0.3.0-canary.3",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "files": [