fontdue-js 3.13.0 → 3.15.0-beta.0

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 (224) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/dist/__generated__/CartOrderCompleteOrderMutation.graphql.d.ts +1 -1
  3. package/dist/__generated__/CartOrderCompleteOrderMutation.graphql.js +3 -3
  4. package/dist/__generated__/CartOrderRemoveDiscountMutation.graphql.d.ts +1 -1
  5. package/dist/__generated__/CartOrderRemoveDiscountMutation.graphql.js +3 -3
  6. package/dist/__generated__/CartOrderUpdateMutation.graphql.d.ts +1 -1
  7. package/dist/__generated__/CartOrderUpdateMutation.graphql.js +3 -3
  8. package/dist/__generated__/CartQuery.graphql.d.ts +1 -1
  9. package/dist/__generated__/CartQuery.graphql.js +3 -3
  10. package/dist/__generated__/CartStateUpdateMutation.graphql.d.ts +5 -1
  11. package/dist/__generated__/CartStateUpdateMutation.graphql.js +132 -117
  12. package/dist/__generated__/CartState_order.graphql.d.ts +4 -1
  13. package/dist/__generated__/CartState_order.graphql.js +11 -2
  14. package/dist/__generated__/CheckoutUpdateCustomerMutation.graphql.d.ts +1 -1
  15. package/dist/__generated__/CheckoutUpdateCustomerMutation.graphql.js +3 -3
  16. package/dist/__generated__/CheckoutUpdateOrderMutation.graphql.d.ts +1 -1
  17. package/dist/__generated__/CheckoutUpdateOrderMutation.graphql.js +3 -3
  18. package/dist/__generated__/FamilyList_node.graphql.d.ts +3 -1
  19. package/dist/__generated__/FamilyList_node.graphql.js +8 -2
  20. package/dist/__generated__/FontFamiliesQuery.graphql.d.ts +1 -1
  21. package/dist/__generated__/FontFamiliesQuery.graphql.js +5 -5
  22. package/dist/__generated__/PrecartAddToCartMutation.graphql.d.ts +1 -1
  23. package/dist/__generated__/PrecartAddToCartMutation.graphql.js +3 -3
  24. package/dist/__generated__/StoreModalCartQuery.graphql.d.ts +1 -1
  25. package/dist/__generated__/StoreModalCartQuery.graphql.js +69 -69
  26. package/dist/__generated__/StoreModalFamily_collection.graphql.d.ts +3 -1
  27. package/dist/__generated__/StoreModalFamily_collection.graphql.js +17 -10
  28. package/dist/__generated__/StoreModalIndexItem_fontCollection.graphql.d.ts +19 -1
  29. package/dist/__generated__/StoreModalIndexItem_fontCollection.graphql.js +39 -4
  30. package/dist/__generated__/StoreModalIndexPaginationQuery.graphql.d.ts +1 -1
  31. package/dist/__generated__/StoreModalIndexPaginationQuery.graphql.js +40 -5
  32. package/dist/__generated__/StoreModalIndexQuery.graphql.d.ts +1 -1
  33. package/dist/__generated__/StoreModalIndexQuery.graphql.js +40 -5
  34. package/dist/__generated__/StoreModalProductContent_collection.graphql.d.ts +19 -1
  35. package/dist/__generated__/StoreModalProductContent_collection.graphql.js +46 -11
  36. package/dist/__generated__/StoreModalProductQuery.graphql.d.ts +1 -1
  37. package/dist/__generated__/StoreModalProductQuery.graphql.js +198 -167
  38. package/dist/__generated__/StoreModalProductRefetchQuery.graphql.d.ts +1 -1
  39. package/dist/__generated__/StoreModalProductRefetchQuery.graphql.js +171 -140
  40. package/dist/__generated__/StoreModalProductSlugQuery.graphql.d.ts +1 -1
  41. package/dist/__generated__/StoreModalProductSlugQuery.graphql.js +201 -170
  42. package/dist/__generated__/TestFontsFormUpdateCustomerMutation.graphql.d.ts +1 -1
  43. package/dist/__generated__/TestFontsFormUpdateCustomerMutation.graphql.js +3 -3
  44. package/dist/__generated__/TypeTesterStandaloneChangedStylesQuery.graphql.d.ts +1 -1
  45. package/dist/__generated__/TypeTesterStandaloneChangedStylesQuery.graphql.js +9 -3
  46. package/dist/__generated__/TypeTesterStandaloneQuery.graphql.d.ts +1 -1
  47. package/dist/__generated__/TypeTesterStandaloneQuery.graphql.js +9 -3
  48. package/dist/__generated__/TypeTester_fontStyle.graphql.d.ts +3 -1
  49. package/dist/__generated__/TypeTester_fontStyle.graphql.js +8 -2
  50. package/dist/__generated__/TypeTestersChangedStylesQuery.graphql.d.ts +1 -1
  51. package/dist/__generated__/TypeTestersChangedStylesQuery.graphql.js +9 -3
  52. package/dist/__generated__/TypeTestersIDQuery.graphql.d.ts +1 -1
  53. package/dist/__generated__/TypeTestersIDQuery.graphql.js +39 -39
  54. package/dist/__generated__/TypeTestersRefetchQuery.graphql.d.ts +1 -1
  55. package/dist/__generated__/TypeTestersRefetchQuery.graphql.js +37 -37
  56. package/dist/__generated__/TypeTestersSlugQuery.graphql.d.ts +1 -1
  57. package/dist/__generated__/TypeTestersSlugQuery.graphql.js +39 -39
  58. package/dist/__tests__/cartDiscountRemoved.test.js +195 -0
  59. package/dist/__tests__/characterViewerCollapse.test.js +199 -0
  60. package/dist/__tests__/characterViewerStyleSelect.test.js +52 -0
  61. package/dist/__tests__/familyStyleCounts.test.js +71 -0
  62. package/dist/__tests__/i18n.test.js +171 -0
  63. package/dist/__tests__/i18nComponents.test.js +408 -0
  64. package/dist/__tests__/localeEnvironments.test.js +275 -0
  65. package/dist/__tests__/localeMiddleware.test.js +68 -0
  66. package/dist/__tests__/localeTransport.test.js +209 -0
  67. package/dist/__tests__/recaptchaLocale.test.js +62 -0
  68. package/dist/__tests__/serverEntryLocale.test.js +124 -0
  69. package/dist/__tests__/storeModalBundlePairs.test.js +142 -0
  70. package/dist/__tests__/storeModalIndexUnlisted.test.js +69 -11
  71. package/dist/__tests__/useSerializablePreloadedQuery.test.js +4 -3
  72. package/dist/components/AddToCartBanner/index.js +8 -2
  73. package/dist/components/BuyButton/index.d.ts +1 -0
  74. package/dist/components/BuyButton/index.js +8 -2
  75. package/dist/components/BuyButton/index.server.d.ts +1 -0
  76. package/dist/components/BuyButton/index.server.js +8 -0
  77. package/dist/components/BuyingOptions/index.js +3 -1
  78. package/dist/components/Cart/AddressFields.js +5 -3
  79. package/dist/components/Cart/CartCouponNotice.d.ts +7 -0
  80. package/dist/components/Cart/CartCouponNotice.js +21 -0
  81. package/dist/components/Cart/CartItem/CartItemAdditionalLicenses.js +3 -1
  82. package/dist/components/Cart/CartItem/CartItemLicense.js +3 -1
  83. package/dist/components/Cart/CartItem/CartItemProduct.js +6 -3
  84. package/dist/components/Cart/CartItem/VariableTextInput.js +7 -3
  85. package/dist/components/Cart/CartItem/index.js +5 -1
  86. package/dist/components/Cart/CartOrder.js +27 -17
  87. package/dist/components/Cart/CartState.d.ts +1 -0
  88. package/dist/components/Cart/CartState.js +18 -3
  89. package/dist/components/Cart/CartTotals.js +17 -9
  90. package/dist/components/Cart/Checkout.js +18 -15
  91. package/dist/components/Cart/CouponCodeInput.js +5 -3
  92. package/dist/components/Cart/CustomerFields.js +6 -4
  93. package/dist/components/Cart/EmptyCart.js +4 -2
  94. package/dist/components/Cart/IdentityBox.js +6 -2
  95. package/dist/components/Cart/ShareCart.js +8 -6
  96. package/dist/components/CartButton/index.d.ts +2 -1
  97. package/dist/components/CartButton/index.js +6 -2
  98. package/dist/components/CharacterViewer/StyleSelect.js +6 -2
  99. package/dist/components/CharacterViewer/collapse.d.ts +10 -0
  100. package/dist/components/CharacterViewer/collapse.js +39 -0
  101. package/dist/components/CharacterViewer/index.d.ts +4 -0
  102. package/dist/components/CharacterViewer/index.js +78 -24
  103. package/dist/components/CharacterViewer/index.server.d.ts +1 -0
  104. package/dist/components/CharacterViewer/index.server.js +4 -0
  105. package/dist/components/ConfigContext.d.ts +10 -10
  106. package/dist/components/ConfigContext.js +8 -5
  107. package/dist/components/ConsentBanner/index.js +6 -5
  108. package/dist/components/CookieNotification/index.js +11 -5
  109. package/dist/components/CouponText/index.js +15 -7
  110. package/dist/components/CustomerLoginForm/index.js +14 -9
  111. package/dist/components/CustomerSignIn/CustomerSignInElement.d.ts +1 -1
  112. package/dist/components/CustomerSignIn/CustomerSignInElement.js +8 -2
  113. package/dist/components/CustomerSignIn/index.d.ts +6 -1
  114. package/dist/components/CustomerSignIn/index.js +27 -15
  115. package/dist/components/Family/FamilyList.js +5 -2
  116. package/dist/components/Family/index.js +21 -12
  117. package/dist/components/FeatureTester/FeatureTesters.d.ts +2 -1
  118. package/dist/components/FeatureTester/FeatureTesters.js +4 -1
  119. package/dist/components/FeatureTester/FeatureTesters.server.js +4 -0
  120. package/dist/components/FeatureTester/index.d.ts +1 -0
  121. package/dist/components/FeatureTester/index.js +3 -1
  122. package/dist/components/FeatureTester/index.server.js +2 -0
  123. package/dist/components/FontdueContextProvider/index.d.ts +12 -2
  124. package/dist/components/FontdueContextProvider/index.js +85 -11
  125. package/dist/components/FontdueProvider/index.js +7 -1
  126. package/dist/components/FontdueProvider/index.server.js +21 -3
  127. package/dist/components/LocaleContext.d.ts +9 -0
  128. package/dist/components/LocaleContext.js +20 -0
  129. package/dist/components/NewsletterSignup/index.d.ts +2 -1
  130. package/dist/components/NewsletterSignup/index.js +20 -11
  131. package/dist/components/NewsletterSignup/index.server.d.ts +1 -0
  132. package/dist/components/NewsletterSignup/index.server.js +3 -1
  133. package/dist/components/NodePasswordForm/index.d.ts +6 -1
  134. package/dist/components/NodePasswordForm/index.js +14 -6
  135. package/dist/components/OrderVariableSelection/index.js +7 -5
  136. package/dist/components/Precart/License.js +4 -2
  137. package/dist/components/Precart/index.js +15 -12
  138. package/dist/components/Price/index.d.ts +1 -0
  139. package/dist/components/Price/index.js +15 -5
  140. package/dist/components/Root/index.js +2 -1
  141. package/dist/components/Select/index.d.ts +1 -1
  142. package/dist/components/Select/index.js +4 -1
  143. package/dist/components/SelectButton/index.js +3 -1
  144. package/dist/components/SpecimenLink/index.js +3 -1
  145. package/dist/components/StoreModal/StoreModalCart.js +6 -0
  146. package/dist/components/StoreModal/StoreModalContainer.js +14 -12
  147. package/dist/components/StoreModal/StoreModalDownload.js +3 -1
  148. package/dist/components/StoreModal/StoreModalFamily.d.ts +3 -0
  149. package/dist/components/StoreModal/StoreModalFamily.js +28 -9
  150. package/dist/components/StoreModal/StoreModalFamilyButton.js +14 -9
  151. package/dist/components/StoreModal/StoreModalIndexItem.js +21 -10
  152. package/dist/components/StoreModal/StoreModalIndexPackItem.js +8 -3
  153. package/dist/components/StoreModal/StoreModalPackButton.js +5 -2
  154. package/dist/components/StoreModal/StoreModalProduct.js +14 -5
  155. package/dist/components/StoreModal/index.d.ts +1 -0
  156. package/dist/components/StoreModal/index.js +4 -2
  157. package/dist/components/StoreModal/offered.d.ts +31 -0
  158. package/dist/components/StoreModal/offered.js +21 -0
  159. package/dist/components/StoreModalProductLicenseSelection/LicenseVariableElement.js +3 -1
  160. package/dist/components/StoreModalProductLicenseSelection/StoreModalProductLicense.js +5 -1
  161. package/dist/components/StoreModalProductSummary/index.js +37 -23
  162. package/dist/components/StripeProvider/index.js +10 -1
  163. package/dist/components/TestFontsForm/index.d.ts +2 -1
  164. package/dist/components/TestFontsForm/index.js +28 -16
  165. package/dist/components/TestFontsForm/index.server.d.ts +1 -0
  166. package/dist/components/TestFontsForm/index.server.js +3 -1
  167. package/dist/components/TestModeBanner/index.js +3 -1
  168. package/dist/components/TypeTester/TypeTesterEditAll.js +3 -1
  169. package/dist/components/TypeTester/TypeTesterFeaturesButton.js +4 -2
  170. package/dist/components/TypeTester/TypeTesterStandalone.d.ts +1 -0
  171. package/dist/components/TypeTester/TypeTesterStandalone.js +6 -2
  172. package/dist/components/TypeTester/TypeTesterStandalone.server.js +2 -0
  173. package/dist/components/TypeTester/TypeTesterStyleSelect.js +5 -3
  174. package/dist/components/TypeTester/TypeTesterStyleSelectData.js +3 -1
  175. package/dist/components/TypeTester/TypeTesterToolbar.js +12 -6
  176. package/dist/components/TypeTester/index.js +7 -2
  177. package/dist/components/TypeTesters/index.d.ts +2 -1
  178. package/dist/components/TypeTesters/index.js +3 -1
  179. package/dist/components/TypeTesters/index.server.d.ts +1 -0
  180. package/dist/components/TypeTesters/index.server.js +4 -0
  181. package/dist/components/elements/EmptyCart/index.js +4 -2
  182. package/dist/components/elements/StoreModalCartLayout/index.d.ts +1 -0
  183. package/dist/components/elements/StoreModalCartLayout/index.js +2 -1
  184. package/dist/components/elements/StoreModalContainer/index.js +4 -2
  185. package/dist/components/elements/StoreModalDownloadLayout/index.js +3 -1
  186. package/dist/components/elements/StoreModalFamily/index.d.ts +1 -1
  187. package/dist/components/elements/StoreModalFamily/index.js +6 -3
  188. package/dist/components/elements/StoreModalIndexItem/index.js +3 -1
  189. package/dist/components/elements/StoreModalIndexLoadMore/index.js +3 -1
  190. package/dist/components/elements/StoreModalLicenseeIsBillingIdentityElement.js +4 -2
  191. package/dist/components/elements/StoreModalLoadingScreen/index.js +7 -3
  192. package/dist/components/elements/StoreModalUnifiedCheckout.js +35 -25
  193. package/dist/fontdue.css +85 -0
  194. package/dist/hooks/useRecaptchaTimeout.d.ts +1 -1
  195. package/dist/hooks/useRecaptchaTimeout.js +4 -2
  196. package/dist/i18n/de.d.ts +3 -0
  197. package/dist/i18n/de.js +279 -0
  198. package/dist/i18n/en.d.ts +212 -0
  199. package/dist/i18n/en.js +261 -0
  200. package/dist/i18n/index.d.ts +42 -0
  201. package/dist/i18n/index.js +115 -0
  202. package/dist/i18n/types.d.ts +28 -0
  203. package/dist/i18n/types.js +1 -0
  204. package/dist/i18n/useT.d.ts +15 -0
  205. package/dist/i18n/useT.js +21 -0
  206. package/dist/locale.d.ts +20 -0
  207. package/dist/locale.js +52 -0
  208. package/dist/next/tenant.d.ts +3 -1
  209. package/dist/next/tenant.js +11 -2
  210. package/dist/relay/environment.d.ts +8 -2
  211. package/dist/relay/environment.js +65 -15
  212. package/dist/relay/loadSerializableQuery.d.ts +17 -0
  213. package/dist/relay/loadSerializableQuery.js +14 -2
  214. package/dist/relay/serverConfig.d.ts +9 -0
  215. package/dist/relay/serverConfig.js +16 -0
  216. package/dist/relay/useSerializablePreloadedQuery.js +27 -6
  217. package/dist/server/index.d.ts +11 -0
  218. package/dist/server/index.js +7 -0
  219. package/dist/server/middleware.d.ts +19 -1
  220. package/dist/server/middleware.js +56 -13
  221. package/dist/utils.d.ts +0 -1
  222. package/dist/utils.js +0 -5
  223. package/dist/version.js +1 -1
  224. package/package.json +1 -1
