@synopackageland/ui 0.17.7 → 0.17.9
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 +12 -0
- package/dist/components/composite/comment-item/CommentInlineParts.vue.d.ts +7 -0
- package/dist/components/composite/comment-item/CommentItem.vue.d.ts +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +9616 -9444
- package/dist/lib/commentMarkdown.d.ts +34 -0
- package/dist/reka-runtime.json +1 -1
- package/dist/theme.css +1 -1
- package/dist/themes/dsm7-embedded-theme.css +1 -1
- package/dist/themes/dsm7-embedded.css +1 -1
- package/dist/themes/dsm7.css +1 -1
- package/docs/theme-hooks.md +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.17.9 (2026-10-30)
|
|
4
|
+
|
|
5
|
+
- A `CommentItem` body with many unmatched `*` or `**` no longer slows down: each line is read in one pass, so a 70,000-character comment of unclosed stars takes milliseconds instead of seconds. What the comment shows is unchanged.
|
|
6
|
+
|
|
7
|
+
## 0.17.8 (2026-10-30)
|
|
8
|
+
|
|
9
|
+
One DOM change: the `CommentItem` body (`data-ui-comment-body`) is now a `<div>` holding a `<p>` per paragraph and a `<ul>` per list, instead of one `<p>`. Styles or tests that select `p[data-ui-comment-body]` or expect inline text directly inside it need updating; the attribute stays on the outer element.
|
|
10
|
+
|
|
11
|
+
- `CommentItem` shows a small Markdown subset in a comment body: `**bold**`, `*italic*`, `` `code` `` (`data-ui-comment-code`), `[text](address)` links for http, https and mailto addresses only (any other address stays as typed), `- ` and `* ` list items (`data-ui-comment-list`), and line breaks. `@[id]` mentions and bare http(s) addresses work as before. HTML is not supported: it, and headings, tables, images and other Markdown, stay as typed, and every part is bound as text or an attribute, never as HTML.
|
|
12
|
+
- `MentionTextarea` wraps the selection in bold, italic or a link with Ctrl+B, Ctrl+I and Ctrl+K (Cmd on a Mac); a second press takes the mark off, and the browser can undo it.
|
|
13
|
+
- Add `commentMarkdownParts`, which returns a comment body's paragraphs and lists as data (`CommentBlock`, `CommentInline`), and `commentMarkdownText`, the plain text without the Markdown syntax, for notifications and previews.
|
|
14
|
+
|
|
3
15
|
## 0.17.7 (2026-10-29)
|
|
4
16
|
|
|
5
17
|
Additive only: existing props, defaults and DOM stay as they were, apart from one new attribute on `Fieldset`.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CommentInline } from '../../../lib/commentMarkdown';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
parts: CommentInline[];
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -9,7 +9,7 @@ type __VLS_Props = {
|
|
|
9
9
|
time?: string;
|
|
10
10
|
/** The same time for machines (`<time datetime>`), such as an ISO string. */
|
|
11
11
|
datetime?: string;
|
|
12
|
-
/**
|
|
12
|
+
/** Text with `@[id]` mention tokens and basic Markdown: bold, italic, code, links and `- ` lists. */
|
|
13
13
|
body?: string;
|
|
14
14
|
/** Names for the mention tokens; an unknown id shows as itself. */
|
|
15
15
|
mentions?: MentionCandidate[];
|
package/dist/index.d.ts
CHANGED
|
@@ -135,6 +135,8 @@ export { default as MentionTextarea } from './components/composite/mention-texta
|
|
|
135
135
|
export { default as CommentItem } from './components/composite/comment-item/CommentItem.vue';
|
|
136
136
|
export { mentionParts, mentionText, mentionTokens } from './lib/mentions';
|
|
137
137
|
export type { MentionCandidate, MentionPart } from './lib/mentions';
|
|
138
|
+
export { commentMarkdownParts, commentMarkdownText } from './lib/commentMarkdown';
|
|
139
|
+
export type { CommentBlock, CommentInline } from './lib/commentMarkdown';
|
|
138
140
|
export type { DataTableColumn } from './components/composite/data-table/DataTable.vue';
|
|
139
141
|
export { default as DataGrid } from './components/composite/data-grid/DataGrid.vue';
|
|
140
142
|
export type { DataGridColumn, DataGridColumnWidths, DataGridLabels, ResolvedDataGridLabels, DataGridSort, DataGridGroup, DataGridExpandable, DataGridDraggable, DataGridReorder, DataGridCellUpdate, DataGridAdapter, DataGridCellSlotProps } from './components/composite/data-grid/DataGrid.vue';
|