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
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## 3.8.0
2
+
3
+ - Font packs. `StoreModal` lists a store’s packs at the top of its browse page and opens one as a product page, with the same price bar, license picker, cart line and checkout a collection gets. `BuyButton` takes `fontPackId` or `fontPackSlug` in place of `collectionId`/`collectionSlug` – `font-pack-id` or `font-pack-slug` on `<fontdue-buy-button>` – and `?store=product/<pack-slug>` opens a pack directly. Packs honour `indexExcludeTags` the way collections do.
4
+ - `NodePasswordForm` takes `fontPackId` or `fontPackSlug`, so a password-protected pack is unlocked the same way a collection is.
5
+ - Selecting styles on a product page now only prices up into groupings that page shows. A family or pack the visitor had opened earlier could previously take over a pick on another product’s page, putting something they never opened in the cart; on a pack’s page it could also swallow the partial block of a family’s styles the pack includes.
6
+
7
+ ## 3.7.0
8
+
9
+ - Fixed bundle discounts in the `StoreModal` depending on the order styles are picked in – with overlapping bundles, the same styles could cost more in one order than another. Every pick now prices the whole selection as the cheapest combination of styles and bundles that covers it, and the added price shown beside each style follows the same reckoning.
10
+ - Collections and style bundles carry a `visibility` of `VISIBLE`, `UNLISTED` or `HIDDEN`; `Bundle.hidden` still works but is deprecated. An unlisted collection or bundle stays on sale and a selection can still upgrade into it, but it renders no block of its own in the `StoreModal`, no row in `<fontdue-font-families>` and no section in the `TypeTesters` price bar – so a superfamily can be sold only through its families.
11
+ - The `StoreModal`’s browse page loads 25 collections at a time and fetches the next 25 as the visitor scrolls, instead of every collection at once, so a large catalog opens without first loading every family’s font. A “Load more” button sits at the end of the loaded rows for keyboard use; if you style the modal yourself, it is `.store-modal__index__load-more`.
12
+ - The `StoreModal` reports opening a collection, changing a license choice and completing payment details, so Fontdue records “Product Viewed”, “Product Customized” and “Payment Info Entered” alongside the add to cart and purchase it already recorded. They carry the buyer’s consent and identifiers, so they reach your analytics destinations tied to the same visitor.
13
+ - Fixed a type tester set to `autofit` sizing its text without the OpenType features it has switched on: stylistic sets and small caps overflowed and wrapped, and ligatures under-filled. `useAutofit` takes a `fontFeatureSettings` string for the same reason, measuring in the DOM when one is set.
14
+
1
15
  ## 3.6.0
2
16
 
3
17
  - A `store` parameter on any URL now opens the Store Modal, so a foundry can link to its store rather than only open it from an element on the page. `?store=open` opens the store wherever it normally opens, `?store=product/<slug>` opens a product page, and `?store=cart` opens the cart. Any other `store` value is ignored, so a parameter a site already uses of its own won’t open the modal.
package/README.md CHANGED
@@ -727,7 +727,7 @@ import StoreModal from "fontdue-js/StoreModal";
727
727
 
728
728
  ## `BuyButton`
729
729
 
730
- A button that opens `StoreModal` to the relevant collection.
730
+ A button that opens `StoreModal` to the relevant collection or font pack.
731
731
 
