fontdue-js 3.6.0 → 3.8.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 (167) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +5 -4
  3. package/dist/__generated__/AddToCartBannerQuery.graphql.d.ts +1 -1
  4. package/dist/__generated__/AddToCartBannerQuery.graphql.js +16 -10
  5. package/dist/__generated__/AddToCartBanner_item.graphql.d.ts +4 -1
  6. package/dist/__generated__/AddToCartBanner_item.graphql.js +7 -2
  7. package/dist/__generated__/AddToCartBanner_order.graphql.d.ts +4 -1
  8. package/dist/__generated__/AddToCartBanner_order.graphql.js +6 -1
  9. package/dist/__generated__/BuyButtonIDQuery.graphql.d.ts +3 -3
  10. package/dist/__generated__/BuyButtonIDQuery.graphql.js +31 -16
  11. package/dist/__generated__/BuyButtonPackIDQuery.graphql.d.ts +21 -0
  12. package/dist/__generated__/BuyButtonPackIDQuery.graphql.js +129 -0
  13. package/dist/__generated__/BuyButtonPackSlugQuery.graphql.d.ts +25 -0
  14. package/dist/__generated__/BuyButtonPackSlugQuery.graphql.js +167 -0
  15. package/dist/__generated__/BuyButtonSlugQuery.graphql.d.ts +3 -3
  16. package/dist/__generated__/BuyButtonSlugQuery.graphql.js +45 -17
  17. package/dist/__generated__/BuyButton_product.graphql.d.ts +27 -0
  18. package/dist/__generated__/BuyButton_product.graphql.js +72 -0
  19. package/dist/__generated__/CartItemProduct_product.graphql.d.ts +1 -1
  20. package/dist/__generated__/CartItemProduct_product.graphql.js +7 -2
  21. package/dist/__generated__/CartOrderCompleteOrderMutation.graphql.d.ts +1 -1
  22. package/dist/__generated__/CartOrderCompleteOrderMutation.graphql.js +26 -20
  23. package/dist/__generated__/CartOrderRemoveDiscountMutation.graphql.d.ts +1 -1
  24. package/dist/__generated__/CartOrderRemoveDiscountMutation.graphql.js +26 -20
  25. package/dist/__generated__/CartOrderUpdateMutation.graphql.d.ts +1 -1
  26. package/dist/__generated__/CartOrderUpdateMutation.graphql.js +26 -20
  27. package/dist/__generated__/CartQuery.graphql.d.ts +1 -1
  28. package/dist/__generated__/CartQuery.graphql.js +26 -20
  29. package/dist/__generated__/CartStateUpdateMutation.graphql.d.ts +1 -1
  30. package/dist/__generated__/CartStateUpdateMutation.graphql.js +26 -20
  31. package/dist/__generated__/CheckoutUpdateCustomerMutation.graphql.d.ts +1 -1
  32. package/dist/__generated__/CheckoutUpdateCustomerMutation.graphql.js +26 -20
  33. package/dist/__generated__/CheckoutUpdateOrderMutation.graphql.d.ts +1 -1
  34. package/dist/__generated__/CheckoutUpdateOrderMutation.graphql.js +26 -20
  35. package/dist/__generated__/CollectionAa_Query.graphql.d.ts +1 -1
  36. package/dist/__generated__/CollectionAa_Query.graphql.js +20 -14
  37. package/dist/__generated__/CollectionAa_product.graphql.d.ts +7 -1
  38. package/dist/__generated__/CollectionAa_product.graphql.js +22 -16
  39. package/dist/__generated__/FontFamiliesQuery.graphql.d.ts +4 -1
  40. package/dist/__generated__/FontFamiliesQuery.graphql.js +46 -39
  41. package/dist/__generated__/NodePasswordFormElementIDQuery.graphql.d.ts +3 -3
  42. package/dist/__generated__/NodePasswordFormElementIDQuery.graphql.js +9 -9
  43. package/dist/__generated__/NodePasswordFormElementPackSlugQuery.graphql.d.ts +25 -0
  44. package/dist/__generated__/NodePasswordFormElementPackSlugQuery.graphql.js +108 -0
  45. package/dist/__generated__/PrecartAddToCartMutation.graphql.d.ts +1 -1
  46. package/dist/__generated__/PrecartAddToCartMutation.graphql.js +32 -26
  47. package/dist/__generated__/PriceBar_node.graphql.d.ts +4 -1
  48. package/dist/__generated__/PriceBar_node.graphql.js +23 -16
  49. package/dist/__generated__/StoreModalCartQuery.graphql.d.ts +1 -1
  50. package/dist/__generated__/StoreModalCartQuery.graphql.js +37 -31
  51. package/dist/__generated__/StoreModalFamily_collection.graphql.d.ts +3 -2
  52. package/dist/__generated__/StoreModalFamily_collection.graphql.js +3 -3
  53. package/dist/__generated__/StoreModalIndexPackItem_fontPack.graphql.d.ts +23 -0
  54. package/dist/__generated__/StoreModalIndexPackItem_fontPack.graphql.js +58 -0
  55. package/dist/__generated__/StoreModalIndexPaginationQuery.graphql.d.ts +23 -0
  56. package/dist/__generated__/StoreModalIndexPaginationQuery.graphql.js +303 -0
  57. package/dist/__generated__/StoreModalIndexQuery.graphql.d.ts +6 -3
  58. package/dist/__generated__/StoreModalIndexQuery.graphql.js +218 -117
  59. package/dist/__generated__/StoreModalIndex_viewer.graphql.d.ts +24 -0
  60. package/dist/__generated__/StoreModalIndex_viewer.graphql.js +134 -0
  61. package/dist/__generated__/StoreModalPackButton_fontPack.graphql.d.ts +33 -0
  62. package/dist/__generated__/StoreModalPackButton_fontPack.graphql.js +119 -0
  63. package/dist/__generated__/StoreModalPack_fontPack.graphql.d.ts +45 -0
  64. package/dist/__generated__/StoreModalPack_fontPack.graphql.js +150 -0
  65. package/dist/__generated__/StoreModalProductContent_collection.graphql.d.ts +6 -2
  66. package/dist/__generated__/StoreModalProductContent_collection.graphql.js +43 -19
  67. package/dist/__generated__/{StoreModalProductLicenseSelection_collection.graphql.d.ts → StoreModalProductLicenseSelection_licenseable.graphql.d.ts} +7 -6
  68. package/dist/__generated__/StoreModalProductLicenseSelection_licenseable.graphql.js +43 -0
  69. package/dist/__generated__/StoreModalProductQuery.graphql.d.ts +1 -1
  70. package/dist/__generated__/StoreModalProductQuery.graphql.js +199 -142
  71. package/dist/__generated__/StoreModalProductRefetchQuery.graphql.d.ts +1 -1
  72. package/dist/__generated__/StoreModalProductRefetchQuery.graphql.js +190 -133
  73. package/dist/__generated__/StoreModalProductSlugQuery.graphql.d.ts +5 -1
  74. package/dist/__generated__/StoreModalProductSlugQuery.graphql.js +254 -176
  75. package/dist/__generated__/StoreModalProductSummaryRefetchQuery.graphql.d.ts +1 -1
  76. package/dist/__generated__/StoreModalProductSummaryRefetchQuery.graphql.js +9 -4
  77. package/dist/__generated__/StoreModalProductSummary_viewer.graphql.d.ts +7 -1
  78. package/dist/__generated__/StoreModalProductSummary_viewer.graphql.js +7 -2
  79. package/dist/__generated__/TestFontsFormUpdateCustomerMutation.graphql.d.ts +1 -1
  80. package/dist/__generated__/TestFontsFormUpdateCustomerMutation.graphql.js +26 -20
  81. package/dist/__generated__/TypeTestersIDQuery.graphql.d.ts +1 -1
  82. package/dist/__generated__/TypeTestersIDQuery.graphql.js +17 -10
  83. package/dist/__generated__/TypeTestersRefetchQuery.graphql.d.ts +1 -1
  84. package/dist/__generated__/TypeTestersRefetchQuery.graphql.js +17 -10
  85. package/dist/__generated__/TypeTestersSlugQuery.graphql.d.ts +1 -1
  86. package/dist/__generated__/TypeTestersSlugQuery.graphql.js +17 -10
  87. package/dist/__generated__/productState_Query.graphql.d.ts +99 -1
  88. package/dist/__generated__/productState_Query.graphql.js +43 -4
  89. package/dist/__generated__/productState_fontPack.graphql.d.ts +111 -0
  90. package/dist/__generated__/productState_fontPack.graphql.js +117 -0
  91. package/dist/__generated__/storefrontEventsTrackStorefrontEventMutation.graphql.d.ts +41 -0
  92. package/dist/__generated__/storefrontEventsTrackStorefrontEventMutation.graphql.js +65 -0
  93. package/dist/__tests__/bundleSelectionOrder.test.js +94 -0
  94. package/dist/__tests__/collectionBundleSelection.test.js +443 -1446
  95. package/dist/__tests__/fontPackSelection.test.js +435 -0
  96. package/dist/__tests__/infiniteScroll.test.js +180 -0
  97. package/dist/__tests__/licenseExclusions.test.js +4 -1
  98. package/dist/__tests__/storeModalPackButton.test.js +102 -0
  99. package/dist/__tests__/storeModalPackUnlisted.test.js +112 -0
  100. package/dist/__tests__/storeModalRoutes.test.js +9 -0
  101. package/dist/__tests__/storefrontEvents.test.js +167 -0
  102. package/dist/__tests__/typeTesterAutofitFeatures.test.js +138 -0
  103. package/dist/components/AddToCartBanner/index.js +1 -1
  104. package/dist/components/BuyButton/index.d.ts +29 -9
  105. package/dist/components/BuyButton/index.js +123 -26
  106. package/dist/components/BuyButton/index.server.d.ts +4 -2
  107. package/dist/components/BuyButton/index.server.js +24 -3
  108. package/dist/components/Cart/CartItem/CartItemProduct.js +3 -3
  109. package/dist/components/Cart/Checkout.js +11 -1
  110. package/dist/components/Cart/storefrontEvents.d.ts +34 -0
  111. package/dist/components/Cart/storefrontEvents.js +138 -0
  112. package/dist/components/CollectionAa/index.js +2 -2
  113. package/dist/components/FontFamilies/index.js +4 -3
  114. package/dist/components/NodePasswordForm/NodePasswordFormElement.d.ts +1 -1
  115. package/dist/components/NodePasswordForm/NodePasswordFormElement.js +45 -21
  116. package/dist/components/NodePasswordForm/index.d.ts +7 -4
  117. package/dist/components/NodePasswordForm/index.js +6 -6
  118. package/dist/components/Precart/index.js +6 -0
  119. package/dist/components/PriceBar/index.js +5 -3
  120. package/dist/components/Root/productState.d.ts +2 -8
  121. package/dist/components/Root/productState.js +100 -61
  122. package/dist/components/SKUPrice/index.js +7 -8
  123. package/dist/components/StoreModal/StoreModalFamily.d.ts +7 -0
  124. package/dist/components/StoreModal/StoreModalFamily.js +11 -7
  125. package/dist/components/StoreModal/StoreModalIndex.js +58 -7
  126. package/dist/components/StoreModal/StoreModalIndexEntry.d.ts +13 -0
  127. package/dist/components/StoreModal/StoreModalIndexEntry.js +43 -0
  128. package/dist/components/StoreModal/StoreModalIndexItem.js +7 -30
  129. package/dist/components/StoreModal/StoreModalIndexPackItem.d.ts +7 -0
  130. package/dist/components/StoreModal/StoreModalIndexPackItem.js +21 -0
  131. package/dist/components/StoreModal/StoreModalPack.d.ts +9 -0
  132. package/dist/components/StoreModal/StoreModalPack.js +79 -0
  133. package/dist/components/StoreModal/StoreModalPackButton.d.ts +8 -0
  134. package/dist/components/StoreModal/StoreModalPackButton.js +53 -0
  135. package/dist/components/StoreModal/StoreModalProduct.js +49 -19
  136. package/dist/components/StoreModalProductLicenseSelection/StoreModalProductLicense.d.ts +2 -1
  137. package/dist/components/StoreModalProductLicenseSelection/StoreModalProductLicense.js +8 -3
  138. package/dist/components/StoreModalProductLicenseSelection/index.d.ts +3 -3
  139. package/dist/components/StoreModalProductLicenseSelection/index.js +7 -6
  140. package/dist/components/StoreModalProductSummary/index.js +1 -1
  141. package/dist/components/TypeTester/useTypeTesterStyler.js +1 -0
  142. package/dist/components/elements/StoreModalContainer/StoreModalContainerContext.d.ts +1 -0
  143. package/dist/components/elements/StoreModalContainer/index.js +9 -4
  144. package/dist/components/elements/StoreModalFamily/index.d.ts +1 -1
  145. package/dist/components/elements/StoreModalFamily/index.js +1 -1
  146. package/dist/components/elements/StoreModalIndexLoadMore/index.d.ts +8 -0
  147. package/dist/components/elements/StoreModalIndexLoadMore/index.js +21 -0
  148. package/dist/components/elements/StoreModalUnifiedCheckout.js +12 -0
  149. package/dist/components/useInfiniteScroll.d.ts +28 -0
  150. package/dist/components/useInfiniteScroll.js +50 -0
  151. package/dist/fontdue.css +39 -0
  152. package/dist/hooks/useAutofit.d.ts +2 -1
  153. package/dist/hooks/useAutofit.js +10 -4
  154. package/dist/reducer.d.ts +12 -5
  155. package/dist/reducer.js +18 -87
  156. package/dist/selection.d.ts +44 -0
  157. package/dist/selection.js +539 -0
  158. package/dist/storeModalRoutes.js +5 -4
  159. package/dist/utils.d.ts +1 -12
  160. package/dist/utils.js +1 -36
  161. package/dist/version.js +1 -1
  162. package/package.json +1 -1
  163. package/dist/__generated__/BuyButton_collection.graphql.d.ts +0 -25
  164. package/dist/__generated__/BuyButton_collection.graphql.js +0 -49
  165. package/dist/__generated__/StoreModalProductLicenseSelection_collection.graphql.js +0 -40
  166. package/fontdue.css +0 -2733
  167. package/fontdue.css.map +0 -1
