@webround/editor 0.2.0 → 0.3.1
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.
|
@@ -187,6 +187,8 @@ function setCustomFont(root, family, faces) {
|
|
|
187
187
|
rule.append({ prop: 'font-style', value: face.style });
|
|
188
188
|
if (face.stretch)
|
|
189
189
|
rule.append({ prop: 'font-stretch', value: face.stretch });
|
|
190
|
+
// The text shows at once in a fallback and changes when the font arrives (without it, it stays invisible until the file is there)
|
|
191
|
+
rule.append({ prop: 'font-display', value: 'swap' });
|
|
190
192
|
root.append(rule);
|
|
191
193
|
}
|
|
192
194
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webround/editor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@lexical/selection": "^0.51.0",
|
|
66
66
|
"@lexical/utils": "^0.51.0",
|
|
67
67
|
"@monaco-editor/react": "^4.7.0",
|
|
68
|
-
"@webround/core": "^0.
|
|
68
|
+
"@webround/core": "^0.3.0",
|
|
69
69
|
"highlight.js": "^11.12.0",
|
|
70
70
|
"hls.js": "^1.5.0",
|
|
71
71
|
"lexical": "^0.51.0",
|