@cueframe/kernel 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/dist/_members/authoring/agent/errors.d.ts +8 -0
  2. package/dist/_members/authoring/index.d.ts +1 -1
  3. package/dist/_members/authoring/motion/materializeMotionPresetOps.d.ts +4 -0
  4. package/dist/_members/authoring/prompts/index.d.ts +0 -1
  5. package/dist/_members/authoring/types.d.ts +1 -1
  6. package/dist/_members/cloud-import/CloudImportService.d.ts +3 -4
  7. package/dist/_members/cloud-import/ImportProvider.d.ts +3 -7
  8. package/dist/_members/cloud-import/cloudConfig.d.ts +0 -6
  9. package/dist/_members/cloud-import/index.d.ts +2 -4
  10. package/dist/_members/composition/graphics-plan/schemas.d.ts +20 -20
  11. package/dist/_members/composition/primitive-catalog/projection.d.ts +2 -1
  12. package/dist/_members/composition/projection/behind-readiness.d.ts +4 -2
  13. package/dist/_members/composition/validators/brandKit.d.ts +54 -94
  14. package/dist/_members/composition/validators/composePlan.d.ts +52 -52
  15. package/dist/_members/composition/validators/composition.d.ts +213 -253
  16. package/dist/_members/composition/validators/font.d.ts +2 -2
  17. package/dist/_members/composition/validators/index.d.ts +1 -0
  18. package/dist/_members/composition/validators/opaqueId.d.ts +13 -0
  19. package/dist/_members/composition/validators/project.d.ts +11 -15
  20. package/dist/_members/composition/validators/render.d.ts +372 -534
  21. package/dist/_members/composition/validators/session.d.ts +19 -39
  22. package/dist/_members/composition/validators/webhook.d.ts +8 -16
  23. package/dist/_members/composition-ops/index.d.ts +192 -228
  24. package/dist/_members/director/ai-sdk/messages.d.ts +2 -2
  25. package/dist/_members/director/domain/chat.d.ts +4 -4
  26. package/dist/_members/director/testing/contract.d.ts +1 -1
  27. package/dist/_members/errors/registry.d.ts +115 -1
  28. package/dist/_members/mcp/adapter.d.ts +19 -0
  29. package/dist/_members/mcp/core.d.ts +1 -1
  30. package/dist/_members/mcp/curation.d.ts +4 -0
  31. package/dist/_members/mcp/generated/harness.d.ts +1 -1
  32. package/dist/_members/mcp/generated/operations.d.ts +12 -0
  33. package/dist/_members/mcp/wait.d.ts +1 -1
  34. package/dist/_members/media-model/api.d.ts +53 -109
  35. package/dist/_members/media-model/generation.d.ts +2 -2
  36. package/dist/_members/media-model/index.d.ts +1 -0
  37. package/dist/_members/media-model/opaqueId.d.ts +10 -0
  38. package/dist/_members/render-harness/localRender.d.ts +3 -0
  39. package/dist/_members/render-harness/localRender.d.ts.map +1 -1
  40. package/dist/_members/render-harness/remotion-runtime.d.ts +53 -0
  41. package/dist/authoring/build-tools.js +6 -6
  42. package/dist/authoring/context.js +4 -4
  43. package/dist/authoring/prompts.js +1 -5
  44. package/dist/authoring/tools.js +5 -5
  45. package/dist/authoring.js +40 -27
  46. package/dist/chunk-2SNY75AR.js +498 -0
  47. package/dist/{chunk-XQ72DZKJ.js → chunk-7TQCR7AB.js} +1 -1
  48. package/dist/{chunk-QETYXKQQ.js → chunk-7V3F5HO4.js} +97 -14
  49. package/dist/{chunk-BZZTVOGG.js → chunk-D2EGO543.js} +5 -5
  50. package/dist/{chunk-ZPLJ24OV.js → chunk-D6S3ZKIY.js} +1 -1
  51. package/dist/{chunk-K2IUBCND.js → chunk-HFC3MKXA.js} +0 -51
  52. package/dist/{chunk-ICSZF37W.js → chunk-JRIPQ7DN.js} +1 -1
  53. package/dist/{chunk-TFGKUWHY.js → chunk-JTVFIN6H.js} +15 -19
  54. package/dist/{chunk-DCVJWGIA.js → chunk-JY26PIRP.js} +2 -2
  55. package/dist/{chunk-DWLNPNC4.js → chunk-LSP4HN5N.js} +1 -1
  56. package/dist/{chunk-AO744WIK.js → chunk-PJ4R4N4Q.js} +123 -38
  57. package/dist/{chunk-VFMW3JUY.js → chunk-QSDFTYKV.js} +1 -1
  58. package/dist/{chunk-LLUW26BS.js → chunk-R5BMJ2NX.js} +38 -2
  59. package/dist/{chunk-W3SIWT7J.js → chunk-RQ2G4DXI.js} +406 -174
  60. package/dist/{chunk-VHF66LCQ.js → chunk-RXCEPCAQ.js} +102 -41
  61. package/dist/{chunk-LJ5W4ZBU.js → chunk-TLVPDT4R.js} +1 -1
  62. package/dist/{chunk-PIURX6IZ.js → chunk-WTT3GGCA.js} +9 -4
  63. package/dist/{chunk-CAJQ7H5A.js → chunk-YE3F4LNJ.js} +17 -17
  64. package/dist/{chunk-TD347SSX.js → chunk-YXEZ75MB.js} +31 -20
  65. package/dist/{chunk-TPA6PYN2.js → chunk-ZBRPF6GV.js} +25 -10
  66. package/dist/cloud-import.js +20 -116
  67. package/dist/compose/renderer.js +17 -17
  68. package/dist/compose.js +18 -18
  69. package/dist/composition/graphics-plan.js +1 -1
  70. package/dist/composition/ops.js +3 -3
  71. package/dist/composition/primitive-catalog.js +1 -1
  72. package/dist/composition/projection.js +2 -2
  73. package/dist/composition/validators.js +4 -2
  74. package/dist/composition-ops.js +6 -6
  75. package/dist/composition.js +6 -4
  76. package/dist/{context-JLLU3MYD.js → context-XWNT6QZH.js} +4 -4
  77. package/dist/core/render.js +3 -3
  78. package/dist/core/select.js +2 -2
  79. package/dist/core.js +3 -3
  80. package/dist/director/ai-sdk.js +3 -3
  81. package/dist/director/domain.js +2 -2
  82. package/dist/director.js +3 -3
  83. package/dist/errors.js +1 -1
  84. package/dist/mcp/adapter.js +59 -22
  85. package/dist/mcp/core.js +1 -1
  86. package/dist/mcp/curation.js +5 -1
  87. package/dist/mcp/server.js +4 -4
  88. package/dist/mcp.js +4 -4
  89. package/dist/media-model/media-kind.js +98 -9
  90. package/dist/media-model/testing.js +6 -6
  91. package/dist/media-model.js +83 -77
  92. package/dist/nle-export.js +18 -18
  93. package/dist/primitives/backgrounds.js +2 -2
  94. package/dist/primitives/captions.js +3 -3
  95. package/dist/primitives/effects.js +2 -2
  96. package/dist/primitives/hero-text.js +2 -2
  97. package/dist/primitives/layouts.js +2 -2
  98. package/dist/primitives/lib/index.js +12 -12
  99. package/dist/primitives/lib.js +12 -12
  100. package/dist/primitives/scenes.js +2 -2
  101. package/dist/primitives/text.js +2 -2
  102. package/dist/primitives/ui-blocks.js +2 -2
  103. package/dist/primitives.js +19 -19
  104. package/dist/render-harness.js +4 -2
  105. package/package.json +13 -37
  106. package/dist/_members/authoring/prompts/designReviewerPrompt.d.ts +0 -2
  107. package/dist/_members/cloud-import/MediaItemPreprocessor.d.ts +0 -18
  108. package/dist/_members/cloud-import/multipartUpload.d.ts +0 -12
  109. package/dist/_members/convex-api/api.d.ts +0 -2
  110. package/dist/_members/convex-api/dataModel.d.ts +0 -4
  111. package/dist/chunk-6IU2UQI5.js +0 -107
  112. package/dist/chunk-EP2Y6M2J.js +0 -64
  113. package/dist/chunk-WZH57M53.js +0 -494
  114. package/dist/cloud-import/multipart.d.ts +0 -1
  115. package/dist/cloud-import/multipart.js +0 -8
  116. package/dist/convex-api/dataModel.d.ts +0 -1
  117. package/dist/convex-api/dataModel.js +0 -0
  118. package/dist/convex-api.d.ts +0 -1
  119. package/dist/convex-api.js +0 -8
  120. package/dist/{chunk-RP4SXXLJ.js → chunk-3PM6VICZ.js} +3 -3
  121. package/dist/{chunk-UQSOS726.js → chunk-6ABIXGLO.js} +4 -4
  122. package/dist/{chunk-SAMQUUO5.js → chunk-BIBYZJL3.js} +3 -3
  123. package/dist/{chunk-GMD33ZD7.js → chunk-O7GNE4BQ.js} +3 -3
  124. package/dist/{chunk-BKHGL4MB.js → chunk-THJAY7QS.js} +4 -4
  125. package/dist/{chunk-DYZE7JZA.js → chunk-TMIBBD5E.js} +3 -3
  126. package/dist/{chunk-G5BFI32U.js → chunk-XATRRDVG.js} +3 -3
