fontdue-js 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__generated__/TypeTesterStandalone_StyleQuery.graphql.d.ts +6 -0
- package/dist/__generated__/TypeTesterStandalone_StyleQuery.graphql.js +32 -4
- package/dist/__generated__/TypeTestersIDQuery.graphql.js +103 -57
- package/dist/__generated__/TypeTestersSlugQuery.graphql.js +103 -57
- package/dist/__generated__/TypeTesters_collection.graphql.d.ts +3 -0
- package/dist/__generated__/TypeTesters_collection.graphql.js +20 -6
- package/dist/components/AddToCartBanner/index.js +6 -4
- package/dist/components/BuyButton/index.js +21 -17
- package/dist/components/BuyingOptions/index.js +10 -7
- package/dist/components/Cart/AddressFields.js +10 -7
- package/dist/components/Cart/CartItem/index.js +71 -53
- package/dist/components/Cart/CartOrder.js +18 -14
- package/dist/components/Cart/CartState.js +16 -13
- package/dist/components/Cart/CartTotals.js +65 -59
- package/dist/components/Cart/Checkout.js +30 -23
- package/dist/components/Cart/CustomerFields.d.ts +14 -0
- package/dist/components/Cart/CustomerFields.js +11 -11
- package/dist/components/Cart/Download.js +11 -9
- package/dist/components/Cart/EmptyCart.js +5 -4
- package/dist/components/Cart/IdentityBox.js +27 -24
- package/dist/components/Cart/index.js +23 -17
- package/dist/components/CartButton/index.js +12 -9
- package/dist/components/CharacterViewer/index.js +65 -54
- package/dist/components/Checkbox/index.js +4 -5
- package/dist/components/CollectionAa/index.js +15 -11
- package/dist/components/ConfigContext.d.ts +78 -1
- package/dist/components/ConfigContext.js +52 -2
- package/dist/components/CookieNotification/index.js +46 -38
- package/dist/components/CouponText/index.js +6 -4
- package/dist/components/Family/FamilyList.js +23 -20
- package/dist/components/Family/index.js +11 -8
- package/dist/components/FontFamilies/index.js +15 -12
- package/dist/components/FontStyle/index.js +10 -9
- package/dist/components/FontdueProvider/index.js +9 -8
- package/dist/components/NewsletterSignup/index.js +12 -10
- package/dist/components/Precart/License.js +8 -7
- package/dist/components/Precart/index.js +16 -11
- package/dist/components/Price/index.js +34 -27
- package/dist/components/PriceBar/PriceBarSection.js +14 -11
- package/dist/components/PriceBar/index.js +2 -2
- package/dist/components/Root/index.js +4 -1
- package/dist/components/Root/productState.js +3 -2
- package/dist/components/SKUPrice/index.js +7 -6
- package/dist/components/Select/index.js +22 -15
- package/dist/components/SelectButton/index.js +16 -16
- package/dist/components/SelectField/index.js +27 -24
- package/dist/components/SpecimenLink/index.js +14 -11
- package/dist/components/StickyNav/index.js +16 -13
- package/dist/components/StoreModal/StoreModalBundleButton.js +7 -6
- package/dist/components/StoreModal/StoreModalCart.js +10 -8
- package/dist/components/StoreModal/StoreModalCheckout.js +5 -4
- package/dist/components/StoreModal/StoreModalContainer.js +4 -3
- package/dist/components/StoreModal/StoreModalDownload.js +5 -4
- package/dist/components/StoreModal/StoreModalFamily.js +5 -4
- package/dist/components/StoreModal/StoreModalFamilyButton.js +7 -6
- package/dist/components/StoreModal/StoreModalIndex.js +11 -9
- package/dist/components/StoreModal/StoreModalLoader.js +4 -3
- package/dist/components/StoreModal/StoreModalProduct.js +4 -3
- package/dist/components/StoreModal/StoreModalReview.js +11 -9
- package/dist/components/StoreModal/StoreModalReviewIdentity.js +6 -3
- package/dist/components/StoreModal/StoreModalStyleButton.js +7 -6
- package/dist/components/StoreModalProductLicenseSelection/ContainerElement.js +15 -12
- package/dist/components/StoreModalProductLicenseSelection/LicenseElement.js +13 -13
- package/dist/components/StoreModalProductLicenseSelection/LicenseVariableElement.js +31 -25
- package/dist/components/StoreModalProductLicenseSelection/LicenseVariableRadioElement.js +13 -10
- package/dist/components/StoreModalProductLicenseSelection/StoreModalProductLicense.js +22 -13
- package/dist/components/StoreModalProductLicenseSelection/index.js +12 -9
- package/dist/components/StoreModalProductSummary/index.js +10 -8
- package/dist/components/StripeProvider/index.js +5 -4
- package/dist/components/Stylesheet/index.js +4 -3
- package/dist/components/TestFontsForm/index.js +32 -25
- package/dist/components/TestModeBanner/index.js +9 -7
- package/dist/components/TextField/index.js +32 -29
- package/dist/components/ThemeConfig/index.js +9 -7
- package/dist/components/TypeTester/TypeTesterAlignButtons.js +5 -4
- package/dist/components/TypeTester/TypeTesterBullet.js +5 -4
- package/dist/components/TypeTester/TypeTesterContent.js +9 -8
- package/dist/components/TypeTester/TypeTesterContext.js +6 -5
- package/dist/components/TypeTester/TypeTesterEditAll.d.ts +0 -2
- package/dist/components/TypeTester/TypeTesterEditAll.js +6 -3
- package/dist/components/TypeTester/TypeTesterFeatures.d.ts +0 -2
- package/dist/components/TypeTester/TypeTesterFeatures.js +25 -14
- package/dist/components/TypeTester/TypeTesterFeaturesButton.js +18 -15
- package/dist/components/TypeTester/TypeTesterFitter.js +5 -4
- package/dist/components/TypeTester/TypeTesterFloatingToolbar.js +10 -11
- package/dist/components/TypeTester/TypeTesterInput.js +7 -6
- package/dist/components/TypeTester/TypeTesterSlider.js +15 -11
- package/dist/components/TypeTester/TypeTesterStandalone.js +21 -19
- package/dist/components/TypeTester/TypeTesterState.js +5 -6
- package/dist/components/TypeTester/TypeTesterStyleSelect.js +39 -28
- package/dist/components/TypeTester/TypeTesterStyleSelectData.js +7 -6
- package/dist/components/TypeTester/TypeTesterToolbar.d.ts +0 -2
- package/dist/components/TypeTester/TypeTesterToolbar.js +18 -15
- package/dist/components/TypeTester/index.d.ts +2 -1
- package/dist/components/TypeTester/index.js +48 -55
- package/dist/components/TypeTester/useTypeTesterStyler.js +21 -19
- package/dist/components/TypeTesters/index.js +48 -45
- package/dist/components/VariableTableAmounts/index.js +5 -4
- package/dist/components/elements/Button/index.js +11 -8
- package/dist/components/elements/StoreModalCartLayout/index.js +29 -26
- package/dist/components/elements/StoreModalContainer/index.js +14 -13
- package/dist/components/elements/StoreModalDownloadLayout/index.js +17 -14
- package/dist/components/elements/StoreModalFamily/index.js +22 -19
- package/dist/components/elements/StoreModalFamilyButton/index.js +12 -11
- package/dist/components/elements/StoreModalIndexItem/index.js +9 -8
- package/dist/components/elements/StoreModalPageContainer/index.js +18 -15
- package/dist/components/elements/StoreModalReviewConfirm/index.js +13 -13
- package/dist/components/elements/StoreModalReviewItem/index.js +11 -8
- package/dist/components/elements/StoreModalReviewLayout/index.js +50 -47
- package/dist/components/elements/StoreModalStyleButton/index.js +10 -9
- package/dist/components/useFontStyle.js +6 -5
- package/dist/utils.js +3 -2
- package/dist/vanilla/FontStyle.js +10 -8
- package/fontdue.css +10 -0
- package/fontdue.css.map +1 -1
- package/package.json +1 -1
|
@@ -23,16 +23,16 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
23
23
|
|
|
24
24
|
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; }
|
|
25
25
|
|
|
26
|
-
const CustomerFields =
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
const CustomerFields = _ref => {
|
|
27
|
+
let {
|
|
28
|
+
title,
|
|
29
|
+
value,
|
|
30
|
+
onChange,
|
|
31
|
+
optInLabel
|
|
32
|
+
} = _ref;
|
|
33
|
+
const {
|
|
34
|
+
form: config
|
|
35
|
+
} = (0, _react.useContext)(_ConfigContext.default);
|
|
36
36
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
37
37
|
className: "checkout-modal__section"
|
|
38
38
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -75,7 +75,7 @@ const CustomerFields = ({
|
|
|
75
75
|
})
|
|
76
76
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
77
77
|
className: "checkbox__icon"
|
|
78
|
-
}, checkboxStyle === 'check' ? /*#__PURE__*/_react.default.createElement(_Check.default, null) : /*#__PURE__*/_react.default.createElement(_X.default, null))), /*#__PURE__*/_react.default.createElement("label", {
|
|
78
|
+
}, config.checkboxStyle === 'check' ? /*#__PURE__*/_react.default.createElement(_Check.default, null) : /*#__PURE__*/_react.default.createElement(_X.default, null))), /*#__PURE__*/_react.default.createElement("label", {
|
|
79
79
|
htmlFor: "customer-newsletter-opt-in"
|
|
80
80
|
}, optInLabel))));
|
|
81
81
|
};
|
|
@@ -23,11 +23,12 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
23
23
|
|
|
24
24
|
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; }
|
|
25
25
|
|
|
26
|
-
const DownloadBase =
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
const DownloadBase = _ref => {
|
|
27
|
+
let {
|
|
28
|
+
order,
|
|
29
|
+
dismiss,
|
|
30
|
+
status
|
|
31
|
+
} = _ref;
|
|
31
32
|
const autoDownloaded = (0, _react.useRef)(false);
|
|
32
33
|
const downloadForm = (0, _react.useRef)(null);
|
|
33
34
|
(0, _react.useEffect)(() => {
|
|
@@ -55,10 +56,11 @@ const DownloadBase = ({
|
|
|
55
56
|
});
|
|
56
57
|
};
|
|
57
58
|
|
|
58
|
-
const Download =
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
const Download = _ref2 => {
|
|
60
|
+
let {
|
|
61
|
+
order,
|
|
62
|
+
relay
|
|
63
|
+
} = _ref2;
|
|
62
64
|
const [dismissed, setDismissed] = (0, _react.useState)(false);
|
|
63
65
|
(0, _useInterval.default)(() => {
|
|
64
66
|
if (order.archiveUrl) return;
|
|
@@ -17,10 +17,11 @@ const closeCart = () => ({
|
|
|
17
17
|
type: 'CLOSE_CART'
|
|
18
18
|
});
|
|
19
19
|
|
|
20
|
-
const EmptyCart =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
const EmptyCart = _ref => {
|
|
21
|
+
let {
|
|
22
|
+
status,
|
|
23
|
+
dispatch
|
|
24
|
+
} = _ref;
|
|
24
25
|
const open = status === 'entering' || status === 'entered';
|
|
25
26
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
26
27
|
className: "cart",
|
|
@@ -13,30 +13,33 @@ var _IdentityBox_identity;
|
|
|
13
13
|
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
|
|
16
|
-
const IdentityBox =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
}, "
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
}, identity.
|
|
36
|
-
|
|
37
|
-
}, identity.
|
|
38
|
-
|
|
39
|
-
},
|
|
16
|
+
const IdentityBox = _ref => {
|
|
17
|
+
let {
|
|
18
|
+
identity,
|
|
19
|
+
title,
|
|
20
|
+
onClick,
|
|
21
|
+
children: {
|
|
22
|
+
icon
|
|
23
|
+
}
|
|
24
|
+
} = _ref;
|
|
25
|
+
return /*#__PURE__*/_react.default.createElement("button", {
|
|
26
|
+
className: "cart__review__button",
|
|
27
|
+
type: "button",
|
|
28
|
+
onClick: onClick
|
|
29
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
30
|
+
className: "cart__review__label"
|
|
31
|
+
}, icon, title, " ", /*#__PURE__*/_react.default.createElement("span", {
|
|
32
|
+
className: "cart__review__label__text"
|
|
33
|
+
}, "Edit")), /*#__PURE__*/_react.default.createElement("div", {
|
|
34
|
+
className: "cart__review__section"
|
|
35
|
+
}, /*#__PURE__*/_react.default.createElement("pre", null, identity.addressFormatted)), /*#__PURE__*/_react.default.createElement("div", {
|
|
36
|
+
className: "cart__review__section"
|
|
37
|
+
}, identity.email), /*#__PURE__*/_react.default.createElement("div", {
|
|
38
|
+
className: "cart__review__section"
|
|
39
|
+
}, identity.phoneFormatted), identity.vatNumber && /*#__PURE__*/_react.default.createElement("div", {
|
|
40
|
+
className: "cart__review__section"
|
|
41
|
+
}, "VAT: ", identity.vatNumber));
|
|
42
|
+
};
|
|
40
43
|
|
|
41
44
|
var _default = (0, _reactRelay.createFragmentContainer)(IdentityBox, {
|
|
42
45
|
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)
|
|
@@ -25,10 +25,11 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
25
25
|
|
|
26
26
|
function _extends() { _extends = Object.assign || 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); }
|
|
27
27
|
|
|
28
|
-
const CartBase =
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
const CartBase = _ref => {
|
|
29
|
+
let {
|
|
30
|
+
status,
|
|
31
|
+
viewer
|
|
32
|
+
} = _ref;
|
|
32
33
|
const {
|
|
33
34
|
currentOrder
|
|
34
35
|
} = viewer;
|
|
@@ -44,15 +45,18 @@ const CartBase = ({
|
|
|
44
45
|
}));
|
|
45
46
|
};
|
|
46
47
|
|
|
47
|
-
const CartTransitionBase =
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
},
|
|
48
|
+
const CartTransitionBase = _ref2 => {
|
|
49
|
+
let {
|
|
50
|
+
cartOpen,
|
|
51
|
+
...props
|
|
52
|
+
} = _ref2;
|
|
53
|
+
return /*#__PURE__*/_react.default.createElement(_Transition.default, {
|
|
54
|
+
in: cartOpen,
|
|
55
|
+
timeout: 200
|
|
56
|
+
}, status => /*#__PURE__*/_react.default.createElement(CartBase, _extends({
|
|
57
|
+
status: status
|
|
58
|
+
}, props)));
|
|
59
|
+
};
|
|
56
60
|
|
|
57
61
|
const CartTransition = (0, _reactRelay.createFragmentContainer)(CartTransitionBase, {
|
|
58
62
|
viewer: _Cart_viewer !== void 0 ? _Cart_viewer : (_Cart_viewer = require("../../__generated__/Cart_viewer.graphql"), _Cart_viewer.hash && _Cart_viewer.hash !== "f8014219785183b543a2133a9ff912b0" && console.error("The definition of 'Cart_viewer' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _Cart_viewer)
|
|
@@ -65,10 +69,12 @@ const CartQueryRenderer = () => {
|
|
|
65
69
|
environment: environment,
|
|
66
70
|
query: _CartQuery !== void 0 ? _CartQuery : (_CartQuery = require("../../__generated__/CartQuery.graphql"), _CartQuery.hash && _CartQuery.hash !== "310dc24fc7f5886c3ddb7cc7b8c0f4a2" && console.error("The definition of 'CartQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartQuery),
|
|
67
71
|
variables: {},
|
|
68
|
-
render:
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
+
render: _ref3 => {
|
|
73
|
+
let {
|
|
74
|
+
error,
|
|
75
|
+
props
|
|
76
|
+
} = _ref3;
|
|
77
|
+
|
|
72
78
|
if (error) {
|
|
73
79
|
console.error(error);
|
|
74
80
|
return null;
|
|
@@ -38,11 +38,12 @@ const openCart = () => ({
|
|
|
38
38
|
type: 'OPEN_CART'
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
const CartButtonBase =
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
const CartButtonBase = _ref => {
|
|
42
|
+
let {
|
|
43
|
+
label,
|
|
44
|
+
buttonStyle,
|
|
45
|
+
order
|
|
46
|
+
} = _ref;
|
|
46
47
|
const dispatch = (0, _reactRedux.useDispatch)();
|
|
47
48
|
const count = cartButtonCount(order);
|
|
48
49
|
const handleClick = (0, _react.useCallback)(() => {
|
|
@@ -83,10 +84,12 @@ const CartButtonQueryRenderer = params => {
|
|
|
83
84
|
environment: environment,
|
|
84
85
|
query: _CartButtonQuery !== void 0 ? _CartButtonQuery : (_CartButtonQuery = require("../../__generated__/CartButtonQuery.graphql"), _CartButtonQuery.hash && _CartButtonQuery.hash !== "5c0da5849bf1215a9d1f264831830f71" && console.error("The definition of 'CartButtonQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartButtonQuery),
|
|
85
86
|
variables: {},
|
|
86
|
-
render:
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
87
|
+
render: _ref2 => {
|
|
88
|
+
let {
|
|
89
|
+
error,
|
|
90
|
+
props
|
|
91
|
+
} = _ref2;
|
|
92
|
+
|
|
90
93
|
if (error) {
|
|
91
94
|
console.error(error);
|
|
92
95
|
return null;
|
|
@@ -50,13 +50,14 @@ const collectionInfo = collection => ({
|
|
|
50
50
|
fontStyles: collection.fontStyles
|
|
51
51
|
});
|
|
52
52
|
|
|
53
|
-
const CharacterViewerComponent =
|
|
54
|
-
|
|
55
|
-
}) => {
|
|
56
|
-
var _collection$children$, _collection$children, _ref, _collection$featureSt, _collection$featureSt2, _collection$fontStyle, _collection$fontStyle2, _collection$children2, _collection$children3, _collection$children4, _collection$children5, _fontStyle$characterB, _fontStyle$characterB2, _fontStyle$featureCha, _fontStyle$featureCha2, _fontStyle$featureCha3, _fontStyle$featureCha4, _fontStyle$featureCha5, _fontStyle$characterB3, _fontStyle$featureCha6;
|
|
53
|
+
const CharacterViewerComponent = _ref => {
|
|
54
|
+
var _collection$children$, _collection$children, _ref2, _collection$featureSt, _collection$featureSt2, _collection$fontStyle, _collection$fontStyle2, _collection$children2, _collection$children3, _collection$children4, _collection$children5, _fontStyle$characterB, _fontStyle$characterB2, _fontStyle$featureCha, _fontStyle$featureCha2, _fontStyle$featureCha3, _fontStyle$featureCha4, _fontStyle$featureCha5, _fontStyle$characterB3, _fontStyle$featureCha6;
|
|
57
55
|
|
|
56
|
+
let {
|
|
57
|
+
collection
|
|
58
|
+
} = _ref;
|
|
58
59
|
const allCollections = [collectionInfo(collection)].concat((_collection$children$ = (_collection$children = collection.children) === null || _collection$children === void 0 ? void 0 : _collection$children.map(collectionInfo)) !== null && _collection$children$ !== void 0 ? _collection$children$ : []);
|
|
59
|
-
const [fontStyleId, setFontStyleId] = (0, _react.useState)((
|
|
60
|
+
const [fontStyleId, setFontStyleId] = (0, _react.useState)((_ref2 = (_collection$featureSt = (_collection$featureSt2 = collection.featureStyle) === null || _collection$featureSt2 === void 0 ? void 0 : _collection$featureSt2.id) !== null && _collection$featureSt !== void 0 ? _collection$featureSt : (_collection$fontStyle = collection.fontStyles) === null || _collection$fontStyle === void 0 ? void 0 : (_collection$fontStyle2 = _collection$fontStyle[0]) === null || _collection$fontStyle2 === void 0 ? void 0 : _collection$fontStyle2.id) !== null && _ref2 !== void 0 ? _ref2 : (_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$children5 = _collection$children4[0]) === null || _collection$children5 === void 0 ? void 0 : _collection$children5.id);
|
|
60
61
|
const fontStyle = allCollections.flatMap(coll => coll.fontStyles).find(style => style.id === fontStyleId);
|
|
61
62
|
const {
|
|
62
63
|
style
|
|
@@ -128,24 +129,27 @@ const CharacterViewerComponent = ({
|
|
|
128
129
|
style: {
|
|
129
130
|
'--width': blocksWidth
|
|
130
131
|
}
|
|
131
|
-
}, (_fontStyle$characterB3 = fontStyle.characterBlocks) === null || _fontStyle$characterB3 === void 0 ? void 0 : _fontStyle$characterB3.map(({
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
132
|
+
}, (_fontStyle$characterB3 = fontStyle.characterBlocks) === null || _fontStyle$characterB3 === void 0 ? void 0 : _fontStyle$characterB3.map((_ref3, i) => {
|
|
133
|
+
let {
|
|
134
|
+
name,
|
|
135
|
+
characters
|
|
136
|
+
} = _ref3;
|
|
137
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
138
|
+
className: "character-viewer__block",
|
|
139
|
+
key: i
|
|
140
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
141
|
+
className: "character-viewer__block__name"
|
|
142
|
+
}, name), /*#__PURE__*/_react.default.createElement("div", {
|
|
143
|
+
className: "character-viewer__block__characters",
|
|
144
|
+
style: style,
|
|
145
|
+
onMouseLeave: handleMouseLeave
|
|
146
|
+
}, characters.map((chars, j) => /*#__PURE__*/_react.default.createElement("div", {
|
|
147
|
+
key: j,
|
|
148
|
+
onClick: () => setSelectedCharacter(chars),
|
|
149
|
+
onMouseEnter: () => setActiveCharacter(chars),
|
|
150
|
+
"data-selected": selectedCharacter === chars
|
|
151
|
+
}, chars))));
|
|
152
|
+
}))), /*#__PURE__*/_react.default.createElement("div", {
|
|
149
153
|
className: "character-viewer__features-map"
|
|
150
154
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
151
155
|
className: "character-viewer__feature-monitor"
|
|
@@ -193,27 +197,30 @@ const CharacterViewerComponent = ({
|
|
|
193
197
|
style: {
|
|
194
198
|
'--width': blocksWidth
|
|
195
199
|
}
|
|
196
|
-
}, (_fontStyle$featureCha6 = fontStyle.featureCharacters) === null || _fontStyle$featureCha6 === void 0 ? void 0 : _fontStyle$featureCha6.map(({
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
200
|
+
}, (_fontStyle$featureCha6 = fontStyle.featureCharacters) === null || _fontStyle$featureCha6 === void 0 ? void 0 : _fontStyle$featureCha6.map((_ref4, i) => {
|
|
201
|
+
let {
|
|
202
|
+
name,
|
|
203
|
+
feature,
|
|
204
|
+
characters
|
|
205
|
+
} = _ref4;
|
|
206
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
207
|
+
className: "character-viewer__block",
|
|
208
|
+
key: i
|
|
209
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
210
|
+
className: "character-viewer__block__name"
|
|
211
|
+
}, name), /*#__PURE__*/_react.default.createElement("div", {
|
|
212
|
+
className: "character-viewer__block__characters",
|
|
213
|
+
style: { ...style,
|
|
214
|
+
fontFeatureSettings: `'${feature}' 1`
|
|
215
|
+
},
|
|
216
|
+
onMouseLeave: handleFeatureCharacterMouseLeave
|
|
217
|
+
}, characters.map((chars, j) => /*#__PURE__*/_react.default.createElement("div", {
|
|
218
|
+
key: j,
|
|
219
|
+
onClick: () => setSelectedFeatureCharacter([chars, feature]),
|
|
220
|
+
onMouseEnter: () => setActiveFeatureCharacter([chars, feature]),
|
|
221
|
+
"data-selected": (selectedFeatureCharacter === null || selectedFeatureCharacter === void 0 ? void 0 : selectedFeatureCharacter[0]) === chars && (selectedFeatureCharacter === null || selectedFeatureCharacter === void 0 ? void 0 : selectedFeatureCharacter[1]) === feature
|
|
222
|
+
}, chars))));
|
|
223
|
+
}))));
|
|
217
224
|
};
|
|
218
225
|
|
|
219
226
|
_CharacterViewer_family !== void 0 ? _CharacterViewer_family : (_CharacterViewer_family = require("../../__generated__/CharacterViewer_family.graphql"), _CharacterViewer_family.hash && _CharacterViewer_family.hash !== "2883e053de6bd4a34d802fe4af824991" && 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);
|
|
@@ -221,9 +228,10 @@ const CharacterViewer = (0, _reactRelay.createFragmentContainer)(CharacterViewer
|
|
|
221
228
|
collection: _CharacterViewer_collection !== void 0 ? _CharacterViewer_collection : (_CharacterViewer_collection = require("../../__generated__/CharacterViewer_collection.graphql"), _CharacterViewer_collection.hash && _CharacterViewer_collection.hash !== "6f5a8250fc907a798d7e83c8a9ce3f45" && 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)
|
|
222
229
|
});
|
|
223
230
|
|
|
224
|
-
const CharacterViewerQueryRenderer =
|
|
225
|
-
|
|
226
|
-
|
|
231
|
+
const CharacterViewerQueryRenderer = _ref5 => {
|
|
232
|
+
let {
|
|
233
|
+
collectionId
|
|
234
|
+
} = _ref5;
|
|
227
235
|
const environment = (0, _reactRelay.useRelayEnvironment)();
|
|
228
236
|
return /*#__PURE__*/_react.default.createElement(_reactRelay.QueryRenderer, {
|
|
229
237
|
query: _CharacterViewer_Query !== void 0 ? _CharacterViewer_Query : (_CharacterViewer_Query = require("../../__generated__/CharacterViewer_Query.graphql"), _CharacterViewer_Query.hash && _CharacterViewer_Query.hash !== "10b58f0e5e086adbcd2a0d4cd44c442c" && console.error("The definition of 'CharacterViewer_Query' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CharacterViewer_Query),
|
|
@@ -231,13 +239,16 @@ const CharacterViewerQueryRenderer = ({
|
|
|
231
239
|
collectionId
|
|
232
240
|
},
|
|
233
241
|
environment: environment,
|
|
234
|
-
render:
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
242
|
+
render: _ref6 => {
|
|
243
|
+
let {
|
|
244
|
+
props
|
|
245
|
+
} = _ref6;
|
|
246
|
+
return /*#__PURE__*/_react.default.createElement(_reactStaticContainer.default, {
|
|
247
|
+
shouldUpdate: props
|
|
248
|
+
}, props !== null && props !== void 0 && props.node ? /*#__PURE__*/_react.default.createElement(CharacterViewer, {
|
|
249
|
+
collection: props.node
|
|
250
|
+
}) : null);
|
|
251
|
+
}
|
|
241
252
|
});
|
|
242
253
|
};
|
|
243
254
|
|
|
@@ -20,17 +20,16 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
20
20
|
function _extends() { _extends = Object.assign || 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
21
|
|
|
22
22
|
const Checkbox = props => {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
const checkboxStyle = (_config$form$checkbox = (_config$form = config.form) === null || _config$form === void 0 ? void 0 : _config$form.checkboxStyle) !== null && _config$form$checkbox !== void 0 ? _config$form$checkbox : 'check';
|
|
23
|
+
const {
|
|
24
|
+
form: config
|
|
25
|
+
} = (0, _react.useContext)(_ConfigContext.default);
|
|
27
26
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
28
27
|
className: "checkbox"
|
|
29
28
|
}, /*#__PURE__*/_react.default.createElement("input", _extends({
|
|
30
29
|
type: "checkbox"
|
|
31
30
|
}, props)), /*#__PURE__*/_react.default.createElement("div", {
|
|
32
31
|
className: "checkbox__icon"
|
|
33
|
-
}, checkboxStyle === 'check' ? /*#__PURE__*/_react.default.createElement(_Icons.Check, null) : /*#__PURE__*/_react.default.createElement(_Icons.X, null)));
|
|
32
|
+
}, config.checkboxStyle === 'check' ? /*#__PURE__*/_react.default.createElement(_Icons.Check, null) : /*#__PURE__*/_react.default.createElement(_Icons.X, null)));
|
|
34
33
|
};
|
|
35
34
|
|
|
36
35
|
var _default = Checkbox;
|
|
@@ -17,9 +17,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
17
17
|
|
|
18
18
|
function _extends() { _extends = Object.assign || 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
19
|
|
|
20
|
-
const CollectionAaBase =
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
const CollectionAaBase = _ref => {
|
|
21
|
+
let {
|
|
22
|
+
product
|
|
23
|
+
} = _ref;
|
|
23
24
|
let fontStyle;
|
|
24
25
|
|
|
25
26
|
if (product.__typename === 'Bundle') {
|
|
@@ -38,10 +39,11 @@ const CollectionAaFragment = (0, _reactRelay.createFragmentContainer)(Collection
|
|
|
38
39
|
});
|
|
39
40
|
exports.CollectionAaFragment = CollectionAaFragment;
|
|
40
41
|
|
|
41
|
-
const CollectionAaQueryRenderer =
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
const CollectionAaQueryRenderer = _ref2 => {
|
|
43
|
+
let {
|
|
44
|
+
collectionId,
|
|
45
|
+
...rest
|
|
46
|
+
} = _ref2;
|
|
45
47
|
const environment = (0, _reactRelay.useRelayEnvironment)();
|
|
46
48
|
return /*#__PURE__*/_react.default.createElement(_reactRelay.QueryRenderer, {
|
|
47
49
|
environment: environment,
|
|
@@ -49,10 +51,12 @@ const CollectionAaQueryRenderer = ({
|
|
|
49
51
|
variables: {
|
|
50
52
|
collectionId
|
|
51
53
|
},
|
|
52
|
-
render:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
render: _ref3 => {
|
|
55
|
+
let {
|
|
56
|
+
error,
|
|
57
|
+
props
|
|
58
|
+
} = _ref3;
|
|
59
|
+
|
|
56
60
|
if (error) {
|
|
57
61
|
console.error(error);
|
|
58
62
|
return null;
|
|
@@ -9,5 +9,82 @@ export interface Config {
|
|
|
9
9
|
storeModal?: StoreModalConfig;
|
|
10
10
|
typeTester?: TypeTesterConfig;
|
|
11
11
|
}
|
|
12
|
-
declare const
|
|
12
|
+
export declare const makeConfig: (config?: Config | undefined) => {
|
|
13
|
+
typeTester: {
|
|
14
|
+
min: number;
|
|
15
|
+
max: number;
|
|
16
|
+
autofitOnChange: boolean;
|
|
17
|
+
truncate: boolean;
|
|
18
|
+
priceText: boolean;
|
|
19
|
+
selectButtonStyle: "inline" | "outlined";
|
|
20
|
+
selectButtonLabel: string;
|
|
21
|
+
selectButton: boolean;
|
|
22
|
+
shy: false | "focus" | "hover";
|
|
23
|
+
toolsPosition: "inline" | "floating";
|
|
24
|
+
selectable: boolean;
|
|
25
|
+
priceBar: boolean;
|
|
26
|
+
textInput: boolean;
|
|
27
|
+
initialMode: "group" | "local";
|
|
28
|
+
groupEdit: boolean;
|
|
29
|
+
bulletStyle: "square" | "round";
|
|
30
|
+
openTypeFeatures: {
|
|
31
|
+
columns: {
|
|
32
|
+
features: (string | {
|
|
33
|
+
code: string;
|
|
34
|
+
name: string;
|
|
35
|
+
})[];
|
|
36
|
+
range?: number | undefined;
|
|
37
|
+
}[] | undefined;
|
|
38
|
+
selectionStyle: "checkbox" | "bullet";
|
|
39
|
+
};
|
|
40
|
+
alignmentButtons: boolean;
|
|
41
|
+
initialAlignment: import("./TypeTester/types").Alignment;
|
|
42
|
+
};
|
|
43
|
+
form: {
|
|
44
|
+
checkboxStyle: "cross" | "check";
|
|
45
|
+
};
|
|
46
|
+
storeModal: {
|
|
47
|
+
indexLayout: "styled-aa" | "styled-font-names";
|
|
48
|
+
productLicensesPosition: "bottom" | "top";
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
declare const _default: React.Context<{
|
|
52
|
+
typeTester: {
|
|
53
|
+
min: number;
|
|
54
|
+
max: number;
|
|
55
|
+
autofitOnChange: boolean;
|
|
56
|
+
truncate: boolean;
|
|
57
|
+
priceText: boolean;
|
|
58
|
+
selectButtonStyle: "inline" | "outlined";
|
|
59
|
+
selectButtonLabel: string;
|
|
60
|
+
selectButton: boolean;
|
|
61
|
+
shy: false | "focus" | "hover";
|
|
62
|
+
toolsPosition: "inline" | "floating";
|
|
63
|
+
selectable: boolean;
|
|
64
|
+
priceBar: boolean;
|
|
65
|
+
textInput: boolean;
|
|
66
|
+
initialMode: "group" | "local";
|
|
67
|
+
groupEdit: boolean;
|
|
68
|
+
bulletStyle: "square" | "round";
|
|
69
|
+
openTypeFeatures: {
|
|
70
|
+
columns: {
|
|
71
|
+
features: (string | {
|
|
72
|
+
code: string;
|
|
73
|
+
name: string;
|
|
74
|
+
})[];
|
|
75
|
+
range?: number | undefined;
|
|
76
|
+
}[] | undefined;
|
|
77
|
+
selectionStyle: "checkbox" | "bullet";
|
|
78
|
+
};
|
|
79
|
+
alignmentButtons: boolean;
|
|
80
|
+
initialAlignment: import("./TypeTester/types").Alignment;
|
|
81
|
+
};
|
|
82
|
+
form: {
|
|
83
|
+
checkboxStyle: "cross" | "check";
|
|
84
|
+
};
|
|
85
|
+
storeModal: {
|
|
86
|
+
indexLayout: "styled-aa" | "styled-font-names";
|
|
87
|
+
productLicensesPosition: "bottom" | "top";
|
|
88
|
+
};
|
|
89
|
+
}>;
|
|
13
90
|
export default _default;
|
|
@@ -3,12 +3,62 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default = void 0;
|
|
6
|
+
exports.makeConfig = exports.default = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
const makeTypeTesterConfig = config => {
|
|
13
|
+
var _config$shy, _config$toolsPosition, _config$min, _config$max, _config$autofitOnChan, _config$truncate, _config$priceText, _config$selectButtonS, _config$selectButtonL, _ref, _config$selectButton, _config$selectable, _config$priceBar, _config$textInput, _config$initialMode, _config$groupEdit, _config$bulletStyle, _config$openTypeFeatu, _config$openTypeFeatu2, _config$openTypeFeatu3, _config$alignmentButt, _config$initialAlignm;
|
|
14
|
+
|
|
15
|
+
let shy = (_config$shy = config === null || config === void 0 ? void 0 : config.shy) !== null && _config$shy !== void 0 ? _config$shy : false;
|
|
16
|
+
if (shy === true) shy = 'hover';
|
|
17
|
+
let toolsPosition = (_config$toolsPosition = config === null || config === void 0 ? void 0 : config.toolsPosition) !== null && _config$toolsPosition !== void 0 ? _config$toolsPosition : 'inline';
|
|
18
|
+
if (shy !== 'focus') toolsPosition = 'inline';
|
|
19
|
+
return {
|
|
20
|
+
min: (_config$min = config === null || config === void 0 ? void 0 : config.min) !== null && _config$min !== void 0 ? _config$min : 10,
|
|
21
|
+
max: (_config$max = config === null || config === void 0 ? void 0 : config.max) !== null && _config$max !== void 0 ? _config$max : 200,
|
|
22
|
+
autofitOnChange: (_config$autofitOnChan = config === null || config === void 0 ? void 0 : config.autofitOnChange) !== null && _config$autofitOnChan !== void 0 ? _config$autofitOnChan : false,
|
|
23
|
+
truncate: (_config$truncate = config === null || config === void 0 ? void 0 : config.truncate) !== null && _config$truncate !== void 0 ? _config$truncate : false,
|
|
24
|
+
priceText: (_config$priceText = config === null || config === void 0 ? void 0 : config.priceText) !== null && _config$priceText !== void 0 ? _config$priceText : false,
|
|
25
|
+
selectButtonStyle: (_config$selectButtonS = config === null || config === void 0 ? void 0 : config.selectButtonStyle) !== null && _config$selectButtonS !== void 0 ? _config$selectButtonS : 'inline',
|
|
26
|
+
selectButtonLabel: (_config$selectButtonL = config === null || config === void 0 ? void 0 : config.selectButtonLabel) !== null && _config$selectButtonL !== void 0 ? _config$selectButtonL : 'Select',
|
|
27
|
+
selectButton: (_ref = (_config$selectButton = config === null || config === void 0 ? void 0 : config.selectButton) !== null && _config$selectButton !== void 0 ? _config$selectButton : config === null || config === void 0 ? void 0 : config.buyButton) !== null && _ref !== void 0 ? _ref : true,
|
|
28
|
+
shy,
|
|
29
|
+
toolsPosition,
|
|
30
|
+
selectable: (_config$selectable = config === null || config === void 0 ? void 0 : config.selectable) !== null && _config$selectable !== void 0 ? _config$selectable : false,
|
|
31
|
+
priceBar: (_config$priceBar = config === null || config === void 0 ? void 0 : config.priceBar) !== null && _config$priceBar !== void 0 ? _config$priceBar : false,
|
|
32
|
+
textInput: (_config$textInput = config === null || config === void 0 ? void 0 : config.textInput) !== null && _config$textInput !== void 0 ? _config$textInput : false,
|
|
33
|
+
initialMode: (_config$initialMode = config === null || config === void 0 ? void 0 : config.initialMode) !== null && _config$initialMode !== void 0 ? _config$initialMode : 'local',
|
|
34
|
+
groupEdit: (_config$groupEdit = config === null || config === void 0 ? void 0 : config.groupEdit) !== null && _config$groupEdit !== void 0 ? _config$groupEdit : false,
|
|
35
|
+
bulletStyle: (_config$bulletStyle = config === null || config === void 0 ? void 0 : config.bulletStyle) !== null && _config$bulletStyle !== void 0 ? _config$bulletStyle : 'square',
|
|
36
|
+
openTypeFeatures: {
|
|
37
|
+
columns: config === null || config === void 0 ? void 0 : (_config$openTypeFeatu = config.openTypeFeatures) === null || _config$openTypeFeatu === void 0 ? void 0 : _config$openTypeFeatu.columns,
|
|
38
|
+
selectionStyle: (_config$openTypeFeatu2 = config === null || config === void 0 ? void 0 : (_config$openTypeFeatu3 = config.openTypeFeatures) === null || _config$openTypeFeatu3 === void 0 ? void 0 : _config$openTypeFeatu3.selectionStyle) !== null && _config$openTypeFeatu2 !== void 0 ? _config$openTypeFeatu2 : 'bullet'
|
|
39
|
+
},
|
|
40
|
+
alignmentButtons: (_config$alignmentButt = config === null || config === void 0 ? void 0 : config.alignmentButtons) !== null && _config$alignmentButt !== void 0 ? _config$alignmentButt : false,
|
|
41
|
+
initialAlignment: (_config$initialAlignm = config === null || config === void 0 ? void 0 : config.initialAlignment) !== null && _config$initialAlignm !== void 0 ? _config$initialAlignm : 'left'
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
const makeConfig = config => {
|
|
46
|
+
var _config$form$checkbox, _config$form, _config$storeModal$in, _config$storeModal, _config$storeModal$pr, _config$storeModal2;
|
|
47
|
+
|
|
48
|
+
return {
|
|
49
|
+
typeTester: makeTypeTesterConfig(config === null || config === void 0 ? void 0 : config.typeTester),
|
|
50
|
+
form: {
|
|
51
|
+
checkboxStyle: (_config$form$checkbox = config === null || config === void 0 ? void 0 : (_config$form = config.form) === null || _config$form === void 0 ? void 0 : _config$form.checkboxStyle) !== null && _config$form$checkbox !== void 0 ? _config$form$checkbox : 'check'
|
|
52
|
+
},
|
|
53
|
+
storeModal: {
|
|
54
|
+
indexLayout: (_config$storeModal$in = config === null || config === void 0 ? void 0 : (_config$storeModal = config.storeModal) === null || _config$storeModal === void 0 ? void 0 : _config$storeModal.indexLayout) !== null && _config$storeModal$in !== void 0 ? _config$storeModal$in : 'styled-aa',
|
|
55
|
+
productLicensesPosition: (_config$storeModal$pr = config === null || config === void 0 ? void 0 : (_config$storeModal2 = config.storeModal) === null || _config$storeModal2 === void 0 ? void 0 : _config$storeModal2.productLicensesPosition) !== null && _config$storeModal$pr !== void 0 ? _config$storeModal$pr : 'bottom'
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
exports.makeConfig = makeConfig;
|
|
61
|
+
|
|
62
|
+
var _default = /*#__PURE__*/_react.default.createContext(makeConfig());
|
|
13
63
|
|
|
14
64
|
exports.default = _default;
|