fontdue-js 2.7.0 → 2.8.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 (130) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/dist/__generated__/AddressFields_viewer.graphql.d.ts +1 -1
  3. package/dist/__generated__/AddressFields_viewer.graphql.js +4 -2
  4. package/dist/__generated__/CartItem_node.graphql.d.ts +15 -1
  5. package/dist/__generated__/CartItem_node.graphql.js +51 -17
  6. package/dist/__generated__/CartOrderCompleteOrderMutation.graphql.d.ts +1 -1
  7. package/dist/__generated__/CartOrderCompleteOrderMutation.graphql.js +48 -16
  8. package/dist/__generated__/CartOrderRemoveDiscountMutation.graphql.d.ts +1 -1
  9. package/dist/__generated__/CartOrderRemoveDiscountMutation.graphql.js +48 -16
  10. package/dist/__generated__/CartOrderUpdateMutation.graphql.d.ts +1 -1
  11. package/dist/__generated__/CartOrderUpdateMutation.graphql.js +48 -16
  12. package/dist/__generated__/CartOrder_viewer.graphql.d.ts +2 -2
  13. package/dist/__generated__/CartOrder_viewer.graphql.js +2 -6
  14. package/dist/__generated__/CartQuery.graphql.d.ts +1 -1
  15. package/dist/__generated__/CartQuery.graphql.js +79 -77
  16. package/dist/__generated__/CartStateUpdateMutation.graphql.d.ts +1 -1
  17. package/dist/__generated__/CartStateUpdateMutation.graphql.js +65 -32
  18. package/dist/__generated__/CheckoutUpdateCustomerMutation.graphql.d.ts +1 -1
  19. package/dist/__generated__/CheckoutUpdateCustomerMutation.graphql.js +48 -16
  20. package/dist/__generated__/CheckoutUpdateOrderMutation.graphql.d.ts +1 -1
  21. package/dist/__generated__/CheckoutUpdateOrderMutation.graphql.js +48 -16
  22. package/dist/__generated__/Checkout_viewer.graphql.d.ts +2 -1
  23. package/dist/__generated__/Checkout_viewer.graphql.js +8 -2
  24. package/dist/__generated__/CouponCodeInput_viewer.graphql.d.ts +1 -1
  25. package/dist/__generated__/CouponCodeInput_viewer.graphql.js +4 -2
  26. package/dist/__generated__/NodePasswordFormAccessNodeMutation.graphql.d.ts +25 -0
  27. package/dist/__generated__/NodePasswordFormAccessNodeMutation.graphql.js +72 -0
  28. package/dist/__generated__/PrecartAddToCartMutation.graphql.d.ts +1 -1
  29. package/dist/__generated__/PrecartAddToCartMutation.graphql.js +48 -16
  30. package/dist/__generated__/PrecartQuery.graphql.d.ts +1 -1
  31. package/dist/__generated__/PrecartQuery.graphql.js +57 -62
  32. package/dist/__generated__/Precart_collection.graphql.d.ts +13 -1
  33. package/dist/__generated__/Precart_collection.graphql.js +64 -17
  34. package/dist/__generated__/Precart_viewer.graphql.d.ts +1 -13
  35. package/dist/__generated__/Precart_viewer.graphql.js +23 -65
  36. package/dist/__generated__/PriceBarSection_node.graphql.d.ts +1 -1
  37. package/dist/__generated__/PriceBarSection_node.graphql.js +4 -2
  38. package/dist/__generated__/SKUPrice_sku.graphql.d.ts +1 -1
  39. package/dist/__generated__/SKUPrice_sku.graphql.js +4 -2
  40. package/dist/__generated__/StoreModalCartQuery.graphql.d.ts +2 -2
  41. package/dist/__generated__/StoreModalCartQuery.graphql.js +44 -47
  42. package/dist/__generated__/StoreModalCheckoutQuery.graphql.d.ts +1 -1
  43. package/dist/__generated__/StoreModalCheckoutQuery.graphql.js +17 -16
  44. package/dist/__generated__/StoreModalProductLicenseSelection_collection.graphql.d.ts +20 -0
  45. package/dist/__generated__/StoreModalProductLicenseSelection_collection.graphql.js +47 -0
  46. package/dist/__generated__/StoreModalProductQuery.graphql.d.ts +3 -3
  47. package/dist/__generated__/StoreModalProductQuery.graphql.js +82 -65
  48. package/dist/__generated__/StoreModalProductSummaryRefetchQuery.graphql.d.ts +1 -1
  49. package/dist/__generated__/StoreModalProductSummaryRefetchQuery.graphql.js +24 -3
  50. package/dist/__generated__/StoreModalProductSummary_viewer.graphql.d.ts +5 -1
  51. package/dist/__generated__/StoreModalProductSummary_viewer.graphql.js +23 -2
  52. package/dist/__generated__/TestFontsFormUpdateCustomerMutation.graphql.d.ts +1 -1
  53. package/dist/__generated__/TestFontsFormUpdateCustomerMutation.graphql.js +48 -16
  54. package/dist/components/AddToCartBanner/index.js +7 -5
  55. package/dist/components/BuyButton/index.js +7 -5
  56. package/dist/components/Cart/AddressFields.js +3 -3
  57. package/dist/components/Cart/CartItem/index.d.ts +1 -3
  58. package/dist/components/Cart/CartItem/index.js +15 -13
  59. package/dist/components/Cart/CartOrder.js +17 -10
  60. package/dist/components/Cart/CartState.js +7 -4
  61. package/dist/components/Cart/CartTotals.js +2 -2
  62. package/dist/components/Cart/Checkout.js +14 -9
  63. package/dist/components/Cart/CouponCodeInput.js +5 -4
  64. package/dist/components/Cart/Download.js +5 -4
  65. package/dist/components/Cart/IdentityBox.js +2 -2
  66. package/dist/components/Cart/index.js +2 -2
  67. package/dist/components/CartButton/index.js +5 -4
  68. package/dist/components/CharacterViewer/index.js +8 -5
  69. package/dist/components/CollectionAa/index.js +4 -3
  70. package/dist/components/CookieNotification/index.js +6 -7
  71. package/dist/components/CouponText/index.js +3 -2
  72. package/dist/components/CustomerLoginForm/index.js +3 -3
  73. package/dist/components/Family/FamilyList.js +2 -2
  74. package/dist/components/Family/index.js +3 -3
  75. package/dist/components/FontFamilies/index.js +3 -3
  76. package/dist/components/FontStyle/index.js +2 -2
  77. package/dist/components/FontdueProvider/index.d.ts +1 -1
  78. package/dist/components/FontdueProvider/index.js +1 -9
  79. package/dist/components/NewsletterSignup/index.js +5 -4
  80. package/dist/components/NodePasswordForm/index.d.ts +7 -0
  81. package/dist/components/NodePasswordForm/index.js +63 -0
  82. package/dist/components/Precart/License.js +2 -2
  83. package/dist/components/Precart/index.js +17 -13
  84. package/dist/components/Price/index.js +2 -2
  85. package/dist/components/PriceBar/PriceBarSection.js +3 -3
  86. package/dist/components/PriceBar/index.js +3 -3
  87. package/dist/components/Root/index.js +2 -1
  88. package/dist/components/Root/productState.js +11 -6
  89. package/dist/components/SKUPrice/index.js +3 -3
  90. package/dist/components/SelectButton/index.js +3 -3
  91. package/dist/components/SpecimenLink/index.js +2 -2
  92. package/dist/components/StoreModal/StoreModalBundleButton.js +2 -2
  93. package/dist/components/StoreModal/StoreModalCart.js +4 -3
  94. package/dist/components/StoreModal/StoreModalCheckout.js +3 -3
  95. package/dist/components/StoreModal/StoreModalContainer.js +3 -3
  96. package/dist/components/StoreModal/StoreModalDownload.js +5 -4
  97. package/dist/components/StoreModal/StoreModalFamily.js +3 -3
  98. package/dist/components/StoreModal/StoreModalFamilyButton.js +2 -2
  99. package/dist/components/StoreModal/StoreModalIndex.js +2 -2
  100. package/dist/components/StoreModal/StoreModalIndexItem.js +3 -3
  101. package/dist/components/StoreModal/StoreModalProduct.js +12 -7
  102. package/dist/components/StoreModal/StoreModalReview.js +11 -7
  103. package/dist/components/StoreModal/StoreModalReviewIdentity.js +3 -2
  104. package/dist/components/StoreModal/StoreModalStyleButton.js +5 -4
  105. package/dist/components/StoreModalProductLicenseSelection/StoreModalProductLicense.js +3 -3
  106. package/dist/components/StoreModalProductLicenseSelection/index.d.ts +3 -3
  107. package/dist/components/StoreModalProductLicenseSelection/index.js +5 -4
  108. package/dist/components/StoreModalProductSummary/index.js +18 -6
  109. package/dist/components/StripeProvider/index.js +3 -2
  110. package/dist/components/TestFontsForm/index.js +5 -4
  111. package/dist/components/TestModeBanner/index.js +2 -2
  112. package/dist/components/ThemeConfig/index.js +2 -2
  113. package/dist/components/TypeTester/TypeTesterFeatures.js +3 -3
  114. package/dist/components/TypeTester/TypeTesterFeaturesButton.js +3 -3
  115. package/dist/components/TypeTester/TypeTesterFloatingToolbar.js +3 -3
  116. package/dist/components/TypeTester/TypeTesterInput.d.ts +1 -0
  117. package/dist/components/TypeTester/TypeTesterInput.js +5 -2
  118. package/dist/components/TypeTester/TypeTesterStandalone.js +3 -3
  119. package/dist/components/TypeTester/TypeTesterStyleSelectData.js +7 -5
  120. package/dist/components/TypeTester/TypeTesterToolbar.js +9 -5
  121. package/dist/components/TypeTester/TypeTesterVariableAxes.js +2 -2
  122. package/dist/components/TypeTester/index.js +9 -6
  123. package/dist/components/TypeTester/useFeaturesData.js +2 -2
  124. package/dist/components/TypeTesters/index.js +9 -6
  125. package/dist/components/VariableTableAmounts/index.js +4 -3
  126. package/dist/components/useTotalStyles.js +3 -2
  127. package/dist/fontdue.css +18 -3
  128. package/dist/reducer.js +3 -1
  129. package/dist/relay/environment.js +12 -4
  130. package/package.json +3 -2
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  /**
8
- * @generated SignedSource<<c70b3a4167e830f3a526f236819eeb80>>
8
+ * @generated SignedSource<<2f95989976f4e3a1aa8fccdfed7a73be>>
9
9
  * @lightSyntaxTransform
10
10
  * @nogrep
11
11
  */
