fontdue-js 2.0.0-alpha5 → 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.
Files changed (47) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/README.md +9 -24
  3. package/dist/components/Cart/CartItem/VariableTextInput.d.ts +10 -0
  4. package/dist/components/Cart/CartItem/VariableTextInput.js +66 -92
  5. package/dist/components/Cart/CartItem/index.d.ts +7 -6
  6. package/dist/components/Cart/CartItem/index.js +9 -13
  7. package/dist/components/Cart/CartState.d.ts +4 -4
  8. package/dist/components/Cart/CartState.js +5 -8
  9. package/dist/components/Cart/CartTotals.d.ts +5 -4
  10. package/dist/components/Cart/CartTotals.js +5 -8
  11. package/dist/components/Cart/IdentityBox.d.ts +12 -0
  12. package/dist/components/Cart/IdentityBox.js +5 -8
  13. package/dist/components/CharacterViewer/index.js +5 -7
  14. package/dist/components/CouponText/index.d.ts +5 -4
  15. package/dist/components/CouponText/index.js +5 -8
  16. package/dist/components/Family/FamilyList.d.ts +5 -4
  17. package/dist/components/Family/FamilyList.js +5 -8
  18. package/dist/components/Family/index.d.ts +5 -4
  19. package/dist/components/Family/index.js +5 -9
  20. package/dist/components/FontStyle/index.d.ts +4 -6
  21. package/dist/components/FontStyle/index.js +5 -10
  22. package/dist/components/SelectButton/index.d.ts +5 -6
  23. package/dist/components/SelectButton/index.js +5 -9
  24. package/dist/components/StoreModal/StoreModalBundleButton.d.ts +5 -6
  25. package/dist/components/StoreModal/StoreModalBundleButton.js +7 -10
  26. package/dist/components/StoreModal/StoreModalFamily.d.ts +5 -4
  27. package/dist/components/StoreModal/StoreModalFamily.js +5 -8
  28. package/dist/components/StoreModal/StoreModalFamilyButton.d.ts +5 -6
  29. package/dist/components/StoreModal/StoreModalFamilyButton.js +5 -9
  30. package/dist/components/StoreModal/StoreModalReviewIdentity.d.ts +5 -4
  31. package/dist/components/StoreModal/StoreModalReviewIdentity.js +6 -9
  32. package/dist/components/StoreModal/StoreModalStyleButton.d.ts +5 -6
  33. package/dist/components/StoreModal/StoreModalStyleButton.js +5 -9
  34. package/dist/components/StoreModalProductLicenseSelection/StoreModalProductLicense.d.ts +5 -4
  35. package/dist/components/StoreModalProductLicenseSelection/StoreModalProductLicense.js +5 -8
  36. package/dist/components/StoreModalProductLicenseSelection/index.d.ts +5 -4
  37. package/dist/components/StoreModalProductLicenseSelection/index.js +5 -8
  38. package/dist/components/TypeTester/TypeTesterFeatures.d.ts +5 -4
  39. package/dist/components/TypeTester/TypeTesterFeatures.js +5 -8
  40. package/dist/components/TypeTester/TypeTesterFloatingToolbar.d.ts +5 -4
  41. package/dist/components/TypeTester/TypeTesterFloatingToolbar.js +5 -8
  42. package/dist/components/TypeTester/TypeTesterStyleSelectData.d.ts +7 -6
  43. package/dist/components/TypeTester/TypeTesterStyleSelectData.js +7 -10
  44. package/dist/components/TypeTesters/index.js +6 -8
  45. package/dist/components/VariableTableAmounts/index.d.ts +7 -6
  46. package/dist/components/VariableTableAmounts/index.js +7 -10
  47. package/package.json +1 -1
@@ -1,7 +1,8 @@
1
- import { Family_node$data } from '__generated__/Family_node.graphql';
1
+ import React from 'react';
2
+ import { Family_node$key } from '__generated__/Family_node.graphql';
2
3
  interface FamilyBase_props {
3
- node: Family_node$data;
4
+ node: Family_node$key;
4
5
  size?: string;
5
6
  }
