@clipwright/core 0.39.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/account-actors.d.ts +93 -2
- package/dist/account-actors.js +135 -20
- package/dist/account-actors.js.map +1 -1
- package/dist/actors.d.ts +24 -2
- package/dist/actors.js +30 -9
- package/dist/actors.js.map +1 -1
- package/dist/ad-pause-trim.d.ts +21 -0
- package/dist/ad-pause-trim.js +16 -0
- package/dist/ad-pause-trim.js.map +1 -0
- package/dist/aspect.d.ts +5 -0
- package/dist/aspect.js +7 -0
- package/dist/aspect.js.map +1 -1
- package/dist/assets.d.ts +2 -1
- package/dist/assets.js +10 -11
- package/dist/assets.js.map +1 -1
- package/dist/billing-terms.d.ts +8 -0
- package/dist/broll-policy.js +2 -3
- package/dist/broll-policy.js.map +1 -1
- package/dist/caption-geometry.js +10 -8
- package/dist/caption-geometry.js.map +1 -1
- package/dist/contract-dispositions.d.ts +1575 -100
- package/dist/contract-dispositions.js +100 -14
- package/dist/contract-dispositions.js.map +1 -1
- package/dist/contracts/v1/workflow-brief.d.ts +10762 -2790
- package/dist/contracts/v1/workflow-brief.js +16 -1
- package/dist/contracts/v1/workflow-brief.js.map +1 -1
- package/dist/contracts/v1/workflow-catalog.d.ts +11612 -3536
- package/dist/contracts/v1/workflow-client.d.ts +5429 -1187
- package/dist/contracts/v1/workflow-client.js +9 -5
- package/dist/contracts/v1/workflow-client.js.map +1 -1
- package/dist/contracts/v1/workflow-execution.d.ts +242 -0
- package/dist/contracts/v1/workflow-execution.js +2 -2
- package/dist/contracts/v1/workflow-execution.js.map +1 -1
- package/dist/contracts/v1/workflow-next.d.ts +225 -0
- package/dist/contracts/v1/workflow-next.js +21 -0
- package/dist/contracts/v1/workflow-next.js.map +1 -0
- package/dist/contracts/v1/workflow-plan.d.ts +18556 -6429
- package/dist/contracts/v1/workflow-plan.js +2 -1
- package/dist/contracts/v1/workflow-plan.js.map +1 -1
- package/dist/contracts/v1/workflow-primitives.d.ts +20 -1
- package/dist/contracts/v1/workflow-primitives.js +8 -2
- package/dist/contracts/v1/workflow-primitives.js.map +1 -1
- package/dist/contracts/v1/workflow-run-read.d.ts +50 -0
- package/dist/creator-profile.d.ts +1 -0
- package/dist/creator-profile.js +13 -7
- package/dist/creator-profile.js.map +1 -1
- package/dist/design.d.ts +921 -0
- package/dist/design.js +183 -0
- package/dist/design.js.map +1 -0
- package/dist/edit-candidate.d.ts +2 -0
- package/dist/edit-candidate.js +3 -0
- package/dist/edit-candidate.js.map +1 -1
- package/dist/edit-faceless.js +2 -1
- package/dist/edit-faceless.js.map +1 -1
- package/dist/endpoint-notes.js +19 -0
- package/dist/endpoint-notes.js.map +1 -1
- package/dist/endpoints.js +21 -4
- package/dist/endpoints.js.map +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.js +7 -0
- package/dist/errors.js.map +1 -1
- package/dist/face-billing.d.ts +39 -0
- package/dist/face-billing.js +11 -1
- package/dist/face-billing.js.map +1 -1
- package/dist/faceless-action-shots.d.ts +31 -0
- package/dist/faceless-action-shots.js +51 -0
- package/dist/faceless-action-shots.js.map +1 -0
- package/dist/faceless-media-record.d.ts +56 -0
- package/dist/faceless-media-record.js +6 -2
- package/dist/faceless-media-record.js.map +1 -1
- package/dist/faceless-price.d.ts +22 -0
- package/dist/faceless-price.js +27 -3
- package/dist/faceless-price.js.map +1 -1
- package/dist/faceless-public-plan.d.ts +10 -1
- package/dist/faceless-public-plan.js +4 -0
- package/dist/faceless-public-plan.js.map +1 -1
- package/dist/faceless-public.d.ts +5583 -184
- package/dist/faceless-public.js +110 -12
- package/dist/faceless-public.js.map +1 -1
- package/dist/feedback.js +1 -1
- package/dist/feedback.js.map +1 -1
- package/dist/generations-output.js +1 -1
- package/dist/generations-output.js.map +1 -1
- package/dist/generations.js +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/live-shot-kinds.d.ts +22 -0
- package/dist/live-shot-kinds.js +17 -0
- package/dist/live-shot-kinds.js.map +1 -0
- package/dist/mcp-ugc-descriptions.d.ts +32 -0
- package/dist/mcp-ugc-descriptions.js +112 -0
- package/dist/mcp-ugc-descriptions.js.map +1 -0
- package/dist/motion-styles.d.ts +54 -0
- package/dist/motion-styles.js +67 -0
- package/dist/motion-styles.js.map +1 -0
- package/dist/moves.d.ts +222 -0
- package/dist/moves.js +81 -0
- package/dist/moves.js.map +1 -0
- package/dist/music.d.ts +18 -0
- package/dist/music.js +29 -0
- package/dist/music.js.map +1 -0
- package/dist/openapi.d.ts +3 -1
- package/dist/openapi.js +32 -5
- package/dist/openapi.js.map +1 -1
- package/dist/parts-pricing.d.ts +14 -3
- package/dist/parts-pricing.js +23 -5
- package/dist/parts-pricing.js.map +1 -1
- package/dist/prices.d.ts +6 -1
- package/dist/prices.js +56 -17
- package/dist/prices.js.map +1 -1
- package/dist/reference-analysis.d.ts +134 -0
- package/dist/reference-analysis.js +45 -33
- package/dist/reference-analysis.js.map +1 -1
- package/dist/reference-display.js +3 -0
- package/dist/reference-display.js.map +1 -1
- package/dist/reference-kinds.d.ts +3 -2
- package/dist/reference-kinds.js +2 -1
- package/dist/reference-kinds.js.map +1 -1
- package/dist/reference-profile.d.ts +435 -0
- package/dist/reference-profile.js +40 -1
- package/dist/reference-profile.js.map +1 -1
- package/dist/reference-staging.d.ts +54 -2
- package/dist/reference-staging.js +28 -5
- package/dist/reference-staging.js.map +1 -1
- package/dist/reference-text-spans.d.ts +26 -0
- package/dist/reference-text-spans.js +76 -0
- package/dist/reference-text-spans.js.map +1 -0
- package/dist/resolved-timeline.d.ts +173 -0
- package/dist/resolved-timeline.js +15 -4
- package/dist/resolved-timeline.js.map +1 -1
- package/dist/run-media.d.ts +5 -0
- package/dist/run-media.js +17 -0
- package/dist/run-media.js.map +1 -0
- package/dist/run-static-warnings.js +12 -3
- package/dist/run-static-warnings.js.map +1 -1
- package/dist/runs.d.ts +49 -0
- package/dist/runs.js +5 -0
- package/dist/runs.js.map +1 -1
- package/dist/scene-graph.d.ts +547 -0
- package/dist/scene-graph.js +296 -0
- package/dist/scene-graph.js.map +1 -0
- package/dist/scene-place.d.ts +2 -0
- package/dist/scene-place.js +6 -0
- package/dist/scene-place.js.map +1 -1
- package/dist/semantic-inserts.d.ts +2 -1
- package/dist/semantic-inserts.js +4 -4
- package/dist/semantic-inserts.js.map +1 -1
- package/dist/skills.d.ts +11737 -5424
- package/dist/skills.js +239 -52
- package/dist/skills.js.map +1 -1
- package/dist/templates/chart.d.ts +35 -0
- package/dist/templates/chart.js +38 -0
- package/dist/templates/chart.js.map +1 -0
- package/dist/templates/chat-window.d.ts +58 -0
- package/dist/templates/chat-window.js +57 -0
- package/dist/templates/chat-window.js.map +1 -0
- package/dist/templates/compare.d.ts +10 -2
- package/dist/templates/compare.js +13 -9
- package/dist/templates/compare.js.map +1 -1
- package/dist/templates/hand-title.d.ts +32 -0
- package/dist/templates/hand-title.js +47 -0
- package/dist/templates/hand-title.js.map +1 -0
- package/dist/templates/index.d.ts +32 -6
- package/dist/templates/index.js +91 -47
- package/dist/templates/index.js.map +1 -1
- package/dist/templates/lower-third.d.ts +11 -0
- package/dist/templates/lower-third.js +8 -3
- package/dist/templates/lower-third.js.map +1 -1
- package/dist/templates/notification.d.ts +24 -2
- package/dist/templates/notification.js +21 -12
- package/dist/templates/notification.js.map +1 -1
- package/dist/templates/phone-screen.d.ts +37 -0
- package/dist/templates/phone-screen.js +41 -0
- package/dist/templates/phone-screen.js.map +1 -0
- package/dist/templates/pointer-chips.d.ts +40 -0
- package/dist/templates/pointer-chips.js +53 -0
- package/dist/templates/pointer-chips.js.map +1 -0
- package/dist/templates/quote.d.ts +2 -2
- package/dist/templates/quote.js +5 -5
- package/dist/templates/quote.js.map +1 -1
- package/dist/templates/race.d.ts +32 -0
- package/dist/templates/race.js +43 -0
- package/dist/templates/race.js.map +1 -0
- package/dist/templates/size.d.ts +20 -0
- package/dist/templates/size.js +14 -0
- package/dist/templates/size.js.map +1 -1
- package/dist/templates/slot.js +1 -1
- package/dist/templates/slot.js.map +1 -1
- package/dist/templates/sounds.d.ts +221 -4
- package/dist/templates/sounds.js +40 -10
- package/dist/templates/sounds.js.map +1 -1
- package/dist/templates/terminal.d.ts +46 -0
- package/dist/templates/terminal.js +46 -0
- package/dist/templates/terminal.js.map +1 -0
- package/dist/templates/video-grid.d.ts +52 -0
- package/dist/templates/video-grid.js +50 -0
- package/dist/templates/video-grid.js.map +1 -0
- package/dist/templates/word-fill.d.ts +22 -0
- package/dist/templates/word-fill.js +29 -0
- package/dist/templates/word-fill.js.map +1 -0
- package/dist/templates/word-title.d.ts +24 -0
- package/dist/templates/word-title.js +33 -0
- package/dist/templates/word-title.js.map +1 -0
- package/dist/trend-search.d.ts +336 -0
- package/dist/trend-search.js +307 -0
- package/dist/trend-search.js.map +1 -0
- package/dist/ugc-framing.d.ts +2 -1
- package/dist/ugc-framing.js +3 -2
- package/dist/ugc-framing.js.map +1 -1
- package/dist/ugc-layers.d.ts +36 -4
- package/dist/ugc-layers.js +26 -5
- package/dist/ugc-layers.js.map +1 -1
- package/dist/ugc-scenes.d.ts +40 -0
- package/dist/ugc-scenes.js +35 -0
- package/dist/ugc-scenes.js.map +1 -0
- package/dist/uploads.d.ts +1 -1
- package/dist/uploads.js +9 -9
- package/dist/uploads.js.map +1 -1
- package/dist/voice-admission.d.ts +4767 -836
- package/dist/voice-catalog-data.d.ts +1 -0
- package/dist/voice-catalog.d.ts +2 -0
- package/dist/voice-catalog.generated.json +286 -0
- package/dist/voice-catalog.js +1 -0
- package/dist/voice-catalog.js.map +1 -1
- package/dist/voice-pace.generated.json +65 -0
- package/dist/voices.d.ts +1 -0
- package/dist/voices.js +2 -1
- package/dist/voices.js.map +1 -1
- package/dist/workflows/index.d.ts +2 -0
- package/dist/workflows/index.js +1 -0
- package/dist/workflows/index.js.map +1 -1
- package/dist/workflows/methods/faceless-explainer.d.ts +2275 -188
- package/dist/workflows/methods/kinetic-launch.d.ts +2275 -188
- package/dist/workflows/methods/product-image-story.d.ts +2275 -188
- package/dist/workflows/methods/reference-remake.d.ts +2275 -188
- package/dist/workflows/methods/shared.d.ts +2275 -188
- package/dist/workflows/methods/ugc-faq-answer.d.ts +2275 -188
- package/dist/workflows/methods/ugc-product-intro.d.ts +2275 -188
- package/dist/workflows/methods/website-proof-demo.d.ts +2275 -188
- package/dist/workflows/motion-director.d.ts +59 -0
- package/dist/workflows/motion-director.js +118 -0
- package/dist/workflows/motion-director.js.map +1 -0
- package/dist/workflows/reference-remake.d.ts +1172 -2
- package/dist/workflows/reference-remake.js +938 -114
- package/dist/workflows/reference-remake.js.map +1 -1
- package/dist/workflows/remake-chooser.d.ts +16 -0
- package/dist/workflows/remake-chooser.js +10 -0
- package/dist/workflows/remake-chooser.js.map +1 -0
- package/dist/workflows/remake-motion.d.ts +100 -0
- package/dist/workflows/remake-motion.js +237 -0
- package/dist/workflows/remake-motion.js.map +1 -0
- package/dist/workflows/validate.js +1 -1
- package/dist/workflows/validate.js.map +1 -1
- package/package.json +5 -1
|
@@ -36,12 +36,12 @@ export declare const TEMPLATE_SOUNDS: {
|
|
|
36
36
|
readonly whoosh: {
|
|
37
37
|
readonly default: "whoosh";
|
|
38
38
|
readonly names: readonly ["whoosh", "whip", "paper_swipe", "sweep", "slide_quick"];
|
|
39
|
-
readonly plays: "a full-frame template's wipe or zoom, in and out, and a compare's reveal";
|
|
39
|
+
readonly plays: "a full-frame template's wipe or zoom, in and out, and a compare's reveal; on make_faceless, each light leak cut, its peak on the cut";
|
|
40
40
|
};
|
|
41
41
|
readonly flash: {
|
|
42
42
|
readonly default: "shutter";
|
|
43
43
|
readonly names: readonly ["shutter", "glitch", "swish"];
|
|
44
|
-
readonly plays: "a full-frame template's flash, on each of its cuts";
|
|
44
|
+
readonly plays: "a full-frame template's flash, on each of its cuts; on make_faceless, each flash cut, its peak on the cut";
|
|
45
45
|
};
|
|
46
46
|
readonly pop: {
|
|
47
47
|
readonly default: "plop";
|
|
@@ -59,8 +59,8 @@ export declare const TEMPLATE_SOUNDS: {
|
|
|
59
59
|
readonly plays: "a stat with a currency sign in its prefix or suffix counts up";
|
|
60
60
|
};
|
|
61
61
|
readonly edit: {
|
|
62
|
-
readonly default: "
|
|
63
|
-
readonly names: readonly ["swell_hit", "whoosh_deep", "whoosh_low", "boom_low", "sub_drop", "riser_boom", "riser_hit"];
|
|
62
|
+
readonly default: "air_whoosh";
|
|
63
|
+
readonly names: readonly ["air_whoosh", "swing", "swipe", "swell_hit", "whoosh_deep", "whoosh_low", "boom_low", "sub_drop", "riser_boom", "riser_hit"];
|
|
64
64
|
readonly plays: string;
|
|
65
65
|
};
|
|
66
66
|
};
|
|
@@ -72,6 +72,7 @@ export type TemplateSoundMap = {
|
|
|
72
72
|
export declare const DEFAULT_TEMPLATE_SOUNDS: TemplateSoundMap;
|
|
73
73
|
export declare const templateSounds: z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
|
|
74
74
|
click: z.ZodOptional<z.ZodEnum<{
|
|
75
|
+
air_whoosh: "air_whoosh";
|
|
75
76
|
answer_confirm: "answer_confirm";
|
|
76
77
|
answer_open: "answer_open";
|
|
77
78
|
answer_pop: "answer_pop";
|
|
@@ -108,6 +109,8 @@ export declare const templateSounds: z.ZodUnion<readonly [z.ZodLiteral<false>, z
|
|
|
108
109
|
sub_drop: "sub_drop";
|
|
109
110
|
sweep: "sweep";
|
|
110
111
|
swell_hit: "swell_hit";
|
|
112
|
+
swing: "swing";
|
|
113
|
+
swipe: "swipe";
|
|
111
114
|
swish: "swish";
|
|
112
115
|
switch_flip: "switch_flip";
|
|
113
116
|
switch_heavy: "switch_heavy";
|
|
@@ -120,6 +123,7 @@ export declare const templateSounds: z.ZodUnion<readonly [z.ZodLiteral<false>, z
|
|
|
120
123
|
whoosh_low: "whoosh_low";
|
|
121
124
|
}>>;
|
|
122
125
|
toggle: z.ZodOptional<z.ZodEnum<{
|
|
126
|
+
air_whoosh: "air_whoosh";
|
|
123
127
|
answer_confirm: "answer_confirm";
|
|
124
128
|
answer_open: "answer_open";
|
|
125
129
|
answer_pop: "answer_pop";
|
|
@@ -156,6 +160,8 @@ export declare const templateSounds: z.ZodUnion<readonly [z.ZodLiteral<false>, z
|
|
|
156
160
|
sub_drop: "sub_drop";
|
|
157
161
|
sweep: "sweep";
|
|
158
162
|
swell_hit: "swell_hit";
|
|
163
|
+
swing: "swing";
|
|
164
|
+
swipe: "swipe";
|
|
159
165
|
swish: "swish";
|
|
160
166
|
switch_flip: "switch_flip";
|
|
161
167
|
switch_heavy: "switch_heavy";
|
|
@@ -168,6 +174,7 @@ export declare const templateSounds: z.ZodUnion<readonly [z.ZodLiteral<false>, z
|
|
|
168
174
|
whoosh_low: "whoosh_low";
|
|
169
175
|
}>>;
|
|
170
176
|
ring: z.ZodOptional<z.ZodEnum<{
|
|
177
|
+
air_whoosh: "air_whoosh";
|
|
171
178
|
answer_confirm: "answer_confirm";
|
|
172
179
|
answer_open: "answer_open";
|
|
173
180
|
answer_pop: "answer_pop";
|
|
@@ -204,6 +211,8 @@ export declare const templateSounds: z.ZodUnion<readonly [z.ZodLiteral<false>, z
|
|
|
204
211
|
sub_drop: "sub_drop";
|
|
205
212
|
sweep: "sweep";
|
|
206
213
|
swell_hit: "swell_hit";
|
|
214
|
+
swing: "swing";
|
|
215
|
+
swipe: "swipe";
|
|
207
216
|
swish: "swish";
|
|
208
217
|
switch_flip: "switch_flip";
|
|
209
218
|
switch_heavy: "switch_heavy";
|
|
@@ -216,6 +225,7 @@ export declare const templateSounds: z.ZodUnion<readonly [z.ZodLiteral<false>, z
|
|
|
216
225
|
whoosh_low: "whoosh_low";
|
|
217
226
|
}>>;
|
|
218
227
|
answer: z.ZodOptional<z.ZodEnum<{
|
|
228
|
+
air_whoosh: "air_whoosh";
|
|
219
229
|
answer_confirm: "answer_confirm";
|
|
220
230
|
answer_open: "answer_open";
|
|
221
231
|
answer_pop: "answer_pop";
|
|
@@ -252,6 +262,8 @@ export declare const templateSounds: z.ZodUnion<readonly [z.ZodLiteral<false>, z
|
|
|
252
262
|
sub_drop: "sub_drop";
|
|
253
263
|
sweep: "sweep";
|
|
254
264
|
swell_hit: "swell_hit";
|
|
265
|
+
swing: "swing";
|
|
266
|
+
swipe: "swipe";
|
|
255
267
|
swish: "swish";
|
|
256
268
|
switch_flip: "switch_flip";
|
|
257
269
|
switch_heavy: "switch_heavy";
|
|
@@ -264,6 +276,7 @@ export declare const templateSounds: z.ZodUnion<readonly [z.ZodLiteral<false>, z
|
|
|
264
276
|
whoosh_low: "whoosh_low";
|
|
265
277
|
}>>;
|
|
266
278
|
notify: z.ZodOptional<z.ZodEnum<{
|
|
279
|
+
air_whoosh: "air_whoosh";
|
|
267
280
|
answer_confirm: "answer_confirm";
|
|
268
281
|
answer_open: "answer_open";
|
|
269
282
|
answer_pop: "answer_pop";
|
|
@@ -300,6 +313,8 @@ export declare const templateSounds: z.ZodUnion<readonly [z.ZodLiteral<false>, z
|
|
|
300
313
|
sub_drop: "sub_drop";
|
|
301
314
|
sweep: "sweep";
|
|
302
315
|
swell_hit: "swell_hit";
|
|
316
|
+
swing: "swing";
|
|
317
|
+
swipe: "swipe";
|
|
303
318
|
swish: "swish";
|
|
304
319
|
switch_flip: "switch_flip";
|
|
305
320
|
switch_heavy: "switch_heavy";
|
|
@@ -312,6 +327,7 @@ export declare const templateSounds: z.ZodUnion<readonly [z.ZodLiteral<false>, z
|
|
|
312
327
|
whoosh_low: "whoosh_low";
|
|
313
328
|
}>>;
|
|
314
329
|
step: z.ZodOptional<z.ZodEnum<{
|
|
330
|
+
air_whoosh: "air_whoosh";
|
|
315
331
|
answer_confirm: "answer_confirm";
|
|
316
332
|
answer_open: "answer_open";
|
|
317
333
|
answer_pop: "answer_pop";
|
|
@@ -348,6 +364,8 @@ export declare const templateSounds: z.ZodUnion<readonly [z.ZodLiteral<false>, z
|
|
|
348
364
|
sub_drop: "sub_drop";
|
|
349
365
|
sweep: "sweep";
|
|
350
366
|
swell_hit: "swell_hit";
|
|
367
|
+
swing: "swing";
|
|
368
|
+
swipe: "swipe";
|
|
351
369
|
swish: "swish";
|
|
352
370
|
switch_flip: "switch_flip";
|
|
353
371
|
switch_heavy: "switch_heavy";
|
|
@@ -360,6 +378,7 @@ export declare const templateSounds: z.ZodUnion<readonly [z.ZodLiteral<false>, z
|
|
|
360
378
|
whoosh_low: "whoosh_low";
|
|
361
379
|
}>>;
|
|
362
380
|
whoosh: z.ZodOptional<z.ZodEnum<{
|
|
381
|
+
air_whoosh: "air_whoosh";
|
|
363
382
|
answer_confirm: "answer_confirm";
|
|
364
383
|
answer_open: "answer_open";
|
|
365
384
|
answer_pop: "answer_pop";
|
|
@@ -396,6 +415,8 @@ export declare const templateSounds: z.ZodUnion<readonly [z.ZodLiteral<false>, z
|
|
|
396
415
|
sub_drop: "sub_drop";
|
|
397
416
|
sweep: "sweep";
|
|
398
417
|
swell_hit: "swell_hit";
|
|
418
|
+
swing: "swing";
|
|
419
|
+
swipe: "swipe";
|
|
399
420
|
swish: "swish";
|
|
400
421
|
switch_flip: "switch_flip";
|
|
401
422
|
switch_heavy: "switch_heavy";
|
|
@@ -408,6 +429,7 @@ export declare const templateSounds: z.ZodUnion<readonly [z.ZodLiteral<false>, z
|
|
|
408
429
|
whoosh_low: "whoosh_low";
|
|
409
430
|
}>>;
|
|
410
431
|
flash: z.ZodOptional<z.ZodEnum<{
|
|
432
|
+
air_whoosh: "air_whoosh";
|
|
411
433
|
answer_confirm: "answer_confirm";
|
|
412
434
|
answer_open: "answer_open";
|
|
413
435
|
answer_pop: "answer_pop";
|
|
@@ -444,6 +466,8 @@ export declare const templateSounds: z.ZodUnion<readonly [z.ZodLiteral<false>, z
|
|
|
444
466
|
sub_drop: "sub_drop";
|
|
445
467
|
sweep: "sweep";
|
|
446
468
|
swell_hit: "swell_hit";
|
|
469
|
+
swing: "swing";
|
|
470
|
+
swipe: "swipe";
|
|
447
471
|
swish: "swish";
|
|
448
472
|
switch_flip: "switch_flip";
|
|
449
473
|
switch_heavy: "switch_heavy";
|
|
@@ -456,6 +480,7 @@ export declare const templateSounds: z.ZodUnion<readonly [z.ZodLiteral<false>, z
|
|
|
456
480
|
whoosh_low: "whoosh_low";
|
|
457
481
|
}>>;
|
|
458
482
|
pop: z.ZodOptional<z.ZodEnum<{
|
|
483
|
+
air_whoosh: "air_whoosh";
|
|
459
484
|
answer_confirm: "answer_confirm";
|
|
460
485
|
answer_open: "answer_open";
|
|
461
486
|
answer_pop: "answer_pop";
|
|
@@ -492,6 +517,8 @@ export declare const templateSounds: z.ZodUnion<readonly [z.ZodLiteral<false>, z
|
|
|
492
517
|
sub_drop: "sub_drop";
|
|
493
518
|
sweep: "sweep";
|
|
494
519
|
swell_hit: "swell_hit";
|
|
520
|
+
swing: "swing";
|
|
521
|
+
swipe: "swipe";
|
|
495
522
|
swish: "swish";
|
|
496
523
|
switch_flip: "switch_flip";
|
|
497
524
|
switch_heavy: "switch_heavy";
|
|
@@ -504,6 +531,7 @@ export declare const templateSounds: z.ZodUnion<readonly [z.ZodLiteral<false>, z
|
|
|
504
531
|
whoosh_low: "whoosh_low";
|
|
505
532
|
}>>;
|
|
506
533
|
hangup: z.ZodOptional<z.ZodEnum<{
|
|
534
|
+
air_whoosh: "air_whoosh";
|
|
507
535
|
answer_confirm: "answer_confirm";
|
|
508
536
|
answer_open: "answer_open";
|
|
509
537
|
answer_pop: "answer_pop";
|
|
@@ -540,6 +568,8 @@ export declare const templateSounds: z.ZodUnion<readonly [z.ZodLiteral<false>, z
|
|
|
540
568
|
sub_drop: "sub_drop";
|
|
541
569
|
sweep: "sweep";
|
|
542
570
|
swell_hit: "swell_hit";
|
|
571
|
+
swing: "swing";
|
|
572
|
+
swipe: "swipe";
|
|
543
573
|
swish: "swish";
|
|
544
574
|
switch_flip: "switch_flip";
|
|
545
575
|
switch_heavy: "switch_heavy";
|
|
@@ -552,6 +582,7 @@ export declare const templateSounds: z.ZodUnion<readonly [z.ZodLiteral<false>, z
|
|
|
552
582
|
whoosh_low: "whoosh_low";
|
|
553
583
|
}>>;
|
|
554
584
|
money: z.ZodOptional<z.ZodEnum<{
|
|
585
|
+
air_whoosh: "air_whoosh";
|
|
555
586
|
answer_confirm: "answer_confirm";
|
|
556
587
|
answer_open: "answer_open";
|
|
557
588
|
answer_pop: "answer_pop";
|
|
@@ -588,6 +619,8 @@ export declare const templateSounds: z.ZodUnion<readonly [z.ZodLiteral<false>, z
|
|
|
588
619
|
sub_drop: "sub_drop";
|
|
589
620
|
sweep: "sweep";
|
|
590
621
|
swell_hit: "swell_hit";
|
|
622
|
+
swing: "swing";
|
|
623
|
+
swipe: "swipe";
|
|
591
624
|
swish: "swish";
|
|
592
625
|
switch_flip: "switch_flip";
|
|
593
626
|
switch_heavy: "switch_heavy";
|
|
@@ -600,6 +633,7 @@ export declare const templateSounds: z.ZodUnion<readonly [z.ZodLiteral<false>, z
|
|
|
600
633
|
whoosh_low: "whoosh_low";
|
|
601
634
|
}>>;
|
|
602
635
|
edit: z.ZodOptional<z.ZodEnum<{
|
|
636
|
+
air_whoosh: "air_whoosh";
|
|
603
637
|
answer_confirm: "answer_confirm";
|
|
604
638
|
answer_open: "answer_open";
|
|
605
639
|
answer_pop: "answer_pop";
|
|
@@ -636,6 +670,8 @@ export declare const templateSounds: z.ZodUnion<readonly [z.ZodLiteral<false>, z
|
|
|
636
670
|
sub_drop: "sub_drop";
|
|
637
671
|
sweep: "sweep";
|
|
638
672
|
swell_hit: "swell_hit";
|
|
673
|
+
swing: "swing";
|
|
674
|
+
swipe: "swipe";
|
|
639
675
|
swish: "swish";
|
|
640
676
|
switch_flip: "switch_flip";
|
|
641
677
|
switch_heavy: "switch_heavy";
|
|
@@ -660,10 +696,191 @@ export declare function editSoundRefusals(input: {
|
|
|
660
696
|
layout_windows?: unknown;
|
|
661
697
|
framing?: unknown;
|
|
662
698
|
template_sounds?: unknown;
|
|
699
|
+
fullTemplates?: boolean | undefined;
|
|
663
700
|
}): {
|
|
664
701
|
path: (string | number)[];
|
|
665
702
|
message: string;
|
|
666
703
|
}[];
|
|
704
|
+
/** The beats a faceless video plays (#1067): a flash cut's, a light leak cut's and, with edit_sounds, the scene changes'. */
|
|
705
|
+
export declare const FACELESS_SOUND_BEATS: readonly ["flash", "whoosh", "edit"];
|
|
706
|
+
/** The beat each faceless cut look sounds. */
|
|
707
|
+
export declare const FACELESS_LOOK_SOUND: {
|
|
708
|
+
readonly flash: "flash";
|
|
709
|
+
readonly light_leak: "whoosh";
|
|
710
|
+
};
|
|
711
|
+
export declare const facelessTemplateSounds: z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
|
|
712
|
+
flash: z.ZodOptional<z.ZodEnum<{
|
|
713
|
+
air_whoosh: "air_whoosh";
|
|
714
|
+
answer_confirm: "answer_confirm";
|
|
715
|
+
answer_open: "answer_open";
|
|
716
|
+
answer_pop: "answer_pop";
|
|
717
|
+
answer_select: "answer_select";
|
|
718
|
+
bong: "bong";
|
|
719
|
+
boom_low: "boom_low";
|
|
720
|
+
cash_register: "cash_register";
|
|
721
|
+
chime: "chime";
|
|
722
|
+
click_crisp: "click_crisp";
|
|
723
|
+
click_light: "click_light";
|
|
724
|
+
click_mouse: "click_mouse";
|
|
725
|
+
click_soft: "click_soft";
|
|
726
|
+
coins: "coins";
|
|
727
|
+
drop: "drop";
|
|
728
|
+
drop_high: "drop_high";
|
|
729
|
+
glass_ping: "glass_ping";
|
|
730
|
+
glass_soft: "glass_soft";
|
|
731
|
+
glitch: "glitch";
|
|
732
|
+
paper_swipe: "paper_swipe";
|
|
733
|
+
phone: "phone";
|
|
734
|
+
pickup: "pickup";
|
|
735
|
+
plop: "plop";
|
|
736
|
+
pluck: "pluck";
|
|
737
|
+
pluck_bright: "pluck_bright";
|
|
738
|
+
question_ping: "question_ping";
|
|
739
|
+
ring_classic: "ring_classic";
|
|
740
|
+
ring_digital: "ring_digital";
|
|
741
|
+
ring_double: "ring_double";
|
|
742
|
+
ring_marimba: "ring_marimba";
|
|
743
|
+
riser_boom: "riser_boom";
|
|
744
|
+
riser_hit: "riser_hit";
|
|
745
|
+
shutter: "shutter";
|
|
746
|
+
slide_quick: "slide_quick";
|
|
747
|
+
sub_drop: "sub_drop";
|
|
748
|
+
sweep: "sweep";
|
|
749
|
+
swell_hit: "swell_hit";
|
|
750
|
+
swing: "swing";
|
|
751
|
+
swipe: "swipe";
|
|
752
|
+
swish: "swish";
|
|
753
|
+
switch_flip: "switch_flip";
|
|
754
|
+
switch_heavy: "switch_heavy";
|
|
755
|
+
switch_light: "switch_light";
|
|
756
|
+
tick: "tick";
|
|
757
|
+
toggle_snap: "toggle_snap";
|
|
758
|
+
whip: "whip";
|
|
759
|
+
whoosh: "whoosh";
|
|
760
|
+
whoosh_deep: "whoosh_deep";
|
|
761
|
+
whoosh_low: "whoosh_low";
|
|
762
|
+
}>>;
|
|
763
|
+
whoosh: z.ZodOptional<z.ZodEnum<{
|
|
764
|
+
air_whoosh: "air_whoosh";
|
|
765
|
+
answer_confirm: "answer_confirm";
|
|
766
|
+
answer_open: "answer_open";
|
|
767
|
+
answer_pop: "answer_pop";
|
|
768
|
+
answer_select: "answer_select";
|
|
769
|
+
bong: "bong";
|
|
770
|
+
boom_low: "boom_low";
|
|
771
|
+
cash_register: "cash_register";
|
|
772
|
+
chime: "chime";
|
|
773
|
+
click_crisp: "click_crisp";
|
|
774
|
+
click_light: "click_light";
|
|
775
|
+
click_mouse: "click_mouse";
|
|
776
|
+
click_soft: "click_soft";
|
|
777
|
+
coins: "coins";
|
|
778
|
+
drop: "drop";
|
|
779
|
+
drop_high: "drop_high";
|
|
780
|
+
glass_ping: "glass_ping";
|
|
781
|
+
glass_soft: "glass_soft";
|
|
782
|
+
glitch: "glitch";
|
|
783
|
+
paper_swipe: "paper_swipe";
|
|
784
|
+
phone: "phone";
|
|
785
|
+
pickup: "pickup";
|
|
786
|
+
plop: "plop";
|
|
787
|
+
pluck: "pluck";
|
|
788
|
+
pluck_bright: "pluck_bright";
|
|
789
|
+
question_ping: "question_ping";
|
|
790
|
+
ring_classic: "ring_classic";
|
|
791
|
+
ring_digital: "ring_digital";
|
|
792
|
+
ring_double: "ring_double";
|
|
793
|
+
ring_marimba: "ring_marimba";
|
|
794
|
+
riser_boom: "riser_boom";
|
|
795
|
+
riser_hit: "riser_hit";
|
|
796
|
+
shutter: "shutter";
|
|
797
|
+
slide_quick: "slide_quick";
|
|
798
|
+
sub_drop: "sub_drop";
|
|
799
|
+
sweep: "sweep";
|
|
800
|
+
swell_hit: "swell_hit";
|
|
801
|
+
swing: "swing";
|
|
802
|
+
swipe: "swipe";
|
|
803
|
+
swish: "swish";
|
|
804
|
+
switch_flip: "switch_flip";
|
|
805
|
+
switch_heavy: "switch_heavy";
|
|
806
|
+
switch_light: "switch_light";
|
|
807
|
+
tick: "tick";
|
|
808
|
+
toggle_snap: "toggle_snap";
|
|
809
|
+
whip: "whip";
|
|
810
|
+
whoosh: "whoosh";
|
|
811
|
+
whoosh_deep: "whoosh_deep";
|
|
812
|
+
whoosh_low: "whoosh_low";
|
|
813
|
+
}>>;
|
|
814
|
+
edit: z.ZodOptional<z.ZodEnum<{
|
|
815
|
+
air_whoosh: "air_whoosh";
|
|
816
|
+
answer_confirm: "answer_confirm";
|
|
817
|
+
answer_open: "answer_open";
|
|
818
|
+
answer_pop: "answer_pop";
|
|
819
|
+
answer_select: "answer_select";
|
|
820
|
+
bong: "bong";
|
|
821
|
+
boom_low: "boom_low";
|
|
822
|
+
cash_register: "cash_register";
|
|
823
|
+
chime: "chime";
|
|
824
|
+
click_crisp: "click_crisp";
|
|
825
|
+
click_light: "click_light";
|
|
826
|
+
click_mouse: "click_mouse";
|
|
827
|
+
click_soft: "click_soft";
|
|
828
|
+
coins: "coins";
|
|
829
|
+
drop: "drop";
|
|
830
|
+
drop_high: "drop_high";
|
|
831
|
+
glass_ping: "glass_ping";
|
|
832
|
+
glass_soft: "glass_soft";
|
|
833
|
+
glitch: "glitch";
|
|
834
|
+
paper_swipe: "paper_swipe";
|
|
835
|
+
phone: "phone";
|
|
836
|
+
pickup: "pickup";
|
|
837
|
+
plop: "plop";
|
|
838
|
+
pluck: "pluck";
|
|
839
|
+
pluck_bright: "pluck_bright";
|
|
840
|
+
question_ping: "question_ping";
|
|
841
|
+
ring_classic: "ring_classic";
|
|
842
|
+
ring_digital: "ring_digital";
|
|
843
|
+
ring_double: "ring_double";
|
|
844
|
+
ring_marimba: "ring_marimba";
|
|
845
|
+
riser_boom: "riser_boom";
|
|
846
|
+
riser_hit: "riser_hit";
|
|
847
|
+
shutter: "shutter";
|
|
848
|
+
slide_quick: "slide_quick";
|
|
849
|
+
sub_drop: "sub_drop";
|
|
850
|
+
sweep: "sweep";
|
|
851
|
+
swell_hit: "swell_hit";
|
|
852
|
+
swing: "swing";
|
|
853
|
+
swipe: "swipe";
|
|
854
|
+
swish: "swish";
|
|
855
|
+
switch_flip: "switch_flip";
|
|
856
|
+
switch_heavy: "switch_heavy";
|
|
857
|
+
switch_light: "switch_light";
|
|
858
|
+
tick: "tick";
|
|
859
|
+
toggle_snap: "toggle_snap";
|
|
860
|
+
whip: "whip";
|
|
861
|
+
whoosh: "whoosh";
|
|
862
|
+
whoosh_deep: "whoosh_deep";
|
|
863
|
+
whoosh_low: "whoosh_low";
|
|
864
|
+
}>>;
|
|
865
|
+
}, z.core.$strict>]>;
|
|
866
|
+
export type FacelessTemplateSounds = z.infer<typeof facelessTemplateSounds>;
|
|
867
|
+
export type FacelessSoundMap = {
|
|
868
|
+
[B in (typeof FACELESS_SOUND_BEATS)[number]]?: TemplateSoundMap[B];
|
|
869
|
+
};
|
|
870
|
+
/** Refusals of faceless sound fields that would otherwise be ignored: a beat whose look or switch the run lacks, both on and muted. */
|
|
871
|
+
export declare function facelessSoundRefusals(input: {
|
|
872
|
+
edit_sounds?: boolean | undefined;
|
|
873
|
+
template_sounds?: unknown;
|
|
874
|
+
look: string | undefined;
|
|
875
|
+
}): {
|
|
876
|
+
path: (string | number)[];
|
|
877
|
+
message: string;
|
|
878
|
+
}[];
|
|
879
|
+
/** A faceless run's sounds by name: both looks' beats, so a revision's new look sounds too, and edit with edit_sounds; none for `false`. */
|
|
880
|
+
export declare function facelessSoundMap(input: {
|
|
881
|
+
edit_sounds?: boolean | undefined;
|
|
882
|
+
template_sounds?: FacelessTemplateSounds | undefined;
|
|
883
|
+
}): FacelessSoundMap;
|
|
667
884
|
/** A run's sounds: the defaults with its overrides, or none for `false` (S3c C2, C4). */
|
|
668
885
|
export declare function templateSoundMap(sounds: TemplateSounds | undefined): TemplateSoundMap | undefined;
|
|
669
886
|
/** The beats one template plays: its kind's, and on a full frame its wipe or zoom (whoosh) or flash; money only with a currency sign around a stat. */
|
package/dist/templates/sounds.js
CHANGED
|
@@ -14,14 +14,16 @@ export const TEMPLATE_SOUNDS = {
|
|
|
14
14
|
notify: { default: "chime", names: ["chime", "glass_ping", "glass_soft", "bong", "question_ping"], plays: "a notification drops in" },
|
|
15
15
|
step: { default: "drop", names: ["drop", "drop_high", "tick", "pluck", "pluck_bright"], plays: "a progress step fills, and each rating star" },
|
|
16
16
|
whoosh: { default: "whoosh", names: ["whoosh", "whip", "paper_swipe", "sweep", "slide_quick"],
|
|
17
|
-
plays: "a full-frame template's wipe or zoom, in and out, and a compare's reveal" },
|
|
18
|
-
flash: { default: "shutter", names: ["shutter", "glitch", "swish"],
|
|
17
|
+
plays: "a full-frame template's wipe or zoom, in and out, and a compare's reveal; on make_faceless, each light leak cut, its peak on the cut" },
|
|
18
|
+
flash: { default: "shutter", names: ["shutter", "glitch", "swish"],
|
|
19
|
+
plays: "a full-frame template's flash, on each of its cuts; on make_faceless, each flash cut, its peak on the cut" },
|
|
19
20
|
pop: { default: "plop", names: ["plop"], plays: "a tag or a callout pops in" },
|
|
20
21
|
hangup: { default: "phone", names: ["phone"], plays: "an answered phone_call hangs up, just before it leaves" },
|
|
21
22
|
money: { default: "cash_register", names: ["cash_register", "coins"], plays: "a stat with a currency sign in its prefix or suffix counts up" },
|
|
22
|
-
edit: { default: "
|
|
23
|
+
edit: { default: "air_whoosh", names: ["air_whoosh", "swing", "swipe", "swell_hit", "whoosh_deep", "whoosh_low", "boom_low", "sub_drop", "riser_boom",
|
|
24
|
+
"riser_hit"],
|
|
23
25
|
plays: "with edit_sounds, each cut: to or from an insert, a full-frame template's cut without its own whoosh or flash, a layout window's in and out; " +
|
|
24
|
-
"its peak lands on the cut" },
|
|
26
|
+
"on make_faceless, every scene change; its peak lands on the cut" },
|
|
25
27
|
};
|
|
26
28
|
/** The beats each kind plays over the presenter; a full-frame template adds its transition's beat (see `templateSoundBeats`). */
|
|
27
29
|
export const TEMPLATE_KIND_SOUNDS = {
|
|
@@ -37,10 +39,10 @@ const overrides = z.strictObject({ click: name("click"), toggle: name("toggle"),
|
|
|
37
39
|
error: issue => (issue.code === "unrecognized_keys" ? `template_sounds has no beat ${issue.keys.join(", ")}: the beats are ${TEMPLATE_SOUND_BEATS.join(", ")}` : undefined),
|
|
38
40
|
});
|
|
39
41
|
/** Why a value cannot be the field, with the beat's path; a union names no branch on its own, so the message does. */
|
|
40
|
-
function soundsRefusal(input) {
|
|
42
|
+
function soundsRefusal(input, schema = overrides) {
|
|
41
43
|
if (input === null || typeof input !== "object" || Array.isArray(input))
|
|
42
44
|
return "template_sounds is false (no sounds) or { beat: name }";
|
|
43
|
-
const issue =
|
|
45
|
+
const issue = schema.safeParse(input).error?.issues[0];
|
|
44
46
|
// zod 4.6 may surface the unknown-beat issue past the union, so that message carries its own path.
|
|
45
47
|
if (issue?.code === "unrecognized_keys")
|
|
46
48
|
return issue.message;
|
|
@@ -51,8 +53,8 @@ export const templateSounds = z.union([z.literal(false), overrides], { error: is
|
|
|
51
53
|
/** The slim MCP field, which keeps tools/list small: any beat and name pass here, and the server checks them strictly (S3 D3). */
|
|
52
54
|
export const mcpTemplateSounds = z.union([z.literal(false), z.record(z.string(), z.string())]).describe(templateSounds.description);
|
|
53
55
|
/** Opt-in, so a run that never asked keeps its silent cuts (rule 3); no default in the schema. */
|
|
54
|
-
export const editSounds = z.boolean().describe("A
|
|
55
|
-
"Needs inserts, layout_windows
|
|
56
|
+
export const editSounds = z.boolean().describe("A short sound on every cut (insert, full-frame template, layout window, framing), its peak on the cut. " +
|
|
57
|
+
"Needs one of those (inserts, templates, layout_windows, framing); template_sounds.edit picks it (list_template_sounds). Price unchanged.");
|
|
56
58
|
/** Refusals of `edit_sounds` and `template_sounds.edit` that would otherwise be ignored: nothing to cut, a name without the switch, both on and muted. */
|
|
57
59
|
export function editSoundRefusals(input) {
|
|
58
60
|
const sounds = input.template_sounds;
|
|
@@ -60,10 +62,38 @@ export function editSoundRefusals(input) {
|
|
|
60
62
|
return sounds !== null && typeof sounds === "object" && "edit" in sounds
|
|
61
63
|
? [{ path: ["template_sounds", "edit"], message: "template_sounds.edit picks the edit sound: add edit_sounds: true or drop it" }] : [];
|
|
62
64
|
}
|
|
63
|
-
return [...(input.inserts === undefined && input.layout_windows === undefined && input.framing === undefined ? [{ path: ["edit_sounds"],
|
|
64
|
-
message: "edit_sounds sounds the cuts of inserts, layout windows and framing: add
|
|
65
|
+
return [...(input.inserts === undefined && input.layout_windows === undefined && input.framing === undefined && input.fullTemplates !== true ? [{ path: ["edit_sounds"],
|
|
66
|
+
message: "edit_sounds sounds the cuts of inserts, full-frame templates, layout windows and framing: add one of them, or drop it" }] : []),
|
|
65
67
|
...(sounds === false ? [{ path: ["edit_sounds"], message: "edit_sounds plays a sound on each cut and template_sounds: false mutes every sound: drop one" }] : [])];
|
|
66
68
|
}
|
|
69
|
+
/** The beats a faceless video plays (#1067): a flash cut's, a light leak cut's and, with edit_sounds, the scene changes'. */
|
|
70
|
+
export const FACELESS_SOUND_BEATS = ["flash", "whoosh", "edit"];
|
|
71
|
+
/** The beat each faceless cut look sounds. */
|
|
72
|
+
export const FACELESS_LOOK_SOUND = { flash: "flash", light_leak: "whoosh" };
|
|
73
|
+
const facelessOverrides = z.strictObject({ flash: name("flash"), whoosh: name("whoosh"), edit: name("edit") }, {
|
|
74
|
+
error: issue => (issue.code === "unrecognized_keys"
|
|
75
|
+
? `template_sounds of make_faceless has no beat ${issue.keys.join(", ")}: the beats are ${FACELESS_SOUND_BEATS.join(", ")}` : undefined),
|
|
76
|
+
});
|
|
77
|
+
export const facelessTemplateSounds = z.union([z.literal(false), facelessOverrides], { error: issue => soundsRefusal(issue.input, facelessOverrides) })
|
|
78
|
+
.describe("Sounds: false for none, or { flash, whoosh, edit: name } over the defaults; list_template_sounds names them.");
|
|
79
|
+
/** Refusals of faceless sound fields that would otherwise be ignored: a beat whose look or switch the run lacks, both on and muted. */
|
|
80
|
+
export function facelessSoundRefusals(input) {
|
|
81
|
+
const sounds = input.template_sounds, named = sounds !== null && typeof sounds === "object" ? sounds : {};
|
|
82
|
+
const looks = Object.entries(FACELESS_LOOK_SOUND).filter(([look, beat]) => beat in named && look !== input.look);
|
|
83
|
+
return [...looks.map(([look, beat]) => ({ path: ["template_sounds", beat],
|
|
84
|
+
message: `template_sounds.${beat} picks the sound of a ${look} cut, and this run draws ${input.look ? `${input.look} cuts` : "no transitions"}: drop it` })),
|
|
85
|
+
...(input.edit_sounds !== true && "edit" in named
|
|
86
|
+
? [{ path: ["template_sounds", "edit"], message: "template_sounds.edit picks the edit sound: add edit_sounds: true or drop it" }] : []),
|
|
87
|
+
...(input.edit_sounds === true && sounds === false
|
|
88
|
+
? [{ path: ["edit_sounds"], message: "edit_sounds plays a sound on each cut and template_sounds: false mutes every sound: drop one" }] : [])];
|
|
89
|
+
}
|
|
90
|
+
/** A faceless run's sounds by name: both looks' beats, so a revision's new look sounds too, and edit with edit_sounds; none for `false`. */
|
|
91
|
+
export function facelessSoundMap(input) {
|
|
92
|
+
if (input.template_sounds === false)
|
|
93
|
+
return {};
|
|
94
|
+
const { flash, whoosh, edit } = { ...DEFAULT_TEMPLATE_SOUNDS, ...input.template_sounds };
|
|
95
|
+
return { flash, whoosh, ...(input.edit_sounds ? { edit } : {}) };
|
|
96
|
+
}
|
|
67
97
|
/** A run's sounds: the defaults with its overrides, or none for `false` (S3c C2, C4). */
|
|
68
98
|
export function templateSoundMap(sounds) {
|
|
69
99
|
return sounds === false ? undefined : { ...DEFAULT_TEMPLATE_SOUNDS, ...sounds };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sounds.js","sourceRoot":"","sources":["../../src/templates/sounds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,+EAA+E;AAE/E,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAU,CAAC;AAG1J,gJAAgJ;AAChJ,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,KAAK,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,CAAC,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,CAAC;QACjG,KAAK,EAAE,kDAAkD,EAAE;IAC7D,MAAM,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,CAAC,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,CAAC;QACrG,KAAK,EAAE,oEAAoE,EAAE;IAC/E,IAAI,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,CAAC;QACrG,KAAK,EAAE,gIAAgI,EAAE;IAC3I,MAAM,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,CAAC,gBAAgB,EAAE,aAAa,EAAE,YAAY,EAAE,eAAe,EAAE,QAAQ,CAAC;QACpH,KAAK,EAAE,wCAAwC,EAAE;IACnD,MAAM,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EA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AC,IAAI,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,CAAC,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC;QAC9H,KAAK,EAAE,eAAe,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;AAC3C,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { TemplateKind } from "./index.js";
|
|
3
|
+
/** The command's text at medium on a 1080 short side: its lowercase letters at least 36 px tall, as captions keep (#1128). */
|
|
4
|
+
export declare const TERMINAL_FONT_PX = 74;
|
|
5
|
+
/** Text sizes: the title bar, the command (up to three lines), the status line and the padding; a diff's line (#1119); the card's width is the
|
|
6
|
+
* full frame's. */
|
|
7
|
+
export declare const TERMINAL_EMS: {
|
|
8
|
+
readonly bar: 1.6;
|
|
9
|
+
readonly command: 3.9;
|
|
10
|
+
readonly status: 1.7;
|
|
11
|
+
readonly pad: 0.6;
|
|
12
|
+
readonly line: 1.15;
|
|
13
|
+
};
|
|
14
|
+
export declare const TERMINAL_CHANGES: readonly ["add", "del"];
|
|
15
|
+
declare const data: z.ZodObject<{
|
|
16
|
+
title: z.ZodOptional<z.ZodString>;
|
|
17
|
+
command: z.ZodString;
|
|
18
|
+
diff: z.ZodOptional<z.ZodObject<{
|
|
19
|
+
lines: z.ZodArray<z.ZodObject<{
|
|
20
|
+
text: z.ZodString;
|
|
21
|
+
change: z.ZodOptional<z.ZodEnum<{
|
|
22
|
+
add: "add";
|
|
23
|
+
del: "del";
|
|
24
|
+
}>>;
|
|
25
|
+
}, z.core.$strict>>;
|
|
26
|
+
at: z.ZodOptional<z.ZodString>;
|
|
27
|
+
}, z.core.$strict>>;
|
|
28
|
+
status: z.ZodString;
|
|
29
|
+
at: z.ZodOptional<z.ZodString>;
|
|
30
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
31
|
+
large: "large";
|
|
32
|
+
medium: "medium";
|
|
33
|
+
small: "small";
|
|
34
|
+
}>>;
|
|
35
|
+
}, z.core.$strict>;
|
|
36
|
+
/** The card's height in text sizes: the command's three lines, the diff's lines under it, the status. */
|
|
37
|
+
export declare const terminalEms: (value: {
|
|
38
|
+
diff?: {
|
|
39
|
+
lines: readonly unknown[];
|
|
40
|
+
} | undefined;
|
|
41
|
+
}) => number;
|
|
42
|
+
/** A dark terminal card on a full frame: the command types in, a diff's lines change, then a checked status line shows, each on its beat. */
|
|
43
|
+
export declare const terminal: TemplateKind<typeof data>;
|
|
44
|
+
/** Version 1: a command only; its footprint is version 2's for the same data. */
|
|
45
|
+
export declare const terminalV1: TemplateKind<typeof data>;
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { frameCanvasOf } from "../ugc-layers.js";
|
|
3
|
+
import { centredArea, fullWidth, sizedScale, templateSize } from "./size.js";
|
|
4
|
+
/** The command's text at medium on a 1080 short side: its lowercase letters at least 36 px tall, as captions keep (#1128). */
|
|
5
|
+
export const TERMINAL_FONT_PX = 74;
|
|
6
|
+
/** Text sizes: the title bar, the command (up to three lines), the status line and the padding; a diff's line (#1119); the card's width is the
|
|
7
|
+
* full frame's. */
|
|
8
|
+
export const TERMINAL_EMS = { bar: 1.6, command: 3.9, status: 1.7, pad: 0.6, line: 1.15 };
|
|
9
|
+
export const TERMINAL_CHANGES = ["add", "del"];
|
|
10
|
+
const line = z.object({ text: z.string().min(1).max(36), change: z.enum(TERMINAL_CHANGES).optional() }).strict();
|
|
11
|
+
const diff = z.object({ lines: z.array(line).min(2).max(7), at: z.string().min(1).max(200).optional() }).strict();
|
|
12
|
+
const data = z.object({ title: z.string().min(1).max(24).optional(), command: z.string().min(1).max(100), diff: diff.optional(),
|
|
13
|
+
status: z.string().min(1).max(40), at: z.string().min(1).max(200).optional(), size: templateSize }).strict().superRefine((value, context) => {
|
|
14
|
+
if (value.diff && !value.diff.lines.some(entry => entry.change)) {
|
|
15
|
+
context.addIssue({ code: z.ZodIssueCode.custom, path: ["diff", "lines"], message: "a diff marks at least one line add or del" });
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
/** The card's height in text sizes: the command's three lines, the diff's lines under it, the status. */
|
|
19
|
+
export const terminalEms = (value) => TERMINAL_EMS.bar + TERMINAL_EMS.command + TERMINAL_EMS.status +
|
|
20
|
+
2 * TERMINAL_EMS.pad + (value.diff?.lines.length ?? 0) * TERMINAL_EMS.line;
|
|
21
|
+
/** A dark terminal card on a full frame: the command types in, a diff's lines change, then a checked status line shows, each on its beat. */
|
|
22
|
+
export const terminal = {
|
|
23
|
+
kind: "terminal",
|
|
24
|
+
kindVersion: 2,
|
|
25
|
+
description: "a full-frame dark terminal card: the command types in; a diff under it collapses its del lines (red) and opens its add lines " +
|
|
26
|
+
"(green) on diff.at; then a checked status line shows on at; title names the card",
|
|
27
|
+
placements: ["full"],
|
|
28
|
+
data,
|
|
29
|
+
text: { title: 24, command: 100, "diff.lines.text": 36, status: 40 },
|
|
30
|
+
quotes: ["diff.at", "at"],
|
|
31
|
+
// The card is in by frame 6 and the command types for at least 4 frames before the status.
|
|
32
|
+
beatsFrom: 10,
|
|
33
|
+
slots: {},
|
|
34
|
+
hidesCaptions: () => true,
|
|
35
|
+
onInserts: false,
|
|
36
|
+
rect: (value, aspectRatio) => {
|
|
37
|
+
const canvas = frameCanvasOf(aspectRatio), ems = terminalEms(value);
|
|
38
|
+
const em = Math.min(TERMINAL_FONT_PX * sizedScale(value.size, canvas), (0.92 * canvas.height) / ems);
|
|
39
|
+
return centredArea(canvas, fullWidth(value.size, canvas), ems * em);
|
|
40
|
+
},
|
|
41
|
+
sample: { title: "Terminal", command: "git apply fix.patch", diff: { lines: [{ text: "const fps = 25" }, { text: "render(clip)", change: "del" },
|
|
42
|
+
{ text: "render(clip, { fps })", change: "add" }], at: "applies" }, status: "patch applied", at: "applied" },
|
|
43
|
+
};
|
|
44
|
+
/** Version 1: a command only; its footprint is version 2's for the same data. */
|
|
45
|
+
export const terminalV1 = { ...terminal, kindVersion: 1 };
|
|
46
|
+
//# sourceMappingURL=terminal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terminal.js","sourceRoot":"","sources":["../../src/templates/terminal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE7E,8HAA8H;AAC9H,MAAM,CAAC,MAAM,gBAAgB,GAAG,EAAE,CAAC;AACnC;mBACmB;AACnB,MAAM,CAAC,MAAM,YAAY,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAW,CAAC;AACnG,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE,KAAK,CAAU,CAAC;AACxD,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;AACjH,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,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