@microfox/remotion 1.0.1 → 1.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 4ab0a10: update dependencies
8
+
3
9
  ## 1.0.1
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -294,30 +294,14 @@ declare const VideoAtomDataProps: z.ZodObject<{
294
294
  volume: z.ZodOptional<z.ZodNumber>;
295
295
  muted: z.ZodOptional<z.ZodBoolean>;
296
296
  loop: z.ZodOptional<z.ZodBoolean>;
297
- fit: z.ZodOptional<z.ZodEnum<["contain", "cover", "fill", "none", "scale-down"]>>;
298
- }, "strip", z.ZodTypeAny, {
299
- style?: Record<string, any>;
300
- className?: string;
301
- src?: string;
302
- startFrom?: number;
303
- endAt?: number;
304
- playbackRate?: number;
305
- volume?: number;
306
- muted?: boolean;
307
- loop?: boolean;
308
- fit?: "fill" | "none" | "contain" | "cover" | "scale-down";
309
- }, {
310
- style?: Record<string, any>;
311
- className?: string;
312
- src?: string;
313
- startFrom?: number;
314
- endAt?: number;
315
- playbackRate?: number;
316
- volume?: number;
317
- muted?: boolean;
318
- loop?: boolean;
319
- fit?: "fill" | "none" | "contain" | "cover" | "scale-down";
320
- }>;
297
+ fit: z.ZodOptional<z.ZodEnum<{
298
+ fill: "fill";
299
+ none: "none";
300
+ contain: "contain";
301
+ cover: "cover";
302
+ "scale-down": "scale-down";
303
+ }>>;
304
+ }, z.core.$strip>;
321
305
  type VideoAtomDataProps = z.infer<typeof VideoAtomDataProps>;