@@ -39,5 +39,6 @@ export declare function loadTypeTestersQuery(variables: LoadTypeTestersQueryVari
39
39
  export type TypeTesters_unifiedProps = TypeTesters_props & {
40
40
  preloadedQuery?: TypeTestersPreloadedQuery;
41
41
  config?: Config;
42
+ locale?: string;
42
43
  };
43
- export default function TypeTesters({ collectionId, collectionSlug, preloadedQuery, config, ...rest }: TypeTesters_unifiedProps): React.JSX.Element | null;
44
+ export default function TypeTesters({ collectionId, collectionSlug, preloadedQuery, config, locale, ...rest }: TypeTesters_unifiedProps): React.JSX.Element | null;
@@ -298,6 +298,7 @@ export default function TypeTesters(_ref8) {
298
298
  collectionSlug,
299
299
  preloadedQuery,
300
300
  config,
301
+ locale,
301
302
  ...rest
302
303
  } = _ref8;
303
304
  let inner = null;
@@ -316,6 +317,7 @@ export default function TypeTesters(_ref8) {
316
317
  }
317
318
  if (!inner) return null;
318
319
  return /*#__PURE__*/React.createElement(EnsureFontdueContext, {
319
- config: config
320
+ config: config,
321
+ locale: locale ?? (preloadedQuery === null || preloadedQuery === void 0 ? void 0 : preloadedQuery.locale)
320
322
  }, inner);
321
323
  }
