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.
- package/CHANGELOG.md +8 -0
- 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 -6
- package/dist/__generated__/TestModeBannerQuery.graphql.js +18 -40
- 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/StyleSelect.d.ts +29 -0
- package/dist/components/CharacterViewer/StyleSelect.js +71 -0
- 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/FontdueProvider/index.server.js +3 -3
- 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/Switch/index.d.ts +1 -0
- package/dist/components/Switch/index.js +7 -0
- package/dist/components/TestFontsForm/index.js +2 -2
- package/dist/components/TestModeBanner/index.d.ts +0 -5
- package/dist/components/TestModeBanner/index.js +5 -28
- 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
|
@@ -16,7 +16,7 @@ const SpecimenLink = _ref => {
|
|
|
16
16
|
} = _ref;
|
|
17
17
|
const {
|
|
18
18
|
node
|
|
19
|
-
} = (0, _reactRelay.useLazyLoadQuery)((_SpecimenLinkQuery2.default.hash && _SpecimenLinkQuery2.default.hash !== "a718e7ed92035c4bbebafc13d037fa6c" && console.error("The definition of 'SpecimenLinkQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
19
|
+
} = (0, _reactRelay.useLazyLoadQuery)((_SpecimenLinkQuery2.default.hash && _SpecimenLinkQuery2.default.hash !== "a718e7ed92035c4bbebafc13d037fa6c" && console.error("The definition of 'SpecimenLinkQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _SpecimenLinkQuery2.default), {
|
|
20
20
|
collectionId
|
|
21
21
|
});
|
|
22
22
|
const pdf = node === null || node === void 0 ? void 0 : (_node$pdfs = node.pdfs) === null || _node$pdfs === void 0 ? void 0 : _node$pdfs[0];
|
|
@@ -23,7 +23,7 @@ function StoreModalBundleButton(_ref) {
|
|
|
23
23
|
onSelectSku,
|
|
24
24
|
...rest
|
|
25
25
|
} = _ref;
|
|
26
|
-
const bundle = (0, _reactRelay.useFragment)((_StoreModalBundleButton_bundle2.default.hash && _StoreModalBundleButton_bundle2.default.hash !== "ee0ac316afd75a7809c894aaa47ffbc3" && console.error("The definition of 'StoreModalBundleButton_bundle' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
26
|
+
const bundle = (0, _reactRelay.useFragment)((_StoreModalBundleButton_bundle2.default.hash && _StoreModalBundleButton_bundle2.default.hash !== "ee0ac316afd75a7809c894aaa47ffbc3" && console.error("The definition of 'StoreModalBundleButton_bundle' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalBundleButton_bundle2.default), bundleKey);
|
|
27
27
|
const selected = (0, _reactRedux.useSelector)((0, _reducer.isSelected)((bundle === null || bundle === void 0 ? void 0 : (_bundle$sku = bundle.sku) === null || _bundle$sku === void 0 ? void 0 : _bundle$sku.id) ?? null));
|
|
28
28
|
if (!bundle.sku || !bundle.fontStyles) return null;
|
|
29
29
|
const handleSelect = () => {
|
|
@@ -24,7 +24,7 @@ const StoreModalCart = _ref => {
|
|
|
24
24
|
let {
|
|
25
25
|
prepared
|
|
26
26
|
} = _ref;
|
|
27
|
-
const data = (0, _reactRelay.usePreloadedQuery)((_StoreModalCartQuery2.default.hash && _StoreModalCartQuery2.default.hash !== "c2a74cf58c190aae40a36ad75c88bbfb" && console.error("The definition of 'StoreModalCartQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
27
|
+
const data = (0, _reactRelay.usePreloadedQuery)((_StoreModalCartQuery2.default.hash && _StoreModalCartQuery2.default.hash !== "c2a74cf58c190aae40a36ad75c88bbfb" && console.error("The definition of 'StoreModalCartQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalCartQuery2.default), prepared.cartQuery);
|
|
28
28
|
const dispatch = (0, _reactRedux.useDispatch)();
|
|
29
29
|
const order = data.viewer.currentOrder;
|
|
30
30
|
const canSkipCheckout = Boolean(order === null || order === void 0 ? void 0 : (_order$stripePaymentM = order.stripePaymentMethod) === null || _order$stripePaymentM === void 0 ? void 0 : _order$stripePaymentM.id);
|
|
@@ -19,7 +19,7 @@ const StoreModalCheckout = _ref => {
|
|
|
19
19
|
let {
|
|
20
20
|
prepared
|
|
21
21
|
} = _ref;
|
|
22
|
-
const data = (0, _reactRelay.usePreloadedQuery)((_StoreModalCheckoutQuery2.default.hash && _StoreModalCheckoutQuery2.default.hash !== "25edafb70407a579c912a9f078f65534" && console.error("The definition of 'StoreModalCheckoutQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
22
|
+
const data = (0, _reactRelay.usePreloadedQuery)((_StoreModalCheckoutQuery2.default.hash && _StoreModalCheckoutQuery2.default.hash !== "25edafb70407a579c912a9f078f65534" && console.error("The definition of 'StoreModalCheckoutQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalCheckoutQuery2.default), prepared.checkoutQuery);
|
|
23
23
|
const viewer = data.viewer;
|
|
24
24
|
const dispatch = (0, _reactRedux.useDispatch)();
|
|
25
25
|
const {
|
|
@@ -54,7 +54,7 @@ const StoreModalContainer = _ref => {
|
|
|
54
54
|
let {
|
|
55
55
|
children
|
|
56
56
|
} = _ref;
|
|
57
|
-
const data = (0, _reactRelay.useLazyLoadQuery)((_StoreModalContainerQuery2.default.hash && _StoreModalContainerQuery2.default.hash !== "dd4757b9238f5ae8689c7191b4abe64c" && console.error("The definition of 'StoreModalContainerQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
57
|
+
const data = (0, _reactRelay.useLazyLoadQuery)((_StoreModalContainerQuery2.default.hash && _StoreModalContainerQuery2.default.hash !== "dd4757b9238f5ae8689c7191b4abe64c" && console.error("The definition of 'StoreModalContainerQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalContainerQuery2.default), {});
|
|
58
58
|
const dispatch = (0, _reactRedux.useDispatch)();
|
|
59
59
|
const orderItemCount = ((_currentOrder = data.viewer.currentOrder) === null || _currentOrder === void 0 ? void 0 : (_currentOrder$orderIt = _currentOrder.orderItems) === null || _currentOrder$orderIt === void 0 ? void 0 : _currentOrder$orderIt.length) ?? 0;
|
|
60
60
|
const showCartButton = orderItemCount > 0;
|
|
@@ -34,6 +34,6 @@ const StoreModalDownload = _ref => {
|
|
|
34
34
|
});
|
|
35
35
|
};
|
|
36
36
|
var _default = (0, _reactRelay.createRefetchContainer)(StoreModalDownload, {
|
|
37
|
-
order: (_StoreModalDownload_order2.default.hash && _StoreModalDownload_order2.default.hash !== "089669cea2185d50b071a901cfd3b159" && console.error("The definition of 'StoreModalDownload_order' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
38
|
-
}, (_StoreModalDownloadRefetchQuery2.default.hash && _StoreModalDownloadRefetchQuery2.default.hash !== "f4bd85e641db0b1e20e780b7a0cdaf98" && console.error("The definition of 'StoreModalDownloadRefetchQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
37
|
+
order: (_StoreModalDownload_order2.default.hash && _StoreModalDownload_order2.default.hash !== "089669cea2185d50b071a901cfd3b159" && console.error("The definition of 'StoreModalDownload_order' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalDownload_order2.default)
|
|
38
|
+
}, (_StoreModalDownloadRefetchQuery2.default.hash && _StoreModalDownloadRefetchQuery2.default.hash !== "f4bd85e641db0b1e20e780b7a0cdaf98" && console.error("The definition of 'StoreModalDownloadRefetchQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalDownloadRefetchQuery2.default));
|
|
39
39
|
exports.default = _default;
|
|
@@ -37,7 +37,7 @@ function StoreModalFamily(_ref) {
|
|
|
37
37
|
onSelect,
|
|
38
38
|
title
|
|
39
39
|
} = _ref;
|
|
40
|
-
const collection = (0, _reactRelay.useFragment)((_StoreModalFamily_collection2.default.hash && _StoreModalFamily_collection2.default.hash !== "f0e4764ace2386cb64ef3f8d85128268" && console.error("The definition of 'StoreModalFamily_collection' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
40
|
+
const collection = (0, _reactRelay.useFragment)((_StoreModalFamily_collection2.default.hash && _StoreModalFamily_collection2.default.hash !== "f0e4764ace2386cb64ef3f8d85128268" && console.error("The definition of 'StoreModalFamily_collection' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalFamily_collection2.default), collectionKey);
|
|
41
41
|
const fontStyles = (0, _react.useMemo)(() => stylesGrouped(collection), [collection]);
|
|
42
42
|
if ((fontStyles === null || fontStyles === void 0 ? void 0 : fontStyles.length) === 0 && collection.collectionType === 'superfamily' && !collection.sku) return null;
|
|
43
43
|
return /*#__PURE__*/_react.default.createElement(_StoreModalFamily.default, null, {
|
|
@@ -31,7 +31,7 @@ function FamilyButton(_ref) {
|
|
|
31
31
|
onSelectSku,
|
|
32
32
|
...rest
|
|
33
33
|
} = _ref;
|
|
34
|
-
const collection = (0, _reactRelay.useFragment)((_StoreModalFamilyButton_collection2.default.hash && _StoreModalFamilyButton_collection2.default.hash !== "af94df77265f4ddfb0e661c8a591f89c" && console.error("The definition of 'StoreModalFamilyButton_collection' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
34
|
+
const collection = (0, _reactRelay.useFragment)((_StoreModalFamilyButton_collection2.default.hash && _StoreModalFamilyButton_collection2.default.hash !== "af94df77265f4ddfb0e661c8a591f89c" && console.error("The definition of 'StoreModalFamilyButton_collection' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalFamilyButton_collection2.default), collectionKey);
|
|
35
35
|
const selector = collection.sku ? (0, _reducer.isSelected)(collection.sku.id) : () => false;
|
|
36
36
|
const selected = (0, _reactRedux.useSelector)(selector);
|
|
37
37
|
const handleClick = () => {
|
|
@@ -15,7 +15,7 @@ const StoreModalIndex = _ref => {
|
|
|
15
15
|
let {
|
|
16
16
|
prepared
|
|
17
17
|
} = _ref;
|
|
18
|
-
const data = (0, _reactRelay.usePreloadedQuery)((_StoreModalIndexQuery2.default.hash && _StoreModalIndexQuery2.default.hash !== "300b462c41a951b4f94c4b8da7a6821f" && console.error("The definition of 'StoreModalIndexQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
18
|
+
const data = (0, _reactRelay.usePreloadedQuery)((_StoreModalIndexQuery2.default.hash && _StoreModalIndexQuery2.default.hash !== "300b462c41a951b4f94c4b8da7a6821f" && console.error("The definition of 'StoreModalIndexQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalIndexQuery2.default), prepared.indexQuery);
|
|
19
19
|
const viewer = data.viewer;
|
|
20
20
|
const edges = (viewer === null || viewer === void 0 ? void 0 : (_viewer$rootCollectio = viewer.rootCollections) === null || _viewer$rootCollectio === void 0 ? void 0 : _viewer$rootCollectio.edges) ?? [];
|
|
21
21
|
return /*#__PURE__*/_react.default.createElement(_StoreModalPageContainer.default, null, {
|
|
@@ -25,7 +25,7 @@ const StoreModalIndexItem = _ref => {
|
|
|
25
25
|
const {
|
|
26
26
|
storeModal: config
|
|
27
27
|
} = (0, _react.useContext)(_ConfigContext.default);
|
|
28
|
-
const data = (0, _reactRelay.useFragment)((_StoreModalIndexItem_fontCollection2.default.hash && _StoreModalIndexItem_fontCollection2.default.hash !== "3a41c729cade11bb541bc59a6b513d29" && console.error("The definition of 'StoreModalIndexItem_fontCollection' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
28
|
+
const data = (0, _reactRelay.useFragment)((_StoreModalIndexItem_fontCollection2.default.hash && _StoreModalIndexItem_fontCollection2.default.hash !== "3a41c729cade11bb541bc59a6b513d29" && console.error("The definition of 'StoreModalIndexItem_fontCollection' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalIndexItem_fontCollection2.default), collection);
|
|
29
29
|
const dispatch = (0, _reactRedux.useDispatch)();
|
|
30
30
|
const handleClickProduct = productId => {
|
|
31
31
|
dispatch({
|
|
@@ -23,7 +23,7 @@ const StoreModalProduct = _ref => {
|
|
|
23
23
|
prepared
|
|
24
24
|
} = _ref;
|
|
25
25
|
const config = (0, _react.useContext)(_ConfigContext.default);
|
|
26
|
-
const data = (0, _reactRelay.usePreloadedQuery)((_StoreModalProductQuery2.default.hash && _StoreModalProductQuery2.default.hash !== "d9a141adc8aa9c28676b0c311c79644d" && console.error("The definition of 'StoreModalProductQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
26
|
+
const data = (0, _reactRelay.usePreloadedQuery)((_StoreModalProductQuery2.default.hash && _StoreModalProductQuery2.default.hash !== "d9a141adc8aa9c28676b0c311c79644d" && console.error("The definition of 'StoreModalProductQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalProductQuery2.default), prepared.productQuery);
|
|
27
27
|
const {
|
|
28
28
|
collection,
|
|
29
29
|
viewer
|
|
@@ -36,16 +36,16 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
36
36
|
// want to reset the cart back to empty).
|
|
37
37
|
// but here we want to keep displaying the order that they
|
|
38
38
|
// just paid for
|
|
39
|
-
const submitCompleteMutation = (_StoreModalReviewCompleteOrderMutation2.default.hash && _StoreModalReviewCompleteOrderMutation2.default.hash !== "de20197df49deb030c473adbd9560e03" && console.error("The definition of 'StoreModalReviewCompleteOrderMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
40
|
-
const updateOrderMutation = (_StoreModalReviewUpdateOrderMutation2.default.hash && _StoreModalReviewUpdateOrderMutation2.default.hash !== "5ee297fdd5931c542d2f683651e54643" && console.error("The definition of 'StoreModalReviewUpdateOrderMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
39
|
+
const submitCompleteMutation = (_StoreModalReviewCompleteOrderMutation2.default.hash && _StoreModalReviewCompleteOrderMutation2.default.hash !== "de20197df49deb030c473adbd9560e03" && console.error("The definition of 'StoreModalReviewCompleteOrderMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalReviewCompleteOrderMutation2.default);
|
|
40
|
+
const updateOrderMutation = (_StoreModalReviewUpdateOrderMutation2.default.hash && _StoreModalReviewUpdateOrderMutation2.default.hash !== "5ee297fdd5931c542d2f683651e54643" && console.error("The definition of 'StoreModalReviewUpdateOrderMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalReviewUpdateOrderMutation2.default);
|
|
41
41
|
const StoreModalReview = _ref => {
|
|
42
42
|
var _order$stripePaymentI, _order$orderItems, _viewer$settings;
|
|
43
43
|
let {
|
|
44
44
|
viewer: viewerKey,
|
|
45
45
|
order: orderKey
|
|
46
46
|
} = _ref;
|
|
47
|
-
const order = (0, _reactRelay.useFragment)((_StoreModalReview_order2.default.hash && _StoreModalReview_order2.default.hash !== "0257d97d4d3f3a989cba19fb108f0e00" && console.error("The definition of 'StoreModalReview_order' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
48
|
-
const viewer = (0, _reactRelay.useFragment)((_StoreModalReview_viewer2.default.hash && _StoreModalReview_viewer2.default.hash !== "9136dd09437ff0102d8235b72b9b5c66" && console.error("The definition of 'StoreModalReview_viewer' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
47
|
+
const order = (0, _reactRelay.useFragment)((_StoreModalReview_order2.default.hash && _StoreModalReview_order2.default.hash !== "0257d97d4d3f3a989cba19fb108f0e00" && console.error("The definition of 'StoreModalReview_order' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalReview_order2.default), orderKey);
|
|
48
|
+
const viewer = (0, _reactRelay.useFragment)((_StoreModalReview_viewer2.default.hash && _StoreModalReview_viewer2.default.hash !== "9136dd09437ff0102d8235b72b9b5c66" && console.error("The definition of 'StoreModalReview_viewer' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalReview_viewer2.default), viewerKey);
|
|
49
49
|
const dispatch = (0, _reactRedux.useDispatch)();
|
|
50
50
|
const [completing, setCompleting] = (0, _react.useState)(false);
|
|
51
51
|
const [error, setError] = (0, _react.useState)(null);
|
|
@@ -209,7 +209,7 @@ const StoreModalReviewQueryContainer = _ref2 => {
|
|
|
209
209
|
let {
|
|
210
210
|
prepared
|
|
211
211
|
} = _ref2;
|
|
212
|
-
const data = (0, _reactRelay.usePreloadedQuery)((_StoreModalReviewQuery2.default.hash && _StoreModalReviewQuery2.default.hash !== "e0aed024d4a8ba04c42e455e63e8c373" && console.error("The definition of 'StoreModalReviewQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
212
|
+
const data = (0, _reactRelay.usePreloadedQuery)((_StoreModalReviewQuery2.default.hash && _StoreModalReviewQuery2.default.hash !== "e0aed024d4a8ba04c42e455e63e8c373" && console.error("The definition of 'StoreModalReviewQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalReviewQuery2.default), prepared.reviewQuery);
|
|
213
213
|
return /*#__PURE__*/_react.default.createElement(_StripeProvider.default, {
|
|
214
214
|
viewer: data.viewer
|
|
215
215
|
}, /*#__PURE__*/_react.default.createElement(StoreModalReview, {
|
|
@@ -14,6 +14,6 @@ function StoreModalReviewIdentity(_ref) {
|
|
|
14
14
|
let {
|
|
15
15
|
identity: identityKey
|
|
16
16
|
} = _ref;
|
|
17
|
-
const identity = (0, _reactRelay.useFragment)((_StoreModalReviewIdentity_identity2.default.hash && _StoreModalReviewIdentity_identity2.default.hash !== "4d800e664bc3400ca62ead178d97fb00" && console.error("The definition of 'StoreModalReviewIdentity_identity' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
17
|
+
const identity = (0, _reactRelay.useFragment)((_StoreModalReviewIdentity_identity2.default.hash && _StoreModalReviewIdentity_identity2.default.hash !== "4d800e664bc3400ca62ead178d97fb00" && console.error("The definition of 'StoreModalReviewIdentity_identity' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalReviewIdentity_identity2.default), identityKey);
|
|
18
18
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, identity.addressFormatted, /*#__PURE__*/_react.default.createElement("br", null), identity.email, /*#__PURE__*/_react.default.createElement("br", null), identity.phoneFormatted, identity.vatNumber && /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("br", null), "VAT: ", identity.vatNumber));
|
|
19
19
|
}
|
|
@@ -25,7 +25,7 @@ function StoreModalStyleButton(_ref) {
|
|
|
25
25
|
isVariableFont,
|
|
26
26
|
...rest
|
|
27
27
|
} = _ref;
|
|
28
|
-
const fontStyle = (0, _reactRelay.useFragment)((_StoreModalStyleButton_fontStyle2.default.hash && _StoreModalStyleButton_fontStyle2.default.hash !== "304b682b2f5ad1ead0c8652556185fe1" && console.error("The definition of 'StoreModalStyleButton_fontStyle' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
28
|
+
const fontStyle = (0, _reactRelay.useFragment)((_StoreModalStyleButton_fontStyle2.default.hash && _StoreModalStyleButton_fontStyle2.default.hash !== "304b682b2f5ad1ead0c8652556185fe1" && console.error("The definition of 'StoreModalStyleButton_fontStyle' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalStyleButton_fontStyle2.default), fontStyleKey);
|
|
29
29
|
const selected = (0, _reactRedux.useSelector)((0, _reducer.isSelected)(fontStyle.sku ? fontStyle.sku.id : fontStyle.id));
|
|
30
30
|
const handleSelect = () => {
|
|
31
31
|
if (!fontStyle.sku) return;
|
|
@@ -41,7 +41,7 @@ function StoreModalProduceLicense(_ref) {
|
|
|
41
41
|
let {
|
|
42
42
|
license: licenseKey
|
|
43
43
|
} = _ref;
|
|
44
|
-
const license = (0, _reactRelay.useFragment)((_StoreModalProductLicense_license2.default.hash && _StoreModalProductLicense_license2.default.hash !== "5729815aeedac2b8ea39eaab0a986b48" && console.error("The definition of 'StoreModalProductLicense_license' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
44
|
+
const license = (0, _reactRelay.useFragment)((_StoreModalProductLicense_license2.default.hash && _StoreModalProductLicense_license2.default.hash !== "5729815aeedac2b8ea39eaab0a986b48" && console.error("The definition of 'StoreModalProductLicense_license' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalProductLicense_license2.default), licenseKey);
|
|
45
45
|
const licenseOptions = (0, _reactRedux.useSelector)(state => state.licenseOptions);
|
|
46
46
|
const selectedOptions = licenseOptions.find(_ref2 => {
|
|
47
47
|
let {
|
|
@@ -15,7 +15,7 @@ function StoreModalProductLicenseSelection(_ref) {
|
|
|
15
15
|
let {
|
|
16
16
|
collection: collectionKey
|
|
17
17
|
} = _ref;
|
|
18
|
-
const collection = (0, _reactRelay.useFragment)((_StoreModalProductLicenseSelection_collection2.default.hash && _StoreModalProductLicenseSelection_collection2.default.hash !== "2767ff3f8ddb4354051074bc3d0312e6" && console.error("The definition of 'StoreModalProductLicenseSelection_collection' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
18
|
+
const collection = (0, _reactRelay.useFragment)((_StoreModalProductLicenseSelection_collection2.default.hash && _StoreModalProductLicenseSelection_collection2.default.hash !== "2767ff3f8ddb4354051074bc3d0312e6" && console.error("The definition of 'StoreModalProductLicenseSelection_collection' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalProductLicenseSelection_collection2.default), collectionKey);
|
|
19
19
|
return /*#__PURE__*/_react.default.createElement(_ContainerElement.default, null, {
|
|
20
20
|
title: 'Select licenses',
|
|
21
21
|
licenses: collection === null || collection === void 0 ? void 0 : (_collection$licenses = collection.licenses) === null || _collection$licenses === void 0 ? void 0 : _collection$licenses.map(license => license && /*#__PURE__*/_react.default.createElement(_StoreModalProductLicense.default, {
|
|
@@ -16,7 +16,7 @@ var _utils = require("../../utils");
|
|
|
16
16
|
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); }
|
|
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
|
-
const addToCartMutation = (_StoreModalProductSummaryAddToCartMutation2.default.hash && _StoreModalProductSummaryAddToCartMutation2.default.hash !== "91ea762e3842af2919da3a4c710a48cc" && console.error("The definition of 'StoreModalProductSummaryAddToCartMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
19
|
+
const addToCartMutation = (_StoreModalProductSummaryAddToCartMutation2.default.hash && _StoreModalProductSummaryAddToCartMutation2.default.hash !== "91ea762e3842af2919da3a4c710a48cc" && console.error("The definition of 'StoreModalProductSummaryAddToCartMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalProductSummaryAddToCartMutation2.default);
|
|
20
20
|
const countStyles = viewer => {
|
|
21
21
|
const {
|
|
22
22
|
precart
|
|
@@ -148,6 +148,6 @@ const StoreModalProductSummary = _ref => {
|
|
|
148
148
|
}, submitting ? 'Adding...' : 'Add to cart'));
|
|
149
149
|
};
|
|
150
150
|
var _default = (0, _reactRelay.createRefetchContainer)(StoreModalProductSummary, {
|
|
151
|
-
viewer: (_StoreModalProductSummary_viewer2.default.hash && _StoreModalProductSummary_viewer2.default.hash !== "d4b6958e3c6fb528399504365d4e37e8" && console.error("The definition of 'StoreModalProductSummary_viewer' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
152
|
-
}, (_StoreModalProductSummaryRefetchQuery2.default.hash && _StoreModalProductSummaryRefetchQuery2.default.hash !== "7c268bb004999fc028d56f9ee2914960" && console.error("The definition of 'StoreModalProductSummaryRefetchQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
151
|
+
viewer: (_StoreModalProductSummary_viewer2.default.hash && _StoreModalProductSummary_viewer2.default.hash !== "d4b6958e3c6fb528399504365d4e37e8" && console.error("The definition of 'StoreModalProductSummary_viewer' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalProductSummary_viewer2.default)
|
|
152
|
+
}, (_StoreModalProductSummaryRefetchQuery2.default.hash && _StoreModalProductSummaryRefetchQuery2.default.hash !== "7c268bb004999fc028d56f9ee2914960" && console.error("The definition of 'StoreModalProductSummaryRefetchQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalProductSummaryRefetchQuery2.default));
|
|
153
153
|
exports.default = _default;
|
|
@@ -20,7 +20,7 @@ const StripeProvider = _ref => {
|
|
|
20
20
|
children,
|
|
21
21
|
requireClientSecret = true
|
|
22
22
|
} = _ref;
|
|
23
|
-
const data = (0, _reactRelay.useFragment)((_StripeProvider_viewer2.default.hash && _StripeProvider_viewer2.default.hash !== "efff082269b64afc7019b4d725285afa" && console.error("The definition of 'StripeProvider_viewer' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
23
|
+
const data = (0, _reactRelay.useFragment)((_StripeProvider_viewer2.default.hash && _StripeProvider_viewer2.default.hash !== "efff082269b64afc7019b4d725285afa" && console.error("The definition of 'StripeProvider_viewer' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StripeProvider_viewer2.default), viewer);
|
|
24
24
|
const stripeKey = data.stripePublishableKey;
|
|
25
25
|
const stripeAccount = data.stripeAccountId;
|
|
26
26
|
const stripePromiseRef = (0, _react.useRef)(stripeKey && stripeAccount ? (0, _stripeJs.loadStripe)(stripeKey, {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function Switch(): void;
|
|
@@ -18,7 +18,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
18
18
|
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; }
|
|
19
19
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
20
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
21
|
-
const updateCustomerMutation = (_TestFontsFormUpdateCustomerMutation2.default.hash && _TestFontsFormUpdateCustomerMutation2.default.hash !== "ba56958399f0893bd667ff02c33a6975" && console.error("The definition of 'TestFontsFormUpdateCustomerMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
21
|
+
const updateCustomerMutation = (_TestFontsFormUpdateCustomerMutation2.default.hash && _TestFontsFormUpdateCustomerMutation2.default.hash !== "ba56958399f0893bd667ff02c33a6975" && console.error("The definition of 'TestFontsFormUpdateCustomerMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _TestFontsFormUpdateCustomerMutation2.default);
|
|
22
22
|
const TestFontsDownloading = _ref => {
|
|
23
23
|
let {
|
|
24
24
|
archiveUrl
|
|
@@ -151,7 +151,7 @@ const TestFontsFormComponent = _ref2 => {
|
|
|
151
151
|
ref: downloadForm
|
|
152
152
|
}));
|
|
153
153
|
};
|
|
154
|
-
const query = (_TestFontsForm_Query2.default.hash && _TestFontsForm_Query2.default.hash !== "b8838ac445fa9addb19af5a2d653e979" && console.error("The definition of 'TestFontsForm_Query' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
154
|
+
const query = (_TestFontsForm_Query2.default.hash && _TestFontsForm_Query2.default.hash !== "b8838ac445fa9addb19af5a2d653e979" && console.error("The definition of 'TestFontsForm_Query' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _TestFontsForm_Query2.default);
|
|
155
155
|
function TestFontsFormPreloadedQueryRenderer(_ref4) {
|
|
156
156
|
let {
|
|
157
157
|
preloadedQuery,
|
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TestModeBannerQuery } from '../../__generated__/TestModeBannerQuery.graphql';
|
|
3
|
-
import { SerializablePreloadedQuery } from '../../relay/loadSerializableQuery';
|
|
4
|
-
export declare function TestModeBannerPreloadedQueryRenderer({ preloadedQuery, }: {
|
|
5
|
-
preloadedQuery: SerializablePreloadedQuery<TestModeBannerQuery>;
|
|
6
|
-
}): React.JSX.Element;
|
|
7
2
|
export default function TestModeBanner(): React.JSX.Element;
|
|
@@ -4,30 +4,21 @@
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.TestModeBannerPreloadedQueryRenderer = TestModeBannerPreloadedQueryRenderer;
|
|
8
7
|
exports.default = TestModeBanner;
|
|
9
8
|
var _TestModeBannerQuery2 = _interopRequireDefault(require("../../__generated__/TestModeBannerQuery.graphql"));
|
|
10
9
|
var _react = _interopRequireDefault(require("react"));
|
|
11
10
|
var _reactRelay = require("react-relay");
|
|
12
|
-
var _useSerializablePreloadedQuery = _interopRequireDefault(require("../../relay/useSerializablePreloadedQuery"));
|
|
13
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
-
const getSwitchable = switchUrl => new URL(switchUrl).hostname === location.hostname;
|
|
15
12
|
function TestModeBannerComponent(_ref) {
|
|
16
|
-
var _data$viewer;
|
|
17
13
|
let {
|
|
18
14
|
data
|
|
19
15
|
} = _ref;
|
|
20
|
-
if (!((_data$viewer = data.viewer) !== null && _data$viewer !== void 0 && _data$viewer.adminUser)) return null;
|
|
21
16
|
const {
|
|
22
|
-
isActive
|
|
23
|
-
switchUrl
|
|
17
|
+
isActive
|
|
24
18
|
} = data.viewer.testMode;
|
|
25
|
-
const switchable = getSwitchable(switchUrl);
|
|
26
19
|
|
|
27
|
-
//
|
|
28
|
-
|
|
29
|
-
// link doesn't work. let's hide the banner completely if we're in live mode
|
|
30
|
-
if (!isActive && !switchable) return null;
|
|
20
|
+
// hide the banner completely if we're in live mode
|
|
21
|
+
if (!isActive) return null;
|
|
31
22
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
32
23
|
className: "test-mode-banner__banner",
|
|
33
24
|
"data-test-mode": isActive
|
|
@@ -35,23 +26,9 @@ function TestModeBannerComponent(_ref) {
|
|
|
35
26
|
className: "test-mode-banner__content"
|
|
36
27
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
37
28
|
className: "test-mode-banner__title"
|
|
38
|
-
}, "Viewing
|
|
39
|
-
className: "test-mode-banner__rest"
|
|
40
|
-
}, switchable && /*#__PURE__*/_react.default.createElement("a", {
|
|
41
|
-
href: switchUrl
|
|
42
|
-
}, "Switch to ", isActive ? 'live' : 'test', " data"))));
|
|
43
|
-
}
|
|
44
|
-
const query = (_TestModeBannerQuery2.default.hash && _TestModeBannerQuery2.default.hash !== "82e974c3c8bdef284e02f896ed1680c1" && console.error("The definition of 'TestModeBannerQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _TestModeBannerQuery);
|
|
45
|
-
function TestModeBannerPreloadedQueryRenderer(_ref2) {
|
|
46
|
-
let {
|
|
47
|
-
preloadedQuery
|
|
48
|
-
} = _ref2;
|
|
49
|
-
const queryRef = (0, _useSerializablePreloadedQuery.default)(preloadedQuery);
|
|
50
|
-
const data = (0, _reactRelay.usePreloadedQuery)(query, queryRef);
|
|
51
|
-
return /*#__PURE__*/_react.default.createElement(TestModeBannerComponent, {
|
|
52
|
-
data: data
|
|
53
|
-
});
|
|
29
|
+
}, "Viewing test data")));
|
|
54
30
|
}
|
|
31
|
+
const query = (_TestModeBannerQuery2.default.hash && _TestModeBannerQuery2.default.hash !== "60ad67ee88ec6b74dd04bdf5572e7faf" && console.error("The definition of 'TestModeBannerQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _TestModeBannerQuery2.default);
|
|
55
32
|
function TestModeBanner() {
|
|
56
33
|
const data = (0, _reactRelay.useLazyLoadQuery)(query, {});
|
|
57
34
|
return /*#__PURE__*/_react.default.createElement(TestModeBannerComponent, {
|
|
@@ -25,7 +25,7 @@ function ThemeConfigComponent(_ref) {
|
|
|
25
25
|
type: "text/css"
|
|
26
26
|
}, `:root { ${props.join(';')} }`);
|
|
27
27
|
}
|
|
28
|
-
const query = (_ThemeConfigQuery2.default.hash && _ThemeConfigQuery2.default.hash !== "c259bee038c4d2ea14c758fba3381f57" && console.error("The definition of 'ThemeConfigQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
28
|
+
const query = (_ThemeConfigQuery2.default.hash && _ThemeConfigQuery2.default.hash !== "c259bee038c4d2ea14c758fba3381f57" && console.error("The definition of 'ThemeConfigQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _ThemeConfigQuery2.default);
|
|
29
29
|
function ThemeConfigPreloadedQueryRenderer(_ref2) {
|
|
30
30
|
let {
|
|
31
31
|
preloadedQuery
|
|
@@ -60,7 +60,7 @@ function TypeTesterFeatures(_ref) {
|
|
|
60
60
|
features: showFeatures,
|
|
61
61
|
axes
|
|
62
62
|
} = _ref;
|
|
63
|
-
const fontStyle = (0, _reactRelay.useFragment)((_TypeTesterFeatures_fontStyle2.default.hash && _TypeTesterFeatures_fontStyle2.default.hash !== "d0c693dadaa9ae68f5295f3fc69a7578" && console.error("The definition of 'TypeTesterFeatures_fontStyle' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
63
|
+
const fontStyle = (0, _reactRelay.useFragment)((_TypeTesterFeatures_fontStyle2.default.hash && _TypeTesterFeatures_fontStyle2.default.hash !== "d0c693dadaa9ae68f5295f3fc69a7578" && console.error("The definition of 'TypeTesterFeatures_fontStyle' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _TypeTesterFeatures_fontStyle2.default), fontStyleKey);
|
|
64
64
|
const {
|
|
65
65
|
typeTester: config
|
|
66
66
|
} = (0, _react.useContext)(_ConfigContext.default);
|
|
@@ -35,7 +35,7 @@ const TypeTesterFeaturesButton = _ref => {
|
|
|
35
35
|
id
|
|
36
36
|
});
|
|
37
37
|
const selectedFeature = features[0];
|
|
38
|
-
const fontStyle = (0, _reactRelay.useFragment)((_TypeTesterFeaturesButton_fontStyle2.default.hash && _TypeTesterFeaturesButton_fontStyle2.default.hash !== "bfda99c867db0b614314fc774911c4b0" && console.error("The definition of 'TypeTesterFeaturesButton_fontStyle' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
38
|
+
const fontStyle = (0, _reactRelay.useFragment)((_TypeTesterFeaturesButton_fontStyle2.default.hash && _TypeTesterFeaturesButton_fontStyle2.default.hash !== "bfda99c867db0b614314fc774911c4b0" && console.error("The definition of 'TypeTesterFeaturesButton_fontStyle' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _TypeTesterFeaturesButton_fontStyle2.default), fontStyleKey);
|
|
39
39
|
const {
|
|
40
40
|
featureNames
|
|
41
41
|
} = (0, _useFeaturesData.default)({
|
|
@@ -22,7 +22,7 @@ function TypeTesterFloatingToolbar(_ref) {
|
|
|
22
22
|
axes,
|
|
23
23
|
onToolbarOpenClose
|
|
24
24
|
} = _ref;
|
|
25
|
-
const testersData = (0, _reactRelay.useFragment)((_TypeTesterFloatingToolbar_testers2.default.hash && _TypeTesterFloatingToolbar_testers2.default.hash !== "5f037fca9e02cba8c202f17e08ff8db6" && console.error("The definition of 'TypeTesterFloatingToolbar_testers' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
25
|
+
const testersData = (0, _reactRelay.useFragment)((_TypeTesterFloatingToolbar_testers2.default.hash && _TypeTesterFloatingToolbar_testers2.default.hash !== "5f037fca9e02cba8c202f17e08ff8db6" && console.error("The definition of 'TypeTesterFloatingToolbar_testers' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _TypeTesterFloatingToolbar_testers2.default), testersKey);
|
|
26
26
|
const {
|
|
27
27
|
testers
|
|
28
28
|
} = (0, _react.useContext)(_TypeTesterContext.TypeTesterContext);
|
|
@@ -72,7 +72,7 @@ function TypeTesterStandaloneComponent(_ref) {
|
|
|
72
72
|
onBlur: onBlur
|
|
73
73
|
}));
|
|
74
74
|
}
|
|
75
|
-
const query = (_TypeTesterStandaloneQuery2.default.hash && _TypeTesterStandaloneQuery2.default.hash !== "3ad5c4d856f5d46ddf8a47a2b6d2420a" && console.error("The definition of 'TypeTesterStandaloneQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
75
|
+
const query = (_TypeTesterStandaloneQuery2.default.hash && _TypeTesterStandaloneQuery2.default.hash !== "3ad5c4d856f5d46ddf8a47a2b6d2420a" && console.error("The definition of 'TypeTesterStandaloneQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _TypeTesterStandaloneQuery2.default);
|
|
76
76
|
function TypeTesterStandalonePreloadedQueryRenderer(_ref3) {
|
|
77
77
|
let {
|
|
78
78
|
preloadedQuery,
|
|
@@ -15,7 +15,7 @@ var _relayRuntime = require("relay-runtime");
|
|
|
15
15
|
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); }
|
|
16
16
|
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; }
|
|
17
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
|
-
_TypeTesterStyleSelectData_fontStyleData2.default.hash && _TypeTesterStyleSelectData_fontStyleData2.default.hash !== "fb09207ccab08c7e73677486469a3c95" && console.error("The definition of 'TypeTesterStyleSelectData_fontStyleData' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
18
|
+
_TypeTesterStyleSelectData_fontStyleData2.default.hash && _TypeTesterStyleSelectData_fontStyleData2.default.hash !== "fb09207ccab08c7e73677486469a3c95" && console.error("The definition of 'TypeTesterStyleSelectData_fontStyleData' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _TypeTesterStyleSelectData_fontStyleData2.default;
|
|
19
19
|
|
|
20
20
|
// get a score for similarity between two styles
|
|
21
21
|
// 0 < n <= 1
|
|
@@ -48,8 +48,8 @@ function TypeTesterStyleSelectData(_ref) {
|
|
|
48
48
|
variableSettings,
|
|
49
49
|
includeVariableAxesOption
|
|
50
50
|
} = _ref;
|
|
51
|
-
const fontStyle = (0, _reactRelay.useFragment)((_TypeTesterStyleSelectData_fontStyle2.default.hash && _TypeTesterStyleSelectData_fontStyle2.default.hash !== "6d485f52ae538b13da3f1f924512299c" && console.error("The definition of 'TypeTesterStyleSelectData_fontStyle' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
52
|
-
const viewer = (0, _reactRelay.useFragment)((_TypeTesterStyleSelectData_viewer2.default.hash && _TypeTesterStyleSelectData_viewer2.default.hash !== "d5d291b8b41470b9e602ee83af05e047" && console.error("The definition of 'TypeTesterStyleSelectData_viewer' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
51
|
+
const fontStyle = (0, _reactRelay.useFragment)((_TypeTesterStyleSelectData_fontStyle2.default.hash && _TypeTesterStyleSelectData_fontStyle2.default.hash !== "6d485f52ae538b13da3f1f924512299c" && console.error("The definition of 'TypeTesterStyleSelectData_fontStyle' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _TypeTesterStyleSelectData_fontStyle2.default), fontStyleKey);
|
|
52
|
+
const viewer = (0, _reactRelay.useFragment)((_TypeTesterStyleSelectData_viewer2.default.hash && _TypeTesterStyleSelectData_viewer2.default.hash !== "d5d291b8b41470b9e602ee83af05e047" && console.error("The definition of 'TypeTesterStyleSelectData_viewer' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _TypeTesterStyleSelectData_viewer2.default), viewerKey);
|
|
53
53
|
const familyData = viewer === null || viewer === void 0 ? void 0 : (_viewer$families = viewer.families) === null || _viewer$families === void 0 ? void 0 : (_viewer$families$edge = _viewer$families.edges) === null || _viewer$families$edge === void 0 ? void 0 : _viewer$families$edge.map(edge => edge.node).filter(_utils.notEmpty);
|
|
54
54
|
const handleSelectFamilyId = (0, _react.useCallback)(id => {
|
|
55
55
|
const family = familyData && familyData.find(family => family.id === id);
|
|
@@ -34,7 +34,7 @@ const TypeTesterToolbar = _ref => {
|
|
|
34
34
|
const props = (0, _TypeTesterState.default)({
|
|
35
35
|
id
|
|
36
36
|
});
|
|
37
|
-
const fontStyle = (0, _reactRelay.useFragment)((_TypeTesterToolbar_fontStyle2.default.hash && _TypeTesterToolbar_fontStyle2.default.hash !== "1a0f844cbe51f96ed0145d8009f8bff0" && console.error("The definition of 'TypeTesterToolbar_fontStyle' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
37
|
+
const fontStyle = (0, _reactRelay.useFragment)((_TypeTesterToolbar_fontStyle2.default.hash && _TypeTesterToolbar_fontStyle2.default.hash !== "1a0f844cbe51f96ed0145d8009f8bff0" && console.error("The definition of 'TypeTesterToolbar_fontStyle' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _TypeTesterToolbar_fontStyle2.default), fontStyleKey);
|
|
38
38
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
39
39
|
className: "type-tester__toolbar__tools",
|
|
40
40
|
onMouseDown: e => {
|
|
@@ -23,7 +23,7 @@ const TypeTesterVariableAxes = _ref => {
|
|
|
23
23
|
} = (0, _TypeTesterState.default)({
|
|
24
24
|
id
|
|
25
25
|
});
|
|
26
|
-
const fontStyle = (0, _reactRelay.useFragment)((_TypeTesterVariableAxes_fontStyle2.default.hash && _TypeTesterVariableAxes_fontStyle2.default.hash !== "a73e45dbb7a154107456088125a01f88" && console.error("The definition of 'TypeTesterVariableAxes_fontStyle' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
26
|
+
const fontStyle = (0, _reactRelay.useFragment)((_TypeTesterVariableAxes_fontStyle2.default.hash && _TypeTesterVariableAxes_fontStyle2.default.hash !== "a73e45dbb7a154107456088125a01f88" && console.error("The definition of 'TypeTesterVariableAxes_fontStyle' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _TypeTesterVariableAxes_fontStyle2.default), fontStyleKey);
|
|
27
27
|
if (!variableSettings) return null;
|
|
28
28
|
if (!axes) return null;
|
|
29
29
|
const handleChange = (axis, value) => {
|
|
@@ -56,8 +56,8 @@ const TypeTester = _ref => {
|
|
|
56
56
|
axes,
|
|
57
57
|
groupEdit
|
|
58
58
|
} = _ref;
|
|
59
|
-
const fontStyleData = (0, _reactRelay.useFragment)((_TypeTester_fontStyle2.default.hash && _TypeTester_fontStyle2.default.hash !== "e05fd846d7bcc3733b7afeb36403a7ef" && console.error("The definition of 'TypeTester_fontStyle' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
60
|
-
const viewer = (0, _reactRelay.useFragment)((_TypeTester_viewer2.default.hash && _TypeTester_viewer2.default.hash !== "a12af7126d512a50ab0b7e5e14a7d8eb" && console.error("The definition of 'TypeTester_viewer' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
59
|
+
const fontStyleData = (0, _reactRelay.useFragment)((_TypeTester_fontStyle2.default.hash && _TypeTester_fontStyle2.default.hash !== "e05fd846d7bcc3733b7afeb36403a7ef" && console.error("The definition of 'TypeTester_fontStyle' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _TypeTester_fontStyle2.default), fontStyleKey);
|
|
60
|
+
const viewer = (0, _reactRelay.useFragment)((_TypeTester_viewer2.default.hash && _TypeTester_viewer2.default.hash !== "a12af7126d512a50ab0b7e5e14a7d8eb" && console.error("The definition of 'TypeTester_viewer' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _TypeTester_viewer2.default), viewerKey);
|
|
61
61
|
const [selectedFontStyleId, setSelectedFontStyleId] = (0, _react.useState)((fontStyleData === null || fontStyleData === void 0 ? void 0 : fontStyleData.id) ?? null);
|
|
62
62
|
const [fontStyle, setFontStyle] = (0, _react.useState)(fontStyleData);
|
|
63
63
|
const environment = (0, _reactRelay.useRelayEnvironment)();
|
|
@@ -67,7 +67,7 @@ const TypeTester = _ref => {
|
|
|
67
67
|
setFontStyle(fontStyleData);
|
|
68
68
|
return;
|
|
69
69
|
}
|
|
70
|
-
const observable = (0, _reactRelay.fetchQuery)(environment, (_TypeTester_NewStyleQuery2.default.hash && _TypeTester_NewStyleQuery2.default.hash !== "ba1870daafcad35b740226153cd96f79" && console.error("The definition of 'TypeTester_NewStyleQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
70
|
+
const observable = (0, _reactRelay.fetchQuery)(environment, (_TypeTester_NewStyleQuery2.default.hash && _TypeTester_NewStyleQuery2.default.hash !== "ba1870daafcad35b740226153cd96f79" && console.error("The definition of 'TypeTester_NewStyleQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _TypeTester_NewStyleQuery2.default), {
|
|
71
71
|
id: selectedFontStyleId
|
|
72
72
|
}).subscribe({
|
|
73
73
|
next: data => {
|
|
@@ -203,6 +203,6 @@ const TypeTester = _ref => {
|
|
|
203
203
|
}, props.content.getCurrentContent().getPlainText());
|
|
204
204
|
}))));
|
|
205
205
|
};
|
|
206
|
-
_TypeTester_sku2.default.hash && _TypeTester_sku2.default.hash !== "1538559015ee3064ae577b7a5e90f34e" && console.error("The definition of 'TypeTester_sku' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
206
|
+
_TypeTester_sku2.default.hash && _TypeTester_sku2.default.hash !== "1538559015ee3064ae577b7a5e90f34e" && console.error("The definition of 'TypeTester_sku' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _TypeTester_sku2.default;
|
|
207
207
|
var _default = TypeTester;
|
|
208
208
|
exports.default = _default;
|
|
@@ -19,7 +19,7 @@ const useFeaturesData = _ref2 => {
|
|
|
19
19
|
let {
|
|
20
20
|
fontStyle
|
|
21
21
|
} = _ref2;
|
|
22
|
-
const data = (0, _reactRelay.useFragment)((_useFeaturesData_fontStyle2.default.hash && _useFeaturesData_fontStyle2.default.hash !== "3c48a87b1b19f52e3dda10fc11f0030a" && console.error("The definition of 'useFeaturesData_fontStyle' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
22
|
+
const data = (0, _reactRelay.useFragment)((_useFeaturesData_fontStyle2.default.hash && _useFeaturesData_fontStyle2.default.hash !== "3c48a87b1b19f52e3dda10fc11f0030a" && console.error("The definition of 'useFeaturesData_fontStyle' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _useFeaturesData_fontStyle2.default), fontStyle);
|
|
23
23
|
const featureNames = ((_data$fontFeatures = data.fontFeatures) === null || _data$fontFeatures === void 0 ? void 0 : _data$fontFeatures.supportedFeatures.reduce((acc, feature) => {
|
|
24
24
|
let featureName = feature;
|
|
25
25
|
if (_features.default.hasOwnProperty(feature)) {
|
|
@@ -63,8 +63,8 @@ function TypeTestersComponent(_ref) {
|
|
|
63
63
|
onToolbarOpenClose,
|
|
64
64
|
...rest
|
|
65
65
|
} = _ref;
|
|
66
|
-
const collection = (0, _reactRelay.useFragment)((_TypeTesters_collection2.default.hash && _TypeTesters_collection2.default.hash !== "4e661d9d957e3a3f4a7b23f3665cadf9" && console.error("The definition of 'TypeTesters_collection' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
67
|
-
const viewer = (0, _reactRelay.useFragment)((_TypeTesters_viewer2.default.hash && _TypeTesters_viewer2.default.hash !== "9dce7dd7815ccdea1c4b3c5a076b589e" && console.error("The definition of 'TypeTesters_viewer' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
66
|
+
const collection = (0, _reactRelay.useFragment)((_TypeTesters_collection2.default.hash && _TypeTesters_collection2.default.hash !== "4e661d9d957e3a3f4a7b23f3665cadf9" && console.error("The definition of 'TypeTesters_collection' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _TypeTesters_collection2.default), collectionKey);
|
|
67
|
+
const viewer = (0, _reactRelay.useFragment)((_TypeTesters_viewer2.default.hash && _TypeTesters_viewer2.default.hash !== "9dce7dd7815ccdea1c4b3c5a076b589e" && console.error("The definition of 'TypeTesters_viewer' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _TypeTesters_viewer2.default), viewerKey);
|
|
68
68
|
const precartOpen = (0, _reactRedux.useSelector)(state => state.precartOpen);
|
|
69
69
|
const {
|
|
70
70
|
typeTester: config
|
|
@@ -130,7 +130,7 @@ function TypeTestersComponent(_ref) {
|
|
|
130
130
|
}))));
|
|
131
131
|
}));
|
|
132
132
|
}
|
|
133
|
-
const idQuery = (_TypeTestersIDQuery2.default.hash && _TypeTestersIDQuery2.default.hash !== "f62d86e50379a25ca0a8eb10812704c2" && console.error("The definition of 'TypeTestersIDQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
133
|
+
const idQuery = (_TypeTestersIDQuery2.default.hash && _TypeTestersIDQuery2.default.hash !== "f62d86e50379a25ca0a8eb10812704c2" && console.error("The definition of 'TypeTestersIDQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _TypeTestersIDQuery2.default);
|
|
134
134
|
function TypeTestersPreloadedIDQueryRenderer(_ref3) {
|
|
135
135
|
let {
|
|
136
136
|
preloadedQuery,
|
|
@@ -154,7 +154,7 @@ function TypeTestersIDQueryRenderer(_ref4) {
|
|
|
154
154
|
});
|
|
155
155
|
return /*#__PURE__*/_react.default.createElement(TypeTestersComponent, _extends({}, data, rest));
|
|
156
156
|
}
|
|
157
|
-
const slugQuery = (_TypeTestersSlugQuery2.default.hash && _TypeTestersSlugQuery2.default.hash !== "eb11a6ae2b690cb3cdd8a14c6e2afed6" && console.error("The definition of 'TypeTestersSlugQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
157
|
+
const slugQuery = (_TypeTestersSlugQuery2.default.hash && _TypeTestersSlugQuery2.default.hash !== "eb11a6ae2b690cb3cdd8a14c6e2afed6" && console.error("The definition of 'TypeTestersSlugQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _TypeTestersSlugQuery2.default);
|
|
158
158
|
function TypeTestersPreloadedSlugQueryRenderer(_ref5) {
|
|
159
159
|
var _data$viewer$slug;
|
|
160
160
|
let {
|
|
@@ -15,8 +15,8 @@ function VariableTableAmounts(_ref) {
|
|
|
15
15
|
variable: variableKey,
|
|
16
16
|
option: optionKey
|
|
17
17
|
} = _ref;
|
|
18
|
-
const variable = (0, _reactRelay.useFragment)((_VariableTableAmounts_variable2.default.hash && _VariableTableAmounts_variable2.default.hash !== "400d25ad39816f2e153c8bb67e0e8695" && console.error("The definition of 'VariableTableAmounts_variable' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
19
|
-
const option = (0, _reactRelay.useFragment)((_VariableTableAmounts_option2.default.hash && _VariableTableAmounts_option2.default.hash !== "fe03c602c33f1f6e5afe209afc9e6cd6" && console.error("The definition of 'VariableTableAmounts_option' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
18
|
+
const variable = (0, _reactRelay.useFragment)((_VariableTableAmounts_variable2.default.hash && _VariableTableAmounts_variable2.default.hash !== "400d25ad39816f2e153c8bb67e0e8695" && console.error("The definition of 'VariableTableAmounts_variable' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _VariableTableAmounts_variable2.default), variableKey);
|
|
19
|
+
const option = (0, _reactRelay.useFragment)((_VariableTableAmounts_option2.default.hash && _VariableTableAmounts_option2.default.hash !== "fe03c602c33f1f6e5afe209afc9e6cd6" && console.error("The definition of 'VariableTableAmounts_option' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _VariableTableAmounts_option2.default), optionKey);
|
|
20
20
|
return /*#__PURE__*/_react.default.createElement("span", {
|
|
21
21
|
className: "variable-table-amounts"
|
|
22
22
|
}, variable === null || variable === void 0 ? void 0 : (_variable$units = variable.units) === null || _variable$units === void 0 ? void 0 : _variable$units.map((unit, i) => {
|
|
@@ -12,7 +12,7 @@ const useTotalStyles = _ref => {
|
|
|
12
12
|
let {
|
|
13
13
|
fontCollection
|
|
14
14
|
} = _ref;
|
|
15
|
-
const data = (0, _reactRelay.useFragment)((_useTotalStyles_fontCollection2.default.hash && _useTotalStyles_fontCollection2.default.hash !== "24cf564c6f5bf49e27a9a0d65c937882" && console.error("The definition of 'useTotalStyles_fontCollection' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),
|
|
15
|
+
const data = (0, _reactRelay.useFragment)((_useTotalStyles_fontCollection2.default.hash && _useTotalStyles_fontCollection2.default.hash !== "24cf564c6f5bf49e27a9a0d65c937882" && console.error("The definition of 'useTotalStyles_fontCollection' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _useTotalStyles_fontCollection2.default), fontCollection);
|
|
16
16
|
const variableFonts = (_data$children = data.children) === null || _data$children === void 0 ? void 0 : _data$children.filter(child => child.isVariableFont);
|
|
17
17
|
let totalStyles = data.totalStyles;
|
|
18
18
|
if (variableFonts !== null && variableFonts !== void 0 && variableFonts.length) {
|