fontdue-js 3.5.1 → 3.7.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 (151) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +2 -0
  3. package/dist/__generated__/CheckoutUpdateCustomerMutation.graphql.d.ts +3 -1
  4. package/dist/__generated__/CheckoutUpdateCustomerMutation.graphql.js +1 -1
  5. package/dist/__generated__/CustomerSignInRequestLoginCodeMutation.graphql.d.ts +24 -0
  6. package/dist/__generated__/CustomerSignInRequestLoginCodeMutation.graphql.js +71 -0
  7. package/dist/__generated__/CustomerSignInVerifyLoginCodeMutation.graphql.d.ts +30 -0
  8. package/dist/__generated__/CustomerSignInVerifyLoginCodeMutation.graphql.js +98 -0
  9. package/dist/__generated__/FontFamiliesQuery.graphql.d.ts +4 -1
  10. package/dist/__generated__/FontFamiliesQuery.graphql.js +46 -39
  11. package/dist/__generated__/NewsletterSignupUpdateCustomerMutation.graphql.d.ts +3 -1
  12. package/dist/__generated__/NewsletterSignupUpdateCustomerMutation.graphql.js +1 -1
  13. package/dist/__generated__/PriceBar_node.graphql.d.ts +4 -1
  14. package/dist/__generated__/PriceBar_node.graphql.js +23 -16
  15. package/dist/__generated__/StoreModalFamily_collection.graphql.d.ts +3 -2
  16. package/dist/__generated__/StoreModalFamily_collection.graphql.js +3 -3
  17. package/dist/__generated__/StoreModalIndexPaginationQuery.graphql.d.ts +23 -0
  18. package/dist/__generated__/StoreModalIndexPaginationQuery.graphql.js +303 -0
  19. package/dist/__generated__/StoreModalIndexQuery.graphql.d.ts +4 -9
  20. package/dist/__generated__/StoreModalIndexQuery.graphql.js +90 -53
  21. package/dist/__generated__/StoreModalIndex_viewer.graphql.d.ts +24 -0
  22. package/dist/__generated__/StoreModalIndex_viewer.graphql.js +134 -0
  23. package/dist/__generated__/StoreModalProductContent_collection.graphql.d.ts +4 -1
  24. package/dist/__generated__/StoreModalProductContent_collection.graphql.js +12 -5
  25. package/dist/__generated__/StoreModalProductLicenseSelection_collection.graphql.d.ts +2 -1
  26. package/dist/__generated__/StoreModalProductLicenseSelection_collection.graphql.js +27 -24
  27. package/dist/__generated__/StoreModalProductQuery.graphql.d.ts +2 -19
  28. package/dist/__generated__/StoreModalProductQuery.graphql.js +143 -174
  29. package/dist/__generated__/StoreModalProductRefetchQuery.graphql.d.ts +1 -1
  30. package/dist/__generated__/StoreModalProductRefetchQuery.graphql.js +54 -53
  31. package/dist/__generated__/StoreModalProductSlugQuery.graphql.d.ts +38 -0
  32. package/dist/__generated__/StoreModalProductSlugQuery.graphql.js +750 -0
  33. package/dist/__generated__/StoreModalProductViewer.graphql.d.ts +34 -0
  34. package/dist/__generated__/StoreModalProductViewer.graphql.js +149 -0
  35. package/dist/__generated__/StoreModalUnifiedCheckoutUpdateCustomerMutation.graphql.d.ts +3 -1
  36. package/dist/__generated__/StoreModalUnifiedCheckoutUpdateCustomerMutation.graphql.js +1 -1
  37. package/dist/__generated__/TestFontsFormUpdateCustomerMutation.graphql.d.ts +3 -1
  38. package/dist/__generated__/TestFontsFormUpdateCustomerMutation.graphql.js +1 -1
  39. package/dist/__generated__/TypeTestersIDQuery.graphql.d.ts +1 -1
  40. package/dist/__generated__/TypeTestersIDQuery.graphql.js +17 -10
  41. package/dist/__generated__/TypeTestersRefetchQuery.graphql.d.ts +1 -1
  42. package/dist/__generated__/TypeTestersRefetchQuery.graphql.js +17 -10
  43. package/dist/__generated__/TypeTestersSlugQuery.graphql.d.ts +1 -1
  44. package/dist/__generated__/TypeTestersSlugQuery.graphql.js +17 -10
  45. package/dist/__generated__/storefrontEventsTrackStorefrontEventMutation.graphql.d.ts +41 -0
  46. package/dist/__generated__/storefrontEventsTrackStorefrontEventMutation.graphql.js +65 -0
  47. package/dist/__generated__/useCurrentCustomerQuery.graphql.d.ts +23 -0
  48. package/dist/__generated__/{ServerConfigProviderQuery.graphql.js → useCurrentCustomerQuery.graphql.js} +24 -39
  49. package/dist/__tests__/bundleSelectionOrder.test.js +92 -0
  50. package/dist/__tests__/collectionBundleSelection.test.js +441 -1446
  51. package/dist/__tests__/customerSession.test.js +456 -0
  52. package/dist/__tests__/infiniteScroll.test.js +180 -0
  53. package/dist/__tests__/licenseExclusions.test.js +2 -1
  54. package/dist/__tests__/storeModalRoutes.test.js +118 -0
  55. package/dist/__tests__/storefrontEvents.test.js +167 -0
  56. package/dist/__tests__/stripeElements.test.js +173 -0
  57. package/dist/__tests__/typeTesterAutofitFeatures.test.js +138 -0
  58. package/dist/__tests__/typeTesterInitialSize.test.js +82 -0
  59. package/dist/__tests__/typeTesterTruncate.test.js +218 -0
  60. package/dist/auth/session.d.ts +42 -0
  61. package/dist/auth/session.js +139 -0
  62. package/dist/auth/tokenStore.d.ts +61 -0
  63. package/dist/auth/tokenStore.js +162 -0
  64. package/dist/components/Cart/Checkout.js +19 -9
  65. package/dist/components/Cart/storefrontEvents.d.ts +34 -0
  66. package/dist/components/Cart/storefrontEvents.js +138 -0
  67. package/dist/components/ConfigContext.d.ts +2 -2
  68. package/dist/components/CustomerSignIn/index.d.ts +33 -0
  69. package/dist/components/CustomerSignIn/index.js +170 -0
  70. package/dist/components/FontFamilies/index.js +4 -3
  71. package/dist/components/NewsletterSignup/index.js +5 -1
  72. package/dist/components/Precart/index.js +6 -0
  73. package/dist/components/PriceBar/index.js +5 -3
  74. package/dist/components/Root/index.js +4 -34
  75. package/dist/components/Root/productState.d.ts +2 -8
  76. package/dist/components/Root/productState.js +46 -57
  77. package/dist/components/SKUPrice/index.js +7 -8
  78. package/dist/components/StoreModal/StoreModalFamily.js +4 -2
  79. package/dist/components/StoreModal/StoreModalIndex.js +48 -7
  80. package/dist/components/StoreModal/StoreModalProduct.d.ts +5 -1
  81. package/dist/components/StoreModal/StoreModalProduct.js +69 -16
  82. package/dist/components/StoreModal/index.js +14 -14
  83. package/dist/components/StoreModal/routes.js +9 -1
  84. package/dist/components/StoreModalProductLicenseSelection/StoreModalProductLicense.d.ts +2 -1
  85. package/dist/components/StoreModalProductLicenseSelection/StoreModalProductLicense.js +8 -3
  86. package/dist/components/StoreModalProductLicenseSelection/index.js +3 -2
  87. package/dist/components/TestFontsForm/index.js +5 -1
  88. package/dist/components/TypeTester/TypeTesterContent.js +9 -2
  89. package/dist/components/TypeTester/TypeTesterContext.js +17 -4
  90. package/dist/components/TypeTester/TypeTesterFitter.js +7 -2
  91. package/dist/components/TypeTester/TypeTesterStandalone.d.ts +2 -0
  92. package/dist/components/TypeTester/TypeTesterStandalone.js +2 -0
  93. package/dist/components/TypeTester/TypeTesterStandaloneElement.d.ts +1 -0
  94. package/dist/components/TypeTester/TypeTesterStandaloneElement.js +4 -1
  95. package/dist/components/TypeTester/TypeTesterVariableAxes.js +16 -10
  96. package/dist/components/TypeTester/index.d.ts +3 -1
  97. package/dist/components/TypeTester/index.js +2 -1
  98. package/dist/components/TypeTester/truncate.d.ts +12 -0
  99. package/dist/components/TypeTester/truncate.js +95 -0
  100. package/dist/components/TypeTester/useTypeTesterStyler.d.ts +3 -1
  101. package/dist/components/TypeTester/useTypeTesterStyler.js +36 -7
  102. package/dist/components/TypeTesters/TypeTestersElement.d.ts +2 -1
  103. package/dist/components/TypeTesters/TypeTestersElement.js +4 -1
  104. package/dist/components/TypeTesters/index.d.ts +2 -0
  105. package/dist/components/elements/StoreModalContainer/StoreModalContainerContext.d.ts +1 -0
  106. package/dist/components/elements/StoreModalContainer/index.js +9 -4
  107. package/dist/components/elements/StoreModalIndexLoadMore/index.d.ts +8 -0
  108. package/dist/components/elements/StoreModalIndexLoadMore/index.js +21 -0
  109. package/dist/components/elements/StoreModalUnifiedCheckout.d.ts +1 -1
  110. package/dist/components/elements/StoreModalUnifiedCheckout.js +20 -17
  111. package/dist/components/useInfiniteScroll.d.ts +28 -0
  112. package/dist/components/useInfiniteScroll.js +50 -0
  113. package/dist/fontdue.css +63 -0
  114. package/dist/hooks/useAutofit.d.ts +2 -1
  115. package/dist/hooks/useAutofit.js +10 -4
  116. package/dist/hooks/useCurrentCustomer.d.ts +34 -0
  117. package/dist/hooks/useCurrentCustomer.js +93 -0
  118. package/dist/reducer.d.ts +5 -5
  119. package/dist/reducer.js +9 -87
  120. package/dist/relay/environment.js +91 -50
  121. package/dist/selection.d.ts +40 -0
  122. package/dist/selection.js +494 -0
  123. package/dist/storeModalRoutes.d.ts +38 -0
  124. package/dist/storeModalRoutes.js +110 -0
  125. package/dist/stripeElements.d.ts +18 -0
  126. package/dist/stripeElements.js +49 -0
  127. package/dist/utils.d.ts +1 -12
  128. package/dist/utils.js +1 -36
  129. package/dist/version.js +1 -1
  130. package/package.json +1 -1
  131. package/dist/__generated__/NodePasswordFormIDQuery.graphql.d.ts +0 -21
  132. package/dist/__generated__/NodePasswordFormIDQuery.graphql.js +0 -86
  133. package/dist/__generated__/NodePasswordFormSlugQuery.graphql.d.ts +0 -25
  134. package/dist/__generated__/NodePasswordFormSlugQuery.graphql.js +0 -108
  135. package/dist/__generated__/ServerConfigProviderQuery.graphql.d.ts +0 -24
  136. package/dist/__generated__/TestModeBannerQuery.graphql.d.ts +0 -20
  137. package/dist/__generated__/TestModeBannerQuery.graphql.js +0 -87
  138. package/dist/__generated__/ThemeConfigQuery.graphql.d.ts +0 -20
  139. package/dist/__generated__/ThemeConfigQuery.graphql.js +0 -87
  140. package/dist/components/CartButton/index.server.d.ts +0 -3
  141. package/dist/components/CartButton/index.server.js +0 -18
  142. package/dist/components/CorsErrorModal.d.ts +0 -1
  143. package/dist/components/CorsErrorModal.js +0 -92
  144. package/dist/components/FontdueProvider/FontdueProviderClientComponent.d.ts +0 -14
  145. package/dist/components/FontdueProvider/FontdueProviderClientComponent.js +0 -61
  146. package/dist/components/ThemeConfig/index.server.d.ts +0 -2
  147. package/dist/components/ThemeConfig/index.server.js +0 -17
  148. package/dist/components/TypeTester/features.d.ts +0 -5
  149. package/dist/components/TypeTester/features.js +0 -143
  150. package/dist/data/unicodeData.d.ts +0 -4
  151. package/dist/data/unicodeData.js +0 -1
