@fileverse-dev/ddoc 3.5.3-font-1 → 3.5.3

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "3.5.3-font-1",
5
+ "version": "3.5.3",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {
@@ -102,7 +102,6 @@
102
102
  "react-dom": "^18.2.0",
103
103
  "react-tweet": "^3.2.2",
104
104
  "react-uuid": "^2.0.0",
105
- "react-window": "^2.2.7",
106
105
  "socket.io-client": "^4.7.5",
107
106
  "tailwindcss-animate": "^1.0.7",
108
107
  "tiptap-markdown": "^0.9.0",
@@ -1,24 +0,0 @@
1
- import { FontDescriptor } from '../types';
2
-
3
- /** "Poppins, sans-serif" -> "Poppins"; "'Times New Roman', serif" -> "Times New Roman" */
4
- export declare function primaryToken(family: string): string;
5
- /**
6
- * Registers each catalog font with the browser without downloading it. A
7
- * FontFace added to document.fonts but never `.load()`-ed behaves like a CSS
8
- * `@font-face` rule: the UA fetches it lazily the first time rendered text
9
- * (local edit, paste, undo, or a remote Yjs update) matches the family — which
10
- * is why no document-scanning extension is needed.
11
- *
12
- * Merges into the existing catalog and never clears it, so a second editor
13
- * mounting without a `fonts` prop can't wipe fonts other editors on the same
14
- * page still need. The CSS face name is derived from the family stack, not the
15
- * cosmetic `name`, so the registered face actually matches styled content.
16
- */
17
- export declare function registerFonts(fonts: FontDescriptor[]): void;
18
- export declare function getRegisteredFonts(): FontDescriptor[];
19
- /**
20
- * Forces a download and resolves once the face is ready. Used by the picker
21
- * click so applying a font doesn't flash the fallback. `document.fonts.load`
22
- * deduplicates internally, so no custom promise cache is needed.
23
- */
24
- export declare function ensureLoaded(family: string): Promise<unknown>;