@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.
@@ -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 {};
@@ -3,7 +3,7 @@
3
3
  "version": "2.10.5",
4
4
  "delivery": "bundled-patched-esm",
5
5
  "patchManifestSha256": "14f10159b60d48ac7a0686f58faf7a30e99898dc267b3c032cf2bdd6052dc52b",
6
- "bundleSha256": "3ad600fa07059f2187659dd88ed35bf3bd197834f2b4d1b7277aebc560fd07f0",
6
+ "bundleSha256": "d0bd784a7fa38aa20e38f78621c19dc6055ce1cda61dd2f69127c6774fa13150",
7
7
  "sourceHashes": {
8
8
  "shared/useBodyScrollLock.js": "657592f283cb6fd25454abd284a0024af21936cb56e05b762ff0d22b6a979d32",
9
9
  "DismissableLayer/DismissableLayer.js": "da05ca544d9822a8e2b71057e78c0e1ef59423aa3893534338fb58e1ecbd1a8d",