fontdue-js 2.22.3 → 2.22.4

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 CHANGED
@@ -1,3 +1,7 @@
1
+ ## 2.22.4
2
+
3
+ - Raised the store modal index collection limit from 99 to 9999, so very large libraries are no longer silently capped on the store modal landing page.
4
+
1
5
  ## 2.22.3
2
6
 
3
7
  - Fixed the store modal over-grouping styles within a family. Previously, any consecutive styles sharing `cssFamily`/`cssWeight`/`cssStretch` were rendered together on a single row, which could collapse 3+ unrelated styles into one visual pair. Styles are now only paired when they're exactly one upright + one slanted (italic or oblique) counterpart; anything else renders on its own row.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @generated SignedSource<<f6fed31e6723d222cf0d687e1013cc38>>
2
+ * @generated SignedSource<<52e391f8940a4f6eb94fcf4f4d884f31>>
3
3
  * @lightSyntaxTransform
4
4
  * @nogrep
5
5
  */
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  /**
8
- * @generated SignedSource<<f6fed31e6723d222cf0d687e1013cc38>>
8
+ * @generated SignedSource<<52e391f8940a4f6eb94fcf4f4d884f31>>
9
9
  * @lightSyntaxTransform
10
10
  * @nogrep
11
11
  */
@@ -27,7 +27,7 @@ const node = function () {
27
27
  }, {
28
28
  "kind": "Literal",
29
29
  "name": "first",
30
- "value": 99
30
+ "value": 9999
31
31
  }, {
32
32
  "kind": "Literal",
33
33
  "name": "onlyRoots",
@@ -249,15 +249,15 @@ const node = function () {
249
249
  }]
250
250
  },
251
251
  "params": {
252
- "cacheID": "6c9f9bd4a6c1817100984d2a29c8017f",
252
+ "cacheID": "df65908a69bef4f72b19f28c399fe53b",
253
253
  "id": null,
254
254
  "metadata": {},
255
255
  "name": "StoreModalIndexQuery",
256
256
  "operationKind": "query",
257
- "text": "query StoreModalIndexQuery(\n $excludeTags: [String!]\n) {\n viewer {\n rootCollections: fontCollections(onlyRoots: true, first: 99, excludeTags: $excludeTags) {\n edges {\n node {\n id\n ...StoreModalIndexItem_fontCollection\n }\n }\n }\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 useFontStyle_fontStyle on FontStyle {\n cssFamily\n name\n webfontSources {\n url\n format\n }\n verticalMetrics {\n unitsPerEm\n ascender\n descender\n lineGap\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"
257
+ "text": "query StoreModalIndexQuery(\n $excludeTags: [String!]\n) {\n viewer {\n rootCollections: fontCollections(onlyRoots: true, first: 9999, excludeTags: $excludeTags) {\n edges {\n node {\n id\n ...StoreModalIndexItem_fontCollection\n }\n }\n }\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 useFontStyle_fontStyle on FontStyle {\n cssFamily\n name\n webfontSources {\n url\n format\n }\n verticalMetrics {\n unitsPerEm\n ascender\n descender\n lineGap\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"
258
258
  }
259
259
  };
260
260
  }();
261
- node.hash = "300b462c41a951b4f94c4b8da7a6821f";
261
+ node.hash = "099c77808b41054885365ebe3eda03c8";
262
262
  var _default = node;
263
263
  exports.default = _default;
@@ -15,7 +15,7 @@ const StoreModalIndex = _ref => {
15
15
  let {
16
16
  prepared
17
17
  } = _ref;
18
- const data = (0, _reactRelay.usePreloadedQuery)((_StoreModalIndexQuery2.default.hash && _StoreModalIndexQuery2.default.hash !== "300b462c41a951b4f94c4b8da7a6821f" && console.error("The definition of 'StoreModalIndexQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalIndexQuery2.default), prepared.indexQuery);
18
+ const data = (0, _reactRelay.usePreloadedQuery)((_StoreModalIndexQuery2.default.hash && _StoreModalIndexQuery2.default.hash !== "099c77808b41054885365ebe3eda03c8" && console.error("The definition of 'StoreModalIndexQuery' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _StoreModalIndexQuery2.default), prepared.indexQuery);
19
19
  const viewer = data.viewer;
20
20
  const edges = (viewer === null || viewer === void 0 ? void 0 : (_viewer$rootCollectio = viewer.rootCollections) === null || _viewer$rootCollectio === void 0 ? void 0 : _viewer$rootCollectio.edges) ?? [];
21
21
  return /*#__PURE__*/_react.default.createElement(_StoreModalPageContainer.default, null, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fontdue-js",
3
- "version": "2.22.3",
3
+ "version": "2.22.4",
4
4
  "scripts": {
5
5
  "build": "npm run relay && run-p build-js build-css build-ts",
6
6
  "build-js": "babel src --out-dir dist --extensions .ts,.tsx,.js,.jsx",
@@ -0,0 +1,11 @@
1
+ declare global {
2
+ interface FontFaceSet {
3
+ add(font: FontFace): FontFaceSet;
4
+ delete(font: FontFace): boolean;
5
+ clear(): void;
6
+ has(font: FontFace): boolean;
7
+ readonly size: number;
8
+ }
9
+ }
10
+
11
+ export {};
package/.nvmrc DELETED
@@ -1 +0,0 @@
1
- v14.13.1