fontdue-js 2.16.0 → 2.16.1

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,3 +1,7 @@
1
+ ## 2.16.1
2
+
3
+ - Fix an issue where cart tax total doesn't update properly after changing billing information
4
+
1
5
  ## 2.16.0
2
6
 
3
7
  - Adds data-tags attribute to the `TypeTesters`
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<06a3addceb553dbeade6359c5864ac00>>
2
+ * @generated SignedSource<<32ef739f082b36f9849982aa3e68bdf4>>
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<<06a3addceb553dbeade6359c5864ac00>>
8
+ * @generated SignedSource<<32ef739f082b36f9849982aa3e68bdf4>>
9
9
  * @lightSyntaxTransform
10
10
  * @nogrep
11
11
  */
@@ -387,10 +387,10 @@ const node = function () {
387
387
  "storageKey": "storeModalSelectLicenseeLabel(format:\"HTML\")"
388
388
  }, {
389
389
  "alias": null,
390
- "args": null,
390
+ "args": v9 /*: any*/,
391
391
  "kind": "ScalarField",
392
392
  "name": "newsletterOptInLabel",
393
- "storageKey": null
393
+ "storageKey": "newsletterOptInLabel(format:\"HTML\")"
394
394
  }],
395
395
  "storageKey": null
396
396
  }, {
@@ -873,12 +873,12 @@ const node = function () {
873
873
  }]
874
874
  },
875
875
  "params": {
876
- "cacheID": "cb03dade7bd93977cf5e20b30ec66ccb",
876
+ "cacheID": "0f87b0407f4a312d1e532c8fe116c7ea",
877
877
  "id": null,
878
878
  "metadata": {},
879
879
  "name": "StoreModalCartQuery",
880
880
  "operationKind": "query",
881
- "text": "query StoreModalCartQuery {\n viewer {\n ...StripeProvider_viewer\n ...OrderVariableSelection_variables\n ...StoreModalOrderVariableSelection_viewer\n ...StoreModalUnifiedCheckout_viewer\n currentOrder {\n ...CartState_order\n ...CartTotals_order\n ...StoreModalUnifiedCheckout_order\n id\n total {\n amount\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}\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}\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 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)\n orderVariableOptions {\n id\n amount\n }\n }\n}\n\nfragment Price_price on Money {\n amount\n currency\n}\n\nfragment StoreModalOrderVariableSelection_viewer on Viewer {\n ...OrderVariableSelection_variables\n orderVariables {\n id\n }\n currentOrder {\n id\n orderVariableSelections {\n orderVariable {\n id\n name\n variableType\n description(format: HTML)\n }\n orderVariableOption {\n id\n amount\n }\n id\n }\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 phone\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 phone\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n stripePaymentIntent {\n amount\n currency\n }\n}\n\nfragment StoreModalUnifiedCheckout_viewer on Viewer {\n ...AddressFields_viewer\n country\n settings {\n uiFontName\n eulaAgreementLabel(format: HTML)\n storeModalSelectLicenseeLabel(format: HTML)\n newsletterOptInLabel\n taxSystem\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"
881
+ "text": "query StoreModalCartQuery {\n viewer {\n ...StripeProvider_viewer\n ...OrderVariableSelection_variables\n ...StoreModalOrderVariableSelection_viewer\n ...StoreModalUnifiedCheckout_viewer\n currentOrder {\n ...CartState_order\n ...CartTotals_order\n ...StoreModalUnifiedCheckout_order\n id\n total {\n amount\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}\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}\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 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)\n orderVariableOptions {\n id\n amount\n }\n }\n}\n\nfragment Price_price on Money {\n amount\n currency\n}\n\nfragment StoreModalOrderVariableSelection_viewer on Viewer {\n ...OrderVariableSelection_variables\n orderVariables {\n id\n }\n currentOrder {\n id\n orderVariableSelections {\n orderVariable {\n id\n name\n variableType\n description(format: HTML)\n }\n orderVariableOption {\n id\n amount\n }\n id\n }\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 phone\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 phone\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n stripePaymentIntent {\n amount\n currency\n }\n}\n\nfragment StoreModalUnifiedCheckout_viewer on Viewer {\n ...AddressFields_viewer\n country\n settings {\n uiFontName\n eulaAgreementLabel(format: HTML)\n storeModalSelectLicenseeLabel(format: HTML)\n newsletterOptInLabel(format: HTML)\n taxSystem\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"
882
882
  }