@@ -5,4 +5,5 @@ export type { TypeTestersPreloadedQuery } from './index.js';
5
5
  export declare function loadTypeTestersQuery(): never;
6
6
  export default function TypeTesters({ collectionId, collectionSlug, tags, excludeTags, ...rest }: TypeTesters_props & {
7
7
  config?: Config;
8
+ locale?: string;
8
9
  }): Promise<React.JSX.Element | null>;
@@ -35,6 +35,8 @@ export default async function TypeTesters(_ref) {
35
35
  collectionId,
36
36
  tags,
37
37
  excludeTags
38
+ }, {
39
+ locale: rest.locale
38
40
  });
39
41
  return /*#__PURE__*/React.createElement(TypeTestersPreloadedIDQueryRenderer, _extends({
40
42
  preloadedQuery: preloadedQuery,
@@ -47,6 +49,8 @@ export default async function TypeTesters(_ref) {
47
49
  collectionSlug,
48
50
  tags,
49
51
  excludeTags
52
+ }, {
53
+ locale: rest.locale
50
54
  });
51
55
  return /*#__PURE__*/React.createElement(TypeTestersPreloadedSlugQueryRenderer, _extends({
52
56
  preloadedQuery: preloadedQuery,
@@ -2,8 +2,10 @@ import React, { useContext } from 'react';
2
2
  import Button from '../Button/index.js';
3
3
  import { useDispatch } from 'react-redux';
4
4
  import ConfigContext from '../../ConfigContext.js';
5
+ import { useT } from '../../../i18n/useT.js';
5
6
  const EmptyCart = () => {
6
7
  const dispatch = useDispatch();
8
+ const t = useT();
7
9
  const config = useContext(ConfigContext);
8
10
  const {
9
11
  hideAllCollections
@@ -27,8 +29,8 @@ const EmptyCart = () => {
27
29
  className: "empty-cart__container"
28
30
  }, /*#__PURE__*/React.createElement("p", {
29
31
  className: "empty-cart__message"
30
- }, "Your cart is empty."), /*#__PURE__*/React.createElement(Button, {
32
+ }, t('emptyCart.message')), /*#__PURE__*/React.createElement(Button, {
31
33
  onClick: handleContinueShopping
32
- }, "Continue shopping"));
34
+ }, t('emptyCart.continueShopping')));
33
35
  };
34
36
  export default EmptyCart;
@@ -3,6 +3,7 @@ interface StoreModalCartLayout {
3
3
  checkoutEnabled: boolean;
4
4
  children: {
5
5
  items: React.ReactNode;
6
+ notice?: React.ReactNode;
6
7
  couponCodeInput: React.ReactNode;
7
8
  shareCart: React.ReactNode;
8
9
  totals: React.ReactNode;
@@ -4,6 +4,7 @@ const StoreModalCartLayout = _ref => {
4
4
  checkoutEnabled,
5
5
  children: {
6
6
  items,
7
+ notice,
7
8
  couponCodeInput,
8
9
  totals,
9
10
  checkout,
@@ -19,7 +20,7 @@ const StoreModalCartLayout = _ref => {
19
20
  className: "store-modal__cart__order-variables"
20
21
  }, orderVariables), /*#__PURE__*/React.createElement("div", {
21
22
  className: "store-modal__cart__items"
22
- }, items), /*#__PURE__*/React.createElement("div", {
23
+ }, items), notice, /*#__PURE__*/React.createElement("div", {
23
24
  className: "store-modal__cart__coupon-code-input"
24
25
  }, couponCodeInput), /*#__PURE__*/React.createElement("div", {
25
26
  className: "store-modal__cart__share"
@@ -1,6 +1,7 @@
1
1
  import React, { useRef, useCallback, useMemo } from 'react';
2
2
  import { ArrowLeft, CartNew, X } from '../../Icons/index.js';
3
3
  import StoreModalContainerContext from './StoreModalContainerContext.js';
4
+ import { useT } from '../../../i18n/useT.js';
4
5
  const StoreModalContainer = _ref => {
5
6
  let {
6
7
  onClickBackground,
@@ -17,6 +18,7 @@ const StoreModalContainer = _ref => {
17
18
  body
18
19
  }
19
20
  } = _ref;
21
+ const t = useT();
20
22
  const container = useRef(null);
21
23
  const handleScrollToTop = useCallback(() => {
22
24
  var _container$current, _container$current$sc;
@@ -61,12 +63,12 @@ const StoreModalContainer = _ref => {
61
63
  }, showCartButton && /*#__PURE__*/React.createElement("button", {
62
64
  className: "store-modal__container__cart-button",
63
65
  onClick: onClickCart,
64
- "aria-label": "Cart",
66
+ "aria-label": t('storeModal.cart'),
65
67
  "data-count": orderItemCount
66
68
  }, /*#__PURE__*/React.createElement(CartNew, null)), /*#__PURE__*/React.createElement("button", {
67
69
  className: "store-modal__container__close-button",
68
70
  onClick: onClickClose,
69
- "aria-label": "Close"
71
+ "aria-label": t('storeModal.close')
70
72
  }, /*#__PURE__*/React.createElement(X, null)))), /*#__PURE__*/React.createElement("div", {
71
73
  className: "store-modal__container__body"
72
74
  }, body))));
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { DownloadFonts } from '../../Icons/index.js';
3
+ import { useT } from '../../../i18n/useT.js';
3
4
  const StoreModalDownloadLayout = _ref => {
4
5
  let {
5
6
  archiveUrl,
@@ -7,6 +8,7 @@ const StoreModalDownloadLayout = _ref => {
7
8
  message
8
9
  }
9
10
  } = _ref;
11
+ const t = useT();
10
12
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
11
13
  className: "store-modal__download__section"
12
14
  }, message), archiveUrl && /*#__PURE__*/React.createElement("div", {
@@ -15,6 +17,6 @@ const StoreModalDownloadLayout = _ref => {
15
17
  target: "_blank",
16
18
  href: archiveUrl,
17
19
  className: "store-modal__download__button"
18
- }, /*#__PURE__*/React.createElement(DownloadFonts, null), " Download your order")));
20
+ }, /*#__PURE__*/React.createElement(DownloadFonts, null), " ", t('download.downloadYourOrder'))));
19
21
  };
