@clepit/core 0.6.0-beta.409 → 0.6.0-beta.412
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 +1 -0
- package/dist/core/renderer/page.d.ts +10 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
12
12
|
- `EditorConfig.dialogLabels` and `DIALOG_LABELS`: the link, tooltip and status dialogs draw the host's words (titles, field labels, placeholders, the status variants, Cancel and Apply), in English when absent. Each dialog element carries a test id (`link-dialog-title`, `status-dialog-variant-success` and the rest).
|
|
13
13
|
- Six `blockToolbarLabels` keys for the image block's own words: `imageDropTitle`, `imageDropAction`, `imageDropFormats`, `imageUploading`, `imageUploadFailed` and `imageInvalidType`, in English when absent. The drop area's delete button takes the `delete` label as its tooltip and its `aria-label`. Each state carries a test id (`image-drop`, `image-drop-title`, `image-uploading`, `image-upload-failed`, `image-invalid-type` and the rest).
|
|
14
14
|
- `UploadRefusal` and `UploadNotice`: an image uploader that rejects with `new UploadRefusal({ title, body, action, remove })` turns the block into a framed notice in the host's words, in place of the drop area: the title, the reason, the action as a link opening in a new tab (http and https only; left out when absent) and a Remove that deletes the block. Any other rejection still shows the failed-upload line. Test ids `image-refusal`, `image-refusal-title`, `image-refusal-body`, `image-refusal-action` and `image-refusal-remove`.
|
|
15
|
+
- `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.
|
|
15
16
|
|
|
16
17
|
## [0.6.0] - 2026-09-25
|
|
17
18
|
|
|
@@ -8,6 +8,16 @@ export type PublicPage = {
|
|
|
8
8
|
locale?: string;
|
|
9
9
|
description?: string;
|
|
10
10
|
canonicalUrl?: string;
|
|
11
|
+
alternates?: PublicPageAlternate[];
|
|
12
|
+
notice?: PublicPageNotice;
|
|
13
|
+
};
|
|
14
|
+
export type PublicPageAlternate = {
|
|
15
|
+
href: string;
|
|
16
|
+
hreflang: string;
|
|
17
|
+
};
|
|
18
|
+
export type PublicPageNotice = {
|
|
19
|
+
body: string;
|
|
20
|
+
title: string;
|
|
11
21
|
};
|
|
12
22
|
/**
|
|
13
23
|
* Every stylesheet a drawn document needs, as text.
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { StyleManager } from './core/managers/style';
|
|
|
4
4
|
export { Renderer } from './core/renderer';
|
|
5
5
|
export { activateBlocks } from './core/renderer/activate';
|
|
6
6
|
export { drawBlock } from './core/renderer/draw';
|
|
7
|
-
export { type PublicPage, pageStylesheet, renderBlocks, renderPage } from './core/renderer/page';
|
|
7
|
+
export { type PublicPage, type PublicPageAlternate, type PublicPageNotice, pageStylesheet, renderBlocks, renderPage } from './core/renderer/page';
|
|
8
8
|
export { type ThemeTokens, tokensToLightDarkBlock } from './core/theme';
|
|
9
9
|
export { UploadRefusal } from './core/upload-refusal';
|
|
10
10
|
export { EMBED_ENGLISH, EMBED_TOOL_NAMES, embedLabel } from './tools/block/embed/output';
|