fontdue-js 2.26.0 → 2.28.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 +13 -0
- package/dist/__generated__/TypeTesterFamiliesQuery.graphql.d.ts +29 -0
- package/dist/__generated__/TypeTesterFamiliesQuery.graphql.js +174 -0
- package/dist/__generated__/TypeTesterFamiliesStylesQuery.graphql.d.ts +35 -0
- package/dist/__generated__/TypeTesterFamiliesStylesQuery.graphql.js +170 -0
- package/dist/__generated__/TypeTesterStandaloneChangedStylesQuery.graphql.d.ts +1 -1
- package/dist/__generated__/TypeTesterStandaloneChangedStylesQuery.graphql.js +4 -4
- package/dist/__generated__/TypeTesterStandaloneQuery.graphql.d.ts +1 -3
- package/dist/__generated__/TypeTesterStandaloneQuery.graphql.js +78 -161
- package/dist/__generated__/TypeTesterStyleSelectData_fontStyle.graphql.d.ts +2 -1
- package/dist/__generated__/TypeTesterStyleSelectData_fontStyle.graphql.js +18 -17
- package/dist/__generated__/TypeTestersChangedStylesQuery.graphql.d.ts +1 -1
- package/dist/__generated__/TypeTestersChangedStylesQuery.graphql.js +4 -4
- package/dist/__generated__/TypeTestersIDQuery.graphql.d.ts +1 -5
- package/dist/__generated__/TypeTestersIDQuery.graphql.js +101 -195
- package/dist/__generated__/TypeTestersRefetchQuery.graphql.d.ts +1 -1
- package/dist/__generated__/TypeTestersRefetchQuery.graphql.js +4 -4
- package/dist/__generated__/TypeTestersSlugQuery.graphql.d.ts +1 -3
- package/dist/__generated__/TypeTestersSlugQuery.graphql.js +102 -178
- package/dist/__generated__/orderTrackingUpdateOrderTrackingMutation.graphql.d.ts +27 -0
- package/dist/__generated__/orderTrackingUpdateOrderTrackingMutation.graphql.js +72 -0
- package/dist/components/Cart/CartOrder.js +8 -0
- package/dist/components/Cart/orderTracking.d.ts +10 -0
- package/dist/components/Cart/orderTracking.js +43 -0
- package/dist/components/ConfigContext.d.ts +2 -2
- package/dist/components/FontStyle/index.d.ts +2 -0
- package/dist/components/FontStyle/index.js +4 -2
- package/dist/components/FontdueProvider/FontdueProviderClientComponent.js +2 -1
- package/dist/components/TypeTester/TypeTesterFamilies.d.ts +37 -0
- package/dist/components/TypeTester/TypeTesterFamilies.js +128 -0
- package/dist/components/TypeTester/TypeTesterStandalone.js +2 -7
- package/dist/components/TypeTester/TypeTesterStandalone.server.js +1 -2
- package/dist/components/TypeTester/TypeTesterStyleSelect.d.ts +15 -5
- package/dist/components/TypeTester/TypeTesterStyleSelect.js +57 -47
- package/dist/components/TypeTester/TypeTesterStyleSelectData.d.ts +1 -3
- package/dist/components/TypeTester/TypeTesterStyleSelectData.js +210 -52
- package/dist/components/TypeTester/TypeTesterVariableAxes.js +17 -4
- package/dist/components/TypeTester/index.d.ts +1 -3
- package/dist/components/TypeTester/index.js +13 -6
- package/dist/components/TypeTester/useTypeTesterStyler.d.ts +4 -2
- package/dist/components/TypeTester/useTypeTesterStyler.js +78 -11
- package/dist/components/TypeTesters/index.js +6 -20
- package/dist/components/TypeTesters/index.server.js +2 -4
- package/dist/components/elements/StoreModalUnifiedCheckout.js +8 -0
- package/dist/components/useFontStyle.d.ts +7 -0
- package/dist/components/useFontStyle.js +2 -1
- package/dist/fontdue.css +9 -16
- package/dist/hooks.d.ts +1 -0
- package/dist/hooks.js +27 -0
- package/fontdue.css +2 -1
- package/package.json +1 -1
- package/dist/__generated__/FontdueProviderQuery.graphql.d.ts +0 -19
- package/dist/__generated__/FontdueProviderQuery.graphql.js +0 -140
- package/dist/__generated__/ServerConfigProvider_viewer.graphql.d.ts +0 -23
- package/dist/__generated__/ServerConfigProvider_viewer.graphql.js +0 -57
- package/dist/__generated__/TestModeBanner_viewer.graphql.d.ts +0 -19
- package/dist/__generated__/TestModeBanner_viewer.graphql.js +0 -36
- package/dist/__generated__/ThemeConfig_viewer.graphql.d.ts +0 -19
- package/dist/__generated__/ThemeConfig_viewer.graphql.js +0 -36
- package/dist/__generated__/TypeTesterStyleSelectData_viewer.graphql.d.ts +0 -42
- package/dist/__generated__/TypeTesterStyleSelectData_viewer.graphql.js +0 -166
- package/dist/__generated__/TypeTester_viewer.graphql.d.ts +0 -17
- package/dist/__generated__/TypeTester_viewer.graphql.js +0 -40
- package/dist/__generated__/TypeTesters_viewer.graphql.d.ts +0 -17
- package/dist/__generated__/TypeTesters_viewer.graphql.js +0 -40
- package/dist/components/BuyingOptions/index.d.ts +0 -9
- package/dist/components/CookieNotification/index.d.ts +0 -13
- package/dist/components/FontdueContextProvider/index.d.ts +0 -17
- package/dist/components/FontdueContextProvider/index.js +0 -108
- package/dist/components/FontdueContextProvider/index.server.d.ts +0 -4
- package/dist/components/FontdueContextProvider/index.server.js +0 -7
- package/dist/components/FontdueProvider/useAuxUIOwner.d.ts +0 -1
- package/dist/components/FontdueProvider/useAuxUIOwner.js +0 -28
- package/dist/components/TypeTester/TypeTesterStandalone.preload.d.ts +0 -14
- package/dist/components/TypeTester/TypeTesterStandalone.preload.js +0 -20
- package/dist/config.d.ts +0 -7
- package/dist/config.js +0 -31
- package/dist/global-shim.d.ts +0 -1
- package/dist/global-shim.js +0 -8
- package/dist/hooks/useResizeObserver.d.ts +0 -11
- package/dist/hooks/useResizeObserver.js +0 -23
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -1
- package/dist/loadFontdueProviderQuery.d.ts +0 -3
- package/dist/loadFontdueProviderQuery.js +0 -10
- package/dist/vite.d.ts +0 -2
- package/dist/vite.js +0 -139
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
/**
|
|
8
|
-
* @generated SignedSource<<
|
|
8
|
+
* @generated SignedSource<<4baa139e690a04efc53c833f3dcd913b>>
|
|
9
9
|
* @lightSyntaxTransform
|
|
10
10
|
* @nogrep
|
|
11
11
|
*/
|
|
@@ -26,206 +26,144 @@ const node = function () {
|
|
|
26
26
|
"name": "excludeTags"
|
|
27
27
|
},
|
|
28
28
|
v2 = {
|
|
29
|
-
"defaultValue": null,
|
|
30
|
-
"kind": "LocalArgument",
|
|
31
|
-
"name": "selectable"
|
|
32
|
-
},
|
|
33
|
-
v3 = {
|
|
34
29
|
"defaultValue": null,
|
|
35
30
|
"kind": "LocalArgument",
|
|
36
31
|
"name": "tags"
|
|
37
32
|
},
|
|
38
|
-
|
|
33
|
+
v3 = [{
|
|
39
34
|
"kind": "Variable",
|
|
40
35
|
"name": "name",
|
|
41
36
|
"variableName": "collectionSlug"
|
|
42
37
|
}],
|
|
43
|
-
|
|
38
|
+
v4 = {
|
|
44
39
|
"kind": "Variable",
|
|
45
40
|
"name": "excludeTags",
|
|
46
41
|
"variableName": "excludeTags"
|
|
47
42
|
},
|
|
48
|
-
|
|
43
|
+
v5 = {
|
|
49
44
|
"kind": "Variable",
|
|
50
45
|
"name": "tags",
|
|
51
46
|
"variableName": "tags"
|
|
52
47
|
},
|
|
53
|
-
|
|
54
|
-
"kind": "Literal",
|
|
55
|
-
"name": "collectionTypes",
|
|
56
|
-
"value": ["FAMILY"]
|
|
57
|
-
},
|
|
58
|
-
v8 = {
|
|
59
|
-
"kind": "Literal",
|
|
60
|
-
"name": "first",
|
|
61
|
-
"value": 999
|
|
62
|
-
},
|
|
63
|
-
v9 = {
|
|
48
|
+
v6 = {
|
|
64
49
|
"alias": null,
|
|
65
50
|
"args": null,
|
|
66
51
|
"kind": "ScalarField",
|
|
67
52
|
"name": "id",
|
|
68
53
|
"storageKey": null
|
|
69
54
|
},
|
|
70
|
-
|
|
71
|
-
"alias": null,
|
|
72
|
-
"args": null,
|
|
73
|
-
"kind": "ScalarField",
|
|
74
|
-
"name": "name",
|
|
75
|
-
"storageKey": null
|
|
76
|
-
},
|
|
77
|
-
v11 = {
|
|
78
|
-
"alias": null,
|
|
79
|
-
"args": null,
|
|
80
|
-
"kind": "ScalarField",
|
|
81
|
-
"name": "supportedLanguages",
|
|
82
|
-
"storageKey": null
|
|
83
|
-
},
|
|
84
|
-
v12 = {
|
|
85
|
-
"alias": null,
|
|
86
|
-
"args": null,
|
|
87
|
-
"kind": "ScalarField",
|
|
88
|
-
"name": "cssWeight",
|
|
89
|
-
"storageKey": null
|
|
90
|
-
},
|
|
91
|
-
v13 = {
|
|
92
|
-
"alias": null,
|
|
93
|
-
"args": null,
|
|
94
|
-
"kind": "ScalarField",
|
|
95
|
-
"name": "cssStyle",
|
|
96
|
-
"storageKey": null
|
|
97
|
-
},
|
|
98
|
-
v14 = {
|
|
55
|
+
v7 = {
|
|
99
56
|
"alias": null,
|
|
100
57
|
"args": null,
|
|
101
58
|
"kind": "ScalarField",
|
|
102
|
-
"name": "
|
|
59
|
+
"name": "axis",
|
|
103
60
|
"storageKey": null
|
|
104
61
|
},
|
|
105
|
-
|
|
62
|
+
v8 = {
|
|
106
63
|
"alias": null,
|
|
107
64
|
"args": null,
|
|
108
65
|
"kind": "ScalarField",
|
|
109
|
-
"name": "
|
|
66
|
+
"name": "name",
|
|
110
67
|
"storageKey": null
|
|
111
68
|
},
|
|
112
|
-
|
|
69
|
+
v9 = {
|
|
113
70
|
"alias": null,
|
|
114
71
|
"args": null,
|
|
115
72
|
"kind": "ScalarField",
|
|
116
73
|
"name": "value",
|
|
117
74
|
"storageKey": null
|
|
118
75
|
},
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
"alias": null,
|
|
122
|
-
"args": null,
|
|
123
|
-
"concreteType": "VariableInstance",
|
|
124
|
-
"kind": "LinkedField",
|
|
125
|
-
"name": "variableInstances",
|
|
126
|
-
"plural": true,
|
|
127
|
-
"selections": [v10 /*: any*/, {
|
|
128
|
-
"alias": null,
|
|
129
|
-
"args": null,
|
|
130
|
-
"concreteType": "VariableSetting",
|
|
131
|
-
"kind": "LinkedField",
|
|
132
|
-
"name": "coordinates",
|
|
133
|
-
"plural": true,
|
|
134
|
-
"selections": v17 /*: any*/,
|
|
135
|
-
"storageKey": null
|
|
136
|
-
}],
|
|
137
|
-
"storageKey": null
|
|
138
|
-
},
|
|
139
|
-
v19 = {
|
|
76
|
+
v10 = [v7 /*: any*/, v9 /*: any*/],
|
|
77
|
+
v11 = {
|
|
140
78
|
"kind": "Literal",
|
|
141
79
|
"name": "licenseOptions",
|
|
142
80
|
"value": [] /*: any*/
|
|
143
81
|
},
|
|
144
|
-
|
|
82
|
+
v12 = [v11 /*: any*/, {
|
|
145
83
|
"kind": "Literal",
|
|
146
84
|
"name": "orderVariables",
|
|
147
85
|
"value": [] /*: any*/
|
|
148
86
|
}],
|
|
149
|
-
|
|
87
|
+
v13 = {
|
|
150
88
|
"alias": null,
|
|
151
89
|
"args": null,
|
|
152
90
|
"kind": "ScalarField",
|
|
153
91
|
"name": "amount",
|
|
154
92
|
"storageKey": null
|
|
155
93
|
},
|
|
156
|
-
|
|
94
|
+
v14 = [v13 /*: any*/, {
|
|
157
95
|
"alias": null,
|
|
158
96
|
"args": null,
|
|
159
97
|
"kind": "ScalarField",
|
|
160
98
|
"name": "currency",
|
|
161
99
|
"storageKey": null
|
|
162
100
|
}],
|
|
163
|
-
|
|
101
|
+
v15 = {
|
|
164
102
|
"alias": null,
|
|
165
|
-
"args":
|
|
103
|
+
"args": v12 /*: any*/,
|
|
166
104
|
"concreteType": "Money",
|
|
167
105
|
"kind": "LinkedField",
|
|
168
106
|
"name": "price",
|
|
169
107
|
"plural": false,
|
|
170
|
-
"selections":
|
|
108
|
+
"selections": v14 /*: any*/,
|
|
171
109
|
"storageKey": "price(licenseOptions:[],orderVariables:[])"
|
|
172
110
|
},
|
|
173
|
-
|
|
111
|
+
v16 = {
|
|
174
112
|
"alias": null,
|
|
175
113
|
"args": null,
|
|
176
114
|
"kind": "ScalarField",
|
|
177
115
|
"name": "collectionType",
|
|
178
116
|
"storageKey": null
|
|
179
117
|
},
|
|
180
|
-
|
|
118
|
+
v17 = {
|
|
181
119
|
"alias": null,
|
|
182
120
|
"args": null,
|
|
183
121
|
"concreteType": "Sku",
|
|
184
122
|
"kind": "LinkedField",
|
|
185
123
|
"name": "sku",
|
|
186
124
|
"plural": false,
|
|
187
|
-
"selections": [
|
|
125
|
+
"selections": [v6 /*: any*/, v15 /*: any*/, {
|
|
188
126
|
"alias": "priceWithLicenseOptions",
|
|
189
|
-
"args":
|
|
127
|
+
"args": v12 /*: any*/,
|
|
190
128
|
"concreteType": "Money",
|
|
191
129
|
"kind": "LinkedField",
|
|
192
130
|
"name": "price",
|
|
193
131
|
"plural": false,
|
|
194
|
-
"selections":
|
|
132
|
+
"selections": v14 /*: any*/,
|
|
195
133
|
"storageKey": "price(licenseOptions:[],orderVariables:[])"
|
|
196
134
|
}],
|
|
197
135
|
"storageKey": null
|
|
198
136
|
},
|
|
199
|
-
|
|
137
|
+
v18 = {
|
|
200
138
|
"alias": null,
|
|
201
139
|
"args": null,
|
|
202
140
|
"kind": "ScalarField",
|
|
203
141
|
"name": "totalStyles",
|
|
204
142
|
"storageKey": null
|
|
205
143
|
},
|
|
206
|
-
|
|
144
|
+
v19 = {
|
|
207
145
|
"alias": null,
|
|
208
|
-
"args": [
|
|
146
|
+
"args": [v11 /*: any*/],
|
|
209
147
|
"concreteType": "Money",
|
|
210
148
|
"kind": "LinkedField",
|
|
211
149
|
"name": "totalStylesPrice",
|
|
212
150
|
"plural": false,
|
|
213
|
-
"selections":
|
|
151
|
+
"selections": v14 /*: any*/,
|
|
214
152
|
"storageKey": "totalStylesPrice(licenseOptions:[])"
|
|
215
153
|
},
|
|
216
|
-
|
|
154
|
+
v20 = {
|
|
217
155
|
"alias": null,
|
|
218
156
|
"args": null,
|
|
219
157
|
"concreteType": "FontCollection",
|
|
220
158
|
"kind": "LinkedField",
|
|
221
159
|
"name": "parent",
|
|
222
160
|
"plural": false,
|
|
223
|
-
"selections": [
|
|
161
|
+
"selections": [v6 /*: any*/, v8 /*: any*/, v16 /*: any*/, v17 /*: any*/, v18 /*: any*/, v19 /*: any*/],
|
|
224
162
|
"storageKey": null
|
|
225
163
|
};
|
|
226
164
|
return {
|
|
227
165
|
"fragment": {
|
|
228
|
-
"argumentDefinitions": [v0 /*: any*/, v1 /*: any*/, v2 /*: any
|
|
166
|
+
"argumentDefinitions": [v0 /*: any*/, v1 /*: any*/, v2 /*: any*/],
|
|
229
167
|
"kind": "Fragment",
|
|
230
168
|
"metadata": null,
|
|
231
169
|
"name": "TypeTestersSlugQuery",
|
|
@@ -237,16 +175,8 @@ const node = function () {
|
|
|
237
175
|
"name": "viewer",
|
|
238
176
|
"plural": false,
|
|
239
177
|
"selections": [{
|
|
240
|
-
"args": [{
|
|
241
|
-
"kind": "Variable",
|
|
242
|
-
"name": "selectable",
|
|
243
|
-
"variableName": "selectable"
|
|
244
|
-
}],
|
|
245
|
-
"kind": "FragmentSpread",
|
|
246
|
-
"name": "TypeTesters_viewer"
|
|
247
|
-
}, {
|
|
248
178
|
"alias": null,
|
|
249
|
-
"args":
|
|
179
|
+
"args": v3 /*: any*/,
|
|
250
180
|
"concreteType": "Slug",
|
|
251
181
|
"kind": "LinkedField",
|
|
252
182
|
"name": "slug",
|
|
@@ -259,7 +189,7 @@ const node = function () {
|
|
|
259
189
|
"name": "fontCollection",
|
|
260
190
|
"plural": false,
|
|
261
191
|
"selections": [{
|
|
262
|
-
"args": [
|
|
192
|
+
"args": [v4 /*: any*/, v5 /*: any*/],
|
|
263
193
|
"kind": "FragmentSpread",
|
|
264
194
|
"name": "TypeTesters_collection"
|
|
265
195
|
}],
|
|
@@ -274,7 +204,7 @@ const node = function () {
|
|
|
274
204
|
},
|
|
275
205
|
"kind": "Request",
|
|
276
206
|
"operation": {
|
|
277
|
-
"argumentDefinitions": [v0 /*: any*/,
|
|
207
|
+
"argumentDefinitions": [v0 /*: any*/, v2 /*: any*/, v1 /*: any*/],
|
|
278
208
|
"kind": "Operation",
|
|
279
209
|
"name": "TypeTestersSlugQuery",
|
|
280
210
|
"selections": [{
|
|
@@ -285,64 +215,8 @@ const node = function () {
|
|
|
285
215
|
"name": "viewer",
|
|
286
216
|
"plural": false,
|
|
287
217
|
"selections": [{
|
|
288
|
-
"condition": "selectable",
|
|
289
|
-
"kind": "Condition",
|
|
290
|
-
"passingValue": true,
|
|
291
|
-
"selections": [{
|
|
292
|
-
"alias": "families",
|
|
293
|
-
"args": [v7 /*: any*/, v8 /*: any*/],
|
|
294
|
-
"concreteType": "FontCollectionConnection",
|
|
295
|
-
"kind": "LinkedField",
|
|
296
|
-
"name": "fontCollections",
|
|
297
|
-
"plural": false,
|
|
298
|
-
"selections": [{
|
|
299
|
-
"alias": null,
|
|
300
|
-
"args": null,
|
|
301
|
-
"concreteType": "FontCollectionEdge",
|
|
302
|
-
"kind": "LinkedField",
|
|
303
|
-
"name": "edges",
|
|
304
|
-
"plural": true,
|
|
305
|
-
"selections": [{
|
|
306
|
-
"alias": null,
|
|
307
|
-
"args": null,
|
|
308
|
-
"concreteType": "FontCollection",
|
|
309
|
-
"kind": "LinkedField",
|
|
310
|
-
"name": "node",
|
|
311
|
-
"plural": false,
|
|
312
|
-
"selections": [v9 /*: any*/, v10 /*: any*/, {
|
|
313
|
-
"alias": null,
|
|
314
|
-
"args": null,
|
|
315
|
-
"kind": "ScalarField",
|
|
316
|
-
"name": "isVariableFont",
|
|
317
|
-
"storageKey": null
|
|
318
|
-
}, {
|
|
319
|
-
"alias": null,
|
|
320
|
-
"args": null,
|
|
321
|
-
"concreteType": "FontStyle",
|
|
322
|
-
"kind": "LinkedField",
|
|
323
|
-
"name": "featureStyle",
|
|
324
|
-
"plural": false,
|
|
325
|
-
"selections": [v11 /*: any*/, v9 /*: any*/],
|
|
326
|
-
"storageKey": null
|
|
327
|
-
}, {
|
|
328
|
-
"alias": null,
|
|
329
|
-
"args": null,
|
|
330
|
-
"concreteType": "FontStyle",
|
|
331
|
-
"kind": "LinkedField",
|
|
332
|
-
"name": "fontStyles",
|
|
333
|
-
"plural": true,
|
|
334
|
-
"selections": [v9 /*: any*/, v10 /*: any*/, v12 /*: any*/, v13 /*: any*/, v14 /*: any*/, v18 /*: any*/],
|
|
335
|
-
"storageKey": null
|
|
336
|
-
}],
|
|
337
|
-
"storageKey": null
|
|
338
|
-
}],
|
|
339
|
-
"storageKey": null
|
|
340
|
-
}],
|
|
341
|
-
"storageKey": "fontCollections(collectionTypes:[\"FAMILY\"],first:999)"
|
|
342
|
-
}]
|
|
343
|
-
}, {
|
|
344
218
|
"alias": null,
|
|
345
|
-
"args":
|
|
219
|
+
"args": v3 /*: any*/,
|
|
346
220
|
"concreteType": "Slug",
|
|
347
221
|
"kind": "LinkedField",
|
|
348
222
|
"name": "slug",
|
|
@@ -356,7 +230,11 @@ const node = function () {
|
|
|
356
230
|
"plural": false,
|
|
357
231
|
"selections": [{
|
|
358
232
|
"alias": null,
|
|
359
|
-
"args": [
|
|
233
|
+
"args": [v4 /*: any*/, {
|
|
234
|
+
"kind": "Literal",
|
|
235
|
+
"name": "first",
|
|
236
|
+
"value": 999
|
|
237
|
+
}, v5 /*: any*/],
|
|
360
238
|
"concreteType": "TypeTesterConnection",
|
|
361
239
|
"kind": "LinkedField",
|
|
362
240
|
"name": "typeTesters",
|
|
@@ -375,7 +253,7 @@ const node = function () {
|
|
|
375
253
|
"kind": "LinkedField",
|
|
376
254
|
"name": "node",
|
|
377
255
|
"plural": false,
|
|
378
|
-
"selections": [
|
|
256
|
+
"selections": [v6 /*: any*/, {
|
|
379
257
|
"alias": null,
|
|
380
258
|
"args": null,
|
|
381
259
|
"kind": "ScalarField",
|
|
@@ -418,7 +296,7 @@ const node = function () {
|
|
|
418
296
|
"kind": "LinkedField",
|
|
419
297
|
"name": "fontStyle",
|
|
420
298
|
"plural": false,
|
|
421
|
-
"selections": [
|
|
299
|
+
"selections": [v6 /*: any*/, {
|
|
422
300
|
"alias": null,
|
|
423
301
|
"args": null,
|
|
424
302
|
"concreteType": "FontFeatures",
|
|
@@ -461,7 +339,7 @@ const node = function () {
|
|
|
461
339
|
"kind": "LinkedField",
|
|
462
340
|
"name": "variableAxes",
|
|
463
341
|
"plural": true,
|
|
464
|
-
"selections": [
|
|
342
|
+
"selections": [v7 /*: any*/, v8 /*: any*/, {
|
|
465
343
|
"alias": null,
|
|
466
344
|
"args": null,
|
|
467
345
|
"kind": "ScalarField",
|
|
@@ -475,14 +353,56 @@ const node = function () {
|
|
|
475
353
|
"storageKey": null
|
|
476
354
|
}],
|
|
477
355
|
"storageKey": null
|
|
478
|
-
},
|
|
356
|
+
}, v8 /*: any*/, {
|
|
357
|
+
"alias": null,
|
|
358
|
+
"args": null,
|
|
359
|
+
"kind": "ScalarField",
|
|
360
|
+
"name": "supportedLanguages",
|
|
361
|
+
"storageKey": null
|
|
362
|
+
}, {
|
|
363
|
+
"alias": null,
|
|
364
|
+
"args": null,
|
|
365
|
+
"kind": "ScalarField",
|
|
366
|
+
"name": "cssWeight",
|
|
367
|
+
"storageKey": null
|
|
368
|
+
}, {
|
|
369
|
+
"alias": null,
|
|
370
|
+
"args": null,
|
|
371
|
+
"kind": "ScalarField",
|
|
372
|
+
"name": "cssStyle",
|
|
373
|
+
"storageKey": null
|
|
374
|
+
}, {
|
|
375
|
+
"alias": null,
|
|
376
|
+
"args": null,
|
|
377
|
+
"kind": "ScalarField",
|
|
378
|
+
"name": "cssStretch",
|
|
379
|
+
"storageKey": null
|
|
380
|
+
}, {
|
|
381
|
+
"alias": null,
|
|
382
|
+
"args": null,
|
|
383
|
+
"concreteType": "VariableInstance",
|
|
384
|
+
"kind": "LinkedField",
|
|
385
|
+
"name": "variableInstances",
|
|
386
|
+
"plural": true,
|
|
387
|
+
"selections": [v8 /*: any*/, {
|
|
388
|
+
"alias": null,
|
|
389
|
+
"args": null,
|
|
390
|
+
"concreteType": "VariableSetting",
|
|
391
|
+
"kind": "LinkedField",
|
|
392
|
+
"name": "coordinates",
|
|
393
|
+
"plural": true,
|
|
394
|
+
"selections": v10 /*: any*/,
|
|
395
|
+
"storageKey": null
|
|
396
|
+
}],
|
|
397
|
+
"storageKey": null
|
|
398
|
+
}, {
|
|
479
399
|
"alias": null,
|
|
480
400
|
"args": null,
|
|
481
401
|
"concreteType": "FontCollection",
|
|
482
402
|
"kind": "LinkedField",
|
|
483
403
|
"name": "family",
|
|
484
404
|
"plural": false,
|
|
485
|
-
"selections": [
|
|
405
|
+
"selections": [v6 /*: any*/, v8 /*: any*/],
|
|
486
406
|
"storageKey": null
|
|
487
407
|
}, {
|
|
488
408
|
"alias": null,
|
|
@@ -557,14 +477,14 @@ const node = function () {
|
|
|
557
477
|
"kind": "LinkedField",
|
|
558
478
|
"name": "sku",
|
|
559
479
|
"plural": false,
|
|
560
|
-
"selections": [
|
|
480
|
+
"selections": [v6 /*: any*/, v15 /*: any*/, {
|
|
561
481
|
"alias": "basePrice",
|
|
562
482
|
"args": null,
|
|
563
483
|
"concreteType": "Money",
|
|
564
484
|
"kind": "LinkedField",
|
|
565
485
|
"name": "price",
|
|
566
486
|
"plural": false,
|
|
567
|
-
"selections": [
|
|
487
|
+
"selections": [v13 /*: any*/],
|
|
568
488
|
"storageKey": null
|
|
569
489
|
}],
|
|
570
490
|
"storageKey": null
|
|
@@ -577,7 +497,7 @@ const node = function () {
|
|
|
577
497
|
"kind": "LinkedField",
|
|
578
498
|
"name": "variableSettings",
|
|
579
499
|
"plural": true,
|
|
580
|
-
"selections":
|
|
500
|
+
"selections": v10 /*: any*/,
|
|
581
501
|
"storageKey": null
|
|
582
502
|
}, {
|
|
583
503
|
"alias": null,
|
|
@@ -592,7 +512,7 @@ const node = function () {
|
|
|
592
512
|
"kind": "ScalarField",
|
|
593
513
|
"name": "feature",
|
|
594
514
|
"storageKey": null
|
|
595
|
-
},
|
|
515
|
+
}, v9 /*: any*/],
|
|
596
516
|
"storageKey": null
|
|
597
517
|
}, {
|
|
598
518
|
"alias": null,
|
|
@@ -618,33 +538,37 @@ const node = function () {
|
|
|
618
538
|
"kind": "ScalarField",
|
|
619
539
|
"name": "typeTesterAxes",
|
|
620
540
|
"storageKey": null
|
|
621
|
-
},
|
|
541
|
+
}, v6 /*: any*/, v8 /*: any*/, v16 /*: any*/, v17 /*: any*/, v18 /*: any*/, v19 /*: any*/, v20 /*: any*/, {
|
|
622
542
|
"alias": "families",
|
|
623
|
-
"args": [
|
|
543
|
+
"args": [{
|
|
544
|
+
"kind": "Literal",
|
|
545
|
+
"name": "collectionTypes",
|
|
546
|
+
"value": ["FAMILY"]
|
|
547
|
+
}],
|
|
624
548
|
"concreteType": "FontCollection",
|
|
625
549
|
"kind": "LinkedField",
|
|
626
550
|
"name": "children",
|
|
627
551
|
"plural": true,
|
|
628
|
-
"selections": [
|
|
552
|
+
"selections": [v6 /*: any*/, v8 /*: any*/, v16 /*: any*/, v17 /*: any*/, v18 /*: any*/, v19 /*: any*/, v20 /*: any*/],
|
|
629
553
|
"storageKey": "children(collectionTypes:[\"FAMILY\"])"
|
|
630
554
|
}],
|
|
631
555
|
"storageKey": null
|
|
632
|
-
},
|
|
556
|
+
}, v6 /*: any*/],
|
|
633
557
|
"storageKey": null
|
|
634
|
-
},
|
|
558
|
+
}, v6 /*: any*/],
|
|
635
559
|
"storageKey": null
|
|
636
560
|
}]
|
|
637
561
|
},
|
|
638
562
|
"params": {
|
|
639
|
-
"cacheID": "
|
|
563
|
+
"cacheID": "0846a9f2356431e317f88fd2c442500e",
|
|
640
564
|
"id": null,
|
|
641
565
|
"metadata": {},
|
|
642
566
|
"name": "TypeTestersSlugQuery",
|
|
643
567
|
"operationKind": "query",
|
|
644
|
-
"text": "query TypeTestersSlugQuery(\n $collectionSlug: String!\n $tags: [String!]\n $excludeTags: [String!]\n
|
|
568
|
+
"text": "query TypeTestersSlugQuery(\n $collectionSlug: String!\n $tags: [String!]\n $excludeTags: [String!]\n) {\n viewer {\n slug(name: $collectionSlug) {\n collection: fontCollection {\n ...TypeTesters_collection_4Goyz5\n id\n }\n id\n }\n id\n }\n}\n\nfragment FontStyle_fontStyle on FontStyle {\n ...useFontStyle_fontStyle\n}\n\nfragment PriceBarSection_node_3BtHDv on FontCollection {\n id\n name\n collectionType\n sku {\n ...SelectButton_sku_3BtHDv\n id\n priceWithLicenseOptions: price(licenseOptions: [], orderVariables: []) {\n ...Price_price\n }\n }\n totalStyles\n totalStylesPrice(licenseOptions: []) {\n ...Price_price\n }\n}\n\nfragment PriceBar_node_3BtHDv on FontCollection {\n ...PriceBarSection_node_3BtHDv\n parent {\n ...PriceBarSection_node_3BtHDv\n id\n }\n}\n\nfragment Price_price on Money {\n amount\n currency\n}\n\nfragment SKUPrice_sku_3BtHDv on Sku {\n id\n price(licenseOptions: [], orderVariables: []) {\n amount\n ...Price_price\n }\n}\n\nfragment SelectButton_sku_3BtHDv on Sku {\n id\n ...SKUPrice_sku_3BtHDv\n}\n\nfragment TypeTesterFeaturesButton_fontStyle on FontStyle {\n ...useFeaturesData_fontStyle\n}\n\nfragment TypeTesterFeatures_fontStyle on FontStyle {\n ...useFeaturesData_fontStyle\n ...TypeTesterVariableAxes_fontStyle\n}\n\nfragment TypeTesterFloatingToolbar_testers on TypeTester {\n id\n fontStyle {\n ...TypeTesterToolbar_fontStyle\n ...TypeTesterFeatures_fontStyle\n id\n }\n}\n\nfragment TypeTesterStyleSelectData_fontStyle on FontStyle {\n id\n name\n supportedLanguages\n cssWeight\n cssStyle\n cssStretch\n variableInstances {\n name\n coordinates {\n axis\n value\n }\n }\n family {\n id\n name\n }\n}\n\nfragment TypeTesterToolbar_fontStyle on FontStyle {\n ...TypeTesterVariableAxes_fontStyle\n ...TypeTesterFeaturesButton_fontStyle\n}\n\nfragment TypeTesterVariableAxes_fontStyle on FontStyle {\n variableAxes {\n axis\n name\n minValue\n maxValue\n }\n}\n\nfragment TypeTester_fontStyle_3BtHDv on FontStyle {\n id\n ...TypeTesterFeatures_fontStyle\n ...TypeTesterStyleSelectData_fontStyle\n ...FontStyle_fontStyle\n ...TypeTesterVariableAxes_fontStyle\n ...TypeTesterToolbar_fontStyle\n sku {\n ...SelectButton_sku_3BtHDv\n ...SKUPrice_sku_3BtHDv\n id\n basePrice: price {\n amount\n }\n }\n}\n\nfragment TypeTesters_collection_4Goyz5 on FontCollection {\n typeTesters(first: 999, tags: $tags, excludeTags: $excludeTags) {\n edges {\n node {\n id\n content\n size\n lineHeight\n letterSpacing\n autofit\n direction\n fontStyle {\n ...TypeTester_fontStyle_3BtHDv\n id\n family {\n id\n }\n }\n variableSettings {\n axis\n value\n }\n featureSettings {\n feature\n value\n }\n tags\n ...TypeTesterFloatingToolbar_testers\n }\n }\n }\n typeTesterFeatures\n typeTesterAxes\n id\n ...PriceBar_node_3BtHDv\n families: children(collectionTypes: [FAMILY]) {\n id\n ...PriceBar_node_3BtHDv\n }\n parent {\n id\n }\n}\n\nfragment useFeaturesData_fontStyle on FontStyle {\n fontFeatures {\n supportedFeatures\n stylisticSetNames {\n featureName\n humanName\n }\n }\n}\n\nfragment useFontStyle_fontStyle on FontStyle {\n cssFamily\n name\n webfontSources {\n url\n format\n tech\n }\n verticalMetrics {\n unitsPerEm\n ascender\n descender\n lineGap\n }\n}\n"
|
|
645
569
|
}
|
|
646
570
|
};
|
|
647
571
|
}();
|
|
648
|
-
node.hash = "
|
|
572
|
+
node.hash = "a7965166991a9ccda985c694ac45a093";
|
|
649
573
|
var _default = node;
|
|
650
574
|
exports.default = _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @generated SignedSource<<017a8a724b3a0fd0918153ce04d07f68>>
|
|
3
|
+
* @lightSyntaxTransform
|
|
4
|
+
* @nogrep
|
|
5
|
+
*/
|
|
6
|
+
import { ConcreteRequest } from 'relay-runtime';
|
|
7
|
+
export type UpdateOrderTrackingInput = {
|
|
8
|
+
analyticsConsent?: boolean | null;
|
|
9
|
+
anonymousId?: string | null;
|
|
10
|
+
fbc?: string | null;
|
|
11
|
+
fbp?: string | null;
|
|
12
|
+
url?: string | null;
|
|
13
|
+
};
|
|
14
|
+
export type orderTrackingUpdateOrderTrackingMutation$variables = {
|
|
15
|
+
input: UpdateOrderTrackingInput;
|
|
16
|
+
};
|
|
17
|
+
export type orderTrackingUpdateOrderTrackingMutation$data = {
|
|
18
|
+
readonly updateOrderTracking: {
|
|
19
|
+
readonly success: boolean | null;
|
|
20
|
+
} | null;
|
|
21
|
+
};
|
|
22
|
+
export type orderTrackingUpdateOrderTrackingMutation = {
|
|
23
|
+
response: orderTrackingUpdateOrderTrackingMutation$data;
|
|
24
|
+
variables: orderTrackingUpdateOrderTrackingMutation$variables;
|
|
25
|
+
};
|
|
26
|
+
declare const node: ConcreteRequest;
|
|
27
|
+
export default node;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* @generated SignedSource<<017a8a724b3a0fd0918153ce04d07f68>>
|
|
9
|
+
* @lightSyntaxTransform
|
|
10
|
+
* @nogrep
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/* tslint:disable */
|
|
14
|
+
/* eslint-disable */
|
|
15
|
+
// @ts-nocheck
|
|
16
|
+
|
|
17
|
+
const node = function () {
|
|
18
|
+
var v0 = [{
|
|
19
|
+
"defaultValue": null,
|
|
20
|
+
"kind": "LocalArgument",
|
|
21
|
+
"name": "input"
|
|
22
|
+
}],
|
|
23
|
+
v1 = [{
|
|
24
|
+
"alias": null,
|
|
25
|
+
"args": [{
|
|
26
|
+
"kind": "Variable",
|
|
27
|
+
"name": "input",
|
|
28
|
+
"variableName": "input"
|
|
29
|
+
}],
|
|
30
|
+
"concreteType": "UpdateOrderTrackingPayload",
|
|
31
|
+
"kind": "LinkedField",
|
|
32
|
+
"name": "updateOrderTracking",
|
|
33
|
+
"plural": false,
|
|
34
|
+
"selections": [{
|
|
35
|
+
"alias": null,
|
|
36
|
+
"args": null,
|
|
37
|
+
"kind": "ScalarField",
|
|
38
|
+
"name": "success",
|
|
39
|
+
"storageKey": null
|
|
40
|
+
}],
|
|
41
|
+
"storageKey": null
|
|
42
|
+
}];
|
|
43
|
+
return {
|
|
44
|
+
"fragment": {
|
|
45
|
+
"argumentDefinitions": v0 /*: any*/,
|
|
46
|
+
"kind": "Fragment",
|
|
47
|
+
"metadata": null,
|
|
48
|
+
"name": "orderTrackingUpdateOrderTrackingMutation",
|
|
49
|
+
"selections": v1 /*: any*/,
|
|
50
|
+
"type": "RootMutationType",
|
|
51
|
+
"abstractKey": null
|
|
52
|
+
},
|
|
53
|
+
"kind": "Request",
|
|
54
|
+
"operation": {
|
|
55
|
+
"argumentDefinitions": v0 /*: any*/,
|
|
56
|
+
"kind": "Operation",
|
|
57
|
+
"name": "orderTrackingUpdateOrderTrackingMutation",
|
|
58
|
+
"selections": v1 /*: any*/
|
|
59
|
+
},
|
|
60
|
+
"params": {
|
|
61
|
+
"cacheID": "c6d6059215c6ed30315c881dff80e9a7",
|
|
62
|
+
"id": null,
|
|
63
|
+
"metadata": {},
|
|
64
|
+
"name": "orderTrackingUpdateOrderTrackingMutation",
|
|
65
|
+
"operationKind": "mutation",
|
|
66
|
+
"text": "mutation orderTrackingUpdateOrderTrackingMutation(\n $input: UpdateOrderTrackingInput!\n) {\n updateOrderTracking(input: $input) {\n success\n }\n}\n"
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
}();
|
|
70
|
+
node.hash = "d59a127a7f140424f507ae549731bac7";
|
|
71
|
+
var _default = node;
|
|
72
|
+
exports.default = _default;
|
|
@@ -25,6 +25,7 @@ var _utils = require("./utils");
|
|
|
25
25
|
var _reactStripeJs = require("@stripe/react-stripe-js");
|
|
26
26
|
var _reactRedux = require("react-redux");
|
|
27
27
|
var _CartState = _interopRequireDefault(require("./CartState"));
|
|
28
|
+
var _orderTracking = require("./orderTracking");
|
|
28
29
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
29
30
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
30
31
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -54,6 +55,13 @@ const CartOrder = _ref => {
|
|
|
54
55
|
const environment = (0, _reactRelay.useRelayEnvironment)();
|
|
55
56
|
const stripe = (0, _reactStripeJs.useStripe)();
|
|
56
57
|
const dispatch = (0, _reactRedux.useDispatch)();
|
|
58
|
+
|
|
59
|
+
// Capture analytics consent + attribution on the order for the purchase
|
|
60
|
+
// event the server emits on completion (from a Stripe webhook, where no
|
|
61
|
+
// browser context exists).
|
|
62
|
+
(0, _react.useEffect)(() => {
|
|
63
|
+
if (open) (0, _orderTracking.sendOrderTracking)(environment);
|
|
64
|
+
}, [open, environment]);
|
|
57
65
|
const order = (0, _reactRelay.useFragment)((_CartOrder_order2.default.hash && _CartOrder_order2.default.hash !== "25ef000c40000c4f76f973ac6ac7f593" && console.error("The definition of 'CartOrder_order' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartOrder_order2.default), orderKey);
|
|
58
66
|
const viewer = (0, _reactRelay.useFragment)((_CartOrder_viewer2.default.hash && _CartOrder_viewer2.default.hash !== "8cf5ab5a33a474483a6c231cc44b0df1" && console.error("The definition of 'CartOrder_viewer' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _CartOrder_viewer2.default), viewerKey);
|
|
59
67
|
|