@segnavia/format 0.38.0 → 0.39.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.
Files changed (59) hide show
  1. package/dist/board-edit.d.ts +2 -1
  2. package/dist/board-geometry.d.ts +2 -1
  3. package/dist/board-section-grid.d.ts +2 -1
  4. package/dist/board-sections.d.ts +2 -1
  5. package/dist/board.d.ts +8 -8
  6. package/dist/board.js +15 -11
  7. package/dist/book-exports.d.ts +2 -2
  8. package/dist/book-section.d.ts +171 -0
  9. package/dist/book-section.js +13 -2
  10. package/dist/book.d.ts +185 -43
  11. package/dist/book.js +18 -2
  12. package/dist/cover.d.ts +337 -0
  13. package/dist/cover.js +100 -0
  14. package/dist/deck-from-slides.d.ts +23 -4
  15. package/dist/deck.d.ts +144 -42
  16. package/dist/deck.js +22 -24
  17. package/dist/direction.d.ts +1 -1
  18. package/dist/font-collection.d.ts +8 -0
  19. package/dist/font-collection.js +191 -0
  20. package/dist/font-face.d.ts +8 -0
  21. package/dist/font-face.js +24 -0
  22. package/dist/font-refusal.d.ts +5 -0
  23. package/dist/font-refusal.js +9 -0
  24. package/dist/font-signature.d.ts +5 -0
  25. package/dist/font-signature.js +13 -0
  26. package/dist/fonts.d.ts +6 -1
  27. package/dist/fonts.js +3 -1
  28. package/dist/geometry.d.ts +20 -0
  29. package/dist/geometry.js +18 -0
  30. package/dist/image-fit.d.ts +10 -0
  31. package/dist/image-fit.js +10 -0
  32. package/dist/imposition-marks.d.ts +1 -1
  33. package/dist/imposition-schema.d.ts +185 -0
  34. package/dist/imposition-schema.js +122 -0
  35. package/dist/imposition.d.ts +8 -6
  36. package/dist/index.d.ts +23 -1756
  37. package/dist/index.js +29 -212
  38. package/dist/json-schemas.d.ts +1860 -0
  39. package/dist/json-schemas.js +43 -0
  40. package/dist/media.d.ts +152 -0
  41. package/dist/media.js +119 -0
  42. package/dist/note-series.d.ts +4 -4
  43. package/dist/note-series.js +0 -5
  44. package/dist/page.d.ts +174 -0
  45. package/dist/page.js +37 -0
  46. package/dist/paper.d.ts +1 -1
  47. package/dist/placement-cycle.d.ts +5 -0
  48. package/dist/placement-cycle.js +30 -0
  49. package/dist/placement-refusal.d.ts +5 -0
  50. package/dist/placement-refusal.js +6 -0
  51. package/dist/placement.d.ts +76 -0
  52. package/dist/placement.js +100 -0
  53. package/dist/print.d.ts +72 -0
  54. package/dist/print.js +38 -0
  55. package/dist/printed-page-imposition.d.ts +2 -1
  56. package/dist/shots-used.d.ts +0 -1
  57. package/dist/shots-used.js +2 -2
  58. package/dist/slots.d.ts +13 -13
  59. package/package.json +1 -1
@@ -0,0 +1,76 @@
1
+ import { Media } from "./media.js";
2
+ import { z } from "zod";
3
+ //#region src/placement.d.ts
4
+ export declare const PLACEMENT_ACCEPTS: {
5
+ readonly board: readonly ["deck", "page", "paper", "book", "media", "shot"];
6
+ readonly book: readonly ["media", "page"];
7
+ readonly page: readonly ["media"];
8
+ readonly deck: readonly ["media"];
9
+ readonly paper: readonly ["media"];
10
+ };
11
+ export declare const AssetKind: z.ZodEnum<{
12
+ deck: "deck";
13
+ page: "page";
14
+ paper: "paper";
15
+ book: "book";
16
+ media: "media";
17
+ shot: "shot";
18
+ }>;
19
+ export type AssetKind = z.infer<typeof AssetKind>;
20
+ export type PlacementContainer = keyof typeof PLACEMENT_ACCEPTS;
21
+ export declare const CropEdge: z.ZodString;
22
+ export type CropEdge = z.infer<typeof CropEdge>;
23
+ export declare const PlacementCrop: z.ZodObject<{
24
+ top: z.ZodOptional<z.ZodString>;
25
+ right: z.ZodOptional<z.ZodString>;
26
+ bottom: z.ZodOptional<z.ZodString>;
27
+ left: z.ZodOptional<z.ZodString>;
28
+ }, z.core.$strip>;
29
+ export type PlacementCrop = z.infer<typeof PlacementCrop>;
30
+ export declare const PlacementShape: z.ZodObject<{
31
+ kind: z.ZodEnum<{
32
+ deck: "deck";
33
+ page: "page";
34
+ paper: "paper";
35
+ book: "book";
36
+ media: "media";
37
+ shot: "shot";
38
+ }>;
39
+ address: z.ZodString;
40
+ page: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
41
+ box: z.ZodOptional<z.ZodEnum<{
42
+ media: "media";
43
+ bleed: "bleed";
44
+ crop: "crop";
45
+ trim: "trim";
46
+ art: "art";
47
+ }>>;
48
+ crop: z.ZodOptional<z.ZodObject<{
49
+ top: z.ZodOptional<z.ZodString>;
50
+ right: z.ZodOptional<z.ZodString>;
51
+ bottom: z.ZodOptional<z.ZodString>;
52
+ left: z.ZodOptional<z.ZodString>;
53
+ }, z.core.$strip>>;
54
+ fit: z.ZodOptional<z.ZodEnum<{
55
+ width: "width";
56
+ contain: "contain";
57
+ cover: "cover";
58
+ focus: "focus";
59
+ }>>;
60
+ alt: z.ZodOptional<z.ZodObject<{
61
+ text: z.ZodString;
62
+ lang: z.ZodOptional<z.ZodString>;
63
+ dir: z.ZodOptional<z.ZodEnum<{
64
+ auto: "auto";
65
+ ltr: "ltr";
66
+ rtl: "rtl";
67
+ }>>;
68
+ }, z.core.$strip>>;
69
+ }, z.core.$strip>;
70
+ export type Placement = z.infer<typeof PlacementShape>;
71
+ export type PlacementInput = z.input<typeof PlacementShape>;
72
+ declare function parsePlacement(input: PlacementInput, container: PlacementContainer, placed?: Media): Placement;
73
+ export declare const Placement: {
74
+ parse: typeof parsePlacement;
75
+ };
76
+ //#endregion
@@ -0,0 +1,100 @@
1
+ import { ImageFit } from "./image-fit.js";
2
+ import { MEDIA_FORMATS, MediaText, PAGE_BOXES, PageBoxName, PageSelector } from "./media.js";
3
+ import { PlacementRefusedError } from "./placement-refusal.js";
4
+ import { z } from "zod";
5
+ //#region src/placement.ts
6
+ const PLACEMENT_ACCEPTS = {
7
+ board: [
8
+ "deck",
9
+ "page",
10
+ "paper",
11
+ "book",
12
+ "media",
13
+ "shot"
14
+ ],
15
+ book: ["media", "page"],
16
+ page: ["media"],
17
+ deck: ["media"],
18
+ paper: ["media"]
19
+ };
20
+ const AssetKind = z.enum(PLACEMENT_ACCEPTS.board);
21
+ const CropEdge = z.string().regex(/^(?:0|(?:\d+(?:\.\d+)?|\.\d+)(?:%|px|pt|mm|cm|in))$/, "crop edge must be 0 or a non-negative CSS length or percentage");
22
+ function percentage(edge) {
23
+ return edge?.endsWith("%") ? Number(edge.slice(0, -1)) : void 0;
24
+ }
25
+ function addCropAxisIssue(crop, first, second, ctx) {
26
+ const one = percentage(crop[first]);
27
+ const two = percentage(crop[second]);
28
+ const overfull = one !== void 0 && one > 100 ? first : two !== void 0 && two > 100 ? second : void 0;
29
+ if (overfull !== void 0) {
30
+ ctx.addIssue({
31
+ code: "custom",
32
+ path: [overfull],
33
+ message: `${overfull} crop percentage must be at most 100%; lower it to clear this refusal`
34
+ });
35
+ return;
36
+ }
37
+ if ((one ?? 0) + (two ?? 0) < 100) return;
38
+ const percentageEdges = [one === void 0 ? void 0 : first, two === void 0 ? void 0 : second].filter((edge) => edge !== void 0);
39
+ const subject = percentageEdges.join(" and ");
40
+ ctx.addIssue({
41
+ code: "custom",
42
+ path: [first],
43
+ message: percentageEdges.length === 1 ? `${subject} crop percentage leaves no area; lower ${subject} below 100% to clear this refusal` : `${subject} crop percentages leave no area; lower either edge so their sum is below 100% to clear this refusal`
44
+ });
45
+ }
46
+ const PlacementCrop = z.object({
47
+ top: CropEdge.optional(),
48
+ right: CropEdge.optional(),
49
+ bottom: CropEdge.optional(),
50
+ left: CropEdge.optional()
51
+ }).superRefine((crop, ctx) => {
52
+ for (const [first, second] of [["top", "bottom"], ["left", "right"]]) addCropAxisIssue(crop, first, second, ctx);
53
+ });
54
+ const PlacementShape = z.object({
55
+ kind: AssetKind,
56
+ address: z.string().min(1),
57
+ page: PageSelector.optional(),
58
+ box: PageBoxName.optional(),
59
+ crop: PlacementCrop.optional(),
60
+ fit: ImageFit.optional(),
61
+ alt: MediaText.optional()
62
+ });
63
+ const FIELD_REMEDIES = {
64
+ kind: `pass one of ${AssetKind.options.join(", ")}`,
65
+ address: "pass a non-empty address",
66
+ page: "pass a positive page number or a non-empty page name",
67
+ box: `pass one of ${PAGE_BOXES.join(", ")}`,
68
+ crop: "pass non-negative crop edges using supported CSS units",
69
+ fit: "pass contain, cover, width or focus",
70
+ alt: "pass non-empty alt text with an optional language and direction"
71
+ };
72
+ function shapeRefusal(error) {
73
+ const issue = error.issues[0];
74
+ const field = String(issue?.path[0] ?? "kind");
75
+ const detail = issue?.message ?? "the value is invalid";
76
+ if (issue?.code === "custom") return new PlacementRefusedError(`${field} could not be accepted: ${detail}`);
77
+ return new PlacementRefusedError(`${field} could not be accepted: ${detail}; ${FIELD_REMEDIES[field]} to clear this refusal`);
78
+ }
79
+ const PLACEMENT_SETTING_NEEDS = {
80
+ page: "pages",
81
+ box: "pages",
82
+ crop: "media"
83
+ };
84
+ function parsePlacement(input, container, placed) {
85
+ const parsed = PlacementShape.safeParse(input);
86
+ if (!parsed.success) throw shapeRefusal(parsed.error);
87
+ const placement = parsed.data;
88
+ const accepted = PLACEMENT_ACCEPTS[container];
89
+ if (accepted === void 0) throw new PlacementRefusedError(`container could not be accepted: ${container}; place into one of ${Object.keys(PLACEMENT_ACCEPTS).join(", ")} to clear this refusal`);
90
+ if (!accepted.includes(placement.kind)) throw new PlacementRefusedError(`kind could not be accepted: ${container} does not accept ${placement.kind}; place one of ${accepted.join(", ")} to clear this refusal`);
91
+ for (const field of Object.keys(PLACEMENT_SETTING_NEEDS)) {
92
+ const need = PLACEMENT_SETTING_NEEDS[field];
93
+ if (placement[field] !== void 0 && placement.kind !== "media") throw new PlacementRefusedError(`${field} could not be accepted on ${placement.kind}; remove ${field} or place media to clear this refusal`);
94
+ if (placement[field] !== void 0 && need === "pages" && placed && !MEDIA_FORMATS[placed.format].pages) throw new PlacementRefusedError(`${field} could not be accepted for ${placed.format} media; remove ${field} or place media with pages to clear this refusal`);
95
+ }
96
+ return placement;
97
+ }
98
+ const Placement = { parse: parsePlacement };
99
+ //#endregion
100
+ export { AssetKind, CropEdge, PLACEMENT_ACCEPTS, Placement, PlacementCrop, PlacementShape };
@@ -0,0 +1,72 @@
1
+ import { z } from "zod";
2
+ //#region src/print.d.ts
3
+ export declare const Margin: z.ZodObject<{
4
+ top: z.ZodDefault<z.ZodNumber>;
5
+ right: z.ZodDefault<z.ZodNumber>;
6
+ bottom: z.ZodDefault<z.ZodNumber>;
7
+ left: z.ZodDefault<z.ZodNumber>;
8
+ }, z.core.$strip>;
9
+ export declare const MarkColor: z.ZodEnum<{
10
+ black: "black";
11
+ registration: "registration";
12
+ }>;
13
+ export type MarkColor = z.infer<typeof MarkColor>;
14
+ export declare const Print: z.ZodObject<{
15
+ paper: z.ZodUnion<readonly [z.ZodEnum<{
16
+ letter: "letter";
17
+ legal: "legal";
18
+ tabloid: "tabloid";
19
+ a3: "a3";
20
+ a4: "a4";
21
+ a5: "a5";
22
+ "business-card-us": "business-card-us";
23
+ "business-card-eu": "business-card-eu";
24
+ "business-card-square-us": "business-card-square-us";
25
+ "business-card-slim-us": "business-card-slim-us";
26
+ "postcard-4x6": "postcard-4x6";
27
+ "postcard-5x7": "postcard-5x7";
28
+ "postcard-6x9": "postcard-6x9";
29
+ "postcard-6x11": "postcard-6x11";
30
+ "card-square-4in": "card-square-4in";
31
+ "half-letter": "half-letter";
32
+ a6: "a6";
33
+ dl: "dl";
34
+ "rack-card-4x9": "rack-card-4x9";
35
+ "rack-card-3.5x8.5": "rack-card-3.5x8.5";
36
+ "poster-12x18": "poster-12x18";
37
+ "poster-16x20": "poster-16x20";
38
+ "poster-18x24": "poster-18x24";
39
+ "poster-24x36": "poster-24x36";
40
+ a2: "a2";
41
+ a1: "a1";
42
+ a0: "a0";
43
+ }>, z.ZodObject<{
44
+ width: z.ZodNumber;
45
+ height: z.ZodNumber;
46
+ unit: z.ZodEnum<{
47
+ mm: "mm";
48
+ in: "in";
49
+ pt: "pt";
50
+ }>;
51
+ }, z.core.$strip>]>;
52
+ orientation: z.ZodDefault<z.ZodEnum<{
53
+ portrait: "portrait";
54
+ landscape: "landscape";
55
+ }>>;
56
+ margin: z.ZodOptional<z.ZodObject<{
57
+ top: z.ZodDefault<z.ZodNumber>;
58
+ right: z.ZodDefault<z.ZodNumber>;
59
+ bottom: z.ZodDefault<z.ZodNumber>;
60
+ left: z.ZodDefault<z.ZodNumber>;
61
+ }, z.core.$strip>>;
62
+ bleed: z.ZodDefault<z.ZodNumber>;
63
+ safe: z.ZodDefault<z.ZodNumber>;
64
+ marks: z.ZodDefault<z.ZodBoolean>;
65
+ markColor: z.ZodDefault<z.ZodEnum<{
66
+ black: "black";
67
+ registration: "registration";
68
+ }>>;
69
+ }, z.core.$strip>;
70
+ export type Print = z.infer<typeof Print>;
71
+ export type PrintInput = z.input<typeof Print>;
72
+ //#endregion
package/dist/print.js ADDED
@@ -0,0 +1,38 @@
1
+ import { Orientation, Paper, sheetMm } from "./paper.js";
2
+ import { z } from "zod";
3
+ //#region src/print.ts
4
+ const Margin = z.object({
5
+ top: z.number().nonnegative().default(0),
6
+ right: z.number().nonnegative().default(0),
7
+ bottom: z.number().nonnegative().default(0),
8
+ left: z.number().nonnegative().default(0)
9
+ });
10
+ const MarkColor = z.enum(["black", "registration"]);
11
+ const Print = z.object({
12
+ paper: Paper,
13
+ orientation: Orientation.default("portrait"),
14
+ margin: Margin.optional(),
15
+ bleed: z.number().nonnegative().default(0),
16
+ safe: z.number().nonnegative().default(0),
17
+ marks: z.boolean().default(false),
18
+ markColor: MarkColor.default("black")
19
+ }).superRefine((print, ctx) => {
20
+ if (print.markColor === "registration" && !print.marks) ctx.addIssue({
21
+ code: "custom",
22
+ path: ["markColor"],
23
+ message: "markColor requires marks to be true"
24
+ });
25
+ const trim = sheetMm(print);
26
+ if (print.safe * 2 >= trim.width) ctx.addIssue({
27
+ code: "custom",
28
+ path: ["safe"],
29
+ message: `safe is ${print.safe}mm on the left and right, but the trim is ${trim.width}mm wide; safe must leave area inside the trim`
30
+ });
31
+ if (print.safe * 2 >= trim.height) ctx.addIssue({
32
+ code: "custom",
33
+ path: ["safe"],
34
+ message: `safe is ${print.safe}mm on the top and bottom, but the trim is ${trim.height}mm high; safe must leave area inside the trim`
35
+ });
36
+ });
37
+ //#endregion
38
+ export { Margin, MarkColor, Print };
@@ -1,4 +1,5 @@
1
- import { Imposition, Print } from "./index.js";
1
+ import { Print } from "./print.js";
2
+ import { Imposition } from "./imposition-schema.js";
2
3
  //#region src/printed-page-imposition.d.ts
