@synopackageland/ui 0.17.6 → 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 +28 -0
- package/README.md +53 -1
- package/dist/CollaborationDemo.vue.d.ts +6 -0
- package/dist/components/app/app-layout/AppLayout.vue.d.ts +2 -0
- package/dist/components/app/app-tab-bar/AppTabBar.vue.d.ts +37 -0
- package/dist/components/composite/comment-item/CommentInlineParts.vue.d.ts +7 -0
- package/dist/components/composite/comment-item/CommentItem.vue.d.ts +46 -0
- package/dist/components/composite/completion-toggle/CompletionToggle.vue.d.ts +26 -0
- package/dist/components/composite/form/Form.vue.d.ts +2 -0
- package/dist/components/composite/form/FormGroup.vue.d.ts +22 -0
- package/dist/components/composite/form-note/FormNote.vue.d.ts +19 -0
- package/dist/components/composite/info-box/InfoBox.vue.d.ts +17 -0
- package/dist/components/composite/mention-textarea/MentionTextarea.vue.d.ts +52 -0
- package/dist/components/composite/mention-textarea/PersonInitials.vue.d.ts +13 -0
- package/dist/composables/formGroup.d.ts +12 -0
- package/dist/composables/softKeyboard.d.ts +6 -0
- package/dist/i18n/text.d.ts +11 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +12104 -11177
- package/dist/json-preview/preview.js +6826 -6688
- package/dist/lib/adaptiveLayout.d.ts +12 -0
- package/dist/lib/commentMarkdown.d.ts +34 -0
- package/dist/lib/mentions.d.ts +38 -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/layout-rules.md +3 -0
- package/docs/theme-hooks.md +10 -0
- package/package.json +1 -1
|
@@ -17,3 +17,15 @@ export declare const APP_SIDEBAR_COLLAPSED_KEY: InjectionKey<ComputedRef<boolean
|
|
|
17
17
|
export type AppNavigation = 'sidebar' | 'top';
|
|
18
18
|
/** True while AppLayout lays its navigation out as a top bar; AppSidebar then lists its items in one row. */
|
|
19
19
|
export declare const APP_TOP_NAVIGATION_KEY: InjectionKey<ComputedRef<boolean>>;
|
|
20
|
+
/** AppLayout's phone navigation drawer, for AppTabBar's More tab. */
|
|
21
|
+
export type AppNavigationDrawer = {
|
|
22
|
+
/** False when the layout has no `sidebar` slot, so there is no drawer to open. */
|
|
23
|
+
available: ComputedRef<boolean>;
|
|
24
|
+
open: ComputedRef<boolean>;
|
|
25
|
+
/** The drawer's element id, for `aria-controls`. */
|
|
26
|
+
id: string;
|
|
27
|
+
show: () => void;
|
|
28
|
+
/** A More tab is on screen: the layout drops its own menu button until the returned function is called. */
|
|
29
|
+
claim: () => () => void;
|
|
30
|
+
};
|
|
31
|
+
export declare const APP_NAVIGATION_DRAWER_KEY: InjectionKey<AppNavigationDrawer>;
|
|
@@ -0,0 +1,34 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export type MentionCandidate = {
|
|
2
|
+
/** Stable key stored in the token, such as an account name. */
|
|
3
|
+
id: string;
|
|
4
|
+
/** Shown after the `@`, such as a display name. */
|
|
5
|
+
label: string;
|
|
6
|
+
/** A second line in the list, such as a department. */
|
|
7
|
+
description?: string;
|
|
8
|
+
/** Shown greyed in a comment, for an account that is disabled. */
|
|
9
|
+
inactive?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type MentionPart = {
|
|
12
|
+
type: 'text';
|
|
13
|
+
text: string;
|
|
14
|
+
} | {
|
|
15
|
+
type: 'link';
|
|
16
|
+
text: string;
|
|
17
|
+
href: string;
|
|
18
|
+
} | {
|
|
19
|
+
type: 'mention';
|
|
20
|
+
id: string;
|
|
21
|
+
label: string;
|
|
22
|
+
inactive: boolean;
|
|
23
|
+
known: boolean;
|
|
24
|
+
};
|
|
25
|
+
/** Text with `@Label` for each chosen mention → a body with `@[id]` tokens and the ids, in order, once each. */
|
|
26
|
+
export declare function mentionTokens(text: string, mentions: readonly MentionCandidate[]): {
|
|
27
|
+
body: string;
|
|
28
|
+
ids: string[];
|
|
29
|
+
};
|
|
30
|
+
/** A body with `@[id]` tokens → the `@Label` text to edit, and the people it mentions. An unknown id shows as itself. */
|
|
31
|
+
export declare function mentionText(body: string, people: readonly MentionCandidate[]): {
|
|
32
|
+
text: string;
|
|
33
|
+
mentions: MentionCandidate[];
|
|
34
|
+
};
|
|
35
|
+
/** Splits a body into plain text, `@[id]` mentions and http(s) links, for display. */
|
|
36
|
+
export declare function mentionParts(body: string, people?: readonly MentionCandidate[]): MentionPart[];
|
|
37
|
+
/** Length in characters (code points), as a server counting runes sees it. */
|
|
38
|
+
export declare function textLength(text: string): number;
|
package/dist/reka-runtime.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"version": "2.10.5",
|
|
4
4
|
"delivery": "bundled-patched-esm",
|
|
5
5
|
"patchManifestSha256": "14f10159b60d48ac7a0686f58faf7a30e99898dc267b3c032cf2bdd6052dc52b",
|
|
6
|
-
"bundleSha256": "
|
|
6
|
+
"bundleSha256": "4973424fb2bba5d59299a41e07fa9a6af40477be48e7ed3351e8bd0ea1109a3e",
|
|
7
7
|
"sourceHashes": {
|
|
8
8
|
"shared/useBodyScrollLock.js": "657592f283cb6fd25454abd284a0024af21936cb56e05b762ff0d22b6a979d32",
|
|
9
9
|
"DismissableLayer/DismissableLayer.js": "da05ca544d9822a8e2b71057e78c0e1ef59423aa3893534338fb58e1ecbd1a8d",
|