@@ -271,6 +271,10 @@ const node = function () {
271
271
  "name": "node",
272
272
  "plural": false,
273
273
  "selections": [v2 /*: any*/, v3 /*: any*/, {
274
+ "args": null,
275
+ "kind": "FragmentSpread",
276
+ "name": "StoreModalProductLicenseSelection_collection"
277
+ }, {
274
278
  "kind": "InlineFragment",
275
279
  "selections": [{
276
280
  "alias": null,
@@ -294,10 +298,6 @@ const node = function () {
294
298
  "name": "viewer",
295
299
  "plural": false,
296
300
  "selections": [{
297
- "args": null,
298
- "kind": "FragmentSpread",
299
- "name": "StoreModalProductLicenseSelection_viewer"
300
- }, {
301
301
  "args": null,
302
302
  "kind": "FragmentSpread",
303
303
  "name": "StoreModalProductSummary_viewer"
@@ -339,89 +339,106 @@ const node = function () {
339
339
  "storageKey": "children(collectionTypes:[\"FAMILY\"])"
340
340
  }, v22 /*: any*/, v24 /*: any*/, v23 /*: any*/],
341
341
  "storageKey": "children(collectionTypes:[\"FAMILY\"])"
342
- }, v22 /*: any*/, v24 /*: any*/, v23 /*: any*/],
343
- "type": "FontCollection",
344
- "abstractKey": null
345
- }],
346
- "storageKey": null
347
- }, {
348
- "alias": null,
349
- "args": null,
350
- "concreteType": "Viewer",
351
- "kind": "LinkedField",
352
- "name": "viewer",
353
- "plural": false,
354
- "selections": [{
355
- "alias": null,
356
- "args": [{
357
- "kind": "Literal",
358
- "name": "licenseTypes",
359
- "value": ["RETAIL"]
360
- }],
361
- "concreteType": "License",
362
- "kind": "LinkedField",
363
- "name": "licenses",
364
- "plural": true,
365
- "selections": [v2 /*: any*/, {
366
- "alias": null,
367
- "args": null,
368
- "kind": "ScalarField",
369
- "name": "url",
370
- "storageKey": null
371
- }, v10 /*: any*/, {
372
- "alias": null,
373
- "args": [{
374
- "kind": "Literal",
375
- "name": "format",
376
- "value": "HTML"
377
- }],
378
- "kind": "ScalarField",
379
- "name": "description",
380
- "storageKey": "description(format:\"HTML\")"
381
- }, {
342
+ }, v22 /*: any*/, v24 /*: any*/, v23 /*: any*/, {
382
343
  "alias": null,
383
344
  "args": null,
384
- "kind": "ScalarField",
385
- "name": "defaultSelected",
386
- "storageKey": null
387
- }, {
388
- "alias": "variables",
389
- "args": null,
390
- "concreteType": "LicenseVariable",
345
+ "concreteType": "License",
391
346
  "kind": "LinkedField",
392
- "name": "licenseVariables",
347
+ "name": "licenses",
393
348
  "plural": true,
394
- "selections": [v2 /*: any*/, v10 /*: any*/, {
349
+ "selections": [v2 /*: any*/, {
395
350
  "alias": null,
396
351
  "args": null,
397
352
  "kind": "ScalarField",
398
- "name": "variableType",
353
+ "name": "url",
399
354
  "storageKey": null
355
+ }, v10 /*: any*/, {
356
+ "alias": null,
357
+ "args": [{
358
+ "kind": "Literal",
359
+ "name": "format",
360
+ "value": "HTML"
361
+ }],
362
+ "kind": "ScalarField",
363
+ "name": "description",
364
+ "storageKey": "description(format:\"HTML\")"
400
365
  }, {
401
366
  "alias": null,
402
367
  "args": null,
403
368
  "kind": "ScalarField",
404
- "name": "units",
369
+ "name": "defaultSelected",
405
370
  "storageKey": null
406
371
  }, {
407
- "alias": "options",
372
+ "alias": "variables",
408
373
  "args": null,
409
- "concreteType": "LicenseOption",
374
+ "concreteType": "LicenseVariable",
410
375
  "kind": "LinkedField",
411
- "name": "licenseOptions",
376
+ "name": "licenseVariables",
412
377
  "plural": true,
413
- "selections": [v2 /*: any*/, v10 /*: any*/, v13 /*: any*/, {
378
+ "selections": [v2 /*: any*/, v10 /*: any*/, {
379
+ "alias": null,
380
+ "args": null,
381
+ "kind": "ScalarField",
382
+ "name": "variableType",
383
+ "storageKey": null
384
+ }, {
414
385
  "alias": null,
415
386
  "args": null,
416
387
  "kind": "ScalarField",
417
- "name": "amounts",
388
+ "name": "units",
389
+ "storageKey": null
390
+ }, {
391
+ "alias": "options",
392
+ "args": null,
393
+ "concreteType": "LicenseOption",
394
+ "kind": "LinkedField",
395
+ "name": "licenseOptions",
396
+ "plural": true,
397
+ "selections": [v2 /*: any*/, v10 /*: any*/, v13 /*: any*/, {
398
+ "alias": null,
399
+ "args": null,
400
+ "kind": "ScalarField",
401
+ "name": "amounts",
402
+ "storageKey": null
403
+ }],
418
404
  "storageKey": null
419
405
  }],
420
406
  "storageKey": null
421
407
  }],
422
408
  "storageKey": null
423
409
  }],
424
- "storageKey": "licenses(licenseTypes:[\"RETAIL\"])"
410
+ "type": "FontCollection",
411
+ "abstractKey": null
412
+ }],
413
+ "storageKey": null
414
+ }, {
415
+ "alias": null,
416
+ "args": null,
417
+ "concreteType": "Viewer",
418
+ "kind": "LinkedField",
419
+ "name": "viewer",
420
+ "plural": false,
421
+ "selections": [{
422
+ "alias": null,
423
+ "args": null,
424
+ "concreteType": "TaxCollection",
425
+ "kind": "LinkedField",
426
+ "name": "taxCollections",
427
+ "plural": true,
428
+ "selections": [{
429
+ "alias": null,
430
+ "args": null,
431
+ "kind": "ScalarField",
432
+ "name": "taxName",
433
+ "storageKey": null
434
+ }, {
435
+ "alias": null,
436
+ "args": null,
437
+ "kind": "ScalarField",
438
+ "name": "inclusive",
439
+ "storageKey": null
440
+ }],
441
+ "storageKey": null
425
442
  }, {
426
443
  "alias": null,
427
444
  "args": [v11 /*: any*/, {
@@ -491,15 +508,15 @@ const node = function () {
491
508
  }]
492
509
  },
493
510
  "params": {
494
- "cacheID": "4432f6cf13a130d083e8ae9a7116da48",
511
+ "cacheID": "417d7264f8ad5d9bab8900ec5407670a",
495
512
  "id": null,
496
513
  "metadata": {},
497
514
  "name": "StoreModalProductQuery",
498
515
  "operationKind": "query",
499
- "text": "query StoreModalProductQuery(\n $productId: ID!\n) {\n collection: node(id: $productId) {\n __typename\n id\n ...StoreModalFamily_collection\n ... on FontCollection {\n children(collectionTypes: [FAMILY]) {\n id\n ...StoreModalFamily_collection\n }\n }\n }\n viewer {\n ...StoreModalProductLicenseSelection_viewer\n ...StoreModalProductSummary_viewer\n endpoint\n stripeAccountId\n id\n }\n}\n\nfragment FontStyle_fontStyle on FontStyle {\n cssFamily\n name\n}\n\nfragment Price_price on Money {\n amount\n currency\n}\n\nfragment SKUPrice_sku on Sku {\n id\n price(licenseOptions: []) {\n amount\n ...Price_price\n }\n}\n\nfragment StoreModalBundleButton_bundle on Bundle {\n name\n sku {\n ...SKUPrice_sku\n id\n }\n fontStyles {\n id\n ...FontStyle_fontStyle\n }\n}\n\nfragment StoreModalFamilyButton_collection on FontCollection {\n isVariableFont\n collectionType\n name\n sku {\n ...SKUPrice_sku\n id\n }\n parent {\n id\n }\n featureStyle {\n ...FontStyle_fontStyle\n id\n }\n totalStyles\n totalStylesPrice {\n ...Price_price\n }\n ...useTotalStyles_fontCollection\n}\n\nfragment StoreModalFamily_collection on FontCollection {\n ...StoreModalFamilyButton_collection\n cssUrl\n collectionType\n sku {\n id\n }\n isVariableFont\n bundles {\n id\n fontStyles {\n id\n cssFamily\n cssWeight\n cssStretch\n ...StoreModalStyleButton_fontStyle\n }\n ...StoreModalBundleButton_bundle\n }\n fontStyles {\n id\n cssFamily\n cssWeight\n cssStretch\n ...StoreModalStyleButton_fontStyle\n }\n}\n\nfragment StoreModalProductLicenseSelection_viewer on Viewer {\n licenses(licenseTypes: [RETAIL]) {\n id\n ...StoreModalProductLicense_license\n }\n}\n\nfragment StoreModalProductLicense_license on License {\n id\n url\n name\n description(format: HTML)\n defaultSelected\n variables: licenseVariables {\n id\n name\n variableType\n ...VariableTableAmounts_variable\n options: licenseOptions {\n id\n name\n amount\n ...VariableTableAmounts_option\n }\n }\n}\n\nfragment StoreModalProductSummary_viewer on Viewer {\n precart(skuIds: [], licenseOptions: []) {\n skus {\n price(licenseOptions: []) {\n amount\n }\n product {\n __typename\n ... on FontCollection {\n totalStyles\n totalStylesPrice(licenseOptions: []) {\n amount\n }\n }\n ... on Bundle {\n totalStyles\n totalStylesPrice(licenseOptions: []) {\n amount\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n subtotal {\n ...Price_price\n amount\n currency\n }\n }\n}\n\nfragment StoreModalStyleButton_fontStyle on FontStyle {\n ...FontStyle_fontStyle\n id\n name\n sku {\n ...SKUPrice_sku\n id\n }\n variableInstances {\n name\n coordinates {\n axis\n value\n }\n }\n variableAxes {\n name\n }\n}\n\nfragment VariableTableAmounts_option on LicenseOption {\n amounts\n}\n\nfragment VariableTableAmounts_variable on LicenseVariable {\n units\n}\n\nfragment useTotalStyles_fontCollection on FontCollection {\n totalStyles\n children(collectionTypes: [FAMILY]) {\n isVariableFont\n totalStyles\n id\n }\n}\n"
516
+ "text": "query StoreModalProductQuery(\n $productId: ID!\n) {\n collection: node(id: $productId) {\n __typename\n id\n ...StoreModalFamily_collection\n ...StoreModalProductLicenseSelection_collection\n ... on FontCollection {\n children(collectionTypes: [FAMILY]) {\n id\n ...StoreModalFamily_collection\n }\n }\n }\n viewer {\n ...StoreModalProductSummary_viewer\n endpoint\n stripeAccountId\n id\n }\n}\n\nfragment FontStyle_fontStyle on FontStyle {\n cssFamily\n name\n}\n\nfragment Price_price on Money {\n amount\n currency\n}\n\nfragment SKUPrice_sku on Sku {\n id\n price(licenseOptions: []) {\n amount\n ...Price_price\n }\n}\n\nfragment StoreModalBundleButton_bundle on Bundle {\n name\n sku {\n ...SKUPrice_sku\n id\n }\n fontStyles {\n id\n ...FontStyle_fontStyle\n }\n}\n\nfragment StoreModalFamilyButton_collection on FontCollection {\n isVariableFont\n collectionType\n name\n sku {\n ...SKUPrice_sku\n id\n }\n parent {\n id\n }\n featureStyle {\n ...FontStyle_fontStyle\n id\n }\n totalStyles\n totalStylesPrice {\n ...Price_price\n }\n ...useTotalStyles_fontCollection\n}\n\nfragment StoreModalFamily_collection on FontCollection {\n ...StoreModalFamilyButton_collection\n cssUrl\n collectionType\n sku {\n id\n }\n isVariableFont\n bundles {\n id\n fontStyles {\n id\n cssFamily\n cssWeight\n cssStretch\n ...StoreModalStyleButton_fontStyle\n }\n ...StoreModalBundleButton_bundle\n }\n fontStyles {\n id\n cssFamily\n cssWeight\n cssStretch\n ...StoreModalStyleButton_fontStyle\n }\n}\n\nfragment StoreModalProductLicenseSelection_collection on FontCollection {\n licenses {\n id\n ...StoreModalProductLicense_license\n }\n}\n\nfragment StoreModalProductLicense_license on License {\n id\n url\n name\n description(format: HTML)\n defaultSelected\n variables: licenseVariables {\n id\n name\n variableType\n ...VariableTableAmounts_variable\n options: licenseOptions {\n id\n name\n amount\n ...VariableTableAmounts_option\n }\n }\n}\n\nfragment StoreModalProductSummary_viewer on Viewer {\n taxCollections {\n taxName\n inclusive\n }\n precart(skuIds: [], licenseOptions: []) {\n skus {\n price(licenseOptions: []) {\n amount\n }\n product {\n __typename\n ... on FontCollection {\n totalStyles\n totalStylesPrice(licenseOptions: []) {\n amount\n }\n }\n ... on Bundle {\n totalStyles\n totalStylesPrice(licenseOptions: []) {\n amount\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n subtotal {\n ...Price_price\n amount\n currency\n }\n }\n}\n\nfragment StoreModalStyleButton_fontStyle on FontStyle {\n ...FontStyle_fontStyle\n id\n name\n sku {\n ...SKUPrice_sku\n id\n }\n variableInstances {\n name\n coordinates {\n axis\n value\n }\n }\n variableAxes {\n name\n }\n}\n\nfragment VariableTableAmounts_option on LicenseOption {\n amounts\n}\n\nfragment VariableTableAmounts_variable on LicenseVariable {\n units\n}\n\nfragment useTotalStyles_fontCollection on FontCollection {\n totalStyles\n children(collectionTypes: [FAMILY]) {\n isVariableFont\n totalStyles\n id\n }\n}\n"
500
517
  }
501
518
  };
502
519
  }();
503
- node.hash = "a56c2c63a760bf157f6456dcc5a59dad";
520
+ node.hash = "d9a141adc8aa9c28676b0c311c79644d";
504
521
  var _default = node;
505
522
  exports.default = _default;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<e5387d73dd93881b39e9f628121f46fc>>
2
+ * @generated SignedSource<<194eb8e7eeffcdee3a2d102cd1737851>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  /**
8
- * @generated SignedSource<<e5387d73dd93881b39e9f628121f46fc>>
8
+ * @generated SignedSource<<194eb8e7eeffcdee3a2d102cd1737851>>
9
9
  * @lightSyntaxTransform
10
10
  * @nogrep
11
11
  */
@@ -101,6 +101,27 @@ const node = function () {
101
101
  "name": "viewer",
102
102
  "plural": false,
103
103
  "selections": [{
104
+ "alias": null,
105
+ "args": null,
106
+ "concreteType": "TaxCollection",
107
+ "kind": "LinkedField",
108
+ "name": "taxCollections",
109
+ "plural": true,
110
+ "selections": [{
111
+ "alias": null,
112
+ "args": null,
113
+ "kind": "ScalarField",
114
+ "name": "taxName",
115
+ "storageKey": null
116
+ }, {
117
+ "alias": null,
118
+ "args": null,
119
+ "kind": "ScalarField",
120
+ "name": "inclusive",
121
+ "storageKey": null
122
+ }],
123
+ "storageKey": null
124
+ }, {
104
125
  "alias": null,
105
126
  "args": [v1 /*: any*/, {
106
127
  "kind": "Variable",
@@ -181,12 +202,12 @@ const node = function () {
181
202
  }]
182
203
  },
183
204
  "params": {
184
- "cacheID": "4139da56a6d28cb86e0524805b4d8c07",
205
+ "cacheID": "bdd457806dbb0a789b3ef4565b0f7ee5",
185
206
  "id": null,
186
207
  "metadata": {},
187
208
  "name": "StoreModalProductSummaryRefetchQuery",
188
209
  "operationKind": "query",
189
- "text": "query StoreModalProductSummaryRefetchQuery(\n $licenseOptions: [LicenseOptionsSpec]!\n $selectedSkuIds: [ID]!\n) {\n viewer {\n ...StoreModalProductSummary_viewer_Q3kiI\n id\n }\n}\n\nfragment Price_price on Money {\n amount\n currency\n}\n\nfragment StoreModalProductSummary_viewer_Q3kiI on Viewer {\n precart(skuIds: $selectedSkuIds, licenseOptions: $licenseOptions) {\n skus {\n price(licenseOptions: $licenseOptions) {\n amount\n }\n product {\n __typename\n ... on FontCollection {\n totalStyles\n totalStylesPrice(licenseOptions: $licenseOptions) {\n amount\n }\n }\n ... on Bundle {\n totalStyles\n totalStylesPrice(licenseOptions: $licenseOptions) {\n amount\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n subtotal {\n ...Price_price\n amount\n currency\n }\n }\n}\n"
210
+ "text": "query StoreModalProductSummaryRefetchQuery(\n $licenseOptions: [LicenseOptionsSpec]!\n $selectedSkuIds: [ID]!\n) {\n viewer {\n ...StoreModalProductSummary_viewer_Q3kiI\n id\n }\n}\n\nfragment Price_price on Money {\n amount\n currency\n}\n\nfragment StoreModalProductSummary_viewer_Q3kiI on Viewer {\n taxCollections {\n taxName\n inclusive\n }\n precart(skuIds: $selectedSkuIds, licenseOptions: $licenseOptions) {\n skus {\n price(licenseOptions: $licenseOptions) {\n amount\n }\n product {\n __typename\n ... on FontCollection {\n totalStyles\n totalStylesPrice(licenseOptions: $licenseOptions) {\n amount\n }\n }\n ... on Bundle {\n totalStyles\n totalStylesPrice(licenseOptions: $licenseOptions) {\n amount\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n subtotal {\n ...Price_price\n amount\n currency\n }\n }\n}\n"
190
211
  }
191
212
  };
192
213
  }();
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<243ac7a0f613f8a186d79cec0f3fe8f3>>
2
+ * @generated SignedSource<<d01e24f04ce4670362d1719f542b5a72>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */
@@ -33,6 +33,10 @@ export type StoreModalProductSummary_viewer$data = {
33
33
  readonly " $fragmentSpreads": FragmentRefs<"Price_price">;
34
34
  } | null;
35
35
  } | null;
36
+ readonly taxCollections: ReadonlyArray<{
37
+ readonly inclusive: boolean;
38
+ readonly taxName: string;
39
+ }>;
36
40
  readonly " $fragmentType": "StoreModalProductSummary_viewer";
37
41
  };
38
42
  export type StoreModalProductSummary_viewer$key = {
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  /**
8
- * @generated SignedSource<<243ac7a0f613f8a186d79cec0f3fe8f3>>
8
+ * @generated SignedSource<<d01e24f04ce4670362d1719f542b5a72>>
9
9
  * @lightSyntaxTransform
10
10
  * @nogrep
11
11
  */
@@ -59,6 +59,27 @@ const node = function () {
59
59
  "metadata": null,
60
60
  "name": "StoreModalProductSummary_viewer",
61
61
  "selections": [{
62
+ "alias": null,
63
+ "args": null,
64
+ "concreteType": "TaxCollection",
65
+ "kind": "LinkedField",
66
+ "name": "taxCollections",
67
+ "plural": true,
68
+ "selections": [{
69
+ "alias": null,
70
+ "args": null,
71
+ "kind": "ScalarField",
72
+ "name": "taxName",
73
+ "storageKey": null
74
+ }, {
75
+ "alias": null,
76
+ "args": null,
77
+ "kind": "ScalarField",
78
+ "name": "inclusive",
79
+ "storageKey": null
80
+ }],
81
+ "storageKey": null
82
+ }, {
62
83
  "alias": null,
63
84
  "args": [v0 /*: any*/, {
64
85
  "kind": "Variable",
@@ -138,6 +159,6 @@ const node = function () {
138
159
  "abstractKey": null
139
160
  };
140
161
  }();
141
- node.hash = "afde6961d4c394eeb2cfecdb241b4cff";
162
+ node.hash = "d4b6958e3c6fb528399504365d4e37e8";
142
163
  var _default = node;
143
164
  exports.default = _default;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<9c69fd3f51210dc8d7be5bd21ae99a8b>>
2
+ * @generated SignedSource<<15e5d0dd2637f278690db67cc93daf9a>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  /**
8
- * @generated SignedSource<<9c69fd3f51210dc8d7be5bd21ae99a8b>>
8
+ * @generated SignedSource<<15e5d0dd2637f278690db67cc93daf9a>>
9
9
  * @lightSyntaxTransform
10
10
  * @nogrep
11
11
  */
@@ -151,19 +151,19 @@ const node = function () {
151
151
  "name": "cssUrl",
152
152
  "storageKey": null
153
153
  },
154
- v11 = [v4 /*: any*/],
155
- v12 = {
154
+ v11 = {
156
155
  "alias": null,
157
156
  "args": null,
158
157
  "kind": "ScalarField",
159
- "name": "multiplier",
158
+ "name": "variableType",
160
159
  "storageKey": null
161
160
  },
161
+ v12 = [v4 /*: any*/],
162
162
  v13 = {
163
163
  "alias": null,
164
164
  "args": null,
165
165
  "kind": "ScalarField",
166
- "name": "variableType",
166
+ "name": "multiplier",
167
167
  "storageKey": null
168
168
  };
169
169
  return {
@@ -404,14 +404,14 @@ const node = function () {
404
404
  "name": "product",
405
405
  "plural": false,
406
406
  "selections": [{
407
+ "kind": "TypeDiscriminator",
408
+ "abstractKey": "__isSkuProduct"
409
+ }, {
407
410
  "alias": null,
408
411
  "args": null,
409
412
  "kind": "ScalarField",
410
413
  "name": "__typename",
411
414
  "storageKey": null
412
- }, {
413
- "kind": "TypeDiscriminator",
414
- "abstractKey": "__isSkuProduct"
415
415
  }, {
416
416
  "kind": "InlineFragment",
417
417
  "selections": [{
@@ -486,7 +486,39 @@ const node = function () {
486
486
  "abstractKey": null
487
487
  }, {
488
488
  "kind": "InlineFragment",
489
- "selections": v11 /*: any*/,
489
+ "selections": [{
490
+ "alias": null,
491
+ "args": null,
492
+ "concreteType": "License",
493
+ "kind": "LinkedField",
494
+ "name": "licenses",
495
+ "plural": true,
496
+ "selections": [v4 /*: any*/, v2 /*: any*/, {
497
+ "alias": "variables",
498
+ "args": null,
499
+ "concreteType": "LicenseVariable",
500
+ "kind": "LinkedField",
501
+ "name": "licenseVariables",
502
+ "plural": true,
503
+ "selections": [v4 /*: any*/, v2 /*: any*/, v11 /*: any*/, {
504
+ "alias": "options",
505
+ "args": null,
506
+ "concreteType": "LicenseOption",
507
+ "kind": "LinkedField",
508
+ "name": "licenseOptions",
509
+ "plural": true,
510
+ "selections": [v4 /*: any*/, v6 /*: any*/, v2 /*: any*/],
511
+ "storageKey": null
512
+ }],
513
+ "storageKey": null
514
+ }],
515
+ "storageKey": null
516
+ }],
517
+ "type": "Licenseable",
518
+ "abstractKey": "__isLicenseable"
519
+ }, {
520
+ "kind": "InlineFragment",
521
+ "selections": v12 /*: any*/,
490
522
  "type": "Node",
491
523
  "abstractKey": "__isNode"
492
524
  }],
@@ -507,7 +539,7 @@ const node = function () {
507
539
  "kind": "LinkedField",
508
540
  "name": "license",
509
541
  "plural": false,
510
- "selections": [v4 /*: any*/, v2 /*: any*/, v12 /*: any*/],
542
+ "selections": [v4 /*: any*/, v2 /*: any*/, v13 /*: any*/],
511
543
  "storageKey": null
512
544
  }, {
513
545
  "alias": "variable",
@@ -516,7 +548,7 @@ const node = function () {
516
548
  "kind": "LinkedField",
517
549
  "name": "licenseVariable",
518
550
  "plural": false,
519
- "selections": [v4 /*: any*/, v13 /*: any*/, {
551
+ "selections": [v4 /*: any*/, v11 /*: any*/, {
520
552
  "alias": null,
521
553
  "args": null,
522
554
  "kind": "ScalarField",
@@ -531,7 +563,7 @@ const node = function () {
531
563
  "kind": "LinkedField",
532
564
  "name": "licenseOption",
533
565
  "plural": false,
534
- "selections": [v4 /*: any*/, v6 /*: any*/, v12 /*: any*/, v2 /*: any*/, {
566
+ "selections": [v4 /*: any*/, v6 /*: any*/, v13 /*: any*/, v2 /*: any*/, {
535
567
  "alias": null,
536
568
  "args": null,
537
569
  "kind": "ScalarField",
@@ -552,7 +584,7 @@ const node = function () {
552
584
  "kind": "LinkedField",
553
585
  "name": "licenseVariable",
554
586
  "plural": false,
555
- "selections": [v4 /*: any*/, v13 /*: any*/],
587
+ "selections": [v4 /*: any*/, v11 /*: any*/],
556
588
  "storageKey": null
557
589
  }, {
558
590
  "alias": null,
@@ -561,7 +593,7 @@ const node = function () {
561
593
  "kind": "LinkedField",
562
594
  "name": "licenseOption",
563
595
  "plural": false,
564
- "selections": v11 /*: any*/,
596
+ "selections": v12 /*: any*/,
565
597
  "storageKey": null
566
598
  }],
567
599
  "storageKey": null
@@ -619,12 +651,12 @@ const node = function () {
619
651
  }]
620
652
  },
621
653
  "params": {
622
- "cacheID": "6bf352e7a5d417131c2603a62762d554",
654
+ "cacheID": "b099d9a53326f2a937a8326cceaee248",
623
655
  "id": null,
624
656
  "metadata": {},
625
657
  "name": "TestFontsFormUpdateCustomerMutation",
626
658
  "operationKind": "mutation",
627
- "text": "mutation TestFontsFormUpdateCustomerMutation(\n $input: UpdateCustomerInput!\n) {\n updateCustomer(input: $input) {\n order {\n ...CartOrder_order\n id\n }\n }\n}\n\nfragment CartItem_node on OrderItem {\n id\n price {\n ...Price_price\n }\n sku {\n price {\n ...Price_price\n }\n product {\n __typename\n __isSkuProduct: __typename\n ...CollectionAa_product\n ...FontStyle_fontStyle\n ... on FontStyle {\n family {\n name\n cssUrl\n id\n }\n name\n variableInstances {\n name\n }\n }\n ... on Bundle {\n name\n }\n ... on FontCollection {\n name\n isVariableFont\n totalStyles\n featureStyle {\n family {\n cssUrl\n id\n }\n id\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n licenseSelections {\n id\n license {\n id\n name\n multiplier\n }\n variable: licenseVariable {\n id\n variableType\n ...VariableTableAmounts_variable\n }\n option: licenseOption {\n id\n amount\n multiplier\n name\n ...VariableTableAmounts_option\n }\n variableText\n }\n}\n\nfragment CartOrder_order on Order {\n ...Checkout_order\n ...Download_order\n ...CartTotals_order\n orderItems {\n ...CartItem_node\n id\n licenseSelections {\n license {\n id\n }\n licenseVariable {\n id\n variableType\n }\n licenseOption {\n id\n }\n variableText\n id\n }\n }\n discount {\n id\n }\n customer {\n email\n name\n anonymous\n id\n }\n billingIdentity {\n ...IdentityBox_identity\n }\n licenseeIdentity {\n ...IdentityBox_identity\n }\n licenseeIsBillingIdentity\n stripePaymentMethod {\n card {\n last4\n brand\n }\n }\n stripePaymentIntent {\n status\n }\n canCompleteWithCoupon\n completedWithCoupon\n}\n\nfragment CartTotals_order on Order {\n subtotal {\n ...Price_price\n }\n discount {\n amount {\n amount\n ...Price_price\n }\n coupon {\n ...CouponText_coupon\n id\n }\n id\n }\n discountedSubtotal {\n ...Price_price\n }\n total {\n amount\n ...Price_price\n }\n taxRate\n taxes {\n ...Price_price\n }\n taxName\n gstIncluded\n}\n\nfragment Checkout_order on Order {\n canCompleteWithCoupon\n customer {\n name\n email\n newsletterOptIn\n id\n }\n billingIdentity {\n name\n organization\n email\n phone\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n licenseeIdentity {\n name\n organization\n email\n phone\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n licenseeIsBillingIdentity\n}\n\nfragment CollectionAa_product on SkuProduct {\n __isSkuProduct: __typename\n __typename\n ... on FontCollection {\n featureStyle {\n ...FontStyle_fontStyle\n id\n }\n }\n ... on Bundle {\n fontStyles {\n ...FontStyle_fontStyle\n id\n }\n }\n}\n\nfragment CouponText_coupon on Coupon {\n type\n percentAmount\n creditAmountRemaining {\n amount\n currency\n }\n}\n\nfragment Download_order on Order {\n id\n archiveUrl\n customer {\n email\n id\n }\n completedWithCoupon\n}\n\nfragment FontStyle_fontStyle on FontStyle {\n cssFamily\n name\n}\n\nfragment IdentityBox_identity on Identity {\n email\n phoneFormatted\n addressFormatted\n vatNumber\n}\n\nfragment Price_price on Money {\n amount\n currency\n}\n\nfragment VariableTableAmounts_option on LicenseOption {\n amounts\n}\n\nfragment VariableTableAmounts_variable on LicenseVariable {\n units\n}\n"
659
+ "text": "mutation TestFontsFormUpdateCustomerMutation(\n $input: UpdateCustomerInput!\n) {\n updateCustomer(input: $input) {\n order {\n ...CartOrder_order\n id\n }\n }\n}\n\nfragment CartItem_node on OrderItem {\n id\n price {\n ...Price_price\n }\n sku {\n price {\n ...Price_price\n }\n product {\n __isSkuProduct: __typename\n __typename\n ...CollectionAa_product\n ...FontStyle_fontStyle\n ... on FontStyle {\n family {\n name\n cssUrl\n id\n }\n name\n variableInstances {\n name\n }\n }\n ... on Bundle {\n name\n }\n ... on FontCollection {\n name\n isVariableFont\n totalStyles\n featureStyle {\n family {\n cssUrl\n id\n }\n id\n }\n }\n ... on Licenseable {\n __isLicenseable: __typename\n licenses {\n id\n name\n variables: licenseVariables {\n id\n name\n variableType\n options: licenseOptions {\n id\n amount\n name\n }\n }\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n licenseSelections {\n id\n license {\n id\n name\n multiplier\n }\n variable: licenseVariable {\n id\n variableType\n ...VariableTableAmounts_variable\n }\n option: licenseOption {\n id\n amount\n multiplier\n name\n ...VariableTableAmounts_option\n }\n variableText\n }\n}\n\nfragment CartOrder_order on Order {\n ...Checkout_order\n ...Download_order\n ...CartTotals_order\n orderItems {\n ...CartItem_node\n id\n licenseSelections {\n license {\n id\n }\n licenseVariable {\n id\n variableType\n }\n licenseOption {\n id\n }\n variableText\n id\n }\n }\n discount {\n id\n }\n customer {\n email\n name\n anonymous\n id\n }\n billingIdentity {\n ...IdentityBox_identity\n }\n licenseeIdentity {\n ...IdentityBox_identity\n }\n licenseeIsBillingIdentity\n stripePaymentMethod {\n card {\n last4\n brand\n }\n }\n stripePaymentIntent {\n status\n }\n canCompleteWithCoupon\n completedWithCoupon\n}\n\nfragment CartTotals_order on Order {\n subtotal {\n ...Price_price\n }\n discount {\n amount {\n amount\n ...Price_price\n }\n coupon {\n ...CouponText_coupon\n id\n }\n id\n }\n discountedSubtotal {\n ...Price_price\n }\n total {\n amount\n ...Price_price\n }\n taxRate\n taxes {\n ...Price_price\n }\n taxName\n gstIncluded\n}\n\nfragment Checkout_order on Order {\n canCompleteWithCoupon\n customer {\n name\n email\n newsletterOptIn\n id\n }\n billingIdentity {\n name\n organization\n email\n phone\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n licenseeIdentity {\n name\n organization\n email\n phone\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n licenseeIsBillingIdentity\n}\n\nfragment CollectionAa_product on SkuProduct {\n __isSkuProduct: __typename\n __typename\n ... on FontCollection {\n featureStyle {\n ...FontStyle_fontStyle\n id\n }\n }\n ... on Bundle {\n fontStyles {\n ...FontStyle_fontStyle\n id\n }\n }\n}\n\nfragment CouponText_coupon on Coupon {\n type\n percentAmount\n creditAmountRemaining {\n amount\n currency\n }\n}\n\nfragment Download_order on Order {\n id\n archiveUrl\n customer {\n email\n id\n }\n completedWithCoupon\n}\n\nfragment FontStyle_fontStyle on FontStyle {\n cssFamily\n name\n}\n\nfragment IdentityBox_identity on Identity {\n email\n phoneFormatted\n addressFormatted\n vatNumber\n}\n\nfragment Price_price on Money {\n amount\n currency\n}\n\nfragment VariableTableAmounts_option on LicenseOption {\n amounts\n}\n\nfragment VariableTableAmounts_variable on LicenseVariable {\n units\n}\n"
628
660
  }
629
661
  };
630
662
  }();
@@ -4,13 +4,15 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
+ var _AddToCartBannerQuery2 = _interopRequireDefault(require("../../__generated__/AddToCartBannerQuery.graphql"));
8
+ var _AddToCartBanner_order2 = _interopRequireDefault(require("../../__generated__/AddToCartBanner_order.graphql"));
9
+ var _AddToCartBanner_item2 = _interopRequireDefault(require("../../__generated__/AddToCartBanner_item.graphql"));
7
10
  var _react = _interopRequireWildcard(require("react"));
8
11
  var _reactRelay = require("react-relay");
9
12
  var _fastDeepEqual = _interopRequireDefault(require("fast-deep-equal"));
10
- var _AddToCartBanner_item, _AddToCartBanner_order, _AddToCartBannerQuery;
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
13
  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); }
13
14
  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; }
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
16
  const getOrderItemName = item => {
15
17
  var _item$sku;
16
18
  const product = item === null || item === void 0 ? void 0 : (_item$sku = item.sku) === null || _item$sku === void 0 ? void 0 : _item$sku.product;
@@ -22,13 +24,13 @@ const getOrderItemName = item => {
22
24
  if ('name' in product) return product.name;
23
25
  return null;
24
26
  };
25
- _AddToCartBanner_item !== void 0 ? _AddToCartBanner_item : (_AddToCartBanner_item = require("../../__generated__/AddToCartBanner_item.graphql"), _AddToCartBanner_item.hash && _AddToCartBanner_item.hash !== "ebcfac33759865770c15e1efe0777e91" && console.error("The definition of 'AddToCartBanner_item' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _AddToCartBanner_item);
27
+ _AddToCartBanner_item2.default.hash && _AddToCartBanner_item2.default.hash !== "ebcfac33759865770c15e1efe0777e91" && console.error("The definition of 'AddToCartBanner_item' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _AddToCartBanner_item;
26
28
  function AddToCartBanner(_ref) {
27
29
  var _order$orderItems, _order$orderItems2;
28
30
  let {
29
31
  order: orderKey
30
32
  } = _ref;
31
- const order = (0, _reactRelay.useFragment)(_AddToCartBanner_order !== void 0 ? _AddToCartBanner_order : (_AddToCartBanner_order = require("../../__generated__/AddToCartBanner_order.graphql"), _AddToCartBanner_order.hash && _AddToCartBanner_order.hash !== "29516fe27686b4937b1856979f13d22b" && console.error("The definition of 'AddToCartBanner_order' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _AddToCartBanner_order), orderKey);
33
+ const order = (0, _reactRelay.useFragment)((_AddToCartBanner_order2.default.hash && _AddToCartBanner_order2.default.hash !== "29516fe27686b4937b1856979f13d22b" && console.error("The definition of 'AddToCartBanner_order' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _AddToCartBanner_order), orderKey);
32
34
  const [active, setActive] = (0, _react.useState)(false);
33
35
  const prevOrderItemIds = (0, _react.useRef)(order === null || order === void 0 ? void 0 : (_order$orderItems = order.orderItems) === null || _order$orderItems === void 0 ? void 0 : _order$orderItems.map(item => item.id));
34
36
  const newOrderItemIds = (0, _react.useRef)([]);
@@ -70,7 +72,7 @@ function AddToCartBanner(_ref) {
70
72
  function AddToCartBannerQueryRenderer() {
71
73
  const {
72
74
  viewer
73
- } = (0, _reactRelay.useLazyLoadQuery)(_AddToCartBannerQuery !== void 0 ? _AddToCartBannerQuery : (_AddToCartBannerQuery = require("../../__generated__/AddToCartBannerQuery.graphql"), _AddToCartBannerQuery.hash && _AddToCartBannerQuery.hash !== "0ece6678652384f7938caf18b2a40be9" && console.error("The definition of 'AddToCartBannerQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _AddToCartBannerQuery), {});
75
+ } = (0, _reactRelay.useLazyLoadQuery)((_AddToCartBannerQuery2.default.hash && _AddToCartBannerQuery2.default.hash !== "0ece6678652384f7938caf18b2a40be9" && console.error("The definition of 'AddToCartBannerQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _AddToCartBannerQuery), {});
74
76
  return /*#__PURE__*/_react.default.createElement(AddToCartBanner, {
75
77
  order: viewer.currentOrder
76
78
  });
@@ -7,16 +7,18 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.BuyButtonPreloadedIDQueryRenderer = BuyButtonPreloadedIDQueryRenderer;
8
8
  exports.BuyButtonPreloadedSlugQueryRenderer = BuyButtonPreloadedSlugQueryRenderer;
9
9
  exports.default = BuyButton;
10
+ var _BuyButtonSlugQuery2 = _interopRequireDefault(require("../../__generated__/BuyButtonSlugQuery.graphql"));
11
+ var _BuyButtonIDQuery2 = _interopRequireDefault(require("../../__generated__/BuyButtonIDQuery.graphql"));
12
+ var _BuyButton_collection2 = _interopRequireDefault(require("../../__generated__/BuyButton_collection.graphql"));
10
13
  var _react = _interopRequireWildcard(require("react"));
11
14
  var _reactRelay = require("react-relay");
12
15
  var _reactRedux = require("react-redux");
13
16
  var _ComponentsContext = _interopRequireDefault(require("../ComponentsContext"));
14
17
  var _productState = require("../Root/productState");
15
18
  var _useSerializablePreloadedQuery = _interopRequireDefault(require("../../relay/useSerializablePreloadedQuery"));
16
- var _BuyButton_collection, _BuyButtonIDQuery, _BuyButtonSlugQuery;
17
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
19
  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); }
19
20
  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; }
21
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
22
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
21
23
  function BuyButtonComponent(_ref) {
22
24
  let {
@@ -24,7 +26,7 @@ function BuyButtonComponent(_ref) {
24
26
  label,
25
27
  collectionName
26
28
  } = _ref;
27
- const collection = (0, _reactRelay.useFragment)(_BuyButton_collection !== void 0 ? _BuyButton_collection : (_BuyButton_collection = require("../../__generated__/BuyButton_collection.graphql"), _BuyButton_collection.hash && _BuyButton_collection.hash !== "9c47030d7450494449d4aa5bda16e27e" && console.error("The definition of 'BuyButton_collection' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _BuyButton_collection), collectionKey);
29
+ const collection = (0, _reactRelay.useFragment)((_BuyButton_collection2.default.hash && _BuyButton_collection2.default.hash !== "9c47030d7450494449d4aa5bda16e27e" && console.error("The definition of 'BuyButton_collection' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _BuyButton_collection), collectionKey);
28
30
  const store = (0, _reactRedux.useStore)();
29
31
  const components = (0, _react.useContext)(_ComponentsContext.default);
30
32
  const dispatch = (0, _reactRedux.useDispatch)();
@@ -62,7 +64,7 @@ function BuyButtonComponent(_ref) {
62
64
  type: "button"
63
65
  }, label ? label : `Buy ${collectionName ?? ''}`);
64
66
  }
65
- const idQuery = _BuyButtonIDQuery !== void 0 ? _BuyButtonIDQuery : (_BuyButtonIDQuery = require("../../__generated__/BuyButtonIDQuery.graphql"), _BuyButtonIDQuery.hash && _BuyButtonIDQuery.hash !== "239b8509e5cecdf8ba5d124f5f39ef5f" && console.error("The definition of 'BuyButtonIDQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _BuyButtonIDQuery);
67
+ const idQuery = (_BuyButtonIDQuery2.default.hash && _BuyButtonIDQuery2.default.hash !== "239b8509e5cecdf8ba5d124f5f39ef5f" && console.error("The definition of 'BuyButtonIDQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _BuyButtonIDQuery);
66
68
  function BuyButtonIDQueryRenderer(_ref2) {
67
69
  let {
68
70
  collectionId,
@@ -82,7 +84,7 @@ function BuyButtonPreloadedIDQueryRenderer(_ref3) {
82
84
  const data = (0, _reactRelay.usePreloadedQuery)(idQuery, queryRef);
83
85
  return /*#__PURE__*/_react.default.createElement(BuyButtonComponent, _extends({}, rest, data));
84
86
  }
85
- const slugQuery = _BuyButtonSlugQuery !== void 0 ? _BuyButtonSlugQuery : (_BuyButtonSlugQuery = require("../../__generated__/BuyButtonSlugQuery.graphql"), _BuyButtonSlugQuery.hash && _BuyButtonSlugQuery.hash !== "465a1d1ddcd982c9f97e4c5daa5755d6" && console.error("The definition of 'BuyButtonSlugQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _BuyButtonSlugQuery);
87
+ const slugQuery = (_BuyButtonSlugQuery2.default.hash && _BuyButtonSlugQuery2.default.hash !== "465a1d1ddcd982c9f97e4c5daa5755d6" && console.error("The definition of 'BuyButtonSlugQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _BuyButtonSlugQuery);
86
88
  function BuyButtonSlugQueryRenderer(_ref4) {
87
89
  var _data$viewer, _data$viewer$slug;
88
90
  let {