@@ -0,0 +1,49 @@
1
+ // Stripe.js (the `basil` build of 2026-09-17) throws "Unable to select
2
+ // session. Make sure Elements is initialized with clientSecret…" from
3
+ // `elements.submit()` when the Elements group has no session – one created
4
+ // without a `clientSecret` or `mode`. It also leaks a second, unhandled
5
+ // rejection of its own even when the returned promise is caught, so the
6
+ // console shows the error regardless. Groups without a session are common
7
+ // here: a Stripe Tax order checks out through Embedded Checkout and never has
8
+ // a PaymentIntent, the Cart's billing and licensee steps run before the order
9
+ // has one, and an order a coupon makes free has none.
10
+
11
+ const ADDRESS_MODES = ['billing', 'shipping'];
12
+
13
+ /**
14
+ * Validates the Address Elements mounted in `elements`, showing any errors
15
+ * inline beside their fields, and resolves to whether they are complete.
16
+ *
17
+ * Needs no session, so use it wherever only addresses are mounted – the Store
18
+ * Modal's Stripe Tax Checkout button and the Cart's billing and licensee
19
+ * steps – rather than `elements.submit()`.
20
+ */
21
+ export async function validateAddressElements(elements) {
22
+ if (!elements) return true;
23
+ const complete = await Promise.all(ADDRESS_MODES.map(async mode => {
24
+ const element = elements.getElement('address', {
25
+ mode
26
+ });
27
+ return element ? (await element.getValue()).complete : true;
28
+ }));
29
+ return complete.every(Boolean);
30
+ }
31
+
32
+ /**
33
+ * Validates every Element mounted in `elements` with `elements.submit()` –
34
+ * which a Payment Element needs before confirming – and resolves to whether
35
+ * the form may go ahead. A group with no session has no Payment Element to
36
+ * validate, so when `submit()` throws for that reason the Address Elements
37
+ * are validated on their own.
38
+ */
39
+ export async function validateElements(elements) {
40
+ if (!elements) return true;
41
+ try {
42
+ const {
43
+ error
44
+ } = await elements.submit();
45
+ return !error;
46
+ } catch {
47
+ return validateAddressElements(elements);
48
+ }
49
+ }
package/dist/utils.d.ts CHANGED
@@ -1,17 +1,7 @@
1
- import { CollectionStyleSkus } from './components/Root/productState.js';
2
- import type { FontdueState } from './reducer.js';
1
+ export { isSelected } from './selection.js';
3
2
  export declare const pluralize: (count: number, singular: string, plural?: string) => string;
