fontdue-js 2.18.3 → 2.18.4
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 +4 -0
- package/dist/__generated__/CartQuery.graphql.d.ts +1 -1
- package/dist/__generated__/CartQuery.graphql.js +49 -48
- package/dist/__generated__/CustomerLoginFormQuery.graphql.d.ts +20 -0
- package/dist/__generated__/CustomerLoginFormQuery.graphql.js +91 -0
- package/dist/__generated__/PrecartClearCartMutation.graphql.d.ts +61 -0
- package/dist/__generated__/PrecartClearCartMutation.graphql.js +81 -0
- package/dist/__generated__/StoreModalCartQuery.graphql.d.ts +1 -1
- package/dist/__generated__/StoreModalCartQuery.graphql.js +45 -44
- package/dist/__generated__/StoreModalCheckoutQuery.graphql.d.ts +1 -1
- package/dist/__generated__/StoreModalCheckoutQuery.graphql.js +18 -17
- package/dist/__generated__/StoreModalProductSummaryClearCartMutation.graphql.d.ts +61 -0
- package/dist/__generated__/StoreModalProductSummaryClearCartMutation.graphql.js +81 -0
- package/dist/__generated__/StripeProvider_viewer.graphql.d.ts +2 -1
- package/dist/__generated__/StripeProvider_viewer.graphql.js +78 -75
- package/dist/components/ConfigContext.d.ts +10 -0
- package/dist/components/ConfigContext.js +7 -2
- package/dist/components/CustomerLoginForm/index.js +12 -4
- package/dist/components/Precart/index.js +30 -4
- package/dist/components/StoreModalProductSummary/index.js +35 -4
- package/dist/components/StripeProvider/index.js +5 -4
- package/dist/components/TypeTester/index.d.ts +5 -0
- package/dist/components/TypeTester/index.js +2 -1
- package/dist/components/TypeTester/useTypeTesterStyler.d.ts +7 -1
- package/dist/components/TypeTester/useTypeTesterStyler.js +8 -2
- package/dist/fontdue.css +56 -2
- package/fontdue.css +197 -121
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
/**
|
|
8
|
-
* @generated SignedSource<<
|
|
8
|
+
* @generated SignedSource<<4940f0d532bcb559023afe99b0748006>>
|
|
9
9
|
* @lightSyntaxTransform
|
|
10
10
|
* @nogrep
|
|
11
11
|
*/
|
|
@@ -86,10 +86,17 @@ const node = function () {
|
|
|
86
86
|
"alias": null,
|
|
87
87
|
"args": null,
|
|
88
88
|
"kind": "ScalarField",
|
|
89
|
-
"name": "
|
|
89
|
+
"name": "stripeAccountId",
|
|
90
90
|
"storageKey": null
|
|
91
91
|
},
|
|
92
92
|
v13 = {
|
|
93
|
+
"alias": null,
|
|
94
|
+
"args": null,
|
|
95
|
+
"kind": "ScalarField",
|
|
96
|
+
"name": "currency",
|
|
97
|
+
"storageKey": null
|
|
98
|
+
},
|
|
99
|
+
v14 = {
|
|
93
100
|
"alias": null,
|
|
94
101
|
"args": null,
|
|
95
102
|
"concreteType": "LicenseOption",
|
|
@@ -99,47 +106,47 @@ const node = function () {
|
|
|
99
106
|
"selections": v3 /*: any*/,
|
|
100
107
|
"storageKey": null
|
|
101
108
|
},
|
|
102
|
-
|
|
103
|
-
|
|
109
|
+
v15 = [v2 /*: any*/, v13 /*: any*/],
|
|
110
|
+
v16 = {
|
|
104
111
|
"alias": null,
|
|
105
112
|
"args": null,
|
|
106
113
|
"concreteType": "Money",
|
|
107
114
|
"kind": "LinkedField",
|
|
108
115
|
"name": "price",
|
|
109
116
|
"plural": false,
|
|
110
|
-
"selections":
|
|
117
|
+
"selections": v15 /*: any*/,
|
|
111
118
|
"storageKey": null
|
|
112
119
|
},
|
|
113
|
-
|
|
120
|
+
v17 = {
|
|
114
121
|
"alias": null,
|
|
115
122
|
"args": null,
|
|
116
123
|
"kind": "ScalarField",
|
|
117
124
|
"name": "cssUrl",
|
|
118
125
|
"storageKey": null
|
|
119
126
|
},
|
|
120
|
-
|
|
127
|
+
v18 = {
|
|
121
128
|
"alias": null,
|
|
122
129
|
"args": null,
|
|
123
130
|
"kind": "ScalarField",
|
|
124
131
|
"name": "totalStyles",
|
|
125
132
|
"storageKey": null
|
|
126
133
|
},
|
|
127
|
-
|
|
128
|
-
|
|
134
|
+
v19 = [v1 /*: any*/, v2 /*: any*/],
|
|
135
|
+
v20 = {
|
|
129
136
|
"alias": null,
|
|
130
137
|
"args": null,
|
|
131
138
|
"kind": "ScalarField",
|
|
132
139
|
"name": "email",
|
|
133
140
|
"storageKey": null
|
|
134
141
|
},
|
|
135
|
-
|
|
142
|
+
v21 = {
|
|
136
143
|
"alias": null,
|
|
137
144
|
"args": null,
|
|
138
145
|
"kind": "ScalarField",
|
|
139
146
|
"name": "country",
|
|
140
147
|
"storageKey": null
|
|
141
148
|
},
|
|
142
|
-
|
|
149
|
+
v22 = [v20 /*: any*/, {
|
|
143
150
|
"alias": null,
|
|
144
151
|
"args": null,
|
|
145
152
|
"kind": "ScalarField",
|
|
@@ -187,7 +194,7 @@ const node = function () {
|
|
|
187
194
|
"kind": "ScalarField",
|
|
188
195
|
"name": "sublocality",
|
|
189
196
|
"storageKey": null
|
|
190
|
-
},
|
|
197
|
+
}, v21 /*: any*/, {
|
|
191
198
|
"alias": null,
|
|
192
199
|
"args": null,
|
|
193
200
|
"kind": "ScalarField",
|
|
@@ -456,13 +463,7 @@ const node = function () {
|
|
|
456
463
|
"storageKey": null
|
|
457
464
|
}],
|
|
458
465
|
"storageKey": null
|
|
459
|
-
}, {
|
|
460
|
-
"alias": null,
|
|
461
|
-
"args": null,
|
|
462
|
-
"kind": "ScalarField",
|
|
463
|
-
"name": "stripeAccountId",
|
|
464
|
-
"storageKey": null
|
|
465
|
-
}, {
|
|
466
|
+
}, v12 /*: any*/, {
|
|
466
467
|
"alias": null,
|
|
467
468
|
"args": null,
|
|
468
469
|
"kind": "ScalarField",
|
|
@@ -475,7 +476,7 @@ const node = function () {
|
|
|
475
476
|
"kind": "LinkedField",
|
|
476
477
|
"name": "currentOrder",
|
|
477
478
|
"plural": false,
|
|
478
|
-
"selections": [{
|
|
479
|
+
"selections": [v12 /*: any*/, {
|
|
479
480
|
"alias": null,
|
|
480
481
|
"args": null,
|
|
481
482
|
"concreteType": "StripePaymentIntent",
|
|
@@ -488,7 +489,7 @@ const node = function () {
|
|
|
488
489
|
"kind": "ScalarField",
|
|
489
490
|
"name": "clientSecret",
|
|
490
491
|
"storageKey": null
|
|
491
|
-
}, v2 /*: any*/,
|
|
492
|
+
}, v2 /*: any*/, v13 /*: any*/],
|
|
492
493
|
"storageKey": null
|
|
493
494
|
}, v1 /*: any*/, {
|
|
494
495
|
"alias": null,
|
|
@@ -544,7 +545,7 @@ const node = function () {
|
|
|
544
545
|
"kind": "ScalarField",
|
|
545
546
|
"name": "units",
|
|
546
547
|
"storageKey": null
|
|
547
|
-
}, v7 /*: any*/, v4 /*: any*/,
|
|
548
|
+
}, v7 /*: any*/, v4 /*: any*/, v14 /*: any*/],
|
|
548
549
|
"storageKey": null
|
|
549
550
|
}, {
|
|
550
551
|
"alias": null,
|
|
@@ -563,14 +564,14 @@ const node = function () {
|
|
|
563
564
|
"storageKey": null
|
|
564
565
|
}, v5 /*: any*/, v1 /*: any*/],
|
|
565
566
|
"storageKey": null
|
|
566
|
-
},
|
|
567
|
+
}, v16 /*: any*/, {
|
|
567
568
|
"alias": null,
|
|
568
569
|
"args": null,
|
|
569
570
|
"concreteType": "Sku",
|
|
570
571
|
"kind": "LinkedField",
|
|
571
572
|
"name": "sku",
|
|
572
573
|
"plural": false,
|
|
573
|
-
"selections": [
|
|
574
|
+
"selections": [v16 /*: any*/, {
|
|
574
575
|
"alias": null,
|
|
575
576
|
"args": null,
|
|
576
577
|
"concreteType": null,
|
|
@@ -602,7 +603,7 @@ const node = function () {
|
|
|
602
603
|
"kind": "LinkedField",
|
|
603
604
|
"name": "family",
|
|
604
605
|
"plural": false,
|
|
605
|
-
"selections": [
|
|
606
|
+
"selections": [v17 /*: any*/, v1 /*: any*/],
|
|
606
607
|
"storageKey": null
|
|
607
608
|
}],
|
|
608
609
|
"storageKey": null
|
|
@@ -612,7 +613,7 @@ const node = function () {
|
|
|
612
613
|
"kind": "ScalarField",
|
|
613
614
|
"name": "isVariableFont",
|
|
614
615
|
"storageKey": null
|
|
615
|
-
},
|
|
616
|
+
}, v18 /*: any*/],
|
|
616
617
|
"type": "FontCollection",
|
|
617
618
|
"abstractKey": null
|
|
618
619
|
}, {
|
|
@@ -638,7 +639,7 @@ const node = function () {
|
|
|
638
639
|
"kind": "LinkedField",
|
|
639
640
|
"name": "family",
|
|
640
641
|
"plural": false,
|
|
641
|
-
"selections": [v7 /*: any*/,
|
|
642
|
+
"selections": [v7 /*: any*/, v17 /*: any*/, v1 /*: any*/],
|
|
642
643
|
"storageKey": null
|
|
643
644
|
}, {
|
|
644
645
|
"alias": null,
|
|
@@ -654,7 +655,7 @@ const node = function () {
|
|
|
654
655
|
"abstractKey": null
|
|
655
656
|
}, {
|
|
656
657
|
"kind": "InlineFragment",
|
|
657
|
-
"selections": [v7 /*: any*/,
|
|
658
|
+
"selections": [v7 /*: any*/, v18 /*: any*/],
|
|
658
659
|
"type": "CollectionBundle",
|
|
659
660
|
"abstractKey": null
|
|
660
661
|
}, {
|
|
@@ -673,7 +674,7 @@ const node = function () {
|
|
|
673
674
|
"kind": "LinkedField",
|
|
674
675
|
"name": "licenseVariables",
|
|
675
676
|
"plural": true,
|
|
676
|
-
"selections": [v1 /*: any*/,
|
|
677
|
+
"selections": [v1 /*: any*/, v14 /*: any*/],
|
|
677
678
|
"storageKey": null
|
|
678
679
|
}],
|
|
679
680
|
"storageKey": null
|
|
@@ -714,7 +715,7 @@ const node = function () {
|
|
|
714
715
|
"kind": "LinkedField",
|
|
715
716
|
"name": "orderVariableOption",
|
|
716
717
|
"plural": false,
|
|
717
|
-
"selections":
|
|
718
|
+
"selections": v19 /*: any*/,
|
|
718
719
|
"storageKey": null
|
|
719
720
|
}, {
|
|
720
721
|
"alias": null,
|
|
@@ -737,7 +738,7 @@ const node = function () {
|
|
|
737
738
|
"kind": "LinkedField",
|
|
738
739
|
"name": "subtotal",
|
|
739
740
|
"plural": false,
|
|
740
|
-
"selections":
|
|
741
|
+
"selections": v15 /*: any*/,
|
|
741
742
|
"storageKey": null
|
|
742
743
|
}, {
|
|
743
744
|
"alias": null,
|
|
@@ -753,7 +754,7 @@ const node = function () {
|
|
|
753
754
|
"kind": "LinkedField",
|
|
754
755
|
"name": "amount",
|
|
755
756
|
"plural": false,
|
|
756
|
-
"selections":
|
|
757
|
+
"selections": v15 /*: any*/,
|
|
757
758
|
"storageKey": null
|
|
758
759
|
}, {
|
|
759
760
|
"alias": null,
|
|
@@ -781,7 +782,7 @@ const node = function () {
|
|
|
781
782
|
"kind": "LinkedField",
|
|
782
783
|
"name": "creditAmount",
|
|
783
784
|
"plural": false,
|
|
784
|
-
"selections":
|
|
785
|
+
"selections": v15 /*: any*/,
|
|
785
786
|
"storageKey": null
|
|
786
787
|
}, {
|
|
787
788
|
"alias": null,
|
|
@@ -790,7 +791,7 @@ const node = function () {
|
|
|
790
791
|
"kind": "LinkedField",
|
|
791
792
|
"name": "creditAmountRemaining",
|
|
792
793
|
"plural": false,
|
|
793
|
-
"selections":
|
|
794
|
+
"selections": v15 /*: any*/,
|
|
794
795
|
"storageKey": null
|
|
795
796
|
}, v1 /*: any*/],
|
|
796
797
|
"storageKey": null
|
|
@@ -803,7 +804,7 @@ const node = function () {
|
|
|
803
804
|
"kind": "LinkedField",
|
|
804
805
|
"name": "discountedSubtotal",
|
|
805
806
|
"plural": false,
|
|
806
|
-
"selections":
|
|
807
|
+
"selections": v15 /*: any*/,
|
|
807
808
|
"storageKey": null
|
|
808
809
|
}, {
|
|
809
810
|
"alias": null,
|
|
@@ -812,7 +813,7 @@ const node = function () {
|
|
|
812
813
|
"kind": "LinkedField",
|
|
813
814
|
"name": "total",
|
|
814
815
|
"plural": false,
|
|
815
|
-
"selections":
|
|
816
|
+
"selections": v15 /*: any*/,
|
|
816
817
|
"storageKey": null
|
|
817
818
|
}, {
|
|
818
819
|
"alias": null,
|
|
@@ -827,7 +828,7 @@ const node = function () {
|
|
|
827
828
|
"kind": "LinkedField",
|
|
828
829
|
"name": "taxes",
|
|
829
830
|
"plural": false,
|
|
830
|
-
"selections":
|
|
831
|
+
"selections": v15 /*: any*/,
|
|
831
832
|
"storageKey": null
|
|
832
833
|
}, {
|
|
833
834
|
"alias": null,
|
|
@@ -860,7 +861,7 @@ const node = function () {
|
|
|
860
861
|
"kind": "LinkedField",
|
|
861
862
|
"name": "customer",
|
|
862
863
|
"plural": false,
|
|
863
|
-
"selections": [v7 /*: any*/,
|
|
864
|
+
"selections": [v7 /*: any*/, v20 /*: any*/, {
|
|
864
865
|
"alias": null,
|
|
865
866
|
"args": null,
|
|
866
867
|
"kind": "ScalarField",
|
|
@@ -881,7 +882,7 @@ const node = function () {
|
|
|
881
882
|
"kind": "LinkedField",
|
|
882
883
|
"name": "licenseeIdentity",
|
|
883
884
|
"plural": false,
|
|
884
|
-
"selections":
|
|
885
|
+
"selections": v22 /*: any*/,
|
|
885
886
|
"storageKey": null
|
|
886
887
|
}, {
|
|
887
888
|
"alias": null,
|
|
@@ -890,7 +891,7 @@ const node = function () {
|
|
|
890
891
|
"kind": "LinkedField",
|
|
891
892
|
"name": "billingIdentity",
|
|
892
893
|
"plural": false,
|
|
893
|
-
"selections":
|
|
894
|
+
"selections": v22 /*: any*/,
|
|
894
895
|
"storageKey": null
|
|
895
896
|
}, v6 /*: any*/],
|
|
896
897
|
"storageKey": null
|
|
@@ -918,7 +919,7 @@ const node = function () {
|
|
|
918
919
|
"kind": "LinkedField",
|
|
919
920
|
"name": "orderVariableOptions",
|
|
920
921
|
"plural": true,
|
|
921
|
-
"selections":
|
|
922
|
+
"selections": v19 /*: any*/,
|
|
922
923
|
"storageKey": null
|
|
923
924
|
}],
|
|
924
925
|
"storageKey": null
|
|
@@ -937,7 +938,7 @@ const node = function () {
|
|
|
937
938
|
"storageKey": null
|
|
938
939
|
}, v7 /*: any*/],
|
|
939
940
|
"storageKey": null
|
|
940
|
-
},
|
|
941
|
+
}, v21 /*: any*/, {
|
|
941
942
|
"alias": null,
|
|
942
943
|
"args": null,
|
|
943
944
|
"kind": "ScalarField",
|
|
@@ -948,12 +949,12 @@ const node = function () {
|
|
|
948
949
|
}]
|
|
949
950
|
},
|
|
950
951
|
"params": {
|
|
951
|
-
"cacheID": "
|
|
952
|
+
"cacheID": "34a4ba373086b6b15656cb113d940ce2",
|
|
952
953
|
"id": null,
|
|
953
954
|
"metadata": {},
|
|
954
955
|
"name": "StoreModalCartQuery",
|
|
955
956
|
"operationKind": "query",
|
|
956
|
-
"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 }\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 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 CollectionBundle {\n name\n totalStyles\n }\n}\n\nfragment CartItemVariable_selection on LicenseSelection {\n id\n variableText\n license {\n id\n }\n licenseVariable {\n ...VariableTableAmounts_variable\n id\n name\n variableType\n licenseOptions {\n id\n }\n }\n licenseOption {\n ...VariableTableAmounts_option\n id\n name\n amount\n }\n}\n\nfragment CartItemVariable_variable on LicenseVariable {\n id\n licenseOptions {\n id\n name\n amount\n }\n}\n\nfragment CartItem_node on OrderItem {\n ...CartItemAdditionalLicenses_orderItem\n id\n price {\n ...Price_price\n }\n sku {\n price {\n ...Price_price\n }\n product {\n ...CartItemProduct_product\n __typename\n ... on Licenseable {\n __isLicenseable: __typename\n licenses {\n ...CartItemAdditionalLicenses_licenses\n id\n licenseVariables {\n id\n licenseOptions {\n id\n }\n }\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n licenseSelections {\n ...CartItemLicense_selection\n id\n license {\n id\n }\n licenseVariable {\n id\n }\n licenseOption {\n id\n }\n variableText\n }\n}\n\nfragment 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 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 cssFamily\n name\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 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"
|
|
957
|
+
"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 }\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 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 CollectionBundle {\n name\n totalStyles\n }\n}\n\nfragment CartItemVariable_selection on LicenseSelection {\n id\n variableText\n license {\n id\n }\n licenseVariable {\n ...VariableTableAmounts_variable\n id\n name\n variableType\n licenseOptions {\n id\n }\n }\n licenseOption {\n ...VariableTableAmounts_option\n id\n name\n amount\n }\n}\n\nfragment CartItemVariable_variable on LicenseVariable {\n id\n licenseOptions {\n id\n name\n amount\n }\n}\n\nfragment CartItem_node on OrderItem {\n ...CartItemAdditionalLicenses_orderItem\n id\n price {\n ...Price_price\n }\n sku {\n price {\n ...Price_price\n }\n product {\n ...CartItemProduct_product\n __typename\n ... on Licenseable {\n __isLicenseable: __typename\n licenses {\n ...CartItemAdditionalLicenses_licenses\n id\n licenseVariables {\n id\n licenseOptions {\n id\n }\n }\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n licenseSelections {\n ...CartItemLicense_selection\n id\n license {\n id\n }\n licenseVariable {\n id\n }\n licenseOption {\n id\n }\n variableText\n }\n}\n\nfragment 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 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 cssFamily\n name\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"
|
|
957
958
|
}
|
|
958
959
|
};
|
|
959
960
|
}();
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
/**
|
|
8
|
-
* @generated SignedSource<<
|
|
8
|
+
* @generated SignedSource<<8e0a2078bc1fa93f42a0d1d8f1939638>>
|
|
9
9
|
* @lightSyntaxTransform
|
|
10
10
|
* @nogrep
|
|
11
11
|
*/
|
|
@@ -16,12 +16,19 @@ exports.default = void 0;
|
|
|
16
16
|
|
|
17
17
|
const node = function () {
|
|
18
18
|
var v0 = {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
"alias": null,
|
|
20
|
+
"args": null,
|
|
21
|
+
"kind": "ScalarField",
|
|
22
|
+
"name": "id",
|
|
23
|
+
"storageKey": null
|
|
24
|
+
},
|
|
25
|
+
v1 = {
|
|
26
|
+
"alias": null,
|
|
27
|
+
"args": null,
|
|
28
|
+
"kind": "ScalarField",
|
|
29
|
+
"name": "stripeAccountId",
|
|
30
|
+
"storageKey": null
|
|
31
|
+
};
|
|
25
32
|
return {
|
|
26
33
|
"fragment": {
|
|
27
34
|
"argumentDefinitions": [],
|
|
@@ -138,13 +145,7 @@ const node = function () {
|
|
|
138
145
|
"storageKey": null
|
|
139
146
|
}],
|
|
140
147
|
"storageKey": null
|
|
141
|
-
}, {
|
|
142
|
-
"alias": null,
|
|
143
|
-
"args": null,
|
|
144
|
-
"kind": "ScalarField",
|
|
145
|
-
"name": "stripeAccountId",
|
|
146
|
-
"storageKey": null
|
|
147
|
-
}, {
|
|
148
|
+
}, v1 /*: any*/, {
|
|
148
149
|
"alias": null,
|
|
149
150
|
"args": null,
|
|
150
151
|
"kind": "ScalarField",
|
|
@@ -157,7 +158,7 @@ const node = function () {
|
|
|
157
158
|
"kind": "LinkedField",
|
|
158
159
|
"name": "currentOrder",
|
|
159
160
|
"plural": false,
|
|
160
|
-
"selections": [{
|
|
161
|
+
"selections": [v1 /*: any*/, {
|
|
161
162
|
"alias": null,
|
|
162
163
|
"args": null,
|
|
163
164
|
"concreteType": "StripePaymentIntent",
|
|
@@ -179,12 +180,12 @@ const node = function () {
|
|
|
179
180
|
}]
|
|
180
181
|
},
|
|
181
182
|
"params": {
|
|
182
|
-
"cacheID": "
|
|
183
|
+
"cacheID": "07b3cd9f983a1bda03e85d8908ec2742",
|
|
183
184
|
"id": null,
|
|
184
185
|
"metadata": {},
|
|
185
186
|
"name": "StoreModalCheckoutQuery",
|
|
186
187
|
"operationKind": "query",
|
|
187
|
-
"text": "query StoreModalCheckoutQuery {\n viewer {\n ...StripeProvider_viewer\n currentOrder {\n id\n }\n id\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 stripePaymentIntent {\n clientSecret\n }\n id\n }\n}\n"
|
|
188
|
+
"text": "query StoreModalCheckoutQuery {\n viewer {\n ...StripeProvider_viewer\n currentOrder {\n id\n }\n id\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"
|
|
188
189
|
}
|
|
189
190
|
};
|
|
190
191
|
}();
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @generated SignedSource<<a54228c6a8b5aa81ab89dbbabf2b0a24>>
|
|
3
|
+
* @lightSyntaxTransform
|
|
4
|
+
* @nogrep
|
|
5
|
+
*/
|
|
6
|
+
import { ConcreteRequest } from 'relay-runtime';
|
|
7
|
+
export type UpdateOrderInput = {
|
|
8
|
+
billingIdentity?: IdentityInput | null;
|
|
9
|
+
licenseeIdentity?: IdentityInput | null;
|
|
10
|
+
licenseeIsBillingIdentity?: boolean | null;
|
|
11
|
+
orderItems?: ReadonlyArray<OrderItemInput | null> | null;
|
|
12
|
+
orderVariableSelections?: ReadonlyArray<OrderVariableSelectionInput> | null;
|
|
13
|
+
stripePaymentMethodId?: string | null;
|
|
14
|
+
stripeTokenId?: string | null;
|
|
15
|
+
};
|
|
16
|
+
export type OrderItemInput = {
|
|
17
|
+
id: string;
|
|
18
|
+
licenseSelections: ReadonlyArray<LicenseSelectionInput | null>;
|
|
19
|
+
};
|
|
20
|
+
export type LicenseSelectionInput = {
|
|
21
|
+
id?: string | null;
|
|
22
|
+
licenseId: string;
|
|
23
|
+
licenseOptionId?: string | null;
|
|
24
|
+
licenseVariableId?: string | null;
|
|
25
|
+
variableText?: string | null;
|
|
26
|
+
};
|
|
27
|
+
export type OrderVariableSelectionInput = {
|
|
28
|
+
countryCode?: string | null;
|
|
29
|
+
orderVariableId: string;
|
|
30
|
+
orderVariableOptionId?: string | null;
|
|
31
|
+
};
|
|
32
|
+
export type IdentityInput = {
|
|
33
|
+
administrativeArea?: string | null;
|
|
34
|
+
country: string;
|
|
35
|
+
email: string;
|
|
36
|
+
locality?: string | null;
|
|
37
|
+
name: string;
|
|
38
|
+
organization?: string | null;
|
|
39
|
+
phone?: string | null;
|
|
40
|
+
sortingCode?: string | null;
|
|
41
|
+
street?: string | null;
|
|
42
|
+
sublocality?: string | null;
|
|
43
|
+
vatNumber?: string | null;
|
|
44
|
+
zip?: string | null;
|
|
45
|
+
};
|
|
46
|
+
export type StoreModalProductSummaryClearCartMutation$variables = {
|
|
47
|
+
input: UpdateOrderInput;
|
|
48
|
+
};
|
|
49
|
+
export type StoreModalProductSummaryClearCartMutation$data = {
|
|
50
|
+
readonly updateOrder: {
|
|
51
|
+
readonly order: {
|
|
52
|
+
readonly id: string;
|
|
53
|
+
} | null;
|
|
54
|
+
} | null;
|
|
55
|
+
};
|
|
56
|
+
export type StoreModalProductSummaryClearCartMutation = {
|
|
57
|
+
response: StoreModalProductSummaryClearCartMutation$data;
|
|
58
|
+
variables: StoreModalProductSummaryClearCartMutation$variables;
|
|
59
|
+
};
|
|
60
|
+
declare const node: ConcreteRequest;
|
|
61
|
+
export default node;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* @generated SignedSource<<a54228c6a8b5aa81ab89dbbabf2b0a24>>
|
|
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": "UpdateOrderPayload",
|
|
31
|
+
"kind": "LinkedField",
|
|
32
|
+
"name": "updateOrder",
|
|
33
|
+
"plural": false,
|
|
34
|
+
"selections": [{
|
|
35
|
+
"alias": null,
|
|
36
|
+
"args": null,
|
|
37
|
+
"concreteType": "Order",
|
|
38
|
+
"kind": "LinkedField",
|
|
39
|
+
"name": "order",
|
|
40
|
+
"plural": false,
|
|
41
|
+
"selections": [{
|
|
42
|
+
"alias": null,
|
|
43
|
+
"args": null,
|
|
44
|
+
"kind": "ScalarField",
|
|
45
|
+
"name": "id",
|
|
46
|
+
"storageKey": null
|
|
47
|
+
}],
|
|
48
|
+
"storageKey": null
|
|
49
|
+
}],
|
|
50
|
+
"storageKey": null
|
|
51
|
+
}];
|
|
52
|
+
return {
|
|
53
|
+
"fragment": {
|
|
54
|
+
"argumentDefinitions": v0 /*: any*/,
|
|
55
|
+
"kind": "Fragment",
|
|
56
|
+
"metadata": null,
|
|
57
|
+
"name": "StoreModalProductSummaryClearCartMutation",
|
|
58
|
+
"selections": v1 /*: any*/,
|
|
59
|
+
"type": "RootMutationType",
|
|
60
|
+
"abstractKey": null
|
|
61
|
+
},
|
|
62
|
+
"kind": "Request",
|
|
63
|
+
"operation": {
|
|
64
|
+
"argumentDefinitions": v0 /*: any*/,
|
|
65
|
+
"kind": "Operation",
|
|
66
|
+
"name": "StoreModalProductSummaryClearCartMutation",
|
|
67
|
+
"selections": v1 /*: any*/
|
|
68
|
+
},
|
|
69
|
+
"params": {
|
|
70
|
+
"cacheID": "d2d6905c79b8e40ce161652a1b88325d",
|
|
71
|
+
"id": null,
|
|
72
|
+
"metadata": {},
|
|
73
|
+
"name": "StoreModalProductSummaryClearCartMutation",
|
|
74
|
+
"operationKind": "mutation",
|
|
75
|
+
"text": "mutation StoreModalProductSummaryClearCartMutation(\n $input: UpdateOrderInput!\n) {\n updateOrder(input: $input) {\n order {\n id\n }\n }\n}\n"
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
}();
|
|
79
|
+
node.hash = "b5c37f74432030a297c1bcf2be63b6f7";
|
|
80
|
+
var _default = node;
|
|
81
|
+
exports.default = _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @generated SignedSource<<
|
|
2
|
+
* @generated SignedSource<<d02753657fe659c784b166d1c4a2b27a>>
|
|
3
3
|
* @lightSyntaxTransform
|
|
4
4
|
* @nogrep
|
|
5
5
|
*/
|
|
@@ -7,6 +7,7 @@ import { ReaderFragment } from 'relay-runtime';
|
|
|
7
7
|
import { FragmentRefs } from "relay-runtime";
|
|
8
8
|
export type StripeProvider_viewer$data = {
|
|
9
9
|
readonly currentOrder: {
|
|
10
|
+
readonly stripeAccountId: string | null;
|
|
10
11
|
readonly stripePaymentIntent: {
|
|
11
12
|
readonly clientSecret: string | null;
|
|
12
13
|
} | null;
|