883
883
  };
884
884
  }();
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<0992504a2d31c23dd34d2703a6f41c05>>
2
+ * @generated SignedSource<<08672c52c2443655fd58a4d585eaf169>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */
@@ -70,7 +70,7 @@ export type StoreModalUnifiedCheckoutUpdateOrderMutation$data = {
70
70
  readonly stripePaymentMethodId: ReadonlyArray<string | null> | null;
71
71
  } | null;
72
72
  readonly order: {
73
- readonly " $fragmentSpreads": FragmentRefs<"StoreModalUnifiedCheckout_order">;
73
+ readonly " $fragmentSpreads": FragmentRefs<"CartTotals_order" | "StoreModalUnifiedCheckout_order">;
74
74
  } | null;
75
75
  } | null;
76
76
  };
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  /**
8
- * @generated SignedSource<<0992504a2d31c23dd34d2703a6f41c05>>
8
+ * @generated SignedSource<<08672c52c2443655fd58a4d585eaf169>>
9
9
  * @lightSyntaxTransform
10
10
  * @nogrep
11
11
  */
@@ -109,13 +109,19 @@ const node = function () {
109
109
  }],
110
110
  "storageKey": null
111
111
  },
112
- v11 = {
112
+ v11 = [{
113
113
  "alias": null,
114
114
  "args": null,
115
115
  "kind": "ScalarField",
116
116
  "name": "amount",
117
117
  "storageKey": null
118
- },
118
+ }, {
119
+ "alias": null,
120
+ "args": null,
121
+ "kind": "ScalarField",
122
+ "name": "currency",
123
+ "storageKey": null
124
+ }],
119
125
  v12 = {
120
126
  "alias": null,
121
127
  "args": null,
@@ -185,6 +191,10 @@ const node = function () {
185
191
  "args": null,
186
192
  "kind": "FragmentSpread",
187
193
  "name": "StoreModalUnifiedCheckout_order"
194
+ }, {
195
+ "args": null,
196
+ "kind": "FragmentSpread",
197
+ "name": "CartTotals_order"
188
198
  }],
189
199
  "storageKey": null
190
200
  }, v10 /*: any*/],
@@ -231,7 +241,7 @@ const node = function () {
231
241
  "kind": "LinkedField",
232
242
  "name": "total",
233
243
  "plural": false,
234
- "selections": [v11 /*: any*/],
244
+ "selections": v11 /*: any*/,
235
245
  "storageKey": null
236
246
  }, {
237
247
  "alias": null,
@@ -279,13 +289,109 @@ const node = function () {
279
289
  "kind": "LinkedField",
280
290
  "name": "stripePaymentIntent",
281
291
  "plural": false,
282
- "selections": [v11 /*: any*/, {
292
+ "selections": v11 /*: any*/,
293
+ "storageKey": null
294
+ }, {
295
+ "alias": null,
296
+ "args": null,
297
+ "concreteType": "Money",
298
+ "kind": "LinkedField",
299
+ "name": "subtotal",
300
+ "plural": false,
301
+ "selections": v11 /*: any*/,
302
+ "storageKey": null
303
+ }, {
304
+ "alias": null,
305
+ "args": null,
306
+ "concreteType": "Discount",
307
+ "kind": "LinkedField",
308
+ "name": "discount",
309
+ "plural": false,
310
+ "selections": [{
283
311
  "alias": null,
284
312
  "args": null,
285
- "kind": "ScalarField",
286
- "name": "currency",
313
+ "concreteType": "Money",
314
+ "kind": "LinkedField",
315
+ "name": "amount",
316
+ "plural": false,
317
+ "selections": v11 /*: any*/,
287
318
  "storageKey": null
288
- }],
319
+ }, {
320
+ "alias": null,
321
+ "args": null,
322
+ "concreteType": "Coupon",
323
+ "kind": "LinkedField",
324
+ "name": "coupon",
325
+ "plural": false,
326
+ "selections": [{
327
+ "alias": null,
328
+ "args": null,
329
+ "kind": "ScalarField",
330
+ "name": "type",
331
+ "storageKey": null
332
+ }, {
333
+ "alias": null,
334
+ "args": null,
335
+ "kind": "ScalarField",
336
+ "name": "percentAmount",
337
+ "storageKey": null
338
+ }, {
339
+ "alias": null,
340
+ "args": null,
341
+ "concreteType": "Money",
342
+ "kind": "LinkedField",
343
+ "name": "creditAmount",
344
+ "plural": false,
345
+ "selections": v11 /*: any*/,
346
+ "storageKey": null
347
+ }, {
348
+ "alias": null,
349
+ "args": null,
350
+ "concreteType": "Money",
351
+ "kind": "LinkedField",
352
+ "name": "creditAmountRemaining",
353
+ "plural": false,
354
+ "selections": v11 /*: any*/,
355
+ "storageKey": null
356
+ }, v13 /*: any*/],
357
+ "storageKey": null
358
+ }, v13 /*: any*/],
359
+ "storageKey": null
360
+ }, {
361
+ "alias": null,
362
+ "args": null,
363
+ "concreteType": "Money",
364
+ "kind": "LinkedField",
365
+ "name": "discountedSubtotal",
366
+ "plural": false,
367
+ "selections": v11 /*: any*/,
368
+ "storageKey": null
369
+ }, {
370
+ "alias": null,
371
+ "args": null,
372
+ "kind": "ScalarField",
373
+ "name": "taxRate",
374
+ "storageKey": null
375
+ }, {
376
+ "alias": null,
377
+ "args": null,
378
+ "concreteType": "Money",
379
+ "kind": "LinkedField",
380
+ "name": "taxes",
381
+ "plural": false,
382
+ "selections": v11 /*: any*/,
383
+ "storageKey": null
384
+ }, {
385
+ "alias": null,
386
+ "args": null,
387
+ "kind": "ScalarField",
388
+ "name": "taxName",
389
+ "storageKey": null
390
+ }, {
391
+ "alias": null,
392
+ "args": null,
393
+ "kind": "ScalarField",
394
+ "name": "gstIncluded",
289
395
  "storageKey": null
290
396
  }, v13 /*: any*/],
291
397
  "storageKey": null
@@ -294,15 +400,15 @@ const node = function () {
294
400
  }]
295
401
  },
296
402
  "params": {
297
- "cacheID": "9ad86d9afd7109684ff666243fc89884",
403
+ "cacheID": "b6ea04e56a4160f1a24ff1031cd7290b",
298
404
  "id": null,
299
405
  "metadata": {},
300
406
  "name": "StoreModalUnifiedCheckoutUpdateOrderMutation",
301
407
  "operationKind": "mutation",
302
- "text": "mutation StoreModalUnifiedCheckoutUpdateOrderMutation(\n $input: UpdateOrderInput!\n) {\n updateOrder(input: $input) {\n order {\n ...StoreModalUnifiedCheckout_order\n id\n }\n errors {\n stripePaymentMethodId\n billingIdentity {\n zip\n phone\n administrativeArea\n locality\n sublocality\n email\n vatNumber\n }\n licenseeIdentity {\n zip\n phone\n administrativeArea\n locality\n sublocality\n email\n vatNumber\n }\n }\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 phone\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 phone\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n stripePaymentIntent {\n amount\n currency\n }\n}\n"
408
+ "text": "mutation StoreModalUnifiedCheckoutUpdateOrderMutation(\n $input: UpdateOrderInput!\n) {\n updateOrder(input: $input) {\n order {\n ...StoreModalUnifiedCheckout_order\n ...CartTotals_order\n id\n }\n errors {\n stripePaymentMethodId\n billingIdentity {\n zip\n phone\n administrativeArea\n locality\n sublocality\n email\n vatNumber\n }\n licenseeIdentity {\n zip\n phone\n administrativeArea\n locality\n sublocality\n email\n vatNumber\n }\n }\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 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 Price_price on Money {\n amount\n currency\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 phone\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 phone\n street\n locality\n sublocality\n country\n administrativeArea\n zip\n vatNumber\n }\n stripePaymentIntent {\n amount\n currency\n }\n}\n"
303
409
  }
