@segnavia/format 0.37.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 (66) 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 +4 -0
  8. package/dist/book-section.d.ts +225 -3
  9. package/dist/book-section.js +82 -17
  10. package/dist/book.d.ts +878 -416
  11. package/dist/book.js +236 -37
  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/dependency-policy.d.ts +12 -0
  18. package/dist/dependency-policy.js +42 -0
  19. package/dist/direction.d.ts +1 -1
  20. package/dist/font-collection.d.ts +8 -0
  21. package/dist/font-collection.js +191 -0
  22. package/dist/font-face.d.ts +8 -0
  23. package/dist/font-face.js +24 -0
  24. package/dist/font-refusal.d.ts +5 -0
  25. package/dist/font-refusal.js +9 -0
  26. package/dist/font-signature.d.ts +5 -0
  27. package/dist/font-signature.js +13 -0
  28. package/dist/fonts.d.ts +6 -1
  29. package/dist/fonts.js +3 -1
  30. package/dist/geometry.d.ts +20 -0
  31. package/dist/geometry.js +18 -0
  32. package/dist/image-fit.d.ts +10 -0
  33. package/dist/image-fit.js +10 -0
  34. package/dist/imposition-marks.d.ts +1 -1
  35. package/dist/imposition-schema.d.ts +185 -0
  36. package/dist/imposition-schema.js +122 -0
  37. package/dist/imposition.d.ts +8 -6
  38. package/dist/index.d.ts +29 -1797
  39. package/dist/index.js +30 -210
  40. package/dist/json-schemas.d.ts +1860 -0
  41. package/dist/json-schemas.js +43 -0
  42. package/dist/local-font-limits.d.ts +15 -0
  43. package/dist/local-font-limits.js +24 -0
  44. package/dist/media.d.ts +152 -0
  45. package/dist/media.js +119 -0
  46. package/dist/note-series.d.ts +70 -0
  47. package/dist/note-series.js +153 -0
  48. package/dist/page.d.ts +174 -0
  49. package/dist/page.js +37 -0
  50. package/dist/paper.d.ts +2 -1
  51. package/dist/paper.js +2 -1
  52. package/dist/placement-cycle.d.ts +5 -0
  53. package/dist/placement-cycle.js +30 -0
  54. package/dist/placement-refusal.d.ts +5 -0
  55. package/dist/placement-refusal.js +6 -0
  56. package/dist/placement.d.ts +76 -0
  57. package/dist/placement.js +100 -0
  58. package/dist/print.d.ts +72 -0
  59. package/dist/print.js +38 -0
  60. package/dist/printed-page-imposition.d.ts +2 -1
  61. package/dist/printed-pages.d.ts +14 -0
  62. package/dist/printed-pages.js +14 -1
  63. package/dist/shots-used.d.ts +0 -1
  64. package/dist/shots-used.js +2 -2
  65. package/dist/slots.d.ts +13 -13
  66. package/package.json +1 -1
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.37.0",
3
+ "version": "0.39.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {