fontdue-js 2.23.1 → 2.24.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 +8 -0
- package/dist/__generated__/StoreModalCartQuery.graphql.d.ts +1 -1
- package/dist/__generated__/StoreModalCartQuery.graphql.js +27 -3
- package/dist/__generated__/StoreModalProductQuery.graphql.d.ts +5 -1
- package/dist/__generated__/StoreModalProductQuery.graphql.js +89 -61
- package/dist/__generated__/StoreModalUnifiedCheckout_viewer.graphql.d.ts +5 -1
- package/dist/__generated__/StoreModalUnifiedCheckout_viewer.graphql.js +26 -2
- package/dist/components/CharacterViewer/index.js +24 -7
- package/dist/components/StoreModal/StoreModalLicenseeIsBillingSelection.d.ts +4 -0
- package/dist/components/StoreModal/StoreModalProduct.js +35 -7
- package/dist/components/elements/StoreModalLicenseeIsBillingIdentityElement.d.ts +5 -1
- package/dist/components/elements/StoreModalLicenseeIsBillingIdentityElement.js +17 -5
- package/dist/components/elements/StoreModalUnifiedCheckout.js +24 -4
- package/dist/fontdue.css +77 -30
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## 2.24.0
|
|
2
|
+
|
|
3
|
+
- The cart's licensee picker now reads its button labels and per-option descriptions from tenant settings, so admins can rename "Yourself" / "Your client" and add explainer text without a code change.
|
|
4
|
+
|
|
5
|
+
## 2.23.2
|
|
6
|
+
|
|
7
|
+
- Fixed a right-edge gap in the *CharacterViewer* glyph grid.
|
|
8
|
+
|
|
1
9
|
## 2.23.1
|
|
2
10
|
|
|
3
11
|
- Tweaked checkout styling.
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
/**
|
|
8
|
-
* @generated SignedSource<<
|
|
8
|
+
* @generated SignedSource<<024b5dc4c8cf3f856de0a6d06968f144>>
|
|
9
9
|
* @lightSyntaxTransform
|
|
10
10
|
* @nogrep
|
|
11
11
|
*/
|
|
@@ -479,6 +479,30 @@ const node = function () {
|
|
|
479
479
|
"kind": "ScalarField",
|
|
480
480
|
"name": "storeModalSelectLicenseeLabel",
|
|
481
481
|
"storageKey": "storeModalSelectLicenseeLabel(format:\"HTML\")"
|
|
482
|
+
}, {
|
|
483
|
+
"alias": null,
|
|
484
|
+
"args": v13 /*: any*/,
|
|
485
|
+
"kind": "ScalarField",
|
|
486
|
+
"name": "storeModalLicenseeSelfLabel",
|
|
487
|
+
"storageKey": "storeModalLicenseeSelfLabel(format:\"HTML\")"
|
|
488
|
+
}, {
|
|
489
|
+
"alias": null,
|
|
490
|
+
"args": v13 /*: any*/,
|
|
491
|
+
"kind": "ScalarField",
|
|
492
|
+
"name": "storeModalLicenseeSelfDescription",
|
|
493
|
+
"storageKey": "storeModalLicenseeSelfDescription(format:\"HTML\")"
|
|
494
|
+
}, {
|
|
495
|
+
"alias": null,
|
|
496
|
+
"args": v13 /*: any*/,
|
|
497
|
+
"kind": "ScalarField",
|
|
498
|
+
"name": "storeModalLicenseeClientLabel",
|
|
499
|
+
"storageKey": "storeModalLicenseeClientLabel(format:\"HTML\")"
|
|
500
|
+
}, {
|
|
501
|
+
"alias": null,
|
|
502
|
+
"args": v13 /*: any*/,
|
|
503
|
+
"kind": "ScalarField",
|
|
504
|
+
"name": "storeModalLicenseeClientDescription",
|
|
505
|
+
"storageKey": "storeModalLicenseeClientDescription(format:\"HTML\")"
|
|
482
506
|
}, {
|
|
483
507
|
"alias": null,
|
|
484
508
|
"args": v13 /*: any*/,
|
|
@@ -1012,12 +1036,12 @@ const node = function () {
|
|
|
1012
1036
|
}]
|
|
1013
1037
|
},
|
|
1014
1038
|
"params": {
|
|
1015
|
-
"cacheID": "
|
|
1039
|
+
"cacheID": "2cd9ae5c25c7dc6094502bbbe3dd1991",
|
|
1016
1040
|
"id": null,
|
|
1017
1041
|
"metadata": {},
|
|
1018
1042
|
"name": "StoreModalCartQuery",
|
|
1019
1043
|
"operationKind": "query",
|
|
1020
|
-
"text": "query StoreModalCartQuery {\n viewer {\n ...StripeProvider_viewer\n ...OrderVariableSelection_variables\n ...StoreModalOrderVariableSelection_viewer\n ...StoreModalUnifiedCheckout_viewer\n settings {\n taxSystem\n }\n currentOrder {\n ...CartState_order\n ...CartTotals_order\n ...StoreModalUnifiedCheckout_order\n ...StoreModalOrderVariableSelection_order\n id\n total {\n amount\n }\n orderVariableSelections {\n id\n }\n orderItems {\n id\n ...CartItem_node\n licenseSelections {\n licenseVariable {\n variableType\n id\n }\n variableText\n id\n }\n }\n discount {\n id\n }\n stripePaymentMethod {\n id\n }\n billingIdentity {\n name\n }\n }\n id\n }\n}\n\nfragment AddressFields_viewer on Viewer {\n countries {\n code\n name\n }\n settings {\n checkoutAddressCollection\n checkoutPhoneNumberCollection\n }\n}\n\nfragment CartItemAdditionalLicenses_licenses on License {\n id\n name\n}\n\nfragment CartItemAdditionalLicenses_orderItem on OrderItem {\n licenseSelections {\n license {\n id\n excludedLicenses {\n id\n }\n }\n id\n }\n}\n\nfragment CartItemLicense_selection on LicenseSelection {\n id\n license {\n id\n name\n licenseVariables {\n id\n ...CartItemVariable_variable\n }\n }\n licenseVariable {\n id\n }\n ...CartItemVariable_selection\n}\n\nfragment CartItemProduct_product on SkuProduct {\n __isSkuProduct: __typename\n __typename\n ...CollectionAa_product\n ...FontStyle_fontStyle\n ... on FontStyle {\n family {\n name\n id\n }\n name\n variableInstances {\n name\n }\n }\n ... on Bundle {\n name\n fontCollection {\n name\n id\n }\n }\n ... on FontCollection {\n name\n isVariableFont\n totalStyles\n }\n ... on CollectionBundle {\n name\n totalStyles\n fontCollection {\n name\n id\n }\n }\n}\n\nfragment CartItemVariable_selection on LicenseSelection {\n id\n variableText\n license {\n id\n }\n licenseVariable {\n ...VariableTableAmounts_variable\n id\n name\n variableType\n licenseOptions {\n id\n }\n }\n licenseOption {\n ...VariableTableAmounts_option\n id\n name\n amount\n }\n}\n\nfragment CartItemVariable_variable on LicenseVariable {\n id\n licenseOptions {\n id\n name\n amount\n }\n}\n\nfragment CartItem_node on OrderItem {\n ...CartItemAdditionalLicenses_orderItem\n id\n price {\n ...Price_price\n }\n sku {\n price {\n ...Price_price\n }\n product {\n ...CartItemProduct_product\n __typename\n ... on Licenseable {\n __isLicenseable: __typename\n licenses {\n ...CartItemAdditionalLicenses_licenses\n id\n licenseVariables {\n id\n licenseOptions {\n id\n }\n }\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n licenseSelections {\n ...CartItemLicense_selection\n id\n license {\n id\n }\n licenseVariable {\n id\n }\n licenseOption {\n id\n }\n variableText\n }\n}\n\nfragment CartState_order on Order {\n id\n orderItems {\n id\n licenseSelections {\n license {\n id\n }\n licenseVariable {\n id\n }\n licenseOption {\n id\n }\n variableText\n id\n }\n }\n orderVariableSelections {\n orderVariable {\n id\n }\n orderVariableOption {\n id\n }\n countryCode\n id\n }\n}\n\nfragment CartTotals_order on Order {\n subtotal {\n ...Price_price\n }\n discount {\n amount {\n amount\n ...Price_price\n }\n coupon {\n ...CouponText_coupon\n id\n }\n id\n }\n discountedSubtotal {\n ...Price_price\n }\n total {\n amount\n ...Price_price\n }\n taxRate\n taxes {\n ...Price_price\n }\n taxName\n taxNotApplicable\n taxNotApplicableReason\n gstIncluded\n}\n\nfragment CollectionAa_product on SkuProduct {\n __isSkuProduct: __typename\n __typename\n ... on FontCollection {\n featureStyle {\n ...FontStyle_fontStyle\n id\n }\n }\n ... on Bundle {\n fontStyles {\n ...FontStyle_fontStyle\n id\n }\n }\n}\n\nfragment CouponText_coupon on Coupon {\n type\n percentAmount\n creditAmount {\n amount\n currency\n }\n creditAmountRemaining {\n amount\n currency\n }\n}\n\nfragment FontStyle_fontStyle on FontStyle {\n ...useFontStyle_fontStyle\n}\n\nfragment OrderVariableSelection_variables on Viewer {\n orderVariables {\n id\n name\n variableType\n description(format: HTML, orderVariables: [])\n orderVariableOptions {\n id\n amount\n }\n }\n countries {\n code\n name\n }\n}\n\nfragment Price_price on Money {\n amount\n currency\n}\n\nfragment StoreModalOrderVariableSelection_order on Order {\n id\n orderVariableSelections {\n orderVariable {\n id\n name\n variableType\n }\n orderVariableDescription(format: HTML)\n orderVariableOption {\n id\n amount\n }\n countryCode\n id\n }\n}\n\nfragment StoreModalOrderVariableSelection_viewer on Viewer {\n ...OrderVariableSelection_variables\n orderVariables {\n id\n }\n settings {\n storeModalSelectOrderVariablesLabel(format: HTML)\n }\n}\n\nfragment StoreModalReviewIdentity_identity on Identity {\n email\n phoneFormatted\n addressFormatted\n vatNumber\n}\n\nfragment StoreModalUnifiedCheckout_order on Order {\n completeUrl\n canCompleteWithCoupon\n total {\n amount\n }\n customer {\n name\n email\n newsletterOptIn\n id\n }\n licenseeIsBillingIdentity\n licenseeIdentity {\n ...StoreModalReviewIdentity_identity\n name\n organization\n email\n phoneNullable\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n billingIdentity {\n ...StoreModalReviewIdentity_identity\n name\n organization\n email\n phoneNullable\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n stripePaymentIntent {\n clientSecret\n amount\n currency\n }\n orderVariableSelections {\n orderVariable {\n id\n variableType\n }\n orderVariableOption {\n id\n }\n countryCode\n id\n }\n}\n\nfragment StoreModalUnifiedCheckout_viewer on Viewer {\n ...AddressFields_viewer\n country\n detectedCountry\n settings {\n uiFontName\n eulaAgreementLabel(format: HTML)\n storeModalSelectLicenseeLabel(format: HTML)\n newsletterOptInLabel(format: HTML)\n taxSystem\n recaptchaEnabled\n recaptchaSiteKey\n }\n themeConfig {\n customProperties\n }\n}\n\nfragment StripeProvider_viewer on Viewer {\n settings {\n taxSystem\n uiFontStyle {\n name\n cssFamily\n webfontSources {\n format\n url\n }\n id\n }\n }\n themeConfig {\n customProperties\n }\n stripeAccountId\n stripePublishableKey\n currentOrder {\n stripeAccountId\n stripePaymentIntent {\n clientSecret\n }\n id\n }\n}\n\nfragment VariableTableAmounts_option on LicenseOption {\n amounts\n}\n\nfragment VariableTableAmounts_variable on LicenseVariable {\n units\n}\n\nfragment useFontStyle_fontStyle on FontStyle {\n cssFamily\n name\n webfontSources {\n url\n format\n }\n verticalMetrics {\n unitsPerEm\n ascender\n descender\n lineGap\n }\n}\n"
|
|
1044
|
+
"text": "query StoreModalCartQuery {\n viewer {\n ...StripeProvider_viewer\n ...OrderVariableSelection_variables\n ...StoreModalOrderVariableSelection_viewer\n ...StoreModalUnifiedCheckout_viewer\n settings {\n taxSystem\n }\n currentOrder {\n ...CartState_order\n ...CartTotals_order\n ...StoreModalUnifiedCheckout_order\n ...StoreModalOrderVariableSelection_order\n id\n total {\n amount\n }\n orderVariableSelections {\n id\n }\n orderItems {\n id\n ...CartItem_node\n licenseSelections {\n licenseVariable {\n variableType\n id\n }\n variableText\n id\n }\n }\n discount {\n id\n }\n stripePaymentMethod {\n id\n }\n billingIdentity {\n name\n }\n }\n id\n }\n}\n\nfragment AddressFields_viewer on Viewer {\n countries {\n code\n name\n }\n settings {\n checkoutAddressCollection\n checkoutPhoneNumberCollection\n }\n}\n\nfragment CartItemAdditionalLicenses_licenses on License {\n id\n name\n}\n\nfragment CartItemAdditionalLicenses_orderItem on OrderItem {\n licenseSelections {\n license {\n id\n excludedLicenses {\n id\n }\n }\n id\n }\n}\n\nfragment CartItemLicense_selection on LicenseSelection {\n id\n license {\n id\n name\n licenseVariables {\n id\n ...CartItemVariable_variable\n }\n }\n licenseVariable {\n id\n }\n ...CartItemVariable_selection\n}\n\nfragment CartItemProduct_product on SkuProduct {\n __isSkuProduct: __typename\n __typename\n ...CollectionAa_product\n ...FontStyle_fontStyle\n ... on FontStyle {\n family {\n name\n id\n }\n name\n variableInstances {\n name\n }\n }\n ... on Bundle {\n name\n fontCollection {\n name\n id\n }\n }\n ... on FontCollection {\n name\n isVariableFont\n totalStyles\n }\n ... on CollectionBundle {\n name\n totalStyles\n fontCollection {\n name\n id\n }\n }\n}\n\nfragment CartItemVariable_selection on LicenseSelection {\n id\n variableText\n license {\n id\n }\n licenseVariable {\n ...VariableTableAmounts_variable\n id\n name\n variableType\n licenseOptions {\n id\n }\n }\n licenseOption {\n ...VariableTableAmounts_option\n id\n name\n amount\n }\n}\n\nfragment CartItemVariable_variable on LicenseVariable {\n id\n licenseOptions {\n id\n name\n amount\n }\n}\n\nfragment CartItem_node on OrderItem {\n ...CartItemAdditionalLicenses_orderItem\n id\n price {\n ...Price_price\n }\n sku {\n price {\n ...Price_price\n }\n product {\n ...CartItemProduct_product\n __typename\n ... on Licenseable {\n __isLicenseable: __typename\n licenses {\n ...CartItemAdditionalLicenses_licenses\n id\n licenseVariables {\n id\n licenseOptions {\n id\n }\n }\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n licenseSelections {\n ...CartItemLicense_selection\n id\n license {\n id\n }\n licenseVariable {\n id\n }\n licenseOption {\n id\n }\n variableText\n }\n}\n\nfragment CartState_order on Order {\n id\n orderItems {\n id\n licenseSelections {\n license {\n id\n }\n licenseVariable {\n id\n }\n licenseOption {\n id\n }\n variableText\n id\n }\n }\n orderVariableSelections {\n orderVariable {\n id\n }\n orderVariableOption {\n id\n }\n countryCode\n id\n }\n}\n\nfragment CartTotals_order on Order {\n subtotal {\n ...Price_price\n }\n discount {\n amount {\n amount\n ...Price_price\n }\n coupon {\n ...CouponText_coupon\n id\n }\n id\n }\n discountedSubtotal {\n ...Price_price\n }\n total {\n amount\n ...Price_price\n }\n taxRate\n taxes {\n ...Price_price\n }\n taxName\n taxNotApplicable\n taxNotApplicableReason\n gstIncluded\n}\n\nfragment CollectionAa_product on SkuProduct {\n __isSkuProduct: __typename\n __typename\n ... on FontCollection {\n featureStyle {\n ...FontStyle_fontStyle\n id\n }\n }\n ... on Bundle {\n fontStyles {\n ...FontStyle_fontStyle\n id\n }\n }\n}\n\nfragment CouponText_coupon on Coupon {\n type\n percentAmount\n creditAmount {\n amount\n currency\n }\n creditAmountRemaining {\n amount\n currency\n }\n}\n\nfragment FontStyle_fontStyle on FontStyle {\n ...useFontStyle_fontStyle\n}\n\nfragment OrderVariableSelection_variables on Viewer {\n orderVariables {\n id\n name\n variableType\n description(format: HTML, orderVariables: [])\n orderVariableOptions {\n id\n amount\n }\n }\n countries {\n code\n name\n }\n}\n\nfragment Price_price on Money {\n amount\n currency\n}\n\nfragment StoreModalOrderVariableSelection_order on Order {\n id\n orderVariableSelections {\n orderVariable {\n id\n name\n variableType\n }\n orderVariableDescription(format: HTML)\n orderVariableOption {\n id\n amount\n }\n countryCode\n id\n }\n}\n\nfragment StoreModalOrderVariableSelection_viewer on Viewer {\n ...OrderVariableSelection_variables\n orderVariables {\n id\n }\n settings {\n storeModalSelectOrderVariablesLabel(format: HTML)\n }\n}\n\nfragment StoreModalReviewIdentity_identity on Identity {\n email\n phoneFormatted\n addressFormatted\n vatNumber\n}\n\nfragment StoreModalUnifiedCheckout_order on Order {\n completeUrl\n canCompleteWithCoupon\n total {\n amount\n }\n customer {\n name\n email\n newsletterOptIn\n id\n }\n licenseeIsBillingIdentity\n licenseeIdentity {\n ...StoreModalReviewIdentity_identity\n name\n organization\n email\n phoneNullable\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n billingIdentity {\n ...StoreModalReviewIdentity_identity\n name\n organization\n email\n phoneNullable\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n stripePaymentIntent {\n clientSecret\n amount\n currency\n }\n orderVariableSelections {\n orderVariable {\n id\n variableType\n }\n orderVariableOption {\n id\n }\n countryCode\n id\n }\n}\n\nfragment StoreModalUnifiedCheckout_viewer on Viewer {\n ...AddressFields_viewer\n country\n detectedCountry\n settings {\n uiFontName\n eulaAgreementLabel(format: HTML)\n storeModalSelectLicenseeLabel(format: HTML)\n storeModalLicenseeSelfLabel(format: HTML)\n storeModalLicenseeSelfDescription(format: HTML)\n storeModalLicenseeClientLabel(format: HTML)\n storeModalLicenseeClientDescription(format: HTML)\n newsletterOptInLabel(format: HTML)\n taxSystem\n recaptchaEnabled\n recaptchaSiteKey\n }\n themeConfig {\n customProperties\n }\n}\n\nfragment StripeProvider_viewer on Viewer {\n settings {\n taxSystem\n uiFontStyle {\n name\n cssFamily\n webfontSources {\n format\n url\n }\n id\n }\n }\n themeConfig {\n customProperties\n }\n stripeAccountId\n stripePublishableKey\n currentOrder {\n stripeAccountId\n stripePaymentIntent {\n clientSecret\n }\n id\n }\n}\n\nfragment VariableTableAmounts_option on LicenseOption {\n amounts\n}\n\nfragment VariableTableAmounts_variable on LicenseVariable {\n units\n}\n\nfragment useFontStyle_fontStyle on FontStyle {\n cssFamily\n name\n webfontSources {\n url\n format\n }\n verticalMetrics {\n unitsPerEm\n ascender\n descender\n lineGap\n }\n}\n"
|
|
1021
1045
|
}
|
|
1022
1046
|
};
|
|
1023
1047
|
}();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @generated SignedSource<<
|
|
2
|
+
* @generated SignedSource<<ab8c0715a712e9aed84b61d91c661bcd>>
|
|
3
3
|
* @lightSyntaxTransform
|
|
4
4
|
* @nogrep
|
|
5
5
|
*/
|
|
@@ -32,6 +32,10 @@ export type StoreModalProductQuery$data = {
|
|
|
32
32
|
readonly variableType: string;
|
|
33
33
|
}> | null;
|
|
34
34
|
readonly settings: {
|
|
35
|
+
readonly storeModalLicenseeClientDescription: string | null;
|
|
36
|
+
readonly storeModalLicenseeClientLabel: string | null;
|
|
37
|
+
readonly storeModalLicenseeSelfDescription: string | null;
|
|
38
|
+
readonly storeModalLicenseeSelfLabel: string | null;
|
|
35
39
|
readonly storeModalSelectFontsLabel: string | null;
|
|
36
40
|
readonly storeModalSelectLicenseeLabel: string | null;
|
|
37
41
|
readonly storeModalSelectLicensesLabel: string | null;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
/**
|
|
8
|
-
* @generated SignedSource<<
|
|
8
|
+
* @generated SignedSource<<ab8c0715a712e9aed84b61d91c661bcd>>
|
|
9
9
|
* @lightSyntaxTransform
|
|
10
10
|
* @nogrep
|
|
11
11
|
*/
|
|
@@ -95,62 +95,90 @@ const node = function () {
|
|
|
95
95
|
"storageKey": "storeModalSelectLicenseeLabel(format:\"HTML\")"
|
|
96
96
|
},
|
|
97
97
|
v15 = {
|
|
98
|
+
"alias": null,
|
|
99
|
+
"args": v13 /*: any*/,
|
|
100
|
+
"kind": "ScalarField",
|
|
101
|
+
"name": "storeModalLicenseeSelfLabel",
|
|
102
|
+
"storageKey": "storeModalLicenseeSelfLabel(format:\"HTML\")"
|
|
103
|
+
},
|
|
104
|
+
v16 = {
|
|
105
|
+
"alias": null,
|
|
106
|
+
"args": v13 /*: any*/,
|
|
107
|
+
"kind": "ScalarField",
|
|
108
|
+
"name": "storeModalLicenseeSelfDescription",
|
|
109
|
+
"storageKey": "storeModalLicenseeSelfDescription(format:\"HTML\")"
|
|
110
|
+
},
|
|
111
|
+
v17 = {
|
|
112
|
+
"alias": null,
|
|
113
|
+
"args": v13 /*: any*/,
|
|
114
|
+
"kind": "ScalarField",
|
|
115
|
+
"name": "storeModalLicenseeClientLabel",
|
|
116
|
+
"storageKey": "storeModalLicenseeClientLabel(format:\"HTML\")"
|
|
117
|
+
},
|
|
118
|
+
v18 = {
|
|
119
|
+
"alias": null,
|
|
120
|
+
"args": v13 /*: any*/,
|
|
121
|
+
"kind": "ScalarField",
|
|
122
|
+
"name": "storeModalLicenseeClientDescription",
|
|
123
|
+
"storageKey": "storeModalLicenseeClientDescription(format:\"HTML\")"
|
|
124
|
+
},
|
|
125
|
+
v19 = {
|
|
98
126
|
"alias": null,
|
|
99
127
|
"args": v13 /*: any*/,
|
|
100
128
|
"kind": "ScalarField",
|
|
101
129
|
"name": "storeModalSelectOrderVariablesLabel",
|
|
102
130
|
"storageKey": "storeModalSelectOrderVariablesLabel(format:\"HTML\")"
|
|
103
131
|
},
|
|
104
|
-
|
|
132
|
+
v20 = {
|
|
105
133
|
"alias": null,
|
|
106
134
|
"args": v13 /*: any*/,
|
|
107
135
|
"kind": "ScalarField",
|
|
108
136
|
"name": "storeModalSelectLicensesLabel",
|
|
109
137
|
"storageKey": "storeModalSelectLicensesLabel(format:\"HTML\")"
|
|
110
138
|
},
|
|
111
|
-
|
|
139
|
+
v21 = {
|
|
112
140
|
"alias": null,
|
|
113
141
|
"args": v13 /*: any*/,
|
|
114
142
|
"kind": "ScalarField",
|
|
115
143
|
"name": "storeModalSelectFontsLabel",
|
|
116
144
|
"storageKey": "storeModalSelectFontsLabel(format:\"HTML\")"
|
|
117
145
|
},
|
|
118
|
-
|
|
146
|
+
v22 = {
|
|
119
147
|
"alias": null,
|
|
120
148
|
"args": null,
|
|
121
149
|
"kind": "ScalarField",
|
|
122
150
|
"name": "__typename",
|
|
123
151
|
"storageKey": null
|
|
124
152
|
},
|
|
125
|
-
|
|
153
|
+
v23 = {
|
|
126
154
|
"alias": null,
|
|
127
155
|
"args": null,
|
|
128
156
|
"kind": "ScalarField",
|
|
129
157
|
"name": "isVariableFont",
|
|
130
158
|
"storageKey": null
|
|
131
159
|
},
|
|
132
|
-
|
|
160
|
+
v24 = {
|
|
133
161
|
"alias": null,
|
|
134
162
|
"args": null,
|
|
135
163
|
"kind": "ScalarField",
|
|
136
164
|
"name": "collectionType",
|
|
137
165
|
"storageKey": null
|
|
138
166
|
},
|
|
139
|
-
|
|
167
|
+
v25 = {
|
|
140
168
|
"alias": null,
|
|
141
169
|
"args": null,
|
|
142
170
|
"kind": "ScalarField",
|
|
143
171
|
"name": "amount",
|
|
144
172
|
"storageKey": null
|
|
145
173
|
},
|
|
146
|
-
|
|
174
|
+
v26 = [v25 /*: any*/, {
|
|
147
175
|
"alias": null,
|
|
148
176
|
"args": null,
|
|
149
177
|
"kind": "ScalarField",
|
|
150
178
|
"name": "currency",
|
|
151
179
|
"storageKey": null
|
|
152
180
|
}],
|
|
153
|
-
|
|
181
|
+
v27 = {
|
|
154
182
|
"alias": null,
|
|
155
183
|
"args": null,
|
|
156
184
|
"concreteType": "Sku",
|
|
@@ -164,44 +192,44 @@ const node = function () {
|
|
|
164
192
|
"kind": "LinkedField",
|
|
165
193
|
"name": "price",
|
|
166
194
|
"plural": false,
|
|
167
|
-
"selections":
|
|
195
|
+
"selections": v26 /*: any*/,
|
|
168
196
|
"storageKey": null
|
|
169
197
|
}],
|
|
170
198
|
"storageKey": null
|
|
171
199
|
},
|
|
172
|
-
|
|
173
|
-
|
|
200
|
+
v28 = [v4 /*: any*/],
|
|
201
|
+
v29 = {
|
|
174
202
|
"alias": null,
|
|
175
203
|
"args": null,
|
|
176
204
|
"concreteType": "FontCollection",
|
|
177
205
|
"kind": "LinkedField",
|
|
178
206
|
"name": "parent",
|
|
179
207
|
"plural": false,
|
|
180
|
-
"selections":
|
|
208
|
+
"selections": v28 /*: any*/,
|
|
181
209
|
"storageKey": null
|
|
182
210
|
},
|
|
183
|
-
|
|
211
|
+
v30 = {
|
|
184
212
|
"alias": null,
|
|
185
213
|
"args": null,
|
|
186
214
|
"kind": "ScalarField",
|
|
187
215
|
"name": "cssFamily",
|
|
188
216
|
"storageKey": null
|
|
189
217
|
},
|
|
190
|
-
|
|
218
|
+
v31 = {
|
|
191
219
|
"alias": null,
|
|
192
220
|
"args": null,
|
|
193
221
|
"kind": "ScalarField",
|
|
194
222
|
"name": "url",
|
|
195
223
|
"storageKey": null
|
|
196
224
|
},
|
|
197
|
-
|
|
225
|
+
v32 = {
|
|
198
226
|
"alias": null,
|
|
199
227
|
"args": null,
|
|
200
228
|
"concreteType": "WebfontSource",
|
|
201
229
|
"kind": "LinkedField",
|
|
202
230
|
"name": "webfontSources",
|
|
203
231
|
"plural": true,
|
|
204
|
-
"selections": [
|
|
232
|
+
"selections": [v31 /*: any*/, {
|
|
205
233
|
"alias": null,
|
|
206
234
|
"args": null,
|
|
207
235
|
"kind": "ScalarField",
|
|
@@ -210,7 +238,7 @@ const node = function () {
|
|
|
210
238
|
}],
|
|
211
239
|
"storageKey": null
|
|
212
240
|
},
|
|
213
|
-
|
|
241
|
+
v33 = {
|
|
214
242
|
"alias": null,
|
|
215
243
|
"args": null,
|
|
216
244
|
"concreteType": "VerticalMetrics",
|
|
@@ -244,60 +272,60 @@ const node = function () {
|
|
|
244
272
|
}],
|
|
245
273
|
"storageKey": null
|
|
246
274
|
},
|
|
247
|
-
|
|
275
|
+
v34 = {
|
|
248
276
|
"alias": null,
|
|
249
277
|
"args": null,
|
|
250
278
|
"kind": "ScalarField",
|
|
251
279
|
"name": "supportedLanguages",
|
|
252
280
|
"storageKey": null
|
|
253
281
|
},
|
|
254
|
-
|
|
282
|
+
v35 = {
|
|
255
283
|
"alias": null,
|
|
256
284
|
"args": null,
|
|
257
285
|
"concreteType": "FontStyle",
|
|
258
286
|
"kind": "LinkedField",
|
|
259
287
|
"name": "featureStyle",
|
|
260
288
|
"plural": false,
|
|
261
|
-
"selections": [
|
|
289
|
+
"selections": [v30 /*: any*/, v11 /*: any*/, v32 /*: any*/, v33 /*: any*/, v34 /*: any*/, v4 /*: any*/],
|
|
262
290
|
"storageKey": null
|
|
263
291
|
},
|
|
264
|
-
|
|
292
|
+
v36 = {
|
|
265
293
|
"alias": null,
|
|
266
294
|
"args": null,
|
|
267
295
|
"kind": "ScalarField",
|
|
268
296
|
"name": "totalStyles",
|
|
269
297
|
"storageKey": null
|
|
270
298
|
},
|
|
271
|
-
|
|
299
|
+
v37 = {
|
|
272
300
|
"alias": null,
|
|
273
301
|
"args": null,
|
|
274
302
|
"concreteType": "Money",
|
|
275
303
|
"kind": "LinkedField",
|
|
276
304
|
"name": "totalStylesPrice",
|
|
277
305
|
"plural": false,
|
|
278
|
-
"selections":
|
|
306
|
+
"selections": v26 /*: any*/,
|
|
279
307
|
"storageKey": null
|
|
280
308
|
},
|
|
281
|
-
|
|
309
|
+
v38 = [{
|
|
282
310
|
"kind": "Literal",
|
|
283
311
|
"name": "collectionTypes",
|
|
284
312
|
"value": ["FAMILY"]
|
|
285
313
|
}],
|
|
286
|
-
|
|
314
|
+
v39 = {
|
|
287
315
|
"alias": null,
|
|
288
316
|
"args": null,
|
|
289
317
|
"kind": "ScalarField",
|
|
290
318
|
"name": "cssWeight",
|
|
291
319
|
"storageKey": null
|
|
292
320
|
},
|
|
293
|
-
|
|
321
|
+
v40 = {
|
|
294
322
|
"alias": null,
|
|
295
323
|
"args": null,
|
|
296
324
|
"kind": "ScalarField",
|
|
297
325
|
"name": "cssStretch",
|
|
298
326
|
"storageKey": null
|
|
299
327
|
},
|
|
300
|
-
|
|
328
|
+
v41 = {
|
|
301
329
|
"alias": null,
|
|
302
330
|
"args": null,
|
|
303
331
|
"concreteType": "VariableInstance",
|
|
@@ -328,7 +356,7 @@ const node = function () {
|
|
|
328
356
|
}],
|
|
329
357
|
"storageKey": null
|
|
330
358
|
},
|
|
331
|
-
|
|
359
|
+
v42 = {
|
|
332
360
|
"alias": null,
|
|
333
361
|
"args": null,
|
|
334
362
|
"concreteType": "Bundle",
|
|
@@ -348,36 +376,36 @@ const node = function () {
|
|
|
348
376
|
"kind": "LinkedField",
|
|
349
377
|
"name": "fontStyles",
|
|
350
378
|
"plural": true,
|
|
351
|
-
"selections": [v4 /*: any*/,
|
|
379
|
+
"selections": [v4 /*: any*/, v30 /*: any*/, v39 /*: any*/, v40 /*: any*/, v11 /*: any*/, v34 /*: any*/, v41 /*: any*/, v27 /*: any*/, v32 /*: any*/, v33 /*: any*/],
|
|
352
380
|
"storageKey": null
|
|
353
|
-
}, v11 /*: any*/,
|
|
381
|
+
}, v11 /*: any*/, v27 /*: any*/],
|
|
354
382
|
"storageKey": null
|
|
355
383
|
},
|
|
356
|
-
|
|
384
|
+
v43 = {
|
|
357
385
|
"alias": null,
|
|
358
386
|
"args": null,
|
|
359
387
|
"concreteType": "FontStyle",
|
|
360
388
|
"kind": "LinkedField",
|
|
361
389
|
"name": "fontStyles",
|
|
362
390
|
"plural": true,
|
|
363
|
-
"selections": [v4 /*: any*/,
|
|
391
|
+
"selections": [v4 /*: any*/, v30 /*: any*/, v39 /*: any*/, v40 /*: any*/, {
|
|
364
392
|
"alias": null,
|
|
365
393
|
"args": null,
|
|
366
394
|
"kind": "ScalarField",
|
|
367
395
|
"name": "cssStyle",
|
|
368
396
|
"storageKey": null
|
|
369
|
-
}, v11 /*: any*/,
|
|
397
|
+
}, v11 /*: any*/, v34 /*: any*/, v41 /*: any*/, v27 /*: any*/, v32 /*: any*/, v33 /*: any*/],
|
|
370
398
|
"storageKey": null
|
|
371
399
|
},
|
|
372
|
-
|
|
373
|
-
|
|
400
|
+
v44 = [v25 /*: any*/],
|
|
401
|
+
v45 = [v36 /*: any*/, {
|
|
374
402
|
"alias": null,
|
|
375
403
|
"args": v7 /*: any*/,
|
|
376
404
|
"concreteType": "Money",
|
|
377
405
|
"kind": "LinkedField",
|
|
378
406
|
"name": "totalStylesPrice",
|
|
379
407
|
"plural": false,
|
|
380
|
-
"selections":
|
|
408
|
+
"selections": v44 /*: any*/,
|
|
381
409
|
"storageKey": null
|
|
382
410
|
}];
|
|
383
411
|
return {
|
|
@@ -430,7 +458,7 @@ const node = function () {
|
|
|
430
458
|
"kind": "LinkedField",
|
|
431
459
|
"name": "settings",
|
|
432
460
|
"plural": false,
|
|
433
|
-
"selections": [v14 /*: any*/, v15 /*: any*/, v16 /*: any*/, v17 /*: any*/],
|
|
461
|
+
"selections": [v14 /*: any*/, v15 /*: any*/, v16 /*: any*/, v17 /*: any*/, v18 /*: any*/, v19 /*: any*/, v20 /*: any*/, v21 /*: any*/],
|
|
434
462
|
"storageKey": null
|
|
435
463
|
}],
|
|
436
464
|
"storageKey": null
|
|
@@ -450,37 +478,37 @@ const node = function () {
|
|
|
450
478
|
"kind": "LinkedField",
|
|
451
479
|
"name": "node",
|
|
452
480
|
"plural": false,
|
|
453
|
-
"selections": [
|
|
481
|
+
"selections": [v22 /*: any*/, v4 /*: any*/, {
|
|
454
482
|
"kind": "TypeDiscriminator",
|
|
455
483
|
"abstractKey": "__isNode"
|
|
456
484
|
}, {
|
|
457
485
|
"kind": "InlineFragment",
|
|
458
|
-
"selections": [
|
|
486
|
+
"selections": [v23 /*: any*/, v24 /*: any*/, v11 /*: any*/, v27 /*: any*/, v29 /*: any*/, v35 /*: any*/, v36 /*: any*/, v37 /*: any*/, {
|
|
459
487
|
"alias": null,
|
|
460
|
-
"args":
|
|
488
|
+
"args": v38 /*: any*/,
|
|
461
489
|
"concreteType": "FontCollection",
|
|
462
490
|
"kind": "LinkedField",
|
|
463
491
|
"name": "children",
|
|
464
492
|
"plural": true,
|
|
465
|
-
"selections": [
|
|
493
|
+
"selections": [v23 /*: any*/, v36 /*: any*/, v4 /*: any*/, v24 /*: any*/, v11 /*: any*/, v27 /*: any*/, v29 /*: any*/, v35 /*: any*/, v37 /*: any*/, {
|
|
466
494
|
"alias": null,
|
|
467
|
-
"args":
|
|
495
|
+
"args": v38 /*: any*/,
|
|
468
496
|
"concreteType": "FontCollection",
|
|
469
497
|
"kind": "LinkedField",
|
|
470
498
|
"name": "children",
|
|
471
499
|
"plural": true,
|
|
472
|
-
"selections": [
|
|
500
|
+
"selections": [v23 /*: any*/, v36 /*: any*/, v4 /*: any*/],
|
|
473
501
|
"storageKey": "children(collectionTypes:[\"FAMILY\"])"
|
|
474
|
-
},
|
|
502
|
+
}, v42 /*: any*/, v43 /*: any*/],
|
|
475
503
|
"storageKey": "children(collectionTypes:[\"FAMILY\"])"
|
|
476
|
-
},
|
|
504
|
+
}, v42 /*: any*/, v43 /*: any*/, {
|
|
477
505
|
"alias": null,
|
|
478
506
|
"args": null,
|
|
479
507
|
"concreteType": "License",
|
|
480
508
|
"kind": "LinkedField",
|
|
481
509
|
"name": "licenses",
|
|
482
510
|
"plural": true,
|
|
483
|
-
"selections": [v4 /*: any*/,
|
|
511
|
+
"selections": [v4 /*: any*/, v31 /*: any*/, v11 /*: any*/, {
|
|
484
512
|
"alias": null,
|
|
485
513
|
"args": v13 /*: any*/,
|
|
486
514
|
"kind": "ScalarField",
|
|
@@ -499,7 +527,7 @@ const node = function () {
|
|
|
499
527
|
"kind": "LinkedField",
|
|
500
528
|
"name": "excludedLicenses",
|
|
501
529
|
"plural": true,
|
|
502
|
-
"selections":
|
|
530
|
+
"selections": v28 /*: any*/,
|
|
503
531
|
"storageKey": null
|
|
504
532
|
}, {
|
|
505
533
|
"alias": "variables",
|
|
@@ -521,7 +549,7 @@ const node = function () {
|
|
|
521
549
|
"kind": "LinkedField",
|
|
522
550
|
"name": "licenseOptions",
|
|
523
551
|
"plural": true,
|
|
524
|
-
"selections": [v4 /*: any*/, v11 /*: any*/,
|
|
552
|
+
"selections": [v4 /*: any*/, v11 /*: any*/, v25 /*: any*/, {
|
|
525
553
|
"alias": null,
|
|
526
554
|
"args": null,
|
|
527
555
|
"kind": "ScalarField",
|
|
@@ -565,7 +593,7 @@ const node = function () {
|
|
|
565
593
|
"kind": "LinkedField",
|
|
566
594
|
"name": "orderVariableOptions",
|
|
567
595
|
"plural": true,
|
|
568
|
-
"selections": [v4 /*: any*/,
|
|
596
|
+
"selections": [v4 /*: any*/, v25 /*: any*/],
|
|
569
597
|
"storageKey": null
|
|
570
598
|
}],
|
|
571
599
|
"storageKey": null
|
|
@@ -618,7 +646,7 @@ const node = function () {
|
|
|
618
646
|
"storageKey": null
|
|
619
647
|
}],
|
|
620
648
|
"storageKey": null
|
|
621
|
-
}, v14 /*: any*/, v15 /*: any*/, v16 /*: any*/, v17 /*: any*/],
|
|
649
|
+
}, v14 /*: any*/, v15 /*: any*/, v16 /*: any*/, v17 /*: any*/, v18 /*: any*/, v19 /*: any*/, v20 /*: any*/, v21 /*: any*/],
|
|
622
650
|
"storageKey": null
|
|
623
651
|
}, {
|
|
624
652
|
"alias": null,
|
|
@@ -666,7 +694,7 @@ const node = function () {
|
|
|
666
694
|
"kind": "LinkedField",
|
|
667
695
|
"name": "price",
|
|
668
696
|
"plural": false,
|
|
669
|
-
"selections":
|
|
697
|
+
"selections": v44 /*: any*/,
|
|
670
698
|
"storageKey": null
|
|
671
699
|
}, {
|
|
672
700
|
"alias": null,
|
|
@@ -675,24 +703,24 @@ const node = function () {
|
|
|
675
703
|
"kind": "LinkedField",
|
|
676
704
|
"name": "product",
|
|
677
705
|
"plural": false,
|
|
678
|
-
"selections": [
|
|
706
|
+
"selections": [v22 /*: any*/, {
|
|
679
707
|
"kind": "InlineFragment",
|
|
680
|
-
"selections":
|
|
708
|
+
"selections": v45 /*: any*/,
|
|
681
709
|
"type": "FontCollection",
|
|
682
710
|
"abstractKey": null
|
|
683
711
|
}, {
|
|
684
712
|
"kind": "InlineFragment",
|
|
685
|
-
"selections":
|
|
713
|
+
"selections": v45 /*: any*/,
|
|
686
714
|
"type": "Bundle",
|
|
687
715
|
"abstractKey": null
|
|
688
716
|
}, {
|
|
689
717
|
"kind": "InlineFragment",
|
|
690
|
-
"selections":
|
|
718
|
+
"selections": v45 /*: any*/,
|
|
691
719
|
"type": "CollectionBundle",
|
|
692
720
|
"abstractKey": null
|
|
693
721
|
}, {
|
|
694
722
|
"kind": "InlineFragment",
|
|
695
|
-
"selections":
|
|
723
|
+
"selections": v28 /*: any*/,
|
|
696
724
|
"type": "Node",
|
|
697
725
|
"abstractKey": "__isNode"
|
|
698
726
|
}],
|
|
@@ -706,7 +734,7 @@ const node = function () {
|
|
|
706
734
|
"kind": "LinkedField",
|
|
707
735
|
"name": "subtotal",
|
|
708
736
|
"plural": false,
|
|
709
|
-
"selections":
|
|
737
|
+
"selections": v26 /*: any*/,
|
|
710
738
|
"storageKey": null
|
|
711
739
|
}],
|
|
712
740
|
"storageKey": null
|
|
@@ -715,15 +743,15 @@ const node = function () {
|
|
|
715
743
|
}]
|
|
716
744
|
},
|
|
717
745
|
"params": {
|
|
718
|
-
"cacheID": "
|
|
746
|
+
"cacheID": "2ec62eeeaed3a327f1a022ab9a0cf197",
|
|
719
747
|
"id": null,
|
|
720
748
|
"metadata": {},
|
|
721
749
|
"name": "StoreModalProductQuery",
|
|
722
750
|
"operationKind": "query",
|
|
723
|
-
"text": "query StoreModalProductQuery(\n $productId: ID!\n $licenseOptions: [LicenseOptionsSpec]!\n $orderVariables: [OrderVariableSelectionInput!]\n) {\n collection: node(id: $productId) {\n __typename\n id\n ...StoreModalProductContent_collection_4sncub\n }\n viewer {\n endpoint\n stripeAccountId\n ...OrderVariableSelectionRedux_viewer_2ZguDv\n ...StoreModalProductSummary_viewer_4sncub\n orderVariables {\n id\n variableType\n name\n }\n settings {\n storeModalSelectLicenseeLabel(format: HTML)\n storeModalSelectOrderVariablesLabel(format: HTML)\n storeModalSelectLicensesLabel(format: HTML)\n storeModalSelectFontsLabel(format: HTML)\n }\n id\n }\n}\n\nfragment FontStyle_fontStyle on FontStyle {\n ...useFontStyle_fontStyle\n}\n\nfragment OrderVariableSelectionRedux_viewer_2ZguDv on Viewer {\n ...OrderVariableSelection_variables_2ZguDv\n detectedCountry\n orderVariables {\n id\n variableType\n }\n}\n\nfragment OrderVariableSelection_variables_2ZguDv on Viewer {\n orderVariables {\n id\n name\n variableType\n description(format: HTML, orderVariables: $orderVariables)\n orderVariableOptions {\n id\n amount\n }\n }\n countries {\n code\n name\n }\n}\n\nfragment Price_price on Money {\n amount\n currency\n}\n\nfragment SKUPrice_sku_4sncub on Sku {\n id\n price(licenseOptions: $licenseOptions, orderVariables: $orderVariables) {\n amount\n ...Price_price\n }\n}\n\nfragment StoreModalBundleButton_bundle_4sncub on Bundle {\n id\n name\n sku {\n ...SKUPrice_sku_4sncub\n id\n }\n fontStyles {\n id\n ...FontStyle_fontStyle\n }\n}\n\nfragment StoreModalFamilyButton_collection_4sncub on FontCollection {\n isVariableFont\n collectionType\n name\n sku {\n ...SKUPrice_sku_4sncub\n id\n }\n parent {\n id\n }\n featureStyle {\n ...FontStyle_fontStyle\n supportedLanguages\n id\n }\n totalStyles\n totalStylesPrice {\n ...Price_price\n }\n ...useTotalStyles_fontCollection\n}\n\nfragment StoreModalFamily_collection_4sncub on FontCollection {\n ...StoreModalFamilyButton_collection_4sncub\n collectionType\n sku {\n id\n }\n isVariableFont\n bundles {\n id\n hidden\n fontStyles {\n id\n cssFamily\n cssWeight\n cssStretch\n ...StoreModalStyleButton_fontStyle_4sncub\n }\n ...StoreModalBundleButton_bundle_4sncub\n }\n fontStyles {\n id\n cssFamily\n cssWeight\n cssStretch\n cssStyle\n ...StoreModalStyleButton_fontStyle_4sncub\n }\n}\n\nfragment StoreModalProductContent_collection_4sncub on Node {\n __isNode: __typename\n ... on FontCollection {\n id\n ...StoreModalFamily_collection_4sncub\n ...StoreModalProductLicenseSelection_collection\n children(collectionTypes: [FAMILY]) {\n id\n ...StoreModalFamily_collection_4sncub\n }\n }\n id\n}\n\nfragment StoreModalProductLicenseSelection_collection on FontCollection {\n licenses {\n id\n ...StoreModalProductLicense_license\n }\n}\n\nfragment StoreModalProductLicense_license on License {\n id\n url\n name\n description(format: HTML)\n defaultSelected\n excludedLicenses {\n id\n }\n variables: licenseVariables {\n id\n name\n variableType\n ...VariableTableAmounts_variable\n options: licenseOptions {\n id\n name\n amount\n ...VariableTableAmounts_option\n }\n }\n}\n\nfragment StoreModalProductSummary_viewer_4sncub on Viewer {\n settings {\n taxSystem\n stripeTaxSettings {\n taxBehavior\n }\n }\n taxCollections {\n taxName\n inclusive\n }\n orderVariables {\n id\n variableType\n name\n }\n precart(skuIds: [], licenseOptions: $licenseOptions, orderVariables: $orderVariables) {\n skus {\n price(licenseOptions: $licenseOptions, orderVariables: $orderVariables) {\n amount\n }\n product {\n __typename\n ... on FontCollection {\n totalStyles\n totalStylesPrice(licenseOptions: $licenseOptions, orderVariables: $orderVariables) {\n amount\n }\n }\n ... on Bundle {\n totalStyles\n totalStylesPrice(licenseOptions: $licenseOptions, orderVariables: $orderVariables) {\n amount\n }\n }\n ... on CollectionBundle {\n totalStyles\n totalStylesPrice(licenseOptions: $licenseOptions, orderVariables: $orderVariables) {\n amount\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n subtotal {\n ...Price_price\n amount\n currency\n }\n }\n}\n\nfragment StoreModalStyleButton_fontStyle_4sncub on FontStyle {\n id\n name\n supportedLanguages\n variableInstances {\n name\n coordinates {\n axis\n value\n }\n }\n sku {\n ...SKUPrice_sku_4sncub\n id\n }\n ...FontStyle_fontStyle\n}\n\nfragment VariableTableAmounts_option on LicenseOption {\n amounts\n}\n\nfragment VariableTableAmounts_variable on LicenseVariable {\n units\n}\n\nfragment useFontStyle_fontStyle on FontStyle {\n cssFamily\n name\n webfontSources {\n url\n format\n }\n verticalMetrics {\n unitsPerEm\n ascender\n descender\n lineGap\n }\n}\n\nfragment useTotalStyles_fontCollection on FontCollection {\n isVariableFont\n totalStyles\n children(collectionTypes: [FAMILY]) {\n isVariableFont\n totalStyles\n id\n }\n}\n"
|
|
751
|
+
"text": "query StoreModalProductQuery(\n $productId: ID!\n $licenseOptions: [LicenseOptionsSpec]!\n $orderVariables: [OrderVariableSelectionInput!]\n) {\n collection: node(id: $productId) {\n __typename\n id\n ...StoreModalProductContent_collection_4sncub\n }\n viewer {\n endpoint\n stripeAccountId\n ...OrderVariableSelectionRedux_viewer_2ZguDv\n ...StoreModalProductSummary_viewer_4sncub\n orderVariables {\n id\n variableType\n name\n }\n settings {\n storeModalSelectLicenseeLabel(format: HTML)\n storeModalLicenseeSelfLabel(format: HTML)\n storeModalLicenseeSelfDescription(format: HTML)\n storeModalLicenseeClientLabel(format: HTML)\n storeModalLicenseeClientDescription(format: HTML)\n storeModalSelectOrderVariablesLabel(format: HTML)\n storeModalSelectLicensesLabel(format: HTML)\n storeModalSelectFontsLabel(format: HTML)\n }\n id\n }\n}\n\nfragment FontStyle_fontStyle on FontStyle {\n ...useFontStyle_fontStyle\n}\n\nfragment OrderVariableSelectionRedux_viewer_2ZguDv on Viewer {\n ...OrderVariableSelection_variables_2ZguDv\n detectedCountry\n orderVariables {\n id\n variableType\n }\n}\n\nfragment OrderVariableSelection_variables_2ZguDv on Viewer {\n orderVariables {\n id\n name\n variableType\n description(format: HTML, orderVariables: $orderVariables)\n orderVariableOptions {\n id\n amount\n }\n }\n countries {\n code\n name\n }\n}\n\nfragment Price_price on Money {\n amount\n currency\n}\n\nfragment SKUPrice_sku_4sncub on Sku {\n id\n price(licenseOptions: $licenseOptions, orderVariables: $orderVariables) {\n amount\n ...Price_price\n }\n}\n\nfragment StoreModalBundleButton_bundle_4sncub on Bundle {\n id\n name\n sku {\n ...SKUPrice_sku_4sncub\n id\n }\n fontStyles {\n id\n ...FontStyle_fontStyle\n }\n}\n\nfragment StoreModalFamilyButton_collection_4sncub on FontCollection {\n isVariableFont\n collectionType\n name\n sku {\n ...SKUPrice_sku_4sncub\n id\n }\n parent {\n id\n }\n featureStyle {\n ...FontStyle_fontStyle\n supportedLanguages\n id\n }\n totalStyles\n totalStylesPrice {\n ...Price_price\n }\n ...useTotalStyles_fontCollection\n}\n\nfragment StoreModalFamily_collection_4sncub on FontCollection {\n ...StoreModalFamilyButton_collection_4sncub\n collectionType\n sku {\n id\n }\n isVariableFont\n bundles {\n id\n hidden\n fontStyles {\n id\n cssFamily\n cssWeight\n cssStretch\n ...StoreModalStyleButton_fontStyle_4sncub\n }\n ...StoreModalBundleButton_bundle_4sncub\n }\n fontStyles {\n id\n cssFamily\n cssWeight\n cssStretch\n cssStyle\n ...StoreModalStyleButton_fontStyle_4sncub\n }\n}\n\nfragment StoreModalProductContent_collection_4sncub on Node {\n __isNode: __typename\n ... on FontCollection {\n id\n ...StoreModalFamily_collection_4sncub\n ...StoreModalProductLicenseSelection_collection\n children(collectionTypes: [FAMILY]) {\n id\n ...StoreModalFamily_collection_4sncub\n }\n }\n id\n}\n\nfragment StoreModalProductLicenseSelection_collection on FontCollection {\n licenses {\n id\n ...StoreModalProductLicense_license\n }\n}\n\nfragment StoreModalProductLicense_license on License {\n id\n url\n name\n description(format: HTML)\n defaultSelected\n excludedLicenses {\n id\n }\n variables: licenseVariables {\n id\n name\n variableType\n ...VariableTableAmounts_variable\n options: licenseOptions {\n id\n name\n amount\n ...VariableTableAmounts_option\n }\n }\n}\n\nfragment StoreModalProductSummary_viewer_4sncub on Viewer {\n settings {\n taxSystem\n stripeTaxSettings {\n taxBehavior\n }\n }\n taxCollections {\n taxName\n inclusive\n }\n orderVariables {\n id\n variableType\n name\n }\n precart(skuIds: [], licenseOptions: $licenseOptions, orderVariables: $orderVariables) {\n skus {\n price(licenseOptions: $licenseOptions, orderVariables: $orderVariables) {\n amount\n }\n product {\n __typename\n ... on FontCollection {\n totalStyles\n totalStylesPrice(licenseOptions: $licenseOptions, orderVariables: $orderVariables) {\n amount\n }\n }\n ... on Bundle {\n totalStyles\n totalStylesPrice(licenseOptions: $licenseOptions, orderVariables: $orderVariables) {\n amount\n }\n }\n ... on CollectionBundle {\n totalStyles\n totalStylesPrice(licenseOptions: $licenseOptions, orderVariables: $orderVariables) {\n amount\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n subtotal {\n ...Price_price\n amount\n currency\n }\n }\n}\n\nfragment StoreModalStyleButton_fontStyle_4sncub on FontStyle {\n id\n name\n supportedLanguages\n variableInstances {\n name\n coordinates {\n axis\n value\n }\n }\n sku {\n ...SKUPrice_sku_4sncub\n id\n }\n ...FontStyle_fontStyle\n}\n\nfragment VariableTableAmounts_option on LicenseOption {\n amounts\n}\n\nfragment VariableTableAmounts_variable on LicenseVariable {\n units\n}\n\nfragment useFontStyle_fontStyle on FontStyle {\n cssFamily\n name\n webfontSources {\n url\n format\n }\n verticalMetrics {\n unitsPerEm\n ascender\n descender\n lineGap\n }\n}\n\nfragment useTotalStyles_fontCollection on FontCollection {\n isVariableFont\n totalStyles\n children(collectionTypes: [FAMILY]) {\n isVariableFont\n totalStyles\n id\n }\n}\n"
|
|
724
752
|
}
|
|
725
753
|
};
|
|
726
754
|
}();
|
|
727
|
-
node.hash = "
|
|
755
|
+
node.hash = "051d45b088e87330de54058b441ad280";
|
|
728
756
|
var _default = node;
|
|
729
757
|
exports.default = _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @generated SignedSource<<
|
|
2
|
+
* @generated SignedSource<<36de3a095a8207a0ce9689d501a7431f>>
|
|
3
3
|
* @lightSyntaxTransform
|
|
4
4
|
* @nogrep
|
|
5
5
|
*/
|
|
@@ -13,6 +13,10 @@ export type StoreModalUnifiedCheckout_viewer$data = {
|
|
|
13
13
|
readonly newsletterOptInLabel: string | null;
|
|
14
14
|
readonly recaptchaEnabled: boolean;
|
|
15
15
|
readonly recaptchaSiteKey: string | null;
|
|
16
|
+
readonly storeModalLicenseeClientDescription: string | null;
|
|
17
|
+
readonly storeModalLicenseeClientLabel: string | null;
|
|
18
|
+
readonly storeModalLicenseeSelfDescription: string | null;
|
|
19
|
+
readonly storeModalLicenseeSelfLabel: string | null;
|
|
16
20
|
readonly storeModalSelectLicenseeLabel: string | null;
|
|
17
21
|
readonly taxSystem: string;
|
|
18
22
|
readonly uiFontName: string | null;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
/**
|
|
8
|
-
* @generated SignedSource<<
|
|
8
|
+
* @generated SignedSource<<36de3a095a8207a0ce9689d501a7431f>>
|
|
9
9
|
* @lightSyntaxTransform
|
|
10
10
|
* @nogrep
|
|
11
11
|
*/
|
|
@@ -66,6 +66,30 @@ const node = function () {
|
|
|
66
66
|
"kind": "ScalarField",
|
|
67
67
|
"name": "storeModalSelectLicenseeLabel",
|
|
68
68
|
"storageKey": "storeModalSelectLicenseeLabel(format:\"HTML\")"
|
|
69
|
+
}, {
|
|
70
|
+
"alias": null,
|
|
71
|
+
"args": v0 /*: any*/,
|
|
72
|
+
"kind": "ScalarField",
|
|
73
|
+
"name": "storeModalLicenseeSelfLabel",
|
|
74
|
+
"storageKey": "storeModalLicenseeSelfLabel(format:\"HTML\")"
|
|
75
|
+
}, {
|
|
76
|
+
"alias": null,
|
|
77
|
+
"args": v0 /*: any*/,
|
|
78
|
+
"kind": "ScalarField",
|
|
79
|
+
"name": "storeModalLicenseeSelfDescription",
|
|
80
|
+
"storageKey": "storeModalLicenseeSelfDescription(format:\"HTML\")"
|
|
81
|
+
}, {
|
|
82
|
+
"alias": null,
|
|
83
|
+
"args": v0 /*: any*/,
|
|
84
|
+
"kind": "ScalarField",
|
|
85
|
+
"name": "storeModalLicenseeClientLabel",
|
|
86
|
+
"storageKey": "storeModalLicenseeClientLabel(format:\"HTML\")"
|
|
87
|
+
}, {
|
|
88
|
+
"alias": null,
|
|
89
|
+
"args": v0 /*: any*/,
|
|
90
|
+
"kind": "ScalarField",
|
|
91
|
+
"name": "storeModalLicenseeClientDescription",
|
|
92
|
+
"storageKey": "storeModalLicenseeClientDescription(format:\"HTML\")"
|
|
69
93
|
}, {
|
|
70
94
|
"alias": null,
|
|
71
95
|
"args": v0 /*: any*/,
|
|
@@ -112,6 +136,6 @@ const node = function () {
|
|
|
112
136
|
"abstractKey": null
|
|
113
137
|
};
|
|
114
138
|
}();
|
|
115
|
-
node.hash = "
|
|
139
|
+
node.hash = "5e8a59a64c401bb354b53ab83d993e03";
|
|
116
140
|
var _default = node;
|
|
117
141
|
exports.default = _default;
|
|
@@ -235,14 +235,31 @@ function CharacterViewerComponent(_ref3) {
|
|
|
235
235
|
const handleMouseLeave = () => {
|
|
236
236
|
if (selectedGlyph) setActiveGlyph(undefined);
|
|
237
237
|
};
|
|
238
|
-
const {
|
|
239
|
-
ref: blocksRef,
|
|
240
|
-
width: blocksWidth
|
|
241
|
-
} = useSize();
|
|
242
238
|
const {
|
|
243
239
|
ref: monitorRef,
|
|
244
240
|
width: monitorWidth
|
|
245
241
|
} = useSize();
|
|
242
|
+
|
|
243
|
+
// Read the grid's resolved first-track width and expose it as --cell-width
|
|
244
|
+
// on the blocks container. CSS uses --cell-width as min-height on every
|
|
245
|
+
// cell so rows have consistent height regardless of cell composition —
|
|
246
|
+
// without it, rows of all-wide span-N cells would collapse to glyph content
|
|
247
|
+
// height. We read the grid track instead of measuring an individual cell so
|
|
248
|
+
// a wide span-N cell at index 0 wouldn't poison the measurement.
|
|
249
|
+
const blocksRef = (0, _react.useRef)(null);
|
|
250
|
+
const [cellWidth, setCellWidth] = (0, _react.useState)(null);
|
|
251
|
+
const measureCell = (0, _react.useCallback)(() => {
|
|
252
|
+
var _blocksRef$current;
|
|
253
|
+
const list = (_blocksRef$current = blocksRef.current) === null || _blocksRef$current === void 0 ? void 0 : _blocksRef$current.querySelector('.character-viewer__block__character-list');
|
|
254
|
+
if (!list) return;
|
|
255
|
+
const firstTrack = getComputedStyle(list).gridTemplateColumns.split(' ')[0];
|
|
256
|
+
const width = parseFloat(firstTrack);
|
|
257
|
+
if (!Number.isNaN(width)) setCellWidth(width);
|
|
258
|
+
}, []);
|
|
259
|
+
(0, _react.useEffect)(measureCell, [measureCell]);
|
|
260
|
+
(0, _resizeObserver.default)(blocksRef, measureCell, {
|
|
261
|
+
polyfill: typeof window === 'undefined' ? ServerSideResizeObserverPolyfill : null
|
|
262
|
+
});
|
|
246
263
|
if (!fontStyle) return null;
|
|
247
264
|
const {
|
|
248
265
|
ascender,
|
|
@@ -365,9 +382,9 @@ function CharacterViewerComponent(_ref3) {
|
|
|
365
382
|
})))), /*#__PURE__*/_react.default.createElement("div", {
|
|
366
383
|
className: "character-viewer_blocks",
|
|
367
384
|
ref: blocksRef,
|
|
368
|
-
style: {
|
|
369
|
-
'--width':
|
|
370
|
-
}
|
|
385
|
+
style: cellWidth ? {
|
|
386
|
+
'--cell-width': `${cellWidth}px`
|
|
387
|
+
} : undefined
|
|
371
388
|
}, groups === null || groups === void 0 ? void 0 : groups.map((_ref6, i) => {
|
|
372
389
|
let {
|
|
373
390
|
name,
|
|
@@ -3,5 +3,9 @@ export default function StoreModalLicenseeIsBillingSelection({ disabled, childre
|
|
|
3
3
|
disabled: boolean;
|
|
4
4
|
children: {
|
|
5
5
|
label: React.ReactNode;
|
|
6
|
+
selfLabel?: React.ReactNode;
|
|
7
|
+
selfDescription?: React.ReactNode;
|
|
8
|
+
clientLabel?: React.ReactNode;
|
|
9
|
+
clientDescription?: React.ReactNode;
|
|
6
10
|
};
|
|
7
11
|
}): React.JSX.Element;
|
|
@@ -24,13 +24,13 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
24
24
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
25
25
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
26
26
|
const StoreModalProduct = _ref => {
|
|
27
|
-
var _config$storeModal, _viewer$orderVariable, _viewer$settings, _viewer$settings2, _viewer$settings3, _viewer$settings4, _collection$children;
|
|
27
|
+
var _config$storeModal, _viewer$orderVariable, _viewer$settings, _viewer$settings2, _viewer$settings3, _viewer$settings4, _viewer$settings5, _viewer$settings6, _viewer$settings7, _viewer$settings8, _collection$children;
|
|
28
28
|
let {
|
|
29
29
|
prepared
|
|
30
30
|
} = _ref;
|
|
31
31
|
const config = (0, _react.useContext)(_ConfigContext.default);
|
|
32
32
|
const environment = (0, _reactRelay.useRelayEnvironment)();
|
|
33
|
-
const initialData = (0, _reactRelay.usePreloadedQuery)((_StoreModalProductQuery2.default.hash && _StoreModalProductQuery2.default.hash !== "
|
|
33
|
+
const initialData = (0, _reactRelay.usePreloadedQuery)((_StoreModalProductQuery2.default.hash && _StoreModalProductQuery2.default.hash !== "051d45b088e87330de54058b441ad280" && console.error("The definition of 'StoreModalProductQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalProductQuery2.default), prepared.productQuery);
|
|
34
34
|
const [data, refetch] = (0, _reactRelay.useRefetchableFragment)((_StoreModalProductContent_collection2.default.hash && _StoreModalProductContent_collection2.default.hash !== "0684ec2633ccc5d4d0866e7780df28cc" && console.error("The definition of 'StoreModalProductContent_collection' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalProductContent_collection2.default), initialData.collection);
|
|
35
35
|
const collection = data;
|
|
36
36
|
const {
|
|
@@ -88,26 +88,50 @@ const StoreModalProduct = _ref => {
|
|
|
88
88
|
__html: ((_viewer$settings = viewer.settings) === null || _viewer$settings === void 0 ? void 0 : _viewer$settings.storeModalSelectLicenseeLabel) ?? ''
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
|
+
const licenseeSelfLabel = /*#__PURE__*/_react.default.createElement("span", {
|
|
92
|
+
dangerouslySetInnerHTML: {
|
|
93
|
+
__html: ((_viewer$settings2 = viewer.settings) === null || _viewer$settings2 === void 0 ? void 0 : _viewer$settings2.storeModalLicenseeSelfLabel) ?? 'Yourself'
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
const licenseeSelfDescription = (_viewer$settings3 = viewer.settings) !== null && _viewer$settings3 !== void 0 && _viewer$settings3.storeModalLicenseeSelfDescription ? /*#__PURE__*/_react.default.createElement("div", {
|
|
97
|
+
dangerouslySetInnerHTML: {
|
|
98
|
+
__html: viewer.settings.storeModalLicenseeSelfDescription
|
|
99
|
+
}
|
|
100
|
+
}) : null;
|
|
101
|
+
const licenseeClientLabel = /*#__PURE__*/_react.default.createElement("span", {
|
|
102
|
+
dangerouslySetInnerHTML: {
|
|
103
|
+
__html: ((_viewer$settings4 = viewer.settings) === null || _viewer$settings4 === void 0 ? void 0 : _viewer$settings4.storeModalLicenseeClientLabel) ?? 'Your client'
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
const licenseeClientDescription = (_viewer$settings5 = viewer.settings) !== null && _viewer$settings5 !== void 0 && _viewer$settings5.storeModalLicenseeClientDescription ? /*#__PURE__*/_react.default.createElement("div", {
|
|
107
|
+
dangerouslySetInnerHTML: {
|
|
108
|
+
__html: viewer.settings.storeModalLicenseeClientDescription
|
|
109
|
+
}
|
|
110
|
+
}) : null;
|
|
91
111
|
const selectOrderVariablesLabel = /*#__PURE__*/_react.default.createElement("div", {
|
|
92
112
|
dangerouslySetInnerHTML: {
|
|
93
|
-
__html: ((_viewer$
|
|
113
|
+
__html: ((_viewer$settings6 = viewer.settings) === null || _viewer$settings6 === void 0 ? void 0 : _viewer$settings6.storeModalSelectOrderVariablesLabel) ?? ''
|
|
94
114
|
}
|
|
95
115
|
});
|
|
96
116
|
const selectLicensesLabel = /*#__PURE__*/_react.default.createElement("div", {
|
|
97
117
|
dangerouslySetInnerHTML: {
|
|
98
|
-
__html: ((_viewer$
|
|
118
|
+
__html: ((_viewer$settings7 = viewer.settings) === null || _viewer$settings7 === void 0 ? void 0 : _viewer$settings7.storeModalSelectLicensesLabel) ?? ''
|
|
99
119
|
}
|
|
100
120
|
});
|
|
101
121
|
const selectFontsLabel = /*#__PURE__*/_react.default.createElement("div", {
|
|
102
122
|
dangerouslySetInnerHTML: {
|
|
103
|
-
__html: ((_viewer$
|
|
123
|
+
__html: ((_viewer$settings8 = viewer.settings) === null || _viewer$settings8 === void 0 ? void 0 : _viewer$settings8.storeModalSelectFontsLabel) ?? ''
|
|
104
124
|
}
|
|
105
125
|
});
|
|
106
126
|
return /*#__PURE__*/_react.default.createElement(_StoreModalPageContainer.default, null, {
|
|
107
127
|
body: /*#__PURE__*/_react.default.createElement(_react.Fragment, null, licensesPosition === 'top' && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_StoreModalLicenseeIsBillingSelection.default, {
|
|
108
128
|
disabled: false
|
|
109
129
|
}, {
|
|
110
|
-
label: selectLicenseeLabel
|
|
130
|
+
label: selectLicenseeLabel,
|
|
131
|
+
selfLabel: licenseeSelfLabel,
|
|
132
|
+
selfDescription: licenseeSelfDescription,
|
|
133
|
+
clientLabel: licenseeClientLabel,
|
|
134
|
+
clientDescription: licenseeClientDescription
|
|
111
135
|
}), /*#__PURE__*/_react.default.createElement(_OrderVariableSelectionRedux.default, {
|
|
112
136
|
viewer: viewer,
|
|
113
137
|
disabled: !hasSelectionForLicenseeIsBillingIdentity
|
|
@@ -132,7 +156,11 @@ const StoreModalProduct = _ref => {
|
|
|
132
156
|
}))), licensesPosition === 'bottom' && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_StoreModalLicenseeIsBillingSelection.default, {
|
|
133
157
|
disabled: !anySkusSelected
|
|
134
158
|
}, {
|
|
135
|
-
label: selectLicenseeLabel
|
|
159
|
+
label: selectLicenseeLabel,
|
|
160
|
+
selfLabel: licenseeSelfLabel,
|
|
161
|
+
selfDescription: licenseeSelfDescription,
|
|
162
|
+
clientLabel: licenseeClientLabel,
|
|
163
|
+
clientDescription: licenseeClientDescription
|
|
136
164
|
}), /*#__PURE__*/_react.default.createElement(_OrderVariableSelectionRedux.default, {
|
|
137
165
|
viewer: viewer,
|
|
138
166
|
disabled: !anySkusSelected || !hasSelectionForLicenseeIsBillingIdentity
|
|
@@ -5,7 +5,11 @@ interface Props {
|
|
|
5
5
|
onChange: (value: boolean) => void;
|
|
6
6
|
children: {
|
|
7
7
|
label: React.ReactNode;
|
|
8
|
+
selfLabel?: React.ReactNode;
|
|
9
|
+
selfDescription?: React.ReactNode;
|
|
10
|
+
clientLabel?: React.ReactNode;
|
|
11
|
+
clientDescription?: React.ReactNode;
|
|
8
12
|
};
|
|
9
13
|
}
|
|
10
|
-
export default function StoreModalLicenseeIsBillingIdentityElement({ disabled, onChange, value, children: { label }, }: Props): React.JSX.Element;
|
|
14
|
+
export default function StoreModalLicenseeIsBillingIdentityElement({ disabled, onChange, value, children: { label, selfLabel, selfDescription, clientLabel, clientDescription }, }: Props): React.JSX.Element;
|
|
11
15
|
export {};
|
|
@@ -36,7 +36,11 @@ function StoreModalLicenseeIsBillingIdentityElement(_ref2) {
|
|
|
36
36
|
onChange,
|
|
37
37
|
value,
|
|
38
38
|
children: {
|
|
39
|
-
label
|
|
39
|
+
label,
|
|
40
|
+
selfLabel,
|
|
41
|
+
selfDescription,
|
|
42
|
+
clientLabel,
|
|
43
|
+
clientDescription
|
|
40
44
|
}
|
|
41
45
|
} = _ref2;
|
|
42
46
|
const handleClick = (0, _react.useCallback)(licenseeIsBilling => () => {
|
|
@@ -49,13 +53,21 @@ function StoreModalLicenseeIsBillingIdentityElement(_ref2) {
|
|
|
49
53
|
className: "store-modal__licensee-is-billing-identity__title"
|
|
50
54
|
}, label), /*#__PURE__*/_react.default.createElement("div", {
|
|
51
55
|
className: "store-modal__licensee-is-billing-identity__buttons"
|
|
56
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
57
|
+
className: "store-modal__licensee-is-billing-identity__option"
|
|
52
58
|
}, /*#__PURE__*/_react.default.createElement(CheckboxButton, {
|
|
53
|
-
label:
|
|
59
|
+
label: selfLabel ?? 'Yourself',
|
|
54
60
|
selected: value === true,
|
|
55
61
|
onClick: handleClick(true)
|
|
56
|
-
}), /*#__PURE__*/_react.default.createElement(
|
|
57
|
-
|
|
62
|
+
}), selfDescription ? /*#__PURE__*/_react.default.createElement("div", {
|
|
63
|
+
className: "store-modal__licensee-is-billing-identity__description"
|
|
64
|
+
}, selfDescription) : null), /*#__PURE__*/_react.default.createElement("div", {
|
|
65
|
+
className: "store-modal__licensee-is-billing-identity__option"
|
|
66
|
+
}, /*#__PURE__*/_react.default.createElement(CheckboxButton, {
|
|
67
|
+
label: clientLabel ?? 'Your client',
|
|
58
68
|
selected: value === false,
|
|
59
69
|
onClick: handleClick(false)
|
|
60
|
-
})
|
|
70
|
+
}), clientDescription ? /*#__PURE__*/_react.default.createElement("div", {
|
|
71
|
+
className: "store-modal__licensee-is-billing-identity__description"
|
|
72
|
+
}, clientDescription) : null)));
|
|
61
73
|
}
|
|
@@ -169,14 +169,14 @@ function EditableSection(_ref) {
|
|
|
169
169
|
}, "Change")));
|
|
170
170
|
}
|
|
171
171
|
function StoreModalUnifiedCheckout(_ref2) {
|
|
172
|
-
var _order$orderVariableS, _viewer$settings, _viewer$settings2, _viewer$settings3, _viewer$settings4, _order$stripePaymentI, _viewer$
|
|
172
|
+
var _order$orderVariableS, _viewer$settings, _viewer$settings2, _viewer$settings3, _viewer$settings4, _viewer$settings5, _viewer$settings6, _viewer$settings7, _viewer$settings8, _order$stripePaymentI, _viewer$settings9, _order$stripePaymentI2, _order$stripePaymentI3;
|
|
173
173
|
let {
|
|
174
174
|
order: orderKey,
|
|
175
175
|
viewer: viewerKey,
|
|
176
176
|
onScrollToTop,
|
|
177
177
|
onUpdateOrderVariableSelections
|
|
178
178
|
} = _ref2;
|
|
179
|
-
const viewer = (0, _reactRelay.useFragment)((_StoreModalUnifiedCheckout_viewer2.default.hash && _StoreModalUnifiedCheckout_viewer2.default.hash !== "
|
|
179
|
+
const viewer = (0, _reactRelay.useFragment)((_StoreModalUnifiedCheckout_viewer2.default.hash && _StoreModalUnifiedCheckout_viewer2.default.hash !== "5e8a59a64c401bb354b53ab83d993e03" && console.error("The definition of 'StoreModalUnifiedCheckout_viewer' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalUnifiedCheckout_viewer2.default), viewerKey);
|
|
180
180
|
const order = (0, _reactRelay.useFragment)((_StoreModalUnifiedCheckout_order2.default.hash && _StoreModalUnifiedCheckout_order2.default.hash !== "7c5503876a562732ebaead9b2ae97180" && console.error("The definition of 'StoreModalUnifiedCheckout_order' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalUnifiedCheckout_order2.default), orderKey);
|
|
181
181
|
|
|
182
182
|
// Check if order has a country-type order variable with a different country than detected
|
|
@@ -677,7 +677,27 @@ function StoreModalUnifiedCheckout(_ref2) {
|
|
|
677
677
|
dangerouslySetInnerHTML: {
|
|
678
678
|
__html: ((_viewer$settings4 = viewer.settings) === null || _viewer$settings4 === void 0 ? void 0 : _viewer$settings4.storeModalSelectLicenseeLabel) ?? ''
|
|
679
679
|
}
|
|
680
|
-
})
|
|
680
|
+
}),
|
|
681
|
+
selfLabel: /*#__PURE__*/_react.default.createElement("span", {
|
|
682
|
+
dangerouslySetInnerHTML: {
|
|
683
|
+
__html: ((_viewer$settings5 = viewer.settings) === null || _viewer$settings5 === void 0 ? void 0 : _viewer$settings5.storeModalLicenseeSelfLabel) ?? 'Yourself'
|
|
684
|
+
}
|
|
685
|
+
}),
|
|
686
|
+
selfDescription: (_viewer$settings6 = viewer.settings) !== null && _viewer$settings6 !== void 0 && _viewer$settings6.storeModalLicenseeSelfDescription ? /*#__PURE__*/_react.default.createElement("div", {
|
|
687
|
+
dangerouslySetInnerHTML: {
|
|
688
|
+
__html: viewer.settings.storeModalLicenseeSelfDescription
|
|
689
|
+
}
|
|
690
|
+
}) : null,
|
|
691
|
+
clientLabel: /*#__PURE__*/_react.default.createElement("span", {
|
|
692
|
+
dangerouslySetInnerHTML: {
|
|
693
|
+
__html: ((_viewer$settings7 = viewer.settings) === null || _viewer$settings7 === void 0 ? void 0 : _viewer$settings7.storeModalLicenseeClientLabel) ?? 'Your client'
|
|
694
|
+
}
|
|
695
|
+
}),
|
|
696
|
+
clientDescription: (_viewer$settings8 = viewer.settings) !== null && _viewer$settings8 !== void 0 && _viewer$settings8.storeModalLicenseeClientDescription ? /*#__PURE__*/_react.default.createElement("div", {
|
|
697
|
+
dangerouslySetInnerHTML: {
|
|
698
|
+
__html: viewer.settings.storeModalLicenseeClientDescription
|
|
699
|
+
}
|
|
700
|
+
}) : null
|
|
681
701
|
}) : null, showLicenseeSection ? /*#__PURE__*/_react.default.createElement("div", {
|
|
682
702
|
className: "store-modal__cart__checkout-section"
|
|
683
703
|
}, /*#__PURE__*/_react.default.createElement("h3", {
|
|
@@ -754,7 +774,7 @@ function StoreModalUnifiedCheckout(_ref2) {
|
|
|
754
774
|
htmlFor: "eula-agreement"
|
|
755
775
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
756
776
|
dangerouslySetInnerHTML: {
|
|
757
|
-
__html: ((_viewer$
|
|
777
|
+
__html: ((_viewer$settings9 = viewer.settings) === null || _viewer$settings9 === void 0 ? void 0 : _viewer$settings9.eulaAgreementLabel) ?? ''
|
|
758
778
|
}
|
|
759
779
|
}))), /*#__PURE__*/_react.default.createElement("button", {
|
|
760
780
|
type: "submit",
|
package/dist/fontdue.css
CHANGED
|
@@ -1083,10 +1083,12 @@ div[data-component=TypeTesters] {
|
|
|
1083
1083
|
margin-left: 1px;
|
|
1084
1084
|
}
|
|
1085
1085
|
|
|
1086
|
+
.character-viewer__block__character-list {
|
|
1087
|
+
display: grid;
|
|
1088
|
+
grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
|
|
1089
|
+
}
|
|
1086
1090
|
.character-viewer__block__character-list > div {
|
|
1087
|
-
|
|
1088
|
-
--item-size: calc(var(--size) / (var(--width) / 60) * 100%);
|
|
1089
|
-
--height: calc(var(--item-size) / var(--size));
|
|
1091
|
+
min-height: var(--cell-width, 60px);
|
|
1090
1092
|
display: flex;
|
|
1091
1093
|
align-items: center;
|
|
1092
1094
|
justify-content: center;
|
|
@@ -1096,25 +1098,20 @@ div[data-component=TypeTesters] {
|
|
|
1096
1098
|
text-align: center;
|
|
1097
1099
|
cursor: default;
|
|
1098
1100
|
white-space: pre;
|
|
1099
|
-
width: var(--item-size);
|
|
1100
|
-
height: 0;
|
|
1101
|
-
padding-top: calc(var(--height) / 2);
|
|
1102
|
-
padding-bottom: calc(var(--height) / 2);
|
|
1103
|
-
float: left;
|
|
1104
1101
|
z-index: 0;
|
|
1105
1102
|
position: relative;
|
|
1106
1103
|
}
|
|
1107
1104
|
.character-viewer__block__character-list > div[data-size="2"] {
|
|
1108
|
-
|
|
1105
|
+
grid-column: span 2;
|
|
1109
1106
|
}
|
|
1110
1107
|
.character-viewer__block__character-list > div[data-size="3"] {
|
|
1111
|
-
|
|
1108
|
+
grid-column: span 3;
|
|
1112
1109
|
}
|
|
1113
1110
|
.character-viewer__block__character-list > div[data-size="4"] {
|
|
1114
|
-
|
|
1111
|
+
grid-column: span 4;
|
|
1115
1112
|
}
|
|
1116
1113
|
.character-viewer__block__character-list > div[data-size="5"] {
|
|
1117
|
-
|
|
1114
|
+
grid-column: span 5;
|
|
1118
1115
|
}
|
|
1119
1116
|
@media screen and (min-width: 600px) {
|
|
1120
1117
|
.character-viewer__block__character-list > div:hover, .character-viewer__block__character-list > div[data-selected=true] {
|
|
@@ -1260,7 +1257,7 @@ body[data-fontdue-store-modal=open] {
|
|
|
1260
1257
|
@media (min-width: 900px) {
|
|
1261
1258
|
.store-modal__cart__review {
|
|
1262
1259
|
display: grid;
|
|
1263
|
-
grid-template-columns: 1fr 1fr;
|
|
1260
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
|
1264
1261
|
grid-auto-rows: min-content;
|
|
1265
1262
|
grid-gap: 20px;
|
|
1266
1263
|
align-items: baseline;
|
|
@@ -1418,6 +1415,12 @@ body[data-fontdue-store-modal=open] {
|
|
|
1418
1415
|
}
|
|
1419
1416
|
}
|
|
1420
1417
|
|
|
1418
|
+
@media (max-width: 899px) {
|
|
1419
|
+
.store-modal__cart__coupon-code-input + .store-modal__cart__share {
|
|
1420
|
+
margin-top: 20px;
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1421
1424
|
.store-modal__container__overlay {
|
|
1422
1425
|
position: fixed;
|
|
1423
1426
|
top: 0;
|
|
@@ -1653,6 +1656,11 @@ body[data-fontdue-store-modal=open] {
|
|
|
1653
1656
|
.store-modal__family__group {
|
|
1654
1657
|
display: flex;
|
|
1655
1658
|
}
|
|
1659
|
+
@media (max-width: 899px) {
|
|
1660
|
+
.store-modal__family__group {
|
|
1661
|
+
flex-direction: column;
|
|
1662
|
+
}
|
|
1663
|
+
}
|
|
1656
1664
|
|
|
1657
1665
|
.store-modal__family__style-button,
|
|
1658
1666
|
.store-modal__family__family-button,
|
|
@@ -1736,11 +1744,6 @@ body[data-fontdue-store-modal=open] {
|
|
|
1736
1744
|
grid-column-gap: 10px;
|
|
1737
1745
|
grid-row-gap: 10px;
|
|
1738
1746
|
}
|
|
1739
|
-
@media (max-width: 899px) {
|
|
1740
|
-
.store-modal__family-button__container {
|
|
1741
|
-
grid-template-columns: auto auto;
|
|
1742
|
-
}
|
|
1743
|
-
}
|
|
1744
1747
|
|
|
1745
1748
|
.store-modal__family-button__price,
|
|
1746
1749
|
.store-modal__family-button__checked {
|
|
@@ -1748,11 +1751,12 @@ body[data-fontdue-store-modal=open] {
|
|
|
1748
1751
|
display: inline-block;
|
|
1749
1752
|
}
|
|
1750
1753
|
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1754
|
+
.store-modal__family-button__label {
|
|
1755
|
+
white-space: nowrap;
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1758
|
+
.store-modal__family-button__price:empty {
|
|
1759
|
+
display: none;
|
|
1756
1760
|
}
|
|
1757
1761
|
|
|
1758
1762
|
.store-modal__family-button__name {
|
|
@@ -1761,7 +1765,7 @@ body[data-fontdue-store-modal=open] {
|
|
|
1761
1765
|
}
|
|
1762
1766
|
@media (max-width: 899px) {
|
|
1763
1767
|
.store-modal__family-button__name {
|
|
1764
|
-
|
|
1768
|
+
font-size: 24px;
|
|
1765
1769
|
}
|
|
1766
1770
|
}
|
|
1767
1771
|
|
|
@@ -2012,6 +2016,23 @@ body[data-fontdue-store-modal=open] {
|
|
|
2012
2016
|
.store-modal__licensee-is-billing-identity__buttons {
|
|
2013
2017
|
display: flex;
|
|
2014
2018
|
gap: 20px;
|
|
2019
|
+
align-items: flex-start;
|
|
2020
|
+
}
|
|
2021
|
+
|
|
2022
|
+
.store-modal__licensee-is-billing-identity__option {
|
|
2023
|
+
flex: 1 1 0;
|
|
2024
|
+
min-width: 0;
|
|
2025
|
+
}
|
|
2026
|
+
|
|
2027
|
+
.store-modal__licensee-is-billing-identity__description {
|
|
2028
|
+
margin-top: 10px;
|
|
2029
|
+
color: var(--secondary_text_color);
|
|
2030
|
+
}
|
|
2031
|
+
.store-modal__licensee-is-billing-identity__description > p {
|
|
2032
|
+
margin: 0;
|
|
2033
|
+
}
|
|
2034
|
+
.store-modal__licensee-is-billing-identity__description > p + p {
|
|
2035
|
+
margin-top: 4px;
|
|
2015
2036
|
}
|
|
2016
2037
|
|
|
2017
2038
|
.store-modal__order-variable-selection__container {
|
|
@@ -2029,6 +2050,9 @@ body[data-fontdue-store-modal=open] {
|
|
|
2029
2050
|
}
|
|
2030
2051
|
|
|
2031
2052
|
.store-modal__order-variable-selection__title {
|
|
2053
|
+
font-family: var(--font-family__bold, inherit);
|
|
2054
|
+
font-weight: 400;
|
|
2055
|
+
font-style: normal;
|
|
2032
2056
|
margin-bottom: 20px;
|
|
2033
2057
|
}
|
|
2034
2058
|
|
|
@@ -2330,6 +2354,7 @@ body[data-fontdue-store-modal=open] {
|
|
|
2330
2354
|
|
|
2331
2355
|
.cart-additions__form {
|
|
2332
2356
|
display: flex;
|
|
2357
|
+
width: 100%;
|
|
2333
2358
|
}
|
|
2334
2359
|
.cart-additions__button {
|
|
2335
2360
|
white-space: nowrap;
|
|
@@ -2379,6 +2404,8 @@ body[data-fontdue-store-modal=open] {
|
|
|
2379
2404
|
}
|
|
2380
2405
|
.cart-additions__field-wrapper {
|
|
2381
2406
|
z-index: 1;
|
|
2407
|
+
flex: 1;
|
|
2408
|
+
margin-right: -1px;
|
|
2382
2409
|
}
|
|
2383
2410
|
.cart-additions__state-icon {
|
|
2384
2411
|
position: absolute;
|
|
@@ -2430,10 +2457,10 @@ body[data-fontdue-store-modal=open] {
|
|
|
2430
2457
|
line-height: normal;
|
|
2431
2458
|
}
|
|
2432
2459
|
.cart-additions__field {
|
|
2433
|
-
margin-right: -1px;
|
|
2434
2460
|
padding-right: 35px;
|
|
2435
2461
|
font-family: inherit;
|
|
2436
2462
|
min-width: 0;
|
|
2463
|
+
width: 100%;
|
|
2437
2464
|
}
|
|
2438
2465
|
.cart-additions[data-status=error] .cart-additions__field {
|
|
2439
2466
|
color: var(--error_color);
|
|
@@ -2475,6 +2502,19 @@ body[data-fontdue-store-modal=open] {
|
|
|
2475
2502
|
border-top: 1px solid var(--horizontal_rule_color);
|
|
2476
2503
|
padding-top: 40px;
|
|
2477
2504
|
}
|
|
2505
|
+
@media (max-width: 899px) {
|
|
2506
|
+
.cart-item {
|
|
2507
|
+
display: grid;
|
|
2508
|
+
grid-template-columns: 1fr auto;
|
|
2509
|
+
column-gap: 20px;
|
|
2510
|
+
align-items: baseline;
|
|
2511
|
+
}
|
|
2512
|
+
}
|
|
2513
|
+
@media (max-width: 899px) {
|
|
2514
|
+
> div:has(> .cart-item__licenses) {
|
|
2515
|
+
grid-column: 1/-1;
|
|
2516
|
+
}
|
|
2517
|
+
}
|
|
2478
2518
|
@media (min-width: 900px) {
|
|
2479
2519
|
.cart-item {
|
|
2480
2520
|
display: grid;
|
|
@@ -2504,6 +2544,12 @@ body[data-fontdue-store-modal=open] {
|
|
|
2504
2544
|
.cart-item__label {
|
|
2505
2545
|
color: var(--styles-count-color, var(--secondary_text_color));
|
|
2506
2546
|
}
|
|
2547
|
+
@media (max-width: 899px) {
|
|
2548
|
+
.cart-item__product {
|
|
2549
|
+
grid-column: 1;
|
|
2550
|
+
margin-bottom: 20px;
|
|
2551
|
+
}
|
|
2552
|
+
}
|
|
2507
2553
|
.cart-item__name {
|
|
2508
2554
|
font-size: 1em;
|
|
2509
2555
|
margin-top: 30px; /* line up to the baseline of next column */
|
|
@@ -2667,11 +2713,12 @@ body[data-fontdue-store-modal=open] {
|
|
|
2667
2713
|
.cart-item__license-variable__loading {
|
|
2668
2714
|
padding: 10px;
|
|
2669
2715
|
}
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2716
|
+
@media (max-width: 899px) {
|
|
2717
|
+
.cart-item__price {
|
|
2718
|
+
grid-column: 2;
|
|
2719
|
+
grid-row: 1;
|
|
2720
|
+
text-align: right;
|
|
2721
|
+
}
|
|
2675
2722
|
}
|
|
2676
2723
|
@media (min-width: 900px) {
|
|
2677
2724
|
.cart-item__price {
|