@segnavia/format 0.38.0 → 0.40.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/board-edit.d.ts +2 -1
- package/dist/board-geometry.d.ts +2 -1
- package/dist/board-section-grid.d.ts +2 -1
- package/dist/board-sections.d.ts +2 -1
- package/dist/board.d.ts +8 -8
- package/dist/board.js +15 -11
- package/dist/book-exports.d.ts +2 -2
- package/dist/book-section.d.ts +171 -0
- package/dist/book-section.js +13 -2
- package/dist/book.d.ts +189 -47
- package/dist/book.js +18 -2
- package/dist/cover.d.ts +500 -0
- package/dist/cover.js +100 -0
- package/dist/deck-from-slides.d.ts +23 -4
- package/dist/deck.d.ts +144 -42
- package/dist/deck.js +22 -24
- package/dist/direction.d.ts +1 -1
- package/dist/font-collection.d.ts +8 -0
- package/dist/font-collection.js +191 -0
- package/dist/font-face.d.ts +8 -0
- package/dist/font-face.js +24 -0
- package/dist/font-refusal.d.ts +5 -0
- package/dist/font-refusal.js +9 -0
- package/dist/font-signature.d.ts +5 -0
- package/dist/font-signature.js +13 -0
- package/dist/fonts.d.ts +6 -1
- package/dist/fonts.js +3 -1
- package/dist/geometry.d.ts +20 -0
- package/dist/geometry.js +18 -0
- package/dist/image-fit.d.ts +10 -0
- package/dist/image-fit.js +10 -0
- package/dist/imposition-marks.d.ts +1 -1
- package/dist/imposition-schema.d.ts +185 -0
- package/dist/imposition-schema.js +122 -0
- package/dist/imposition.d.ts +8 -6
- package/dist/imposition.js +53 -42
- package/dist/index.d.ts +23 -1756
- package/dist/index.js +29 -212
- package/dist/json-schemas.d.ts +2181 -0
- package/dist/json-schemas.js +43 -0
- package/dist/media.d.ts +152 -0
- package/dist/media.js +119 -0
- package/dist/note-series.d.ts +4 -4
- package/dist/note-series.js +0 -5
- package/dist/page.d.ts +359 -0
- package/dist/page.js +110 -0
- package/dist/paper.d.ts +5 -5
- package/dist/placement-cycle.d.ts +5 -0
- package/dist/placement-cycle.js +30 -0
- package/dist/placement-refusal.d.ts +5 -0
- package/dist/placement-refusal.js +6 -0
- package/dist/placement.d.ts +76 -0
- package/dist/placement.js +100 -0
- package/dist/print.d.ts +72 -0
- package/dist/print.js +38 -0
- package/dist/printed-page-imposition.d.ts +2 -1
- package/dist/shots-used.d.ts +0 -1
- package/dist/shots-used.js +2 -2
- package/dist/slots.d.ts +13 -13
- package/package.json +1 -1
|
@@ -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 };
|
package/dist/print.d.ts
ADDED
|
@@ -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
|
+
in: "in";
|
|
48
|
+
mm: "mm";
|
|
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 {
|
|
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;
|
package/dist/shots-used.d.ts
CHANGED
package/dist/shots-used.js
CHANGED
|
@@ -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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
162
|
+
type: "text" | "image" | "phone" | "email" | "link" | "qr";
|
|
163
163
|
required: boolean;
|
|
164
164
|
overflow: "refuse" | "shrink" | "truncate" | "wrap";
|
|
165
165
|
placeholder?: string | undefined;
|