fontdue-js 2.0.0-alpha4np → 2.0.0-alpha6
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 +4 -0
- package/README.md +9 -24
- package/dist/components/Cart/CartItem/VariableTextInput.d.ts +10 -0
- package/dist/components/Cart/CartItem/VariableTextInput.js +66 -92
- package/dist/components/Cart/CartItem/index.d.ts +7 -6
- package/dist/components/Cart/CartItem/index.js +9 -13
- package/dist/components/Cart/CartState.d.ts +4 -4
- package/dist/components/Cart/CartState.js +5 -8
- package/dist/components/Cart/CartTotals.d.ts +5 -4
- package/dist/components/Cart/CartTotals.js +5 -8
- package/dist/components/Cart/IdentityBox.d.ts +12 -0
- package/dist/components/Cart/IdentityBox.js +5 -8
- package/dist/components/CharacterViewer/index.js +5 -7
- package/dist/components/CouponText/index.d.ts +5 -4
- package/dist/components/CouponText/index.js +5 -8
- package/dist/components/Family/FamilyList.d.ts +5 -4
- package/dist/components/Family/FamilyList.js +5 -8
- package/dist/components/Family/index.d.ts +5 -4
- package/dist/components/Family/index.js +5 -9
- package/dist/components/FontStyle/index.d.ts +4 -6
- package/dist/components/FontStyle/index.js +5 -10
- package/dist/components/SelectButton/index.d.ts +5 -6
- package/dist/components/SelectButton/index.js +5 -9
- package/dist/components/StoreModal/StoreModalBundleButton.d.ts +5 -6
- package/dist/components/StoreModal/StoreModalBundleButton.js +7 -10
- package/dist/components/StoreModal/StoreModalFamily.d.ts +5 -4
- package/dist/components/StoreModal/StoreModalFamily.js +5 -8
- package/dist/components/StoreModal/StoreModalFamilyButton.d.ts +5 -6
- package/dist/components/StoreModal/StoreModalFamilyButton.js +5 -9
- package/dist/components/StoreModal/StoreModalReviewIdentity.d.ts +5 -4
- package/dist/components/StoreModal/StoreModalReviewIdentity.js +6 -9
- package/dist/components/StoreModal/StoreModalStyleButton.d.ts +5 -6
- package/dist/components/StoreModal/StoreModalStyleButton.js +5 -9
- package/dist/components/StoreModalProductLicenseSelection/StoreModalProductLicense.d.ts +5 -4
- package/dist/components/StoreModalProductLicenseSelection/StoreModalProductLicense.js +5 -8
- package/dist/components/StoreModalProductLicenseSelection/index.d.ts +5 -4
- package/dist/components/StoreModalProductLicenseSelection/index.js +5 -8
- package/dist/components/TypeTester/TypeTesterFeatures.d.ts +5 -4
- package/dist/components/TypeTester/TypeTesterFeatures.js +5 -8
- package/dist/components/TypeTester/TypeTesterFloatingToolbar.d.ts +5 -4
- package/dist/components/TypeTester/TypeTesterFloatingToolbar.js +5 -8
- package/dist/components/TypeTester/TypeTesterStyleSelectData.d.ts +7 -6
- package/dist/components/TypeTester/TypeTesterStyleSelectData.js +7 -10
- package/dist/components/TypeTesters/index.d.ts +1 -1
- package/dist/components/TypeTesters/index.js +11 -13
- package/dist/components/VariableTableAmounts/index.d.ts +7 -6
- package/dist/components/VariableTableAmounts/index.js +7 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## 2.0.0
|
|
2
|
+
|
|
3
|
+
- __Breaking change__: This is a major upgrade to support React 18 concurrent mode, including changes to how we resolve data using Suspense via Relay. Upgrading meant we require some new features only available in React 18. But this change also means that Fontdue components can now fully resolve during server-side rendering (e.g. in Next.js), making for much smoother initial page loads.
|
|
4
|
+
|
|
1
5
|
## 1.12.3
|
|
2
6
|
|
|
3
7
|
- Fix Stripe integration for Apple Pay
|
package/README.md
CHANGED
|
@@ -2,35 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
This package exports [Fontdue.js](https://docs.fontdue.com/fontduejs) components for React projects.
|
|
4
4
|
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
``` shell
|
|
8
|
+
npm install fontdue-js@latest
|
|
9
|
+
```
|
|
10
|
+
|
|
5
11
|
## Usage
|
|
6
12
|
|
|
7
|
-
1. Wrap the root of your project with the [`FontdueProvider`](#fontdueprovider) component. For example in a Next.js app, add it to your `_app.tsx`.
|
|
13
|
+
1. Wrap the root of your project with the [`FontdueProvider`](#fontdueprovider) component. For example in a Next.js app, add it to your `app/layout.tsx` or `pages/_app.tsx`.
|
|
8
14
|
2. Include the `url` property with your Fontdue store URL.
|
|
9
15
|
3. Render the [`StoreModal`](#storemodal) component so that is it available on every page.
|
|
10
16
|
4. Import the `fontdue-js/fontdue.css` CSS file. (This example uses Next.js)
|
|
11
17
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
```tsx
|
|
15
|
-
import type { AppProps } from 'next/app';
|
|
16
|
-
import Head from 'next/head';
|
|
17
|
-
import React from 'react';
|
|
18
|
-
import FontdueProvider from 'fontdue-js/FontdueProvider';
|
|
19
|
-
import StoreModal from 'fontdue-js/StoreModal';
|
|
20
|
-
import 'fontdue-js/fontdue.css';
|
|
21
|
-
|
|
22
|
-
function MyApp({ Component, pageProps }: AppProps) {
|
|
23
|
-
return (
|
|
24
|
-
<FontdueProvider url="https://example.fontdue.com" config={{}}>
|
|
25
|
-
<Component {...pageProps} />
|
|
26
|
-
|
|
27
|
-
<StoreModal />
|
|
28
|
-
</FontdueProvider>
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export default MyApp;
|
|
33
|
-
```
|
|
18
|
+
For details on integrating into your Next.js app, read our [Next.js guide](https://docs.fontdue.com/nextjs)
|
|
34
19
|
|
|
35
20
|
## IDs
|
|
36
21
|
|
|
@@ -45,7 +30,7 @@ You may alternatively specify a `collectionSlug` for these components, which can
|
|
|
45
30
|
|
|
46
31
|
## `FontdueProvider`
|
|
47
32
|
|
|
48
|
-
The FontdueProvider provides necessary context for all the other Fontdue.js components, so it must be an ancestor of all other components. See example
|
|
33
|
+
The FontdueProvider provides necessary context for all the other Fontdue.js components, so it must be an ancestor of all other components. See example in our [guide](https://docs.fontdue.com/nextjs).
|
|
49
34
|
|
|
50
35
|
```tsx
|
|
51
36
|
import FontdueProvider from 'fontdue-js/FontdueProvider';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface VariableTextInput_props {
|
|
3
|
+
defaultValue: string | null;
|
|
4
|
+
onChange: (value: {
|
|
5
|
+
variableText: string | null | undefined;
|
|
6
|
+
}) => void;
|
|
7
|
+
placeholder: string;
|
|
8
|
+
}
|
|
9
|
+
export default function VariableTextInput({ defaultValue, onChange, placeholder, ...rest }: VariableTextInput_props): React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -3,103 +3,77 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default =
|
|
7
|
-
var _react =
|
|
8
|
-
function
|
|
6
|
+
exports.default = VariableTextInput;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
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); }
|
|
9
|
+
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; }
|
|
9
10
|
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); }
|
|
10
|
-
function
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} else {
|
|
28
|
-
this.setState({
|
|
29
|
-
value: this.props.defaultValue,
|
|
30
|
-
editing: !this.props.defaultValue
|
|
11
|
+
function VariableTextInput(_ref) {
|
|
12
|
+
let {
|
|
13
|
+
defaultValue,
|
|
14
|
+
onChange,
|
|
15
|
+
placeholder,
|
|
16
|
+
...rest
|
|
17
|
+
} = _ref;
|
|
18
|
+
const [value, setValue] = (0, _react.useState)(defaultValue || '');
|
|
19
|
+
const [editing, setEditing] = (0, _react.useState)(!defaultValue);
|
|
20
|
+
const [submitting, setSubmitting] = (0, _react.useState)(false);
|
|
21
|
+
const inputRef = (0, _react.useRef)(null);
|
|
22
|
+
function submit() {
|
|
23
|
+
setEditing(false);
|
|
24
|
+
if (value) {
|
|
25
|
+
if (defaultValue !== value) {
|
|
26
|
+
onChange({
|
|
27
|
+
variableText: value
|
|
31
28
|
});
|
|
29
|
+
setSubmitting(true);
|
|
32
30
|
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
e.preventDefault();
|
|
37
|
-
this.submit();
|
|
38
|
-
});
|
|
39
|
-
_defineProperty(this, "handleChange", e => this.setState({
|
|
40
|
-
value: e.target.value
|
|
41
|
-
}));
|
|
42
|
-
_defineProperty(this, "handleEditButtonClick", () => {
|
|
43
|
-
this.setState({
|
|
44
|
-
editing: true
|
|
45
|
-
}, () => {
|
|
46
|
-
if (this.input && this.input.current) {
|
|
47
|
-
this.input.current.focus();
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
this.state = {
|
|
52
|
-
value: props.defaultValue || '',
|
|
53
|
-
editing: !props.defaultValue,
|
|
54
|
-
submitting: false
|
|
55
|
-
};
|
|
56
|
-
this.input = /*#__PURE__*/_react.default.createRef();
|
|
57
|
-
}
|
|
58
|
-
componentWillReceiveProps(nextProps) {
|
|
59
|
-
if (this.state.submitting && nextProps.defaultValue !== this.props.defaultValue) {
|
|
60
|
-
this.setState({
|
|
61
|
-
submitting: false,
|
|
62
|
-
value: nextProps.defaultValue,
|
|
63
|
-
editing: !nextProps.defaultValue
|
|
64
|
-
});
|
|
31
|
+
} else {
|
|
32
|
+
setValue(defaultValue || '');
|
|
33
|
+
setEditing(!defaultValue);
|
|
65
34
|
}
|
|
66
35
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}, "Updating...");
|
|
82
|
-
}
|
|
36
|
+
function handleBlur() {
|
|
37
|
+
submit();
|
|
38
|
+
}
|
|
39
|
+
function handleSubmit(e) {
|
|
40
|
+
e.preventDefault();
|
|
41
|
+
submit();
|
|
42
|
+
}
|
|
43
|
+
function handleChange(e) {
|
|
44
|
+
setValue(e.target.value);
|
|
45
|
+
}
|
|
46
|
+
function handleEditButtonClick() {
|
|
47
|
+
setEditing(true);
|
|
48
|
+
}
|
|
49
|
+
(0, _react.useEffect)(() => {
|
|
83
50
|
if (editing) {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}, /*#__PURE__*/_react.default.createElement("input", _extends({
|
|
87
|
-
ref: this.input,
|
|
88
|
-
className: "cart-item__license-variable__text-input",
|
|
89
|
-
"data-empty": !this.state.value,
|
|
90
|
-
type: "text",
|
|
91
|
-
value: this.state.value,
|
|
92
|
-
onChange: this.handleChange,
|
|
93
|
-
onBlur: this.handleBlur,
|
|
94
|
-
placeholder: `Enter ${placeholder}`
|
|
95
|
-
}, rest)));
|
|
51
|
+
var _inputRef$current;
|
|
52
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
96
53
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
},
|
|
54
|
+
}, [editing]);
|
|
55
|
+
if (submitting) {
|
|
56
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
57
|
+
className: "cart-item__license-variable__loading"
|
|
58
|
+
}, "Updating...");
|
|
59
|
+
}
|
|
60
|
+
if (editing) {
|
|
61
|
+
return /*#__PURE__*/_react.default.createElement("form", {
|
|
62
|
+
onSubmit: handleSubmit
|
|
63
|
+
}, /*#__PURE__*/_react.default.createElement("input", _extends({
|
|
64
|
+
ref: inputRef,
|
|
65
|
+
className: "cart-item__license-variable__text-input",
|
|
66
|
+
"data-empty": !value,
|
|
67
|
+
type: "text",
|
|
68
|
+
value: value,
|
|
69
|
+
onChange: handleChange,
|
|
70
|
+
onBlur: handleBlur,
|
|
71
|
+
placeholder: `Enter ${placeholder}`
|
|
72
|
+
}, rest)));
|
|
102
73
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
74
|
+
return /*#__PURE__*/_react.default.createElement("button", {
|
|
75
|
+
className: "cart-item__license-variable__text-input-button",
|
|
76
|
+
type: "button",
|
|
77
|
+
onClick: handleEditButtonClick
|
|
78
|
+
}, defaultValue, " ", /*#__PURE__*/_react.default.createElement("span", null, "Edit"));
|
|
79
|
+
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CartItem_node$key } from '../../../__generated__/CartItem_node.graphql';
|
|
3
|
+
import { CartItem_viewer$key } from '../../../__generated__/CartItem_viewer.graphql';
|
|
3
4
|
import { CartItemChangeInput } from '../types';
|
|
4
5
|
interface CartItem_props {
|
|
5
|
-
viewer: CartItem_viewer$
|
|
6
|
-
node: CartItem_node$
|
|
6
|
+
viewer: CartItem_viewer$key;
|
|
7
|
+
node: CartItem_node$key;
|
|
7
8
|
onChange: (value: CartItemChangeInput) => void;
|
|
8
9
|
}
|
|
9
|
-
|
|
10
|
-
export
|
|
10
|
+
export default function CartItem({ node: nodeKey, viewer: viewerKey, onChange, }: CartItem_props): React.JSX.Element | null;
|
|
11
|
+
export {};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default =
|
|
6
|
+
exports.default = CartItem;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _reactRelay = require("react-relay");
|
|
9
9
|
var _Price = _interopRequireDefault(require("../../Price"));
|
|
@@ -13,7 +13,7 @@ var _Icons = require("../../Icons");
|
|
|
13
13
|
var _VariableTextInput = _interopRequireDefault(require("./VariableTextInput"));
|
|
14
14
|
var _VariableTableAmounts = _interopRequireDefault(require("../../VariableTableAmounts"));
|
|
15
15
|
var _Stylesheet = _interopRequireDefault(require("../../Stylesheet"));
|
|
16
|
-
var _CartItem_license, _CartItem_variable, _CartItem_licenseSelection, _CartItem_product
|
|
16
|
+
var _CartItem_node, _CartItem_viewer, _CartItem_license, _CartItem_variable, _CartItem_licenseSelection, _CartItem_product;
|
|
17
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
18
18
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
19
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -246,13 +246,15 @@ const productCss = product => {
|
|
|
246
246
|
if (product.__typename === 'FontStyle') return (_product$family = product.family) === null || _product$family === void 0 ? void 0 : _product$family.cssUrl;
|
|
247
247
|
if (product.__typename === 'FontCollection') return (_product$featureStyle = product.featureStyle) === null || _product$featureStyle === void 0 ? void 0 : (_product$featureStyle2 = _product$featureStyle.family) === null || _product$featureStyle2 === void 0 ? void 0 : _product$featureStyle2.cssUrl;
|
|
248
248
|
};
|
|
249
|
-
|
|
249
|
+
function CartItem(_ref10) {
|
|
250
250
|
var _node$sku$product, _node$sku$product2, _node$sku$product2$va, _node$sku$product3;
|
|
251
251
|
let {
|
|
252
|
-
node,
|
|
253
|
-
viewer,
|
|
252
|
+
node: nodeKey,
|
|
253
|
+
viewer: viewerKey,
|
|
254
254
|
onChange
|
|
255
255
|
} = _ref10;
|
|
256
|
+
const node = (0, _reactRelay.useFragment)(_CartItem_node !== void 0 ? _CartItem_node : (_CartItem_node = require("../../../__generated__/CartItem_node.graphql"), _CartItem_node.hash && _CartItem_node.hash !== "ef096db653a67b0bba9b2ff3cfdad957" && 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_node), nodeKey);
|
|
257
|
+
const viewer = (0, _reactRelay.useFragment)(_CartItem_viewer !== void 0 ? _CartItem_viewer : (_CartItem_viewer = require("../../../__generated__/CartItem_viewer.graphql"), _CartItem_viewer.hash && _CartItem_viewer.hash !== "f15fed25380b024244e25b4c411183a2" && console.error("The definition of 'CartItem_viewer' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartItem_viewer), viewerKey);
|
|
256
258
|
const [closeButtonIsHovered, setCloseButtonIsHovered] = (0, _react.useState)(false);
|
|
257
259
|
const closeButtonMouseEnter = () => {
|
|
258
260
|
setCloseButtonIsHovered(true);
|
|
@@ -304,14 +306,8 @@ const CartItemBase = _ref10 => {
|
|
|
304
306
|
orderItem: node,
|
|
305
307
|
onAddLicense: license => onChange(inputFromLicenseAddition(node, license))
|
|
306
308
|
}));
|
|
307
|
-
}
|
|
309
|
+
}
|
|
308
310
|
_CartItem_license !== void 0 ? _CartItem_license : (_CartItem_license = require("../../../__generated__/CartItem_license.graphql"), _CartItem_license.hash && _CartItem_license.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_license);
|
|
309
311
|
_CartItem_variable !== void 0 ? _CartItem_variable : (_CartItem_variable = require("../../../__generated__/CartItem_variable.graphql"), _CartItem_variable.hash && _CartItem_variable.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_variable);
|
|
310
312
|
_CartItem_licenseSelection !== void 0 ? _CartItem_licenseSelection : (_CartItem_licenseSelection = require("../../../__generated__/CartItem_licenseSelection.graphql"), _CartItem_licenseSelection.hash && _CartItem_licenseSelection.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_licenseSelection);
|
|
311
|
-
_CartItem_product !== void 0 ? _CartItem_product : (_CartItem_product = require("../../../__generated__/CartItem_product.graphql"), _CartItem_product.hash && _CartItem_product.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_product);
|
|
312
|
-
const CartItem = (0, _reactRelay.createFragmentContainer)(CartItemBase, {
|
|
313
|
-
node: _CartItem_node !== void 0 ? _CartItem_node : (_CartItem_node = require("../../../__generated__/CartItem_node.graphql"), _CartItem_node.hash && _CartItem_node.hash !== "ef096db653a67b0bba9b2ff3cfdad957" && 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_node),
|
|
314
|
-
viewer: _CartItem_viewer !== void 0 ? _CartItem_viewer : (_CartItem_viewer = require("../../../__generated__/CartItem_viewer.graphql"), _CartItem_viewer.hash && _CartItem_viewer.hash !== "f15fed25380b024244e25b4c411183a2" && console.error("The definition of 'CartItem_viewer' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartItem_viewer)
|
|
315
|
-
});
|
|
316
|
-
var _default = CartItem;
|
|
317
|
-
exports.default = _default;
|
|
313
|
+
_CartItem_product !== void 0 ? _CartItem_product : (_CartItem_product = require("../../../__generated__/CartItem_product.graphql"), _CartItem_product.hash && _CartItem_product.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_product);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { OrderItemInput } from '../../__generated__/CartStateUpdateMutation.graphql';
|
|
3
|
-
import { CartState_order$
|
|
3
|
+
import { CartState_order$key } from '../../__generated__/CartState_order.graphql';
|
|
4
4
|
interface CartStateProps {
|
|
5
|
-
order: CartState_order$
|
|
5
|
+
order: CartState_order$key;
|
|
6
6
|
children: (props: {
|
|
7
7
|
onUpdateOrder: (item: OrderItemInput) => void;
|
|
8
8
|
onRemoveDiscount: () => void;
|
|
@@ -10,5 +10,5 @@ interface CartStateProps {
|
|
|
10
10
|
errors: any;
|
|
11
11
|
}) => React.ReactElement<any>;
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
export
|
|
13
|
+
export default function CartState({ order: orderKey, children }: CartStateProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
14
|
+
export {};
|
|
@@ -3,17 +3,18 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default =
|
|
6
|
+
exports.default = CartState;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _reactRelay = require("react-relay");
|
|
9
9
|
var _CartStateUpdateMutation, _CartStateRemoveDiscountMutation, _CartState_order;
|
|
10
10
|
const orderChangeMutation = _CartStateUpdateMutation !== void 0 ? _CartStateUpdateMutation : (_CartStateUpdateMutation = require("../../__generated__/CartStateUpdateMutation.graphql"), _CartStateUpdateMutation.hash && _CartStateUpdateMutation.hash !== "0074879fb29466e5a947a8776a86c5f6" && console.error("The definition of 'CartStateUpdateMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartStateUpdateMutation);
|
|
11
11
|
const removeDiscountMutation = _CartStateRemoveDiscountMutation !== void 0 ? _CartStateRemoveDiscountMutation : (_CartStateRemoveDiscountMutation = require("../../__generated__/CartStateRemoveDiscountMutation.graphql"), _CartStateRemoveDiscountMutation.hash && _CartStateRemoveDiscountMutation.hash !== "a1ce9ee438492737524704a36bbf6713" && console.error("The definition of 'CartStateRemoveDiscountMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartStateRemoveDiscountMutation);
|
|
12
|
-
|
|
12
|
+
function CartState(_ref) {
|
|
13
13
|
let {
|
|
14
|
-
order,
|
|
14
|
+
order: orderKey,
|
|
15
15
|
children
|
|
16
16
|
} = _ref;
|
|
17
|
+
const order = (0, _reactRelay.useFragment)(_CartState_order !== void 0 ? _CartState_order : (_CartState_order = require("../../__generated__/CartState_order.graphql"), _CartState_order.hash && _CartState_order.hash !== "a4267a6dccade27c1af1b1a71922a10f" && console.error("The definition of 'CartState_order' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartState_order), orderKey);
|
|
17
18
|
const [error, setError] = (0, _react.useState)(null);
|
|
18
19
|
const [errors, setErrors] = (0, _react.useState)(null);
|
|
19
20
|
const environment = (0, _reactRelay.useRelayEnvironment)();
|
|
@@ -77,8 +78,4 @@ const CartState = _ref => {
|
|
|
77
78
|
errors: errors,
|
|
78
79
|
error: error
|
|
79
80
|
});
|
|
80
|
-
}
|
|
81
|
-
var _default = (0, _reactRelay.createFragmentContainer)(CartState, {
|
|
82
|
-
order: _CartState_order !== void 0 ? _CartState_order : (_CartState_order = require("../../__generated__/CartState_order.graphql"), _CartState_order.hash && _CartState_order.hash !== "a4267a6dccade27c1af1b1a71922a10f" && console.error("The definition of 'CartState_order' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartState_order)
|
|
83
|
-
});
|
|
84
|
-
exports.default = _default;
|
|
81
|
+
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CartTotals_order$key } from '../../__generated__/CartTotals_order.graphql';
|
|
2
3
|
interface CartTotalsProps {
|
|
3
|
-
order: CartTotals_order$
|
|
4
|
+
order: CartTotals_order$key;
|
|
4
5
|
onRemoveDiscount?: () => void;
|
|
5
6
|
allowDiscountRemoval?: boolean;
|
|
6
7
|
hideTotal?: boolean;
|
|
7
8
|
}
|
|
8
|
-
|
|
9
|
-
export
|
|
9
|
+
export default function CartTotals({ order: orderKey, onRemoveDiscount, allowDiscountRemoval, hideTotal, }: CartTotalsProps): React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default =
|
|
6
|
+
exports.default = CartTotals;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _reactRelay = require("react-relay");
|
|
9
9
|
var _relayRuntime = require("relay-runtime");
|
|
@@ -33,13 +33,14 @@ const PriceBlock = _ref => {
|
|
|
33
33
|
invert: invert
|
|
34
34
|
}), belowPrice));
|
|
35
35
|
};
|
|
36
|
-
|
|
36
|
+
function CartTotals(_ref2) {
|
|
37
37
|
let {
|
|
38
|
-
order,
|
|
38
|
+
order: orderKey,
|
|
39
39
|
onRemoveDiscount,
|
|
40
40
|
allowDiscountRemoval = true,
|
|
41
41
|
hideTotal = false
|
|
42
42
|
} = _ref2;
|
|
43
|
+
const order = (0, _reactRelay.useFragment)(_CartTotals_order !== void 0 ? _CartTotals_order : (_CartTotals_order = require("../../__generated__/CartTotals_order.graphql"), _CartTotals_order.hash && _CartTotals_order.hash !== "698ea8bf4dd91473e057e19df6dc51b1" && console.error("The definition of 'CartTotals_order' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartTotals_order), orderKey);
|
|
43
44
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
44
45
|
className: "cart__price-blocks",
|
|
45
46
|
"data-has-discount": Boolean(order.discount),
|
|
@@ -77,8 +78,4 @@ const CartTotals = _ref2 => {
|
|
|
77
78
|
price: order.total,
|
|
78
79
|
"data-line": "total"
|
|
79
80
|
}));
|
|
80
|
-
}
|
|
81
|
-
var _default = (0, _reactRelay.createFragmentContainer)(CartTotals, {
|
|
82
|
-
order: _CartTotals_order !== void 0 ? _CartTotals_order : (_CartTotals_order = require("../../__generated__/CartTotals_order.graphql"), _CartTotals_order.hash && _CartTotals_order.hash !== "698ea8bf4dd91473e057e19df6dc51b1" && console.error("The definition of 'CartTotals_order' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartTotals_order)
|
|
83
|
-
});
|
|
84
|
-
exports.default = _default;
|
|
81
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IdentityBox_identity$key } from '__generated__/IdentityBox_identity.graphql';
|
|
3
|
+
interface IdentityBox_props {
|
|
4
|
+
identity: IdentityBox_identity$key;
|
|
5
|
+
title: React.ReactNode;
|
|
6
|
+
children: {
|
|
7
|
+
icon: React.ReactNode;
|
|
8
|
+
};
|
|
9
|
+
onClick: () => void;
|
|
10
|
+
}
|
|
11
|
+
export default function IdentityBox({ identity: identityKey, title, onClick, children: { icon }, }: IdentityBox_props): React.JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -3,20 +3,21 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default =
|
|
6
|
+
exports.default = IdentityBox;
|
|
7
7
|
var _reactRelay = require("react-relay");
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _IdentityBox_identity;
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
11
|
+
function IdentityBox(_ref) {
|
|
12
12
|
let {
|
|
13
|
-
identity,
|
|
13
|
+
identity: identityKey,
|
|
14
14
|
title,
|
|
15
15
|
onClick,
|
|
16
16
|
children: {
|
|
17
17
|
icon
|
|
18
18
|
}
|
|
19
19
|
} = _ref;
|
|
20
|
+
const identity = (0, _reactRelay.useFragment)(_IdentityBox_identity !== void 0 ? _IdentityBox_identity : (_IdentityBox_identity = require("../../__generated__/IdentityBox_identity.graphql"), _IdentityBox_identity.hash && _IdentityBox_identity.hash !== "d93d9cb6f2c86580fb57b4de6782ec9d" && console.error("The definition of 'IdentityBox_identity' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _IdentityBox_identity), identityKey);
|
|
20
21
|
return /*#__PURE__*/_react.default.createElement("button", {
|
|
21
22
|
className: "cart__review__button",
|
|
22
23
|
type: "button",
|
|
@@ -34,8 +35,4 @@ const IdentityBox = _ref => {
|
|
|
34
35
|
}, identity.phoneFormatted), identity.vatNumber && /*#__PURE__*/_react.default.createElement("div", {
|
|
35
36
|
className: "cart__review__section"
|
|
36
37
|
}, "VAT: ", identity.vatNumber));
|
|
37
|
-
}
|
|
38
|
-
var _default = (0, _reactRelay.createFragmentContainer)(IdentityBox, {
|
|
39
|
-
identity: _IdentityBox_identity !== void 0 ? _IdentityBox_identity : (_IdentityBox_identity = require("../../__generated__/IdentityBox_identity.graphql"), _IdentityBox_identity.hash && _IdentityBox_identity.hash !== "d93d9cb6f2c86580fb57b4de6782ec9d" && console.error("The definition of 'IdentityBox_identity' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _IdentityBox_identity)
|
|
40
|
-
});
|
|
41
|
-
exports.default = _default;
|
|
38
|
+
}
|
|
@@ -12,7 +12,7 @@ var _utils = require("../../utils");
|
|
|
12
12
|
var _Select = _interopRequireDefault(require("../Select"));
|
|
13
13
|
var _useFontStyle = _interopRequireDefault(require("../useFontStyle"));
|
|
14
14
|
var _Stylesheet = _interopRequireDefault(require("../Stylesheet"));
|
|
15
|
-
var
|
|
15
|
+
var _CharacterViewer_collection, _CharacterViewer_family, _CharacterViewer_Query, _CharacterViewer_SlugQuery;
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
17
|
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); }
|
|
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; }
|
|
@@ -99,11 +99,12 @@ const StyleSelect = _ref => {
|
|
|
99
99
|
onChange: handleChange
|
|
100
100
|
});
|
|
101
101
|
};
|
|
102
|
-
|
|
102
|
+
function CharacterViewer(_ref3) {
|
|
103
103
|
var _collection$children, _collection$fontStyle, _collection$children2, _collection$children3, _collection$children4, _fontStyle$characterB, _fontStyle$characterB2, _fontStyle$featureCha, _fontStyle$featureCha2, _fontStyle$featureCha3, _fontStyle$featureCha4, _fontStyle$characterB3, _fontStyle$featureCha5, _fontStyle$featureCha6;
|
|
104
104
|
let {
|
|
105
|
-
collection
|
|
105
|
+
collection: collectionKey
|
|
106
106
|
} = _ref3;
|
|
107
|
+
const collection = (0, _reactRelay.useFragment)(_CharacterViewer_collection !== void 0 ? _CharacterViewer_collection : (_CharacterViewer_collection = require("../../__generated__/CharacterViewer_collection.graphql"), _CharacterViewer_collection.hash && _CharacterViewer_collection.hash !== "2f49d241268129a888942889cad0bebb" && console.error("The definition of 'CharacterViewer_collection' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CharacterViewer_collection), collectionKey);
|
|
107
108
|
const allCollections = [collectionInfo(collection)].concat(((_collection$children = collection.children) === null || _collection$children === void 0 ? void 0 : _collection$children.map(collectionInfo)) ?? []);
|
|
108
109
|
const initialFontStyle = collection.featureStyle ?? ((_collection$fontStyle = collection.fontStyles) === null || _collection$fontStyle === void 0 ? void 0 : _collection$fontStyle[0]) ?? ((_collection$children2 = collection.children) === null || _collection$children2 === void 0 ? void 0 : (_collection$children3 = _collection$children2[0]) === null || _collection$children3 === void 0 ? void 0 : (_collection$children4 = _collection$children3.fontStyles) === null || _collection$children4 === void 0 ? void 0 : _collection$children4[0]);
|
|
109
110
|
let initialVariableSettings;
|
|
@@ -290,11 +291,8 @@ const CharacterViewerComponent = _ref3 => {
|
|
|
290
291
|
"data-selected": (selectedFeatureCharacter === null || selectedFeatureCharacter === void 0 ? void 0 : selectedFeatureCharacter[0]) === chars && (selectedFeatureCharacter === null || selectedFeatureCharacter === void 0 ? void 0 : selectedFeatureCharacter[1]) === feature
|
|
291
292
|
}, chars))));
|
|
292
293
|
}))) : null);
|
|
293
|
-
}
|
|
294
|
+
}
|
|
294
295
|
_CharacterViewer_family !== void 0 ? _CharacterViewer_family : (_CharacterViewer_family = require("../../__generated__/CharacterViewer_family.graphql"), _CharacterViewer_family.hash && _CharacterViewer_family.hash !== "5f4b83f16d13a07812c8dcb035fbf47c" && console.error("The definition of 'CharacterViewer_family' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CharacterViewer_family);
|
|
295
|
-
const CharacterViewer = (0, _reactRelay.createFragmentContainer)(CharacterViewerComponent, {
|
|
296
|
-
collection: _CharacterViewer_collection !== void 0 ? _CharacterViewer_collection : (_CharacterViewer_collection = require("../../__generated__/CharacterViewer_collection.graphql"), _CharacterViewer_collection.hash && _CharacterViewer_collection.hash !== "2f49d241268129a888942889cad0bebb" && console.error("The definition of 'CharacterViewer_collection' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CharacterViewer_collection)
|
|
297
|
-
});
|
|
298
296
|
function CharacterViewerIdQueryRenderer(_ref6) {
|
|
299
297
|
let {
|
|
300
298
|
collectionId
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CouponText_coupon$key } from '__generated__/CouponText_coupon.graphql';
|
|
2
3
|
interface CouponText_props {
|
|
3
|
-
coupon: CouponText_coupon$
|
|
4
|
+
coupon: CouponText_coupon$key;
|
|
4
5
|
subtract?: number;
|
|
5
6
|
}
|
|
6
|
-
|
|
7
|
-
export
|
|
7
|
+
export default function CouponText({ coupon: couponKey, subtract, }: CouponText_props): React.JSX.Element | null;
|
|
8
|
+
export {};
|
|
@@ -3,18 +3,19 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default =
|
|
6
|
+
exports.default = CouponText;
|
|
7
7
|
var _reactRelay = require("react-relay");
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _Price = require("../Price");
|
|
10
10
|
var _CouponText_coupon;
|
|
11
11
|
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); }
|
|
12
12
|
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; }
|
|
13
|
-
|
|
13
|
+
function CouponText(_ref) {
|
|
14
14
|
let {
|
|
15
|
-
coupon,
|
|
15
|
+
coupon: couponKey,
|
|
16
16
|
subtract = 0
|
|
17
17
|
} = _ref;
|
|
18
|
+
const coupon = (0, _reactRelay.useFragment)(_CouponText_coupon !== void 0 ? _CouponText_coupon : (_CouponText_coupon = require("../../__generated__/CouponText_coupon.graphql"), _CouponText_coupon.hash && _CouponText_coupon.hash !== "1d8116645b5f96a820af21db9e15f375" && console.error("The definition of 'CouponText_coupon' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CouponText_coupon), couponKey);
|
|
18
19
|
if (coupon.type === 'credit') {
|
|
19
20
|
const amountRemaining = {
|
|
20
21
|
...coupon.creditAmountRemaining,
|
|
@@ -29,8 +30,4 @@ const CouponText = _ref => {
|
|
|
29
30
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, `${coupon.percentAmount}% off`);
|
|
30
31
|
}
|
|
31
32
|
return null;
|
|
32
|
-
}
|
|
33
|
-
var _default = (0, _reactRelay.createFragmentContainer)(CouponText, {
|
|
34
|
-
coupon: _CouponText_coupon !== void 0 ? _CouponText_coupon : (_CouponText_coupon = require("../../__generated__/CouponText_coupon.graphql"), _CouponText_coupon.hash && _CouponText_coupon.hash !== "1d8116645b5f96a820af21db9e15f375" && console.error("The definition of 'CouponText_coupon' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CouponText_coupon)
|
|
35
|
-
});
|
|
36
|
-
exports.default = _default;
|
|
33
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FamilyList_node$key } from '__generated__/FamilyList_node.graphql';
|
|
2
3
|
interface FamilyList_props {
|
|
3
|
-
node: FamilyList_node$
|
|
4
|
+
node: FamilyList_node$key;
|
|
4
5
|
text?: string;
|
|
5
6
|
}
|
|
6
|
-
|
|
7
|
-
export
|
|
7
|
+
export default function FamilyList({ node: nodeKey, text }: FamilyList_props): React.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default =
|
|
6
|
+
exports.default = FamilyList;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _reactRelay = require("react-relay");
|
|
9
9
|
var _FontStyle = _interopRequireDefault(require("../FontStyle"));
|
|
@@ -13,12 +13,13 @@ const styleName = (normal, localized) => {
|
|
|
13
13
|
if (normal === localized) return normal;
|
|
14
14
|
return `${normal} ${localized}`;
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
function FamilyList(_ref) {
|
|
17
17
|
var _node$fontStyles;
|
|
18
18
|
let {
|
|
19
|
-
node,
|
|
19
|
+
node: nodeKey,
|
|
20
20
|
text
|
|
21
21
|
} = _ref;
|
|
22
|
+
const node = (0, _reactRelay.useFragment)(_FamilyList_node !== void 0 ? _FamilyList_node : (_FamilyList_node = require("../../__generated__/FamilyList_node.graphql"), _FamilyList_node.hash && _FamilyList_node.hash !== "3e59cb2493f7c235fe19c70689ca2fc6" && console.error("The definition of 'FamilyList_node' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _FamilyList_node), nodeKey);
|
|
22
23
|
return /*#__PURE__*/_react.default.createElement("ul", {
|
|
23
24
|
className: "font-family-block__list",
|
|
24
25
|
style: {
|
|
@@ -30,8 +31,4 @@ const FamilyList = _ref => {
|
|
|
30
31
|
key: i,
|
|
31
32
|
className: "font-family-block__list__item"
|
|
32
33
|
}, /*#__PURE__*/_react.default.createElement("span", null, text || styleName(style.name, style.name_localized), " "))));
|
|
33
|
-
}
|
|
34
|
-
var _default = (0, _reactRelay.createFragmentContainer)(FamilyList, {
|
|
35
|
-
node: _FamilyList_node !== void 0 ? _FamilyList_node : (_FamilyList_node = require("../../__generated__/FamilyList_node.graphql"), _FamilyList_node.hash && _FamilyList_node.hash !== "3e59cb2493f7c235fe19c70689ca2fc6" && console.error("The definition of 'FamilyList_node' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _FamilyList_node)
|
|
36
|
-
});
|
|
37
|
-
exports.default = _default;
|
|
34
|
+
}
|