@prismicio/types-internal 4.6.0 → 4.7.0
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 +6 -4
- 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.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 +1 -3
- package/dist/helpers/customTypeModel.d.ts.map +1 -1
- package/dist/helpers/customTypeModel.js +1 -1
- package/dist/helpers/customTypeModel.js.map +1 -1
- package/dist/helpers/documentContent.d.ts +1 -3
- package/dist/helpers/documentContent.d.ts.map +1 -1
- package/dist/helpers/documentContent.js +1 -1
- 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 +1 -3
- package/dist/helpers/sliceContent.d.ts.map +1 -1
- 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 +0 -1
- package/dist/helpers/traverseContent.d.ts.map +1 -1
- 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 +5 -1
- package/dist/index.js +4 -1
- package/dist/io-ts.d.ts +434 -440
- package/dist/io-ts.d.ts.map +1 -1
- package/dist/io-ts.js +16 -16
- 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 +3 -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 +39 -40
- 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 +2 -3
- package/dist/model/link.d.ts.map +1 -1
- 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 +3 -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 +3351 -3353
- package/dist/zod4.d.ts.map +1 -1
- package/dist/zod4.js +16 -16
- package/dist/zod4.js.map +1 -1
- package/package.json +12 -13
- package/src/helpers/customTypeModel.ts +3 -1
- package/src/index.ts +12 -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/dist/model/table.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import "./richText.js";
|
|
1
2
|
import { z } from "zod/mini";
|
|
2
|
-
|
|
3
3
|
//#region src/model/table.d.ts
|
|
4
4
|
declare const TableModelSchema: z.ZodMiniObject<{
|
|
5
5
|
type: z.ZodMiniLiteral<"Table">;
|
|
@@ -8,7 +8,7 @@ declare const TableModelSchema: z.ZodMiniObject<{
|
|
|
8
8
|
}, z.core.$strip>>;
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
type TableModel = z.infer<typeof TableModelSchema>;
|
|
11
|
-
declare const TableCellModelNodeTypes: ("
|
|
11
|
+
declare const TableCellModelNodeTypes: ("em" | "hyperlink" | "paragraph" | "strong")[];
|
|
12
12
|
//#endregion
|
|
13
|
-
export { TableCellModelNodeTypes, TableModel };
|
|
13
|
+
export { TableCellModelNodeTypes, TableModel, TableModelSchema };
|
|
14
14
|
//# sourceMappingURL=table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","names":[],"sources":["../../src/model/table.ts"],"mappings":";;;cAQa,
|
|
1
|
+
{"version":3,"file":"table.d.ts","names":[],"sources":["../../src/model/table.ts"],"mappings":";;;cAQa,kBAAgB,EAAA;;;;;;KAKjB,aAAa,EAAE,aAAa;cAG3B"}
|
package/dist/model/table.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.js","names":[],"sources":["../../src/model/table.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nimport { RichTextModelNodeType, type RichTextModel } from \"./richText\"\n\nconst TableConfigSchema = z.object({\n\tlabel: z.nullish(z.string()),\n})\n\nexport const TableModelSchema = z.object({\n\ttype: z.literal(\"Table\"),\n\tconfig: z.optional(TableConfigSchema),\n})\n\nexport type TableModel = z.infer<typeof TableModelSchema>\n\n// TableCell configuration constant (used for cell rich text configuration)\nexport const TableCellModelNodeTypes = [\n\tRichTextModelNodeType.paragraph,\n\tRichTextModelNodeType.strong,\n\tRichTextModelNodeType.em,\n\tRichTextModelNodeType.hyperlink,\n]\n\nexport const TableCellModel: RichTextModel = {\n\ttype: \"StructuredText\" as const,\n\tconfig: {\n\t\tmulti: TableCellModelNodeTypes.join(\",\"),\n\t},\n}\n"],"mappings":";;;AAIA,MAAM,oBAAoB,EAAE,OAAO,EAClC,OAAO,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"table.js","names":[],"sources":["../../src/model/table.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nimport { RichTextModelNodeType, type RichTextModel } from \"./richText\"\n\nconst TableConfigSchema = z.object({\n\tlabel: z.nullish(z.string()),\n})\n\nexport const TableModelSchema = z.object({\n\ttype: z.literal(\"Table\"),\n\tconfig: z.optional(TableConfigSchema),\n})\n\nexport type TableModel = z.infer<typeof TableModelSchema>\n\n// TableCell configuration constant (used for cell rich text configuration)\nexport const TableCellModelNodeTypes = [\n\tRichTextModelNodeType.paragraph,\n\tRichTextModelNodeType.strong,\n\tRichTextModelNodeType.em,\n\tRichTextModelNodeType.hyperlink,\n]\n\nexport const TableCellModel: RichTextModel = {\n\ttype: \"StructuredText\" as const,\n\tconfig: {\n\t\tmulti: TableCellModelNodeTypes.join(\",\"),\n\t},\n}\n"],"mappings":";;;AAIA,MAAM,oBAAoB,EAAE,OAAO,EAClC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,EAC5B,CAAC;AAED,MAAa,mBAAmB,EAAE,OAAO;CACxC,MAAM,EAAE,QAAQ,OAAO;CACvB,QAAQ,EAAE,SAAS,iBAAiB;AACrC,CAAC;AAKD,MAAa,0BAA0B;CACtC,sBAAsB;CACtB,sBAAsB;CACtB,sBAAsB;CACtB,sBAAsB;AACvB;AAEA,MAAa,iBAAgC;CAC5C,MAAM;CACN,QAAQ,EACP,OAAO,wBAAwB,KAAK,GAAG,EACxC;AACD"}
|
package/dist/model/text.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod/mini";
|
|
2
|
-
|
|
3
2
|
//#region src/model/text.d.ts
|
|
4
3
|
declare const TextModelSchema: z.ZodMiniObject<{
|
|
5
4
|
type: z.ZodMiniLiteral<"Text">;
|
|
@@ -12,5 +11,5 @@ declare const TextModelSchema: z.ZodMiniObject<{
|
|
|
12
11
|
}, z.core.$strip>;
|
|
13
12
|
type TextModel = z.infer<typeof TextModelSchema>;
|
|
14
13
|
//#endregion
|
|
15
|
-
export { TextModel };
|
|
14
|
+
export { TextModel, TextModelSchema };
|
|
16
15
|
//# sourceMappingURL=text.d.ts.map
|
package/dist/model/text.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","names":[],"sources":["../../src/model/text.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"text.d.ts","names":[],"sources":["../../src/model/text.ts"],"mappings":";;cAQa,iBAAe,EAAA;;;;;;;;;KAMhB,YAAY,EAAE,aAAa"}
|
package/dist/model/text.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.js","names":[],"sources":["../../src/model/text.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nconst TextConfigSchema = z.object({\n\tlabel: z.nullish(z.string()),\n\tuseAsTitle: z.optional(z.boolean()),\n\tplaceholder: z.optional(z.string()),\n})\n\nexport const TextModelSchema = z.object({\n\ttype: z.literal(\"Text\"),\n\tfieldset: z.nullish(z.string()),\n\tconfig: z.optional(TextConfigSchema),\n})\n\nexport type TextModel = z.infer<typeof TextModelSchema>\n"],"mappings":";;AAEA,MAAM,mBAAmB,EAAE,OAAO;CACjC,OAAO,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"text.js","names":[],"sources":["../../src/model/text.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nconst TextConfigSchema = z.object({\n\tlabel: z.nullish(z.string()),\n\tuseAsTitle: z.optional(z.boolean()),\n\tplaceholder: z.optional(z.string()),\n})\n\nexport const TextModelSchema = z.object({\n\ttype: z.literal(\"Text\"),\n\tfieldset: z.nullish(z.string()),\n\tconfig: z.optional(TextConfigSchema),\n})\n\nexport type TextModel = z.infer<typeof TextModelSchema>\n"],"mappings":";;AAEA,MAAM,mBAAmB,EAAE,OAAO;CACjC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC;CAC3B,YAAY,EAAE,SAAS,EAAE,QAAQ,CAAC;CAClC,aAAa,EAAE,SAAS,EAAE,OAAO,CAAC;AACnC,CAAC;AAED,MAAa,kBAAkB,EAAE,OAAO;CACvC,MAAM,EAAE,QAAQ,MAAM;CACtB,UAAU,EAAE,QAAQ,EAAE,OAAO,CAAC;CAC9B,QAAQ,EAAE,SAAS,gBAAgB;AACpC,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod/mini";
|
|
2
|
-
|
|
3
2
|
//#region src/model/timestamp.d.ts
|
|
4
3
|
declare const TimestampModelSchema: z.ZodMiniObject<{
|
|
5
4
|
type: z.ZodMiniLiteral<"Timestamp">;
|
|
@@ -12,5 +11,5 @@ declare const TimestampModelSchema: z.ZodMiniObject<{
|
|
|
12
11
|
}, z.core.$strip>;
|
|
13
12
|
type TimestampModel = z.infer<typeof TimestampModelSchema>;
|
|
14
13
|
//#endregion
|
|
15
|
-
export { TimestampModel };
|
|
14
|
+
export { TimestampModel, TimestampModelSchema };
|
|
16
15
|
//# sourceMappingURL=timestamp.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timestamp.d.ts","names":[],"sources":["../../src/model/timestamp.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"timestamp.d.ts","names":[],"sources":["../../src/model/timestamp.ts"],"mappings":";;cAQa,sBAAoB,EAAA;;;;;;;;;KAMrB,iBAAiB,EAAE,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timestamp.js","names":[],"sources":["../../src/model/timestamp.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nconst TimestampConfigSchema = z.object({\n\tlabel: z.nullish(z.string()),\n\tplaceholder: z.optional(z.string()),\n\tdefault: z.optional(z.string()),\n})\n\nexport const TimestampModelSchema = z.object({\n\ttype: z.literal(\"Timestamp\"),\n\tfieldset: z.nullish(z.string()),\n\tconfig: z.optional(TimestampConfigSchema),\n})\n\nexport type TimestampModel = z.infer<typeof TimestampModelSchema>\n"],"mappings":";;AAEA,MAAM,wBAAwB,EAAE,OAAO;CACtC,OAAO,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"timestamp.js","names":[],"sources":["../../src/model/timestamp.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nconst TimestampConfigSchema = z.object({\n\tlabel: z.nullish(z.string()),\n\tplaceholder: z.optional(z.string()),\n\tdefault: z.optional(z.string()),\n})\n\nexport const TimestampModelSchema = z.object({\n\ttype: z.literal(\"Timestamp\"),\n\tfieldset: z.nullish(z.string()),\n\tconfig: z.optional(TimestampConfigSchema),\n})\n\nexport type TimestampModel = z.infer<typeof TimestampModelSchema>\n"],"mappings":";;AAEA,MAAM,wBAAwB,EAAE,OAAO;CACtC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC;CAC3B,aAAa,EAAE,SAAS,EAAE,OAAO,CAAC;CAClC,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC;AAC/B,CAAC;AAED,MAAa,uBAAuB,EAAE,OAAO;CAC5C,MAAM,EAAE,QAAQ,WAAW;CAC3B,UAAU,EAAE,QAAQ,EAAE,OAAO,CAAC;CAC9B,QAAQ,EAAE,SAAS,qBAAqB;AACzC,CAAC"}
|
package/dist/model/uid.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod/mini";
|
|
2
|
-
|
|
3
2
|
//#region src/model/uid.d.ts
|
|
4
3
|
declare const UIDModelSchema: z.ZodMiniObject<{
|
|
5
4
|
type: z.ZodMiniLiteral<"UID">;
|
|
@@ -12,5 +11,5 @@ declare const UIDModelSchema: z.ZodMiniObject<{
|
|
|
12
11
|
}, z.core.$strip>;
|
|
13
12
|
type UIDModel = z.infer<typeof UIDModelSchema>;
|
|
14
13
|
//#endregion
|
|
15
|
-
export { UIDModel };
|
|
14
|
+
export { UIDModel, UIDModelSchema };
|
|
16
15
|
//# sourceMappingURL=uid.d.ts.map
|
package/dist/model/uid.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uid.d.ts","names":[],"sources":["../../src/model/uid.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"uid.d.ts","names":[],"sources":["../../src/model/uid.ts"],"mappings":";;cAQa,gBAAc,EAAA;;;;;;;;;KAMf,WAAW,EAAE,aAAa"}
|
package/dist/model/uid.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uid.js","names":[],"sources":["../../src/model/uid.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nconst UIDConfigSchema = z.object({\n\tlabel: z.nullish(z.string()),\n\tuseAsTitle: z.optional(z.boolean()),\n\tplaceholder: z.optional(z.string()),\n})\n\nexport const UIDModelSchema = z.object({\n\ttype: z.literal(\"UID\"),\n\tfieldset: z.nullish(z.string()),\n\tconfig: z.optional(UIDConfigSchema),\n})\n\nexport type UIDModel = z.infer<typeof UIDModelSchema>\n"],"mappings":";;AAEA,MAAM,kBAAkB,EAAE,OAAO;CAChC,OAAO,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"uid.js","names":[],"sources":["../../src/model/uid.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nconst UIDConfigSchema = z.object({\n\tlabel: z.nullish(z.string()),\n\tuseAsTitle: z.optional(z.boolean()),\n\tplaceholder: z.optional(z.string()),\n})\n\nexport const UIDModelSchema = z.object({\n\ttype: z.literal(\"UID\"),\n\tfieldset: z.nullish(z.string()),\n\tconfig: z.optional(UIDConfigSchema),\n})\n\nexport type UIDModel = z.infer<typeof UIDModelSchema>\n"],"mappings":";;AAEA,MAAM,kBAAkB,EAAE,OAAO;CAChC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC;CAC3B,YAAY,EAAE,SAAS,EAAE,QAAQ,CAAC;CAClC,aAAa,EAAE,SAAS,EAAE,OAAO,CAAC;AACnC,CAAC;AAED,MAAa,iBAAiB,EAAE,OAAO;CACtC,MAAM,EAAE,QAAQ,KAAK;CACrB,UAAU,EAAE,QAAQ,EAAE,OAAO,CAAC;CAC9B,QAAQ,EAAE,SAAS,eAAe;AACnC,CAAC"}
|
package/dist/model/widget.d.ts
CHANGED
|
@@ -3,56 +3,55 @@ import { GroupModel } from "./group.js";
|
|
|
3
3
|
import { DynamicSlicesModel, StaticSlicesModel } from "./slices.js";
|
|
4
4
|
import { UIDModel } from "./uid.js";
|
|
5
5
|
import { z } from "zod/mini";
|
|
6
|
-
|
|
7
6
|
//#region src/model/widget.d.ts
|
|
8
7
|
type StaticWidgetModel = UIDModel | NestableModel | GroupModel | StaticSlicesModel;
|
|
9
8
|
type DynamicWidgetModel = UIDModel | NestableModel | GroupModel | DynamicSlicesModel;
|
|
10
9
|
declare const FieldModelTypeSchema: z.ZodMiniEnum<{
|
|
10
|
+
Boolean: "Boolean";
|
|
11
|
+
Choice: "Choice";
|
|
11
12
|
Color: "Color";
|
|
12
13
|
Date: "Date";
|
|
13
|
-
Number: "Number";
|
|
14
|
-
Range: "Range";
|
|
15
|
-
Select: "Select";
|
|
16
|
-
Link: "Link";
|
|
17
|
-
Text: "Text";
|
|
18
|
-
Timestamp: "Timestamp";
|
|
19
|
-
Boolean: "Boolean";
|
|
20
14
|
Embed: "Embed";
|
|
21
15
|
GeoPoint: "GeoPoint";
|
|
16
|
+
Group: "Group";
|
|
22
17
|
Image: "Image";
|
|
23
18
|
IntegrationFields: "IntegrationFields";
|
|
24
|
-
|
|
19
|
+
Link: "Link";
|
|
20
|
+
Number: "Number";
|
|
21
|
+
Range: "Range";
|
|
22
|
+
Select: "Select";
|
|
25
23
|
Separator: "Separator";
|
|
24
|
+
Slices: "Slices";
|
|
25
|
+
StructuredText: "StructuredText";
|
|
26
26
|
Table: "Table";
|
|
27
|
-
|
|
27
|
+
Text: "Text";
|
|
28
|
+
Timestamp: "Timestamp";
|
|
28
29
|
UID: "UID";
|
|
29
|
-
Slices: "Slices";
|
|
30
|
-
Choice: "Choice";
|
|
31
30
|
}>;
|
|
32
31
|
type FieldModelType = z.infer<typeof FieldModelTypeSchema>;
|
|
33
32
|
declare const FieldOrSliceTypeSchema: z.ZodMiniUnion<readonly [z.ZodMiniEnum<{
|
|
33
|
+
Boolean: "Boolean";
|
|
34
|
+
Choice: "Choice";
|
|
34
35
|
Color: "Color";
|
|
35
36
|
Date: "Date";
|
|
36
|
-
Number: "Number";
|
|
37
|
-
Range: "Range";
|
|
38
|
-
Select: "Select";
|
|
39
|
-
Link: "Link";
|
|
40
|
-
Text: "Text";
|
|
41
|
-
Timestamp: "Timestamp";
|
|
42
|
-
Boolean: "Boolean";
|
|
43
37
|
Embed: "Embed";
|
|
44
38
|
GeoPoint: "GeoPoint";
|
|
39
|
+
Group: "Group";
|
|
45
40
|
Image: "Image";
|
|
46
41
|
IntegrationFields: "IntegrationFields";
|
|
47
|
-
|
|
42
|
+
Link: "Link";
|
|
43
|
+
Number: "Number";
|
|
44
|
+
Range: "Range";
|
|
45
|
+
Select: "Select";
|
|
48
46
|
Separator: "Separator";
|
|
47
|
+
Slices: "Slices";
|
|
48
|
+
StructuredText: "StructuredText";
|
|
49
49
|
Table: "Table";
|
|
50
|
-
|
|
50
|
+
Text: "Text";
|
|
51
|
+
Timestamp: "Timestamp";
|
|
51
52
|
UID: "UID";
|
|
52
|
-
Slices: "Slices";
|
|
53
|
-
Choice: "Choice";
|
|
54
53
|
}>, z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"Slice">, z.ZodMiniLiteral<"SharedSlice">]>, z.ZodMiniLiteral<"Repeatable.Link">]>;
|
|
55
54
|
type FieldOrSliceType = z.infer<typeof FieldOrSliceTypeSchema>;
|
|
56
55
|
//#endregion
|
|
57
|
-
export { DynamicWidgetModel, FieldModelType, FieldOrSliceType, StaticWidgetModel };
|
|
56
|
+
export { DynamicWidgetModel, FieldModelType, FieldModelTypeSchema, FieldOrSliceType, FieldOrSliceTypeSchema, StaticWidgetModel };
|
|
58
57
|
//# sourceMappingURL=widget.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget.d.ts","names":[],"sources":["../../src/model/widget.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"widget.d.ts","names":[],"sources":["../../src/model/widget.ts"],"mappings":";;;;;;KAkBY,oBAAoB,WAAW,gBAAgB,aAAa;KAQ5D,qBAAqB,WAAW,gBAAgB,aAAa;cAG5D,sBAAoB,EAAA;;;;;;;;;;;;;;;;;;;;;;KAuBrB,iBAAiB,EAAE,aAAa;cAG/B,wBAAsB,EAAA,uBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;KAOvB,mBAAmB,EAAE,aAAa"}
|
package/dist/model/widget.js
CHANGED
|
@@ -45,6 +45,6 @@ const FieldOrSliceTypeSchema = z.union([
|
|
|
45
45
|
z.literal("Repeatable.Link")
|
|
46
46
|
]);
|
|
47
47
|
//#endregion
|
|
48
|
-
export { DynamicWidgetModelSchema, FieldOrSliceTypeSchema, StaticWidgetModelSchema };
|
|
48
|
+
export { DynamicWidgetModelSchema, FieldModelTypeSchema, FieldOrSliceTypeSchema, StaticWidgetModelSchema };
|
|
49
49
|
|
|
50
50
|
//# sourceMappingURL=widget.js.map
|
package/dist/model/widget.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget.js","names":[],"sources":["../../src/model/widget.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nimport type { GroupModel } from \"./group\"\nimport { GroupModelSchema } from \"./group\"\nimport type { NestableModel } from \"./nestable\"\nimport { NestableModelSchema } from \"./nestable\"\nimport { SliceModelTypeSchema } from \"./slice\"\nimport type { DynamicSlicesModel, StaticSlicesModel } from \"./slices\"\nimport { DynamicSlicesModelSchema, StaticSlicesModelSchema } from \"./slices\"\nimport type { UIDModel } from \"./uid\"\nimport { UIDModelSchema } from \"./uid\"\n\n// StaticWidget = UID | Nestable | Group | StaticSlices\nexport const StaticWidgetModelSchema: z.ZodMiniType<StaticWidgetModel> = z.discriminatedUnion(\n\t\"type\",\n\t[UIDModelSchema, NestableModelSchema, GroupModelSchema, StaticSlicesModelSchema],\n)\n\nexport type StaticWidgetModel = UIDModel | NestableModel | GroupModel | StaticSlicesModel\n\n// DynamicWidget = UID | Nestable | Group | DynamicSlices\nexport const DynamicWidgetModelSchema: z.ZodMiniType<DynamicWidgetModel> = z.discriminatedUnion(\n\t\"type\",\n\t[UIDModelSchema, NestableModelSchema, GroupModelSchema, DynamicSlicesModelSchema],\n)\n\nexport type DynamicWidgetModel = UIDModel | NestableModel | GroupModel | DynamicSlicesModel\n\n// FieldModelType - all possible field type strings\nexport const FieldModelTypeSchema = z.enum([\n\t\"Color\",\n\t\"Boolean\",\n\t\"Number\",\n\t\"Embed\",\n\t\"GeoPoint\",\n\t\"Date\",\n\t\"Range\",\n\t\"StructuredText\",\n\t\"Select\",\n\t\"Separator\",\n\t\"Table\",\n\t\"Text\",\n\t\"Timestamp\",\n\t\"Link\",\n\t\"Image\",\n\t\"IntegrationFields\",\n\t\"UID\",\n\t\"Group\",\n\t\"Slices\",\n\t\"Choice\",\n])\n\nexport type FieldModelType = z.infer<typeof FieldModelTypeSchema>\n\n// Field and slice types\nexport const FieldOrSliceTypeSchema = z.union([\n\tFieldModelTypeSchema,\n\tSliceModelTypeSchema,\n\t// Repeatable links are \"meta\" types like slices and shared slices\n\tz.literal(\"Repeatable.Link\"),\n])\n\nexport type FieldOrSliceType = z.infer<typeof FieldOrSliceTypeSchema>\n"],"mappings":";;;;;;;AAaA,MAAa,0BAA4D,EAAE,mBAC1E,QACA;CAAC;CAAgB;CAAqB;CAAkB;
|
|
1
|
+
{"version":3,"file":"widget.js","names":[],"sources":["../../src/model/widget.ts"],"sourcesContent":["import { z } from \"zod/mini\"\n\nimport type { GroupModel } from \"./group\"\nimport { GroupModelSchema } from \"./group\"\nimport type { NestableModel } from \"./nestable\"\nimport { NestableModelSchema } from \"./nestable\"\nimport { SliceModelTypeSchema } from \"./slice\"\nimport type { DynamicSlicesModel, StaticSlicesModel } from \"./slices\"\nimport { DynamicSlicesModelSchema, StaticSlicesModelSchema } from \"./slices\"\nimport type { UIDModel } from \"./uid\"\nimport { UIDModelSchema } from \"./uid\"\n\n// StaticWidget = UID | Nestable | Group | StaticSlices\nexport const StaticWidgetModelSchema: z.ZodMiniType<StaticWidgetModel> = z.discriminatedUnion(\n\t\"type\",\n\t[UIDModelSchema, NestableModelSchema, GroupModelSchema, StaticSlicesModelSchema],\n)\n\nexport type StaticWidgetModel = UIDModel | NestableModel | GroupModel | StaticSlicesModel\n\n// DynamicWidget = UID | Nestable | Group | DynamicSlices\nexport const DynamicWidgetModelSchema: z.ZodMiniType<DynamicWidgetModel> = z.discriminatedUnion(\n\t\"type\",\n\t[UIDModelSchema, NestableModelSchema, GroupModelSchema, DynamicSlicesModelSchema],\n)\n\nexport type DynamicWidgetModel = UIDModel | NestableModel | GroupModel | DynamicSlicesModel\n\n// FieldModelType - all possible field type strings\nexport const FieldModelTypeSchema = z.enum([\n\t\"Color\",\n\t\"Boolean\",\n\t\"Number\",\n\t\"Embed\",\n\t\"GeoPoint\",\n\t\"Date\",\n\t\"Range\",\n\t\"StructuredText\",\n\t\"Select\",\n\t\"Separator\",\n\t\"Table\",\n\t\"Text\",\n\t\"Timestamp\",\n\t\"Link\",\n\t\"Image\",\n\t\"IntegrationFields\",\n\t\"UID\",\n\t\"Group\",\n\t\"Slices\",\n\t\"Choice\",\n])\n\nexport type FieldModelType = z.infer<typeof FieldModelTypeSchema>\n\n// Field and slice types\nexport const FieldOrSliceTypeSchema = z.union([\n\tFieldModelTypeSchema,\n\tSliceModelTypeSchema,\n\t// Repeatable links are \"meta\" types like slices and shared slices\n\tz.literal(\"Repeatable.Link\"),\n])\n\nexport type FieldOrSliceType = z.infer<typeof FieldOrSliceTypeSchema>\n"],"mappings":";;;;;;;AAaA,MAAa,0BAA4D,EAAE,mBAC1E,QACA;CAAC;CAAgB;CAAqB;CAAkB;AAAuB,CAChF;AAKA,MAAa,2BAA8D,EAAE,mBAC5E,QACA;CAAC;CAAgB;CAAqB;CAAkB;AAAwB,CACjF;AAKA,MAAa,uBAAuB,EAAE,KAAK;CAC1C;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,CAAC;AAKD,MAAa,yBAAyB,EAAE,MAAM;CAC7C;CACA;CAEA,EAAE,QAAQ,iBAAiB;AAC5B,CAAC"}
|