@softure-ai/marketing-kit 0.21.2 → 0.23.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/CHANGELOG.md +32 -0
- package/NOTICE +11 -0
- package/README.md +39 -5
- package/dist/cli/failure.d.ts.map +1 -1
- package/dist/cli/failure.js.map +1 -1
- package/dist/cli/films.js.map +1 -1
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/options.d.ts.map +1 -1
- package/dist/compose/timeline.d.ts +22 -1
- package/dist/compose/timeline.d.ts.map +1 -1
- package/dist/compose/timeline.js +52 -14
- package/dist/compose/timeline.js.map +1 -1
- package/dist/config/actions-schema.d.ts +57 -57
- package/dist/config/actions-schema.d.ts.map +1 -1
- package/dist/config/brand.d.ts.map +1 -1
- package/dist/config/brand.js +22 -1
- package/dist/config/brand.js.map +1 -1
- package/dist/config/colors.d.ts +35 -3
- package/dist/config/colors.d.ts.map +1 -1
- package/dist/config/colors.js +32 -0
- package/dist/config/colors.js.map +1 -1
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/config.js +5 -0
- package/dist/config/config.js.map +1 -1
- package/dist/config/placeholders.d.ts.map +1 -1
- package/dist/config/placeholders.js.map +1 -1
- package/dist/config/schema.d.ts +340 -328
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +31 -4
- package/dist/config/schema.js.map +1 -1
- package/dist/config/shot-steps.d.ts +64 -64
- package/dist/film.d.ts.map +1 -1
- package/dist/footage/audio.js.map +1 -1
- package/dist/footage/caption-highlight.d.ts +44 -0
- package/dist/footage/caption-highlight.d.ts.map +1 -0
- package/dist/footage/caption-highlight.js +29 -0
- package/dist/footage/caption-highlight.js.map +1 -0
- package/dist/footage/captions.d.ts +14 -5
- package/dist/footage/captions.d.ts.map +1 -1
- package/dist/footage/captions.js +19 -11
- package/dist/footage/captions.js.map +1 -1
- package/dist/footage/clip-sound.d.ts.map +1 -1
- package/dist/footage/clip-sound.js.map +1 -1
- package/dist/footage/compose.d.ts +3 -0
- package/dist/footage/compose.d.ts.map +1 -1
- package/dist/footage/compose.js +33 -6
- package/dist/footage/compose.js.map +1 -1
- package/dist/footage/cuts.d.ts.map +1 -1
- package/dist/footage/cuts.js.map +1 -1
- package/dist/footage/declick.d.ts.map +1 -1
- package/dist/footage/disk.js.map +1 -1
- package/dist/footage/draft-color.d.ts +6 -0
- package/dist/footage/draft-color.d.ts.map +1 -0
- package/dist/footage/draft-color.js +14 -0
- package/dist/footage/draft-color.js.map +1 -0
- package/dist/footage/draft-font.js.map +1 -1
- package/dist/footage/draft-overlays.d.ts +12 -0
- package/dist/footage/draft-overlays.d.ts.map +1 -0
- package/dist/footage/draft-overlays.js +83 -0
- package/dist/footage/draft-overlays.js.map +1 -0
- package/dist/footage/draft.d.ts +27 -9
- package/dist/footage/draft.d.ts.map +1 -1
- package/dist/footage/draft.js +99 -37
- package/dist/footage/draft.js.map +1 -1
- package/dist/footage/edl.d.ts +54 -13
- package/dist/footage/edl.d.ts.map +1 -1
- package/dist/footage/edl.js +10 -0
- package/dist/footage/edl.js.map +1 -1
- package/dist/footage/elevenlabs.d.ts.map +1 -1
- package/dist/footage/failure.js.map +1 -1
- package/dist/footage/fake.js.map +1 -1
- package/dist/footage/ffmpeg-failure.d.ts.map +1 -1
- package/dist/footage/ffmpeg-failure.js.map +1 -1
- package/dist/footage/film.d.ts +23 -0
- package/dist/footage/film.d.ts.map +1 -1
- package/dist/footage/film.js +2 -0
- package/dist/footage/film.js.map +1 -1
- package/dist/footage/hyperframes-capture.d.ts.map +1 -1
- package/dist/footage/keyterms.d.ts.map +1 -1
- package/dist/footage/loudness.d.ts.map +1 -1
- package/dist/footage/loudness.js.map +1 -1
- package/dist/footage/mouth-clicks.d.ts.map +1 -1
- package/dist/footage/normalize.d.ts.map +1 -1
- package/dist/footage/normalize.js.map +1 -1
- package/dist/footage/overlay-html.d.ts +29 -0
- package/dist/footage/overlay-html.d.ts.map +1 -0
- package/dist/footage/overlay-html.js +112 -0
- package/dist/footage/overlay-html.js.map +1 -0
- package/dist/footage/overlay-schema.d.ts +97 -0
- package/dist/footage/overlay-schema.d.ts.map +1 -0
- package/dist/footage/overlay-schema.js +104 -0
- package/dist/footage/overlay-schema.js.map +1 -0
- package/dist/footage/overlays.d.ts +112 -0
- package/dist/footage/overlays.d.ts.map +1 -0
- package/dist/footage/overlays.js +222 -0
- package/dist/footage/overlays.js.map +1 -0
- package/dist/footage/paid.d.ts.map +1 -1
- package/dist/footage/pipeline.d.ts.map +1 -1
- package/dist/footage/pipeline.js +10 -1
- package/dist/footage/pipeline.js.map +1 -1
- package/dist/footage/probe.js.map +1 -1
- package/dist/footage/process.js.map +1 -1
- package/dist/footage/publish.js.map +1 -1
- package/dist/footage/render.js.map +1 -1
- package/dist/footage/sound-analysis.d.ts.map +1 -1
- package/dist/footage/speech-ranges.js.map +1 -1
- package/dist/footage/tonemap-lut.d.ts.map +1 -1
- package/dist/footage/tonemap-lut.js.map +1 -1
- package/dist/footage/tools.d.ts.map +1 -1
- package/dist/footage/tools.js.map +1 -1
- package/dist/index.d.ts +7 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/dist/messages/en.d.ts.map +1 -1
- package/dist/messages/index.js.map +1 -1
- package/dist/og/font-file.d.ts.map +1 -1
- package/dist/og/fonts.d.ts.map +1 -1
- package/dist/og/fonts.js.map +1 -1
- package/dist/og/index.d.ts +1 -1
- package/dist/og/index.d.ts.map +1 -1
- package/dist/og/index.js +1 -1
- package/dist/og/index.js.map +1 -1
- package/dist/og/photo-cover.d.ts +18 -1
- package/dist/og/photo-cover.d.ts.map +1 -1
- package/dist/og/photo-cover.js +56 -28
- package/dist/og/photo-cover.js.map +1 -1
- package/dist/og/result.d.ts.map +1 -1
- package/dist/og/templates/schemas.d.ts.map +1 -1
- package/dist/platforms.d.ts.map +1 -1
- package/dist/render/hyperframes.d.ts +1 -1
- package/dist/render/hyperframes.d.ts.map +1 -1
- package/dist/render/hyperframes.js +1 -1
- package/dist/render/hyperframes.js.map +1 -1
- package/dist/render/render.js.map +1 -1
- package/dist/screenshot/gates.d.ts.map +1 -1
- package/dist/voice/fake.js.map +1 -1
- package/dist/voice/provider.d.ts.map +1 -1
- package/package.json +4 -3
- package/schema/edl.schema.json +130 -0
- package/schema/marketing.schema.json +51 -0
- package/src/compose/timeline.ts +62 -13
- package/src/config/brand.ts +20 -1
- package/src/config/colors.ts +39 -2
- package/src/config/config.ts +5 -0
- package/src/config/schema.ts +34 -7
- package/src/footage/caption-highlight.ts +52 -0
- package/src/footage/captions.ts +26 -12
- package/src/footage/compose.ts +40 -6
- package/src/footage/draft-color.ts +12 -0
- package/src/footage/draft-overlays.ts +91 -0
- package/src/footage/draft.ts +117 -39
- package/src/footage/edl.ts +17 -0
- package/src/footage/film.ts +25 -0
- package/src/footage/overlay-html.ts +127 -0
- package/src/footage/overlay-schema.ts +146 -0
- package/src/footage/overlays.ts +272 -0
- package/src/footage/pipeline.ts +8 -1
- package/src/index.ts +58 -1
- package/src/og/index.ts +2 -0
- package/src/og/photo-cover.ts +83 -33
- package/src/render/hyperframes.ts +1 -1
|
@@ -48,12 +48,6 @@ export type LocatorDescriptor = {
|
|
|
48
48
|
*/
|
|
49
49
|
export declare const locatorSchema: z.ZodPipe<z.ZodObject<{
|
|
50
50
|
role: z.ZodOptional<z.ZodEnum<{
|
|
51
|
-
caption: "caption";
|
|
52
|
-
log: "log";
|
|
53
|
-
code: "code";
|
|
54
|
-
none: "none";
|
|
55
|
-
note: "note";
|
|
56
|
-
strong: "strong";
|
|
57
51
|
alert: "alert";
|
|
58
52
|
alertdialog: "alertdialog";
|
|
59
53
|
application: "application";
|
|
@@ -61,8 +55,10 @@ export declare const locatorSchema: z.ZodPipe<z.ZodObject<{
|
|
|
61
55
|
banner: "banner";
|
|
62
56
|
blockquote: "blockquote";
|
|
63
57
|
button: "button";
|
|
58
|
+
caption: "caption";
|
|
64
59
|
cell: "cell";
|
|
65
60
|
checkbox: "checkbox";
|
|
61
|
+
code: "code";
|
|
66
62
|
columnheader: "columnheader";
|
|
67
63
|
combobox: "combobox";
|
|
68
64
|
complementary: "complementary";
|
|
@@ -87,16 +83,19 @@ export declare const locatorSchema: z.ZodPipe<z.ZodObject<{
|
|
|
87
83
|
list: "list";
|
|
88
84
|
listbox: "listbox";
|
|
89
85
|
listitem: "listitem";
|
|
86
|
+
log: "log";
|
|
90
87
|
main: "main";
|
|
91
88
|
marquee: "marquee";
|
|
92
89
|
math: "math";
|
|
93
|
-
meter: "meter";
|
|
94
90
|
menu: "menu";
|
|
95
91
|
menubar: "menubar";
|
|
96
92
|
menuitem: "menuitem";
|
|
97
93
|
menuitemcheckbox: "menuitemcheckbox";
|
|
98
94
|
menuitemradio: "menuitemradio";
|
|
95
|
+
meter: "meter";
|
|
99
96
|
navigation: "navigation";
|
|
97
|
+
none: "none";
|
|
98
|
+
note: "note";
|
|
100
99
|
option: "option";
|
|
101
100
|
paragraph: "paragraph";
|
|
102
101
|
presentation: "presentation";
|
|
@@ -114,6 +113,7 @@ export declare const locatorSchema: z.ZodPipe<z.ZodObject<{
|
|
|
114
113
|
slider: "slider";
|
|
115
114
|
spinbutton: "spinbutton";
|
|
116
115
|
status: "status";
|
|
116
|
+
strong: "strong";
|
|
117
117
|
subscript: "subscript";
|
|
118
118
|
superscript: "superscript";
|
|
119
119
|
switch: "switch";
|
|
@@ -177,7 +177,7 @@ export declare const locatorSchema: z.ZodPipe<z.ZodObject<{
|
|
|
177
177
|
hasText: TextMatch | null;
|
|
178
178
|
nth: number | null;
|
|
179
179
|
}, {
|
|
180
|
-
role?: "
|
|
180
|
+
role?: "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "caption" | "cell" | "checkbox" | "code" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "deletion" | "dialog" | "directory" | "document" | "emphasis" | "feed" | "figure" | "form" | "generic" | "grid" | "gridcell" | "group" | "heading" | "img" | "insertion" | "link" | "list" | "listbox" | "listitem" | "log" | "main" | "marquee" | "math" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "meter" | "navigation" | "none" | "note" | "option" | "paragraph" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "strong" | "subscript" | "superscript" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "time" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem" | undefined;
|
|
181
181
|
name?: string | {
|
|
182
182
|
regex: string;
|
|
183
183
|
flags: string;
|
|
@@ -207,12 +207,6 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
207
207
|
do: z.ZodLiteral<"tap">;
|
|
208
208
|
target: z.ZodPipe<z.ZodObject<{
|
|
209
209
|
role: z.ZodOptional<z.ZodEnum<{
|
|
210
|
-
caption: "caption";
|
|
211
|
-
log: "log";
|
|
212
|
-
code: "code";
|
|
213
|
-
none: "none";
|
|
214
|
-
note: "note";
|
|
215
|
-
strong: "strong";
|
|
216
210
|
alert: "alert";
|
|
217
211
|
alertdialog: "alertdialog";
|
|
218
212
|
application: "application";
|
|
@@ -220,8 +214,10 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
220
214
|
banner: "banner";
|
|
221
215
|
blockquote: "blockquote";
|
|
222
216
|
button: "button";
|
|
217
|
+
caption: "caption";
|
|
223
218
|
cell: "cell";
|
|
224
219
|
checkbox: "checkbox";
|
|
220
|
+
code: "code";
|
|
225
221
|
columnheader: "columnheader";
|
|
226
222
|
combobox: "combobox";
|
|
227
223
|
complementary: "complementary";
|
|
@@ -246,16 +242,19 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
246
242
|
list: "list";
|
|
247
243
|
listbox: "listbox";
|
|
248
244
|
listitem: "listitem";
|
|
245
|
+
log: "log";
|
|
249
246
|
main: "main";
|
|
250
247
|
marquee: "marquee";
|
|
251
248
|
math: "math";
|
|
252
|
-
meter: "meter";
|
|
253
249
|
menu: "menu";
|
|
254
250
|
menubar: "menubar";
|
|
255
251
|
menuitem: "menuitem";
|
|
256
252
|
menuitemcheckbox: "menuitemcheckbox";
|
|
257
253
|
menuitemradio: "menuitemradio";
|
|
254
|
+
meter: "meter";
|
|
258
255
|
navigation: "navigation";
|
|
256
|
+
none: "none";
|
|
257
|
+
note: "note";
|
|
259
258
|
option: "option";
|
|
260
259
|
paragraph: "paragraph";
|
|
261
260
|
presentation: "presentation";
|
|
@@ -273,6 +272,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
273
272
|
slider: "slider";
|
|
274
273
|
spinbutton: "spinbutton";
|
|
275
274
|
status: "status";
|
|
275
|
+
strong: "strong";
|
|
276
276
|
subscript: "subscript";
|
|
277
277
|
superscript: "superscript";
|
|
278
278
|
switch: "switch";
|
|
@@ -336,7 +336,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
336
336
|
hasText: TextMatch | null;
|
|
337
337
|
nth: number | null;
|
|
338
338
|
}, {
|
|
339
|
-
role?: "
|
|
339
|
+
role?: "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "caption" | "cell" | "checkbox" | "code" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "deletion" | "dialog" | "directory" | "document" | "emphasis" | "feed" | "figure" | "form" | "generic" | "grid" | "gridcell" | "group" | "heading" | "img" | "insertion" | "link" | "list" | "listbox" | "listitem" | "log" | "main" | "marquee" | "math" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "meter" | "navigation" | "none" | "note" | "option" | "paragraph" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "strong" | "subscript" | "superscript" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "time" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem" | undefined;
|
|
340
340
|
name?: string | {
|
|
341
341
|
regex: string;
|
|
342
342
|
flags: string;
|
|
@@ -379,12 +379,6 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
379
379
|
do: z.ZodLiteral<"focus">;
|
|
380
380
|
target: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
381
381
|
role: z.ZodOptional<z.ZodEnum<{
|
|
382
|
-
caption: "caption";
|
|
383
|
-
log: "log";
|
|
384
|
-
code: "code";
|
|
385
|
-
none: "none";
|
|
386
|
-
note: "note";
|
|
387
|
-
strong: "strong";
|
|
388
382
|
alert: "alert";
|
|
389
383
|
alertdialog: "alertdialog";
|
|
390
384
|
application: "application";
|
|
@@ -392,8 +386,10 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
392
386
|
banner: "banner";
|
|
393
387
|
blockquote: "blockquote";
|
|
394
388
|
button: "button";
|
|
389
|
+
caption: "caption";
|
|
395
390
|
cell: "cell";
|
|
396
391
|
checkbox: "checkbox";
|
|
392
|
+
code: "code";
|
|
397
393
|
columnheader: "columnheader";
|
|
398
394
|
combobox: "combobox";
|
|
399
395
|
complementary: "complementary";
|
|
@@ -418,16 +414,19 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
418
414
|
list: "list";
|
|
419
415
|
listbox: "listbox";
|
|
420
416
|
listitem: "listitem";
|
|
417
|
+
log: "log";
|
|
421
418
|
main: "main";
|
|
422
419
|
marquee: "marquee";
|
|
423
420
|
math: "math";
|
|
424
|
-
meter: "meter";
|
|
425
421
|
menu: "menu";
|
|
426
422
|
menubar: "menubar";
|
|
427
423
|
menuitem: "menuitem";
|
|
428
424
|
menuitemcheckbox: "menuitemcheckbox";
|
|
429
425
|
menuitemradio: "menuitemradio";
|
|
426
|
+
meter: "meter";
|
|
430
427
|
navigation: "navigation";
|
|
428
|
+
none: "none";
|
|
429
|
+
note: "note";
|
|
431
430
|
option: "option";
|
|
432
431
|
paragraph: "paragraph";
|
|
433
432
|
presentation: "presentation";
|
|
@@ -445,6 +444,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
445
444
|
slider: "slider";
|
|
446
445
|
spinbutton: "spinbutton";
|
|
447
446
|
status: "status";
|
|
447
|
+
strong: "strong";
|
|
448
448
|
subscript: "subscript";
|
|
449
449
|
superscript: "superscript";
|
|
450
450
|
switch: "switch";
|
|
@@ -508,7 +508,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
508
508
|
hasText: TextMatch | null;
|
|
509
509
|
nth: number | null;
|
|
510
510
|
}, {
|
|
511
|
-
role?: "
|
|
511
|
+
role?: "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "caption" | "cell" | "checkbox" | "code" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "deletion" | "dialog" | "directory" | "document" | "emphasis" | "feed" | "figure" | "form" | "generic" | "grid" | "gridcell" | "group" | "heading" | "img" | "insertion" | "link" | "list" | "listbox" | "listitem" | "log" | "main" | "marquee" | "math" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "meter" | "navigation" | "none" | "note" | "option" | "paragraph" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "strong" | "subscript" | "superscript" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "time" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem" | undefined;
|
|
512
512
|
name?: string | {
|
|
513
513
|
regex: string;
|
|
514
514
|
flags: string;
|
|
@@ -531,12 +531,6 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
531
531
|
nth?: number | undefined;
|
|
532
532
|
}>>, z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
533
533
|
role: z.ZodOptional<z.ZodEnum<{
|
|
534
|
-
caption: "caption";
|
|
535
|
-
log: "log";
|
|
536
|
-
code: "code";
|
|
537
|
-
none: "none";
|
|
538
|
-
note: "note";
|
|
539
|
-
strong: "strong";
|
|
540
534
|
alert: "alert";
|
|
541
535
|
alertdialog: "alertdialog";
|
|
542
536
|
application: "application";
|
|
@@ -544,8 +538,10 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
544
538
|
banner: "banner";
|
|
545
539
|
blockquote: "blockquote";
|
|
546
540
|
button: "button";
|
|
541
|
+
caption: "caption";
|
|
547
542
|
cell: "cell";
|
|
548
543
|
checkbox: "checkbox";
|
|
544
|
+
code: "code";
|
|
549
545
|
columnheader: "columnheader";
|
|
550
546
|
combobox: "combobox";
|
|
551
547
|
complementary: "complementary";
|
|
@@ -570,16 +566,19 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
570
566
|
list: "list";
|
|
571
567
|
listbox: "listbox";
|
|
572
568
|
listitem: "listitem";
|
|
569
|
+
log: "log";
|
|
573
570
|
main: "main";
|
|
574
571
|
marquee: "marquee";
|
|
575
572
|
math: "math";
|
|
576
|
-
meter: "meter";
|
|
577
573
|
menu: "menu";
|
|
578
574
|
menubar: "menubar";
|
|
579
575
|
menuitem: "menuitem";
|
|
580
576
|
menuitemcheckbox: "menuitemcheckbox";
|
|
581
577
|
menuitemradio: "menuitemradio";
|
|
578
|
+
meter: "meter";
|
|
582
579
|
navigation: "navigation";
|
|
580
|
+
none: "none";
|
|
581
|
+
note: "note";
|
|
583
582
|
option: "option";
|
|
584
583
|
paragraph: "paragraph";
|
|
585
584
|
presentation: "presentation";
|
|
@@ -597,6 +596,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
597
596
|
slider: "slider";
|
|
598
597
|
spinbutton: "spinbutton";
|
|
599
598
|
status: "status";
|
|
599
|
+
strong: "strong";
|
|
600
600
|
subscript: "subscript";
|
|
601
601
|
superscript: "superscript";
|
|
602
602
|
switch: "switch";
|
|
@@ -660,7 +660,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
660
660
|
hasText: TextMatch | null;
|
|
661
661
|
nth: number | null;
|
|
662
662
|
}, {
|
|
663
|
-
role?: "
|
|
663
|
+
role?: "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "caption" | "cell" | "checkbox" | "code" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "deletion" | "dialog" | "directory" | "document" | "emphasis" | "feed" | "figure" | "form" | "generic" | "grid" | "gridcell" | "group" | "heading" | "img" | "insertion" | "link" | "list" | "listbox" | "listitem" | "log" | "main" | "marquee" | "math" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "meter" | "navigation" | "none" | "note" | "option" | "paragraph" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "strong" | "subscript" | "superscript" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "time" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem" | undefined;
|
|
664
664
|
name?: string | {
|
|
665
665
|
regex: string;
|
|
666
666
|
flags: string;
|
|
@@ -688,12 +688,6 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
688
688
|
do: z.ZodLiteral<"bring">;
|
|
689
689
|
target: z.ZodPipe<z.ZodObject<{
|
|
690
690
|
role: z.ZodOptional<z.ZodEnum<{
|
|
691
|
-
caption: "caption";
|
|
692
|
-
log: "log";
|
|
693
|
-
code: "code";
|
|
694
|
-
none: "none";
|
|
695
|
-
note: "note";
|
|
696
|
-
strong: "strong";
|
|
697
691
|
alert: "alert";
|
|
698
692
|
alertdialog: "alertdialog";
|
|
699
693
|
application: "application";
|
|
@@ -701,8 +695,10 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
701
695
|
banner: "banner";
|
|
702
696
|
blockquote: "blockquote";
|
|
703
697
|
button: "button";
|
|
698
|
+
caption: "caption";
|
|
704
699
|
cell: "cell";
|
|
705
700
|
checkbox: "checkbox";
|
|
701
|
+
code: "code";
|
|
706
702
|
columnheader: "columnheader";
|
|
707
703
|
combobox: "combobox";
|
|
708
704
|
complementary: "complementary";
|
|
@@ -727,16 +723,19 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
727
723
|
list: "list";
|
|
728
724
|
listbox: "listbox";
|
|
729
725
|
listitem: "listitem";
|
|
726
|
+
log: "log";
|
|
730
727
|
main: "main";
|
|
731
728
|
marquee: "marquee";
|
|
732
729
|
math: "math";
|
|
733
|
-
meter: "meter";
|
|
734
730
|
menu: "menu";
|
|
735
731
|
menubar: "menubar";
|
|
736
732
|
menuitem: "menuitem";
|
|
737
733
|
menuitemcheckbox: "menuitemcheckbox";
|
|
738
734
|
menuitemradio: "menuitemradio";
|
|
735
|
+
meter: "meter";
|
|
739
736
|
navigation: "navigation";
|
|
737
|
+
none: "none";
|
|
738
|
+
note: "note";
|
|
740
739
|
option: "option";
|
|
741
740
|
paragraph: "paragraph";
|
|
742
741
|
presentation: "presentation";
|
|
@@ -754,6 +753,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
754
753
|
slider: "slider";
|
|
755
754
|
spinbutton: "spinbutton";
|
|
756
755
|
status: "status";
|
|
756
|
+
strong: "strong";
|
|
757
757
|
subscript: "subscript";
|
|
758
758
|
superscript: "superscript";
|
|
759
759
|
switch: "switch";
|
|
@@ -817,7 +817,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
817
817
|
hasText: TextMatch | null;
|
|
818
818
|
nth: number | null;
|
|
819
819
|
}, {
|
|
820
|
-
role?: "
|
|
820
|
+
role?: "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "caption" | "cell" | "checkbox" | "code" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "deletion" | "dialog" | "directory" | "document" | "emphasis" | "feed" | "figure" | "form" | "generic" | "grid" | "gridcell" | "group" | "heading" | "img" | "insertion" | "link" | "list" | "listbox" | "listitem" | "log" | "main" | "marquee" | "math" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "meter" | "navigation" | "none" | "note" | "option" | "paragraph" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "strong" | "subscript" | "superscript" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "time" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem" | undefined;
|
|
821
821
|
name?: string | {
|
|
822
822
|
regex: string;
|
|
823
823
|
flags: string;
|
|
@@ -846,12 +846,6 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
846
846
|
name: z.ZodString;
|
|
847
847
|
target: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
848
848
|
role: z.ZodOptional<z.ZodEnum<{
|
|
849
|
-
caption: "caption";
|
|
850
|
-
log: "log";
|
|
851
|
-
code: "code";
|
|
852
|
-
none: "none";
|
|
853
|
-
note: "note";
|
|
854
|
-
strong: "strong";
|
|
855
849
|
alert: "alert";
|
|
856
850
|
alertdialog: "alertdialog";
|
|
857
851
|
application: "application";
|
|
@@ -859,8 +853,10 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
859
853
|
banner: "banner";
|
|
860
854
|
blockquote: "blockquote";
|
|
861
855
|
button: "button";
|
|
856
|
+
caption: "caption";
|
|
862
857
|
cell: "cell";
|
|
863
858
|
checkbox: "checkbox";
|
|
859
|
+
code: "code";
|
|
864
860
|
columnheader: "columnheader";
|
|
865
861
|
combobox: "combobox";
|
|
866
862
|
complementary: "complementary";
|
|
@@ -885,16 +881,19 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
885
881
|
list: "list";
|
|
886
882
|
listbox: "listbox";
|
|
887
883
|
listitem: "listitem";
|
|
884
|
+
log: "log";
|
|
888
885
|
main: "main";
|
|
889
886
|
marquee: "marquee";
|
|
890
887
|
math: "math";
|
|
891
|
-
meter: "meter";
|
|
892
888
|
menu: "menu";
|
|
893
889
|
menubar: "menubar";
|
|
894
890
|
menuitem: "menuitem";
|
|
895
891
|
menuitemcheckbox: "menuitemcheckbox";
|
|
896
892
|
menuitemradio: "menuitemradio";
|
|
893
|
+
meter: "meter";
|
|
897
894
|
navigation: "navigation";
|
|
895
|
+
none: "none";
|
|
896
|
+
note: "note";
|
|
898
897
|
option: "option";
|
|
899
898
|
paragraph: "paragraph";
|
|
900
899
|
presentation: "presentation";
|
|
@@ -912,6 +911,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
912
911
|
slider: "slider";
|
|
913
912
|
spinbutton: "spinbutton";
|
|
914
913
|
status: "status";
|
|
914
|
+
strong: "strong";
|
|
915
915
|
subscript: "subscript";
|
|
916
916
|
superscript: "superscript";
|
|
917
917
|
switch: "switch";
|
|
@@ -975,7 +975,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
975
975
|
hasText: TextMatch | null;
|
|
976
976
|
nth: number | null;
|
|
977
977
|
}, {
|
|
978
|
-
role?: "
|
|
978
|
+
role?: "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "caption" | "cell" | "checkbox" | "code" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "deletion" | "dialog" | "directory" | "document" | "emphasis" | "feed" | "figure" | "form" | "generic" | "grid" | "gridcell" | "group" | "heading" | "img" | "insertion" | "link" | "list" | "listbox" | "listitem" | "log" | "main" | "marquee" | "math" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "meter" | "navigation" | "none" | "note" | "option" | "paragraph" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "strong" | "subscript" | "superscript" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "time" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem" | undefined;
|
|
979
979
|
name?: string | {
|
|
980
980
|
regex: string;
|
|
981
981
|
flags: string;
|
|
@@ -998,12 +998,6 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
998
998
|
nth?: number | undefined;
|
|
999
999
|
}>>, z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
1000
1000
|
role: z.ZodOptional<z.ZodEnum<{
|
|
1001
|
-
caption: "caption";
|
|
1002
|
-
log: "log";
|
|
1003
|
-
code: "code";
|
|
1004
|
-
none: "none";
|
|
1005
|
-
note: "note";
|
|
1006
|
-
strong: "strong";
|
|
1007
1001
|
alert: "alert";
|
|
1008
1002
|
alertdialog: "alertdialog";
|
|
1009
1003
|
application: "application";
|
|
@@ -1011,8 +1005,10 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1011
1005
|
banner: "banner";
|
|
1012
1006
|
blockquote: "blockquote";
|
|
1013
1007
|
button: "button";
|
|
1008
|
+
caption: "caption";
|
|
1014
1009
|
cell: "cell";
|
|
1015
1010
|
checkbox: "checkbox";
|
|
1011
|
+
code: "code";
|
|
1016
1012
|
columnheader: "columnheader";
|
|
1017
1013
|
combobox: "combobox";
|
|
1018
1014
|
complementary: "complementary";
|
|
@@ -1037,16 +1033,19 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1037
1033
|
list: "list";
|
|
1038
1034
|
listbox: "listbox";
|
|
1039
1035
|
listitem: "listitem";
|
|
1036
|
+
log: "log";
|
|
1040
1037
|
main: "main";
|
|
1041
1038
|
marquee: "marquee";
|
|
1042
1039
|
math: "math";
|
|
1043
|
-
meter: "meter";
|
|
1044
1040
|
menu: "menu";
|
|
1045
1041
|
menubar: "menubar";
|
|
1046
1042
|
menuitem: "menuitem";
|
|
1047
1043
|
menuitemcheckbox: "menuitemcheckbox";
|
|
1048
1044
|
menuitemradio: "menuitemradio";
|
|
1045
|
+
meter: "meter";
|
|
1049
1046
|
navigation: "navigation";
|
|
1047
|
+
none: "none";
|
|
1048
|
+
note: "note";
|
|
1050
1049
|
option: "option";
|
|
1051
1050
|
paragraph: "paragraph";
|
|
1052
1051
|
presentation: "presentation";
|
|
@@ -1064,6 +1063,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1064
1063
|
slider: "slider";
|
|
1065
1064
|
spinbutton: "spinbutton";
|
|
1066
1065
|
status: "status";
|
|
1066
|
+
strong: "strong";
|
|
1067
1067
|
subscript: "subscript";
|
|
1068
1068
|
superscript: "superscript";
|
|
1069
1069
|
switch: "switch";
|
|
@@ -1127,7 +1127,7 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1127
1127
|
hasText: TextMatch | null;
|
|
1128
1128
|
nth: number | null;
|
|
1129
1129
|
}, {
|
|
1130
|
-
role?: "
|
|
1130
|
+
role?: "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "caption" | "cell" | "checkbox" | "code" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "deletion" | "dialog" | "directory" | "document" | "emphasis" | "feed" | "figure" | "form" | "generic" | "grid" | "gridcell" | "group" | "heading" | "img" | "insertion" | "link" | "list" | "listbox" | "listitem" | "log" | "main" | "marquee" | "math" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "meter" | "navigation" | "none" | "note" | "option" | "paragraph" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "strong" | "subscript" | "superscript" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "time" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem" | undefined;
|
|
1131
1131
|
name?: string | {
|
|
1132
1132
|
regex: string;
|
|
1133
1133
|
flags: string;
|
|
@@ -1155,8 +1155,8 @@ export declare const actionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1155
1155
|
}, z.core.$strict>, z.ZodObject<{
|
|
1156
1156
|
do: z.ZodLiteral<"cue">;
|
|
1157
1157
|
name: z.ZodEnum<{
|
|
1158
|
-
sparkle: "sparkle";
|
|
1159
1158
|
"persona-out": "persona-out";
|
|
1159
|
+
sparkle: "sparkle";
|
|
1160
1160
|
}>;
|
|
1161
1161
|
}, z.core.$strict>, z.ZodObject<{
|
|
1162
1162
|
do: z.ZodLiteral<"hold">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions-schema.d.ts","sourceRoot":"","sources":["../../src/config/actions-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;GAIG;AAEH,4FAA4F;AAC5F,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"actions-schema.d.ts","sourceRoot":"","sources":["../../src/config/actions-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;GAIG;AAEH,4FAA4F;AAC5F,eAAO,MAAM,UAAU,YACrB,OAAO,EACP,aAAa,EACb,aAAa,EACb,SAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BA2H3E,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,YAAY,CAAC,CAAC;AACxD,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brand.d.ts","sourceRoot":"","sources":["../../src/config/brand.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"brand.d.ts","sourceRoot":"","sources":["../../src/config/brand.ts"],"names":[],"mappings":"AAGA,OAAO,EAAwE,KAAK,WAAW,EAAqB,MAAM,aAAa,CAAC;AAGxI,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD;;;;;GAKG;AAEH,MAAM,MAAM,iBAAiB,GAAG;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,MAAM,EAAE,WAAW,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,WAAW,EAAE,CAAA;CAAE,CAAC;AAEzG,KAAK,KAAK,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC;AAgCpC,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,GAAG,iBAAiB,CAmDhF"}
|
package/dist/config/brand.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { readFileSync } from "node:fs";
|
|
2
2
|
import { resolve } from "node:path";
|
|
3
|
-
import { COLOR_ROLES, getDefaultToken, isOpaqueHexColor } from "./colors.js";
|
|
3
|
+
import { COLOR_ROLES, OPTIONAL_COLOR_ROLES, getDefaultToken, isOpaqueHexColor } from "./colors.js";
|
|
4
4
|
import { readCssColors } from "./css-colors.js";
|
|
5
5
|
import { readDesignJsonColors } from "./design-json.js";
|
|
6
6
|
function getErrorCode(error) {
|
|
@@ -61,6 +61,27 @@ export function resolveBrandColors(brand, root) {
|
|
|
61
61
|
}
|
|
62
62
|
colors[role] = value;
|
|
63
63
|
}
|
|
64
|
+
// An optional role takes its inline colour, else its token when the source has one; a token the config names and
|
|
65
|
+
// the source lacks is an issue, a default token it lacks leaves the role unset.
|
|
66
|
+
for (const role of OPTIONAL_COLOR_ROLES) {
|
|
67
|
+
const inline = brand.colors[role];
|
|
68
|
+
if (inline !== undefined) {
|
|
69
|
+
colors[role] = inline.toLowerCase();
|
|
70
|
+
continue;
|
|
71
|
+
}
|
|
72
|
+
if (reader === null)
|
|
73
|
+
continue;
|
|
74
|
+
const named = brand.tokensFrom?.roles[role];
|
|
75
|
+
const token = named ?? getDefaultToken(role);
|
|
76
|
+
const read = reader([token]);
|
|
77
|
+
const value = read.ok ? read.colors[token] : undefined;
|
|
78
|
+
if (value !== undefined)
|
|
79
|
+
colors[role] = value;
|
|
80
|
+
else if (named !== undefined) {
|
|
81
|
+
const reason = read.ok ? `no colour for "${token}"` : read.error;
|
|
82
|
+
issues.push({ path: ["brand", "tokensFrom", "roles", role], message: `brand.tokensFrom has no colour for it: ${reason}` });
|
|
83
|
+
}
|
|
84
|
+
}
|
|
64
85
|
if (colors.background !== undefined && !isOpaqueHexColor(colors.background)) {
|
|
65
86
|
issues.push({ path: ["brand", "colors", "background"], message: `"${colors.background}" must be #rrggbb: the vignette adds its own transparency` });
|
|
66
87
|
}
|
package/dist/config/brand.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brand.js","sourceRoot":"","sources":["../../src/config/brand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,gBAAgB,EAAuC,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"brand.js","sourceRoot":"","sources":["../../src/config/brand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAE,eAAe,EAAE,gBAAgB,EAAuC,MAAM,aAAa,CAAC;AACxI,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAgBxD,SAAS,YAAY,CAAC,KAAc;IAClC,OAAQ,KAA+B,CAAC,IAAI,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC;AAChE,CAAC;AAED,uFAAuF;AACvF,SAAS,UAAU,CAAC,KAAY,EAAE,IAAY;IAC5C,MAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CAAC;IAChC,IAAI,MAAM,KAAK,SAAS;QAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IAC/D,MAAM,GAAG,GAAG,MAAM,CAAC,GAAG,KAAK,SAAS,CAA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CAAC;YACjE,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,OAAO,EAAE,0CAA0C,MAAM,EAAE,EAAE,CAAC,CAAC;QAC7H,CAAC;IACH,CAAC;IACD,IAAI,MAAM,CAAC,UAAU,KAAK,SAAS,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC;QAC5E,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,YAAY,CAAC,EAAE,OAAO,EAAE,IAAI,MAAM,CAAC,UAAU,2DAA2D,EAAE,CAAC,CAAC;IACtJ,CAAC;IACD,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC;QAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;IACpD,kFAAkF;IAClF,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,MAAqB,EAAE,CAAC;AACrD,CAAC"}
|
package/dist/config/colors.d.ts
CHANGED
|
@@ -2,9 +2,37 @@
|
|
|
2
2
|
* The colour roles a film paints with. Every role resolves to a hex literal before anything is
|
|
3
3
|
* recorded, from the config, the app's stylesheet or a `design.json`.
|
|
4
4
|
*/
|
|
5
|
-
export declare const COLOR_ROLES: readonly [
|
|
5
|
+
export declare const COLOR_ROLES: readonly [
|
|
6
|
+
/** The frame behind the phone and the vignette; `#rrggbb`, because the vignette appends an alpha. */
|
|
7
|
+
"background",
|
|
8
|
+
/** Text on the background: the persona card's name, the end card. */
|
|
9
|
+
"foreground",
|
|
10
|
+
/** Secondary text: the persona card's tagline, the end card's note. */
|
|
11
|
+
"muted",
|
|
12
|
+
/** The touch ring and the end of the avatar's gradient. */
|
|
13
|
+
"accent",
|
|
14
|
+
/** The end card's link pill and the start of the avatar's gradient. */
|
|
15
|
+
"cta",
|
|
16
|
+
/** Text on `cta`. */
|
|
17
|
+
"onCta",
|
|
18
|
+
/** The caption pill. */
|
|
19
|
+
"captionBackground",
|
|
20
|
+
/** Caption words not spoken yet. */
|
|
21
|
+
"captionText",
|
|
22
|
+
/** The word being spoken. */
|
|
23
|
+
"captionHighlight"];
|
|
6
24
|
export type ColorRole = (typeof COLOR_ROLES)[number];
|
|
7
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Colour roles a brand may leave out: only a feature that asks for them needs them, so a brand without them still
|
|
27
|
+
* resolves (issue #1199).
|
|
28
|
+
*/
|
|
29
|
+
export declare const OPTIONAL_COLOR_ROLES: readonly [
|
|
30
|
+
/** The box behind the word being spoken, with `captionHighlightStyle: "box"`. */
|
|
31
|
+
"captionHighlightBox",
|
|
32
|
+
/** The text of the word being spoken on its box, with `captionHighlightStyle: "box"`. */
|
|
33
|
+
"captionHighlightText"];
|
|
34
|
+
export type OptionalColorRole = (typeof OPTIONAL_COLOR_ROLES)[number];
|
|
35
|
+
export type BrandColors = Record<ColorRole, string> & Partial<Record<OptionalColorRole, string>>;
|
|
8
36
|
export declare const COLOR_THEMES: readonly ["light", "dark"];
|
|
9
37
|
export type ColorTheme = (typeof COLOR_THEMES)[number];
|
|
10
38
|
/** Colours read from a source, keyed by the source's token name. */
|
|
@@ -19,5 +47,9 @@ export declare function isHexColor(value: string): boolean;
|
|
|
19
47
|
/** `#rrggbb` only: the background gets an alpha appended for the vignette. */
|
|
20
48
|
export declare function isOpaqueHexColor(value: string): boolean;
|
|
21
49
|
/** The token a role reads from a source when the config names none: `onCta` → `on-cta`. */
|
|
22
|
-
export declare function getDefaultToken(role: ColorRole): string;
|
|
50
|
+
export declare function getDefaultToken(role: ColorRole | OptionalColorRole): string;
|
|
51
|
+
/** The relative luminance (WCAG 2) of a hex colour, its alpha ignored. */
|
|
52
|
+
export declare function getRelativeLuminance(color: string): number;
|
|
53
|
+
/** The WCAG contrast ratio of two hex colours (alpha ignored), from 1 to 21. */
|
|
54
|
+
export declare function getContrastRatio(first: string, second: string): number;
|
|
23
55
|
//# sourceMappingURL=colors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/config/colors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/config/colors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,WAAW;AACtB,qGAAqG;AACrG,YAAY;AACZ,qEAAqE;AACrE,YAAY;AACZ,uEAAuE;AACvE,OAAO;AACP,2DAA2D;AAC3D,QAAQ;AACR,uEAAuE;AACvE,KAAK;AACL,qBAAqB;AACrB,OAAO;AACP,wBAAwB;AACxB,mBAAmB;AACnB,oCAAoC;AACpC,aAAa;AACb,6BAA6B;AAC7B,kBAAkB,CACV,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAErD;;;GAGG;AACH,eAAO,MAAM,oBAAoB;AAC/B,iFAAiF;AACjF,qBAAqB;AACrB,yFAAyF;AACzF,sBAAsB,CACd,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtE,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC,CAAC;AAEjG,eAAO,MAAM,YAAY,YAAI,OAAO,EAAE,MAAM,CAAU,CAAC;AAEvD,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvD,oEAAoE;AACpE,MAAM,MAAM,YAAY,GAAG;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA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