4
3
  export declare function notEmpty<TValue>(value: TValue | null | undefined): value is TValue;
5
4
  export declare function kebabToCamel(str: string): string;
6
- export declare const collContainsSkuId: (coll: CollectionStyleSkus | undefined, skuIdOrStyleId: string) => boolean;
7
- export declare const collTransitivelyContainsSkuId: (collectionStyleSkus: {
8
- [key: string]: CollectionStyleSkus | undefined;
9
- }, collSkuId: string, skuIdOrStyleId: string) => boolean;
10
- interface CollectionSkuIdsDifferences {
11
- [collectionSkuId: string]: number;
12
- }
13
- export declare const isSelected: (skuIdOrStyleId: string | null) => (state: FontdueState) => boolean;
14
- export declare const collectionSkuIdsDifferences: (state: FontdueState, skuId: string) => CollectionSkuIdsDifferences;
15
5
  export type VariableSettings = {
16
6
  [axis: string]: number;
17
7
  };
@@ -31,4 +21,3 @@ export declare const parseCustomProperties: (props: readonly string[] | null | u
31
21
  };
32
22
  export declare const inspect: (value: any) => any;
33
23
  export declare function getFeatureGlyphs(supportedLanguages: readonly string[] | null): "Aa" | "ت" | "Αα" | "Аа" | null;