6
- declare const Family: import("react-relay").Container<Omit<FamilyBase_props, "relay">>;
7
- export default Family;
7
+ export default function Family({ node: nodeKey, size }: FamilyBase_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 = void 0;
6
+ exports.default = Family;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
8
  var _reactRelay = require("react-relay");
9
9
  var _reactRedux = require("react-redux");
@@ -17,12 +17,13 @@ var _Family_node;
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; }
20
- const FamilyBase = _ref => {
20
+ function Family(_ref) {
21
21
  var _node$families;
22
22
  let {
23
- node,
23
+ node: nodeKey,
24
24
  size
25
25
  } = _ref;
26
+ const node = (0, _reactRelay.useFragment)(_Family_node !== void 0 ? _Family_node : (_Family_node = require("../../__generated__/Family_node.graphql"), _Family_node.hash && _Family_node.hash !== "b51af1e6bc979d5219f04c848dc3d76d" && console.error("The definition of 'Family_node' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _Family_node), nodeKey);
26
27
  const precartOpen = (0, _reactRedux.useSelector)(state => state.precartOpen);
27
28
  const selector = node.sku ? (0, _reducer.isSelected)(node.sku.id) : () => false;
28
29
  const selected = (0, _reactRedux.useSelector)(selector);
@@ -72,9 +73,4 @@ const FamilyBase = _ref => {
72
73
  }) : /*#__PURE__*/_react.default.createElement(_FamilyList.default, {
73
74
  node: node
74
75
  }))));
75
- };
76
- const Family = (0, _reactRelay.createFragmentContainer)(FamilyBase, {
77
- node: _Family_node !== void 0 ? _Family_node : (_Family_node = require("../../__generated__/Family_node.graphql"), _Family_node.hash && _Family_node.hash !== "b51af1e6bc979d5219f04c848dc3d76d" && console.error("The definition of 'Family_node' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _Family_node)
78
- });
79
- var _default = Family;
80
- exports.default = _default;
76
+ }
@@ -1,9 +1,7 @@
1
1
  import React from 'react';
2
- import { RelayProp } from 'react-relay';
3
- import { FontStyle_fontStyle$data } from '../../__generated__/FontStyle_fontStyle.graphql';
2
+ import { FontStyle_fontStyle$key } from '../../__generated__/FontStyle_fontStyle.graphql';
4
3
  interface FontStyleProps {
5
- fontStyle: FontStyle_fontStyle$data;
6
- relay: RelayProp;
4
+ fontStyle: FontStyle_fontStyle$key;
7
5
  Component?: 'div' | 'span' | 'li';
8
6
  style?: React.CSSProperties;
9
7
  children: ((props: {
@@ -11,5 +9,5 @@ interface FontStyleProps {
11
9
  style: React.CSSProperties;
12
10
  }) => React.ReactNode) | React.ReactNode;
13
11
  }
14
- declare const _default: import("react-relay").Container<Omit<Omit<React.HTMLAttributes<HTMLDivElement | HTMLSpanElement>, "children"> & FontStyleProps, "relay">>;
15
- export default _default;
12
+ export default function FontStyle({ Component, fontStyle: fontStyleKey, style, children, ...rest }: Omit<React.HTMLAttributes<HTMLDivElement | HTMLSpanElement>, 'children'> & FontStyleProps): JSX.Element;
13
+ export {};
@@ -3,22 +3,21 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ exports.default = FontStyle;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _reactRelay = require("react-relay");
9
9
  var _useFontStyle = _interopRequireDefault(require("../useFontStyle"));
10
10
  var _FontStyle_fontStyle;
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
- const FontStyle = _ref => {
12
+ function FontStyle(_ref) {
13
13
  let {
14
14
  Component = 'div',
15
- fontStyle,
15
+ fontStyle: fontStyleKey,
16
16
  style,
17
17
  children,
18
- relay,
19
- // eslint-disable-line
20
18
  ...rest
21
19
  } = _ref;
20
+ const fontStyle = (0, _reactRelay.useFragment)(_FontStyle_fontStyle !== void 0 ? _FontStyle_fontStyle : (_FontStyle_fontStyle = require("../../__generated__/FontStyle_fontStyle.graphql"), _FontStyle_fontStyle.hash && _FontStyle_fontStyle.hash !== "c745ef2ecf5b7f3d0793bea2024d1e69" && console.error("The definition of 'FontStyle_fontStyle' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _FontStyle_fontStyle), fontStyleKey);
22
21
  const {
23
22
  cssFamily,
24
23
  name
@@ -42,8 +41,4 @@ const FontStyle = _ref => {
42
41
  loaded,
43
42
  style: fontStyleStyle
44
43
  }) : children);
45
- };
46
- var _default = (0, _reactRelay.createFragmentContainer)(FontStyle, {
47
- fontStyle: _FontStyle_fontStyle !== void 0 ? _FontStyle_fontStyle : (_FontStyle_fontStyle = require("../../__generated__/FontStyle_fontStyle.graphql"), _FontStyle_fontStyle.hash && _FontStyle_fontStyle.hash !== "c745ef2ecf5b7f3d0793bea2024d1e69" && console.error("The definition of 'FontStyle_fontStyle' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _FontStyle_fontStyle)
48
- });
49
- exports.default = _default;
44
+ }
@@ -1,10 +1,9 @@
1
1
  import React from 'react';
2
- import { RelayProp } from 'react-relay';
3
- import { SelectButton_sku$data } from '__generated__/SelectButton_sku.graphql';
2
+ import { SelectButton_moduleProps } from '../ComponentsContext';
3
+ import { SelectButton_sku$key } from '__generated__/SelectButton_sku.graphql';
4
4
  interface SelectButton_props {
5
- relay: RelayProp;
6
5
  productId: string;
7
- sku: SelectButton_sku$data;
6
+ sku: SelectButton_sku$key;
8
7
  }
9
- declare const _default: import("react-relay").Container<Omit<SelectButton_props & React.HTMLAttributes<HTMLButtonElement>, "relay">>;
10
- export default _default;
8
+ export default function SelectButton({ productId, sku: skuKey, ...rest }: SelectButton_props & SelectButton_moduleProps['innerProps']): React.JSX.Element;
9
+ export {};
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ exports.default = SelectButton;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
8
  var _reactRelay = require("react-relay");
9
9
  var _reactRedux = require("react-redux");
@@ -46,13 +46,13 @@ const DefaultSelectButton = _ref => {
46
46
  className: "select-button"
47
47
  }), config.selectButtonLabel);
48
48
  };
49
- const SelectButton = _ref2 => {
49
+ function SelectButton(_ref2) {
50
50
  let {
51
- relay,
52
51
  productId,
53
- sku,
52
+ sku: skuKey,
54
53
  ...rest
55
54
  } = _ref2;
55
+ const sku = (0, _reactRelay.useFragment)(_SelectButton_sku !== void 0 ? _SelectButton_sku : (_SelectButton_sku = require("../../__generated__/SelectButton_sku.graphql"), _SelectButton_sku.hash && _SelectButton_sku.hash !== "f4052dc18c36cb8486c8ac985820a108" && console.error("The definition of 'SelectButton_sku' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _SelectButton_sku), skuKey);
56
56
  const dispatch = (0, _reactRedux.useDispatch)();
57
57
  const components = (0, _react.useContext)(_ComponentsContext.default);
58
58
  const ButtonComponent = components.SelectButton || DefaultSelectButton;
@@ -78,8 +78,4 @@ const SelectButton = _ref2 => {
78
78
  sku: sku
79
79
  }))
80
80
  });
81
- };
82
- var _default = (0, _reactRelay.createFragmentContainer)(SelectButton, {
83
- sku: _SelectButton_sku !== void 0 ? _SelectButton_sku : (_SelectButton_sku = require("../../__generated__/SelectButton_sku.graphql"), _SelectButton_sku.hash && _SelectButton_sku.hash !== "f4052dc18c36cb8486c8ac985820a108" && console.error("The definition of 'SelectButton_sku' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _SelectButton_sku)
84
- });
85
- exports.default = _default;
81
+ }
@@ -1,9 +1,8 @@
1
- import { RelayProp } from 'react-relay';
2
- import { StoreModalBundleButton_bundle$data } from '../../__generated__/StoreModalBundleButton_bundle.graphql';
1
+ import React from 'react';
2
+ import { StoreModalBundleButton_bundle$key } from '../../__generated__/StoreModalBundleButton_bundle.graphql';
3
3
  type StoreModalBundleButtonProps = {
4
- relay: RelayProp;
5
- bundle: StoreModalBundleButton_bundle$data;
4
+ bundle: StoreModalBundleButton_bundle$key;
6
5
  onSelectSku: (skuId: string, selected: boolean) => void;
7
6
  };
8
- declare const _default: import("react-relay").Container<Omit<StoreModalBundleButtonProps, "relay">>;
9
- export default _default;
7
+ export default function StoreModalBundleButton({ bundle: bundleKey, onSelectSku, ...rest }: StoreModalBundleButtonProps): React.JSX.Element | null;
8
+ export {};
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ exports.default = StoreModalBundleButton;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _reactRelay = require("react-relay");
9
9
  var _reactRedux = require("react-redux");
@@ -16,15 +16,16 @@ var _StoreModalBundleButton_bundle;
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
17
  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); }
18
18
  const THIN_SPACE = '\u2009';
19
- const StoreModalBundleButton = _ref => {
19
+ function StoreModalBundleButton(_ref) {
20
+ var _bundle$sku;
20
21
  let {
21
- bundle,
22
+ bundle: bundleKey,
22
23
  onSelectSku,
23
- relay,
24
24
  ...rest
25
25
  } = _ref;
26
+ const bundle = (0, _reactRelay.useFragment)(_StoreModalBundleButton_bundle !== void 0 ? _StoreModalBundleButton_bundle : (_StoreModalBundleButton_bundle = require("../../__generated__/StoreModalBundleButton_bundle.graphql"), _StoreModalBundleButton_bundle.hash && _StoreModalBundleButton_bundle.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_bundle), bundleKey);
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));
26
28
  if (!bundle.sku || !bundle.fontStyles) return null;
27
- const selected = (0, _reactRedux.useSelector)((0, _reducer.isSelected)(bundle.sku.id));
28
29
  const handleSelect = () => {
29
30
  if (!bundle.sku) return;
30
31
  onSelectSku(bundle.sku.id, !selected);
@@ -45,8 +46,4 @@ const StoreModalBundleButton = _ref => {
45
46
  showCollectionSavings: !selected
46
47
  })
47
48
  });