304
410
  };
305
411
  }();
306
- node.hash = "3538bf8bf1c5bad7768ef2059b309a59";
412
+ node.hash = "189cd7ac579c6898dca2f4b6e07861d1";
307
413
  var _default = node;
308
414
  exports.default = _default;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<49f302f60ede0172f6f8f0a399a8d24e>>
2
+ * @generated SignedSource<<3d3c7a15da22a68edf7d3d3241fc8498>>
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<<49f302f60ede0172f6f8f0a399a8d24e>>
8
+ * @generated SignedSource<<3d3c7a15da22a68edf7d3d3241fc8498>>
9
9
  * @lightSyntaxTransform
10
10
  * @nogrep
11
11
  */
@@ -62,10 +62,10 @@ const node = function () {
62
62
  "storageKey": "storeModalSelectLicenseeLabel(format:\"HTML\")"
63
63
  }, {
64
64
  "alias": null,
65
- "args": null,
65
+ "args": v0 /*: any*/,
66
66
  "kind": "ScalarField",
67
67
  "name": "newsletterOptInLabel",
68
- "storageKey": null
68
+ "storageKey": "newsletterOptInLabel(format:\"HTML\")"
69
69
  }, {
70
70
  "alias": null,
71
71
  "args": null,
@@ -94,6 +94,6 @@ const node = function () {
94
94
  "abstractKey": null
95
95
  };
96
96
  }();
97
- node.hash = "82e9144073b645e6b124db4f559c1ab3";
97
+ node.hash = "568763fc3756be6256c132ebf0fcacb7";
98
98
  var _default = node;
99
99
  exports.default = _default;
@@ -66,8 +66,11 @@ const CustomerFields = _ref => {
66
66
  }), /*#__PURE__*/_react.default.createElement("div", {
67
67
  className: "checkbox__icon"
68
68
  }, config.checkboxStyle === 'check' ? /*#__PURE__*/_react.default.createElement(_Check.default, null) : /*#__PURE__*/_react.default.createElement(_X.default, null))), /*#__PURE__*/_react.default.createElement("label", {
69
- htmlFor: "customer-newsletter-opt-in"
70
- }, optInLabel))));
69
+ htmlFor: "customer-newsletter-opt-in",
70
+ dangerouslySetInnerHTML: {
71
+ __html: optInLabel
72
+ }
73
+ }))));
71
74
  };
72
75
  var _default = CustomerFields;
73
76
  exports.default = _default;
@@ -16,43 +16,6 @@ const StoreModalCheckout = _ref => {
16
16
  } = _ref;
