@swishapp/sdk 0.136.0 → 0.136.1-unstable.20260610194443
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/options/schemas.d.ts +101 -243
- package/dist/swish.d.ts +6 -6
- package/dist/swish.js +30 -30
- package/package.json +1 -1
|
@@ -62,15 +62,11 @@ export declare const DrawerSectionSchema: v.VariantSchema<"type", [v.ObjectSchem
|
|
|
62
62
|
readonly enabled: true;
|
|
63
63
|
readonly intent: "view:profile";
|
|
64
64
|
}]>;
|
|
65
|
-
}, undefined>,
|
|
66
|
-
readonly displayType:
|
|
67
|
-
readonly showIcons:
|
|
68
|
-
readonly showText:
|
|
69
|
-
readonly items:
|
|
70
|
-
readonly id: v.StringSchema<undefined>;
|
|
71
|
-
readonly enabled: v.BooleanSchema<undefined>;
|
|
72
|
-
readonly intent: v.StringSchema<undefined>;
|
|
73
|
-
}, undefined>, undefined>, readonly [{
|
|
65
|
+
}, undefined>, {
|
|
66
|
+
readonly displayType: "docked";
|
|
67
|
+
readonly showIcons: false;
|
|
68
|
+
readonly showText: true;
|
|
69
|
+
readonly items: readonly [{
|
|
74
70
|
readonly id: "home";
|
|
75
71
|
readonly enabled: true;
|
|
76
72
|
readonly intent: "view:home";
|
|
@@ -94,8 +90,8 @@ export declare const DrawerSectionSchema: v.VariantSchema<"type", [v.ObjectSchem
|
|
|
94
90
|
readonly id: "profile";
|
|
95
91
|
readonly enabled: true;
|
|
96
92
|
readonly intent: "view:profile";
|
|
97
|
-
}]
|
|
98
|
-
}
|
|
93
|
+
}];
|
|
94
|
+
}>;
|
|
99
95
|
}, undefined>], undefined>;
|
|
100
96
|
export declare const HomeSectionSchema: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
101
97
|
readonly type: v.PicklistSchema<["sign-in", "notifications", "recently-viewed", "saved-from-cart", "saved-items", "lists"], undefined>;
|
|
@@ -372,15 +368,11 @@ export declare const DrawerViewSchema: v.ObjectSchema<{
|
|
|
372
368
|
readonly enabled: true;
|
|
373
369
|
readonly intent: "view:profile";
|
|
374
370
|
}]>;
|
|
375
|
-
}, undefined>,
|
|
376
|
-
readonly displayType:
|
|
377
|
-
readonly showIcons:
|
|
378
|
-
readonly showText:
|
|
379
|
-
readonly items:
|
|
380
|
-
readonly id: v.StringSchema<undefined>;
|
|
381
|
-
readonly enabled: v.BooleanSchema<undefined>;
|
|
382
|
-
readonly intent: v.StringSchema<undefined>;
|
|
383
|
-
}, undefined>, undefined>, readonly [{
|
|
371
|
+
}, undefined>, {
|
|
372
|
+
readonly displayType: "docked";
|
|
373
|
+
readonly showIcons: false;
|
|
374
|
+
readonly showText: true;
|
|
375
|
+
readonly items: readonly [{
|
|
384
376
|
readonly id: "home";
|
|
385
377
|
readonly enabled: true;
|
|
386
378
|
readonly intent: "view:home";
|
|
@@ -404,25 +396,11 @@ export declare const DrawerViewSchema: v.ObjectSchema<{
|
|
|
404
396
|
readonly id: "profile";
|
|
405
397
|
readonly enabled: true;
|
|
406
398
|
readonly intent: "view:profile";
|
|
407
|
-
}]
|
|
408
|
-
}
|
|
409
|
-
}, undefined>], undefined>, undefined>,
|
|
410
|
-
readonly type:
|
|
411
|
-
readonly
|
|
412
|
-
readonly design: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, {}>;
|
|
413
|
-
readonly options: v.OptionalSchema<v.ObjectSchema<{
|
|
414
|
-
readonly title: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
415
|
-
readonly logo: v.OptionalSchema<v.ObjectSchema<{
|
|
416
|
-
readonly url: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
417
|
-
readonly altText: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
418
|
-
}, undefined>, {
|
|
419
|
-
readonly url: "";
|
|
420
|
-
readonly altText: "";
|
|
421
|
-
}>;
|
|
422
|
-
readonly useCloseButton: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
423
|
-
readonly accountButton: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
424
|
-
readonly notificationButton: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
425
|
-
}, undefined>, {
|
|
399
|
+
}];
|
|
400
|
+
}>;
|
|
401
|
+
}, undefined>], undefined>, undefined>, readonly [{
|
|
402
|
+
readonly type: "drawer-header";
|
|
403
|
+
readonly options: {
|
|
426
404
|
readonly title: "";
|
|
427
405
|
readonly logo: {
|
|
428
406
|
readonly url: "";
|
|
@@ -431,53 +409,14 @@ export declare const DrawerViewSchema: v.ObjectSchema<{
|
|
|
431
409
|
readonly useCloseButton: false;
|
|
432
410
|
readonly accountButton: true;
|
|
433
411
|
readonly notificationButton: true;
|
|
434
|
-
}
|
|
435
|
-
},
|
|
436
|
-
readonly type:
|
|
437
|
-
readonly
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
readonly
|
|
441
|
-
readonly
|
|
442
|
-
readonly showText: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
443
|
-
readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
444
|
-
readonly id: v.StringSchema<undefined>;
|
|
445
|
-
readonly enabled: v.BooleanSchema<undefined>;
|
|
446
|
-
readonly intent: v.StringSchema<undefined>;
|
|
447
|
-
}, undefined>, undefined>, readonly [{
|
|
448
|
-
readonly id: "home";
|
|
449
|
-
readonly enabled: true;
|
|
450
|
-
readonly intent: "view:home";
|
|
451
|
-
}, {
|
|
452
|
-
readonly id: "saves";
|
|
453
|
-
readonly enabled: true;
|
|
454
|
-
readonly intent: "view:saves";
|
|
455
|
-
}, {
|
|
456
|
-
readonly id: "lists";
|
|
457
|
-
readonly enabled: false;
|
|
458
|
-
readonly intent: "view:lists";
|
|
459
|
-
}, {
|
|
460
|
-
readonly id: "notifications";
|
|
461
|
-
readonly enabled: true;
|
|
462
|
-
readonly intent: "view:notifications";
|
|
463
|
-
}, {
|
|
464
|
-
readonly id: "orders";
|
|
465
|
-
readonly enabled: true;
|
|
466
|
-
readonly intent: "view:orders";
|
|
467
|
-
}, {
|
|
468
|
-
readonly id: "profile";
|
|
469
|
-
readonly enabled: true;
|
|
470
|
-
readonly intent: "view:profile";
|
|
471
|
-
}]>;
|
|
472
|
-
}, undefined>, v.Default<v.ObjectSchema<{
|
|
473
|
-
readonly displayType: v.OptionalSchema<v.PicklistSchema<["floating", "docked"], undefined>, "docked">;
|
|
474
|
-
readonly showIcons: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
475
|
-
readonly showText: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
476
|
-
readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
477
|
-
readonly id: v.StringSchema<undefined>;
|
|
478
|
-
readonly enabled: v.BooleanSchema<undefined>;
|
|
479
|
-
readonly intent: v.StringSchema<undefined>;
|
|
480
|
-
}, undefined>, undefined>, readonly [{
|
|
412
|
+
};
|
|
413
|
+
}, {
|
|
414
|
+
readonly type: "drawer-footer";
|
|
415
|
+
readonly options: {
|
|
416
|
+
readonly displayType: "docked";
|
|
417
|
+
readonly showIcons: false;
|
|
418
|
+
readonly showText: true;
|
|
419
|
+
readonly items: readonly [{
|
|
481
420
|
readonly id: "home";
|
|
482
421
|
readonly enabled: true;
|
|
483
422
|
readonly intent: "view:home";
|
|
@@ -501,9 +440,9 @@ export declare const DrawerViewSchema: v.ObjectSchema<{
|
|
|
501
440
|
readonly id: "profile";
|
|
502
441
|
readonly enabled: true;
|
|
503
442
|
readonly intent: "view:profile";
|
|
504
|
-
}]
|
|
505
|
-
}
|
|
506
|
-
}
|
|
443
|
+
}];
|
|
444
|
+
};
|
|
445
|
+
}]>;
|
|
507
446
|
}, undefined>;
|
|
508
447
|
export declare const HomeViewSchema: v.ObjectSchema<{
|
|
509
448
|
readonly sections: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
@@ -543,44 +482,32 @@ export declare const HomeViewSchema: v.ObjectSchema<{
|
|
|
543
482
|
readonly design: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, {}>;
|
|
544
483
|
readonly options: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, {}>;
|
|
545
484
|
readonly handle: v.StringSchema<undefined>;
|
|
546
|
-
}, undefined>], undefined>, undefined>,
|
|
547
|
-
readonly type:
|
|
548
|
-
|
|
549
|
-
readonly
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
readonly
|
|
554
|
-
|
|
555
|
-
readonly
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
readonly url:
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
}, undefined>, undefined>;
|
|
573
|
-
readonly link: v.OptionalSchema<v.ObjectSchema<{
|
|
574
|
-
readonly url: v.StringSchema<undefined>;
|
|
575
|
-
readonly target: v.OptionalSchema<v.PicklistSchema<["_self", "_blank"], undefined>, undefined>;
|
|
576
|
-
}, undefined>, undefined>;
|
|
577
|
-
}, undefined>, v.ObjectSchema<{
|
|
578
|
-
readonly type: v.LiteralSchema<"featured-collection", undefined>;
|
|
579
|
-
readonly hidden: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
580
|
-
readonly design: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, {}>;
|
|
581
|
-
readonly options: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, {}>;
|
|
582
|
-
readonly handle: v.StringSchema<undefined>;
|
|
583
|
-
}, undefined>], undefined>, undefined>, undefined>>;
|
|
485
|
+
}, undefined>], undefined>, undefined>, readonly [{
|
|
486
|
+
readonly type: "sign-in";
|
|
487
|
+
}, {
|
|
488
|
+
readonly type: "notifications";
|
|
489
|
+
}, {
|
|
490
|
+
readonly type: "recently-viewed";
|
|
491
|
+
}, {
|
|
492
|
+
readonly type: "saved-from-cart";
|
|
493
|
+
}, {
|
|
494
|
+
readonly type: "saved-items";
|
|
495
|
+
}, {
|
|
496
|
+
readonly type: "lists";
|
|
497
|
+
}, {
|
|
498
|
+
readonly type: "mini-menu";
|
|
499
|
+
readonly hidden: true;
|
|
500
|
+
readonly items: readonly [{
|
|
501
|
+
readonly title: "Shipping";
|
|
502
|
+
readonly url: "/policies/shipping-policy";
|
|
503
|
+
}, {
|
|
504
|
+
readonly title: "Returns";
|
|
505
|
+
readonly url: "/policies/refund-policy";
|
|
506
|
+
}, {
|
|
507
|
+
readonly title: "Contact Us";
|
|
508
|
+
readonly url: "/pages/contact";
|
|
509
|
+
}];
|
|
510
|
+
}]>;
|
|
584
511
|
}, undefined>;
|
|
585
512
|
export declare const SavesViewSchema: v.ObjectSchema<{
|
|
586
513
|
readonly sections: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
@@ -894,15 +821,11 @@ export declare const UiSchema: v.ObjectSchema<{
|
|
|
894
821
|
readonly enabled: true;
|
|
895
822
|
readonly intent: "view:profile";
|
|
896
823
|
}]>;
|
|
897
|
-
}, undefined>,
|
|
898
|
-
readonly displayType:
|
|
899
|
-
readonly showIcons:
|
|
900
|
-
readonly showText:
|
|
901
|
-
readonly items:
|
|
902
|
-
readonly id: v.StringSchema<undefined>;
|
|
903
|
-
readonly enabled: v.BooleanSchema<undefined>;
|
|
904
|
-
readonly intent: v.StringSchema<undefined>;
|
|
905
|
-
}, undefined>, undefined>, readonly [{
|
|
824
|
+
}, undefined>, {
|
|
825
|
+
readonly displayType: "docked";
|
|
826
|
+
readonly showIcons: false;
|
|
827
|
+
readonly showText: true;
|
|
828
|
+
readonly items: readonly [{
|
|
906
829
|
readonly id: "home";
|
|
907
830
|
readonly enabled: true;
|
|
908
831
|
readonly intent: "view:home";
|
|
@@ -926,25 +849,11 @@ export declare const UiSchema: v.ObjectSchema<{
|
|
|
926
849
|
readonly id: "profile";
|
|
927
850
|
readonly enabled: true;
|
|
928
851
|
readonly intent: "view:profile";
|
|
929
|
-
}]
|
|
930
|
-
}
|
|
931
|
-
}, undefined>], undefined>, undefined>,
|
|
932
|
-
readonly type:
|
|
933
|
-
readonly
|
|
934
|
-
readonly design: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, {}>;
|
|
935
|
-
readonly options: v.OptionalSchema<v.ObjectSchema<{
|
|
936
|
-
readonly title: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
937
|
-
readonly logo: v.OptionalSchema<v.ObjectSchema<{
|
|
938
|
-
readonly url: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
939
|
-
readonly altText: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
940
|
-
}, undefined>, {
|
|
941
|
-
readonly url: "";
|
|
942
|
-
readonly altText: "";
|
|
943
|
-
}>;
|
|
944
|
-
readonly useCloseButton: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
945
|
-
readonly accountButton: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
946
|
-
readonly notificationButton: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
947
|
-
}, undefined>, {
|
|
852
|
+
}];
|
|
853
|
+
}>;
|
|
854
|
+
}, undefined>], undefined>, undefined>, readonly [{
|
|
855
|
+
readonly type: "drawer-header";
|
|
856
|
+
readonly options: {
|
|
948
857
|
readonly title: "";
|
|
949
858
|
readonly logo: {
|
|
950
859
|
readonly url: "";
|
|
@@ -953,53 +862,14 @@ export declare const UiSchema: v.ObjectSchema<{
|
|
|
953
862
|
readonly useCloseButton: false;
|
|
954
863
|
readonly accountButton: true;
|
|
955
864
|
readonly notificationButton: true;
|
|
956
|
-
}
|
|
957
|
-
},
|
|
958
|
-
readonly type:
|
|
959
|
-
readonly
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
readonly
|
|
963
|
-
readonly
|
|
964
|
-
readonly showText: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
965
|
-
readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
966
|
-
readonly id: v.StringSchema<undefined>;
|
|
967
|
-
readonly enabled: v.BooleanSchema<undefined>;
|
|
968
|
-
readonly intent: v.StringSchema<undefined>;
|
|
969
|
-
}, undefined>, undefined>, readonly [{
|
|
970
|
-
readonly id: "home";
|
|
971
|
-
readonly enabled: true;
|
|
972
|
-
readonly intent: "view:home";
|
|
973
|
-
}, {
|
|
974
|
-
readonly id: "saves";
|
|
975
|
-
readonly enabled: true;
|
|
976
|
-
readonly intent: "view:saves";
|
|
977
|
-
}, {
|
|
978
|
-
readonly id: "lists";
|
|
979
|
-
readonly enabled: false;
|
|
980
|
-
readonly intent: "view:lists";
|
|
981
|
-
}, {
|
|
982
|
-
readonly id: "notifications";
|
|
983
|
-
readonly enabled: true;
|
|
984
|
-
readonly intent: "view:notifications";
|
|
985
|
-
}, {
|
|
986
|
-
readonly id: "orders";
|
|
987
|
-
readonly enabled: true;
|
|
988
|
-
readonly intent: "view:orders";
|
|
989
|
-
}, {
|
|
990
|
-
readonly id: "profile";
|
|
991
|
-
readonly enabled: true;
|
|
992
|
-
readonly intent: "view:profile";
|
|
993
|
-
}]>;
|
|
994
|
-
}, undefined>, v.Default<v.ObjectSchema<{
|
|
995
|
-
readonly displayType: v.OptionalSchema<v.PicklistSchema<["floating", "docked"], undefined>, "docked">;
|
|
996
|
-
readonly showIcons: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
997
|
-
readonly showText: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
998
|
-
readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
999
|
-
readonly id: v.StringSchema<undefined>;
|
|
1000
|
-
readonly enabled: v.BooleanSchema<undefined>;
|
|
1001
|
-
readonly intent: v.StringSchema<undefined>;
|
|
1002
|
-
}, undefined>, undefined>, readonly [{
|
|
865
|
+
};
|
|
866
|
+
}, {
|
|
867
|
+
readonly type: "drawer-footer";
|
|
868
|
+
readonly options: {
|
|
869
|
+
readonly displayType: "docked";
|
|
870
|
+
readonly showIcons: false;
|
|
871
|
+
readonly showText: true;
|
|
872
|
+
readonly items: readonly [{
|
|
1003
873
|
readonly id: "home";
|
|
1004
874
|
readonly enabled: true;
|
|
1005
875
|
readonly intent: "view:home";
|
|
@@ -1023,9 +893,9 @@ export declare const UiSchema: v.ObjectSchema<{
|
|
|
1023
893
|
readonly id: "profile";
|
|
1024
894
|
readonly enabled: true;
|
|
1025
895
|
readonly intent: "view:profile";
|
|
1026
|
-
}]
|
|
1027
|
-
}
|
|
1028
|
-
}
|
|
896
|
+
}];
|
|
897
|
+
};
|
|
898
|
+
}]>;
|
|
1029
899
|
}, undefined>, {}>;
|
|
1030
900
|
readonly home: v.OptionalSchema<v.ObjectSchema<{
|
|
1031
901
|
readonly sections: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
@@ -1065,44 +935,32 @@ export declare const UiSchema: v.ObjectSchema<{
|
|
|
1065
935
|
readonly design: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, {}>;
|
|
1066
936
|
readonly options: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, {}>;
|
|
1067
937
|
readonly handle: v.StringSchema<undefined>;
|
|
1068
|
-
}, undefined>], undefined>, undefined>,
|
|
1069
|
-
readonly type:
|
|
1070
|
-
|
|
1071
|
-
readonly
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
readonly
|
|
1076
|
-
|
|
1077
|
-
readonly
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
readonly url:
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
}, undefined>, undefined>;
|
|
1095
|
-
readonly link: v.OptionalSchema<v.ObjectSchema<{
|
|
1096
|
-
readonly url: v.StringSchema<undefined>;
|
|
1097
|
-
readonly target: v.OptionalSchema<v.PicklistSchema<["_self", "_blank"], undefined>, undefined>;
|
|
1098
|
-
}, undefined>, undefined>;
|
|
1099
|
-
}, undefined>, v.ObjectSchema<{
|
|
1100
|
-
readonly type: v.LiteralSchema<"featured-collection", undefined>;
|
|
1101
|
-
readonly hidden: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
1102
|
-
readonly design: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, {}>;
|
|
1103
|
-
readonly options: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, {}>;
|
|
1104
|
-
readonly handle: v.StringSchema<undefined>;
|
|
1105
|
-
}, undefined>], undefined>, undefined>, undefined>>;
|
|
938
|
+
}, undefined>], undefined>, undefined>, readonly [{
|
|
939
|
+
readonly type: "sign-in";
|
|
940
|
+
}, {
|
|
941
|
+
readonly type: "notifications";
|
|
942
|
+
}, {
|
|
943
|
+
readonly type: "recently-viewed";
|
|
944
|
+
}, {
|
|
945
|
+
readonly type: "saved-from-cart";
|
|
946
|
+
}, {
|
|
947
|
+
readonly type: "saved-items";
|
|
948
|
+
}, {
|
|
949
|
+
readonly type: "lists";
|
|
950
|
+
}, {
|
|
951
|
+
readonly type: "mini-menu";
|
|
952
|
+
readonly hidden: true;
|
|
953
|
+
readonly items: readonly [{
|
|
954
|
+
readonly title: "Shipping";
|
|
955
|
+
readonly url: "/policies/shipping-policy";
|
|
956
|
+
}, {
|
|
957
|
+
readonly title: "Returns";
|
|
958
|
+
readonly url: "/policies/refund-policy";
|
|
959
|
+
}, {
|
|
960
|
+
readonly title: "Contact Us";
|
|
961
|
+
readonly url: "/pages/contact";
|
|
962
|
+
}];
|
|
963
|
+
}]>;
|
|
1106
964
|
}, undefined>, {}>;
|
|
1107
965
|
readonly saves: v.OptionalSchema<v.ObjectSchema<{
|
|
1108
966
|
readonly sections: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
package/dist/swish.d.ts
CHANGED
|
@@ -57,7 +57,7 @@ declare class SwishApp {
|
|
|
57
57
|
baseTint: boolean;
|
|
58
58
|
};
|
|
59
59
|
drawer: {
|
|
60
|
-
sections
|
|
60
|
+
sections: ({
|
|
61
61
|
type: "drawer-header";
|
|
62
62
|
hidden: boolean;
|
|
63
63
|
design: {
|
|
@@ -79,7 +79,7 @@ declare class SwishApp {
|
|
|
79
79
|
design: {
|
|
80
80
|
[x: string]: string | number;
|
|
81
81
|
};
|
|
82
|
-
options
|
|
82
|
+
options: {
|
|
83
83
|
displayType: "floating" | "docked";
|
|
84
84
|
showIcons: boolean;
|
|
85
85
|
showText: boolean;
|
|
@@ -88,11 +88,11 @@ declare class SwishApp {
|
|
|
88
88
|
enabled: boolean;
|
|
89
89
|
intent: string;
|
|
90
90
|
}[];
|
|
91
|
-
}
|
|
92
|
-
})[]
|
|
91
|
+
};
|
|
92
|
+
})[];
|
|
93
93
|
};
|
|
94
94
|
home: {
|
|
95
|
-
sections
|
|
95
|
+
sections: ({
|
|
96
96
|
type: "lists" | "notifications" | "sign-in" | "recently-viewed" | "saved-from-cart" | "saved-items";
|
|
97
97
|
hidden: boolean;
|
|
98
98
|
design: {
|
|
@@ -145,7 +145,7 @@ declare class SwishApp {
|
|
|
145
145
|
[x: string]: unknown;
|
|
146
146
|
};
|
|
147
147
|
handle: string;
|
|
148
|
-
})[]
|
|
148
|
+
})[];
|
|
149
149
|
};
|
|
150
150
|
saves: {
|
|
151
151
|
sections: ({
|