fontdue-js 2.7.0 → 2.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 +5 -0
- package/dist/__generated__/AddressFields_viewer.graphql.d.ts +1 -1
- package/dist/__generated__/AddressFields_viewer.graphql.js +4 -2
- package/dist/__generated__/CartItem_node.graphql.d.ts +15 -1
- package/dist/__generated__/CartItem_node.graphql.js +51 -17
- package/dist/__generated__/CartOrderCompleteOrderMutation.graphql.d.ts +1 -1
- package/dist/__generated__/CartOrderCompleteOrderMutation.graphql.js +48 -16
- package/dist/__generated__/CartOrderRemoveDiscountMutation.graphql.d.ts +1 -1
- package/dist/__generated__/CartOrderRemoveDiscountMutation.graphql.js +48 -16
- package/dist/__generated__/CartOrderUpdateMutation.graphql.d.ts +1 -1
- package/dist/__generated__/CartOrderUpdateMutation.graphql.js +48 -16
- package/dist/__generated__/CartOrder_viewer.graphql.d.ts +2 -2
- package/dist/__generated__/CartOrder_viewer.graphql.js +2 -6
- package/dist/__generated__/CartQuery.graphql.d.ts +1 -1
- package/dist/__generated__/CartQuery.graphql.js +79 -77
- package/dist/__generated__/CartStateUpdateMutation.graphql.d.ts +1 -1
- package/dist/__generated__/CartStateUpdateMutation.graphql.js +65 -32
- package/dist/__generated__/CheckoutUpdateCustomerMutation.graphql.d.ts +1 -1
- package/dist/__generated__/CheckoutUpdateCustomerMutation.graphql.js +48 -16
- package/dist/__generated__/CheckoutUpdateOrderMutation.graphql.d.ts +1 -1
- package/dist/__generated__/CheckoutUpdateOrderMutation.graphql.js +48 -16
- package/dist/__generated__/Checkout_viewer.graphql.d.ts +2 -1
- package/dist/__generated__/Checkout_viewer.graphql.js +8 -2
- package/dist/__generated__/CouponCodeInput_viewer.graphql.d.ts +1 -1
- package/dist/__generated__/CouponCodeInput_viewer.graphql.js +4 -2
- package/dist/__generated__/NodePasswordFormAccessNodeMutation.graphql.d.ts +25 -0
- package/dist/__generated__/NodePasswordFormAccessNodeMutation.graphql.js +72 -0
- package/dist/__generated__/PrecartAddToCartMutation.graphql.d.ts +1 -1
- package/dist/__generated__/PrecartAddToCartMutation.graphql.js +48 -16
- package/dist/__generated__/PrecartQuery.graphql.d.ts +1 -1
- package/dist/__generated__/PrecartQuery.graphql.js +57 -62
- package/dist/__generated__/Precart_collection.graphql.d.ts +13 -1
- package/dist/__generated__/Precart_collection.graphql.js +64 -17
- package/dist/__generated__/Precart_viewer.graphql.d.ts +1 -13
- package/dist/__generated__/Precart_viewer.graphql.js +23 -65
- package/dist/__generated__/PriceBarSection_node.graphql.d.ts +1 -1
- package/dist/__generated__/PriceBarSection_node.graphql.js +4 -2
- package/dist/__generated__/SKUPrice_sku.graphql.d.ts +1 -1
- package/dist/__generated__/SKUPrice_sku.graphql.js +4 -2
- package/dist/__generated__/StoreModalCartQuery.graphql.d.ts +2 -2
- package/dist/__generated__/StoreModalCartQuery.graphql.js +44 -47
- package/dist/__generated__/StoreModalCheckoutQuery.graphql.d.ts +1 -1
- package/dist/__generated__/StoreModalCheckoutQuery.graphql.js +17 -16
- package/dist/__generated__/StoreModalProductLicenseSelection_collection.graphql.d.ts +20 -0
- package/dist/__generated__/StoreModalProductLicenseSelection_collection.graphql.js +47 -0
- package/dist/__generated__/StoreModalProductQuery.graphql.d.ts +3 -3
- package/dist/__generated__/StoreModalProductQuery.graphql.js +82 -65
- package/dist/__generated__/StoreModalProductSummaryRefetchQuery.graphql.d.ts +1 -1
- package/dist/__generated__/StoreModalProductSummaryRefetchQuery.graphql.js +24 -3
- package/dist/__generated__/StoreModalProductSummary_viewer.graphql.d.ts +5 -1
- package/dist/__generated__/StoreModalProductSummary_viewer.graphql.js +23 -2
- package/dist/__generated__/TestFontsFormUpdateCustomerMutation.graphql.d.ts +1 -1
- package/dist/__generated__/TestFontsFormUpdateCustomerMutation.graphql.js +48 -16
- package/dist/components/AddToCartBanner/index.js +7 -5
- package/dist/components/BuyButton/index.js +7 -5
- package/dist/components/Cart/AddressFields.js +3 -3
- package/dist/components/Cart/CartItem/index.d.ts +1 -3
- package/dist/components/Cart/CartItem/index.js +15 -13
- package/dist/components/Cart/CartOrder.js +17 -10
- package/dist/components/Cart/CartState.js +7 -4
- package/dist/components/Cart/CartTotals.js +2 -2
- package/dist/components/Cart/Checkout.js +14 -9
- package/dist/components/Cart/CouponCodeInput.js +5 -4
- package/dist/components/Cart/Download.js +5 -4
- package/dist/components/Cart/IdentityBox.js +2 -2
- package/dist/components/Cart/index.js +2 -2
- package/dist/components/CartButton/index.js +5 -4
- package/dist/components/CharacterViewer/index.js +8 -5
- package/dist/components/CollectionAa/index.js +4 -3
- package/dist/components/CookieNotification/index.js +6 -7
- package/dist/components/CouponText/index.js +3 -2
- package/dist/components/CustomerLoginForm/index.js +3 -3
- package/dist/components/Family/FamilyList.js +2 -2
- package/dist/components/Family/index.js +3 -3
- package/dist/components/FontFamilies/index.js +3 -3
- package/dist/components/FontStyle/index.js +2 -2
- package/dist/components/FontdueProvider/index.d.ts +1 -1
- package/dist/components/FontdueProvider/index.js +1 -9
- package/dist/components/NewsletterSignup/index.js +5 -4
- package/dist/components/NodePasswordForm/index.d.ts +7 -0
- package/dist/components/NodePasswordForm/index.js +63 -0
- package/dist/components/Precart/License.js +2 -2
- package/dist/components/Precart/index.js +17 -13
- package/dist/components/Price/index.js +2 -2
- package/dist/components/PriceBar/PriceBarSection.js +3 -3
- package/dist/components/PriceBar/index.js +3 -3
- package/dist/components/Root/index.js +2 -1
- package/dist/components/Root/productState.js +11 -6
- package/dist/components/SKUPrice/index.js +3 -3
- package/dist/components/SelectButton/index.js +3 -3
- package/dist/components/SpecimenLink/index.js +2 -2
- package/dist/components/StoreModal/StoreModalBundleButton.js +2 -2
- package/dist/components/StoreModal/StoreModalCart.js +4 -3
- package/dist/components/StoreModal/StoreModalCheckout.js +3 -3
- package/dist/components/StoreModal/StoreModalContainer.js +3 -3
- package/dist/components/StoreModal/StoreModalDownload.js +5 -4
- package/dist/components/StoreModal/StoreModalFamily.js +3 -3
- package/dist/components/StoreModal/StoreModalFamilyButton.js +2 -2
- package/dist/components/StoreModal/StoreModalIndex.js +2 -2
- package/dist/components/StoreModal/StoreModalIndexItem.js +3 -3
- package/dist/components/StoreModal/StoreModalProduct.js +12 -7
- package/dist/components/StoreModal/StoreModalReview.js +11 -7
- package/dist/components/StoreModal/StoreModalReviewIdentity.js +3 -2
- package/dist/components/StoreModal/StoreModalStyleButton.js +5 -4
- package/dist/components/StoreModalProductLicenseSelection/StoreModalProductLicense.js +3 -3
- package/dist/components/StoreModalProductLicenseSelection/index.d.ts +3 -3
- package/dist/components/StoreModalProductLicenseSelection/index.js +5 -4
- package/dist/components/StoreModalProductSummary/index.js +18 -6
- package/dist/components/StripeProvider/index.js +3 -2
- package/dist/components/TestFontsForm/index.js +5 -4
- package/dist/components/TestModeBanner/index.js +2 -2
- package/dist/components/ThemeConfig/index.js +2 -2
- package/dist/components/TypeTester/TypeTesterFeatures.js +3 -3
- package/dist/components/TypeTester/TypeTesterFeaturesButton.js +3 -3
- package/dist/components/TypeTester/TypeTesterFloatingToolbar.js +3 -3
- package/dist/components/TypeTester/TypeTesterInput.d.ts +1 -0
- package/dist/components/TypeTester/TypeTesterInput.js +5 -2
- package/dist/components/TypeTester/TypeTesterStandalone.js +3 -3
- package/dist/components/TypeTester/TypeTesterStyleSelectData.js +7 -5
- package/dist/components/TypeTester/TypeTesterToolbar.js +9 -5
- package/dist/components/TypeTester/TypeTesterVariableAxes.js +2 -2
- package/dist/components/TypeTester/index.js +9 -6
- package/dist/components/TypeTester/useFeaturesData.js +2 -2
- package/dist/components/TypeTesters/index.js +9 -6
- package/dist/components/VariableTableAmounts/index.js +4 -3
- package/dist/components/useTotalStyles.js +3 -2
- package/dist/fontdue.css +18 -3
- package/dist/reducer.js +3 -1
- package/dist/relay/environment.js +12 -4
- package/package.json +3 -2
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
/**
|
|
8
|
-
* @generated SignedSource<<
|
|
8
|
+
* @generated SignedSource<<6d346bfae5f878131c423bbc5cb1f999>>
|
|
9
9
|
* @lightSyntaxTransform
|
|
10
10
|
* @nogrep
|
|
11
11
|
*/
|
|
@@ -23,6 +23,12 @@ const node = {
|
|
|
23
23
|
"args": null,
|
|
24
24
|
"kind": "FragmentSpread",
|
|
25
25
|
"name": "AddressFields_viewer"
|
|
26
|
+
}, {
|
|
27
|
+
"alias": null,
|
|
28
|
+
"args": null,
|
|
29
|
+
"kind": "ScalarField",
|
|
30
|
+
"name": "country",
|
|
31
|
+
"storageKey": null
|
|
26
32
|
}, {
|
|
27
33
|
"alias": null,
|
|
28
34
|
"args": null,
|
|
@@ -63,6 +69,6 @@ const node = {
|
|
|
63
69
|
"type": "Viewer",
|
|
64
70
|
"abstractKey": null
|
|
65
71
|
};
|
|
66
|
-
node.hash = "
|
|
72
|
+
node.hash = "be63ce5562013aa6a1439e6259c80e2f";
|
|
67
73
|
var _default = node;
|
|
68
74
|
exports.default = _default;
|
|
@@ -4,8 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
var _CouponCodeRefetchQuery = _interopRequireDefault(require("./CouponCodeRefetchQuery.graphql"));
|
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
7
9
|
/**
|
|
8
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<80c9c2d25d38e5b137092c91c62ae700>>
|
|
9
11
|
* @lightSyntaxTransform
|
|
10
12
|
* @nogrep
|
|
11
13
|
*/
|
|
@@ -29,7 +31,7 @@ const node = {
|
|
|
29
31
|
"refetch": {
|
|
30
32
|
"connection": null,
|
|
31
33
|
"fragmentPathInResult": ["viewer"],
|
|
32
|
-
"operation":
|
|
34
|
+
"operation": _CouponCodeRefetchQuery.default
|
|
33
35
|
}
|
|
34
36
|
},
|
|
35
37
|
"name": "CouponCodeInput_viewer",
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @generated SignedSource<<ee898a7e0f106f5bbe02ab81dbbb2ce0>>
|
|
3
|
+
* @lightSyntaxTransform
|
|
4
|
+
* @nogrep
|
|
5
|
+
*/
|
|
6
|
+
import { ConcreteRequest } from 'relay-runtime';
|
|
7
|
+
export type AccessNodeInput = {
|
|
8
|
+
id?: string | null;
|
|
9
|
+
password: string;
|
|
10
|
+
slug?: string | null;
|
|
11
|
+
};
|
|
12
|
+
export type NodePasswordFormAccessNodeMutation$variables = {
|
|
13
|
+
input: AccessNodeInput;
|
|
14
|
+
};
|
|
15
|
+
export type NodePasswordFormAccessNodeMutation$data = {
|
|
16
|
+
readonly accessNode: {
|
|
17
|
+
readonly success: boolean | null;
|
|
18
|
+
} | null;
|
|
19
|
+
};
|
|
20
|
+
export type NodePasswordFormAccessNodeMutation = {
|
|
21
|
+
response: NodePasswordFormAccessNodeMutation$data;
|
|
22
|
+
variables: NodePasswordFormAccessNodeMutation$variables;
|
|
23
|
+
};
|
|
24
|
+
declare const node: ConcreteRequest;
|
|
25
|
+
export default node;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* @generated SignedSource<<ee898a7e0f106f5bbe02ab81dbbb2ce0>>
|
|
9
|
+
* @lightSyntaxTransform
|
|
10
|
+
* @nogrep
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/* tslint:disable */
|
|
14
|
+
/* eslint-disable */
|
|
15
|
+
// @ts-nocheck
|
|
16
|
+
|
|
17
|
+
const node = function () {
|
|
18
|
+
var v0 = [{
|
|
19
|
+
"defaultValue": null,
|
|
20
|
+
"kind": "LocalArgument",
|
|
21
|
+
"name": "input"
|
|
22
|
+
}],
|
|
23
|
+
v1 = [{
|
|
24
|
+
"alias": null,
|
|
25
|
+
"args": [{
|
|
26
|
+
"kind": "Variable",
|
|
27
|
+
"name": "input",
|
|
28
|
+
"variableName": "input"
|
|
29
|
+
}],
|
|
30
|
+
"concreteType": "AccessNodePayload",
|
|
31
|
+
"kind": "LinkedField",
|
|
32
|
+
"name": "accessNode",
|
|
33
|
+
"plural": false,
|
|
34
|
+
"selections": [{
|
|
35
|
+
"alias": null,
|
|
36
|
+
"args": null,
|
|
37
|
+
"kind": "ScalarField",
|
|
38
|
+
"name": "success",
|
|
39
|
+
"storageKey": null
|
|
40
|
+
}],
|
|
41
|
+
"storageKey": null
|
|
42
|
+
}];
|
|
43
|
+
return {
|
|
44
|
+
"fragment": {
|
|
45
|
+
"argumentDefinitions": v0 /*: any*/,
|
|
46
|
+
"kind": "Fragment",
|
|
47
|
+
"metadata": null,
|
|
48
|
+
"name": "NodePasswordFormAccessNodeMutation",
|
|
49
|
+
"selections": v1 /*: any*/,
|
|
50
|
+
"type": "RootMutationType",
|
|
51
|
+
"abstractKey": null
|
|
52
|
+
},
|
|
53
|
+
"kind": "Request",
|
|
54
|
+
"operation": {
|
|
55
|
+
"argumentDefinitions": v0 /*: any*/,
|
|
56
|
+
"kind": "Operation",
|
|
57
|
+
"name": "NodePasswordFormAccessNodeMutation",
|
|
58
|
+
"selections": v1 /*: any*/
|
|
59
|
+
},
|
|
60
|
+
"params": {
|
|
61
|
+
"cacheID": "ed45968318514d1f2819fe584aac3f75",
|
|
62
|
+
"id": null,
|
|
63
|
+
"metadata": {},
|
|
64
|
+
"name": "NodePasswordFormAccessNodeMutation",
|
|
65
|
+
"operationKind": "mutation",
|
|
66
|
+
"text": "mutation NodePasswordFormAccessNodeMutation(\n $input: AccessNodeInput!\n) {\n accessNode(input: $input) {\n success\n }\n}\n"
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
}();
|
|
70
|
+
node.hash = "d0beeb729c358ef4eebd1c8be47ec68e";
|
|
71
|
+
var _default = node;
|
|
72
|
+
exports.default = _default;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
/**
|
|
8
|
-
* @generated SignedSource<<
|
|
8
|
+
* @generated SignedSource<<9e65f5022b0850899d38f29ce6084d06>>
|
|
9
9
|
* @lightSyntaxTransform
|
|
10
10
|
* @nogrep
|
|
11
11
|
*/
|
|
@@ -77,19 +77,19 @@ const node = function () {
|
|
|
77
77
|
"name": "cssUrl",
|
|
78
78
|
"storageKey": null
|
|
79
79
|
},
|
|
80
|
-
v9 =
|
|
81
|
-
v10 = {
|
|
80
|
+
v9 = {
|
|
82
81
|
"alias": null,
|
|
83
82
|
"args": null,
|
|
84
83
|
"kind": "ScalarField",
|
|
85
|
-
"name": "
|
|
84
|
+
"name": "variableType",
|
|
86
85
|
"storageKey": null
|
|
87
86
|
},
|
|
87
|
+
v10 = [v2 /*: any*/],
|
|
88
88
|
v11 = {
|
|
89
89
|
"alias": null,
|
|
90
90
|
"args": null,
|
|
91
91
|
"kind": "ScalarField",
|
|
92
|
-
"name": "
|
|
92
|
+
"name": "multiplier",
|
|
93
93
|
"storageKey": null
|
|
94
94
|
},
|
|
95
95
|
v12 = {
|
|
@@ -262,14 +262,14 @@ const node = function () {
|
|
|
262
262
|
"name": "product",
|
|
263
263
|
"plural": false,
|
|
264
264
|
"selections": [{
|
|
265
|
+
"kind": "TypeDiscriminator",
|
|
266
|
+
"abstractKey": "__isSkuProduct"
|
|
267
|
+
}, {
|
|
265
268
|
"alias": null,
|
|
266
269
|
"args": null,
|
|
267
270
|
"kind": "ScalarField",
|
|
268
271
|
"name": "__typename",
|
|
269
272
|
"storageKey": null
|
|
270
|
-
}, {
|
|
271
|
-
"kind": "TypeDiscriminator",
|
|
272
|
-
"abstractKey": "__isSkuProduct"
|
|
273
273
|
}, {
|
|
274
274
|
"kind": "InlineFragment",
|
|
275
275
|
"selections": [{
|
|
@@ -344,7 +344,39 @@ const node = function () {
|
|
|
344
344
|
"abstractKey": null
|
|
345
345
|
}, {
|
|
346
346
|
"kind": "InlineFragment",
|
|
347
|
-
"selections":
|
|
347
|
+
"selections": [{
|
|
348
|
+
"alias": null,
|
|
349
|
+
"args": null,
|
|
350
|
+
"concreteType": "License",
|
|
351
|
+
"kind": "LinkedField",
|
|
352
|
+
"name": "licenses",
|
|
353
|
+
"plural": true,
|
|
354
|
+
"selections": [v2 /*: any*/, v7 /*: any*/, {
|
|
355
|
+
"alias": "variables",
|
|
356
|
+
"args": null,
|
|
357
|
+
"concreteType": "LicenseVariable",
|
|
358
|
+
"kind": "LinkedField",
|
|
359
|
+
"name": "licenseVariables",
|
|
360
|
+
"plural": true,
|
|
361
|
+
"selections": [v2 /*: any*/, v7 /*: any*/, v9 /*: any*/, {
|
|
362
|
+
"alias": "options",
|
|
363
|
+
"args": null,
|
|
364
|
+
"concreteType": "LicenseOption",
|
|
365
|
+
"kind": "LinkedField",
|
|
366
|
+
"name": "licenseOptions",
|
|
367
|
+
"plural": true,
|
|
368
|
+
"selections": [v2 /*: any*/, v3 /*: any*/, v7 /*: any*/],
|
|
369
|
+
"storageKey": null
|
|
370
|
+
}],
|
|
371
|
+
"storageKey": null
|
|
372
|
+
}],
|
|
373
|
+
"storageKey": null
|
|
374
|
+
}],
|
|
375
|
+
"type": "Licenseable",
|
|
376
|
+
"abstractKey": "__isLicenseable"
|
|
377
|
+
}, {
|
|
378
|
+
"kind": "InlineFragment",
|
|
379
|
+
"selections": v10 /*: any*/,
|
|
348
380
|
"type": "Node",
|
|
349
381
|
"abstractKey": "__isNode"
|
|
350
382
|
}],
|
|
@@ -365,7 +397,7 @@ const node = function () {
|
|
|
365
397
|
"kind": "LinkedField",
|
|
366
398
|
"name": "license",
|
|
367
399
|
"plural": false,
|
|
368
|
-
"selections": [v2 /*: any*/, v7 /*: any*/,
|
|
400
|
+
"selections": [v2 /*: any*/, v7 /*: any*/, v11 /*: any*/],
|
|
369
401
|
"storageKey": null
|
|
370
402
|
}, {
|
|
371
403
|
"alias": "variable",
|
|
@@ -374,7 +406,7 @@ const node = function () {
|
|
|
374
406
|
"kind": "LinkedField",
|
|
375
407
|
"name": "licenseVariable",
|
|
376
408
|
"plural": false,
|
|
377
|
-
"selections": [v2 /*: any*/,
|
|
409
|
+
"selections": [v2 /*: any*/, v9 /*: any*/, {
|
|
378
410
|
"alias": null,
|
|
379
411
|
"args": null,
|
|
380
412
|
"kind": "ScalarField",
|
|
@@ -389,7 +421,7 @@ const node = function () {
|
|
|
389
421
|
"kind": "LinkedField",
|
|
390
422
|
"name": "licenseOption",
|
|
391
423
|
"plural": false,
|
|
392
|
-
"selections": [v2 /*: any*/, v3 /*: any*/,
|
|
424
|
+
"selections": [v2 /*: any*/, v3 /*: any*/, v11 /*: any*/, v7 /*: any*/, {
|
|
393
425
|
"alias": null,
|
|
394
426
|
"args": null,
|
|
395
427
|
"kind": "ScalarField",
|
|
@@ -410,7 +442,7 @@ const node = function () {
|
|
|
410
442
|
"kind": "LinkedField",
|
|
411
443
|
"name": "licenseVariable",
|
|
412
444
|
"plural": false,
|
|
413
|
-
"selections": [v2 /*: any*/,
|
|
445
|
+
"selections": [v2 /*: any*/, v9 /*: any*/],
|
|
414
446
|
"storageKey": null
|
|
415
447
|
}, {
|
|
416
448
|
"alias": null,
|
|
@@ -419,7 +451,7 @@ const node = function () {
|
|
|
419
451
|
"kind": "LinkedField",
|
|
420
452
|
"name": "licenseOption",
|
|
421
453
|
"plural": false,
|
|
422
|
-
"selections":
|
|
454
|
+
"selections": v10 /*: any*/,
|
|
423
455
|
"storageKey": null
|
|
424
456
|
}],
|
|
425
457
|
"storageKey": null
|
|
@@ -642,12 +674,12 @@ const node = function () {
|
|
|
642
674
|
}]
|
|
643
675
|
},
|
|
644
676
|
"params": {
|
|
645
|
-
"cacheID": "
|
|
677
|
+
"cacheID": "380864984f896e2451d84762ebab18ad",
|
|
646
678
|
"id": null,
|
|
647
679
|
"metadata": {},
|
|
648
680
|
"name": "PrecartAddToCartMutation",
|
|
649
681
|
"operationKind": "mutation",
|
|
650
|
-
"text": "mutation PrecartAddToCartMutation(\n $input: CreateOrderItemsInput!\n) {\n createOrderItems(input: $input) {\n order {\n ...CartButton_order\n ...CartOrder_order\n ...AddToCartBanner_order\n id\n }\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 }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n }\n}\n\nfragment CartButton_order on Order {\n stripeCharge {\n paid\n }\n orderItems {\n id\n }\n}\n\nfragment CartItem_node on OrderItem {\n id\n price {\n ...Price_price\n }\n sku {\n price {\n ...Price_price\n }\n product {\n __typename\n
|
|
682
|
+
"text": "mutation PrecartAddToCartMutation(\n $input: CreateOrderItemsInput!\n) {\n createOrderItems(input: $input) {\n order {\n ...CartButton_order\n ...CartOrder_order\n ...AddToCartBanner_order\n id\n }\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 }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n }\n}\n\nfragment CartButton_order on Order {\n stripeCharge {\n paid\n }\n orderItems {\n id\n }\n}\n\nfragment CartItem_node on OrderItem {\n id\n price {\n ...Price_price\n }\n sku {\n price {\n ...Price_price\n }\n product {\n __isSkuProduct: __typename\n __typename\n ...CollectionAa_product\n ...FontStyle_fontStyle\n ... on FontStyle {\n family {\n name\n cssUrl\n id\n }\n name\n variableInstances {\n name\n }\n }\n ... on Bundle {\n name\n }\n ... on FontCollection {\n name\n isVariableFont\n totalStyles\n featureStyle {\n family {\n cssUrl\n id\n }\n id\n }\n }\n ... on Licenseable {\n __isLicenseable: __typename\n licenses {\n id\n name\n variables: licenseVariables {\n id\n name\n variableType\n options: licenseOptions {\n id\n amount\n name\n }\n }\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n licenseSelections {\n id\n license {\n id\n name\n multiplier\n }\n variable: licenseVariable {\n id\n variableType\n ...VariableTableAmounts_variable\n }\n option: licenseOption {\n id\n amount\n multiplier\n name\n ...VariableTableAmounts_option\n }\n variableText\n }\n}\n\nfragment CartOrder_order on Order {\n ...Checkout_order\n ...Download_order\n ...CartTotals_order\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 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 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 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 phone\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n licenseeIdentity {\n name\n organization\n email\n phone\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 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 cssFamily\n name\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"
|
|
651
683
|
}
|
|
652
684
|
};
|
|
653
685
|
}();
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
/**
|
|
8
|
-
* @generated SignedSource<<
|
|
8
|
+
* @generated SignedSource<<fc904bb22e5ae317bad39b247dd8f4c8>>
|
|
9
9
|
* @lightSyntaxTransform
|
|
10
10
|
* @nogrep
|
|
11
11
|
*/
|
|
@@ -92,8 +92,7 @@ const node = function () {
|
|
|
92
92
|
"selections": [v7 /*: any*/],
|
|
93
93
|
"storageKey": null
|
|
94
94
|
}],
|
|
95
|
-
v12 =
|
|
96
|
-
v13 = {
|
|
95
|
+
v12 = {
|
|
97
96
|
"alias": null,
|
|
98
97
|
"args": null,
|
|
99
98
|
"kind": "ScalarField",
|
|
@@ -198,7 +197,7 @@ const node = function () {
|
|
|
198
197
|
"abstractKey": null
|
|
199
198
|
}, {
|
|
200
199
|
"kind": "InlineFragment",
|
|
201
|
-
"selections":
|
|
200
|
+
"selections": [v10 /*: any*/],
|
|
202
201
|
"type": "FontStyle",
|
|
203
202
|
"abstractKey": null
|
|
204
203
|
}, {
|
|
@@ -221,77 +220,73 @@ const node = function () {
|
|
|
221
220
|
"storageKey": null
|
|
222
221
|
}],
|
|
223
222
|
"storageKey": null
|
|
224
|
-
},
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
"
|
|
235
|
-
"selections": [
|
|
236
|
-
"alias": null,
|
|
237
|
-
"args": null,
|
|
238
|
-
"kind": "ScalarField",
|
|
239
|
-
"name": "url",
|
|
240
|
-
"storageKey": null
|
|
241
|
-
}, v10 /*: any*/, {
|
|
223
|
+
}, v5 /*: any*/],
|
|
224
|
+
"storageKey": null
|
|
225
|
+
}, {
|
|
226
|
+
"alias": "collection",
|
|
227
|
+
"args": v4 /*: any*/,
|
|
228
|
+
"concreteType": null,
|
|
229
|
+
"kind": "LinkedField",
|
|
230
|
+
"name": "node",
|
|
231
|
+
"plural": false,
|
|
232
|
+
"selections": [v9 /*: any*/, {
|
|
233
|
+
"kind": "InlineFragment",
|
|
234
|
+
"selections": [v10 /*: any*/, {
|
|
242
235
|
"alias": null,
|
|
243
|
-
"args": [{
|
|
244
|
-
"kind": "Literal",
|
|
245
|
-
"name": "format",
|
|
246
|
-
"value": "HTML"
|
|
247
|
-
}],
|
|
248
|
-
"kind": "ScalarField",
|
|
249
|
-
"name": "description",
|
|
250
|
-
"storageKey": "description(format:\"HTML\")"
|
|
251
|
-
}, v13 /*: any*/, {
|
|
252
|
-
"alias": "variables",
|
|
253
236
|
"args": null,
|
|
254
|
-
"concreteType": "
|
|
237
|
+
"concreteType": "License",
|
|
255
238
|
"kind": "LinkedField",
|
|
256
|
-
"name": "
|
|
239
|
+
"name": "licenses",
|
|
257
240
|
"plural": true,
|
|
258
|
-
"selections": [v5 /*: any*/,
|
|
241
|
+
"selections": [v5 /*: any*/, {
|
|
259
242
|
"alias": null,
|
|
260
243
|
"args": null,
|
|
261
244
|
"kind": "ScalarField",
|
|
262
|
-
"name": "
|
|
245
|
+
"name": "url",
|
|
263
246
|
"storageKey": null
|
|
264
|
-
}, {
|
|
265
|
-
"alias":
|
|
247
|
+
}, v10 /*: any*/, {
|
|
248
|
+
"alias": null,
|
|
249
|
+
"args": [{
|
|
250
|
+
"kind": "Literal",
|
|
251
|
+
"name": "format",
|
|
252
|
+
"value": "HTML"
|
|
253
|
+
}],
|
|
254
|
+
"kind": "ScalarField",
|
|
255
|
+
"name": "description",
|
|
256
|
+
"storageKey": "description(format:\"HTML\")"
|
|
257
|
+
}, v12 /*: any*/, {
|
|
258
|
+
"alias": "variables",
|
|
266
259
|
"args": null,
|
|
267
|
-
"concreteType": "
|
|
260
|
+
"concreteType": "LicenseVariable",
|
|
268
261
|
"kind": "LinkedField",
|
|
269
|
-
"name": "
|
|
262
|
+
"name": "licenseVariables",
|
|
270
263
|
"plural": true,
|
|
271
|
-
"selections": [v5 /*: any*/,
|
|
264
|
+
"selections": [v5 /*: any*/, v10 /*: any*/, {
|
|
265
|
+
"alias": null,
|
|
266
|
+
"args": null,
|
|
267
|
+
"kind": "ScalarField",
|
|
268
|
+
"name": "variableType",
|
|
269
|
+
"storageKey": null
|
|
270
|
+
}, {
|
|
271
|
+
"alias": "options",
|
|
272
|
+
"args": null,
|
|
273
|
+
"concreteType": "LicenseOption",
|
|
274
|
+
"kind": "LinkedField",
|
|
275
|
+
"name": "licenseOptions",
|
|
276
|
+
"plural": true,
|
|
277
|
+
"selections": [v5 /*: any*/, v7 /*: any*/, v12 /*: any*/],
|
|
278
|
+
"storageKey": null
|
|
279
|
+
}],
|
|
280
|
+
"storageKey": null
|
|
281
|
+
}, {
|
|
282
|
+
"alias": null,
|
|
283
|
+
"args": null,
|
|
284
|
+
"kind": "ScalarField",
|
|
285
|
+
"name": "defaultSelected",
|
|
272
286
|
"storageKey": null
|
|
273
287
|
}],
|
|
274
288
|
"storageKey": null
|
|
275
|
-
}, {
|
|
276
|
-
"alias": null,
|
|
277
|
-
"args": null,
|
|
278
|
-
"kind": "ScalarField",
|
|
279
|
-
"name": "defaultSelected",
|
|
280
|
-
"storageKey": null
|
|
281
289
|
}],
|
|
282
|
-
"storageKey": "licenses(licenseTypes:[\"RETAIL\"])"
|
|
283
|
-
}, v5 /*: any*/],
|
|
284
|
-
"storageKey": null
|
|
285
|
-
}, {
|
|
286
|
-
"alias": "collection",
|
|
287
|
-
"args": v4 /*: any*/,
|
|
288
|
-
"concreteType": null,
|
|
289
|
-
"kind": "LinkedField",
|
|
290
|
-
"name": "node",
|
|
291
|
-
"plural": false,
|
|
292
|
-
"selections": [v9 /*: any*/, {
|
|
293
|
-
"kind": "InlineFragment",
|
|
294
|
-
"selections": v12 /*: any*/,
|
|
295
290
|
"type": "FontCollection",
|
|
296
291
|
"abstractKey": null
|
|
297
292
|
}, v5 /*: any*/],
|
|
@@ -299,12 +294,12 @@ const node = function () {
|
|
|
299
294
|
}]
|
|
300
295
|
},
|
|
301
296
|
"params": {
|
|
302
|
-
"cacheID": "
|
|
297
|
+
"cacheID": "6db09954e7d3e41a3f3781605487ab8e",
|
|
303
298
|
"id": null,
|
|
304
299
|
"metadata": {},
|
|
305
300
|
"name": "PrecartQuery",
|
|
306
301
|
"operationKind": "query",
|
|
307
|
-
"text": "query PrecartQuery(\n $licenseOptionsSpecs: [LicenseOptionsSpec]!\n $selectedSkuIds: [ID]!\n $collectionId: ID!\n) {\n viewer {\n ...Precart_viewer_DvL55\n id\n }\n collection: node(id: $collectionId) {\n __typename\n ...Precart_collection\n id\n }\n}\n\nfragment License_node on License {\n id\n url\n name\n description(format: HTML)\n multiplier\n variables: licenseVariables {\n id\n name\n variableType\n options: licenseOptions {\n id\n amount\n multiplier\n }\n }\n}\n\nfragment Precart_collection on FontCollection {\n name\n}\n\nfragment Precart_viewer_DvL55 on Viewer {\n precart(skuIds: $selectedSkuIds, licenseOptions: $licenseOptionsSpecs) {\n skus {\n id\n price(licenseOptions: $licenseOptionsSpecs) {\n amount\n ...Price_price\n }\n product {\n __typename\n ... on FontCollection {\n name\n totalStyles\n totalStylesPrice(licenseOptions: $licenseOptionsSpecs) {\n amount\n }\n }\n ... on Bundle {\n name\n totalStyles\n totalStylesPrice(licenseOptions: $licenseOptionsSpecs) {\n amount\n }\n }\n ... on FontStyle {\n name\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n }\n subtotal {\n amount\n currency\n ...Price_price\n }\n }\n
|
|
302
|
+
"text": "query PrecartQuery(\n $licenseOptionsSpecs: [LicenseOptionsSpec]!\n $selectedSkuIds: [ID]!\n $collectionId: ID!\n) {\n viewer {\n ...Precart_viewer_DvL55\n id\n }\n collection: node(id: $collectionId) {\n __typename\n ...Precart_collection\n id\n }\n}\n\nfragment License_node on License {\n id\n url\n name\n description(format: HTML)\n multiplier\n variables: licenseVariables {\n id\n name\n variableType\n options: licenseOptions {\n id\n amount\n multiplier\n }\n }\n}\n\nfragment Precart_collection on FontCollection {\n name\n licenses {\n ...License_node\n name\n id\n defaultSelected\n variables: licenseVariables {\n id\n options: licenseOptions {\n id\n }\n }\n }\n}\n\nfragment Precart_viewer_DvL55 on Viewer {\n precart(skuIds: $selectedSkuIds, licenseOptions: $licenseOptionsSpecs) {\n skus {\n id\n price(licenseOptions: $licenseOptionsSpecs) {\n amount\n ...Price_price\n }\n product {\n __typename\n ... on FontCollection {\n name\n totalStyles\n totalStylesPrice(licenseOptions: $licenseOptionsSpecs) {\n amount\n }\n }\n ... on Bundle {\n name\n totalStyles\n totalStylesPrice(licenseOptions: $licenseOptionsSpecs) {\n amount\n }\n }\n ... on FontStyle {\n name\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n }\n subtotal {\n amount\n currency\n ...Price_price\n }\n }\n}\n\nfragment Price_price on Money {\n amount\n currency\n}\n"
|
|
308
303
|
}
|
|
309
304
|
};
|
|
310
305
|
}();
|
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @generated SignedSource<<
|
|
2
|
+
* @generated SignedSource<<f874c4c264fe23a5dff962fed07f9f7e>>
|
|
3
3
|
* @lightSyntaxTransform
|
|
4
4
|
* @nogrep
|
|
5
5
|
*/
|
|
6
6
|
import { ReaderFragment } from 'relay-runtime';
|
|
7
7
|
import { FragmentRefs } from "relay-runtime";
|
|
8
8
|
export type Precart_collection$data = {
|
|
9
|
+
readonly licenses: ReadonlyArray<{
|
|
10
|
+
readonly defaultSelected: boolean | null;
|
|
11
|
+
readonly id: string;
|
|
12
|
+
readonly name: string | null;
|
|
13
|
+
readonly variables: ReadonlyArray<{
|
|
14
|
+
readonly id: string;
|
|
15
|
+
readonly options: ReadonlyArray<{
|
|
16
|
+
readonly id: string;
|
|
17
|
+
}> | null;
|
|
18
|
+
}> | null;
|
|
19
|
+
readonly " $fragmentSpreads": FragmentRefs<"License_node">;
|
|
20
|
+
}> | null;
|
|
9
21
|
readonly name: string;
|
|
10
22
|
readonly " $fragmentType": "Precart_collection";
|
|
11
23
|
};
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
/**
|
|
8
|
-
* @generated SignedSource<<
|
|
8
|
+
* @generated SignedSource<<f874c4c264fe23a5dff962fed07f9f7e>>
|
|
9
9
|
* @lightSyntaxTransform
|
|
10
10
|
* @nogrep
|
|
11
11
|
*/
|
|
@@ -14,21 +14,68 @@ exports.default = void 0;
|
|
|
14
14
|
/* eslint-disable */
|
|
15
15
|
// @ts-nocheck
|
|
16
16
|
|
|
17
|
-
const node = {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
};
|
|
32
|
-
|
|
17
|
+
const node = function () {
|
|
18
|
+
var v0 = {
|
|
19
|
+
"alias": null,
|
|
20
|
+
"args": null,
|
|
21
|
+
"kind": "ScalarField",
|
|
22
|
+
"name": "name",
|
|
23
|
+
"storageKey": null
|
|
24
|
+
},
|
|
25
|
+
v1 = {
|
|
26
|
+
"alias": null,
|
|
27
|
+
"args": null,
|
|
28
|
+
"kind": "ScalarField",
|
|
29
|
+
"name": "id",
|
|
30
|
+
"storageKey": null
|
|
31
|
+
};
|
|
32
|
+
return {
|
|
33
|
+
"argumentDefinitions": [],
|
|
34
|
+
"kind": "Fragment",
|
|
35
|
+
"metadata": null,
|
|
36
|
+
"name": "Precart_collection",
|
|
37
|
+
"selections": [v0 /*: any*/, {
|
|
38
|
+
"alias": null,
|
|
39
|
+
"args": null,
|
|
40
|
+
"concreteType": "License",
|
|
41
|
+
"kind": "LinkedField",
|
|
42
|
+
"name": "licenses",
|
|
43
|
+
"plural": true,
|
|
44
|
+
"selections": [{
|
|
45
|
+
"args": null,
|
|
46
|
+
"kind": "FragmentSpread",
|
|
47
|
+
"name": "License_node"
|
|
48
|
+
}, v0 /*: any*/, v1 /*: any*/, {
|
|
49
|
+
"alias": null,
|
|
50
|
+
"args": null,
|
|
51
|
+
"kind": "ScalarField",
|
|
52
|
+
"name": "defaultSelected",
|
|
53
|
+
"storageKey": null
|
|
54
|
+
}, {
|
|
55
|
+
"alias": "variables",
|
|
56
|
+
"args": null,
|
|
57
|
+
"concreteType": "LicenseVariable",
|
|
58
|
+
"kind": "LinkedField",
|
|
59
|
+
"name": "licenseVariables",
|
|
60
|
+
"plural": true,
|
|
61
|
+
"selections": [v1 /*: any*/, {
|
|
62
|
+
"alias": "options",
|
|
63
|
+
"args": null,
|
|
64
|
+
"concreteType": "LicenseOption",
|
|
65
|
+
"kind": "LinkedField",
|
|
66
|
+
"name": "licenseOptions",
|
|
67
|
+
"plural": true,
|
|
68
|
+
"selections": [v1 /*: any*/],
|
|
69
|
+
"storageKey": null
|
|
70
|
+
}],
|
|
71
|
+
"storageKey": null
|
|
72
|
+
}],
|
|
73
|
+
"storageKey": null
|
|
74
|
+
}],
|
|
75
|
+
"type": "FontCollection",
|
|
76
|
+
"abstractKey": null
|
|
77
|
+
};
|
|
78
|
+
}();
|
|
79
|
+
node.hash = "dd2c3385a0fc5149dbfa230cfa5e3e99";
|
|
33
80
|
var _default = node;
|
|
34
81
|
exports.default = _default;
|
|
@@ -1,23 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @generated SignedSource<<
|
|
2
|
+
* @generated SignedSource<<f0227ba25be4e87fccfb43dda0029503>>
|
|
3
3
|
* @lightSyntaxTransform
|
|
4
4
|
* @nogrep
|
|
5
5
|
*/
|
|
6
6
|
import { ReaderFragment } from 'relay-runtime';
|
|
7
7
|
import { FragmentRefs } from "relay-runtime";
|
|
8
8
|
export type Precart_viewer$data = {
|
|
9
|
-
readonly licenses: ReadonlyArray<{
|
|
10
|
-
readonly defaultSelected: boolean | null;
|
|
11
|
-
readonly id: string;
|
|
12
|
-
readonly name: string | null;
|
|
13
|
-
readonly variables: ReadonlyArray<{
|
|
14
|
-
readonly id: string;
|
|
15
|
-
readonly options: ReadonlyArray<{
|
|
16
|
-
readonly id: string;
|
|
17
|
-
}> | null;
|
|
18
|
-
}> | null;
|
|
19
|
-
readonly " $fragmentSpreads": FragmentRefs<"License_node">;
|
|
20
|
-
}> | null;
|
|
21
9
|
readonly precart: {
|
|
22
10
|
readonly skus: ReadonlyArray<{
|
|
23
11
|
readonly id: string;
|