@atlaskit/editor-slack-transformer 4.0.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 CHANGED
@@ -1,5 +1,12 @@
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
+
3
10
  ## 4.0.0
4
11
 
5
12
  ### Major Changes
@@ -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
@@ -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
@@ -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): T;
4
- parse(content: T): PMNode;
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): T;
4
- parse(content: T): PMNode;
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": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "description": "Editor Slack transformer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -23,11 +23,10 @@
23
23
  "sideEffects": false,
24
24
  "atlaskit:src": "src/index.ts",
25
25
  "atlassian": {
26
- "team": "Editor: ADF",
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",
@@ -38,15 +37,14 @@
38
37
  },
39
38
  "devDependencies": {
40
39
  "@atlaskit/activity": "^1.0.1",
41
- "@atlaskit/editor-core": "^204.0.0",
42
- "@atlaskit/editor-test-helpers": "^22.0.0",
43
- "@atlaskit/emoji": "^68.0.0",
44
- "@atlaskit/mention": "^24.0.0",
45
- "@atlaskit/theme": "^17.0.0",
46
- "@atlaskit/tokens": "^4.0.0",
47
- "@atlaskit/util-data-test": "^18.0.0",
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"