@makefully/fancifully 0.3.1 → 0.4.0
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/CHANGELOG.md +9 -0
- package/README.md +50 -1
- package/dist/Storybook.d.ts +22 -0
- package/dist/Storybook.d.ts.map +1 -1
- package/dist/fancifully.css +1 -1
- package/dist/fancifully.iife.js +2 -2
- package/dist/fancifully.js +1645 -1458
- package/dist/games/PageGame.d.ts +34 -0
- package/dist/games/PageGame.d.ts.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/interop/fabricLike.d.ts +24 -3
- package/dist/interop/fabricLike.d.ts.map +1 -1
- package/dist/render/PageView.d.ts.map +1 -1
- package/dist/render/blocks/AreaBlock.d.ts +5 -0
- package/dist/render/blocks/AreaBlock.d.ts.map +1 -0
- package/dist/render/blocks/HotspotBlock.d.ts +6 -0
- package/dist/render/blocks/HotspotBlock.d.ts.map +1 -1
- package/dist/schema/story.d.ts +1355 -53
- package/dist/schema/story.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/schema/story.d.ts
CHANGED
|
@@ -108,6 +108,69 @@ export declare const tapActionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
108
108
|
target: string;
|
|
109
109
|
className: string;
|
|
110
110
|
};
|
|
111
|
+
}>, z.ZodObject<{
|
|
112
|
+
addClass: z.ZodObject<{
|
|
113
|
+
target: z.ZodString;
|
|
114
|
+
className: z.ZodString;
|
|
115
|
+
}, "strip", z.ZodTypeAny, {
|
|
116
|
+
target: string;
|
|
117
|
+
className: string;
|
|
118
|
+
}, {
|
|
119
|
+
target: string;
|
|
120
|
+
className: string;
|
|
121
|
+
}>;
|
|
122
|
+
}, "strip", z.ZodTypeAny, {
|
|
123
|
+
addClass: {
|
|
124
|
+
target: string;
|
|
125
|
+
className: string;
|
|
126
|
+
};
|
|
127
|
+
}, {
|
|
128
|
+
addClass: {
|
|
129
|
+
target: string;
|
|
130
|
+
className: string;
|
|
131
|
+
};
|
|
132
|
+
}>, z.ZodObject<{
|
|
133
|
+
removeClass: z.ZodObject<{
|
|
134
|
+
target: z.ZodString;
|
|
135
|
+
className: z.ZodString;
|
|
136
|
+
}, "strip", z.ZodTypeAny, {
|
|
137
|
+
target: string;
|
|
138
|
+
className: string;
|
|
139
|
+
}, {
|
|
140
|
+
target: string;
|
|
141
|
+
className: string;
|
|
142
|
+
}>;
|
|
143
|
+
}, "strip", z.ZodTypeAny, {
|
|
144
|
+
removeClass: {
|
|
145
|
+
target: string;
|
|
146
|
+
className: string;
|
|
147
|
+
};
|
|
148
|
+
}, {
|
|
149
|
+
removeClass: {
|
|
150
|
+
target: string;
|
|
151
|
+
className: string;
|
|
152
|
+
};
|
|
153
|
+
}>, z.ZodObject<{
|
|
154
|
+
replayClass: z.ZodObject<{
|
|
155
|
+
target: z.ZodString;
|
|
156
|
+
className: z.ZodString;
|
|
157
|
+
}, "strip", z.ZodTypeAny, {
|
|
158
|
+
target: string;
|
|
159
|
+
className: string;
|
|
160
|
+
}, {
|
|
161
|
+
target: string;
|
|
162
|
+
className: string;
|
|
163
|
+
}>;
|
|
164
|
+
}, "strip", z.ZodTypeAny, {
|
|
165
|
+
replayClass: {
|
|
166
|
+
target: string;
|
|
167
|
+
className: string;
|
|
168
|
+
};
|
|
169
|
+
}, {
|
|
170
|
+
replayClass: {
|
|
171
|
+
target: string;
|
|
172
|
+
className: string;
|
|
173
|
+
};
|
|
111
174
|
}>]>;
|
|
112
175
|
export declare const blockSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
113
176
|
id: z.ZodString;
|
|
@@ -325,6 +388,165 @@ export declare const blockSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
325
388
|
target: string;
|
|
326
389
|
className: string;
|
|
327
390
|
};
|
|
391
|
+
}>, z.ZodObject<{
|
|
392
|
+
addClass: z.ZodObject<{
|
|
393
|
+
target: z.ZodString;
|
|
394
|
+
className: z.ZodString;
|
|
395
|
+
}, "strip", z.ZodTypeAny, {
|
|
396
|
+
target: string;
|
|
397
|
+
className: string;
|
|
398
|
+
}, {
|
|
399
|
+
target: string;
|
|
400
|
+
className: string;
|
|
401
|
+
}>;
|
|
402
|
+
}, "strip", z.ZodTypeAny, {
|
|
403
|
+
addClass: {
|
|
404
|
+
target: string;
|
|
405
|
+
className: string;
|
|
406
|
+
};
|
|
407
|
+
}, {
|
|
408
|
+
addClass: {
|
|
409
|
+
target: string;
|
|
410
|
+
className: string;
|
|
411
|
+
};
|
|
412
|
+
}>, z.ZodObject<{
|
|
413
|
+
removeClass: z.ZodObject<{
|
|
414
|
+
target: z.ZodString;
|
|
415
|
+
className: z.ZodString;
|
|
416
|
+
}, "strip", z.ZodTypeAny, {
|
|
417
|
+
target: string;
|
|
418
|
+
className: string;
|
|
419
|
+
}, {
|
|
420
|
+
target: string;
|
|
421
|
+
className: string;
|
|
422
|
+
}>;
|
|
423
|
+
}, "strip", z.ZodTypeAny, {
|
|
424
|
+
removeClass: {
|
|
425
|
+
target: string;
|
|
426
|
+
className: string;
|
|
427
|
+
};
|
|
428
|
+
}, {
|
|
429
|
+
removeClass: {
|
|
430
|
+
target: string;
|
|
431
|
+
className: string;
|
|
432
|
+
};
|
|
433
|
+
}>, z.ZodObject<{
|
|
434
|
+
replayClass: z.ZodObject<{
|
|
435
|
+
target: z.ZodString;
|
|
436
|
+
className: z.ZodString;
|
|
437
|
+
}, "strip", z.ZodTypeAny, {
|
|
438
|
+
target: string;
|
|
439
|
+
className: string;
|
|
440
|
+
}, {
|
|
441
|
+
target: string;
|
|
442
|
+
className: string;
|
|
443
|
+
}>;
|
|
444
|
+
}, "strip", z.ZodTypeAny, {
|
|
445
|
+
replayClass: {
|
|
446
|
+
target: string;
|
|
447
|
+
className: string;
|
|
448
|
+
};
|
|
449
|
+
}, {
|
|
450
|
+
replayClass: {
|
|
451
|
+
target: string;
|
|
452
|
+
className: string;
|
|
453
|
+
};
|
|
454
|
+
}>]>, "many">>>;
|
|
455
|
+
/**
|
|
456
|
+
* When set, each tap still runs `onTap`. After this many taps, `onComplete`
|
|
457
|
+
* runs once.
|
|
458
|
+
*/
|
|
459
|
+
requiredTaps: z.ZodOptional<z.ZodNumber>;
|
|
460
|
+
onComplete: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
461
|
+
play: z.ZodString;
|
|
462
|
+
}, "strip", z.ZodTypeAny, {
|
|
463
|
+
play: string;
|
|
464
|
+
}, {
|
|
465
|
+
play: string;
|
|
466
|
+
}>, z.ZodObject<{
|
|
467
|
+
toggleClass: z.ZodObject<{
|
|
468
|
+
target: z.ZodString;
|
|
469
|
+
className: z.ZodString;
|
|
470
|
+
}, "strip", z.ZodTypeAny, {
|
|
471
|
+
target: string;
|
|
472
|
+
className: string;
|
|
473
|
+
}, {
|
|
474
|
+
target: string;
|
|
475
|
+
className: string;
|
|
476
|
+
}>;
|
|
477
|
+
}, "strip", z.ZodTypeAny, {
|
|
478
|
+
toggleClass: {
|
|
479
|
+
target: string;
|
|
480
|
+
className: string;
|
|
481
|
+
};
|
|
482
|
+
}, {
|
|
483
|
+
toggleClass: {
|
|
484
|
+
target: string;
|
|
485
|
+
className: string;
|
|
486
|
+
};
|
|
487
|
+
}>, z.ZodObject<{
|
|
488
|
+
addClass: z.ZodObject<{
|
|
489
|
+
target: z.ZodString;
|
|
490
|
+
className: z.ZodString;
|
|
491
|
+
}, "strip", z.ZodTypeAny, {
|
|
492
|
+
target: string;
|
|
493
|
+
className: string;
|
|
494
|
+
}, {
|
|
495
|
+
target: string;
|
|
496
|
+
className: string;
|
|
497
|
+
}>;
|
|
498
|
+
}, "strip", z.ZodTypeAny, {
|
|
499
|
+
addClass: {
|
|
500
|
+
target: string;
|
|
501
|
+
className: string;
|
|
502
|
+
};
|
|
503
|
+
}, {
|
|
504
|
+
addClass: {
|
|
505
|
+
target: string;
|
|
506
|
+
className: string;
|
|
507
|
+
};
|
|
508
|
+
}>, z.ZodObject<{
|
|
509
|
+
removeClass: z.ZodObject<{
|
|
510
|
+
target: z.ZodString;
|
|
511
|
+
className: z.ZodString;
|
|
512
|
+
}, "strip", z.ZodTypeAny, {
|
|
513
|
+
target: string;
|
|
514
|
+
className: string;
|
|
515
|
+
}, {
|
|
516
|
+
target: string;
|
|
517
|
+
className: string;
|
|
518
|
+
}>;
|
|
519
|
+
}, "strip", z.ZodTypeAny, {
|
|
520
|
+
removeClass: {
|
|
521
|
+
target: string;
|
|
522
|
+
className: string;
|
|
523
|
+
};
|
|
524
|
+
}, {
|
|
525
|
+
removeClass: {
|
|
526
|
+
target: string;
|
|
527
|
+
className: string;
|
|
528
|
+
};
|
|
529
|
+
}>, z.ZodObject<{
|
|
530
|
+
replayClass: z.ZodObject<{
|
|
531
|
+
target: z.ZodString;
|
|
532
|
+
className: z.ZodString;
|
|
533
|
+
}, "strip", z.ZodTypeAny, {
|
|
534
|
+
target: string;
|
|
535
|
+
className: string;
|
|
536
|
+
}, {
|
|
537
|
+
target: string;
|
|
538
|
+
className: string;
|
|
539
|
+
}>;
|
|
540
|
+
}, "strip", z.ZodTypeAny, {
|
|
541
|
+
replayClass: {
|
|
542
|
+
target: string;
|
|
543
|
+
className: string;
|
|
544
|
+
};
|
|
545
|
+
}, {
|
|
546
|
+
replayClass: {
|
|
547
|
+
target: string;
|
|
548
|
+
className: string;
|
|
549
|
+
};
|
|
328
550
|
}>]>, "many">>>;
|
|
329
551
|
ariaLabel: z.ZodOptional<z.ZodString>;
|
|
330
552
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -346,7 +568,46 @@ export declare const blockSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
346
568
|
target: string;
|
|
347
569
|
className: string;
|
|
348
570
|
};
|
|
571
|
+
} | {
|
|
572
|
+
addClass: {
|
|
573
|
+
target: string;
|
|
574
|
+
className: string;
|
|
575
|
+
};
|
|
576
|
+
} | {
|
|
577
|
+
removeClass: {
|
|
578
|
+
target: string;
|
|
579
|
+
className: string;
|
|
580
|
+
};
|
|
581
|
+
} | {
|
|
582
|
+
replayClass: {
|
|
583
|
+
target: string;
|
|
584
|
+
className: string;
|
|
585
|
+
};
|
|
586
|
+
})[];
|
|
587
|
+
onComplete: ({
|
|
588
|
+
play: string;
|
|
589
|
+
} | {
|
|
590
|
+
toggleClass: {
|
|
591
|
+
target: string;
|
|
592
|
+
className: string;
|
|
593
|
+
};
|
|
594
|
+
} | {
|
|
595
|
+
addClass: {
|
|
596
|
+
target: string;
|
|
597
|
+
className: string;
|
|
598
|
+
};
|
|
599
|
+
} | {
|
|
600
|
+
removeClass: {
|
|
601
|
+
target: string;
|
|
602
|
+
className: string;
|
|
603
|
+
};
|
|
604
|
+
} | {
|
|
605
|
+
replayClass: {
|
|
606
|
+
target: string;
|
|
607
|
+
className: string;
|
|
608
|
+
};
|
|
349
609
|
})[];
|
|
610
|
+
requiredTaps?: number | undefined;
|
|
350
611
|
ariaLabel?: string | undefined;
|
|
351
612
|
}, {
|
|
352
613
|
type: "hotspot";
|
|
@@ -367,10 +628,115 @@ export declare const blockSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
367
628
|
target: string;
|
|
368
629
|
className: string;
|
|
369
630
|
};
|
|
631
|
+
} | {
|
|
632
|
+
addClass: {
|
|
633
|
+
target: string;
|
|
634
|
+
className: string;
|
|
635
|
+
};
|
|
636
|
+
} | {
|
|
637
|
+
removeClass: {
|
|
638
|
+
target: string;
|
|
639
|
+
className: string;
|
|
640
|
+
};
|
|
641
|
+
} | {
|
|
642
|
+
replayClass: {
|
|
643
|
+
target: string;
|
|
644
|
+
className: string;
|
|
645
|
+
};
|
|
646
|
+
})[] | undefined;
|
|
647
|
+
requiredTaps?: number | undefined;
|
|
648
|
+
onComplete?: ({
|
|
649
|
+
play: string;
|
|
650
|
+
} | {
|
|
651
|
+
toggleClass: {
|
|
652
|
+
target: string;
|
|
653
|
+
className: string;
|
|
654
|
+
};
|
|
655
|
+
} | {
|
|
656
|
+
addClass: {
|
|
657
|
+
target: string;
|
|
658
|
+
className: string;
|
|
659
|
+
};
|
|
660
|
+
} | {
|
|
661
|
+
removeClass: {
|
|
662
|
+
target: string;
|
|
663
|
+
className: string;
|
|
664
|
+
};
|
|
665
|
+
} | {
|
|
666
|
+
replayClass: {
|
|
667
|
+
target: string;
|
|
668
|
+
className: string;
|
|
669
|
+
};
|
|
370
670
|
})[] | undefined;
|
|
371
671
|
ariaLabel?: string | undefined;
|
|
372
|
-
}
|
|
373
|
-
|
|
672
|
+
}>, z.ZodObject<{
|
|
673
|
+
id: z.ZodString;
|
|
674
|
+
type: z.ZodLiteral<"area">;
|
|
675
|
+
layout: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
676
|
+
x: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
677
|
+
y: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
678
|
+
width: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
679
|
+
height: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
680
|
+
fit: z.ZodOptional<z.ZodEnum<["contain", "cover", "fill", "none"]>>;
|
|
681
|
+
horizontalAlign: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
682
|
+
verticalAlign: z.ZodOptional<z.ZodEnum<["top", "center", "bottom"]>>;
|
|
683
|
+
}, "strip", z.ZodTypeAny, {
|
|
684
|
+
x: string | number;
|
|
685
|
+
y: string | number;
|
|
686
|
+
width?: string | number | undefined;
|
|
687
|
+
height?: string | number | undefined;
|
|
688
|
+
fit?: "fill" | "contain" | "cover" | "none" | undefined;
|
|
689
|
+
horizontalAlign?: "left" | "center" | "right" | undefined;
|
|
690
|
+
verticalAlign?: "center" | "top" | "bottom" | undefined;
|
|
691
|
+
}, {
|
|
692
|
+
x?: string | number | undefined;
|
|
693
|
+
y?: string | number | undefined;
|
|
694
|
+
width?: string | number | undefined;
|
|
695
|
+
height?: string | number | undefined;
|
|
696
|
+
fit?: "fill" | "contain" | "cover" | "none" | undefined;
|
|
697
|
+
horizontalAlign?: "left" | "center" | "right" | undefined;
|
|
698
|
+
verticalAlign?: "center" | "top" | "bottom" | undefined;
|
|
699
|
+
}>>>;
|
|
700
|
+
/** Registry id passed to {@link registerPageGame} / `StorybookOptions.pageGames`. */
|
|
701
|
+
game: z.ZodString;
|
|
702
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
703
|
+
ariaLabel: z.ZodOptional<z.ZodString>;
|
|
704
|
+
/** When true, reader nav stays locked until the game calls `onComplete`. */
|
|
705
|
+
requireComplete: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
706
|
+
}, "strip", z.ZodTypeAny, {
|
|
707
|
+
type: "area";
|
|
708
|
+
id: string;
|
|
709
|
+
layout: {
|
|
710
|
+
x: string | number;
|
|
711
|
+
y: string | number;
|
|
712
|
+
width?: string | number | undefined;
|
|
713
|
+
height?: string | number | undefined;
|
|
714
|
+
fit?: "fill" | "contain" | "cover" | "none" | undefined;
|
|
715
|
+
horizontalAlign?: "left" | "center" | "right" | undefined;
|
|
716
|
+
verticalAlign?: "center" | "top" | "bottom" | undefined;
|
|
717
|
+
};
|
|
718
|
+
game: string;
|
|
719
|
+
requireComplete: boolean;
|
|
720
|
+
params?: Record<string, unknown> | undefined;
|
|
721
|
+
ariaLabel?: string | undefined;
|
|
722
|
+
}, {
|
|
723
|
+
type: "area";
|
|
724
|
+
id: string;
|
|
725
|
+
game: string;
|
|
726
|
+
params?: Record<string, unknown> | undefined;
|
|
727
|
+
layout?: {
|
|
728
|
+
x?: string | number | undefined;
|
|
729
|
+
y?: string | number | undefined;
|
|
730
|
+
width?: string | number | undefined;
|
|
731
|
+
height?: string | number | undefined;
|
|
732
|
+
fit?: "fill" | "contain" | "cover" | "none" | undefined;
|
|
733
|
+
horizontalAlign?: "left" | "center" | "right" | undefined;
|
|
734
|
+
verticalAlign?: "center" | "top" | "bottom" | undefined;
|
|
735
|
+
} | undefined;
|
|
736
|
+
ariaLabel?: string | undefined;
|
|
737
|
+
requireComplete?: boolean | undefined;
|
|
738
|
+
}>]>;
|
|
739
|
+
export declare const pageSchema: z.ZodObject<{
|
|
374
740
|
id: z.ZodString;
|
|
375
741
|
background: z.ZodOptional<z.ZodObject<{
|
|
376
742
|
asset: z.ZodOptional<z.ZodString>;
|
|
@@ -640,6 +1006,165 @@ export declare const pageSchema: z.ZodObject<{
|
|
|
640
1006
|
target: string;
|
|
641
1007
|
className: string;
|
|
642
1008
|
};
|
|
1009
|
+
}>, z.ZodObject<{
|
|
1010
|
+
addClass: z.ZodObject<{
|
|
1011
|
+
target: z.ZodString;
|
|
1012
|
+
className: z.ZodString;
|
|
1013
|
+
}, "strip", z.ZodTypeAny, {
|
|
1014
|
+
target: string;
|
|
1015
|
+
className: string;
|
|
1016
|
+
}, {
|
|
1017
|
+
target: string;
|
|
1018
|
+
className: string;
|
|
1019
|
+
}>;
|
|
1020
|
+
}, "strip", z.ZodTypeAny, {
|
|
1021
|
+
addClass: {
|
|
1022
|
+
target: string;
|
|
1023
|
+
className: string;
|
|
1024
|
+
};
|
|
1025
|
+
}, {
|
|
1026
|
+
addClass: {
|
|
1027
|
+
target: string;
|
|
1028
|
+
className: string;
|
|
1029
|
+
};
|
|
1030
|
+
}>, z.ZodObject<{
|
|
1031
|
+
removeClass: z.ZodObject<{
|
|
1032
|
+
target: z.ZodString;
|
|
1033
|
+
className: z.ZodString;
|
|
1034
|
+
}, "strip", z.ZodTypeAny, {
|
|
1035
|
+
target: string;
|
|
1036
|
+
className: string;
|
|
1037
|
+
}, {
|
|
1038
|
+
target: string;
|
|
1039
|
+
className: string;
|
|
1040
|
+
}>;
|
|
1041
|
+
}, "strip", z.ZodTypeAny, {
|
|
1042
|
+
removeClass: {
|
|
1043
|
+
target: string;
|
|
1044
|
+
className: string;
|
|
1045
|
+
};
|
|
1046
|
+
}, {
|
|
1047
|
+
removeClass: {
|
|
1048
|
+
target: string;
|
|
1049
|
+
className: string;
|
|
1050
|
+
};
|
|
1051
|
+
}>, z.ZodObject<{
|
|
1052
|
+
replayClass: z.ZodObject<{
|
|
1053
|
+
target: z.ZodString;
|
|
1054
|
+
className: z.ZodString;
|
|
1055
|
+
}, "strip", z.ZodTypeAny, {
|
|
1056
|
+
target: string;
|
|
1057
|
+
className: string;
|
|
1058
|
+
}, {
|
|
1059
|
+
target: string;
|
|
1060
|
+
className: string;
|
|
1061
|
+
}>;
|
|
1062
|
+
}, "strip", z.ZodTypeAny, {
|
|
1063
|
+
replayClass: {
|
|
1064
|
+
target: string;
|
|
1065
|
+
className: string;
|
|
1066
|
+
};
|
|
1067
|
+
}, {
|
|
1068
|
+
replayClass: {
|
|
1069
|
+
target: string;
|
|
1070
|
+
className: string;
|
|
1071
|
+
};
|
|
1072
|
+
}>]>, "many">>>;
|
|
1073
|
+
/**
|
|
1074
|
+
* When set, each tap still runs `onTap`. After this many taps, `onComplete`
|
|
1075
|
+
* runs once.
|
|
1076
|
+
*/
|
|
1077
|
+
requiredTaps: z.ZodOptional<z.ZodNumber>;
|
|
1078
|
+
onComplete: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
1079
|
+
play: z.ZodString;
|
|
1080
|
+
}, "strip", z.ZodTypeAny, {
|
|
1081
|
+
play: string;
|
|
1082
|
+
}, {
|
|
1083
|
+
play: string;
|
|
1084
|
+
}>, z.ZodObject<{
|
|
1085
|
+
toggleClass: z.ZodObject<{
|
|
1086
|
+
target: z.ZodString;
|
|
1087
|
+
className: z.ZodString;
|
|
1088
|
+
}, "strip", z.ZodTypeAny, {
|
|
1089
|
+
target: string;
|
|
1090
|
+
className: string;
|
|
1091
|
+
}, {
|
|
1092
|
+
target: string;
|
|
1093
|
+
className: string;
|
|
1094
|
+
}>;
|
|
1095
|
+
}, "strip", z.ZodTypeAny, {
|
|
1096
|
+
toggleClass: {
|
|
1097
|
+
target: string;
|
|
1098
|
+
className: string;
|
|
1099
|
+
};
|
|
1100
|
+
}, {
|
|
1101
|
+
toggleClass: {
|
|
1102
|
+
target: string;
|
|
1103
|
+
className: string;
|
|
1104
|
+
};
|
|
1105
|
+
}>, z.ZodObject<{
|
|
1106
|
+
addClass: z.ZodObject<{
|
|
1107
|
+
target: z.ZodString;
|
|
1108
|
+
className: z.ZodString;
|
|
1109
|
+
}, "strip", z.ZodTypeAny, {
|
|
1110
|
+
target: string;
|
|
1111
|
+
className: string;
|
|
1112
|
+
}, {
|
|
1113
|
+
target: string;
|
|
1114
|
+
className: string;
|
|
1115
|
+
}>;
|
|
1116
|
+
}, "strip", z.ZodTypeAny, {
|
|
1117
|
+
addClass: {
|
|
1118
|
+
target: string;
|
|
1119
|
+
className: string;
|
|
1120
|
+
};
|
|
1121
|
+
}, {
|
|
1122
|
+
addClass: {
|
|
1123
|
+
target: string;
|
|
1124
|
+
className: string;
|
|
1125
|
+
};
|
|
1126
|
+
}>, z.ZodObject<{
|
|
1127
|
+
removeClass: z.ZodObject<{
|
|
1128
|
+
target: z.ZodString;
|
|
1129
|
+
className: z.ZodString;
|
|
1130
|
+
}, "strip", z.ZodTypeAny, {
|
|
1131
|
+
target: string;
|
|
1132
|
+
className: string;
|
|
1133
|
+
}, {
|
|
1134
|
+
target: string;
|
|
1135
|
+
className: string;
|
|
1136
|
+
}>;
|
|
1137
|
+
}, "strip", z.ZodTypeAny, {
|
|
1138
|
+
removeClass: {
|
|
1139
|
+
target: string;
|
|
1140
|
+
className: string;
|
|
1141
|
+
};
|
|
1142
|
+
}, {
|
|
1143
|
+
removeClass: {
|
|
1144
|
+
target: string;
|
|
1145
|
+
className: string;
|
|
1146
|
+
};
|
|
1147
|
+
}>, z.ZodObject<{
|
|
1148
|
+
replayClass: z.ZodObject<{
|
|
1149
|
+
target: z.ZodString;
|
|
1150
|
+
className: z.ZodString;
|
|
1151
|
+
}, "strip", z.ZodTypeAny, {
|
|
1152
|
+
target: string;
|
|
1153
|
+
className: string;
|
|
1154
|
+
}, {
|
|
1155
|
+
target: string;
|
|
1156
|
+
className: string;
|
|
1157
|
+
}>;
|
|
1158
|
+
}, "strip", z.ZodTypeAny, {
|
|
1159
|
+
replayClass: {
|
|
1160
|
+
target: string;
|
|
1161
|
+
className: string;
|
|
1162
|
+
};
|
|
1163
|
+
}, {
|
|
1164
|
+
replayClass: {
|
|
1165
|
+
target: string;
|
|
1166
|
+
className: string;
|
|
1167
|
+
};
|
|
643
1168
|
}>]>, "many">>>;
|
|
644
1169
|
ariaLabel: z.ZodOptional<z.ZodString>;
|
|
645
1170
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -661,7 +1186,46 @@ export declare const pageSchema: z.ZodObject<{
|
|
|
661
1186
|
target: string;
|
|
662
1187
|
className: string;
|
|
663
1188
|
};
|
|
1189
|
+
} | {
|
|
1190
|
+
addClass: {
|
|
1191
|
+
target: string;
|
|
1192
|
+
className: string;
|
|
1193
|
+
};
|
|
1194
|
+
} | {
|
|
1195
|
+
removeClass: {
|
|
1196
|
+
target: string;
|
|
1197
|
+
className: string;
|
|
1198
|
+
};
|
|
1199
|
+
} | {
|
|
1200
|
+
replayClass: {
|
|
1201
|
+
target: string;
|
|
1202
|
+
className: string;
|
|
1203
|
+
};
|
|
1204
|
+
})[];
|
|
1205
|
+
onComplete: ({
|
|
1206
|
+
play: string;
|
|
1207
|
+
} | {
|
|
1208
|
+
toggleClass: {
|
|
1209
|
+
target: string;
|
|
1210
|
+
className: string;
|
|
1211
|
+
};
|
|
1212
|
+
} | {
|
|
1213
|
+
addClass: {
|
|
1214
|
+
target: string;
|
|
1215
|
+
className: string;
|
|
1216
|
+
};
|
|
1217
|
+
} | {
|
|
1218
|
+
removeClass: {
|
|
1219
|
+
target: string;
|
|
1220
|
+
className: string;
|
|
1221
|
+
};
|
|
1222
|
+
} | {
|
|
1223
|
+
replayClass: {
|
|
1224
|
+
target: string;
|
|
1225
|
+
className: string;
|
|
1226
|
+
};
|
|
664
1227
|
})[];
|
|
1228
|
+
requiredTaps?: number | undefined;
|
|
665
1229
|
ariaLabel?: string | undefined;
|
|
666
1230
|
}, {
|
|
667
1231
|
type: "hotspot";
|
|
@@ -682,12 +1246,117 @@ export declare const pageSchema: z.ZodObject<{
|
|
|
682
1246
|
target: string;
|
|
683
1247
|
className: string;
|
|
684
1248
|
};
|
|
1249
|
+
} | {
|
|
1250
|
+
addClass: {
|
|
1251
|
+
target: string;
|
|
1252
|
+
className: string;
|
|
1253
|
+
};
|
|
1254
|
+
} | {
|
|
1255
|
+
removeClass: {
|
|
1256
|
+
target: string;
|
|
1257
|
+
className: string;
|
|
1258
|
+
};
|
|
1259
|
+
} | {
|
|
1260
|
+
replayClass: {
|
|
1261
|
+
target: string;
|
|
1262
|
+
className: string;
|
|
1263
|
+
};
|
|
1264
|
+
})[] | undefined;
|
|
1265
|
+
requiredTaps?: number | undefined;
|
|
1266
|
+
onComplete?: ({
|
|
1267
|
+
play: string;
|
|
1268
|
+
} | {
|
|
1269
|
+
toggleClass: {
|
|
1270
|
+
target: string;
|
|
1271
|
+
className: string;
|
|
1272
|
+
};
|
|
1273
|
+
} | {
|
|
1274
|
+
addClass: {
|
|
1275
|
+
target: string;
|
|
1276
|
+
className: string;
|
|
1277
|
+
};
|
|
1278
|
+
} | {
|
|
1279
|
+
removeClass: {
|
|
1280
|
+
target: string;
|
|
1281
|
+
className: string;
|
|
1282
|
+
};
|
|
1283
|
+
} | {
|
|
1284
|
+
replayClass: {
|
|
1285
|
+
target: string;
|
|
1286
|
+
className: string;
|
|
1287
|
+
};
|
|
685
1288
|
})[] | undefined;
|
|
686
1289
|
ariaLabel?: string | undefined;
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
1290
|
+
}>, z.ZodObject<{
|
|
1291
|
+
id: z.ZodString;
|
|
1292
|
+
type: z.ZodLiteral<"area">;
|
|
1293
|
+
layout: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
1294
|
+
x: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
1295
|
+
y: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
1296
|
+
width: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
1297
|
+
height: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
1298
|
+
fit: z.ZodOptional<z.ZodEnum<["contain", "cover", "fill", "none"]>>;
|
|
1299
|
+
horizontalAlign: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
1300
|
+
verticalAlign: z.ZodOptional<z.ZodEnum<["top", "center", "bottom"]>>;
|
|
1301
|
+
}, "strip", z.ZodTypeAny, {
|
|
1302
|
+
x: string | number;
|
|
1303
|
+
y: string | number;
|
|
1304
|
+
width?: string | number | undefined;
|
|
1305
|
+
height?: string | number | undefined;
|
|
1306
|
+
fit?: "fill" | "contain" | "cover" | "none" | undefined;
|
|
1307
|
+
horizontalAlign?: "left" | "center" | "right" | undefined;
|
|
1308
|
+
verticalAlign?: "center" | "top" | "bottom" | undefined;
|
|
1309
|
+
}, {
|
|
1310
|
+
x?: string | number | undefined;
|
|
1311
|
+
y?: string | number | undefined;
|
|
1312
|
+
width?: string | number | undefined;
|
|
1313
|
+
height?: string | number | undefined;
|
|
1314
|
+
fit?: "fill" | "contain" | "cover" | "none" | undefined;
|
|
1315
|
+
horizontalAlign?: "left" | "center" | "right" | undefined;
|
|
1316
|
+
verticalAlign?: "center" | "top" | "bottom" | undefined;
|
|
1317
|
+
}>>>;
|
|
1318
|
+
/** Registry id passed to {@link registerPageGame} / `StorybookOptions.pageGames`. */
|
|
1319
|
+
game: z.ZodString;
|
|
1320
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1321
|
+
ariaLabel: z.ZodOptional<z.ZodString>;
|
|
1322
|
+
/** When true, reader nav stays locked until the game calls `onComplete`. */
|
|
1323
|
+
requireComplete: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1324
|
+
}, "strip", z.ZodTypeAny, {
|
|
1325
|
+
type: "area";
|
|
1326
|
+
id: string;
|
|
1327
|
+
layout: {
|
|
1328
|
+
x: string | number;
|
|
1329
|
+
y: string | number;
|
|
1330
|
+
width?: string | number | undefined;
|
|
1331
|
+
height?: string | number | undefined;
|
|
1332
|
+
fit?: "fill" | "contain" | "cover" | "none" | undefined;
|
|
1333
|
+
horizontalAlign?: "left" | "center" | "right" | undefined;
|
|
1334
|
+
verticalAlign?: "center" | "top" | "bottom" | undefined;
|
|
1335
|
+
};
|
|
1336
|
+
game: string;
|
|
1337
|
+
requireComplete: boolean;
|
|
1338
|
+
params?: Record<string, unknown> | undefined;
|
|
1339
|
+
ariaLabel?: string | undefined;
|
|
1340
|
+
}, {
|
|
1341
|
+
type: "area";
|
|
1342
|
+
id: string;
|
|
1343
|
+
game: string;
|
|
1344
|
+
params?: Record<string, unknown> | undefined;
|
|
1345
|
+
layout?: {
|
|
1346
|
+
x?: string | number | undefined;
|
|
1347
|
+
y?: string | number | undefined;
|
|
1348
|
+
width?: string | number | undefined;
|
|
1349
|
+
height?: string | number | undefined;
|
|
1350
|
+
fit?: "fill" | "contain" | "cover" | "none" | undefined;
|
|
1351
|
+
horizontalAlign?: "left" | "center" | "right" | undefined;
|
|
1352
|
+
verticalAlign?: "center" | "top" | "bottom" | undefined;
|
|
1353
|
+
} | undefined;
|
|
1354
|
+
ariaLabel?: string | undefined;
|
|
1355
|
+
requireComplete?: boolean | undefined;
|
|
1356
|
+
}>]>, "many">>>;
|
|
1357
|
+
}, "strip", z.ZodTypeAny, {
|
|
1358
|
+
id: string;
|
|
1359
|
+
blocks: ({
|
|
691
1360
|
type: "text";
|
|
692
1361
|
id: string;
|
|
693
1362
|
layout: {
|
|
@@ -743,7 +1412,62 @@ export declare const pageSchema: z.ZodObject<{
|
|
|
743
1412
|
target: string;
|
|
744
1413
|
className: string;
|
|
745
1414
|
};
|
|
1415
|
+
} | {
|
|
1416
|
+
addClass: {
|
|
1417
|
+
target: string;
|
|
1418
|
+
className: string;
|
|
1419
|
+
};
|
|
1420
|
+
} | {
|
|
1421
|
+
removeClass: {
|
|
1422
|
+
target: string;
|
|
1423
|
+
className: string;
|
|
1424
|
+
};
|
|
1425
|
+
} | {
|
|
1426
|
+
replayClass: {
|
|
1427
|
+
target: string;
|
|
1428
|
+
className: string;
|
|
1429
|
+
};
|
|
1430
|
+
})[];
|
|
1431
|
+
onComplete: ({
|
|
1432
|
+
play: string;
|
|
1433
|
+
} | {
|
|
1434
|
+
toggleClass: {
|
|
1435
|
+
target: string;
|
|
1436
|
+
className: string;
|
|
1437
|
+
};
|
|
1438
|
+
} | {
|
|
1439
|
+
addClass: {
|
|
1440
|
+
target: string;
|
|
1441
|
+
className: string;
|
|
1442
|
+
};
|
|
1443
|
+
} | {
|
|
1444
|
+
removeClass: {
|
|
1445
|
+
target: string;
|
|
1446
|
+
className: string;
|
|
1447
|
+
};
|
|
1448
|
+
} | {
|
|
1449
|
+
replayClass: {
|
|
1450
|
+
target: string;
|
|
1451
|
+
className: string;
|
|
1452
|
+
};
|
|
746
1453
|
})[];
|
|
1454
|
+
requiredTaps?: number | undefined;
|
|
1455
|
+
ariaLabel?: string | undefined;
|
|
1456
|
+
} | {
|
|
1457
|
+
type: "area";
|
|
1458
|
+
id: string;
|
|
1459
|
+
layout: {
|
|
1460
|
+
x: string | number;
|
|
1461
|
+
y: string | number;
|
|
1462
|
+
width?: string | number | undefined;
|
|
1463
|
+
height?: string | number | undefined;
|
|
1464
|
+
fit?: "fill" | "contain" | "cover" | "none" | undefined;
|
|
1465
|
+
horizontalAlign?: "left" | "center" | "right" | undefined;
|
|
1466
|
+
verticalAlign?: "center" | "top" | "bottom" | undefined;
|
|
1467
|
+
};
|
|
1468
|
+
game: string;
|
|
1469
|
+
requireComplete: boolean;
|
|
1470
|
+
params?: Record<string, unknown> | undefined;
|
|
747
1471
|
ariaLabel?: string | undefined;
|
|
748
1472
|
})[];
|
|
749
1473
|
background?: {
|
|
@@ -832,8 +1556,63 @@ export declare const pageSchema: z.ZodObject<{
|
|
|
832
1556
|
target: string;
|
|
833
1557
|
className: string;
|
|
834
1558
|
};
|
|
1559
|
+
} | {
|
|
1560
|
+
addClass: {
|
|
1561
|
+
target: string;
|
|
1562
|
+
className: string;
|
|
1563
|
+
};
|
|
1564
|
+
} | {
|
|
1565
|
+
removeClass: {
|
|
1566
|
+
target: string;
|
|
1567
|
+
className: string;
|
|
1568
|
+
};
|
|
1569
|
+
} | {
|
|
1570
|
+
replayClass: {
|
|
1571
|
+
target: string;
|
|
1572
|
+
className: string;
|
|
1573
|
+
};
|
|
1574
|
+
})[] | undefined;
|
|
1575
|
+
requiredTaps?: number | undefined;
|
|
1576
|
+
onComplete?: ({
|
|
1577
|
+
play: string;
|
|
1578
|
+
} | {
|
|
1579
|
+
toggleClass: {
|
|
1580
|
+
target: string;
|
|
1581
|
+
className: string;
|
|
1582
|
+
};
|
|
1583
|
+
} | {
|
|
1584
|
+
addClass: {
|
|
1585
|
+
target: string;
|
|
1586
|
+
className: string;
|
|
1587
|
+
};
|
|
1588
|
+
} | {
|
|
1589
|
+
removeClass: {
|
|
1590
|
+
target: string;
|
|
1591
|
+
className: string;
|
|
1592
|
+
};
|
|
1593
|
+
} | {
|
|
1594
|
+
replayClass: {
|
|
1595
|
+
target: string;
|
|
1596
|
+
className: string;
|
|
1597
|
+
};
|
|
835
1598
|
})[] | undefined;
|
|
836
1599
|
ariaLabel?: string | undefined;
|
|
1600
|
+
} | {
|
|
1601
|
+
type: "area";
|
|
1602
|
+
id: string;
|
|
1603
|
+
game: string;
|
|
1604
|
+
params?: Record<string, unknown> | undefined;
|
|
1605
|
+
layout?: {
|
|
1606
|
+
x?: string | number | undefined;
|
|
1607
|
+
y?: string | number | undefined;
|
|
1608
|
+
width?: string | number | undefined;
|
|
1609
|
+
height?: string | number | undefined;
|
|
1610
|
+
fit?: "fill" | "contain" | "cover" | "none" | undefined;
|
|
1611
|
+
horizontalAlign?: "left" | "center" | "right" | undefined;
|
|
1612
|
+
verticalAlign?: "center" | "top" | "bottom" | undefined;
|
|
1613
|
+
} | undefined;
|
|
1614
|
+
ariaLabel?: string | undefined;
|
|
1615
|
+
requireComplete?: boolean | undefined;
|
|
837
1616
|
})[] | undefined;
|
|
838
1617
|
}>;
|
|
839
1618
|
export declare const storySchema: z.ZodObject<{
|
|
@@ -1176,7 +1955,343 @@ export declare const storySchema: z.ZodObject<{
|
|
|
1176
1955
|
} | undefined;
|
|
1177
1956
|
}>, z.ZodObject<{
|
|
1178
1957
|
id: z.ZodString;
|
|
1179
|
-
type: z.ZodLiteral<"hotspot">;
|
|
1958
|
+
type: z.ZodLiteral<"hotspot">;
|
|
1959
|
+
layout: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
1960
|
+
x: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
1961
|
+
y: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
1962
|
+
width: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
1963
|
+
height: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
1964
|
+
fit: z.ZodOptional<z.ZodEnum<["contain", "cover", "fill", "none"]>>;
|
|
1965
|
+
horizontalAlign: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
1966
|
+
verticalAlign: z.ZodOptional<z.ZodEnum<["top", "center", "bottom"]>>;
|
|
1967
|
+
}, "strip", z.ZodTypeAny, {
|
|
1968
|
+
x: string | number;
|
|
1969
|
+
y: string | number;
|
|
1970
|
+
width?: string | number | undefined;
|
|
1971
|
+
height?: string | number | undefined;
|
|
1972
|
+
fit?: "fill" | "contain" | "cover" | "none" | undefined;
|
|
1973
|
+
horizontalAlign?: "left" | "center" | "right" | undefined;
|
|
1974
|
+
verticalAlign?: "center" | "top" | "bottom" | undefined;
|
|
1975
|
+
}, {
|
|
1976
|
+
x?: string | number | undefined;
|
|
1977
|
+
y?: string | number | undefined;
|
|
1978
|
+
width?: string | number | undefined;
|
|
1979
|
+
height?: string | number | undefined;
|
|
1980
|
+
fit?: "fill" | "contain" | "cover" | "none" | undefined;
|
|
1981
|
+
horizontalAlign?: "left" | "center" | "right" | undefined;
|
|
1982
|
+
verticalAlign?: "center" | "top" | "bottom" | undefined;
|
|
1983
|
+
}>>>;
|
|
1984
|
+
onTap: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
1985
|
+
play: z.ZodString;
|
|
1986
|
+
}, "strip", z.ZodTypeAny, {
|
|
1987
|
+
play: string;
|
|
1988
|
+
}, {
|
|
1989
|
+
play: string;
|
|
1990
|
+
}>, z.ZodObject<{
|
|
1991
|
+
toggleClass: z.ZodObject<{
|
|
1992
|
+
target: z.ZodString;
|
|
1993
|
+
className: z.ZodString;
|
|
1994
|
+
}, "strip", z.ZodTypeAny, {
|
|
1995
|
+
target: string;
|
|
1996
|
+
className: string;
|
|
1997
|
+
}, {
|
|
1998
|
+
target: string;
|
|
1999
|
+
className: string;
|
|
2000
|
+
}>;
|
|
2001
|
+
}, "strip", z.ZodTypeAny, {
|
|
2002
|
+
toggleClass: {
|
|
2003
|
+
target: string;
|
|
2004
|
+
className: string;
|
|
2005
|
+
};
|
|
2006
|
+
}, {
|
|
2007
|
+
toggleClass: {
|
|
2008
|
+
target: string;
|
|
2009
|
+
className: string;
|
|
2010
|
+
};
|
|
2011
|
+
}>, z.ZodObject<{
|
|
2012
|
+
addClass: z.ZodObject<{
|
|
2013
|
+
target: z.ZodString;
|
|
2014
|
+
className: z.ZodString;
|
|
2015
|
+
}, "strip", z.ZodTypeAny, {
|
|
2016
|
+
target: string;
|
|
2017
|
+
className: string;
|
|
2018
|
+
}, {
|
|
2019
|
+
target: string;
|
|
2020
|
+
className: string;
|
|
2021
|
+
}>;
|
|
2022
|
+
}, "strip", z.ZodTypeAny, {
|
|
2023
|
+
addClass: {
|
|
2024
|
+
target: string;
|
|
2025
|
+
className: string;
|
|
2026
|
+
};
|
|
2027
|
+
}, {
|
|
2028
|
+
addClass: {
|
|
2029
|
+
target: string;
|
|
2030
|
+
className: string;
|
|
2031
|
+
};
|
|
2032
|
+
}>, z.ZodObject<{
|
|
2033
|
+
removeClass: z.ZodObject<{
|
|
2034
|
+
target: z.ZodString;
|
|
2035
|
+
className: z.ZodString;
|
|
2036
|
+
}, "strip", z.ZodTypeAny, {
|
|
2037
|
+
target: string;
|
|
2038
|
+
className: string;
|
|
2039
|
+
}, {
|
|
2040
|
+
target: string;
|
|
2041
|
+
className: string;
|
|
2042
|
+
}>;
|
|
2043
|
+
}, "strip", z.ZodTypeAny, {
|
|
2044
|
+
removeClass: {
|
|
2045
|
+
target: string;
|
|
2046
|
+
className: string;
|
|
2047
|
+
};
|
|
2048
|
+
}, {
|
|
2049
|
+
removeClass: {
|
|
2050
|
+
target: string;
|
|
2051
|
+
className: string;
|
|
2052
|
+
};
|
|
2053
|
+
}>, z.ZodObject<{
|
|
2054
|
+
replayClass: z.ZodObject<{
|
|
2055
|
+
target: z.ZodString;
|
|
2056
|
+
className: z.ZodString;
|
|
2057
|
+
}, "strip", z.ZodTypeAny, {
|
|
2058
|
+
target: string;
|
|
2059
|
+
className: string;
|
|
2060
|
+
}, {
|
|
2061
|
+
target: string;
|
|
2062
|
+
className: string;
|
|
2063
|
+
}>;
|
|
2064
|
+
}, "strip", z.ZodTypeAny, {
|
|
2065
|
+
replayClass: {
|
|
2066
|
+
target: string;
|
|
2067
|
+
className: string;
|
|
2068
|
+
};
|
|
2069
|
+
}, {
|
|
2070
|
+
replayClass: {
|
|
2071
|
+
target: string;
|
|
2072
|
+
className: string;
|
|
2073
|
+
};
|
|
2074
|
+
}>]>, "many">>>;
|
|
2075
|
+
/**
|
|
2076
|
+
* When set, each tap still runs `onTap`. After this many taps, `onComplete`
|
|
2077
|
+
* runs once.
|
|
2078
|
+
*/
|
|
2079
|
+
requiredTaps: z.ZodOptional<z.ZodNumber>;
|
|
2080
|
+
onComplete: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
2081
|
+
play: z.ZodString;
|
|
2082
|
+
}, "strip", z.ZodTypeAny, {
|
|
2083
|
+
play: string;
|
|
2084
|
+
}, {
|
|
2085
|
+
play: string;
|
|
2086
|
+
}>, z.ZodObject<{
|
|
2087
|
+
toggleClass: z.ZodObject<{
|
|
2088
|
+
target: z.ZodString;
|
|
2089
|
+
className: z.ZodString;
|
|
2090
|
+
}, "strip", z.ZodTypeAny, {
|
|
2091
|
+
target: string;
|
|
2092
|
+
className: string;
|
|
2093
|
+
}, {
|
|
2094
|
+
target: string;
|
|
2095
|
+
className: string;
|
|
2096
|
+
}>;
|
|
2097
|
+
}, "strip", z.ZodTypeAny, {
|
|
2098
|
+
toggleClass: {
|
|
2099
|
+
target: string;
|
|
2100
|
+
className: string;
|
|
2101
|
+
};
|
|
2102
|
+
}, {
|
|
2103
|
+
toggleClass: {
|
|
2104
|
+
target: string;
|
|
2105
|
+
className: string;
|
|
2106
|
+
};
|
|
2107
|
+
}>, z.ZodObject<{
|
|
2108
|
+
addClass: z.ZodObject<{
|
|
2109
|
+
target: z.ZodString;
|
|
2110
|
+
className: z.ZodString;
|
|
2111
|
+
}, "strip", z.ZodTypeAny, {
|
|
2112
|
+
target: string;
|
|
2113
|
+
className: string;
|
|
2114
|
+
}, {
|
|
2115
|
+
target: string;
|
|
2116
|
+
className: string;
|
|
2117
|
+
}>;
|
|
2118
|
+
}, "strip", z.ZodTypeAny, {
|
|
2119
|
+
addClass: {
|
|
2120
|
+
target: string;
|
|
2121
|
+
className: string;
|
|
2122
|
+
};
|
|
2123
|
+
}, {
|
|
2124
|
+
addClass: {
|
|
2125
|
+
target: string;
|
|
2126
|
+
className: string;
|
|
2127
|
+
};
|
|
2128
|
+
}>, z.ZodObject<{
|
|
2129
|
+
removeClass: z.ZodObject<{
|
|
2130
|
+
target: z.ZodString;
|
|
2131
|
+
className: z.ZodString;
|
|
2132
|
+
}, "strip", z.ZodTypeAny, {
|
|
2133
|
+
target: string;
|
|
2134
|
+
className: string;
|
|
2135
|
+
}, {
|
|
2136
|
+
target: string;
|
|
2137
|
+
className: string;
|
|
2138
|
+
}>;
|
|
2139
|
+
}, "strip", z.ZodTypeAny, {
|
|
2140
|
+
removeClass: {
|
|
2141
|
+
target: string;
|
|
2142
|
+
className: string;
|
|
2143
|
+
};
|
|
2144
|
+
}, {
|
|
2145
|
+
removeClass: {
|
|
2146
|
+
target: string;
|
|
2147
|
+
className: string;
|
|
2148
|
+
};
|
|
2149
|
+
}>, z.ZodObject<{
|
|
2150
|
+
replayClass: z.ZodObject<{
|
|
2151
|
+
target: z.ZodString;
|
|
2152
|
+
className: z.ZodString;
|
|
2153
|
+
}, "strip", z.ZodTypeAny, {
|
|
2154
|
+
target: string;
|
|
2155
|
+
className: string;
|
|
2156
|
+
}, {
|
|
2157
|
+
target: string;
|
|
2158
|
+
className: string;
|
|
2159
|
+
}>;
|
|
2160
|
+
}, "strip", z.ZodTypeAny, {
|
|
2161
|
+
replayClass: {
|
|
2162
|
+
target: string;
|
|
2163
|
+
className: string;
|
|
2164
|
+
};
|
|
2165
|
+
}, {
|
|
2166
|
+
replayClass: {
|
|
2167
|
+
target: string;
|
|
2168
|
+
className: string;
|
|
2169
|
+
};
|
|
2170
|
+
}>]>, "many">>>;
|
|
2171
|
+
ariaLabel: z.ZodOptional<z.ZodString>;
|
|
2172
|
+
}, "strip", z.ZodTypeAny, {
|
|
2173
|
+
type: "hotspot";
|
|
2174
|
+
id: string;
|
|
2175
|
+
layout: {
|
|
2176
|
+
x: string | number;
|
|
2177
|
+
y: string | number;
|
|
2178
|
+
width?: string | number | undefined;
|
|
2179
|
+
height?: string | number | undefined;
|
|
2180
|
+
fit?: "fill" | "contain" | "cover" | "none" | undefined;
|
|
2181
|
+
horizontalAlign?: "left" | "center" | "right" | undefined;
|
|
2182
|
+
verticalAlign?: "center" | "top" | "bottom" | undefined;
|
|
2183
|
+
};
|
|
2184
|
+
onTap: ({
|
|
2185
|
+
play: string;
|
|
2186
|
+
} | {
|
|
2187
|
+
toggleClass: {
|
|
2188
|
+
target: string;
|
|
2189
|
+
className: string;
|
|
2190
|
+
};
|
|
2191
|
+
} | {
|
|
2192
|
+
addClass: {
|
|
2193
|
+
target: string;
|
|
2194
|
+
className: string;
|
|
2195
|
+
};
|
|
2196
|
+
} | {
|
|
2197
|
+
removeClass: {
|
|
2198
|
+
target: string;
|
|
2199
|
+
className: string;
|
|
2200
|
+
};
|
|
2201
|
+
} | {
|
|
2202
|
+
replayClass: {
|
|
2203
|
+
target: string;
|
|
2204
|
+
className: string;
|
|
2205
|
+
};
|
|
2206
|
+
})[];
|
|
2207
|
+
onComplete: ({
|
|
2208
|
+
play: string;
|
|
2209
|
+
} | {
|
|
2210
|
+
toggleClass: {
|
|
2211
|
+
target: string;
|
|
2212
|
+
className: string;
|
|
2213
|
+
};
|
|
2214
|
+
} | {
|
|
2215
|
+
addClass: {
|
|
2216
|
+
target: string;
|
|
2217
|
+
className: string;
|
|
2218
|
+
};
|
|
2219
|
+
} | {
|
|
2220
|
+
removeClass: {
|
|
2221
|
+
target: string;
|
|
2222
|
+
className: string;
|
|
2223
|
+
};
|
|
2224
|
+
} | {
|
|
2225
|
+
replayClass: {
|
|
2226
|
+
target: string;
|
|
2227
|
+
className: string;
|
|
2228
|
+
};
|
|
2229
|
+
})[];
|
|
2230
|
+
requiredTaps?: number | undefined;
|
|
2231
|
+
ariaLabel?: string | undefined;
|
|
2232
|
+
}, {
|
|
2233
|
+
type: "hotspot";
|
|
2234
|
+
id: string;
|
|
2235
|
+
layout?: {
|
|
2236
|
+
x?: string | number | undefined;
|
|
2237
|
+
y?: string | number | undefined;
|
|
2238
|
+
width?: string | number | undefined;
|
|
2239
|
+
height?: string | number | undefined;
|
|
2240
|
+
fit?: "fill" | "contain" | "cover" | "none" | undefined;
|
|
2241
|
+
horizontalAlign?: "left" | "center" | "right" | undefined;
|
|
2242
|
+
verticalAlign?: "center" | "top" | "bottom" | undefined;
|
|
2243
|
+
} | undefined;
|
|
2244
|
+
onTap?: ({
|
|
2245
|
+
play: string;
|
|
2246
|
+
} | {
|
|
2247
|
+
toggleClass: {
|
|
2248
|
+
target: string;
|
|
2249
|
+
className: string;
|
|
2250
|
+
};
|
|
2251
|
+
} | {
|
|
2252
|
+
addClass: {
|
|
2253
|
+
target: string;
|
|
2254
|
+
className: string;
|
|
2255
|
+
};
|
|
2256
|
+
} | {
|
|
2257
|
+
removeClass: {
|
|
2258
|
+
target: string;
|
|
2259
|
+
className: string;
|
|
2260
|
+
};
|
|
2261
|
+
} | {
|
|
2262
|
+
replayClass: {
|
|
2263
|
+
target: string;
|
|
2264
|
+
className: string;
|
|
2265
|
+
};
|
|
2266
|
+
})[] | undefined;
|
|
2267
|
+
requiredTaps?: number | undefined;
|
|
2268
|
+
onComplete?: ({
|
|
2269
|
+
play: string;
|
|
2270
|
+
} | {
|
|
2271
|
+
toggleClass: {
|
|
2272
|
+
target: string;
|
|
2273
|
+
className: string;
|
|
2274
|
+
};
|
|
2275
|
+
} | {
|
|
2276
|
+
addClass: {
|
|
2277
|
+
target: string;
|
|
2278
|
+
className: string;
|
|
2279
|
+
};
|
|
2280
|
+
} | {
|
|
2281
|
+
removeClass: {
|
|
2282
|
+
target: string;
|
|
2283
|
+
className: string;
|
|
2284
|
+
};
|
|
2285
|
+
} | {
|
|
2286
|
+
replayClass: {
|
|
2287
|
+
target: string;
|
|
2288
|
+
className: string;
|
|
2289
|
+
};
|
|
2290
|
+
})[] | undefined;
|
|
2291
|
+
ariaLabel?: string | undefined;
|
|
2292
|
+
}>, z.ZodObject<{
|
|
2293
|
+
id: z.ZodString;
|
|
2294
|
+
type: z.ZodLiteral<"area">;
|
|
1180
2295
|
layout: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
1181
2296
|
x: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
1182
2297
|
y: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
@@ -1202,37 +2317,14 @@ export declare const storySchema: z.ZodObject<{
|
|
|
1202
2317
|
horizontalAlign?: "left" | "center" | "right" | undefined;
|
|
1203
2318
|
verticalAlign?: "center" | "top" | "bottom" | undefined;
|
|
1204
2319
|
}>>>;
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
play: string;
|
|
1209
|
-
}, {
|
|
1210
|
-
play: string;
|
|
1211
|
-
}>, z.ZodObject<{
|
|
1212
|
-
toggleClass: z.ZodObject<{
|
|
1213
|
-
target: z.ZodString;
|
|
1214
|
-
className: z.ZodString;
|
|
1215
|
-
}, "strip", z.ZodTypeAny, {
|
|
1216
|
-
target: string;
|
|
1217
|
-
className: string;
|
|
1218
|
-
}, {
|
|
1219
|
-
target: string;
|
|
1220
|
-
className: string;
|
|
1221
|
-
}>;
|
|
1222
|
-
}, "strip", z.ZodTypeAny, {
|
|
1223
|
-
toggleClass: {
|
|
1224
|
-
target: string;
|
|
1225
|
-
className: string;
|
|
1226
|
-
};
|
|
1227
|
-
}, {
|
|
1228
|
-
toggleClass: {
|
|
1229
|
-
target: string;
|
|
1230
|
-
className: string;
|
|
1231
|
-
};
|
|
1232
|
-
}>]>, "many">>>;
|
|
2320
|
+
/** Registry id passed to {@link registerPageGame} / `StorybookOptions.pageGames`. */
|
|
2321
|
+
game: z.ZodString;
|
|
2322
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1233
2323
|
ariaLabel: z.ZodOptional<z.ZodString>;
|
|
2324
|
+
/** When true, reader nav stays locked until the game calls `onComplete`. */
|
|
2325
|
+
requireComplete: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1234
2326
|
}, "strip", z.ZodTypeAny, {
|
|
1235
|
-
type: "
|
|
2327
|
+
type: "area";
|
|
1236
2328
|
id: string;
|
|
1237
2329
|
layout: {
|
|
1238
2330
|
x: string | number;
|
|
@@ -1243,18 +2335,15 @@ export declare const storySchema: z.ZodObject<{
|
|
|
1243
2335
|
horizontalAlign?: "left" | "center" | "right" | undefined;
|
|
1244
2336
|
verticalAlign?: "center" | "top" | "bottom" | undefined;
|
|
1245
2337
|
};
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
toggleClass: {
|
|
1250
|
-
target: string;
|
|
1251
|
-
className: string;
|
|
1252
|
-
};
|
|
1253
|
-
})[];
|
|
2338
|
+
game: string;
|
|
2339
|
+
requireComplete: boolean;
|
|
2340
|
+
params?: Record<string, unknown> | undefined;
|
|
1254
2341
|
ariaLabel?: string | undefined;
|
|
1255
2342
|
}, {
|
|
1256
|
-
type: "
|
|
2343
|
+
type: "area";
|
|
1257
2344
|
id: string;
|
|
2345
|
+
game: string;
|
|
2346
|
+
params?: Record<string, unknown> | undefined;
|
|
1258
2347
|
layout?: {
|
|
1259
2348
|
x?: string | number | undefined;
|
|
1260
2349
|
y?: string | number | undefined;
|
|
@@ -1264,15 +2353,8 @@ export declare const storySchema: z.ZodObject<{
|
|
|
1264
2353
|
horizontalAlign?: "left" | "center" | "right" | undefined;
|
|
1265
2354
|
verticalAlign?: "center" | "top" | "bottom" | undefined;
|
|
1266
2355
|
} | undefined;
|
|
1267
|
-
onTap?: ({
|
|
1268
|
-
play: string;
|
|
1269
|
-
} | {
|
|
1270
|
-
toggleClass: {
|
|
1271
|
-
target: string;
|
|
1272
|
-
className: string;
|
|
1273
|
-
};
|
|
1274
|
-
})[] | undefined;
|
|
1275
2356
|
ariaLabel?: string | undefined;
|
|
2357
|
+
requireComplete?: boolean | undefined;
|
|
1276
2358
|
}>]>, "many">>>;
|
|
1277
2359
|
}, "strip", z.ZodTypeAny, {
|
|
1278
2360
|
id: string;
|
|
@@ -1332,7 +2414,62 @@ export declare const storySchema: z.ZodObject<{
|
|
|
1332
2414
|
target: string;
|
|
1333
2415
|
className: string;
|
|
1334
2416
|
};
|
|
2417
|
+
} | {
|
|
2418
|
+
addClass: {
|
|
2419
|
+
target: string;
|
|
2420
|
+
className: string;
|
|
2421
|
+
};
|
|
2422
|
+
} | {
|
|
2423
|
+
removeClass: {
|
|
2424
|
+
target: string;
|
|
2425
|
+
className: string;
|
|
2426
|
+
};
|
|
2427
|
+
} | {
|
|
2428
|
+
replayClass: {
|
|
2429
|
+
target: string;
|
|
2430
|
+
className: string;
|
|
2431
|
+
};
|
|
2432
|
+
})[];
|
|
2433
|
+
onComplete: ({
|
|
2434
|
+
play: string;
|
|
2435
|
+
} | {
|
|
2436
|
+
toggleClass: {
|
|
2437
|
+
target: string;
|
|
2438
|
+
className: string;
|
|
2439
|
+
};
|
|
2440
|
+
} | {
|
|
2441
|
+
addClass: {
|
|
2442
|
+
target: string;
|
|
2443
|
+
className: string;
|
|
2444
|
+
};
|
|
2445
|
+
} | {
|
|
2446
|
+
removeClass: {
|
|
2447
|
+
target: string;
|
|
2448
|
+
className: string;
|
|
2449
|
+
};
|
|
2450
|
+
} | {
|
|
2451
|
+
replayClass: {
|
|
2452
|
+
target: string;
|
|
2453
|
+
className: string;
|
|
2454
|
+
};
|
|
1335
2455
|
})[];
|
|
2456
|
+
requiredTaps?: number | undefined;
|
|
2457
|
+
ariaLabel?: string | undefined;
|
|
2458
|
+
} | {
|
|
2459
|
+
type: "area";
|
|
2460
|
+
id: string;
|
|
2461
|
+
layout: {
|
|
2462
|
+
x: string | number;
|
|
2463
|
+
y: string | number;
|
|
2464
|
+
width?: string | number | undefined;
|
|
2465
|
+
height?: string | number | undefined;
|
|
2466
|
+
fit?: "fill" | "contain" | "cover" | "none" | undefined;
|
|
2467
|
+
horizontalAlign?: "left" | "center" | "right" | undefined;
|
|
2468
|
+
verticalAlign?: "center" | "top" | "bottom" | undefined;
|
|
2469
|
+
};
|
|
2470
|
+
game: string;
|
|
2471
|
+
requireComplete: boolean;
|
|
2472
|
+
params?: Record<string, unknown> | undefined;
|
|
1336
2473
|
ariaLabel?: string | undefined;
|
|
1337
2474
|
})[];
|
|
1338
2475
|
background?: {
|
|
@@ -1421,8 +2558,63 @@ export declare const storySchema: z.ZodObject<{
|
|
|
1421
2558
|
target: string;
|
|
1422
2559
|
className: string;
|
|
1423
2560
|
};
|
|
2561
|
+
} | {
|
|
2562
|
+
addClass: {
|
|
2563
|
+
target: string;
|
|
2564
|
+
className: string;
|
|
2565
|
+
};
|
|
2566
|
+
} | {
|
|
2567
|
+
removeClass: {
|
|
2568
|
+
target: string;
|
|
2569
|
+
className: string;
|
|
2570
|
+
};
|
|
2571
|
+
} | {
|
|
2572
|
+
replayClass: {
|
|
2573
|
+
target: string;
|
|
2574
|
+
className: string;
|
|
2575
|
+
};
|
|
2576
|
+
})[] | undefined;
|
|
2577
|
+
requiredTaps?: number | undefined;
|
|
2578
|
+
onComplete?: ({
|
|
2579
|
+
play: string;
|
|
2580
|
+
} | {
|
|
2581
|
+
toggleClass: {
|
|
2582
|
+
target: string;
|
|
2583
|
+
className: string;
|
|
2584
|
+
};
|
|
2585
|
+
} | {
|
|
2586
|
+
addClass: {
|
|
2587
|
+
target: string;
|
|
2588
|
+
className: string;
|
|
2589
|
+
};
|
|
2590
|
+
} | {
|
|
2591
|
+
removeClass: {
|
|
2592
|
+
target: string;
|
|
2593
|
+
className: string;
|
|
2594
|
+
};
|
|
2595
|
+
} | {
|
|
2596
|
+
replayClass: {
|
|
2597
|
+
target: string;
|
|
2598
|
+
className: string;
|
|
2599
|
+
};
|
|
1424
2600
|
})[] | undefined;
|
|
1425
2601
|
ariaLabel?: string | undefined;
|
|
2602
|
+
} | {
|
|
2603
|
+
type: "area";
|
|
2604
|
+
id: string;
|
|
2605
|
+
game: string;
|
|
2606
|
+
params?: Record<string, unknown> | undefined;
|
|
2607
|
+
layout?: {
|
|
2608
|
+
x?: string | number | undefined;
|
|
2609
|
+
y?: string | number | undefined;
|
|
2610
|
+
width?: string | number | undefined;
|
|
2611
|
+
height?: string | number | undefined;
|
|
2612
|
+
fit?: "fill" | "contain" | "cover" | "none" | undefined;
|
|
2613
|
+
horizontalAlign?: "left" | "center" | "right" | undefined;
|
|
2614
|
+
verticalAlign?: "center" | "top" | "bottom" | undefined;
|
|
2615
|
+
} | undefined;
|
|
2616
|
+
ariaLabel?: string | undefined;
|
|
2617
|
+
requireComplete?: boolean | undefined;
|
|
1426
2618
|
})[] | undefined;
|
|
1427
2619
|
}>, "many">;
|
|
1428
2620
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1512,7 +2704,62 @@ export declare const storySchema: z.ZodObject<{
|
|
|
1512
2704
|
target: string;
|
|
1513
2705
|
className: string;
|
|
1514
2706
|
};
|
|
2707
|
+
} | {
|
|
2708
|
+
addClass: {
|
|
2709
|
+
target: string;
|
|
2710
|
+
className: string;
|
|
2711
|
+
};
|
|
2712
|
+
} | {
|
|
2713
|
+
removeClass: {
|
|
2714
|
+
target: string;
|
|
2715
|
+
className: string;
|
|
2716
|
+
};
|
|
2717
|
+
} | {
|
|
2718
|
+
replayClass: {
|
|
2719
|
+
target: string;
|
|
2720
|
+
className: string;
|
|
2721
|
+
};
|
|
2722
|
+
})[];
|
|
2723
|
+
onComplete: ({
|
|
2724
|
+
play: string;
|
|
2725
|
+
} | {
|
|
2726
|
+
toggleClass: {
|
|
2727
|
+
target: string;
|
|
2728
|
+
className: string;
|
|
2729
|
+
};
|
|
2730
|
+
} | {
|
|
2731
|
+
addClass: {
|
|
2732
|
+
target: string;
|
|
2733
|
+
className: string;
|
|
2734
|
+
};
|
|
2735
|
+
} | {
|
|
2736
|
+
removeClass: {
|
|
2737
|
+
target: string;
|
|
2738
|
+
className: string;
|
|
2739
|
+
};
|
|
2740
|
+
} | {
|
|
2741
|
+
replayClass: {
|
|
2742
|
+
target: string;
|
|
2743
|
+
className: string;
|
|
2744
|
+
};
|
|
1515
2745
|
})[];
|
|
2746
|
+
requiredTaps?: number | undefined;
|
|
2747
|
+
ariaLabel?: string | undefined;
|
|
2748
|
+
} | {
|
|
2749
|
+
type: "area";
|
|
2750
|
+
id: string;
|
|
2751
|
+
layout: {
|
|
2752
|
+
x: string | number;
|
|
2753
|
+
y: string | number;
|
|
2754
|
+
width?: string | number | undefined;
|
|
2755
|
+
height?: string | number | undefined;
|
|
2756
|
+
fit?: "fill" | "contain" | "cover" | "none" | undefined;
|
|
2757
|
+
horizontalAlign?: "left" | "center" | "right" | undefined;
|
|
2758
|
+
verticalAlign?: "center" | "top" | "bottom" | undefined;
|
|
2759
|
+
};
|
|
2760
|
+
game: string;
|
|
2761
|
+
requireComplete: boolean;
|
|
2762
|
+
params?: Record<string, unknown> | undefined;
|
|
1516
2763
|
ariaLabel?: string | undefined;
|
|
1517
2764
|
})[];
|
|
1518
2765
|
background?: {
|
|
@@ -1620,8 +2867,63 @@ export declare const storySchema: z.ZodObject<{
|
|
|
1620
2867
|
target: string;
|
|
1621
2868
|
className: string;
|
|
1622
2869
|
};
|
|
2870
|
+
} | {
|
|
2871
|
+
addClass: {
|
|
2872
|
+
target: string;
|
|
2873
|
+
className: string;
|
|
2874
|
+
};
|
|
2875
|
+
} | {
|
|
2876
|
+
removeClass: {
|
|
2877
|
+
target: string;
|
|
2878
|
+
className: string;
|
|
2879
|
+
};
|
|
2880
|
+
} | {
|
|
2881
|
+
replayClass: {
|
|
2882
|
+
target: string;
|
|
2883
|
+
className: string;
|
|
2884
|
+
};
|
|
2885
|
+
})[] | undefined;
|
|
2886
|
+
requiredTaps?: number | undefined;
|
|
2887
|
+
onComplete?: ({
|
|
2888
|
+
play: string;
|
|
2889
|
+
} | {
|
|
2890
|
+
toggleClass: {
|
|
2891
|
+
target: string;
|
|
2892
|
+
className: string;
|
|
2893
|
+
};
|
|
2894
|
+
} | {
|
|
2895
|
+
addClass: {
|
|
2896
|
+
target: string;
|
|
2897
|
+
className: string;
|
|
2898
|
+
};
|
|
2899
|
+
} | {
|
|
2900
|
+
removeClass: {
|
|
2901
|
+
target: string;
|
|
2902
|
+
className: string;
|
|
2903
|
+
};
|
|
2904
|
+
} | {
|
|
2905
|
+
replayClass: {
|
|
2906
|
+
target: string;
|
|
2907
|
+
className: string;
|
|
2908
|
+
};
|
|
1623
2909
|
})[] | undefined;
|
|
1624
2910
|
ariaLabel?: string | undefined;
|
|
2911
|
+
} | {
|
|
2912
|
+
type: "area";
|
|
2913
|
+
id: string;
|
|
2914
|
+
game: string;
|
|
2915
|
+
params?: Record<string, unknown> | undefined;
|
|
2916
|
+
layout?: {
|
|
2917
|
+
x?: string | number | undefined;
|
|
2918
|
+
y?: string | number | undefined;
|
|
2919
|
+
width?: string | number | undefined;
|
|
2920
|
+
height?: string | number | undefined;
|
|
2921
|
+
fit?: "fill" | "contain" | "cover" | "none" | undefined;
|
|
2922
|
+
horizontalAlign?: "left" | "center" | "right" | undefined;
|
|
2923
|
+
verticalAlign?: "center" | "top" | "bottom" | undefined;
|
|
2924
|
+
} | undefined;
|
|
2925
|
+
ariaLabel?: string | undefined;
|
|
2926
|
+
requireComplete?: boolean | undefined;
|
|
1625
2927
|
})[] | undefined;
|
|
1626
2928
|
}[];
|
|
1627
2929
|
title?: string | undefined;
|