@clepit/core 0.6.0-beta.407 → 0.6.0-beta.409
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 +2 -0
- package/dist/core/upload-refusal.d.ts +6 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/tools/block/image/input.d.ts +3 -0
- package/dist/types.d.ts +10 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
10
10
|
### Added
|
|
11
11
|
- `EditorConfig.onClearRequest`: the toolbar's Clear awaits the host and empties the page only when it resolves `true`; a rejection leaves the page and is reported. Absent, Clear empties the page at once, as before. `@clepit/react`'s `ClepitEditor` forwards it through the same latest-props contract as `onChange`.
|
|
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
|
+
- 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
|
+
- `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`.
|
|
13
15
|
|
|
14
16
|
## [0.6.0] - 2026-09-25
|
|
15
17
|
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export { activateBlocks } from './core/renderer/activate';
|
|
|
6
6
|
export { drawBlock } from './core/renderer/draw';
|
|
7
7
|
export { type PublicPage, pageStylesheet, renderBlocks, renderPage } from './core/renderer/page';
|
|
8
8
|
export { type ThemeTokens, tokensToLightDarkBlock } from './core/theme';
|
|
9
|
+
export { UploadRefusal } from './core/upload-refusal';
|
|
9
10
|
export { EMBED_ENGLISH, EMBED_TOOL_NAMES, embedLabel } from './tools/block/embed/output';
|
|
10
11
|
export { EMBED_WIRE_KEYS, isEmbedProviderDisabled, resolveEmbed } from './tools/block/embed/providers';
|
|
11
12
|
export type { OpenApiGroup, OpenApiModel, OpenApiOperation, OpenApiServer } from './tools/block/openapi/spec';
|
|
@@ -13,7 +14,7 @@ export { parseOpenApi } from './tools/block/openapi/spec';
|
|
|
13
14
|
export { chipsInHtml, IssueChip, readChipMarkup, refreshChipsInHtml } from './tools/inline/issue';
|
|
14
15
|
export { ISSUE_ENGLISH, ISSUE_TOOL_NAMES, issueLabel, issueToolName } from './tools/inline/issue/labels';
|
|
15
16
|
export { classifyIssueUrl } from './tools/inline/issue/providers';
|
|
16
|
-
export type { ALERT_VARIANTS, AlertData, AlertVariant, AudioData, Block, BlockClassNames, BlockMargins, BlockStyles, BlockTune, CodeData, CodeVariant, ControlLabel, CSSProperties, CSSValue, DelimiterData, DelimiterVariant, DialogLabel, EditorAPI, EditorClassNames, EditorConfig, EditorData, EditorStyles, EmbedAction, EmbedData, EmbedFile, EmbedGist, EmbedGistFile, EmbedLabel, EmbedProvider, EmbedReason, EmbedResolution, GlanceData, GlanceRow, HeaderData, HeaderLevel, ImageData, InlineRewriteAction, InlineToolType as InlineTool, InputClassNames, InputConfig, InputStyles, IssueAction, IssueCards, IssueCategory, IssueChipParts, IssueLabel, IssueReason, IssueSnapshot, IssuesData, IssueTarget, IssueTool, ListData, ListType, OpenApiData, OpenApiFilter, OutputComponent, OutputConfig, ParagraphData, PasteEmbeds, QuoteData, RendererConfig, TableData, ToolType as BlockType, UploadFunction, VideoData, } from './types';
|
|
17
|
+
export type { ALERT_VARIANTS, AlertData, AlertVariant, AudioData, Block, BlockClassNames, BlockMargins, BlockStyles, BlockTune, CodeData, CodeVariant, ControlLabel, CSSProperties, CSSValue, DelimiterData, DelimiterVariant, DialogLabel, EditorAPI, EditorClassNames, EditorConfig, EditorData, EditorStyles, EmbedAction, EmbedData, EmbedFile, EmbedGist, EmbedGistFile, EmbedLabel, EmbedProvider, EmbedReason, EmbedResolution, GlanceData, GlanceRow, HeaderData, HeaderLevel, ImageData, InlineRewriteAction, InlineToolType as InlineTool, InputClassNames, InputConfig, InputStyles, IssueAction, IssueCards, IssueCategory, IssueChipParts, IssueLabel, IssueReason, IssueSnapshot, IssuesData, IssueTarget, IssueTool, ListData, ListType, OpenApiData, OpenApiFilter, OutputComponent, OutputConfig, ParagraphData, PasteEmbeds, QuoteData, RendererConfig, TableData, ToolType as BlockType, UploadFunction, UploadNotice, VideoData, } from './types';
|
|
17
18
|
export { BLOCK_TOOLS, CONTROL_LABELS, DIALOG_LABELS, EMBED_LABELS, INLINE_REWRITE_ACTIONS, INLINE_TOOLS, ISSUE_LABELS, ISSUE_TOOLS } from './types';
|
|
18
19
|
export { sanitizeHtmlWithoutDom } from './utils/sanitize-html-nodom';
|
|
19
20
|
//# sourceMappingURL=index.d.ts.map
|