fontdue-js 2.8.0 → 2.8.2

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 (106) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/__generated__/AddToCartBannerQuery.graphql.d.ts +2 -2
  3. package/dist/__generated__/AddToCartBannerQuery.graphql.js +1 -1
  4. package/dist/__generated__/CartButtonQuery.graphql.d.ts +2 -2
  5. package/dist/__generated__/CartButtonQuery.graphql.js +1 -1
  6. package/dist/__generated__/CartOrderCompleteOrderMutation.graphql.d.ts +2 -2
  7. package/dist/__generated__/CartOrderCompleteOrderMutation.graphql.js +1 -1
  8. package/dist/__generated__/CartOrderRemoveDiscountMutation.graphql.d.ts +2 -2
  9. package/dist/__generated__/CartOrderRemoveDiscountMutation.graphql.js +1 -1
  10. package/dist/__generated__/CartQuery.graphql.d.ts +2 -2
  11. package/dist/__generated__/CartQuery.graphql.js +1 -1
  12. package/dist/__generated__/CartStateRemoveDiscountMutation.graphql.d.ts +2 -2
  13. package/dist/__generated__/CartStateRemoveDiscountMutation.graphql.js +1 -1
  14. package/dist/__generated__/NewsletterSignupQuery.graphql.d.ts +2 -2
  15. package/dist/__generated__/NewsletterSignupQuery.graphql.js +1 -1
  16. package/dist/__generated__/PriceBarSection_node.graphql.d.ts +1 -1
  17. package/dist/__generated__/PriceBarSection_node.graphql.js +5 -2
  18. package/dist/__generated__/SKUPrice_sku.graphql.d.ts +1 -1
  19. package/dist/__generated__/SKUPrice_sku.graphql.js +5 -2
  20. package/dist/__generated__/StoreModalCartQuery.graphql.d.ts +2 -2
  21. package/dist/__generated__/StoreModalCartQuery.graphql.js +1 -1
  22. package/dist/__generated__/StoreModalCheckoutQuery.graphql.d.ts +2 -2
  23. package/dist/__generated__/StoreModalCheckoutQuery.graphql.js +1 -1
  24. package/dist/__generated__/StoreModalContainerQuery.graphql.d.ts +2 -2
  25. package/dist/__generated__/StoreModalContainerQuery.graphql.js +1 -1
  26. package/dist/__generated__/StoreModalReviewCompleteOrderMutation.graphql.d.ts +2 -2
  27. package/dist/__generated__/StoreModalReviewCompleteOrderMutation.graphql.js +1 -1
  28. package/dist/__generated__/StoreModalReviewQuery.graphql.d.ts +2 -2
  29. package/dist/__generated__/StoreModalReviewQuery.graphql.js +1 -1
  30. package/dist/__generated__/TestFontsForm_Query.graphql.d.ts +2 -2
  31. package/dist/__generated__/TestFontsForm_Query.graphql.js +1 -1
  32. package/dist/__generated__/TestModeBannerQuery.graphql.d.ts +2 -6
  33. package/dist/__generated__/TestModeBannerQuery.graphql.js +18 -40
  34. package/dist/__generated__/ThemeConfigQuery.graphql.d.ts +2 -2
  35. package/dist/__generated__/ThemeConfigQuery.graphql.js +1 -1
  36. package/dist/components/AddToCartBanner/index.js +3 -3
  37. package/dist/components/BuyButton/index.js +3 -3
  38. package/dist/components/Cart/AddressFields.js +1 -1
  39. package/dist/components/Cart/CartItem/index.js +5 -5
  40. package/dist/components/Cart/CartOrder.js +6 -6
  41. package/dist/components/Cart/CartState.js +3 -3
  42. package/dist/components/Cart/CartTotals.js +1 -1
  43. package/dist/components/Cart/Checkout.js +6 -6
  44. package/dist/components/Cart/CouponCodeInput.js +2 -2
  45. package/dist/components/Cart/Download.js +2 -2
  46. package/dist/components/Cart/IdentityBox.js +1 -1
  47. package/dist/components/Cart/index.js +1 -1
  48. package/dist/components/CartButton/index.js +3 -3
  49. package/dist/components/CharacterViewer/StyleSelect.d.ts +29 -0
  50. package/dist/components/CharacterViewer/StyleSelect.js +71 -0
  51. package/dist/components/CharacterViewer/index.js +4 -4
  52. package/dist/components/CollectionAa/index.js +2 -2
  53. package/dist/components/CouponText/index.js +1 -1
  54. package/dist/components/CustomerLoginForm/index.js +1 -1
  55. package/dist/components/Family/FamilyList.js +1 -1
  56. package/dist/components/Family/index.js +1 -1
  57. package/dist/components/FontFamilies/index.js +1 -1
  58. package/dist/components/FontStyle/index.js +1 -1
  59. package/dist/components/FontdueProvider/index.server.js +3 -3
  60. package/dist/components/NewsletterSignup/index.js +2 -2
  61. package/dist/components/NodePasswordForm/index.js +1 -1
  62. package/dist/components/Precart/License.js +1 -1
  63. package/dist/components/Precart/index.js +5 -5
  64. package/dist/components/Price/index.js +1 -1
  65. package/dist/components/PriceBar/PriceBarSection.js +1 -1
  66. package/dist/components/PriceBar/index.js +1 -1
  67. package/dist/components/Root/productState.js +5 -5
  68. package/dist/components/SKUPrice/index.js +1 -1
  69. package/dist/components/SelectButton/index.js +1 -1
  70. package/dist/components/SpecimenLink/index.js +1 -1
  71. package/dist/components/StoreModal/StoreModalBundleButton.js +1 -1
  72. package/dist/components/StoreModal/StoreModalCart.js +1 -1
  73. package/dist/components/StoreModal/StoreModalCheckout.js +1 -1
  74. package/dist/components/StoreModal/StoreModalContainer.js +1 -1
  75. package/dist/components/StoreModal/StoreModalDownload.js +2 -2
  76. package/dist/components/StoreModal/StoreModalFamily.js +1 -1
  77. package/dist/components/StoreModal/StoreModalFamilyButton.js +1 -1
  78. package/dist/components/StoreModal/StoreModalIndex.js +1 -1
  79. package/dist/components/StoreModal/StoreModalIndexItem.js +1 -1
  80. package/dist/components/StoreModal/StoreModalProduct.js +1 -1
  81. package/dist/components/StoreModal/StoreModalReview.js +5 -5
  82. package/dist/components/StoreModal/StoreModalReviewIdentity.js +1 -1
  83. package/dist/components/StoreModal/StoreModalStyleButton.js +1 -1
  84. package/dist/components/StoreModalProductLicenseSelection/StoreModalProductLicense.js +1 -1
  85. package/dist/components/StoreModalProductLicenseSelection/index.js +1 -1
  86. package/dist/components/StoreModalProductSummary/index.js +3 -3
  87. package/dist/components/StripeProvider/index.js +1 -1
  88. package/dist/components/Switch/index.d.ts +1 -0
  89. package/dist/components/Switch/index.js +7 -0
  90. package/dist/components/TestFontsForm/index.js +2 -2
  91. package/dist/components/TestModeBanner/index.d.ts +0 -5
  92. package/dist/components/TestModeBanner/index.js +5 -28
  93. package/dist/components/ThemeConfig/index.js +1 -1
  94. package/dist/components/TypeTester/TypeTesterFeatures.js +1 -1
  95. package/dist/components/TypeTester/TypeTesterFeaturesButton.js +1 -1
  96. package/dist/components/TypeTester/TypeTesterFloatingToolbar.js +1 -1
  97. package/dist/components/TypeTester/TypeTesterStandalone.js +1 -1
  98. package/dist/components/TypeTester/TypeTesterStyleSelectData.js +3 -3
  99. package/dist/components/TypeTester/TypeTesterToolbar.js +1 -1
  100. package/dist/components/TypeTester/TypeTesterVariableAxes.js +1 -1
  101. package/dist/components/TypeTester/index.js +4 -4
  102. package/dist/components/TypeTester/useFeaturesData.js +1 -1
  103. package/dist/components/TypeTesters/index.js +4 -4
  104. package/dist/components/VariableTableAmounts/index.js +2 -2
  105. package/dist/components/useTotalStyles.js +1 -1
  106. package/package.json +9 -8