34
- export {};
package/dist/utils.js CHANGED
@@ -1,3 +1,4 @@
1
+ export { isSelected } from './selection.js';
1
2
  export const pluralize = (count, singular, plural) => {
2
3
  if (count === 1) return `1 ${singular}`;
3
4
  if (!plural) return `${count} ${singular}s`;
@@ -11,42 +12,6 @@ export function kebabToCamel(str) {
11
12
  return g[1].toUpperCase();
12
13
  });
13
14
  }
14
-
15
- // where coll is a member of `collectionStyleSkus`;
16
- export const collContainsSkuId = (coll, skuIdOrStyleId) => {
17
- if (!coll) return false;
18
- return coll.childrenSkuIds.indexOf(skuIdOrStyleId) >= 0 || coll.fontStyleSkuIds.indexOf(skuIdOrStyleId) >= 0 || coll.fontStyleIds.indexOf(skuIdOrStyleId) >= 0;
19
- };
20
-
21
- // Transitive containment check — walks the collection hierarchy to find
22
- // if a SKU is contained at any depth (e.g., collection bundle → family → bundle)
23
- export const collTransitivelyContainsSkuId = (collectionStyleSkus, collSkuId, skuIdOrStyleId) => {
24
- const coll = collectionStyleSkus[collSkuId];
25
- if (!coll) return false;
26
- if (collContainsSkuId(coll, skuIdOrStyleId)) return true;
27
- return coll.childrenSkuIds.some(childSkuId => collTransitivelyContainsSkuId(collectionStyleSkus, childSkuId, skuIdOrStyleId));
28
- };
29
- export const isSelected = skuIdOrStyleId => state => {
30
- if (!skuIdOrStyleId) return false;
31
- if (state.selectedSkuIds[skuIdOrStyleId] === true) return true;
32
- // get the collections that contain this skuId as a fontStyle or child
33
- const parentCollectionSkuIds = Object.keys(state.collectionStyleSkus).filter(collSkuId => collContainsSkuId(state.collectionStyleSkus[collSkuId], skuIdOrStyleId));
34
- // Recursively check ancestors — handles transitive selection
35
- // (e.g., collection bundle → family → bundle)
36
- return parentCollectionSkuIds.some(parentSkuId => isSelected(parentSkuId)(state));
37
- };
38
-
39
- // find any collection ancestors that contain this skuId,
40
- // then for each collection, sum the price of selected skus,
41
- // and return the delta between the collection price and the sum.
42
- export const collectionSkuIdsDifferences = (state, skuId) => Object.keys(state.collectionStyleSkus).filter(collectionSkuId => {
43
- return skuId === collectionSkuId || collTransitivelyContainsSkuId(state.collectionStyleSkus, collectionSkuId, skuId);
44
- }).reduce((acc, collectionSkuId) => {
45
- const selectedSkuIdsInColl = Object.keys(state.selectedSkuIds).filter(selectedSkuId => state.selectedSkuIds[selectedSkuId] === true && collTransitivelyContainsSkuId(state.collectionStyleSkus, collectionSkuId, selectedSkuId));
46
- const sumOfSelectedSkuIdsInColl = selectedSkuIdsInColl.map(selectedSkuId => state.skuPrices[selectedSkuId] ?? 0).reduce((acc, price) => acc + price, 0);
47
- acc[collectionSkuId] = (state.skuPrices[collectionSkuId] ?? 0) - sumOfSelectedSkuIdsInColl;
48
- return acc;
49
- }, {});
50
15
  export const variableInstanceSettings = instance => instance === null || instance === void 0 ? void 0 : instance.coordinates.reduce((acc, _ref) => {
51
16
  let {
52
17
  axis,
package/dist/version.js CHANGED
@@ -8,4 +8,4 @@
8
8
  // (Fontage.ClientVersions) to spot sites that need to upgrade before a
9
9
  // feature that depends on a newer client can work for them.
10
10
  export const CLIENT_VERSION_HEADER = 'fontdue-client-version';
11
- export const version = "3.5.1";
11
+ export const version = "3.7.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fontdue-js",
3
- "version": "3.5.1",
3
+ "version": "3.7.0",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "npm run relay && run-p build-js build-css build-ts",
@@ -1,21 +0,0 @@
1
- /**
2
- * @generated SignedSource<<33beefdcda09562d6a9a0d000ee37644>>
3
- * @lightSyntaxTransform
4
- * @nogrep
5
- */
6
- import { ConcreteRequest } from 'relay-runtime';
7
- import { Result } from "relay-runtime";
8
- export type NodePasswordFormIDQuery$variables = {
9
- collectionId: string;
10
- };
11
- export type NodePasswordFormIDQuery$data = {
12
- readonly collection: Result<{
13
- readonly id: string;
14
- } | null, ReadonlyArray<unknown>>;
15
- };
16
- export type NodePasswordFormIDQuery = {
17
- response: NodePasswordFormIDQuery$data;
18
- variables: NodePasswordFormIDQuery$variables;
19
- };
20
- declare const node: ConcreteRequest;
21
- export default node;
@@ -1,86 +0,0 @@
1
- /**
2
- * @generated SignedSource<<33beefdcda09562d6a9a0d000ee37644>>
3
- * @lightSyntaxTransform
4
- * @nogrep
5
- */
6
-
7
- /* tslint:disable */
8
- /* eslint-disable */
9
- // @ts-nocheck
10
-
11
- const node = function () {
12
- var v0 = [{
13
- "defaultValue": null,
14
- "kind": "LocalArgument",
15
- "name": "collectionId"
16
- }],
17
- v1 = [{
18
- "kind": "Variable",
19
- "name": "id",
20
- "variableName": "collectionId"
21
- }],
22
- v2 = {
23
- "alias": null,
24
- "args": null,
25
- "kind": "ScalarField",
26
- "name": "id",
27
- "storageKey": null
28
- };
29
- return {
30
- "fragment": {
31
- "argumentDefinitions": v0 /*: any*/,
32
- "kind": "Fragment",
33
- "metadata": null,
34
- "name": "NodePasswordFormIDQuery",
35
- "selections": [{
36
- "kind": "CatchField",
37
- "field": {
38
- "alias": "collection",
39
- "args": v1 /*: any*/,
40
- "concreteType": null,
41
- "kind": "LinkedField",
42
- "name": "node",
43
- "plural": false,
44
- "selections": [v2 /*: any*/],
45
- "storageKey": null
46
- },
47
- "to": "RESULT",
48
- "path": "collection"
49
- }],
50
- "type": "RootQueryType",
51
- "abstractKey": null
52
- },
53
- "kind": "Request",
54
- "operation": {
55
- "argumentDefinitions": v0 /*: any*/,
56
- "kind": "Operation",
57
- "name": "NodePasswordFormIDQuery",
58
- "selections": [{
59
- "alias": "collection",
60
- "args": v1 /*: any*/,
61
- "concreteType": null,
62
- "kind": "LinkedField",
63
- "name": "node",
64
- "plural": false,
65
- "selections": [{
66
- "alias": null,
67
- "args": null,
68
- "kind": "ScalarField",
69
- "name": "__typename",
70
- "storageKey": null
71
- }, v2 /*: any*/],
72
- "storageKey": null
73
- }]
74
- },
75
- "params": {
76
- "cacheID": "d8978a72e2d230c21d816fa3badc7fe6",
77
- "id": null,
78
- "metadata": {},
79
- "name": "NodePasswordFormIDQuery",
80
- "operationKind": "query",
81
- "text": "query NodePasswordFormIDQuery(\n $collectionId: ID!\n) {\n collection: node(id: $collectionId) {\n __typename\n id\n }\n}\n"
82
- }
83
- };
84
- }();
85
- node.hash = "2af86f8f6df3d2e6061ea1c9dd777a26";
86
- export default node;
@@ -1,25 +0,0 @@
1
- /**
2
- * @generated SignedSource<<7473d32d0aef654828b43e20b4068773>>
3
- * @lightSyntaxTransform
4
- * @nogrep
5
- */
6
- import { ConcreteRequest } from 'relay-runtime';
7
- import { Result } from "relay-runtime";
8
- export type NodePasswordFormSlugQuery$variables = {
9
- collectionSlug: string;
10
- };
11
- export type NodePasswordFormSlugQuery$data = {
12
- readonly viewer: {
13
- readonly slug: {
14
- readonly collection: Result<{
15
- readonly id: string;
16
- } | null, ReadonlyArray<unknown>>;
17
- } | null;
18
- };
19
- };
20
- export type NodePasswordFormSlugQuery = {
21
- response: NodePasswordFormSlugQuery$data;
22
- variables: NodePasswordFormSlugQuery$variables;
23
- };
24
- declare const node: ConcreteRequest;
25
- export default node;
@@ -1,108 +0,0 @@
1
- /**
2
- * @generated SignedSource<<7473d32d0aef654828b43e20b4068773>>
3
- * @lightSyntaxTransform
4
- * @nogrep
5
- */
6
-
7
- /* tslint:disable */
8
- /* eslint-disable */
9
- // @ts-nocheck
10
-
11
- const node = function () {
12
- var v0 = [{
13
- "defaultValue": null,
14
- "kind": "LocalArgument",
15
- "name": "collectionSlug"
16
- }],
17
- v1 = [{
18
- "kind": "Variable",
19
- "name": "name",
20
- "variableName": "collectionSlug"
21
- }],
22
- v2 = {
23
- "alias": null,
24
- "args": null,
25
- "kind": "ScalarField",
26
- "name": "id",
27
- "storageKey": null
28
- },
29
- v3 = {
30
- "alias": "collection",
31
- "args": null,
32
- "concreteType": "FontCollection",
33
- "kind": "LinkedField",
34
- "name": "fontCollection",
35
- "plural": false,
36
- "selections": [v2 /*: any*/],
37
- "storageKey": null
38
- };
39
- return {
40
- "fragment": {
41
- "argumentDefinitions": v0 /*: any*/,
42
- "kind": "Fragment",
43
- "metadata": null,
44
- "name": "NodePasswordFormSlugQuery",
45
- "selections": [{
46
- "alias": null,
47
- "args": null,
48
- "concreteType": "Viewer",
49
- "kind": "LinkedField",
50
- "name": "viewer",
51
- "plural": false,
52
- "selections": [{
53
- "alias": null,
54
- "args": v1 /*: any*/,
55
- "concreteType": "Slug",
56
- "kind": "LinkedField",
57
- "name": "slug",
58
- "plural": false,
59
- "selections": [{
60
- "kind": "CatchField",
61
- "field": v3 /*: any*/,
62
- "to": "RESULT",
63
- "path": "viewer.slug.collection"
64
- }],
65
- "storageKey": null
66
- }],
67
- "storageKey": null
68
- }],
69
- "type": "RootQueryType",
70
- "abstractKey": null
71
- },
72
- "kind": "Request",
73
- "operation": {
74
- "argumentDefinitions": v0 /*: any*/,
75
- "kind": "Operation",
76
- "name": "NodePasswordFormSlugQuery",
77
- "selections": [{
78
- "alias": null,
79
- "args": null,
80
- "concreteType": "Viewer",
81
- "kind": "LinkedField",
82
- "name": "viewer",
83
- "plural": false,
84
- "selections": [{
85
- "alias": null,
86
- "args": v1 /*: any*/,
87
- "concreteType": "Slug",
88
- "kind": "LinkedField",
89
- "name": "slug",
90
- "plural": false,
91
- "selections": [v3 /*: any*/, v2 /*: any*/],
92
- "storageKey": null
93
- }, v2 /*: any*/],
94
- "storageKey": null
95
- }]
96
- },
97
- "params": {
98
- "cacheID": "bfee7490ba5b02c2d8c8ab3db780e3f8",
99
- "id": null,
100
- "metadata": {},
101
- "name": "NodePasswordFormSlugQuery",
102
- "operationKind": "query",
103
- "text": "query NodePasswordFormSlugQuery(\n $collectionSlug: String!\n) {\n viewer {\n slug(name: $collectionSlug) {\n collection: fontCollection {\n id\n }\n id\n }\n id\n }\n}\n"
104
- }
105
- };
106
- }();
107
- node.hash = "c40faf067007027fa9ba6673350c7202";
108
- export default node;
@@ -1,24 +0,0 @@
1
- /**
2
- * @generated SignedSource<<e36d7651684826ea0cac76a464f23dcd>>
3
- * @lightSyntaxTransform
4
- * @nogrep
5
- */
6
- import { ConcreteRequest } from 'relay-runtime';
7
- export type ServerConfigProviderQuery$variables = Record<PropertyKey, never>;
8
- export type ServerConfigProviderQuery$data = {
9
- readonly viewer: {
10
- readonly fontdueConfig: {
11
- readonly tracking: {
12
- readonly consentMessage: string | null;
13
- readonly consentRequired: boolean;
14
- readonly enabled: boolean;
15
- } | null;
16
- } | null;
17
- };
18
- };
19
- export type ServerConfigProviderQuery = {
20
- response: ServerConfigProviderQuery$data;
21
- variables: ServerConfigProviderQuery$variables;
22
- };
23
- declare const node: ConcreteRequest;
24
- export default node;
@@ -1,20 +0,0 @@
1
- /**
2
- * @generated SignedSource<<e395904ea5bda751df1ca67f9c74ac55>>
3
- * @lightSyntaxTransform
4
- * @nogrep
5
- */
6
- import { ConcreteRequest } from 'relay-runtime';
7
- export type TestModeBannerQuery$variables = Record<PropertyKey, never>;
8
- export type TestModeBannerQuery$data = {
9
- readonly viewer: {
10
- readonly testMode: {
11
- readonly isActive: boolean;
12
- };
13
- };
14
- };
15
- export type TestModeBannerQuery = {
16
- response: TestModeBannerQuery$data;
17
- variables: TestModeBannerQuery$variables;
18
- };
19
- declare const node: ConcreteRequest;
20
- export default node;
@@ -1,87 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- /**
8
- * @generated SignedSource<<e395904ea5bda751df1ca67f9c74ac55>>
9
- * @lightSyntaxTransform
10
- * @nogrep
11
- */
12
-
13
- /* tslint:disable */
14
- /* eslint-disable */
15
- // @ts-nocheck
16
-
17
- const node = function () {
18
- var v0 = {
19
- "alias": null,
20
- "args": null,
21
- "concreteType": "TestMode",
22
- "kind": "LinkedField",
23
- "name": "testMode",
24
- "plural": false,
25
- "selections": [{
26
- "alias": null,
27
- "args": null,
28
- "kind": "ScalarField",
29
- "name": "isActive",
30
- "storageKey": null
31
- }],
32
- "storageKey": null
33
- };
34
- return {
35
- "fragment": {
36
- "argumentDefinitions": [],
37
- "kind": "Fragment",
38
- "metadata": null,
39
- "name": "TestModeBannerQuery",
40
- "selections": [{
41
- "alias": null,
42
- "args": null,
43
- "concreteType": "Viewer",
44
- "kind": "LinkedField",
45
- "name": "viewer",
46
- "plural": false,
47
- "selections": [v0 /*: any*/],
48
- "storageKey": null
49
- }],
50
- "type": "RootQueryType",
51
- "abstractKey": null
52
- },
53
- "kind": "Request",
54
- "operation": {
55
- "argumentDefinitions": [],
56
- "kind": "Operation",
57
- "name": "TestModeBannerQuery",
58
- "selections": [{
59
- "alias": null,
60
- "args": null,
61
- "concreteType": "Viewer",
62
- "kind": "LinkedField",
63
- "name": "viewer",
64
- "plural": false,
65
- "selections": [v0 /*: any*/, {
66
- "alias": null,
67
- "args": null,
68
- "kind": "ScalarField",
69
- "name": "id",
70
- "storageKey": null
71
- }],
72
- "storageKey": null
73
- }]
74
- },
75
- "params": {
76
- "cacheID": "2cb9255aeee9b1b3edd823ee2f62d8cc",
77
- "id": null,
78
- "metadata": {},
79
- "name": "TestModeBannerQuery",
80
- "operationKind": "query",
81
- "text": "query TestModeBannerQuery {\n viewer {\n testMode {\n isActive\n }\n id\n }\n}\n"
82
- }
83
- };
84
- }();
85
- node.hash = "60ad67ee88ec6b74dd04bdf5572e7faf";
86
- var _default = node;
87
- exports.default = _default;
@@ -1,20 +0,0 @@
1
- /**
2
- * @generated SignedSource<<b292c0ac6583f7d2d7cd8979e5696b21>>
3
- * @lightSyntaxTransform
4
- * @nogrep
5
- */
6
- import { ConcreteRequest } from 'relay-runtime';
7
- export type ThemeConfigQuery$variables = Record<PropertyKey, never>;
8
- export type ThemeConfigQuery$data = {
9
- readonly viewer: {
10
- readonly themeConfig: {
11
- readonly customProperties: ReadonlyArray<string> | null;
12
- } | null;
13
- };
14
- };
15
- export type ThemeConfigQuery = {
16
- response: ThemeConfigQuery$data;
17
- variables: ThemeConfigQuery$variables;
18
- };
19
- declare const node: ConcreteRequest;
20
- export default node;
@@ -1,87 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- /**
8
- * @generated SignedSource<<b292c0ac6583f7d2d7cd8979e5696b21>>
9
- * @lightSyntaxTransform
10
- * @nogrep
11
- */
12
-
13
- /* tslint:disable */
14
- /* eslint-disable */
15
- // @ts-nocheck
16
-
17
- const node = function () {
18
- var v0 = {
19
- "alias": null,
20
- "args": null,
21
- "concreteType": "ThemeConfig",
22
- "kind": "LinkedField",
23
- "name": "themeConfig",
24
- "plural": false,
25
- "selections": [{
26
- "alias": null,
27
- "args": null,
28
- "kind": "ScalarField",
29
- "name": "customProperties",
30
- "storageKey": null
31
- }],
32
- "storageKey": null
33
- };
34
- return {
35
- "fragment": {
36
- "argumentDefinitions": [],
37
- "kind": "Fragment",
38
- "metadata": null,
39
- "name": "ThemeConfigQuery",
40
- "selections": [{
41
- "alias": null,
42
- "args": null,
43
- "concreteType": "Viewer",
44
- "kind": "LinkedField",
45
- "name": "viewer",
46
- "plural": false,
47
- "selections": [v0 /*: any*/],
48
- "storageKey": null
49
- }],
50
- "type": "RootQueryType",
51
- "abstractKey": null
52
- },
53
- "kind": "Request",
54
- "operation": {
55
- "argumentDefinitions": [],
56
- "kind": "Operation",
57
- "name": "ThemeConfigQuery",
58
- "selections": [{
59
- "alias": null,
60
- "args": null,
61
- "concreteType": "Viewer",
62
- "kind": "LinkedField",
63
- "name": "viewer",
64
- "plural": false,
65
- "selections": [v0 /*: any*/, {
66
- "alias": null,
67
- "args": null,
68
- "kind": "ScalarField",
69
- "name": "id",
70
- "storageKey": null
71
- }],
72
- "storageKey": null
73
- }]
74
- },
75
- "params": {
76
- "cacheID": "d1f54ccc72720516df3faf57461c20e1",
77
- "id": null,
78
- "metadata": {},
79
- "name": "ThemeConfigQuery",
80
- "operationKind": "query",
81
- "text": "query ThemeConfigQuery {\n viewer {\n themeConfig {\n customProperties\n }\n id\n }\n}\n"
82
- }
83
- };
84
- }();
85
- node.hash = "c259bee038c4d2ea14c758fba3381f57";
86
- var _default = node;
87
- exports.default = _default;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { CartButton_props } from './index';
3
- export default function CartButton(props: CartButton_props): Promise<React.JSX.Element>;
@@ -1,18 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = CartButton;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _loadSerializableQuery = _interopRequireDefault(require("../../relay/loadSerializableQuery"));
9
- var _index = require("./index");
10
- var _CartButtonQuery = _interopRequireDefault(require("../../__generated__/CartButtonQuery.graphql"));
11
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
13
- async function CartButton(props) {
14
- const preloadedQuery = await (0, _loadSerializableQuery.default)(_CartButtonQuery.default, {});
15
- return /*#__PURE__*/_react.default.createElement(_index.CartButtonPreloadedQueryRenderer, _extends({
16
- preloadedQuery: preloadedQuery
17
- }, props));
18
- }
@@ -1 +0,0 @@
1
- export declare function renderCorsErrorModal(origin: string, fontdueUrl: string): void;