@cliquify.me/elements-ui 8.0.4 → 8.0.5

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.
@@ -1,7 +1,7 @@
1
1
  import { IAudio } from '@cliquify.me/types';
2
2
  import { SequenceItemOptions } from '../base-sequence';
3
3
 
4
- export default function Audio({ item, options }: {
4
+ export default function Audio({ item, options, }: {
5
5
  item: IAudio;
6
6
  options: SequenceItemOptions;
7
7
  }): import("react").JSX.Element;
@@ -1,7 +1,12 @@
1
1
  import { ICaption } from '@cliquify.me/types';
2
2
  import { SequenceItemOptions } from '../base-sequence';
3
3
 
4
- export default function Caption({ item, options }: {
4
+ export interface CaptionWordItem {
5
+ start: number;
6
+ end: number;
7
+ word: string;
8
+ }
9
+ export default function Caption({ item, options, }: {
5
10
  item: ICaption;
6
11
  options: SequenceItemOptions;
7
12
  }): import("react").JSX.Element;
@@ -1,7 +1,12 @@
1
+ import { default as React } from 'react';
1
2
  import { IImage } from '@cliquify.me/types';
2
3
  import { SequenceItemOptions } from '../base-sequence';
3
4
 
4
- export default function Image({ item, options }: {
5
- item: IImage;
5
+ interface ImageItem extends IImage {
6
+ playbackRate?: number;
7
+ }
8
+ export default function Image({ item, options, }: {
9
+ item: ImageItem;
6
10
  options: SequenceItemOptions;
7
- }): import("react").JSX.Element;
11
+ }): React.JSX.Element;
12
+ export {};
@@ -17,3 +17,6 @@ export { default as Triangle } from './triangle';
17
17
  export { default as Star } from './star';
18
18
  export { default as Polygon } from './polygon';
19
19
  export { default as Ellipse } from './ellipse';
20
+ export { default as ProgressSquare } from './progress-square';
21
+ export { default as Template } from './template';
22
+ export { default as Composition } from './composition';
@@ -1,7 +1,7 @@
1
1
  import { IRect } from '@cliquify.me/types';
2
2
  import { SequenceItemOptions } from '../base-sequence';
3
3
 
4
- export declare const Rect: ({ item, options }: {
4
+ export declare const Rect: ({ item, options, }: {
5
5
  item: IRect;
6
6
  options: SequenceItemOptions;
7
7
  }) => import("react").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { IShape } from '@cliquify.me/types';
2
2
  import { SequenceItemOptions } from '../base-sequence';
3
3
 
4
- export declare const Shape: ({ item, options }: {
4
+ export declare const Shape: ({ item, options, }: {
5
5
  item: IShape;
6
6
  options: SequenceItemOptions;
7
7
  }) => import("react").JSX.Element;
@@ -1,7 +1,8 @@
1
+ import { default as React } from 'react';
1
2
  import { IText } from '@cliquify.me/types';
2
3
  import { SequenceItemOptions } from '../base-sequence';
3
4
 
4
5
  export default function Text({ item, options }: {
5
6
  item: IText;
6
7
  options: SequenceItemOptions;
7
- }): import("react").JSX.Element;
8
+ }): React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ export declare function createRectPath({ x, y, width, height, }: {
2
+ x: number;
3
+ y: number;
4
+ width: number;
5
+ height: number;
6
+ }): string;
@@ -0,0 +1,16 @@
1
+ import { default as React } from 'react';
2
+ import { IImage } from '@cliquify.me/types';
3
+
4
+ interface MaskedImageProps {
5
+ imageSrc: string;
6
+ maskData: {
7
+ x: number;
8
+ y: number;
9
+ width: number;
10
+ height: number;
11
+ };
12
+ details: IImage["details"];
13
+ id: string;
14
+ }
15
+ declare const MaskedImage: React.FC<MaskedImageProps>;
16
+ export default MaskedImage;
@@ -0,0 +1,16 @@
1
+ import { default as React } from 'react';
2
+ import { IVideo } from '@cliquify.me/types';
3
+
4
+ interface MaskedVideoProps {
5
+ maskData: {
6
+ x: number;
7
+ y: number;
8
+ width: number;
9
+ height: number;
10
+ };
11
+ data: IVideo;
12
+ details: IVideo["details"];
13
+ fps: number;
14
+ }
15
+ declare const MaskedVideo: React.FC<MaskedVideoProps>;
16
+ export default MaskedVideo;
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ import { ITrackItem } from '@cliquify.me/types';
3
+ import { SequenceItemOptions } from './base-sequence';
4
+
5
+ export declare const SequenceItem: Record<string, (item: ITrackItem, options: SequenceItemOptions) => React.ReactNode>;
@@ -0,0 +1,11 @@
1
+ export type DecodedGif = {
2
+ width: number;
3
+ height: number;
4
+ durationMs: number;
5
+ frames: string[];
6
+ delaysMs: number[];
7
+ };
8
+ export declare const isGif: (src: string) => boolean;
9
+ export declare const decodeGif: (src: string) => Promise<DecodedGif>;
10
+ export declare const getDecodedGif: (src: string) => Promise<DecodedGif>;
11
+ export declare const getFrameIndexAtTime: (timeMs: number, decodedGif: DecodedGif) => number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cliquify.me/elements-ui",
3
- "version": "8.0.4",
3
+ "version": "8.0.5",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -38,16 +38,18 @@
38
38
  "@cliquify.me/typescript-config": "0.0.2"
39
39
  },
40
40
  "dependencies": {
41
- "@cliquify.me/animations": "9.0.4",
41
+ "@designcombo/events": "1.0.2",
42
+ "gifuct-js": "^2.1.2",
43
+ "@cliquify.me/animations": "9.0.5",
42
44
  "@cliquify.me/transitions": "0.11.9",
43
- "@cliquify.me/types": "8.0.4",
44
- "@cliquify.me/state": "8.0.4"
45
+ "@cliquify.me/state": "8.0.5",
46
+ "@cliquify.me/types": "8.0.5"
45
47
  },
46
48
  "peerDependencies": {
47
49
  "react": "^19.1.0",
48
50
  "react-dom": "^19.1.0",
49
51
  "remotion": "4.0.506",
50
- "@cliquify.me/types": "8.0.4"
52
+ "@cliquify.me/types": "8.0.5"
51
53
  },
52
54
  "scripts": {
53
55
  "dev": "vite",