fontdue-js 2.4.1 → 2.6.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.
Files changed (119) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/__generated__/AddToCartBannerQuery.graphql.js +0 -6
  3. package/dist/__generated__/AddToCartBanner_item.graphql.js +0 -1
  4. package/dist/__generated__/AddToCartBanner_order.graphql.js +0 -1
  5. package/dist/__generated__/AddressFieldsRefetchQuery.graphql.js +0 -3
  6. package/dist/__generated__/AddressFields_viewer.graphql.js +0 -2
  7. package/dist/__generated__/BuyButtonIDQuery.graphql.js +0 -2
  8. package/dist/__generated__/BuyButtonSlugQuery.graphql.js +0 -4
  9. package/dist/__generated__/BuyButton_collection.graphql.js +0 -2
  10. package/dist/__generated__/CartButtonQuery.graphql.js +0 -3
  11. package/dist/__generated__/CartItem_license.graphql.js +0 -1
  12. package/dist/__generated__/CartItem_licenseSelection.graphql.js +0 -1
  13. package/dist/__generated__/CartItem_node.graphql.js +0 -3
  14. package/dist/__generated__/CartItem_product.graphql.js +0 -3
  15. package/dist/__generated__/CartItem_variable.graphql.js +0 -1
  16. package/dist/__generated__/CartItem_viewer.graphql.js +0 -1
  17. package/dist/__generated__/CartOrderCompleteOrderMutation.graphql.js +0 -14
  18. package/dist/__generated__/CartOrderRemoveDiscountMutation.graphql.js +0 -10
  19. package/dist/__generated__/CartOrderUpdateMutation.graphql.js +0 -12
  20. package/dist/__generated__/CartQuery.graphql.js +0 -13
  21. package/dist/__generated__/CartStateRemoveDiscountMutation.graphql.js +0 -3
  22. package/dist/__generated__/CartStateUpdateMutation.graphql.js +0 -12
  23. package/dist/__generated__/CartState_order.graphql.js +0 -1
  24. package/dist/__generated__/CartTotals_order.graphql.js +0 -1
  25. package/dist/__generated__/CharacterViewerIDQuery.graphql.d.ts +1 -1
  26. package/dist/__generated__/CharacterViewerIDQuery.graphql.js +65 -15
  27. package/dist/__generated__/CharacterViewerSlugQuery.graphql.d.ts +1 -1
  28. package/dist/__generated__/CharacterViewerSlugQuery.graphql.js +65 -17
  29. package/dist/__generated__/CharacterViewer_collection.graphql.d.ts +27 -1
  30. package/dist/__generated__/CharacterViewer_collection.graphql.js +63 -13
  31. package/dist/__generated__/CharacterViewer_family.graphql.d.ts +14 -1
  32. package/dist/__generated__/CharacterViewer_family.graphql.js +66 -13
  33. package/dist/__generated__/CheckoutUpdateCustomerMutation.graphql.js +0 -10
  34. package/dist/__generated__/CheckoutUpdateOrderMutation.graphql.js +0 -12
  35. package/dist/__generated__/CollectionAa_Query.graphql.js +0 -1
  36. package/dist/__generated__/CouponCodeInputApplyCouponMutation.graphql.js +0 -3
  37. package/dist/__generated__/CouponCodeRefetchQuery.graphql.js +0 -3
  38. package/dist/__generated__/CustomerLoginFormLoginMutation.graphql.js +0 -1
  39. package/dist/__generated__/DownloadRefetchQuery.graphql.js +0 -1
  40. package/dist/__generated__/Family_node.graphql.js +0 -2
  41. package/dist/__generated__/FontFamiliesQuery.graphql.js +0 -7
  42. package/dist/__generated__/License_node.graphql.d.ts +2 -1
  43. package/dist/__generated__/License_node.graphql.js +13 -4
  44. package/dist/__generated__/NewsletterSignupQuery.graphql.js +0 -1
  45. package/dist/__generated__/NewsletterSignupUpdateCustomerMutation.graphql.js +0 -1
  46. package/dist/__generated__/PrecartAddToCartMutation.graphql.js +0 -10
  47. package/dist/__generated__/PrecartQuery.graphql.d.ts +1 -1
  48. package/dist/__generated__/PrecartQuery.graphql.js +14 -11
  49. package/dist/__generated__/Precart_license.graphql.js +0 -1
  50. package/dist/__generated__/Precart_viewer.graphql.js +0 -5
  51. package/dist/__generated__/PriceBarSectionRefetchQuery.graphql.js +0 -2
  52. package/dist/__generated__/PriceBar_node.graphql.js +0 -1
  53. package/dist/__generated__/SKUPriceRefetchQuery.graphql.js +0 -2
  54. package/dist/__generated__/SpecimenLinkQuery.graphql.js +0 -1
  55. package/dist/__generated__/StoreModalBundleButton_bundle.graphql.js +0 -1
  56. package/dist/__generated__/StoreModalCartQuery.graphql.js +0 -16
  57. package/dist/__generated__/StoreModalCheckoutQuery.graphql.js +0 -6
  58. package/dist/__generated__/StoreModalContainerQuery.graphql.d.ts +15 -3
  59. package/dist/__generated__/StoreModalContainerQuery.graphql.js +95 -27
  60. package/dist/__generated__/StoreModalFamilyButton_collection.graphql.js +0 -2
  61. package/dist/__generated__/StoreModalFamily_collection.graphql.js +0 -2
  62. package/dist/__generated__/StoreModalIndexItem_fontCollection.graphql.js +0 -1
  63. package/dist/__generated__/StoreModalIndexQuery.graphql.js +0 -4
  64. package/dist/__generated__/StoreModalProductLicense_license.graphql.d.ts +2 -1
  65. package/dist/__generated__/StoreModalProductLicense_license.graphql.js +12 -2
  66. package/dist/__generated__/StoreModalProductQuery.graphql.d.ts +1 -1
  67. package/dist/__generated__/StoreModalProductQuery.graphql.js +13 -13
  68. package/dist/__generated__/StoreModalProductSummaryAddToCartMutation.graphql.js +0 -2
  69. package/dist/__generated__/StoreModalProductSummaryRefetchQuery.graphql.js +0 -3
  70. package/dist/__generated__/StoreModalReviewCompleteOrderMutation.graphql.js +0 -9
  71. package/dist/__generated__/StoreModalReviewQuery.graphql.js +0 -6
  72. package/dist/__generated__/StoreModalReviewUpdateOrderMutation.graphql.js +0 -6
  73. package/dist/__generated__/StoreModalReview_order.graphql.js +0 -3
  74. package/dist/__generated__/StoreModalStyleButton_fontStyle.graphql.js +0 -2
  75. package/dist/__generated__/TestFontsFormUpdateCustomerMutation.graphql.js +0 -10
  76. package/dist/__generated__/TestFontsForm_Query.graphql.js +0 -1
  77. package/dist/__generated__/TestModeBannerQuery.graphql.js +0 -1
  78. package/dist/__generated__/ThemeConfigQuery.graphql.js +0 -1
  79. package/dist/__generated__/TypeTesterStandaloneQuery.graphql.js +0 -8
  80. package/dist/__generated__/TypeTesterStyleSelectData_fontStyle.graphql.js +0 -1
  81. package/dist/__generated__/TypeTester_NewStyleQuery.graphql.js +0 -8
  82. package/dist/__generated__/TypeTester_fontStyle.graphql.js +0 -1
  83. package/dist/__generated__/TypeTestersIDQuery.graphql.js +0 -14
  84. package/dist/__generated__/TypeTestersSlugQuery.graphql.js +0 -15
  85. package/dist/__generated__/TypeTesters_collection.graphql.js +0 -3
  86. package/dist/__generated__/productState_Query.graphql.js +0 -5
  87. package/dist/__generated__/productState_bundle.graphql.js +0 -1
  88. package/dist/__generated__/productState_collection.graphql.js +0 -2
  89. package/dist/__generated__/productState_node.graphql.js +0 -3
  90. package/dist/__generated__/useTotalStyles_fontCollection.graphql.js +0 -1
  91. package/dist/components/Cart/CartItem/VariableTextInput.js +2 -1
  92. package/dist/components/Cart/CartOrder.js +2 -1
  93. package/dist/components/CartButton/index.js +0 -1
  94. package/dist/components/CharacterViewer/index.js +130 -57
  95. package/dist/components/NewsletterSignup/NewsletterSignupElement.d.ts +7 -0
  96. package/dist/components/NewsletterSignup/NewsletterSignupElement.js +15 -0
  97. package/dist/components/Precart/License.js +9 -2
  98. package/dist/components/Root/index.js +1 -1
  99. package/dist/components/Select/index.js +1 -1
  100. package/dist/components/StoreModal/StoreModalCart.js +1 -1
  101. package/dist/components/StoreModal/StoreModalContainer.js +17 -3
  102. package/dist/components/StoreModal/StoreModalFamily.d.ts +2 -1
  103. package/dist/components/StoreModal/StoreModalFamily.js +3 -1
  104. package/dist/components/StoreModal/StoreModalProduct.js +1 -0
  105. package/dist/components/StoreModalProductLicenseSelection/LicenseElement.d.ts +1 -0
  106. package/dist/components/StoreModalProductLicenseSelection/LicenseElement.js +10 -2
  107. package/dist/components/StoreModalProductLicenseSelection/StoreModalProductLicense.js +2 -1
  108. package/dist/components/StoreModalProductSummary/index.js +1 -1
  109. package/dist/components/TypeTester/TypeTesterStandalone.js +8 -2
  110. package/dist/components/elements/StoreModalContainer/index.d.ts +8 -2
  111. package/dist/components/elements/StoreModalContainer/index.js +9 -6
  112. package/dist/components/elements/StoreModalFamily/index.d.ts +1 -0
  113. package/dist/components/elements/StoreModalFamily/index.js +5 -2
  114. package/dist/data/unicodeData.d.ts +4 -0
  115. package/dist/data/unicodeData.js +1 -0
  116. package/dist/fontdue.css +93 -26
  117. package/dist/reducer.js +0 -1
  118. package/dist/scripts/updateUnicodeData.js +49 -0
  119. package/package.json +2 -1
