fontdue-js 2.0.0-alpha6 → 2.0.0-alpha8
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/dist/__generated__/CharacterViewerIDQuery.graphql.d.ts +21 -0
- package/dist/__generated__/CharacterViewerIDQuery.graphql.js +230 -0
- package/dist/__generated__/CharacterViewerSlugQuery.graphql.d.ts +25 -0
- package/dist/__generated__/CharacterViewerSlugQuery.graphql.js +257 -0
- package/dist/__generated__/NewsletterSignupQuery.graphql.d.ts +21 -0
- package/dist/__generated__/NewsletterSignupQuery.graphql.js +99 -0
- package/dist/__generated__/TypeTesterStandaloneQuery.graphql.d.ts +32 -0
- package/dist/__generated__/TypeTesterStandaloneQuery.graphql.js +385 -0
- package/dist/__generated__/TypeTestersIDQuery.graphql.d.ts +1 -2
- package/dist/__generated__/TypeTestersIDQuery.graphql.js +70 -107
- package/dist/__generated__/TypeTestersSlugQuery.graphql.d.ts +1 -2
- package/dist/__generated__/TypeTestersSlugQuery.graphql.js +70 -107
- package/dist/__generated__/TypeTesters_collection.graphql.d.ts +1 -1
- package/dist/__generated__/TypeTesters_collection.graphql.js +5 -14
- package/dist/components/BuyButton/BuyButton.server.d.ts +3 -0
- package/dist/components/BuyButton/BuyButton.server.js +39 -0
- package/dist/components/BuyButton/index.d.ts +11 -3
- package/dist/components/BuyButton/index.js +39 -13
- package/dist/components/BuyButton/index.server.d.ts +3 -0
- package/dist/components/BuyButton/index.server.js +37 -0
- package/dist/components/CartButton/index-server.d.ts +3 -0
- package/dist/components/CartButton/index-server.js +18 -0
- package/dist/components/CartButton/index.d.ts +9 -3
- package/dist/components/CartButton/index.js +22 -9
- package/dist/components/CartButton/index.server.d.ts +3 -0
- package/dist/components/CartButton/index.server.js +18 -0
- package/dist/components/CharacterViewer/index.d.ts +11 -3
- package/dist/components/CharacterViewer/index.js +88 -23
- package/dist/components/CharacterViewer/index.server.d.ts +3 -0
- package/dist/components/CharacterViewer/index.server.js +37 -0
- package/dist/components/FontdueProvider/FontdueProviderClientComponent.d.ts +14 -0
- package/dist/components/FontdueProvider/FontdueProviderClientComponent.js +44 -0
- package/dist/components/FontdueProvider/index.d.ts +3 -13
- package/dist/components/FontdueProvider/index.js +11 -31
- package/dist/components/FontdueProvider/index.server.d.ts +4 -0
- package/dist/components/FontdueProvider/index.server.js +27 -0
- package/dist/components/NewsletterSignup/index.d.ts +11 -3
- package/dist/components/NewsletterSignup/index.js +27 -12
- package/dist/components/NewsletterSignup/index.server.d.ts +3 -0
- package/dist/components/NewsletterSignup/index.server.js +18 -0
- package/dist/components/Precart/index.js +5 -3
- package/dist/components/PriceBar/PriceBarSection.js +3 -2
- package/dist/components/SKUPrice/index.js +4 -3
- package/dist/components/StoreModalProductSummary/index.js +3 -0
- package/dist/components/Stylesheet/index.js +1 -0
- package/dist/components/TestFontsForm/index.d.ts +7 -3
- package/dist/components/TestFontsForm/index.js +28 -11
- package/dist/components/TestFontsForm/index.server.d.ts +3 -0
- package/dist/components/TestFontsForm/index.server.js +18 -0
- package/dist/components/TestModeBanner/index.d.ts +6 -2
- package/dist/components/TestModeBanner/index.js +28 -10
- package/dist/components/TestModeBanner/index.server.d.ts +2 -0
- package/dist/components/TestModeBanner/index.server.js +17 -0
- package/dist/components/ThemeConfig/index.d.ts +6 -2
- package/dist/components/ThemeConfig/index.js +27 -10
- package/dist/components/ThemeConfig/index.server.d.ts +2 -0
- package/dist/components/ThemeConfig/index.server.js +17 -0
- package/dist/components/TypeTester/TypeTesterSlider.js +1 -1
- package/dist/components/TypeTester/TypeTesterStandalone.d.ts +12 -5
- package/dist/components/TypeTester/TypeTesterStandalone.js +43 -20
- package/dist/components/TypeTester/TypeTesterStandalone.server.d.ts +3 -0
- package/dist/components/TypeTester/TypeTesterStandalone.server.js +26 -0
- package/dist/components/TypeTesters/index.d.ts +11 -4
- package/dist/components/TypeTesters/index.js +50 -54
- package/dist/components/TypeTesters/index.server.d.ts +3 -0
- package/dist/components/TypeTesters/index.server.js +43 -0
- package/dist/fontdue.css +2656 -0
- package/dist/react-ranger.d.js +1 -0
- package/dist/react-ranger.js +306 -0
- package/dist/relay/environment.d.ts +10 -0
- package/dist/relay/environment.js +84 -0
- package/dist/relay/loadSerializableQuery.d.ts +7 -0
- package/dist/relay/loadSerializableQuery.js +19 -0
- package/dist/relay/useSerializablePreloadedQuery.d.ts +4 -0
- package/dist/relay/useSerializablePreloadedQuery.js +44 -0
- package/fontdue.css +0 -2
- package/package.json +43 -8
- package/BuyButton.d.ts +0 -3
- package/BuyButton.js +0 -1
- package/CartButton.d.ts +0 -3
- package/CartButton.js +0 -1
- package/CharacterViewer.d.ts +0 -3
- package/CharacterViewer.js +0 -1
- package/CustomerLoginForm.d.ts +0 -3
- package/CustomerLoginForm.js +0 -1
- package/FontdueProvider.d.ts +0 -3
- package/FontdueProvider.js +0 -1
- package/NewsletterSignup.d.ts +0 -3
- package/NewsletterSignup.js +0 -1
- package/StoreModal.d.ts +0 -3
- package/StoreModal.js +0 -1
- package/TestFontsForm.d.ts +0 -3
- package/TestFontsForm.js +0 -1
- package/TypeTester.d.ts +0 -3
- package/TypeTester.js +0 -1
- package/TypeTesters.d.ts +0 -3
- package/TypeTesters.js +0 -1
- package/useFontStyle.d.ts +0 -3
- package/useFontStyle.js +0 -1
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
/**
|
|
8
|
-
* @generated SignedSource<<
|
|
8
|
+
* @generated SignedSource<<f5c5e5a1071171464fb637676ecd406a>>
|
|
9
9
|
* @lightSyntaxTransform
|
|
10
10
|
* @nogrep
|
|
11
11
|
*/
|
|
@@ -26,196 +26,202 @@ const node = function () {
|
|
|
26
26
|
"name": "excludeTags"
|
|
27
27
|
},
|
|
28
28
|
v2 = {
|
|
29
|
-
"defaultValue": null,
|
|
30
|
-
"kind": "LocalArgument",
|
|
31
|
-
"name": "includePriceBar"
|
|
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
|
-
|
|
48
|
+
v6 = {
|
|
54
49
|
"kind": "Literal",
|
|
55
50
|
"name": "collectionTypes",
|
|
56
51
|
"value": ["FAMILY"]
|
|
57
52
|
},
|
|
58
|
-
|
|
53
|
+
v7 = {
|
|
59
54
|
"kind": "Literal",
|
|
60
55
|
"name": "first",
|
|
61
56
|
"value": 999
|
|
62
57
|
},
|
|
63
|
-
|
|
58
|
+
v8 = {
|
|
64
59
|
"alias": null,
|
|
65
60
|
"args": null,
|
|
66
61
|
"kind": "ScalarField",
|
|
67
62
|
"name": "id",
|
|
68
63
|
"storageKey": null
|
|
69
64
|
},
|
|
70
|
-
|
|
65
|
+
v9 = {
|
|
71
66
|
"alias": null,
|
|
72
67
|
"args": null,
|
|
73
68
|
"kind": "ScalarField",
|
|
74
69
|
"name": "name",
|
|
75
70
|
"storageKey": null
|
|
76
71
|
},
|
|
77
|
-
|
|
72
|
+
v10 = {
|
|
78
73
|
"alias": null,
|
|
79
74
|
"args": null,
|
|
80
75
|
"kind": "ScalarField",
|
|
81
76
|
"name": "cssWeight",
|
|
82
77
|
"storageKey": null
|
|
83
78
|
},
|
|
84
|
-
|
|
79
|
+
v11 = {
|
|
85
80
|
"alias": null,
|
|
86
81
|
"args": null,
|
|
87
82
|
"kind": "ScalarField",
|
|
88
83
|
"name": "cssStyle",
|
|
89
84
|
"storageKey": null
|
|
90
85
|
},
|
|
91
|
-
|
|
86
|
+
v12 = {
|
|
92
87
|
"alias": null,
|
|
93
88
|
"args": null,
|
|
94
89
|
"kind": "ScalarField",
|
|
95
90
|
"name": "cssStretch",
|
|
96
91
|
"storageKey": null
|
|
97
92
|
},
|
|
98
|
-
|
|
93
|
+
v13 = {
|
|
99
94
|
"alias": null,
|
|
100
95
|
"args": null,
|
|
101
96
|
"kind": "ScalarField",
|
|
102
97
|
"name": "axis",
|
|
103
98
|
"storageKey": null
|
|
104
99
|
},
|
|
105
|
-
|
|
100
|
+
v14 = {
|
|
106
101
|
"alias": null,
|
|
107
102
|
"args": null,
|
|
108
103
|
"kind": "ScalarField",
|
|
109
104
|
"name": "value",
|
|
110
105
|
"storageKey": null
|
|
111
106
|
},
|
|
112
|
-
|
|
113
|
-
|
|
107
|
+
v15 = [v13 /*: any*/, v14 /*: any*/],
|
|
108
|
+
v16 = {
|
|
114
109
|
"alias": null,
|
|
115
110
|
"args": null,
|
|
116
111
|
"concreteType": "VariableInstance",
|
|
117
112
|
"kind": "LinkedField",
|
|
118
113
|
"name": "variableInstances",
|
|
119
114
|
"plural": true,
|
|
120
|
-
"selections": [
|
|
115
|
+
"selections": [v9 /*: any*/, {
|
|
121
116
|
"alias": null,
|
|
122
117
|
"args": null,
|
|
123
118
|
"concreteType": "VariableSetting",
|
|
124
119
|
"kind": "LinkedField",
|
|
125
120
|
"name": "coordinates",
|
|
126
121
|
"plural": true,
|
|
127
|
-
"selections":
|
|
122
|
+
"selections": v15 /*: any*/,
|
|
128
123
|
"storageKey": null
|
|
129
124
|
}],
|
|
130
125
|
"storageKey": null
|
|
131
126
|
},
|
|
132
|
-
|
|
127
|
+
v17 = [{
|
|
133
128
|
"kind": "Literal",
|
|
134
129
|
"name": "licenseOptions",
|
|
135
130
|
"value": [] /*: any*/
|
|
136
131
|
}],
|
|
137
|
-
|
|
132
|
+
v18 = {
|
|
138
133
|
"alias": null,
|
|
139
134
|
"args": null,
|
|
140
135
|
"kind": "ScalarField",
|
|
141
136
|
"name": "amount",
|
|
142
137
|
"storageKey": null
|
|
143
138
|
},
|
|
144
|
-
|
|
139
|
+
v19 = [v18 /*: any*/, {
|
|
145
140
|
"alias": null,
|
|
146
141
|
"args": null,
|
|
147
142
|
"kind": "ScalarField",
|
|
148
143
|
"name": "currency",
|
|
149
144
|
"storageKey": null
|
|
150
145
|
}],
|
|
151
|
-
|
|
146
|
+
v20 = {
|
|
152
147
|
"alias": null,
|
|
153
|
-
"args":
|
|
148
|
+
"args": v17 /*: any*/,
|
|
154
149
|
"concreteType": "Money",
|
|
155
150
|
"kind": "LinkedField",
|
|
156
151
|
"name": "price",
|
|
157
152
|
"plural": false,
|
|
158
|
-
"selections":
|
|
153
|
+
"selections": v19 /*: any*/,
|
|
159
154
|
"storageKey": "price(licenseOptions:[])"
|
|
160
155
|
},
|
|
161
|
-
|
|
156
|
+
v21 = {
|
|
162
157
|
"alias": null,
|
|
163
158
|
"args": null,
|
|
164
159
|
"concreteType": "Sku",
|
|
165
160
|
"kind": "LinkedField",
|
|
166
161
|
"name": "sku",
|
|
167
162
|
"plural": false,
|
|
168
|
-
"selections": [
|
|
163
|
+
"selections": [v8 /*: any*/, v20 /*: any*/, {
|
|
169
164
|
"alias": "basePrice",
|
|
170
165
|
"args": null,
|
|
171
166
|
"concreteType": "Money",
|
|
172
167
|
"kind": "LinkedField",
|
|
173
168
|
"name": "price",
|
|
174
169
|
"plural": false,
|
|
175
|
-
"selections": [
|
|
170
|
+
"selections": [v18 /*: any*/],
|
|
176
171
|
|
|
177
172
|
"storageKey": null
|
|
178
173
|
}],
|
|
179
174
|
"storageKey": null
|
|
180
175
|
},
|
|
181
|
-
|
|
176
|
+
v22 = {
|
|
182
177
|
"alias": null,
|
|
183
178
|
"args": null,
|
|
184
179
|
"kind": "ScalarField",
|
|
185
180
|
"name": "collectionType",
|
|
186
181
|
"storageKey": null
|
|
187
182
|
},
|
|
188
|
-
|
|
183
|
+
v23 = {
|
|
189
184
|
"alias": null,
|
|
190
185
|
"args": null,
|
|
191
186
|
"concreteType": "Sku",
|
|
192
187
|
"kind": "LinkedField",
|
|
193
188
|
"name": "sku",
|
|
194
189
|
"plural": false,
|
|
195
|
-
"selections": [
|
|
190
|
+
"selections": [v8 /*: any*/, v20 /*: any*/],
|
|
196
191
|
|
|
197
192
|
"storageKey": null
|
|
198
193
|
},
|
|
199
|
-
|
|
194
|
+
v24 = {
|
|
200
195
|
"alias": null,
|
|
201
196
|
"args": null,
|
|
202
197
|
"kind": "ScalarField",
|
|
203
198
|
"name": "totalStyles",
|
|
204
199
|
"storageKey": null
|
|
205
200
|
},
|
|
206
|
-
|
|
201
|
+
v25 = {
|
|
207
202
|
"alias": null,
|
|
208
|
-
"args":
|
|
203
|
+
"args": v17 /*: any*/,
|
|
209
204
|
"concreteType": "Money",
|
|
210
205
|
"kind": "LinkedField",
|
|
211
206
|
"name": "totalStylesPrice",
|
|
212
207
|
"plural": false,
|
|
213
|
-
"selections":
|
|
208
|
+
"selections": v19 /*: any*/,
|
|
214
209
|
"storageKey": "totalStylesPrice(licenseOptions:[])"
|
|
210
|
+
},
|
|
211
|
+
v26 = {
|
|
212
|
+
"alias": null,
|
|
213
|
+
"args": null,
|
|
214
|
+
"concreteType": "FontCollection",
|
|
215
|
+
"kind": "LinkedField",
|
|
216
|
+
"name": "parent",
|
|
217
|
+
"plural": false,
|
|
218
|
+
"selections": [v8 /*: any*/, v9 /*: any*/, v22 /*: any*/, v23 /*: any*/, v24 /*: any*/, v25 /*: any*/],
|
|
219
|
+
|
|
220
|
+
"storageKey": null
|
|
215
221
|
};
|
|
216
222
|
return {
|
|
217
223
|
"fragment": {
|
|
218
|
-
"argumentDefinitions": [v0 /*: any*/, v1 /*: any*/, v2 /*: any
|
|
224
|
+
"argumentDefinitions": [v0 /*: any*/, v1 /*: any*/, v2 /*: any*/],
|
|
219
225
|
|
|
220
226
|
"kind": "Fragment",
|
|
221
227
|
"metadata": null,
|
|
@@ -233,7 +239,7 @@ const node = function () {
|
|
|
233
239
|
"name": "TypeTesters_viewer"
|
|
234
240
|
}, {
|
|
235
241
|
"alias": null,
|
|
236
|
-
"args":
|
|
242
|
+
"args": v3 /*: any*/,
|
|
237
243
|
"concreteType": "Slug",
|
|
238
244
|
"kind": "LinkedField",
|
|
239
245
|
"name": "slug",
|
|
@@ -246,11 +252,7 @@ const node = function () {
|
|
|
246
252
|
"name": "fontCollection",
|
|
247
253
|
"plural": false,
|
|
248
254
|
"selections": [{
|
|
249
|
-
"args": [
|
|
250
|
-
"kind": "Variable",
|
|
251
|
-
"name": "includePriceBar",
|
|
252
|
-
"variableName": "includePriceBar"
|
|
253
|
-
}, v6 /*: any*/],
|
|
255
|
+
"args": [v4 /*: any*/, v5 /*: any*/],
|
|
254
256
|
|
|
255
257
|
"kind": "FragmentSpread",
|
|
256
258
|
"name": "TypeTesters_collection"
|
|
@@ -266,7 +268,7 @@ const node = function () {
|
|
|
266
268
|
},
|
|
267
269
|
"kind": "Request",
|
|
268
270
|
"operation": {
|
|
269
|
-
"argumentDefinitions": [v0 /*: any*/, v2 /*: any*/,
|
|
271
|
+
"argumentDefinitions": [v0 /*: any*/, v2 /*: any*/, v1 /*: any*/],
|
|
270
272
|
|
|
271
273
|
"kind": "Operation",
|
|
272
274
|
"name": "TypeTestersSlugQuery",
|
|
@@ -279,7 +281,7 @@ const node = function () {
|
|
|
279
281
|
"plural": false,
|
|
280
282
|
"selections": [{
|
|
281
283
|
"alias": "families",
|
|
282
|
-
"args": [
|
|
284
|
+
"args": [v6 /*: any*/, v7 /*: any*/],
|
|
283
285
|
|
|
284
286
|
"concreteType": "FontCollectionConnection",
|
|
285
287
|
"kind": "LinkedField",
|
|
@@ -299,7 +301,7 @@ const node = function () {
|
|
|
299
301
|
"kind": "LinkedField",
|
|
300
302
|
"name": "node",
|
|
301
303
|
"plural": false,
|
|
302
|
-
"selections": [
|
|
304
|
+
"selections": [v8 /*: any*/, v9 /*: any*/, {
|
|
303
305
|
"alias": null,
|
|
304
306
|
"args": null,
|
|
305
307
|
"kind": "ScalarField",
|
|
@@ -312,7 +314,7 @@ const node = function () {
|
|
|
312
314
|
"kind": "LinkedField",
|
|
313
315
|
"name": "fontStyles",
|
|
314
316
|
"plural": true,
|
|
315
|
-
"selections": [
|
|
317
|
+
"selections": [v8 /*: any*/, v9 /*: any*/, v10 /*: any*/, v11 /*: any*/, v12 /*: any*/, v16 /*: any*/],
|
|
316
318
|
|
|
317
319
|
"storageKey": null
|
|
318
320
|
}],
|
|
@@ -323,7 +325,7 @@ const node = function () {
|
|
|
323
325
|
"storageKey": "fontCollections(collectionTypes:[\"FAMILY\"],first:999)"
|
|
324
326
|
}, {
|
|
325
327
|
"alias": null,
|
|
326
|
-
"args":
|
|
328
|
+
"args": v3 /*: any*/,
|
|
327
329
|
"concreteType": "Slug",
|
|
328
330
|
"kind": "LinkedField",
|
|
329
331
|
"name": "slug",
|
|
@@ -337,7 +339,7 @@ const node = function () {
|
|
|
337
339
|
"plural": false,
|
|
338
340
|
"selections": [{
|
|
339
341
|
"alias": null,
|
|
340
|
-
"args": [
|
|
342
|
+
"args": [v4 /*: any*/, v7 /*: any*/, v5 /*: any*/],
|
|
341
343
|
|
|
342
344
|
"concreteType": "TypeTesterConnection",
|
|
343
345
|
"kind": "LinkedField",
|
|
@@ -357,7 +359,7 @@ const node = function () {
|
|
|
357
359
|
"kind": "LinkedField",
|
|
358
360
|
"name": "node",
|
|
359
361
|
"plural": false,
|
|
360
|
-
"selections": [
|
|
362
|
+
"selections": [v8 /*: any*/, {
|
|
361
363
|
"alias": null,
|
|
362
364
|
"args": null,
|
|
363
365
|
"kind": "ScalarField",
|
|
@@ -388,14 +390,14 @@ const node = function () {
|
|
|
388
390
|
"kind": "LinkedField",
|
|
389
391
|
"name": "fontStyle",
|
|
390
392
|
"plural": false,
|
|
391
|
-
"selections": [
|
|
393
|
+
"selections": [v8 /*: any*/, {
|
|
392
394
|
"alias": null,
|
|
393
395
|
"args": null,
|
|
394
396
|
"concreteType": "VariableAxis",
|
|
395
397
|
"kind": "LinkedField",
|
|
396
398
|
"name": "variableAxes",
|
|
397
399
|
"plural": true,
|
|
398
|
-
"selections": [
|
|
400
|
+
"selections": [v13 /*: any*/, v9 /*: any*/, {
|
|
399
401
|
"alias": null,
|
|
400
402
|
"args": null,
|
|
401
403
|
"kind": "ScalarField",
|
|
@@ -445,14 +447,14 @@ const node = function () {
|
|
|
445
447
|
"storageKey": null
|
|
446
448
|
}],
|
|
447
449
|
"storageKey": null
|
|
448
|
-
},
|
|
450
|
+
}, v9 /*: any*/, v10 /*: any*/, v11 /*: any*/, v12 /*: any*/, v16 /*: any*/, {
|
|
449
451
|
"alias": null,
|
|
450
452
|
"args": null,
|
|
451
453
|
"concreteType": "FontCollection",
|
|
452
454
|
"kind": "LinkedField",
|
|
453
455
|
"name": "family",
|
|
454
456
|
"plural": false,
|
|
455
|
-
"selections": [
|
|
457
|
+
"selections": [v9 /*: any*/, v8 /*: any*/, {
|
|
456
458
|
"alias": null,
|
|
457
459
|
"args": null,
|
|
458
460
|
"kind": "ScalarField",
|
|
@@ -466,14 +468,14 @@ const node = function () {
|
|
|
466
468
|
"kind": "ScalarField",
|
|
467
469
|
"name": "cssFamily",
|
|
468
470
|
"storageKey": null
|
|
469
|
-
},
|
|
471
|
+
}, v21 /*: any*/, {
|
|
470
472
|
"alias": null,
|
|
471
473
|
"args": null,
|
|
472
474
|
"concreteType": "FontCollection",
|
|
473
475
|
"kind": "LinkedField",
|
|
474
476
|
"name": "fontCollections",
|
|
475
477
|
"plural": true,
|
|
476
|
-
"selections": [
|
|
478
|
+
"selections": [v21 /*: any*/, v8 /*: any*/],
|
|
477
479
|
|
|
478
480
|
"storageKey": null
|
|
479
481
|
}],
|
|
@@ -485,7 +487,7 @@ const node = function () {
|
|
|
485
487
|
"kind": "LinkedField",
|
|
486
488
|
"name": "variableSettings",
|
|
487
489
|
"plural": true,
|
|
488
|
-
"selections":
|
|
490
|
+
"selections": v15 /*: any*/,
|
|
489
491
|
"storageKey": null
|
|
490
492
|
}, {
|
|
491
493
|
"alias": null,
|
|
@@ -500,7 +502,7 @@ const node = function () {
|
|
|
500
502
|
"kind": "ScalarField",
|
|
501
503
|
"name": "feature",
|
|
502
504
|
"storageKey": null
|
|
503
|
-
},
|
|
505
|
+
}, v14 /*: any*/],
|
|
504
506
|
|
|
505
507
|
"storageKey": null
|
|
506
508
|
}],
|
|
@@ -521,76 +523,37 @@ const node = function () {
|
|
|
521
523
|
"kind": "ScalarField",
|
|
522
524
|
"name": "typeTesterAxes",
|
|
523
525
|
"storageKey": null
|
|
524
|
-
}, v9 /*: any*/, {
|
|
526
|
+
}, v8 /*: any*/, v9 /*: any*/, v22 /*: any*/, v23 /*: any*/, v24 /*: any*/, v25 /*: any*/, v26 /*: any*/, {
|
|
525
527
|
"alias": "families",
|
|
526
|
-
"args": [
|
|
528
|
+
"args": [v6 /*: any*/],
|
|
527
529
|
|
|
528
530
|
"concreteType": "FontCollection",
|
|
529
531
|
"kind": "LinkedField",
|
|
530
532
|
"name": "children",
|
|
531
533
|
"plural": true,
|
|
532
|
-
"selections": [v9 /*: any*/,
|
|
533
|
-
"condition": "includePriceBar",
|
|
534
|
-
"kind": "Condition",
|
|
535
|
-
"passingValue": true,
|
|
536
|
-
"selections": [v10 /*: any*/, v23 /*: any*/, v24 /*: any*/, v25 /*: any*/, v26 /*: any*/, {
|
|
537
|
-
"alias": null,
|
|
538
|
-
"args": null,
|
|
539
|
-
"concreteType": "FontCollection",
|
|
540
|
-
"kind": "LinkedField",
|
|
541
|
-
"name": "parent",
|
|
542
|
-
"plural": false,
|
|
543
|
-
"selections": [v9 /*: any*/, v10 /*: any*/, v23 /*: any*/, v24 /*: any*/, v25 /*: any*/, v26 /*: any*/],
|
|
534
|
+
"selections": [v8 /*: any*/, v9 /*: any*/, v22 /*: any*/, v23 /*: any*/, v24 /*: any*/, v25 /*: any*/, v26 /*: any*/],
|
|
544
535
|
|
|
545
|
-
"storageKey": null
|
|
546
|
-
}]
|
|
547
|
-
}],
|
|
548
536
|
"storageKey": "children(collectionTypes:[\"FAMILY\"])"
|
|
549
|
-
}, {
|
|
550
|
-
"alias": null,
|
|
551
|
-
"args": null,
|
|
552
|
-
"concreteType": "FontCollection",
|
|
553
|
-
"kind": "LinkedField",
|
|
554
|
-
"name": "parent",
|
|
555
|
-
"plural": false,
|
|
556
|
-
"selections": [v9 /*: any*/],
|
|
557
|
-
|
|
558
|
-
"storageKey": null
|
|
559
|
-
}, {
|
|
560
|
-
"condition": "includePriceBar",
|
|
561
|
-
"kind": "Condition",
|
|
562
|
-
"passingValue": true,
|
|
563
|
-
"selections": [v10 /*: any*/, v23 /*: any*/, v24 /*: any*/, v25 /*: any*/, v26 /*: any*/, {
|
|
564
|
-
"alias": null,
|
|
565
|
-
"args": null,
|
|
566
|
-
"concreteType": "FontCollection",
|
|
567
|
-
"kind": "LinkedField",
|
|
568
|
-
"name": "parent",
|
|
569
|
-
"plural": false,
|
|
570
|
-
"selections": [v10 /*: any*/, v23 /*: any*/, v24 /*: any*/, v25 /*: any*/, v26 /*: any*/],
|
|
571
|
-
|
|
572
|
-
"storageKey": null
|
|
573
|
-
}]
|
|
574
537
|
}],
|
|
575
538
|
"storageKey": null
|
|
576
|
-
},
|
|
539
|
+
}, v8 /*: any*/],
|
|
577
540
|
|
|
578
541
|
"storageKey": null
|
|
579
|
-
},
|
|
542
|
+
}, v8 /*: any*/],
|
|
580
543
|
|
|
581
544
|
"storageKey": null
|
|
582
545
|
}]
|
|
583
546
|
},
|
|
584
547
|
"params": {
|
|
585
|
-
"cacheID": "
|
|
548
|
+
"cacheID": "2cc2d650d7a66f47092453908a3b260e",
|
|
586
549
|
"id": null,
|
|
587
550
|
"metadata": {},
|
|
588
551
|
"name": "TypeTestersSlugQuery",
|
|
589
552
|
"operationKind": "query",
|
|
590
|
-
"text": "query TypeTestersSlugQuery(\n $collectionSlug: String!\n $
|
|
553
|
+
"text": "query TypeTestersSlugQuery(\n $collectionSlug: String!\n $tags: [String!]\n $excludeTags: [String!]\n) {\n viewer {\n ...TypeTesters_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 cssFamily\n name\n}\n\nfragment PriceBarSection_node on FontCollection {\n id\n name\n collectionType\n sku {\n ...SelectButton_sku_2AMk59\n id\n price(licenseOptions: []) {\n ...Price_price\n }\n }\n totalStyles\n totalStylesPrice(licenseOptions: []) {\n ...Price_price\n }\n}\n\nfragment PriceBar_node on FontCollection {\n ...PriceBarSection_node\n parent {\n ...PriceBarSection_node\n id\n }\n}\n\nfragment Price_price on Money {\n amount\n currency\n}\n\nfragment SKUPrice_sku on Sku {\n id\n price(licenseOptions: []) {\n amount\n ...Price_price\n }\n}\n\nfragment SKUPrice_sku_2AMk59 on Sku {\n id\n price(licenseOptions: []) {\n amount\n ...Price_price\n }\n}\n\nfragment SelectButton_sku on Sku {\n id\n ...SKUPrice_sku_2AMk59\n}\n\nfragment SelectButton_sku_2AMk59 on Sku {\n id\n ...SKUPrice_sku_2AMk59\n}\n\nfragment TypeTesterFeatures_fontStyle on FontStyle {\n ...useFeaturesData_fontStyle\n}\n\nfragment TypeTesterFloatingToolbar_testers on TypeTester {\n id\n fontStyle {\n ...useFeaturesData_fontStyle\n ...TypeTesterFeatures_fontStyle\n id\n }\n}\n\nfragment TypeTesterStyleSelectData_fontStyle on FontStyle {\n id\n name\n cssWeight\n cssStyle\n cssStretch\n variableInstances {\n name\n coordinates {\n axis\n value\n }\n }\n family {\n name\n id\n }\n}\n\nfragment TypeTesterStyleSelectData_viewer on Viewer {\n families: fontCollections(collectionTypes: [FAMILY], first: 999) {\n edges {\n node {\n id\n name\n isVariableFont\n fontStyles {\n id\n name\n cssWeight\n cssStyle\n cssStretch\n variableInstances {\n name\n coordinates {\n axis\n value\n }\n }\n }\n }\n }\n }\n}\n\nfragment TypeTester_fontStyle on FontStyle {\n id\n ...TypeTesterFeatures_fontStyle\n ...TypeTesterStyleSelectData_fontStyle\n ...FontStyle_fontStyle\n ...useFeaturesData_fontStyle\n family {\n cssUrl\n id\n }\n sku {\n ...SelectButton_sku\n ...SKUPrice_sku\n id\n basePrice: price {\n amount\n }\n }\n fontCollections {\n sku {\n ...SelectButton_sku\n ...SKUPrice_sku\n id\n basePrice: price {\n amount\n }\n }\n id\n }\n}\n\nfragment TypeTester_viewer on Viewer {\n ...TypeTesterStyleSelectData_viewer\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 direction\n fontStyle {\n ...TypeTester_fontStyle\n id\n family {\n id\n }\n }\n variableSettings {\n axis\n value\n }\n featureSettings {\n feature\n value\n }\n ...TypeTesterFloatingToolbar_testers\n }\n }\n }\n typeTesterFeatures\n typeTesterAxes\n id\n ...PriceBar_node\n families: children(collectionTypes: [FAMILY]) {\n id\n ...PriceBar_node\n }\n parent {\n id\n }\n}\n\nfragment TypeTesters_viewer on Viewer {\n ...TypeTester_viewer\n}\n\nfragment useFeaturesData_fontStyle on FontStyle {\n variableAxes {\n axis\n name\n minValue\n maxValue\n }\n fontFeatures {\n supportedFeatures\n stylisticSetNames {\n featureName\n humanName\n }\n }\n}\n"
|
|
591
554
|
}
|
|
592
555
|
};
|
|
593
556
|
}();
|
|
594
|
-
node.hash = "
|
|
557
|
+
node.hash = "eb11a6ae2b690cb3cdd8a14c6e2afed6";
|
|
595
558
|
var _default = node;
|
|
596
559
|
exports.default = _default;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
/**
|
|
8
|
-
* @generated SignedSource<<
|
|
8
|
+
* @generated SignedSource<<e51cd1dcc5135f4de8869a04f32b47d0>>
|
|
9
9
|
* @lightSyntaxTransform
|
|
10
10
|
* @nogrep
|
|
11
11
|
*/
|
|
@@ -31,24 +31,15 @@ const node = function () {
|
|
|
31
31
|
"storageKey": null
|
|
32
32
|
},
|
|
33
33
|
v3 = {
|
|
34
|
-
"
|
|
35
|
-
"kind": "
|
|
36
|
-
"
|
|
37
|
-
"selections": [{
|
|
38
|
-
"args": null,
|
|
39
|
-
"kind": "FragmentSpread",
|
|
40
|
-
"name": "PriceBar_node"
|
|
41
|
-
}]
|
|
34
|
+
"args": null,
|
|
35
|
+
"kind": "FragmentSpread",
|
|
36
|
+
"name": "PriceBar_node"
|
|
42
37
|
};
|
|
43
38
|
return {
|
|
44
39
|
"argumentDefinitions": [{
|
|
45
40
|
"defaultValue": null,
|
|
46
41
|
"kind": "LocalArgument",
|
|
47
42
|
"name": "excludeTags"
|
|
48
|
-
}, {
|
|
49
|
-
"defaultValue": false,
|
|
50
|
-
"kind": "LocalArgument",
|
|
51
|
-
"name": "includePriceBar"
|
|
52
43
|
}, {
|
|
53
44
|
"defaultValue": null,
|
|
54
45
|
"kind": "LocalArgument",
|
|
@@ -218,6 +209,6 @@ const node = function () {
|
|
|
218
209
|
"abstractKey": null
|
|
219
210
|
};
|
|
220
211
|
}();
|
|
221
|
-
node.hash = "
|
|
212
|
+
node.hash = "4e661d9d957e3a3f4a7b23f3665cadf9";
|
|
222
213
|
var _default = node;
|
|
223
214
|
exports.default = _default;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = BuyButton;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _loadSerializableQuery = _interopRequireDefault(require("../../relay/loadSerializableQuery"));
|
|
9
|
+
var _index = require("./index");
|
|
10
|
+
var _BuyButtonIDQuery = _interopRequireDefault(require("../../__generated__/BuyButtonIDQuery.graphql"));
|
|
11
|
+
var _BuyButtonSlugQuery = _interopRequireDefault(require("../../__generated__/BuyButtonSlugQuery.graphql"));
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
14
|
+
async function BuyButton(_ref) {
|
|
15
|
+
let {
|
|
16
|
+
collectionId,
|
|
17
|
+
collectionSlug,
|
|
18
|
+
...rest
|
|
19
|
+
} = _ref;
|
|
20
|
+
if (collectionId) {
|
|
21
|
+
const preloadedQuery = await (0, _loadSerializableQuery.default)(_BuyButtonIDQuery.default, {
|
|
22
|
+
collectionId
|
|
23
|
+
});
|
|
24
|
+
return /*#__PURE__*/_react.default.createElement(_index.BuyButtonPreloadedIDQueryRenderer, _extends({
|
|
25
|
+
preloadedQuery: preloadedQuery,
|
|
26
|
+
collectionId: collectionId
|
|
27
|
+
}, rest));
|
|
28
|
+
}
|
|
29
|
+
if (collectionSlug) {
|
|
30
|
+
const preloadedQuery = await (0, _loadSerializableQuery.default)(_BuyButtonSlugQuery.default, {
|
|
31
|
+
collectionSlug
|
|
32
|
+
});
|
|
33
|
+
return /*#__PURE__*/_react.default.createElement(_index.BuyButtonPreloadedSlugQueryRenderer, _extends({
|
|
34
|
+
preloadedQuery: preloadedQuery,
|
|
35
|
+
collectionSlug: collectionSlug
|
|
36
|
+
}, rest));
|
|
37
|
+
}
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
import { BuyButtonIDQuery } from '../../__generated__/BuyButtonIDQuery.graphql';
|
|
3
|
+
import { BuyButtonSlugQuery } from '../../__generated__/BuyButtonSlugQuery.graphql';
|
|
4
|
+
import { SerializablePreloadedQuery } from '../../relay/loadSerializableQuery';
|
|
5
|
+
export interface BuyButton_props {
|
|
3
6
|
collectionId?: string | null;
|
|
4
7
|
collectionSlug?: string | null;
|
|
5
8
|
collectionName?: string;
|
|
6
9
|
label?: string;
|
|
7
10
|
}
|
|
8
|
-
declare function
|
|
9
|
-
|
|
11
|
+
export declare function BuyButtonPreloadedIDQueryRenderer({ preloadedQuery, ...rest }: BuyButton_props & {
|
|
12
|
+
preloadedQuery: SerializablePreloadedQuery<BuyButtonIDQuery>;
|
|
13
|
+
}): React.JSX.Element;
|
|
14
|
+
export declare function BuyButtonPreloadedSlugQueryRenderer({ preloadedQuery, ...rest }: BuyButton_props & {
|
|
15
|
+
preloadedQuery: SerializablePreloadedQuery<BuyButtonSlugQuery>;
|
|
16
|
+
}): React.JSX.Element;
|
|
17
|
+
export default function BuyButton({ collectionId, collectionSlug, ...rest }: BuyButton_props): React.JSX.Element;
|