322
306
  /**
323
307
  * Props interface for the VideoAtom component
@@ -347,73 +331,17 @@ declare const AudioAtomDataProps: z.ZodObject<{
347
331
  endAt: z.ZodOptional<z.ZodNumber>;
348
332
  volume: z.ZodOptional<z.ZodNumber>;
349
333
  playbackRate: z.ZodOptional<z.ZodNumber>;
350
- muted: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
334
+ muted: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
351
335
  type: z.ZodLiteral<"full">;
352
336
  value: z.ZodBoolean;
353
- }, "strip", z.ZodTypeAny, {
354
- type?: "full";
355
- value?: boolean;
356
- }, {
357
- type?: "full";
358
- value?: boolean;
359
- }>, z.ZodObject<{
337
+ }, z.core.$strip>, z.ZodObject<{
360
338
  type: z.ZodLiteral<"range">;
361
339
  values: z.ZodArray<z.ZodObject<{
362
340
  start: z.ZodNumber;
363
341
  end: z.ZodNumber;
364
- }, "strip", z.ZodTypeAny, {
365
- start?: number;
366
- end?: number;
367
- }, {
368
- start?: number;
369
- end?: number;
370
- }>, "many">;
371
- }, "strip", z.ZodTypeAny, {
372
- type?: "range";
373
- values?: {
374
- start?: number;
375
- end?: number;
376
- }[];
377
- }, {
378
- type?: "range";
379
- values?: {
380
- start?: number;
381
- end?: number;
382
- }[];
383
- }>]>>;
384
- }, "strip", z.ZodTypeAny, {
385
- src?: string;
386
- startFrom?: number;
387
- endAt?: number;
388
- playbackRate?: number;
389
- volume?: number;
390
- muted?: {
391
- type?: "range";
392
- values?: {
393
- start?: number;
394
- end?: number;
395
- }[];
396
- } | {
397
- type?: "full";
398
- value?: boolean;
399
- };
400
- }, {
401
- src?: string;
402
- startFrom?: number;
403
- endAt?: number;
404
- playbackRate?: number;
405
- volume?: number;
406
- muted?: {
407
- type?: "range";
408
- values?: {
409
- start?: number;
410
- end?: number;
411
- }[];
412
- } | {
413
- type?: "full";
414
- value?: boolean;
415
- };
416
- }>;
342
+ }, z.core.$strip>>;
343
+ }, z.core.$strip>]>>;
344
+ }, z.core.$strip>;
417
345
  type AudioAtomDataProps = z.infer<typeof AudioAtomDataProps>;
418
346
  /**
419
347
  * Props interface for the AudioAtom component
@@ -552,7 +480,7 @@ declare const useBoundaryCalculation: ({ parentBoundaries, constraints, layout,
552
480
  zIndex: number;
553
481
  };
554
482
 
555
- declare function buildLayoutHook<T extends z.ZodSchema>(schema: T, defaultValue: z.infer<T>): () => any;
483
+ declare function buildLayoutHook<T extends z.ZodSchema>(schema: T, defaultValue: z.infer<T>): () => z.core.output<T>;
556
484
 
557
485
  interface FontConfig {
558
486
  family: string;
@@ -723,14 +651,11 @@ interface LayoutProps$1 extends BaseRenderableProps {
723
651
  declare const RippleOutTransitionSchema: z.ZodObject<{
724
652
  progress: z.ZodNumber;
725
653
  logoOut: z.ZodNumber;
726
- }, "strip", z.ZodTypeAny, {
727
- progress?: number;
728
- logoOut?: number;
729
- }, {
730
- progress?: number;
731
- logoOut?: number;
732
- }>;
733
- declare const useRippleOutLayout: () => any;
654
+ }, z.core.$strip>;
655
+ declare const useRippleOutLayout: () => {
656
+ progress: number;
657
+ logoOut: number;
658
+ };
734
659
  type RippleOutTransitionData = z.infer<typeof RippleOutTransitionSchema>;
735
660
  declare const RippleOutLayout: React__default.FC<LayoutProps$1>;
736
661
  declare const rippleOutLayoutConfig: ComponentConfig;
package/dist/index.d.ts CHANGED
@@ -294,30 +294,14 @@ declare const VideoAtomDataProps: z.ZodObject<{
294
294
  volume: z.ZodOptional<z.ZodNumber>;
295
295
  muted: z.ZodOptional<z.ZodBoolean>;
296
296
  loop: z.ZodOptional<z.ZodBoolean>;
297
- fit: z.ZodOptional<z.ZodEnum<["contain", "cover", "fill", "none", "scale-down"]>>;
298
- }, "strip", z.ZodTypeAny, {
299
- style?: Record<string, any>;
300
- className?: string;
301
- src?: string;
302
- startFrom?: number;
303
- endAt?: number;
304
- playbackRate?: number;
305
- volume?: number;
306
- muted?: boolean;
307
- loop?: boolean;
308
- fit?: "fill" | "none" | "contain" | "cover" | "scale-down";
309
- }, {
310
- style?: Record<string, any>;
311
- className?: string;
312
- src?: string;
313
- startFrom?: number;
314
- endAt?: number;
315
- playbackRate?: number;
316
- volume?: number;
317
- muted?: boolean;
318
- loop?: boolean;
319
- fit?: "fill" | "none" | "contain" | "cover" | "scale-down";
320
- }>;
297
+ fit: z.ZodOptional<z.ZodEnum<{
298
+ fill: "fill";
299
+ none: "none";
300
+ contain: "contain";
301
+ cover: "cover";
302
+ "scale-down": "scale-down";
303
+ }>>;
304
+ }, z.core.$strip>;
321
305
  type VideoAtomDataProps = z.infer<typeof VideoAtomDataProps>;
322
306
  /**
323
307
  * Props interface for the VideoAtom component
@@ -347,73 +331,17 @@ declare const AudioAtomDataProps: z.ZodObject<{
347
331
  endAt: z.ZodOptional<z.ZodNumber>;
348
332
  volume: z.ZodOptional<z.ZodNumber>;
349
333
  playbackRate: z.ZodOptional<z.ZodNumber>;
350
- muted: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
334
+ muted: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
351
335
  type: z.ZodLiteral<"full">;
352
336
  value: z.ZodBoolean;
353
- }, "strip", z.ZodTypeAny, {
354
- type?: "full";
355
- value?: boolean;
356
- }, {
357
- type?: "full";
358
- value?: boolean;
359
- }>, z.ZodObject<{
337
+ }, z.core.$strip>, z.ZodObject<{
360
338
  type: z.ZodLiteral<"range">;
361
339
  values: z.ZodArray<z.ZodObject<{
362
340
  start: z.ZodNumber;
363
341
  end: z.ZodNumber;
364
- }, "strip", z.ZodTypeAny, {
365
- start?: number;
366
- end?: number;
367
- }, {
368
- start?: number;
369
- end?: number;
370
- }>, "many">;
371
- }, "strip", z.ZodTypeAny, {
372
- type?: "range";
373
- values?: {
374
- start?: number;
375
- end?: number;
376
- }[];
377
- }, {
378
- type?: "range";
379
- values?: {
380
- start?: number;
381
- end?: number;
382
- }[];
383
- }>]>>;
384
- }, "strip", z.ZodTypeAny, {
385
- src?: string;
386
- startFrom?: number;
387
- endAt?: number;
388
- playbackRate?: number;
389
- volume?: number;
390
- muted?: {
391
- type?: "range";
392
- values?: {
393
- start?: number;
394
- end?: number;
395
- }[];
396
- } | {
397
- type?: "full";
398
- value?: boolean;
399
- };
400
- }, {
401
- src?: string;
402
- startFrom?: number;
403
- endAt?: number;
404
- playbackRate?: number;
405
- volume?: number;
406
- muted?: {
407
- type?: "range";
408
- values?: {
409
- start?: number;
410
- end?: number;
411
- }[];
412
- } | {
413
- type?: "full";
414
- value?: boolean;
415
- };
416
- }>;
342
+ }, z.core.$strip>>;
343
+ }, z.core.$strip>]>>;
344
+ }, z.core.$strip>;
417
345
  type AudioAtomDataProps = z.infer<typeof AudioAtomDataProps>;
418
346
  /**
419
347
  * Props interface for the AudioAtom component
@@ -552,7 +480,7 @@ declare const useBoundaryCalculation: ({ parentBoundaries, constraints, layout,
552
480
  zIndex: number;
553
481
  };
554
482
 
555
- declare function buildLayoutHook<T extends z.ZodSchema>(schema: T, defaultValue: z.infer<T>): () => any;
483
+ declare function buildLayoutHook<T extends z.ZodSchema>(schema: T, defaultValue: z.infer<T>): () => z.core.output<T>;
556
484
 
557
485
  interface FontConfig {
558
486
  family: string;
@@ -723,14 +651,11 @@ interface LayoutProps$1 extends BaseRenderableProps {
723
651
  declare const RippleOutTransitionSchema: z.ZodObject<{
724
652
  progress: z.ZodNumber;
725
653
  logoOut: z.ZodNumber;
726
- }, "strip", z.ZodTypeAny, {
727
- progress?: number;
728
- logoOut?: number;
729
- }, {
730
- progress?: number;
731
- logoOut?: number;
732
- }>;
733
- declare const useRippleOutLayout: () => any;
654
+ }, z.core.$strip>;
655
+ declare const useRippleOutLayout: () => {
656
+ progress: number;
657
+ logoOut: number;
658
+ };
734
659
  type RippleOutTransitionData = z.infer<typeof RippleOutTransitionSchema>;
735
660
  declare const RippleOutLayout: React__default.FC<LayoutProps$1>;
736
661
  declare const rippleOutLayoutConfig: ComponentConfig;
package/dist/index.js CHANGED
@@ -953,7 +953,7 @@ var import_zod = require("zod");
953
953
  var VideoAtomDataProps = import_zod.z.object({
954
954
  src: import_zod.z.string(),
955
955
  // Video source URL
956
- style: import_zod.z.record(import_zod.z.any()).optional(),
956
+ style: import_zod.z.record(import_zod.z.string(), import_zod.z.any()).optional(),
957
957
  // CSS styles object
958
958
  className: import_zod.z.string().optional(),
959
959
  // CSS class names
@@ -992,22 +992,19 @@ var Atom4 = ({ data }) => {
992
992
  const objectFit = data.fit ? { objectFit: data.fit } : {};
993
993
  return { ...baseStyle, ...objectFit };
994
994
  }, [data.style, data.fit]);
995
- return (
996
- // @ts-ignore
997
- /* @__PURE__ */ import_react11.default.createElement(
998
- import_remotion7.Video,
999
- {
1000
- className: data.className,
1001
- src: source,
1002
- style: combinedStyle,
1003
- trimBefore,
1004
- trimAfter,
1005
- playbackRate: data.playbackRate,
1006
- volume: data.volume,
1007
- muted: data.muted,
1008
- loop: data.loop
1009
- }
1010
- )
995
+ return /* @__PURE__ */ import_react11.default.createElement(
996
+ import_remotion7.Video,
997
+ {
998
+ className: data.className,
999
+ src: source,
1000
+ style: combinedStyle,
1001
+ trimBefore,
1002
+ trimAfter,
1003
+ playbackRate: data.playbackRate,
1004
+ volume: data.volume,
1005
+ muted: data.muted,
1006
+ loop: data.loop
1007
+ }
1011
1008
  );
1012
1009
  };
1013
1010
  var config5 = {