@webority/mobile-ui 0.111.0 → 0.112.3
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/dist/canvas-kit/kit.js +1248 -1095
- package/dist/canvas-kit/manifest.json +24 -58
- package/dist/canvas-kit/release.json +6 -6
- package/lib/commonjs/components/Markdown/Markdown.js +1 -1
- package/lib/commonjs/components/MessageBubble/MessageBubble.js +1 -1
- package/lib/commonjs/components/NumberInput/NumberInput.js +1 -1
- package/lib/commonjs/components/Screen/Screen.js +1 -1
- package/lib/commonjs/components/SegmentedControl/SegmentedControl.js +1 -1
- package/lib/commonjs/components/Skeleton/Skeleton.js +1 -1
- package/lib/commonjs/components/Skeleton/SkeletonContent.js +1 -1
- package/lib/commonjs/components/Skeleton/SkeletonList.js +1 -1
- package/lib/commonjs/components/SortableList/SortableList.js +1 -1
- package/lib/module/components/Markdown/Markdown.js +1 -1
- package/lib/module/components/MessageBubble/MessageBubble.js +1 -1
- package/lib/module/components/NumberInput/NumberInput.js +1 -1
- package/lib/module/components/Screen/Screen.js +1 -1
- package/lib/module/components/SegmentedControl/SegmentedControl.js +1 -1
- package/lib/module/components/Skeleton/Skeleton.js +1 -1
- package/lib/module/components/Skeleton/SkeletonContent.js +1 -1
- package/lib/module/components/Skeleton/SkeletonList.js +1 -1
- package/lib/module/components/SortableList/SortableList.js +1 -1
- package/lib/typescript/commonjs/components/Markdown/Markdown.d.ts +17 -10
- package/lib/typescript/commonjs/components/NumberInput/NumberInput.d.ts +1 -1
- package/lib/typescript/commonjs/components/RichTextEditor/markdownActions.d.ts +2 -2
- package/lib/typescript/commonjs/components/Skeleton/Skeleton.d.ts +0 -2
- package/lib/typescript/commonjs/components/Skeleton/SkeletonContent.d.ts +1 -3
- package/lib/typescript/commonjs/components/Skeleton/SkeletonList.d.ts +1 -3
- package/lib/typescript/module/components/Markdown/Markdown.d.ts +17 -10
- package/lib/typescript/module/components/NumberInput/NumberInput.d.ts +1 -1
- package/lib/typescript/module/components/RichTextEditor/markdownActions.d.ts +2 -2
- package/lib/typescript/module/components/Skeleton/Skeleton.d.ts +0 -2
- package/lib/typescript/module/components/Skeleton/SkeletonContent.d.ts +1 -3
- package/lib/typescript/module/components/Skeleton/SkeletonList.d.ts +1 -3
- package/package.json +9 -6
- package/lib/commonjs/components/Markdown/parse.js +0 -1
- package/lib/module/components/Markdown/parse.js +0 -1
- package/lib/typescript/commonjs/components/Markdown/parse.d.ts +0 -63
- package/lib/typescript/module/components/Markdown/parse.d.ts +0 -63
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A deliberately small CommonMark subset, parsed without a dependency.
|
|
3
|
-
*
|
|
4
|
-
* The scope is what our own content actually contains — release notes, help
|
|
5
|
-
* text, descriptions written by people in a web editor — not a spec-complete
|
|
6
|
-
* renderer. Nested lists, tables, footnotes, HTML blocks and reference links
|
|
7
|
-
* are out of scope on purpose: supporting them means a parser nobody here can
|
|
8
|
-
* maintain, and content that needs them is a sign it should not be markdown.
|
|
9
|
-
*
|
|
10
|
-
* Kept separate from the component so the grammar can be tested as data, with
|
|
11
|
-
* no rendering involved.
|
|
12
|
-
*/
|
|
13
|
-
export type InlineNode = {
|
|
14
|
-
type: "text";
|
|
15
|
-
value: string;
|
|
16
|
-
} | {
|
|
17
|
-
type: "strong";
|
|
18
|
-
children: InlineNode[];
|
|
19
|
-
} | {
|
|
20
|
-
type: "em";
|
|
21
|
-
children: InlineNode[];
|
|
22
|
-
} | {
|
|
23
|
-
type: "code";
|
|
24
|
-
value: string;
|
|
25
|
-
} | {
|
|
26
|
-
type: "strike";
|
|
27
|
-
children: InlineNode[];
|
|
28
|
-
} | {
|
|
29
|
-
type: "link";
|
|
30
|
-
href: string;
|
|
31
|
-
children: InlineNode[];
|
|
32
|
-
};
|
|
33
|
-
export type BlockNode = {
|
|
34
|
-
type: "heading";
|
|
35
|
-
level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
36
|
-
children: InlineNode[];
|
|
37
|
-
} | {
|
|
38
|
-
type: "paragraph";
|
|
39
|
-
children: InlineNode[];
|
|
40
|
-
} | {
|
|
41
|
-
type: "listItem";
|
|
42
|
-
ordered: boolean;
|
|
43
|
-
index: number;
|
|
44
|
-
depth: number;
|
|
45
|
-
children: InlineNode[];
|
|
46
|
-
} | {
|
|
47
|
-
type: "quote";
|
|
48
|
-
children: InlineNode[];
|
|
49
|
-
} | {
|
|
50
|
-
type: "codeBlock";
|
|
51
|
-
value: string;
|
|
52
|
-
language?: string;
|
|
53
|
-
} | {
|
|
54
|
-
type: "rule";
|
|
55
|
-
};
|
|
56
|
-
export declare const parseInline: (input: string) => InlineNode[];
|
|
57
|
-
export declare const parseMarkdown: (source: string) => BlockNode[];
|
|
58
|
-
/**
|
|
59
|
-
* The text a screen reader should speak for a markdown source: the words without
|
|
60
|
-
* the emphasis, code, link and heading marks, one block after another.
|
|
61
|
-
*/
|
|
62
|
-
export declare const markdownToPlainText: (source: string) => string;
|
|
63
|
-
//# sourceMappingURL=parse.d.ts.map
|