@makeswift/prop-controllers 0.0.0-snapshot-20250609222912 → 0.0.0-snapshot-20250609224353
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/cjs/backgrounds/backgrounds.js +6 -3
- package/dist/cjs/backgrounds/backgrounds.js.map +1 -1
- package/dist/cjs/border/border.js +2 -1
- package/dist/cjs/border/border.js.map +1 -1
- package/dist/cjs/element-id/element-id.js +6 -3
- package/dist/cjs/element-id/element-id.js.map +1 -1
- package/dist/cjs/grid/grid.js +2 -1
- package/dist/cjs/grid/grid.js.map +1 -1
- package/dist/cjs/image/image.js +2 -1
- package/dist/cjs/image/image.js.map +1 -1
- package/dist/cjs/images/images.js +4 -2
- package/dist/cjs/images/images.js.map +1 -1
- package/dist/cjs/index.js +12 -12
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/link/link.js +10 -5
- package/dist/cjs/link/link.js.map +1 -1
- package/dist/cjs/navigation-links/navigation-links.js +8 -4
- package/dist/cjs/navigation-links/navigation-links.js.map +1 -1
- package/dist/cjs/responsive-color/responsive-color.js +2 -1
- package/dist/cjs/responsive-color/responsive-color.js.map +1 -1
- package/dist/cjs/shadows/shadows.js +2 -1
- package/dist/cjs/shadows/shadows.js.map +1 -1
- package/dist/cjs/table/table.js +2 -1
- package/dist/cjs/table/table.js.map +1 -1
- package/dist/cjs/table-form-fields/table-form-fields.js +2 -1
- package/dist/cjs/table-form-fields/table-form-fields.js.map +1 -1
- package/dist/esm/backgrounds/backgrounds.js +6 -3
- package/dist/esm/backgrounds/backgrounds.js.map +1 -1
- package/dist/esm/border/border.js +2 -1
- package/dist/esm/border/border.js.map +1 -1
- package/dist/esm/element-id/element-id.js +6 -3
- package/dist/esm/element-id/element-id.js.map +1 -1
- package/dist/esm/grid/grid.js +2 -1
- package/dist/esm/grid/grid.js.map +1 -1
- package/dist/esm/image/image.js +2 -1
- package/dist/esm/image/image.js.map +1 -1
- package/dist/esm/images/images.js +4 -2
- package/dist/esm/images/images.js.map +1 -1
- package/dist/esm/link/link.js +10 -5
- package/dist/esm/link/link.js.map +1 -1
- package/dist/esm/navigation-links/navigation-links.js +8 -4
- package/dist/esm/navigation-links/navigation-links.js.map +1 -1
- package/dist/esm/responsive-color/responsive-color.js +2 -1
- package/dist/esm/responsive-color/responsive-color.js.map +1 -1
- package/dist/esm/shadows/shadows.js +2 -1
- package/dist/esm/shadows/shadows.js.map +1 -1
- package/dist/esm/table/table.js +2 -1
- package/dist/esm/table/table.js.map +1 -1
- package/dist/esm/table-form-fields/table-form-fields.js +2 -1
- package/dist/esm/table-form-fields/table-form-fields.js.map +1 -1
- package/dist/types/backgrounds/backgrounds.d.ts +164 -164
- package/dist/types/backgrounds/backgrounds.d.ts.map +1 -1
- package/dist/types/border/border.d.ts.map +1 -1
- package/dist/types/border-radius/border-radius.d.ts.map +1 -1
- package/dist/types/data.d.ts.map +1 -1
- package/dist/types/font/font.d.ts.map +1 -1
- package/dist/types/gap-x/gap-x.d.ts +66 -46
- package/dist/types/gap-x/gap-x.d.ts.map +1 -1
- package/dist/types/gap-y/gap-y.d.ts.map +1 -1
- package/dist/types/grid/grid.d.ts +466 -466
- package/dist/types/grid/grid.d.ts.map +1 -1
- package/dist/types/image/image.d.ts +84 -4
- package/dist/types/image/image.d.ts.map +1 -1
- package/dist/types/images/images.d.ts.map +1 -1
- package/dist/types/link/link.d.ts.map +1 -1
- package/dist/types/margin/margin.d.ts.map +1 -1
- package/dist/types/navigation-links/navigation-links.d.ts +1118 -1118
- package/dist/types/navigation-links/navigation-links.d.ts.map +1 -1
- package/dist/types/padding/padding.d.ts.map +1 -1
- package/dist/types/responsive-color/responsive-color.d.ts.map +1 -1
- package/dist/types/responsive-icon-radio-group/responsive-icon-radio-group.d.ts +3 -3
- package/dist/types/responsive-length.d.ts.map +1 -1
- package/dist/types/responsive-number/responsive-number.d.ts +52 -52
- package/dist/types/responsive-number/responsive-number.d.ts.map +1 -1
- package/dist/types/responsive-opacity/responsive-opacity.d.ts +3 -3
- package/dist/types/responsive-opacity/responsive-opacity.d.ts.map +1 -1
- package/dist/types/responsive-select/responsive-select.d.ts +3 -3
- package/dist/types/shadows/shadows.d.ts.map +1 -1
- package/dist/types/social-links/social-links.d.ts +80 -8
- package/dist/types/social-links/social-links.d.ts.map +1 -1
- package/dist/types/table-form-fields/table-form-fields.d.ts +72 -72
- package/dist/types/table-form-fields/table-form-fields.d.ts.map +1 -1
- package/dist/types/text-style/text-style.d.ts.map +1 -1
- package/dist/types/versioned.d.ts +68 -68
- package/dist/types/versioned.d.ts.map +1 -1
- package/dist/types/width/width.d.ts.map +1 -1
- package/package.json +2 -2
@@ -1,5 +1,5 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
-
import { ControlDataTypeKey,
|
2
|
+
import { ControlDataTypeKey, type Options, type PrimitiveValue, type ResponsiveValue } from './prop-controllers';
|
3
3
|
import { WithAssociatedTypes } from './utils/associated-types';
|
4
4
|
export type VersionDiscriminator<Version extends number = number, Key extends string = string> = {
|
5
5
|
version: Version;
|
@@ -52,174 +52,174 @@ export interface DefaultCtor<Opts, Descriptor> {
|
|
52
52
|
*/
|
53
53
|
(): IfNullable<Opts, Descriptor>;
|
54
54
|
}
|
55
|
-
export declare const versionedPropDef: <Type extends
|
55
|
+
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" | "ResponsiveIconRadioGroup" | "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) => WithAssociatedTypes<{
|
56
56
|
Type: Type;
|
57
57
|
Value: z.TypeOf<ValueSchema>;
|
58
58
|
PropData: (ValueSchema | z.ZodObject<{
|
59
59
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
60
60
|
value: ValueSchema;
|
61
|
-
}, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
61
|
+
}, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
62
62
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
63
63
|
value: ValueSchema;
|
64
|
-
}>,
|
64
|
+
}>, (undefined extends ValueSchema["_output"] ? never : "value") | (undefined extends Key ? never : "@@makeswift/type")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
65
65
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
66
66
|
value: ValueSchema;
|
67
|
-
}>,
|
67
|
+
}>, (undefined extends ValueSchema["_output"] ? never : "value") | (undefined extends Key ? never : "@@makeswift/type")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
|
68
68
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
69
69
|
value: ValueSchema;
|
70
|
-
}>
|
70
|
+
}>]: z.baseObjectInputType<{
|
71
71
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
72
72
|
value: ValueSchema;
|
73
|
-
}>[
|
73
|
+
}>[k_2]; }>)["_output"];
|
74
74
|
Descriptor: VersionedDescriptor<VersionDiscriminator<Version, Key>, Type, Options<FillPresetType<RawOptions, (ValueSchema | z.ZodObject<{
|
75
75
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
76
76
|
value: ValueSchema;
|
77
|
-
}, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
77
|
+
}, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
78
78
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
79
79
|
value: ValueSchema;
|
80
|
-
}>,
|
80
|
+
}>, (undefined extends ValueSchema["_output"] ? never : "value") | (undefined extends Key ? never : "@@makeswift/type")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
81
81
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
82
82
|
value: ValueSchema;
|
83
|
-
}>,
|
83
|
+
}>, (undefined extends ValueSchema["_output"] ? never : "value") | (undefined extends Key ? never : "@@makeswift/type")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
|
84
84
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
85
85
|
value: ValueSchema;
|
86
|
-
}>
|
86
|
+
}>]: z.baseObjectInputType<{
|
87
87
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
88
88
|
value: ValueSchema;
|
89
|
-
}>[
|
89
|
+
}>[k_2]; }>)["_output"]>>> & WithAssociatedTypes<{
|
90
90
|
Options: Options<FillPresetType<RawOptions, (ValueSchema | z.ZodObject<{
|
91
91
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
92
92
|
value: ValueSchema;
|
93
|
-
}, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
93
|
+
}, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
94
94
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
95
95
|
value: ValueSchema;
|
96
|
-
}>,
|
96
|
+
}>, (undefined extends ValueSchema["_output"] ? never : "value") | (undefined extends Key ? never : "@@makeswift/type")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
97
97
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
98
98
|
value: ValueSchema;
|
99
|
-
}>,
|
99
|
+
}>, (undefined extends ValueSchema["_output"] ? never : "value") | (undefined extends Key ? never : "@@makeswift/type")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
|
100
100
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
101
101
|
value: ValueSchema;
|
102
|
-
}>
|
102
|
+
}>]: z.baseObjectInputType<{
|
103
103
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
104
104
|
value: ValueSchema;
|
105
|
-
}>[
|
105
|
+
}>[k_2]; }>)["_output"]>>;
|
106
106
|
Value: z.TypeOf<ValueSchema>;
|
107
107
|
}>;
|
108
108
|
Discriminator: VersionDiscriminator | {};
|
109
109
|
}> & {
|
110
110
|
readonly type: Type;
|
111
|
-
readonly schema: z.
|
111
|
+
readonly schema: z.ZodType<any, z.ZodTypeDef, any>;
|
112
112
|
fromPropData(propData: (ValueSchema | z.ZodObject<{
|
113
113
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
114
114
|
value: ValueSchema;
|
115
|
-
}, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
115
|
+
}, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
116
116
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
117
117
|
value: ValueSchema;
|
118
|
-
}>,
|
118
|
+
}>, (undefined extends ValueSchema["_output"] ? never : "value") | (undefined extends Key ? never : "@@makeswift/type")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
119
119
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
120
120
|
value: ValueSchema;
|
121
|
-
}>,
|
121
|
+
}>, (undefined extends ValueSchema["_output"] ? never : "value") | (undefined extends Key ? never : "@@makeswift/type")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
|
122
122
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
123
123
|
value: ValueSchema;
|
124
|
-
}>
|
124
|
+
}>]: z.baseObjectInputType<{
|
125
125
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
126
126
|
value: ValueSchema;
|
127
|
-
}>[
|
127
|
+
}>[k_2]; }>)["_output"]): z.TypeOf<ValueSchema>;
|
128
128
|
fromPropData(propData: (ValueSchema | z.ZodObject<{
|
129
129
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
130
130
|
value: ValueSchema;
|
131
|
-
}, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
131
|
+
}, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
132
132
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
133
133
|
value: ValueSchema;
|
134
|
-
}>,
|
134
|
+
}>, (undefined extends ValueSchema["_output"] ? never : "value") | (undefined extends Key ? never : "@@makeswift/type")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
135
135
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
136
136
|
value: ValueSchema;
|
137
|
-
}>,
|
137
|
+
}>, (undefined extends ValueSchema["_output"] ? never : "value") | (undefined extends Key ? never : "@@makeswift/type")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
|
138
138
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
139
139
|
value: ValueSchema;
|
140
|
-
}>
|
140
|
+
}>]: z.baseObjectInputType<{
|
141
141
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
142
142
|
value: ValueSchema;
|
143
|
-
}>[
|
143
|
+
}>[k_2]; }>)["_output"] | undefined): z.TypeOf<ValueSchema> | undefined;
|
144
144
|
fromPropData<V extends PrimitiveValue<z.TypeOf<ValueSchema>>>(propData: (ValueSchema | z.ZodObject<{
|
145
145
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
146
146
|
value: ValueSchema;
|
147
|
-
}, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
147
|
+
}, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
148
148
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
149
149
|
value: ValueSchema;
|
150
|
-
}>,
|
150
|
+
}>, (undefined extends ValueSchema["_output"] ? never : "value") | (undefined extends Key ? never : "@@makeswift/type")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
151
151
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
152
152
|
value: ValueSchema;
|
153
|
-
}>,
|
153
|
+
}>, (undefined extends ValueSchema["_output"] ? never : "value") | (undefined extends Key ? never : "@@makeswift/type")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
|
154
154
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
155
155
|
value: ValueSchema;
|
156
|
-
}>
|
156
|
+
}>]: z.baseObjectInputType<{
|
157
157
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
158
158
|
value: ValueSchema;
|
159
|
-
}>[
|
159
|
+
}>[k_2]; }>)["_output"] | undefined): ResponsiveValue<V> | undefined;
|
160
160
|
toPropData(data: z.TypeOf<ValueSchema>, descriptor: VersionDiscriminator | {}): (ValueSchema | z.ZodObject<{
|
161
161
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
162
162
|
value: ValueSchema;
|
163
|
-
}, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
163
|
+
}, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
164
164
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
165
165
|
value: ValueSchema;
|
166
|
-
}>,
|
166
|
+
}>, (undefined extends ValueSchema["_output"] ? never : "value") | (undefined extends Key ? never : "@@makeswift/type")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
167
167
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
168
168
|
value: ValueSchema;
|
169
|
-
}>,
|
169
|
+
}>, (undefined extends ValueSchema["_output"] ? never : "value") | (undefined extends Key ? never : "@@makeswift/type")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
|
170
170
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
171
171
|
value: ValueSchema;
|
172
|
-
}>
|
172
|
+
}>]: z.baseObjectInputType<{
|
173
173
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
174
174
|
value: ValueSchema;
|
175
|
-
}>[
|
175
|
+
}>[k_2]; }>)["_output"];
|
176
176
|
} & Select<Constructor, DefaultCtor<Options<FillPresetType<RawOptions, (ValueSchema | z.ZodObject<{
|
177
177
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
178
178
|
value: ValueSchema;
|
179
|
-
}, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
179
|
+
}, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
180
180
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
181
181
|
value: ValueSchema;
|
182
|
-
}>,
|
182
|
+
}>, (undefined extends ValueSchema["_output"] ? never : "value") | (undefined extends Key ? never : "@@makeswift/type")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
183
183
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
184
184
|
value: ValueSchema;
|
185
|
-
}>,
|
185
|
+
}>, (undefined extends ValueSchema["_output"] ? never : "value") | (undefined extends Key ? never : "@@makeswift/type")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
|
186
186
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
187
187
|
value: ValueSchema;
|
188
|
-
}>
|
188
|
+
}>]: z.baseObjectInputType<{
|
189
189
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
190
190
|
value: ValueSchema;
|
191
|
-
}>[
|
191
|
+
}>[k_2]; }>)["_output"]>>, VersionedDescriptor<VersionDiscriminator<Version, Key>, Type, Options<FillPresetType<RawOptions, (ValueSchema | z.ZodObject<{
|
192
192
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
193
193
|
value: ValueSchema;
|
194
|
-
}, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
194
|
+
}, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
195
195
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
196
196
|
value: ValueSchema;
|
197
|
-
}>,
|
197
|
+
}>, (undefined extends ValueSchema["_output"] ? never : "value") | (undefined extends Key ? never : "@@makeswift/type")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
198
198
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
199
199
|
value: ValueSchema;
|
200
|
-
}>,
|
200
|
+
}>, (undefined extends ValueSchema["_output"] ? never : "value") | (undefined extends Key ? never : "@@makeswift/type")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
|
201
201
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
202
202
|
value: ValueSchema;
|
203
|
-
}>
|
203
|
+
}>]: z.baseObjectInputType<{
|
204
204
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
205
205
|
value: ValueSchema;
|
206
|
-
}>[
|
206
|
+
}>[k_2]; }>)["_output"]>>> & WithAssociatedTypes<{
|
207
207
|
Options: Options<FillPresetType<RawOptions, (ValueSchema | z.ZodObject<{
|
208
208
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
209
209
|
value: ValueSchema;
|
210
|
-
}, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
210
|
+
}, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
211
211
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
212
212
|
value: ValueSchema;
|
213
|
-
}>,
|
213
|
+
}>, (undefined extends ValueSchema["_output"] ? never : "value") | (undefined extends Key ? never : "@@makeswift/type")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
214
214
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
215
215
|
value: ValueSchema;
|
216
|
-
}>,
|
216
|
+
}>, (undefined extends ValueSchema["_output"] ? never : "value") | (undefined extends Key ? never : "@@makeswift/type")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
|
217
217
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
218
218
|
value: ValueSchema;
|
219
|
-
}>
|
219
|
+
}>]: z.baseObjectInputType<{
|
220
220
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
221
221
|
value: ValueSchema;
|
222
|
-
}>[
|
222
|
+
}>[k_2]; }>)["_output"]>>;
|
223
223
|
Value: z.TypeOf<ValueSchema>;
|
224
224
|
}>>> & WithAssociatedTypes<{
|
225
225
|
Type: Type;
|
@@ -227,51 +227,51 @@ export declare const versionedPropDef: <Type extends keyof typeof Types, ValueSc
|
|
227
227
|
PropData: (ValueSchema | z.ZodObject<{
|
228
228
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
229
229
|
value: ValueSchema;
|
230
|
-
}, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
230
|
+
}, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
231
231
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
232
232
|
value: ValueSchema;
|
233
|
-
}>,
|
233
|
+
}>, (undefined extends ValueSchema["_output"] ? never : "value") | (undefined extends Key ? never : "@@makeswift/type")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
234
234
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
235
235
|
value: ValueSchema;
|
236
|
-
}>,
|
236
|
+
}>, (undefined extends ValueSchema["_output"] ? never : "value") | (undefined extends Key ? never : "@@makeswift/type")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
|
237
237
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
238
238
|
value: ValueSchema;
|
239
|
-
}>
|
239
|
+
}>]: z.baseObjectInputType<{
|
240
240
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
241
241
|
value: ValueSchema;
|
242
|
-
}>[
|
242
|
+
}>[k_2]; }>)["_output"];
|
243
243
|
Descriptor: VersionedDescriptor<VersionDiscriminator<Version, Key>, Type, Options<FillPresetType<RawOptions, (ValueSchema | z.ZodObject<{
|
244
244
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
245
245
|
value: ValueSchema;
|
246
|
-
}, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
246
|
+
}, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
247
247
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
248
248
|
value: ValueSchema;
|
249
|
-
}>,
|
249
|
+
}>, (undefined extends ValueSchema["_output"] ? never : "value") | (undefined extends Key ? never : "@@makeswift/type")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
250
250
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
251
251
|
value: ValueSchema;
|
252
|
-
}>,
|
252
|
+
}>, (undefined extends ValueSchema["_output"] ? never : "value") | (undefined extends Key ? never : "@@makeswift/type")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
|
253
253
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
254
254
|
value: ValueSchema;
|
255
|
-
}>
|
255
|
+
}>]: z.baseObjectInputType<{
|
256
256
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
257
257
|
value: ValueSchema;
|
258
|
-
}>[
|
258
|
+
}>[k_2]; }>)["_output"]>>> & WithAssociatedTypes<{
|
259
259
|
Options: Options<FillPresetType<RawOptions, (ValueSchema | z.ZodObject<{
|
260
260
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
261
261
|
value: ValueSchema;
|
262
|
-
}, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
262
|
+
}, "strip", z.ZodTypeAny, { [k_1 in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
263
263
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
264
264
|
value: ValueSchema;
|
265
|
-
}>,
|
265
|
+
}>, (undefined extends ValueSchema["_output"] ? never : "value") | (undefined extends Key ? never : "@@makeswift/type")>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
266
266
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
267
267
|
value: ValueSchema;
|
268
|
-
}>,
|
268
|
+
}>, (undefined extends ValueSchema["_output"] ? never : "value") | (undefined extends Key ? never : "@@makeswift/type")>[k_1]; }, { [k_2 in keyof z.baseObjectInputType<{
|
269
269
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
270
270
|
value: ValueSchema;
|
271
|
-
}>
|
271
|
+
}>]: z.baseObjectInputType<{
|
272
272
|
"@@makeswift/type": z.ZodLiteral<Key>;
|
273
273
|
value: ValueSchema;
|
274
|
-
}>[
|
274
|
+
}>[k_2]; }>)["_output"]>>;
|
275
275
|
Value: z.TypeOf<ValueSchema>;
|
276
276
|
}>;
|
277
277
|
Discriminator: {} | VersionDiscriminator<Version, Key>;
|
@@ -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,EACL,kBAAkB,
|
1
|
+
{"version":3,"file":"versioned.d.ts","sourceRoot":"","sources":["../../src/versioned.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EACL,kBAAkB,EAElB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,eAAe,EACrB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAkB,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAE9E,MAAM,MAAM,oBAAoB,CAC9B,OAAO,SAAS,MAAM,GAAG,MAAM,EAC/B,GAAG,SAAS,MAAM,GAAG,MAAM,IACzB;IACF,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmH9D,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"width.d.ts","sourceRoot":"","sources":["../../../src/width/width.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,cAAc,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAC/E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACpC,OAAO,EACL,oBAAoB,EAErB,MAAM,sBAAsB,CAAA;AAE7B,QAAA,MAAM,+BAA+B
|
1
|
+
{"version":3,"file":"width.d.ts","sourceRoot":"","sources":["../../../src/width/width.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,cAAc,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAC/E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACpC,OAAO,EACL,oBAAoB,EAErB,MAAM,sBAAsB,CAAA;AAE7B,QAAA,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;WAA6B,CAAA;AAElE,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,+BAA+B,CACvC,CAAA;AAED,eAAO,MAAM,6BAA6B,gCAAgC,CAAA;AAE1E,QAAA,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGnC,CAAA;AAEF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,+BAA+B,CACvC,CAAA;AAED,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAGxC,CAAA;AAEF,MAAM,MAAM,uB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,CAAC,CACb,CAAC,QAAQ,CAAC,SAAS,OAAO,yBAAyB,CAAC,eAAe,GACpE,oBAAoB,GAAG,SAAS,GAChC,KAAK,GACP,KAAK,CAAA;AAEX;;;GAGG;AACH,wBAAgB,KAAK,CAAC,CAAC,SAAS,YAAY,EAC1C,OAAO,GAAE,CAAC,GAAG,YAAsB,GAClC,eAAe,CAAC,uBAAuB,EAAE,CAAC,CAAC,CAE7C;yBAJe,KAAK;;;;;;AAQrB,wBAAgB,8CAA8C,CAC5D,IAAI,EAAE,uBAAuB,GAAG,SAAS,GACxC,oBAAoB,GAAG,SAAS,CAOlC;AAED,wBAAgB,qDAAqD,CACnE,oBAAoB,EAAE,oBAAoB,EAC1C,UAAU,CAAC,EAAE,eAAe,GAC3B,uBAAuB,CAYzB"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@makeswift/prop-controllers",
|
3
|
-
"version": "0.0.0-snapshot-
|
3
|
+
"version": "0.0.0-snapshot-20250609224353",
|
4
4
|
"license": "MIT",
|
5
5
|
"files": [
|
6
6
|
"dist"
|
@@ -11,7 +11,7 @@
|
|
11
11
|
"dependencies": {
|
12
12
|
"ts-pattern": "^5.0.8",
|
13
13
|
"zod": "^3.21.4",
|
14
|
-
"@makeswift/controls": "0.0.0-snapshot-
|
14
|
+
"@makeswift/controls": "0.0.0-snapshot-20250609224353"
|
15
15
|
},
|
16
16
|
"devDependencies": {
|
17
17
|
"@swc/jest": "^0.2.36",
|