fontdue-js 3.8.0 → 3.10.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 +11 -0
- package/README.md +3 -1
- package/dist/__generated__/StoreModalIndexItem_fontCollection.graphql.d.ts +10 -1
- package/dist/__generated__/StoreModalIndexItem_fontCollection.graphql.js +45 -35
- package/dist/__generated__/StoreModalIndexPaginationQuery.graphql.d.ts +1 -1
- package/dist/__generated__/StoreModalIndexPaginationQuery.graphql.js +101 -93
- package/dist/__generated__/StoreModalIndexQuery.graphql.d.ts +3 -1
- package/dist/__generated__/StoreModalIndexQuery.graphql.js +24 -17
- package/dist/__generated__/TestFontsForm_Query.graphql.d.ts +14 -2
- package/dist/__generated__/TestFontsForm_Query.graphql.js +76 -18
- package/dist/__tests__/storeModalIndexUnlisted.test.js +71 -0
- package/dist/__tests__/testFontsFamilyChoice.test.js +150 -0
- package/dist/__tests__/typeTesterTruncate.test.js +71 -1
- package/dist/components/ConfigContext.d.ts +11 -0
- package/dist/components/ConfigContext.js +7 -1
- package/dist/components/StoreModal/StoreModalIndex.js +8 -2
- package/dist/components/StoreModal/StoreModalIndexItem.d.ts +1 -1
- package/dist/components/StoreModal/StoreModalIndexItem.js +26 -8
- package/dist/components/TestFontsForm/TestFontsFormElement.d.ts +4 -1
- package/dist/components/TestFontsForm/TestFontsFormElement.js +11 -3
- package/dist/components/TestFontsForm/index.d.ts +6 -3
- package/dist/components/TestFontsForm/index.js +82 -13
- package/dist/components/TestFontsForm/index.server.js +2 -1
- package/dist/components/TestFontsForm/variables.d.ts +8 -0
- package/dist/components/TestFontsForm/variables.js +22 -0
- package/dist/components/TypeTester/truncate.d.ts +10 -0
- package/dist/components/TypeTester/truncate.js +31 -0
- package/dist/components/TypeTester/useTypeTesterStyler.d.ts +1 -6
- package/dist/components/TypeTester/useTypeTesterStyler.js +22 -15
- package/dist/fontdue.css +22 -10
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
## 3.10.0
|
|
2
|
+
|
|
3
|
+
- The `StoreModal`’s browse page leaves out an unlisted family, and lists an unlisted superfamily’s families in its place, each opening the superfamily’s page. Unlisted font packs are left out of the browse page too.
|
|
4
|
+
- Checkboxes are 20px by default, down from 40px on the `TestFontsForm`, `NewsletterSignup` and license agreement checkboxes. Set `--checkbox-size: 40px` and `--checkbox-margin: 20px` to keep the larger box.
|
|
5
|
+
- Fixed a type tester with a `truncate` line cap cutting through a line, or showing one line too few, in Safari before 26.1. The checkbox size and this fix ship as stylesheet rules, so take `dist/fontdue.css` from this version alongside the JS.
|
|
6
|
+
|
|
7
|
+
## 3.9.0
|
|
8
|
+
|
|
9
|
+
- `TestFontsForm` can let the visitor choose which families to download. With *Customer’s choice* set under *Settings → Test fonts* – or `testFonts: { familySelection: "choice" }` in the config, or the `familySelection` prop (`family-selection` on `<fontdue-test-fonts-form>`) – the form lists the families with a checkbox each plus *Select all*, and the download holds only the ticked ones. Ships new stylesheet rules, so take `dist/fontdue.css` from this version alongside the JS.
|
|
10
|
+
- `TestFontsForm` takes `collectionSlug` or `collectionId` (`collection-slug` / `collection-id`, comma-separated for several) to offer just those families, with no checkboxes – for a form on a family’s own page. When preloading, pass the same value to `loadTestFontsFormQuery({ collectionSlug })`; the old options-only call still works.
|
|
11
|
+
|
|
1
12
|
## 3.8.0
|
|
2
13
|
|
|
3
14
|
- Font packs. `StoreModal` lists a store’s packs at the top of its browse page and opens one as a product page, with the same price bar, license picker, cart line and checkout a collection gets. `BuyButton` takes `fontPackId` or `fontPackSlug` in place of `collectionId`/`collectionSlug` – `font-pack-id` or `font-pack-slug` on `<fontdue-buy-button>` – and `?store=product/<pack-slug>` opens a pack directly. Packs honour `indexExcludeTags` the way collections do.
|
package/README.md
CHANGED
|
@@ -842,10 +842,12 @@ import TestFontsForm, { loadTestFontsFormQuery } from "fontdue-js/TestFontsForm"
|
|
|
842
842
|
|
|
843
843
|
| Prop | Description |
|
|
844
844
|
| --- | --- |
|
|
845
|
-
| `preloadedQuery` | (Optional, SSR) Result of `loadTestFontsFormQuery()
|
|
845
|
+
| `preloadedQuery` | (Optional, SSR) Result of `loadTestFontsFormQuery({ collectionSlug, collectionId })` – pass the same collection props as the form. Lazy if omitted. |
|
|
846
846
|
| `agreementLabel` | (Optional) `string` Label for the required agreement checkbox. Defaults to the "EULA agreement text" field in your Fontdue Labels settings. |
|
|
847
847
|
| `downloadLabel` | (Optional) `string` Submit button label. Defaults to `"Download test fonts"`. |
|
|
848
848
|
| `newsletterCheckboxChecked` | (Optional) `boolean` Pre-check the newsletter opt-in. |
|
|
849
|
+
| `collectionSlug` / `collectionId` | (Optional) `string \| string[]` Limit the download to these font collections (a superfamily stands for its families). No family checkboxes are shown. |
|
|
850
|
+
| `familySelection` | (Optional) `'all' \| 'choice'` Overrides `config.testFonts.familySelection` and the dashboard's *Families in each download* setting. `'choice'` lists the families as checkboxes. |
|
|
849
851
|
|
|
850
852
|
## `NewsletterSignup`
|
|
851
853
|
|
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @generated SignedSource<<
|
|
2
|
+
* @generated SignedSource<<82fd75aeba65ed2ecef2a5bb7ff865dc>>
|
|
3
3
|
* @lightSyntaxTransform
|
|
4
4
|
* @nogrep
|
|
5
5
|
*/
|
|
6
6
|
import { ReaderFragment } from 'relay-runtime';
|
|
7
|
+
export type Visibility = "HIDDEN" | "UNLISTED" | "VISIBLE" | "%future added value";
|
|
7
8
|
import { FragmentRefs } from "relay-runtime";
|
|
8
9
|
export type StoreModalIndexItem_fontCollection$data = {
|
|
9
10
|
readonly children: ReadonlyArray<{
|
|
11
|
+
readonly featureStyle: {
|
|
12
|
+
readonly supportedLanguages: ReadonlyArray<string> | null;
|
|
13
|
+
readonly " $fragmentSpreads": FragmentRefs<"FontStyle_fontStyle">;
|
|
14
|
+
} | null;
|
|
15
|
+
readonly id: string;
|
|
10
16
|
readonly isVariableFont: boolean;
|
|
17
|
+
readonly name: string;
|
|
11
18
|
readonly totalStyles: number | null;
|
|
19
|
+
readonly visibility: Visibility;
|
|
12
20
|
}> | null;
|
|
13
21
|
readonly collectionType: string;
|
|
14
22
|
readonly featureStyle: {
|
|
@@ -19,6 +27,7 @@ export type StoreModalIndexItem_fontCollection$data = {
|
|
|
19
27
|
readonly isVariableFont: boolean;
|
|
20
28
|
readonly name: string;
|
|
21
29
|
readonly totalStyles: number | null;
|
|
30
|
+
readonly visibility: Visibility;
|
|
22
31
|
readonly " $fragmentSpreads": FragmentRefs<"useTotalStyles_fontCollection">;
|
|
23
32
|
readonly " $fragmentType": "StoreModalIndexItem_fontCollection";
|
|
24
33
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @generated SignedSource<<
|
|
2
|
+
* @generated SignedSource<<82fd75aeba65ed2ecef2a5bb7ff865dc>>
|
|
3
3
|
* @lightSyntaxTransform
|
|
4
4
|
* @nogrep
|
|
5
5
|
*/
|
|
@@ -13,57 +13,38 @@ const node = function () {
|
|
|
13
13
|
"alias": null,
|
|
14
14
|
"args": null,
|
|
15
15
|
"kind": "ScalarField",
|
|
16
|
-
"name": "
|
|
16
|
+
"name": "id",
|
|
17
17
|
"storageKey": null
|
|
18
18
|
},
|
|
19
19
|
v1 = {
|
|
20
20
|
"alias": null,
|
|
21
21
|
"args": null,
|
|
22
22
|
"kind": "ScalarField",
|
|
23
|
-
"name": "
|
|
23
|
+
"name": "name",
|
|
24
24
|
"storageKey": null
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
"argumentDefinitions": [],
|
|
28
|
-
"kind": "Fragment",
|
|
29
|
-
"metadata": null,
|
|
30
|
-
"name": "StoreModalIndexItem_fontCollection",
|
|
31
|
-
"selections": [{
|
|
32
|
-
"args": null,
|
|
33
|
-
"kind": "FragmentSpread",
|
|
34
|
-
"name": "useTotalStyles_fontCollection"
|
|
35
|
-
}, {
|
|
25
|
+
},
|
|
26
|
+
v2 = {
|
|
36
27
|
"alias": null,
|
|
37
28
|
"args": null,
|
|
38
29
|
"kind": "ScalarField",
|
|
39
|
-
"name": "
|
|
30
|
+
"name": "visibility",
|
|
40
31
|
"storageKey": null
|
|
41
|
-
},
|
|
32
|
+
},
|
|
33
|
+
v3 = {
|
|
42
34
|
"alias": null,
|
|
43
35
|
"args": null,
|
|
44
36
|
"kind": "ScalarField",
|
|
45
|
-
"name": "
|
|
37
|
+
"name": "totalStyles",
|
|
46
38
|
"storageKey": null
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
"args": [{
|
|
50
|
-
"kind": "Literal",
|
|
51
|
-
"name": "collectionTypes",
|
|
52
|
-
"value": ["FAMILY"]
|
|
53
|
-
}],
|
|
54
|
-
"concreteType": "FontCollection",
|
|
55
|
-
"kind": "LinkedField",
|
|
56
|
-
"name": "children",
|
|
57
|
-
"plural": true,
|
|
58
|
-
"selections": [v1 /*: any*/, v0 /*: any*/],
|
|
59
|
-
"storageKey": "children(collectionTypes:[\"FAMILY\"])"
|
|
60
|
-
}, {
|
|
39
|
+
},
|
|
40
|
+
v4 = {
|
|
61
41
|
"alias": null,
|
|
62
42
|
"args": null,
|
|
63
43
|
"kind": "ScalarField",
|
|
64
|
-
"name": "
|
|
44
|
+
"name": "isVariableFont",
|
|
65
45
|
"storageKey": null
|
|
66
|
-
},
|
|
46
|
+
},
|
|
47
|
+
v5 = {
|
|
67
48
|
"alias": null,
|
|
68
49
|
"args": null,
|
|
69
50
|
"concreteType": "FontStyle",
|
|
@@ -82,10 +63,39 @@ const node = function () {
|
|
|
82
63
|
"storageKey": null
|
|
83
64
|
}],
|
|
84
65
|
"storageKey": null
|
|
85
|
-
}
|
|
66
|
+
};
|
|
67
|
+
return {
|
|
68
|
+
"argumentDefinitions": [],
|
|
69
|
+
"kind": "Fragment",
|
|
70
|
+
"metadata": null,
|
|
71
|
+
"name": "StoreModalIndexItem_fontCollection",
|
|
72
|
+
"selections": [{
|
|
73
|
+
"args": null,
|
|
74
|
+
"kind": "FragmentSpread",
|
|
75
|
+
"name": "useTotalStyles_fontCollection"
|
|
76
|
+
}, v0 /*: any*/, v1 /*: any*/, v2 /*: any*/, v3 /*: any*/, v4 /*: any*/, {
|
|
77
|
+
"alias": null,
|
|
78
|
+
"args": [{
|
|
79
|
+
"kind": "Literal",
|
|
80
|
+
"name": "collectionTypes",
|
|
81
|
+
"value": ["FAMILY"]
|
|
82
|
+
}],
|
|
83
|
+
"concreteType": "FontCollection",
|
|
84
|
+
"kind": "LinkedField",
|
|
85
|
+
"name": "children",
|
|
86
|
+
"plural": true,
|
|
87
|
+
"selections": [v0 /*: any*/, v1 /*: any*/, v2 /*: any*/, v4 /*: any*/, v3 /*: any*/, v5 /*: any*/],
|
|
88
|
+
"storageKey": "children(collectionTypes:[\"FAMILY\"])"
|
|
89
|
+
}, {
|
|
90
|
+
"alias": null,
|
|
91
|
+
"args": null,
|
|
92
|
+
"kind": "ScalarField",
|
|
93
|
+
"name": "collectionType",
|
|
94
|
+
"storageKey": null
|
|
95
|
+
}, v5 /*: any*/],
|
|
86
96
|
"type": "FontCollection",
|
|
87
97
|
"abstractKey": null
|
|
88
98
|
};
|
|
89
99
|
}();
|
|
90
|
-
node.hash = "
|
|
100
|
+
node.hash = "46573dcfb540ddfba2e28144704bd554";
|
|
91
101
|
export default node;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @generated SignedSource<<
|
|
2
|
+
* @generated SignedSource<<b055d86d719cd9b0a3437468710929c0>>
|
|
3
3
|
* @lightSyntaxTransform
|
|
4
4
|
* @nogrep
|
|
5
5
|
*/
|
|
@@ -67,6 +67,101 @@ const node = function () {
|
|
|
67
67
|
"kind": "ScalarField",
|
|
68
68
|
"name": "name",
|
|
69
69
|
"storageKey": null
|
|
70
|
+
},
|
|
71
|
+
v7 = {
|
|
72
|
+
"alias": null,
|
|
73
|
+
"args": null,
|
|
74
|
+
"kind": "ScalarField",
|
|
75
|
+
"name": "visibility",
|
|
76
|
+
"storageKey": null
|
|
77
|
+
},
|
|
78
|
+
v8 = {
|
|
79
|
+
"alias": null,
|
|
80
|
+
"args": null,
|
|
81
|
+
"concreteType": "FontStyle",
|
|
82
|
+
"kind": "LinkedField",
|
|
83
|
+
"name": "featureStyle",
|
|
84
|
+
"plural": false,
|
|
85
|
+
"selections": [{
|
|
86
|
+
"alias": null,
|
|
87
|
+
"args": null,
|
|
88
|
+
"kind": "ScalarField",
|
|
89
|
+
"name": "cssFamily",
|
|
90
|
+
"storageKey": null
|
|
91
|
+
}, v6 /*: any*/, {
|
|
92
|
+
"alias": null,
|
|
93
|
+
"args": null,
|
|
94
|
+
"concreteType": "WebfontSource",
|
|
95
|
+
"kind": "LinkedField",
|
|
96
|
+
"name": "webfontSources",
|
|
97
|
+
"plural": true,
|
|
98
|
+
"selections": [{
|
|
99
|
+
"alias": null,
|
|
100
|
+
"args": null,
|
|
101
|
+
"kind": "ScalarField",
|
|
102
|
+
"name": "url",
|
|
103
|
+
"storageKey": null
|
|
104
|
+
}, {
|
|
105
|
+
"alias": null,
|
|
106
|
+
"args": null,
|
|
107
|
+
"kind": "ScalarField",
|
|
108
|
+
"name": "format",
|
|
109
|
+
"storageKey": null
|
|
110
|
+
}, {
|
|
111
|
+
"alias": null,
|
|
112
|
+
"args": null,
|
|
113
|
+
"kind": "ScalarField",
|
|
114
|
+
"name": "tech",
|
|
115
|
+
"storageKey": null
|
|
116
|
+
}],
|
|
117
|
+
"storageKey": null
|
|
118
|
+
}, {
|
|
119
|
+
"alias": null,
|
|
120
|
+
"args": null,
|
|
121
|
+
"concreteType": "VerticalMetrics",
|
|
122
|
+
"kind": "LinkedField",
|
|
123
|
+
"name": "verticalMetrics",
|
|
124
|
+
"plural": false,
|
|
125
|
+
"selections": [{
|
|
126
|
+
"alias": null,
|
|
127
|
+
"args": null,
|
|
128
|
+
"kind": "ScalarField",
|
|
129
|
+
"name": "unitsPerEm",
|
|
130
|
+
"storageKey": null
|
|
131
|
+
}, {
|
|
132
|
+
"alias": null,
|
|
133
|
+
"args": null,
|
|
134
|
+
"kind": "ScalarField",
|
|
135
|
+
"name": "ascender",
|
|
136
|
+
"storageKey": null
|
|
137
|
+
}, {
|
|
138
|
+
"alias": null,
|
|
139
|
+
"args": null,
|
|
140
|
+
"kind": "ScalarField",
|
|
141
|
+
"name": "descender",
|
|
142
|
+
"storageKey": null
|
|
143
|
+
}, {
|
|
144
|
+
"alias": null,
|
|
145
|
+
"args": null,
|
|
146
|
+
"kind": "ScalarField",
|
|
147
|
+
"name": "lineGap",
|
|
148
|
+
"storageKey": null
|
|
149
|
+
}, {
|
|
150
|
+
"alias": null,
|
|
151
|
+
"args": null,
|
|
152
|
+
"kind": "ScalarField",
|
|
153
|
+
"name": "avgCharWidth",
|
|
154
|
+
"storageKey": null
|
|
155
|
+
}],
|
|
156
|
+
"storageKey": null
|
|
157
|
+
}, {
|
|
158
|
+
"alias": null,
|
|
159
|
+
"args": null,
|
|
160
|
+
"kind": "ScalarField",
|
|
161
|
+
"name": "supportedLanguages",
|
|
162
|
+
"storageKey": null
|
|
163
|
+
}, v3 /*: any*/],
|
|
164
|
+
"storageKey": null
|
|
70
165
|
};
|
|
71
166
|
return {
|
|
72
167
|
"fragment": {
|
|
@@ -143,102 +238,15 @@ const node = function () {
|
|
|
143
238
|
"kind": "LinkedField",
|
|
144
239
|
"name": "children",
|
|
145
240
|
"plural": true,
|
|
146
|
-
"selections": [v4 /*: any*/, v5 /*: any*/, v3 /*: any*/],
|
|
241
|
+
"selections": [v4 /*: any*/, v5 /*: any*/, v3 /*: any*/, v6 /*: any*/, v7 /*: any*/, v8 /*: any*/],
|
|
147
242
|
"storageKey": "children(collectionTypes:[\"FAMILY\"])"
|
|
148
|
-
}, v6 /*: any*/, {
|
|
243
|
+
}, v6 /*: any*/, v7 /*: any*/, {
|
|
149
244
|
"alias": null,
|
|
150
245
|
"args": null,
|
|
151
246
|
"kind": "ScalarField",
|
|
152
247
|
"name": "collectionType",
|
|
153
248
|
"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
|
-
}, {
|
|
249
|
+
}, v8 /*: any*/, {
|
|
242
250
|
"alias": null,
|
|
243
251
|
"args": null,
|
|
244
252
|
"kind": "ScalarField",
|
|
@@ -290,12 +298,12 @@ const node = function () {
|
|
|
290
298
|
}]
|
|
291
299
|
},
|
|
292
300
|
"params": {
|
|
293
|
-
"cacheID": "
|
|
301
|
+
"cacheID": "cf465f13ec74bf1c500a9104871c2cd5",
|
|
294
302
|
"id": null,
|
|
295
303
|
"metadata": {},
|
|
296
304
|
"name": "StoreModalIndexPaginationQuery",
|
|
297
305
|
"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"
|
|
306
|
+
"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 visibility\n totalStyles\n isVariableFont\n children(collectionTypes: [FAMILY]) {\n id\n name\n visibility\n isVariableFont\n totalStyles\n featureStyle {\n ...FontStyle_fontStyle\n supportedLanguages\n id\n }\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
307
|
}
|
|
300
308
|
};
|
|
301
309
|
}();
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @generated SignedSource<<
|
|
2
|
+
* @generated SignedSource<<c20392d6b43531f66af4e1a04ca5bc39>>
|
|
3
3
|
* @lightSyntaxTransform
|
|
4
4
|
* @nogrep
|
|
5
5
|
*/
|
|
6
6
|
import { ConcreteRequest } from 'relay-runtime';
|
|
7
7
|
import { FragmentRefs } from "relay-runtime";
|
|
8
|
+
export type Visibility = "HIDDEN" | "UNLISTED" | "VISIBLE" | "%future added value";
|
|
8
9
|
export type StoreModalIndexQuery$variables = {
|
|
9
10
|
count?: number | null;
|
|
10
11
|
cursor?: string | null;
|
|
@@ -16,6 +17,7 @@ export type StoreModalIndexQuery$data = {
|
|
|
16
17
|
readonly edges: ReadonlyArray<{
|
|
17
18
|
readonly node: {
|
|
18
19
|
readonly id: string;
|
|
20
|
+
readonly visibility: Visibility;
|
|
19
21
|
readonly " $fragmentSpreads": FragmentRefs<"StoreModalIndexPackItem_fontPack">;
|
|
20
22
|
} | null;
|
|
21
23
|
} | null> | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @generated SignedSource<<
|
|
2
|
+
* @generated SignedSource<<c20392d6b43531f66af4e1a04ca5bc39>>
|
|
3
3
|
* @lightSyntaxTransform
|
|
4
4
|
* @nogrep
|
|
5
5
|
*/
|
|
@@ -45,17 +45,24 @@ const node = function () {
|
|
|
45
45
|
"alias": null,
|
|
46
46
|
"args": null,
|
|
47
47
|
"kind": "ScalarField",
|
|
48
|
-
"name": "
|
|
48
|
+
"name": "visibility",
|
|
49
49
|
"storageKey": null
|
|
50
50
|
},
|
|
51
51
|
v7 = {
|
|
52
52
|
"alias": null,
|
|
53
53
|
"args": null,
|
|
54
54
|
"kind": "ScalarField",
|
|
55
|
-
"name": "
|
|
55
|
+
"name": "name",
|
|
56
56
|
"storageKey": null
|
|
57
57
|
},
|
|
58
58
|
v8 = {
|
|
59
|
+
"alias": null,
|
|
60
|
+
"args": null,
|
|
61
|
+
"kind": "ScalarField",
|
|
62
|
+
"name": "totalStyles",
|
|
63
|
+
"storageKey": null
|
|
64
|
+
},
|
|
65
|
+
v9 = {
|
|
59
66
|
"alias": null,
|
|
60
67
|
"args": null,
|
|
61
68
|
"concreteType": "FontStyle",
|
|
@@ -68,7 +75,7 @@ const node = function () {
|
|
|
68
75
|
"kind": "ScalarField",
|
|
69
76
|
"name": "cssFamily",
|
|
70
77
|
"storageKey": null
|
|
71
|
-
},
|
|
78
|
+
}, v7 /*: any*/, {
|
|
72
79
|
"alias": null,
|
|
73
80
|
"args": null,
|
|
74
81
|
"concreteType": "WebfontSource",
|
|
@@ -143,7 +150,7 @@ const node = function () {
|
|
|
143
150
|
}, v5 /*: any*/],
|
|
144
151
|
"storageKey": null
|
|
145
152
|
},
|
|
146
|
-
|
|
153
|
+
v10 = [{
|
|
147
154
|
"kind": "Variable",
|
|
148
155
|
"name": "after",
|
|
149
156
|
"variableName": "cursor"
|
|
@@ -156,7 +163,7 @@ const node = function () {
|
|
|
156
163
|
"name": "onlyRoots",
|
|
157
164
|
"value": true
|
|
158
165
|
}],
|
|
159
|
-
|
|
166
|
+
v11 = {
|
|
160
167
|
"alias": null,
|
|
161
168
|
"args": null,
|
|
162
169
|
"kind": "ScalarField",
|
|
@@ -197,7 +204,7 @@ const node = function () {
|
|
|
197
204
|
"kind": "LinkedField",
|
|
198
205
|
"name": "node",
|
|
199
206
|
"plural": false,
|
|
200
|
-
"selections": [v5 /*: any*/, {
|
|
207
|
+
"selections": [v5 /*: any*/, v6 /*: any*/, {
|
|
201
208
|
"args": null,
|
|
202
209
|
"kind": "FragmentSpread",
|
|
203
210
|
"name": "StoreModalIndexPackItem_fontPack"
|
|
@@ -258,7 +265,7 @@ const node = function () {
|
|
|
258
265
|
"kind": "LinkedField",
|
|
259
266
|
"name": "node",
|
|
260
267
|
"plural": false,
|
|
261
|
-
"selections": [v5 /*: any*/, v6 /*: any*/, v7 /*: any*/, v8 /*: any*/],
|
|
268
|
+
"selections": [v5 /*: any*/, v6 /*: any*/, v7 /*: any*/, v8 /*: any*/, v9 /*: any*/],
|
|
262
269
|
"storageKey": null
|
|
263
270
|
}],
|
|
264
271
|
"storageKey": null
|
|
@@ -266,7 +273,7 @@ const node = function () {
|
|
|
266
273
|
"storageKey": null
|
|
267
274
|
}, {
|
|
268
275
|
"alias": "rootCollections",
|
|
269
|
-
"args":
|
|
276
|
+
"args": v10 /*: any*/,
|
|
270
277
|
"concreteType": "FontCollectionConnection",
|
|
271
278
|
"kind": "LinkedField",
|
|
272
279
|
"name": "fontCollections",
|
|
@@ -285,7 +292,7 @@ const node = function () {
|
|
|
285
292
|
"kind": "LinkedField",
|
|
286
293
|
"name": "node",
|
|
287
294
|
"plural": false,
|
|
288
|
-
"selections": [v5 /*: any*/,
|
|
295
|
+
"selections": [v5 /*: any*/, v11 /*: any*/, v8 /*: any*/, {
|
|
289
296
|
"alias": null,
|
|
290
297
|
"args": [{
|
|
291
298
|
"kind": "Literal",
|
|
@@ -296,15 +303,15 @@ const node = function () {
|
|
|
296
303
|
"kind": "LinkedField",
|
|
297
304
|
"name": "children",
|
|
298
305
|
"plural": true,
|
|
299
|
-
"selections": [
|
|
306
|
+
"selections": [v11 /*: any*/, v8 /*: any*/, v5 /*: any*/, v7 /*: any*/, v6 /*: any*/, v9 /*: any*/],
|
|
300
307
|
"storageKey": "children(collectionTypes:[\"FAMILY\"])"
|
|
301
|
-
}, v6 /*: any*/, {
|
|
308
|
+
}, v7 /*: any*/, v6 /*: any*/, {
|
|
302
309
|
"alias": null,
|
|
303
310
|
"args": null,
|
|
304
311
|
"kind": "ScalarField",
|
|
305
312
|
"name": "collectionType",
|
|
306
313
|
"storageKey": null
|
|
307
|
-
},
|
|
314
|
+
}, v9 /*: any*/, {
|
|
308
315
|
"alias": null,
|
|
309
316
|
"args": null,
|
|
310
317
|
"kind": "ScalarField",
|
|
@@ -345,7 +352,7 @@ const node = function () {
|
|
|
345
352
|
"storageKey": null
|
|
346
353
|
}, {
|
|
347
354
|
"alias": "rootCollections",
|
|
348
|
-
"args":
|
|
355
|
+
"args": v10 /*: any*/,
|
|
349
356
|
"filters": ["onlyRoots", "excludeTags"],
|
|
350
357
|
"handle": "connection",
|
|
351
358
|
"key": "StoreModalIndex_rootCollections",
|
|
@@ -356,14 +363,14 @@ const node = function () {
|
|
|
356
363
|
}]
|
|
357
364
|
},
|
|
358
365
|
"params": {
|
|
359
|
-
"cacheID": "
|
|
366
|
+
"cacheID": "176244d6e8b7a3a3ac4e184b362e4e85",
|
|
360
367
|
"id": null,
|
|
361
368
|
"metadata": {},
|
|
362
369
|
"name": "StoreModalIndexQuery",
|
|
363
370
|
"operationKind": "query",
|
|
364
|
-
"text": "query StoreModalIndexQuery(\n $excludeTags: [String!]\n $count: Int = 25\n $cursor: String\n) {\n viewer {\n fontPacks(first: 9999, excludeTags: $excludeTags) {\n edges {\n node {\n id\n ...StoreModalIndexPackItem_fontPack\n }\n }\n }\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 StoreModalIndexPackItem_fontPack on FontPack {\n id\n name\n totalStyles\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"
|
|
371
|
+
"text": "query StoreModalIndexQuery(\n $excludeTags: [String!]\n $count: Int = 25\n $cursor: String\n) {\n viewer {\n fontPacks(first: 9999, excludeTags: $excludeTags) {\n edges {\n node {\n id\n visibility\n ...StoreModalIndexPackItem_fontPack\n }\n }\n }\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 visibility\n totalStyles\n isVariableFont\n children(collectionTypes: [FAMILY]) {\n id\n name\n visibility\n isVariableFont\n totalStyles\n featureStyle {\n ...FontStyle_fontStyle\n supportedLanguages\n id\n }\n }\n collectionType\n featureStyle {\n ...FontStyle_fontStyle\n supportedLanguages\n id\n }\n}\n\nfragment StoreModalIndexPackItem_fontPack on FontPack {\n id\n name\n totalStyles\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"
|
|
365
372
|
}
|
|
366
373
|
};
|
|
367
374
|
}();
|
|
368
|
-
node.hash = "
|
|
375
|
+
node.hash = "13fce0376ef1b098e7f1f34dfdc7dad4";
|
|
369
376
|
export default node;
|
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @generated SignedSource<<
|
|
2
|
+
* @generated SignedSource<<47f718aeae16846330759690c693dce6>>
|
|
3
3
|
* @lightSyntaxTransform
|
|
4
4
|
* @nogrep
|
|
5
5
|
*/
|
|
6
6
|
import { ConcreteRequest } from 'relay-runtime';
|
|
7
|
-
export type TestFontsForm_Query$variables =
|
|
7
|
+
export type TestFontsForm_Query$variables = {
|
|
8
|
+
collectionIds?: ReadonlyArray<string> | null;
|
|
9
|
+
collectionSlugs?: ReadonlyArray<string> | null;
|
|
10
|
+
};
|
|
8
11
|
export type TestFontsForm_Query$data = {
|
|
9
12
|
readonly viewer: {
|
|
13
|
+
readonly fontdueConfig: {
|
|
14
|
+
readonly testFonts: {
|
|
15
|
+
readonly familySelection: string;
|
|
16
|
+
};
|
|
17
|
+
} | null;
|
|
10
18
|
readonly settings: {
|
|
11
19
|
readonly eulaAgreementLabel: string | null;
|
|
12
20
|
readonly newsletterOptInLabel: string | null;
|
|
@@ -15,6 +23,10 @@ export type TestFontsForm_Query$data = {
|
|
|
15
23
|
} | null;
|
|
16
24
|
readonly testFonts: {
|
|
17
25
|
readonly archiveUrl: string | null;
|
|
26
|
+
readonly families: ReadonlyArray<{
|
|
27
|
+
readonly id: string;
|
|
28
|
+
readonly name: string;
|
|
29
|
+
}>;
|
|
18
30
|
} | null;
|
|
19
31
|
};
|
|
20
32
|
};
|