fontdue-js 2.17.0 → 2.17.2

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.
Files changed (42) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/__generated__/CartStateUpdateMutation.graphql.d.ts +2 -2
  3. package/dist/__generated__/CartStateUpdateMutation.graphql.js +21 -7
  4. package/dist/__generated__/OrderVariableSelectionReduxRefetchQuery.graphql.d.ts +26 -0
  5. package/dist/__generated__/OrderVariableSelectionReduxRefetchQuery.graphql.js +154 -0
  6. package/dist/__generated__/OrderVariableSelectionRedux_viewer.graphql.d.ts +1 -1
  7. package/dist/__generated__/OrderVariableSelectionRedux_viewer.graphql.js +21 -5
  8. package/dist/__generated__/OrderVariableSelection_variables.graphql.d.ts +1 -1
  9. package/dist/__generated__/OrderVariableSelection_variables.graphql.js +12 -4
  10. package/dist/__generated__/StoreModalCartQuery.graphql.d.ts +1 -1
  11. package/dist/__generated__/StoreModalCartQuery.graphql.js +49 -39
  12. package/dist/__generated__/StoreModalOrderVariableSelectionHookQuery.graphql.d.ts +26 -0
  13. package/dist/__generated__/StoreModalOrderVariableSelectionRefetchQuery.graphql.d.ts +26 -0
  14. package/dist/__generated__/StoreModalOrderVariableSelection_order.graphql.d.ts +2 -2
  15. package/dist/__generated__/StoreModalOrderVariableSelection_order.graphql.js +12 -12
  16. package/dist/__generated__/StoreModalProductContent_viewer.graphql.d.ts +30 -0
  17. package/dist/__generated__/StoreModalProductQuery.graphql.d.ts +1 -1
  18. package/dist/__generated__/StoreModalProductQuery.graphql.js +69 -63
  19. package/dist/__generated__/StoreModalProductViewerRefetchQuery.graphql.d.ts +31 -0
  20. package/dist/__generated__/StoreModalUnifiedCheckoutUpdateCustomerMutation.graphql.d.ts +6 -1
  21. package/dist/__generated__/StoreModalUnifiedCheckoutUpdateCustomerMutation.graphql.js +37 -26
  22. package/dist/__generated__/TypeTesterStyleSelect_family.graphql.d.ts +33 -0
  23. package/dist/__generated__/TypeTesterStyleSelect_fontStyle.graphql.d.ts +27 -0
  24. package/dist/components/Cart/CartState.js +1 -1
  25. package/dist/components/Cart/CustomerFields.d.ts +5 -0
  26. package/dist/components/Cart/CustomerFields.js +11 -3
  27. package/dist/components/ConfigContext.d.ts +19 -4
  28. package/dist/components/ConfigContext.js +4 -1
  29. package/dist/components/OrderVariableSelection/OrderVariableSelectionRedux.js +10 -1
  30. package/dist/components/OrderVariableSelection/index.d.ts +2 -1
  31. package/dist/components/OrderVariableSelection/index.js +9 -2
  32. package/dist/components/Select/index.d.ts +1 -1
  33. package/dist/components/StoreModal/StoreModalOrderVariableSelection.js +19 -4
  34. package/dist/components/StoreModal/StoreModalProduct.js +1 -1
  35. package/dist/components/TypeTester/useFeaturesData.d.ts +3 -3
  36. package/dist/components/TypeTester/useTypeTesterStyler.d.ts +0 -1
  37. package/dist/components/elements/StoreModalUnifiedCheckout.js +16 -7
  38. package/dist/fontdue.css +1 -1
  39. package/dist/hooks.d.ts +0 -1
  40. package/dist/utils/interpolateOrderVariableDescription.d.ts +36 -0
  41. package/dist/utils/interpolateOrderVariableDescription.test.d.ts +1 -0
  42. package/package.json +2 -2
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  /**
8
- * @generated SignedSource<<eccfd99164a1e84613ad9576b433b990>>
8
+ * @generated SignedSource<<af2299fbf3ea6b8fe2121596a59f4019>>
9
9
  * @lightSyntaxTransform
10
10
  * @nogrep
11
11
  */
@@ -81,12 +81,13 @@ const node = function () {
81
81
  "name": "name",
82
82
  "storageKey": null
83
83
  },
