framefields 2.1.1 → 2.1.2

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/README.md CHANGED
@@ -6,6 +6,8 @@
6
6
 
7
7
  **Compositing, motion graphics and 3D for code-first video — one npm package that AI agents drive with code.**
8
8
 
9
+ [**framefields.dev**](https://framefields.dev/)
10
+
9
11
  [![npm](https://img.shields.io/badge/npm-framefields-cb3837?logo=npm&logoColor=white)](https://www.npmjs.com/package/framefields)
10
12
  [![license](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://github.com/gatewai-dev/framefields/blob/main/LICENCE)
11
13
  [![status](https://img.shields.io/badge/status-beta-orange.svg)](#)
@@ -736,6 +738,7 @@ docker build -t framefields-renderer -f Dockerfile.renderer .
736
738
 
737
739
  ## Community
738
740
 
741
+ - **Website:** [framefields.dev](https://framefields.dev/)
739
742
  - **Discord:** ask questions, share renders, and follow development at [discord.gg/cbqMGGme5](https://discord.gg/cbqMGGme5).
740
743
  - **YouTube:** watch films made with framefields on [@gatewai.studio](https://www.youtube.com/@gatewai.studio).
741
744
 
package/dist/index.d.mts CHANGED
@@ -61,9 +61,9 @@ declare function parseMarkup(markup: string): TextSpan[];
61
61
 
62
62
  /** number px | "auto" (intrinsic) | "fit" (shrink-wrap) | "fill" (parent extent). */
63
63
  declare const SizeSpecSchema: z.ZodUnion<readonly [z.ZodNumber, z.ZodEnum<{
64
- fill: "fill";
65
64
  auto: "auto";
66
65
  fit: "fit";
66
+ fill: "fill";
67
67
  }>, z.ZodCustom<unknown, unknown>]>;
68
68
  type SizeSpec = z.infer<typeof SizeSpecSchema>;
69
69
  declare const ShapeTypeSchema: z.ZodEnum<{
@@ -77,39 +77,39 @@ declare const ShapeTypeSchema: z.ZodEnum<{
77
77
  }>;
78
78
  type ShapeType = z.infer<typeof ShapeTypeSchema>;
79
79
  declare const AnimatablePropSchema: z.ZodEnum<{
80
+ fill: "fill";
80
81
  x: "x";
81
82
  y: "y";
82
- width: "width";
83
- height: "height";
84
- rotation: "rotation";
85
83
  scale: "scale";
84
+ rotation: "rotation";
86
85
  opacity: "opacity";
87
- trimStart: "trimStart";
88
- trimEnd: "trimEnd";
89
- text: "text";
90
- fontSize: "fontSize";
91
- fill: "fill";
92
- letterSpacing: "letterSpacing";
93
- padding: "padding";
94
- strokeWidth: "strokeWidth";
95
- borderColor: "borderColor";
96
- borderWidth: "borderWidth";
86
+ width: "width";
87
+ height: "height";
97
88
  volume: "volume";
98
- color: "color";
99
- offset: "offset";
100
89
  hidden: "hidden";
101
90
  muted: "muted";
102
91
  gap: "gap";
92
+ padding: "padding";
103
93
  borderRadius: "borderRadius";
94
+ fontSize: "fontSize";
95
+ text: "text";
96
+ color: "color";
97
+ letterSpacing: "letterSpacing";
98
+ trimStart: "trimStart";
99
+ trimEnd: "trimEnd";
104
100
  trimOffset: "trimOffset";
101
+ strokeWidth: "strokeWidth";
105
102
  strokeDashOffset: "strokeDashOffset";
106
103
  cornerRadius: "cornerRadius";
107
104
  starInnerRadiusRatio: "starInnerRadiusRatio";
108
105
  fillColor: "fillColor";
109
106
  strokeColor: "strokeColor";
107
+ borderColor: "borderColor";
108
+ borderWidth: "borderWidth";
110
109
  motionBlurShutter: "motionBlurShutter";
111
110
  rangeStart: "rangeStart";
112
111
  rangeEnd: "rangeEnd";
112
+ offset: "offset";
113
113
  animatorRangeStart: "animatorRangeStart";
114
114
  animatorRangeEnd: "animatorRangeEnd";
115
115
  animatorOffset: "animatorOffset";
@@ -190,7 +190,6 @@ declare const MaterialTypeSchema: z.ZodEnum<{
190
190
  type MaterialType = z.infer<typeof MaterialTypeSchema>;
191
191
  declare const EaseRefSchema: z.ZodObject<{
192
192
  name: z.ZodEnum<{
193
- bounce: "bounce";
194
193
  none: "none";
195
194
  power1: "power1";
196
195
  power2: "power2";
@@ -200,13 +199,14 @@ declare const EaseRefSchema: z.ZodObject<{
200
199
  expo: "expo";
201
200
  back: "back";
202
201
  elastic: "elastic";
202
+ bounce: "bounce";
203
203
  spring: "spring";
204
204
  cubic: "cubic";
205
205
  hold: "hold";
206
206
  }>;
207
207
  dir: z.ZodEnum<{
208
- out: "out";
209
208
  in: "in";
209
+ out: "out";
210
210
  inOut: "inOut";
211
211
  }>;
212
212
  params: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
@@ -218,7 +218,6 @@ declare const KeyframeSchema: z.ZodObject<{
218
218
  value: z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString]>;
219
219
  ease: z.ZodOptional<z.ZodObject<{
220
220
  name: z.ZodEnum<{
221
- bounce: "bounce";
222
221
  none: "none";
223
222
  power1: "power1";
224
223
  power2: "power2";
@@ -228,13 +227,14 @@ declare const KeyframeSchema: z.ZodObject<{
228
227
  expo: "expo";
229
228
  back: "back";
230
229
  elastic: "elastic";
230
+ bounce: "bounce";
231
231
  spring: "spring";
232
232
  cubic: "cubic";
233
233
  hold: "hold";
234
234
  }>;
235
235
  dir: z.ZodEnum<{
236
- out: "out";
237
236
  in: "in";
237
+ out: "out";
238
238
  inOut: "inOut";
239
239
  }>;
240
240
  params: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
@@ -291,39 +291,39 @@ type TrackSource = z.infer<typeof RawTrackSourceSchema>;
291
291
  declare const AnimationTrackSchema: z.ZodObject<{
292
292
  id: z.ZodString;
293
293
  prop: z.ZodEnum<{
294
+ fill: "fill";
294
295
  x: "x";
295
296
  y: "y";
296
- width: "width";
297
- height: "height";
298
- rotation: "rotation";
299
297
  scale: "scale";
298
+ rotation: "rotation";
300
299
  opacity: "opacity";
301
- trimStart: "trimStart";
302
- trimEnd: "trimEnd";
303
- text: "text";
304
- fontSize: "fontSize";
305
- fill: "fill";
306
- letterSpacing: "letterSpacing";
307
- padding: "padding";
308
- strokeWidth: "strokeWidth";
309
- borderColor: "borderColor";
310
- borderWidth: "borderWidth";
300
+ width: "width";
301
+ height: "height";
311
302
  volume: "volume";
312
- color: "color";
313
- offset: "offset";
314
303
  hidden: "hidden";
315
304
  muted: "muted";
316
305
  gap: "gap";
306
+ padding: "padding";
317
307
  borderRadius: "borderRadius";
308
+ fontSize: "fontSize";
309
+ text: "text";
310
+ color: "color";
311
+ letterSpacing: "letterSpacing";
312
+ trimStart: "trimStart";
313
+ trimEnd: "trimEnd";
318
314
  trimOffset: "trimOffset";
315
+ strokeWidth: "strokeWidth";
319
316
  strokeDashOffset: "strokeDashOffset";
320
317
  cornerRadius: "cornerRadius";
321
318
  starInnerRadiusRatio: "starInnerRadiusRatio";
322
319
  fillColor: "fillColor";
323
320
  strokeColor: "strokeColor";
321
+ borderColor: "borderColor";
322
+ borderWidth: "borderWidth";
324
323
  motionBlurShutter: "motionBlurShutter";
325
324
  rangeStart: "rangeStart";
326
325
  rangeEnd: "rangeEnd";
326
+ offset: "offset";
327
327
  animatorRangeStart: "animatorRangeStart";
328
328
  animatorRangeEnd: "animatorRangeEnd";
329
329
  animatorOffset: "animatorOffset";
@@ -426,7 +426,6 @@ declare const AnimationTrackSchema: z.ZodObject<{
426
426
  value: z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString]>;
427
427
  ease: z.ZodOptional<z.ZodObject<{
428
428
  name: z.ZodEnum<{
429
- bounce: "bounce";
430
429
  none: "none";
431
430
  power1: "power1";
432
431
  power2: "power2";
@@ -436,13 +435,14 @@ declare const AnimationTrackSchema: z.ZodObject<{
436
435
  expo: "expo";
437
436
  back: "back";
438
437
  elastic: "elastic";
438
+ bounce: "bounce";
439
439
  spring: "spring";
440
440
  cubic: "cubic";
441
441
  hold: "hold";
442
442
  }>;
443
443
  dir: z.ZodEnum<{
444
- out: "out";
445
444
  in: "in";
445
+ out: "out";
446
446
  inOut: "inOut";
447
447
  }>;
448
448
  params: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
@@ -467,39 +467,39 @@ declare const LayerAnimationSchema: z.ZodObject<{
467
467
  tracks: z.ZodArray<z.ZodObject<{
468
468
  id: z.ZodString;
469
469
  prop: z.ZodEnum<{
470
+ fill: "fill";
470
471
  x: "x";
471
472
  y: "y";
472
- width: "width";
473
- height: "height";
474
- rotation: "rotation";
475
473
  scale: "scale";
474
+ rotation: "rotation";
476
475
  opacity: "opacity";
477
- trimStart: "trimStart";
478
- trimEnd: "trimEnd";
479
- text: "text";
480
- fontSize: "fontSize";
481
- fill: "fill";
482
- letterSpacing: "letterSpacing";
483
- padding: "padding";
484
- strokeWidth: "strokeWidth";
485
- borderColor: "borderColor";
486
- borderWidth: "borderWidth";
476
+ width: "width";
477
+ height: "height";
487
478
  volume: "volume";
488
- color: "color";
489
- offset: "offset";
490
479
  hidden: "hidden";
491
480
  muted: "muted";
492
481
  gap: "gap";
482
+ padding: "padding";
493
483
  borderRadius: "borderRadius";
484
+ fontSize: "fontSize";
485
+ text: "text";
486
+ color: "color";
487
+ letterSpacing: "letterSpacing";
488
+ trimStart: "trimStart";
489
+ trimEnd: "trimEnd";
494
490
  trimOffset: "trimOffset";
491
+ strokeWidth: "strokeWidth";
495
492
  strokeDashOffset: "strokeDashOffset";
496
493
  cornerRadius: "cornerRadius";
497
494
  starInnerRadiusRatio: "starInnerRadiusRatio";
498
495
  fillColor: "fillColor";
499
496
  strokeColor: "strokeColor";
497
+ borderColor: "borderColor";
498
+ borderWidth: "borderWidth";
500
499
  motionBlurShutter: "motionBlurShutter";
501
500
  rangeStart: "rangeStart";
502
501
  rangeEnd: "rangeEnd";
502
+ offset: "offset";
503
503
  animatorRangeStart: "animatorRangeStart";
504
504
  animatorRangeEnd: "animatorRangeEnd";
505
505
  animatorOffset: "animatorOffset";
@@ -602,7 +602,6 @@ declare const LayerAnimationSchema: z.ZodObject<{
602
602
  value: z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString]>;
603
603
  ease: z.ZodOptional<z.ZodObject<{
604
604
  name: z.ZodEnum<{
605
- bounce: "bounce";
606
605
  none: "none";
607
606
  power1: "power1";
608
607
  power2: "power2";
@@ -612,13 +611,14 @@ declare const LayerAnimationSchema: z.ZodObject<{
612
611
  expo: "expo";
613
612
  back: "back";
614
613
  elastic: "elastic";
614
+ bounce: "bounce";
615
615
  spring: "spring";
616
616
  cubic: "cubic";
617
617
  hold: "hold";
618
618
  }>;
619
619
  dir: z.ZodEnum<{
620
- out: "out";
621
620
  in: "in";
621
+ out: "out";
622
622
  inOut: "inOut";
623
623
  }>;
624
624
  params: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
@@ -1169,8 +1169,8 @@ declare const CompositorProgramSchema: z.ZodObject<{
1169
1169
  volume: z.ZodDefault<z.ZodNumber>;
1170
1170
  fps: z.ZodDefault<z.ZodNumber>;
1171
1171
  mode: z.ZodDefault<z.ZodEnum<{
1172
- Image: "Image";
1173
1172
  Video: "Video";
1173
+ Image: "Image";
1174
1174
  }>>;
1175
1175
  antialias3d: z.ZodOptional<z.ZodBoolean>;
1176
1176
  layout: z.ZodDefault<z.ZodArray<z.ZodType<LayoutNode, unknown, z.core.$ZodTypeInternals<LayoutNode, unknown>>>>;