732
732
  ```tsx
733
733
  import BuyButton, { loadBuyButtonQuery } from "fontdue-js/BuyButton";
@@ -735,9 +735,10 @@ import BuyButton, { loadBuyButtonQuery } from "fontdue-js/BuyButton";
735
735
 
736
736
  | Prop | Description |
737
737
  | --- | --- |
738
- | `collectionId` or `collectionSlug` | (Required, lazy) `string` Collection identifier. Omit if passing `preloadedQuery`. |
739
- | `preloadedQuery` | (Required, SSR) Result of `loadBuyButtonQuery({ collectionId })` or `loadBuyButtonQuery({ collectionSlug })`. |
740
- | `collectionName` | (Optional) `string` Name to render in the default label: `Buy {collectionName}`. |
738
+ | `collectionId` or `collectionSlug` | (Required, lazy) `string` Collection identifier. Omit if passing `preloadedQuery` or pointing at a font pack. |
739
+ | `fontPackId` or `fontPackSlug` | (Required, lazy) `string` Font pack identifier, for a button that sells a pack instead of a collection. |
740
+ | `preloadedQuery` | (Required, SSR) Result of `loadBuyButtonQuery({ collectionId })`, `loadBuyButtonQuery({ collectionSlug })`, `loadBuyButtonQuery({ fontPackId })` or `loadBuyButtonQuery({ fontPackSlug })`. |
741
+ | `collectionName` | (Optional) `string` Name to render in the default label: `Buy {collectionName}`. A font pack's default label is `Buy {pack name}` without it. |
741
742
  | `label` | (Optional) `string` Override the button label entirely. |
742
743
 
743
744
  ## `CartButton`
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<582a1e599d12a3858b5b672483e764d0>>
2
+ * @generated SignedSource<<4a3971dcb639ece0da0abcb0ee728f8f>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<582a1e599d12a3858b5b672483e764d0>>
2
+ * @generated SignedSource<<4a3971dcb639ece0da0abcb0ee728f8f>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */
@@ -23,15 +23,16 @@ const node = function () {
23
23
  "name": "name",
24
24
  "storageKey": null
25
25
  },
26
- v2 = [v1 /*: any*/, v0 /*: any*/],
27
- v3 = [v1 /*: any*/, {
26
+ v2 = [v1 /*: any*/],
27
+ v3 = [v1 /*: any*/, v0 /*: any*/],
28
+ v4 = [v1 /*: any*/, {
28
29
  "alias": null,
29
30
  "args": null,
30
31
  "concreteType": "FontCollection",
31
32
  "kind": "LinkedField",
32
33
  "name": "fontCollection",
33
34
  "plural": false,
34
- "selections": v2 /*: any*/,
35
+ "selections": v3 /*: any*/,
35
36
  "storageKey": null
36
37
  }];
37
38
  return {
@@ -129,7 +130,7 @@ const node = function () {
129
130
  "storageKey": null
130
131
  }, {
131
132
  "kind": "InlineFragment",
132
- "selections": [v1 /*: any*/],
133
+ "selections": v2 /*: any*/,
133
134
  "type": "FontCollection",
134
135
  "abstractKey": null
135
136
  }, {
@@ -141,21 +142,26 @@ const node = function () {
141
142
  "kind": "LinkedField",
142
143
  "name": "family",
143
144
  "plural": false,
144
- "selections": v2 /*: any*/,
145
+ "selections": v3 /*: any*/,
145
146
  "storageKey": null
146
147
  }],
147
148
  "type": "FontStyle",
148
149
  "abstractKey": null
149
150
  }, {
150
151
  "kind": "InlineFragment",
151
- "selections": v3 /*: any*/,
152
+ "selections": v4 /*: any*/,
152
153
  "type": "Bundle",
153
154
  "abstractKey": null
154
155
  }, {
155
156
  "kind": "InlineFragment",
156
- "selections": v3 /*: any*/,
157
+ "selections": v4 /*: any*/,
157
158
  "type": "CollectionBundle",
158
159
  "abstractKey": null
160
+ }, {
161
+ "kind": "InlineFragment",
162
+ "selections": v2 /*: any*/,
163
+ "type": "FontPack",
164
+ "abstractKey": null
159
165
  }, {
160
166
  "kind": "InlineFragment",
161
167
  "selections": [v0 /*: any*/],
@@ -174,12 +180,12 @@ const node = function () {
174
180
  }]
175
181
  },
176
182
  "params": {
177
- "cacheID": "4e7fade413da4c2b17527d3297d2f358",
183
+ "cacheID": "acdc77d071862e8a152af2c007147f16",
178
184
  "id": null,
179
185
  "metadata": {},
180
186
  "name": "AddToCartBannerQuery",
181
187
  "operationKind": "query",
182
- "text": "query AddToCartBannerQuery {\n viewer {\n currentOrder {\n ...AddToCartBanner_order\n id\n }\n id\n }\n}\n\nfragment AddToCartBanner_order on Order {\n stripeCharge {\n paid\n }\n orderItems {\n id\n sku {\n product {\n __typename\n ... on FontCollection {\n name\n }\n ... on FontStyle {\n name\n family {\n name\n id\n }\n }\n ... on Bundle {\n name\n fontCollection {\n name\n id\n }\n }\n ... on CollectionBundle {\n name\n fontCollection {\n name\n id\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n }\n}\n"
188
+ "text": "query AddToCartBannerQuery {\n viewer {\n currentOrder {\n ...AddToCartBanner_order\n id\n }\n id\n }\n}\n\nfragment AddToCartBanner_order on Order {\n stripeCharge {\n paid\n }\n orderItems {\n id\n sku {\n product {\n __typename\n ... on FontCollection {\n name\n }\n ... on FontStyle {\n name\n family {\n name\n id\n }\n }\n ... on Bundle {\n name\n fontCollection {\n name\n id\n }\n }\n ... on CollectionBundle {\n name\n fontCollection {\n name\n id\n }\n }\n ... on FontPack {\n name\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n }\n}\n"
183
189
  }
184
190
  };
185
191
  }();
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<3c933445c06d4a8d4652e8b758ea5f73>>
2
+ * @generated SignedSource<<19ed83c28fce87340b4e824e81fc55cc>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */
@@ -23,6 +23,9 @@ export type AddToCartBanner_item$data = {
23
23
  } | {
24
24
  readonly __typename: "FontCollection";
25
25
  readonly name: string;
26
+ } | {
27
+ readonly __typename: "FontPack";
28
+ readonly name: string;
26
29
  } | {
27
30
  readonly __typename: "FontStyle";
28
31
  readonly family: {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<3c933445c06d4a8d4652e8b758ea5f73>>
2
+ * @generated SignedSource<<19ed83c28fce87340b4e824e81fc55cc>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */
@@ -87,6 +87,11 @@ const node = function () {
87
87
  "selections": v2 /*: any*/,
88
88
  "type": "CollectionBundle",
89
89
  "abstractKey": null
90
+ }, {
91
+ "kind": "InlineFragment",
92
+ "selections": v1 /*: any*/,
93
+ "type": "FontPack",
94
+ "abstractKey": null
90
95
  }],
91
96
  "storageKey": null
92
97
  }],
@@ -96,5 +101,5 @@ const node = function () {
96
101
  "abstractKey": null
97
102
  };
98
103
  }();
99
- node.hash = "93905c08206c30255368dbb06f59ccec";
104
+ node.hash = "5b6c677fd518073e74b1651f3b872e8a";
100
105
  export default node;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<71d537ea806e036df9d89dd79de6a6a3>>
2
+ * @generated SignedSource<<2140fe507f18726c8061a0310c392869>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */
@@ -24,6 +24,9 @@ export type AddToCartBanner_order$data = {
24
24
  } | {
25
25
  readonly __typename: "FontCollection";
26
26
  readonly name: string;
27
+ } | {
28
+ readonly __typename: "FontPack";
29
+ readonly name: string;
27
30
  } | {
28
31
  readonly __typename: "FontStyle";
29
32
  readonly family: {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<71d537ea806e036df9d89dd79de6a6a3>>
2
+ * @generated SignedSource<<2140fe507f18726c8061a0310c392869>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */
@@ -109,6 +109,11 @@ const node = function () {
109
109
  "selections": v2 /*: any*/,
110
110
  "type": "CollectionBundle",
111
111
  "abstractKey": null
112
+ }, {
113
+ "kind": "InlineFragment",
114
+ "selections": v1 /*: any*/,
115
+ "type": "FontPack",
116
+ "abstractKey": null
112
117
  }],
113
118
  "storageKey": null
114
119
  }],
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<61dc08dad7c99f5255c0692da167e97b>>
2
+ * @generated SignedSource<<9c6fd5f3c780d383237c58aeb2a3adbb>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */
@@ -9,8 +9,8 @@ export type BuyButtonIDQuery$variables = {
9
9
  collectionId: string;
10
10
  };
11
11
  export type BuyButtonIDQuery$data = {
12
- readonly collection: {
13
- readonly " $fragmentSpreads": FragmentRefs<"BuyButton_collection">;
12
+ readonly product: {
13
+ readonly " $fragmentSpreads": FragmentRefs<"BuyButton_product">;
14
14
  };
15
15
  };
16
16
  export type BuyButtonIDQuery = {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<61dc08dad7c99f5255c0692da167e97b>>
2
+ * @generated SignedSource<<9c6fd5f3c780d383237c58aeb2a3adbb>>
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": {
@@ -45,7 +55,7 @@ const node = function () {
45
55
  "selections": [{
46
56
  "kind": "RequiredField",
47
57
  "field": {
48
- "alias": "collection",
58
+ "alias": "product",
49
59
  "args": v1 /*: any*/,
50
60
  "concreteType": null,
51
61
  "kind": "LinkedField",
@@ -54,12 +64,12 @@ const node = function () {
54
64
  "selections": [{
55
65
  "args": null,
56
66
  "kind": "FragmentSpread",
57
- "name": "BuyButton_collection"
67
+ "name": "BuyButton_product"
58
68
  }],
59
69
  "storageKey": null
60
70
  },
61
71
  "action": "THROW",
62
- "path": "collection"
72
+ "path": "product"
63
73
  }],
64
74
  "type": "RootQueryType",
65
75
  "abstractKey": null
@@ -70,7 +80,7 @@ const node = function () {
70
80
  "kind": "Operation",
71
81
  "name": "BuyButtonIDQuery",
72
82
  "selections": [{
73
- "alias": "collection",
83
+ "alias": "product",
74
84
  "args": v1 /*: any*/,
75
85
  "concreteType": null,
76
86
  "kind": "LinkedField",
@@ -82,33 +92,38 @@ const node = function () {
82
92
  "kind": "ScalarField",
83
93
  "name": "__typename",
84
94
  "storageKey": null
95
+ }, {
96
+ "kind": "TypeDiscriminator",
97
+ "abstractKey": "__isNode"
85
98
  }, v2 /*: any*/, {
86
99
  "kind": "InlineFragment",
87
- "selections": [v3 /*: any*/, {
100
+ "selections": [v3 /*: any*/, v4 /*: any*/],
101
+ "type": "FontCollection",
102
+ "abstractKey": null
103
+ }, {
104
+ "kind": "InlineFragment",
105
+ "selections": [{
88
106
  "alias": null,
89
107
  "args": null,
90
- "concreteType": "FontStyle",
91
- "kind": "LinkedField",
92
- "name": "fontStyles",
93
- "plural": true,
94
- "selections": [v3 /*: any*/, v2 /*: any*/],
108
+ "kind": "ScalarField",
109
+ "name": "name",
95
110
  "storageKey": null
96
- }],
97
- "type": "FontCollection",
111
+ }, v3 /*: any*/, v4 /*: any*/],
112
+ "type": "FontPack",
98
113
  "abstractKey": null
99
114
  }],
100
115
  "storageKey": null
101
116
  }]
102
117
  },
103
118
  "params": {
104
- "cacheID": "fce9f583257b6bc49f50e90a44a8bea9",
119
+ "cacheID": "8b4301caff4f8e734cdc4b629bf854fb",
105
120
  "id": null,
106
121
  "metadata": {},
107
122
  "name": "BuyButtonIDQuery",
108
123
  "operationKind": "query",
109
- "text": "query BuyButtonIDQuery(\n $collectionId: ID!\n) {\n collection: node(id: $collectionId) {\n __typename\n ...BuyButton_collection\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"
124
+ "text": "query BuyButtonIDQuery(\n $collectionId: ID!\n) {\n product: node(id: $collectionId) {\n __typename\n ...BuyButton_product\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"
110
125
  }
111
126
  };
112
127
  }();
113
- node.hash = "4fbf1dbf9e6c530a5d38c697b174d8b0";
128
+ node.hash = "602547ee927b734b5fa2d6d1f2c93765";
114
129
  export default node;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @generated SignedSource<<e4d85c4d41a48694b1732a400c6509e5>>
3
+ * @lightSyntaxTransform
4
+ * @nogrep
5
+ */
6
+ import { ConcreteRequest } from 'relay-runtime';
7
+ import { FragmentRefs } from "relay-runtime";
8
+ export type BuyButtonPackIDQuery$variables = {
9
+ fontPackId: string;
10
+ };
11
+ export type BuyButtonPackIDQuery$data = {
12
+ readonly product: {
13
+ readonly " $fragmentSpreads": FragmentRefs<"BuyButton_product">;
14
+ };
15
+ };
16
+ export type BuyButtonPackIDQuery = {
17
+ response: BuyButtonPackIDQuery$data;
18
+ variables: BuyButtonPackIDQuery$variables;
19
+ };
20
+ declare const node: ConcreteRequest;
21
+ export default node;
@@ -0,0 +1,129 @@
1
+ /**
2
+ * @generated SignedSource<<e4d85c4d41a48694b1732a400c6509e5>>
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": "fontPackId"
16
+ }],
17
+ v1 = [{
18
+ "kind": "Variable",
19
+ "name": "id",
20
+ "variableName": "fontPackId"
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": "BuyButtonPackIDQuery",
55
+ "selections": [{
56
+ "kind": "RequiredField",
57
+ "field": {
58
+ "alias": "product",
59
+ "args": v1 /*: any*/,
60
+ "concreteType": null,
61
+ "kind": "LinkedField",
62
+ "name": "node",
63
+ "plural": false,
64
+ "selections": [{
65
+ "args": null,
66
+ "kind": "FragmentSpread",
67
+ "name": "BuyButton_product"
68
+ }],
69
+ "storageKey": null
70
+ },
71
+ "action": "THROW",
72
+ "path": "product"
73
+ }],
74
+ "type": "RootQueryType",
75
+ "abstractKey": null
76
+ },
77
+ "kind": "Request",
78
+ "operation": {
79
+ "argumentDefinitions": v0 /*: any*/,
80
+ "kind": "Operation",
81
+ "name": "BuyButtonPackIDQuery",
82
+ "selections": [{
83
+ "alias": "product",
84
+ "args": v1 /*: any*/,
85
+ "concreteType": null,
86
+ "kind": "LinkedField",
87
+ "name": "node",
88
+ "plural": false,
89
+ "selections": [{
90
+ "alias": null,
91
+ "args": null,
92
+ "kind": "ScalarField",
93
+ "name": "__typename",
94
+ "storageKey": null
95
+ }, {
96
+ "kind": "TypeDiscriminator",
97
+ "abstractKey": "__isNode"
98
+ }, v2 /*: any*/, {
99
+ "kind": "InlineFragment",
100
+ "selections": [v3 /*: any*/, v4 /*: any*/],
101
+ "type": "FontCollection",
102
+ "abstractKey": null
103
+ }, {
104
+ "kind": "InlineFragment",
105
+ "selections": [{
106
+ "alias": null,
107
+ "args": null,
108
+ "kind": "ScalarField",
109
+ "name": "name",
110
+ "storageKey": null
111
+ }, v3 /*: any*/, v4 /*: any*/],
112
+ "type": "FontPack",
113
+ "abstractKey": null
114
+ }],
115
+ "storageKey": null
116
+ }]
117
+ },
118
+ "params": {
119
+ "cacheID": "1dd6009828a7671524e6009b49c4a514",
120
+ "id": null,
121
+ "metadata": {},
122
+ "name": "BuyButtonPackIDQuery",
123
+ "operationKind": "query",
124
+ "text": "query BuyButtonPackIDQuery(\n $fontPackId: ID!\n) {\n product: node(id: $fontPackId) {\n __typename\n ...BuyButton_product\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"
125
+ }
126
+ };
127
+ }();
128
+ node.hash = "7c9a7e75de7c428c5a3aec1235d0516e";
129
+ export default node;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @generated SignedSource<<e7992c96f7ad1c833eda61d490e09988>>
3
+ * @lightSyntaxTransform
4
+ * @nogrep
5
+ */
6
+ import { ConcreteRequest } from 'relay-runtime';
7
+ import { FragmentRefs } from "relay-runtime";
8
+ export type BuyButtonPackSlugQuery$variables = {
9
+ fontPackSlug: string;
10
+ };
11
+ export type BuyButtonPackSlugQuery$data = {
12
+ readonly viewer: {
13
+ readonly slug: {
14
+ readonly product: {
15
+ readonly " $fragmentSpreads": FragmentRefs<"BuyButton_product">;
16
+ };
17
+ } | null;
18
+ };
19
+ };
20
+ export type BuyButtonPackSlugQuery = {
21
+ response: BuyButtonPackSlugQuery$data;
22
+ variables: BuyButtonPackSlugQuery$variables;
23
+ };
24
+ declare const node: ConcreteRequest;
25
+ export default node;