@cliquify.me/elements-ui 8.0.3

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 (115) hide show
  1. package/LICENSE +46 -0
  2. package/dist/animated/Animated.d.ts +16 -0
  3. package/dist/animated/animated-text.d.ts +16 -0
  4. package/dist/animated/index.d.ts +5 -0
  5. package/dist/animated/keyframe-presets.d.ts +21 -0
  6. package/dist/animated/presets.d.ts +5 -0
  7. package/dist/animated/text-animated-full.d.ts +23 -0
  8. package/dist/animated/text-animated-types/animations-in/background-in.d.ts +9 -0
  9. package/dist/animated/text-animated-types/animations-in/beatiful-question-in.d.ts +9 -0
  10. package/dist/animated/text-animated-types/animations-in/count-down-in.d.ts +9 -0
  11. package/dist/animated/text-animated-types/animations-in/descompress-in.d.ts +8 -0
  12. package/dist/animated/text-animated-types/animations-in/domino-dreams-in.d.ts +9 -0
  13. package/dist/animated/text-animated-types/animations-in/drop-in.d.ts +8 -0
  14. package/dist/animated/text-animated-types/animations-in/great-thinkers-in.d.ts +9 -0
  15. package/dist/animated/text-animated-types/animations-in/made-with-love-in.d.ts +9 -0
  16. package/dist/animated/text-animated-types/animations-in/partial-slide-in.d.ts +10 -0
  17. package/dist/animated/text-animated-types/animations-in/reality-is-broken-in.d.ts +9 -0
  18. package/dist/animated/text-animated-types/animations-in/rising-strong-in.d.ts +8 -0
  19. package/dist/animated/text-animated-types/animations-in/sound-wave-in.d.ts +9 -0
  20. package/dist/animated/text-animated-types/animations-in/sunny-mornings-in.d.ts +9 -0
  21. package/dist/animated/text-animated-types/animations-in/text-animated-in.d.ts +9 -0
  22. package/dist/animated/text-animated-types/animations-in/type-writer-in.d.ts +8 -0
  23. package/dist/animated/text-animated-types/animations-loop/billboard.d.ts +6 -0
  24. package/dist/animated/text-animated-types/animations-loop/card-flip-container.d.ts +24 -0
  25. package/dist/animated/text-animated-types/animations-loop/dragonfly.d.ts +6 -0
  26. package/dist/animated/text-animated-types/animations-loop/font-change.d.ts +12 -0
  27. package/dist/animated/text-animated-types/animations-loop/glitch.d.ts +5 -0
  28. package/dist/animated/text-animated-types/animations-loop/heartbeat.d.ts +6 -0
  29. package/dist/animated/text-animated-types/animations-loop/image-card-flip.d.ts +47 -0
  30. package/dist/animated/text-animated-types/animations-loop/image-grid-marquee.d.ts +42 -0
  31. package/dist/animated/text-animated-types/animations-loop/image-inward-echoes.d.ts +40 -0
  32. package/dist/animated/text-animated-types/animations-loop/image-noise-tile.d.ts +65 -0
  33. package/dist/animated/text-animated-types/animations-loop/image-wiggle.d.ts +41 -0
  34. package/dist/animated/text-animated-types/animations-loop/pulse.d.ts +9 -0
  35. package/dist/animated/text-animated-types/animations-loop/rotate-3d.d.ts +6 -0
  36. package/dist/animated/text-animated-types/animations-loop/shake-text.d.ts +5 -0
  37. package/dist/animated/text-animated-types/animations-loop/shaky-letters-text.d.ts +6 -0
  38. package/dist/animated/text-animated-types/animations-loop/spin.d.ts +6 -0
  39. package/dist/animated/text-animated-types/animations-loop/text-card-flip.d.ts +17 -0
  40. package/dist/animated/text-animated-types/animations-loop/text-grid-marquee.d.ts +17 -0
  41. package/dist/animated/text-animated-types/animations-loop/text-inward-echoes.d.ts +17 -0
  42. package/dist/animated/text-animated-types/animations-loop/text-noise-tile.d.ts +17 -0
  43. package/dist/animated/text-animated-types/animations-loop/text-wiggle.d.ts +17 -0
  44. package/dist/animated/text-animated-types/animations-loop/vintage.d.ts +10 -0
  45. package/dist/animated/text-animated-types/animations-loop/vogue.d.ts +7 -0
  46. package/dist/animated/text-animated-types/animations-loop/wave.d.ts +7 -0
  47. package/dist/animated/text-animated-types/animations-out/background-out.d.ts +11 -0
  48. package/dist/animated/text-animated-types/animations-out/beatiful-question-out.d.ts +10 -0
  49. package/dist/animated/text-animated-types/animations-out/descompress-out.d.ts +9 -0
  50. package/dist/animated/text-animated-types/animations-out/domino-dreams-out.d.ts +10 -0
  51. package/dist/animated/text-animated-types/animations-out/drop-out.d.ts +9 -0
  52. package/dist/animated/text-animated-types/animations-out/great-thinkers-out.d.ts +10 -0
  53. package/dist/animated/text-animated-types/animations-out/made-with-love-out.d.ts +10 -0
  54. package/dist/animated/text-animated-types/animations-out/partial-slide-out.d.ts +11 -0
  55. package/dist/animated/text-animated-types/animations-out/reality-is-broken-out.d.ts +10 -0
  56. package/dist/animated/text-animated-types/animations-out/sunny-mornings-out.d.ts +10 -0
  57. package/dist/animated/text-animated-types/animations-out/text-animated-out.d.ts +10 -0
  58. package/dist/animated/text-animated-types/animations-out/type-writer-out.d.ts +10 -0
  59. package/dist/animated/text-animated-types/generic-char-animation.d.ts +19 -0
  60. package/dist/animated/text-animated.d.ts +30 -0
  61. package/dist/animated/types.d.ts +43 -0
  62. package/dist/animated/useAnimation.d.ts +5 -0
  63. package/dist/animation/box.d.ts +27 -0
  64. package/dist/animation/content.d.ts +11 -0
  65. package/dist/animation/index.d.ts +4 -0
  66. package/dist/animation/mask.d.ts +8 -0
  67. package/dist/animation/presets.d.ts +5 -0
  68. package/dist/animation/types.d.ts +32 -0
  69. package/dist/animation/use-animation.d.ts +13 -0
  70. package/dist/base-sequence.d.ts +40 -0
  71. package/dist/index.d.ts +31 -0
  72. package/dist/index.es.js +6190 -0
  73. package/dist/items/audio-bars/audio-utils.d.ts +8 -0
  74. package/dist/items/audio-bars/bars-visualization.d.ts +26 -0
  75. package/dist/items/audio-bars/hill-audio-bars.d.ts +7 -0
  76. package/dist/items/audio-bars/hill-visualization.d.ts +20 -0
  77. package/dist/items/audio-bars/lineal-audio-bars.d.ts +7 -0
  78. package/dist/items/audio-bars/radial-audio-bars.d.ts +7 -0
  79. package/dist/items/audio-bars/radial-bars-visualization.d.ts +24 -0
  80. package/dist/items/audio-bars/wave-audio-bars.d.ts +7 -0
  81. package/dist/items/audio-bars/wave-visualization.d.ts +26 -0
  82. package/dist/items/audio.d.ts +7 -0
  83. package/dist/items/caption.d.ts +7 -0
  84. package/dist/items/circle.d.ts +8 -0
  85. package/dist/items/composition.d.ts +8 -0
  86. package/dist/items/ellipse.d.ts +8 -0
  87. package/dist/items/hill-audio-bars.d.ts +7 -0
  88. package/dist/items/illustration.d.ts +8 -0
  89. package/dist/items/image.d.ts +7 -0
  90. package/dist/items/index.d.ts +19 -0
  91. package/dist/items/lineal-audio-bars.d.ts +7 -0
  92. package/dist/items/polygon.d.ts +8 -0
  93. package/dist/items/progress-bar.d.ts +7 -0
  94. package/dist/items/progress-frame.d.ts +7 -0
  95. package/dist/items/progress-square.d.ts +7 -0
  96. package/dist/items/radial-audio-bars.d.ts +7 -0
  97. package/dist/items/rect.d.ts +8 -0
  98. package/dist/items/shape.d.ts +8 -0
  99. package/dist/items/star.d.ts +8 -0
  100. package/dist/items/template.d.ts +8 -0
  101. package/dist/items/text.d.ts +7 -0
  102. package/dist/items/triangle.d.ts +8 -0
  103. package/dist/items/video.d.ts +8 -0
  104. package/dist/items/wave-audio-bars.d.ts +7 -0
  105. package/dist/lib/audio-data.d.ts +22 -0
  106. package/dist/media-background.d.ts +16 -0
  107. package/dist/motion-text.d.ts +35 -0
  108. package/dist/utils/effects-mapper.d.ts +18 -0
  109. package/dist/utils/frames.d.ts +7 -0
  110. package/dist/utils/get-animations.d.ts +15 -0
  111. package/dist/utils/safe-html-in-canvas.d.ts +19 -0
  112. package/dist/utils/styles.d.ts +8 -0
  113. package/dist/utils/track-items.d.ts +9 -0
  114. package/dist/utils/use-current-frame.d.ts +6 -0
  115. package/package.json +57 -0
