@clepit/core 0.6.0-beta.422 → 0.6.0-beta.426
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 +4 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/tools/block/code/css.d.ts +1 -1
- package/dist/tools/block/collection/css.d.ts +3 -3
- package/dist/tools/block/doc-card/css.d.ts +3 -3
- package/dist/tools/block/embed/css.d.ts +3 -3
- package/dist/tools/block/file/css.d.ts +3 -3
- package/dist/tools/block/glance/css.d.ts +1 -1
- package/dist/tools/block/openapi/css.d.ts +2 -2
- package/dist/tools/block/quote/css.d.ts +1 -1
- package/dist/tools/block/sketch/css.d.ts +3 -3
- package/dist/tools/block/table/css.d.ts +1 -1
- package/dist/tools/block/typeset/css.d.ts +3 -3
- package/dist/tools/block/typeset/latex/model.d.ts +6 -9
- package/dist/tools/block/typeset/latex/parse.d.ts +7 -0
- package/dist/tools/block/typeset/latex/symbols.d.ts +2 -2
- package/dist/tools/block/typeset/mermaid/model.d.ts +8 -12
- package/dist/tools/block/updates/css.d.ts +3 -3
- package/dist/types.d.ts +3 -3
- package/dist/utils/platform.d.ts +0 -30
- package/dist/utils/url.d.ts +0 -33
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -16,12 +16,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
16
16
|
- `PublicPage.alternates` and `PublicPage.notice`: `renderPage` writes one `<link rel="alternate">` per hreflang and address pair, and draws the notice (a title and a line, test id `public-page-notice`) below the page title with its own styles. A page passing neither renders exactly as before.
|
|
17
17
|
- `pageMetadata`, `renderNotice` and `noticeStylesheet`: a host that frames a public page in its own chrome writes the page's description, canonical, language and link-preview tags and draws its language notice exactly as `renderPage` does, which now draws both through them.
|
|
18
18
|
- `PublicPage.scheme`: `renderPage` draws the page in `light` or `dark` only, by setting `data-clepit-theme` on `<body>` (the attribute the theme's tokens resolve under) and a `color-scheme` meta so the browser's own canvas and text follow it. A page passing no scheme renders exactly as before.
|
|
19
|
+
- Eight `blockToolbarLabels` keys for the table block's row and column menus: `tableInsertAbove`, `tableInsertBelow`, `tableInsertLeft`, `tableInsertRight`, `tableMoveLeft`, `tableMoveRight`, `tableRowActions` and `tableColumnActions`, in English when absent. The menus' move up, move down and delete items take the existing `moveUp`, `moveDown` and `delete` labels, the two menu buttons take the last two keys as their `aria-label`, and each item carries a test id (`table-row-move-up`, `table-column-delete` and the rest).
|
|
20
|
+
- Test ids on the block menu's variant pickers, which had none: `heading-h1` to `heading-h6`, `list-unordered` and `list-ordered`, `alert-info` and the other alert variants, the `glance-*` variants, and `delimiter-line` and `delimiter-stars`. A host's tests can select these items without depending on their words.
|
|
19
21
|
- `ClepitError` and `ClepitErrorCode`: the package names its own failures by code. `Renderer.render` given a container id that matches no element throws a `ClepitError` with the code `CONTAINER_MISSING`, where it threw a plain `Error`; the message is unchanged, and it is still an `Error`.
|
|
20
22
|
|
|
21
23
|
### Fixed
|
|
24
|
+
- The table's row and column menus drew their items in English only, and chose each item's icon, and the delete item's warning style, by matching that English, so translated words would have lost both. The words now come from the host, and each item states its own icon and style.
|
|
22
25
|
- An editor given `locale` kept only the language being edited: an edit replaced a field's map of languages with one string. The editor now keeps each block's stored data and writes an edit back into it with the rule both twins share, on every way a block leaves it (`onChange`, `data.extract()`, `blocks.get` and `blocks.getAll`), while `blocks.insert`, `blocks.update` and `data.set` take stored data and show it in the language being edited. A converted block keeps the languages of the fields both types share.
|
|
23
26
|
- An editor given no `locale` drew a translated field as "[object Object]". It now shows a translated document in the first of its languages, and keeps the others through an edit.
|
|
24
27
|
- The inline toolbar no longer leaves a hidden copy of the rewrite menu behind each time a new selection repaints it, so each rewrite action exists once in the page.
|
|
28
|
+
- The editor drew no glance or updates block. It offered both in its block menu, but choosing either inserted nothing, and a page holding one opened without it. Both now draw in the editor like every other block.
|
|
25
29
|
- A rewrite that the host's `onInlineRewrite` rejects is reported with `console.error`, and the passage stays as it was; it vanished silently before. A failure inside the inline or block toolbar now reaches the page's error reporting instead of being caught and dropped.
|
|
26
30
|
|
|
27
31
|
### Security
|