@navipartner/demo-video 0.7.0 → 0.7.2

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { D as DemoAdapter } from './adapter-CDOXdUZI.js';
2
- export { B as Brand, C as CardSpec, a as DemoAction, b as DirectorApi, T as Target, V as VideoBrand, d as defineAction, c as defineDemo } from './adapter-CDOXdUZI.js';
1
+ import { K as Kind, D as DemoAdapter } from './adapter-DxZmb-QU.js';
2
+ export { B as Brand, C as CardSpec, a as DemoAction, b as DirectorApi, T as Target, V as VideoBrand, d as defineAction, c as defineDemo } from './adapter-DxZmb-QU.js';
3
3
  import { Page } from '@playwright/test';
4
4
  import { z } from 'zod';
5
5
  export { z } from 'zod';
@@ -17,60 +17,72 @@ interface Overlay {
17
17
  declare const overlayResponse: (page: Page, overlay: Overlay) => Promise<void>;
18
18
 
19
19
  declare const coreStepSchemas: readonly [z.ZodObject<{
20
+ behindCard: z.ZodOptional<z.ZodBoolean>;
20
21
  zoom: z.ZodOptional<z.ZodNumber>;
21
22
  target: z.ZodString;
22
23
  nth: z.ZodOptional<z.ZodNumber>;
23
24
  do: z.ZodLiteral<"click">;
24
25
  }, "strict", z.ZodTypeAny, {
25
- do: "click";
26
26
  target: string;
27
- zoom?: number | undefined;
27
+ do: "click";
28
28
  nth?: number | undefined;
29
+ zoom?: number | undefined;
30
+ behindCard?: boolean | undefined;
29
31
  }, {
30
- do: "click";
31
32
  target: string;
32
- zoom?: number | undefined;
33
+ do: "click";
33
34
  nth?: number | undefined;
35
+ zoom?: number | undefined;
36
+ behindCard?: boolean | undefined;
34
37
  }>, z.ZodObject<{
38
+ behindCard: z.ZodOptional<z.ZodBoolean>;
35
39
  text: z.ZodString;
36
40
  perCharMs: z.ZodOptional<z.ZodNumber>;
41
+ replace: z.ZodOptional<z.ZodBoolean>;
37
42
  target: z.ZodString;
38
43
  nth: z.ZodOptional<z.ZodNumber>;
39
44
  do: z.ZodLiteral<"type">;
40
45
  }, "strict", z.ZodTypeAny, {
41
46
  text: string;
42
- do: "type";
43
47
  target: string;
48
+ do: "type";
49
+ replace?: boolean | undefined;
44
50
  nth?: number | undefined;
51
+ behindCard?: boolean | undefined;
45
52
  perCharMs?: number | undefined;
46
53
  }, {
47
54
  text: string;
48
- do: "type";
49
55
  target: string;
56
+ do: "type";
57
+ replace?: boolean | undefined;
50
58
  nth?: number | undefined;
59
+ behindCard?: boolean | undefined;
51
60
  perCharMs?: number | undefined;
52
61
  }>, z.ZodObject<{
62
+ behindCard: z.ZodOptional<z.ZodBoolean>;
53
63
  do: z.ZodLiteral<"press">;
54
64
  key: z.ZodString;
55
65
  }, "strict", z.ZodTypeAny, {
56
66
  key: string;
57
67
  do: "press";
68
+ behindCard?: boolean | undefined;
58
69
  }, {
59
70
  key: string;
60
71
  do: "press";
72
+ behindCard?: boolean | undefined;
61
73
  }>, z.ZodObject<{
62
74
  scale: z.ZodDefault<z.ZodNumber>;
63
75
  target: z.ZodString;
64
76
  nth: z.ZodOptional<z.ZodNumber>;
65
77
  do: z.ZodLiteral<"zoom">;
66
78
  }, "strict", z.ZodTypeAny, {
67
- do: "zoom";
68
79
  target: string;
80
+ do: "zoom";
69
81
  scale: number;
70
82
  nth?: number | undefined;
71
83
  }, {
72
- do: "zoom";
73
84
  target: string;
85
+ do: "zoom";
74
86
  nth?: number | undefined;
75
87
  scale?: number | undefined;
76
88
  }>, z.ZodObject<{
@@ -116,21 +128,24 @@ declare const coreStepSchemas: readonly [z.ZodObject<{
116
128
  }, {
117
129
  do: "park";
118
130
  }>, z.ZodObject<{
131
+ behindCard: z.ZodOptional<z.ZodBoolean>;
119
132
  hidden: z.ZodOptional<z.ZodBoolean>;
120
133
  timeout: z.ZodDefault<z.ZodNumber>;
121
134
  target: z.ZodString;
122
135
  nth: z.ZodOptional<z.ZodNumber>;
123
136
  do: z.ZodLiteral<"waitFor">;
124
137
  }, "strict", z.ZodTypeAny, {
125
- do: "waitFor";
126
138
  target: string;
139
+ do: "waitFor";
127
140
  timeout: number;
128
141
  nth?: number | undefined;
142
+ behindCard?: boolean | undefined;
129
143
  hidden?: boolean | undefined;
130
144
  }, {
131
- do: "waitFor";
132
145
  target: string;
146
+ do: "waitFor";
133
147
  nth?: number | undefined;
148
+ behindCard?: boolean | undefined;
134
149
  hidden?: boolean | undefined;
135
150
  timeout?: number | undefined;
136
151
  }>, z.ZodObject<{
@@ -142,43 +157,60 @@ declare const coreStepSchemas: readonly [z.ZodObject<{
142
157
  do: z.ZodLiteral<"expectText">;
143
158
  }, "strict", z.ZodTypeAny, {
144
159
  text: string;
145
- do: "expectText";
146
160
  target: string;
161
+ do: "expectText";
147
162
  timeout: number;
148
163
  nth?: number | undefined;
149
164
  contains?: boolean | undefined;
150
165
  }, {
151
166
  text: string;
152
- do: "expectText";
153
167
  target: string;
168
+ do: "expectText";
154
169
  nth?: number | undefined;
155
170
  timeout?: number | undefined;
156
171
  contains?: boolean | undefined;
157
172
  }>, z.ZodObject<{
173
+ style: z.ZodOptional<z.ZodEnum<["pale", "brand"]>>;
174
+ show: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
175
+ target: z.ZodString;
176
+ nth: z.ZodOptional<z.ZodNumber>;
177
+ }, "strict", z.ZodTypeAny, {
178
+ target: string;
179
+ nth?: number | undefined;
180
+ }, {
181
+ target: string;
182
+ nth?: number | undefined;
183
+ }>]>>;
158
184
  eyebrow: z.ZodOptional<z.ZodString>;
159
185
  heading: z.ZodOptional<z.ZodString>;
160
186
  sub: z.ZodOptional<z.ZodString>;
161
187
  /** Show the brand's logo (open and end cards). */
162
188
  logo: z.ZodOptional<z.ZodBoolean>;
163
- /** "pale" = brand-tinted white; "brand" = full-bleed primary colour. */
164
- style: z.ZodDefault<z.ZodEnum<["pale", "brand"]>>;
165
189
  seconds: z.ZodDefault<z.ZodNumber>;
166
190
  do: z.ZodLiteral<"card">;
167
191
  }, "strict", z.ZodTypeAny, {
168
192
  do: "card";
169
- style: "pale" | "brand";
170
193
  seconds: number;
171
194
  logo?: boolean | undefined;
172
195
  sub?: string | undefined;
196
+ style?: "pale" | "brand" | undefined;
197
+ show?: string | {
198
+ target: string;
199
+ nth?: number | undefined;
200
+ } | undefined;
173
201
  eyebrow?: string | undefined;
174
202
  heading?: string | undefined;
175
203
  }, {
176
204
  do: "card";
177
205
  logo?: boolean | undefined;
178
206
  sub?: string | undefined;
207
+ style?: "pale" | "brand" | undefined;
208
+ show?: string | {
209
+ target: string;
210
+ nth?: number | undefined;
211
+ } | undefined;
179
212
  eyebrow?: string | undefined;
180
213
  heading?: string | undefined;
181
- style?: "pale" | "brand" | undefined;
182
214
  seconds?: number | undefined;
183
215
  }>, z.ZodObject<{
184
216
  do: z.ZodLiteral<"hold">;
@@ -214,9 +246,9 @@ declare const cardSchema: z.ZodEffects<z.ZodObject<{
214
246
  }, {
215
247
  logo?: boolean | undefined;
216
248
  sub?: string | undefined;
249
+ style?: "pale" | "brand" | undefined;
217
250
  eyebrow?: string | undefined;
218
251
  heading?: string | undefined;
219
- style?: "pale" | "brand" | undefined;
220
252
  seconds?: number | undefined;
221
253
  }>, {
222
254
  style: "pale" | "brand";
@@ -228,19 +260,86 @@ declare const cardSchema: z.ZodEffects<z.ZodObject<{
228
260
  }, {
229
261
  logo?: boolean | undefined;
230
262
  sub?: string | undefined;
263
+ style?: "pale" | "brand" | undefined;
231
264
  eyebrow?: string | undefined;
232
265
  heading?: string | undefined;
266
+ seconds?: number | undefined;
267
+ }>;
268
+ declare const titleSchema: z.ZodEffects<z.ZodObject<{
269
+ show: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
270
+ target: z.ZodString;
271
+ nth: z.ZodOptional<z.ZodNumber>;
272
+ }, "strict", z.ZodTypeAny, {
273
+ target: string;
274
+ nth?: number | undefined;
275
+ }, {
276
+ target: string;
277
+ nth?: number | undefined;
278
+ }>]>>;
279
+ eyebrow: z.ZodOptional<z.ZodString>;
280
+ heading: z.ZodOptional<z.ZodString>;
281
+ sub: z.ZodOptional<z.ZodString>;
282
+ /** Show the brand's logo (open and end cards). */
283
+ logo: z.ZodOptional<z.ZodBoolean>;
284
+ /** "pale" = brand-tinted white; "brand" = full-bleed primary colour. */
285
+ style: z.ZodDefault<z.ZodEnum<["pale", "brand"]>>;
286
+ seconds: z.ZodDefault<z.ZodNumber>;
287
+ }, "strict", z.ZodTypeAny, {
288
+ style: "pale" | "brand";
289
+ seconds: number;
290
+ logo?: boolean | undefined;
291
+ sub?: string | undefined;
292
+ show?: string | {
293
+ target: string;
294
+ nth?: number | undefined;
295
+ } | undefined;
296
+ eyebrow?: string | undefined;
297
+ heading?: string | undefined;
298
+ }, {
299
+ logo?: boolean | undefined;
300
+ sub?: string | undefined;
301
+ style?: "pale" | "brand" | undefined;
302
+ show?: string | {
303
+ target: string;
304
+ nth?: number | undefined;
305
+ } | undefined;
306
+ eyebrow?: string | undefined;
307
+ heading?: string | undefined;
308
+ seconds?: number | undefined;
309
+ }>, {
310
+ style: "pale" | "brand";
311
+ seconds: number;
312
+ logo?: boolean | undefined;
313
+ sub?: string | undefined;
314
+ show?: string | {
315
+ target: string;
316
+ nth?: number | undefined;
317
+ } | undefined;
318
+ eyebrow?: string | undefined;
319
+ heading?: string | undefined;
320
+ }, {
321
+ logo?: boolean | undefined;
322
+ sub?: string | undefined;
233
323
  style?: "pale" | "brand" | undefined;
324
+ show?: string | {
325
+ target: string;
326
+ nth?: number | undefined;
327
+ } | undefined;
328
+ eyebrow?: string | undefined;
329
+ heading?: string | undefined;
234
330
  seconds?: number | undefined;
235
331
  }>;
236
332
  type Card = z.infer<typeof cardSchema>;
333
+ type TitleCard = z.infer<typeof titleSchema>;
237
334
  interface Storyboard {
238
335
  app: string;
239
336
  /** What the story shows, for people choosing one (and the menu). */
240
337
  description?: string;
338
+ /** A showcase of the main journey (default), or a clip of one feature. */
339
+ kind?: Kind;
241
340
  /** The app's primary journey: the story filmed when none is named. One per app. */
242
341
  primary?: boolean;
243
- title?: Card;
342
+ title?: TitleCard;
244
343
  closing?: Card;
245
344
  steps: Step[];
246
345
  }
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  StoryboardError,
3
3
  parseStoryboard
4
- } from "./chunk-D7UYGNSF.js";
4
+ } from "./chunk-XMOGUZJU.js";
5
5
 
6
6
  // src/adapter.ts
7
7
  var defineDemo = (adapter) => adapter;
@@ -1,5 +1,5 @@
1
1
  import { PlaywrightTestConfig, Page } from '@playwright/test';
2
- import { D as DemoAdapter } from '../adapter-CDOXdUZI.js';
2
+ import { D as DemoAdapter } from '../adapter-DxZmb-QU.js';
3
3
  import 'zod';
4
4
 
5
5
  /**