@@ -168,7 +168,6 @@ const node = function () {
168
168
  "name": "price",
169
169
  "plural": false,
170
170
  "selections": [v18 /*: any*/],
171
-
172
171
  "storageKey": null
173
172
  }],
174
173
  "storageKey": null
@@ -188,7 +187,6 @@ const node = function () {
188
187
  "name": "sku",
189
188
  "plural": false,
190
189
  "selections": [v8 /*: any*/, v20 /*: any*/],
191
-
192
190
  "storageKey": null
193
191
  },
194
192
  v24 = {
@@ -216,13 +214,11 @@ const node = function () {
216
214
  "name": "parent",
217
215
  "plural": false,
218
216
  "selections": [v8 /*: any*/, v9 /*: any*/, v22 /*: any*/, v23 /*: any*/, v24 /*: any*/, v25 /*: any*/],
219
-
220
217
  "storageKey": null
221
218
  };
222
219
  return {
223
220
  "fragment": {
224
221
  "argumentDefinitions": [v0 /*: any*/, v1 /*: any*/, v2 /*: any*/],
225
-
226
222
  "kind": "Fragment",
227
223
  "metadata": null,
228
224
  "name": "TypeTestersIDQuery",
@@ -248,7 +244,6 @@ const node = function () {
248
244
  "plural": false,
249
245
  "selections": [{
250
246
  "args": [v4 /*: any*/, v5 /*: any*/],
251
-
252
247
  "kind": "FragmentSpread",
253
248
  "name": "TypeTesters_collection"
254
249
  }],
@@ -260,7 +255,6 @@ const node = function () {
260
255
  "kind": "Request",
261
256
  "operation": {
262
257
  "argumentDefinitions": [v0 /*: any*/, v2 /*: any*/, v1 /*: any*/],
263
-
264
258
  "kind": "Operation",
265
259
  "name": "TypeTestersIDQuery",
266
260
  "selections": [{
@@ -273,7 +267,6 @@ const node = function () {
273
267
  "selections": [{
274
268
  "alias": "families",
275
269
  "args": [v6 /*: any*/, v7 /*: any*/],
276
-
277
270
  "concreteType": "FontCollectionConnection",
278
271
  "kind": "LinkedField",
279
272
  "name": "fontCollections",
@@ -306,7 +299,6 @@ const node = function () {
306
299
  "name": "fontStyles",
307
300
  "plural": true,
308
301
  "selections": [v8 /*: any*/, v9 /*: any*/, v10 /*: any*/, v11 /*: any*/, v12 /*: any*/, v16 /*: any*/],
309
-
310
302
  "storageKey": null
311
303
  }],
312
304
  "storageKey": null
@@ -315,7 +307,6 @@ const node = function () {
315
307
  }],
316
308
  "storageKey": "fontCollections(collectionTypes:[\"FAMILY\"],first:999)"
317
309
  }, v8 /*: any*/],
318
-
319
310
  "storageKey": null
320
311
  }, {
321
312
  "alias": "collection",
@@ -335,7 +326,6 @@ const node = function () {
335
326
  "selections": [{
336
327
  "alias": null,
337
328
  "args": [v4 /*: any*/, v7 /*: any*/, v5 /*: any*/],
338
-
339
329
  "concreteType": "TypeTesterConnection",
340
330
  "kind": "LinkedField",
341
331
  "name": "typeTesters",
@@ -471,7 +461,6 @@ const node = function () {
471
461
  "name": "fontCollections",
472
462
  "plural": true,
473
463
  "selections": [v21 /*: any*/, v8 /*: any*/],
474
-
475
464
  "storageKey": null
476
465
  }],
477
466
  "storageKey": null
@@ -498,7 +487,6 @@ const node = function () {
498
487
  "name": "feature",
499
488
  "storageKey": null
500
489
  }, v14 /*: any*/],
501
-
502
490
  "storageKey": null
503
491
  }],
504
492
  "storageKey": null
@@ -521,13 +509,11 @@ const node = function () {
521
509
  }, v9 /*: any*/, v22 /*: any*/, v23 /*: any*/, v24 /*: any*/, v25 /*: any*/, v26 /*: any*/, {
522
510
  "alias": "families",
523
511
  "args": [v6 /*: any*/],
524
-
525
512
  "concreteType": "FontCollection",
526
513
  "kind": "LinkedField",
527
514
  "name": "children",
528
515
  "plural": true,
529
516
  "selections": [v8 /*: any*/, v9 /*: any*/, v22 /*: any*/, v23 /*: any*/, v24 /*: any*/, v25 /*: any*/, v26 /*: any*/],
530
-
531
517
  "storageKey": "children(collectionTypes:[\"FAMILY\"])"
532
518
  }],
533
519
  "type": "FontCollection",
@@ -168,7 +168,6 @@ const node = function () {
168
168
  "name": "price",
169
169
  "plural": false,
170
170
  "selections": [v18 /*: any*/],
171
-
172
171
  "storageKey": null
173
172
  }],
174
173
  "storageKey": null
@@ -188,7 +187,6 @@ const node = function () {
188
187
  "name": "sku",
189
188
  "plural": false,
190
189
  "selections": [v8 /*: any*/, v20 /*: any*/],
191
-
192
190
  "storageKey": null
193
191
  },
194
192
  v24 = {
@@ -216,13 +214,11 @@ const node = function () {
216
214
  "name": "parent",
217
215
  "plural": false,
218
216
  "selections": [v8 /*: any*/, v9 /*: any*/, v22 /*: any*/, v23 /*: any*/, v24 /*: any*/, v25 /*: any*/],
219
-
220
217
  "storageKey": null
221
218
  };
222
219
  return {
223
220
  "fragment": {
224
221
  "argumentDefinitions": [v0 /*: any*/, v1 /*: any*/, v2 /*: any*/],
225
-
226
222
  "kind": "Fragment",
227
223
  "metadata": null,
228
224
  "name": "TypeTestersSlugQuery",
@@ -253,7 +249,6 @@ const node = function () {
253
249
  "plural": false,
254
250
  "selections": [{
255
251
  "args": [v4 /*: any*/, v5 /*: any*/],
256
-
257
252
  "kind": "FragmentSpread",
258
253
  "name": "TypeTesters_collection"
259
254
  }],
@@ -269,7 +264,6 @@ const node = function () {
269
264
  "kind": "Request",
270
265
  "operation": {
271
266
  "argumentDefinitions": [v0 /*: any*/, v2 /*: any*/, v1 /*: any*/],
272
-
273
267
  "kind": "Operation",
274
268
  "name": "TypeTestersSlugQuery",
275
269
  "selections": [{
@@ -282,7 +276,6 @@ const node = function () {
282
276
  "selections": [{
283
277
  "alias": "families",
284
278
  "args": [v6 /*: any*/, v7 /*: any*/],
285
-
286
279
  "concreteType": "FontCollectionConnection",
287
280
  "kind": "LinkedField",
288
281
  "name": "fontCollections",
@@ -315,7 +308,6 @@ const node = function () {
315
308
  "name": "fontStyles",
316
309
  "plural": true,
317
310
  "selections": [v8 /*: any*/, v9 /*: any*/, v10 /*: any*/, v11 /*: any*/, v12 /*: any*/, v16 /*: any*/],
318
-
319
311
  "storageKey": null
320
312
  }],
321
313
  "storageKey": null
@@ -340,7 +332,6 @@ const node = function () {
340
332
  "selections": [{
341
333
  "alias": null,
342
334
  "args": [v4 /*: any*/, v7 /*: any*/, v5 /*: any*/],
343
-
344
335
  "concreteType": "TypeTesterConnection",
345
336
  "kind": "LinkedField",
346
337
  "name": "typeTesters",
@@ -476,7 +467,6 @@ const node = function () {
476
467
  "name": "fontCollections",
477
468
  "plural": true,
478
469
  "selections": [v21 /*: any*/, v8 /*: any*/],
479
-
480
470
  "storageKey": null
481
471
  }],
482
472
  "storageKey": null
@@ -503,7 +493,6 @@ const node = function () {
503
493
  "name": "feature",
504
494
  "storageKey": null
505
495
  }, v14 /*: any*/],
506
-
507
496
  "storageKey": null
508
497
  }],
509
498
  "storageKey": null
@@ -526,21 +515,17 @@ const node = function () {
526
515
  }, v8 /*: any*/, v9 /*: any*/, v22 /*: any*/, v23 /*: any*/, v24 /*: any*/, v25 /*: any*/, v26 /*: any*/, {
527
516
  "alias": "families",
528
517
  "args": [v6 /*: any*/],
529
-
530
518
  "concreteType": "FontCollection",
531
519
  "kind": "LinkedField",
532
520
  "name": "children",
533
521
  "plural": true,
534
522
  "selections": [v8 /*: any*/, v9 /*: any*/, v22 /*: any*/, v23 /*: any*/, v24 /*: any*/, v25 /*: any*/, v26 /*: any*/],
535
-
536
523
  "storageKey": "children(collectionTypes:[\"FAMILY\"])"
537
524
  }],
538
525
  "storageKey": null
539
526
  }, v8 /*: any*/],
540
-
541
527
  "storageKey": null
542
528
  }, v8 /*: any*/],
543
-
544
529
  "storageKey": null
545
530
  }]
546
531
  },
@@ -141,7 +141,6 @@ const node = function () {
141
141
  "name": "axis",
142
142
  "storageKey": null
143
143
  }, v2 /*: any*/],
144
-
145
144
  "storageKey": null
146
145
  }, {
147
146
  "alias": null,
@@ -157,7 +156,6 @@ const node = function () {
157
156
  "name": "feature",
158
157
  "storageKey": null
159
158
  }, v2 /*: any*/],
160
-
161
159
  "storageKey": null
162
160
  }, {
163
161
  "args": null,
@@ -193,7 +191,6 @@ const node = function () {
193
191
  "name": "children",
194
192
  "plural": true,
195
193
  "selections": [v0 /*: any*/, v3 /*: any*/],
196
-
197
194
  "storageKey": "children(collectionTypes:[\"FAMILY\"])"
198
195
  }, {
199
196
  "alias": null,
@@ -79,7 +79,6 @@ const node = function () {
79
79
  "name": "fontStyles",
80
80
  "plural": true,
81
81
  "selections": [v3 /*: any*/, v5 /*: any*/],
82
-
83
82
  "storageKey": null
84
83
  },
85
84
  v7 = {
@@ -90,7 +89,6 @@ const node = function () {
90
89
  "name": "bundles",
91
90
  "plural": true,
92
91
  "selections": [v3 /*: any*/, v4 /*: any*/, v5 /*: any*/, v6 /*: any*/],
93
-
94
92
  "storageKey": null
95
93
  },
96
94
  v8 = {
@@ -105,7 +103,6 @@ const node = function () {
105
103
  "name": "children",
106
104
  "plural": true,
107
105
  "selections": [v3 /*: any*/, v4 /*: any*/, v5 /*: any*/, v6 /*: any*/, v7 /*: any*/],
108
-
109
106
  "storageKey": "children(collectionTypes:[\"FAMILY\"])"
110
107
  };
111
108
  return {
@@ -124,7 +121,6 @@ const node = function () {
124
121
  "selections": [{
125
122
  "kind": "InlineFragment",
126
123
  "selections": [v2 /*: any*/, v3 /*: any*/, v4 /*: any*/, v5 /*: any*/, v6 /*: any*/, v7 /*: any*/, v8 /*: any*/],
127
-
128
124
  "type": "FontCollection",
129
125
  "abstractKey": null
130
126
  }],
@@ -148,7 +144,6 @@ const node = function () {
148
144
  "selections": [v2 /*: any*/, v3 /*: any*/, {
149
145
  "kind": "InlineFragment",
150
146
  "selections": [v4 /*: any*/, v5 /*: any*/, v6 /*: any*/, v7 /*: any*/, v8 /*: any*/],
151
-
152
147
  "type": "FontCollection",
153
148
  "abstractKey": null
154
149
  }],
@@ -68,7 +68,6 @@ const node = function () {
68
68
  "name": "fontStyles",
69
69
  "plural": true,
70
70
  "selections": [v0 /*: any*/, v1 /*: any*/],
71
-
72
71
  "storageKey": null
73
72
  }],
74
73
  "type": "Bundle",
@@ -62,7 +62,6 @@ const node = function () {
62
62
  "name": "fontStyles",
63
63
  "plural": true,
64
64
  "selections": [v0 /*: any*/, v2 /*: any*/],
65
-
66
65
  "storageKey": null
67
66
  };
68
67
  return {
@@ -80,7 +79,6 @@ const node = function () {
80
79
  "name": "bundles",
81
80
  "plural": true,
82
81
  "selections": [v0 /*: any*/, v1 /*: any*/, v2 /*: any*/, v3 /*: any*/],
83
-
84
82
  "storageKey": null
85
83
  }],
86
84
  "type": "FontCollection",
@@ -62,7 +62,6 @@ const node = function () {
62
62
  "name": "fontStyles",
63
63
  "plural": true,
64
64
  "selections": [v0 /*: any*/, v2 /*: any*/],
65
-
66
65
  "storageKey": null
67
66
  },
68
67
  v4 = {
@@ -73,7 +72,6 @@ const node = function () {
73
72
  "name": "bundles",
74
73
  "plural": true,
75
74
  "selections": [v0 /*: any*/, v1 /*: any*/, v2 /*: any*/, v3 /*: any*/],
76
-
77
75
  "storageKey": null
78
76
  };
79
77
  return {
@@ -95,7 +93,6 @@ const node = function () {
95
93
  "name": "children",
96
94
  "plural": true,
97
95
  "selections": [v0 /*: any*/, v1 /*: any*/, v2 /*: any*/, v3 /*: any*/, v4 /*: any*/],
98
-
99
96
  "storageKey": "children(collectionTypes:[\"FAMILY\"])"
100
97
  }],
101
98
  "type": "FontCollection",
@@ -45,7 +45,6 @@ const node = function () {
45
45
  "name": "isVariableFont",
46
46
  "storageKey": null
47
47
  }, v0 /*: any*/],
48
-
49
48
  "storageKey": "children(collectionTypes:[\"FAMILY\"])"
50
49
  }],
51
50
  "type": "FontCollection",
@@ -59,7 +59,8 @@ function VariableTextInput(_ref) {
59
59
  }
60
60
  if (editing) {
61
61
  return /*#__PURE__*/_react.default.createElement("form", {
62
- onSubmit: handleSubmit
62
+ onSubmit: handleSubmit,
63
+ className: "cart-item__license-variable__text-input-form"
63
64
  }, /*#__PURE__*/_react.default.createElement("input", _extends({
64
65
  ref: inputRef,
65
66
  className: "cart-item__license-variable__text-input",
@@ -19,7 +19,8 @@ var _utils = require("./utils");
19
19
  var _reactStripeJs = require("@stripe/react-stripe-js");
20
20
  var _reactRedux = require("react-redux");
21
21
  var _utils2 = require("../../utils");
22
- var _CartOrderCompleteOrderMutation, _CartOrder_UpdateErrors, _CartOrderUpdateMutation, _CartOrderRemoveDiscountMutation, _CartOrder_order, _CartOrder_viewer;
22
+ var _CartOrderCompleteOrderMutation, _CartOrder_UpdateErrors, _CartOrderUpdateMutation, _CartOrderRemoveDiscountMutation, _CartOrder_order, _CartOrder_viewer; // @ts-ignore
23
+ // @ts-ignore
23
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
24
25
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
25
26
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -24,7 +24,6 @@ const cartButtonCount = order => {
24
24
  if (!order) return 0;
25
25
  return getOrderCount(order); // TODO: add a `count` field to schema
26
26
  };
27
-
28
27
  const openCart = () => ({
29
28
  type: 'OPEN_CART'
30
29
  });