@cliquify.me/types 7.0.3 → 8.0.1

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 (2) hide show
  1. package/dist/index.d.ts +108 -2
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -40,10 +40,54 @@ export interface ICompositionAnimation {
40
40
  easing: string;
41
41
  delay: number;
42
42
  details?: {
43
- fonts: {
43
+ fonts?: {
44
44
  fontFamily: string;
45
45
  url: string;
46
46
  }[];
47
+ keepStill?: string;
48
+ hasInitialValue?: boolean;
49
+ initialRepeatCount?: number;
50
+ initialScaleDown?: number;
51
+ initialCenterX?: number;
52
+ initialCenterY?: number;
53
+ initialBaseSpeed?: number;
54
+ initialScaleFactor?: number;
55
+ initialWiggleX?: number;
56
+ initialWiggleY?: number;
57
+ initialSpeed?: number;
58
+ initialAngle?: number;
59
+ initialRotationX?: number;
60
+ initialRotationY?: number;
61
+ initialRotationZ?: number;
62
+ initialPivotX?: number;
63
+ initialPivotY?: number;
64
+ initialPerspective?: number;
65
+ toRepeatCount?: number;
66
+ toScaleDown?: number;
67
+ toCenterX?: number;
68
+ toCenterY?: number;
69
+ toRotationX?: number;
70
+ toRotationY?: number;
71
+ toRotationZ?: number;
72
+ toPivotX?: number;
73
+ toPivotY?: number;
74
+ toPerspective?: number;
75
+ frontFace?: boolean;
76
+ backFace?: boolean;
77
+ repeatX?: number;
78
+ repeatY?: number;
79
+ gapX?: number;
80
+ gapY?: number;
81
+ baseSpeed?: number;
82
+ speedVariation?: number;
83
+ lineOffset?: number;
84
+ scaleFactor?: number;
85
+ direction?: string;
86
+ wiggleX?: number;
87
+ wiggleY?: number;
88
+ speed?: number;
89
+ angle?: number;
90
+ seed?: number;
47
91
  };
48
92
  text?: string;
49
93
  persist?: boolean;
@@ -66,7 +110,7 @@ export interface ITrack {
66
110
  id: string;
67
111
  type: ITrackType;
68
112
  items: string[];
69
- muted: boolean;
113
+ muted?: boolean;
70
114
  metadata?: Partial<IMetadata>;
71
115
  accepts?: string[];
72
116
  index?: number;
@@ -99,6 +143,67 @@ export interface ItemStructure {
99
143
  transitions: string[];
100
144
  tracks: ITrack[];
101
145
  }
146
+ export type RemotionEffectKind = "blur" | "vignette" | "chromaticAberration" | "noise" | "pixelate" | "grayscale" | "contrast" | "brightness" | "hue" | "saturation" | "duotone" | "lightLeak";
147
+ export interface IBlurEffectConfig {
148
+ type: "blur";
149
+ radius: number;
150
+ }
151
+ export interface IVignetteEffectConfig {
152
+ type: "vignette";
153
+ radius?: number;
154
+ intensity?: number;
155
+ amount?: number;
156
+ }
157
+ export interface IChromaticAberrationEffectConfig {
158
+ type: "chromaticAberration";
159
+ offset?: number;
160
+ }
161
+ export interface INoiseEffectConfig {
162
+ type: "noise";
163
+ speed?: number;
164
+ seed?: number;
165
+ amount?: number;
166
+ }
167
+ export interface IPixelateEffectConfig {
168
+ type: "pixelate";
169
+ size: number;
170
+ }
171
+ export interface IGrayscaleEffectConfig {
172
+ type: "grayscale";
173
+ amount?: number;
174
+ }
175
+ export interface IContrastEffectConfig {
176
+ type: "contrast";
177
+ amount: number;
178
+ }
179
+ export interface IBrightnessEffectConfig {
180
+ type: "brightness";
181
+ amount: number;
182
+ }
183
+ export interface IHueEffectConfig {
184
+ type: "hue";
185
+ rotation: number;
186
+ }
187
+ export interface ISaturationEffectConfig {
188
+ type: "saturation";
189
+ amount: number;
190
+ }
191
+ export interface IDuotoneEffectConfig {
192
+ type: "duotone";
193
+ color1?: string;
194
+ color2?: string;
195
+ darkColor?: string;
196
+ lightColor?: string;
197
+ threshold?: number;
198
+ }
199
+ export interface ILightLeakEffectConfig {
200
+ type: "lightLeak";
201
+ intensity?: number;
202
+ progress?: number;
203
+ seed?: number;
204
+ hueShift?: number;
205
+ }
206
+ export type RemotionEffectConfig = IBlurEffectConfig | IVignetteEffectConfig | IChromaticAberrationEffectConfig | INoiseEffectConfig | IPixelateEffectConfig | IGrayscaleEffectConfig | IContrastEffectConfig | IBrightnessEffectConfig | IHueEffectConfig | ISaturationEffectConfig | IDuotoneEffectConfig | ILightLeakEffectConfig;
102
207
  interface ICommonDetails {
103
208
  width?: number;
104
209
  height?: number;
@@ -111,6 +216,7 @@ interface ICommonDetails {
111
216
  left?: number | string;
112
217
  borderColor?: string;
113
218
  borderWidth?: number;
219
+ effects?: RemotionEffectConfig[];
114
220
  }
115
221
  export interface ITrackItemBase {
116
222
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cliquify.me/types",
3
- "version": "7.0.3",
3
+ "version": "8.0.1",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"