20
22
  export default StoreModalDownloadLayout;
@@ -3,7 +3,7 @@ interface StoreModalFamilyProps {
3
3
  children: {
4
4
  title: React.ReactNode;
5
5
  familyButton?: React.ReactElement<any> | null;
6
- bundles?: React.ReactElement<any>[] | null;
6
+ bundleGroups?: React.ReactElement<any>[][] | null;
7
7
  styleGroups?: React.ReactElement<any>[][] | null;
8
8
  };
9
9
  }
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  const StoreModalFamily = _ref => {
3
3
  let {
4
4
  children: {
5
- bundles,
5
+ bundleGroups,
6
6
  familyButton,
7
7
  styleGroups,
8
8
  title
@@ -14,9 +14,12 @@ const StoreModalFamily = _ref => {
14
14
  className: "store-modal__family__title"
15
15
  }, title), familyButton && /*#__PURE__*/React.cloneElement(familyButton, {
16
16
  className: 'store-modal__family__family-button'
17
- }), bundles === null || bundles === void 0 ? void 0 : bundles.map(bundle => /*#__PURE__*/React.cloneElement(bundle, {
17
+ }), bundleGroups === null || bundleGroups === void 0 ? void 0 : bundleGroups.map((group, i) => /*#__PURE__*/React.createElement("div", {
18
+ className: "store-modal__family__group",
19
+ key: i
20
+ }, group.map(bundleButton => /*#__PURE__*/React.cloneElement(bundleButton, {
18
21
  className: 'store-modal__family__bundle-button'
19
- })), styleGroups === null || styleGroups === void 0 ? void 0 : styleGroups.map((group, i) => /*#__PURE__*/React.createElement("div", {
22
+ })))), styleGroups === null || styleGroups === void 0 ? void 0 : styleGroups.map((group, i) => /*#__PURE__*/React.createElement("div", {
20
23
  className: "store-modal__family__group",
21
24
  key: i
22
25
  }, group.map(styleButton => /*#__PURE__*/React.cloneElement(styleButton, {
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { useT } from '../../../i18n/useT.js';
2
3
  const StoreModalIndexItem = _ref => {
3
4
  let {
4
5
  onClick,
@@ -8,6 +9,7 @@ const StoreModalIndexItem = _ref => {
8
9
  label
9
10
  }
10
11
  } = _ref;
12
+ const t = useT();
11
13
  return /*#__PURE__*/React.createElement("button", {
12
14
  onClick: onClick,
13
15
  className: "store-modal__index-item__button"
@@ -23,6 +25,6 @@ const StoreModalIndexItem = _ref => {
23
25
  className: "store-modal__index-item__label"
24
26
  }, label))), /*#__PURE__*/React.createElement("div", {
25
27
  className: "store-modal__index-item__buy"
26
- }, "Buy"));
28
+ }, t('storeModal.buy')));
27
29
  };
28
30
  export default StoreModalIndexItem;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { useT } from '../../../i18n/useT.js';
2
3
  // Sits after the last collection while more remain. The button is what a
3
4
  // visitor sees while a page is on its way, and the way to go on without
4
5
  // scrolling — with a keyboard, or if the observer never fires.
@@ -8,6 +9,7 @@ const StoreModalIndexLoadMore = _ref => {
8
9
  onClick,
9
10
  loading
10
11
  } = _ref;
12
+ const t = useT();
11
13
  return /*#__PURE__*/React.createElement("div", {
12
14
  className: "store-modal__index__load-more",
13
15
  ref: sentinelRef
@@ -16,6 +18,6 @@ const StoreModalIndexLoadMore = _ref => {
16
18
  className: "store-modal__index__load-more__button",
17
19
  onClick: onClick,
18
20
  disabled: loading
19
- }, loading ? 'Loading…' : 'Load more'));
21
+ }, loading ? t('common.loading') : t('storeModal.loadMore')));
20
22
  };