48
- };
49
- var _default = (0, _reactRelay.createFragmentContainer)(StoreModalBundleButton, {
50
- bundle: _StoreModalBundleButton_bundle !== void 0 ? _StoreModalBundleButton_bundle : (_StoreModalBundleButton_bundle = require("../../__generated__/StoreModalBundleButton_bundle.graphql"), _StoreModalBundleButton_bundle.hash && _StoreModalBundleButton_bundle.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_bundle)
51
- });
52
- exports.default = _default;
49
+ }
@@ -1,7 +1,8 @@
1
- import { StoreModalFamily_collection$data } from '../../__generated__/StoreModalFamily_collection.graphql';
1
+ import React from 'react';
2
+ import { StoreModalFamily_collection$key } from '../../__generated__/StoreModalFamily_collection.graphql';
2
3
  interface StoreModalFamilyProps {
3
- collection: StoreModalFamily_collection$data;
4
+ collection: StoreModalFamily_collection$key;
4
5
  onSelect: (skuId: string, selected: boolean) => void;
5
6
  }
6
- declare const _default: import("react-relay").Container<Omit<StoreModalFamilyProps, "relay">>;
7
- export default _default;
7
+ export default function StoreModalFamily({ collection: collectionKey, onSelect, }: StoreModalFamilyProps): React.JSX.Element | null;
8
+ export {};
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ exports.default = StoreModalFamily;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
8
  var _reactRelay = require("react-relay");
