visualfries 0.1.0 → 0.1.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.
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  import { TextEffectPresetName, TextShadowBuilder } from '../TextShadowBuilder.js';
3
3
  const GenericTextEffectShape = z.object({
4
4
  enabled: z.boolean().optional(),
5
- preset: z.nativeEnum(TextEffectPresetName).optional(),
5
+ preset: z.enum(TextEffectPresetName).optional(),
6
6
  size: z.number().optional(),
7
7
  color: z.string().optional(),
8
8
  opacity: z.number().optional()
@@ -15,10 +15,28 @@ export declare class SubtitlesHook implements IComponentHook {
15
15
  });
16
16
  get activeSubtitle(): {
17
17
  id: string;
18
- text: string;
19
18
  start_at: number;
20
19
  end_at: number;
20
+ text: string;
21
+ words?: [string, number, number, ...({
22
+ [x: string]: any;
23
+ s?: number | undefined;
24
+ si?: number | undefined;
25
+ c?: string | {
26
+ type: "linear" | "radial";
27
+ colors: string[];
28
+ stops?: number[] | undefined;
29
+ angle?: number | undefined;
30
+ position?: string | undefined;
31
+ shape?: "ellipse" | "circle" | undefined;
32
+ } | undefined;
33
+ e?: string | undefined;
34
+ w?: string | undefined;
35
+ f?: string | undefined;
36
+ } | null | undefined)[]][] | undefined;
37
+ enlarge?: number | undefined;
21
38
  visible?: boolean | undefined;
39
+ emoji?: string | undefined;
22
40
  color?: string | {
23
41
  type: "linear" | "radial";
24
42
  colors: string[];
@@ -35,54 +53,23 @@ export declare class SubtitlesHook implements IComponentHook {
35
53
  position?: string | undefined;
36
54
  shape?: "ellipse" | "circle" | undefined;
37
55
  } | undefined;
38
- words?: [string, number, number, ...(import("zod").objectOutputType<{
39
- s: import("zod").ZodOptional<import("zod").ZodNumber>;
40
- si: import("zod").ZodOptional<import("zod").ZodNumber>;
41
- c: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodObject<{
42
- type: import("zod").ZodEnum<["linear", "radial"]>;
43
- colors: import("zod").ZodArray<import("zod").ZodEffects<import("zod").ZodString, string, string>, "many">;
44
- stops: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
45
- angle: import("zod").ZodOptional<import("zod").ZodNumber>;
46
- position: import("zod").ZodOptional<import("zod").ZodString>;
47
- shape: import("zod").ZodOptional<import("zod").ZodEnum<["ellipse", "circle"]>>;
48
- }, "strip", import("zod").ZodTypeAny, {
49
- type: "linear" | "radial";
50
- colors: string[];
51
- stops?: number[] | undefined;
52
- angle?: number | undefined;
53
- position?: string | undefined;
54
- shape?: "ellipse" | "circle" | undefined;
55
- }, {
56
- type: "linear" | "radial";
57
- colors: string[];
58
- stops?: number[] | undefined;
59
- angle?: number | undefined;
60
- position?: string | undefined;
61
- shape?: "ellipse" | "circle" | undefined;
62
- }>]>>;
63
- e: import("zod").ZodOptional<import("zod").ZodString>;
64
- w: import("zod").ZodOptional<import("zod").ZodString>;
65
- f: import("zod").ZodOptional<import("zod").ZodString>;
66
- }, import("zod").ZodAny, "strip"> | null | undefined)[]][] | undefined;
67
- emoji?: string | undefined;
68
- enlarge?: number | undefined;
69
56
  } | {
70
57
  id: string;
71
- text: string;
72
58
  start_at: number;
73
59
  end_at: number;
74
- visible?: boolean | undefined;
75
- color?: string | undefined;
76
- background?: string | undefined;
60
+ text: string;
77
61
  words?: {
78
62
  id: string;
79
- text: string;
80
63
  start_at: number;
81
64
  end_at: number;
65
+ text: string;
82
66
  position?: number | undefined;
83
67
  }[] | undefined;
84
- emoji?: string | undefined;
85
68
  enlarge?: number | undefined;
69
+ visible?: boolean | undefined;
70
+ emoji?: string | undefined;
71
+ color?: string | undefined;
72
+ background?: string | undefined;
86
73
  } | undefined;
87
74
  handle(type: HookType, context: IComponentContext): Promise<void>;
88
75
  }