@atlaskit/editor-slack-transformer 3.8.0 → 4.1.0
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 +21 -0
- package/dist/cjs/serializer.js +1 -1
- package/dist/es2019/serializer.js +1 -1
- package/dist/esm/serializer.js +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types-ts4.5/index.d.ts +2 -2
- package/package.json +12 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/editor-slack-transformer
|
|
2
2
|
|
|
3
|
+
## 4.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`72f94befc61f2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/72f94befc61f2) -
|
|
8
|
+
replace method-style signatures with function-style signatures
|
|
9
|
+
|
|
10
|
+
## 4.0.0
|
|
11
|
+
|
|
12
|
+
### Major Changes
|
|
13
|
+
|
|
14
|
+
- [#117363](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117363)
|
|
15
|
+
[`10a0f7f6c2027`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/10a0f7f6c2027) -
|
|
16
|
+
This package's `peerDependencies` have been adjusted for `react` and/or `react-dom` to reflect the
|
|
17
|
+
status of only supporting React 18 going forward. No explicit breaking change to React support has
|
|
18
|
+
been made in this release, but this is to signify going forward, breaking changes for React 16 or
|
|
19
|
+
React 17 may come via non-major semver releases.
|
|
20
|
+
|
|
21
|
+
Please refer this community post for more details:
|
|
22
|
+
https://community.developer.atlassian.com/t/rfc-78-dropping-support-for-react-16-and-rendering-in-a-react-18-concurrent-root-in-jira-and-confluence/87026
|
|
23
|
+
|
|
3
24
|
## 3.8.0
|
|
4
25
|
|
|
5
26
|
### Minor Changes
|
package/dist/cjs/serializer.js
CHANGED
|
@@ -21,7 +21,7 @@ var MarkdownSerializerState = exports.MarkdownSerializerState = /*#__PURE__*/fun
|
|
|
21
21
|
function MarkdownSerializerState(nodes, marks) {
|
|
22
22
|
var _this;
|
|
23
23
|
(0, _classCallCheck2.default)(this, MarkdownSerializerState);
|
|
24
|
-
// @ts-ignore-next-line
|
|
24
|
+
// @ts-ignore -next-line
|
|
25
25
|
_this = _callSuper(this, MarkdownSerializerState, [nodes, marks, {}]);
|
|
26
26
|
/**
|
|
27
27
|
* Defines the internal variables used in the markdown serializer
|
|
@@ -37,7 +37,7 @@ export class MarkdownSerializerState extends PMMarkdownSerializerState {
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
constructor(nodes, marks) {
|
|
40
|
-
// @ts-ignore-next-line
|
|
40
|
+
// @ts-ignore -next-line
|
|
41
41
|
super(nodes, marks, {});
|
|
42
42
|
/**
|
|
43
43
|
* Defines the internal variables used in the markdown serializer
|
package/dist/esm/serializer.js
CHANGED
|
@@ -14,7 +14,7 @@ export var MarkdownSerializerState = /*#__PURE__*/function (_PMMarkdownSerialize
|
|
|
14
14
|
function MarkdownSerializerState(nodes, marks) {
|
|
15
15
|
var _this;
|
|
16
16
|
_classCallCheck(this, MarkdownSerializerState);
|
|
17
|
-
// @ts-ignore-next-line
|
|
17
|
+
// @ts-ignore -next-line
|
|
18
18
|
_this = _callSuper(this, MarkdownSerializerState, [nodes, marks, {}]);
|
|
19
19
|
/**
|
|
20
20
|
* Defines the internal variables used in the markdown serializer
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
interface Transformer<T> {
|
|
3
|
-
encode(node: PMNode)
|
|
4
|
-
parse(content: T)
|
|
3
|
+
encode: (node: PMNode) => T;
|
|
4
|
+
parse: (content: T) => PMNode;
|
|
5
5
|
}
|
|
6
6
|
export declare class SlackTransformer implements Transformer<string> {
|
|
7
7
|
private serializer;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
interface Transformer<T> {
|
|
3
|
-
encode(node: PMNode)
|
|
4
|
-
parse(content: T)
|
|
3
|
+
encode: (node: PMNode) => T;
|
|
4
|
+
parse: (content: T) => PMNode;
|
|
5
5
|
}
|
|
6
6
|
export declare class SlackTransformer implements Transformer<string> {
|
|
7
7
|
private serializer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-slack-transformer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Editor Slack transformer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -23,30 +23,28 @@
|
|
|
23
23
|
"sideEffects": false,
|
|
24
24
|
"atlaskit:src": "src/index.ts",
|
|
25
25
|
"atlassian": {
|
|
26
|
-
"team": "Editor:
|
|
26
|
+
"team": "Editor: Collaboration",
|
|
27
27
|
"website": {
|
|
28
28
|
"name": "Editor Slack Transformer"
|
|
29
|
-
}
|
|
30
|
-
"runReact18": true
|
|
29
|
+
}
|
|
31
30
|
},
|
|
32
31
|
"dependencies": {
|
|
33
32
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
34
33
|
"@babel/runtime": "^7.0.0"
|
|
35
34
|
},
|
|
36
35
|
"peerDependencies": {
|
|
37
|
-
"react": "^
|
|
36
|
+
"react": "^18.2.0"
|
|
38
37
|
},
|
|
39
38
|
"devDependencies": {
|
|
40
39
|
"@atlaskit/activity": "^1.0.1",
|
|
41
|
-
"@atlaskit/editor-core": "^
|
|
42
|
-
"@atlaskit/editor-test-helpers": "
|
|
43
|
-
"@atlaskit/emoji": "^
|
|
44
|
-
"@atlaskit/mention": "^
|
|
45
|
-
"@atlaskit/theme": "^
|
|
46
|
-
"@atlaskit/tokens": "^
|
|
47
|
-
"@atlaskit/util-data-test": "^18.
|
|
48
|
-
"@emotion/react": "^11.7.1"
|
|
49
|
-
"typescript": "~5.4.2"
|
|
40
|
+
"@atlaskit/editor-core": "^210.1.0",
|
|
41
|
+
"@atlaskit/editor-test-helpers": "workspace:^",
|
|
42
|
+
"@atlaskit/emoji": "^69.5.0",
|
|
43
|
+
"@atlaskit/mention": "^24.2.0",
|
|
44
|
+
"@atlaskit/theme": "^19.0.0",
|
|
45
|
+
"@atlaskit/tokens": "^6.0.0",
|
|
46
|
+
"@atlaskit/util-data-test": "^18.1.0",
|
|
47
|
+
"@emotion/react": "^11.7.1"
|
|
50
48
|
},
|
|
51
49
|
"af:exports": {
|
|
52
50
|
".": "./src/index.ts"
|