9
9
  var _StoreModalFamilyButton = _interopRequireDefault(require("./StoreModalFamilyButton"));
@@ -30,12 +30,13 @@ const stylesGrouped = collection => {
30
30
  if (!collection.fontStyles) return [];
31
31
  return chunkConsecutiveBy(collection.fontStyles, (left, right) => left.cssFamily === right.cssFamily && left.cssWeight === right.cssWeight && left.cssStretch === right.cssStretch);
32
32
  };
33
- const StoreModalFamily = _ref => {
33
+ function StoreModalFamily(_ref) {
34
34
  var _collection$bundles;
35
35
  let {
36
- collection,
36
+ collection: collectionKey,
37
37
  onSelect
38
38
  } = _ref;
39
+ const collection = (0, _reactRelay.useFragment)(_StoreModalFamily_collection !== void 0 ? _StoreModalFamily_collection : (_StoreModalFamily_collection = require("../../__generated__/StoreModalFamily_collection.graphql"), _StoreModalFamily_collection.hash && _StoreModalFamily_collection.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_collection), collectionKey);
39
40
  const fontStyles = (0, _react.useMemo)(() => stylesGrouped(collection), [collection]);
40
41
  if ((fontStyles === null || fontStyles === void 0 ? void 0 : fontStyles.length) === 0 && collection.collectionType === 'superfamily' && !collection.sku) return null;
41
42
  return /*#__PURE__*/_react.default.createElement(_StoreModalFamily.default, null, {
@@ -58,8 +59,4 @@ const StoreModalFamily = _ref => {
58
59
  isVariableFont: collection.isVariableFont
59
60
  })))
60
61
  });
61
- };
62
- var _default = (0, _reactRelay.createFragmentContainer)(StoreModalFamily, {
63
- collection: _StoreModalFamily_collection !== void 0 ? _StoreModalFamily_collection : (_StoreModalFamily_collection = require("../../__generated__/StoreModalFamily_collection.graphql"), _StoreModalFamily_collection.hash && _StoreModalFamily_collection.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_collection)
64
- });
65
- exports.default = _default;
62
+ }
@@ -1,9 +1,8 @@
1
- import { RelayProp } from 'react-relay';
2
- import { StoreModalFamilyButton_collection$data } from '../../__generated__/StoreModalFamilyButton_collection.graphql';
1
+ import React from 'react';
2
+ import { StoreModalFamilyButton_collection$key } from '../../__generated__/StoreModalFamilyButton_collection.graphql';
3
3
  interface FamilyButtonProps {
4
- relay: RelayProp;
5
- collection: StoreModalFamilyButton_collection$data;
4
+ collection: StoreModalFamilyButton_collection$key;
6
5
  onSelectSku: (skuId: string, selected: boolean) => void;
7
6
  }
