mulmocast 2.1.36 → 2.1.37

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,2 +1,3 @@
1
1
  export * from "./type.js";
2
2
  export * from "./schema.js";
3
+ export * from "./viewer.js";
@@ -1,2 +1,3 @@
1
1
  export * from "./type.js";
2
2
  export * from "./schema.js";
3
+ export * from "./viewer.js";
@@ -143,24 +143,3 @@ export type PublicAPIArgs = {
143
143
  callbacks?: CallbackFunction[];
144
144
  };
145
145
  export type ImageType = "image" | "movie";
146
- export type MulmoViewerBeat = {
147
- text?: string;
148
- duration?: number;
149
- startTime?: number;
150
- endTime?: number;
151
- importance?: number;
152
- multiLinguals?: Record<string, string>;
153
- audioSources?: Record<string, string | undefined>;
154
- imageSource?: string;
155
- videoSource?: string;
156
- videoWithAudioSource?: string;
157
- htmlImageSource?: string;
158
- soundEffectSource?: string;
159
- };
160
- export type MulmoViewerData = {
161
- beats: MulmoViewerBeat[];
162
- bgmSource?: string;
163
- bgmFile?: string;
164
- title?: string;
165
- lang?: string;
166
- };
@@ -0,0 +1,37 @@
1
+ import { z } from "zod";
2
+ export declare const mulmoViewerBeatSchema: z.ZodObject<{
3
+ text: z.ZodOptional<z.ZodString>;
4
+ duration: z.ZodOptional<z.ZodNumber>;
5
+ startTime: z.ZodOptional<z.ZodNumber>;
6
+ endTime: z.ZodOptional<z.ZodNumber>;
7
+ importance: z.ZodOptional<z.ZodNumber>;
8
+ multiLinguals: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
9
+ audioSources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
10
+ imageSource: z.ZodOptional<z.ZodString>;
11
+ videoSource: z.ZodOptional<z.ZodString>;
12
+ videoWithAudioSource: z.ZodOptional<z.ZodString>;
13
+ htmlImageSource: z.ZodOptional<z.ZodString>;
14
+ soundEffectSource: z.ZodOptional<z.ZodString>;
15
+ }, z.core.$strip>;
16
+ export type MulmoViewerBeat = z.infer<typeof mulmoViewerBeatSchema>;
17
+ export declare const mulmoViewerDataSchema: z.ZodObject<{
18
+ beats: z.ZodArray<z.ZodObject<{
19
+ text: z.ZodOptional<z.ZodString>;
20
+ duration: z.ZodOptional<z.ZodNumber>;
21
+ startTime: z.ZodOptional<z.ZodNumber>;
22
+ endTime: z.ZodOptional<z.ZodNumber>;
23
+ importance: z.ZodOptional<z.ZodNumber>;
24
+ multiLinguals: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
25
+ audioSources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
26
+ imageSource: z.ZodOptional<z.ZodString>;
27
+ videoSource: z.ZodOptional<z.ZodString>;
28
+ videoWithAudioSource: z.ZodOptional<z.ZodString>;
29
+ htmlImageSource: z.ZodOptional<z.ZodString>;
30
+ soundEffectSource: z.ZodOptional<z.ZodString>;
31
+ }, z.core.$strip>>;
32
+ bgmSource: z.ZodOptional<z.ZodString>;
33
+ bgmFile: z.ZodOptional<z.ZodString>;
34
+ title: z.ZodOptional<z.ZodString>;
35
+ lang: z.ZodOptional<z.ZodString>;
36
+ }, z.core.$strip>;
37
+ export type MulmoViewerData = z.infer<typeof mulmoViewerDataSchema>;
@@ -0,0 +1,22 @@
1
+ import { z } from "zod";
2
+ export const mulmoViewerBeatSchema = z.object({
3
+ text: z.string().optional(),
4
+ duration: z.number().optional(),
5
+ startTime: z.number().optional(),
6
+ endTime: z.number().optional(),
7
+ importance: z.number().optional(),
8
+ multiLinguals: z.record(z.string(), z.string()).optional(),
9
+ audioSources: z.record(z.string(), z.string().optional()).optional(),
10
+ imageSource: z.string().optional(),
11
+ videoSource: z.string().optional(),
12
+ videoWithAudioSource: z.string().optional(),
13
+ htmlImageSource: z.string().optional(),
14
+ soundEffectSource: z.string().optional(),
15
+ });
16
+ export const mulmoViewerDataSchema = z.object({
17
+ beats: z.array(mulmoViewerBeatSchema),
18
+ bgmSource: z.string().optional(),
19
+ bgmFile: z.string().optional(),
20
+ title: z.string().optional(),
21
+ lang: z.string().optional(),
22
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mulmocast",
3
- "version": "2.1.36",
3
+ "version": "2.1.37",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "lib/index.node.js",