@@ -67,10 +67,10 @@ const orderChangeInput = (order, orderItem) => {
67
67
  // want to reset the cart back to empty).
68
68
  // but here we want to keep displaying the order that they
69
69
  // just paid for
70
- const submitCompleteMutation = (_CartOrderCompleteOrderMutation2.default.hash && _CartOrderCompleteOrderMutation2.default.hash !== "86f8fe7e3a867ae234cb381df186c107" && console.error("The definition of 'CartOrderCompleteOrderMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartOrderCompleteOrderMutation);
71
- _CartOrder_UpdateErrors2.default.hash && _CartOrder_UpdateErrors2.default.hash !== "0bc5cd4fa568238d362a545367f9c306" && console.error("The definition of 'CartOrder_UpdateErrors' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartOrder_UpdateErrors;
72
- const orderChangeMutation = (_CartOrderUpdateMutation2.default.hash && _CartOrderUpdateMutation2.default.hash !== "9f208ec36dbea5d90eeae4574b48bd15" && console.error("The definition of 'CartOrderUpdateMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartOrderUpdateMutation);
73
- const removeDiscountMutation = (_CartOrderRemoveDiscountMutation2.default.hash && _CartOrderRemoveDiscountMutation2.default.hash !== "8a84a9135f1406fa9c4cc16dc2e11d30" && console.error("The definition of 'CartOrderRemoveDiscountMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartOrderRemoveDiscountMutation);
70
+ const submitCompleteMutation = (_CartOrderCompleteOrderMutation2.default.hash && _CartOrderCompleteOrderMutation2.default.hash !== "86f8fe7e3a867ae234cb381df186c107" && console.error("The definition of 'CartOrderCompleteOrderMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartOrderCompleteOrderMutation2.default);
71
+ _CartOrder_UpdateErrors2.default.hash && _CartOrder_UpdateErrors2.default.hash !== "0bc5cd4fa568238d362a545367f9c306" && console.error("The definition of 'CartOrder_UpdateErrors' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartOrder_UpdateErrors2.default;
72
+ const orderChangeMutation = (_CartOrderUpdateMutation2.default.hash && _CartOrderUpdateMutation2.default.hash !== "9f208ec36dbea5d90eeae4574b48bd15" && console.error("The definition of 'CartOrderUpdateMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartOrderUpdateMutation2.default);
73
+ const removeDiscountMutation = (_CartOrderRemoveDiscountMutation2.default.hash && _CartOrderRemoveDiscountMutation2.default.hash !== "8a84a9135f1406fa9c4cc16dc2e11d30" && console.error("The definition of 'CartOrderRemoveDiscountMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartOrderRemoveDiscountMutation2.default);
74
74
  const CartOrder = _ref2 => {
75
75
  var _order$stripePaymentM, _viewer$settings;
76
76
  let {
@@ -81,8 +81,8 @@ const CartOrder = _ref2 => {
81
81
  const environment = (0, _reactRelay.useRelayEnvironment)();
82
82
  const stripe = (0, _reactStripeJs.useStripe)();
83
83
  const dispatch = (0, _reactRedux.useDispatch)();
84
- const order = (0, _reactRelay.useFragment)((_CartOrder_order2.default.hash && _CartOrder_order2.default.hash !== "84f966e53ef1100c2ea2bb6ef7aa6c54" && console.error("The definition of 'CartOrder_order' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartOrder_order), orderKey);
85
- const viewer = (0, _reactRelay.useFragment)((_CartOrder_viewer2.default.hash && _CartOrder_viewer2.default.hash !== "13e1fb5c61670fcdf4add0214ea88ea5" && console.error("The definition of 'CartOrder_viewer' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartOrder_viewer), viewerKey);
84
+ const order = (0, _reactRelay.useFragment)((_CartOrder_order2.default.hash && _CartOrder_order2.default.hash !== "84f966e53ef1100c2ea2bb6ef7aa6c54" && console.error("The definition of 'CartOrder_order' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartOrder_order2.default), orderKey);
85
+ const viewer = (0, _reactRelay.useFragment)((_CartOrder_viewer2.default.hash && _CartOrder_viewer2.default.hash !== "13e1fb5c61670fcdf4add0214ea88ea5" && console.error("The definition of 'CartOrder_viewer' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartOrder_viewer2.default), viewerKey);
86
86
 
87
87
  // errors is from the payload, typically user errors,
88
88
  // whereas 'error' refers to schema/network/catastrophic errors
@@ -10,14 +10,14 @@ var _CartStateUpdateMutation2 = _interopRequireDefault(require("../../__generate
10
10
  var _react = require("react");
11
11
  var _reactRelay = require("react-relay");
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
- const orderChangeMutation = (_CartStateUpdateMutation2.default.hash && _CartStateUpdateMutation2.default.hash !== "0074879fb29466e5a947a8776a86c5f6" && console.error("The definition of 'CartStateUpdateMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartStateUpdateMutation);
14
- const removeDiscountMutation = (_CartStateRemoveDiscountMutation2.default.hash && _CartStateRemoveDiscountMutation2.default.hash !== "a1ce9ee438492737524704a36bbf6713" && console.error("The definition of 'CartStateRemoveDiscountMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartStateRemoveDiscountMutation);
13
+ const orderChangeMutation = (_CartStateUpdateMutation2.default.hash && _CartStateUpdateMutation2.default.hash !== "0074879fb29466e5a947a8776a86c5f6" && console.error("The definition of 'CartStateUpdateMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartStateUpdateMutation2.default);
14
+ const removeDiscountMutation = (_CartStateRemoveDiscountMutation2.default.hash && _CartStateRemoveDiscountMutation2.default.hash !== "a1ce9ee438492737524704a36bbf6713" && console.error("The definition of 'CartStateRemoveDiscountMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartStateRemoveDiscountMutation2.default);
15
15
  function CartState(_ref) {
16
16
  let {
17
17
  order: orderKey,
18
18
  children
19
19
  } = _ref;
20
- const order = (0, _reactRelay.useFragment)((_CartState_order2.default.hash && _CartState_order2.default.hash !== "a4267a6dccade27c1af1b1a71922a10f" && console.error("The definition of 'CartState_order' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartState_order), orderKey);
20
+ const order = (0, _reactRelay.useFragment)((_CartState_order2.default.hash && _CartState_order2.default.hash !== "a4267a6dccade27c1af1b1a71922a10f" && console.error("The definition of 'CartState_order' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartState_order2.default), orderKey);
21
21
  const [error, setError] = (0, _react.useState)(null);
22
22
  const [errors, setErrors] = (0, _react.useState)(null);
23
23
  const environment = (0, _reactRelay.useRelayEnvironment)();
@@ -44,7 +44,7 @@ function CartTotals(_ref2) {
44
44
  allowDiscountRemoval = true,
45
45
  hideTotal = false
46
46
  } = _ref2;
47
- const order = (0, _reactRelay.useFragment)((_CartTotals_order2.default.hash && _CartTotals_order2.default.hash !== "7fe25d7e214b579ce085157b9bd551a8" && console.error("The definition of 'CartTotals_order' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartTotals_order), orderKey);
47
+ const order = (0, _reactRelay.useFragment)((_CartTotals_order2.default.hash && _CartTotals_order2.default.hash !== "7fe25d7e214b579ce085157b9bd551a8" && console.error("The definition of 'CartTotals_order' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartTotals_order2.default), orderKey);
48
48
  return /*#__PURE__*/_react.default.createElement("div", {
49
49
  className: "cart__price-blocks",
50
50
  "data-has-discount": Boolean(order.discount),
@@ -28,10 +28,10 @@ const DESKTOP = 'desktop';
28
28
  // countryData will take care of knowing which address fields
29
29
  // are required
30
30
  const IDENTITY_REQUIRED_FIELDS = ['name', 'email', 'phone', 'country'];
31
- _Checkout_identity2.default.hash && _Checkout_identity2.default.hash !== "e69fe84d0b5b4a205aa52d5eefe1048d" && console.error("The definition of 'Checkout_identity' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _Checkout_identity;
32
- const updateCustomerMutation = (_CheckoutUpdateCustomerMutation2.default.hash && _CheckoutUpdateCustomerMutation2.default.hash !== "0b5cfd0771be9b3107817aefcc7029cf" && console.error("The definition of 'CheckoutUpdateCustomerMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CheckoutUpdateCustomerMutation);
33
- _Checkout_UpdateOrderErrors2.default.hash && _Checkout_UpdateOrderErrors2.default.hash !== "d76073037a16138de572dbb22d72da8f" && console.error("The definition of 'Checkout_UpdateOrderErrors' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _Checkout_UpdateOrderErrors;
34
- const updateOrderMutation = (_CheckoutUpdateOrderMutation2.default.hash && _CheckoutUpdateOrderMutation2.default.hash !== "089745e2478edf385a09357905e4173c" && console.error("The definition of 'CheckoutUpdateOrderMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CheckoutUpdateOrderMutation);
31
+ _Checkout_identity2.default.hash && _Checkout_identity2.default.hash !== "e69fe84d0b5b4a205aa52d5eefe1048d" && console.error("The definition of 'Checkout_identity' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _Checkout_identity2.default;
32
+ const updateCustomerMutation = (_CheckoutUpdateCustomerMutation2.default.hash && _CheckoutUpdateCustomerMutation2.default.hash !== "0b5cfd0771be9b3107817aefcc7029cf" && console.error("The definition of 'CheckoutUpdateCustomerMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CheckoutUpdateCustomerMutation2.default);
33
+ _Checkout_UpdateOrderErrors2.default.hash && _Checkout_UpdateOrderErrors2.default.hash !== "d76073037a16138de572dbb22d72da8f" && console.error("The definition of 'Checkout_UpdateOrderErrors' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _Checkout_UpdateOrderErrors2.default;
34
+ const updateOrderMutation = (_CheckoutUpdateOrderMutation2.default.hash && _CheckoutUpdateOrderMutation2.default.hash !== "089745e2478edf385a09357905e4173c" && console.error("The definition of 'CheckoutUpdateOrderMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CheckoutUpdateOrderMutation2.default);
35
35
  const Checkout = _ref => {
36
36
  let {
37
37
  order,
@@ -45,8 +45,8 @@ const Checkout = _ref => {
45
45
  onCancel,
46
46
  skipPaymentMethod = false
47
47
  } = _ref;
48
- const orderData = (0, _reactRelay.useFragment)((_Checkout_order2.default.hash && _Checkout_order2.default.hash !== "693ae9c7f2c7fe9a179bad7b86c16928" && console.error("The definition of 'Checkout_order' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _Checkout_order), order);
49
- const viewerData = (0, _reactRelay.useFragment)((_Checkout_viewer2.default.hash && _Checkout_viewer2.default.hash !== "be63ce5562013aa6a1439e6259c80e2f" && console.error("The definition of 'Checkout_viewer' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _Checkout_viewer), viewer);
48
+ const orderData = (0, _reactRelay.useFragment)((_Checkout_order2.default.hash && _Checkout_order2.default.hash !== "693ae9c7f2c7fe9a179bad7b86c16928" && console.error("The definition of 'Checkout_order' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _Checkout_order2.default), order);
49
+ const viewerData = (0, _reactRelay.useFragment)((_Checkout_viewer2.default.hash && _Checkout_viewer2.default.hash !== "be63ce5562013aa6a1439e6259c80e2f" && console.error("The definition of 'Checkout_viewer' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _Checkout_viewer2.default), viewer);
50
50
  const identity = {
51
51
  name: '',
52
52
  organization: '',
@@ -26,14 +26,14 @@ function useDebounce(value, delay) {
26
26
  }, [value, delay]);
27
27
  return debouncedValue;
28
28
  }
29
- const applyCouponMutation = (_CouponCodeInputApplyCouponMutation2.default.hash && _CouponCodeInputApplyCouponMutation2.default.hash !== "7090ef11a30d00dbaea37589166dc1a9" && console.error("The definition of 'CouponCodeInputApplyCouponMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CouponCodeInputApplyCouponMutation);
29
+ const applyCouponMutation = (_CouponCodeInputApplyCouponMutation2.default.hash && _CouponCodeInputApplyCouponMutation2.default.hash !== "7090ef11a30d00dbaea37589166dc1a9" && console.error("The definition of 'CouponCodeInputApplyCouponMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CouponCodeInputApplyCouponMutation2.default);
30
30
  const CouponCodeInput = _ref => {
31
31
  var _viewer$coupon, _viewer$coupon2, _viewer$coupon3, _viewer$coupon4;
32
32
  let {
33
33
  viewer: viewerKey
34
34
  } = _ref;
35
35
  const environment = (0, _reactRelay.useRelayEnvironment)();
36
- const [viewer, refetch] = (0, _reactRelay.useRefetchableFragment)((_CouponCodeInput_viewer2.default.hash && _CouponCodeInput_viewer2.default.hash !== "06207af721d062f5fb4c32dc2a260e74" && console.error("The definition of 'CouponCodeInput_viewer' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CouponCodeInput_viewer), viewerKey);
36
+ const [viewer, refetch] = (0, _reactRelay.useRefetchableFragment)((_CouponCodeInput_viewer2.default.hash && _CouponCodeInput_viewer2.default.hash !== "06207af721d062f5fb4c32dc2a260e74" && console.error("The definition of 'CouponCodeInput_viewer' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CouponCodeInput_viewer2.default), viewerKey);
37
37
  const [submitting, setSubmitting] = (0, _react.useState)(false);
38
38
  const [expanded, setExpanded] = (0, _react.useState)(false);
39
39
  const [value, setValue] = (0, _react.useState)('');
@@ -65,6 +65,6 @@ const Download = _ref2 => {
65
65
  }));
66
66
  };
67
67
  var _default = (0, _reactRelay.createRefetchContainer)(Download, {
68
- order: (_Download_order2.default.hash && _Download_order2.default.hash !== "818f18e6bd304c38233be849d75f36a5" && console.error("The definition of 'Download_order' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _Download_order)
69
- }, (_DownloadRefetchQuery2.default.hash && _DownloadRefetchQuery2.default.hash !== "fe555b125ad4154333f80fd69075e0c8" && console.error("The definition of 'DownloadRefetchQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _DownloadRefetchQuery));
68
+ order: (_Download_order2.default.hash && _Download_order2.default.hash !== "818f18e6bd304c38233be849d75f36a5" && console.error("The definition of 'Download_order' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _Download_order2.default)
69
+ }, (_DownloadRefetchQuery2.default.hash && _DownloadRefetchQuery2.default.hash !== "fe555b125ad4154333f80fd69075e0c8" && console.error("The definition of 'DownloadRefetchQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _DownloadRefetchQuery2.default));
70
70
  exports.default = _default;
@@ -17,7 +17,7 @@ function IdentityBox(_ref) {
17
17
  icon
18
18
  }
19
19
  } = _ref;
20
- const identity = (0, _reactRelay.useFragment)((_IdentityBox_identity2.default.hash && _IdentityBox_identity2.default.hash !== "d93d9cb6f2c86580fb57b4de6782ec9d" && console.error("The definition of 'IdentityBox_identity' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _IdentityBox_identity), identityKey);
20
+ const identity = (0, _reactRelay.useFragment)((_IdentityBox_identity2.default.hash && _IdentityBox_identity2.default.hash !== "d93d9cb6f2c86580fb57b4de6782ec9d" && console.error("The definition of 'IdentityBox_identity' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _IdentityBox_identity2.default), identityKey);
21
21
  return /*#__PURE__*/_react.default.createElement("button", {
22
22
  className: "cart__review__button",
23
23
  type: "button",
@@ -16,7 +16,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
16
16
  function Cart() {
17
17
  const {
18
18
  viewer
19
- } = (0, _reactRelay.useLazyLoadQuery)((_CartQuery2.default.hash && _CartQuery2.default.hash !== "b74f61f6b7a71c169b202770100937ca" && console.error("The definition of 'CartQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartQuery), {});
19
+ } = (0, _reactRelay.useLazyLoadQuery)((_CartQuery2.default.hash && _CartQuery2.default.hash !== "b74f61f6b7a71c169b202770100937ca" && console.error("The definition of 'CartQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartQuery2.default), {});
20
20
  const cartOpen = (0, _reactRedux.useSelector)(state => state.cartOpen);
21
21
  const {
22
22
  currentOrder
@@ -23,7 +23,7 @@ function getOrderCount(order) {
23
23
  }
24
24
  const cartButtonCount = order => {
25
25
  if (!order) return 0;
26
- return getOrderCount(order); // TODO: add a `count` field to schema
26
+ return getOrderCount(order);
27
27
  };
28
28
  const openCart = () => ({
29
29
  type: 'OPEN_CART'
@@ -35,7 +35,7 @@ function CartButtonComponent(_ref) {
35
35
  order: orderKey,
36
36
  children
37
37
  } = _ref;
38
- const order = (0, _reactRelay.useFragment)((_CartButton_order2.default.hash && _CartButton_order2.default.hash !== "fe52953705bed993f9f94c1ae33d801a" && console.error("The definition of 'CartButton_order' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartButton_order), orderKey);
38
+ const order = (0, _reactRelay.useFragment)((_CartButton_order2.default.hash && _CartButton_order2.default.hash !== "fe52953705bed993f9f94c1ae33d801a" && console.error("The definition of 'CartButton_order' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartButton_order2.default), orderKey);
39
39
  const [count, setCount] = (0, _react.useState)(0);
40
40
  const dispatch = (0, _reactRedux.useDispatch)();
41
41
  const handleClick = (0, _react.useCallback)(() => {
@@ -68,7 +68,7 @@ function CartButtonComponent(_ref) {
68
68
  className: "cart-button__label"
69
69
  }, label || 'Cart')));
70
70
  }
71
- const query = (_CartButtonQuery2.default.hash && _CartButtonQuery2.default.hash !== "5c0da5849bf1215a9d1f264831830f71" && console.error("The definition of 'CartButtonQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartButtonQuery);
71
+ const query = (_CartButtonQuery2.default.hash && _CartButtonQuery2.default.hash !== "5c0da5849bf1215a9d1f264831830f71" && console.error("The definition of 'CartButtonQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartButtonQuery2.default);
72
72
  function CartButtonPreloadedQueryRenderer(_ref2) {
73
73
  var _data$viewer;
74
74
  let {
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ import { VariableSettings } from '../../utils';
3
+ interface StyleSelect_props {
4
+ collections: {
5
+ name: string;
6
+ isVariableFont: boolean;
7
+ fontStyles: readonly {
8
+ id: string;
9
+ name: string;
10
+ variableInstances: readonly {
11
+ name: string;
12
+ coordinates: readonly {
13
+ axis: string;
14
+ value: number;
15
+ }[];
16
+ }[] | null;
17
+ }[] | null;
18
+ }[];
19
+ value: {
20
+ fontStyleId: string | null;
21
+ variableSettings?: VariableSettings;
22
+ };
23
+ onChange: (value: {
24
+ fontStyleId: string;
25
+ variableSettings?: VariableSettings;
26
+ }) => void;
27
+ }
28
+ export default function StyleSelect({ collections, value, onChange }: StyleSelect_props): React.JSX.Element;
29
+ export {};
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = StyleSelect;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _Select = _interopRequireDefault(require("../Select"));
9
+ var _utils = require("../../utils");
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ function StyleSelect(_ref) {
12
+ let {
13
+ collections,
14
+ value,
15
+ onChange
16
+ } = _ref;
17
+ const handleChange = e => {
18
+ const value = e.target.value;
19
+ if (value.includes(':::')) {
20
+ var _fontStyle$variableIn;
21
+ const [fontStyleId, variableInstanceName] = value.split(':::');
22
+ const fontStyle = collections.flatMap(coll => coll.fontStyles).find(style => style.id === fontStyleId);
23
+ const instance = fontStyle === null || fontStyle === void 0 ? void 0 : (_fontStyle$variableIn = fontStyle.variableInstances) === null || _fontStyle$variableIn === void 0 ? void 0 : _fontStyle$variableIn.find(_ref2 => {
24
+ let {
25
+ name
26
+ } = _ref2;
27
+ return name === variableInstanceName;
28
+ });
29
+ let variableSettings;
30
+ if (instance) variableSettings = (0, _utils.variableInstanceSettings)(instance);
31
+ onChange({
32
+ fontStyleId,
33
+ variableSettings
34
+ });
35
+ } else {
36
+ onChange({
37
+ fontStyleId: value
38
+ });
39
+ }
40
+ };
41
+ let selectValue = value.fontStyleId;
42
+ if (value.variableSettings) {
43
+ var _fontStyle$variableIn2;
44
+ const fontStyle = collections.flatMap(coll => coll.fontStyles).find(style => style.id === value.fontStyleId);
45
+ const instance = fontStyle === null || fontStyle === void 0 ? void 0 : (_fontStyle$variableIn2 = fontStyle.variableInstances) === null || _fontStyle$variableIn2 === void 0 ? void 0 : _fontStyle$variableIn2.find(instance => (0, _utils.compareVariableSettings)(instance, value.variableSettings));
46
+ if (instance) {
47
+ selectValue = `${value.fontStyleId}:::${instance.name}`;
48
+ }
49
+ }
50
+ return /*#__PURE__*/_react.default.createElement(_Select.default, {
51
+ options: collections.flatMap(coll => {
52
+ var _coll$fontStyles2;
53
+ if (coll.isVariableFont) {
54
+ var _coll$fontStyles;
55
+ return ((_coll$fontStyles = coll.fontStyles) === null || _coll$fontStyles === void 0 ? void 0 : _coll$fontStyles.flatMap(style => {
56
+ var _style$variableInstan;
57
+ return (_style$variableInstan = style.variableInstances) === null || _style$variableInstan === void 0 ? void 0 : _style$variableInstan.map(instance => ({
58
+ value: `${style.id}:::${instance.name}`,
59
+ text: `${coll.name} ${instance.name}`
60
+ })).filter(_utils.notEmpty);
61
+ }).filter(_utils.notEmpty)) ?? [];
62
+ }
63
+ return ((_coll$fontStyles2 = coll.fontStyles) === null || _coll$fontStyles2 === void 0 ? void 0 : _coll$fontStyles2.map(style => ({
64
+ value: style.id,
65
+ text: `${coll.name} ${style.name}`
66
+ })).filter(_utils.notEmpty)) ?? [];
67
+ }),
68
+ value: selectValue,
69
+ onChange: handleChange
70
+ });
71
+ }
@@ -141,7 +141,7 @@ function CharacterViewerComponent(_ref3) {
141
141
  let {
142
142
  collection: collectionKey
143
143
  } = _ref3;
144
- const collection = (0, _reactRelay.useFragment)((_CharacterViewer_collection2.default.hash && _CharacterViewer_collection2.default.hash !== "2f49d241268129a888942889cad0bebb" && console.error("The definition of 'CharacterViewer_collection' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CharacterViewer_collection), collectionKey);
144
+ const collection = (0, _reactRelay.useFragment)((_CharacterViewer_collection2.default.hash && _CharacterViewer_collection2.default.hash !== "2f49d241268129a888942889cad0bebb" && console.error("The definition of 'CharacterViewer_collection' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CharacterViewer_collection2.default), collectionKey);
145
145
  const allCollections = [collectionInfo(collection)].concat(((_collection$children = collection.children) === null || _collection$children === void 0 ? void 0 : _collection$children.map(collectionInfo)) ?? []);
146
146
  const unicodeData = useUnicodeData();
147
147
  const initialFontStyle = collection.featureStyle ?? ((_collection$fontStyle = collection.fontStyles) === null || _collection$fontStyle === void 0 ? void 0 : _collection$fontStyle[0]) ?? ((_collection$children2 = collection.children) === null || _collection$children2 === void 0 ? void 0 : (_collection$children3 = _collection$children2[0]) === null || _collection$children3 === void 0 ? void 0 : (_collection$children4 = _collection$children3.fontStyles) === null || _collection$children4 === void 0 ? void 0 : _collection$children4[0]);
@@ -422,8 +422,8 @@ function CharacterViewerComponent(_ref3) {
422
422
  }, chars));
423
423
  }))) : null)) : null);
424
424
  }
425
- _CharacterViewer_family2.default.hash && _CharacterViewer_family2.default.hash !== "d940cabe9ed658d5cbed547287f2de0e" && console.error("The definition of 'CharacterViewer_family' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CharacterViewer_family;
426
- const idQuery = (_CharacterViewerIDQuery2.default.hash && _CharacterViewerIDQuery2.default.hash !== "f90b09a4df6d95307b0a5d5fda487cdc" && console.error("The definition of 'CharacterViewerIDQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CharacterViewerIDQuery);
425
+ _CharacterViewer_family2.default.hash && _CharacterViewer_family2.default.hash !== "d940cabe9ed658d5cbed547287f2de0e" && console.error("The definition of 'CharacterViewer_family' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CharacterViewer_family2.default;
426
+ const idQuery = (_CharacterViewerIDQuery2.default.hash && _CharacterViewerIDQuery2.default.hash !== "f90b09a4df6d95307b0a5d5fda487cdc" && console.error("The definition of 'CharacterViewerIDQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CharacterViewerIDQuery2.default);
427
427
  function CharacterViewerIdQueryRenderer(_ref11) {
428
428
  let {
429
429
  collectionId
@@ -453,7 +453,7 @@ function CharacterViewerSlugQueryRenderer(_ref13) {
453
453
  let {
454
454
  collectionSlug
455
455
  } = _ref13;
456
- const data = (0, _reactRelay.useLazyLoadQuery)((_CharacterViewerSlugQuery2.default.hash && _CharacterViewerSlugQuery2.default.hash !== "afa08a8f050e0434308892fea6e3c267" && console.error("The definition of 'CharacterViewerSlugQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CharacterViewerSlugQuery), {
456
+ const data = (0, _reactRelay.useLazyLoadQuery)((_CharacterViewerSlugQuery2.default.hash && _CharacterViewerSlugQuery2.default.hash !== "afa08a8f050e0434308892fea6e3c267" && console.error("The definition of 'CharacterViewerSlugQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CharacterViewerSlugQuery2.default), {
457
457
  collectionSlug
458
458
  });
459
459
  const collection = data === null || data === void 0 ? void 0 : (_data$viewer = data.viewer) === null || _data$viewer === void 0 ? void 0 : (_data$viewer$slug = _data$viewer.slug) === null || _data$viewer$slug === void 0 ? void 0 : _data$viewer$slug.fontCollection;
@@ -14,7 +14,7 @@ const CollectionAa = _ref => {
14
14
  let {
15
15
  product: productKey
16
16
  } = _ref;
17
- const product = (0, _reactRelay.useFragment)((_CollectionAa_product2.default.hash && _CollectionAa_product2.default.hash !== "c6b0113fe8474166dab3649c41880d84" && console.error("The definition of 'CollectionAa_product' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CollectionAa_product), productKey);
17
+ const product = (0, _reactRelay.useFragment)((_CollectionAa_product2.default.hash && _CollectionAa_product2.default.hash !== "c6b0113fe8474166dab3649c41880d84" && console.error("The definition of 'CollectionAa_product' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CollectionAa_product2.default), productKey);
18
18
  let fontStyle;
19
19
  if ((product === null || product === void 0 ? void 0 : product.__typename) === 'Bundle') {
20
20
  var _product$fontStyles;
@@ -32,7 +32,7 @@ function CollectionAaQueryRenderer(_ref2) {
32
32
  let {
33
33
  collectionId
34
34
  } = _ref2;
35
- const data = (0, _reactRelay.useLazyLoadQuery)((_CollectionAa_Query2.default.hash && _CollectionAa_Query2.default.hash !== "fbe1f59d074d964464c71ea00d2bd90f" && console.error("The definition of 'CollectionAa_Query' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CollectionAa_Query), {
35
+ const data = (0, _reactRelay.useLazyLoadQuery)((_CollectionAa_Query2.default.hash && _CollectionAa_Query2.default.hash !== "fbe1f59d074d964464c71ea00d2bd90f" && console.error("The definition of 'CollectionAa_Query' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CollectionAa_Query2.default), {
36
36
  collectionId
37
37
  });
38
38
  return /*#__PURE__*/_react.default.createElement(CollectionAa, data);
@@ -16,7 +16,7 @@ function CouponText(_ref) {
16
16
  coupon: couponKey,
17
17
  subtract = 0
18
18
  } = _ref;
19
- const coupon = (0, _reactRelay.useFragment)((_CouponText_coupon2.default.hash && _CouponText_coupon2.default.hash !== "1d8116645b5f96a820af21db9e15f375" && console.error("The definition of 'CouponText_coupon' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CouponText_coupon), couponKey);
19
+ const coupon = (0, _reactRelay.useFragment)((_CouponText_coupon2.default.hash && _CouponText_coupon2.default.hash !== "1d8116645b5f96a820af21db9e15f375" && console.error("The definition of 'CouponText_coupon' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CouponText_coupon2.default), couponKey);
20
20
  if (coupon.type === 'credit') {
21
21
  const amountRemaining = {
22
22
  ...coupon.creditAmountRemaining,
@@ -12,7 +12,7 @@ var _TextField = _interopRequireDefault(require("../TextField"));
12
12
  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
13
  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; }
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
- const loginMutation = (_CustomerLoginFormLoginMutation2.default.hash && _CustomerLoginFormLoginMutation2.default.hash !== "975b639fac1e0d88e0f0c9c55acd8b9c" && console.error("The definition of 'CustomerLoginFormLoginMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CustomerLoginFormLoginMutation);
15
+ const loginMutation = (_CustomerLoginFormLoginMutation2.default.hash && _CustomerLoginFormLoginMutation2.default.hash !== "975b639fac1e0d88e0f0c9c55acd8b9c" && console.error("The definition of 'CustomerLoginFormLoginMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CustomerLoginFormLoginMutation2.default);
16
16
  const CustomerLoginFormSubmitted = () => /*#__PURE__*/_react.default.createElement("div", {
17
17
  className: "login-form__submitted"
18
18
  }, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("p", null, "Submitted!"), /*#__PURE__*/_react.default.createElement("p", null, "Please check your email inbox for a link to log in."), /*#__PURE__*/_react.default.createElement("p", null, "If you don't receive an email, please contact us to retrieve your order information.")));
@@ -19,7 +19,7 @@ function FamilyList(_ref) {
19
19
  node: nodeKey,
20
20
  text
21
21
  } = _ref;
22
- const node = (0, _reactRelay.useFragment)((_FamilyList_node2.default.hash && _FamilyList_node2.default.hash !== "d52770ab2e7aaa83f392a5d80340f3ad" && console.error("The definition of 'FamilyList_node' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _FamilyList_node), nodeKey);
22
+ const node = (0, _reactRelay.useFragment)((_FamilyList_node2.default.hash && _FamilyList_node2.default.hash !== "d52770ab2e7aaa83f392a5d80340f3ad" && console.error("The definition of 'FamilyList_node' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _FamilyList_node2.default), nodeKey);
23
23
  return /*#__PURE__*/_react.default.createElement("ul", {
24
24
  className: "font-family-block__list",
25
25
  style: {
@@ -24,7 +24,7 @@ function Family(_ref) {
24
24
  node: nodeKey,
25
25
  size
26
26
  } = _ref;
27
- const node = (0, _reactRelay.useFragment)((_Family_node2.default.hash && _Family_node2.default.hash !== "2fecc4fd332a593d28387a3a87559fe4" && console.error("The definition of 'Family_node' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _Family_node), nodeKey);
27
+ const node = (0, _reactRelay.useFragment)((_Family_node2.default.hash && _Family_node2.default.hash !== "2fecc4fd332a593d28387a3a87559fe4" && console.error("The definition of 'Family_node' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _Family_node2.default), nodeKey);
28
28
  const precartOpen = (0, _reactRedux.useSelector)(state => state.precartOpen);
29
29
  const selector = node.sku ? (0, _reducer.isSelected)(node.sku.id) : () => false;
30
30
  const selected = (0, _reactRedux.useSelector)(selector);
@@ -28,7 +28,7 @@ function FontFamilies(_ref) {
28
28
  }, [collectionId, store, environment]);
29
29
  const {
30
30
  node
31
- } = (0, _reactRelay.useLazyLoadQuery)((_FontFamiliesQuery2.default.hash && _FontFamiliesQuery2.default.hash !== "191c350df0d719005af0d73c96884d40" && console.error("The definition of 'FontFamiliesQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _FontFamiliesQuery), {
31
+ } = (0, _reactRelay.useLazyLoadQuery)((_FontFamiliesQuery2.default.hash && _FontFamiliesQuery2.default.hash !== "191c350df0d719005af0d73c96884d40" && console.error("The definition of 'FontFamiliesQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _FontFamiliesQuery2.default), {
32
32
  collectionId
33
33
  });
34
34
  if (!node) return null;
@@ -17,7 +17,7 @@ function FontStyle(_ref) {
17
17
  children,
18
18
  ...rest
19
19
  } = _ref;
20
- const fontStyle = (0, _reactRelay.useFragment)((_FontStyle_fontStyle2.default.hash && _FontStyle_fontStyle2.default.hash !== "c745ef2ecf5b7f3d0793bea2024d1e69" && console.error("The definition of 'FontStyle_fontStyle' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _FontStyle_fontStyle), fontStyleKey);
20
+ const fontStyle = (0, _reactRelay.useFragment)((_FontStyle_fontStyle2.default.hash && _FontStyle_fontStyle2.default.hash !== "c745ef2ecf5b7f3d0793bea2024d1e69" && console.error("The definition of 'FontStyle_fontStyle' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _FontStyle_fontStyle2.default), fontStyleKey);
21
21
  const {
22
22
  cssFamily,
23
23
  name
@@ -12,8 +12,8 @@ Object.defineProperty(exports, "FontdueProvider_props", {
12
12
  exports.default = FontdueProvider;
13
13
  var _react = _interopRequireDefault(require("react"));
14
14
  var _Stylesheet = require("../Stylesheet");
15
- var _index = _interopRequireDefault(require("../TestModeBanner/index.server"));
16
- var _index2 = _interopRequireDefault(require("../ThemeConfig/index.server"));
15
+ var _TestModeBanner = _interopRequireDefault(require("../TestModeBanner"));
16
+ var _index = _interopRequireDefault(require("../ThemeConfig/index.server"));
17
17
  var _FontdueProviderClientComponent = _interopRequireWildcard(require("./FontdueProviderClientComponent"));
18
18
  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
19
  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; }
@@ -23,5 +23,5 @@ async function FontdueProvider(_ref) {
23
23
  children,
24
24
  ...rest
25
25
  } = _ref;
26
- return /*#__PURE__*/_react.default.createElement(_FontdueProviderClientComponent.default, rest, /*#__PURE__*/_react.default.createElement(_Stylesheet.StylesheetContainer, null), /*#__PURE__*/_react.default.createElement(_index.default, null), /*#__PURE__*/_react.default.createElement(_index2.default, null), children);
26
+ return /*#__PURE__*/_react.default.createElement(_FontdueProviderClientComponent.default, rest, /*#__PURE__*/_react.default.createElement(_Stylesheet.StylesheetContainer, null), /*#__PURE__*/_react.default.createElement(_TestModeBanner.default, null), /*#__PURE__*/_react.default.createElement(_index.default, null), children);
27
27
  }
@@ -17,8 +17,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
17
17
  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; }
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
  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); }
20
- const updateCustomerMutation = (_NewsletterSignupUpdateCustomerMutation2.default.hash && _NewsletterSignupUpdateCustomerMutation2.default.hash !== "769087891b6f263122bbb630b3f2ca6c" && console.error("The definition of 'NewsletterSignupUpdateCustomerMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _NewsletterSignupUpdateCustomerMutation);
21
- const query = (_NewsletterSignupQuery2.default.hash && _NewsletterSignupQuery2.default.hash !== "16f0b6d7ed420ec5857c972b77805e4c" && console.error("The definition of 'NewsletterSignupQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _NewsletterSignupQuery);
20
+ const updateCustomerMutation = (_NewsletterSignupUpdateCustomerMutation2.default.hash && _NewsletterSignupUpdateCustomerMutation2.default.hash !== "769087891b6f263122bbb630b3f2ca6c" && console.error("The definition of 'NewsletterSignupUpdateCustomerMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _NewsletterSignupUpdateCustomerMutation2.default);
21
+ const query = (_NewsletterSignupQuery2.default.hash && _NewsletterSignupQuery2.default.hash !== "16f0b6d7ed420ec5857c972b77805e4c" && console.error("The definition of 'NewsletterSignupQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _NewsletterSignupQuery2.default);
22
22
  function NewsletterSignupComponent(_ref) {
23
23
  var _data$viewer, _data$viewer$settings, _data$viewer2, _data$viewer2$setting;
24
24
  let {
@@ -12,7 +12,7 @@ var _TextField = _interopRequireDefault(require("../TextField"));
12
12
  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
13
  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; }
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
- const accessNodeMutation = (_NodePasswordFormAccessNodeMutation2.default.hash && _NodePasswordFormAccessNodeMutation2.default.hash !== "d0beeb729c358ef4eebd1c8be47ec68e" && console.error("The definition of 'NodePasswordFormAccessNodeMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _NodePasswordFormAccessNodeMutation);
15
+ const accessNodeMutation = (_NodePasswordFormAccessNodeMutation2.default.hash && _NodePasswordFormAccessNodeMutation2.default.hash !== "d0beeb729c358ef4eebd1c8be47ec68e" && console.error("The definition of 'NodePasswordFormAccessNodeMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _NodePasswordFormAccessNodeMutation2.default);
16
16
  function NodePasswordForm(props) {
17
17
  const [password, setPassword] = (0, _react.useState)('');
18
18
  const [error, setError] = (0, _react.useState)(null);
@@ -17,7 +17,7 @@ const License = _ref => {
17
17
  onSelectLicense,
18
18
  onSelectLicenseOption
19
19
  } = _ref;
20
- const node = (0, _reactRelay.useFragment)((_License_node2.default.hash && _License_node2.default.hash !== "1550b152731d8412ffc55716cb536407" && console.error("The definition of 'License_node' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _License_node), nodeKey);
20
+ const node = (0, _reactRelay.useFragment)((_License_node2.default.hash && _License_node2.default.hash !== "1550b152731d8412ffc55716cb536407" && console.error("The definition of 'License_node' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _License_node2.default), nodeKey);
21
21
  if (!node) return null;
22
22
  const selectedLicenseOptions = (0, _reactRedux.useSelector)(state => state.licenseOptions);
23
23
  const selectedOptions = selectedLicenseOptions.find(spec => spec.licenseId === node.id);
@@ -80,7 +80,7 @@ const specFromLicense = license => {
80
80
  }
81
81
  return licenseOptionSpec;
82
82
  };
83
- _Precart_license2.default.hash && _Precart_license2.default.hash !== "0a642f10f28ca7d3857db23cf645895a" && console.error("The definition of 'Precart_license' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _Precart_license;
83
+ _Precart_license2.default.hash && _Precart_license2.default.hash !== "0a642f10f28ca7d3857db23cf645895a" && console.error("The definition of 'Precart_license' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _Precart_license2.default;
84
84
  function Precart(_ref3) {
85
85
  var _viewer$precart2, _collection$licenses3;
86
86
  let {
@@ -88,8 +88,8 @@ function Precart(_ref3) {
88
88
  collection: collectionKey,
89
89
  isLoading
90
90
  } = _ref3;
91
- const viewer = (0, _reactRelay.useFragment)((_Precart_viewer2.default.hash && _Precart_viewer2.default.hash !== "fe66a5cdbee38cae7bfb11922f945fd5" && console.error("The definition of 'Precart_viewer' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _Precart_viewer), viewerKey);
92
- const collection = (0, _reactRelay.useFragment)((_Precart_collection2.default.hash && _Precart_collection2.default.hash !== "dd2c3385a0fc5149dbfa230cfa5e3e99" && console.error("The definition of 'Precart_collection' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _Precart_collection), collectionKey);
91
+ const viewer = (0, _reactRelay.useFragment)((_Precart_viewer2.default.hash && _Precart_viewer2.default.hash !== "fe66a5cdbee38cae7bfb11922f945fd5" && console.error("The definition of 'Precart_viewer' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _Precart_viewer2.default), viewerKey);
92
+ const collection = (0, _reactRelay.useFragment)((_Precart_collection2.default.hash && _Precart_collection2.default.hash !== "dd2c3385a0fc5149dbfa230cfa5e3e99" && console.error("The definition of 'Precart_collection' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _Precart_collection2.default), collectionKey);
93
93
  const environment = (0, _reactRelay.useRelayEnvironment)();
94
94
  const subtotal = viewer === null || viewer === void 0 ? void 0 : (_viewer$precart2 = viewer.precart) === null || _viewer$precart2 === void 0 ? void 0 : _viewer$precart2.subtotal;
95
95
  const precartOpen = (0, _reactRedux.useSelector)(state => state.precartOpen);
@@ -148,7 +148,7 @@ function Precart(_ref3) {
148
148
  licenseSelections: licenseSelectionsArray()
149
149
  }
150
150
  };
151
- const mutation = (_PrecartAddToCartMutation2.default.hash && _PrecartAddToCartMutation2.default.hash !== "c5ead46ecc07099bee68d4f4f1ecb5bf" && console.error("The definition of 'PrecartAddToCartMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _PrecartAddToCartMutation);
151
+ const mutation = (_PrecartAddToCartMutation2.default.hash && _PrecartAddToCartMutation2.default.hash !== "c5ead46ecc07099bee68d4f4f1ecb5bf" && console.error("The definition of 'PrecartAddToCartMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _PrecartAddToCartMutation2.default);
152
152
  (0, _reactRelay.commitMutation)(environment, {
153
153
  mutation,
154
154
  variables,
@@ -310,7 +310,7 @@ function PrecartQueryRenderer(_ref6) {
310
310
  // useDeferredValue allows us to show the stale data instead of falling back
311
311
  // to the Suspense fallback in the parent, basically unmounting everything
312
312
  const deferredLicenseOptionsSpecs = (0, _react.useDeferredValue)(licenseOptionsSpecs);
313
- const data = (0, _reactRelay.useLazyLoadQuery)((_PrecartQuery2.default.hash && _PrecartQuery2.default.hash !== "517fbe407b2c13334c4101126038982d" && console.error("The definition of 'PrecartQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _PrecartQuery), {
313
+ const data = (0, _reactRelay.useLazyLoadQuery)((_PrecartQuery2.default.hash && _PrecartQuery2.default.hash !== "517fbe407b2c13334c4101126038982d" && console.error("The definition of 'PrecartQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _PrecartQuery2.default), {
314
314
  licenseOptionsSpecs: deferredLicenseOptionsSpecs,
315
315
  selectedSkuIds: deferredSelectedSkuIds,
316
316
  collectionId
@@ -93,7 +93,7 @@ function RelayPrice(_ref3) {
93
93
  price: priceKey,
94
94
  ...rest
95
95
  } = _ref3;
96
- const price = (0, _reactRelay.useFragment)((_Price_price2.default.hash && _Price_price2.default.hash !== "7d3425945fe5f6df382005630e30ce86" && console.error("The definition of 'Price_price' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _Price_price), priceKey);
96
+ const price = (0, _reactRelay.useFragment)((_Price_price2.default.hash && _Price_price2.default.hash !== "7d3425945fe5f6df382005630e30ce86" && console.error("The definition of 'Price_price' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _Price_price2.default), priceKey);
97
97
  return /*#__PURE__*/_react.default.createElement(Price, _extends({
98
98
  price: price
99
99
  }, rest));
@@ -26,7 +26,7 @@ function PriceBarSection(_ref) {
26
26
  licenseOptionIds: Object.values(spec.licenseOptions).filter(Boolean)
27
27
  }));
28
28
  const [isPending, startTransition] = (0, _react.useTransition)();
29
- const [node, refetch] = (0, _reactRelay.useRefetchableFragment)((_PriceBarSection_node2.default.hash && _PriceBarSection_node2.default.hash !== "f14d864fde8de83db89ce6cd68487f98" && console.error("The definition of 'PriceBarSection_node' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _PriceBarSection_node), nodeKey);
29
+ const [node, refetch] = (0, _reactRelay.useRefetchableFragment)((_PriceBarSection_node2.default.hash && _PriceBarSection_node2.default.hash !== "f14d864fde8de83db89ce6cd68487f98" && console.error("The definition of 'PriceBarSection_node' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _PriceBarSection_node2.default), nodeKey);
30
30
  const selected = (0, _reactRedux.useSelector)((0, _utils.isSelected)(((_node$sku = node.sku) === null || _node$sku === void 0 ? void 0 : _node$sku.id) ?? null));
31
31
  const prevLicenseOptionsSpecs = (0, _react.useRef)(licenseOptionsSpecs);
32
32
  (0, _react.useEffect)(() => {
@@ -15,7 +15,7 @@ function PriceBar(_ref) {
15
15
  let {
16
16
  node: nodeKey
17
17
  } = _ref;
18
- const node = (0, _reactRelay.useFragment)((_PriceBar_node2.default.hash && _PriceBar_node2.default.hash !== "4a2e7a54397986a901a103fbbf554c4e" && console.error("The definition of 'PriceBar_node' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _PriceBar_node), nodeKey);
18
+ const node = (0, _reactRelay.useFragment)((_PriceBar_node2.default.hash && _PriceBar_node2.default.hash !== "4a2e7a54397986a901a103fbbf554c4e" && console.error("The definition of 'PriceBar_node' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _PriceBar_node2.default), nodeKey);
19
19
  const [visible, setVisible] = (0, _react.useState)(false);
20
20
  const $pricebar = (0, _react.useRef)(null);
21
21
  (0, _react.useEffect)(() => {
@@ -12,11 +12,11 @@ var _productState_sku2 = _interopRequireDefault(require("../../__generated__/pro
12
12
  var _reactRelay = require("react-relay");
13
13
  var _utils = require("../../utils");
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
- _productState_sku2.default.hash && _productState_sku2.default.hash !== "2cee6ddddc85699f0c90e2607c0634ef" && console.error("The definition of 'productState_sku' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _productState_sku;
16
- _productState_collection2.default.hash && _productState_collection2.default.hash !== "90e56933f956c6773c0958284de81884" && console.error("The definition of 'productState_collection' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _productState_collection;
17
- _productState_bundle2.default.hash && _productState_bundle2.default.hash !== "fa38bbc9f2062a727da4f5062b362054" && console.error("The definition of 'productState_bundle' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _productState_bundle;
18
- _productState_node2.default.hash && _productState_node2.default.hash !== "aab1ef07e0192a0d22a4c300084d9d05" && console.error("The definition of 'productState_node' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _productState_node;
19
- const query = (_productState_Query2.default.hash && _productState_Query2.default.hash !== "ac3292bae9a274139d5a525fd0162711" && console.error("The definition of 'productState_Query' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _productState_Query);
15
+ _productState_sku2.default.hash && _productState_sku2.default.hash !== "2cee6ddddc85699f0c90e2607c0634ef" && console.error("The definition of 'productState_sku' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _productState_sku2.default;
16
+ _productState_collection2.default.hash && _productState_collection2.default.hash !== "90e56933f956c6773c0958284de81884" && console.error("The definition of 'productState_collection' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _productState_collection2.default;
17
+ _productState_bundle2.default.hash && _productState_bundle2.default.hash !== "fa38bbc9f2062a727da4f5062b362054" && console.error("The definition of 'productState_bundle' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _productState_bundle2.default;
18
+ _productState_node2.default.hash && _productState_node2.default.hash !== "aab1ef07e0192a0d22a4c300084d9d05" && console.error("The definition of 'productState_node' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _productState_node2.default;
19
+ const query = (_productState_Query2.default.hash && _productState_Query2.default.hash !== "ac3292bae9a274139d5a525fd0162711" && console.error("The definition of 'productState_Query' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _productState_Query2.default);
20
20
  const populateProductState = (store, environment, id) => {
21
21
  const existingState = store.getState().fetchedCollectionIds;
22
22
  if (existingState && existingState.indexOf(id) >= 0) return;
@@ -35,7 +35,7 @@ function SKUPrice(_ref) {
35
35
  ...rest
36
36
  } = _ref;
37
37
  const [isPending, startTransition] = (0, _react.useTransition)();
38
- const [sku, refetch] = (0, _reactRelay.useRefetchableFragment)((_SKUPrice_sku2.default.hash && _SKUPrice_sku2.default.hash !== "9792a6074c64fb4bb018e42df5045514" && console.error("The definition of 'SKUPrice_sku' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _SKUPrice_sku), skuKey);
38
+ const [sku, refetch] = (0, _reactRelay.useRefetchableFragment)((_SKUPrice_sku2.default.hash && _SKUPrice_sku2.default.hash !== "9792a6074c64fb4bb018e42df5045514" && console.error("The definition of 'SKUPrice_sku' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _SKUPrice_sku2.default), skuKey);
39
39
  const selected = (0, _reactRedux.useSelector)((0, _reducer.isSelected)(sku.id));
40
40
  const savingsMultiplier = (0, _reactRedux.useSelector)(state => getSavingsMultiplier(state, {
41
41
  showCollectionSavings,
@@ -52,7 +52,7 @@ function SelectButton(_ref2) {
52
52
  sku: skuKey,
53
53
  ...rest
54
54
  } = _ref2;
55
- const sku = (0, _reactRelay.useFragment)((_SelectButton_sku2.default.hash && _SelectButton_sku2.default.hash !== "f4052dc18c36cb8486c8ac985820a108" && console.error("The definition of 'SelectButton_sku' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _SelectButton_sku), skuKey);
55
+ const sku = (0, _reactRelay.useFragment)((_SelectButton_sku2.default.hash && _SelectButton_sku2.default.hash !== "f4052dc18c36cb8486c8ac985820a108" && console.error("The definition of 'SelectButton_sku' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _SelectButton_sku2.default), skuKey);
56
56
  const dispatch = (0, _reactRedux.useDispatch)();
57
57
  const components = (0, _react.useContext)(_ComponentsContext.default);
58
58
  const ButtonComponent = components.SelectButton || DefaultSelectButton;