8
- declare const _default: import("react-relay").Container<Omit<FamilyButtonProps, "relay">>;
9
- export default _default;
7
+ export default function FamilyButton({ collection: collectionKey, onSelectSku, ...rest }: FamilyButtonProps): React.JSX.Element;
8
+ export {};
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ exports.default = FamilyButton;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _reactRelay = require("react-relay");
9
9
  var _reactRedux = require("react-redux");
@@ -25,13 +25,13 @@ const getSuffix = collection => {
25
25
  if (collection.isVariableFont) return;
26
26
  return ' ' + getFamilyType(collection);
27
27
  };
28
- const FamilyButton = _ref => {
28
+ function FamilyButton(_ref) {
29
29
  let {
30
- collection,
30
+ collection: collectionKey,
31
31
  onSelectSku,
32
- relay,
33
32
  ...rest
34
33
  } = _ref;
34
+ const collection = (0, _reactRelay.useFragment)(_StoreModalFamilyButton_collection !== void 0 ? _StoreModalFamilyButton_collection : (_StoreModalFamilyButton_collection = require("../../__generated__/StoreModalFamilyButton_collection.graphql"), _StoreModalFamilyButton_collection.hash && _StoreModalFamilyButton_collection.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_collection), 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 = () => {
@@ -67,8 +67,4 @@ const FamilyButton = _ref => {
67
67
  format: _Price.PriceFormat.Truncated
68
68
  })
69
69
  });
70
- };
71
- var _default = (0, _reactRelay.createFragmentContainer)(FamilyButton, {
72
- collection: _StoreModalFamilyButton_collection !== void 0 ? _StoreModalFamilyButton_collection : (_StoreModalFamilyButton_collection = require("../../__generated__/StoreModalFamilyButton_collection.graphql"), _StoreModalFamilyButton_collection.hash && _StoreModalFamilyButton_collection.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_collection)
73
- });
74
- exports.default = _default;
70
+ }
@@ -1,6 +1,7 @@
1
- import { StoreModalReviewIdentity_identity$data } from '../../__generated__/StoreModalReviewIdentity_identity.graphql';
1
+ import React from 'react';
2
+ import { StoreModalReviewIdentity_identity$key } from '../../__generated__/StoreModalReviewIdentity_identity.graphql';
2
3
  interface StoreModalReviewIdentity_props {
3
- identity: StoreModalReviewIdentity_identity$data;
4
+ identity: StoreModalReviewIdentity_identity$key;
4
5
  }
5
- declare const _default: import("react-relay").Container<Omit<StoreModalReviewIdentity_props, "relay">>;
6
- export default _default;
6
+ export default function StoreModalReviewIdentity({ identity: identityKey, }: StoreModalReviewIdentity_props): React.JSX.Element;
7
+ export {};
@@ -3,19 +3,16 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ exports.default = StoreModalReviewIdentity;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
8
  var _reactRelay = require("react-relay");
9
9
  var _StoreModalReviewIdentity_identity;
10
10
  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); }
11
11
  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; }
12
- const StoreModalReviewIdentity = _ref => {
12
+ function StoreModalReviewIdentity(_ref) {
13
13
  let {
14
- identity
14
+ identity: identityKey
15
15
  } = _ref;
16
- 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), identity.vatNumber));
17
- };
18
- var _default = (0, _reactRelay.createFragmentContainer)(StoreModalReviewIdentity, {
19
- identity: _StoreModalReviewIdentity_identity !== void 0 ? _StoreModalReviewIdentity_identity : (_StoreModalReviewIdentity_identity = require("../../__generated__/StoreModalReviewIdentity_identity.graphql"), _StoreModalReviewIdentity_identity.hash && _StoreModalReviewIdentity_identity.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_identity)
20
- });
21
- exports.default = _default;
16
+ const identity = (0, _reactRelay.useFragment)(_StoreModalReviewIdentity_identity !== void 0 ? _StoreModalReviewIdentity_identity : (_StoreModalReviewIdentity_identity = require("../../__generated__/StoreModalReviewIdentity_identity.graphql"), _StoreModalReviewIdentity_identity.hash && _StoreModalReviewIdentity_identity.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_identity), identityKey);
17
+ 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));
18
+ }
@@ -1,10 +1,9 @@
1
- import { RelayProp } from 'react-relay';
2
- import { StoreModalStyleButton_fontStyle$data } from '__generated__/StoreModalStyleButton_fontStyle.graphql';
1
+ import React from 'react';
2
+ import { StoreModalStyleButton_fontStyle$key } from '__generated__/StoreModalStyleButton_fontStyle.graphql';
3
3
  type StoreModalStyleButtonProps = {
4
- relay: RelayProp;
5
- fontStyle: StoreModalStyleButton_fontStyle$data;
4
+ fontStyle: StoreModalStyleButton_fontStyle$key;
6
5
  onSelectSku: (skuId: string, selected: boolean) => void;
7
6
  isVariableFont: boolean;
8
7
  };
