@rocket.chat/message-parser 0.31.11 → 0.31.12-dev.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 +53 -0
- package/dist/definitions.d.ts +7 -1
- package/dist/definitions.d.ts.map +1 -1
- package/dist/messageParser.development.js +2 -2
- package/dist/messageParser.mjs +1 -1
- package/dist/messageParser.production.js +1 -1
- package/dist/messageParser.umd.js +1 -1
- package/dist/utils.d.ts +6 -6
- package/dist/utils.d.ts.map +1 -1
- package/package.json +8 -9
- package/LICENSE +0 -21
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
# [0.31.0](https://github.com/RocketChat/Rocket.Chat.Fuselage/compare/v0.30.1...v0.31.0) (2021-12-28)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- New hooks for element size tracking ([#413](https://github.com/RocketChat/Rocket.Chat.Fuselage/issues/413)) ([8ca682c](https://github.com/RocketChat/Rocket.Chat.Fuselage/commit/8ca682c636d2e4813f7d346cb881513382be63cf))
|
|
11
|
+
|
|
12
|
+
# [0.30.0](https://github.com/RocketChat/Rocket.Chat.Fuselage/compare/v0.29.0...v0.30.0) (2021-10-06)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
- **jest:** Adjust jest and ts-jest dependencies ([#547](https://github.com/RocketChat/Rocket.Chat.Fuselage/issues/547)) ([91a4fa1](https://github.com/RocketChat/Rocket.Chat.Fuselage/commit/91a4fa1365394001afe1bd46480bda3bafed5505))
|
|
17
|
+
- **message-parser:** <https://domain.com|Test> ([#546](https://github.com/RocketChat/Rocket.Chat.Fuselage/issues/546)) ([faca16f](https://github.com/RocketChat/Rocket.Chat.Fuselage/commit/faca16febe517e411dd377cae294f888f1199d40))
|
|
18
|
+
- **message-parser:** Fix Url and Escaped Markdown ([#537](https://github.com/RocketChat/Rocket.Chat.Fuselage/issues/537)) ([bc0cbce](https://github.com/RocketChat/Rocket.Chat.Fuselage/commit/bc0cbce69589b9a056d797a03b78d7cd06423aaa))
|
|
19
|
+
|
|
20
|
+
# [0.29.0](https://github.com/RocketChat/Rocket.Chat.Fuselage/compare/v0.28.0...v0.29.0) (2021-08-31)
|
|
21
|
+
|
|
22
|
+
**Note:** Version bump only for package @rocket.chat/message-parser
|
|
23
|
+
|
|
24
|
+
# [0.28.0](https://github.com/RocketChat/Rocket.Chat.Fuselage/compare/v0.27.0...v0.28.0) (2021-07-30)
|
|
25
|
+
|
|
26
|
+
### Features
|
|
27
|
+
|
|
28
|
+
- **onboarding-ui:** Administrator information form and Organization information form ([#489](https://github.com/RocketChat/Rocket.Chat.Fuselage/issues/489)) ([b289f68](https://github.com/RocketChat/Rocket.Chat.Fuselage/commit/b289f68676954b91c792d8d97680314178bf2c60))
|
|
29
|
+
- styled API; monorepo grooming ([#482](https://github.com/RocketChat/Rocket.Chat.Fuselage/issues/482)) ([1b6b70c](https://github.com/RocketChat/Rocket.Chat.Fuselage/commit/1b6b70cf67ec16927b1566adc2350295a8927223))
|
|
30
|
+
|
|
31
|
+
# [0.27.0](https://github.com/RocketChat/Rocket.Chat.Fuselage/compare/v0.26.0...v0.27.0) (2021-06-28)
|
|
32
|
+
|
|
33
|
+
### Bug Fixes
|
|
34
|
+
|
|
35
|
+
- **eslint:** Add missing ESLint rule for TypeScript ([#470](https://github.com/RocketChat/Rocket.Chat.Fuselage/issues/470)) ([cc0d498](https://github.com/RocketChat/Rocket.Chat.Fuselage/commit/cc0d4989bf37f7602d1d58d051824f1dd6c096b3))
|
|
36
|
+
|
|
37
|
+
# [0.26.0](https://github.com/RocketChat/Rocket.Chat.Fuselage/compare/v0.25.0...v0.26.0) (2021-05-28)
|
|
38
|
+
|
|
39
|
+
**Note:** Version bump only for package @rocket.chat/message-parser
|
|
40
|
+
|
|
41
|
+
# [0.25.0](https://github.com/RocketChat/Rocket.Chat.Fuselage/compare/v0.24.0...v0.25.0) (2021-05-19)
|
|
42
|
+
|
|
43
|
+
### Bug Fixes
|
|
44
|
+
|
|
45
|
+
- **fuselage:** fix duplicated values on paginated multi select ([#456](https://github.com/RocketChat/Rocket.Chat.Fuselage/issues/456)) ([4518a4e](https://github.com/RocketChat/Rocket.Chat.Fuselage/commit/4518a4e661cb525d957f6140d59a641a50fc7b20))
|
|
46
|
+
- **message-parser:** Big emoji ([#451](https://github.com/RocketChat/Rocket.Chat.Fuselage/issues/451)) ([6d65343](https://github.com/RocketChat/Rocket.Chat.Fuselage/commit/6d653433d07edabaee821bd25ad07a5878b59a86))
|
|
47
|
+
- **message-parser:** URL issues ([#448](https://github.com/RocketChat/Rocket.Chat.Fuselage/issues/448)) ([8ce6b91](https://github.com/RocketChat/Rocket.Chat.Fuselage/commit/8ce6b9110547b5adf3633e87d6bc655114d4cfb4))
|
|
48
|
+
- message-parser Unordered List definition ([#445](https://github.com/RocketChat/Rocket.Chat.Fuselage/issues/445)) ([6c659b8](https://github.com/RocketChat/Rocket.Chat.Fuselage/commit/6c659b821fd6294eb8033dfe03e42db2dba1ca06))
|
|
49
|
+
|
|
50
|
+
### Features
|
|
51
|
+
|
|
52
|
+
- [@rocket](https://github.com/rocket).chat/message-parser ([#443](https://github.com/RocketChat/Rocket.Chat.Fuselage/issues/443)) ([4722cdf](https://github.com/RocketChat/Rocket.Chat.Fuselage/commit/4722cdff46f5987f335d989be59649c7652bb12a))
|
|
53
|
+
- Peggy loader ([#450](https://github.com/RocketChat/Rocket.Chat.Fuselage/issues/450)) ([0496cad](https://github.com/RocketChat/Rocket.Chat.Fuselage/commit/0496cad457d76f8a4d6a217209e4a55e315e8365))
|
package/dist/definitions.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export declare type UnorderedList = {
|
|
|
13
13
|
export declare type ListItem = {
|
|
14
14
|
type: 'LIST_ITEM';
|
|
15
15
|
value: Inlines[];
|
|
16
|
+
number?: number;
|
|
16
17
|
};
|
|
17
18
|
export declare type Tasks = {
|
|
18
19
|
type: 'TASKS';
|
|
@@ -80,6 +81,10 @@ export declare type Plain = {
|
|
|
80
81
|
type: 'PLAIN_TEXT';
|
|
81
82
|
value: string;
|
|
82
83
|
};
|
|
84
|
+
export declare type LineBreak = {
|
|
85
|
+
type: 'LINE_BREAK';
|
|
86
|
+
value: string;
|
|
87
|
+
};
|
|
83
88
|
export declare type Paragraph = {
|
|
84
89
|
type: 'PARAGRAPH';
|
|
85
90
|
value: Array<Exclude<Inlines, Paragraph>>;
|
|
@@ -129,10 +134,11 @@ export declare type Types = {
|
|
|
129
134
|
ORDERED_LIST: OrderedList;
|
|
130
135
|
LIST_ITEM: ListItem;
|
|
131
136
|
IMAGE: Image;
|
|
137
|
+
LINE_BREAK: LineBreak;
|
|
132
138
|
};
|
|
133
139
|
export declare type ASTNode = BigEmoji | Bold | Paragraph | Plain | Italic | Strike | Code | CodeLine | InlineCode | Heading | Quote | Link | UserMention | ChannelMention | Emoji | Color | Tasks;
|
|
134
140
|
export declare type TypesKeys = keyof Types;
|
|
135
141
|
export declare type Inlines = Bold | Plain | Italic | Strike | InlineCode | Image | Link | UserMention | ChannelMention | Emoji | Color;
|
|
136
|
-
export declare type Blocks = Code | Heading | Quote | ListItem | Tasks | OrderedList | UnorderedList;
|
|
142
|
+
export declare type Blocks = Code | Heading | Quote | ListItem | Tasks | OrderedList | UnorderedList | LineBreak;
|
|
137
143
|
export declare type MarkdownAST = Array<Paragraph | Blocks> | [BigEmoji];
|
|
138
144
|
//# sourceMappingURL=definitions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../src/definitions.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU,GAAG;IACvB,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK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