@resumekit/schema 0.1.0 → 0.2.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/template.d.ts +344 -0
- package/dist/template.d.ts.map +1 -1
- package/dist/template.js +92 -0
- package/package.json +1 -1
- package/src/template.ts +112 -0
package/dist/template.d.ts
CHANGED
|
@@ -865,15 +865,55 @@ export declare const INK_COLORS: {
|
|
|
865
865
|
readonly name: "Grey";
|
|
866
866
|
readonly hex: "#5a5a5a";
|
|
867
867
|
};
|
|
868
|
+
readonly charcoal: {
|
|
869
|
+
readonly name: "Charcoal";
|
|
870
|
+
readonly hex: "#2e3236";
|
|
871
|
+
};
|
|
872
|
+
readonly cobalt: {
|
|
873
|
+
readonly name: "Cobalt";
|
|
874
|
+
readonly hex: "#1d4a91";
|
|
875
|
+
};
|
|
876
|
+
readonly indigo: {
|
|
877
|
+
readonly name: "Indigo";
|
|
878
|
+
readonly hex: "#2f3878";
|
|
879
|
+
};
|
|
880
|
+
readonly teal: {
|
|
881
|
+
readonly name: "Teal";
|
|
882
|
+
readonly hex: "#0f5257";
|
|
883
|
+
};
|
|
884
|
+
readonly olive: {
|
|
885
|
+
readonly name: "Olive";
|
|
886
|
+
readonly hex: "#404a1c";
|
|
887
|
+
};
|
|
888
|
+
readonly plum: {
|
|
889
|
+
readonly name: "Plum";
|
|
890
|
+
readonly hex: "#4e2a5a";
|
|
891
|
+
};
|
|
892
|
+
readonly rust: {
|
|
893
|
+
readonly name: "Rust";
|
|
894
|
+
readonly hex: "#7c3416";
|
|
895
|
+
};
|
|
896
|
+
readonly brown: {
|
|
897
|
+
readonly name: "Brown";
|
|
898
|
+
readonly hex: "#57382a";
|
|
899
|
+
};
|
|
868
900
|
};
|
|
869
901
|
export type InkId = keyof typeof INK_COLORS;
|
|
870
902
|
export declare const InkIdSchema: z.ZodEnum<{
|
|
903
|
+
cobalt: "cobalt";
|
|
871
904
|
ink: "ink";
|
|
872
905
|
slate: "slate";
|
|
873
906
|
navy: "navy";
|
|
874
907
|
maroon: "maroon";
|
|
875
908
|
forest: "forest";
|
|
876
909
|
grey: "grey";
|
|
910
|
+
charcoal: "charcoal";
|
|
911
|
+
indigo: "indigo";
|
|
912
|
+
teal: "teal";
|
|
913
|
+
olive: "olive";
|
|
914
|
+
plum: "plum";
|
|
915
|
+
rust: "rust";
|
|
916
|
+
brown: "brown";
|
|
877
917
|
}>;
|
|
878
918
|
/**
|
|
879
919
|
* How open the document's vertical rhythm is — a MULTIPLIER on the template's
|
|
@@ -1012,6 +1052,96 @@ export declare const SCALE_STEP = 0.05;
|
|
|
1012
1052
|
export declare const SCALE_DEFAULT = 1;
|
|
1013
1053
|
/** Round to the nearest representable scale, clamped to the bounds. */
|
|
1014
1054
|
export declare function normalizeScale(value: number): number;
|
|
1055
|
+
/**
|
|
1056
|
+
* How far apart the letters of the document's text sit — an override of the
|
|
1057
|
+
* template's tracking, chosen from presets, never a free number.
|
|
1058
|
+
*
|
|
1059
|
+
* Absent means the template's own tracking, which is what every stored
|
|
1060
|
+
* document has. Headings keep the template's tracking either way: it is part of
|
|
1061
|
+
* how a heading is drawn (an uppercase rule is tracked open on purpose), and
|
|
1062
|
+
* {@link HEADING_CASES} owns it when the candidate changes the heading's case.
|
|
1063
|
+
*/
|
|
1064
|
+
export declare const LETTER_SPACINGS: {
|
|
1065
|
+
readonly tight: {
|
|
1066
|
+
readonly name: "Tight";
|
|
1067
|
+
readonly em: -0.01;
|
|
1068
|
+
};
|
|
1069
|
+
readonly wide: {
|
|
1070
|
+
readonly name: "Wide";
|
|
1071
|
+
readonly em: 0.02;
|
|
1072
|
+
};
|
|
1073
|
+
};
|
|
1074
|
+
export type LetterSpacingId = keyof typeof LETTER_SPACINGS;
|
|
1075
|
+
export declare const LetterSpacingIdSchema: z.ZodEnum<{
|
|
1076
|
+
tight: "tight";
|
|
1077
|
+
wide: "wide";
|
|
1078
|
+
}>;
|
|
1079
|
+
/**
|
|
1080
|
+
* The distance between lines of the document's text, as a unitless line height
|
|
1081
|
+
* from presets. Absent means the template's own leading. Headings keep theirs.
|
|
1082
|
+
*/
|
|
1083
|
+
export declare const LINE_HEIGHTS: {
|
|
1084
|
+
readonly compact: {
|
|
1085
|
+
readonly name: "Compact";
|
|
1086
|
+
readonly value: 1.15;
|
|
1087
|
+
};
|
|
1088
|
+
readonly relaxed: {
|
|
1089
|
+
readonly name: "Relaxed";
|
|
1090
|
+
readonly value: 1.4;
|
|
1091
|
+
};
|
|
1092
|
+
readonly airy: {
|
|
1093
|
+
readonly name: "Airy";
|
|
1094
|
+
readonly value: 1.55;
|
|
1095
|
+
};
|
|
1096
|
+
};
|
|
1097
|
+
export type LineHeightId = keyof typeof LINE_HEIGHTS;
|
|
1098
|
+
export declare const LineHeightIdSchema: z.ZodEnum<{
|
|
1099
|
+
compact: "compact";
|
|
1100
|
+
relaxed: "relaxed";
|
|
1101
|
+
airy: "airy";
|
|
1102
|
+
}>;
|
|
1103
|
+
/**
|
|
1104
|
+
* How section headings are cased. A presentation of the heading, never its
|
|
1105
|
+
* text: the stored heading is unchanged, so copy-out and ATS extraction read
|
|
1106
|
+
* what the candidate wrote. Absent means the template's own casing.
|
|
1107
|
+
*/
|
|
1108
|
+
export declare const HEADING_CASES: {
|
|
1109
|
+
readonly normal: {
|
|
1110
|
+
readonly name: "As written";
|
|
1111
|
+
};
|
|
1112
|
+
readonly upper: {
|
|
1113
|
+
readonly name: "Uppercase";
|
|
1114
|
+
};
|
|
1115
|
+
readonly smallcaps: {
|
|
1116
|
+
readonly name: "Small caps";
|
|
1117
|
+
};
|
|
1118
|
+
};
|
|
1119
|
+
export type HeadingCaseId = keyof typeof HEADING_CASES;
|
|
1120
|
+
export declare const HeadingCaseIdSchema: z.ZodEnum<{
|
|
1121
|
+
normal: "normal";
|
|
1122
|
+
upper: "upper";
|
|
1123
|
+
smallcaps: "smallcaps";
|
|
1124
|
+
}>;
|
|
1125
|
+
/**
|
|
1126
|
+
* How heavy section headings are. Two weights, because every font in
|
|
1127
|
+
* {@link DOCUMENT_FONTS} ships both, so no choice falls back to a synthesised
|
|
1128
|
+
* weight. Absent means the template's own weight.
|
|
1129
|
+
*/
|
|
1130
|
+
export declare const HEADING_WEIGHTS: {
|
|
1131
|
+
readonly regular: {
|
|
1132
|
+
readonly name: "Regular";
|
|
1133
|
+
readonly weight: 400;
|
|
1134
|
+
};
|
|
1135
|
+
readonly bold: {
|
|
1136
|
+
readonly name: "Bold";
|
|
1137
|
+
readonly weight: 700;
|
|
1138
|
+
};
|
|
1139
|
+
};
|
|
1140
|
+
export type HeadingWeightId = keyof typeof HEADING_WEIGHTS;
|
|
1141
|
+
export declare const HeadingWeightIdSchema: z.ZodEnum<{
|
|
1142
|
+
bold: "bold";
|
|
1143
|
+
regular: "regular";
|
|
1144
|
+
}>;
|
|
1015
1145
|
/**
|
|
1016
1146
|
* How the whole document is set. Absent means the template's own defaults — a
|
|
1017
1147
|
* resume nobody has styled renders exactly as the template defines it.
|
|
@@ -1030,27 +1160,73 @@ export declare const DocumentStyleSchema: z.ZodObject<{
|
|
|
1030
1160
|
bitter: "bitter";
|
|
1031
1161
|
}>;
|
|
1032
1162
|
ink: z.ZodEnum<{
|
|
1163
|
+
cobalt: "cobalt";
|
|
1033
1164
|
ink: "ink";
|
|
1034
1165
|
slate: "slate";
|
|
1035
1166
|
navy: "navy";
|
|
1036
1167
|
maroon: "maroon";
|
|
1037
1168
|
forest: "forest";
|
|
1038
1169
|
grey: "grey";
|
|
1170
|
+
charcoal: "charcoal";
|
|
1171
|
+
indigo: "indigo";
|
|
1172
|
+
teal: "teal";
|
|
1173
|
+
olive: "olive";
|
|
1174
|
+
plum: "plum";
|
|
1175
|
+
rust: "rust";
|
|
1176
|
+
brown: "brown";
|
|
1039
1177
|
}>;
|
|
1040
1178
|
scale: z.ZodNumber;
|
|
1041
1179
|
accent: z.ZodOptional<z.ZodEnum<{
|
|
1180
|
+
cobalt: "cobalt";
|
|
1042
1181
|
ink: "ink";
|
|
1043
1182
|
slate: "slate";
|
|
1044
1183
|
navy: "navy";
|
|
1045
1184
|
maroon: "maroon";
|
|
1046
1185
|
forest: "forest";
|
|
1047
1186
|
grey: "grey";
|
|
1187
|
+
charcoal: "charcoal";
|
|
1188
|
+
indigo: "indigo";
|
|
1189
|
+
teal: "teal";
|
|
1190
|
+
olive: "olive";
|
|
1191
|
+
plum: "plum";
|
|
1192
|
+
rust: "rust";
|
|
1193
|
+
brown: "brown";
|
|
1048
1194
|
}>>;
|
|
1049
1195
|
density: z.ZodOptional<z.ZodEnum<{
|
|
1050
1196
|
tight: "tight";
|
|
1051
1197
|
normal: "normal";
|
|
1052
1198
|
roomy: "roomy";
|
|
1053
1199
|
}>>;
|
|
1200
|
+
tracking: z.ZodOptional<z.ZodEnum<{
|
|
1201
|
+
tight: "tight";
|
|
1202
|
+
wide: "wide";
|
|
1203
|
+
}>>;
|
|
1204
|
+
leading: z.ZodOptional<z.ZodEnum<{
|
|
1205
|
+
compact: "compact";
|
|
1206
|
+
relaxed: "relaxed";
|
|
1207
|
+
airy: "airy";
|
|
1208
|
+
}>>;
|
|
1209
|
+
headingFont: z.ZodOptional<z.ZodEnum<{
|
|
1210
|
+
helvetica: "helvetica";
|
|
1211
|
+
arial: "arial";
|
|
1212
|
+
calibri: "calibri";
|
|
1213
|
+
georgia: "georgia";
|
|
1214
|
+
garamond: "garamond";
|
|
1215
|
+
times: "times";
|
|
1216
|
+
lato: "lato";
|
|
1217
|
+
condensed: "condensed";
|
|
1218
|
+
ptserif: "ptserif";
|
|
1219
|
+
bitter: "bitter";
|
|
1220
|
+
}>>;
|
|
1221
|
+
headingCase: z.ZodOptional<z.ZodEnum<{
|
|
1222
|
+
normal: "normal";
|
|
1223
|
+
upper: "upper";
|
|
1224
|
+
smallcaps: "smallcaps";
|
|
1225
|
+
}>>;
|
|
1226
|
+
headingWeight: z.ZodOptional<z.ZodEnum<{
|
|
1227
|
+
bold: "bold";
|
|
1228
|
+
regular: "regular";
|
|
1229
|
+
}>>;
|
|
1054
1230
|
}, z.core.$strip>;
|
|
1055
1231
|
export type DocumentStyle = z.infer<typeof DocumentStyleSchema>;
|
|
1056
1232
|
/** How one line is set, over and above the document's own style. */
|
|
@@ -1060,21 +1236,55 @@ export declare const FieldAlignSchema: z.ZodEnum<{
|
|
|
1060
1236
|
right: "right";
|
|
1061
1237
|
}>;
|
|
1062
1238
|
export type FieldAlign = z.infer<typeof FieldAlignSchema>;
|
|
1239
|
+
/**
|
|
1240
|
+
* One step smaller or larger than the template sets the line. A step, not a
|
|
1241
|
+
* size: the template's proportions hold, so a stepped-up bullet still reads
|
|
1242
|
+
* smaller than a heading.
|
|
1243
|
+
*/
|
|
1244
|
+
export declare const FIELD_STEPS: {
|
|
1245
|
+
readonly smaller: {
|
|
1246
|
+
readonly name: "Smaller";
|
|
1247
|
+
readonly factor: 0.9;
|
|
1248
|
+
};
|
|
1249
|
+
readonly larger: {
|
|
1250
|
+
readonly name: "Larger";
|
|
1251
|
+
readonly factor: 1.12;
|
|
1252
|
+
};
|
|
1253
|
+
};
|
|
1254
|
+
export type FieldStepId = keyof typeof FIELD_STEPS;
|
|
1255
|
+
export declare const FieldStepSchema: z.ZodEnum<{
|
|
1256
|
+
smaller: "smaller";
|
|
1257
|
+
larger: "larger";
|
|
1258
|
+
}>;
|
|
1063
1259
|
export declare const FieldFormatSchema: z.ZodObject<{
|
|
1064
1260
|
path: z.ZodString;
|
|
1065
1261
|
bold: z.ZodOptional<z.ZodBoolean>;
|
|
1262
|
+
italic: z.ZodOptional<z.ZodBoolean>;
|
|
1263
|
+
underline: z.ZodOptional<z.ZodBoolean>;
|
|
1264
|
+
step: z.ZodOptional<z.ZodEnum<{
|
|
1265
|
+
smaller: "smaller";
|
|
1266
|
+
larger: "larger";
|
|
1267
|
+
}>>;
|
|
1066
1268
|
align: z.ZodOptional<z.ZodEnum<{
|
|
1067
1269
|
left: "left";
|
|
1068
1270
|
center: "center";
|
|
1069
1271
|
right: "right";
|
|
1070
1272
|
}>>;
|
|
1071
1273
|
ink: z.ZodOptional<z.ZodEnum<{
|
|
1274
|
+
cobalt: "cobalt";
|
|
1072
1275
|
ink: "ink";
|
|
1073
1276
|
slate: "slate";
|
|
1074
1277
|
navy: "navy";
|
|
1075
1278
|
maroon: "maroon";
|
|
1076
1279
|
forest: "forest";
|
|
1077
1280
|
grey: "grey";
|
|
1281
|
+
charcoal: "charcoal";
|
|
1282
|
+
indigo: "indigo";
|
|
1283
|
+
teal: "teal";
|
|
1284
|
+
olive: "olive";
|
|
1285
|
+
plum: "plum";
|
|
1286
|
+
rust: "rust";
|
|
1287
|
+
brown: "brown";
|
|
1078
1288
|
}>>;
|
|
1079
1289
|
space: z.ZodOptional<z.ZodEnum<{
|
|
1080
1290
|
[x: string]: string;
|
|
@@ -1094,18 +1304,32 @@ export declare function formatIsEmpty(format: FieldFormat): boolean;
|
|
|
1094
1304
|
export declare const ResumeFormatsSchema: z.ZodArray<z.ZodObject<{
|
|
1095
1305
|
path: z.ZodString;
|
|
1096
1306
|
bold: z.ZodOptional<z.ZodBoolean>;
|
|
1307
|
+
italic: z.ZodOptional<z.ZodBoolean>;
|
|
1308
|
+
underline: z.ZodOptional<z.ZodBoolean>;
|
|
1309
|
+
step: z.ZodOptional<z.ZodEnum<{
|
|
1310
|
+
smaller: "smaller";
|
|
1311
|
+
larger: "larger";
|
|
1312
|
+
}>>;
|
|
1097
1313
|
align: z.ZodOptional<z.ZodEnum<{
|
|
1098
1314
|
left: "left";
|
|
1099
1315
|
center: "center";
|
|
1100
1316
|
right: "right";
|
|
1101
1317
|
}>>;
|
|
1102
1318
|
ink: z.ZodOptional<z.ZodEnum<{
|
|
1319
|
+
cobalt: "cobalt";
|
|
1103
1320
|
ink: "ink";
|
|
1104
1321
|
slate: "slate";
|
|
1105
1322
|
navy: "navy";
|
|
1106
1323
|
maroon: "maroon";
|
|
1107
1324
|
forest: "forest";
|
|
1108
1325
|
grey: "grey";
|
|
1326
|
+
charcoal: "charcoal";
|
|
1327
|
+
indigo: "indigo";
|
|
1328
|
+
teal: "teal";
|
|
1329
|
+
olive: "olive";
|
|
1330
|
+
plum: "plum";
|
|
1331
|
+
rust: "rust";
|
|
1332
|
+
brown: "brown";
|
|
1109
1333
|
}>>;
|
|
1110
1334
|
space: z.ZodOptional<z.ZodEnum<{
|
|
1111
1335
|
[x: string]: string;
|
|
@@ -1355,43 +1579,103 @@ export declare const ResumePresentationSchema: z.ZodObject<{
|
|
|
1355
1579
|
bitter: "bitter";
|
|
1356
1580
|
}>;
|
|
1357
1581
|
ink: z.ZodEnum<{
|
|
1582
|
+
cobalt: "cobalt";
|
|
1358
1583
|
ink: "ink";
|
|
1359
1584
|
slate: "slate";
|
|
1360
1585
|
navy: "navy";
|
|
1361
1586
|
maroon: "maroon";
|
|
1362
1587
|
forest: "forest";
|
|
1363
1588
|
grey: "grey";
|
|
1589
|
+
charcoal: "charcoal";
|
|
1590
|
+
indigo: "indigo";
|
|
1591
|
+
teal: "teal";
|
|
1592
|
+
olive: "olive";
|
|
1593
|
+
plum: "plum";
|
|
1594
|
+
rust: "rust";
|
|
1595
|
+
brown: "brown";
|
|
1364
1596
|
}>;
|
|
1365
1597
|
scale: z.ZodNumber;
|
|
1366
1598
|
accent: z.ZodOptional<z.ZodEnum<{
|
|
1599
|
+
cobalt: "cobalt";
|
|
1367
1600
|
ink: "ink";
|
|
1368
1601
|
slate: "slate";
|
|
1369
1602
|
navy: "navy";
|
|
1370
1603
|
maroon: "maroon";
|
|
1371
1604
|
forest: "forest";
|
|
1372
1605
|
grey: "grey";
|
|
1606
|
+
charcoal: "charcoal";
|
|
1607
|
+
indigo: "indigo";
|
|
1608
|
+
teal: "teal";
|
|
1609
|
+
olive: "olive";
|
|
1610
|
+
plum: "plum";
|
|
1611
|
+
rust: "rust";
|
|
1612
|
+
brown: "brown";
|
|
1373
1613
|
}>>;
|
|
1374
1614
|
density: z.ZodOptional<z.ZodEnum<{
|
|
1375
1615
|
tight: "tight";
|
|
1376
1616
|
normal: "normal";
|
|
1377
1617
|
roomy: "roomy";
|
|
1378
1618
|
}>>;
|
|
1619
|
+
tracking: z.ZodOptional<z.ZodEnum<{
|
|
1620
|
+
tight: "tight";
|
|
1621
|
+
wide: "wide";
|
|
1622
|
+
}>>;
|
|
1623
|
+
leading: z.ZodOptional<z.ZodEnum<{
|
|
1624
|
+
compact: "compact";
|
|
1625
|
+
relaxed: "relaxed";
|
|
1626
|
+
airy: "airy";
|
|
1627
|
+
}>>;
|
|
1628
|
+
headingFont: z.ZodOptional<z.ZodEnum<{
|
|
1629
|
+
helvetica: "helvetica";
|
|
1630
|
+
arial: "arial";
|
|
1631
|
+
calibri: "calibri";
|
|
1632
|
+
georgia: "georgia";
|
|
1633
|
+
garamond: "garamond";
|
|
1634
|
+
times: "times";
|
|
1635
|
+
lato: "lato";
|
|
1636
|
+
condensed: "condensed";
|
|
1637
|
+
ptserif: "ptserif";
|
|
1638
|
+
bitter: "bitter";
|
|
1639
|
+
}>>;
|
|
1640
|
+
headingCase: z.ZodOptional<z.ZodEnum<{
|
|
1641
|
+
normal: "normal";
|
|
1642
|
+
upper: "upper";
|
|
1643
|
+
smallcaps: "smallcaps";
|
|
1644
|
+
}>>;
|
|
1645
|
+
headingWeight: z.ZodOptional<z.ZodEnum<{
|
|
1646
|
+
bold: "bold";
|
|
1647
|
+
regular: "regular";
|
|
1648
|
+
}>>;
|
|
1379
1649
|
}, z.core.$strip>>;
|
|
1380
1650
|
formats: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1381
1651
|
path: z.ZodString;
|
|
1382
1652
|
bold: z.ZodOptional<z.ZodBoolean>;
|
|
1653
|
+
italic: z.ZodOptional<z.ZodBoolean>;
|
|
1654
|
+
underline: z.ZodOptional<z.ZodBoolean>;
|
|
1655
|
+
step: z.ZodOptional<z.ZodEnum<{
|
|
1656
|
+
smaller: "smaller";
|
|
1657
|
+
larger: "larger";
|
|
1658
|
+
}>>;
|
|
1383
1659
|
align: z.ZodOptional<z.ZodEnum<{
|
|
1384
1660
|
left: "left";
|
|
1385
1661
|
center: "center";
|
|
1386
1662
|
right: "right";
|
|
1387
1663
|
}>>;
|
|
1388
1664
|
ink: z.ZodOptional<z.ZodEnum<{
|
|
1665
|
+
cobalt: "cobalt";
|
|
1389
1666
|
ink: "ink";
|
|
1390
1667
|
slate: "slate";
|
|
1391
1668
|
navy: "navy";
|
|
1392
1669
|
maroon: "maroon";
|
|
1393
1670
|
forest: "forest";
|
|
1394
1671
|
grey: "grey";
|
|
1672
|
+
charcoal: "charcoal";
|
|
1673
|
+
indigo: "indigo";
|
|
1674
|
+
teal: "teal";
|
|
1675
|
+
olive: "olive";
|
|
1676
|
+
plum: "plum";
|
|
1677
|
+
rust: "rust";
|
|
1678
|
+
brown: "brown";
|
|
1395
1679
|
}>>;
|
|
1396
1680
|
space: z.ZodOptional<z.ZodEnum<{
|
|
1397
1681
|
[x: string]: string;
|
|
@@ -1536,43 +1820,103 @@ export declare const PutPresentationRequestSchema: z.ZodObject<{
|
|
|
1536
1820
|
bitter: "bitter";
|
|
1537
1821
|
}>;
|
|
1538
1822
|
ink: z.ZodEnum<{
|
|
1823
|
+
cobalt: "cobalt";
|
|
1539
1824
|
ink: "ink";
|
|
1540
1825
|
slate: "slate";
|
|
1541
1826
|
navy: "navy";
|
|
1542
1827
|
maroon: "maroon";
|
|
1543
1828
|
forest: "forest";
|
|
1544
1829
|
grey: "grey";
|
|
1830
|
+
charcoal: "charcoal";
|
|
1831
|
+
indigo: "indigo";
|
|
1832
|
+
teal: "teal";
|
|
1833
|
+
olive: "olive";
|
|
1834
|
+
plum: "plum";
|
|
1835
|
+
rust: "rust";
|
|
1836
|
+
brown: "brown";
|
|
1545
1837
|
}>;
|
|
1546
1838
|
scale: z.ZodNumber;
|
|
1547
1839
|
accent: z.ZodOptional<z.ZodEnum<{
|
|
1840
|
+
cobalt: "cobalt";
|
|
1548
1841
|
ink: "ink";
|
|
1549
1842
|
slate: "slate";
|
|
1550
1843
|
navy: "navy";
|
|
1551
1844
|
maroon: "maroon";
|
|
1552
1845
|
forest: "forest";
|
|
1553
1846
|
grey: "grey";
|
|
1847
|
+
charcoal: "charcoal";
|
|
1848
|
+
indigo: "indigo";
|
|
1849
|
+
teal: "teal";
|
|
1850
|
+
olive: "olive";
|
|
1851
|
+
plum: "plum";
|
|
1852
|
+
rust: "rust";
|
|
1853
|
+
brown: "brown";
|
|
1554
1854
|
}>>;
|
|
1555
1855
|
density: z.ZodOptional<z.ZodEnum<{
|
|
1556
1856
|
tight: "tight";
|
|
1557
1857
|
normal: "normal";
|
|
1558
1858
|
roomy: "roomy";
|
|
1559
1859
|
}>>;
|
|
1860
|
+
tracking: z.ZodOptional<z.ZodEnum<{
|
|
1861
|
+
tight: "tight";
|
|
1862
|
+
wide: "wide";
|
|
1863
|
+
}>>;
|
|
1864
|
+
leading: z.ZodOptional<z.ZodEnum<{
|
|
1865
|
+
compact: "compact";
|
|
1866
|
+
relaxed: "relaxed";
|
|
1867
|
+
airy: "airy";
|
|
1868
|
+
}>>;
|
|
1869
|
+
headingFont: z.ZodOptional<z.ZodEnum<{
|
|
1870
|
+
helvetica: "helvetica";
|
|
1871
|
+
arial: "arial";
|
|
1872
|
+
calibri: "calibri";
|
|
1873
|
+
georgia: "georgia";
|
|
1874
|
+
garamond: "garamond";
|
|
1875
|
+
times: "times";
|
|
1876
|
+
lato: "lato";
|
|
1877
|
+
condensed: "condensed";
|
|
1878
|
+
ptserif: "ptserif";
|
|
1879
|
+
bitter: "bitter";
|
|
1880
|
+
}>>;
|
|
1881
|
+
headingCase: z.ZodOptional<z.ZodEnum<{
|
|
1882
|
+
normal: "normal";
|
|
1883
|
+
upper: "upper";
|
|
1884
|
+
smallcaps: "smallcaps";
|
|
1885
|
+
}>>;
|
|
1886
|
+
headingWeight: z.ZodOptional<z.ZodEnum<{
|
|
1887
|
+
bold: "bold";
|
|
1888
|
+
regular: "regular";
|
|
1889
|
+
}>>;
|
|
1560
1890
|
}, z.core.$strip>>;
|
|
1561
1891
|
formats: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1562
1892
|
path: z.ZodString;
|
|
1563
1893
|
bold: z.ZodOptional<z.ZodBoolean>;
|
|
1894
|
+
italic: z.ZodOptional<z.ZodBoolean>;
|
|
1895
|
+
underline: z.ZodOptional<z.ZodBoolean>;
|
|
1896
|
+
step: z.ZodOptional<z.ZodEnum<{
|
|
1897
|
+
smaller: "smaller";
|
|
1898
|
+
larger: "larger";
|
|
1899
|
+
}>>;
|
|
1564
1900
|
align: z.ZodOptional<z.ZodEnum<{
|
|
1565
1901
|
left: "left";
|
|
1566
1902
|
center: "center";
|
|
1567
1903
|
right: "right";
|
|
1568
1904
|
}>>;
|
|
1569
1905
|
ink: z.ZodOptional<z.ZodEnum<{
|
|
1906
|
+
cobalt: "cobalt";
|
|
1570
1907
|
ink: "ink";
|
|
1571
1908
|
slate: "slate";
|
|
1572
1909
|
navy: "navy";
|
|
1573
1910
|
maroon: "maroon";
|
|
1574
1911
|
forest: "forest";
|
|
1575
1912
|
grey: "grey";
|
|
1913
|
+
charcoal: "charcoal";
|
|
1914
|
+
indigo: "indigo";
|
|
1915
|
+
teal: "teal";
|
|
1916
|
+
olive: "olive";
|
|
1917
|
+
plum: "plum";
|
|
1918
|
+
rust: "rust";
|
|
1919
|
+
brown: "brown";
|
|
1576
1920
|
}>>;
|
|
1577
1921
|
space: z.ZodOptional<z.ZodEnum<{
|
|
1578
1922
|
[x: string]: string;
|
package/dist/template.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../src/template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAKL,KAAK,YAAY,EACjB,KAAK,eAAe,EACrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAIL,KAAK,YAAY,EAClB,MAAM,aAAa,CAAC;AAGrB;;;;;;;;;GASG;AAEH;;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I,EAAE,YAAY,EAClB,KAAK,EAAE,WAAW,EAClB,OAAO,EAAE,iBAAiB,GACzB,IAAI,EAAE,CAwCR;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,YAAY,EACpB,KAAK,EAAE,WAAW,GACjB,eAAe,CAkJjB;AA+ED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,YAAY,EAClB,KAAK,EAAE,WAAW,GACjB,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAKrB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,CAY3D;AAsFD;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,YAAY,EAClB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EASjC,UAAU,GAAE,WAAgB,EAgB5B,QAAQ,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAM,GAC9C,WAAW,CAkDb;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,WAAW,EACrB,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,GACzB,WAAW,CA0Bb;AA6BD;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,YAAY,EAClB,KAAK,EAAE,WAAW,EAClB,OAAO,EAAE,iBAAiB,GACzB,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAerB"}
|
package/dist/template.js
CHANGED
|
@@ -1003,6 +1003,21 @@ export const INK_COLORS = {
|
|
|
1003
1003
|
maroon: { name: 'Maroon', hex: '#6b2434' },
|
|
1004
1004
|
forest: { name: 'Forest', hex: '#1f4433' },
|
|
1005
1005
|
grey: { name: 'Grey', hex: '#5a5a5a' },
|
|
1006
|
+
/*
|
|
1007
|
+
* The wider palette. Same rule as the first six: every ink holds at least
|
|
1008
|
+
* 4.5:1 against white (WCAG AA for body text; these all clear 8:1), so a
|
|
1009
|
+
* document set in any of them stays readable on paper, in greyscale and in
|
|
1010
|
+
* an ATS preview. `template.spec.ts` asserts the contrast, so a lighter ink
|
|
1011
|
+
* cannot be added.
|
|
1012
|
+
*/
|
|
1013
|
+
charcoal: { name: 'Charcoal', hex: '#2e3236' },
|
|
1014
|
+
cobalt: { name: 'Cobalt', hex: '#1d4a91' },
|
|
1015
|
+
indigo: { name: 'Indigo', hex: '#2f3878' },
|
|
1016
|
+
teal: { name: 'Teal', hex: '#0f5257' },
|
|
1017
|
+
olive: { name: 'Olive', hex: '#404a1c' },
|
|
1018
|
+
plum: { name: 'Plum', hex: '#4e2a5a' },
|
|
1019
|
+
rust: { name: 'Rust', hex: '#7c3416' },
|
|
1020
|
+
brown: { name: 'Brown', hex: '#57382a' },
|
|
1006
1021
|
};
|
|
1007
1022
|
export const InkIdSchema = z.enum(Object.keys(INK_COLORS));
|
|
1008
1023
|
/**
|
|
@@ -1153,6 +1168,51 @@ export function normalizeScale(value) {
|
|
|
1153
1168
|
// Steps of 0.05 are not exact in binary; two decimals is the domain's precision.
|
|
1154
1169
|
return Number(clamped.toFixed(2));
|
|
1155
1170
|
}
|
|
1171
|
+
/**
|
|
1172
|
+
* How far apart the letters of the document's text sit — an override of the
|
|
1173
|
+
* template's tracking, chosen from presets, never a free number.
|
|
1174
|
+
*
|
|
1175
|
+
* Absent means the template's own tracking, which is what every stored
|
|
1176
|
+
* document has. Headings keep the template's tracking either way: it is part of
|
|
1177
|
+
* how a heading is drawn (an uppercase rule is tracked open on purpose), and
|
|
1178
|
+
* {@link HEADING_CASES} owns it when the candidate changes the heading's case.
|
|
1179
|
+
*/
|
|
1180
|
+
export const LETTER_SPACINGS = {
|
|
1181
|
+
tight: { name: 'Tight', em: -0.01 },
|
|
1182
|
+
wide: { name: 'Wide', em: 0.02 },
|
|
1183
|
+
};
|
|
1184
|
+
export const LetterSpacingIdSchema = z.enum(Object.keys(LETTER_SPACINGS));
|
|
1185
|
+
/**
|
|
1186
|
+
* The distance between lines of the document's text, as a unitless line height
|
|
1187
|
+
* from presets. Absent means the template's own leading. Headings keep theirs.
|
|
1188
|
+
*/
|
|
1189
|
+
export const LINE_HEIGHTS = {
|
|
1190
|
+
compact: { name: 'Compact', value: 1.15 },
|
|
1191
|
+
relaxed: { name: 'Relaxed', value: 1.4 },
|
|
1192
|
+
airy: { name: 'Airy', value: 1.55 },
|
|
1193
|
+
};
|
|
1194
|
+
export const LineHeightIdSchema = z.enum(Object.keys(LINE_HEIGHTS));
|
|
1195
|
+
/**
|
|
1196
|
+
* How section headings are cased. A presentation of the heading, never its
|
|
1197
|
+
* text: the stored heading is unchanged, so copy-out and ATS extraction read
|
|
1198
|
+
* what the candidate wrote. Absent means the template's own casing.
|
|
1199
|
+
*/
|
|
1200
|
+
export const HEADING_CASES = {
|
|
1201
|
+
normal: { name: 'As written' },
|
|
1202
|
+
upper: { name: 'Uppercase' },
|
|
1203
|
+
smallcaps: { name: 'Small caps' },
|
|
1204
|
+
};
|
|
1205
|
+
export const HeadingCaseIdSchema = z.enum(Object.keys(HEADING_CASES));
|
|
1206
|
+
/**
|
|
1207
|
+
* How heavy section headings are. Two weights, because every font in
|
|
1208
|
+
* {@link DOCUMENT_FONTS} ships both, so no choice falls back to a synthesised
|
|
1209
|
+
* weight. Absent means the template's own weight.
|
|
1210
|
+
*/
|
|
1211
|
+
export const HEADING_WEIGHTS = {
|
|
1212
|
+
regular: { name: 'Regular', weight: 400 },
|
|
1213
|
+
bold: { name: 'Bold', weight: 700 },
|
|
1214
|
+
};
|
|
1215
|
+
export const HeadingWeightIdSchema = z.enum(Object.keys(HEADING_WEIGHTS));
|
|
1156
1216
|
/**
|
|
1157
1217
|
* How the whole document is set. Absent means the template's own defaults — a
|
|
1158
1218
|
* resume nobody has styled renders exactly as the template defines it.
|
|
@@ -1179,12 +1239,41 @@ export const DocumentStyleSchema = z.object({
|
|
|
1179
1239
|
accent: InkIdSchema.optional(),
|
|
1180
1240
|
/** Absent means the template's own rhythm — see {@link DENSITIES}. */
|
|
1181
1241
|
density: DensityIdSchema.optional(),
|
|
1242
|
+
/*
|
|
1243
|
+
* The typographic controls a word processor offers, each as a preset over
|
|
1244
|
+
* the template rather than a free value, and each absent unless chosen — so
|
|
1245
|
+
* a document that sets none renders exactly as the template defines it.
|
|
1246
|
+
*/
|
|
1247
|
+
/** Letter spacing of the text — see {@link LETTER_SPACINGS}. */
|
|
1248
|
+
tracking: LetterSpacingIdSchema.optional(),
|
|
1249
|
+
/** Line height of the text — see {@link LINE_HEIGHTS}. */
|
|
1250
|
+
leading: LineHeightIdSchema.optional(),
|
|
1251
|
+
/** The typeface of the name and section headings, from the same vetted set. */
|
|
1252
|
+
headingFont: DocumentFontIdSchema.optional(),
|
|
1253
|
+
/** How section headings are cased — see {@link HEADING_CASES}. */
|
|
1254
|
+
headingCase: HeadingCaseIdSchema.optional(),
|
|
1255
|
+
/** How heavy section headings are — see {@link HEADING_WEIGHTS}. */
|
|
1256
|
+
headingWeight: HeadingWeightIdSchema.optional(),
|
|
1182
1257
|
});
|
|
1183
1258
|
/** How one line is set, over and above the document's own style. */
|
|
1184
1259
|
export const FieldAlignSchema = z.enum(['left', 'center', 'right']);
|
|
1260
|
+
/**
|
|
1261
|
+
* One step smaller or larger than the template sets the line. A step, not a
|
|
1262
|
+
* size: the template's proportions hold, so a stepped-up bullet still reads
|
|
1263
|
+
* smaller than a heading.
|
|
1264
|
+
*/
|
|
1265
|
+
export const FIELD_STEPS = {
|
|
1266
|
+
smaller: { name: 'Smaller', factor: 0.9 },
|
|
1267
|
+
larger: { name: 'Larger', factor: 1.12 },
|
|
1268
|
+
};
|
|
1269
|
+
export const FieldStepSchema = z.enum(Object.keys(FIELD_STEPS));
|
|
1185
1270
|
export const FieldFormatSchema = z.object({
|
|
1186
1271
|
path: ResumeFieldPathSchema,
|
|
1187
1272
|
bold: z.boolean().optional(),
|
|
1273
|
+
italic: z.boolean().optional(),
|
|
1274
|
+
underline: z.boolean().optional(),
|
|
1275
|
+
/** One step smaller or larger — see {@link FIELD_STEPS}. */
|
|
1276
|
+
step: FieldStepSchema.optional(),
|
|
1188
1277
|
align: FieldAlignSchema.optional(),
|
|
1189
1278
|
ink: InkIdSchema.optional(),
|
|
1190
1279
|
/** Extra space above this field — the one place a section rule cannot reach. */
|
|
@@ -1207,6 +1296,9 @@ export const FieldFormatSchema = z.object({
|
|
|
1207
1296
|
/** A format carrying no flags says nothing; it is dropped rather than stored. */
|
|
1208
1297
|
export function formatIsEmpty(format) {
|
|
1209
1298
|
return (format.bold === undefined &&
|
|
1299
|
+
format.italic === undefined &&
|
|
1300
|
+
format.underline === undefined &&
|
|
1301
|
+
format.step === undefined &&
|
|
1210
1302
|
format.align === undefined &&
|
|
1211
1303
|
format.ink === undefined &&
|
|
1212
1304
|
format.href === undefined &&
|
package/package.json
CHANGED
package/src/template.ts
CHANGED
|
@@ -1142,6 +1142,21 @@ export const INK_COLORS = {
|
|
|
1142
1142
|
maroon: { name: 'Maroon', hex: '#6b2434' },
|
|
1143
1143
|
forest: { name: 'Forest', hex: '#1f4433' },
|
|
1144
1144
|
grey: { name: 'Grey', hex: '#5a5a5a' },
|
|
1145
|
+
/*
|
|
1146
|
+
* The wider palette. Same rule as the first six: every ink holds at least
|
|
1147
|
+
* 4.5:1 against white (WCAG AA for body text; these all clear 8:1), so a
|
|
1148
|
+
* document set in any of them stays readable on paper, in greyscale and in
|
|
1149
|
+
* an ATS preview. `template.spec.ts` asserts the contrast, so a lighter ink
|
|
1150
|
+
* cannot be added.
|
|
1151
|
+
*/
|
|
1152
|
+
charcoal: { name: 'Charcoal', hex: '#2e3236' },
|
|
1153
|
+
cobalt: { name: 'Cobalt', hex: '#1d4a91' },
|
|
1154
|
+
indigo: { name: 'Indigo', hex: '#2f3878' },
|
|
1155
|
+
teal: { name: 'Teal', hex: '#0f5257' },
|
|
1156
|
+
olive: { name: 'Olive', hex: '#404a1c' },
|
|
1157
|
+
plum: { name: 'Plum', hex: '#4e2a5a' },
|
|
1158
|
+
rust: { name: 'Rust', hex: '#7c3416' },
|
|
1159
|
+
brown: { name: 'Brown', hex: '#57382a' },
|
|
1145
1160
|
} as const;
|
|
1146
1161
|
|
|
1147
1162
|
export type InkId = keyof typeof INK_COLORS;
|
|
@@ -1325,6 +1340,67 @@ export function normalizeScale(value: number): number {
|
|
|
1325
1340
|
return Number(clamped.toFixed(2));
|
|
1326
1341
|
}
|
|
1327
1342
|
|
|
1343
|
+
/**
|
|
1344
|
+
* How far apart the letters of the document's text sit — an override of the
|
|
1345
|
+
* template's tracking, chosen from presets, never a free number.
|
|
1346
|
+
*
|
|
1347
|
+
* Absent means the template's own tracking, which is what every stored
|
|
1348
|
+
* document has. Headings keep the template's tracking either way: it is part of
|
|
1349
|
+
* how a heading is drawn (an uppercase rule is tracked open on purpose), and
|
|
1350
|
+
* {@link HEADING_CASES} owns it when the candidate changes the heading's case.
|
|
1351
|
+
*/
|
|
1352
|
+
export const LETTER_SPACINGS = {
|
|
1353
|
+
tight: { name: 'Tight', em: -0.01 },
|
|
1354
|
+
wide: { name: 'Wide', em: 0.02 },
|
|
1355
|
+
} as const;
|
|
1356
|
+
export type LetterSpacingId = keyof typeof LETTER_SPACINGS;
|
|
1357
|
+
export const LetterSpacingIdSchema = z.enum(
|
|
1358
|
+
Object.keys(LETTER_SPACINGS) as [LetterSpacingId, ...LetterSpacingId[]],
|
|
1359
|
+
);
|
|
1360
|
+
|
|
1361
|
+
/**
|
|
1362
|
+
* The distance between lines of the document's text, as a unitless line height
|
|
1363
|
+
* from presets. Absent means the template's own leading. Headings keep theirs.
|
|
1364
|
+
*/
|
|
1365
|
+
export const LINE_HEIGHTS = {
|
|
1366
|
+
compact: { name: 'Compact', value: 1.15 },
|
|
1367
|
+
relaxed: { name: 'Relaxed', value: 1.4 },
|
|
1368
|
+
airy: { name: 'Airy', value: 1.55 },
|
|
1369
|
+
} as const;
|
|
1370
|
+
export type LineHeightId = keyof typeof LINE_HEIGHTS;
|
|
1371
|
+
export const LineHeightIdSchema = z.enum(
|
|
1372
|
+
Object.keys(LINE_HEIGHTS) as [LineHeightId, ...LineHeightId[]],
|
|
1373
|
+
);
|
|
1374
|
+
|
|
1375
|
+
/**
|
|
1376
|
+
* How section headings are cased. A presentation of the heading, never its
|
|
1377
|
+
* text: the stored heading is unchanged, so copy-out and ATS extraction read
|
|
1378
|
+
* what the candidate wrote. Absent means the template's own casing.
|
|
1379
|
+
*/
|
|
1380
|
+
export const HEADING_CASES = {
|
|
1381
|
+
normal: { name: 'As written' },
|
|
1382
|
+
upper: { name: 'Uppercase' },
|
|
1383
|
+
smallcaps: { name: 'Small caps' },
|
|
1384
|
+
} as const;
|
|
1385
|
+
export type HeadingCaseId = keyof typeof HEADING_CASES;
|
|
1386
|
+
export const HeadingCaseIdSchema = z.enum(
|
|
1387
|
+
Object.keys(HEADING_CASES) as [HeadingCaseId, ...HeadingCaseId[]],
|
|
1388
|
+
);
|
|
1389
|
+
|
|
1390
|
+
/**
|
|
1391
|
+
* How heavy section headings are. Two weights, because every font in
|
|
1392
|
+
* {@link DOCUMENT_FONTS} ships both, so no choice falls back to a synthesised
|
|
1393
|
+
* weight. Absent means the template's own weight.
|
|
1394
|
+
*/
|
|
1395
|
+
export const HEADING_WEIGHTS = {
|
|
1396
|
+
regular: { name: 'Regular', weight: 400 },
|
|
1397
|
+
bold: { name: 'Bold', weight: 700 },
|
|
1398
|
+
} as const;
|
|
1399
|
+
export type HeadingWeightId = keyof typeof HEADING_WEIGHTS;
|
|
1400
|
+
export const HeadingWeightIdSchema = z.enum(
|
|
1401
|
+
Object.keys(HEADING_WEIGHTS) as [HeadingWeightId, ...HeadingWeightId[]],
|
|
1402
|
+
);
|
|
1403
|
+
|
|
1328
1404
|
/**
|
|
1329
1405
|
* How the whole document is set. Absent means the template's own defaults — a
|
|
1330
1406
|
* resume nobody has styled renders exactly as the template defines it.
|
|
@@ -1351,6 +1427,21 @@ export const DocumentStyleSchema = z.object({
|
|
|
1351
1427
|
accent: InkIdSchema.optional(),
|
|
1352
1428
|
/** Absent means the template's own rhythm — see {@link DENSITIES}. */
|
|
1353
1429
|
density: DensityIdSchema.optional(),
|
|
1430
|
+
/*
|
|
1431
|
+
* The typographic controls a word processor offers, each as a preset over
|
|
1432
|
+
* the template rather than a free value, and each absent unless chosen — so
|
|
1433
|
+
* a document that sets none renders exactly as the template defines it.
|
|
1434
|
+
*/
|
|
1435
|
+
/** Letter spacing of the text — see {@link LETTER_SPACINGS}. */
|
|
1436
|
+
tracking: LetterSpacingIdSchema.optional(),
|
|
1437
|
+
/** Line height of the text — see {@link LINE_HEIGHTS}. */
|
|
1438
|
+
leading: LineHeightIdSchema.optional(),
|
|
1439
|
+
/** The typeface of the name and section headings, from the same vetted set. */
|
|
1440
|
+
headingFont: DocumentFontIdSchema.optional(),
|
|
1441
|
+
/** How section headings are cased — see {@link HEADING_CASES}. */
|
|
1442
|
+
headingCase: HeadingCaseIdSchema.optional(),
|
|
1443
|
+
/** How heavy section headings are — see {@link HEADING_WEIGHTS}. */
|
|
1444
|
+
headingWeight: HeadingWeightIdSchema.optional(),
|
|
1354
1445
|
});
|
|
1355
1446
|
export type DocumentStyle = z.infer<typeof DocumentStyleSchema>;
|
|
1356
1447
|
|
|
@@ -1358,9 +1449,27 @@ export type DocumentStyle = z.infer<typeof DocumentStyleSchema>;
|
|
|
1358
1449
|
export const FieldAlignSchema = z.enum(['left', 'center', 'right']);
|
|
1359
1450
|
export type FieldAlign = z.infer<typeof FieldAlignSchema>;
|
|
1360
1451
|
|
|
1452
|
+
/**
|
|
1453
|
+
* One step smaller or larger than the template sets the line. A step, not a
|
|
1454
|
+
* size: the template's proportions hold, so a stepped-up bullet still reads
|
|
1455
|
+
* smaller than a heading.
|
|
1456
|
+
*/
|
|
1457
|
+
export const FIELD_STEPS = {
|
|
1458
|
+
smaller: { name: 'Smaller', factor: 0.9 },
|
|
1459
|
+
larger: { name: 'Larger', factor: 1.12 },
|
|
1460
|
+
} as const;
|
|
1461
|
+
export type FieldStepId = keyof typeof FIELD_STEPS;
|
|
1462
|
+
export const FieldStepSchema = z.enum(
|
|
1463
|
+
Object.keys(FIELD_STEPS) as [FieldStepId, ...FieldStepId[]],
|
|
1464
|
+
);
|
|
1465
|
+
|
|
1361
1466
|
export const FieldFormatSchema = z.object({
|
|
1362
1467
|
path: ResumeFieldPathSchema,
|
|
1363
1468
|
bold: z.boolean().optional(),
|
|
1469
|
+
italic: z.boolean().optional(),
|
|
1470
|
+
underline: z.boolean().optional(),
|
|
1471
|
+
/** One step smaller or larger — see {@link FIELD_STEPS}. */
|
|
1472
|
+
step: FieldStepSchema.optional(),
|
|
1364
1473
|
align: FieldAlignSchema.optional(),
|
|
1365
1474
|
ink: InkIdSchema.optional(),
|
|
1366
1475
|
/** Extra space above this field — the one place a section rule cannot reach. */
|
|
@@ -1386,6 +1495,9 @@ export type FieldFormat = z.infer<typeof FieldFormatSchema>;
|
|
|
1386
1495
|
export function formatIsEmpty(format: FieldFormat): boolean {
|
|
1387
1496
|
return (
|
|
1388
1497
|
format.bold === undefined &&
|
|
1498
|
+
format.italic === undefined &&
|
|
1499
|
+
format.underline === undefined &&
|
|
1500
|
+
format.step === undefined &&
|
|
1389
1501
|
format.align === undefined &&
|
|
1390
1502
|
format.ink === undefined &&
|
|
1391
1503
|
format.href === undefined &&
|