@synopackageland/ui 0.17.8 → 0.17.10
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 +17 -0
- package/README.md +51 -17
- package/dist/components/composite/comment-item/CommentItem.vue.d.ts +5 -1
- package/dist/components/composite/copy-button/CopyButton.vue.d.ts +2 -2
- package/dist/components/composite/file-picker/FilePicker.vue.d.ts +5 -2
- package/dist/components/composite/file-thumbs/FileThumbs.vue.d.ts +24 -0
- package/dist/components/composite/image-lightbox/ImageLightbox.vue.d.ts +19 -0
- package/dist/components/composite/mention-list/MentionList.vue.d.ts +31 -0
- package/dist/components/composite/rich-text-view/RichTextBlocks.vue.d.ts +14 -0
- package/dist/components/composite/rich-text-view/RichTextImage.vue.d.ts +12 -0
- package/dist/components/composite/rich-text-view/RichTextInline.vue.d.ts +23 -0
- package/dist/components/composite/rich-text-view/RichTextView.vue.d.ts +28 -0
- package/dist/components/composite/upload-queue/UploadQueue.vue.d.ts +36 -0
- package/dist/components/composite/wizard/WizardStep.vue.d.ts +1 -1
- package/dist/components/rich-text-editor/RichTextEditor.vue.d.ts +83 -0
- package/dist/components/rich-text-editor/extensions.d.ts +30 -0
- package/dist/components/rich-text-editor/markdown.d.ts +22 -0
- package/dist/i18n/filePicker.d.ts +3 -0
- package/dist/i18n/text.d.ts +48 -0
- package/dist/index.d.ts +15 -4
- package/dist/index.js +11635 -10397
- package/dist/json/catalog.d.ts +2 -2
- package/dist/json/registry.d.ts +34 -34
- package/dist/json-preview/preview.js +3436 -3004
- package/dist/lib/files.d.ts +28 -0
- package/dist/lib/mentions.d.ts +0 -10
- package/dist/lib/richText.d.ts +66 -0
- package/dist/lib/uploadQueue.d.ts +39 -0
- package/dist/reka-runtime.json +1 -1
- package/dist/rich-text.d.ts +3 -0
- package/dist/rich-text.js +1075 -0
- 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 +11 -2
- package/package.json +14 -1
- package/dist/components/composite/comment-item/CommentInlineParts.vue.d.ts +0 -7
- package/dist/components/composite/mention-textarea/MentionTextarea.vue.d.ts +0 -52
- package/dist/lib/commentMarkdown.d.ts +0 -34
- /package/dist/components/composite/{mention-textarea → comment-item}/PersonInitials.vue.d.ts +0 -0
package/docs/theme-hooks.md
CHANGED
|
@@ -103,8 +103,17 @@ here stay implementation details and can change in any release.
|
|
|
103
103
|
| `data-ui-tab-bar-item`, `-more`, `-label`, `-badge` | `AppTabBar` parts (an item's value is its key) | key / present |
|
|
104
104
|
| `--ui-tab-bar-height`, `--ui-tab-bar-bg`, `--ui-tab-bar-border` | `AppTabBar` height (56px), fill and top border | CSS tokens |
|
|
105
105
|
| `data-ui-completion-toggle` | `CompletionToggle` (`data-state` `idle` / `done`, `data-error`) | present |
|
|
106
|
-
| `data-ui-mention-
|
|
107
|
-
| `data-ui-comment`, `-author`, `-time`, `-edited`, `-body`, `-
|
|
106
|
+
| `data-ui-mention-list`, `data-ui-mention-option`, `data-ui-mention-empty` | `MentionList` parts (an option's value is the person's id) | id / present |
|
|
107
|
+
| `data-ui-comment`, `-author`, `-time`, `-edited`, `-body`, `-actions` | `CommentItem` parts (`data-deleted`, `data-highlighted`); the body is a `RichTextView` | present |
|
|
108
|
+
| `data-ui-rich-text-view` | `RichTextView` | present |
|
|
109
|
+
| `data-ui-rich-paragraph`, `-heading`, `-list`, `-quote`, `-code-block`, `-code`, `-link` | `RichTextView` blocks and inline parts | present |
|
|
110
|
+
| `data-ui-rich-mention`, `data-ui-rich-image` | a mention (`data-inactive`) and an image (`data-state`) in a `RichTextView` | id |
|
|
111
|
+
| `data-ui-file-thumbs`, `data-ui-file-thumb`, `-thumb-remove`, `-thumbs-more` | `FileThumbs` parts | present |
|
|
112
|
+
| `data-ui-lightbox`, `-overlay`, `-name`, `-count`, `-download`, `-close`, `-stage`, `-image`, `-file`, `-processing`, `-previous`, `-next` | `ImageLightbox` parts | present |
|
|
113
|
+
| `data-ui-upload-queue`, `-summary`, `-list`, `-task`, `-status`, `-retry`, `-cancel`, `-retry-all`, `-cancel-all`, `-fold`, `-close` | `UploadQueue` parts (a task has `data-status`) | present |
|
|
114
|
+
| `data-ui-rich-editor` | `RichTextEditor` (`data-variant` `compact` / `full`, `data-over` past `maxlength`) | present |
|
|
115
|
+
| `data-ui-rich-editor-content`, `data-ui-rich-toolbar`, `-more`, `-bubble`, `-format-row`, `-format-toggle`, `-link-row`, `-actions`, `-send`, `-count`, `-notes` | `RichTextEditor` parts | present |
|
|
116
|
+
| `data-ui-rich-tool`, `data-ui-rich-attachment`, `data-ui-rich-editor-image` | an editor format button (its key), an image under a compact box (its file id) and an image in a full one (`data-state`) | key / id / present |
|
|
108
117
|
| `data-tone` | `Callout` | `info`, `success`, `warning`, `danger` |
|
|
109
118
|
| `data-variant` | `Callout` | `soft`, `inline` |
|
|
110
119
|
| `data-fill` | `Callout` | present when it spans its container |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synopackageland/ui",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.10",
|
|
4
4
|
"description": "Shared Vue 3 UI component library with a DSM 7 inspired application theme",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -40,6 +40,10 @@
|
|
|
40
40
|
"types": "./dist/json.d.ts",
|
|
41
41
|
"import": "./dist/json.js"
|
|
42
42
|
},
|
|
43
|
+
"./rich-text": {
|
|
44
|
+
"types": "./dist/rich-text.d.ts",
|
|
45
|
+
"import": "./dist/rich-text.js"
|
|
46
|
+
},
|
|
43
47
|
"./json-catalog.schema.json": "./dist/json-catalog.schema.json",
|
|
44
48
|
"./json-ai-prompt.md": "./dist/json-ai-prompt.md",
|
|
45
49
|
"./theme.css": "./dist/theme.css",
|
|
@@ -52,10 +56,19 @@
|
|
|
52
56
|
"vue": "^3.5.0"
|
|
53
57
|
},
|
|
54
58
|
"dependencies": {
|
|
59
|
+
"@floating-ui/dom": "1.8.0",
|
|
55
60
|
"@internationalized/date": "3.12.4",
|
|
56
61
|
"@json-render/core": "0.21.0",
|
|
57
62
|
"@json-render/vue": "0.21.0",
|
|
58
63
|
"@lucide/vue": "1.48.0",
|
|
64
|
+
"@tiptap/core": "3.32.1",
|
|
65
|
+
"@tiptap/extension-bubble-menu": "3.32.1",
|
|
66
|
+
"@tiptap/extension-mention": "3.32.1",
|
|
67
|
+
"@tiptap/extensions": "3.32.1",
|
|
68
|
+
"@tiptap/pm": "3.32.1",
|
|
69
|
+
"@tiptap/starter-kit": "3.32.1",
|
|
70
|
+
"@tiptap/suggestion": "3.32.1",
|
|
71
|
+
"@tiptap/vue-3": "3.32.1",
|
|
59
72
|
"zod": "^4.6.5"
|
|
60
73
|
},
|
|
61
74
|
"engines": {
|
|
@@ -1,7 +0,0 @@
|
|
|
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;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { MentionCandidate } from '../../../lib/mentions';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
modelValue?: string;
|
|
4
|
-
/** The people mentioned so far, each still written as `@Label` in the text. */
|
|
5
|
-
mentions?: MentionCandidate[];
|
|
6
|
-
/** People to offer for the current query. */
|
|
7
|
-
candidates?: MentionCandidate[];
|
|
8
|
-
/** Narrows `candidates` by the query here; turn off when the server already did. */
|
|
9
|
-
filter?: boolean;
|
|
10
|
-
/** Shows "Loading…" in the list while the caller fetches. */
|
|
11
|
-
loading?: boolean;
|
|
12
|
-
/** Characters the stored body may hold; the count shows from 90% and over. */
|
|
13
|
-
maxlength?: number;
|
|
14
|
-
/** Where the list opens; `top` suits a box pinned to the bottom of a screen. */
|
|
15
|
-
side?: 'top' | 'bottom';
|
|
16
|
-
placeholder?: string;
|
|
17
|
-
/** Visible lines before it grows; it grows with its text to about eight lines where the browser supports it. */
|
|
18
|
-
rows?: number;
|
|
19
|
-
disabled?: boolean;
|
|
20
|
-
invalid?: boolean;
|
|
21
|
-
id?: string;
|
|
22
|
-
ariaLabel?: string;
|
|
23
|
-
};
|
|
24
|
-
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {
|
|
25
|
-
focus: () => void | undefined;
|
|
26
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
27
|
-
search: (query: string) => any;
|
|
28
|
-
select: (person: MentionCandidate) => any;
|
|
29
|
-
"update:modelValue": (text: string) => any;
|
|
30
|
-
"update:mentions": (mentions: MentionCandidate[]) => any;
|
|
31
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
32
|
-
onSearch?: ((query: string) => any) | undefined;
|
|
33
|
-
onSelect?: ((person: MentionCandidate) => any) | undefined;
|
|
34
|
-
"onUpdate:modelValue"?: ((text: string) => any) | undefined;
|
|
35
|
-
"onUpdate:mentions"?: ((mentions: MentionCandidate[]) => any) | undefined;
|
|
36
|
-
}>, {
|
|
37
|
-
filter: boolean;
|
|
38
|
-
loading: boolean;
|
|
39
|
-
disabled: boolean;
|
|
40
|
-
id: string;
|
|
41
|
-
modelValue: string;
|
|
42
|
-
placeholder: string;
|
|
43
|
-
invalid: boolean;
|
|
44
|
-
ariaLabel: string;
|
|
45
|
-
rows: number;
|
|
46
|
-
side: "top" | "bottom";
|
|
47
|
-
mentions: MentionCandidate[];
|
|
48
|
-
candidates: MentionCandidate[];
|
|
49
|
-
maxlength: number;
|
|
50
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
51
|
-
declare const _default: typeof __VLS_export;
|
|
52
|
-
export default _default;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { MentionCandidate } from './mentions';
|
|
2
|
-
type Marks = {
|
|
3
|
-
strong?: true;
|
|
4
|
-
em?: true;
|
|
5
|
-
};
|
|
6
|
-
export type CommentInline = ({
|
|
7
|
-
type: 'text';
|
|
8
|
-
text: string;
|
|
9
|
-
} & Marks) | ({
|
|
10
|
-
type: 'link';
|
|
11
|
-
text: string;
|
|
12
|
-
href: string;
|
|
13
|
-
} & Marks) | ({
|
|
14
|
-
type: 'mention';
|
|
15
|
-
id: string;
|
|
16
|
-
label: string;
|
|
17
|
-
inactive: boolean;
|
|
18
|
-
known: boolean;
|
|
19
|
-
} & Marks) | {
|
|
20
|
-
type: 'code';
|
|
21
|
-
text: string;
|
|
22
|
-
};
|
|
23
|
-
export type CommentBlock = {
|
|
24
|
-
type: 'paragraph';
|
|
25
|
-
parts: CommentInline[];
|
|
26
|
-
} | {
|
|
27
|
-
type: 'list';
|
|
28
|
-
items: CommentInline[][];
|
|
29
|
-
};
|
|
30
|
-
/** A comment body → paragraphs (text keeps its line breaks) and lists of inline parts. */
|
|
31
|
-
export declare function commentMarkdownParts(body: string, people?: readonly MentionCandidate[]): CommentBlock[];
|
|
32
|
-
/** A comment body as plain text without the Markdown, for a notification or a preview: mentions as `@Label`, links as their text, list items as `• item`. */
|
|
33
|
-
export declare function commentMarkdownText(body: string, people?: readonly MentionCandidate[]): string;
|
|
34
|
-
export {};
|
/package/dist/components/composite/{mention-textarea → comment-item}/PersonInitials.vue.d.ts
RENAMED
|
File without changes
|