@@ -1,494 +0,0 @@
1
- import {
2
- Reframe
3
- } from "./chunk-2B5VJZHL.js";
4
-
5
- // ../composition/src/validators/composition.ts
6
- import { z } from "zod";
7
- import { zid } from "convex-helpers/server/zod3";
8
- var Format = z.object({
9
- aspectRatio: z.enum(["16:9", "9:16", "1:1", "4:5"]),
10
- fps: z.union([z.literal(24), z.literal(30), z.literal(60)]).optional(),
11
- resolution: z.enum(["hd", "fhd", "4k"]).optional(),
12
- platform: z.string().optional()
13
- });
14
- var Trim = z.object({
15
- start: z.number().nonnegative(),
16
- end: z.number().nonnegative()
17
- });
18
- var ExcludedRange = z.object({
19
- start: z.number().nonnegative(),
20
- end: z.number().nonnegative(),
21
- reason: z.string().optional()
22
- });
23
- var MediaClipSource = z.object({
24
- kind: z.literal("media"),
25
- mediaId: zid("mediaItems"),
26
- trim: Trim.optional(),
27
- excludedRanges: z.array(ExcludedRange).optional(),
28
- volume: z.number().min(0).max(4).optional(),
29
- muted: z.boolean().optional(),
30
- playbackRate: z.number().positive().optional(),
31
- sync: z.enum(["video", "independent"]).optional(),
32
- kenBurns: z.enum(["in", "out", "pan-l", "pan-r", "none"]).optional(),
33
- volumeDb: z.number().optional(),
34
- fadeInMs: z.number().nonnegative().optional(),
35
- fadeOutMs: z.number().nonnegative().optional(),
36
- loop: z.boolean().optional(),
37
- audioRole: z.enum(["sfx", "music", "vo", "ambience"]).optional(),
38
- duck: z.object({
39
- duckDb: z.number().max(0),
40
- attackMs: z.number().nonnegative(),
41
- releaseMs: z.number().nonnegative(),
42
- windows: z.array(z.object({ startMs: z.number(), endMs: z.number() })).optional()
43
- }).optional(),
44
- anchor: z.object({
45
- clipId: z.string().min(1),
46
- offsetMs: z.number()
47
- }).optional(),
48
- reframe: Reframe.optional()
49
- });
50
- var ComponentClipSource = z.object({
51
- kind: z.literal("component"),
52
- componentId: z.string().min(1),
53
- props: z.record(z.string(), z.unknown()),
54
- zPlane: z.enum(["front", "behind-subject"]).optional()
55
- });
56
- var OverlayClipSource = z.object({
57
- kind: z.literal("overlay"),
58
- primitiveId: z.string().min(1),
59
- params: z.record(z.string(), z.unknown()),
60
- zPlane: z.enum(["front", "behind-subject"]).optional(),
61
- anchor: z.object({ space: z.literal("scene"), x: z.number().min(0).max(1), y: z.number().min(0).max(1) }).optional(),
62
- parallax: z.number().min(-0.3).max(0.3).optional()
63
- });
64
- var EffectClipSource = z.object({
65
- kind: z.literal("effect"),
66
- primitiveId: z.string().min(1),
67
- params: z.record(z.string(), z.unknown()).optional()
68
- });
69
- var AlphaLayerClipSource = z.object({
70
- kind: z.literal("alpha-layer"),
71
- componentId: z.string().min(1),
72
- props: z.record(z.string(), z.unknown()),
73
- zPlane: z.enum(["front", "behind-subject"]).optional()
74
- });
75
- var CardClipSource = z.object({
76
- kind: z.literal("card"),
77
- html: z.string().min(1),
78
- tokens: z.record(z.string(), z.string()).optional(),
79
- zPlane: z.literal("front").optional()
80
- });
81
- var CompositionClipSource = z.object({
82
- kind: z.literal("composition"),
83
- compositionId: z.string().min(1),
84
- trim: Trim.optional()
85
- }).strict();
86
- var ClipSource = z.discriminatedUnion("kind", [
87
- MediaClipSource,
88
- ComponentClipSource,
89
- OverlayClipSource,
90
- EffectClipSource,
91
- AlphaLayerClipSource,
92
- CardClipSource,
93
- CompositionClipSource
94
- ]);
95
- var Transition = z.object({
96
- type: z.string().min(1),
97
- duration: z.number().positive()
98
- });
99
- var Position = z.object({
100
- x: z.number(),
101
- y: z.number()
102
- });
103
- var Region = z.object({
104
- x: z.number().min(0).max(1),
105
- y: z.number().min(0).max(1),
106
- w: z.number().positive().max(1),
107
- h: z.number().positive().max(1)
108
- });
109
- var ClipFit = z.enum(["cover", "contain"]);
110
- var PerClipEffect = z.object({
111
- primitiveId: z.string().min(1),
112
- params: z.record(z.string(), z.unknown()).optional()
113
- });
114
- var KeyframeEasing = z.union([
115
- z.enum(["linear", "ease", "easeIn", "easeOut", "easeInOut"]),
116
- z.object({ cubicBezier: z.tuple([z.number(), z.number(), z.number(), z.number()]) }).strict()
117
- ]);
118
- var Keyframe = z.object({
119
- time: z.number().nonnegative(),
120
- value: z.number(),
121
- easing: KeyframeEasing.optional()
122
- }).strict();
123
- var KeyframeChannel = z.array(Keyframe).min(2);
124
- var ANIMATABLE_PARAMS = [
125
- "opacity",
126
- "scale",
127
- "rotation",
128
- "position.x",
129
- "position.y",
130
- "volume"
131
- ];
132
- var TimelineClip = z.object({
133
- id: z.string().min(1),
134
- startTime: z.number().nonnegative(),
135
- duration: z.number().positive(),
136
- source: ClipSource,
137
- kind: z.enum(["video", "audio", "image", "overlay", "effect"]).optional(),
138
- opacity: z.number().min(0).max(1).optional(),
139
- scale: z.number().positive().optional(),
140
- rotation: z.number().optional(),
141
- position: Position.optional(),
142
- region: Region.optional(),
143
- fit: ClipFit.optional(),
144
- effects: z.array(PerClipEffect).optional(),
145
- transitionIn: Transition.optional(),
146
- linkGroupId: z.string().min(1).optional(),
147
- animate: z.record(z.string(), KeyframeChannel).superRefine((channels, ctx) => {
148
- for (const key of Object.keys(channels)) {
149
- if (!ANIMATABLE_PARAMS.includes(key)) {
150
- ctx.addIssue({
151
- code: z.ZodIssueCode.custom,
152
- path: [key],
153
- message: `"${key}" is not an animatable param (${ANIMATABLE_PARAMS.join(", ")})`
154
- });
155
- }
156
- }
157
- }).optional()
158
- }).strict();
159
- var Gap = z.object({
160
- id: z.string().min(1),
161
- startTime: z.number().nonnegative(),
162
- duration: z.number().positive()
163
- }).strict();
164
- var TrackContent = z.unknown().transform((val, ctx) => {
165
- const hasSource = !!val && typeof val === "object" && "source" in val;
166
- const res = (hasSource ? TimelineClip : Gap).safeParse(val);
167
- if (!res.success) {
168
- for (const issue of res.error.issues) ctx.addIssue(issue);
169
- return z.NEVER;
170
- }
171
- return res.data;
172
- });
173
- var Track = z.object({
174
- id: z.string().min(1),
175
- kind: z.enum(["video", "audio", "image", "overlay", "effect"]),
176
- name: z.string().optional(),
177
- enabled: z.boolean().optional(),
178
- volume: z.number().min(0).max(4).optional(),
179
- contents: z.array(TrackContent)
180
- }).strict();
181
- var Marker = z.object({
182
- id: z.string().min(1),
183
- startTime: z.number().nonnegative(),
184
- endTime: z.number().nonnegative().optional(),
185
- kind: z.string().min(1),
186
- name: z.string().optional(),
187
- metadata: z.record(z.string(), z.unknown()).optional()
188
- }).strict();
189
- var AccessControl = z.object({
190
- public: z.boolean().optional(),
191
- readerOrgIds: z.array(z.string()).optional(),
192
- writerOrgIds: z.array(z.string()).optional()
193
- });
194
- var LicenseDeclaration = z.object({
195
- type: z.string().min(1),
196
- source: z.string().optional(),
197
- notes: z.string().optional()
198
- });
199
- var CompositionAccessibility = z.object({
200
- audioDescriptionTrackId: z.string().optional(),
201
- captionsTrackId: z.string().optional(),
202
- signLanguageTrackId: z.string().optional(),
203
- notes: z.string().optional()
204
- });
205
- var CaptionWord = z.object({
206
- text: z.string().min(1),
207
- startMs: z.number().nonnegative(),
208
- endMs: z.number().nonnegative(),
209
- emphasis: z.boolean().optional(),
210
- annotate: z.enum(["circle", "underline"]).optional()
211
- });
212
- var CaptionStyle = z.object({
213
- fontFamily: z.string().min(1).optional(),
214
- fontSize: z.number().min(1, "captions style.fontSize is PERCENT of composition height (1-15, default 5) \u2014 px values are not accepted").max(15, "captions style.fontSize is PERCENT of composition height (1-15, default 5) \u2014 px values are not accepted").optional().describe("Font size as % of composition height (1-15, default 5). NOT px."),
215
- fontWeight: z.number().int().min(100).max(900).optional(),
216
- color: z.string().min(1).optional(),
217
- highlightColor: z.string().min(1).optional(),
218
- backgroundColor: z.string().optional(),
219
- plate: z.enum(["glass", "solid", "none"]).optional(),
220
- position: z.enum(["top", "center", "bottom"]).optional(),
221
- textTransform: z.enum(["none", "uppercase", "capitalize"]).optional(),
222
- emphasisColor: z.string().optional(),
223
- emphasisGradient: z.string().optional(),
224
- emphasisScale: z.number().positive().optional(),
225
- emphasisFontFamily: z.string().optional(),
226
- emphasisFontWeight: z.number().int().min(100).max(900).optional(),
227
- emphasisTextTransform: z.enum(["none", "uppercase", "capitalize"]).optional(),
228
- emphasisLetterSpacing: z.number().optional(),
229
- emphasisFontStyle: z.enum(["normal", "italic"]).optional(),
230
- entrance: z.enum(["none", "fade", "word-pop", "stagger-up"]).optional(),
231
- entranceMs: z.number().nonnegative().optional(),
232
- entranceStaggerMs: z.number().nonnegative().optional(),
233
- exitMs: z.number().nonnegative().optional(),
234
- emphasisPlate: z.boolean().optional(),
235
- emphasisPlateColor: z.string().optional(),
236
- emphasisPlateTextColor: z.string().optional(),
237
- emphasisPlateAltColor: z.string().optional(),
238
- emphasisPlateAltTextColor: z.string().optional(),
239
- emphasisPlateRadius: z.number().nonnegative().optional(),
240
- emphasisPlatePadX: z.number().optional(),
241
- emphasisPlatePadY: z.number().optional(),
242
- annotationColor: z.string().optional(),
243
- maxWidthPercent: z.number().positive().max(100, "captions style.maxWidthPercent is % of composition width (max 100)").optional()
244
- });
245
- var CaptionSegment = z.object({
246
- words: z.array(CaptionWord)
247
- });
248
- var CaptionDepth = z.enum(["front", "behind-subject"]).optional();
249
- var CompositionCaptions = z.discriminatedUnion("source", [
250
- z.object({
251
- source: z.literal("derived"),
252
- from: z.object({ clipId: z.string() }),
253
- segments: z.array(CaptionSegment),
254
- style: CaptionStyle.optional(),
255
- zPlane: CaptionDepth
256
- }),
257
- z.object({
258
- source: z.literal("authored"),
259
- segments: z.array(CaptionSegment),
260
- style: CaptionStyle.optional(),
261
- zPlane: CaptionDepth
262
- })
263
- ]);
264
- function captionsAreBehindSubject(captions) {
265
- return captions?.zPlane === "behind-subject";
266
- }
267
- function captionWords(c) {
268
- return c.segments.flatMap((s) => s.words);
269
- }
270
- var Composition = z.object({
271
- v: z.literal(1, {
272
- errorMap: (_issue, ctx) => ctx.data === void 0 ? { message: 'Missing version envelope: add top-level "v": 1 to the composition.' } : { message: `Invalid version envelope: top-level "v" must be the literal 1 (got ${JSON.stringify(ctx.data)}).` }
273
- }),
274
- format: Format,
275
- tracks: z.array(Track),
276
- markers: z.array(Marker).optional(),
277
- captions: CompositionCaptions.optional(),
278
- sourceSuggestionId: z.string().optional(),
279
- license: LicenseDeclaration.optional(),
280
- licenseVerification: z.enum([
281
- "attested",
282
- "cueframe-verified",
283
- "third-party-verified"
284
- ]).optional(),
285
- accessibility: CompositionAccessibility.optional(),
286
- ownerOrgId: z.string().optional(),
287
- acl: AccessControl.optional()
288
- }).strict();
289
- var CompositionAuthorKind = z.enum(["user", "agent", "import"]);
290
- var CompositionVersion = z.object({
291
- id: z.string().min(1),
292
- compositionId: zid("compositions"),
293
- predecessorId: z.string().optional(),
294
- createdAt: z.number(),
295
- // epoch ms — see CONVEX_ADAPTATIONS.md
296
- etag: z.string().min(1),
297
- authorKind: CompositionAuthorKind,
298
- // load-bearing for multi-agent lineage
299
- authorId: z.string().optional(),
300
- // userId for 'user', agentId for 'agent', source for 'import'
301
- composition: Composition
302
- });
303
-
304
- // ../composition/src/graphics-plan/schemas.ts
305
- import { z as z2 } from "zod";
306
- var GRAPHICS_PLAN_VERSION = "gp-1";
307
- var Version = z2.literal(GRAPHICS_PLAN_VERSION);
308
- var PlanRect = Region;
309
- var GraphicRole = z2.enum([
310
- "title-card",
311
- // topic-setter / opener card
312
- "stat",
313
- // a single headline number + label
314
- "lower-third",
315
- // name/title tag over the speaker
316
- "pull-quote",
317
- // a short quoted line
318
- "hero",
319
- // big behind-subject phrase (zPlane: behind-subject)
320
- "logo-tag",
321
- // small brand mark / watermark beat
322
- "enumeration",
323
- "sequence",
324
- // an ordered chain of steps — often the POINT is that it is too long
325
- "comparison"
326
- // labelled values set against each other (a benchmark, a before/after)
327
- ]);
328
- var Copy = z2.object({
329
- headline: z2.string().max(120).optional(),
330
- sub: z2.string().max(200).optional(),
331
- value: z2.string().max(40).optional(),
332
- label: z2.string().max(80).optional(),
333
- items: z2.array(z2.string().max(80)).max(8).optional(),
334
- series: z2.array(z2.object({ label: z2.string().max(40), value: z2.string().max(16) })).max(8).optional()
335
- }).strict();
336
- var ContentBeat = z2.object({
337
- id: z2.string().min(1),
338
- atSec: z2.number().min(0),
339
- durSec: z2.number().positive(),
340
- role: GraphicRole,
341
- copy: Copy,
342
- intent: z2.string().min(1).max(400),
343
- priority: z2.number().int().min(0).max(10).default(5)
344
- }).strict();
345
- var ContentPlan = z2.object({
346
- version: Version,
347
- beats: z2.array(ContentBeat)
348
- }).strict();
349
- var ElementRole = z2.enum([
350
- "headline",
351
- // primary large text
352
- "value",
353
- // the stat number / the one word to remember
354
- "label",
355
- // supporting text
356
- "sublabel",
357
- // secondary supporting text
358
- "logo",
359
- // brand mark
360
- "accent-shape",
361
- // decorative block/line/underline
362
- "backdrop"
363
- // solid fill (takeover cards only)
364
- ]);
365
- var StyleRole = z2.enum([
366
- "heading",
367
- "body",
368
- "accent",
369
- "surface",
370
- "on-accent",
371
- "on-surface"
372
- ]);
373
- var ZPlane = z2.enum(["front", "behind-subject"]);
374
- var LayoutElement = z2.object({
375
- elId: z2.string().min(1),
376
- role: ElementRole,
377
- box: PlanRect,
378
- styleRole: StyleRole,
379
- z: ZPlane.default("front"),
380
- text: z2.string().max(200).optional(),
381
- typeScaleStep: z2.number().int().min(0).max(8).optional()
382
- }).strict();
383
- var EPS = 1e-6;
384
- var rectsOverlapEps = (a, b) => a.x < b.x + b.w - EPS && a.x + a.w > b.x + EPS && a.y < b.y + b.h - EPS && a.y + a.h > b.y + EPS;
385
- var LayoutPlan = z2.object({
386
- version: Version,
387
- beatId: z2.string().min(1),
388
- frame: z2.object({ w: z2.number().positive(), h: z2.number().positive() }).strict(),
389
- keepOut: z2.array(PlanRect),
390
- safe: z2.object({
391
- titleSafe: z2.number().min(0).max(1),
392
- actionSafe: z2.number().min(0).max(1)
393
- }).strict(),
394
- elements: z2.array(LayoutElement),
395
- dropped: z2.object({ reason: z2.string().min(1) }).strict().optional()
396
- }).strict().superRefine((plan, ctx) => {
397
- for (const el of plan.elements) {
398
- if (el.z === "behind-subject") continue;
399
- const b = el.box;
400
- if (b.x + b.w > 1 + EPS || b.y + b.h > 1 + EPS) {
401
- ctx.addIssue({ code: z2.ZodIssueCode.custom, message: `element ${el.elId} box spills past the frame`, path: ["elements"] });
402
- }
403
- for (const ko of plan.keepOut) {
404
- if (rectsOverlapEps(b, ko)) {
405
- ctx.addIssue({ code: z2.ZodIssueCode.custom, message: `element ${el.elId} overlaps a face keep-out (text on the speaker)`, path: ["elements"] });
406
- }
407
- }
408
- }
409
- });
410
- var EnterType = z2.enum(["reveal", "fade", "rise", "count-up", "wipe"]);
411
- var EmphasisType = z2.enum(["pulse", "underline", "color-shift"]);
412
- var ExitType = z2.enum(["fade", "fall", "wipe", "cut"]);
413
- var Ease = z2.enum(["spring", "ease-out", "ease-in-out", "linear"]);
414
- var EnterMotion = z2.object({
415
- type: EnterType,
416
- atMs: z2.number().min(0),
417
- durMs: z2.number().positive(),
418
- ease: Ease.default("spring"),
419
- stagger: z2.number().min(0).optional()
420
- }).strict();
421
- var EmphasisMotion = z2.object({ type: EmphasisType, atMs: z2.number().min(0), durMs: z2.number().positive() }).strict();
422
- var ExitMotion = z2.object({ type: ExitType, atMs: z2.number().min(0), durMs: z2.number().positive() }).strict();
423
- var MotionElement = z2.object({
424
- elId: z2.string().min(1),
425
- enter: EnterMotion,
426
- emphasis: EmphasisMotion.optional(),
427
- exit: ExitMotion.optional()
428
- }).strict();
429
- var MotionPlan = z2.object({
430
- version: Version,
431
- beatId: z2.string().min(1),
432
- elements: z2.array(MotionElement)
433
- }).strict();
434
- var GraphicsPlan = z2.object({
435
- version: Version,
436
- content: ContentPlan,
437
- layouts: z2.array(LayoutPlan),
438
- motions: z2.array(MotionPlan)
439
- }).strict();
440
-
441
- export {
442
- Format,
443
- MediaClipSource,
444
- ComponentClipSource,
445
- OverlayClipSource,
446
- EffectClipSource,
447
- AlphaLayerClipSource,
448
- CardClipSource,
449
- CompositionClipSource,
450
- ClipSource,
451
- Transition,
452
- Region,
453
- ClipFit,
454
- PerClipEffect,
455
- KeyframeEasing,
456
- Keyframe,
457
- KeyframeChannel,
458
- ANIMATABLE_PARAMS,
459
- TimelineClip,
460
- Gap,
461
- TrackContent,
462
- Track,
463
- Marker,
464
- CaptionWord,
465
- CaptionStyle,
466
- CaptionSegment,
467
- CompositionCaptions,
468
- captionsAreBehindSubject,
469
- captionWords,
470
- Composition,
471
- CompositionAuthorKind,
472
- CompositionVersion,
473
- GRAPHICS_PLAN_VERSION,
474
- PlanRect,
475
- GraphicRole,
476
- Copy,
477
- ContentBeat,
478
- ContentPlan,
479
- ElementRole,
480
- StyleRole,
481
- ZPlane,
482
- LayoutElement,
483
- LayoutPlan,
484
- EnterType,
485
- EmphasisType,
486
- ExitType,
487
- Ease,
488
- EnterMotion,
489
- EmphasisMotion,
490
- ExitMotion,
491
- MotionElement,
492
- MotionPlan,
493
- GraphicsPlan
494
- };
@@ -1 +0,0 @@
1
- export * from "../_members/cloud-import/multipartUpload.js";
@@ -1,8 +0,0 @@
1
- import {
2
- multipartUpload
3
- } from "../chunk-EP2Y6M2J.js";
4
- import "../chunk-6IU2UQI5.js";
5
- import "../chunk-2ESYSVXG.js";
6
- export {
7
- multipartUpload
8
- };
@@ -1 +0,0 @@
1
- export * from "../_members/convex-api/dataModel.js";
File without changes
@@ -1 +0,0 @@
1
- export * from "./_members/convex-api/api.js";
@@ -1,8 +0,0 @@
1
- import "./chunk-2ESYSVXG.js";
2
-
3
- // ../convex-api/src/api.ts
4
- import { anyApi } from "convex/server";
5
- var api = anyApi;
6
- export {
7
- api
8
- };
@@ -1,6 +1,3 @@
1
- import {
2
- FitText
3
- } from "./chunk-XHGZ2E77.js";
4
1
  import {
5
2
  ACCENT,
6
3
  BG,
@@ -22,6 +19,9 @@ import {
22
19
  TEXT_MUTED,
23
20
  VIOLET
24
21
  } from "./chunk-CX2IIQ4R.js";
22
+ import {
23
+ FitText
24
+ } from "./chunk-XHGZ2E77.js";
25
25
 
26
26
  // ../execution/primitives/src/layouts/chat-to-preview-layout/index.tsx
27
27
  import { Easing, interpolate, useCurrentFrame, useVideoConfig } from "remotion";
@@ -12,10 +12,6 @@ import {
12
12
  FLOOR_TEXT,
13
13
  resolveContrast
14
14
  } from "./chunk-EMGFZ3PR.js";
15
- import {
16
- FitText,
17
- resolveFitFontSize
18
- } from "./chunk-XHGZ2E77.js";
19
15
  import {
20
16
  resolveEasing,
21
17
  staggerRise,
@@ -35,6 +31,10 @@ import {
35
31
  VIOLET,
36
32
  WARNING
37
33
  } from "./chunk-CX2IIQ4R.js";
34
+ import {
35
+ FitText,
36
+ resolveFitFontSize
37
+ } from "./chunk-XHGZ2E77.js";
38
38
 
39
39
  // ../execution/primitives/src/text/blur-reveal/index.tsx
40
40
  import { interpolate, useCurrentFrame, useVideoConfig } from "remotion";
@@ -4,15 +4,15 @@ import {
4
4
  import {
5
5
  resolveContrast
6
6
  } from "./chunk-EMGFZ3PR.js";
7
- import {
8
- resolveFitFontSize
9
- } from "./chunk-XHGZ2E77.js";
10
7
  import {
11
8
  fadeProgress,
12
9
  resolveEasing,
13
10
  staggerUp,
14
11
  wordPop
15
12
  } from "./chunk-ZFEXATWN.js";
13
+ import {
14
+ resolveFitFontSize
15
+ } from "./chunk-XHGZ2E77.js";
16
16
 
17
17
  // ../execution/primitives/src/hero-text/HeroText.tsx
18
18
  import { useCurrentFrame, useVideoConfig } from "remotion";
@@ -1,6 +1,3 @@
1
- import {
2
- FitText
3
- } from "./chunk-XHGZ2E77.js";
4
1
  import {
5
2
  ACCENT,
6
3
  ACCENT_STRONG,
@@ -15,6 +12,9 @@ import {
15
12
  VIOLET,
16
13
  WARNING
17
14
  } from "./chunk-CX2IIQ4R.js";
15
+ import {
16
+ FitText
17
+ } from "./chunk-XHGZ2E77.js";
18
18
 
19
19
  // ../execution/primitives/src/effects/blur/index.tsx
20
20
  import React2 from "react";
@@ -7,10 +7,6 @@ import {
7
7
  import {
8
8
  FLOOR_SHADOW
9
9
  } from "./chunk-EMGFZ3PR.js";
10
- import {
11
- FitText,
12
- resolveFitFontSize
13
- } from "./chunk-XHGZ2E77.js";
14
10
  import {
15
11
  ACCENT,
16
12
  ACCENT_DEEP,
@@ -41,6 +37,10 @@ import {
41
37
  VIOLET,
42
38
  WARNING
43
39
  } from "./chunk-CX2IIQ4R.js";
40
+ import {
41
+ FitText,
42
+ resolveFitFontSize
43
+ } from "./chunk-XHGZ2E77.js";
44
44
 
45
45
  // ../execution/primitives/src/ui-blocks/glass-code-block/index.tsx
46
46
  import { Sequence, interpolate, useCurrentFrame } from "remotion";
@@ -1,10 +1,10 @@
1
- import {
2
- DashboardPopulate
3
- } from "./chunk-ZSZABOE5.js";
4
1
  import {
5
2
  frostedGlassWipe,
6
3
  spatialPush
7
4
  } from "./chunk-QGAWDLYX.js";
5
+ import {
6
+ DashboardPopulate
7
+ } from "./chunk-ZSZABOE5.js";
8
8
  import {
9
9
  ACCENT_SOFT,
10
10
  BG,
@@ -1,6 +1,3 @@
1
- import {
2
- resolveFitFontSize
3
- } from "./chunk-XHGZ2E77.js";
4
1
  import {
5
2
  ACCENT,
6
3
  ACCENT_SOFT,
@@ -19,6 +16,9 @@ import {
19
16
  VIOLET,
20
17
  WARNING
21
18
  } from "./chunk-CX2IIQ4R.js";
19
+ import {
20
+ resolveFitFontSize
21
+ } from "./chunk-XHGZ2E77.js";
22
22
 
23
23
  // ../execution/primitives/src/backgrounds/animated-bar-chart/index.tsx
24
24
  import { spring, useCurrentFrame, useVideoConfig } from "remotion";