9
- declare const _default: import("react-relay").Container<Omit<StoreModalStyleButtonProps, "relay">>;
10
- export default _default;
8
+ export default function StoreModalStyleButton({ fontStyle: fontStyleKey, onSelectSku, isVariableFont, ...rest }: StoreModalStyleButtonProps): React.JSX.Element;
9
+ export {};
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ exports.default = StoreModalStyleButton;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _reactRelay = require("react-relay");
9
9
  var _reactRedux = require("react-redux");
@@ -16,15 +16,15 @@ var _utils = require("../../utils");
16
16
  var _StoreModalStyleButton_fontStyle;
17
17
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
18
  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); }
19
- const StoreModalStyleButton = _ref => {
19
+ function StoreModalStyleButton(_ref) {
20
20
  var _fontStyle$variableIn;
21
21
  let {
22
- fontStyle,
22
+ fontStyle: fontStyleKey,
23
23
  onSelectSku,
24
- relay,
25
24
  isVariableFont,
26
25
  ...rest
27
26
  } = _ref;
27
+ const fontStyle = (0, _reactRelay.useFragment)(_StoreModalStyleButton_fontStyle !== void 0 ? _StoreModalStyleButton_fontStyle : (_StoreModalStyleButton_fontStyle = require("../../__generated__/StoreModalStyleButton_fontStyle.graphql"), _StoreModalStyleButton_fontStyle.hash && _StoreModalStyleButton_fontStyle.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_fontStyle), fontStyleKey);
28
28
  const selected = (0, _reactRedux.useSelector)((0, _reducer.isSelected)(fontStyle.sku ? fontStyle.sku.id : fontStyle.id));
29
29
  const handleSelect = () => {
30
30
  if (!fontStyle.sku) return;
@@ -50,8 +50,4 @@ const StoreModalStyleButton = _ref => {
50
50
  showCollectionSavings: !selected
51
51
  }) : null
52
52
  });
53
- };
54
- var _default = (0, _reactRelay.createFragmentContainer)(StoreModalStyleButton, {
55
- fontStyle: _StoreModalStyleButton_fontStyle !== void 0 ? _StoreModalStyleButton_fontStyle : (_StoreModalStyleButton_fontStyle = require("../../__generated__/StoreModalStyleButton_fontStyle.graphql"), _StoreModalStyleButton_fontStyle.hash && _StoreModalStyleButton_fontStyle.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_fontStyle)
56
- });
57
- exports.default = _default;
53
+ }
@@ -1,6 +1,7 @@
1
- import { StoreModalProductLicense_license$data } from '../../__generated__/StoreModalProductLicense_license.graphql';
1
+ import React from 'react';
2
+ import { StoreModalProductLicense_license$key } from '../../__generated__/StoreModalProductLicense_license.graphql';
2
3
  interface StoreModalProductLicenseProps {
3
- license: StoreModalProductLicense_license$data;
4
+ license: StoreModalProductLicense_license$key;
4
5
  }
5
- declare const _default: import("react-relay").Container<Omit<StoreModalProductLicenseProps, "relay">>;
6
- export default _default;
6
+ export default function StoreModalProduceLicense({ license: licenseKey, }: StoreModalProductLicenseProps): React.JSX.Element;
7
+ export {};
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ exports.default = StoreModalProduceLicense;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
8
  var _reactRelay = require("react-relay");
9
9
  var _reactRedux = require("react-redux");
@@ -37,10 +37,11 @@ const specFromLicense = license => {
37
37
  }
38
38
  return licenseOptionSpec;
39
39
  };
