fontdue-js 3.0.6 → 3.2.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 +17 -0
- package/dist/__generated__/FeatureTesterCard_fontStyle.graphql.d.ts +23 -0
- package/dist/__generated__/FeatureTesterCard_fontStyle.graphql.js +62 -0
- package/dist/__generated__/FeatureTesterStandaloneQuery.graphql.d.ts +25 -0
- package/dist/__generated__/FeatureTesterStandaloneQuery.graphql.js +240 -0
- package/dist/__generated__/FeatureTestersIdQuery.graphql.d.ts +21 -0
- package/dist/__generated__/FeatureTestersIdQuery.graphql.js +344 -0
- package/dist/__generated__/FeatureTestersSlugQuery.graphql.d.ts +25 -0
- package/dist/__generated__/FeatureTestersSlugQuery.graphql.js +364 -0
- package/dist/__generated__/FeatureTesters_collection.graphql.d.ts +39 -0
- package/dist/__generated__/FeatureTesters_collection.graphql.js +145 -0
- package/dist/__generated__/NodePasswordFormAccessNodeMutation.graphql.d.ts +2 -1
- package/dist/__generated__/NodePasswordFormAccessNodeMutation.graphql.js +10 -4
- package/dist/__generated__/NodePasswordFormElementIDQuery.graphql.d.ts +21 -0
- package/dist/__generated__/NodePasswordFormElementIDQuery.graphql.js +86 -0
- package/dist/__generated__/NodePasswordFormElementSlugQuery.graphql.d.ts +25 -0
- package/dist/__generated__/NodePasswordFormElementSlugQuery.graphql.js +108 -0
- package/dist/__tests__/createFontdueFetch.test.js +128 -4
- package/dist/__tests__/highlight.test.js +141 -0
- package/dist/__tests__/middleware.test.js +132 -0
- package/dist/__tests__/nextAdapter.test.js +115 -1
- package/dist/components/FeatureTester/FeatureTesterCard.d.ts +30 -0
- package/dist/components/FeatureTester/FeatureTesterCard.js +167 -0
- package/dist/components/FeatureTester/FeatureTesterElement.d.ts +19 -0
- package/dist/components/FeatureTester/FeatureTesterElement.js +42 -0
- package/dist/components/FeatureTester/FeatureTesters.d.ts +43 -0
- package/dist/components/FeatureTester/FeatureTesters.js +156 -0
- package/dist/components/FeatureTester/FeatureTesters.server.d.ts +9 -0
- package/dist/components/FeatureTester/FeatureTesters.server.js +40 -0
- package/dist/components/FeatureTester/FeatureTestersElement.d.ts +10 -0
- package/dist/components/FeatureTester/FeatureTestersElement.js +27 -0
- package/dist/components/FeatureTester/highlight.d.ts +19 -0
- package/dist/components/FeatureTester/highlight.js +71 -0
- package/dist/components/FeatureTester/index.d.ts +26 -0
- package/dist/components/FeatureTester/index.js +66 -0
- package/dist/components/FeatureTester/index.server.d.ts +7 -0
- package/dist/components/FeatureTester/index.server.js +30 -0
- package/dist/components/NodePasswordForm/NodePasswordFormElement.d.ts +3 -0
- package/dist/components/NodePasswordForm/NodePasswordFormElement.js +65 -0
- package/dist/components/NodePasswordForm/index.d.ts +27 -1
- package/dist/components/NodePasswordForm/index.js +54 -60
- package/dist/components/Root/index.js +2 -1
- package/dist/fontdue.css +145 -0
- package/dist/hooks/useFeatureTesterAutofit.d.ts +17 -0
- package/dist/hooks/useFeatureTesterAutofit.js +106 -0
- package/dist/next/index.d.ts +2 -0
- package/dist/next/index.js +19 -3
- package/dist/next/registerSingleTenantResolver.js +13 -1
- package/dist/next/tenant.d.ts +1 -0
- package/dist/next/tenant.js +58 -2
- package/dist/next/unlock.d.ts +3 -0
- package/dist/next/unlock.js +49 -0
- package/dist/nodeAccess.d.ts +18 -0
- package/dist/nodeAccess.js +84 -0
- package/dist/preview/server.d.ts +1 -20
- package/dist/preview/server.js +16 -85
- package/dist/relay/environment.js +8 -2
- package/dist/relay/serverConfig.d.ts +3 -0
- package/dist/relay/serverConfig.js +22 -1
- package/dist/server/index.d.ts +8 -0
- package/dist/server/index.js +90 -7
- package/dist/server/middleware.d.ts +37 -0
- package/dist/server/middleware.js +144 -0
- package/package.json +9 -2
- package/types/next-headers.d.ts +5 -1
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @generated SignedSource<<c3ad0b621c332052d7f7324469a05f99>>
|
|
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": null,
|
|
14
|
+
"kind": "LocalArgument",
|
|
15
|
+
"name": "id"
|
|
16
|
+
}],
|
|
17
|
+
v1 = [{
|
|
18
|
+
"kind": "Variable",
|
|
19
|
+
"name": "id",
|
|
20
|
+
"variableName": "id"
|
|
21
|
+
}],
|
|
22
|
+
v2 = {
|
|
23
|
+
"alias": null,
|
|
24
|
+
"args": null,
|
|
25
|
+
"kind": "ScalarField",
|
|
26
|
+
"name": "id",
|
|
27
|
+
"storageKey": null
|
|
28
|
+
};
|
|
29
|
+
return {
|
|
30
|
+
"fragment": {
|
|
31
|
+
"argumentDefinitions": v0 /*: any*/,
|
|
32
|
+
"kind": "Fragment",
|
|
33
|
+
"metadata": null,
|
|
34
|
+
"name": "FeatureTestersIdQuery",
|
|
35
|
+
"selections": [{
|
|
36
|
+
"alias": null,
|
|
37
|
+
"args": v1 /*: any*/,
|
|
38
|
+
"concreteType": null,
|
|
39
|
+
"kind": "LinkedField",
|
|
40
|
+
"name": "node",
|
|
41
|
+
"plural": false,
|
|
42
|
+
"selections": [{
|
|
43
|
+
"kind": "InlineFragment",
|
|
44
|
+
"selections": [{
|
|
45
|
+
"args": null,
|
|
46
|
+
"kind": "FragmentSpread",
|
|
47
|
+
"name": "FeatureTesters_collection"
|
|
48
|
+
}],
|
|
49
|
+
"type": "FontCollection",
|
|
50
|
+
"abstractKey": null
|
|
51
|
+
}],
|
|
52
|
+
"storageKey": null
|
|
53
|
+
}],
|
|
54
|
+
"type": "RootQueryType",
|
|
55
|
+
"abstractKey": null
|
|
56
|
+
},
|
|
57
|
+
"kind": "Request",
|
|
58
|
+
"operation": {
|
|
59
|
+
"argumentDefinitions": v0 /*: any*/,
|
|
60
|
+
"kind": "Operation",
|
|
61
|
+
"name": "FeatureTestersIdQuery",
|
|
62
|
+
"selections": [{
|
|
63
|
+
"alias": null,
|
|
64
|
+
"args": v1 /*: any*/,
|
|
65
|
+
"concreteType": null,
|
|
66
|
+
"kind": "LinkedField",
|
|
67
|
+
"name": "node",
|
|
68
|
+
"plural": false,
|
|
69
|
+
"selections": [{
|
|
70
|
+
"alias": null,
|
|
71
|
+
"args": null,
|
|
72
|
+
"kind": "ScalarField",
|
|
73
|
+
"name": "__typename",
|
|
74
|
+
"storageKey": null
|
|
75
|
+
}, {
|
|
76
|
+
"kind": "InlineFragment",
|
|
77
|
+
"selections": [{
|
|
78
|
+
"alias": null,
|
|
79
|
+
"args": null,
|
|
80
|
+
"kind": "ScalarField",
|
|
81
|
+
"name": "featureTesterDefaultOn",
|
|
82
|
+
"storageKey": null
|
|
83
|
+
}, {
|
|
84
|
+
"alias": null,
|
|
85
|
+
"args": null,
|
|
86
|
+
"kind": "ScalarField",
|
|
87
|
+
"name": "featureTesterShowTag",
|
|
88
|
+
"storageKey": null
|
|
89
|
+
}, {
|
|
90
|
+
"alias": null,
|
|
91
|
+
"args": null,
|
|
92
|
+
"concreteType": "FeatureTester",
|
|
93
|
+
"kind": "LinkedField",
|
|
94
|
+
"name": "featureTesters",
|
|
95
|
+
"plural": true,
|
|
96
|
+
"selections": [v2 /*: any*/, {
|
|
97
|
+
"alias": null,
|
|
98
|
+
"args": null,
|
|
99
|
+
"kind": "ScalarField",
|
|
100
|
+
"name": "feature",
|
|
101
|
+
"storageKey": null
|
|
102
|
+
}, {
|
|
103
|
+
"alias": null,
|
|
104
|
+
"args": null,
|
|
105
|
+
"kind": "ScalarField",
|
|
106
|
+
"name": "label",
|
|
107
|
+
"storageKey": null
|
|
108
|
+
}, {
|
|
109
|
+
"alias": null,
|
|
110
|
+
"args": null,
|
|
111
|
+
"kind": "ScalarField",
|
|
112
|
+
"name": "content",
|
|
113
|
+
"storageKey": null
|
|
114
|
+
}, {
|
|
115
|
+
"alias": null,
|
|
116
|
+
"args": null,
|
|
117
|
+
"kind": "ScalarField",
|
|
118
|
+
"name": "size",
|
|
119
|
+
"storageKey": null
|
|
120
|
+
}, {
|
|
121
|
+
"alias": null,
|
|
122
|
+
"args": null,
|
|
123
|
+
"kind": "ScalarField",
|
|
124
|
+
"name": "lineHeight",
|
|
125
|
+
"storageKey": null
|
|
126
|
+
}, {
|
|
127
|
+
"alias": null,
|
|
128
|
+
"args": null,
|
|
129
|
+
"kind": "ScalarField",
|
|
130
|
+
"name": "alignment",
|
|
131
|
+
"storageKey": null
|
|
132
|
+
}, {
|
|
133
|
+
"alias": null,
|
|
134
|
+
"args": null,
|
|
135
|
+
"kind": "ScalarField",
|
|
136
|
+
"name": "autofit",
|
|
137
|
+
"storageKey": null
|
|
138
|
+
}, {
|
|
139
|
+
"alias": null,
|
|
140
|
+
"args": null,
|
|
141
|
+
"concreteType": "FeatureChangeRange",
|
|
142
|
+
"kind": "LinkedField",
|
|
143
|
+
"name": "changedRanges",
|
|
144
|
+
"plural": true,
|
|
145
|
+
"selections": [{
|
|
146
|
+
"alias": null,
|
|
147
|
+
"args": null,
|
|
148
|
+
"kind": "ScalarField",
|
|
149
|
+
"name": "start",
|
|
150
|
+
"storageKey": null
|
|
151
|
+
}, {
|
|
152
|
+
"alias": null,
|
|
153
|
+
"args": null,
|
|
154
|
+
"kind": "ScalarField",
|
|
155
|
+
"name": "length",
|
|
156
|
+
"storageKey": null
|
|
157
|
+
}],
|
|
158
|
+
"storageKey": null
|
|
159
|
+
}, {
|
|
160
|
+
"alias": null,
|
|
161
|
+
"args": null,
|
|
162
|
+
"concreteType": "VariableSetting",
|
|
163
|
+
"kind": "LinkedField",
|
|
164
|
+
"name": "variableSettings",
|
|
165
|
+
"plural": true,
|
|
166
|
+
"selections": [{
|
|
167
|
+
"alias": null,
|
|
168
|
+
"args": null,
|
|
169
|
+
"kind": "ScalarField",
|
|
170
|
+
"name": "axis",
|
|
171
|
+
"storageKey": null
|
|
172
|
+
}, {
|
|
173
|
+
"alias": null,
|
|
174
|
+
"args": null,
|
|
175
|
+
"kind": "ScalarField",
|
|
176
|
+
"name": "value",
|
|
177
|
+
"storageKey": null
|
|
178
|
+
}],
|
|
179
|
+
"storageKey": null
|
|
180
|
+
}, {
|
|
181
|
+
"alias": null,
|
|
182
|
+
"args": null,
|
|
183
|
+
"concreteType": "FontStyle",
|
|
184
|
+
"kind": "LinkedField",
|
|
185
|
+
"name": "fontStyle",
|
|
186
|
+
"plural": false,
|
|
187
|
+
"selections": [{
|
|
188
|
+
"alias": null,
|
|
189
|
+
"args": null,
|
|
190
|
+
"kind": "ScalarField",
|
|
191
|
+
"name": "cssFamily",
|
|
192
|
+
"storageKey": null
|
|
193
|
+
}, {
|
|
194
|
+
"alias": null,
|
|
195
|
+
"args": null,
|
|
196
|
+
"kind": "ScalarField",
|
|
197
|
+
"name": "name",
|
|
198
|
+
"storageKey": null
|
|
199
|
+
}, {
|
|
200
|
+
"alias": null,
|
|
201
|
+
"args": null,
|
|
202
|
+
"concreteType": "WebfontSource",
|
|
203
|
+
"kind": "LinkedField",
|
|
204
|
+
"name": "webfontSources",
|
|
205
|
+
"plural": true,
|
|
206
|
+
"selections": [{
|
|
207
|
+
"alias": null,
|
|
208
|
+
"args": null,
|
|
209
|
+
"kind": "ScalarField",
|
|
210
|
+
"name": "url",
|
|
211
|
+
"storageKey": null
|
|
212
|
+
}, {
|
|
213
|
+
"alias": null,
|
|
214
|
+
"args": null,
|
|
215
|
+
"kind": "ScalarField",
|
|
216
|
+
"name": "format",
|
|
217
|
+
"storageKey": null
|
|
218
|
+
}, {
|
|
219
|
+
"alias": null,
|
|
220
|
+
"args": null,
|
|
221
|
+
"kind": "ScalarField",
|
|
222
|
+
"name": "tech",
|
|
223
|
+
"storageKey": null
|
|
224
|
+
}],
|
|
225
|
+
"storageKey": null
|
|
226
|
+
}, {
|
|
227
|
+
"alias": null,
|
|
228
|
+
"args": null,
|
|
229
|
+
"concreteType": "VerticalMetrics",
|
|
230
|
+
"kind": "LinkedField",
|
|
231
|
+
"name": "verticalMetrics",
|
|
232
|
+
"plural": false,
|
|
233
|
+
"selections": [{
|
|
234
|
+
"alias": null,
|
|
235
|
+
"args": null,
|
|
236
|
+
"kind": "ScalarField",
|
|
237
|
+
"name": "unitsPerEm",
|
|
238
|
+
"storageKey": null
|
|
239
|
+
}, {
|
|
240
|
+
"alias": null,
|
|
241
|
+
"args": null,
|
|
242
|
+
"kind": "ScalarField",
|
|
243
|
+
"name": "ascender",
|
|
244
|
+
"storageKey": null
|
|
245
|
+
}, {
|
|
246
|
+
"alias": null,
|
|
247
|
+
"args": null,
|
|
248
|
+
"kind": "ScalarField",
|
|
249
|
+
"name": "descender",
|
|
250
|
+
"storageKey": null
|
|
251
|
+
}, {
|
|
252
|
+
"alias": null,
|
|
253
|
+
"args": null,
|
|
254
|
+
"kind": "ScalarField",
|
|
255
|
+
"name": "lineGap",
|
|
256
|
+
"storageKey": null
|
|
257
|
+
}, {
|
|
258
|
+
"alias": null,
|
|
259
|
+
"args": null,
|
|
260
|
+
"kind": "ScalarField",
|
|
261
|
+
"name": "avgCharWidth",
|
|
262
|
+
"storageKey": null
|
|
263
|
+
}],
|
|
264
|
+
"storageKey": null
|
|
265
|
+
}, {
|
|
266
|
+
"alias": null,
|
|
267
|
+
"args": null,
|
|
268
|
+
"concreteType": "FontFeatures",
|
|
269
|
+
"kind": "LinkedField",
|
|
270
|
+
"name": "fontFeatures",
|
|
271
|
+
"plural": false,
|
|
272
|
+
"selections": [{
|
|
273
|
+
"alias": null,
|
|
274
|
+
"args": null,
|
|
275
|
+
"kind": "ScalarField",
|
|
276
|
+
"name": "supportedFeatures",
|
|
277
|
+
"storageKey": null
|
|
278
|
+
}, {
|
|
279
|
+
"alias": null,
|
|
280
|
+
"args": null,
|
|
281
|
+
"concreteType": "StylisticSetName",
|
|
282
|
+
"kind": "LinkedField",
|
|
283
|
+
"name": "stylisticSetNames",
|
|
284
|
+
"plural": true,
|
|
285
|
+
"selections": [{
|
|
286
|
+
"alias": null,
|
|
287
|
+
"args": null,
|
|
288
|
+
"kind": "ScalarField",
|
|
289
|
+
"name": "featureName",
|
|
290
|
+
"storageKey": null
|
|
291
|
+
}, {
|
|
292
|
+
"alias": null,
|
|
293
|
+
"args": null,
|
|
294
|
+
"kind": "ScalarField",
|
|
295
|
+
"name": "humanName",
|
|
296
|
+
"storageKey": null
|
|
297
|
+
}],
|
|
298
|
+
"storageKey": null
|
|
299
|
+
}],
|
|
300
|
+
"storageKey": null
|
|
301
|
+
}, {
|
|
302
|
+
"alias": null,
|
|
303
|
+
"args": null,
|
|
304
|
+
"concreteType": "GlyphName",
|
|
305
|
+
"kind": "LinkedField",
|
|
306
|
+
"name": "glyphNames",
|
|
307
|
+
"plural": true,
|
|
308
|
+
"selections": [{
|
|
309
|
+
"alias": null,
|
|
310
|
+
"args": null,
|
|
311
|
+
"kind": "ScalarField",
|
|
312
|
+
"name": "characters",
|
|
313
|
+
"storageKey": null
|
|
314
|
+
}, {
|
|
315
|
+
"alias": null,
|
|
316
|
+
"args": null,
|
|
317
|
+
"kind": "ScalarField",
|
|
318
|
+
"name": "features",
|
|
319
|
+
"storageKey": null
|
|
320
|
+
}],
|
|
321
|
+
"storageKey": null
|
|
322
|
+
}, v2 /*: any*/],
|
|
323
|
+
"storageKey": null
|
|
324
|
+
}],
|
|
325
|
+
"storageKey": null
|
|
326
|
+
}],
|
|
327
|
+
"type": "FontCollection",
|
|
328
|
+
"abstractKey": null
|
|
329
|
+
}, v2 /*: any*/],
|
|
330
|
+
"storageKey": null
|
|
331
|
+
}]
|
|
332
|
+
},
|
|
333
|
+
"params": {
|
|
334
|
+
"cacheID": "2766d928cb71f0b48c390f985625920e",
|
|
335
|
+
"id": null,
|
|
336
|
+
"metadata": {},
|
|
337
|
+
"name": "FeatureTestersIdQuery",
|
|
338
|
+
"operationKind": "query",
|
|
339
|
+
"text": "query FeatureTestersIdQuery(\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ... on FontCollection {\n ...FeatureTesters_collection\n }\n id\n }\n}\n\nfragment FeatureTesterCard_fontStyle on FontStyle {\n ...FontStyle_fontStyle\n ...useFeaturesData_fontStyle\n cssFamily\n name\n glyphNames {\n characters\n features\n }\n}\n\nfragment FeatureTesters_collection on FontCollection {\n featureTesterDefaultOn\n featureTesterShowTag\n featureTesters {\n id\n feature\n label\n content\n size\n lineHeight\n alignment\n autofit\n changedRanges {\n start\n length\n }\n variableSettings {\n axis\n value\n }\n fontStyle {\n ...FeatureTesterCard_fontStyle\n id\n }\n }\n}\n\nfragment FontStyle_fontStyle on FontStyle {\n ...useFontStyle_fontStyle\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 avgCharWidth\n }\n}\n"
|
|
340
|
+
}
|
|
341
|
+
};
|
|
342
|
+
}();
|
|
343
|
+
node.hash = "55f152ae85db4ebafd21ff7945f4079a";
|
|
344
|
+
export default node;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @generated SignedSource<<45eb26181270bd20d481b2729350270f>>
|
|
3
|
+
* @lightSyntaxTransform
|
|
4
|
+
* @nogrep
|
|
5
|
+
*/
|
|
6
|
+
import { ConcreteRequest } from 'relay-runtime';
|
|
7
|
+
import { FragmentRefs } from "relay-runtime";
|
|
8
|
+
export type FeatureTestersSlugQuery$variables = {
|
|
9
|
+
slug: string;
|
|
10
|
+
};
|
|
11
|
+
export type FeatureTestersSlugQuery$data = {
|
|
12
|
+
readonly viewer: {
|
|
13
|
+
readonly slug: {
|
|
14
|
+
readonly fontCollection: {
|
|
15
|
+
readonly " $fragmentSpreads": FragmentRefs<"FeatureTesters_collection">;
|
|
16
|
+
} | null;
|
|
17
|
+
} | null;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export type FeatureTestersSlugQuery = {
|
|
21
|
+
response: FeatureTestersSlugQuery$data;
|
|
22
|
+
variables: FeatureTestersSlugQuery$variables;
|
|
23
|
+
};
|
|
24
|
+
declare const node: ConcreteRequest;
|
|
25
|
+
export default node;
|