84
- v12 = [{
84
+ v12 = {
85
85
  "kind": "Literal",
86
86
  "name": "format",
87
87
  "value": "HTML"
88
- }],
89
- v13 = {
88
+ },
89
+ v13 = [v12 /*: any*/],
90
+ v14 = {
90
91
  "alias": null,
91
92
  "args": null,
92
93
  "concreteType": "Settings",
@@ -95,67 +96,67 @@ const node = function () {
95
96
  "plural": false,
96
97
  "selections": [{
97
98
  "alias": null,
98
- "args": v12 /*: any*/,
99
+ "args": v13 /*: any*/,
99
100
  "kind": "ScalarField",
100
101
  "name": "storeModalSelectLicenseeLabel",
101
102
  "storageKey": "storeModalSelectLicenseeLabel(format:\"HTML\")"
102
103
  }, {
103
104
  "alias": null,
104
- "args": v12 /*: any*/,
105
+ "args": v13 /*: any*/,
105
106
  "kind": "ScalarField",
106
107
  "name": "storeModalSelectOrderVariablesLabel",
107
108
  "storageKey": "storeModalSelectOrderVariablesLabel(format:\"HTML\")"
108
109
  }, {
109
110
  "alias": null,
110
- "args": v12 /*: any*/,
111
+ "args": v13 /*: any*/,
111
112
  "kind": "ScalarField",
112
113
  "name": "storeModalSelectLicensesLabel",
113
114
  "storageKey": "storeModalSelectLicensesLabel(format:\"HTML\")"
114
115
  }, {
115
116
  "alias": null,
116
- "args": v12 /*: any*/,
117
+ "args": v13 /*: any*/,
117
118
  "kind": "ScalarField",
118
119
  "name": "storeModalSelectFontsLabel",
119
120
  "storageKey": "storeModalSelectFontsLabel(format:\"HTML\")"
120
121
  }],
121
122
  "storageKey": null
122
123
  },
123
- v14 = {
124
+ v15 = {
124
125
  "alias": null,
125
126
  "args": null,
126
127
  "kind": "ScalarField",
127
128
  "name": "__typename",
128
129
  "storageKey": null
129
130
  },
130
- v15 = {
131
+ v16 = {
131
132
  "alias": null,
132
133
  "args": null,
133
134
  "kind": "ScalarField",
134
135
  "name": "isVariableFont",
135
136
  "storageKey": null
136
137
  },
137
- v16 = {
138
+ v17 = {
138
139
  "alias": null,
139
140
  "args": null,
140
141
  "kind": "ScalarField",
141
142
  "name": "collectionType",
142
143
  "storageKey": null
143
144
  },
144
- v17 = {
145
+ v18 = {
145
146
  "alias": null,
146
147
  "args": null,
147
148
  "kind": "ScalarField",
148
149
  "name": "amount",
149
150
  "storageKey": null
150
151
  },
151
- v18 = [v17 /*: any*/, {
152
+ v19 = [v18 /*: any*/, {
152
153
  "alias": null,
153
154
  "args": null,
154
155
  "kind": "ScalarField",
155
156
  "name": "currency",
156
157
  "storageKey": null
157
158
  }],
158
- v19 = {
159
+ v20 = {
159
160
  "alias": null,
160
161
  "args": null,
161
162
  "concreteType": "Sku",
@@ -169,83 +170,83 @@ const node = function () {
169
170
  "kind": "LinkedField",
170
171
  "name": "price",
171
172
  "plural": false,
172
- "selections": v18 /*: any*/,
173
+ "selections": v19 /*: any*/,
173
174
  "storageKey": null
174
175
  }],
175
176
  "storageKey": null
176
177
  },
177
- v20 = [v4 /*: any*/],
178
- v21 = {
178
+ v21 = [v4 /*: any*/],
179
+ v22 = {
179
180
  "alias": null,
180
181
  "args": null,
181
182
  "concreteType": "FontCollection",
182
183
  "kind": "LinkedField",
183
184
  "name": "parent",
184
185
  "plural": false,
185
- "selections": v20 /*: any*/,
186
+ "selections": v21 /*: any*/,
186
187
  "storageKey": null
187
188
  },
188
- v22 = {
189
+ v23 = {
189
190
  "alias": null,
190
191
  "args": null,
191
192
  "kind": "ScalarField",
192
193
  "name": "cssFamily",
193
194
  "storageKey": null
194
195
  },
195
- v23 = {
196
+ v24 = {
196
197
  "alias": null,
197
198
  "args": null,
198
199
  "kind": "ScalarField",
199
200
  "name": "supportedLanguages",
200
201
  "storageKey": null
201
202
  },
202
- v24 = {
203
+ v25 = {
203
204
  "alias": null,
204
205
  "args": null,
205
206
  "concreteType": "FontStyle",
206
207
  "kind": "LinkedField",
207
208
  "name": "featureStyle",
208
209
  "plural": false,
209
- "selections": [v22 /*: any*/, v11 /*: any*/, v23 /*: any*/, v4 /*: any*/],
210
+ "selections": [v23 /*: any*/, v11 /*: any*/, v24 /*: any*/, v4 /*: any*/],
210
211
  "storageKey": null
211
212
  },
212
- v25 = {
213
+ v26 = {
213
214
  "alias": null,
214
215
  "args": null,
215
216
  "kind": "ScalarField",
216
217
  "name": "totalStyles",
217
218
  "storageKey": null
218
219
  },
219
- v26 = {
220
+ v27 = {
220
221
  "alias": null,
221
222
  "args": null,
222
223
  "concreteType": "Money",
223
224
  "kind": "LinkedField",
224
225
  "name": "totalStylesPrice",
225
226
  "plural": false,
226
- "selections": v18 /*: any*/,
227
+ "selections": v19 /*: any*/,
227
228
  "storageKey": null
228
229
  },
229
- v27 = [{
230
+ v28 = [{
230
231
  "kind": "Literal",
231
232
  "name": "collectionTypes",
232
233
  "value": ["FAMILY"]
233
234
  }],
234
- v28 = {
235
+ v29 = {
235
236
  "alias": null,
236
237
  "args": null,
237
238
  "kind": "ScalarField",
238
239
  "name": "cssUrl",
239
240
  "storageKey": null
240
241
  },
241
- v29 = {
242
+ v30 = {
242
243
  "alias": null,
243
244
  "args": null,
244
245
  "concreteType": "FontStyle",
245
246
  "kind": "LinkedField",
246
247
  "name": "fontStyles",
247
248
  "plural": true,
248
- "selections": [v4 /*: any*/, v22 /*: any*/, {
249
+ "selections": [v4 /*: any*/, v23 /*: any*/, {
249
250
  "alias": null,
250
251
  "args": null,
251
252
  "kind": "ScalarField",
@@ -257,7 +258,7 @@ const node = function () {
257
258
  "kind": "ScalarField",
258
259
  "name": "cssStretch",
259
260
  "storageKey": null
260
- }, v11 /*: any*/, v23 /*: any*/, {
261
+ }, v11 /*: any*/, v24 /*: any*/, {
261
262
  "alias": null,
262
263
  "args": null,
263
264
  "concreteType": "VariableInstance",
@@ -287,28 +288,21 @@ const node = function () {
287
288
  "storageKey": null
288
289
  }],
289
290
  "storageKey": null
290
- }, v19 /*: any*/],
291
+ }, v20 /*: any*/],
291
292
  "storageKey": null
292
293
  },
293
- v30 = {
294
+ v31 = {
294
295
  "alias": null,
295
296
  "args": null,
296
297
  "concreteType": "Bundle",
297
298
  "kind": "LinkedField",
298
299
  "name": "bundles",
299
300
  "plural": true,
300
- "selections": [v4 /*: any*/, v29 /*: any*/, v11 /*: any*/, v19 /*: any*/],
301
+ "selections": [v4 /*: any*/, v30 /*: any*/, v11 /*: any*/, v20 /*: any*/],
301
302
  "storageKey": null
302
303
  },
303
- v31 = {
304
- "alias": null,
305
- "args": v12 /*: any*/,
306
- "kind": "ScalarField",
307
- "name": "description",
308
- "storageKey": "description(format:\"HTML\")"
309
- },
310
- v32 = [v17 /*: any*/],
311
- v33 = [v25 /*: any*/, {
304
+ v32 = [v18 /*: any*/],
305
+ v33 = [v26 /*: any*/, {
312
306
  "alias": null,
313
307
  "args": v7 /*: any*/,
314
308
  "concreteType": "Money",
@@ -345,7 +339,7 @@ const node = function () {
345
339
  "name": "viewer",
346
340
  "plural": false,
347
341
  "selections": [v8 /*: any*/, v9 /*: any*/, {
348
- "args": null,
342
+ "args": [v6 /*: any*/],
349
343
  "kind": "FragmentSpread",
350
344
  "name": "OrderVariableSelectionRedux_viewer"
351
345
  }, {
@@ -361,7 +355,7 @@ const node = function () {
361
355
  "plural": true,
362
356
  "selections": [v4 /*: any*/, v10 /*: any*/, v11 /*: any*/],
363
357
  "storageKey": null
364
- }, v13 /*: any*/],
358
+ }, v14 /*: any*/],
365
359
  "storageKey": null
366
360
  }],
367
361
  "type": "RootQueryType",
@@ -379,30 +373,30 @@ const node = function () {
379
373
  "kind": "LinkedField",
380
374
  "name": "node",
381
375
  "plural": false,
382
- "selections": [v14 /*: any*/, v4 /*: any*/, {
376
+ "selections": [v15 /*: any*/, v4 /*: any*/, {
383
377
  "kind": "TypeDiscriminator",
384
378
  "abstractKey": "__isNode"
385
379
  }, {
386
380
  "kind": "InlineFragment",
387
- "selections": [v15 /*: any*/, v16 /*: any*/, v11 /*: any*/, v19 /*: any*/, v21 /*: any*/, v24 /*: any*/, v25 /*: any*/, v26 /*: any*/, {
381
+ "selections": [v16 /*: any*/, v17 /*: any*/, v11 /*: any*/, v20 /*: any*/, v22 /*: any*/, v25 /*: any*/, v26 /*: any*/, v27 /*: any*/, {
388
382
  "alias": null,
389
- "args": v27 /*: any*/,
383
+ "args": v28 /*: any*/,
390
384
  "concreteType": "FontCollection",
391
385
  "kind": "LinkedField",
392
386
  "name": "children",
393
387
  "plural": true,
394
- "selections": [v15 /*: any*/, v25 /*: any*/, v4 /*: any*/, v16 /*: any*/, v11 /*: any*/, v19 /*: any*/, v21 /*: any*/, v24 /*: any*/, v26 /*: any*/, {
388
+ "selections": [v16 /*: any*/, v26 /*: any*/, v4 /*: any*/, v17 /*: any*/, v11 /*: any*/, v20 /*: any*/, v22 /*: any*/, v25 /*: any*/, v27 /*: any*/, {
395
389
  "alias": null,
396
- "args": v27 /*: any*/,
390
+ "args": v28 /*: any*/,
397
391
  "concreteType": "FontCollection",
398
392
  "kind": "LinkedField",
399
393
  "name": "children",
400
394
  "plural": true,
401
- "selections": [v15 /*: any*/, v25 /*: any*/, v4 /*: any*/],
395
+ "selections": [v16 /*: any*/, v26 /*: any*/, v4 /*: any*/],
402
396
  "storageKey": "children(collectionTypes:[\"FAMILY\"])"
403
- }, v28 /*: any*/, v30 /*: any*/, v29 /*: any*/],
397
+ }, v29 /*: any*/, v31 /*: any*/, v30 /*: any*/],
404
398
  "storageKey": "children(collectionTypes:[\"FAMILY\"])"
405
- }, v28 /*: any*/, v30 /*: any*/, v29 /*: any*/, {
399
+ }, v29 /*: any*/, v31 /*: any*/, v30 /*: any*/, {
406
400
  "alias": null,
407
401
  "args": null,
408
402
  "concreteType": "License",
@@ -415,7 +409,13 @@ const node = function () {
415
409
  "kind": "ScalarField",
416
410
  "name": "url",
417
411
  "storageKey": null
418
- }, v11 /*: any*/, v31 /*: any*/, {
412
+ }, v11 /*: any*/, {
413
+ "alias": null,
414
+ "args": v13 /*: any*/,
415
+ "kind": "ScalarField",
416
+ "name": "description",
417
+ "storageKey": "description(format:\"HTML\")"
418
+ }, {
419
419
  "alias": null,
420
420
  "args": null,
421
421
  "kind": "ScalarField",
@@ -441,7 +441,7 @@ const node = function () {
441
441
  "kind": "LinkedField",
442
442
  "name": "licenseOptions",
443
443
  "plural": true,
444
- "selections": [v4 /*: any*/, v11 /*: any*/, v17 /*: any*/, {
444
+ "selections": [v4 /*: any*/, v11 /*: any*/, v18 /*: any*/, {
445
445
  "alias": null,
446
446
  "args": null,
447
447
  "kind": "ScalarField",
@@ -472,14 +472,20 @@ const node = function () {
472
472
  "kind": "LinkedField",
473
473
  "name": "orderVariables",
474
474
  "plural": true,
475
- "selections": [v4 /*: any*/, v11 /*: any*/, v10 /*: any*/, v31 /*: any*/, {
475
+ "selections": [v4 /*: any*/, v11 /*: any*/, v10 /*: any*/, {
476
+ "alias": null,
477
+ "args": [v12 /*: any*/, v6 /*: any*/],
478
+ "kind": "ScalarField",
479
+ "name": "description",
480
+ "storageKey": null
481
+ }, {
476
482
  "alias": null,
477
483
  "args": null,
478
484
  "concreteType": "OrderVariableOption",
479
485
  "kind": "LinkedField",
480
486
  "name": "orderVariableOptions",
481
487
  "plural": true,
482
- "selections": [v4 /*: any*/, v17 /*: any*/],
488
+ "selections": [v4 /*: any*/, v18 /*: any*/],
483
489
  "storageKey": null
484
490
  }],
485
491
  "storageKey": null
@@ -559,7 +565,7 @@ const node = function () {
559
565
  "kind": "LinkedField",
560
566
  "name": "product",
561
567
  "plural": false,
562
- "selections": [v14 /*: any*/, {
568
+ "selections": [v15 /*: any*/, {
563
569
  "kind": "InlineFragment",
564
570
  "selections": v33 /*: any*/,
565
571
  "type": "FontCollection",
@@ -571,7 +577,7 @@ const node = function () {
571
577
  "abstractKey": null
572
578
  }, {
573
579
  "kind": "InlineFragment",
574
- "selections": v20 /*: any*/,
580
+ "selections": v21 /*: any*/,
575
581
  "type": "Node",
576
582
  "abstractKey": "__isNode"
577
583
  }],
@@ -585,24 +591,24 @@ const node = function () {
585
591
  "kind": "LinkedField",
586
592
  "name": "subtotal",
587
593
  "plural": false,
588
- "selections": v18 /*: any*/,
594
+ "selections": v19 /*: any*/,
589
595
  "storageKey": null
590
596
  }],
591
597
  "storageKey": null
592
- }, v13 /*: any*/, v4 /*: any*/],
598
+ }, v14 /*: any*/, v4 /*: any*/],
593
599
  "storageKey": null
594
600
  }]
595
601
  },
596
602
  "params": {
597
- "cacheID": "748f76866af99e577d89e9fac39c4aa1",
603
+ "cacheID": "052b047c3b585a85c60edf9e87efea17",
598
604
  "id": null,
599
605
  "metadata": {},
600
606
  "name": "StoreModalProductQuery",
601
607
  "operationKind": "query",
602
- "text": "query StoreModalProductQuery(\n $productId: ID!\n $licenseOptions: [LicenseOptionsSpec]!\n $orderVariables: [OrderVariableSelectionInput!]\n) {\n collection: node(id: $productId) {\n __typename\n id\n ...StoreModalProductContent_collection_4sncub\n }\n viewer {\n endpoint\n stripeAccountId\n ...OrderVariableSelectionRedux_viewer\n ...StoreModalProductSummary_viewer_4sncub\n orderVariables {\n id\n variableType\n name\n }\n settings {\n storeModalSelectLicenseeLabel(format: HTML)\n storeModalSelectOrderVariablesLabel(format: HTML)\n storeModalSelectLicensesLabel(format: HTML)\n storeModalSelectFontsLabel(format: HTML)\n }\n id\n }\n}\n\nfragment FontStyle_fontStyle on FontStyle {\n cssFamily\n name\n}\n\nfragment OrderVariableSelectionRedux_viewer on Viewer {\n ...OrderVariableSelection_variables\n detectedCountry\n orderVariables {\n id\n variableType\n }\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 countries {\n code\n name\n }\n}\n\nfragment Price_price on Money {\n amount\n currency\n}\n\nfragment SKUPrice_sku_4sncub on Sku {\n id\n price(licenseOptions: $licenseOptions, orderVariables: $orderVariables) {\n amount\n ...Price_price\n }\n}\n\nfragment StoreModalBundleButton_bundle_4sncub on Bundle {\n id\n name\n sku {\n ...SKUPrice_sku_4sncub\n id\n }\n fontStyles {\n id\n ...FontStyle_fontStyle\n }\n}\n\nfragment StoreModalFamilyButton_collection_4sncub on FontCollection {\n isVariableFont\n collectionType\n name\n sku {\n ...SKUPrice_sku_4sncub\n id\n }\n parent {\n id\n }\n featureStyle {\n ...FontStyle_fontStyle\n supportedLanguages\n id\n }\n totalStyles\n totalStylesPrice {\n ...Price_price\n }\n ...useTotalStyles_fontCollection\n}\n\nfragment StoreModalFamily_collection_4sncub on FontCollection {\n ...StoreModalFamilyButton_collection_4sncub\n 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_4sncub\n }\n ...StoreModalBundleButton_bundle_4sncub\n }\n fontStyles {\n id\n cssFamily\n cssWeight\n cssStretch\n ...StoreModalStyleButton_fontStyle_4sncub\n }\n}\n\nfragment StoreModalProductContent_collection_4sncub on Node {\n __isNode: __typename\n ... on FontCollection {\n id\n ...StoreModalFamily_collection_4sncub\n ...StoreModalProductLicenseSelection_collection\n children(collectionTypes: [FAMILY]) {\n id\n ...StoreModalFamily_collection_4sncub\n }\n }\n id\n}\n\nfragment StoreModalProductLicenseSelection_collection on FontCollection {\n licenses {\n id\n ...StoreModalProductLicense_license\n }\n}\n\nfragment StoreModalProductLicense_license on License {\n id\n url\n name\n description(format: HTML)\n defaultSelected\n variables: licenseVariables {\n id\n name\n variableType\n ...VariableTableAmounts_variable\n options: licenseOptions {\n id\n name\n amount\n ...VariableTableAmounts_option\n }\n }\n}\n\nfragment StoreModalProductSummary_viewer_4sncub on Viewer {\n taxCollections {\n taxName\n inclusive\n }\n orderVariables {\n id\n variableType\n name\n }\n precart(skuIds: [], licenseOptions: $licenseOptions, orderVariables: $orderVariables) {\n skus {\n price(licenseOptions: $licenseOptions, orderVariables: $orderVariables) {\n amount\n }\n product {\n __typename\n ... on FontCollection {\n totalStyles\n totalStylesPrice(licenseOptions: $licenseOptions, orderVariables: $orderVariables) {\n amount\n }\n }\n ... on Bundle {\n totalStyles\n totalStylesPrice(licenseOptions: $licenseOptions, orderVariables: $orderVariables) {\n amount\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n subtotal {\n ...Price_price\n amount\n currency\n }\n }\n}\n\nfragment StoreModalStyleButton_fontStyle_4sncub on FontStyle {\n id\n name\n supportedLanguages\n variableInstances {\n name\n coordinates {\n axis\n value\n }\n }\n sku {\n ...SKUPrice_sku_4sncub\n id\n }\n ...FontStyle_fontStyle\n}\n\nfragment VariableTableAmounts_option on LicenseOption {\n amounts\n}\n\nfragment VariableTableAmounts_variable on LicenseVariable {\n units\n}\n\nfragment useTotalStyles_fontCollection on FontCollection {\n isVariableFont\n totalStyles\n children(collectionTypes: [FAMILY]) {\n isVariableFont\n totalStyles\n id\n }\n}\n"
608
+ "text": "query StoreModalProductQuery(\n $productId: ID!\n $licenseOptions: [LicenseOptionsSpec]!\n $orderVariables: [OrderVariableSelectionInput!]\n) {\n collection: node(id: $productId) {\n __typename\n id\n ...StoreModalProductContent_collection_4sncub\n }\n viewer {\n endpoint\n stripeAccountId\n ...OrderVariableSelectionRedux_viewer_2ZguDv\n ...StoreModalProductSummary_viewer_4sncub\n orderVariables {\n id\n variableType\n name\n }\n settings {\n storeModalSelectLicenseeLabel(format: HTML)\n storeModalSelectOrderVariablesLabel(format: HTML)\n storeModalSelectLicensesLabel(format: HTML)\n storeModalSelectFontsLabel(format: HTML)\n }\n id\n }\n}\n\nfragment FontStyle_fontStyle on FontStyle {\n cssFamily\n name\n}\n\nfragment OrderVariableSelectionRedux_viewer_2ZguDv on Viewer {\n ...OrderVariableSelection_variables_2ZguDv\n detectedCountry\n orderVariables {\n id\n variableType\n }\n}\n\nfragment OrderVariableSelection_variables_2ZguDv on Viewer {\n orderVariables {\n id\n name\n variableType\n description(format: HTML, orderVariables: $orderVariables)\n orderVariableOptions {\n id\n amount\n }\n }\n countries {\n code\n name\n }\n}\n\nfragment Price_price on Money {\n amount\n currency\n}\n\nfragment SKUPrice_sku_4sncub on Sku {\n id\n price(licenseOptions: $licenseOptions, orderVariables: $orderVariables) {\n amount\n ...Price_price\n }\n}\n\nfragment StoreModalBundleButton_bundle_4sncub on Bundle {\n id\n name\n sku {\n ...SKUPrice_sku_4sncub\n id\n }\n fontStyles {\n id\n ...FontStyle_fontStyle\n }\n}\n\nfragment StoreModalFamilyButton_collection_4sncub on FontCollection {\n isVariableFont\n collectionType\n name\n sku {\n ...SKUPrice_sku_4sncub\n id\n }\n parent {\n id\n }\n featureStyle {\n ...FontStyle_fontStyle\n supportedLanguages\n id\n }\n totalStyles\n totalStylesPrice {\n ...Price_price\n }\n ...useTotalStyles_fontCollection\n}\n\nfragment StoreModalFamily_collection_4sncub on FontCollection {\n ...StoreModalFamilyButton_collection_4sncub\n 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_4sncub\n }\n ...StoreModalBundleButton_bundle_4sncub\n }\n fontStyles {\n id\n cssFamily\n cssWeight\n cssStretch\n ...StoreModalStyleButton_fontStyle_4sncub\n }\n}\n\nfragment StoreModalProductContent_collection_4sncub on Node {\n __isNode: __typename\n ... on FontCollection {\n id\n ...StoreModalFamily_collection_4sncub\n ...StoreModalProductLicenseSelection_collection\n children(collectionTypes: [FAMILY]) {\n id\n ...StoreModalFamily_collection_4sncub\n }\n }\n id\n}\n\nfragment StoreModalProductLicenseSelection_collection on FontCollection {\n licenses {\n id\n ...StoreModalProductLicense_license\n }\n}\n\nfragment StoreModalProductLicense_license on License {\n id\n url\n name\n description(format: HTML)\n defaultSelected\n variables: licenseVariables {\n id\n name\n variableType\n ...VariableTableAmounts_variable\n options: licenseOptions {\n id\n name\n amount\n ...VariableTableAmounts_option\n }\n }\n}\n\nfragment StoreModalProductSummary_viewer_4sncub on Viewer {\n taxCollections {\n taxName\n inclusive\n }\n orderVariables {\n id\n variableType\n name\n }\n precart(skuIds: [], licenseOptions: $licenseOptions, orderVariables: $orderVariables) {\n skus {\n price(licenseOptions: $licenseOptions, orderVariables: $orderVariables) {\n amount\n }\n product {\n __typename\n ... on FontCollection {\n totalStyles\n totalStylesPrice(licenseOptions: $licenseOptions, orderVariables: $orderVariables) {\n amount\n }\n }\n ... on Bundle {\n totalStyles\n totalStylesPrice(licenseOptions: $licenseOptions, orderVariables: $orderVariables) {\n amount\n }\n }\n ... on Node {\n __isNode: __typename\n id\n }\n }\n id\n }\n subtotal {\n ...Price_price\n amount\n currency\n }\n }\n}\n\nfragment StoreModalStyleButton_fontStyle_4sncub on FontStyle {\n id\n name\n supportedLanguages\n variableInstances {\n name\n coordinates {\n axis\n value\n }\n }\n sku {\n ...SKUPrice_sku_4sncub\n id\n }\n ...FontStyle_fontStyle\n}\n\nfragment VariableTableAmounts_option on LicenseOption {\n amounts\n}\n\nfragment VariableTableAmounts_variable on LicenseVariable {\n units\n}\n\nfragment useTotalStyles_fontCollection on FontCollection {\n isVariableFont\n totalStyles\n children(collectionTypes: [FAMILY]) {\n isVariableFont\n totalStyles\n id\n }\n}\n"
603
609
  }
604
610
  };
605
611
  }();
606
- node.hash = "82a6352ac1eeaab3d25c315793f97a9c";
612
+ node.hash = "b2803257576691f16a283d10e53439e3";
607
613
  var _default = node;
608
614
  exports.default = _default;
@@ -0,0 +1,31 @@
1
+ /**
2
+ * @generated SignedSource<<2572d60376dbf6819da5fc23fd5d56d2>>
3
+ * @lightSyntaxTransform
4
+ * @nogrep
5
+ */
6
+ import { ConcreteRequest } from 'relay-runtime';
7
+ import { FragmentRefs } from "relay-runtime";
8
+ export type LicenseOptionsSpec = {
9
+ licenseId: string;
10
+ licenseOptionIds?: ReadonlyArray<string> | null;
11
+ };
12
+ export type OrderVariableSelectionInput = {
13
+ countryCode?: string | null;
14
+ orderVariableId: string;
15
+ orderVariableOptionId?: string | null;
16
+ };
17
+ export type StoreModalProductViewerRefetchQuery$variables = {
18
+ licenseOptions: ReadonlyArray<LicenseOptionsSpec | null>;
19
+ orderVariables?: ReadonlyArray<OrderVariableSelectionInput> | null;
20
+ };
21
+ export type StoreModalProductViewerRefetchQuery$data = {
22
+ readonly viewer: {
23
+ readonly " $fragmentSpreads": FragmentRefs<"StoreModalProductContent_viewer">;
24
+ };
25
+ };
26
+ export type StoreModalProductViewerRefetchQuery = {
27
+ response: StoreModalProductViewerRefetchQuery$data;
28
+ variables: StoreModalProductViewerRefetchQuery$variables;
29
+ };
30
+ declare const node: ConcreteRequest;
31
+ export default node;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<5717acae4caee5545814d91fa0600ba3>>
2
+ * @generated SignedSource<<d68089e8bc657b1cc594c4cbc03a25bc>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */
@@ -15,6 +15,11 @@ export type StoreModalUnifiedCheckoutUpdateCustomerMutation$variables = {
15
15
  };
16
16
  export type StoreModalUnifiedCheckoutUpdateCustomerMutation$data = {
17
17
  readonly updateCustomer: {
18
+ readonly errors: {
19
+ readonly email: ReadonlyArray<string | null> | null;
20
+ readonly name: ReadonlyArray<string | null> | null;
21
+ readonly newsletterOptIn: ReadonlyArray<string | null> | null;
22
+ } | null;
18
23
  readonly order: {
19
24
  readonly " $fragmentSpreads": FragmentRefs<"StoreModalUnifiedCheckout_order">;
20
25
  } | null;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  /**
8
- * @generated SignedSource<<5717acae4caee5545814d91fa0600ba3>>
8
+ * @generated SignedSource<<d68089e8bc657b1cc594c4cbc03a25bc>>
9
9
  * @lightSyntaxTransform
10
10
  * @nogrep
11
11
  */
@@ -29,31 +29,48 @@ const node = function () {
29
29
  "alias": null,
30
30
  "args": null,
31
31
  "kind": "ScalarField",
32
- "name": "amount",
32
+ "name": "name",
33
33
  "storageKey": null
34
34
  },
35
35
  v3 = {
36
36
  "alias": null,
37
37
  "args": null,
38
38
  "kind": "ScalarField",
39
- "name": "name",
39
+ "name": "email",
40
40
  "storageKey": null
41
41
  },
42
42
  v4 = {
43
43
  "alias": null,
44
44
  "args": null,
45
45
  "kind": "ScalarField",
46
- "name": "email",
46
+ "name": "newsletterOptIn",
47
47
  "storageKey": null
48
48
  },
49
49
  v5 = {
50
+ "alias": null,
51
+ "args": null,
52
+ "concreteType": "UpdateCustomerErrors",
53
+ "kind": "LinkedField",
54
+ "name": "errors",
55
+ "plural": false,
56
+ "selections": [v2 /*: any*/, v3 /*: any*/, v4 /*: any*/],
57
+ "storageKey": null
58
+ },
59
+ v6 = {
60
+ "alias": null,
61
+ "args": null,
62
+ "kind": "ScalarField",
63
+ "name": "amount",
64
+ "storageKey": null
65
+ },
66
+ v7 = {
50
67
  "alias": null,
51
68
  "args": null,
52
69
  "kind": "ScalarField",
53
70
  "name": "id",
54
71
  "storageKey": null
55
72
  },
56
- v6 = [v4 /*: any*/, {
73
+ v8 = [v3 /*: any*/, {
57
74
  "alias": null,
58
75
  "args": null,
59
76
  "kind": "ScalarField",
@@ -71,7 +88,7 @@ const node = function () {
71
88
  "kind": "ScalarField",
72
89
  "name": "vatNumber",
73
90
  "storageKey": null
74
- }, v3 /*: any*/, {
91
+ }, v2 /*: any*/, {
75
92
  "alias": null,
76
93
  "args": null,
77
94
  "kind": "ScalarField",
@@ -146,7 +163,7 @@ const node = function () {
146
163
  "name": "StoreModalUnifiedCheckout_order"
147
164
  }],
148
165
  "storageKey": null
149
- }],
166
+ }, v5 /*: any*/],
150
167
  "storageKey": null
151
168
  }],
152
169
  "type": "RootMutationType",
@@ -190,7 +207,7 @@ const node = function () {
190
207
  "kind": "LinkedField",
191
208
  "name": "total",
192
209
  "plural": false,
193
- "selections": [v2 /*: any*/],
210
+ "selections": [v6 /*: any*/],
194
211
  "storageKey": null
195
212
  }, {
196
213
  "alias": null,
@@ -199,13 +216,7 @@ const node = function () {
199
216
  "kind": "LinkedField",
200
217
  "name": "customer",
201
218
  "plural": false,
202
- "selections": [v3 /*: any*/, v4 /*: any*/, {
203
- "alias": null,
204
- "args": null,
205
- "kind": "ScalarField",
206
- "name": "newsletterOptIn",
207
- "storageKey": null
208
- }, v5 /*: any*/],
219
+ "selections": [v2 /*: any*/, v3 /*: any*/, v4 /*: any*/, v7 /*: any*/],
209
220
  "storageKey": null
210
221
  }, {
211
222
  "alias": null,
@@ -220,7 +231,7 @@ const node = function () {
220
231
  "kind": "LinkedField",
221
232
  "name": "licenseeIdentity",
222
233
  "plural": false,
223
- "selections": v6 /*: any*/,
234
+ "selections": v8 /*: any*/,
224
235
  "storageKey": null
225
236
  }, {
226
237
  "alias": null,
@@ -229,7 +240,7 @@ const node = function () {
229
240
  "kind": "LinkedField",
230
241
  "name": "billingIdentity",
231
242
  "plural": false,
232
- "selections": v6 /*: any*/,
243
+ "selections": v8 /*: any*/,
233
244
  "storageKey": null
234
245
  }, {
235
246
  "alias": null,
@@ -238,7 +249,7 @@ const node = function () {
238
249
  "kind": "LinkedField",
239
250
  "name": "stripePaymentIntent",
240
251
  "plural": false,
241
- "selections": [v2 /*: any*/, {
252
+ "selections": [v6 /*: any*/, {
242
253
  "alias": null,
243
254
  "args": null,
244
255
  "kind": "ScalarField",
@@ -260,7 +271,7 @@ const node = function () {
260
271
  "kind": "LinkedField",
261
272
  "name": "orderVariable",
262
273
  "plural": false,
263
- "selections": [v5 /*: any*/, {
274
+ "selections": [v7 /*: any*/, {
264
275
  "alias": null,
265
276
  "args": null,
266
277
  "kind": "ScalarField",
@@ -275,7 +286,7 @@ const node = function () {
275
286
  "kind": "LinkedField",
276
287
  "name": "orderVariableOption",
277
288
  "plural": false,
278
- "selections": [v5 /*: any*/],
289
+ "selections": [v7 /*: any*/],
279
290
  "storageKey": null
280
291
  }, {
281
292
  "alias": null,
@@ -283,24 +294,24 @@ const node = function () {
283
294
  "kind": "ScalarField",
284
295
  "name": "countryCode",
285
296
  "storageKey": null
286
- }, v5 /*: any*/],
297
+ }, v7 /*: any*/],
287
298
  "storageKey": null
288
- }, v5 /*: any*/],
299
+ }, v7 /*: any*/],
289
300
  "storageKey": null
290
- }],
301
+ }, v5 /*: any*/],
291
302
  "storageKey": null
292
303
  }]
293
304
  },
294
305
  "params": {
295
- "cacheID": "3cca9aaabff843bc7d5be4ef3ec03d64",
306
+ "cacheID": "df1642a76b58417dcf25c552e030d855",
296
307
  "id": null,
297
308
  "metadata": {},
298
309
  "name": "StoreModalUnifiedCheckoutUpdateCustomerMutation",
299
310
  "operationKind": "mutation",
300
- "text": "mutation StoreModalUnifiedCheckoutUpdateCustomerMutation(\n $input: UpdateCustomerInput!\n) {\n updateCustomer(input: $input) {\n order {\n ...StoreModalUnifiedCheckout_order\n id\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 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 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"
311
+ "text": "mutation StoreModalUnifiedCheckoutUpdateCustomerMutation(\n $input: UpdateCustomerInput!\n) {\n updateCustomer(input: $input) {\n order {\n ...StoreModalUnifiedCheckout_order\n id\n }\n errors {\n name\n email\n newsletterOptIn\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 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 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"
301
312
  }
302
313
  };
303
314
  }();
304
- node.hash = "1927e9fb21dbae898062200a560b1277";
315
+ node.hash = "a41e423a93ba20f15ebbe826dd802514";
305
316
  var _default = node;
306
317
  exports.default = _default;