fontdue-js 3.6.0 → 3.7.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 +8 -0
- package/dist/__generated__/FontFamiliesQuery.graphql.d.ts +4 -1
- package/dist/__generated__/FontFamiliesQuery.graphql.js +46 -39
- package/dist/__generated__/PriceBar_node.graphql.d.ts +4 -1
- package/dist/__generated__/PriceBar_node.graphql.js +23 -16
- package/dist/__generated__/StoreModalFamily_collection.graphql.d.ts +3 -2
- package/dist/__generated__/StoreModalFamily_collection.graphql.js +3 -3
- package/dist/__generated__/StoreModalIndexPaginationQuery.graphql.d.ts +23 -0
- package/dist/__generated__/StoreModalIndexPaginationQuery.graphql.js +303 -0
- package/dist/__generated__/StoreModalIndexQuery.graphql.d.ts +4 -9
- package/dist/__generated__/StoreModalIndexQuery.graphql.js +90 -53
- package/dist/__generated__/StoreModalIndex_viewer.graphql.d.ts +24 -0
- package/dist/__generated__/StoreModalIndex_viewer.graphql.js +134 -0
- package/dist/__generated__/StoreModalProductContent_collection.graphql.d.ts +4 -1
- package/dist/__generated__/StoreModalProductContent_collection.graphql.js +12 -5
- package/dist/__generated__/StoreModalProductLicenseSelection_collection.graphql.d.ts +2 -1
- package/dist/__generated__/StoreModalProductLicenseSelection_collection.graphql.js +27 -24
- package/dist/__generated__/StoreModalProductQuery.graphql.d.ts +1 -1
- package/dist/__generated__/StoreModalProductQuery.graphql.js +78 -77
- package/dist/__generated__/StoreModalProductRefetchQuery.graphql.d.ts +1 -1
- package/dist/__generated__/StoreModalProductRefetchQuery.graphql.js +54 -53
- package/dist/__generated__/StoreModalProductSlugQuery.graphql.d.ts +1 -1
- package/dist/__generated__/StoreModalProductSlugQuery.graphql.js +78 -77
- package/dist/__generated__/TypeTestersIDQuery.graphql.d.ts +1 -1
- package/dist/__generated__/TypeTestersIDQuery.graphql.js +17 -10
- package/dist/__generated__/TypeTestersRefetchQuery.graphql.d.ts +1 -1
- package/dist/__generated__/TypeTestersRefetchQuery.graphql.js +17 -10
- package/dist/__generated__/TypeTestersSlugQuery.graphql.d.ts +1 -1
- package/dist/__generated__/TypeTestersSlugQuery.graphql.js +17 -10
- package/dist/__generated__/storefrontEventsTrackStorefrontEventMutation.graphql.d.ts +41 -0
- package/dist/__generated__/storefrontEventsTrackStorefrontEventMutation.graphql.js +65 -0
- package/dist/__tests__/bundleSelectionOrder.test.js +92 -0
- package/dist/__tests__/collectionBundleSelection.test.js +441 -1446
- package/dist/__tests__/infiniteScroll.test.js +180 -0
- package/dist/__tests__/licenseExclusions.test.js +2 -1
- package/dist/__tests__/storefrontEvents.test.js +167 -0
- package/dist/__tests__/typeTesterAutofitFeatures.test.js +138 -0
- package/dist/components/Cart/Checkout.js +11 -1
- package/dist/components/Cart/storefrontEvents.d.ts +34 -0
- package/dist/components/Cart/storefrontEvents.js +138 -0
- package/dist/components/FontFamilies/index.js +4 -3
- package/dist/components/Precart/index.js +6 -0
- package/dist/components/PriceBar/index.js +5 -3
- package/dist/components/Root/productState.d.ts +2 -8
- package/dist/components/Root/productState.js +46 -57
- package/dist/components/SKUPrice/index.js +7 -8
- package/dist/components/StoreModal/StoreModalFamily.js +4 -2
- package/dist/components/StoreModal/StoreModalIndex.js +48 -7
- package/dist/components/StoreModal/StoreModalProduct.js +16 -9
- package/dist/components/StoreModalProductLicenseSelection/StoreModalProductLicense.d.ts +2 -1
- package/dist/components/StoreModalProductLicenseSelection/StoreModalProductLicense.js +8 -3
- package/dist/components/StoreModalProductLicenseSelection/index.js +3 -2
- package/dist/components/TypeTester/useTypeTesterStyler.js +1 -0
- package/dist/components/elements/StoreModalContainer/StoreModalContainerContext.d.ts +1 -0
- package/dist/components/elements/StoreModalContainer/index.js +9 -4
- package/dist/components/elements/StoreModalIndexLoadMore/index.d.ts +8 -0
- package/dist/components/elements/StoreModalIndexLoadMore/index.js +21 -0
- package/dist/components/elements/StoreModalUnifiedCheckout.js +12 -0
- package/dist/components/useInfiniteScroll.d.ts +28 -0
- package/dist/components/useInfiniteScroll.js +50 -0
- package/dist/fontdue.css +33 -0
- package/dist/hooks/useAutofit.d.ts +2 -1
- package/dist/hooks/useAutofit.js +10 -4
- package/dist/reducer.d.ts +5 -5
- package/dist/reducer.js +9 -87
- package/dist/selection.d.ts +40 -0
- package/dist/selection.js +494 -0
- package/dist/utils.d.ts +1 -12
- package/dist/utils.js +1 -36
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @generated SignedSource<<b1b0a9eafb6bdfcac8c3a24fa8fe27cc>>
|
|
3
|
+
* @lightSyntaxTransform
|
|
4
|
+
* @nogrep
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
/* eslint-disable */
|
|
9
|
+
// @ts-nocheck
|
|
10
|
+
|
|
11
|
+
const node = function () {
|
|
12
|
+
var v0 = [{
|
|
13
|
+
"defaultValue": 25,
|
|
14
|
+
"kind": "LocalArgument",
|
|
15
|
+
"name": "count"
|
|
16
|
+
}, {
|
|
17
|
+
"defaultValue": null,
|
|
18
|
+
"kind": "LocalArgument",
|
|
19
|
+
"name": "cursor"
|
|
20
|
+
}, {
|
|
21
|
+
"defaultValue": null,
|
|
22
|
+
"kind": "LocalArgument",
|
|
23
|
+
"name": "excludeTags"
|
|
24
|
+
}],
|
|
25
|
+
v1 = {
|
|
26
|
+
"kind": "Variable",
|
|
27
|
+
"name": "excludeTags",
|
|
28
|
+
"variableName": "excludeTags"
|
|
29
|
+
},
|
|
30
|
+
v2 = [{
|
|
31
|
+
"kind": "Variable",
|
|
32
|
+
"name": "after",
|
|
33
|
+
"variableName": "cursor"
|
|
34
|
+
}, v1 /*: any*/, {
|
|
35
|
+
"kind": "Variable",
|
|
36
|
+
"name": "first",
|
|
37
|
+
"variableName": "count"
|
|
38
|
+
}, {
|
|
39
|
+
"kind": "Literal",
|
|
40
|
+
"name": "onlyRoots",
|
|
41
|
+
"value": true
|
|
42
|
+
}],
|
|
43
|
+
v3 = {
|
|
44
|
+
"alias": null,
|
|
45
|
+
"args": null,
|
|
46
|
+
"kind": "ScalarField",
|
|
47
|
+
"name": "id",
|
|
48
|
+
"storageKey": null
|
|
49
|
+
},
|
|
50
|
+
v4 = {
|
|
51
|
+
"alias": null,
|
|
52
|
+
"args": null,
|
|
53
|
+
"kind": "ScalarField",
|
|
54
|
+
"name": "isVariableFont",
|
|
55
|
+
"storageKey": null
|
|
56
|
+
},
|
|
57
|
+
v5 = {
|
|
58
|
+
"alias": null,
|
|
59
|
+
"args": null,
|
|
60
|
+
"kind": "ScalarField",
|
|
61
|
+
"name": "totalStyles",
|
|
62
|
+
"storageKey": null
|
|
63
|
+
},
|
|
64
|
+
v6 = {
|
|
65
|
+
"alias": null,
|
|
66
|
+
"args": null,
|
|
67
|
+
"kind": "ScalarField",
|
|
68
|
+
"name": "name",
|
|
69
|
+
"storageKey": null
|
|
70
|
+
};
|
|
71
|
+
return {
|
|
72
|
+
"fragment": {
|
|
73
|
+
"argumentDefinitions": v0 /*: any*/,
|
|
74
|
+
"kind": "Fragment",
|
|
75
|
+
"metadata": null,
|
|
76
|
+
"name": "StoreModalIndexPaginationQuery",
|
|
77
|
+
"selections": [{
|
|
78
|
+
"alias": null,
|
|
79
|
+
"args": null,
|
|
80
|
+
"concreteType": "Viewer",
|
|
81
|
+
"kind": "LinkedField",
|
|
82
|
+
"name": "viewer",
|
|
83
|
+
"plural": false,
|
|
84
|
+
"selections": [{
|
|
85
|
+
"args": [{
|
|
86
|
+
"kind": "Variable",
|
|
87
|
+
"name": "count",
|
|
88
|
+
"variableName": "count"
|
|
89
|
+
}, {
|
|
90
|
+
"kind": "Variable",
|
|
91
|
+
"name": "cursor",
|
|
92
|
+
"variableName": "cursor"
|
|
93
|
+
}, v1 /*: any*/],
|
|
94
|
+
"kind": "FragmentSpread",
|
|
95
|
+
"name": "StoreModalIndex_viewer"
|
|
96
|
+
}],
|
|
97
|
+
"storageKey": null
|
|
98
|
+
}],
|
|
99
|
+
"type": "RootQueryType",
|
|
100
|
+
"abstractKey": null
|
|
101
|
+
},
|
|
102
|
+
"kind": "Request",
|
|
103
|
+
"operation": {
|
|
104
|
+
"argumentDefinitions": v0 /*: any*/,
|
|
105
|
+
"kind": "Operation",
|
|
106
|
+
"name": "StoreModalIndexPaginationQuery",
|
|
107
|
+
"selections": [{
|
|
108
|
+
"alias": null,
|
|
109
|
+
"args": null,
|
|
110
|
+
"concreteType": "Viewer",
|
|
111
|
+
"kind": "LinkedField",
|
|
112
|
+
"name": "viewer",
|
|
113
|
+
"plural": false,
|
|
114
|
+
"selections": [{
|
|
115
|
+
"alias": "rootCollections",
|
|
116
|
+
"args": v2 /*: any*/,
|
|
117
|
+
"concreteType": "FontCollectionConnection",
|
|
118
|
+
"kind": "LinkedField",
|
|
119
|
+
"name": "fontCollections",
|
|
120
|
+
"plural": false,
|
|
121
|
+
"selections": [{
|
|
122
|
+
"alias": null,
|
|
123
|
+
"args": null,
|
|
124
|
+
"concreteType": "FontCollectionEdge",
|
|
125
|
+
"kind": "LinkedField",
|
|
126
|
+
"name": "edges",
|
|
127
|
+
"plural": true,
|
|
128
|
+
"selections": [{
|
|
129
|
+
"alias": null,
|
|
130
|
+
"args": null,
|
|
131
|
+
"concreteType": "FontCollection",
|
|
132
|
+
"kind": "LinkedField",
|
|
133
|
+
"name": "node",
|
|
134
|
+
"plural": false,
|
|
135
|
+
"selections": [v3 /*: any*/, v4 /*: any*/, v5 /*: any*/, {
|
|
136
|
+
"alias": null,
|
|
137
|
+
"args": [{
|
|
138
|
+
"kind": "Literal",
|
|
139
|
+
"name": "collectionTypes",
|
|
140
|
+
"value": ["FAMILY"]
|
|
141
|
+
}],
|
|
142
|
+
"concreteType": "FontCollection",
|
|
143
|
+
"kind": "LinkedField",
|
|
144
|
+
"name": "children",
|
|
145
|
+
"plural": true,
|
|
146
|
+
"selections": [v4 /*: any*/, v5 /*: any*/, v3 /*: any*/],
|
|
147
|
+
"storageKey": "children(collectionTypes:[\"FAMILY\"])"
|
|
148
|
+
}, v6 /*: any*/, {
|
|
149
|
+
"alias": null,
|
|
150
|
+
"args": null,
|
|
151
|
+
"kind": "ScalarField",
|
|
152
|
+
"name": "collectionType",
|
|
153
|
+
"storageKey": null
|
|
154
|
+
}, {
|
|
155
|
+
"alias": null,
|
|
156
|
+
"args": null,
|
|
157
|
+
"concreteType": "FontStyle",
|
|
158
|
+
"kind": "LinkedField",
|
|
159
|
+
"name": "featureStyle",
|
|
160
|
+
"plural": false,
|
|
161
|
+
"selections": [{
|
|
162
|
+
"alias": null,
|
|
163
|
+
"args": null,
|
|
164
|
+
"kind": "ScalarField",
|
|
165
|
+
"name": "cssFamily",
|
|
166
|
+
"storageKey": null
|
|
167
|
+
}, v6 /*: any*/, {
|
|
168
|
+
"alias": null,
|
|
169
|
+
"args": null,
|
|
170
|
+
"concreteType": "WebfontSource",
|
|
171
|
+
"kind": "LinkedField",
|
|
172
|
+
"name": "webfontSources",
|
|
173
|
+
"plural": true,
|
|
174
|
+
"selections": [{
|
|
175
|
+
"alias": null,
|
|
176
|
+
"args": null,
|
|
177
|
+
"kind": "ScalarField",
|
|
178
|
+
"name": "url",
|
|
179
|
+
"storageKey": null
|
|
180
|
+
}, {
|
|
181
|
+
"alias": null,
|
|
182
|
+
"args": null,
|
|
183
|
+
"kind": "ScalarField",
|
|
184
|
+
"name": "format",
|
|
185
|
+
"storageKey": null
|
|
186
|
+
}, {
|
|
187
|
+
"alias": null,
|
|
188
|
+
"args": null,
|
|
189
|
+
"kind": "ScalarField",
|
|
190
|
+
"name": "tech",
|
|
191
|
+
"storageKey": null
|
|
192
|
+
}],
|
|
193
|
+
"storageKey": null
|
|
194
|
+
}, {
|
|
195
|
+
"alias": null,
|
|
196
|
+
"args": null,
|
|
197
|
+
"concreteType": "VerticalMetrics",
|
|
198
|
+
"kind": "LinkedField",
|
|
199
|
+
"name": "verticalMetrics",
|
|
200
|
+
"plural": false,
|
|
201
|
+
"selections": [{
|
|
202
|
+
"alias": null,
|
|
203
|
+
"args": null,
|
|
204
|
+
"kind": "ScalarField",
|
|
205
|
+
"name": "unitsPerEm",
|
|
206
|
+
"storageKey": null
|
|
207
|
+
}, {
|
|
208
|
+
"alias": null,
|
|
209
|
+
"args": null,
|
|
210
|
+
"kind": "ScalarField",
|
|
211
|
+
"name": "ascender",
|
|
212
|
+
"storageKey": null
|
|
213
|
+
}, {
|
|
214
|
+
"alias": null,
|
|
215
|
+
"args": null,
|
|
216
|
+
"kind": "ScalarField",
|
|
217
|
+
"name": "descender",
|
|
218
|
+
"storageKey": null
|
|
219
|
+
}, {
|
|
220
|
+
"alias": null,
|
|
221
|
+
"args": null,
|
|
222
|
+
"kind": "ScalarField",
|
|
223
|
+
"name": "lineGap",
|
|
224
|
+
"storageKey": null
|
|
225
|
+
}, {
|
|
226
|
+
"alias": null,
|
|
227
|
+
"args": null,
|
|
228
|
+
"kind": "ScalarField",
|
|
229
|
+
"name": "avgCharWidth",
|
|
230
|
+
"storageKey": null
|
|
231
|
+
}],
|
|
232
|
+
"storageKey": null
|
|
233
|
+
}, {
|
|
234
|
+
"alias": null,
|
|
235
|
+
"args": null,
|
|
236
|
+
"kind": "ScalarField",
|
|
237
|
+
"name": "supportedLanguages",
|
|
238
|
+
"storageKey": null
|
|
239
|
+
}, v3 /*: any*/],
|
|
240
|
+
"storageKey": null
|
|
241
|
+
}, {
|
|
242
|
+
"alias": null,
|
|
243
|
+
"args": null,
|
|
244
|
+
"kind": "ScalarField",
|
|
245
|
+
"name": "__typename",
|
|
246
|
+
"storageKey": null
|
|
247
|
+
}],
|
|
248
|
+
"storageKey": null
|
|
249
|
+
}, {
|
|
250
|
+
"alias": null,
|
|
251
|
+
"args": null,
|
|
252
|
+
"kind": "ScalarField",
|
|
253
|
+
"name": "cursor",
|
|
254
|
+
"storageKey": null
|
|
255
|
+
}],
|
|
256
|
+
"storageKey": null
|
|
257
|
+
}, {
|
|
258
|
+
"alias": null,
|
|
259
|
+
"args": null,
|
|
260
|
+
"concreteType": "PageInfo",
|
|
261
|
+
"kind": "LinkedField",
|
|
262
|
+
"name": "pageInfo",
|
|
263
|
+
"plural": false,
|
|
264
|
+
"selections": [{
|
|
265
|
+
"alias": null,
|
|
266
|
+
"args": null,
|
|
267
|
+
"kind": "ScalarField",
|
|
268
|
+
"name": "endCursor",
|
|
269
|
+
"storageKey": null
|
|
270
|
+
}, {
|
|
271
|
+
"alias": null,
|
|
272
|
+
"args": null,
|
|
273
|
+
"kind": "ScalarField",
|
|
274
|
+
"name": "hasNextPage",
|
|
275
|
+
"storageKey": null
|
|
276
|
+
}],
|
|
277
|
+
"storageKey": null
|
|
278
|
+
}],
|
|
279
|
+
"storageKey": null
|
|
280
|
+
}, {
|
|
281
|
+
"alias": "rootCollections",
|
|
282
|
+
"args": v2 /*: any*/,
|
|
283
|
+
"filters": ["onlyRoots", "excludeTags"],
|
|
284
|
+
"handle": "connection",
|
|
285
|
+
"key": "StoreModalIndex_rootCollections",
|
|
286
|
+
"kind": "LinkedHandle",
|
|
287
|
+
"name": "fontCollections"
|
|
288
|
+
}, v3 /*: any*/],
|
|
289
|
+
"storageKey": null
|
|
290
|
+
}]
|
|
291
|
+
},
|
|
292
|
+
"params": {
|
|
293
|
+
"cacheID": "822799800d507e869328896c0b5a1845",
|
|
294
|
+
"id": null,
|
|
295
|
+
"metadata": {},
|
|
296
|
+
"name": "StoreModalIndexPaginationQuery",
|
|
297
|
+
"operationKind": "query",
|
|
298
|
+
"text": "query StoreModalIndexPaginationQuery(\n $count: Int = 25\n $cursor: String = null\n $excludeTags: [String!] = null\n) {\n viewer {\n ...StoreModalIndex_viewer_3217ho\n id\n }\n}\n\nfragment FontStyle_fontStyle on FontStyle {\n ...useFontStyle_fontStyle\n}\n\nfragment StoreModalIndexItem_fontCollection on FontCollection {\n ...useTotalStyles_fontCollection\n id\n name\n totalStyles\n isVariableFont\n children(collectionTypes: [FAMILY]) {\n isVariableFont\n totalStyles\n id\n }\n collectionType\n featureStyle {\n ...FontStyle_fontStyle\n supportedLanguages\n id\n }\n}\n\nfragment StoreModalIndex_viewer_3217ho on Viewer {\n rootCollections: fontCollections(onlyRoots: true, first: $count, after: $cursor, excludeTags: $excludeTags) {\n edges {\n node {\n id\n ...StoreModalIndexItem_fontCollection\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\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 avgCharWidth\n }\n}\n\nfragment useTotalStyles_fontCollection on FontCollection {\n isVariableFont\n totalStyles\n children(collectionTypes: [FAMILY]) {\n isVariableFont\n totalStyles\n id\n }\n}\n"
|
|
299
|
+
}
|
|
300
|
+
};
|
|
301
|
+
}();
|
|
302
|
+
node.hash = "f4bd120deb8eea66de4257529cbb022e";
|
|
303
|
+
export default node;
|
|
@@ -1,23 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @generated SignedSource<<
|
|
2
|
+
* @generated SignedSource<<89e2f92178d415c422dec3ee20d52fa7>>
|
|
3
3
|
* @lightSyntaxTransform
|
|
4
4
|
* @nogrep
|
|
5
5
|
*/
|
|
6
6
|
import { ConcreteRequest } from 'relay-runtime';
|
|
7
7
|
import { FragmentRefs } from "relay-runtime";
|
|
8
8
|
export type StoreModalIndexQuery$variables = {
|
|
9
|
+
count?: number | null;
|
|
10
|
+
cursor?: string | null;
|
|
9
11
|
excludeTags?: ReadonlyArray<string> | null;
|
|
10
12
|
};
|
|
11
13
|
export type StoreModalIndexQuery$data = {
|
|
12
14
|
readonly viewer: {
|
|
13
|
-
readonly
|
|
14
|
-
readonly edges: ReadonlyArray<{
|
|
15
|
-
readonly node: {
|
|
16
|
-
readonly id: string;
|
|
17
|
-
readonly " $fragmentSpreads": FragmentRefs<"StoreModalIndexItem_fontCollection">;
|
|
18
|
-
} | null;
|
|
19
|
-
} | null> | null;
|
|
20
|
-
} | null;
|
|
15
|
+
readonly " $fragmentSpreads": FragmentRefs<"StoreModalIndex_viewer">;
|
|
21
16
|
};
|
|
22
17
|
};
|
|
23
18
|
export type StoreModalIndexQuery = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @generated SignedSource<<
|
|
2
|
+
* @generated SignedSource<<89e2f92178d415c422dec3ee20d52fa7>>
|
|
3
3
|
* @lightSyntaxTransform
|
|
4
4
|
* @nogrep
|
|
5
5
|
*/
|
|
@@ -9,46 +9,61 @@
|
|
|
9
9
|
// @ts-nocheck
|
|
10
10
|
|
|
11
11
|
const node = function () {
|
|
12
|
-
var v0 =
|
|
12
|
+
var v0 = {
|
|
13
|
+
"defaultValue": 25,
|
|
14
|
+
"kind": "LocalArgument",
|
|
15
|
+
"name": "count"
|
|
16
|
+
},
|
|
17
|
+
v1 = {
|
|
18
|
+
"defaultValue": null,
|
|
19
|
+
"kind": "LocalArgument",
|
|
20
|
+
"name": "cursor"
|
|
21
|
+
},
|
|
22
|
+
v2 = {
|
|
13
23
|
"defaultValue": null,
|
|
14
24
|
"kind": "LocalArgument",
|
|
15
25
|
"name": "excludeTags"
|
|
16
|
-
}
|
|
17
|
-
|
|
26
|
+
},
|
|
27
|
+
v3 = {
|
|
18
28
|
"kind": "Variable",
|
|
19
29
|
"name": "excludeTags",
|
|
20
30
|
"variableName": "excludeTags"
|
|
21
|
-
},
|
|
22
|
-
|
|
31
|
+
},
|
|
32
|
+
v4 = [{
|
|
33
|
+
"kind": "Variable",
|
|
34
|
+
"name": "after",
|
|
35
|
+
"variableName": "cursor"
|
|
36
|
+
}, v3 /*: any*/, {
|
|
37
|
+
"kind": "Variable",
|
|
23
38
|
"name": "first",
|
|
24
|
-
"
|
|
39
|
+
"variableName": "count"
|
|
25
40
|
}, {
|
|
26
41
|
"kind": "Literal",
|
|
27
42
|
"name": "onlyRoots",
|
|
28
43
|
"value": true
|
|
29
44
|
}],
|
|
30
|
-
|
|
45
|
+
v5 = {
|
|
31
46
|
"alias": null,
|
|
32
47
|
"args": null,
|
|
33
48
|
"kind": "ScalarField",
|
|
34
49
|
"name": "id",
|
|
35
50
|
"storageKey": null
|
|
36
51
|
},
|
|
37
|
-
|
|
52
|
+
v6 = {
|
|
38
53
|
"alias": null,
|
|
39
54
|
"args": null,
|
|
40
55
|
"kind": "ScalarField",
|
|
41
56
|
"name": "isVariableFont",
|
|
42
57
|
"storageKey": null
|
|
43
58
|
},
|
|
44
|
-
|
|
59
|
+
v7 = {
|
|
45
60
|
"alias": null,
|
|
46
61
|
"args": null,
|
|
47
62
|
"kind": "ScalarField",
|
|
48
63
|
"name": "totalStyles",
|
|
49
64
|
"storageKey": null
|
|
50
65
|
},
|
|
51
|
-
|
|
66
|
+
v8 = {
|
|
52
67
|
"alias": null,
|
|
53
68
|
"args": null,
|
|
54
69
|
"kind": "ScalarField",
|
|
@@ -57,7 +72,7 @@ const node = function () {
|
|
|
57
72
|
};
|
|
58
73
|
return {
|
|
59
74
|
"fragment": {
|
|
60
|
-
"argumentDefinitions": v0 /*: any*/,
|
|
75
|
+
"argumentDefinitions": [v0 /*: any*/, v1 /*: any*/, v2 /*: any*/],
|
|
61
76
|
"kind": "Fragment",
|
|
62
77
|
"metadata": null,
|
|
63
78
|
"name": "StoreModalIndexQuery",
|
|
@@ -69,36 +84,17 @@ const node = function () {
|
|
|
69
84
|
"name": "viewer",
|
|
70
85
|
"plural": false,
|
|
71
86
|
"selections": [{
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
"
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
"name": "edges",
|
|
84
|
-
"plural": true,
|
|
85
|
-
"selections": [{
|
|
86
|
-
"alias": null,
|
|
87
|
-
"args": null,
|
|
88
|
-
"concreteType": "FontCollection",
|
|
89
|
-
"kind": "LinkedField",
|
|
90
|
-
"name": "node",
|
|
91
|
-
"plural": false,
|
|
92
|
-
"selections": [v2 /*: any*/, {
|
|
93
|
-
"args": null,
|
|
94
|
-
"kind": "FragmentSpread",
|
|
95
|
-
"name": "StoreModalIndexItem_fontCollection"
|
|
96
|
-
}],
|
|
97
|
-
"storageKey": null
|
|
98
|
-
}],
|
|
99
|
-
"storageKey": null
|
|
100
|
-
}],
|
|
101
|
-
"storageKey": null
|
|
87
|
+
"args": [{
|
|
88
|
+
"kind": "Variable",
|
|
89
|
+
"name": "count",
|
|
90
|
+
"variableName": "count"
|
|
91
|
+
}, {
|
|
92
|
+
"kind": "Variable",
|
|
93
|
+
"name": "cursor",
|
|
94
|
+
"variableName": "cursor"
|
|
95
|
+
}, v3 /*: any*/],
|
|
96
|
+
"kind": "FragmentSpread",
|
|
97
|
+
"name": "StoreModalIndex_viewer"
|
|
102
98
|
}],
|
|
103
99
|
"storageKey": null
|
|
104
100
|
}],
|
|
@@ -107,7 +103,7 @@ const node = function () {
|
|
|
107
103
|
},
|
|
108
104
|
"kind": "Request",
|
|
109
105
|
"operation": {
|
|
110
|
-
"argumentDefinitions": v0 /*: any*/,
|
|
106
|
+
"argumentDefinitions": [v2 /*: any*/, v0 /*: any*/, v1 /*: any*/],
|
|
111
107
|
"kind": "Operation",
|
|
112
108
|
"name": "StoreModalIndexQuery",
|
|
113
109
|
"selections": [{
|
|
@@ -119,7 +115,7 @@ const node = function () {
|
|
|
119
115
|
"plural": false,
|
|
120
116
|
"selections": [{
|
|
121
117
|
"alias": "rootCollections",
|
|
122
|
-
"args":
|
|
118
|
+
"args": v4 /*: any*/,
|
|
123
119
|
"concreteType": "FontCollectionConnection",
|
|
124
120
|
"kind": "LinkedField",
|
|
125
121
|
"name": "fontCollections",
|
|
@@ -138,7 +134,7 @@ const node = function () {
|
|
|
138
134
|
"kind": "LinkedField",
|
|
139
135
|
"name": "node",
|
|
140
136
|
"plural": false,
|
|
141
|
-
"selections": [
|
|
137
|
+
"selections": [v5 /*: any*/, v6 /*: any*/, v7 /*: any*/, {
|
|
142
138
|
"alias": null,
|
|
143
139
|
"args": [{
|
|
144
140
|
"kind": "Literal",
|
|
@@ -149,9 +145,9 @@ const node = function () {
|
|
|
149
145
|
"kind": "LinkedField",
|
|
150
146
|
"name": "children",
|
|
151
147
|
"plural": true,
|
|
152
|
-
"selections": [
|
|
148
|
+
"selections": [v6 /*: any*/, v7 /*: any*/, v5 /*: any*/],
|
|
153
149
|
"storageKey": "children(collectionTypes:[\"FAMILY\"])"
|
|
154
|
-
},
|
|
150
|
+
}, v8 /*: any*/, {
|
|
155
151
|
"alias": null,
|
|
156
152
|
"args": null,
|
|
157
153
|
"kind": "ScalarField",
|
|
@@ -170,7 +166,7 @@ const node = function () {
|
|
|
170
166
|
"kind": "ScalarField",
|
|
171
167
|
"name": "cssFamily",
|
|
172
168
|
"storageKey": null
|
|
173
|
-
},
|
|
169
|
+
}, v8 /*: any*/, {
|
|
174
170
|
"alias": null,
|
|
175
171
|
"args": null,
|
|
176
172
|
"concreteType": "WebfontSource",
|
|
@@ -242,27 +238,68 @@ const node = function () {
|
|
|
242
238
|
"kind": "ScalarField",
|
|
243
239
|
"name": "supportedLanguages",
|
|
244
240
|
"storageKey": null
|
|
245
|
-
},
|
|
241
|
+
}, v5 /*: any*/],
|
|
242
|
+
"storageKey": null
|
|
243
|
+
}, {
|
|
244
|
+
"alias": null,
|
|
245
|
+
"args": null,
|
|
246
|
+
"kind": "ScalarField",
|
|
247
|
+
"name": "__typename",
|
|
246
248
|
"storageKey": null
|
|
247
249
|
}],
|
|
248
250
|
"storageKey": null
|
|
251
|
+
}, {
|
|
252
|
+
"alias": null,
|
|
253
|
+
"args": null,
|
|
254
|
+
"kind": "ScalarField",
|
|
255
|
+
"name": "cursor",
|
|
256
|
+
"storageKey": null
|
|
257
|
+
}],
|
|
258
|
+
"storageKey": null
|
|
259
|
+
}, {
|
|
260
|
+
"alias": null,
|
|
261
|
+
"args": null,
|
|
262
|
+
"concreteType": "PageInfo",
|
|
263
|
+
"kind": "LinkedField",
|
|
264
|
+
"name": "pageInfo",
|
|
265
|
+
"plural": false,
|
|
266
|
+
"selections": [{
|
|
267
|
+
"alias": null,
|
|
268
|
+
"args": null,
|
|
269
|
+
"kind": "ScalarField",
|
|
270
|
+
"name": "endCursor",
|
|
271
|
+
"storageKey": null
|
|
272
|
+
}, {
|
|
273
|
+
"alias": null,
|
|
274
|
+
"args": null,
|
|
275
|
+
"kind": "ScalarField",
|
|
276
|
+
"name": "hasNextPage",
|
|
277
|
+
"storageKey": null
|
|
249
278
|
}],
|
|
250
279
|
"storageKey": null
|
|
251
280
|
}],
|
|
252
281
|
"storageKey": null
|
|
253
|
-
},
|
|
282
|
+
}, {
|
|
283
|
+
"alias": "rootCollections",
|
|
284
|
+
"args": v4 /*: any*/,
|
|
285
|
+
"filters": ["onlyRoots", "excludeTags"],
|
|
286
|
+
"handle": "connection",
|
|
287
|
+
"key": "StoreModalIndex_rootCollections",
|
|
288
|
+
"kind": "LinkedHandle",
|
|
289
|
+
"name": "fontCollections"
|
|
290
|
+
}, v5 /*: any*/],
|
|
254
291
|
"storageKey": null
|
|
255
292
|
}]
|
|
256
293
|
},
|
|
257
294
|
"params": {
|
|
258
|
-
"cacheID": "
|
|
295
|
+
"cacheID": "df11edab134861f178bb71a22f10abfa",
|
|
259
296
|
"id": null,
|
|
260
297
|
"metadata": {},
|
|
261
298
|
"name": "StoreModalIndexQuery",
|
|
262
299
|
"operationKind": "query",
|
|
263
|
-
"text": "query StoreModalIndexQuery(\n $excludeTags: [String!]\n
|
|
300
|
+
"text": "query StoreModalIndexQuery(\n $excludeTags: [String!]\n $count: Int = 25\n $cursor: String\n) {\n viewer {\n ...StoreModalIndex_viewer_3217ho\n id\n }\n}\n\nfragment FontStyle_fontStyle on FontStyle {\n ...useFontStyle_fontStyle\n}\n\nfragment StoreModalIndexItem_fontCollection on FontCollection {\n ...useTotalStyles_fontCollection\n id\n name\n totalStyles\n isVariableFont\n children(collectionTypes: [FAMILY]) {\n isVariableFont\n totalStyles\n id\n }\n collectionType\n featureStyle {\n ...FontStyle_fontStyle\n supportedLanguages\n id\n }\n}\n\nfragment StoreModalIndex_viewer_3217ho on Viewer {\n rootCollections: fontCollections(onlyRoots: true, first: $count, after: $cursor, excludeTags: $excludeTags) {\n edges {\n node {\n id\n ...StoreModalIndexItem_fontCollection\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\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 avgCharWidth\n }\n}\n\nfragment useTotalStyles_fontCollection on FontCollection {\n isVariableFont\n totalStyles\n children(collectionTypes: [FAMILY]) {\n isVariableFont\n totalStyles\n id\n }\n}\n"
|
|
264
301
|
}
|
|
265
302
|
};
|
|
266
303
|
}();
|
|
267
|
-
node.hash = "
|
|
304
|
+
node.hash = "125a10155b690929f0eae6e9e6c7188c";
|
|
268
305
|
export default node;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @generated SignedSource<<3a7fa9769ddfb556a8d9877acbd1e47f>>
|
|
3
|
+
* @lightSyntaxTransform
|
|
4
|
+
* @nogrep
|
|
5
|
+
*/
|
|
6
|
+
import { ReaderFragment } from 'relay-runtime';
|
|
7
|
+
import { FragmentRefs } from "relay-runtime";
|
|
8
|
+
export type StoreModalIndex_viewer$data = {
|
|
9
|
+
readonly rootCollections: {
|
|
10
|
+
readonly edges: ReadonlyArray<{
|
|
11
|
+
readonly node: {
|
|
12
|
+
readonly id: string;
|
|
13
|
+
readonly " $fragmentSpreads": FragmentRefs<"StoreModalIndexItem_fontCollection">;
|
|
14
|
+
} | null;
|
|
15
|
+
} | null> | null;
|
|
16
|
+
} | null;
|
|
17
|
+
readonly " $fragmentType": "StoreModalIndex_viewer";
|
|
18
|
+
};
|
|
19
|
+
export type StoreModalIndex_viewer$key = {
|
|
20
|
+
readonly " $data"?: StoreModalIndex_viewer$data;
|
|
21
|
+
readonly " $fragmentSpreads": FragmentRefs<"StoreModalIndex_viewer">;
|
|
22
|
+
};
|
|
23
|
+
declare const node: ReaderFragment;
|
|
24
|
+
export default node;
|