@@ -0,0 +1,8 @@
1
+ export declare const getRMS: (spectrum: number[]) => number;
2
+ export declare const toDecibel: (v: number) => number;
3
+ export declare const range: (v: number, min: number, max: number) => number;
4
+ export declare const clamp: (v: number, min: number, max: number) => number;
5
+ export declare const processAudioFftValue: (v: number, options: {
6
+ minDb?: number;
7
+ maxDb?: number;
8
+ }) => number;
@@ -0,0 +1,26 @@
1
+ import { CSSProperties } from 'react';
2
+
3
+ export declare const getBars: ({ totalWidth, itemWidth, frequencyData, maxDb, minDb }: {
4
+ totalWidth: number;
5
+ itemWidth: number;
6
+ frequencyData: number[];
7
+ maxDb?: number;
8
+ minDb?: number;
9
+ }) => number[];
10
+ interface BarsProps {
11
+ values: number[];
12
+ width?: number;
13
+ height?: number;
14
+ lineThickness?: number;
15
+ gapSize?: number;
16
+ roundness?: number;
17
+ placement?: "over" | "under" | "middle";
18
+ color?: CSSProperties["color"];
19
+ maxAmplitude?: number;
20
+ }
21
+ export declare const BarsVisualization: React.FC<Omit<BarsProps, "values"> & {
22
+ frequencyData: number[];
23
+ maxDb?: number;
24
+ minDb?: number;
25
+ }>;
26
+ export {};
@@ -0,0 +1,7 @@
1
+ import { IHillAudioBars } from '@cliquify.me/types';
2
+ import { SequenceItemOptions } from '../../base-sequence';
3
+
4
+ export declare const HillBars: ({ item, options }: {
5
+ item: IHillAudioBars;
6
+ options: SequenceItemOptions;
7
+ }) => import("react").JSX.Element;
@@ -0,0 +1,20 @@
1
+ import { default as React, CSSProperties } from 'react';
2
+
3
+ interface HillsProps {
4
+ values: number[];
5
+ width?: number;
6
+ height?: number;
7
+ fillColor?: CSSProperties["fill"] | Array<CSSProperties["fill"]>;
8
+ strokeWidth?: number;
9
+ strokeColor?: CSSProperties["stroke"] | Array<CSSProperties["stroke"]>;
10
+ blendMode?: CSSProperties["mixBlendMode"];
11
+ placement?: "over" | "under" | "middle";
12
+ copies?: number;
13
+ }
14
+ export declare const Hills: React.FC<HillsProps>;
15
+ export declare const HillsVisualization: React.FC<Omit<HillsProps, "values"> & {
16
+ frequencyData: number[];
17
+ maxDb?: number;
18
+ minDb?: number;
19
+ }>;
20
+ export {};
@@ -0,0 +1,7 @@
1
+ import { ILinealAudioBars } from '@cliquify.me/types';
2
+ import { SequenceItemOptions } from '../../base-sequence';
3
+
4
+ export declare const LinealBars: ({ item, options }: {
5
+ item: ILinealAudioBars;
6
+ options: SequenceItemOptions;
7
+ }) => import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { IRadialAudioBars } from '@cliquify.me/types';
2
+ import { SequenceItemOptions } from '../../base-sequence';
3
+
4
+ export declare const RadialBars: ({ item, options }: {
5
+ item: IRadialAudioBars;
6
+ options: SequenceItemOptions;
7
+ }) => import("react").JSX.Element;
@@ -0,0 +1,24 @@
1
+ import { CSSProperties } from 'react';
2
+
3
+ interface BaseRadialBarsProps {
4
+ innerRadius: number;
5
+ lineThickness?: number;
6
+ barOrigin?: "outer" | "inner" | "middle";
7
+ roundness?: number;
8
+ color?: CSSProperties["color"];
9
+ maxAmplitude?: number;
10
+ }
11
+ interface RadialBarsProps extends BaseRadialBarsProps {
12
+ values: number[];
13
+ radius: number;
14
+ }
15
+ export declare const RadialBars: React.FC<RadialBarsProps>;
16
+ interface RadialBarsVisualizationProps extends BaseRadialBarsProps {
17
+ frequencyData: number[];
18
+ maxDb?: number;
19
+ minDb?: number;
20
+ diameter: number;
21
+ gapSize?: number;
22
+ }
23
+ export declare const RadialBarsVisualization: React.FC<RadialBarsVisualizationProps>;
24
+ export {};
@@ -0,0 +1,7 @@
1
+ import { IWaveAudioBars } from '@cliquify.me/types';
2
+ import { SequenceItemOptions } from '../../base-sequence';
3
+
4
+ export declare const WaveBars: ({ item, options }: {
5
+ item: IWaveAudioBars;
6
+ options: SequenceItemOptions;
7
+ }) => import("react").JSX.Element;
@@ -0,0 +1,26 @@
1
+ import { default as React } from 'react';
2
+
3
+ interface BaseWaveProps {
4
+ sections?: number;
5
+ width: number;
6
+ height: number;
7
+ lines?: number;
8
+ lineGap?: number;
9
+ lineColor?: string | string[];
10
+ lineThickness?: number;
11
+ topRoundness?: number;
12
+ bottomRoundness?: number;
13
+ }
14
+ interface WaveProps extends BaseWaveProps {
15
+ offsetPixels: number;
16
+ amplitude: number;
17
+ }
18
+ export declare const Wave: React.FC<WaveProps>;
19
+ interface WaveVisualizationProps extends BaseWaveProps {
20
+ frequencyData: number[];
21
+ offsetPixelSpeed?: number;
22
+ maxDb?: number;
23
+ minDb?: number;
24
+ }
25
+ export declare const WaveVisualization: React.FC<WaveVisualizationProps>;
26
+ export {};
@@ -0,0 +1,7 @@
1
+ import { IAudio } from '@cliquify.me/types';
2
+ import { SequenceItemOptions } from '../base-sequence';
3
+
4
+ export default function Audio({ item, options }: {
5
+ item: IAudio;
6
+ options: SequenceItemOptions;
7
+ }): import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { ICaption } from '@cliquify.me/types';
2
+ import { SequenceItemOptions } from '../base-sequence';
3
+
4
+ export default function Caption({ item, options }: {
5
+ item: ICaption;
6
+ options: SequenceItemOptions;
7
+ }): import("react").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { ITrackItem } from '@cliquify.me/types';
2
+ import { SequenceItemOptions } from '../base-sequence';
3
+
4
+ export declare const Circle: ({ item, options }: {
5
+ item: ITrackItem;
6
+ options: SequenceItemOptions;
7
+ }) => import("react").JSX.Element;
8
+ export default Circle;
@@ -0,0 +1,8 @@
1
+ import { IComposition, ITrackItem } from '@cliquify.me/types';
2
+ import { SequenceItemOptions } from '../base-sequence';
3
+
4
+ export default function Composition({ item: itemComposition, options, renderSequenceItem }: {
5
+ item: IComposition;
6
+ options: SequenceItemOptions;
7
+ renderSequenceItem?: (item: ITrackItem, options: SequenceItemOptions) => React.ReactNode;
8
+ }): import("react").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { IEllipse } from '@cliquify.me/types';
2
+ import { SequenceItemOptions } from '../base-sequence';
3
+
4
+ export declare const Ellipse: ({ item, options }: {
5
+ item: IEllipse;
6
+ options: SequenceItemOptions;
7
+ }) => import("react").JSX.Element;
8
+ export default Ellipse;
@@ -0,0 +1,7 @@
1
+ import { IHillAudioBars } from '@cliquify.me/types';
2
+ import { SequenceItemOptions } from '../base-sequence';
3
+
4
+ export default function HillAudioBars({ item, options }: {
5
+ item: IHillAudioBars;
6
+ options: SequenceItemOptions;
7
+ }): import("react").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { IIllustration } from '@cliquify.me/types';
2
+ import { SequenceItemOptions } from '../base-sequence';
3
+
4
+ export declare const Illustration: ({ item, options }: {
5
+ item: IIllustration;
6
+ options: SequenceItemOptions;
7
+ }) => import("react").JSX.Element;
8
+ export default Illustration;
@@ -0,0 +1,7 @@
1
+ import { IImage } from '@cliquify.me/types';
2
+ import { SequenceItemOptions } from '../base-sequence';
3
+
4
+ export default function Image({ item, options }: {
5
+ item: IImage;
6
+ options: SequenceItemOptions;
7
+ }): import("react").JSX.Element;
@@ -0,0 +1,19 @@
1
+ export { default as Audio } from './audio';
2
+ export { default as Caption } from './caption';
3
+ export { default as Illustration } from './illustration';
4
+ export { default as Image } from './image';
5
+ export { default as Shape } from './shape';
6
+ export { default as Text } from './text';
7
+ export { default as Video } from './video';
8
+ export { default as ProgressBar } from './progress-bar';
9
+ export { default as LinealAudioBars } from './lineal-audio-bars';
10
+ export { default as ProgressFrame } from './progress-frame';
11
+ export { default as RadialAudioBars } from './radial-audio-bars';
12
+ export { default as WaveAudioBars } from './wave-audio-bars';
13
+ export { default as HillAudioBars } from './hill-audio-bars';
14
+ export { default as Rect } from './rect';
15
+ export { default as Circle } from './circle';
16
+ export { default as Triangle } from './triangle';
17
+ export { default as Star } from './star';
18
+ export { default as Polygon } from './polygon';
19
+ export { default as Ellipse } from './ellipse';
@@ -0,0 +1,7 @@
1
+ import { ILinealAudioBars } from '@cliquify.me/types';
2
+ import { SequenceItemOptions } from '../base-sequence';
3
+
4
+ export default function LinealAudioBars({ item, options }: {
5
+ item: ILinealAudioBars;
6
+ options: SequenceItemOptions;
7
+ }): import("react").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { IPolygon } from '@cliquify.me/types';
2
+ import { SequenceItemOptions } from '../base-sequence';
3
+
4
+ export declare const Polygon: ({ item, options }: {
5
+ item: IPolygon;
6
+ options: SequenceItemOptions;
7
+ }) => import("react").JSX.Element;
8
+ export default Polygon;
@@ -0,0 +1,7 @@
1
+ import { IProgressBar } from '@cliquify.me/types';
2
+ import { SequenceItemOptions } from '../base-sequence';
3
+
4
+ export default function ProgressBar({ item, options }: {
5
+ item: IProgressBar;
6
+ options: SequenceItemOptions;
7
+ }): import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { IProgressFrame } from '@cliquify.me/types';
2
+ import { SequenceItemOptions } from '../base-sequence';
3
+
4
+ export default function ProgressFrame({ item, options }: {
5
+ item: IProgressFrame;
6
+ options: SequenceItemOptions;
7
+ }): import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { IProgressSquare } from '@cliquify.me/types';
2
+ import { SequenceItemOptions } from '../base-sequence';
3
+
4
+ export default function ProgressSquare({ item, options }: {
5
+ item: IProgressSquare;
6
+ options: SequenceItemOptions;
7
+ }): import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { IRadialAudioBars } from '@cliquify.me/types';
2
+ import { SequenceItemOptions } from '../base-sequence';
3
+
4
+ export default function RadialAudioBars({ item, options }: {
5
+ item: IRadialAudioBars;
6
+ options: SequenceItemOptions;
7
+ }): import("react").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { IRect } from '@cliquify.me/types';
2
+ import { SequenceItemOptions } from '../base-sequence';
3
+
4
+ export declare const Rect: ({ item, options }: {
5
+ item: IRect;
6
+ options: SequenceItemOptions;
7
+ }) => import("react").JSX.Element;
8
+ export default Rect;
@@ -0,0 +1,8 @@
1
+ import { IShape } from '@cliquify.me/types';
2
+ import { SequenceItemOptions } from '../base-sequence';
3
+
4
+ export declare const Shape: ({ item, options }: {
5
+ item: IShape;
6
+ options: SequenceItemOptions;
7
+ }) => import("react").JSX.Element;
8
+ export default Shape;
@@ -0,0 +1,8 @@
1
+ import { IStar } from '@cliquify.me/types';
2
+ import { SequenceItemOptions } from '../base-sequence';
3
+
4
+ export declare const Star: ({ item, options }: {
5
+ item: IStar;
6
+ options: SequenceItemOptions;
7
+ }) => import("react").JSX.Element;
8
+ export default Star;
@@ -0,0 +1,8 @@
1
+ import { ITrackItem, ITemplate } from '@cliquify.me/types';
2
+ import { SequenceItemOptions } from '../base-sequence';
3
+
4
+ export default function Template({ item, options, renderSequenceItem }: {
5
+ item: ITemplate;
6
+ options: SequenceItemOptions;
7
+ renderSequenceItem?: (item: ITrackItem, options: SequenceItemOptions) => React.ReactNode;
8
+ }): import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { IText } from '@cliquify.me/types';
2
+ import { SequenceItemOptions } from '../base-sequence';
3
+
4
+ export default function Text({ item, options }: {
5
+ item: IText;
6
+ options: SequenceItemOptions;
7
+ }): import("react").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { ITriangle } from '@cliquify.me/types';
2
+ import { SequenceItemOptions } from '../base-sequence';
3
+
4
+ export declare const Triangle: ({ item, options }: {
5
+ item: ITriangle;
6
+ options: SequenceItemOptions;
7
+ }) => import("react").JSX.Element;
8
+ export default Triangle;
@@ -0,0 +1,8 @@
1
+ import { IVideo } from '@cliquify.me/types';
2
+ import { SequenceItemOptions } from '../base-sequence';
3
+
4
+ export declare const Video: ({ item, options }: {
5
+ item: IVideo;
6
+ options: SequenceItemOptions;
7
+ }) => import("react").JSX.Element;
8
+ export default Video;
@@ -0,0 +1,7 @@
1
+ import { IWaveAudioBars } from '@cliquify.me/types';
2
+ import { SequenceItemOptions } from '../base-sequence';
3
+
4
+ export default function WaveAudioBars({ item, options }: {
5
+ item: IWaveAudioBars;
6
+ options: SequenceItemOptions;
7
+ }): import("react").JSX.Element;
@@ -0,0 +1,22 @@
1
+ import { IAudio, ITrackItem, IVideo } from '@cliquify.me/types';
2
+
3
+ export declare class AudioDataManager {
4
+ private fps;
5
+ private numberOfSamples;
6
+ dataBars: number[];
7
+ items: (ITrackItem & (IVideo | IAudio))[];
8
+ private audioDatas;
9
+ private readonly MAX_CACHE_SIZE;
10
+ private frameCache;
11
+ private readonly CACHE_TTL;
12
+ setAudioDataManager(fps: number): void;
13
+ private loadAudioData;
14
+ private cleanupCache;
15
+ setItems(items: (ITrackItem & (IVideo | IAudio))[]): Promise<void>;
16
+ validateUpdateItems(validateItems: (ITrackItem & (IVideo | IAudio))[]): void;
17
+ removeItem(id: string): void;
18
+ updateItem(newItem: ITrackItem & (IVideo | IAudio)): Promise<void>;
19
+ private combineValues;
20
+ getAudioDataForFrame(frame: number): number[];
21
+ }
22
+ export declare const audioDataManager: AudioDataManager;
@@ -0,0 +1,16 @@
1
+ import { CSSProperties } from 'react';
2
+
3
+ export declare const MediaBackground: ({ background, isTemplate, id, durationInFrames, size, style }: {
4
+ background: string;
5
+ isTemplate?: boolean;
6
+ id: string;
7
+ from: number;
8
+ durationInFrames: number;
9
+ zIndex?: number;
10
+ size: {
11
+ width: number;
12
+ height: number;
13
+ };
14
+ style?: CSSProperties;
15
+ }) => import("react").JSX.Element | null;
16
+ export default MediaBackground;
@@ -0,0 +1,35 @@
1
+ import { ICompositionAnimation, ITextDetails } from '@cliquify.me/types';
2
+
3
+ declare const TextLayer: React.FC<{
4
+ id: string;
5
+ content: string;
6
+ onChange?: (id: string, content: string) => void;
7
+ onBlur?: (id: string, content: string) => void;
8
+ style?: React.CSSProperties;
9
+ editable?: boolean;
10
+ fps: number;
11
+ textAnimationNameIn: string;
12
+ textAnimationNameOut: string;
13
+ textAnimationNameLoop: string;
14
+ textAnimationModeIn: "all" | "word" | "letter" | "line";
15
+ textAnimationModeOut: "all" | "word" | "letter" | "line";
16
+ textAnimationModeLoop: "all" | "word" | "letter" | "line";
17
+ textAnimationModeTimed?: "all" | "word" | "letter" | "line";
18
+ basicCharAnimationsIn?: ICompositionAnimation[];
19
+ basicCharAnimationsOut?: ICompositionAnimation[];
20
+ basicCharAnimationsLoop?: ICompositionAnimation[];
21
+ basicCharAnimationsTimed?: ICompositionAnimation[];
22
+ loopComposition?: ICompositionAnimation[];
23
+ details: ITextDetails;
24
+ frame: number;
25
+ animationTextInFrames: number;
26
+ animationTextOutFrames: number;
27
+ animationTextLoopFrames: number;
28
+ animationTextTimedFrames?: number;
29
+ durationInFrames: number;
30
+ animationFonts: {
31
+ fontFamily: string;
32
+ url: string;
33
+ }[];
34
+ }>;
35
+ export default TextLayer;
@@ -0,0 +1,18 @@
1
+ import { ITrackItem, RemotionEffectConfig } from '@cliquify.me/types';
2
+
3
+ export declare function mapRemotionEffects(configs?: RemotionEffectConfig[]): ({
4
+ readonly definition: import('remotion').EffectDefinition<unknown, unknown>;
5
+ readonly effectKey: string;
6
+ readonly params: unknown;
7
+ } & {
8
+ readonly memoized: false;
9
+ })[] | undefined;
10
+ export declare function getAnimatedRemotionEffects(detailsEffects?: RemotionEffectConfig[], animations?: ITrackItem["animations"], currentFrame?: number): RemotionEffectConfig[];
11
+ export interface EffectsCssInfo {
12
+ filter: string;
13
+ overlays: Array<{
14
+ id: string;
15
+ style: React.CSSProperties;
16
+ }>;
17
+ }
18
+ export declare function getEffectsCssInfo(configs?: RemotionEffectConfig[]): EffectsCssInfo;
@@ -0,0 +1,7 @@
1
+ export declare const calculateFrames: (display: {
2
+ from: number;
3
+ to: number;
4
+ }, fps: number) => {
5
+ from: number;
6
+ durationInFrames: number;
7
+ };
@@ -0,0 +1,15 @@
1
+ import { IBasicAnimation, ITrackItem } from '@cliquify.me/types';
2
+ import { Animation } from '@cliquify.me/animations';
3
+
4
+ export type { Animation };
5
+ export declare const getAnimations: (animation: {
6
+ in?: IBasicAnimation;
7
+ out?: IBasicAnimation;
8
+ loop?: IBasicAnimation;
9
+ timed?: IBasicAnimation;
10
+ }, item: ITrackItem, frame?: number, fps?: number) => {
11
+ animationIn: Animation[] | null;
12
+ animationOut: Animation[] | null;
13
+ animationLoop: Animation[] | null;
14
+ animationTimed: Animation[] | null;
15
+ };
@@ -0,0 +1,19 @@
1
+ import { default as React, Component, ReactNode, ComponentProps } from 'react';
2
+ import { HtmlInCanvas } from 'remotion';
3
+
4
+ interface Props {
5
+ width: number;
6
+ height: number;
7
+ effects?: ComponentProps<typeof HtmlInCanvas>["effects"];
8
+ children: ReactNode;
9
+ }
10
+ interface State {
11
+ hasError: boolean;
12
+ }
13
+ export declare class SafeHtmlInCanvas extends Component<Props, State> {
14
+ constructor(props: Props);
15
+ static getDerivedStateFromError(_: Error): State;
16
+ componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
17
+ render(): React.JSX.Element;
18
+ }
19
+ export default SafeHtmlInCanvas;
@@ -0,0 +1,8 @@
1
+ import { IImage, IText, ITrackItem } from '@cliquify.me/types';
2
+
3
+ export declare const calculateCropStyles: (details: IImage["details"], crop: NonNullable<IImage["details"]["crop"]>) => React.CSSProperties;
4
+ export declare const calculateMediaStyles: (details: ITrackItem["details"], crop: NonNullable<ITrackItem["details"]["crop"]>, overrides?: React.CSSProperties) => React.CSSProperties;
5
+ export declare const calculateBorderOverlayStyles: (details: ITrackItem["details"], crop: NonNullable<ITrackItem["details"]["crop"]>) => React.CSSProperties;
6
+ export declare const calculateTextStyles: (details: IText["details"]) => React.CSSProperties;
7
+ export declare const calculateContainerStyles: (details: ITrackItem["details"], crop?: Partial<NonNullable<ITrackItem["details"]["crop"]>>, overrides?: React.CSSProperties) => React.CSSProperties;
8
+ export declare const calculateContainerFigureStyles: (details: ITrackItem["details"], overrides?: React.CSSProperties) => React.CSSProperties;
@@ -0,0 +1,9 @@
1
+ import { ITrackItem, ITransition } from '@cliquify.me/types';
2
+
3
+ type GroupElement = ITrackItem | ITransition;
4
+ export declare const groupTrackItems: (data: {
5
+ trackItemIds: string[];
6
+ transitionsMap: Record<string, ITransition>;
7
+ trackItemsMap: Record<string, ITrackItem>;
8
+ }) => GroupElement[][];
9
+ export {};
@@ -0,0 +1,6 @@
1
+ import { PlayerRef } from '@remotion/player';
2
+
3
+ export declare const getSafeCurrentFrame: (playerRef: {
4
+ current?: PlayerRef;
5
+ } | null) => number;
6
+ export declare const useCurrentPlayerFrame: (ref: React.RefObject<PlayerRef> | null) => number;
package/package.json ADDED
@@ -0,0 +1,57 @@
1
+ {
2
+ "name": "@cliquify.me/elements-ui",
3
+ "version": "8.0.3",
4
+ "type": "module",
5
+ "private": false,
6
+ "publishConfig": {
7
+ "access": "public"
8
+ },
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "main": "dist/index.umd.js",
13
+ "module": "dist/index.es.js",
14
+ "types": "dist/index.d.ts",
15
+ "exports": {
16
+ ".": {
17
+ "import": "./dist/index.es.js",
18
+ "require": "./dist/index.umd.js",
19
+ "types": "./dist/index.d.ts"
20
+ }
21
+ },
22
+ "devDependencies": {
23
+ "@emotion/react": "^11.14.0",
24
+ "@emotion/styled": "^11.14.0",
25
+ "@remotion/effects": "4.0.506",
26
+ "@remotion/media-utils": "4.0.506",
27
+ "@remotion/player": "4.0.506",
28
+ "@remotion/shapes": "4.0.506",
29
+ "@types/lodash": "^4.14.202",
30
+ "@types/node": "^20.11.24",
31
+ "@types/react": "^19.1.8",
32
+ "@types/react-dom": "^19.1.6",
33
+ "lodash": "^4.17.21",
34
+ "rollup-plugin-peer-deps-external": "^2.2.4",
35
+ "typescript": "^5.8.3",
36
+ "vite": "^5.2.0",
37
+ "vite-plugin-dts": "^3.9.1",
38
+ "@cliquify.me/typescript-config": "0.0.2"
39
+ },
40
+ "dependencies": {
41
+ "@cliquify.me/state": "8.0.3",
42
+ "@cliquify.me/types": "8.0.3",
43
+ "@cliquify.me/animations": "9.0.3",
44
+ "@cliquify.me/transitions": "0.11.9"
45
+ },
46
+ "peerDependencies": {
47
+ "react": "^19.1.0",
48
+ "react-dom": "^19.1.0",
49
+ "remotion": "4.0.506",
50
+ "@cliquify.me/types": "8.0.3"
51
+ },
52
+ "scripts": {
53
+ "dev": "vite",
54
+ "build": "tsc && vite build",
55
+ "format": "prettier --write ."
56
+ }
57
+ }