40
- const StoreModalProduceLicense = _ref => {
40
+ function StoreModalProduceLicense(_ref) {
41
41
  let {
42
- license
42
+ license: licenseKey
43
43
  } = _ref;
44
+ const license = (0, _reactRelay.useFragment)(_StoreModalProductLicense_license !== void 0 ? _StoreModalProductLicense_license : (_StoreModalProductLicense_license = require("../../__generated__/StoreModalProductLicense_license.graphql"), _StoreModalProductLicense_license.hash && _StoreModalProductLicense_license.hash !== "22e24165f79ce30a9190ace765d3d1ce" && 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_license), licenseKey);
44
45
  const licenseOptions = (0, _reactRedux.useSelector)(state => state.licenseOptions);
45
46
  const selectedOptions = licenseOptions.find(_ref2 => {
46
47
  let {
@@ -136,8 +137,4 @@ const StoreModalProduceLicense = _ref => {
136
137
  return null;
137
138
  }).filter(Boolean)
138
139
  });
139
- };
140
- var _default = (0, _reactRelay.createFragmentContainer)(StoreModalProduceLicense, {
141
- license: _StoreModalProductLicense_license !== void 0 ? _StoreModalProductLicense_license : (_StoreModalProductLicense_license = require("../../__generated__/StoreModalProductLicense_license.graphql"), _StoreModalProductLicense_license.hash && _StoreModalProductLicense_license.hash !== "22e24165f79ce30a9190ace765d3d1ce" && 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_license)
142
- });
143
- exports.default = _default;
140
+ }
@@ -1,6 +1,7 @@
1
- import { StoreModalProductLicenseSelection_viewer$data } from '../../__generated__/StoreModalProductLicenseSelection_viewer.graphql';
1
+ import React from 'react';
2
+ import { StoreModalProductLicenseSelection_viewer$key } from '../../__generated__/StoreModalProductLicenseSelection_viewer.graphql';
2
3
  interface StoreModalProductLicenseSelectionProps {
3
- viewer: StoreModalProductLicenseSelection_viewer$data;
4
+ viewer: StoreModalProductLicenseSelection_viewer$key;
4
5
  }
5
- declare const _default: import("react-relay").Container<Omit<StoreModalProductLicenseSelectionProps, "relay">>;
6
- export default _default;
6
+ export default function StoreModalProductLicenseSelection({ viewer: viewerKey, }: StoreModalProductLicenseSelectionProps): React.JSX.Element;
7
+ export {};
@@ -3,17 +3,18 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ exports.default = StoreModalProductLicenseSelection;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _reactRelay = require("react-relay");
9
9
  var _StoreModalProductLicense = _interopRequireDefault(require("./StoreModalProductLicense"));
10
10
  var _ContainerElement = _interopRequireDefault(require("./ContainerElement"));