@@ -0,0 +1,167 @@
1
+ /**
2
+ * @generated SignedSource<<e7992c96f7ad1c833eda61d490e09988>>
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": "fontPackSlug"
16
+ }],
17
+ v1 = [{
18
+ "kind": "Variable",
19
+ "name": "name",
20
+ "variableName": "fontPackSlug"
21
+ }],
22
+ v2 = {
23
+ "alias": null,
24
+ "args": null,
25
+ "kind": "ScalarField",
26
+ "name": "id",
27
+ "storageKey": null
28
+ },
29
+ v3 = {
30
+ "alias": null,
31
+ "args": null,
32
+ "concreteType": "Sku",
33
+ "kind": "LinkedField",
34
+ "name": "sku",
35
+ "plural": false,
36
+ "selections": [v2 /*: any*/],
37
+ "storageKey": null
38
+ },
39
+ v4 = {
40
+ "alias": null,
41
+ "args": null,
42
+ "concreteType": "FontStyle",
43
+ "kind": "LinkedField",
44
+ "name": "fontStyles",
45
+ "plural": true,
46
+ "selections": [v3 /*: any*/, v2 /*: any*/],
47
+ "storageKey": null
48
+ };
49
+ return {
50
+ "fragment": {
51
+ "argumentDefinitions": v0 /*: any*/,
52
+ "kind": "Fragment",
53
+ "metadata": null,
54
+ "name": "BuyButtonPackSlugQuery",
55
+ "selections": [{
56
+ "alias": null,
57
+ "args": null,
58
+ "concreteType": "Viewer",
59
+ "kind": "LinkedField",
60
+ "name": "viewer",
61
+ "plural": false,
62
+ "selections": [{
63
+ "alias": null,
64
+ "args": v1 /*: any*/,
65
+ "concreteType": "Slug",
66
+ "kind": "LinkedField",
67
+ "name": "slug",
68
+ "plural": false,
69
+ "selections": [{
70
+ "kind": "RequiredField",
71
+ "field": {
72
+ "alias": "product",
73
+ "args": null,
74
+ "concreteType": "FontPack",
75
+ "kind": "LinkedField",
76
+ "name": "fontPack",
77
+ "plural": false,
78
+ "selections": [{
79
+ "args": null,
80
+ "kind": "FragmentSpread",
81
+ "name": "BuyButton_product"
82
+ }],
83
+ "storageKey": null
84
+ },
85
+ "action": "THROW",
86
+ "path": "viewer.slug.product"
87
+ }],
88
+ "storageKey": null
89
+ }],
90
+ "storageKey": null
91
+ }],
92
+ "type": "RootQueryType",
93
+ "abstractKey": null
94
+ },
95
+ "kind": "Request",
96
+ "operation": {
97
+ "argumentDefinitions": v0 /*: any*/,
98
+ "kind": "Operation",
99
+ "name": "BuyButtonPackSlugQuery",
100
+ "selections": [{
101
+ "alias": null,
102
+ "args": null,
103
+ "concreteType": "Viewer",
104
+ "kind": "LinkedField",
105
+ "name": "viewer",
106
+ "plural": false,
107
+ "selections": [{
108
+ "alias": null,
109
+ "args": v1 /*: any*/,
110
+ "concreteType": "Slug",
111
+ "kind": "LinkedField",
112
+ "name": "slug",
113
+ "plural": false,
114
+ "selections": [{
115
+ "alias": "product",
116
+ "args": null,
117
+ "concreteType": "FontPack",
118
+ "kind": "LinkedField",
119
+ "name": "fontPack",
120
+ "plural": false,
121
+ "selections": [v2 /*: any*/, {
122
+ "kind": "InlineFragment",
123
+ "selections": [{
124
+ "alias": null,
125
+ "args": null,
126
+ "kind": "ScalarField",
127
+ "name": "__typename",
128
+ "storageKey": null
129
+ }, {
130
+ "kind": "InlineFragment",
131
+ "selections": [v3 /*: any*/, v4 /*: any*/],
132
+ "type": "FontCollection",
133
+ "abstractKey": null
134
+ }, {
135
+ "kind": "InlineFragment",
136
+ "selections": [{
137
+ "alias": null,
138
+ "args": null,
139
+ "kind": "ScalarField",
140
+ "name": "name",
141
+ "storageKey": null
142
+ }, v3 /*: any*/, v4 /*: any*/],
143
+ "type": "FontPack",
144
+ "abstractKey": null
145
+ }],
146
+ "type": "Node",
147
+ "abstractKey": "__isNode"
148
+ }],
149
+ "storageKey": null
150
+ }, v2 /*: any*/],
151
+ "storageKey": null
152
+ }, v2 /*: any*/],
153
+ "storageKey": null
154
+ }]
155
+ },
156
+ "params": {
157
+ "cacheID": "5a1cc03dd6f0ffbbafbfad535aa6de67",
158
+ "id": null,
159
+ "metadata": {},
160
+ "name": "BuyButtonPackSlugQuery",
161
+ "operationKind": "query",
162
+ "text": "query BuyButtonPackSlugQuery(\n $fontPackSlug: String!\n) {\n viewer {\n slug(name: $fontPackSlug) {\n product: fontPack {\n ...BuyButton_product\n id\n }\n id\n }\n id\n }\n}\n\nfragment BuyButton_product on Node {\n __isNode: __typename\n __typename\n id\n ... on FontCollection {\n sku {\n id\n }\n fontStyles {\n sku {\n id\n }\n id\n }\n }\n ... on FontPack {\n name\n sku {\n id\n }\n fontStyles {\n sku {\n id\n }\n id\n }\n }\n}\n"
163
+ }
164
+ };
165
+ }();
166
+ node.hash = "7d9d7c6c7343fe13ccb1e79b6696e416";
167
+ export default node;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<1c125138c4f0c2300a825b4bc8e33b8e>>
2
+ * @generated SignedSource<<1bb7a6781b526cbf8e863fb38e71d3c2>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */
@@ -11,8 +11,8 @@ export type BuyButtonSlugQuery$variables = {
11
11
  export type BuyButtonSlugQuery$data = {
12
12
  readonly viewer: {
13
13
  readonly slug: {
14
- readonly collection: {
15
- readonly " $fragmentSpreads": FragmentRefs<"BuyButton_collection">;
14
+ readonly product: {
15
+ readonly " $fragmentSpreads": FragmentRefs<"BuyButton_product">;
16
16
  };
17
17
  } | null;
18
18
  };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<1c125138c4f0c2300a825b4bc8e33b8e>>
2
+ * @generated SignedSource<<1bb7a6781b526cbf8e863fb38e71d3c2>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */
@@ -35,6 +35,16 @@ const node = function () {
35
35
  "plural": false,
36
36
  "selections": [v2 /*: any*/],
37
37
  "storageKey": null
38
+ },
39
+ v4 = {
40
+ "alias": null,
41
+ "args": null,
42
+ "concreteType": "FontStyle",
43
+ "kind": "LinkedField",
44
+ "name": "fontStyles",
45
+ "plural": true,
46
+ "selections": [v3 /*: any*/, v2 /*: any*/],
47
+ "storageKey": null
38
48
  };
39
49
  return {
40
50
  "fragment": {
@@ -59,7 +69,7 @@ const node = function () {
59
69
  "selections": [{
60
70
  "kind": "RequiredField",
61
71
  "field": {
62
- "alias": "collection",
72
+ "alias": "product",
63
73
  "args": null,
64
74
  "concreteType": "FontCollection",
65
75
  "kind": "LinkedField",
@@ -68,12 +78,12 @@ const node = function () {
68
78
  "selections": [{
69
79
  "args": null,
70
80
  "kind": "FragmentSpread",
71
- "name": "BuyButton_collection"
81
+ "name": "BuyButton_product"
72
82
  }],
73
83
  "storageKey": null
74
84
  },
75
85
  "action": "THROW",
76
- "path": "viewer.slug.collection"
86
+ "path": "viewer.slug.product"
77
87
  }],
78
88
  "storageKey": null
79
89
  }],
@@ -102,21 +112,39 @@ const node = function () {
102
112
  "name": "slug",
103
113
  "plural": false,
104
114
  "selections": [{
105
- "alias": "collection",
115
+ "alias": "product",
106
116
  "args": null,
107
117
  "concreteType": "FontCollection",
108
118
  "kind": "LinkedField",
109
119
  "name": "fontCollection",
110
120
  "plural": false,
111
- "selections": [v2 /*: any*/, v3 /*: any*/, {
112
- "alias": null,
113
- "args": null,
114
- "concreteType": "FontStyle",
115
- "kind": "LinkedField",
116
- "name": "fontStyles",
117
- "plural": true,
118
- "selections": [v3 /*: any*/, v2 /*: any*/],
119
- "storageKey": null
121
+ "selections": [v2 /*: any*/, {
122
+ "kind": "InlineFragment",
123
+ "selections": [{
124
+ "alias": null,
125
+ "args": null,
126
+ "kind": "ScalarField",
127
+ "name": "__typename",
128
+ "storageKey": null
129
+ }, {
130
+ "kind": "InlineFragment",
131
+ "selections": [v3 /*: any*/, v4 /*: any*/],
132
+ "type": "FontCollection",
133
+ "abstractKey": null
134
+ }, {
135
+ "kind": "InlineFragment",
136
+ "selections": [{
137
+ "alias": null,
138
+ "args": null,
139
+ "kind": "ScalarField",
140
+ "name": "name",
141
+ "storageKey": null
142
+ }, v3 /*: any*/, v4 /*: any*/],
143
+ "type": "FontPack",
144
+ "abstractKey": null
145
+ }],
146
+ "type": "Node",
147
+ "abstractKey": "__isNode"
120
148
  }],
121
149
  "storageKey": null
122
150
  }, v2 /*: any*/],
@@ -126,14 +154,14 @@ const node = function () {
126
154
  }]
127
155
  },
128
156
  "params": {
129
- "cacheID": "3cfe89cdb72a2a307ef7af6e33a90a95",
157
+ "cacheID": "f04dc5393135f9952ad331ffb2d14aa7",
130
158
  "id": null,
131
159
  "metadata": {},
132
160
  "name": "BuyButtonSlugQuery",
133
161
  "operationKind": "query",
134
- "text": "query BuyButtonSlugQuery(\n $collectionSlug: String!\n) {\n viewer {\n slug(name: $collectionSlug) {\n collection: fontCollection {\n ...BuyButton_collection\n id\n }\n id\n }\n id\n }\n}\n\nfragment BuyButton_collection on FontCollection {\n id\n sku {\n id\n }\n fontStyles {\n sku {\n id\n }\n id\n }\n}\n"
162
+ "text": "query BuyButtonSlugQuery(\n $collectionSlug: String!\n) {\n viewer {\n slug(name: $collectionSlug) {\n product: fontCollection {\n ...BuyButton_product\n id\n }\n id\n }\n id\n }\n}\n\nfragment BuyButton_product on Node {\n __isNode: __typename\n __typename\n id\n ... on FontCollection {\n sku {\n id\n }\n fontStyles {\n sku {\n id\n }\n id\n }\n }\n ... on FontPack {\n name\n sku {\n id\n }\n fontStyles {\n sku {\n id\n }\n id\n }\n }\n}\n"
135
163
  }
136
164
  };
137
165
  }();
138
- node.hash = "6e750adea09698f7cb61f435cd88fd26";
166
+ node.hash = "14c9d7a1ef98d03b73b22374983b5fb4";
139
167
  export default node;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @generated SignedSource<<3b2b3026f23f90804be6a504b2f4b8ba>>
3
+ * @lightSyntaxTransform
4
+ * @nogrep
5
+ */
6
+ import { ReaderFragment } from 'relay-runtime';
7
+ import { FragmentRefs } from "relay-runtime";
8
+ export type BuyButton_product$data = {
9
+ readonly __typename: string;
10
+ readonly fontStyles?: ReadonlyArray<{
11
+ readonly sku: {
12
+ readonly id: string;
13
+ } | null;
14
+ }>;
15
+ readonly id: string;
16
+ readonly name?: string;
17
+ readonly sku?: {
18
+ readonly id: string;
19
+ } | null;
20
+ readonly " $fragmentType": "BuyButton_product";
21
+ };
22
+ export type BuyButton_product$key = {
23
+ readonly " $data"?: BuyButton_product$data;
24
+ readonly " $fragmentSpreads": FragmentRefs<"BuyButton_product">;
25
+ };
26
+ declare const node: ReaderFragment;
27
+ export default node;
@@ -0,0 +1,72 @@
1
+ /**
2
+ * @generated SignedSource<<3b2b3026f23f90804be6a504b2f4b8ba>>
3
+ * @lightSyntaxTransform
4
+ * @nogrep
5
+ */
6
+
7
+ /* tslint:disable */
8
+ /* eslint-disable */
9
+ // @ts-nocheck
10
+
11
+ const node = function () {
12
+ var v0 = {
13
+ "alias": null,
14
+ "args": null,
15
+ "kind": "ScalarField",
16
+ "name": "id",
17
+ "storageKey": null
18
+ },
19
+ v1 = {
20
+ "alias": null,
21
+ "args": null,
22
+ "concreteType": "Sku",
23
+ "kind": "LinkedField",
24
+ "name": "sku",
25
+ "plural": false,
26
+ "selections": [v0 /*: any*/],
27
+ "storageKey": null
28
+ },
29
+ v2 = {
30
+ "alias": null,
31
+ "args": null,
32
+ "concreteType": "FontStyle",
33
+ "kind": "LinkedField",
34
+ "name": "fontStyles",
35
+ "plural": true,
36
+ "selections": [v1 /*: any*/],
37
+ "storageKey": null
38
+ };
39
+ return {
40
+ "argumentDefinitions": [],
41
+ "kind": "Fragment",
42
+ "metadata": null,
43
+ "name": "BuyButton_product",
44
+ "selections": [{
45
+ "alias": null,
46
+ "args": null,
47
+ "kind": "ScalarField",
48
+ "name": "__typename",
49
+ "storageKey": null
50
+ }, v0 /*: any*/, {
51
+ "kind": "InlineFragment",
52
+ "selections": [v1 /*: any*/, v2 /*: any*/],
53
+ "type": "FontCollection",
54
+ "abstractKey": null
55
+ }, {
56
+ "kind": "InlineFragment",
57
+ "selections": [{
58
+ "alias": null,
59
+ "args": null,
60
+ "kind": "ScalarField",
61
+ "name": "name",
62
+ "storageKey": null
63
+ }, v1 /*: any*/, v2 /*: any*/],
64
+ "type": "FontPack",
65
+ "abstractKey": null
66
+ }],
67
+ "type": "Node",
68
+ "abstractKey": "__isNode"
69
+ };
70
+ }();
71
+ node.hash = "007b16f72407229f0f743958a541c39a";
72
+ export default node;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<141cde7f2b8f160fd683c8152e51aaff>>
2
+ * @generated SignedSource<<2accbefc9c4e448b2da2a70237a012bd>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<141cde7f2b8f160fd683c8152e51aaff>>
2
+ * @generated SignedSource<<2accbefc9c4e448b2da2a70237a012bd>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */
@@ -97,10 +97,15 @@ const node = function () {
97
97
  "selections": [v0 /*: any*/, v3 /*: any*/, v2 /*: any*/],
98
98
  "type": "CollectionBundle",
99
99
  "abstractKey": null
100
+ }, {
101
+ "kind": "InlineFragment",
102
+ "selections": [v0 /*: any*/, v3 /*: any*/],
103
+ "type": "FontPack",
104
+ "abstractKey": null
100
105
  }],
101
106
  "type": "SkuProduct",
102
107
  "abstractKey": "__isSkuProduct"
103
108
  };
104
109
  }();
105
- node.hash = "a3931102e3ec08c57abd262038b5d74a";
110
+ node.hash = "15b269b9bb33a3bfa7b10486e99da183";
106
111
  export default node;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<79ee8a672f34b2bf222e2fe0bbedfade>>
2
+ * @generated SignedSource<<fd9939f4d9d5efff1561cf9772a3607a>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<79ee8a672f34b2bf222e2fe0bbedfade>>
2
+ * @generated SignedSource<<fd9939f4d9d5efff1561cf9772a3607a>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */
@@ -223,21 +223,31 @@ const node = function () {
223
223
  },
224
224
  v14 = [v11 /*: any*/, v2 /*: any*/, v12 /*: any*/, v13 /*: any*/, v4 /*: any*/],
225
225
  v15 = {
226
+ "alias": null,
227
+ "args": null,
228
+ "concreteType": "FontStyle",
229
+ "kind": "LinkedField",
230
+ "name": "featureStyle",
231
+ "plural": false,
232
+ "selections": v14 /*: any*/,
233
+ "storageKey": null
234
+ },
235
+ v16 = {
226
236
  "alias": null,
227
237
  "args": null,
228
238
  "kind": "ScalarField",
229
239
  "name": "totalStyles",
230
240
  "storageKey": null
231
241
  },
232
- v16 = [v2 /*: any*/, v4 /*: any*/],
233
- v17 = {
242
+ v17 = [v2 /*: any*/, v4 /*: any*/],
243
+ v18 = {
234
244
  "alias": null,
235
245
  "args": null,
236
246
  "concreteType": "FontCollection",
237
247
  "kind": "LinkedField",
238
248
  "name": "fontCollection",
239
249
  "plural": false,
240
- "selections": v16 /*: any*/,
250
+ "selections": v17 /*: any*/,
241
251
  "storageKey": null
242
252
  };
243
253
  return {
@@ -605,22 +615,13 @@ const node = function () {
605
615
  "storageKey": null
606
616
  }, {
607
617
  "kind": "InlineFragment",
608
- "selections": [{
609
- "alias": null,
610
- "args": null,
611
- "concreteType": "FontStyle",
612
- "kind": "LinkedField",
613
- "name": "featureStyle",
614
- "plural": false,
615
- "selections": v14 /*: any*/,
616
- "storageKey": null
617
- }, v2 /*: any*/, {
618
+ "selections": [v15 /*: any*/, v2 /*: any*/, {
618
619
  "alias": null,
619
620
  "args": null,
620
621
  "kind": "ScalarField",
621
622
  "name": "isVariableFont",
622
623
  "storageKey": null
623
- }, v15 /*: any*/],
624
+ }, v16 /*: any*/],
624
625
  "type": "FontCollection",
625
626
  "abstractKey": null
626
627
  }, {
@@ -634,9 +635,14 @@ const node = function () {
634
635
  "plural": true,
635
636
  "selections": v14 /*: any*/,
636
637
  "storageKey": null
637
- }, v2 /*: any*/, v17 /*: any*/],
638
+ }, v2 /*: any*/, v18 /*: any*/],
638
639
  "type": "Bundle",
639
640
  "abstractKey": null
641
+ }, {
642
+ "kind": "InlineFragment",
643
+ "selections": [v15 /*: any*/, v2 /*: any*/, v16 /*: any*/],
644
+ "type": "FontPack",
645
+ "abstractKey": null
640
646
  }, {
641
647
  "kind": "InlineFragment",
642
648
  "selections": [v11 /*: any*/, v2 /*: any*/, v12 /*: any*/, v13 /*: any*/, {
@@ -646,7 +652,7 @@ const node = function () {
646
652
  "kind": "LinkedField",
647
653
  "name": "family",
648
654
  "plural": false,
649
- "selections": v16 /*: any*/,
655
+ "selections": v17 /*: any*/,
650
656
  "storageKey": null
651
657
  }, {
652
658
  "alias": null,
@@ -662,7 +668,7 @@ const node = function () {
662
668
  "abstractKey": null
663
669
  }, {
664
670
  "kind": "InlineFragment",
665
- "selections": [v2 /*: any*/, v15 /*: any*/, v17 /*: any*/],
671
+ "selections": [v2 /*: any*/, v16 /*: any*/, v18 /*: any*/],
666
672
  "type": "CollectionBundle",
667
673
  "abstractKey": null
668
674
  }, {
@@ -784,12 +790,12 @@ const node = function () {
784
790
  }]
785
791
  },
786
792
  "params": {
787
- "cacheID": "028a8c792fabb99ae0ae6cd3ec27d71b",
793
+ "cacheID": "d7afb362bf33545bd0bab89325cb123e",
788
794
  "id": null,
789
795
  "metadata": {},
790
796
  "name": "CartOrderCompleteOrderMutation",
791
797
  "operationKind": "mutation",
792
- "text": "mutation CartOrderCompleteOrderMutation {\n completeOrder {\n order {\n ...CartOrder_order\n stripePaymentIntent {\n clientSecret\n }\n id\n }\n requiresAction\n }\n}\n\nfragment CartItemAdditionalLicenses_licenses on License {\n id\n name\n}\n\nfragment CartItemAdditionalLicenses_orderItem on OrderItem {\n licenseSelections {\n license {\n id\n excludedLicenses {\n id\n }\n }\n id\n }\n}\n\nfragment CartItemLicense_selection on LicenseSelection {\n id\n license {\n id\n name\n licenseVariables {\n id\n ...CartItemVariable_variable\n }\n }\n licenseVariable {\n id\n }\n ...CartItemVariable_selection\n}\n\nfragment CartItemProduct_product on SkuProduct {\n __isSkuProduct: __typename\n __typename\n ...CollectionAa_product\n ...FontStyle_fontStyle\n ... on FontStyle {\n family {\n name\n id\n }\n name\n variableInstances {\n name\n }\n }\n ... on Bundle {\n name\n fontCollection {\n name\n id\n }\n }\n ... on FontCollection {\n name\n isVariableFont\n totalStyles\n }\n ... on CollectionBundle {\n name\n totalStyles\n fontCollection {\n name\n id\n }\n }\n}\n\nfragment CartItemVariable_selection on LicenseSelection {\n id\n variableText\n license {\n id\n }\n licenseVariable {\n ...VariableTableAmounts_variable\n id\n name\n variableType\n licenseOptions {\n id\n }\n }\n licenseOption {\n ...VariableTableAmounts_option\n id\n name\n amount\n }\n}\n\nfragment CartItemVariable_variable on LicenseVariable {\n id\n licenseOptions {\n id\n name\n amount\n }\n}\n\nfragment CartItem_node on OrderItem {\n ...CartItemAdditionalLicenses_orderItem\n id\n price {\n ...Price_price\n }\n sku {\n price {\n ...Price_price\n }\n product {\n ...CartItemProduct_product\n __typename\n ... on Licenseable {\n __isLicenseable: __typename\n licenses {\n ...CartItemAdditionalLicenses_licenses\n id\n licenseVariables {\n id\n licenseOptions {\n id\n }\n }\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n licenseSelections {\n ...CartItemLicense_selection\n id\n license {\n id\n }\n licenseVariable {\n id\n }\n licenseOption {\n id\n }\n variableText\n }\n}\n\nfragment CartOrder_order on Order {\n ...Checkout_order\n ...Download_order\n ...CartTotals_order\n ...CartState_order\n id\n orderItems {\n ...CartItem_node\n id\n licenseSelections {\n license {\n id\n }\n licenseVariable {\n id\n variableType\n }\n licenseOption {\n id\n }\n variableText\n id\n }\n }\n orderVariableSelections {\n orderVariable {\n id\n }\n orderVariableOption {\n id\n }\n id\n }\n discount {\n id\n }\n customer {\n email\n name\n anonymous\n id\n }\n billingIdentity {\n ...IdentityBox_identity\n }\n licenseeIdentity {\n ...IdentityBox_identity\n }\n licenseeIsBillingIdentity\n stripePaymentMethod {\n card {\n last4\n brand\n }\n }\n stripePaymentIntent {\n status\n }\n canCompleteWithCoupon\n completedWithCoupon\n}\n\nfragment CartState_order on Order {\n id\n orderItems {\n id\n licenseSelections {\n license {\n id\n }\n licenseVariable {\n id\n }\n licenseOption {\n id\n }\n variableText\n id\n }\n }\n orderVariableSelections {\n orderVariable {\n id\n }\n orderVariableOption {\n id\n }\n countryCode\n id\n }\n}\n\nfragment CartTotals_order on Order {\n subtotal {\n ...Price_price\n }\n discount {\n amount {\n amount\n ...Price_price\n }\n coupon {\n ...CouponText_coupon\n id\n }\n id\n }\n discountedSubtotal {\n ...Price_price\n }\n total {\n amount\n ...Price_price\n }\n taxRate\n taxes {\n ...Price_price\n }\n taxName\n taxNotApplicable\n taxNotApplicableReason\n gstIncluded\n}\n\nfragment Checkout_order on Order {\n canCompleteWithCoupon\n customer {\n name\n email\n newsletterOptIn\n id\n }\n billingIdentity {\n name\n organization\n email\n phoneNullable\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n licenseeIdentity {\n name\n organization\n email\n phoneNullable\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n licenseeIsBillingIdentity\n}\n\nfragment CollectionAa_product on SkuProduct {\n __isSkuProduct: __typename\n __typename\n ... on FontCollection {\n featureStyle {\n ...FontStyle_fontStyle\n id\n }\n }\n ... on Bundle {\n fontStyles {\n ...FontStyle_fontStyle\n id\n }\n }\n}\n\nfragment CouponText_coupon on Coupon {\n type\n percentAmount\n creditAmount {\n amount\n currency\n }\n creditAmountRemaining {\n amount\n currency\n }\n}\n\nfragment Download_order on Order {\n id\n archiveUrl\n customer {\n email\n id\n }\n completedWithCoupon\n}\n\nfragment FontStyle_fontStyle on FontStyle {\n ...useFontStyle_fontStyle\n}\n\nfragment IdentityBox_identity on Identity {\n email\n phoneFormatted\n addressFormatted\n vatNumber\n}\n\nfragment Price_price on Money {\n amount\n currency\n}\n\nfragment VariableTableAmounts_option on LicenseOption {\n amounts\n}\n\nfragment VariableTableAmounts_variable on LicenseVariable {\n units\n}\n\nfragment useFontStyle_fontStyle on FontStyle {\n cssFamily\n name\n webfontSources {\n url\n format\n tech\n }\n verticalMetrics {\n unitsPerEm\n ascender\n descender\n lineGap\n avgCharWidth\n }\n}\n"
798
+ "text": "mutation CartOrderCompleteOrderMutation {\n completeOrder {\n order {\n ...CartOrder_order\n stripePaymentIntent {\n clientSecret\n }\n id\n }\n requiresAction\n }\n}\n\nfragment CartItemAdditionalLicenses_licenses on License {\n id\n name\n}\n\nfragment CartItemAdditionalLicenses_orderItem on OrderItem {\n licenseSelections {\n license {\n id\n excludedLicenses {\n id\n }\n }\n id\n }\n}\n\nfragment CartItemLicense_selection on LicenseSelection {\n id\n license {\n id\n name\n licenseVariables {\n id\n ...CartItemVariable_variable\n }\n }\n licenseVariable {\n id\n }\n ...CartItemVariable_selection\n}\n\nfragment CartItemProduct_product on SkuProduct {\n __isSkuProduct: __typename\n __typename\n ...CollectionAa_product\n ...FontStyle_fontStyle\n ... on FontStyle {\n family {\n name\n id\n }\n name\n variableInstances {\n name\n }\n }\n ... on Bundle {\n name\n fontCollection {\n name\n id\n }\n }\n ... on FontCollection {\n name\n isVariableFont\n totalStyles\n }\n ... on CollectionBundle {\n name\n totalStyles\n fontCollection {\n name\n id\n }\n }\n ... on FontPack {\n name\n totalStyles\n }\n}\n\nfragment CartItemVariable_selection on LicenseSelection {\n id\n variableText\n license {\n id\n }\n licenseVariable {\n ...VariableTableAmounts_variable\n id\n name\n variableType\n licenseOptions {\n id\n }\n }\n licenseOption {\n ...VariableTableAmounts_option\n id\n name\n amount\n }\n}\n\nfragment CartItemVariable_variable on LicenseVariable {\n id\n licenseOptions {\n id\n name\n amount\n }\n}\n\nfragment CartItem_node on OrderItem {\n ...CartItemAdditionalLicenses_orderItem\n id\n price {\n ...Price_price\n }\n sku {\n price {\n ...Price_price\n }\n product {\n ...CartItemProduct_product\n __typename\n ... on Licenseable {\n __isLicenseable: __typename\n licenses {\n ...CartItemAdditionalLicenses_licenses\n id\n licenseVariables {\n id\n licenseOptions {\n id\n }\n }\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n licenseSelections {\n ...CartItemLicense_selection\n id\n license {\n id\n }\n licenseVariable {\n id\n }\n licenseOption {\n id\n }\n variableText\n }\n}\n\nfragment CartOrder_order on Order {\n ...Checkout_order\n ...Download_order\n ...CartTotals_order\n ...CartState_order\n id\n orderItems {\n ...CartItem_node\n id\n licenseSelections {\n license {\n id\n }\n licenseVariable {\n id\n variableType\n }\n licenseOption {\n id\n }\n variableText\n id\n }\n }\n orderVariableSelections {\n orderVariable {\n id\n }\n orderVariableOption {\n id\n }\n id\n }\n discount {\n id\n }\n customer {\n email\n name\n anonymous\n id\n }\n billingIdentity {\n ...IdentityBox_identity\n }\n licenseeIdentity {\n ...IdentityBox_identity\n }\n licenseeIsBillingIdentity\n stripePaymentMethod {\n card {\n last4\n brand\n }\n }\n stripePaymentIntent {\n status\n }\n canCompleteWithCoupon\n completedWithCoupon\n}\n\nfragment CartState_order on Order {\n id\n orderItems {\n id\n licenseSelections {\n license {\n id\n }\n licenseVariable {\n id\n }\n licenseOption {\n id\n }\n variableText\n id\n }\n }\n orderVariableSelections {\n orderVariable {\n id\n }\n orderVariableOption {\n id\n }\n countryCode\n id\n }\n}\n\nfragment CartTotals_order on Order {\n subtotal {\n ...Price_price\n }\n discount {\n amount {\n amount\n ...Price_price\n }\n coupon {\n ...CouponText_coupon\n id\n }\n id\n }\n discountedSubtotal {\n ...Price_price\n }\n total {\n amount\n ...Price_price\n }\n taxRate\n taxes {\n ...Price_price\n }\n taxName\n taxNotApplicable\n taxNotApplicableReason\n gstIncluded\n}\n\nfragment Checkout_order on Order {\n canCompleteWithCoupon\n customer {\n name\n email\n newsletterOptIn\n id\n }\n billingIdentity {\n name\n organization\n email\n phoneNullable\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n licenseeIdentity {\n name\n organization\n email\n phoneNullable\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n licenseeIsBillingIdentity\n}\n\nfragment CollectionAa_product on SkuProduct {\n __isSkuProduct: __typename\n __typename\n ... on FontCollection {\n featureStyle {\n ...FontStyle_fontStyle\n id\n }\n }\n ... on Bundle {\n fontStyles {\n ...FontStyle_fontStyle\n id\n }\n }\n ... on FontPack {\n featureStyle {\n ...FontStyle_fontStyle\n id\n }\n }\n}\n\nfragment CouponText_coupon on Coupon {\n type\n percentAmount\n creditAmount {\n amount\n currency\n }\n creditAmountRemaining {\n amount\n currency\n }\n}\n\nfragment Download_order on Order {\n id\n archiveUrl\n customer {\n email\n id\n }\n completedWithCoupon\n}\n\nfragment FontStyle_fontStyle on FontStyle {\n ...useFontStyle_fontStyle\n}\n\nfragment IdentityBox_identity on Identity {\n email\n phoneFormatted\n addressFormatted\n vatNumber\n}\n\nfragment Price_price on Money {\n amount\n currency\n}\n\nfragment VariableTableAmounts_option on LicenseOption {\n amounts\n}\n\nfragment VariableTableAmounts_variable on LicenseVariable {\n units\n}\n\nfragment useFontStyle_fontStyle on FontStyle {\n cssFamily\n name\n webfontSources {\n url\n format\n tech\n }\n verticalMetrics {\n unitsPerEm\n ascender\n descender\n lineGap\n avgCharWidth\n }\n}\n"
793
799
  }
794
800
  };
795
801
  }();
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<4275ad69ecffc5b0946e87a2ca1a712d>>
2
+ * @generated SignedSource<<523c53cdbd1081cc56e7f4d6ef01a28a>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */