screenwright 0.1.11 → 0.1.13
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.
- package/dist/src/commands/compose.d.ts.map +1 -1
- package/dist/src/commands/compose.js +8 -1
- package/dist/src/commands/compose.js.map +1 -1
- package/dist/src/commands/config.d.ts.map +1 -1
- package/dist/src/commands/config.js +56 -75
- package/dist/src/commands/config.js.map +1 -1
- package/dist/src/commands/init.d.ts.map +1 -1
- package/dist/src/commands/init.js +52 -23
- package/dist/src/commands/init.js.map +1 -1
- package/dist/src/commands/preview.d.ts.map +1 -1
- package/dist/src/commands/preview.js +8 -2
- package/dist/src/commands/preview.js.map +1 -1
- package/dist/src/composition/DemoVideo.d.ts.map +1 -1
- package/dist/src/composition/DemoVideo.js +17 -2
- package/dist/src/composition/DemoVideo.js.map +1 -1
- package/dist/src/composition/frame-lookup.d.ts +8 -0
- package/dist/src/composition/frame-lookup.d.ts.map +1 -0
- package/dist/src/composition/frame-lookup.js +26 -0
- package/dist/src/composition/frame-lookup.js.map +1 -0
- package/dist/src/composition/remotion-root.js +1 -1
- package/dist/src/composition/remotion-root.js.map +1 -1
- package/dist/src/composition/render.d.ts.map +1 -1
- package/dist/src/composition/render.js +6 -4
- package/dist/src/composition/render.js.map +1 -1
- package/dist/src/config/config-schema.d.ts +5 -2
- package/dist/src/config/config-schema.d.ts.map +1 -1
- package/dist/src/config/config-schema.js +1 -0
- package/dist/src/config/config-schema.js.map +1 -1
- package/dist/src/config/defaults.d.ts.map +1 -1
- package/dist/src/config/defaults.js +1 -0
- package/dist/src/config/defaults.js.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/runtime/action-helpers.d.ts +2 -0
- package/dist/src/runtime/action-helpers.d.ts.map +1 -1
- package/dist/src/runtime/action-helpers.js +33 -13
- package/dist/src/runtime/action-helpers.js.map +1 -1
- package/dist/src/runtime/instrumented-page.d.ts +2 -1
- package/dist/src/runtime/instrumented-page.d.ts.map +1 -1
- package/dist/src/runtime/instrumented-page.js +51 -10
- package/dist/src/runtime/instrumented-page.js.map +1 -1
- package/dist/src/runtime/timeline-collector.d.ts +5 -1
- package/dist/src/runtime/timeline-collector.d.ts.map +1 -1
- package/dist/src/runtime/timeline-collector.js +13 -0
- package/dist/src/runtime/timeline-collector.js.map +1 -1
- package/dist/src/timeline/schema.d.ts +80 -26
- package/dist/src/timeline/schema.d.ts.map +1 -1
- package/dist/src/timeline/schema.js +7 -2
- package/dist/src/timeline/schema.js.map +1 -1
- package/dist/src/timeline/types.d.ts +6 -1
- package/dist/src/timeline/types.d.ts.map +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const timelineSchema: z.ZodObject<{
|
|
3
3
|
version: z.ZodLiteral<1>;
|
|
4
|
-
metadata: z.ZodObject<{
|
|
4
|
+
metadata: z.ZodEffects<z.ZodObject<{
|
|
5
5
|
testFile: z.ZodString;
|
|
6
6
|
scenarioFile: z.ZodString;
|
|
7
7
|
recordedAt: z.ZodString;
|
|
@@ -16,9 +16,18 @@ export declare const timelineSchema: z.ZodObject<{
|
|
|
16
16
|
height: number;
|
|
17
17
|
}>;
|
|
18
18
|
videoDurationMs: z.ZodNumber;
|
|
19
|
-
videoFile: z.ZodString
|
|
19
|
+
videoFile: z.ZodOptional<z.ZodString>;
|
|
20
|
+
frameManifest: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
21
|
+
timestampMs: z.ZodNumber;
|
|
22
|
+
file: z.ZodString;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
timestampMs: number;
|
|
25
|
+
file: string;
|
|
26
|
+
}, {
|
|
27
|
+
timestampMs: number;
|
|
28
|
+
file: string;
|
|
29
|
+
}>, "many">>;
|
|
20
30
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
videoFile: string;
|
|
22
31
|
testFile: string;
|
|
23
32
|
scenarioFile: string;
|
|
24
33
|
recordedAt: string;
|
|
@@ -27,8 +36,40 @@ export declare const timelineSchema: z.ZodObject<{
|
|
|
27
36
|
height: number;
|
|
28
37
|
};
|
|
29
38
|
videoDurationMs: number;
|
|
39
|
+
videoFile?: string | undefined;
|
|
40
|
+
frameManifest?: {
|
|
41
|
+
timestampMs: number;
|
|
42
|
+
file: string;
|
|
43
|
+
}[] | undefined;
|
|
44
|
+
}, {
|
|
45
|
+
testFile: string;
|
|
46
|
+
scenarioFile: string;
|
|
47
|
+
recordedAt: string;
|
|
48
|
+
viewport: {
|
|
49
|
+
width: number;
|
|
50
|
+
height: number;
|
|
51
|
+
};
|
|
52
|
+
videoDurationMs: number;
|
|
53
|
+
videoFile?: string | undefined;
|
|
54
|
+
frameManifest?: {
|
|
55
|
+
timestampMs: number;
|
|
56
|
+
file: string;
|
|
57
|
+
}[] | undefined;
|
|
58
|
+
}>, {
|
|
59
|
+
testFile: string;
|
|
60
|
+
scenarioFile: string;
|
|
61
|
+
recordedAt: string;
|
|
62
|
+
viewport: {
|
|
63
|
+
width: number;
|
|
64
|
+
height: number;
|
|
65
|
+
};
|
|
66
|
+
videoDurationMs: number;
|
|
67
|
+
videoFile?: string | undefined;
|
|
68
|
+
frameManifest?: {
|
|
69
|
+
timestampMs: number;
|
|
70
|
+
file: string;
|
|
71
|
+
}[] | undefined;
|
|
30
72
|
}, {
|
|
31
|
-
videoFile: string;
|
|
32
73
|
testFile: string;
|
|
33
74
|
scenarioFile: string;
|
|
34
75
|
recordedAt: string;
|
|
@@ -37,6 +78,11 @@ export declare const timelineSchema: z.ZodObject<{
|
|
|
37
78
|
height: number;
|
|
38
79
|
};
|
|
39
80
|
videoDurationMs: number;
|
|
81
|
+
videoFile?: string | undefined;
|
|
82
|
+
frameManifest?: {
|
|
83
|
+
timestampMs: number;
|
|
84
|
+
file: string;
|
|
85
|
+
}[] | undefined;
|
|
40
86
|
}>;
|
|
41
87
|
events: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
42
88
|
type: z.ZodLiteral<"scene">;
|
|
@@ -46,14 +92,14 @@ export declare const timelineSchema: z.ZodObject<{
|
|
|
46
92
|
description: z.ZodOptional<z.ZodString>;
|
|
47
93
|
}, "strip", z.ZodTypeAny, {
|
|
48
94
|
type: "scene";
|
|
49
|
-
id: string;
|
|
50
95
|
timestampMs: number;
|
|
96
|
+
id: string;
|
|
51
97
|
title: string;
|
|
52
98
|
description?: string | undefined;
|
|
53
99
|
}, {
|
|
54
100
|
type: "scene";
|
|
55
|
-
id: string;
|
|
56
101
|
timestampMs: number;
|
|
102
|
+
id: string;
|
|
57
103
|
title: string;
|
|
58
104
|
description?: string | undefined;
|
|
59
105
|
}>, z.ZodObject<{
|
|
@@ -83,8 +129,8 @@ export declare const timelineSchema: z.ZodObject<{
|
|
|
83
129
|
}, "strip", z.ZodTypeAny, {
|
|
84
130
|
type: "action";
|
|
85
131
|
action: "fill" | "click" | "hover" | "select" | "press" | "navigate";
|
|
86
|
-
id: string;
|
|
87
132
|
timestampMs: number;
|
|
133
|
+
id: string;
|
|
88
134
|
selector: string;
|
|
89
135
|
durationMs: number;
|
|
90
136
|
boundingBox: {
|
|
@@ -97,8 +143,8 @@ export declare const timelineSchema: z.ZodObject<{
|
|
|
97
143
|
}, {
|
|
98
144
|
type: "action";
|
|
99
145
|
action: "fill" | "click" | "hover" | "select" | "press" | "navigate";
|
|
100
|
-
id: string;
|
|
101
146
|
timestampMs: number;
|
|
147
|
+
id: string;
|
|
102
148
|
selector: string;
|
|
103
149
|
durationMs: number;
|
|
104
150
|
boundingBox: {
|
|
@@ -120,8 +166,8 @@ export declare const timelineSchema: z.ZodObject<{
|
|
|
120
166
|
easing: z.ZodLiteral<"bezier">;
|
|
121
167
|
}, "strip", z.ZodTypeAny, {
|
|
122
168
|
type: "cursor_target";
|
|
123
|
-
id: string;
|
|
124
169
|
timestampMs: number;
|
|
170
|
+
id: string;
|
|
125
171
|
fromX: number;
|
|
126
172
|
fromY: number;
|
|
127
173
|
toX: number;
|
|
@@ -130,8 +176,8 @@ export declare const timelineSchema: z.ZodObject<{
|
|
|
130
176
|
easing: "bezier";
|
|
131
177
|
}, {
|
|
132
178
|
type: "cursor_target";
|
|
133
|
-
id: string;
|
|
134
179
|
timestampMs: number;
|
|
180
|
+
id: string;
|
|
135
181
|
fromX: number;
|
|
136
182
|
fromY: number;
|
|
137
183
|
toX: number;
|
|
@@ -147,15 +193,15 @@ export declare const timelineSchema: z.ZodObject<{
|
|
|
147
193
|
audioFile: z.ZodOptional<z.ZodString>;
|
|
148
194
|
}, "strip", z.ZodTypeAny, {
|
|
149
195
|
type: "narration";
|
|
150
|
-
id: string;
|
|
151
196
|
timestampMs: number;
|
|
197
|
+
id: string;
|
|
152
198
|
text: string;
|
|
153
199
|
audioDurationMs?: number | undefined;
|
|
154
200
|
audioFile?: string | undefined;
|
|
155
201
|
}, {
|
|
156
202
|
type: "narration";
|
|
157
|
-
id: string;
|
|
158
203
|
timestampMs: number;
|
|
204
|
+
id: string;
|
|
159
205
|
text: string;
|
|
160
206
|
audioDurationMs?: number | undefined;
|
|
161
207
|
audioFile?: string | undefined;
|
|
@@ -167,21 +213,20 @@ export declare const timelineSchema: z.ZodObject<{
|
|
|
167
213
|
reason: z.ZodEnum<["pacing", "narration_sync", "page_load"]>;
|
|
168
214
|
}, "strip", z.ZodTypeAny, {
|
|
169
215
|
type: "wait";
|
|
170
|
-
id: string;
|
|
171
216
|
timestampMs: number;
|
|
217
|
+
id: string;
|
|
172
218
|
durationMs: number;
|
|
173
219
|
reason: "pacing" | "narration_sync" | "page_load";
|
|
174
220
|
}, {
|
|
175
221
|
type: "wait";
|
|
176
|
-
id: string;
|
|
177
222
|
timestampMs: number;
|
|
223
|
+
id: string;
|
|
178
224
|
durationMs: number;
|
|
179
225
|
reason: "pacing" | "narration_sync" | "page_load";
|
|
180
226
|
}>]>, "many">;
|
|
181
227
|
}, "strip", z.ZodTypeAny, {
|
|
182
228
|
version: 1;
|
|
183
229
|
metadata: {
|
|
184
|
-
videoFile: string;
|
|
185
230
|
testFile: string;
|
|
186
231
|
scenarioFile: string;
|
|
187
232
|
recordedAt: string;
|
|
@@ -190,18 +235,23 @@ export declare const timelineSchema: z.ZodObject<{
|
|
|
190
235
|
height: number;
|
|
191
236
|
};
|
|
192
237
|
videoDurationMs: number;
|
|
238
|
+
videoFile?: string | undefined;
|
|
239
|
+
frameManifest?: {
|
|
240
|
+
timestampMs: number;
|
|
241
|
+
file: string;
|
|
242
|
+
}[] | undefined;
|
|
193
243
|
};
|
|
194
244
|
events: ({
|
|
195
245
|
type: "scene";
|
|
196
|
-
id: string;
|
|
197
246
|
timestampMs: number;
|
|
247
|
+
id: string;
|
|
198
248
|
title: string;
|
|
199
249
|
description?: string | undefined;
|
|
200
250
|
} | {
|
|
201
251
|
type: "action";
|
|
202
252
|
action: "fill" | "click" | "hover" | "select" | "press" | "navigate";
|
|
203
|
-
id: string;
|
|
204
253
|
timestampMs: number;
|
|
254
|
+
id: string;
|
|
205
255
|
selector: string;
|
|
206
256
|
durationMs: number;
|
|
207
257
|
boundingBox: {
|
|
@@ -213,8 +263,8 @@ export declare const timelineSchema: z.ZodObject<{
|
|
|
213
263
|
value?: string | undefined;
|
|
214
264
|
} | {
|
|
215
265
|
type: "cursor_target";
|
|
216
|
-
id: string;
|
|
217
266
|
timestampMs: number;
|
|
267
|
+
id: string;
|
|
218
268
|
fromX: number;
|
|
219
269
|
fromY: number;
|
|
220
270
|
toX: number;
|
|
@@ -223,22 +273,21 @@ export declare const timelineSchema: z.ZodObject<{
|
|
|
223
273
|
easing: "bezier";
|
|
224
274
|
} | {
|
|
225
275
|
type: "narration";
|
|
226
|
-
id: string;
|
|
227
276
|
timestampMs: number;
|
|
277
|
+
id: string;
|
|
228
278
|
text: string;
|
|
229
279
|
audioDurationMs?: number | undefined;
|
|
230
280
|
audioFile?: string | undefined;
|
|
231
281
|
} | {
|
|
232
282
|
type: "wait";
|
|
233
|
-
id: string;
|
|
234
283
|
timestampMs: number;
|
|
284
|
+
id: string;
|
|
235
285
|
durationMs: number;
|
|
236
286
|
reason: "pacing" | "narration_sync" | "page_load";
|
|
237
287
|
})[];
|
|
238
288
|
}, {
|
|
239
289
|
version: 1;
|
|
240
290
|
metadata: {
|
|
241
|
-
videoFile: string;
|
|
242
291
|
testFile: string;
|
|
243
292
|
scenarioFile: string;
|
|
244
293
|
recordedAt: string;
|
|
@@ -247,18 +296,23 @@ export declare const timelineSchema: z.ZodObject<{
|
|
|
247
296
|
height: number;
|
|
248
297
|
};
|
|
249
298
|
videoDurationMs: number;
|
|
299
|
+
videoFile?: string | undefined;
|
|
300
|
+
frameManifest?: {
|
|
301
|
+
timestampMs: number;
|
|
302
|
+
file: string;
|
|
303
|
+
}[] | undefined;
|
|
250
304
|
};
|
|
251
305
|
events: ({
|
|
252
306
|
type: "scene";
|
|
253
|
-
id: string;
|
|
254
307
|
timestampMs: number;
|
|
308
|
+
id: string;
|
|
255
309
|
title: string;
|
|
256
310
|
description?: string | undefined;
|
|
257
311
|
} | {
|
|
258
312
|
type: "action";
|
|
259
313
|
action: "fill" | "click" | "hover" | "select" | "press" | "navigate";
|
|
260
|
-
id: string;
|
|
261
314
|
timestampMs: number;
|
|
315
|
+
id: string;
|
|
262
316
|
selector: string;
|
|
263
317
|
durationMs: number;
|
|
264
318
|
boundingBox: {
|
|
@@ -270,8 +324,8 @@ export declare const timelineSchema: z.ZodObject<{
|
|
|
270
324
|
value?: string | undefined;
|
|
271
325
|
} | {
|
|
272
326
|
type: "cursor_target";
|
|
273
|
-
id: string;
|
|
274
327
|
timestampMs: number;
|
|
328
|
+
id: string;
|
|
275
329
|
fromX: number;
|
|
276
330
|
fromY: number;
|
|
277
331
|
toX: number;
|
|
@@ -280,15 +334,15 @@ export declare const timelineSchema: z.ZodObject<{
|
|
|
280
334
|
easing: "bezier";
|
|
281
335
|
} | {
|
|
282
336
|
type: "narration";
|
|
283
|
-
id: string;
|
|
284
337
|
timestampMs: number;
|
|
338
|
+
id: string;
|
|
285
339
|
text: string;
|
|
286
340
|
audioDurationMs?: number | undefined;
|
|
287
341
|
audioFile?: string | undefined;
|
|
288
342
|
} | {
|
|
289
343
|
type: "wait";
|
|
290
|
-
id: string;
|
|
291
344
|
timestampMs: number;
|
|
345
|
+
id: string;
|
|
292
346
|
durationMs: number;
|
|
293
347
|
reason: "pacing" | "narration_sync" | "page_load";
|
|
294
348
|
})[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/timeline/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/timeline/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoExB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBzB,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -54,6 +54,10 @@ const timelineEventSchema = z.discriminatedUnion('type', [
|
|
|
54
54
|
narrationEventSchema,
|
|
55
55
|
waitEventSchema,
|
|
56
56
|
]);
|
|
57
|
+
const frameEntrySchema = z.object({
|
|
58
|
+
timestampMs: z.number().nonnegative(),
|
|
59
|
+
file: z.string(),
|
|
60
|
+
});
|
|
57
61
|
export const timelineSchema = z.object({
|
|
58
62
|
version: z.literal(1),
|
|
59
63
|
metadata: z.object({
|
|
@@ -65,8 +69,9 @@ export const timelineSchema = z.object({
|
|
|
65
69
|
height: z.number().int().positive(),
|
|
66
70
|
}),
|
|
67
71
|
videoDurationMs: z.number().nonnegative(),
|
|
68
|
-
videoFile: z.string(),
|
|
69
|
-
|
|
72
|
+
videoFile: z.string().optional(),
|
|
73
|
+
frameManifest: z.array(frameEntrySchema).optional(),
|
|
74
|
+
}).refine(m => (m.videoFile && m.videoFile.length > 0) || (m.frameManifest && m.frameManifest.length > 0), { message: 'metadata must have either videoFile or a non-empty frameManifest' }),
|
|
70
75
|
events: z.array(timelineEventSchema),
|
|
71
76
|
});
|
|
72
77
|
//# sourceMappingURL=schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/timeline/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;IACxB,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE;IACrC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC;AAEH,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,QA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MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;SACpC,CAAC;QACF,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE;QACzC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAChC,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,QAAQ,EAAE;KACpD,CAAC,CAAC,MAAM,CACP,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,IAAI,CAAC,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,aAAa,IAAI,CAAC,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC,EAC/F,EAAE,OAAO,EAAE,kEAAkE,EAAE,CAChF;IACD,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC;CACrC,CAAC,CAAC"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
export interface FrameEntry {
|
|
2
|
+
timestampMs: number;
|
|
3
|
+
file: string;
|
|
4
|
+
}
|
|
1
5
|
export interface Timeline {
|
|
2
6
|
version: 1;
|
|
3
7
|
metadata: TimelineMetadata;
|
|
@@ -12,7 +16,8 @@ export interface TimelineMetadata {
|
|
|
12
16
|
height: number;
|
|
13
17
|
};
|
|
14
18
|
videoDurationMs: number;
|
|
15
|
-
videoFile
|
|
19
|
+
videoFile?: string;
|
|
20
|
+
frameManifest?: FrameEntry[];
|
|
16
21
|
}
|
|
17
22
|
export type TimelineEvent = SceneEvent | ActionEvent | CursorTargetEvent | NarrationEvent | WaitEvent;
|
|
18
23
|
export interface SceneEvent {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/timeline/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,CAAC,CAAC;IACX,QAAQ,EAAE,g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|
package/dist/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.
|
|
1
|
+
export declare const VERSION = "0.1.13";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/src/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = "0.1.
|
|
1
|
+
export const VERSION = "0.1.13";
|
|
2
2
|
//# sourceMappingURL=version.js.map
|