fontdue-js 2.8.0-rc1 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,7 @@
1
1
  ## 2.8.0
2
2
 
3
3
  - Adds support for new "limit licenses" option on collections
4
+ - Change the default country during checkout to the tenant's country
4
5
 
5
6
  ## 2.7.0
6
7
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<93e5996dda07a98a623ac7fc817047c1>>
2
+ * @generated SignedSource<<b332b0e5ef70ef2b30f91dbe245951ce>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  /**
8
- * @generated SignedSource<<93e5996dda07a98a623ac7fc817047c1>>
8
+ * @generated SignedSource<<b332b0e5ef70ef2b30f91dbe245951ce>>
9
9
  * @lightSyntaxTransform
10
10
  * @nogrep
11
11
  */
@@ -36,7 +36,14 @@ const node = function () {
36
36
  "name": "email",
37
37
  "storageKey": null
38
38
  },
39
- v3 = [v1 /*: any*/, {
39
+ v3 = {
40
+ "alias": null,
41
+ "args": null,
42
+ "kind": "ScalarField",
43
+ "name": "country",
44
+ "storageKey": null
45
+ },
46
+ v4 = [v1 /*: any*/, {
40
47
  "alias": null,
41
48
  "args": null,
42
49
  "kind": "ScalarField",
@@ -66,13 +73,7 @@ const node = function () {
66
73
  "kind": "ScalarField",
67
74
  "name": "sublocality",
68
75
  "storageKey": null
69
- }, {
70
- "alias": null,
71
- "args": null,
72
- "kind": "ScalarField",
73
- "name": "country",
74
- "storageKey": null
75
- }, {
76
+ }, v3 /*: any*/, {
76
77
  "alias": null,
77
78
  "args": null,
78
79
  "kind": "ScalarField",
@@ -103,53 +104,53 @@ const node = function () {
103
104
  "name": "addressFormatted",
104
105
  "storageKey": null
105
106
  }],
106
- v4 = {
107
+ v5 = {
107
108
  "alias": null,
108
109
  "args": null,
109
110
  "kind": "ScalarField",
110
111
  "name": "amount",
111
112
  "storageKey": null
112
113
  },
113
- v5 = [v4 /*: any*/, {
114
+ v6 = [v5 /*: any*/, {
114
115
  "alias": null,
115
116
  "args": null,
116
117
  "kind": "ScalarField",
117
118
  "name": "currency",
118
119
  "storageKey": null
119
120
  }],
120
- v6 = {
121
+ v7 = {
121
122
  "alias": null,
122
123
  "args": null,
123
124
  "concreteType": "Money",
124
125
  "kind": "LinkedField",
125
126
  "name": "price",
126
127
  "plural": false,
127
- "selections": v5 /*: any*/,
128
+ "selections": v6 /*: any*/,
128
129
  "storageKey": null
129
130
  },
130
- v7 = {
131
+ v8 = {
131
132
  "alias": null,
132
133
  "args": null,
133
134
  "kind": "ScalarField",
134
135
  "name": "cssFamily",
135
136
  "storageKey": null
136
137
  },
137
- v8 = {
138
+ v9 = {
138
139
  "alias": null,
139
140
  "args": null,
140
141
  "kind": "ScalarField",
141
142
  "name": "cssUrl",
142
143
  "storageKey": null
143
144
  },
144
- v9 = {
145
+ v10 = {
145
146
  "alias": null,
146
147
  "args": null,
147
148
  "kind": "ScalarField",
148
149
  "name": "variableType",
149
150
  "storageKey": null
150
151
  },
151
- v10 = [v0 /*: any*/],
152
- v11 = {
152
+ v11 = [v0 /*: any*/],
153
+ v12 = {
153
154
  "alias": null,
154
155
  "args": null,
155
156
  "kind": "ScalarField",
@@ -334,7 +335,7 @@ const node = function () {
334
335
  "kind": "LinkedField",
335
336
  "name": "billingIdentity",
336
337
  "plural": false,
337
- "selections": v3 /*: any*/,
338
+ "selections": v4 /*: any*/,
338
339
  "storageKey": null
339
340
  }, {
340
341
  "alias": null,
@@ -343,7 +344,7 @@ const node = function () {
343
344
  "kind": "LinkedField",
344
345
  "name": "licenseeIdentity",
345
346
  "plural": false,
346
- "selections": v3 /*: any*/,
347
+ "selections": v4 /*: any*/,
347
348
  "storageKey": null
348
349
  }, {
349
350
  "alias": null,
@@ -370,7 +371,7 @@ const node = function () {
370
371
  "kind": "LinkedField",
371
372
  "name": "subtotal",
372
373
  "plural": false,
373
- "selections": v5 /*: any*/,
374
+ "selections": v6 /*: any*/,
374
375
  "storageKey": null
375
376
  }, {
376
377
  "alias": null,
@@ -386,7 +387,7 @@ const node = function () {
386
387
  "kind": "LinkedField",
387
388
  "name": "amount",
388
389
  "plural": false,
389
- "selections": v5 /*: any*/,
390
+ "selections": v6 /*: any*/,
390
391
  "storageKey": null
391
392
  }, {
392
393
  "alias": null,
@@ -414,7 +415,7 @@ const node = function () {
414
415
  "kind": "LinkedField",
415
416
  "name": "creditAmountRemaining",
416
417
  "plural": false,
417
- "selections": v5 /*: any*/,
418
+ "selections": v6 /*: any*/,
418
419
  "storageKey": null
419
420
  }, v0 /*: any*/],
420
421
  "storageKey": null
@@ -427,7 +428,7 @@ const node = function () {
427
428
  "kind": "LinkedField",
428
429
  "name": "discountedSubtotal",
429
430
  "plural": false,
430
- "selections": v5 /*: any*/,
431
+ "selections": v6 /*: any*/,
431
432
  "storageKey": null
432
433
  }, {
433
434
  "alias": null,
@@ -436,7 +437,7 @@ const node = function () {
436
437
  "kind": "LinkedField",
437
438
  "name": "total",
438
439
  "plural": false,
439
- "selections": v5 /*: any*/,
440
+ "selections": v6 /*: any*/,
440
441
  "storageKey": null
441
442
  }, {
442
443
  "alias": null,
@@ -451,7 +452,7 @@ const node = function () {
451
452
  "kind": "LinkedField",
452
453
  "name": "taxes",
453
454
  "plural": false,
454
- "selections": v5 /*: any*/,
455
+ "selections": v6 /*: any*/,
455
456
  "storageKey": null
456
457
  }, {
457
458
  "alias": null,
@@ -472,14 +473,14 @@ const node = function () {
472
473
  "kind": "LinkedField",
473
474
  "name": "orderItems",
474
475
  "plural": true,
475
- "selections": [v0 /*: any*/, v6 /*: any*/, {
476
+ "selections": [v0 /*: any*/, v7 /*: any*/, {
476
477
  "alias": null,
477
478
  "args": null,
478
479
  "concreteType": "Sku",
479
480
  "kind": "LinkedField",
480
481
  "name": "sku",
481
482
  "plural": false,
482
- "selections": [v6 /*: any*/, {
483
+ "selections": [v7 /*: any*/, {
483
484
  "alias": null,
484
485
  "args": null,
485
486
  "concreteType": null,
@@ -504,14 +505,14 @@ const node = function () {
504
505
  "kind": "LinkedField",
505
506
  "name": "featureStyle",
506
507
  "plural": false,
507
- "selections": [v7 /*: any*/, v1 /*: any*/, v0 /*: any*/, {
508
+ "selections": [v8 /*: any*/, v1 /*: any*/, v0 /*: any*/, {
508
509
  "alias": null,
509
510
  "args": null,
510
511
  "concreteType": "FontCollection",
511
512
  "kind": "LinkedField",
512
513
  "name": "family",
513
514
  "plural": false,
514
- "selections": [v8 /*: any*/, v0 /*: any*/],
515
+ "selections": [v9 /*: any*/, v0 /*: any*/],
515
516
  "storageKey": null
516
517
  }],
517
518
  "storageKey": null
@@ -539,21 +540,21 @@ const node = function () {
539
540
  "kind": "LinkedField",
540
541
  "name": "fontStyles",
541
542
  "plural": true,
542
- "selections": [v7 /*: any*/, v1 /*: any*/, v0 /*: any*/],
543
+ "selections": [v8 /*: any*/, v1 /*: any*/, v0 /*: any*/],
543
544
  "storageKey": null
544
545
  }, v1 /*: any*/],
545
546
  "type": "Bundle",
546
547
  "abstractKey": null
547
548
  }, {
548
549
  "kind": "InlineFragment",
549
- "selections": [v7 /*: any*/, v1 /*: any*/, {
550
+ "selections": [v8 /*: any*/, v1 /*: any*/, {
550
551
  "alias": null,
551
552
  "args": null,
552
553
  "concreteType": "FontCollection",
553
554
  "kind": "LinkedField",
554
555
  "name": "family",
555
556
  "plural": false,
556
- "selections": [v1 /*: any*/, v8 /*: any*/, v0 /*: any*/],
557
+ "selections": [v1 /*: any*/, v9 /*: any*/, v0 /*: any*/],
557
558
  "storageKey": null
558
559
  }, {
559
560
  "alias": null,
@@ -583,14 +584,14 @@ const node = function () {
583
584
  "kind": "LinkedField",
584
585
  "name": "licenseVariables",
585
586
  "plural": true,
586
- "selections": [v0 /*: any*/, v1 /*: any*/, v9 /*: any*/, {
587
+ "selections": [v0 /*: any*/, v1 /*: any*/, v10 /*: any*/, {
587
588
  "alias": "options",
588
589
  "args": null,
589
590
  "concreteType": "LicenseOption",
590
591
  "kind": "LinkedField",
591
592
  "name": "licenseOptions",
592
593
  "plural": true,
593
- "selections": [v0 /*: any*/, v4 /*: any*/, v1 /*: any*/],
594
+ "selections": [v0 /*: any*/, v5 /*: any*/, v1 /*: any*/],
594
595
  "storageKey": null
595
596
  }],
596
597
  "storageKey": null
@@ -601,7 +602,7 @@ const node = function () {
601
602
  "abstractKey": "__isLicenseable"
602
603
  }, {
603
604
  "kind": "InlineFragment",
604
- "selections": v10 /*: any*/,
605
+ "selections": v11 /*: any*/,
605
606
  "type": "Node",
606
607
  "abstractKey": "__isNode"
607
608
  }],
@@ -622,7 +623,7 @@ const node = function () {
622
623
  "kind": "LinkedField",
623
624
  "name": "license",
624
625
  "plural": false,
625
- "selections": [v0 /*: any*/, v1 /*: any*/, v11 /*: any*/],
626
+ "selections": [v0 /*: any*/, v1 /*: any*/, v12 /*: any*/],
626
627
  "storageKey": null
627
628
  }, {
628
629
  "alias": "variable",
@@ -631,7 +632,7 @@ const node = function () {
631
632
  "kind": "LinkedField",
632
633
  "name": "licenseVariable",
633
634
  "plural": false,
634
- "selections": [v0 /*: any*/, v9 /*: any*/, {
635
+ "selections": [v0 /*: any*/, v10 /*: any*/, {
635
636
  "alias": null,
636
637
  "args": null,
637
638
  "kind": "ScalarField",
@@ -646,7 +647,7 @@ const node = function () {
646
647
  "kind": "LinkedField",
647
648
  "name": "licenseOption",
648
649
  "plural": false,
649
- "selections": [v0 /*: any*/, v4 /*: any*/, v11 /*: any*/, v1 /*: any*/, {
650
+ "selections": [v0 /*: any*/, v5 /*: any*/, v12 /*: any*/, v1 /*: any*/, {
650
651
  "alias": null,
651
652
  "args": null,
652
653
  "kind": "ScalarField",
@@ -667,7 +668,7 @@ const node = function () {
667
668
  "kind": "LinkedField",
668
669
  "name": "licenseVariable",
669
670
  "plural": false,
670
- "selections": [v0 /*: any*/, v9 /*: any*/],
671
+ "selections": [v0 /*: any*/, v10 /*: any*/],
671
672
  "storageKey": null
672
673
  }, {
673
674
  "alias": null,
@@ -676,7 +677,7 @@ const node = function () {
676
677
  "kind": "LinkedField",
677
678
  "name": "licenseOption",
678
679
  "plural": false,
679
- "selections": v10 /*: any*/,
680
+ "selections": v11 /*: any*/,
680
681
  "storageKey": null
681
682
  }],
682
683
  "storageKey": null
@@ -729,17 +730,17 @@ const node = function () {
729
730
  "storageKey": null
730
731
  }, v1 /*: any*/],
731
732
  "storageKey": null
732
- }, v0 /*: any*/],
733
+ }, v3 /*: any*/, v0 /*: any*/],
733
734
  "storageKey": null
734
735
  }]
735
736
  },
736
737
  "params": {
737
- "cacheID": "bf2fd4f717c01564a157a337e8bffe9f",
738
+ "cacheID": "ee59555f3eba7a42c832a3d70b0315de",
738
739
  "id": null,
739
740
  "metadata": {},
740
741
  "name": "CartQuery",
741
742
  "operationKind": "query",
742
- "text": "query CartQuery {\n viewer {\n ...StripeProvider_viewer\n ...CartOrder_viewer\n currentOrder {\n ...CartOrder_order\n id\n }\n id\n }\n}\n\nfragment AddressFields_viewer on Viewer {\n countries {\n code\n name\n }\n}\n\nfragment CartItem_node on OrderItem {\n id\n price {\n ...Price_price\n }\n sku {\n price {\n ...Price_price\n }\n product {\n __isSkuProduct: __typename\n __typename\n ...CollectionAa_product\n ...FontStyle_fontStyle\n ... on FontStyle {\n family {\n name\n cssUrl\n id\n }\n name\n variableInstances {\n name\n }\n }\n ... on Bundle {\n name\n }\n ... on FontCollection {\n name\n isVariableFont\n totalStyles\n featureStyle {\n family {\n cssUrl\n id\n }\n id\n }\n }\n ... on Licenseable {\n __isLicenseable: __typename\n licenses {\n id\n name\n variables: licenseVariables {\n id\n name\n variableType\n options: licenseOptions {\n id\n amount\n name\n }\n }\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n licenseSelections {\n id\n license {\n id\n name\n multiplier\n }\n variable: licenseVariable {\n id\n variableType\n ...VariableTableAmounts_variable\n }\n option: licenseOption {\n id\n amount\n multiplier\n name\n ...VariableTableAmounts_option\n }\n variableText\n }\n}\n\nfragment CartOrder_order on Order {\n ...Checkout_order\n ...Download_order\n ...CartTotals_order\n orderItems {\n ...CartItem_node\n id\n licenseSelections {\n license {\n id\n }\n licenseVariable {\n id\n variableType\n }\n licenseOption {\n id\n }\n variableText\n id\n }\n }\n discount {\n id\n }\n customer {\n email\n name\n anonymous\n id\n }\n billingIdentity {\n ...IdentityBox_identity\n }\n licenseeIdentity {\n ...IdentityBox_identity\n }\n licenseeIsBillingIdentity\n stripePaymentMethod {\n card {\n last4\n brand\n }\n }\n stripePaymentIntent {\n status\n }\n canCompleteWithCoupon\n completedWithCoupon\n}\n\nfragment CartOrder_viewer on Viewer {\n ...Checkout_viewer\n settings {\n eulaAgreementLabel(format: HTML)\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 Checkout_order on Order {\n canCompleteWithCoupon\n customer {\n name\n email\n newsletterOptIn\n id\n }\n billingIdentity {\n name\n organization\n email\n phone\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n licenseeIdentity {\n name\n organization\n email\n phone\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n licenseeIsBillingIdentity\n}\n\nfragment Checkout_viewer on Viewer {\n ...AddressFields_viewer\n settings {\n uiFontName\n newsletterOptInLabel\n }\n themeConfig {\n customProperties\n }\n}\n\nfragment CollectionAa_product on SkuProduct {\n __isSkuProduct: __typename\n __typename\n ... on FontCollection {\n featureStyle {\n ...FontStyle_fontStyle\n id\n }\n }\n ... on Bundle {\n fontStyles {\n ...FontStyle_fontStyle\n id\n }\n }\n}\n\nfragment CouponText_coupon on Coupon {\n type\n percentAmount\n creditAmountRemaining {\n amount\n currency\n }\n}\n\nfragment Download_order on Order {\n id\n archiveUrl\n customer {\n email\n id\n }\n completedWithCoupon\n}\n\nfragment FontStyle_fontStyle on FontStyle {\n cssFamily\n name\n}\n\nfragment IdentityBox_identity on Identity {\n email\n phoneFormatted\n addressFormatted\n vatNumber\n}\n\nfragment Price_price on Money {\n amount\n currency\n}\n\nfragment StripeProvider_viewer on Viewer {\n settings {\n uiFontUrl\n uiFontName\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"
743
+ "text": "query CartQuery {\n viewer {\n ...StripeProvider_viewer\n ...CartOrder_viewer\n currentOrder {\n ...CartOrder_order\n id\n }\n id\n }\n}\n\nfragment AddressFields_viewer on Viewer {\n countries {\n code\n name\n }\n}\n\nfragment CartItem_node on OrderItem {\n id\n price {\n ...Price_price\n }\n sku {\n price {\n ...Price_price\n }\n product {\n __isSkuProduct: __typename\n __typename\n ...CollectionAa_product\n ...FontStyle_fontStyle\n ... on FontStyle {\n family {\n name\n cssUrl\n id\n }\n name\n variableInstances {\n name\n }\n }\n ... on Bundle {\n name\n }\n ... on FontCollection {\n name\n isVariableFont\n totalStyles\n featureStyle {\n family {\n cssUrl\n id\n }\n id\n }\n }\n ... on Licenseable {\n __isLicenseable: __typename\n licenses {\n id\n name\n variables: licenseVariables {\n id\n name\n variableType\n options: licenseOptions {\n id\n amount\n name\n }\n }\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n licenseSelections {\n id\n license {\n id\n name\n multiplier\n }\n variable: licenseVariable {\n id\n variableType\n ...VariableTableAmounts_variable\n }\n option: licenseOption {\n id\n amount\n multiplier\n name\n ...VariableTableAmounts_option\n }\n variableText\n }\n}\n\nfragment CartOrder_order on Order {\n ...Checkout_order\n ...Download_order\n ...CartTotals_order\n orderItems {\n ...CartItem_node\n id\n licenseSelections {\n license {\n id\n }\n licenseVariable {\n id\n variableType\n }\n licenseOption {\n id\n }\n variableText\n id\n }\n }\n discount {\n id\n }\n customer {\n email\n name\n anonymous\n id\n }\n billingIdentity {\n ...IdentityBox_identity\n }\n licenseeIdentity {\n ...IdentityBox_identity\n }\n licenseeIsBillingIdentity\n stripePaymentMethod {\n card {\n last4\n brand\n }\n }\n stripePaymentIntent {\n status\n }\n canCompleteWithCoupon\n completedWithCoupon\n}\n\nfragment CartOrder_viewer on Viewer {\n ...Checkout_viewer\n settings {\n eulaAgreementLabel(format: HTML)\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 Checkout_order on Order {\n canCompleteWithCoupon\n customer {\n name\n email\n newsletterOptIn\n id\n }\n billingIdentity {\n name\n organization\n email\n phone\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n licenseeIdentity {\n name\n organization\n email\n phone\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n licenseeIsBillingIdentity\n}\n\nfragment Checkout_viewer on Viewer {\n ...AddressFields_viewer\n country\n settings {\n uiFontName\n newsletterOptInLabel\n }\n themeConfig {\n customProperties\n }\n}\n\nfragment CollectionAa_product on SkuProduct {\n __isSkuProduct: __typename\n __typename\n ... on FontCollection {\n featureStyle {\n ...FontStyle_fontStyle\n id\n }\n }\n ... on Bundle {\n fontStyles {\n ...FontStyle_fontStyle\n id\n }\n }\n}\n\nfragment CouponText_coupon on Coupon {\n type\n percentAmount\n creditAmountRemaining {\n amount\n currency\n }\n}\n\nfragment Download_order on Order {\n id\n archiveUrl\n customer {\n email\n id\n }\n completedWithCoupon\n}\n\nfragment FontStyle_fontStyle on FontStyle {\n cssFamily\n name\n}\n\nfragment IdentityBox_identity on Identity {\n email\n phoneFormatted\n addressFormatted\n vatNumber\n}\n\nfragment Price_price on Money {\n amount\n currency\n}\n\nfragment StripeProvider_viewer on Viewer {\n settings {\n uiFontUrl\n uiFontName\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"
743
744
  }
744
745
  };
745
746
  }();
@@ -1,11 +1,12 @@
1
1
  /**
2
- * @generated SignedSource<<2d79fa0f79d75c1cf358e36a7ae1fe25>>
2
+ * @generated SignedSource<<6d346bfae5f878131c423bbc5cb1f999>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */
6
6
  import { ReaderFragment } from 'relay-runtime';
7
7
  import { FragmentRefs } from "relay-runtime";
8
8
  export type Checkout_viewer$data = {
9
+ readonly country: string;
9
10
  readonly settings: {
10
11
  readonly newsletterOptInLabel: string | null;
11
12
  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<<2d79fa0f79d75c1cf358e36a7ae1fe25>>
8
+ * @generated SignedSource<<6d346bfae5f878131c423bbc5cb1f999>>
9
9
  * @lightSyntaxTransform
10
10
  * @nogrep
11
11
  */
@@ -23,6 +23,12 @@ const node = {
23
23
  "args": null,
24
24
  "kind": "FragmentSpread",
25
25
  "name": "AddressFields_viewer"
26
+ }, {
27
+ "alias": null,
28
+ "args": null,
29
+ "kind": "ScalarField",
30
+ "name": "country",
31
+ "storageKey": null
26
32
  }, {
27
33
  "alias": null,
28
34
  "args": null,
@@ -63,6 +69,6 @@ const node = {
63
69
  "type": "Viewer",
64
70
  "abstractKey": null
65
71
  };
66
- node.hash = "d20d03a2aab3f8bc454ac19fc6368178";
72
+ node.hash = "be63ce5562013aa6a1439e6259c80e2f";
67
73
  var _default = node;
68
74
  exports.default = _default;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<96ce8ff8b00c49e7abd5a6c672e3b256>>
2
+ * @generated SignedSource<<521e669f9d4339ffe87ed5fb177a9271>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  /**
8
- * @generated SignedSource<<96ce8ff8b00c49e7abd5a6c672e3b256>>
8
+ * @generated SignedSource<<521e669f9d4339ffe87ed5fb177a9271>>
9
9
  * @lightSyntaxTransform
10
10
  * @nogrep
11
11
  */
@@ -40,19 +40,26 @@ const node = function () {
40
40
  "storageKey": null
41
41
  },
42
42
  v3 = {
43
+ "alias": null,
44
+ "args": null,
45
+ "kind": "ScalarField",
46
+ "name": "country",
47
+ "storageKey": null
48
+ },
49
+ v4 = {
43
50
  "alias": null,
44
51
  "args": null,
45
52
  "kind": "ScalarField",
46
53
  "name": "email",
47
54
  "storageKey": null
48
55
  },
49
- v4 = [v2 /*: any*/, {
56
+ v5 = [v2 /*: any*/, {
50
57
  "alias": null,
51
58
  "args": null,
52
59
  "kind": "ScalarField",
53
60
  "name": "organization",
54
61
  "storageKey": null
55
- }, v3 /*: any*/, {
62
+ }, v4 /*: any*/, {
56
63
  "alias": null,
57
64
  "args": null,
58
65
  "kind": "ScalarField",
@@ -76,13 +83,7 @@ const node = function () {
76
83
  "kind": "ScalarField",
77
84
  "name": "sublocality",
78
85
  "storageKey": null
79
- }, {
80
- "alias": null,
81
- "args": null,
82
- "kind": "ScalarField",
83
- "name": "country",
84
- "storageKey": null
85
- }, {
86
+ }, v3 /*: any*/, {
86
87
  "alias": null,
87
88
  "args": null,
88
89
  "kind": "ScalarField",
@@ -164,7 +165,7 @@ const node = function () {
164
165
  "storageKey": null
165
166
  }, v2 /*: any*/],
166
167
  "storageKey": null
167
- }, {
168
+ }, v3 /*: any*/, {
168
169
  "alias": null,
169
170
  "args": null,
170
171
  "concreteType": "Settings",
@@ -220,7 +221,7 @@ const node = function () {
220
221
  "kind": "LinkedField",
221
222
  "name": "customer",
222
223
  "plural": false,
223
- "selections": [v2 /*: any*/, v3 /*: any*/, {
224
+ "selections": [v2 /*: any*/, v4 /*: any*/, {
224
225
  "alias": null,
225
226
  "args": null,
226
227
  "kind": "ScalarField",
@@ -235,7 +236,7 @@ const node = function () {
235
236
  "kind": "LinkedField",
236
237
  "name": "billingIdentity",
237
238
  "plural": false,
238
- "selections": v4 /*: any*/,
239
+ "selections": v5 /*: any*/,
239
240
  "storageKey": null
240
241
  }, {
241
242
  "alias": null,
@@ -244,7 +245,7 @@ const node = function () {
244
245
  "kind": "LinkedField",
245
246
  "name": "licenseeIdentity",
246
247
  "plural": false,
247
- "selections": v4 /*: any*/,
248
+ "selections": v5 /*: any*/,
248
249
  "storageKey": null
249
250
  }, {
250
251
  "alias": null,
@@ -259,12 +260,12 @@ const node = function () {
259
260
  }]
260
261
  },
261
262
  "params": {
262
- "cacheID": "137d84103baf333291ca1e91147e874b",
263
+ "cacheID": "cbb1573c243a4523823ad3994bc62a11",
263
264
  "id": null,
264
265
  "metadata": {},
265
266
  "name": "StoreModalCheckoutQuery",
266
267
  "operationKind": "query",
267
- "text": "query StoreModalCheckoutQuery {\n viewer {\n ...Checkout_viewer\n currentOrder {\n ...Checkout_order\n stripePaymentMethod {\n id\n }\n id\n }\n id\n }\n}\n\nfragment AddressFields_viewer on Viewer {\n countries {\n code\n name\n }\n}\n\nfragment Checkout_order on Order {\n canCompleteWithCoupon\n customer {\n name\n email\n newsletterOptIn\n id\n }\n billingIdentity {\n name\n organization\n email\n phone\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n licenseeIdentity {\n name\n organization\n email\n phone\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n licenseeIsBillingIdentity\n}\n\nfragment Checkout_viewer on Viewer {\n ...AddressFields_viewer\n settings {\n uiFontName\n newsletterOptInLabel\n }\n themeConfig {\n customProperties\n }\n}\n"
268
+ "text": "query StoreModalCheckoutQuery {\n viewer {\n ...Checkout_viewer\n currentOrder {\n ...Checkout_order\n stripePaymentMethod {\n id\n }\n id\n }\n id\n }\n}\n\nfragment AddressFields_viewer on Viewer {\n countries {\n code\n name\n }\n}\n\nfragment Checkout_order on Order {\n canCompleteWithCoupon\n customer {\n name\n email\n newsletterOptIn\n id\n }\n billingIdentity {\n name\n organization\n email\n phone\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n licenseeIdentity {\n name\n organization\n email\n phone\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n licenseeIsBillingIdentity\n}\n\nfragment Checkout_viewer on Viewer {\n ...AddressFields_viewer\n country\n settings {\n uiFontName\n newsletterOptInLabel\n }\n themeConfig {\n customProperties\n }\n}\n"
268
269
  }
269
270
  };
270
271
  }();
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<93e0f7b4ef420e27698a4c1a5ebce69b>>
2
+ * @generated SignedSource<<74541abfe3db585cb78d8406b37c9635>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */
@@ -8,6 +8,7 @@ import { FragmentRefs } from "relay-runtime";
8
8
  export type StoreModalProductLicenseSelection_collection$data = {
9
9
  readonly licenses: ReadonlyArray<{
10
10
  readonly id: string;
11
+ readonly " $fragmentSpreads": FragmentRefs<"StoreModalProductLicense_license">;
11
12
  }> | null;
12
13
  readonly " $fragmentType": "StoreModalProductLicenseSelection_collection";
13
14
  };
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  /**
8
- * @generated SignedSource<<93e0f7b4ef420e27698a4c1a5ebce69b>>
8
+ * @generated SignedSource<<74541abfe3db585cb78d8406b37c9635>>
9
9
  * @lightSyntaxTransform
10
10
  * @nogrep
11
11
  */
@@ -32,12 +32,16 @@ const node = {
32
32
  "kind": "ScalarField",
33
33
  "name": "id",
34
34
  "storageKey": null
35
+ }, {
36
+ "args": null,
37
+ "kind": "FragmentSpread",
38
+ "name": "StoreModalProductLicense_license"
35
39
  }],
36
40
  "storageKey": null
37
41
  }],
38
42
  "type": "FontCollection",
39
43
  "abstractKey": null
40
44
  };
41
- node.hash = "143f5887c721a6a68212d0a7b3c49ced";
45
+ node.hash = "2767ff3f8ddb4354051074bc3d0312e6";
42
46
  var _default = node;
43
47
  exports.default = _default;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<53785c06f7974554d11f6398faa2ce3d>>
2
+ * @generated SignedSource<<2f95989976f4e3a1aa8fccdfed7a73be>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */
@@ -20,7 +20,7 @@ export type StoreModalProductQuery$data = {
20
20
  readonly viewer: {
21
21
  readonly endpoint: string | null;
22
22
  readonly stripeAccountId: string | null;
23
- readonly " $fragmentSpreads": FragmentRefs<"StoreModalProductLicenseSelection_viewer" | "StoreModalProductSummary_viewer">;
23
+ readonly " $fragmentSpreads": FragmentRefs<"StoreModalProductSummary_viewer">;
24
24
  };
25
25
  };
26
26
  export type StoreModalProductQuery = {
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  /**
8
- * @generated SignedSource<<53785c06f7974554d11f6398faa2ce3d>>
8
+ * @generated SignedSource<<2f95989976f4e3a1aa8fccdfed7a73be>>
9
9
  * @lightSyntaxTransform
10
10
  * @nogrep
11
11
  */
@@ -298,10 +298,6 @@ const node = function () {
298
298
  "name": "viewer",
299
299
  "plural": false,
300
300
  "selections": [{
301
- "args": null,
302
- "kind": "FragmentSpread",
303
- "name": "StoreModalProductLicenseSelection_viewer"
304
- }, {
305
301
  "args": null,
306
302
  "kind": "FragmentSpread",
307
303
  "name": "StoreModalProductSummary_viewer"
@@ -350,92 +346,79 @@ const node = function () {
350
346
  "kind": "LinkedField",
351
347
  "name": "licenses",
352
348
  "plural": true,
353
- "selections": v16 /*: any*/,
354
- "storageKey": null
355
- }],
356
- "type": "FontCollection",
357
- "abstractKey": null
358
- }],
359
- "storageKey": null
360
- }, {
361
- "alias": null,
362
- "args": null,
363
- "concreteType": "Viewer",
364
- "kind": "LinkedField",
365
- "name": "viewer",
366
- "plural": false,
367
- "selections": [{
368
- "alias": null,
369
- "args": [{
370
- "kind": "Literal",
371
- "name": "licenseTypes",
372
- "value": ["RETAIL"]
373
- }],
374
- "concreteType": "License",
375
- "kind": "LinkedField",
376
- "name": "licenses",
377
- "plural": true,
378
- "selections": [v2 /*: any*/, {
379
- "alias": null,
380
- "args": null,
381
- "kind": "ScalarField",
382
- "name": "url",
383
- "storageKey": null
384
- }, v10 /*: any*/, {
385
- "alias": null,
386
- "args": [{
387
- "kind": "Literal",
388
- "name": "format",
389
- "value": "HTML"
390
- }],
391
- "kind": "ScalarField",
392
- "name": "description",
393
- "storageKey": "description(format:\"HTML\")"
394
- }, {
395
- "alias": null,
396
- "args": null,
397
- "kind": "ScalarField",
398
- "name": "defaultSelected",
399
- "storageKey": null
400
- }, {
401
- "alias": "variables",
402
- "args": null,
403
- "concreteType": "LicenseVariable",
404
- "kind": "LinkedField",
405
- "name": "licenseVariables",
406
- "plural": true,
407
- "selections": [v2 /*: any*/, v10 /*: any*/, {
349
+ "selections": [v2 /*: any*/, {
408
350
  "alias": null,
409
351
  "args": null,
410
352
  "kind": "ScalarField",
411
- "name": "variableType",
353
+ "name": "url",
412
354
  "storageKey": null
355
+ }, v10 /*: any*/, {
356
+ "alias": null,
357
+ "args": [{
358
+ "kind": "Literal",
359
+ "name": "format",
360
+ "value": "HTML"
361
+ }],
362
+ "kind": "ScalarField",
363
+ "name": "description",
364
+ "storageKey": "description(format:\"HTML\")"
413
365
  }, {
414
366
  "alias": null,
415
367
  "args": null,
416
368
  "kind": "ScalarField",
417
- "name": "units",
369
+ "name": "defaultSelected",
418
370
  "storageKey": null
419
371
  }, {
420
- "alias": "options",
372
+ "alias": "variables",
421
373
  "args": null,
422
- "concreteType": "LicenseOption",
374
+ "concreteType": "LicenseVariable",
423
375
  "kind": "LinkedField",
424
- "name": "licenseOptions",
376
+ "name": "licenseVariables",
425
377
  "plural": true,
426
- "selections": [v2 /*: any*/, v10 /*: any*/, v13 /*: any*/, {
378
+ "selections": [v2 /*: any*/, v10 /*: any*/, {
379
+ "alias": null,
380
+ "args": null,
381
+ "kind": "ScalarField",
382
+ "name": "variableType",
383
+ "storageKey": null
384
+ }, {
427
385
  "alias": null,
428
386
  "args": null,
429
387
  "kind": "ScalarField",
430
- "name": "amounts",
388
+ "name": "units",
389
+ "storageKey": null
390
+ }, {
391
+ "alias": "options",
392
+ "args": null,
393
+ "concreteType": "LicenseOption",
394
+ "kind": "LinkedField",
395
+ "name": "licenseOptions",
396
+ "plural": true,
397
+ "selections": [v2 /*: any*/, v10 /*: any*/, v13 /*: any*/, {
398
+ "alias": null,
399
+ "args": null,
400
+ "kind": "ScalarField",
401
+ "name": "amounts",
402
+ "storageKey": null
403
+ }],
431
404
  "storageKey": null
432
405
  }],
433
406
  "storageKey": null
434
407
  }],
435
408
  "storageKey": null
436
409
  }],
437
- "storageKey": "licenses(licenseTypes:[\"RETAIL\"])"
438
- }, {
410
+ "type": "FontCollection",
411
+ "abstractKey": null
412
+ }],
413
+ "storageKey": null
414
+ }, {
415
+ "alias": null,
416
+ "args": null,
417
+ "concreteType": "Viewer",
418
+ "kind": "LinkedField",
419
+ "name": "viewer",
420
+ "plural": false,
421
+ "selections": [{
439
422
  "alias": null,
440
423
  "args": null,
441
424
  "concreteType": "TaxCollection",
@@ -525,15 +508,15 @@ const node = function () {
525
508
  }]
526
509
  },
527
510
  "params": {
528
- "cacheID": "7e8641f7fc48fc17cfb4970acd5c3585",
511
+ "cacheID": "417d7264f8ad5d9bab8900ec5407670a",
529
512
  "id": null,
530
513
  "metadata": {},
531
514
  "name": "StoreModalProductQuery",
532
515
  "operationKind": "query",
533
- "text": "query StoreModalProductQuery(\n $productId: ID!\n) {\n collection: node(id: $productId) {\n __typename\n id\n ...StoreModalFamily_collection\n ...StoreModalProductLicenseSelection_collection\n ... on FontCollection {\n children(collectionTypes: [FAMILY]) {\n id\n ...StoreModalFamily_collection\n }\n }\n }\n viewer {\n ...StoreModalProductLicenseSelection_viewer\n ...StoreModalProductSummary_viewer\n endpoint\n stripeAccountId\n id\n }\n}\n\nfragment FontStyle_fontStyle on FontStyle {\n cssFamily\n name\n}\n\nfragment Price_price on Money {\n amount\n currency\n}\n\nfragment SKUPrice_sku on Sku {\n id\n price(licenseOptions: []) {\n amount\n ...Price_price\n }\n}\n\nfragment StoreModalBundleButton_bundle on Bundle {\n name\n sku {\n ...SKUPrice_sku\n id\n }\n fontStyles {\n id\n ...FontStyle_fontStyle\n }\n}\n\nfragment StoreModalFamilyButton_collection on FontCollection {\n isVariableFont\n collectionType\n name\n sku {\n ...SKUPrice_sku\n id\n }\n parent {\n id\n }\n featureStyle {\n ...FontStyle_fontStyle\n id\n }\n totalStyles\n totalStylesPrice {\n ...Price_price\n }\n ...useTotalStyles_fontCollection\n}\n\nfragment StoreModalFamily_collection on FontCollection {\n ...StoreModalFamilyButton_collection\n cssUrl\n collectionType\n sku {\n id\n }\n isVariableFont\n bundles {\n id\n fontStyles {\n id\n cssFamily\n cssWeight\n cssStretch\n ...StoreModalStyleButton_fontStyle\n }\n ...StoreModalBundleButton_bundle\n }\n fontStyles {\n id\n cssFamily\n cssWeight\n cssStretch\n ...StoreModalStyleButton_fontStyle\n }\n}\n\nfragment StoreModalProductLicenseSelection_collection on FontCollection {\n licenses {\n id\n }\n}\n\nfragment StoreModalProductLicenseSelection_viewer on Viewer {\n licenses(licenseTypes: [RETAIL]) {\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 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 on Viewer {\n taxCollections {\n taxName\n inclusive\n }\n precart(skuIds: [], licenseOptions: []) {\n skus {\n price(licenseOptions: []) {\n amount\n }\n product {\n __typename\n ... on FontCollection {\n totalStyles\n totalStylesPrice(licenseOptions: []) {\n amount\n }\n }\n ... on Bundle {\n totalStyles\n totalStylesPrice(licenseOptions: []) {\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 on FontStyle {\n ...FontStyle_fontStyle\n id\n name\n sku {\n ...SKUPrice_sku\n id\n }\n variableInstances {\n name\n coordinates {\n axis\n value\n }\n }\n variableAxes {\n name\n }\n}\n\nfragment VariableTableAmounts_option on LicenseOption {\n amounts\n}\n\nfragment VariableTableAmounts_variable on LicenseVariable {\n units\n}\n\nfragment useTotalStyles_fontCollection on FontCollection {\n totalStyles\n children(collectionTypes: [FAMILY]) {\n isVariableFont\n totalStyles\n id\n }\n}\n"
516
+ "text": "query StoreModalProductQuery(\n $productId: ID!\n) {\n collection: node(id: $productId) {\n __typename\n id\n ...StoreModalFamily_collection\n ...StoreModalProductLicenseSelection_collection\n ... on FontCollection {\n children(collectionTypes: [FAMILY]) {\n id\n ...StoreModalFamily_collection\n }\n }\n }\n viewer {\n ...StoreModalProductSummary_viewer\n endpoint\n stripeAccountId\n id\n }\n}\n\nfragment FontStyle_fontStyle on FontStyle {\n cssFamily\n name\n}\n\nfragment Price_price on Money {\n amount\n currency\n}\n\nfragment SKUPrice_sku on Sku {\n id\n price(licenseOptions: []) {\n amount\n ...Price_price\n }\n}\n\nfragment StoreModalBundleButton_bundle on Bundle {\n name\n sku {\n ...SKUPrice_sku\n id\n }\n fontStyles {\n id\n ...FontStyle_fontStyle\n }\n}\n\nfragment StoreModalFamilyButton_collection on FontCollection {\n isVariableFont\n collectionType\n name\n sku {\n ...SKUPrice_sku\n id\n }\n parent {\n id\n }\n featureStyle {\n ...FontStyle_fontStyle\n id\n }\n totalStyles\n totalStylesPrice {\n ...Price_price\n }\n ...useTotalStyles_fontCollection\n}\n\nfragment StoreModalFamily_collection on FontCollection {\n ...StoreModalFamilyButton_collection\n cssUrl\n collectionType\n sku {\n id\n }\n isVariableFont\n bundles {\n id\n fontStyles {\n id\n cssFamily\n cssWeight\n cssStretch\n ...StoreModalStyleButton_fontStyle\n }\n ...StoreModalBundleButton_bundle\n }\n fontStyles {\n id\n cssFamily\n cssWeight\n cssStretch\n ...StoreModalStyleButton_fontStyle\n }\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 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 on Viewer {\n taxCollections {\n taxName\n inclusive\n }\n precart(skuIds: [], licenseOptions: []) {\n skus {\n price(licenseOptions: []) {\n amount\n }\n product {\n __typename\n ... on FontCollection {\n totalStyles\n totalStylesPrice(licenseOptions: []) {\n amount\n }\n }\n ... on Bundle {\n totalStyles\n totalStylesPrice(licenseOptions: []) {\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 on FontStyle {\n ...FontStyle_fontStyle\n id\n name\n sku {\n ...SKUPrice_sku\n id\n }\n variableInstances {\n name\n coordinates {\n axis\n value\n }\n }\n variableAxes {\n name\n }\n}\n\nfragment VariableTableAmounts_option on LicenseOption {\n amounts\n}\n\nfragment VariableTableAmounts_variable on LicenseVariable {\n units\n}\n\nfragment useTotalStyles_fontCollection on FontCollection {\n totalStyles\n children(collectionTypes: [FAMILY]) {\n isVariableFont\n totalStyles\n id\n }\n}\n"
534
517
  }
535
518
  };
536
519
  }();
537
- node.hash = "0d5e34aef3b279fd0bda1871d66ed157";
520
+ node.hash = "d9a141adc8aa9c28676b0c311c79644d";
538
521
  var _default = node;
539
522
  exports.default = _default;
@@ -46,13 +46,13 @@ const Checkout = _ref => {
46
46
  skipPaymentMethod = false
47
47
  } = _ref;
48
48
  const orderData = (0, _reactRelay.useFragment)((_Checkout_order2.default.hash && _Checkout_order2.default.hash !== "693ae9c7f2c7fe9a179bad7b86c16928" && console.error("The definition of 'Checkout_order' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _Checkout_order), order);
49
- const viewerData = (0, _reactRelay.useFragment)((_Checkout_viewer2.default.hash && _Checkout_viewer2.default.hash !== "d20d03a2aab3f8bc454ac19fc6368178" && console.error("The definition of 'Checkout_viewer' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _Checkout_viewer), viewer);
49
+ const viewerData = (0, _reactRelay.useFragment)((_Checkout_viewer2.default.hash && _Checkout_viewer2.default.hash !== "be63ce5562013aa6a1439e6259c80e2f" && console.error("The definition of 'Checkout_viewer' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _Checkout_viewer), viewer);
50
50
  const identity = {
51
51
  name: '',
52
52
  organization: '',
53
53
  email: '',
54
54
  phone: '',
55
- country: 'US',
55
+ country: viewerData.country,
56
56
  administrativeArea: null,
57
57
  street: '',
58
58
  locality: '',
@@ -23,7 +23,7 @@ const StoreModalProduct = _ref => {
23
23
  prepared
24
24
  } = _ref;
25
25
  const config = (0, _react.useContext)(_ConfigContext.default);
26
- const data = (0, _reactRelay.usePreloadedQuery)((_StoreModalProductQuery2.default.hash && _StoreModalProductQuery2.default.hash !== "0d5e34aef3b279fd0bda1871d66ed157" && console.error("The definition of 'StoreModalProductQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalProductQuery), prepared.productQuery);
26
+ const data = (0, _reactRelay.usePreloadedQuery)((_StoreModalProductQuery2.default.hash && _StoreModalProductQuery2.default.hash !== "d9a141adc8aa9c28676b0c311c79644d" && console.error("The definition of 'StoreModalProductQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalProductQuery), prepared.productQuery);
27
27
  const {
28
28
  collection,
29
29
  viewer
@@ -59,7 +59,6 @@ const StoreModalProduct = _ref => {
59
59
  }
60
60
  return /*#__PURE__*/_react.default.createElement(_StoreModalPageContainer.default, null, {
61
61
  body: /*#__PURE__*/_react.default.createElement(_react.Fragment, null, licensesPosition === 'top' && /*#__PURE__*/_react.default.createElement(_StoreModalProductLicenseSelection.default, {
62
- viewer: viewer,
63
62
  collection: collection
64
63
  }), /*#__PURE__*/_react.default.createElement(_StoreModalFamily.default, {
65
64
  title: "Select fonts",
@@ -70,7 +69,6 @@ const StoreModalProduct = _ref => {
70
69
  collection: child,
71
70
  onSelect: handleSelectProduct
72
71
  })), licensesPosition === 'bottom' && /*#__PURE__*/_react.default.createElement(_StoreModalProductLicenseSelection.default, {
73
- viewer: viewer,
74
72
  collection: collection
75
73
  })),
76
74
  stickyFooter: viewer.stripeAccountId ? /*#__PURE__*/_react.default.createElement(_StoreModalProductSummary.default, {
@@ -1,9 +1,7 @@
1
1
  import React from 'react';
2
- import { StoreModalProductLicenseSelection_viewer$key } from '../../__generated__/StoreModalProductLicenseSelection_viewer.graphql';
3
2
  import { StoreModalProductLicenseSelection_collection$key } from '__generated__/StoreModalProductLicenseSelection_collection.graphql';
4
3
  interface StoreModalProductLicenseSelectionProps {
5
- viewer: StoreModalProductLicenseSelection_viewer$key;
6
4
  collection: StoreModalProductLicenseSelection_collection$key;
7
5
  }
8
- export default function StoreModalProductLicenseSelection({ viewer: viewerKey, collection: collectionKey, }: StoreModalProductLicenseSelectionProps): React.JSX.Element;
6
+ export default function StoreModalProductLicenseSelection({ collection: collectionKey, }: StoreModalProductLicenseSelectionProps): React.JSX.Element;
9
7
  export {};
@@ -5,28 +5,20 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = StoreModalProductLicenseSelection;
7
7
  var _StoreModalProductLicenseSelection_collection2 = _interopRequireDefault(require("../../__generated__/StoreModalProductLicenseSelection_collection.graphql"));
8
- var _StoreModalProductLicenseSelection_viewer2 = _interopRequireDefault(require("../../__generated__/StoreModalProductLicenseSelection_viewer.graphql"));
9
8
  var _react = _interopRequireDefault(require("react"));
10
9
  var _reactRelay = require("react-relay");
11
10
  var _StoreModalProductLicense = _interopRequireDefault(require("./StoreModalProductLicense"));
12
11
  var _ContainerElement = _interopRequireDefault(require("./ContainerElement"));
13
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
13
  function StoreModalProductLicenseSelection(_ref) {
15
- var _collection$licenses, _viewer$licenses, _viewer$licenses2;
14
+ var _collection$licenses;
16
15
  let {
17
- viewer: viewerKey,
18
16
  collection: collectionKey
19
17
  } = _ref;
20
- const viewer = (0, _reactRelay.useFragment)((_StoreModalProductLicenseSelection_viewer2.default.hash && _StoreModalProductLicenseSelection_viewer2.default.hash !== "132699969de1b8ff9dafa8604b3c5f05" && console.error("The definition of 'StoreModalProductLicenseSelection_viewer' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalProductLicenseSelection_viewer), viewerKey);
21
- const collection = (0, _reactRelay.useFragment)((_StoreModalProductLicenseSelection_collection2.default.hash && _StoreModalProductLicenseSelection_collection2.default.hash !== "143f5887c721a6a68212d0a7b3c49ced" && console.error("The definition of 'StoreModalProductLicenseSelection_collection' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalProductLicenseSelection_collection), collectionKey);
22
- const collectionLicenses = ((_collection$licenses = collection.licenses) === null || _collection$licenses === void 0 ? void 0 : _collection$licenses.map(license => license.id)) ?? [];
23
- const licenses = (_viewer$licenses = viewer.licenses) === null || _viewer$licenses === void 0 ? void 0 : _viewer$licenses.filter(license => {
24
- if (collectionLicenses.length > 0) return collectionLicenses.includes(license.id);
25
- return true;
26
- });
18
+ const collection = (0, _reactRelay.useFragment)((_StoreModalProductLicenseSelection_collection2.default.hash && _StoreModalProductLicenseSelection_collection2.default.hash !== "2767ff3f8ddb4354051074bc3d0312e6" && console.error("The definition of 'StoreModalProductLicenseSelection_collection' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalProductLicenseSelection_collection), collectionKey);
27
19
  return /*#__PURE__*/_react.default.createElement(_ContainerElement.default, null, {
28
20
  title: 'Select licenses',
29
- licenses: viewer === null || viewer === void 0 ? void 0 : (_viewer$licenses2 = viewer.licenses) === null || _viewer$licenses2 === void 0 ? void 0 : _viewer$licenses2.map(license => license && /*#__PURE__*/_react.default.createElement(_StoreModalProductLicense.default, {
21
+ licenses: collection === null || collection === void 0 ? void 0 : (_collection$licenses = collection.licenses) === null || _collection$licenses === void 0 ? void 0 : _collection$licenses.map(license => license && /*#__PURE__*/_react.default.createElement(_StoreModalProductLicense.default, {
30
22
  key: license.id,
31
23
  license: license
32
24
  }))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fontdue-js",
3
- "version": "2.8.0-rc1",
3
+ "version": "2.8.0",
4
4
  "scripts": {
5
5
  "build": "npm run relay && run-p build-js build-css build-ts-declarations",
6
6
  "build-js": "babel src --out-dir dist --extensions .ts,.tsx,.js,.jsx",