3
4
  /** True when an imposition leaves one printed page unchanged on one paper. */
4
5
  export declare function isPrintedPageIdentityImposition(print: Print, imposition: Imposition): boolean;
@@ -1,5 +1,4 @@
1
1
  import { Deck } from "./deck.js";
2
- import "./index.js";
3
2
  //#region src/shots-used.d.ts
4
3
  export interface ShotUse {
5
4
  slide: string;
@@ -1,11 +1,11 @@
1
1
  //#region src/shots-used.ts
2
2
  function shotsUsed(deck) {
3
3
  return deck.slides.flatMap((slide) => {
4
- if (slide.content.kind === "shot") return [{
4
+ if ("kind" in slide.content && slide.content.kind === "shot") return [{
5
5
  slide: slide.id,
6
6
  key: slide.content.shot.key
7
7
  }];
8
- if (slide.content.kind === "shot-ref") return [{
8
+ if ("kind" in slide.content && slide.content.kind === "shot-ref") return [{
9
9
  slide: slide.id,
10
10
  href: slide.content.href
11
11
  }];
package/dist/slots.d.ts CHANGED
@@ -3,11 +3,11 @@ import { z } from "zod";
3
3
  export declare const SLOT_TYPES: readonly ["text", "phone", "email", "link", "qr", "image"];
4
4
  export declare const SlotType: z.ZodEnum<{
5
5
  text: "text";
6
+ image: "image";
6
7
  phone: "phone";
7
8
  email: "email";
8
9
  link: "link";
9
10
  qr: "qr";
10
- image: "image";
11
11
  }>;
12
12
  export type SlotType = z.infer<typeof SlotType>;
13
13
  export declare const SlotKey: z.ZodString;
@@ -17,11 +17,11 @@ export declare const SlotDeclaration: z.ZodPipe<z.ZodObject<{
17
17
  label: z.ZodString;
18
18
  type: z.ZodEnum<{
19
19
  text: "text";
20
+ image: "image";
20
21
  phone: "phone";
21
22
  email: "email";
22
23
  link: "link";
23
24
  qr: "qr";
24
- image: "image";
25
25
  }>;
26
26
  required: z.ZodDefault<z.ZodBoolean>;
27
27
  placeholder: z.ZodOptional<z.ZodString>;
@@ -35,7 +35,7 @@ export declare const SlotDeclaration: z.ZodPipe<z.ZodObject<{
35
35
  }, z.core.$strip>, z.ZodTransform<{
36
36
  key: string;
37
37
  label: string;
38
- type: "text" | "phone" | "email" | "link" | "qr" | "image";
38
+ type: "text" | "image" | "phone" | "email" | "link" | "qr";
39
39
  required: boolean;
40
40
  overflow: "refuse" | "shrink" | "truncate" | "wrap";
41
41
  placeholder?: string | undefined;
@@ -43,7 +43,7 @@ export declare const SlotDeclaration: z.ZodPipe<z.ZodObject<{
43
43
  }, {
44
44
  key: string;
45
45
  label: string;
46
- type: "text" | "phone" | "email" | "link" | "qr" | "image";
46
+ type: "text" | "image" | "phone" | "email" | "link" | "qr";
47
47
  required: boolean;
48
48
  overflow: "refuse" | "shrink" | "truncate" | "wrap";
49
49
  placeholder?: string | undefined;
@@ -57,11 +57,11 @@ export declare const SlotDeclarationInput: z.ZodPipe<z.ZodObject<{
57
57
  label: z.ZodString;
58
58
  type: z.ZodEnum<{
59
59
  text: "text";
60
+ image: "image";
60
61
  phone: "phone";
61
62
  email: "email";
62
63
  link: "link";
63
64
  qr: "qr";
64
- image: "image";
65
65
  }>;
66
66
  required: z.ZodDefault<z.ZodBoolean>;
67
67
  placeholder: z.ZodOptional<z.ZodString>;
@@ -75,7 +75,7 @@ export declare const SlotDeclarationInput: z.ZodPipe<z.ZodObject<{
75
75
  }, z.core.$strict>, z.ZodTransform<{
76
76
  key: string;
77
77
  label: string;
78
- type: "text" | "phone" | "email" | "link" | "qr" | "image";
78
+ type: "text" | "image" | "phone" | "email" | "link" | "qr";
79
79
  required: boolean;
80
80
  overflow: "refuse" | "shrink" | "truncate" | "wrap";
81
81
  placeholder?: string | undefined;
@@ -83,7 +83,7 @@ export declare const SlotDeclarationInput: z.ZodPipe<z.ZodObject<{
83
83
  }, {
84
84
  key: string;
85
85
  label: string;
86
- type: "text" | "phone" | "email" | "link" | "qr" | "image";
86
+ type: "text" | "image" | "phone" | "email" | "link" | "qr";
87
87
  required: boolean;
88
88
  overflow: "refuse" | "shrink" | "truncate" | "wrap";
89
89
  placeholder?: string | undefined;
@@ -95,11 +95,11 @@ export declare const Slots: z.ZodArray<z.ZodPipe<z.ZodObject<{
95
95
  label: z.ZodString;
96
96
  type: z.ZodEnum<{
97
97
  text: "text";
98
+ image: "image";
98
99
  phone: "phone";
99
100
  email: "email";
100
101
  link: "link";
101
102
  qr: "qr";
102
- image: "image";
103
103
  }>;
104
104
  required: z.ZodDefault<z.ZodBoolean>;
105
105
  placeholder: z.ZodOptional<z.ZodString>;
@@ -113,7 +113,7 @@ export declare const Slots: z.ZodArray<z.ZodPipe<z.ZodObject<{
113
113
  }, z.core.$strip>, z.ZodTransform<{
114
114
  key: string;
115
115
  label: string;
116
- type: "text" | "phone" | "email" | "link" | "qr" | "image";
116
+ type: "text" | "image" | "phone" | "email" | "link" | "qr";
117
117
  required: boolean;
118
118
  overflow: "refuse" | "shrink" | "truncate" | "wrap";
119
119
  placeholder?: string | undefined;
@@ -121,7 +121,7 @@ export declare const Slots: z.ZodArray<z.ZodPipe<z.ZodObject<{
121
121
  }, {
122
122
  key: string;
123
123
  label: string;
124
- type: "text" | "phone" | "email" | "link" | "qr" | "image";
124
+ type: "text" | "image" | "phone" | "email" | "link" | "qr";
125
125
  required: boolean;
126
126
  overflow: "refuse" | "shrink" | "truncate" | "wrap";
127
127
  placeholder?: string | undefined;
@@ -133,11 +133,11 @@ export declare const SlotsInput: z.ZodArray<z.ZodPipe<z.ZodObject<{
133
133
  label: z.ZodString;
134
134
  type: z.ZodEnum<{
135
135
  text: "text";
136
+ image: "image";
136
137
  phone: "phone";
137
138
  email: "email";
138
139
  link: "link";
139
140
  qr: "qr";
140
- image: "image";
141
141
  }>;
142
142
  required: z.ZodDefault<z.ZodBoolean>;
143
143
  placeholder: z.ZodOptional<z.ZodString>;
@@ -151,7 +151,7 @@ export declare const SlotsInput: z.ZodArray<z.ZodPipe<z.ZodObject<{
151
151
  }, z.core.$strict>, z.ZodTransform<{
152
152
  key: string;
153
153
  label: string;
154
- type: "text" | "phone" | "email" | "link" | "qr" | "image";
154
+ type: "text" | "image" | "phone" | "email" | "link" | "qr";
155
155
  required: boolean;
156
156
  overflow: "refuse" | "shrink" | "truncate" | "wrap";
157
157
  placeholder?: string | undefined;
@@ -159,7 +159,7 @@ export declare const SlotsInput: z.ZodArray<z.ZodPipe<z.ZodObject<{
159
159
  }, {
160
160
  key: string;
161
161
  label: string;
162
- type: "text" | "phone" | "email" | "link" | "qr" | "image";
162
+ type: "text" | "image" | "phone" | "email" | "link" | "qr";
163
163
  required: boolean;
164
164
  overflow: "refuse" | "shrink" | "truncate" | "wrap";
165
165
  placeholder?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@segnavia/format",
3
- "version": "0.38.0",
3
+ "version": "0.39.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {