@abyss-project/commons-front-core 18.1.4 → 18.1.5
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 +7 -1
- package/catalog/specs/markdown-editor.spec.ts +13 -0
- package/dist/{editors-CJ_6PXoL.js → editors-BRtoE-Cn.js} +30836 -30826
- package/dist/editors.js +1 -1
- package/dist/{index-B6QYagVk.js → index-0DnqWmbq.js} +2 -2
- package/dist/{index-5BCfqxIs.js → index-4vozr_pR.js} +2 -2
- package/dist/{index-4MsOXuOU.js → index-55MhbV8A.js} +2 -2
- package/dist/{index-5HFSSrP-.js → index-7GZ8XIqj.js} +1 -1
- package/dist/{index-BcsTtdwQ.js → index-BAt93dsR.js} +4 -4
- package/dist/{index-ByRUmH_4.js → index-BYjWj9Ll.js} +3 -3
- package/dist/{index-Drwqi2Fr.js → index-BcqlvUH-.js} +2 -2
- package/dist/{index-DQgpUR1S.js → index-BgAY2Bpn.js} +3 -3
- package/dist/{index-7M2xC_9h.js → index-BnrtBuyz.js} +2 -2
- package/dist/{index-VLxkKEWK.js → index-CVroXVVA.js} +3 -3
- package/dist/{index-p3G-JM7E.js → index-CgkFRcYO.js} +3 -3
- package/dist/{index-Dh1lFi8d.js → index-CoXRWuEB.js} +2 -2
- package/dist/{index-Cl1UafyM.js → index-Dq2PY8Hf.js} +2 -2
- package/dist/{index-8o9jiKS2.js → index-JUTxkZGl.js} +2 -2
- package/dist/{index-Bbc0SjAt.js → index-VycSBSHm.js} +2 -2
- package/dist/{index-CXUHmTse.js → index-f3rEzQD4.js} +2 -2
- package/dist/{index-Berc0QsZ.js → index-lORwPFbG.js} +4 -4
- package/dist/{index-BQFouU9U.js → index-m8hFXXte.js} +2 -2
- package/dist/{index-BbbyRlLu.js → index-oZ7WObJR.js} +2 -2
- package/dist/{index-Dtfo8fKg.js → index-q5HxJPvO.js} +4 -4
- package/dist/{index-BQLAeM_n.js → index-zQdz10Oj.js} +2 -2
- package/dist/latex-DMur4Nmq.js +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
# Changelog — @abyss-project/commons-front-core
|
|
2
2
|
|
|
3
|
+
## 18.1.5
|
|
4
|
+
|
|
5
|
+
Card #286. 18.1.4 made a consumer's main bundle heavier: 970 KB gzipped on Spotlight.
|
|
6
|
+
|
|
7
|
+
- `MarkdownEditor`: KaTeX and its base64 fonts, 1.5 MB of Crepe's stylesheet, no longer sit in the bundle of a host that imports the editor statically. They load in their own chunk when an editor mounts. The rest of the stylesheet, about 50 KB, stays with the editor. Until they arrive, a formula shows twice (KaTeX's MathML and HTML branches). If the load fails, a warning goes to the console, and the next mount of an editor tries again.
|
|
8
|
+
|
|
3
9
|
## 18.1.4
|
|
4
10
|
|
|
5
11
|
Card #286 (global review of AbyssMain, lot 1). No export removed, no signature changed. Changed behaviors, each listed below: the y domain of an unfilled `LineChart`, its x labels on a narrow chart, the block handle on a touch layout, the texts of `CodeEditor`.
|
|
6
12
|
|
|
7
|
-
- `MarkdownEditor`: Crepe's stylesheet now reaches consumers built on the published package. The build extracted it into `dist/commons-front-core.css`, which no chunk imports and `exports` does not expose, so block handle, slash menu and toolbar had no layout outside a source alias. The editor now puts it first in `head` itself; nothing to import.
|
|
13
|
+
- `MarkdownEditor`: Crepe's stylesheet now reaches consumers built on the published package. The build extracted it into `dist/commons-front-core.css`, which no chunk imports and `exports` does not expose, so block handle, slash menu and toolbar had no layout outside a source alias. The editor now puts it first in `head` itself; nothing to import.
|
|
8
14
|
- `Toast`: below `md`, the region keeps above the foot of the open dialog when that dialog reaches the bottom edge: MUI's `DialogActions` (`AbyssModal`, a full-screen `Dialog`) and the actions of a `Modal` shown as a sheet. The region moves only when it would reach that foot from where it rests (safe area and cookie banner included): a full-screen dialog with short content has its foot high up, and the toast stays in its corner rather than covering the fields. The cookie banner's `--abyss-toast-clearance` and modal clearance are untouched.
|
|
9
15
|
- `LineChart`: an unfilled chart leaves 8 % of its span above and below its values, without crossing zero, so its ends no longer hug the frame. Filled and stacked charts are unchanged.
|
|
10
16
|
- `LineChart`: a narrow chart keeps labels under its x axis. When the nice ticks leave fewer than two labels inside the margins, the axis is labeled at its two ends, or at one point when two cannot stand side by side; the reserved band under the plot used to stay empty (24 h on a phone).
|
|
@@ -28,6 +28,19 @@ test("Crepe's stylesheet is in the page, before the styles of the theme, and hol
|
|
|
28
28
|
};
|
|
29
29
|
});
|
|
30
30
|
expect(sheet).toEqual({ beforeTheme: true, holdsRules: true });
|
|
31
|
+
// KaTeX comes apart, once the editor is mounted.
|
|
32
|
+
await expect
|
|
33
|
+
.poll(() =>
|
|
34
|
+
page.evaluate(
|
|
35
|
+
() =>
|
|
36
|
+
document.head
|
|
37
|
+
.querySelector(
|
|
38
|
+
'style[data-abyss-crepe-styles] + style[data-abyss-crepe-latex-styles]',
|
|
39
|
+
)
|
|
40
|
+
?.textContent?.includes('.katex') ?? false,
|
|
41
|
+
),
|
|
42
|
+
)
|
|
43
|
+
.toBe(true);
|
|
31
44
|
});
|
|
32
45
|
|
|
33
46
|
test('on a phone the frame grows with the placeholder, the only hint of « / » there', async ({
|