17
17
  const data = (0, _reactRelay.usePreloadedQuery)((_StoreModalCheckoutQuery2.default.hash && _StoreModalCheckoutQuery2.default.hash !== "70ae58665e32b49a33ffd9d27ff5e0cc" && console.error("The definition of 'StoreModalCheckoutQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalCheckoutQuery2.default), prepared.checkoutQuery);
18
18
  const viewer = data.viewer;
19
- /* const dispatch = useDispatch();
20
- * const { checkoutStep, setCheckoutStep, checkoutError, setCheckoutError } = useContext(
21
- * StoreModalCheckoutContext,
22
- * );
23
- * const handleComplete = () => {
24
- * dispatch({ type: 'STORE_MODAL_NAVIGATE', route: 'review' });
25
- * };
26
- * const canSkipCheckout = Boolean(viewer.currentOrder?.stripePaymentMethod?.id);
27
- * const handleSetCheckoutStep = (step: CheckoutSteps) => {
28
- * setCheckoutError?.(null);
29
- * if (canSkipCheckout) {
30
- * dispatch({ type: 'STORE_MODAL_NAVIGATE', route: 'review' });
31
- * return;
32
- * }
33
- * setCheckoutStep?.(step);
34
- * };
35
- * return (
36
- * <StoreModalPageContainer>
37
- * {{
38
- * body: (
39
- * <Checkout
40
- * checkoutStep={checkoutStep}
41
- * setCheckoutStep={handleSetCheckoutStep}
42
- * viewer={viewer}
43
- * order={viewer.currentOrder}
44
- * onScrollToTop={() => {}}
45
- * onCancel={() => {}}
46
- * onComplete={handleComplete}
47
- * saveText={canSkipCheckout ? 'Save' : 'Next'}
48
- * error={checkoutError}
49
- * skipPaymentMethod
50
- * />
51
- * ),
52
- * }}
53
- * </StoreModalPageContainer>
54
- * ); */
55
-
56
19
  return /*#__PURE__*/_react.default.createElement(_StripeProvider.default, {
57
20
  viewer: viewer,
58
21
  providerType: "checkout"
@@ -114,7 +114,7 @@ function StoreModalUnifiedCheckout(_ref2) {
114
114
  viewer: viewerKey,
115
115
  onScrollToTop
116
116
  } = _ref2;
117
- const viewer = (0, _reactRelay.useFragment)((_StoreModalUnifiedCheckout_viewer2.default.hash && _StoreModalUnifiedCheckout_viewer2.default.hash !== "82e9144073b645e6b124db4f559c1ab3" && 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);
117
+ const viewer = (0, _reactRelay.useFragment)((_StoreModalUnifiedCheckout_viewer2.default.hash && _StoreModalUnifiedCheckout_viewer2.default.hash !== "568763fc3756be6256c132ebf0fcacb7" && 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);
118
118
  const order = (0, _reactRelay.useFragment)((_StoreModalUnifiedCheckout_order2.default.hash && _StoreModalUnifiedCheckout_order2.default.hash !== "94683a80ba2c7104fd80f9e508cd6d70" && 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);
119
119
  const initialIdentity = {
120
120
  ...defaultIdentity,
@@ -185,7 +185,7 @@ function StoreModalUnifiedCheckout(_ref2) {
185
185
  }, [environment]);
186
186
  const updateOrder = (0, _react.useCallback)((variables, onSuccess, onError) => {
187
187
  (0, _reactRelay.commitMutation)(environment, {
188
- mutation: (_StoreModalUnifiedCheckoutUpdateOrderMutation2.default.hash && _StoreModalUnifiedCheckoutUpdateOrderMutation2.default.hash !== "3538bf8bf1c5bad7768ef2059b309a59" && console.error("The definition of 'StoreModalUnifiedCheckoutUpdateOrderMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalUnifiedCheckoutUpdateOrderMutation2.default),
188
+ mutation: (_StoreModalUnifiedCheckoutUpdateOrderMutation2.default.hash && _StoreModalUnifiedCheckoutUpdateOrderMutation2.default.hash !== "189cd7ac579c6898dca2f4b6e07861d1" && console.error("The definition of 'StoreModalUnifiedCheckoutUpdateOrderMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalUnifiedCheckoutUpdateOrderMutation2.default),
189
189
  variables,
190
190
  onCompleted: (res, errors) => onCompleted(res, errors, onSuccess),
191
191
  onError
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fontdue-js",
3
- "version": "2.16.0",
3
+ "version": "2.16.1",
4
4
  "scripts": {
5
5
  "build": "npm run relay && run-p build-js build-css build-ts",
6
6
  "build-js": "babel src --out-dir dist --extensions .ts,.tsx,.js,.jsx",