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.
- package/CHANGELOG.md +14 -0
- package/README.md +5 -4
- package/dist/__generated__/AddToCartBannerQuery.graphql.d.ts +1 -1
- package/dist/__generated__/AddToCartBannerQuery.graphql.js +16 -10
- package/dist/__generated__/AddToCartBanner_item.graphql.d.ts +4 -1
- package/dist/__generated__/AddToCartBanner_item.graphql.js +7 -2
- package/dist/__generated__/AddToCartBanner_order.graphql.d.ts +4 -1
- package/dist/__generated__/AddToCartBanner_order.graphql.js +6 -1
- package/dist/__generated__/BuyButtonIDQuery.graphql.d.ts +3 -3
- package/dist/__generated__/BuyButtonIDQuery.graphql.js +31 -16
- package/dist/__generated__/BuyButtonPackIDQuery.graphql.d.ts +21 -0
- package/dist/__generated__/BuyButtonPackIDQuery.graphql.js +129 -0
- package/dist/__generated__/BuyButtonPackSlugQuery.graphql.d.ts +25 -0
- package/dist/__generated__/BuyButtonPackSlugQuery.graphql.js +167 -0
- package/dist/__generated__/BuyButtonSlugQuery.graphql.d.ts +3 -3
- package/dist/__generated__/BuyButtonSlugQuery.graphql.js +45 -17
- package/dist/__generated__/BuyButton_product.graphql.d.ts +27 -0
- package/dist/__generated__/BuyButton_product.graphql.js +72 -0
- package/dist/__generated__/CartItemProduct_product.graphql.d.ts +1 -1
- package/dist/__generated__/CartItemProduct_product.graphql.js +7 -2
- package/dist/__generated__/CartOrderCompleteOrderMutation.graphql.d.ts +1 -1
- package/dist/__generated__/CartOrderCompleteOrderMutation.graphql.js +26 -20
- package/dist/__generated__/CartOrderRemoveDiscountMutation.graphql.d.ts +1 -1
- package/dist/__generated__/CartOrderRemoveDiscountMutation.graphql.js +26 -20
- package/dist/__generated__/CartOrderUpdateMutation.graphql.d.ts +1 -1
- package/dist/__generated__/CartOrderUpdateMutation.graphql.js +26 -20
- package/dist/__generated__/CartQuery.graphql.d.ts +1 -1
- package/dist/__generated__/CartQuery.graphql.js +26 -20
- package/dist/__generated__/CartStateUpdateMutation.graphql.d.ts +1 -1
- package/dist/__generated__/CartStateUpdateMutation.graphql.js +26 -20
- package/dist/__generated__/CheckoutUpdateCustomerMutation.graphql.d.ts +1 -1
- package/dist/__generated__/CheckoutUpdateCustomerMutation.graphql.js +26 -20
- package/dist/__generated__/CheckoutUpdateOrderMutation.graphql.d.ts +1 -1
- package/dist/__generated__/CheckoutUpdateOrderMutation.graphql.js +26 -20
- package/dist/__generated__/CollectionAa_Query.graphql.d.ts +1 -1
- package/dist/__generated__/CollectionAa_Query.graphql.js +20 -14
- package/dist/__generated__/CollectionAa_product.graphql.d.ts +7 -1
- package/dist/__generated__/CollectionAa_product.graphql.js +22 -16
- package/dist/__generated__/FontFamiliesQuery.graphql.d.ts +4 -1
- package/dist/__generated__/FontFamiliesQuery.graphql.js +46 -39
- package/dist/__generated__/NodePasswordFormElementIDQuery.graphql.d.ts +3 -3
- package/dist/__generated__/NodePasswordFormElementIDQuery.graphql.js +9 -9
- package/dist/__generated__/NodePasswordFormElementPackSlugQuery.graphql.d.ts +25 -0
- package/dist/__generated__/NodePasswordFormElementPackSlugQuery.graphql.js +108 -0
- package/dist/__generated__/PrecartAddToCartMutation.graphql.d.ts +1 -1
- package/dist/__generated__/PrecartAddToCartMutation.graphql.js +32 -26
- package/dist/__generated__/PriceBar_node.graphql.d.ts +4 -1
- package/dist/__generated__/PriceBar_node.graphql.js +23 -16
- package/dist/__generated__/StoreModalCartQuery.graphql.d.ts +1 -1
- package/dist/__generated__/StoreModalCartQuery.graphql.js +37 -31
- package/dist/__generated__/StoreModalFamily_collection.graphql.d.ts +3 -2
- package/dist/__generated__/StoreModalFamily_collection.graphql.js +3 -3
- package/dist/__generated__/StoreModalIndexPackItem_fontPack.graphql.d.ts +23 -0
- package/dist/__generated__/StoreModalIndexPackItem_fontPack.graphql.js +58 -0
- package/dist/__generated__/StoreModalIndexPaginationQuery.graphql.d.ts +23 -0
- package/dist/__generated__/StoreModalIndexPaginationQuery.graphql.js +303 -0
- package/dist/__generated__/StoreModalIndexQuery.graphql.d.ts +6 -3
- package/dist/__generated__/StoreModalIndexQuery.graphql.js +218 -117
- package/dist/__generated__/StoreModalIndex_viewer.graphql.d.ts +24 -0
- package/dist/__generated__/StoreModalIndex_viewer.graphql.js +134 -0
- package/dist/__generated__/StoreModalPackButton_fontPack.graphql.d.ts +33 -0
- package/dist/__generated__/StoreModalPackButton_fontPack.graphql.js +119 -0
- package/dist/__generated__/StoreModalPack_fontPack.graphql.d.ts +45 -0
- package/dist/__generated__/StoreModalPack_fontPack.graphql.js +150 -0
- package/dist/__generated__/StoreModalProductContent_collection.graphql.d.ts +6 -2
- package/dist/__generated__/StoreModalProductContent_collection.graphql.js +43 -19
- package/dist/__generated__/{StoreModalProductLicenseSelection_collection.graphql.d.ts → StoreModalProductLicenseSelection_licenseable.graphql.d.ts} +7 -6
- package/dist/__generated__/StoreModalProductLicenseSelection_licenseable.graphql.js +43 -0
- package/dist/__generated__/StoreModalProductQuery.graphql.d.ts +1 -1
- package/dist/__generated__/StoreModalProductQuery.graphql.js +199 -142
- package/dist/__generated__/StoreModalProductRefetchQuery.graphql.d.ts +1 -1
- package/dist/__generated__/StoreModalProductRefetchQuery.graphql.js +190 -133
- package/dist/__generated__/StoreModalProductSlugQuery.graphql.d.ts +5 -1
- package/dist/__generated__/StoreModalProductSlugQuery.graphql.js +254 -176
- package/dist/__generated__/StoreModalProductSummaryRefetchQuery.graphql.d.ts +1 -1
- package/dist/__generated__/StoreModalProductSummaryRefetchQuery.graphql.js +9 -4
- package/dist/__generated__/StoreModalProductSummary_viewer.graphql.d.ts +7 -1
- package/dist/__generated__/StoreModalProductSummary_viewer.graphql.js +7 -2
- package/dist/__generated__/TestFontsFormUpdateCustomerMutation.graphql.d.ts +1 -1
- package/dist/__generated__/TestFontsFormUpdateCustomerMutation.graphql.js +26 -20
- package/dist/__generated__/TypeTestersIDQuery.graphql.d.ts +1 -1
- package/dist/__generated__/TypeTestersIDQuery.graphql.js +17 -10
- package/dist/__generated__/TypeTestersRefetchQuery.graphql.d.ts +1 -1
- package/dist/__generated__/TypeTestersRefetchQuery.graphql.js +17 -10
- package/dist/__generated__/TypeTestersSlugQuery.graphql.d.ts +1 -1
- package/dist/__generated__/TypeTestersSlugQuery.graphql.js +17 -10
- package/dist/__generated__/productState_Query.graphql.d.ts +99 -1
- package/dist/__generated__/productState_Query.graphql.js +43 -4
- package/dist/__generated__/productState_fontPack.graphql.d.ts +111 -0
- package/dist/__generated__/productState_fontPack.graphql.js +117 -0
- package/dist/__generated__/storefrontEventsTrackStorefrontEventMutation.graphql.d.ts +41 -0
- package/dist/__generated__/storefrontEventsTrackStorefrontEventMutation.graphql.js +65 -0
- package/dist/__tests__/bundleSelectionOrder.test.js +94 -0
- package/dist/__tests__/collectionBundleSelection.test.js +443 -1446
- package/dist/__tests__/fontPackSelection.test.js +435 -0
- package/dist/__tests__/infiniteScroll.test.js +180 -0
- package/dist/__tests__/licenseExclusions.test.js +4 -1
- package/dist/__tests__/storeModalPackButton.test.js +102 -0
- package/dist/__tests__/storeModalPackUnlisted.test.js +112 -0
- package/dist/__tests__/storeModalRoutes.test.js +9 -0
- package/dist/__tests__/storefrontEvents.test.js +167 -0
- package/dist/__tests__/typeTesterAutofitFeatures.test.js +138 -0
- package/dist/components/AddToCartBanner/index.js +1 -1
- package/dist/components/BuyButton/index.d.ts +29 -9
- package/dist/components/BuyButton/index.js +123 -26
- package/dist/components/BuyButton/index.server.d.ts +4 -2
- package/dist/components/BuyButton/index.server.js +24 -3
- package/dist/components/Cart/CartItem/CartItemProduct.js +3 -3
- package/dist/components/Cart/Checkout.js +11 -1
- package/dist/components/Cart/storefrontEvents.d.ts +34 -0
- package/dist/components/Cart/storefrontEvents.js +138 -0
- package/dist/components/CollectionAa/index.js +2 -2
- package/dist/components/FontFamilies/index.js +4 -3
- package/dist/components/NodePasswordForm/NodePasswordFormElement.d.ts +1 -1
- package/dist/components/NodePasswordForm/NodePasswordFormElement.js +45 -21
- package/dist/components/NodePasswordForm/index.d.ts +7 -4
- package/dist/components/NodePasswordForm/index.js +6 -6
- package/dist/components/Precart/index.js +6 -0
- package/dist/components/PriceBar/index.js +5 -3
- package/dist/components/Root/productState.d.ts +2 -8
- package/dist/components/Root/productState.js +100 -61
- package/dist/components/SKUPrice/index.js +7 -8
- package/dist/components/StoreModal/StoreModalFamily.d.ts +7 -0
- package/dist/components/StoreModal/StoreModalFamily.js +11 -7
- package/dist/components/StoreModal/StoreModalIndex.js +58 -7
- package/dist/components/StoreModal/StoreModalIndexEntry.d.ts +13 -0
- package/dist/components/StoreModal/StoreModalIndexEntry.js +43 -0
- package/dist/components/StoreModal/StoreModalIndexItem.js +7 -30
- package/dist/components/StoreModal/StoreModalIndexPackItem.d.ts +7 -0
- package/dist/components/StoreModal/StoreModalIndexPackItem.js +21 -0
- package/dist/components/StoreModal/StoreModalPack.d.ts +9 -0
- package/dist/components/StoreModal/StoreModalPack.js +79 -0
- package/dist/components/StoreModal/StoreModalPackButton.d.ts +8 -0
- package/dist/components/StoreModal/StoreModalPackButton.js +53 -0
- package/dist/components/StoreModal/StoreModalProduct.js +49 -19
- package/dist/components/StoreModalProductLicenseSelection/StoreModalProductLicense.d.ts +2 -1
- package/dist/components/StoreModalProductLicenseSelection/StoreModalProductLicense.js +8 -3
- package/dist/components/StoreModalProductLicenseSelection/index.d.ts +3 -3
- package/dist/components/StoreModalProductLicenseSelection/index.js +7 -6
- package/dist/components/StoreModalProductSummary/index.js +1 -1
- package/dist/components/TypeTester/useTypeTesterStyler.js +1 -0
- package/dist/components/elements/StoreModalContainer/StoreModalContainerContext.d.ts +1 -0
- package/dist/components/elements/StoreModalContainer/index.js +9 -4
- package/dist/components/elements/StoreModalFamily/index.d.ts +1 -1
- package/dist/components/elements/StoreModalFamily/index.js +1 -1
- package/dist/components/elements/StoreModalIndexLoadMore/index.d.ts +8 -0
- package/dist/components/elements/StoreModalIndexLoadMore/index.js +21 -0
- package/dist/components/elements/StoreModalUnifiedCheckout.js +12 -0
- package/dist/components/useInfiniteScroll.d.ts +28 -0
- package/dist/components/useInfiniteScroll.js +50 -0
- package/dist/fontdue.css +39 -0
- package/dist/hooks/useAutofit.d.ts +2 -1
- package/dist/hooks/useAutofit.js +10 -4
- package/dist/reducer.d.ts +12 -5
- package/dist/reducer.js +18 -87
- package/dist/selection.d.ts +44 -0
- package/dist/selection.js +539 -0
- package/dist/storeModalRoutes.js +5 -4
- package/dist/utils.d.ts +1 -12
- package/dist/utils.js +1 -36
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/__generated__/BuyButton_collection.graphql.d.ts +0 -25
- package/dist/__generated__/BuyButton_collection.graphql.js +0 -49
- package/dist/__generated__/StoreModalProductLicenseSelection_collection.graphql.js +0 -40
- package/fontdue.css +0 -2733
- 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
|
-
| `
|
|
740
|
-
| `
|
|
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<<
|
|
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
|
|
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":
|
|
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":
|
|
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":
|
|
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":
|
|
152
|
+
"selections": v4 /*: any*/,
|
|
152
153
|
"type": "Bundle",
|
|
153
154
|
"abstractKey": null
|
|
154
155
|
}, {
|
|
155
156
|
"kind": "InlineFragment",
|
|
156
|
-
"selections":
|
|
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": "
|
|
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<<
|
|
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<<
|
|
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 = "
|
|
104
|
+
node.hash = "5b6c677fd518073e74b1651f3b872e8a";
|
|
100
105
|
export default node;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @generated SignedSource<<
|
|
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<<
|
|
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<<
|
|
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
|
|
13
|
-
readonly " $fragmentSpreads": FragmentRefs<"
|
|
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<<
|
|
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": "
|
|
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": "
|
|
67
|
+
"name": "BuyButton_product"
|
|
58
68
|
}],
|
|
59
69
|
"storageKey": null
|
|
60
70
|
},
|
|
61
71
|
"action": "THROW",
|
|
62
|
-
"path": "
|
|
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": "
|
|
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
|
-
"
|
|
91
|
-
"
|
|
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": "
|
|
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": "
|
|
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
|
|
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 = "
|
|
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;
|