11
11
  var _StoreModalProductLicenseSelection_viewer;
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
- const StoreModalProductLicenseSelection = _ref => {
13
+ function StoreModalProductLicenseSelection(_ref) {
14
14
  let {
15
- viewer
15
+ viewer: viewerKey
16
16
  } = _ref;
17
+ const viewer = (0, _reactRelay.useFragment)(_StoreModalProductLicenseSelection_viewer !== void 0 ? _StoreModalProductLicenseSelection_viewer : (_StoreModalProductLicenseSelection_viewer = require("../../__generated__/StoreModalProductLicenseSelection_viewer.graphql"), _StoreModalProductLicenseSelection_viewer.hash && _StoreModalProductLicenseSelection_viewer.hash !== "132699969de1b8ff9dafa8604b3c5f05" && console.error("The definition of 'StoreModalProductLicenseSelection_viewer' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalProductLicenseSelection_viewer), viewerKey);
17
18
  return /*#__PURE__*/_react.default.createElement(_ContainerElement.default, null, {
18
19
  title: 'Select licenses',
19
20
  licenses: viewer.licenses && viewer.licenses.map(license => license && /*#__PURE__*/_react.default.createElement(_StoreModalProductLicense.default, {
@@ -21,8 +22,4 @@ const StoreModalProductLicenseSelection = _ref => {
21
22
  license: license
22
23
  }))
23
24
  });
24
- };
25
- var _default = (0, _reactRelay.createFragmentContainer)(StoreModalProductLicenseSelection, {
26
- viewer: _StoreModalProductLicenseSelection_viewer !== void 0 ? _StoreModalProductLicenseSelection_viewer : (_StoreModalProductLicenseSelection_viewer = require("../../__generated__/StoreModalProductLicenseSelection_viewer.graphql"), _StoreModalProductLicenseSelection_viewer.hash && _StoreModalProductLicenseSelection_viewer.hash !== "132699969de1b8ff9dafa8604b3c5f05" && console.error("The definition of 'StoreModalProductLicenseSelection_viewer' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalProductLicenseSelection_viewer)
27
- });
28
- exports.default = _default;
25
+ }
@@ -1,9 +1,10 @@
1
- import { TypeTesterFeatures_fontStyle$data } from '__generated__/TypeTesterFeatures_fontStyle.graphql';
1
+ import React from 'react';
2
+ import { TypeTesterFeatures_fontStyle$key } from '__generated__/TypeTesterFeatures_fontStyle.graphql';
2
3
  interface TypeTesterFeatures_props {
3
4
  id: string;
4
- fontStyle: TypeTesterFeatures_fontStyle$data;
5
+ fontStyle: TypeTesterFeatures_fontStyle$key;
5
6
  features: ReadonlyArray<string> | null;
6
7
  axes: ReadonlyArray<string> | null | undefined;
7
8
  }
8
- declare const _default: import("react-relay").Container<Omit<TypeTesterFeatures_props, "relay">>;
9
- export default _default;
9
+ export default function TypeTesterFeatures({ id, fontStyle: fontStyleKey, features: showFeatures, axes: showAxes, }: TypeTesterFeatures_props): React.JSX.Element;
10
+ export {};
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ exports.default = TypeTesterFeatures;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
8
  var _reactRelay = require("react-relay");
9
9
  var _TypeTesterBullet = _interopRequireDefault(require("../TypeTester/TypeTesterBullet"));
@@ -52,14 +52,15 @@ const shouldIncludeFeature = (supportedFeatures, feature) => {
52
52
  if (!supportedFeatures) return false;
53
53
  return supportedFeatures.indexOf(feature) >= 0;
54
54
  };
55
- const TypeTesterFeatures = _ref => {
55
+ function TypeTesterFeatures(_ref) {
56
56
  var _config$openTypeFeatu, _config$openTypeFeatu2, _config$openTypeFeatu3, _config$openTypeFeatu4;
57
57
  let {
58
58
  id,
59
- fontStyle,
59
+ fontStyle: fontStyleKey,
60
60
  features: showFeatures,
61
61
  axes: showAxes
62
62
  } = _ref;
63
+ const fontStyle = (0, _reactRelay.useFragment)(_TypeTesterFeatures_fontStyle !== void 0 ? _TypeTesterFeatures_fontStyle : (_TypeTesterFeatures_fontStyle = require("../../__generated__/TypeTesterFeatures_fontStyle.graphql"), _TypeTesterFeatures_fontStyle.hash && _TypeTesterFeatures_fontStyle.hash !== "25582c33916ebaadd2f674b1d0b6bf4b" && 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_fontStyle), fontStyleKey);
63
64
  const {
64
65
  typeTester: config
65
66
  } = (0, _react.useContext)(_ConfigContext.default);
@@ -138,8 +139,4 @@ const TypeTesterFeatures = _ref => {
138
139
  "data-selection-style": selectionStyle,
139
140
  "data-columns": (_config$openTypeFeatu3 = config.openTypeFeatures) !== null && _config$openTypeFeatu3 !== void 0 && (_config$openTypeFeatu4 = _config$openTypeFeatu3.columns) !== null && _config$openTypeFeatu4 !== void 0 && _config$openTypeFeatu4.length ? 'set' : 'auto'
140
141
  }, featuresColumns)));
141
- };
142
- var _default = (0, _reactRelay.createFragmentContainer)(TypeTesterFeatures, {
143
- fontStyle: _TypeTesterFeatures_fontStyle !== void 0 ? _TypeTesterFeatures_fontStyle : (_TypeTesterFeatures_fontStyle = require("../../__generated__/TypeTesterFeatures_fontStyle.graphql"), _TypeTesterFeatures_fontStyle.hash && _TypeTesterFeatures_fontStyle.hash !== "25582c33916ebaadd2f674b1d0b6bf4b" && 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_fontStyle)
144
- });
145
- exports.default = _default;
142
+ }
@@ -1,9 +1,10 @@
1
- import { TypeTesterFloatingToolbar_testers$data } from '__generated__/TypeTesterFloatingToolbar_testers.graphql';
1
+ import React from 'react';
2
+ import { TypeTesterFloatingToolbar_testers$key } from '__generated__/TypeTesterFloatingToolbar_testers.graphql';
2
3
  interface TypeTesterFloatingToolbar_props {
3
- testers: TypeTesterFloatingToolbar_testers$data;
4
+ testers: TypeTesterFloatingToolbar_testers$key;
4
5
  features?: ReadonlyArray<string> | null;
5
6
  axes?: ReadonlyArray<string> | null;
6
7
  onToolbarOpenClose?: (open: boolean) => void;
7
8
  }
8
- declare const _default: import("react-relay").Container<Omit<TypeTesterFloatingToolbar_props, "relay">>;
9
- export default _default;
9
+ export default function TypeTesterFloatingToolbar({ testers: testersKey, features, axes, onToolbarOpenClose, }: TypeTesterFloatingToolbar_props): React.JSX.Element;
10
+ export {};