21
23
  export default StoreModalIndexLoadMore;
@@ -2,6 +2,7 @@ import React, { useCallback, useContext } from 'react';
2
2
  import ConfigContext from '../ConfigContext.js';
3
3
  import Button from './Button/index.js';
4
4
  import { Checkbox, CheckboxChecked, CheckboxCrossed } from '../Icons/index.js';
5
+ import { useT } from '../../i18n/useT.js';
5
6
  function CheckboxButton(_ref) {
6
7
  let {
7
8
  label,
@@ -34,6 +35,7 @@ export default function StoreModalLicenseeIsBillingIdentityElement(_ref2) {
34
35
  clientDescription
35
36
  }
36
37
  } = _ref2;
38
+ const t = useT();
37
39
  const handleClick = useCallback(licenseeIsBilling => () => {
38
40
  onChange(licenseeIsBilling);
39
41
  }, [onChange]);
@@ -47,7 +49,7 @@ export default function StoreModalLicenseeIsBillingIdentityElement(_ref2) {
47
49
  }, /*#__PURE__*/React.createElement("div", {
48
50
  className: "store-modal__licensee-is-billing-identity__option"
49
51
  }, /*#__PURE__*/React.createElement(CheckboxButton, {
50
- label: selfLabel ?? 'Yourself',
52
+ label: selfLabel ?? t('checkout.licenseeSelf'),
51
53
  selected: value === true,
52
54
  onClick: handleClick(true)
53
55
  }), selfDescription ? /*#__PURE__*/React.createElement("div", {
@@ -55,7 +57,7 @@ export default function StoreModalLicenseeIsBillingIdentityElement(_ref2) {
55
57
  }, selfDescription) : null), /*#__PURE__*/React.createElement("div", {
56
58
  className: "store-modal__licensee-is-billing-identity__option"
57
59
  }, /*#__PURE__*/React.createElement(CheckboxButton, {
58
- label: clientLabel ?? 'Your client',
60
+ label: clientLabel ?? t('checkout.licenseeClient'),
59
61
  selected: value === false,
60
62
  onClick: handleClick(false)
61
63
  }), clientDescription ? /*#__PURE__*/React.createElement("div", {
@@ -1,6 +1,10 @@
1
1
  import React from 'react';
2
2
  import StoreModalPageContainer from '../StoreModalPageContainer/index.js';
3
- const StoreModalLoadingScreen = () => /*#__PURE__*/React.createElement(StoreModalPageContainer, null, {
4
- body: 'Loading...'
5
- });
3
+ import { useT } from '../../../i18n/useT.js';
4
+ const StoreModalLoadingScreen = () => {
5
+ const t = useT();
6
+ return /*#__PURE__*/React.createElement(StoreModalPageContainer, null, {
7
+ body: t('common.loadingDots')
8
+ });
9
+ };
6
10
  export default StoreModalLoadingScreen;
@@ -67,6 +67,7 @@ import React, { useCallback, useContext, useEffect, useMemo, useRef, useState }
67
67
  // package's barebone named export instead was the FD-917 root cause; see
68
68
  // ../Recaptcha for the full explanation.
69
69
  import { ReCAPTCHA } from '../Recaptcha.js';
70
+ import { useLocale } from '../LocaleContext.js';
70
71
  import * as Sentry from '@sentry/react';
71
72
  import { commitMutation, graphql, useFragment, useRelayEnvironment } from 'react-relay';
72
73
  import AddressFields from '../Cart/AddressFields.js';
@@ -81,7 +82,8 @@ import { Price } from '../Price/index.js';
81
82
  import { sendOrderTracking } from '../Cart/orderTracking.js';
82
83
  import { trackPaymentInfoEntered } from '../Cart/storefrontEvents.js';
83
84
  import { validateAddressElements, validateElements } from '../../stripeElements.js';
84
- import { useRecaptchaTimeout, isRecaptchaScriptLoaded, RECAPTCHA_UNAVAILABLE_MESSAGE } from '../../hooks/useRecaptchaTimeout.js';
85
+ import { useRecaptchaTimeout, isRecaptchaScriptLoaded } from '../../hooks/useRecaptchaTimeout.js';
86
+ import { useT } from '../../i18n/useT.js';
85
87
 
86
88
  /* const LICENSEE_REQUIRED_FIELDS = ['organization', 'country'] as (keyof Identity)[]; */
87
89
 
@@ -130,6 +132,7 @@ function EditableSection(_ref) {
130
132
  save
131
133
  }
132
134
  } = _ref;
135
+ const t = useT();
133
136
  const [submitting, setSubmitting] = useState(false);
134
137
  const handleSubmit = useCallback(e => {
135
138
  e.preventDefault();
@@ -157,15 +160,15 @@ function EditableSection(_ref) {
157
160
  className: "store-modal__cart__button",
158
161
  type: "button",
159
162
  onClick: handleCancel
160
- }, "Cancel") : null, /*#__PURE__*/React.createElement("button", {
163
+ }, t('common.cancel')) : null, /*#__PURE__*/React.createElement("button", {
161
164
  className: "store-modal__cart__button",
162
165
  type: "submit",
163
166
  disabled: submitting || disableSubmit
164
- }, submitting ? 'Submitting...' : save))) : /*#__PURE__*/React.createElement(React.Fragment, null, show, /*#__PURE__*/React.createElement("button", {
167
+ }, submitting ? t('common.submittingDots') : save))) : /*#__PURE__*/React.createElement(React.Fragment, null, show, /*#__PURE__*/React.createElement("button", {
165
168
  type: "button",
166
169
  className: "store-modal__cart__edit-button",
167
170
  onClick: onEdit
168
- }, "Change")));
171
+ }, t('checkout.change'))));
169
172
  }
170
173
  export default function StoreModalUnifiedCheckout(_ref2) {
171
174
  var _order$orderVariableS, _viewer$settings, _viewer$settings2, _viewer$settings3, _viewer$settings4, _viewer$settings5, _viewer$settings6, _viewer$settings7, _viewer$settings8, _order$stripePaymentI, _viewer$settings9, _order$stripePaymentI2, _order$stripePaymentI3;
@@ -175,6 +178,7 @@ export default function StoreModalUnifiedCheckout(_ref2) {
175
178
  onScrollToTop,
176
179
  onUpdateOrderVariableSelections
177
180
  } = _ref2;
181
+ const t = useT();
178
182
  const viewer = useFragment((_StoreModalUnifiedCheckout_viewer.hash && _StoreModalUnifiedCheckout_viewer.hash !== "5e8a59a64c401bb354b53ab83d993e03" && console.error("The definition of 'StoreModalUnifiedCheckout_viewer' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalUnifiedCheckout_viewer), viewerKey);
179
183
  const order = useFragment((_StoreModalUnifiedCheckout_order.hash && _StoreModalUnifiedCheckout_order.hash !== "7c5503876a562732ebaead9b2ae97180" && console.error("The definition of 'StoreModalUnifiedCheckout_order' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalUnifiedCheckout_order), orderKey);
180
184
 
@@ -317,6 +321,7 @@ export default function StoreModalUnifiedCheckout(_ref2) {
317
321
  // payment-section `error`, which isn't rendered until a customer exists).
318
322
  const [customerError, setCustomerError] = useState(null);
319
323
  const recaptchaRef = useRef(null);
324
+ const locale = useLocale();
320
325
  const recaptchaTimeout = useRecaptchaTimeout();
321
326
  const recaptchaEnabled = ((_viewer$settings = viewer.settings) === null || _viewer$settings === void 0 ? void 0 : _viewer$settings.recaptchaEnabled) ?? false;
322
327
  const recaptchaSiteKey = (_viewer$settings2 = viewer.settings) === null || _viewer$settings2 === void 0 ? void 0 : _viewer$settings2.recaptchaSiteKey;
@@ -495,9 +500,9 @@ export default function StoreModalUnifiedCheckout(_ref2) {
495
500
  setPendingCustomerSubmit(null);
496
501
  setRecaptchaToken(null);
497
502
  (_recaptchaRef$current3 = recaptchaRef.current) === null || _recaptchaRef$current3 === void 0 ? void 0 : _recaptchaRef$current3.reset();
498
- setCustomerError(RECAPTCHA_UNAVAILABLE_MESSAGE);
503
+ setCustomerError(t('recaptcha.unavailable'));
499
504
  callbacks.onError();
500
- }, [recaptchaTimeout]);
505
+ }, [recaptchaTimeout, t]);
501
506
  const handleRecaptchaErrored = useCallback(() => {
502
507
  // Widget loaded but errored during execution — recover the same way.
503
508
  if (pendingCustomerSubmit) {
@@ -613,7 +618,7 @@ export default function StoreModalUnifiedCheckout(_ref2) {
613
618
  // If billing identity is not saved yet, don't proceed with payment
614
619
  // The validation above will show errors for incomplete fields
615
620
  if (!isBillingIdentitySaved) {
616
- setError('Please complete all billing information above');
621
+ setError(t('checkout.completeBilling'));
617
622
  return;
618
623
  }
619
624
  setCompleting(true);
@@ -659,7 +664,7 @@ export default function StoreModalUnifiedCheckout(_ref2) {
659
664
  }).then(result => {
660
665
  if ('error' in result) {
661
666
  setCompleting(false);
662
- setError(result.error.message ?? 'Payment failed. Please try another payment method.');
667
+ setError(result.error.message ?? t('checkout.paymentFailed'));
663
668
  }
664
669
  }).catch(error => {
665
670
  console.log(error);
@@ -698,13 +703,13 @@ export default function StoreModalUnifiedCheckout(_ref2) {
698
703
  onSubmit: handleCustomerSubmit,
699
704
  disableSubmit: false
700
705
  }, {
701
- save: canUseEmbeddedCheckout ? order.customer ? 'Save' : 'Continue' : 'Checkout',
706
+ save: canUseEmbeddedCheckout ? order.customer ? t('checkout.save') : t('checkout.continue') : t('checkout.checkout'),
702
707
  show: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("h3", {
703
708
  className: "store-modal__cart__checkout-section-title"
704
- }, "Contact information"), order.customer ? /*#__PURE__*/React.createElement(React.Fragment, null, order.customer.name, /*#__PURE__*/React.createElement("br", null), order.customer.email) : 'Loading...'),
709
+ }, t('cart.contactInformation')), order.customer ? /*#__PURE__*/React.createElement(React.Fragment, null, order.customer.name, /*#__PURE__*/React.createElement("br", null), order.customer.email) : t('common.loadingDots')),
705
710
  edit: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h3", {
706
711
  className: "store-modal__cart__checkout-section-title"
707
- }, "Contact information"), /*#__PURE__*/React.createElement(CustomerFields, {
712
+ }, t('cart.contactInformation')), /*#__PURE__*/React.createElement(CustomerFields, {
708
713
  value: customer,
709
714
  onChange: handleCustomerChange,
710
715
  optInLabel: (_viewer$settings3 = viewer.settings) === null || _viewer$settings3 === void 0 ? void 0 : _viewer$settings3.newsletterOptInLabel,
@@ -714,6 +719,7 @@ export default function StoreModalUnifiedCheckout(_ref2) {
714
719
  }, customerError), recaptchaEnabled && recaptchaSiteKey && /*#__PURE__*/React.createElement(ReCAPTCHA, {
715
720
  ref: recaptchaRef,
716
721
  sitekey: recaptchaSiteKey,
722
+ hl: locale,
717
723
  size: "invisible",
718
724
  onChange: handleRecaptchaChange,
719
725
  onExpired: handleRecaptchaExpired,
@@ -731,7 +737,7 @@ export default function StoreModalUnifiedCheckout(_ref2) {
731
737
  }),
732
738
  selfLabel: /*#__PURE__*/React.createElement("span", {
733
739
  dangerouslySetInnerHTML: {
734
- __html: ((_viewer$settings5 = viewer.settings) === null || _viewer$settings5 === void 0 ? void 0 : _viewer$settings5.storeModalLicenseeSelfLabel) ?? 'Yourself'
740
+ __html: ((_viewer$settings5 = viewer.settings) === null || _viewer$settings5 === void 0 ? void 0 : _viewer$settings5.storeModalLicenseeSelfLabel) ?? t('checkout.licenseeSelf')
735
741
  }
736
742
  }),
737
743
  selfDescription: (_viewer$settings6 = viewer.settings) !== null && _viewer$settings6 !== void 0 && _viewer$settings6.storeModalLicenseeSelfDescription ? /*#__PURE__*/React.createElement("div", {
@@ -741,7 +747,7 @@ export default function StoreModalUnifiedCheckout(_ref2) {
741
747
  }) : null,
742
748
  clientLabel: /*#__PURE__*/React.createElement("span", {
743
749
  dangerouslySetInnerHTML: {
744
- __html: ((_viewer$settings7 = viewer.settings) === null || _viewer$settings7 === void 0 ? void 0 : _viewer$settings7.storeModalLicenseeClientLabel) ?? 'Your client'
750
+ __html: ((_viewer$settings7 = viewer.settings) === null || _viewer$settings7 === void 0 ? void 0 : _viewer$settings7.storeModalLicenseeClientLabel) ?? t('checkout.licenseeClient')
745
751
  }
746
752
  }),
747
753
  clientDescription: (_viewer$settings8 = viewer.settings) !== null && _viewer$settings8 !== void 0 && _viewer$settings8.storeModalLicenseeClientDescription ? /*#__PURE__*/React.createElement("div", {
@@ -753,7 +759,7 @@ export default function StoreModalUnifiedCheckout(_ref2) {
753
759
  className: "store-modal__cart__checkout-section"
754
760
  }, /*#__PURE__*/React.createElement("h3", {
755
761
  className: "store-modal__cart__checkout-section-title"
756
- }, hasCountryMismatch ? 'Licensee information' : 'Licensee information (your client)'), /*#__PURE__*/React.createElement("div", {
762
+ }, hasCountryMismatch ? t('cart.licenseeInformation') : t('checkout.licenseeInformationClient')), /*#__PURE__*/React.createElement("div", {
757
763
  className: "store-modal__cart__identity-fields"
758
764
  }, /*#__PURE__*/React.createElement(AddressFields, {
759
765
  viewer: viewer,
@@ -766,7 +772,7 @@ export default function StoreModalUnifiedCheckout(_ref2) {
766
772
  "data-disabled": !order.customer
767
773
  }, /*#__PURE__*/React.createElement("h3", {
768
774
  className: "store-modal__cart__checkout-section-title"
769
- }, "Billing information"), /*#__PURE__*/React.createElement("div", {
775
+ }, t('cart.billingInformation')), /*#__PURE__*/React.createElement("div", {
770
776
  className: "store-modal__cart__identity-fields"
771
777
  }, /*#__PURE__*/React.createElement(AddressFields, {
772
778
  viewer: viewer,
@@ -782,23 +788,25 @@ export default function StoreModalUnifiedCheckout(_ref2) {
782
788
  className: "store-modal__cart__button",
783
789
  onClick: handleCheckout,
784
790
  disabled: checkingOut
785
- }, checkingOut ? 'Submitting...' : 'Checkout')) : null, showPaymentSection ? /*#__PURE__*/React.createElement("div", {
791
+ }, checkingOut ? t('common.submittingDots') : t('checkout.checkout'))) : null, showPaymentSection ? /*#__PURE__*/React.createElement("div", {
786
792
  className: "store-modal__cart__checkout-section",
787
793
  "data-disabled": false
788
794
  }, /*#__PURE__*/React.createElement("form", {
789
795
  onSubmit: handleComplete
790
796
  }, !zeroOrder && ((_order$stripePaymentI = order.stripePaymentIntent) === null || _order$stripePaymentI === void 0 ? void 0 : _order$stripePaymentI.clientSecret) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h3", {
791
797
  className: "store-modal__cart__checkout-section-title"
792
- }, "Payment information", /*#__PURE__*/React.createElement("span", {
798
+ }, t('checkout.paymentInformation'), /*#__PURE__*/React.createElement("span", {
793
799
  className: "store-modal__cart__checkout-section-subtitle"
794
800
  }, /*#__PURE__*/React.createElement("a", {
795
801
  href: "https://stripe.com",
796
802
  target: "_blank",
797
803
  rel: "noopener"
798
- }, "Powered by ", /*#__PURE__*/React.createElement(StripeLogo, null)))), /*#__PURE__*/React.createElement("div", {
804
+ }, t.rich('checkout.poweredBy', {
805
+ logo: /*#__PURE__*/React.createElement(StripeLogo, null)
806
+ })))), /*#__PURE__*/React.createElement("div", {
799
807
  className: "store-modal__cart__payment"
800
808
  }, /*#__PURE__*/React.createElement(Sentry.ErrorBoundary, {
801
- fallback: /*#__PURE__*/React.createElement("div", null, "Something went wrong")
809
+ fallback: /*#__PURE__*/React.createElement("div", null, t('common.somethingWentWrong'))
802
810
  }, /*#__PURE__*/React.createElement(PaymentElement, {
803
811
  onChange: handlePaymentChange,
804
812
  options: {
@@ -832,10 +840,12 @@ export default function StoreModalUnifiedCheckout(_ref2) {
832
840
  type: "submit",
833
841
  className: "store-modal__cart__button",
834
842
  disabled: completing || !acceptedEULA
835
- }, completing ? 'Submitting...' : zeroOrder ? 'Complete order' : /*#__PURE__*/React.createElement("span", null, "Pay", ' ', (_order$stripePaymentI2 = order.stripePaymentIntent) !== null && _order$stripePaymentI2 !== void 0 && _order$stripePaymentI2.amount && (_order$stripePaymentI3 = order.stripePaymentIntent) !== null && _order$stripePaymentI3 !== void 0 && _order$stripePaymentI3.currency ? /*#__PURE__*/React.createElement(Price, {
836
- price: {
837
- amount: order.stripePaymentIntent.amount,
838
- currency: order.stripePaymentIntent.currency
839
- }
840
- }) : null)))) : null);
843
+ }, completing ? t('common.submittingDots') : zeroOrder ? t('checkout.completeOrder') : /*#__PURE__*/React.createElement("span", null, t.rich('checkout.pay', {
844
+ price: (_order$stripePaymentI2 = order.stripePaymentIntent) !== null && _order$stripePaymentI2 !== void 0 && _order$stripePaymentI2.amount && (_order$stripePaymentI3 = order.stripePaymentIntent) !== null && _order$stripePaymentI3 !== void 0 && _order$stripePaymentI3.currency ? /*#__PURE__*/React.createElement(Price, {
845
+ price: {
846
+ amount: order.stripePaymentIntent.amount,
847
+ currency: order.stripePaymentIntent.currency
848
+ }
849
+ }) : null
850
+ }))))) : null);
841
851
  }
package/dist/fontdue.css CHANGED
@@ -127,6 +127,7 @@
127
127
  display: block;
128
128
  width: 1em;
129
129
  height: 1em;
130
+ max-width: none;
130
131
  fill: currentColor;
131
132
  }
132
133
 
@@ -1331,6 +1332,52 @@ fontdue-feature-testers {
1331
1332
  }
1332
1333
  }
1333
1334
 
1335
+ .character-viewer_blocks[data-collapsed=height] {
1336
+ max-height: var(--collapsed-height);
1337
+ overflow: hidden;
1338
+ }
1339
+ .character-viewer_blocks[data-collapsed=height][data-overflowing] {
1340
+ mask-image: linear-gradient(to bottom, black calc(100% - 80px), transparent);
1341
+ }
1342
+
1343
+ .character-viewer__load-more {
1344
+ grid-column: -2/-1;
1345
+ align-self: start;
1346
+ margin-top: -10px;
1347
+ text-align: center;
1348
+ }
1349
+
1350
+ .character-viewer__character-map[data-collapsible] {
1351
+ grid-template-rows: auto 1fr;
1352
+ }
1353
+ .character-viewer__character-map[data-collapsible] > .character-viewer__monitor {
1354
+ grid-row: span 2;
1355
+ }
1356
+
1357
+ .character-viewer__load-more__button {
1358
+ background: none;
1359
+ color: inherit;
1360
+ font: inherit;
1361
+ text-decoration: inherit;
1362
+ text-align: inherit;
1363
+ border: 0;
1364
+ border-radius: 0;
1365
+ padding: 0;
1366
+ margin: 0;
1367
+ appearance: none;
1368
+ text-transform: inherit;
1369
+ }
1370
+ .character-viewer__load-more__button:active, .character-viewer__load-more__button:focus {
1371
+ outline: none;
1372
+ }
1373
+ .character-viewer__load-more__button:not(:disabled) {
1374
+ cursor: pointer;
1375
+ }
1376
+ .character-viewer__load-more__button {
1377
+ color: var(--character_viewer_load_more_color, var(--secondary_text_color));
1378
+ text-decoration: underline;
1379
+ }
1380
+
1334
1381
  .character-viewer__block {
1335
1382
  clear: both;
1336
1383
  }
@@ -1667,6 +1714,18 @@ input:checked + .checkbox__icon {
1667
1714
  margin-bottom: 20px;
1668
1715
  }
1669
1716
 
1717
+ .store-modal__cart__notice,
1718
+ .store-modal__cart__review > .store-modal__cart__error {
1719
+ grid-column: 1/span 2;
1720
+ margin: 20px 0;
1721
+ }
1722
+ @media (min-width: 900px) {
1723
+ .store-modal__cart__notice,
1724
+ .store-modal__cart__review > .store-modal__cart__error {
1725
+ margin: 0;
1726
+ }
1727
+ }
1728
+
1670
1729
  .store-modal__cart__payment {
1671
1730
  margin-bottom: 20px;
1672
1731
  }
@@ -1784,6 +1843,7 @@ input:checked + .checkbox__icon {
1784
1843
 
1785
1844
  .store-modal__container__buttons {
1786
1845
  text-align: right;
1846
+ white-space: nowrap;
1787
1847
  }
1788
1848
 
1789
1849
  .store-modal__container__back-button {
@@ -2701,6 +2761,31 @@ input:checked + .checkbox__icon {
2701
2761
  .store-modal__family__bundle-button .store-modal__style-button__price {
2702
2762
  align-self: flex-end;
2703
2763
  }
2764
+ .store-modal__family__bundle-button .store-modal__style-button__checked {
2765
+ height: 1lh;
2766
+ }
2767
+ }
2768
+ .store-modal__family__bundle-button {
2769
+ container-type: inline-size;
2770
+ }
2771
+
2772
+ @container (max-width: 480px) {
2773
+ .store-modal__family__bundle-button .store-modal__style-button__container {
2774
+ flex-wrap: wrap;
2775
+ }
2776
+ .store-modal__family__bundle-button .store-modal__style-button__feature-glyphs {
2777
+ flex: 0 0 100%;
2778
+ }
2779
+ .store-modal__family__bundle-button .store-modal__style-button__style-name {
2780
+ flex: 1 1 0;
2781
+ min-width: 0;
2782
+ }
2783
+ .store-modal__family__bundle-button .store-modal__style-button__price {
2784
+ align-self: flex-end;
2785
+ }
2786
+ .store-modal__family__bundle-button .store-modal__style-button__checked {
2787
+ height: 1lh;
2788
+ }
2704
2789
  }
2705
2790
  body[data-fontdue-store-modal=open] {
2706
2791
  overflow: hidden;
@@ -1,5 +1,5 @@
1
1
  export declare const RECAPTCHA_TIMEOUT_MS = 15000;
2
- export declare const RECAPTCHA_UNAVAILABLE_MESSAGE = "We couldn\u2019t verify that you\u2019re human. Please refresh the page and try again.";
2
+ export declare const RECAPTCHA_UNAVAILABLE_MESSAGE: string;
3
3
  export declare function isRecaptchaScriptLoaded(): boolean;
4
4
  export interface RecaptchaTimeout {
5
5
  /** (Re)start the timer. Any previously scheduled callback is cancelled. */
@@ -1,4 +1,5 @@
1
1
  import { useEffect, useRef } from 'react';
2
+ import en from '../i18n/en.js';
2
3
 
3
4
  // How long we wait for the invisible reCAPTCHA widget to hand back a token
4
5
  // after calling `execute()` before we give up. reCAPTCHA normally resolves in
@@ -9,8 +10,9 @@ export const RECAPTCHA_TIMEOUT_MS = 15000;
9
10
 
10
11
  // User-facing message shown when the reCAPTCHA widget never produced a token
11
12
  // (typically because Google's api.js failed to load). Curly apostrophes per
12
- // the Fontdue house style.
13
- export const RECAPTCHA_UNAVAILABLE_MESSAGE = 'We couldn’t verify that you’re human. Please refresh the page and try again.';
13
+ // the Fontdue house style. This is the English message; components show it
14
+ // through `t('recaptcha.unavailable')` so it follows the page's language.
15
+ export const RECAPTCHA_UNAVAILABLE_MESSAGE = en['recaptcha.unavailable'];
14
16
 
15
17
  // True once Google's reCAPTCHA script (`window.grecaptcha`) has loaded. We use
16
18
  // this to tell the two failure modes apart when the timeout fires:
@@ -0,0 +1,3 @@
1
+ import type { Catalogue } from './types.js';
2
+ declare const de: Catalogue;
3
+ export default de;