@synopackageland/ui 0.17.7 → 0.17.8

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.17.8 (2026-10-30)
4
+
5
+ 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.
6
+
7
+ - `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.
8
+ - `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.
9
+ - 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.
10
+
3
11
  ## 0.17.7 (2026-10-29)
4
12
 
5
13
  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
- /** Plain text with `@[id]` mention tokens. */
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';