@athoscommerce/snap-preact 1.12.0 → 1.13.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/dist/cjs/components/src/components/Atoms/Price/Price.js +2 -2
- package/dist/cjs/components/src/components/Molecules/CustomComponentWrapper/CustomComponentWrapper.js +1 -1
- package/dist/cjs/components/src/components/Molecules/Slideshow/Slideshow.js +59 -30
- package/dist/cjs/components/src/components/Organisms/AutocompleteLayout/AutocompleteLayout.js +13 -8
- package/dist/cjs/components/src/components/Organisms/QuickviewLayout/QuickviewLayout.js +13 -8
- package/dist/cjs/components/src/hooks/useLayoutOptions.js +19 -14
- package/dist/cjs/components/src/utilities/mergeProps.js +647 -184
- package/dist/cjs/src/Snap.js +1 -1
- package/dist/cjs/src/Templates/SnapTemplates.js +17 -53
- package/dist/cjs/src/Templates/Stores/LibraryStore.js +2 -0
- package/dist/cjs/src/Templates/Stores/TemplateStore.js +37 -8
- package/dist/cjs/src/Templates/Stores/ThemeStore.js +125 -32
- package/dist/cjs/src/Templates/Stores/library/currencies/currencies.js +52 -29
- package/dist/cjs/src/Templates/Stores/library/plugins/shopify/pluginCurrency.js +5 -0
- package/dist/esm/components/src/components/Atoms/Price/Price.d.ts +2 -0
- package/dist/esm/components/src/components/Atoms/Price/Price.d.ts.map +1 -1
- package/dist/esm/components/src/components/Atoms/Price/Price.js +2 -2
- package/dist/esm/components/src/components/Molecules/CustomComponentWrapper/CustomComponentWrapper.d.ts.map +1 -1
- package/dist/esm/components/src/components/Molecules/CustomComponentWrapper/CustomComponentWrapper.js +1 -1
- package/dist/esm/components/src/components/Molecules/Select/Select.d.ts +2 -2
- package/dist/esm/components/src/components/Molecules/Select/Select.d.ts.map +1 -1
- package/dist/esm/components/src/components/Molecules/Slideshow/Slideshow.d.ts +1 -0
- package/dist/esm/components/src/components/Molecules/Slideshow/Slideshow.d.ts.map +1 -1
- package/dist/esm/components/src/components/Molecules/Slideshow/Slideshow.js +59 -30
- package/dist/esm/components/src/components/Organisms/AutocompleteLayout/AutocompleteLayout.d.ts.map +1 -1
- package/dist/esm/components/src/components/Organisms/AutocompleteLayout/AutocompleteLayout.js +13 -8
- package/dist/esm/components/src/components/Organisms/QuickviewLayout/QuickviewLayout.d.ts.map +1 -1
- package/dist/esm/components/src/components/Organisms/QuickviewLayout/QuickviewLayout.js +13 -8
- package/dist/esm/components/src/hooks/useLayoutOptions.d.ts.map +1 -1
- package/dist/esm/components/src/hooks/useLayoutOptions.js +19 -14
- package/dist/esm/components/src/providers/langComponents.d.ts +5 -0
- package/dist/esm/components/src/providers/langComponents.d.ts.map +1 -1
- package/dist/esm/components/src/providers/themeComponents.d.ts +214 -193
- package/dist/esm/components/src/providers/themeComponents.d.ts.map +1 -1
- package/dist/esm/components/src/utilities/mergeProps.d.ts +11 -0
- package/dist/esm/components/src/utilities/mergeProps.d.ts.map +1 -1
- package/dist/esm/components/src/utilities/mergeProps.js +647 -184
- package/dist/esm/src/Snap.js +1 -1
- package/dist/esm/src/Templates/SnapTemplates.d.ts +32 -19
- package/dist/esm/src/Templates/SnapTemplates.d.ts.map +1 -1
- package/dist/esm/src/Templates/SnapTemplates.js +16 -51
- package/dist/esm/src/Templates/Stores/LibraryStore.d.ts +7 -0
- package/dist/esm/src/Templates/Stores/LibraryStore.d.ts.map +1 -1
- package/dist/esm/src/Templates/Stores/LibraryStore.js +2 -0
- package/dist/esm/src/Templates/Stores/TemplateStore.d.ts +11 -7
- package/dist/esm/src/Templates/Stores/TemplateStore.d.ts.map +1 -1
- package/dist/esm/src/Templates/Stores/TemplateStore.js +31 -8
- package/dist/esm/src/Templates/Stores/ThemeStore.d.ts +5 -2
- package/dist/esm/src/Templates/Stores/ThemeStore.d.ts.map +1 -1
- package/dist/esm/src/Templates/Stores/ThemeStore.js +125 -32
- package/dist/esm/src/Templates/Stores/library/currencies/currencies.d.ts +27 -0
- package/dist/esm/src/Templates/Stores/library/currencies/currencies.d.ts.map +1 -1
- package/dist/esm/src/Templates/Stores/library/currencies/currencies.js +52 -29
- package/dist/esm/src/Templates/Stores/library/plugins/shopify/pluginCurrency.d.ts +2 -0
- package/dist/esm/src/Templates/Stores/library/plugins/shopify/pluginCurrency.d.ts.map +1 -0
- package/dist/esm/src/Templates/Stores/library/plugins/shopify/pluginCurrency.js +1 -0
- package/eslint/src/validate-config.cjs +520 -0
- package/package.json +13 -13
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
// Currencies supported by Snap Templates — matches the list of currencies supported by Shopify (ISO 4217).
|
|
2
|
-
// Symbols, decimal places and separators are sourced from CLDR — decimalPlaces is only set when not 2, and
|
|
3
|
-
// separators are only set when the currency has a single dominant convention that differs from the component
|
|
4
|
-
// defaults (multi-locale currencies like EUR/USD/CHF/CAD keep the defaults and can be overridden per site).
|
|
5
1
|
export const currencies = {
|
|
6
2
|
// United Arab Emirates Dirham
|
|
7
3
|
aed: {
|
|
@@ -35,9 +31,10 @@ export const currencies = {
|
|
|
35
31
|
amd: {
|
|
36
32
|
components: {
|
|
37
33
|
price: {
|
|
38
|
-
symbol: '֏',
|
|
34
|
+
symbol: '\u00A0֏',
|
|
39
35
|
thousandsSeparator: '\u00A0',
|
|
40
36
|
decimalSeparator: ',',
|
|
37
|
+
symbolAfter: true,
|
|
41
38
|
},
|
|
42
39
|
},
|
|
43
40
|
},
|
|
@@ -55,9 +52,10 @@ export const currencies = {
|
|
|
55
52
|
aoa: {
|
|
56
53
|
components: {
|
|
57
54
|
price: {
|
|
58
|
-
symbol: '
|
|
55
|
+
symbol: '\u00A0Kz',
|
|
59
56
|
thousandsSeparator: '\u00A0',
|
|
60
57
|
decimalSeparator: ',',
|
|
58
|
+
symbolAfter: true,
|
|
61
59
|
},
|
|
62
60
|
},
|
|
63
61
|
},
|
|
@@ -93,9 +91,10 @@ export const currencies = {
|
|
|
93
91
|
azn: {
|
|
94
92
|
components: {
|
|
95
93
|
price: {
|
|
96
|
-
symbol: '₼',
|
|
94
|
+
symbol: '\u00A0₼',
|
|
97
95
|
thousandsSeparator: '.',
|
|
98
96
|
decimalSeparator: ',',
|
|
97
|
+
symbolAfter: true,
|
|
99
98
|
},
|
|
100
99
|
},
|
|
101
100
|
},
|
|
@@ -103,9 +102,10 @@ export const currencies = {
|
|
|
103
102
|
bam: {
|
|
104
103
|
components: {
|
|
105
104
|
price: {
|
|
106
|
-
symbol: '
|
|
105
|
+
symbol: '\u00A0KM',
|
|
107
106
|
thousandsSeparator: '.',
|
|
108
107
|
decimalSeparator: ',',
|
|
108
|
+
symbolAfter: true,
|
|
109
109
|
},
|
|
110
110
|
},
|
|
111
111
|
},
|
|
@@ -122,6 +122,7 @@ export const currencies = {
|
|
|
122
122
|
components: {
|
|
123
123
|
price: {
|
|
124
124
|
symbol: '৳',
|
|
125
|
+
symbolAfter: true,
|
|
125
126
|
},
|
|
126
127
|
},
|
|
127
128
|
},
|
|
@@ -315,9 +316,10 @@ export const currencies = {
|
|
|
315
316
|
czk: {
|
|
316
317
|
components: {
|
|
317
318
|
price: {
|
|
318
|
-
symbol: '
|
|
319
|
+
symbol: '\u00A0Kč',
|
|
319
320
|
thousandsSeparator: '\u00A0',
|
|
320
321
|
decimalSeparator: ',',
|
|
322
|
+
symbolAfter: true,
|
|
321
323
|
},
|
|
322
324
|
},
|
|
323
325
|
},
|
|
@@ -336,9 +338,10 @@ export const currencies = {
|
|
|
336
338
|
dkk: {
|
|
337
339
|
components: {
|
|
338
340
|
price: {
|
|
339
|
-
symbol: '
|
|
341
|
+
symbol: '\u00A0kr',
|
|
340
342
|
thousandsSeparator: '.',
|
|
341
343
|
decimalSeparator: ',',
|
|
344
|
+
symbolAfter: true,
|
|
342
345
|
},
|
|
343
346
|
},
|
|
344
347
|
},
|
|
@@ -420,9 +423,10 @@ export const currencies = {
|
|
|
420
423
|
gel: {
|
|
421
424
|
components: {
|
|
422
425
|
price: {
|
|
423
|
-
symbol: '₾',
|
|
426
|
+
symbol: '\u00A0₾',
|
|
424
427
|
thousandsSeparator: '\u00A0',
|
|
425
428
|
decimalSeparator: ',',
|
|
429
|
+
symbolAfter: true,
|
|
426
430
|
},
|
|
427
431
|
},
|
|
428
432
|
},
|
|
@@ -454,10 +458,11 @@ export const currencies = {
|
|
|
454
458
|
gnf: {
|
|
455
459
|
components: {
|
|
456
460
|
price: {
|
|
457
|
-
symbol: '
|
|
461
|
+
symbol: '\u00A0FG',
|
|
458
462
|
decimalPlaces: 0,
|
|
459
463
|
thousandsSeparator: '\u00A0',
|
|
460
464
|
decimalSeparator: ',',
|
|
465
|
+
symbolAfter: true,
|
|
461
466
|
},
|
|
462
467
|
},
|
|
463
468
|
},
|
|
@@ -497,9 +502,10 @@ export const currencies = {
|
|
|
497
502
|
hrk: {
|
|
498
503
|
components: {
|
|
499
504
|
price: {
|
|
500
|
-
symbol: '
|
|
505
|
+
symbol: '\u00A0kn',
|
|
501
506
|
thousandsSeparator: '.',
|
|
502
507
|
decimalSeparator: ',',
|
|
508
|
+
symbolAfter: true,
|
|
503
509
|
},
|
|
504
510
|
},
|
|
505
511
|
},
|
|
@@ -517,10 +523,11 @@ export const currencies = {
|
|
|
517
523
|
huf: {
|
|
518
524
|
components: {
|
|
519
525
|
price: {
|
|
520
|
-
symbol: '
|
|
526
|
+
symbol: '\u00A0Ft',
|
|
521
527
|
decimalPlaces: 0,
|
|
522
528
|
thousandsSeparator: '\u00A0',
|
|
523
529
|
decimalSeparator: ',',
|
|
530
|
+
symbolAfter: true,
|
|
524
531
|
},
|
|
525
532
|
},
|
|
526
533
|
},
|
|
@@ -539,7 +546,8 @@ export const currencies = {
|
|
|
539
546
|
ils: {
|
|
540
547
|
components: {
|
|
541
548
|
price: {
|
|
542
|
-
symbol: '₪',
|
|
549
|
+
symbol: '\u00A0₪',
|
|
550
|
+
symbolAfter: true,
|
|
543
551
|
},
|
|
544
552
|
},
|
|
545
553
|
},
|
|
@@ -573,10 +581,11 @@ export const currencies = {
|
|
|
573
581
|
isk: {
|
|
574
582
|
components: {
|
|
575
583
|
price: {
|
|
576
|
-
symbol: '
|
|
584
|
+
symbol: '\u00A0kr',
|
|
577
585
|
decimalPlaces: 0,
|
|
578
586
|
thousandsSeparator: '.',
|
|
579
587
|
decimalSeparator: ',',
|
|
588
|
+
symbolAfter: true,
|
|
580
589
|
},
|
|
581
590
|
},
|
|
582
591
|
},
|
|
@@ -637,6 +646,7 @@ export const currencies = {
|
|
|
637
646
|
components: {
|
|
638
647
|
price: {
|
|
639
648
|
symbol: '៛',
|
|
649
|
+
symbolAfter: true,
|
|
640
650
|
},
|
|
641
651
|
},
|
|
642
652
|
},
|
|
@@ -652,10 +662,11 @@ export const currencies = {
|
|
|
652
662
|
kmf: {
|
|
653
663
|
components: {
|
|
654
664
|
price: {
|
|
655
|
-
symbol: '
|
|
665
|
+
symbol: '\u00A0CF',
|
|
656
666
|
decimalPlaces: 0,
|
|
657
667
|
thousandsSeparator: '\u00A0',
|
|
658
668
|
decimalSeparator: ',',
|
|
669
|
+
symbolAfter: true,
|
|
659
670
|
},
|
|
660
671
|
},
|
|
661
672
|
},
|
|
@@ -689,9 +700,10 @@ export const currencies = {
|
|
|
689
700
|
kzt: {
|
|
690
701
|
components: {
|
|
691
702
|
price: {
|
|
692
|
-
symbol: '₸',
|
|
703
|
+
symbol: '\u00A0₸',
|
|
693
704
|
thousandsSeparator: '\u00A0',
|
|
694
705
|
decimalSeparator: ',',
|
|
706
|
+
symbolAfter: true,
|
|
695
707
|
},
|
|
696
708
|
},
|
|
697
709
|
},
|
|
@@ -755,9 +767,10 @@ export const currencies = {
|
|
|
755
767
|
lvl: {
|
|
756
768
|
components: {
|
|
757
769
|
price: {
|
|
758
|
-
symbol: '
|
|
770
|
+
symbol: '\u00A0Ls',
|
|
759
771
|
thousandsSeparator: '\u00A0',
|
|
760
772
|
decimalSeparator: ',',
|
|
773
|
+
symbolAfter: true,
|
|
761
774
|
},
|
|
762
775
|
},
|
|
763
776
|
},
|
|
@@ -817,8 +830,9 @@ export const currencies = {
|
|
|
817
830
|
mmk: {
|
|
818
831
|
components: {
|
|
819
832
|
price: {
|
|
820
|
-
symbol: '
|
|
833
|
+
symbol: '\u00A0K',
|
|
821
834
|
decimalPlaces: 0,
|
|
835
|
+
symbolAfter: true,
|
|
822
836
|
},
|
|
823
837
|
},
|
|
824
838
|
},
|
|
@@ -852,7 +866,8 @@ export const currencies = {
|
|
|
852
866
|
mur: {
|
|
853
867
|
components: {
|
|
854
868
|
price: {
|
|
855
|
-
symbol: '
|
|
869
|
+
symbol: '\u00A0Rs',
|
|
870
|
+
symbolAfter: true,
|
|
856
871
|
},
|
|
857
872
|
},
|
|
858
873
|
},
|
|
@@ -926,9 +941,10 @@ export const currencies = {
|
|
|
926
941
|
nok: {
|
|
927
942
|
components: {
|
|
928
943
|
price: {
|
|
929
|
-
symbol: '
|
|
944
|
+
symbol: '\u00A0kr',
|
|
930
945
|
thousandsSeparator: '\u00A0',
|
|
931
946
|
decimalSeparator: ',',
|
|
947
|
+
symbolAfter: true,
|
|
932
948
|
},
|
|
933
949
|
},
|
|
934
950
|
},
|
|
@@ -1002,9 +1018,10 @@ export const currencies = {
|
|
|
1002
1018
|
pln: {
|
|
1003
1019
|
components: {
|
|
1004
1020
|
price: {
|
|
1005
|
-
symbol: '
|
|
1021
|
+
symbol: '\u00A0zł',
|
|
1006
1022
|
thousandsSeparator: '\u00A0',
|
|
1007
1023
|
decimalSeparator: ',',
|
|
1024
|
+
symbolAfter: true,
|
|
1008
1025
|
},
|
|
1009
1026
|
},
|
|
1010
1027
|
},
|
|
@@ -1051,9 +1068,10 @@ export const currencies = {
|
|
|
1051
1068
|
rub: {
|
|
1052
1069
|
components: {
|
|
1053
1070
|
price: {
|
|
1054
|
-
symbol: '₽',
|
|
1071
|
+
symbol: '\u00A0₽',
|
|
1055
1072
|
thousandsSeparator: '\u00A0',
|
|
1056
1073
|
decimalSeparator: ',',
|
|
1074
|
+
symbolAfter: true,
|
|
1057
1075
|
},
|
|
1058
1076
|
},
|
|
1059
1077
|
},
|
|
@@ -1104,9 +1122,10 @@ export const currencies = {
|
|
|
1104
1122
|
sek: {
|
|
1105
1123
|
components: {
|
|
1106
1124
|
price: {
|
|
1107
|
-
symbol: '
|
|
1125
|
+
symbol: '\u00A0kr',
|
|
1108
1126
|
thousandsSeparator: '\u00A0',
|
|
1109
1127
|
decimalSeparator: ',',
|
|
1128
|
+
symbolAfter: true,
|
|
1110
1129
|
},
|
|
1111
1130
|
},
|
|
1112
1131
|
},
|
|
@@ -1158,7 +1177,8 @@ export const currencies = {
|
|
|
1158
1177
|
ssp: {
|
|
1159
1178
|
components: {
|
|
1160
1179
|
price: {
|
|
1161
|
-
symbol: '£',
|
|
1180
|
+
symbol: '\u00A0£',
|
|
1181
|
+
symbolAfter: true,
|
|
1162
1182
|
},
|
|
1163
1183
|
},
|
|
1164
1184
|
},
|
|
@@ -1166,9 +1186,10 @@ export const currencies = {
|
|
|
1166
1186
|
stn: {
|
|
1167
1187
|
components: {
|
|
1168
1188
|
price: {
|
|
1169
|
-
symbol: '
|
|
1189
|
+
symbol: '\u00A0Db',
|
|
1170
1190
|
thousandsSeparator: '\u00A0',
|
|
1171
1191
|
decimalSeparator: ',',
|
|
1192
|
+
symbolAfter: true,
|
|
1172
1193
|
},
|
|
1173
1194
|
},
|
|
1174
1195
|
},
|
|
@@ -1274,9 +1295,10 @@ export const currencies = {
|
|
|
1274
1295
|
uah: {
|
|
1275
1296
|
components: {
|
|
1276
1297
|
price: {
|
|
1277
|
-
symbol: '₴',
|
|
1298
|
+
symbol: '\u00A0₴',
|
|
1278
1299
|
thousandsSeparator: '\u00A0',
|
|
1279
1300
|
decimalSeparator: ',',
|
|
1301
|
+
symbolAfter: true,
|
|
1280
1302
|
},
|
|
1281
1303
|
},
|
|
1282
1304
|
},
|
|
@@ -1341,10 +1363,11 @@ export const currencies = {
|
|
|
1341
1363
|
vnd: {
|
|
1342
1364
|
components: {
|
|
1343
1365
|
price: {
|
|
1344
|
-
symbol: '₫',
|
|
1366
|
+
symbol: '\u00A0₫',
|
|
1345
1367
|
decimalPlaces: 0,
|
|
1346
1368
|
thousandsSeparator: '.',
|
|
1347
1369
|
decimalSeparator: ',',
|
|
1370
|
+
symbolAfter: true,
|
|
1348
1371
|
},
|
|
1349
1372
|
},
|
|
1350
1373
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pluginCurrency.d.ts","sourceRoot":"","sources":["../../../../../../../../src/Templates/Stores/library/plugins/shopify/pluginCurrency.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { pluginCurrency } from '@athoscommerce/snap-platforms/shopify';
|