@prismicio/types-internal 4.6.0 → 4.7.0-canary.af0f4e3
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/common/asset.d.ts +1 -2
- package/dist/common/asset.d.ts.map +1 -1
- package/dist/common/asset.js.map +1 -1
- package/dist/common/embed.d.ts +1 -2
- package/dist/common/embed.d.ts.map +1 -1
- package/dist/common/embed.js.map +1 -1
- package/dist/common/hexaColorCode.d.ts +1 -2
- package/dist/common/hexaColorCode.d.ts.map +1 -1
- package/dist/common/hexaColorCode.js.map +1 -1
- package/dist/common/nonEmptyString.d.ts +1 -2
- package/dist/common/nonEmptyString.d.ts.map +1 -1
- package/dist/common/nonEmptyString.js.map +1 -1
- package/dist/common/widgetKey.d.ts +1 -2
- package/dist/common/widgetKey.d.ts.map +1 -1
- package/dist/common/widgetKey.js.map +1 -1
- package/dist/content/boolean.d.ts +1 -2
- package/dist/content/boolean.d.ts.map +1 -1
- package/dist/content/boolean.js.map +1 -1
- package/dist/content/codec/boolean.js.map +1 -1
- package/dist/content/codec/document.js.map +1 -1
- package/dist/content/codec/embed.js.map +1 -1
- package/dist/content/codec/empty.js.map +1 -1
- package/dist/content/codec/field.js.map +1 -1
- package/dist/content/codec/geopoint.js.map +1 -1
- package/dist/content/codec/group.js +9 -6
- package/dist/content/codec/group.js.map +1 -1
- package/dist/content/codec/image.js.map +1 -1
- package/dist/content/codec/integrationField.js.map +1 -1
- package/dist/content/codec/legacyContentCtx.d.ts +2 -15
- package/dist/content/codec/legacyContentCtx.d.ts.map +1 -1
- package/dist/content/codec/legacyContentCtx.js +5 -1
- package/dist/content/codec/legacyContentCtx.js.map +1 -1
- package/dist/content/codec/link.js.map +1 -1
- package/dist/content/codec/nestable.js.map +1 -1
- package/dist/content/codec/repeatable.js.map +1 -1
- package/dist/content/codec/richText.js.map +1 -1
- package/dist/content/codec/separator.js.map +1 -1
- package/dist/content/codec/slice.js.map +1 -1
- package/dist/content/codec/slices.js.map +1 -1
- package/dist/content/codec/table.js.map +1 -1
- package/dist/content/codec/uid.js.map +1 -1
- package/dist/content/codec/widget.js.map +1 -1
- package/dist/content/document.d.ts +1 -2
- package/dist/content/document.d.ts.map +1 -1
- package/dist/content/document.js.map +1 -1
- package/dist/content/embed.d.ts +1 -2
- package/dist/content/embed.d.ts.map +1 -1
- package/dist/content/embed.js.map +1 -1
- package/dist/content/empty.d.ts +1 -2
- package/dist/content/empty.d.ts.map +1 -1
- package/dist/content/empty.js.map +1 -1
- package/dist/content/field.d.ts +1 -2
- package/dist/content/field.d.ts.map +1 -1
- package/dist/content/field.js.map +1 -1
- package/dist/content/geopoint.d.ts +1 -2
- package/dist/content/geopoint.d.ts.map +1 -1
- package/dist/content/geopoint.js.map +1 -1
- package/dist/content/group.d.ts +3 -2
- package/dist/content/group.d.ts.map +1 -1
- package/dist/content/group.js.map +1 -1
- package/dist/content/image.d.ts +1 -2
- package/dist/content/image.d.ts.map +1 -1
- package/dist/content/image.js.map +1 -1
- package/dist/content/integrationField.d.ts +1 -2
- package/dist/content/integrationField.d.ts.map +1 -1
- package/dist/content/integrationField.js.map +1 -1
- package/dist/content/legacy/boolean.js.map +1 -1
- package/dist/content/legacy/document.d.ts +1 -2
- package/dist/content/legacy/document.d.ts.map +1 -1
- package/dist/content/legacy/document.js.map +1 -1
- package/dist/content/legacy/embed.js.map +1 -1
- package/dist/content/legacy/empty.js.map +1 -1
- package/dist/content/legacy/field.js.map +1 -1
- package/dist/content/legacy/geopoint.js.map +1 -1
- package/dist/content/legacy/group.d.ts +2 -2
- package/dist/content/legacy/group.d.ts.map +1 -1
- package/dist/content/legacy/group.js.map +1 -1
- package/dist/content/legacy/image.d.ts +0 -1
- package/dist/content/legacy/image.d.ts.map +1 -1
- package/dist/content/legacy/image.js.map +1 -1
- package/dist/content/legacy/integrationField.js.map +1 -1
- package/dist/content/legacy/link.d.ts +1 -2
- package/dist/content/legacy/link.d.ts.map +1 -1
- package/dist/content/legacy/link.js.map +1 -1
- package/dist/content/legacy/nestable.d.ts +12 -0
- package/dist/content/legacy/nestable.js.map +1 -1
- package/dist/content/legacy/repeatable.js.map +1 -1
- package/dist/content/legacy/richText.d.ts +5 -2
- package/dist/content/legacy/richText.d.ts.map +1 -1
- package/dist/content/legacy/richText.js.map +1 -1
- package/dist/content/legacy/separator.js.map +1 -1
- package/dist/content/legacy/slice.js +1 -1
- package/dist/content/legacy/slice.js.map +1 -1
- package/dist/content/legacy/slices.js.map +1 -1
- package/dist/content/legacy/table.d.ts +2 -0
- package/dist/content/legacy/table.js.map +1 -1
- package/dist/content/legacy/uid.js.map +1 -1
- package/dist/content/link.d.ts +7 -8
- package/dist/content/link.d.ts.map +1 -1
- package/dist/content/link.js.map +1 -1
- package/dist/content/nestable.d.ts +0 -1
- package/dist/content/nestable.d.ts.map +1 -1
- package/dist/content/nestable.js.map +1 -1
- package/dist/content/repeatable.d.ts +3 -4
- package/dist/content/repeatable.d.ts.map +1 -1
- package/dist/content/repeatable.js.map +1 -1
- package/dist/content/richText.d.ts +2 -3
- package/dist/content/richText.d.ts.map +1 -1
- package/dist/content/richText.js +2 -2
- package/dist/content/richText.js.map +1 -1
- package/dist/content/separator.d.ts +1 -2
- package/dist/content/separator.d.ts.map +1 -1
- package/dist/content/separator.js.map +1 -1
- package/dist/content/slice.d.ts +13 -14
- package/dist/content/slice.d.ts.map +1 -1
- package/dist/content/slice.js.map +1 -1
- package/dist/content/slices.d.ts +13 -14
- package/dist/content/slices.d.ts.map +1 -1
- package/dist/content/slices.js.map +1 -1
- package/dist/content/table.d.ts +1 -2
- package/dist/content/table.d.ts.map +1 -1
- package/dist/content/table.js.map +1 -1
- package/dist/content/uid.d.ts +1 -2
- package/dist/content/uid.d.ts.map +1 -1
- package/dist/content/uid.js.map +1 -1
- package/dist/content/widget.d.ts +0 -1
- package/dist/content/widget.d.ts.map +1 -1
- package/dist/content/widget.js.map +1 -1
- package/dist/helpers/contentPath.d.ts +1 -1
- package/dist/helpers/contentPath.d.ts.map +1 -1
- package/dist/helpers/contentPath.js +1 -1
- package/dist/helpers/contentPath.js.map +1 -1
- package/dist/helpers/customTypeModel.d.ts +3 -5
- package/dist/helpers/customTypeModel.d.ts.map +1 -1
- package/dist/helpers/customTypeModel.js +2 -2
- package/dist/helpers/customTypeModel.js.map +1 -1
- package/dist/helpers/documentContent.d.ts +4 -5
- package/dist/helpers/documentContent.d.ts.map +1 -1
- package/dist/helpers/documentContent.js +12 -15
- package/dist/helpers/documentContent.js.map +1 -1
- package/dist/helpers/fieldModel.d.ts +1 -1
- package/dist/helpers/fieldModel.d.ts.map +1 -1
- package/dist/helpers/fieldModel.js +1 -1
- package/dist/helpers/fieldModel.js.map +1 -1
- package/dist/helpers/imageContent.d.ts +2 -6
- package/dist/helpers/imageContent.d.ts.map +1 -1
- package/dist/helpers/imageContent.js +1 -1
- package/dist/helpers/imageContent.js.map +1 -1
- package/dist/helpers/repository.d.ts +1 -1
- package/dist/helpers/repository.d.ts.map +1 -1
- package/dist/helpers/repository.js +1 -1
- package/dist/helpers/repository.js.map +1 -1
- package/dist/helpers/sliceContent.d.ts +4 -4
- package/dist/helpers/sliceContent.d.ts.map +1 -1
- package/dist/helpers/sliceContent.js +11 -2
- package/dist/helpers/sliceContent.js.map +1 -1
- package/dist/helpers/sliceModel.d.ts +1 -1
- package/dist/helpers/sliceModel.d.ts.map +1 -1
- package/dist/helpers/sliceModel.js +1 -1
- package/dist/helpers/sliceModel.js.map +1 -1
- package/dist/helpers/traverseContent.d.ts +2 -3
- package/dist/helpers/traverseContent.d.ts.map +1 -1
- package/dist/helpers/traverseContent.js +6 -3
- package/dist/helpers/traverseContent.js.map +1 -1
- package/dist/helpers/traverseContentWithModel.d.ts +0 -1
- package/dist/helpers/traverseContentWithModel.d.ts.map +1 -1
- package/dist/helpers/traverseContentWithModel.js.map +1 -1
- package/dist/helpers/withDefaultContent.d.ts +1 -3
- package/dist/helpers/withDefaultContent.d.ts.map +1 -1
- package/dist/helpers/withDefaultContent.js +1 -1
- package/dist/helpers/withDefaultContent.js.map +1 -1
- package/dist/index.d.ts +10 -6
- package/dist/index.js +5 -2
- package/dist/io-ts.d.ts +349 -305
- package/dist/io-ts.d.ts.map +1 -1
- package/dist/io-ts.js +20 -18
- package/dist/io-ts.js.map +1 -1
- package/dist/model/boolean.d.ts +1 -2
- package/dist/model/boolean.d.ts.map +1 -1
- package/dist/model/boolean.js.map +1 -1
- package/dist/model/color.d.ts +1 -2
- package/dist/model/color.d.ts.map +1 -1
- package/dist/model/color.js.map +1 -1
- package/dist/model/customType.d.ts +7 -4
- package/dist/model/customType.d.ts.map +1 -1
- package/dist/model/customType.js +1 -1
- package/dist/model/customType.js.map +1 -1
- package/dist/model/date.d.ts +1 -2
- package/dist/model/date.d.ts.map +1 -1
- package/dist/model/date.js.map +1 -1
- package/dist/model/diff/changes.d.ts +21 -0
- package/dist/model/diff/changes.d.ts.map +1 -0
- package/dist/model/diff/changes.js +11 -0
- package/dist/model/diff/changes.js.map +1 -0
- package/dist/model/diff/sharedSlice.d.ts +14 -0
- package/dist/model/diff/sharedSlice.d.ts.map +1 -0
- package/dist/model/diff/sharedSlice.js +45 -0
- package/dist/model/diff/sharedSlice.js.map +1 -0
- package/dist/model/diff/utils.js +40 -0
- package/dist/model/diff/utils.js.map +1 -0
- package/dist/model/diff/variation.d.ts +15 -0
- package/dist/model/diff/variation.d.ts.map +1 -0
- package/dist/model/diff/variation.js +92 -0
- package/dist/model/diff/variation.js.map +1 -0
- package/dist/model/diff/widgets.d.ts +15 -0
- package/dist/model/diff/widgets.d.ts.map +1 -0
- package/dist/model/embed.d.ts +1 -2
- package/dist/model/embed.d.ts.map +1 -1
- package/dist/model/embed.js.map +1 -1
- package/dist/model/geopoint.d.ts +1 -2
- package/dist/model/geopoint.d.ts.map +1 -1
- package/dist/model/geopoint.js.map +1 -1
- package/dist/model/group.d.ts +7 -8
- package/dist/model/group.d.ts.map +1 -1
- package/dist/model/group.js +1 -1
- package/dist/model/group.js.map +1 -1
- package/dist/model/image.d.ts +1 -2
- package/dist/model/image.d.ts.map +1 -1
- package/dist/model/image.js +1 -1
- package/dist/model/image.js.map +1 -1
- package/dist/model/integrationField.d.ts +1 -2
- package/dist/model/integrationField.d.ts.map +1 -1
- package/dist/model/integrationField.js.map +1 -1
- package/dist/model/link.d.ts +28 -3
- package/dist/model/link.d.ts.map +1 -1
- package/dist/model/link.js +3 -3
- package/dist/model/link.js.map +1 -1
- package/dist/model/nestable.d.ts +0 -1
- package/dist/model/nestable.d.ts.map +1 -1
- package/dist/model/nestable.js +3 -3
- package/dist/model/nestable.js.map +1 -1
- package/dist/model/number.d.ts +1 -2
- package/dist/model/number.d.ts.map +1 -1
- package/dist/model/number.js.map +1 -1
- package/dist/model/range.d.ts +1 -2
- package/dist/model/range.d.ts.map +1 -1
- package/dist/model/range.js.map +1 -1
- package/dist/model/richText.d.ts +1 -2
- package/dist/model/richText.d.ts.map +1 -1
- package/dist/model/richText.js +1 -1
- package/dist/model/richText.js.map +1 -1
- package/dist/model/select.d.ts +1 -2
- package/dist/model/select.d.ts.map +1 -1
- package/dist/model/select.js.map +1 -1
- package/dist/model/separator.d.ts +1 -2
- package/dist/model/separator.d.ts.map +1 -1
- package/dist/model/separator.js.map +1 -1
- package/dist/model/slice.d.ts +44 -45
- package/dist/model/slice.d.ts.map +1 -1
- package/dist/model/slice.js +1 -1
- package/dist/model/slice.js.map +1 -1
- package/dist/model/slices.d.ts +1 -2
- package/dist/model/slices.d.ts.map +1 -1
- package/dist/model/slices.js +1 -1
- package/dist/model/slices.js.map +1 -1
- package/dist/model/table.d.ts +4 -3
- package/dist/model/table.d.ts.map +1 -1
- package/dist/model/table.js.map +1 -1
- package/dist/model/text.d.ts +1 -2
- package/dist/model/text.d.ts.map +1 -1
- package/dist/model/text.js.map +1 -1
- package/dist/model/timestamp.d.ts +1 -2
- package/dist/model/timestamp.d.ts.map +1 -1
- package/dist/model/timestamp.js.map +1 -1
- package/dist/model/uid.d.ts +1 -2
- package/dist/model/uid.d.ts.map +1 -1
- package/dist/model/uid.js.map +1 -1
- package/dist/model/widget.d.ts +23 -24
- package/dist/model/widget.d.ts.map +1 -1
- package/dist/model/widget.js +1 -1
- package/dist/model/widget.js.map +1 -1
- package/dist/zod4.d.ts +3399 -3354
- package/dist/zod4.d.ts.map +1 -1
- package/dist/zod4.js +20 -18
- package/dist/zod4.js.map +1 -1
- package/package.json +15 -13
- package/src/content/codec/group.ts +1 -1
- package/src/content/codec/legacyContentCtx.ts +7 -1
- package/src/helpers/customTypeModel.ts +6 -3
- package/src/helpers/documentContent.ts +21 -28
- package/src/helpers/sliceContent.ts +16 -0
- package/src/helpers/traverseContent.ts +8 -5
- package/src/index.ts +21 -3
- package/src/io-ts.ts +7 -1
- package/src/model/customType.ts +5 -0
- package/src/model/diff/changes.ts +4 -4
- package/src/model/diff/sharedSlice.ts +8 -8
- package/src/model/diff/variation.ts +6 -6
- package/src/model/diff/widgets.ts +3 -3
- package/src/model/image.ts +4 -1
- package/src/model/link.ts +4 -2
- package/src/zod4.ts +7 -1
package/dist/content/slice.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { LinkContentValue } from "./link.js";
|
|
|
2
2
|
import { RichTextContentBlock } from "./richText.js";
|
|
3
3
|
import { GroupItemContent } from "./group.js";
|
|
4
4
|
import { z } from "zod/mini";
|
|
5
|
-
|
|
6
5
|
//#region src/content/slice.d.ts
|
|
7
6
|
declare const LegacySliceContentSchema: z.ZodMiniDiscriminatedUnion<[z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
8
7
|
type: z.ZodMiniString<string>;
|
|
@@ -91,12 +90,12 @@ declare const LegacySliceContentSchema: z.ZodMiniDiscriminatedUnion<[z.ZodMiniDi
|
|
|
91
90
|
variant: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
92
91
|
value: z.ZodMiniType<LinkContentValue, Record<string, unknown>, z.core.$ZodTypeInternals<LinkContentValue, Record<string, unknown>>>;
|
|
93
92
|
}, z.core.$strip>>, z.ZodMiniTransform<{
|
|
94
|
-
variant?: string | undefined;
|
|
95
93
|
text?: string | undefined;
|
|
94
|
+
variant?: string | undefined;
|
|
96
95
|
} & LinkContentValue, {
|
|
97
|
-
value: LinkContentValue;
|
|
98
96
|
text?: string | undefined;
|
|
99
97
|
variant?: string | undefined;
|
|
98
|
+
value: LinkContentValue;
|
|
100
99
|
}>>;
|
|
101
100
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
102
101
|
__TYPE__: z.ZodMiniLiteral<"RepeatableContent">;
|
|
@@ -113,12 +112,12 @@ declare const LegacySliceContentSchema: z.ZodMiniDiscriminatedUnion<[z.ZodMiniDi
|
|
|
113
112
|
variant: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
114
113
|
value: z.ZodMiniType<LinkContentValue, Record<string, unknown>, z.core.$ZodTypeInternals<LinkContentValue, Record<string, unknown>>>;
|
|
115
114
|
}, z.core.$strip>>, z.ZodMiniTransform<{
|
|
116
|
-
variant?: string | undefined;
|
|
117
115
|
text?: string | undefined;
|
|
116
|
+
variant?: string | undefined;
|
|
118
117
|
} & LinkContentValue, {
|
|
119
|
-
value: LinkContentValue;
|
|
120
118
|
text?: string | undefined;
|
|
121
119
|
variant?: string | undefined;
|
|
120
|
+
value: LinkContentValue;
|
|
122
121
|
}>>;
|
|
123
122
|
}, z.core.$strip>>;
|
|
124
123
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
@@ -263,12 +262,12 @@ declare const CompositeSliceContentSchema: z.ZodMiniObject<{
|
|
|
263
262
|
variant: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
264
263
|
value: z.ZodMiniType<LinkContentValue, Record<string, unknown>, z.core.$ZodTypeInternals<LinkContentValue, Record<string, unknown>>>;
|
|
265
264
|
}, z.core.$strip>>, z.ZodMiniTransform<{
|
|
266
|
-
variant?: string | undefined;
|
|
267
265
|
text?: string | undefined;
|
|
266
|
+
variant?: string | undefined;
|
|
268
267
|
} & LinkContentValue, {
|
|
269
|
-
value: LinkContentValue;
|
|
270
268
|
text?: string | undefined;
|
|
271
269
|
variant?: string | undefined;
|
|
270
|
+
value: LinkContentValue;
|
|
272
271
|
}>>;
|
|
273
272
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
274
273
|
__TYPE__: z.ZodMiniLiteral<"RepeatableContent">;
|
|
@@ -285,12 +284,12 @@ declare const CompositeSliceContentSchema: z.ZodMiniObject<{
|
|
|
285
284
|
variant: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
286
285
|
value: z.ZodMiniType<LinkContentValue, Record<string, unknown>, z.core.$ZodTypeInternals<LinkContentValue, Record<string, unknown>>>;
|
|
287
286
|
}, z.core.$strip>>, z.ZodMiniTransform<{
|
|
288
|
-
variant?: string | undefined;
|
|
289
287
|
text?: string | undefined;
|
|
288
|
+
variant?: string | undefined;
|
|
290
289
|
} & LinkContentValue, {
|
|
291
|
-
value: LinkContentValue;
|
|
292
290
|
text?: string | undefined;
|
|
293
291
|
variant?: string | undefined;
|
|
292
|
+
value: LinkContentValue;
|
|
294
293
|
}>>;
|
|
295
294
|
}, z.core.$strip>>;
|
|
296
295
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
@@ -435,12 +434,12 @@ declare const SharedSliceContentSchema: z.ZodMiniObject<{
|
|
|
435
434
|
variant: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
436
435
|
value: z.ZodMiniType<LinkContentValue, Record<string, unknown>, z.core.$ZodTypeInternals<LinkContentValue, Record<string, unknown>>>;
|
|
437
436
|
}, z.core.$strip>>, z.ZodMiniTransform<{
|
|
438
|
-
variant?: string | undefined;
|
|
439
437
|
text?: string | undefined;
|
|
438
|
+
variant?: string | undefined;
|
|
440
439
|
} & LinkContentValue, {
|
|
441
|
-
value: LinkContentValue;
|
|
442
440
|
text?: string | undefined;
|
|
443
441
|
variant?: string | undefined;
|
|
442
|
+
value: LinkContentValue;
|
|
444
443
|
}>>;
|
|
445
444
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
446
445
|
__TYPE__: z.ZodMiniLiteral<"RepeatableContent">;
|
|
@@ -457,12 +456,12 @@ declare const SharedSliceContentSchema: z.ZodMiniObject<{
|
|
|
457
456
|
variant: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
458
457
|
value: z.ZodMiniType<LinkContentValue, Record<string, unknown>, z.core.$ZodTypeInternals<LinkContentValue, Record<string, unknown>>>;
|
|
459
458
|
}, z.core.$strip>>, z.ZodMiniTransform<{
|
|
460
|
-
variant?: string | undefined;
|
|
461
459
|
text?: string | undefined;
|
|
460
|
+
variant?: string | undefined;
|
|
462
461
|
} & LinkContentValue, {
|
|
463
|
-
value: LinkContentValue;
|
|
464
462
|
text?: string | undefined;
|
|
465
463
|
variant?: string | undefined;
|
|
464
|
+
value: LinkContentValue;
|
|
466
465
|
}>>;
|
|
467
466
|
}, z.core.$strip>>;
|
|
468
467
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
@@ -522,5 +521,5 @@ declare const SharedSliceContentSchema: z.ZodMiniObject<{
|
|
|
522
521
|
type SharedSliceContent = z.infer<typeof SharedSliceContentSchema>;
|
|
523
522
|
type SliceContent = LegacySliceContent | CompositeSliceContent | SharedSliceContent;
|
|
524
523
|
//#endregion
|
|
525
|
-
export { CompositeSliceContent, LegacySliceContent, SharedSliceContent, SliceContent };
|
|
524
|
+
export { CompositeSliceContent, CompositeSliceContentSchema, LegacySliceContent, LegacySliceContentSchema, SharedSliceContent, SharedSliceContentSchema, SliceContent };
|
|
526
525
|
//# sourceMappingURL=slice.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slice.d.ts","names":[],"sources":["../../src/content/slice.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"slice.d.ts","names":[],"sources":["../../src/content/slice.ts"],"mappings":";;;;;cAMa,0BAAwB,EAAA,2BAAA,EAAA,2BAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEzB,qBAAqB,EAAE,aAAa;cAKnC,6BAA2B,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAM5B,wBAAwB,EAAE,aAAa;cAKtC,0BAAwB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAOzB,qBAAqB,EAAE,aAAa;KASpC,eAAe,qBAAqB,wBAAwB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slice.js","names":[],"sources":["../../src/content/slice.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nimport { GroupItemContentSchema, NestableAndGroupContentSchema } from \"./group\"\nimport { NestableContentSchema } from \"./nestable\"\n\n// Legacy (before 2020)\nexport const LegacySliceContentSchema = NestableAndGroupContentSchema\n\nexport type LegacySliceContent = z.infer<typeof LegacySliceContentSchema>\n\n// Composite (2020 to 2021)\nexport const CompositeSliceContentType = \"CompositeSliceContent\" as const\n\nexport const CompositeSliceContentSchema = z.object({\n\t__TYPE__: z.literal(CompositeSliceContentType),\n\tnonRepeat: z.record(z.string(), NestableContentSchema),\n\trepeat: z.array(GroupItemContentSchema),\n})\n\nexport type CompositeSliceContent = z.infer<typeof CompositeSliceContentSchema>\n\n// Shared (2021 to present)\nexport const SharedSliceContentType = \"SharedSliceContent\" as const\n\nexport const SharedSliceContentSchema = z.object({\n\t__TYPE__: z.literal(SharedSliceContentType),\n\tvariation: z.string(),\n\tprimary: z.record(z.string(), NestableAndGroupContentSchema),\n\titems: z.array(GroupItemContentSchema),\n})\n\nexport type SharedSliceContent = z.infer<typeof SharedSliceContentSchema>\n\n// All\nexport const SliceContentSchema: z.ZodMiniType<SliceContent> = z.discriminatedUnion(\"__TYPE__\", [\n\tLegacySliceContentSchema,\n\tCompositeSliceContentSchema,\n\tSharedSliceContentSchema,\n])\n\nexport type SliceContent = LegacySliceContent | CompositeSliceContent | SharedSliceContent\n"],"mappings":";;;;AAMA,MAAa,2BAA2B;AAKxC,MAAa,4BAA4B;AAEzC,MAAa,8BAA8B,EAAE,OAAO;CACnD,UAAU,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"slice.js","names":[],"sources":["../../src/content/slice.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nimport { GroupItemContentSchema, NestableAndGroupContentSchema } from \"./group\"\nimport { NestableContentSchema } from \"./nestable\"\n\n// Legacy (before 2020)\nexport const LegacySliceContentSchema = NestableAndGroupContentSchema\n\nexport type LegacySliceContent = z.infer<typeof LegacySliceContentSchema>\n\n// Composite (2020 to 2021)\nexport const CompositeSliceContentType = \"CompositeSliceContent\" as const\n\nexport const CompositeSliceContentSchema = z.object({\n\t__TYPE__: z.literal(CompositeSliceContentType),\n\tnonRepeat: z.record(z.string(), NestableContentSchema),\n\trepeat: z.array(GroupItemContentSchema),\n})\n\nexport type CompositeSliceContent = z.infer<typeof CompositeSliceContentSchema>\n\n// Shared (2021 to present)\nexport const SharedSliceContentType = \"SharedSliceContent\" as const\n\nexport const SharedSliceContentSchema = z.object({\n\t__TYPE__: z.literal(SharedSliceContentType),\n\tvariation: z.string(),\n\tprimary: z.record(z.string(), NestableAndGroupContentSchema),\n\titems: z.array(GroupItemContentSchema),\n})\n\nexport type SharedSliceContent = z.infer<typeof SharedSliceContentSchema>\n\n// All\nexport const SliceContentSchema: z.ZodMiniType<SliceContent> = z.discriminatedUnion(\"__TYPE__\", [\n\tLegacySliceContentSchema,\n\tCompositeSliceContentSchema,\n\tSharedSliceContentSchema,\n])\n\nexport type SliceContent = LegacySliceContent | CompositeSliceContent | SharedSliceContent\n"],"mappings":";;;;AAMA,MAAa,2BAA2B;AAKxC,MAAa,4BAA4B;AAEzC,MAAa,8BAA8B,EAAE,OAAO;CACnD,UAAU,EAAE,QAAQ,yBAAyB;CAC7C,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,qBAAqB;CACrD,QAAQ,EAAE,MAAM,sBAAsB;AACvC,CAAC;AAKD,MAAa,yBAAyB;AAEtC,MAAa,2BAA2B,EAAE,OAAO;CAChD,UAAU,EAAE,QAAQ,sBAAsB;CAC1C,WAAW,EAAE,OAAO;CACpB,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,6BAA6B;CAC3D,OAAO,EAAE,MAAM,sBAAsB;AACtC,CAAC;AAKD,MAAa,qBAAkD,EAAE,mBAAmB,YAAY;CAC/F;CACA;CACA;AACD,CAAC"}
|
package/dist/content/slices.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { RichTextContentBlock } from "./richText.js";
|
|
|
3
3
|
import { GroupItemContent } from "./group.js";
|
|
4
4
|
import { SliceContent } from "./slice.js";
|
|
5
5
|
import { z } from "zod/mini";
|
|
6
|
-
|
|
7
6
|
//#region src/content/slices.d.ts
|
|
8
7
|
declare const LegacySliceItemContentSchema: z.ZodMiniObject<{
|
|
9
8
|
key: z.ZodMiniString<string>;
|
|
@@ -96,12 +95,12 @@ declare const LegacySliceItemContentSchema: z.ZodMiniObject<{
|
|
|
96
95
|
variant: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
97
96
|
value: z.ZodMiniType<LinkContentValue, Record<string, unknown>, z.core.$ZodTypeInternals<LinkContentValue, Record<string, unknown>>>;
|
|
98
97
|
}, z.core.$strip>>, z.ZodMiniTransform<{
|
|
99
|
-
variant?: string | undefined;
|
|
100
98
|
text?: string | undefined;
|
|
99
|
+
variant?: string | undefined;
|
|
101
100
|
} & LinkContentValue, {
|
|
102
|
-
value: LinkContentValue;
|
|
103
101
|
text?: string | undefined;
|
|
104
102
|
variant?: string | undefined;
|
|
103
|
+
value: LinkContentValue;
|
|
105
104
|
}>>;
|
|
106
105
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
107
106
|
__TYPE__: z.ZodMiniLiteral<"RepeatableContent">;
|
|
@@ -118,12 +117,12 @@ declare const LegacySliceItemContentSchema: z.ZodMiniObject<{
|
|
|
118
117
|
variant: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
119
118
|
value: z.ZodMiniType<LinkContentValue, Record<string, unknown>, z.core.$ZodTypeInternals<LinkContentValue, Record<string, unknown>>>;
|
|
120
119
|
}, z.core.$strip>>, z.ZodMiniTransform<{
|
|
121
|
-
variant?: string | undefined;
|
|
122
120
|
text?: string | undefined;
|
|
121
|
+
variant?: string | undefined;
|
|
123
122
|
} & LinkContentValue, {
|
|
124
|
-
value: LinkContentValue;
|
|
125
123
|
text?: string | undefined;
|
|
126
124
|
variant?: string | undefined;
|
|
125
|
+
value: LinkContentValue;
|
|
127
126
|
}>>;
|
|
128
127
|
}, z.core.$strip>>;
|
|
129
128
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
@@ -273,12 +272,12 @@ declare const CompositeSliceItemContentSchema: z.ZodMiniObject<{
|
|
|
273
272
|
variant: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
274
273
|
value: z.ZodMiniType<LinkContentValue, Record<string, unknown>, z.core.$ZodTypeInternals<LinkContentValue, Record<string, unknown>>>;
|
|
275
274
|
}, z.core.$strip>>, z.ZodMiniTransform<{
|
|
276
|
-
variant?: string | undefined;
|
|
277
275
|
text?: string | undefined;
|
|
276
|
+
variant?: string | undefined;
|
|
278
277
|
} & LinkContentValue, {
|
|
279
|
-
value: LinkContentValue;
|
|
280
278
|
text?: string | undefined;
|
|
281
279
|
variant?: string | undefined;
|
|
280
|
+
value: LinkContentValue;
|
|
282
281
|
}>>;
|
|
283
282
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
284
283
|
__TYPE__: z.ZodMiniLiteral<"RepeatableContent">;
|
|
@@ -295,12 +294,12 @@ declare const CompositeSliceItemContentSchema: z.ZodMiniObject<{
|
|
|
295
294
|
variant: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
296
295
|
value: z.ZodMiniType<LinkContentValue, Record<string, unknown>, z.core.$ZodTypeInternals<LinkContentValue, Record<string, unknown>>>;
|
|
297
296
|
}, z.core.$strip>>, z.ZodMiniTransform<{
|
|
298
|
-
variant?: string | undefined;
|
|
299
297
|
text?: string | undefined;
|
|
298
|
+
variant?: string | undefined;
|
|
300
299
|
} & LinkContentValue, {
|
|
301
|
-
value: LinkContentValue;
|
|
302
300
|
text?: string | undefined;
|
|
303
301
|
variant?: string | undefined;
|
|
302
|
+
value: LinkContentValue;
|
|
304
303
|
}>>;
|
|
305
304
|
}, z.core.$strip>>;
|
|
306
305
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
@@ -450,12 +449,12 @@ declare const SharedSliceItemContentSchema: z.ZodMiniObject<{
|
|
|
450
449
|
variant: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
451
450
|
value: z.ZodMiniType<LinkContentValue, Record<string, unknown>, z.core.$ZodTypeInternals<LinkContentValue, Record<string, unknown>>>;
|
|
452
451
|
}, z.core.$strip>>, z.ZodMiniTransform<{
|
|
453
|
-
variant?: string | undefined;
|
|
454
452
|
text?: string | undefined;
|
|
453
|
+
variant?: string | undefined;
|
|
455
454
|
} & LinkContentValue, {
|
|
456
|
-
value: LinkContentValue;
|
|
457
455
|
text?: string | undefined;
|
|
458
456
|
variant?: string | undefined;
|
|
457
|
+
value: LinkContentValue;
|
|
459
458
|
}>>;
|
|
460
459
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
461
460
|
__TYPE__: z.ZodMiniLiteral<"RepeatableContent">;
|
|
@@ -472,12 +471,12 @@ declare const SharedSliceItemContentSchema: z.ZodMiniObject<{
|
|
|
472
471
|
variant: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
473
472
|
value: z.ZodMiniType<LinkContentValue, Record<string, unknown>, z.core.$ZodTypeInternals<LinkContentValue, Record<string, unknown>>>;
|
|
474
473
|
}, z.core.$strip>>, z.ZodMiniTransform<{
|
|
475
|
-
variant?: string | undefined;
|
|
476
474
|
text?: string | undefined;
|
|
475
|
+
variant?: string | undefined;
|
|
477
476
|
} & LinkContentValue, {
|
|
478
|
-
value: LinkContentValue;
|
|
479
477
|
text?: string | undefined;
|
|
480
478
|
variant?: string | undefined;
|
|
479
|
+
value: LinkContentValue;
|
|
481
480
|
}>>;
|
|
482
481
|
}, z.core.$strip>>;
|
|
483
482
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
@@ -554,5 +553,5 @@ declare const SlicesContentSchema: z.ZodMiniObject<{
|
|
|
554
553
|
}, z.core.$strip>;
|
|
555
554
|
type SlicesContent = z.infer<typeof SlicesContentSchema>;
|
|
556
555
|
//#endregion
|
|
557
|
-
export { CompositeSliceItemContent, LegacySliceItemContent, SharedSliceItemContent, SliceItemContent, SlicesContent };
|
|
556
|
+
export { CompositeSliceItemContent, CompositeSliceItemContentSchema, LegacySliceItemContent, LegacySliceItemContentSchema, SharedSliceItemContent, SharedSliceItemContentSchema, SliceItemContent, SliceItemContentSchema, SlicesContent, SlicesContentSchema };
|
|
558
557
|
//# sourceMappingURL=slices.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slices.d.ts","names":[],"sources":["../../src/content/slices.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"slices.d.ts","names":[],"sources":["../../src/content/slices.ts"],"mappings":";;;;;;cA2Ba,8BAA4B,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAE7B,yBAAyB,EAAE,aAAa;cAEvC,iCAA+B,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAIhC,4BAA4B,EAAE,aAAa;cAE1C,8BAA4B,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAE7B,yBAAyB,EAAE,aAAa;cAGvC,wBAAsB,EAAA;;;;;;KAEvB,mBAAmB,EAAE,aAAa;cAOjC,qBAAmB,EAAA;;;;;;;;;KAKpB,gBAAgB,EAAE,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slices.js","names":[],"sources":["../../src/content/slices.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nimport {\n\tCompositeSliceContentSchema,\n\tSharedSliceContentSchema,\n\tLegacySliceContentSchema,\n\tSliceContentSchema,\n} from \"./slice\"\n\n// Item\nconst getSliceItemContentSchema = <\n\tTWidgetSchema extends\n\t\t| typeof LegacySliceContentSchema\n\t\t| typeof CompositeSliceContentSchema\n\t\t| typeof SharedSliceContentSchema\n\t\t| typeof SliceContentSchema,\n>(\n\twidgetSchema: TWidgetSchema,\n) => {\n\treturn z.object({\n\t\tkey: z.string(),\n\t\tname: z.string(),\n\t\tmaybeLabel: z.optional(z.string()),\n\t\twidget: widgetSchema,\n\t})\n}\n\nexport const LegacySliceItemContentSchema = getSliceItemContentSchema(LegacySliceContentSchema)\n\nexport type LegacySliceItemContent = z.infer<typeof LegacySliceItemContentSchema>\n\nexport const CompositeSliceItemContentSchema = getSliceItemContentSchema(\n\tCompositeSliceContentSchema,\n)\n\nexport type CompositeSliceItemContent = z.infer<typeof CompositeSliceItemContentSchema>\n\nexport const SharedSliceItemContentSchema = getSliceItemContentSchema(SharedSliceContentSchema)\n\nexport type SharedSliceItemContent = z.infer<typeof SharedSliceItemContentSchema>\n\n// All\nexport const SliceItemContentSchema = getSliceItemContentSchema(SliceContentSchema)\n\nexport type SliceItemContent = z.infer<typeof SliceItemContentSchema>\n\n// Slices\n\n// Typo (missing `s`) is legacy...\nexport const SlicesContentType = \"SliceContentType\" as const\n\nexport const SlicesContentSchema = z.object({\n\t__TYPE__: z.literal(SlicesContentType),\n\tvalue: z.array(SliceItemContentSchema),\n})\n\nexport type SlicesContent = z.infer<typeof SlicesContentSchema>\n"],"mappings":";;;AAUA,MAAM,6BAOL,iBACI;
|
|
1
|
+
{"version":3,"file":"slices.js","names":[],"sources":["../../src/content/slices.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nimport {\n\tCompositeSliceContentSchema,\n\tSharedSliceContentSchema,\n\tLegacySliceContentSchema,\n\tSliceContentSchema,\n} from \"./slice\"\n\n// Item\nconst getSliceItemContentSchema = <\n\tTWidgetSchema extends\n\t\t| typeof LegacySliceContentSchema\n\t\t| typeof CompositeSliceContentSchema\n\t\t| typeof SharedSliceContentSchema\n\t\t| typeof SliceContentSchema,\n>(\n\twidgetSchema: TWidgetSchema,\n) => {\n\treturn z.object({\n\t\tkey: z.string(),\n\t\tname: z.string(),\n\t\tmaybeLabel: z.optional(z.string()),\n\t\twidget: widgetSchema,\n\t})\n}\n\nexport const LegacySliceItemContentSchema = getSliceItemContentSchema(LegacySliceContentSchema)\n\nexport type LegacySliceItemContent = z.infer<typeof LegacySliceItemContentSchema>\n\nexport const CompositeSliceItemContentSchema = getSliceItemContentSchema(\n\tCompositeSliceContentSchema,\n)\n\nexport type CompositeSliceItemContent = z.infer<typeof CompositeSliceItemContentSchema>\n\nexport const SharedSliceItemContentSchema = getSliceItemContentSchema(SharedSliceContentSchema)\n\nexport type SharedSliceItemContent = z.infer<typeof SharedSliceItemContentSchema>\n\n// All\nexport const SliceItemContentSchema = getSliceItemContentSchema(SliceContentSchema)\n\nexport type SliceItemContent = z.infer<typeof SliceItemContentSchema>\n\n// Slices\n\n// Typo (missing `s`) is legacy...\nexport const SlicesContentType = \"SliceContentType\" as const\n\nexport const SlicesContentSchema = z.object({\n\t__TYPE__: z.literal(SlicesContentType),\n\tvalue: z.array(SliceItemContentSchema),\n})\n\nexport type SlicesContent = z.infer<typeof SlicesContentSchema>\n"],"mappings":";;;AAUA,MAAM,6BAOL,iBACI;CACJ,OAAO,EAAE,OAAO;EACf,KAAK,EAAE,OAAO;EACd,MAAM,EAAE,OAAO;EACf,YAAY,EAAE,SAAS,EAAE,OAAO,CAAC;EACjC,QAAQ;CACT,CAAC;AACF;AAEA,MAAa,+BAA+B,0BAA0B,wBAAwB;AAI9F,MAAa,kCAAkC,0BAC9C,2BACD;AAIA,MAAa,+BAA+B,0BAA0B,wBAAwB;AAK9F,MAAa,yBAAyB,0BAA0B,kBAAkB;AAOlF,MAAa,oBAAoB;AAEjC,MAAa,sBAAsB,EAAE,OAAO;CAC3C,UAAU,EAAE,QAAQ,iBAAiB;CACrC,OAAO,EAAE,MAAM,sBAAsB;AACtC,CAAC"}
|
package/dist/content/table.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { RichTextContentBlock } from "./richText.js";
|
|
2
2
|
import { z } from "zod/mini";
|
|
3
|
-
|
|
4
3
|
//#region src/content/table.d.ts
|
|
5
4
|
declare const TableContentSchema: z.ZodMiniObject<{
|
|
6
5
|
__TYPE__: z.ZodMiniLiteral<"TableContent">;
|
|
@@ -20,5 +19,5 @@ declare const TableContentSchema: z.ZodMiniObject<{
|
|
|
20
19
|
}, z.core.$strip>;
|
|
21
20
|
type TableContent = z.infer<typeof TableContentSchema>;
|
|
22
21
|
//#endregion
|
|
23
|
-
export { TableContent };
|
|
22
|
+
export { TableContent, TableContentSchema };
|
|
24
23
|
//# sourceMappingURL=table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","names":[],"sources":["../../src/content/table.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"table.d.ts","names":[],"sources":["../../src/content/table.ts"],"mappings":";;;cAQa,oBAAkB,EAAA;;;;;;;;;;;;;;;;KAKnB,eAAe,EAAE,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.js","names":[],"sources":["../../src/content/table.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nimport { getTableRowSchema } from \"./legacy/table\"\nimport { RichTextContentSchema } from \"./richText\"\n\nexport const TableContentType = \"TableContent\" as const\n\n// Table\nexport const TableContentSchema = z.object({\n\t__TYPE__: z.literal(TableContentType),\n\tcontent: z.array(getTableRowSchema(RichTextContentSchema)),\n})\n\nexport type TableContent = z.infer<typeof TableContentSchema>\n"],"mappings":";;;;AAKA,MAAa,mBAAmB;AAGhC,MAAa,qBAAqB,EAAE,OAAO;CAC1C,UAAU,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"table.js","names":[],"sources":["../../src/content/table.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nimport { getTableRowSchema } from \"./legacy/table\"\nimport { RichTextContentSchema } from \"./richText\"\n\nexport const TableContentType = \"TableContent\" as const\n\n// Table\nexport const TableContentSchema = z.object({\n\t__TYPE__: z.literal(TableContentType),\n\tcontent: z.array(getTableRowSchema(RichTextContentSchema)),\n})\n\nexport type TableContent = z.infer<typeof TableContentSchema>\n"],"mappings":";;;;AAKA,MAAa,mBAAmB;AAGhC,MAAa,qBAAqB,EAAE,OAAO;CAC1C,UAAU,EAAE,QAAQ,gBAAgB;CACpC,SAAS,EAAE,MAAM,kBAAkB,qBAAqB,CAAC;AAC1D,CAAC"}
|
package/dist/content/uid.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod/mini";
|
|
2
|
-
|
|
3
2
|
//#region src/content/uid.d.ts
|
|
4
3
|
declare const UIDContentSchema: z.ZodMiniObject<{
|
|
5
4
|
__TYPE__: z.ZodMiniLiteral<"UIDContent">;
|
|
@@ -7,5 +6,5 @@ declare const UIDContentSchema: z.ZodMiniObject<{
|
|
|
7
6
|
}, z.core.$strip>;
|
|
8
7
|
type UIDContent = z.infer<typeof UIDContentSchema>;
|
|
9
8
|
//#endregion
|
|
10
|
-
export { UIDContent };
|
|
9
|
+
export { UIDContent, UIDContentSchema };
|
|
11
10
|
//# sourceMappingURL=uid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uid.d.ts","names":[],"sources":["../../src/content/uid.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"uid.d.ts","names":[],"sources":["../../src/content/uid.ts"],"mappings":";;cAIa,kBAAgB,EAAA;;;;KAKjB,aAAa,EAAE,aAAa"}
|
package/dist/content/uid.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uid.js","names":[],"sources":["../../src/content/uid.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nexport const UIDContentType = \"UIDContent\" as const\n\nexport const UIDContentSchema = z.object({\n\t__TYPE__: z.literal(UIDContentType),\n\tvalue: z.string(),\n})\n\nexport type UIDContent = z.infer<typeof UIDContentSchema>\n"],"mappings":";;AAEA,MAAa,iBAAiB;AAE9B,MAAa,mBAAmB,EAAE,OAAO;CACxC,UAAU,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"uid.js","names":[],"sources":["../../src/content/uid.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nexport const UIDContentType = \"UIDContent\" as const\n\nexport const UIDContentSchema = z.object({\n\t__TYPE__: z.literal(UIDContentType),\n\tvalue: z.string(),\n})\n\nexport type UIDContent = z.infer<typeof UIDContentSchema>\n"],"mappings":";;AAEA,MAAa,iBAAiB;AAE9B,MAAa,mBAAmB,EAAE,OAAO;CACxC,UAAU,EAAE,QAAQ,cAAc;CAClC,OAAO,EAAE,OAAO;AACjB,CAAC"}
|
package/dist/content/widget.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { GroupContent } from "./group.js";
|
|
|
3
3
|
import { SlicesContent } from "./slices.js";
|
|
4
4
|
import { UIDContent } from "./uid.js";
|
|
5
5
|
import { z } from "zod/mini";
|
|
6
|
-
|
|
7
6
|
//#region src/content/widget.d.ts
|
|
8
7
|
type WidgetContent = GroupContent | NestableContent | UIDContent | SlicesContent;
|
|
9
8
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget.d.ts","names":[],"sources":["../../src/content/widget.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"widget.d.ts","names":[],"sources":["../../src/content/widget.ts"],"mappings":";;;;;;KAkBY,gBAAgB,eAAe,kBAAkB,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget.js","names":[],"sources":["../../src/content/widget.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nimport type { GroupContent } from \"./group\"\nimport { GroupContentSchema } from \"./group\"\nimport type { NestableContent } from \"./nestable\"\nimport { NestableContentSchema } from \"./nestable\"\nimport type { SlicesContent } from \"./slices\"\nimport { SlicesContentSchema } from \"./slices\"\nimport type { UIDContent } from \"./uid\"\nimport { UIDContentSchema } from \"./uid\"\n\nexport const WidgetContentSchema: z.ZodMiniType<WidgetContent> = z.discriminatedUnion(\"__TYPE__\", [\n\tGroupContentSchema,\n\tNestableContentSchema,\n\tUIDContentSchema,\n\tSlicesContentSchema,\n])\n\nexport type WidgetContent = GroupContent | NestableContent | UIDContent | SlicesContent\n\nexport type ContentType = WidgetContent[\"__TYPE__\"]\n"],"mappings":";;;;;;AAWA,MAAa,sBAAoD,EAAE,mBAAmB,YAAY;CACjG;CACA;CACA;CACA;
|
|
1
|
+
{"version":3,"file":"widget.js","names":[],"sources":["../../src/content/widget.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nimport type { GroupContent } from \"./group\"\nimport { GroupContentSchema } from \"./group\"\nimport type { NestableContent } from \"./nestable\"\nimport { NestableContentSchema } from \"./nestable\"\nimport type { SlicesContent } from \"./slices\"\nimport { SlicesContentSchema } from \"./slices\"\nimport type { UIDContent } from \"./uid\"\nimport { UIDContentSchema } from \"./uid\"\n\nexport const WidgetContentSchema: z.ZodMiniType<WidgetContent> = z.discriminatedUnion(\"__TYPE__\", [\n\tGroupContentSchema,\n\tNestableContentSchema,\n\tUIDContentSchema,\n\tSlicesContentSchema,\n])\n\nexport type WidgetContent = GroupContent | NestableContent | UIDContent | SlicesContent\n\nexport type ContentType = WidgetContent[\"__TYPE__\"]\n"],"mappings":";;;;;;AAWA,MAAa,sBAAoD,EAAE,mBAAmB,YAAY;CACjG;CACA;CACA;CACA;AACD,CAAC"}
|
|
@@ -11,5 +11,5 @@ declare function current(path: Path): Part | undefined;
|
|
|
11
11
|
declare function append(path: string, strElement: string): string;
|
|
12
12
|
declare function make(...entries: (Pick<Part, "type"> & Partial<Pick<Part, "key">>)[]): Path;
|
|
13
13
|
//#endregion
|
|
14
|
-
export { Path, contentPath_d_exports };
|
|
14
|
+
export { Part, Path, append, contentPath_d_exports, current, make, serialize };
|
|
15
15
|
//# sourceMappingURL=contentPath.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contentPath.d.ts","names":[],"sources":["../../src/helpers/contentPath.ts"],"mappings":";;;KAAY
|
|
1
|
+
{"version":3,"file":"contentPath.d.ts","names":[],"sources":["../../src/helpers/contentPath.ts"],"mappings":";;;KAAY;EACX;EAUA;;KAGW,OAAO,cAAc;iBAIjB,UAAU,MAAM;iBAIhB,QAAQ,MAAM,OAAO;iBAIrB,OAAO,cAAc;iBAIrB,QAAQ,UAAU,KAAK,gBAAgB,QAAQ,KAAK,mBAAmB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contentPath.js","names":[],"sources":["../../src/helpers/contentPath.ts"],"sourcesContent":["export type Part = {\n\ttype:\n\t\t| \"CustomType\"\n\t\t| \"Widget\"\n\t\t| \"SharedSlice\"\n\t\t| \"Slice\"\n\t\t| \"LegacySlice\"\n\t\t| \"GroupItem\"\n\t\t| \"primary\"\n\t\t| \"items\"\n\t\t| \"RepeatableItem\"\n\tkey: string\n}\n\nexport type Path = ReadonlyArray<Part>\n\nconst PATH_SEPARATOR = \"::\"\n\nexport function serialize(path: Path): string {\n\treturn path.map((part) => part.key).join(PATH_SEPARATOR)\n}\n\nexport function current(path: Path): Part | undefined {\n\treturn path[path.length - 1]\n}\n\nexport function append(path: string, strElement: string): string {\n\treturn path + PATH_SEPARATOR + strElement\n}\n\nexport function make(...entries: (Pick<Part, \"type\"> & Partial<Pick<Part, \"key\">>)[]): Path {\n\treturn entries.reduce<Path>((acc, { key, type }) => {\n\t\treturn key ? acc.concat({ key, type }) : acc\n\t}, [])\n}\n"],"mappings":";;;;;;;;AAgBA,MAAM,iBAAiB;AAEvB,SAAgB,UAAU,MAAoB;
|
|
1
|
+
{"version":3,"file":"contentPath.js","names":[],"sources":["../../src/helpers/contentPath.ts"],"sourcesContent":["export type Part = {\n\ttype:\n\t\t| \"CustomType\"\n\t\t| \"Widget\"\n\t\t| \"SharedSlice\"\n\t\t| \"Slice\"\n\t\t| \"LegacySlice\"\n\t\t| \"GroupItem\"\n\t\t| \"primary\"\n\t\t| \"items\"\n\t\t| \"RepeatableItem\"\n\tkey: string\n}\n\nexport type Path = ReadonlyArray<Part>\n\nconst PATH_SEPARATOR = \"::\"\n\nexport function serialize(path: Path): string {\n\treturn path.map((part) => part.key).join(PATH_SEPARATOR)\n}\n\nexport function current(path: Path): Part | undefined {\n\treturn path[path.length - 1]\n}\n\nexport function append(path: string, strElement: string): string {\n\treturn path + PATH_SEPARATOR + strElement\n}\n\nexport function make(...entries: (Pick<Part, \"type\"> & Partial<Pick<Part, \"key\">>)[]): Path {\n\treturn entries.reduce<Path>((acc, { key, type }) => {\n\t\treturn key ? acc.concat({ key, type }) : acc\n\t}, [])\n}\n"],"mappings":";;;;;;;;AAgBA,MAAM,iBAAiB;AAEvB,SAAgB,UAAU,MAAoB;CAC7C,OAAO,KAAK,KAAK,SAAS,KAAK,GAAG,CAAC,CAAC,KAAK,cAAc;AACxD;AAEA,SAAgB,QAAQ,MAA8B;CACrD,OAAO,KAAK,KAAK,SAAS;AAC3B;AAEA,SAAgB,OAAO,MAAc,YAA4B;CAChE,OAAO,OAAO,iBAAiB;AAChC;AAEA,SAAgB,KAAK,GAAG,SAAoE;CAC3F,OAAO,QAAQ,QAAc,KAAK,EAAE,KAAK,WAAW;EACnD,OAAO,MAAM,IAAI,OAAO;GAAE;GAAK;EAAK,CAAC,IAAI;CAC1C,GAAG,CAAC,CAAC;AACN"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { SharedSliceModel } from "../model/slice.js";
|
|
2
|
-
import { DynamicCustomTypeModel, DynamicCustomTypeModelTab, StaticCustomTypeModel, StaticCustomTypeModelTab } from "../model/customType.js";
|
|
3
|
-
|
|
4
|
-
//#region src/helpers/customTypeModel.d.ts
|
|
2
|
+
import { DynamicCustomTypeModel, DynamicCustomTypeModelTab, FlattenedStaticCustomTypeModel, StaticCustomTypeModel, StaticCustomTypeModelTab } from "../model/customType.js";
|
|
5
3
|
declare namespace customTypeModel_d_exports {
|
|
6
4
|
export { collectSharedSlices, filterMissingSharedSlices, flatten, serializeID, toDynamic, toStatic };
|
|
7
5
|
}
|
|
@@ -9,9 +7,9 @@ declare function toStatic(customType: DynamicCustomTypeModel, sharedSlices: Map<
|
|
|
9
7
|
declare function toDynamic(customType: StaticCustomTypeModel): DynamicCustomTypeModel;
|
|
10
8
|
declare function flatten(customType: StaticCustomTypeModel): StaticCustomTypeModelTab;
|
|
11
9
|
declare function flatten(customType: DynamicCustomTypeModel): DynamicCustomTypeModelTab;
|
|
12
|
-
declare function collectSharedSlices(customType: StaticCustomTypeModel): Record<string, SharedSliceModel>;
|
|
10
|
+
declare function collectSharedSlices(customType: StaticCustomTypeModel | FlattenedStaticCustomTypeModel): Record<string, SharedSliceModel>;
|
|
13
11
|
declare function filterMissingSharedSlices<TCustomType extends StaticCustomTypeModel | DynamicCustomTypeModel>(customType: TCustomType, sharedSlices: Map<string, SharedSliceModel> | Record<string, SharedSliceModel>): TCustomType;
|
|
14
12
|
declare function serializeID(input: string): string;
|
|
15
13
|
//#endregion
|
|
16
|
-
export { customTypeModel_d_exports };
|
|
14
|
+
export { collectSharedSlices, customTypeModel_d_exports, filterMissingSharedSlices, flatten, serializeID, toDynamic, toStatic };
|
|
17
15
|
//# sourceMappingURL=customTypeModel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customTypeModel.d.ts","names":[],"sources":["../../src/helpers/customTypeModel.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"customTypeModel.d.ts","names":[],"sources":["../../src/helpers/customTypeModel.ts"],"mappings":";;;;;iBASgB,SACf,YAAY,wBACZ,cAAc,YAAY,oBAAoB,eAAe,oBAC3D;iBAwCa,UAAU,YAAY,wBAAwB;iBAkC9C,QAAQ,YAAY,wBAAwB;iBAC5C,QAAQ,YAAY,yBAAyB;iBAO7C,oBACf,YAAY,wBAAwB,iCAClC,eAAe;iBAiBF,0BACf,oBAAoB,wBAAwB,wBAE5C,YAAY,aACZ,cAAc,YAAY,oBAAoB,eAAe,oBAC3D;iBAuCa,YAAY"}
|
|
@@ -73,7 +73,7 @@ function flatten(customType) {
|
|
|
73
73
|
}
|
|
74
74
|
function collectSharedSlices(customType) {
|
|
75
75
|
const sharedSlices = {};
|
|
76
|
-
const flattened = flatten(customType);
|
|
76
|
+
const flattened = "fields" in customType ? customType.fields : flatten(customType);
|
|
77
77
|
for (const widget of Object.values(flattened)) if (widget.type === "Slices" || widget.type === "Choice") {
|
|
78
78
|
for (const [id, model] of Object.entries(widget.config?.choices || {})) if (model.type === "SharedSlice") sharedSlices[id] = model;
|
|
79
79
|
}
|
|
@@ -114,6 +114,6 @@ function serializeID(input) {
|
|
|
114
114
|
return normalized;
|
|
115
115
|
}
|
|
116
116
|
//#endregion
|
|
117
|
-
export { collectSharedSlices, customTypeModel_exports, flatten };
|
|
117
|
+
export { collectSharedSlices, customTypeModel_exports, filterMissingSharedSlices, flatten, serializeID, toDynamic, toStatic };
|
|
118
118
|
|
|
119
119
|
//# sourceMappingURL=customTypeModel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customTypeModel.js","names":[],"sources":["../../src/helpers/customTypeModel.ts"],"sourcesContent":["import type {\n\tDynamicCustomTypeModel,\n\tDynamicCustomTypeModelTab,\n\tStaticCustomTypeModel,\n\tStaticCustomTypeModelTab,\n} from \"../model/customType\"\nimport type { DynamicSliceModel, SharedSliceModel, StaticSliceModel } from \"../model/slice\"\n\nexport function toStatic(\n\tcustomType: DynamicCustomTypeModel,\n\tsharedSlices: Map<string, SharedSliceModel> | Record<string, SharedSliceModel>,\n): StaticCustomTypeModel {\n\tconst json: StaticCustomTypeModel[\"json\"] = {}\n\n\tconst sharedSlicesMap =\n\t\tsharedSlices instanceof Map ? sharedSlices : new Map(Object.entries(sharedSlices))\n\n\tfor (const [tabKey, tab] of Object.entries(customType.json)) {\n\t\tconst tabJSON: StaticCustomTypeModel[\"json\"][string] = {}\n\t\tfor (const [key, widget] of Object.entries(tab)) {\n\t\t\tswitch (widget.type) {\n\t\t\t\tcase \"Slices\":\n\t\t\t\tcase \"Choice\":\n\t\t\t\t\tconst choices: Record<string, StaticSliceModel> = {}\n\t\t\t\t\tfor (const [id, model] of Object.entries(widget.config?.choices || {})) {\n\t\t\t\t\t\tif (model.type === \"SharedSlice\") {\n\t\t\t\t\t\t\tconst sharedSlice = sharedSlicesMap.get(id)\n\t\t\t\t\t\t\tif (sharedSlice) {\n\t\t\t\t\t\t\t\tchoices[id] = sharedSlice\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tchoices[id] = model\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\ttabJSON[key] = {\n\t\t\t\t\t\t...widget,\n\t\t\t\t\t\tconfig: { ...widget.config, choices },\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\tdefault:\n\t\t\t\t\ttabJSON[key] = widget\n\t\t\t}\n\t\t}\n\n\t\tjson[tabKey] = tabJSON\n\t}\n\n\treturn { ...customType, json }\n}\n\nexport function toDynamic(customType: StaticCustomTypeModel): DynamicCustomTypeModel {\n\tconst json: DynamicCustomTypeModel[\"json\"] = {}\n\n\tfor (const [tabKey, tab] of Object.entries(customType.json)) {\n\t\tconst tabJSON: DynamicCustomTypeModel[\"json\"][string] = {}\n\t\tfor (const [key, widget] of Object.entries(tab)) {\n\t\t\tswitch (widget.type) {\n\t\t\t\tcase \"Slices\":\n\t\t\t\tcase \"Choice\":\n\t\t\t\t\tconst choices: Record<string, DynamicSliceModel> = {}\n\t\t\t\t\tfor (const [id, model] of Object.entries(widget.config?.choices || {})) {\n\t\t\t\t\t\tif (model.type === \"SharedSlice\") {\n\t\t\t\t\t\t\tchoices[id] = { type: \"SharedSlice\" }\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tchoices[id] = model\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\ttabJSON[key] = {\n\t\t\t\t\t\t...widget,\n\t\t\t\t\t\tconfig: { ...widget.config, choices },\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\tdefault:\n\t\t\t\t\ttabJSON[key] = widget\n\t\t\t}\n\t\t}\n\n\t\tjson[tabKey] = tabJSON\n\t}\n\n\treturn { ...customType, json }\n}\n\nexport function flatten(customType: StaticCustomTypeModel): StaticCustomTypeModelTab\nexport function flatten(customType: DynamicCustomTypeModel): DynamicCustomTypeModelTab\nexport function flatten(
|
|
1
|
+
{"version":3,"file":"customTypeModel.js","names":[],"sources":["../../src/helpers/customTypeModel.ts"],"sourcesContent":["import type {\n\tDynamicCustomTypeModel,\n\tDynamicCustomTypeModelTab,\n\tFlattenedStaticCustomTypeModel,\n\tStaticCustomTypeModel,\n\tStaticCustomTypeModelTab,\n} from \"../model/customType\"\nimport type { DynamicSliceModel, SharedSliceModel, StaticSliceModel } from \"../model/slice\"\n\nexport function toStatic(\n\tcustomType: DynamicCustomTypeModel,\n\tsharedSlices: Map<string, SharedSliceModel> | Record<string, SharedSliceModel>,\n): StaticCustomTypeModel {\n\tconst json: StaticCustomTypeModel[\"json\"] = {}\n\n\tconst sharedSlicesMap =\n\t\tsharedSlices instanceof Map ? sharedSlices : new Map(Object.entries(sharedSlices))\n\n\tfor (const [tabKey, tab] of Object.entries(customType.json)) {\n\t\tconst tabJSON: StaticCustomTypeModel[\"json\"][string] = {}\n\t\tfor (const [key, widget] of Object.entries(tab)) {\n\t\t\tswitch (widget.type) {\n\t\t\t\tcase \"Slices\":\n\t\t\t\tcase \"Choice\":\n\t\t\t\t\tconst choices: Record<string, StaticSliceModel> = {}\n\t\t\t\t\tfor (const [id, model] of Object.entries(widget.config?.choices || {})) {\n\t\t\t\t\t\tif (model.type === \"SharedSlice\") {\n\t\t\t\t\t\t\tconst sharedSlice = sharedSlicesMap.get(id)\n\t\t\t\t\t\t\tif (sharedSlice) {\n\t\t\t\t\t\t\t\tchoices[id] = sharedSlice\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tchoices[id] = model\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\ttabJSON[key] = {\n\t\t\t\t\t\t...widget,\n\t\t\t\t\t\tconfig: { ...widget.config, choices },\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\tdefault:\n\t\t\t\t\ttabJSON[key] = widget\n\t\t\t}\n\t\t}\n\n\t\tjson[tabKey] = tabJSON\n\t}\n\n\treturn { ...customType, json }\n}\n\nexport function toDynamic(customType: StaticCustomTypeModel): DynamicCustomTypeModel {\n\tconst json: DynamicCustomTypeModel[\"json\"] = {}\n\n\tfor (const [tabKey, tab] of Object.entries(customType.json)) {\n\t\tconst tabJSON: DynamicCustomTypeModel[\"json\"][string] = {}\n\t\tfor (const [key, widget] of Object.entries(tab)) {\n\t\t\tswitch (widget.type) {\n\t\t\t\tcase \"Slices\":\n\t\t\t\tcase \"Choice\":\n\t\t\t\t\tconst choices: Record<string, DynamicSliceModel> = {}\n\t\t\t\t\tfor (const [id, model] of Object.entries(widget.config?.choices || {})) {\n\t\t\t\t\t\tif (model.type === \"SharedSlice\") {\n\t\t\t\t\t\t\tchoices[id] = { type: \"SharedSlice\" }\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tchoices[id] = model\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\ttabJSON[key] = {\n\t\t\t\t\t\t...widget,\n\t\t\t\t\t\tconfig: { ...widget.config, choices },\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\tdefault:\n\t\t\t\t\ttabJSON[key] = widget\n\t\t\t}\n\t\t}\n\n\t\tjson[tabKey] = tabJSON\n\t}\n\n\treturn { ...customType, json }\n}\n\nexport function flatten(customType: StaticCustomTypeModel): StaticCustomTypeModelTab\nexport function flatten(customType: DynamicCustomTypeModel): DynamicCustomTypeModelTab\nexport function flatten(\n\tcustomType: StaticCustomTypeModel | DynamicCustomTypeModel,\n): StaticCustomTypeModelTab | DynamicCustomTypeModelTab {\n\treturn Object.values(customType.json).reduce((acc, fields) => ({ ...acc, ...fields }), {})\n}\n\nexport function collectSharedSlices(\n\tcustomType: StaticCustomTypeModel | FlattenedStaticCustomTypeModel,\n): Record<string, SharedSliceModel> {\n\tconst sharedSlices: Record<string, SharedSliceModel> = {}\n\n\tconst flattened = \"fields\" in customType ? customType.fields : flatten(customType)\n\tfor (const widget of Object.values(flattened)) {\n\t\tif (widget.type === \"Slices\" || widget.type === \"Choice\") {\n\t\t\tfor (const [id, model] of Object.entries(widget.config?.choices || {})) {\n\t\t\t\tif (model.type === \"SharedSlice\") {\n\t\t\t\t\tsharedSlices[id] = model\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn sharedSlices\n}\n\nexport function filterMissingSharedSlices<\n\tTCustomType extends StaticCustomTypeModel | DynamicCustomTypeModel,\n>(\n\tcustomType: TCustomType,\n\tsharedSlices: Map<string, SharedSliceModel> | Record<string, SharedSliceModel>,\n): TCustomType {\n\tconst json: TCustomType[\"json\"] = {}\n\n\tconst sharedSlicesMap =\n\t\tsharedSlices instanceof Map ? sharedSlices : new Map(Object.entries(sharedSlices))\n\n\tfor (const [tabKey, tab] of Object.entries(customType.json)) {\n\t\tconst tabJSON: typeof tab = {}\n\t\tfor (const [key, widget] of Object.entries(tab)) {\n\t\t\tswitch (widget.type) {\n\t\t\t\tcase \"Slices\":\n\t\t\t\tcase \"Choice\":\n\t\t\t\t\tconst choices: Required<typeof widget>[\"config\"][\"choices\"] = {}\n\t\t\t\t\tfor (const [id, model] of Object.entries(widget.config?.choices || {})) {\n\t\t\t\t\t\tif (model.type === \"SharedSlice\") {\n\t\t\t\t\t\t\tif (sharedSlicesMap.get(id)) {\n\t\t\t\t\t\t\t\tchoices[id] = model\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tchoices[id] = model\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\ttabJSON[key] = {\n\t\t\t\t\t\t...widget,\n\t\t\t\t\t\tconfig: { ...widget.config, choices },\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\tdefault:\n\t\t\t\t\ttabJSON[key] = widget\n\t\t\t}\n\t\t}\n\n\t\tjson[tabKey] = tabJSON\n\t}\n\n\treturn { ...customType, json }\n}\n\nexport function serializeID(input: string): string {\n\tconst normalized = input\n\t\t.trim()\n\t\t.normalize(\"NFD\")\n\t\t.replace(/\\p{M}/gu, \"\")\n\t\t.toLowerCase()\n\t\t.replace(/[^a-z0-9]+/g, \"_\")\n\t\t.replace(/^_+|_+$/g, \"\")\n\n\tif (normalized.length === 0) {\n\t\tthrow new Error(`Cannot serialize \"${input}\": result is empty.`)\n\t}\n\n\treturn normalized\n}\n"],"mappings":";;;;;;;;;;AASA,SAAgB,SACf,YACA,cACwB;CACxB,MAAM,OAAsC,CAAC;CAE7C,MAAM,kBACL,wBAAwB,MAAM,eAAe,IAAI,IAAI,OAAO,QAAQ,YAAY,CAAC;CAElF,KAAK,MAAM,CAAC,QAAQ,QAAQ,OAAO,QAAQ,WAAW,IAAI,GAAG;EAC5D,MAAM,UAAiD,CAAC;EACxD,KAAK,MAAM,CAAC,KAAK,WAAW,OAAO,QAAQ,GAAG,GAC7C,QAAQ,OAAO,MAAf;GACC,KAAK;GACL,KAAK;IACJ,MAAM,UAA4C,CAAC;IACnD,KAAK,MAAM,CAAC,IAAI,UAAU,OAAO,QAAQ,OAAO,QAAQ,WAAW,CAAC,CAAC,GACpE,IAAI,MAAM,SAAS,eAAe;KACjC,MAAM,cAAc,gBAAgB,IAAI,EAAE;KAC1C,IAAI,aACH,QAAQ,MAAM;IAEhB,OACC,QAAQ,MAAM;IAIhB,QAAQ,OAAO;KACd,GAAG;KACH,QAAQ;MAAE,GAAG,OAAO;MAAQ;KAAQ;IACrC;IACA;GACD,SACC,QAAQ,OAAO;EACjB;EAGD,KAAK,UAAU;CAChB;CAEA,OAAO;EAAE,GAAG;EAAY;CAAK;AAC9B;AAEA,SAAgB,UAAU,YAA2D;CACpF,MAAM,OAAuC,CAAC;CAE9C,KAAK,MAAM,CAAC,QAAQ,QAAQ,OAAO,QAAQ,WAAW,IAAI,GAAG;EAC5D,MAAM,UAAkD,CAAC;EACzD,KAAK,MAAM,CAAC,KAAK,WAAW,OAAO,QAAQ,GAAG,GAC7C,QAAQ,OAAO,MAAf;GACC,KAAK;GACL,KAAK;IACJ,MAAM,UAA6C,CAAC;IACpD,KAAK,MAAM,CAAC,IAAI,UAAU,OAAO,QAAQ,OAAO,QAAQ,WAAW,CAAC,CAAC,GACpE,IAAI,MAAM,SAAS,eAClB,QAAQ,MAAM,EAAE,MAAM,cAAc;SAEpC,QAAQ,MAAM;IAIhB,QAAQ,OAAO;KACd,GAAG;KACH,QAAQ;MAAE,GAAG,OAAO;MAAQ;KAAQ;IACrC;IACA;GACD,SACC,QAAQ,OAAO;EACjB;EAGD,KAAK,UAAU;CAChB;CAEA,OAAO;EAAE,GAAG;EAAY;CAAK;AAC9B;AAIA,SAAgB,QACf,YACuD;CACvD,OAAO,OAAO,OAAO,WAAW,IAAI,CAAC,CAAC,QAAQ,KAAK,YAAY;EAAE,GAAG;EAAK,GAAG;CAAO,IAAI,CAAC,CAAC;AAC1F;AAEA,SAAgB,oBACf,YACmC;CACnC,MAAM,eAAiD,CAAC;CAExD,MAAM,YAAY,YAAY,aAAa,WAAW,SAAS,QAAQ,UAAU;CACjF,KAAK,MAAM,UAAU,OAAO,OAAO,SAAS,GAC3C,IAAI,OAAO,SAAS,YAAY,OAAO,SAAS;OAC1C,MAAM,CAAC,IAAI,UAAU,OAAO,QAAQ,OAAO,QAAQ,WAAW,CAAC,CAAC,GACpE,IAAI,MAAM,SAAS,eAClB,aAAa,MAAM;CAAA;CAMvB,OAAO;AACR;AAEA,SAAgB,0BAGf,YACA,cACc;CACd,MAAM,OAA4B,CAAC;CAEnC,MAAM,kBACL,wBAAwB,MAAM,eAAe,IAAI,IAAI,OAAO,QAAQ,YAAY,CAAC;CAElF,KAAK,MAAM,CAAC,QAAQ,QAAQ,OAAO,QAAQ,WAAW,IAAI,GAAG;EAC5D,MAAM,UAAsB,CAAC;EAC7B,KAAK,MAAM,CAAC,KAAK,WAAW,OAAO,QAAQ,GAAG,GAC7C,QAAQ,OAAO,MAAf;GACC,KAAK;GACL,KAAK;IACJ,MAAM,UAAwD,CAAC;IAC/D,KAAK,MAAM,CAAC,IAAI,UAAU,OAAO,QAAQ,OAAO,QAAQ,WAAW,CAAC,CAAC,GACpE,IAAI,MAAM,SAAS;SACd,gBAAgB,IAAI,EAAE,GACzB,QAAQ,MAAM;IAAA,OAGf,QAAQ,MAAM;IAIhB,QAAQ,OAAO;KACd,GAAG;KACH,QAAQ;MAAE,GAAG,OAAO;MAAQ;KAAQ;IACrC;IACA;GACD,SACC,QAAQ,OAAO;EACjB;EAGD,KAAK,UAAU;CAChB;CAEA,OAAO;EAAE,GAAG;EAAY;CAAK;AAC9B;AAEA,SAAgB,YAAY,OAAuB;CAClD,MAAM,aAAa,MACjB,KAAK,CAAC,CACN,UAAU,KAAK,CAAC,CAChB,QAAQ,WAAW,EAAE,CAAC,CACtB,YAAY,CAAC,CACb,QAAQ,eAAe,GAAG,CAAC,CAC3B,QAAQ,YAAY,EAAE;CAExB,IAAI,WAAW,WAAW,GACzB,MAAM,IAAI,MAAM,qBAAqB,MAAM,oBAAoB;CAGhE,OAAO;AACR"}
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import { WidgetContent } from "../content/widget.js";
|
|
2
2
|
import { DocumentContent } from "../content/document.js";
|
|
3
|
-
import { StaticCustomTypeModel } from "../model/customType.js";
|
|
3
|
+
import { FlattenedStaticCustomTypeModel, StaticCustomTypeModel } from "../model/customType.js";
|
|
4
4
|
import { Path } from "./contentPath.js";
|
|
5
5
|
import { DocumentLegacy } from "../content/legacy/document.js";
|
|
6
|
-
|
|
7
|
-
//#region src/helpers/documentContent.d.ts
|
|
8
6
|
declare namespace documentContent_d_exports {
|
|
9
|
-
export { collectWidgets, fromLegacy, serializeUID, toLegacy };
|
|
7
|
+
export { collectWidgets, fromLegacy, migrateDocument, serializeUID, toLegacy };
|
|
10
8
|
}
|
|
11
9
|
declare function collectWidgets<TWidgetContent extends WidgetContent>(document: DocumentContent, test: (content: WidgetContent, args: {
|
|
12
10
|
path: Path;
|
|
13
11
|
key: string;
|
|
14
12
|
apiID: string;
|
|
15
13
|
}) => content is TWidgetContent): Record<string, TWidgetContent>;
|
|
14
|
+
declare function migrateDocument(document: DocumentContent, model: StaticCustomTypeModel | FlattenedStaticCustomTypeModel): DocumentContent;
|
|
16
15
|
declare function fromLegacy(legacy: DocumentLegacy, model: StaticCustomTypeModel): DocumentContent | undefined;
|
|
17
16
|
declare function toLegacy(document: DocumentContent): DocumentLegacy;
|
|
18
17
|
declare function serializeUID(input: string): string;
|
|
19
18
|
//#endregion
|
|
20
|
-
export { documentContent_d_exports };
|
|
19
|
+
export { collectWidgets, documentContent_d_exports, fromLegacy, migrateDocument, serializeUID, toLegacy };
|
|
21
20
|
//# sourceMappingURL=documentContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documentContent.d.ts","names":[],"sources":["../../src/helpers/documentContent.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"documentContent.d.ts","names":[],"sources":["../../src/helpers/documentContent.ts"],"mappings":";;;;;;;;iBAgBgB,eAAe,uBAAuB,eACrD,UAAU,iBACV,OACC,SAAS,eACT;EACC,MAAM;EACN;EACA;MAEG,WAAW,iBACd,eAAe;iBAgBF,gBACf,UAAU,iBACV,OAAO,wBAAwB,iCAC7B;iBAea,WACf,QAAQ,gBACR,OAAO,wBACL;iBAiCa,SAAS,UAAU,kBAAkB;iBAMrC,aAAa"}
|
|
@@ -2,17 +2,17 @@ import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
|
2
2
|
import { defaultCtx } from "../content/codec/legacyContentCtx.js";
|
|
3
3
|
import { serialize } from "./contentPath.js";
|
|
4
4
|
import { collectSharedSlices } from "./customTypeModel.js";
|
|
5
|
-
import { isNestableContent } from "../content/nestable.js";
|
|
6
5
|
import { DocumentLegacySchema } from "../content/legacy/document.js";
|
|
7
6
|
import { DocumentLegacyCodec } from "../content/codec/document.js";
|
|
8
7
|
import { FieldOrSliceTypeSchema } from "../model/widget.js";
|
|
9
|
-
import {
|
|
8
|
+
import { migrateSliceItem } from "./sliceContent.js";
|
|
10
9
|
import { traverseDocumentContent } from "./traverseContent.js";
|
|
11
10
|
import { z } from "zod/mini";
|
|
12
11
|
//#region src/helpers/documentContent.ts
|
|
13
12
|
var documentContent_exports = /* @__PURE__ */ __exportAll({
|
|
14
13
|
collectWidgets: () => collectWidgets,
|
|
15
14
|
fromLegacy: () => fromLegacy,
|
|
15
|
+
migrateDocument: () => migrateDocument,
|
|
16
16
|
serializeUID: () => serializeUID,
|
|
17
17
|
toLegacy: () => toLegacy
|
|
18
18
|
});
|
|
@@ -24,6 +24,13 @@ function collectWidgets(document, test) {
|
|
|
24
24
|
} });
|
|
25
25
|
return collected;
|
|
26
26
|
}
|
|
27
|
+
function migrateDocument(document, model) {
|
|
28
|
+
if (Object.values(collectSharedSlices(model)).some((slice) => Boolean(slice.legacyPaths))) return traverseDocumentContent(document, {
|
|
29
|
+
model,
|
|
30
|
+
transformSlice: migrateSliceItem
|
|
31
|
+
});
|
|
32
|
+
return document;
|
|
33
|
+
}
|
|
27
34
|
function fromLegacy(legacy, model) {
|
|
28
35
|
const parsed = DocumentLegacySchema.safeParse(legacy);
|
|
29
36
|
if (!parsed.success) return;
|
|
@@ -34,22 +41,12 @@ function fromLegacy(legacy, model) {
|
|
|
34
41
|
const parsed = FieldOrSliceTypeSchema.safeParse(value);
|
|
35
42
|
if (parsed.success) types.set(key.substring(0, key.length - 5), parsed.data);
|
|
36
43
|
} else if (key.endsWith("_KEY")) {
|
|
37
|
-
const parsed = z.uuidv4().safeParse(value);
|
|
44
|
+
const parsed = z.union([z.uuidv4(), z.uuid({ version: "v5" })]).safeParse(value);
|
|
38
45
|
if (parsed.success) keys.set(key.substring(0, key.length - 4), parsed.data);
|
|
39
46
|
} else if (!key.endsWith("_POSITION")) widgets[key] = value;
|
|
40
47
|
const result = DocumentLegacyCodec(defaultCtx("", types, keys)).toContent(widgets);
|
|
41
48
|
if (!result.success) return;
|
|
42
|
-
|
|
43
|
-
model,
|
|
44
|
-
transformSlice: ({ content, model }) => {
|
|
45
|
-
if (model?.type === "SharedSlice") {
|
|
46
|
-
if (content.widget.__TYPE__ === "CompositeSliceContent") return compositeToShared(content, model);
|
|
47
|
-
else if (content.widget.__TYPE__ === "GroupContentType" || isNestableContent(content.widget)) return legacyToShared(content, model);
|
|
48
|
-
}
|
|
49
|
-
return content;
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
return result.data;
|
|
49
|
+
return migrateDocument(result.data, model);
|
|
53
50
|
}
|
|
54
51
|
function toLegacy(document) {
|
|
55
52
|
const { content, types, keys } = DocumentLegacyCodec(defaultCtx("")).fromContent(document);
|
|
@@ -63,6 +60,6 @@ function serializeUID(input) {
|
|
|
63
60
|
return input.replace(/ /g, "-").normalize("NFD").replace(/\p{M}/gu, "").replace(/[^\p{L}\d_.-]/gu, "").toLowerCase();
|
|
64
61
|
}
|
|
65
62
|
//#endregion
|
|
66
|
-
export { documentContent_exports };
|
|
63
|
+
export { collectWidgets, documentContent_exports, fromLegacy, migrateDocument, serializeUID, toLegacy };
|
|
67
64
|
|
|
68
65
|
//# sourceMappingURL=documentContent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documentContent.js","names":["contentPath.serialize","customTypeModel.collectSharedSlices","sliceContent.
|
|
1
|
+
{"version":3,"file":"documentContent.js","names":["contentPath.serialize","customTypeModel.collectSharedSlices","sliceContent.migrateSliceItem"],"sources":["../../src/helpers/documentContent.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nimport { DocumentLegacyCodec } from \"../content/codec/document\"\nimport { defaultCtx } from \"../content/codec/legacyContentCtx\"\nimport type { DocumentContent } from \"../content/document\"\nimport type { DocumentLegacy } from \"../content/legacy/document\"\nimport { DocumentLegacySchema } from \"../content/legacy/document\"\nimport type { WidgetContent } from \"../content/widget\"\nimport type { FlattenedStaticCustomTypeModel, StaticCustomTypeModel } from \"../model/customType\"\nimport type { FieldOrSliceType } from \"../model/widget\"\nimport { FieldOrSliceTypeSchema } from \"../model/widget\"\nimport * as contentPath from \"./contentPath\"\nimport * as customTypeModel from \"./customTypeModel\"\nimport * as sliceContent from \"./sliceContent\"\nimport { traverseDocumentContent } from \"./traverseContent\"\n\nexport function collectWidgets<TWidgetContent extends WidgetContent>(\n\tdocument: DocumentContent,\n\ttest: (\n\t\tcontent: WidgetContent,\n\t\targs: {\n\t\t\tpath: contentPath.Path\n\t\t\tkey: string\n\t\t\tapiID: string\n\t\t},\n\t) => content is TWidgetContent,\n): Record<string, TWidgetContent> {\n\tconst collected: Record<string, TWidgetContent> = {}\n\n\ttraverseDocumentContent(document, {\n\t\ttransformWidget: ({ content, ...args }) => {\n\t\t\tif (test(content, args)) {\n\t\t\t\tcollected[contentPath.serialize(args.path)] = content\n\t\t\t}\n\n\t\t\treturn content\n\t\t},\n\t})\n\n\treturn collected\n}\n\nexport function migrateDocument(\n\tdocument: DocumentContent,\n\tmodel: StaticCustomTypeModel | FlattenedStaticCustomTypeModel,\n): DocumentContent {\n\tconst needsMigration = Object.values(customTypeModel.collectSharedSlices(model)).some((slice) =>\n\t\tBoolean(slice.legacyPaths),\n\t)\n\n\tif (needsMigration) {\n\t\treturn traverseDocumentContent(document, {\n\t\t\tmodel,\n\t\t\ttransformSlice: sliceContent.migrateSliceItem,\n\t\t})\n\t}\n\n\treturn document\n}\n\nexport function fromLegacy(\n\tlegacy: DocumentLegacy,\n\tmodel: StaticCustomTypeModel,\n): DocumentContent | undefined {\n\tconst parsed = DocumentLegacySchema.safeParse(legacy)\n\tif (!parsed.success) {\n\t\treturn\n\t}\n\n\tconst types = new Map<string, FieldOrSliceType>()\n\tconst keys = new Map<string, string>()\n\tconst widgets: DocumentLegacy = {}\n\tfor (const [key, value] of Object.entries(parsed.data)) {\n\t\tif (key.endsWith(\"_TYPE\")) {\n\t\t\tconst parsed = FieldOrSliceTypeSchema.safeParse(value)\n\t\t\tif (parsed.success) {\n\t\t\t\ttypes.set(key.substring(0, key.length - 5), parsed.data)\n\t\t\t}\n\t\t} else if (key.endsWith(\"_KEY\")) {\n\t\t\tconst parsed = z.union([z.uuidv4(), z.uuid({ version: \"v5\" })]).safeParse(value)\n\t\t\tif (parsed.success) {\n\t\t\t\tkeys.set(key.substring(0, key.length - 4), parsed.data)\n\t\t\t}\n\t\t} else if (!key.endsWith(\"_POSITION\")) {\n\t\t\twidgets[key] = value\n\t\t}\n\t}\n\n\tconst result = DocumentLegacyCodec(defaultCtx(\"\", types, keys)).toContent(widgets)\n\tif (!result.success) {\n\t\treturn\n\t}\n\n\treturn migrateDocument(result.data, model)\n}\n\nexport function toLegacy(document: DocumentContent): DocumentLegacy {\n\tconst { content, types, keys } = DocumentLegacyCodec(defaultCtx(\"\")).fromContent(document)\n\n\treturn { ...content, ...types, ...keys }\n}\n\nexport function serializeUID(input: string): string {\n\tconst nowhitespace = input.replace(/ /g, \"-\")\n\n\tconst normalized = nowhitespace.normalize(\"NFD\").replace(/\\p{M}/gu, \"\")\n\n\tconst slug = normalized.replace(/[^\\p{L}\\d_.-]/gu, \"\")\n\n\treturn slug.toLowerCase()\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAgBA,SAAgB,eACf,UACA,MAQiC;CACjC,MAAM,YAA4C,CAAC;CAEnD,wBAAwB,UAAU,EACjC,kBAAkB,EAAE,SAAS,GAAG,WAAW;EAC1C,IAAI,KAAK,SAAS,IAAI,GACrB,UAAUA,UAAsB,KAAK,IAAI,KAAK;EAG/C,OAAO;CACR,EACD,CAAC;CAED,OAAO;AACR;AAEA,SAAgB,gBACf,UACA,OACkB;CAKlB,IAJuB,OAAO,OAAOC,oBAAoC,KAAK,CAAC,CAAC,CAAC,MAAM,UACtF,QAAQ,MAAM,WAAW,CAGT,GAChB,OAAO,wBAAwB,UAAU;EACxC;EACA,gBAAgBC;CACjB,CAAC;CAGF,OAAO;AACR;AAEA,SAAgB,WACf,QACA,OAC8B;CAC9B,MAAM,SAAS,qBAAqB,UAAU,MAAM;CACpD,IAAI,CAAC,OAAO,SACX;CAGD,MAAM,wBAAQ,IAAI,IAA8B;CAChD,MAAM,uBAAO,IAAI,IAAoB;CACrC,MAAM,UAA0B,CAAC;CACjC,KAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,OAAO,IAAI,GACpD,IAAI,IAAI,SAAS,OAAO,GAAG;EAC1B,MAAM,SAAS,uBAAuB,UAAU,KAAK;EACrD,IAAI,OAAO,SACV,MAAM,IAAI,IAAI,UAAU,GAAG,IAAI,SAAS,CAAC,GAAG,OAAO,IAAI;CAEzD,OAAO,IAAI,IAAI,SAAS,MAAM,GAAG;EAChC,MAAM,SAAS,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,KAAK,EAAE,SAAS,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,KAAK;EAC/E,IAAI,OAAO,SACV,KAAK,IAAI,IAAI,UAAU,GAAG,IAAI,SAAS,CAAC,GAAG,OAAO,IAAI;CAExD,OAAO,IAAI,CAAC,IAAI,SAAS,WAAW,GACnC,QAAQ,OAAO;CAIjB,MAAM,SAAS,oBAAoB,WAAW,IAAI,OAAO,IAAI,CAAC,CAAC,CAAC,UAAU,OAAO;CACjF,IAAI,CAAC,OAAO,SACX;CAGD,OAAO,gBAAgB,OAAO,MAAM,KAAK;AAC1C;AAEA,SAAgB,SAAS,UAA2C;CACnE,MAAM,EAAE,SAAS,OAAO,SAAS,oBAAoB,WAAW,EAAE,CAAC,CAAC,CAAC,YAAY,QAAQ;CAEzF,OAAO;EAAE,GAAG;EAAS,GAAG;EAAO,GAAG;CAAK;AACxC;AAEA,SAAgB,aAAa,OAAuB;CAOnD,OANqB,MAAM,QAAQ,MAAM,GAEX,CAAC,CAAC,UAAU,KAAK,CAAC,CAAC,QAAQ,WAAW,EAE9C,CAAC,CAAC,QAAQ,mBAAmB,EAEzC,CAAC,CAAC,YAAY;AACzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fieldModel.d.ts","names":[],"sources":["../../src/helpers/fieldModel.ts"],"mappings":";;;iBAAgB,
|
|
1
|
+
{"version":3,"file":"fieldModel.d.ts","names":[],"sources":["../../src/helpers/fieldModel.ts"],"mappings":";;;iBAAgB,YAAY"}
|