fontdue-js 2.8.0 → 2.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__generated__/AddToCartBannerQuery.graphql.d.ts +2 -2
- package/dist/__generated__/AddToCartBannerQuery.graphql.js +1 -1
- package/dist/__generated__/CartButtonQuery.graphql.d.ts +2 -2
- package/dist/__generated__/CartButtonQuery.graphql.js +1 -1
- package/dist/__generated__/CartOrderCompleteOrderMutation.graphql.d.ts +2 -2
- package/dist/__generated__/CartOrderCompleteOrderMutation.graphql.js +1 -1
- package/dist/__generated__/CartOrderRemoveDiscountMutation.graphql.d.ts +2 -2
- package/dist/__generated__/CartOrderRemoveDiscountMutation.graphql.js +1 -1
- package/dist/__generated__/CartQuery.graphql.d.ts +2 -2
- package/dist/__generated__/CartQuery.graphql.js +1 -1
- package/dist/__generated__/CartStateRemoveDiscountMutation.graphql.d.ts +2 -2
- package/dist/__generated__/CartStateRemoveDiscountMutation.graphql.js +1 -1
- package/dist/__generated__/NewsletterSignupQuery.graphql.d.ts +2 -2
- package/dist/__generated__/NewsletterSignupQuery.graphql.js +1 -1
- package/dist/__generated__/PriceBarSection_node.graphql.d.ts +1 -1
- package/dist/__generated__/PriceBarSection_node.graphql.js +5 -2
- package/dist/__generated__/SKUPrice_sku.graphql.d.ts +1 -1
- package/dist/__generated__/SKUPrice_sku.graphql.js +5 -2
- package/dist/__generated__/StoreModalCartQuery.graphql.d.ts +2 -2
- package/dist/__generated__/StoreModalCartQuery.graphql.js +1 -1
- package/dist/__generated__/StoreModalCheckoutQuery.graphql.d.ts +2 -2
- package/dist/__generated__/StoreModalCheckoutQuery.graphql.js +1 -1
- package/dist/__generated__/StoreModalContainerQuery.graphql.d.ts +2 -2
- package/dist/__generated__/StoreModalContainerQuery.graphql.js +1 -1
- package/dist/__generated__/StoreModalReviewCompleteOrderMutation.graphql.d.ts +2 -2
- package/dist/__generated__/StoreModalReviewCompleteOrderMutation.graphql.js +1 -1
- package/dist/__generated__/StoreModalReviewQuery.graphql.d.ts +2 -2
- package/dist/__generated__/StoreModalReviewQuery.graphql.js +1 -1
- package/dist/__generated__/TestFontsForm_Query.graphql.d.ts +2 -2
- package/dist/__generated__/TestFontsForm_Query.graphql.js +1 -1
- package/dist/__generated__/TestModeBannerQuery.graphql.d.ts +2 -2
- package/dist/__generated__/TestModeBannerQuery.graphql.js +1 -1
- package/dist/__generated__/ThemeConfigQuery.graphql.d.ts +2 -2
- package/dist/__generated__/ThemeConfigQuery.graphql.js +1 -1
- package/dist/components/AddToCartBanner/index.js +3 -3
- package/dist/components/BuyButton/index.js +3 -3
- package/dist/components/Cart/AddressFields.js +1 -1
- package/dist/components/Cart/CartItem/index.js +5 -5
- package/dist/components/Cart/CartOrder.js +6 -6
- package/dist/components/Cart/CartState.js +3 -3
- package/dist/components/Cart/CartTotals.js +1 -1
- package/dist/components/Cart/Checkout.js +6 -6
- package/dist/components/Cart/CouponCodeInput.js +2 -2
- package/dist/components/Cart/Download.js +2 -2
- package/dist/components/Cart/IdentityBox.js +1 -1
- package/dist/components/Cart/index.js +1 -1
- package/dist/components/CartButton/index.js +3 -3
- package/dist/components/CharacterViewer/index.js +4 -4
- package/dist/components/CollectionAa/index.js +2 -2
- package/dist/components/CouponText/index.js +1 -1
- package/dist/components/CustomerLoginForm/index.js +1 -1
- package/dist/components/Family/FamilyList.js +1 -1
- package/dist/components/Family/index.js +1 -1
- package/dist/components/FontFamilies/index.js +1 -1
- package/dist/components/FontStyle/index.js +1 -1
- package/dist/components/NewsletterSignup/index.js +2 -2
- package/dist/components/NodePasswordForm/index.js +1 -1
- package/dist/components/Precart/License.js +1 -1
- package/dist/components/Precart/index.js +5 -5
- package/dist/components/Price/index.js +1 -1
- package/dist/components/PriceBar/PriceBarSection.js +1 -1
- package/dist/components/PriceBar/index.js +1 -1
- package/dist/components/Root/productState.js +5 -5
- package/dist/components/SKUPrice/index.js +1 -1
- package/dist/components/SelectButton/index.js +1 -1
- package/dist/components/SpecimenLink/index.js +1 -1
- package/dist/components/StoreModal/StoreModalBundleButton.js +1 -1
- package/dist/components/StoreModal/StoreModalCart.js +1 -1
- package/dist/components/StoreModal/StoreModalCheckout.js +1 -1
- package/dist/components/StoreModal/StoreModalContainer.js +1 -1
- package/dist/components/StoreModal/StoreModalDownload.js +2 -2
- package/dist/components/StoreModal/StoreModalFamily.js +1 -1
- package/dist/components/StoreModal/StoreModalFamilyButton.js +1 -1
- package/dist/components/StoreModal/StoreModalIndex.js +1 -1
- package/dist/components/StoreModal/StoreModalIndexItem.js +1 -1
- package/dist/components/StoreModal/StoreModalProduct.js +1 -1
- package/dist/components/StoreModal/StoreModalReview.js +5 -5
- package/dist/components/StoreModal/StoreModalReviewIdentity.js +1 -1
- package/dist/components/StoreModal/StoreModalStyleButton.js +1 -1
- package/dist/components/StoreModalProductLicenseSelection/StoreModalProductLicense.js +1 -1
- package/dist/components/StoreModalProductLicenseSelection/index.js +1 -1
- package/dist/components/StoreModalProductSummary/index.js +3 -3
- package/dist/components/StripeProvider/index.js +1 -1
- package/dist/components/TestFontsForm/index.js +2 -2
- package/dist/components/TestModeBanner/index.js +1 -1
- package/dist/components/ThemeConfig/index.js +1 -1
- package/dist/components/TypeTester/TypeTesterFeatures.js +1 -1
- package/dist/components/TypeTester/TypeTesterFeaturesButton.js +1 -1
- package/dist/components/TypeTester/TypeTesterFloatingToolbar.js +1 -1
- package/dist/components/TypeTester/TypeTesterStandalone.js +1 -1
- package/dist/components/TypeTester/TypeTesterStyleSelectData.js +3 -3
- package/dist/components/TypeTester/TypeTesterToolbar.js +1 -1
- package/dist/components/TypeTester/TypeTesterVariableAxes.js +1 -1
- package/dist/components/TypeTester/index.js +4 -4
- package/dist/components/TypeTester/useFeaturesData.js +1 -1
- package/dist/components/TypeTesters/index.js +4 -4
- package/dist/components/VariableTableAmounts/index.js +2 -2
- package/dist/components/useTotalStyles.js +1 -1
- package/package.json +9 -8
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @generated SignedSource<<
|
|
2
|
+
* @generated SignedSource<<d8970814d6b45958daaab629971444ad>>
|
|
3
3
|
* @lightSyntaxTransform
|
|
4
4
|
* @nogrep
|
|
5
5
|
*/
|
|
6
6
|
import { ConcreteRequest } from 'relay-runtime';
|
|
7
7
|
import { FragmentRefs } from "relay-runtime";
|
|
8
|
-
export type AddToCartBannerQuery$variables =
|
|
8
|
+
export type AddToCartBannerQuery$variables = Record<PropertyKey, never>;
|
|
9
9
|
export type AddToCartBannerQuery$data = {
|
|
10
10
|
readonly viewer: {
|
|
11
11
|
readonly currentOrder: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @generated SignedSource<<
|
|
2
|
+
* @generated SignedSource<<a7c3008bc89d43d0d2b0f70ce1cb97ea>>
|
|
3
3
|
* @lightSyntaxTransform
|
|
4
4
|
* @nogrep
|
|
5
5
|
*/
|
|
6
6
|
import { ConcreteRequest } from 'relay-runtime';
|
|
7
7
|
import { FragmentRefs } from "relay-runtime";
|
|
8
|
-
export type CartButtonQuery$variables =
|
|
8
|
+
export type CartButtonQuery$variables = Record<PropertyKey, never>;
|
|
9
9
|
export type CartButtonQuery$data = {
|
|
10
10
|
readonly viewer: {
|
|
11
11
|
readonly currentOrder: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @generated SignedSource<<
|
|
2
|
+
* @generated SignedSource<<cbeb785a929d69c56ca0027c1d455e2d>>
|
|
3
3
|
* @lightSyntaxTransform
|
|
4
4
|
* @nogrep
|
|
5
5
|
*/
|
|
6
6
|
import { ConcreteRequest } from 'relay-runtime';
|
|
7
7
|
import { FragmentRefs } from "relay-runtime";
|
|
8
|
-
export type CartOrderCompleteOrderMutation$variables =
|
|
8
|
+
export type CartOrderCompleteOrderMutation$variables = Record<PropertyKey, never>;
|
|
9
9
|
export type CartOrderCompleteOrderMutation$data = {
|
|
10
10
|
readonly completeOrder: {
|
|
11
11
|
readonly order: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @generated SignedSource<<
|
|
2
|
+
* @generated SignedSource<<34f249c8582eb796163e3bba2138617f>>
|
|
3
3
|
* @lightSyntaxTransform
|
|
4
4
|
* @nogrep
|
|
5
5
|
*/
|
|
6
6
|
import { ConcreteRequest } from 'relay-runtime';
|
|
7
7
|
import { FragmentRefs } from "relay-runtime";
|
|
8
|
-
export type CartOrderRemoveDiscountMutation$variables =
|
|
8
|
+
export type CartOrderRemoveDiscountMutation$variables = Record<PropertyKey, never>;
|
|
9
9
|
export type CartOrderRemoveDiscountMutation$data = {
|
|
10
10
|
readonly removeDiscount: {
|
|
11
11
|
readonly order: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @generated SignedSource<<
|
|
2
|
+
* @generated SignedSource<<c1b452429023f07bc1d41c170bd624b6>>
|
|
3
3
|
* @lightSyntaxTransform
|
|
4
4
|
* @nogrep
|
|
5
5
|
*/
|
|
6
6
|
import { ConcreteRequest } from 'relay-runtime';
|
|
7
7
|
import { FragmentRefs } from "relay-runtime";
|
|
8
|
-
export type CartQuery$variables =
|
|
8
|
+
export type CartQuery$variables = Record<PropertyKey, never>;
|
|
9
9
|
export type CartQuery$data = {
|
|
10
10
|
readonly viewer: {
|
|
11
11
|
readonly currentOrder: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @generated SignedSource<<
|
|
2
|
+
* @generated SignedSource<<24fc9ae27eef22cddb40df2c90a60f33>>
|
|
3
3
|
* @lightSyntaxTransform
|
|
4
4
|
* @nogrep
|
|
5
5
|
*/
|
|
6
6
|
import { ConcreteRequest } from 'relay-runtime';
|
|
7
7
|
import { FragmentRefs } from "relay-runtime";
|
|
8
|
-
export type CartStateRemoveDiscountMutation$variables =
|
|
8
|
+
export type CartStateRemoveDiscountMutation$variables = Record<PropertyKey, never>;
|
|
9
9
|
export type CartStateRemoveDiscountMutation$data = {
|
|
10
10
|
readonly removeDiscount: {
|
|
11
11
|
readonly order: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @generated SignedSource<<
|
|
2
|
+
* @generated SignedSource<<26dba381269a0e7a5d2c9e379368edee>>
|
|
3
3
|
* @lightSyntaxTransform
|
|
4
4
|
* @nogrep
|
|
5
5
|
*/
|
|
6
6
|
import { ConcreteRequest } from 'relay-runtime';
|
|
7
|
-
export type NewsletterSignupQuery$variables =
|
|
7
|
+
export type NewsletterSignupQuery$variables = Record<PropertyKey, never>;
|
|
8
8
|
export type NewsletterSignupQuery$data = {
|
|
9
9
|
readonly viewer: {
|
|
10
10
|
readonly settings: {
|
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
var _PriceBarSectionRefetchQuery = _interopRequireDefault(require("./PriceBarSectionRefetchQuery.graphql"));
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
9
|
/**
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<d2a50b49607b72fe3f154562001ab7ff>>
|
|
11
11
|
* @lightSyntaxTransform
|
|
12
12
|
* @nogrep
|
|
13
13
|
*/
|
|
@@ -46,7 +46,10 @@ const node = function () {
|
|
|
46
46
|
"connection": null,
|
|
47
47
|
"fragmentPathInResult": ["node"],
|
|
48
48
|
"operation": _PriceBarSectionRefetchQuery.default,
|
|
49
|
-
"
|
|
49
|
+
"identifierInfo": {
|
|
50
|
+
"identifierField": "id",
|
|
51
|
+
"identifierQueryVariableName": "id"
|
|
52
|
+
}
|
|
50
53
|
}
|
|
51
54
|
},
|
|
52
55
|
"name": "PriceBarSection_node",
|
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
var _SKUPriceRefetchQuery = _interopRequireDefault(require("./SKUPriceRefetchQuery.graphql"));
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
9
|
/**
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<53fb64c3e41ccf434fb87cd7c83ec615>>
|
|
11
11
|
* @lightSyntaxTransform
|
|
12
12
|
* @nogrep
|
|
13
13
|
*/
|
|
@@ -28,7 +28,10 @@ const node = {
|
|
|
28
28
|
"connection": null,
|
|
29
29
|
"fragmentPathInResult": ["node"],
|
|
30
30
|
"operation": _SKUPriceRefetchQuery.default,
|
|
31
|
-
"
|
|
31
|
+
"identifierInfo": {
|
|
32
|
+
"identifierField": "id",
|
|
33
|
+
"identifierQueryVariableName": "id"
|
|
34
|
+
}
|
|
32
35
|
}
|
|
33
36
|
},
|
|
34
37
|
"name": "SKUPrice_sku",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @generated SignedSource<<
|
|
2
|
+
* @generated SignedSource<<2782a8057e68d48e5e233ee4d9a39bc5>>
|
|
3
3
|
* @lightSyntaxTransform
|
|
4
4
|
* @nogrep
|
|
5
5
|
*/
|
|
6
6
|
import { ConcreteRequest } from 'relay-runtime';
|
|
7
7
|
import { FragmentRefs } from "relay-runtime";
|
|
8
|
-
export type StoreModalCartQuery$variables =
|
|
8
|
+
export type StoreModalCartQuery$variables = Record<PropertyKey, never>;
|
|
9
9
|
export type StoreModalCartQuery$data = {
|
|
10
10
|
readonly viewer: {
|
|
11
11
|
readonly currentOrder: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @generated SignedSource<<
|
|
2
|
+
* @generated SignedSource<<425c1bce1742f7da77909500507e8693>>
|
|
3
3
|
* @lightSyntaxTransform
|
|
4
4
|
* @nogrep
|
|
5
5
|
*/
|
|
6
6
|
import { ConcreteRequest } from 'relay-runtime';
|
|
7
7
|
import { FragmentRefs } from "relay-runtime";
|
|
8
|
-
export type StoreModalCheckoutQuery$variables =
|
|
8
|
+
export type StoreModalCheckoutQuery$variables = Record<PropertyKey, never>;
|
|
9
9
|
export type StoreModalCheckoutQuery$data = {
|
|
10
10
|
readonly viewer: {
|
|
11
11
|
readonly currentOrder: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @generated SignedSource<<
|
|
2
|
+
* @generated SignedSource<<4aa496df81ae15d2b1b8e57b5ee82f8c>>
|
|
3
3
|
* @lightSyntaxTransform
|
|
4
4
|
* @nogrep
|
|
5
5
|
*/
|
|
6
6
|
import { ConcreteRequest } from 'relay-runtime';
|
|
7
|
-
export type StoreModalContainerQuery$variables =
|
|
7
|
+
export type StoreModalContainerQuery$variables = Record<PropertyKey, never>;
|
|
8
8
|
export type StoreModalContainerQuery$data = {
|
|
9
9
|
readonly viewer: {
|
|
10
10
|
readonly currentOrder: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @generated SignedSource<<
|
|
2
|
+
* @generated SignedSource<<1e18b0c1ead1199ebfc3f3fb458a79bf>>
|
|
3
3
|
* @lightSyntaxTransform
|
|
4
4
|
* @nogrep
|
|
5
5
|
*/
|
|
6
6
|
import { ConcreteRequest } from 'relay-runtime';
|
|
7
7
|
import { FragmentRefs } from "relay-runtime";
|
|
8
|
-
export type StoreModalReviewCompleteOrderMutation$variables =
|
|
8
|
+
export type StoreModalReviewCompleteOrderMutation$variables = Record<PropertyKey, never>;
|
|
9
9
|
export type StoreModalReviewCompleteOrderMutation$data = {
|
|
10
10
|
readonly completeOrder: {
|
|
11
11
|
readonly order: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @generated SignedSource<<
|
|
2
|
+
* @generated SignedSource<<a1212338bc04868aa8f38a6fdde9c158>>
|
|
3
3
|
* @lightSyntaxTransform
|
|
4
4
|
* @nogrep
|
|
5
5
|
*/
|
|
6
6
|
import { ConcreteRequest } from 'relay-runtime';
|
|
7
7
|
import { FragmentRefs } from "relay-runtime";
|
|
8
|
-
export type StoreModalReviewQuery$variables =
|
|
8
|
+
export type StoreModalReviewQuery$variables = Record<PropertyKey, never>;
|
|
9
9
|
export type StoreModalReviewQuery$data = {
|
|
10
10
|
readonly viewer: {
|
|
11
11
|
readonly currentOrder: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @generated SignedSource<<
|
|
2
|
+
* @generated SignedSource<<f938c6778c8634d7b693481498f099c6>>
|
|
3
3
|
* @lightSyntaxTransform
|
|
4
4
|
* @nogrep
|
|
5
5
|
*/
|
|
6
6
|
import { ConcreteRequest } from 'relay-runtime';
|
|
7
|
-
export type TestFontsForm_Query$variables =
|
|
7
|
+
export type TestFontsForm_Query$variables = Record<PropertyKey, never>;
|
|
8
8
|
export type TestFontsForm_Query$data = {
|
|
9
9
|
readonly viewer: {
|
|
10
10
|
readonly settings: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @generated SignedSource<<
|
|
2
|
+
* @generated SignedSource<<f6cfa46ddcfb4ef0838d894753924f32>>
|
|
3
3
|
* @lightSyntaxTransform
|
|
4
4
|
* @nogrep
|
|
5
5
|
*/
|
|
6
6
|
import { ConcreteRequest } from 'relay-runtime';
|
|
7
|
-
export type TestModeBannerQuery$variables =
|
|
7
|
+
export type TestModeBannerQuery$variables = Record<PropertyKey, never>;
|
|
8
8
|
export type TestModeBannerQuery$data = {
|
|
9
9
|
readonly viewer: {
|
|
10
10
|
readonly adminUser: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @generated SignedSource<<
|
|
2
|
+
* @generated SignedSource<<b25ec21780300a3d13201167da46e52c>>
|
|
3
3
|
* @lightSyntaxTransform
|
|
4
4
|
* @nogrep
|
|
5
5
|
*/
|
|
6
6
|
import { ConcreteRequest } from 'relay-runtime';
|
|
7
|
-
export type ThemeConfigQuery$variables =
|
|
7
|
+
export type ThemeConfigQuery$variables = Record<PropertyKey, never>;
|
|
8
8
|
export type ThemeConfigQuery$data = {
|
|
9
9
|
readonly viewer: {
|
|
10
10
|
readonly themeConfig: {
|
|
@@ -24,13 +24,13 @@ const getOrderItemName = item => {
|
|
|
24
24
|
if ('name' in product) return product.name;
|
|
25
25
|
return null;
|
|
26
26
|
};
|
|
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."),
|
|
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_item2.default;
|
|
28
28
|
function AddToCartBanner(_ref) {
|
|
29
29
|
var _order$orderItems, _order$orderItems2;
|
|
30
30
|
let {
|
|
31
31
|
order: orderKey
|
|
32
32
|
} = _ref;
|
|
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."),
|
|
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_order2.default), orderKey);
|
|
34
34
|
const [active, setActive] = (0, _react.useState)(false);
|
|
35
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));
|
|
36
36
|
const newOrderItemIds = (0, _react.useRef)([]);
|
|
@@ -72,7 +72,7 @@ function AddToCartBanner(_ref) {
|
|
|
72
72
|
function AddToCartBannerQueryRenderer() {
|
|
73
73
|
const {
|
|
74
74
|
viewer
|
|
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."),
|
|
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."), _AddToCartBannerQuery2.default), {});
|
|
76
76
|
return /*#__PURE__*/_react.default.createElement(AddToCartBanner, {
|
|
77
77
|
order: viewer.currentOrder
|
|
78
78
|
});
|
|
@@ -26,7 +26,7 @@ function BuyButtonComponent(_ref) {
|
|
|
26
26
|
label,
|
|
27
27
|
collectionName
|
|
28
28
|
} = _ref;
|
|
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."),
|
|
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_collection2.default), collectionKey);
|
|
30
30
|
const store = (0, _reactRedux.useStore)();
|
|
31
31
|
const components = (0, _react.useContext)(_ComponentsContext.default);
|
|
32
32
|
const dispatch = (0, _reactRedux.useDispatch)();
|
|
@@ -64,7 +64,7 @@ function BuyButtonComponent(_ref) {
|
|
|
64
64
|
type: "button"
|
|
65
65
|
}, label ? label : `Buy ${collectionName ?? ''}`);
|
|
66
66
|
}
|
|
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."),
|
|
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."), _BuyButtonIDQuery2.default);
|
|
68
68
|
function BuyButtonIDQueryRenderer(_ref2) {
|
|
69
69
|
let {
|
|
70
70
|
collectionId,
|
|
@@ -84,7 +84,7 @@ function BuyButtonPreloadedIDQueryRenderer(_ref3) {
|
|
|
84
84
|
const data = (0, _reactRelay.usePreloadedQuery)(idQuery, queryRef);
|
|
85
85
|
return /*#__PURE__*/_react.default.createElement(BuyButtonComponent, _extends({}, rest, data));
|
|
86
86
|
}
|
|
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."),
|
|
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."), _BuyButtonSlugQuery2.default);
|
|
88
88
|
function BuyButtonSlugQueryRenderer(_ref4) {
|
|
89
89
|
var _data$viewer, _data$viewer$slug;
|
|
90
90
|
let {
|
|
@@ -31,7 +31,7 @@ const AddressFields = _ref => {
|
|
|
31
31
|
onRequiredFieldsChange
|
|
32
32
|
} = _ref;
|
|
33
33
|
const [refetching, setRefetching] = (0, _react.useState)(false);
|
|
34
|
-
const [viewer, refetch] = (0, _reactRelay.useRefetchableFragment)((_AddressFields_viewer2.default.hash && _AddressFields_viewer2.default.hash !== "6918328bf81519373ac576a147dbfd62" && console.error("The definition of 'AddressFields_viewer' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
34
|
+
const [viewer, refetch] = (0, _reactRelay.useRefetchableFragment)((_AddressFields_viewer2.default.hash && _AddressFields_viewer2.default.hash !== "6918328bf81519373ac576a147dbfd62" && console.error("The definition of 'AddressFields_viewer' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _AddressFields_viewer2.default), viewerKey);
|
|
35
35
|
const countryData = (_viewer$countryData = viewer.countryData) === null || _viewer$countryData === void 0 ? void 0 : _viewer$countryData.response;
|
|
36
36
|
const environment = (0, _reactRelay.useRelayEnvironment)();
|
|
37
37
|
(0, _react.useEffect)(() => {
|
|
@@ -256,7 +256,7 @@ function CartItem(_ref10) {
|
|
|
256
256
|
node: nodeKey,
|
|
257
257
|
onChange
|
|
258
258
|
} = _ref10;
|
|
259
|
-
const node = (0, _reactRelay.useFragment)((_CartItem_node2.default.hash && _CartItem_node2.default.hash !== "8db972f6d8b84100198d9e31bdb3071a" && console.error("The definition of 'CartItem_node' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
259
|
+
const node = (0, _reactRelay.useFragment)((_CartItem_node2.default.hash && _CartItem_node2.default.hash !== "8db972f6d8b84100198d9e31bdb3071a" && console.error("The definition of 'CartItem_node' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartItem_node2.default), nodeKey);
|
|
260
260
|
const [closeButtonIsHovered, setCloseButtonIsHovered] = (0, _react.useState)(false);
|
|
261
261
|
const closeButtonMouseEnter = () => {
|
|
262
262
|
setCloseButtonIsHovered(true);
|
|
@@ -309,7 +309,7 @@ function CartItem(_ref10) {
|
|
|
309
309
|
onAddLicense: license => onChange(inputFromLicenseAddition(node, license))
|
|
310
310
|
}));
|
|
311
311
|
}
|
|
312
|
-
_CartItem_license2.default.hash && _CartItem_license2.default.hash !== "3d3c0b942c4cb8683b41bb52ab637339" && console.error("The definition of 'CartItem_license' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
313
|
-
_CartItem_variable2.default.hash && _CartItem_variable2.default.hash !== "3e4dbfb04637c3535a85a0b920aa148b" && console.error("The definition of 'CartItem_variable' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
314
|
-
_CartItem_licenseSelection2.default.hash && _CartItem_licenseSelection2.default.hash !== "623e900c36a5bb9ad347ddcad84598e3" && console.error("The definition of 'CartItem_licenseSelection' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
315
|
-
_CartItem_product2.default.hash && _CartItem_product2.default.hash !== "228788dc0026bbd807c5e299620953c0" && console.error("The definition of 'CartItem_product' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
312
|
+
_CartItem_license2.default.hash && _CartItem_license2.default.hash !== "3d3c0b942c4cb8683b41bb52ab637339" && console.error("The definition of 'CartItem_license' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartItem_license2.default;
|
|
313
|
+
_CartItem_variable2.default.hash && _CartItem_variable2.default.hash !== "3e4dbfb04637c3535a85a0b920aa148b" && console.error("The definition of 'CartItem_variable' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartItem_variable2.default;
|
|
314
|
+
_CartItem_licenseSelection2.default.hash && _CartItem_licenseSelection2.default.hash !== "623e900c36a5bb9ad347ddcad84598e3" && console.error("The definition of 'CartItem_licenseSelection' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartItem_licenseSelection2.default;
|
|
315
|
+
_CartItem_product2.default.hash && _CartItem_product2.default.hash !== "228788dc0026bbd807c5e299620953c0" && console.error("The definition of 'CartItem_product' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartItem_product2.default;
|
|
@@ -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."),
|
|
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."),
|
|
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."),
|
|
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."),
|
|
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."),
|
|
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."),
|
|
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."),
|
|
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."),
|
|
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."),
|
|
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."),
|
|
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),
|