@atlaskit/editor-slack-transformer 3.1.1 → 3.1.4
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 +18 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/version.json +1 -1
- package/example-helpers/ToolsDrawer.tsx +5 -3
- package/example-helpers/styles.ts +2 -4
- package/package.json +10 -10
- package/report.api.md +22 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-slack-transformer
|
|
2
2
|
|
|
3
|
+
## 3.1.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
8
|
+
|
|
9
|
+
## 3.1.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`4db684dafa6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4db684dafa6) - ED-13895 update editor slack transformer to emotion
|
|
14
|
+
|
|
15
|
+
## 3.1.2
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
20
|
+
|
|
3
21
|
## 3.1.1
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
1
2
|
import React, { useState } from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
2
4
|
|
|
3
5
|
import { EditorView } from 'prosemirror-view';
|
|
4
6
|
|
|
@@ -11,7 +13,7 @@ import { mentionResourceProvider } from '@atlaskit/util-data-test/mention-story-
|
|
|
11
13
|
|
|
12
14
|
import { SlackTransformer } from '../src';
|
|
13
15
|
|
|
14
|
-
import {
|
|
16
|
+
import { content } from './styles';
|
|
15
17
|
|
|
16
18
|
const rejectedPromise = Promise.reject(
|
|
17
19
|
new Error('Simulated provider rejection'),
|
|
@@ -98,7 +100,7 @@ export default function ToolsDrawer({ renderEditor }: Props) {
|
|
|
98
100
|
};
|
|
99
101
|
|
|
100
102
|
return (
|
|
101
|
-
<
|
|
103
|
+
<div css={content}>
|
|
102
104
|
<div style={{ padding: '5px 0' }}>️️️Slack Editor</div>
|
|
103
105
|
{reloadEditor
|
|
104
106
|
? ''
|
|
@@ -111,6 +113,6 @@ export default function ToolsDrawer({ renderEditor }: Props) {
|
|
|
111
113
|
})}
|
|
112
114
|
<legend>Markdown output:</legend>
|
|
113
115
|
<pre>{document}</pre>
|
|
114
|
-
</
|
|
116
|
+
</div>
|
|
115
117
|
);
|
|
116
118
|
}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import styled from 'styled-components';
|
|
1
|
+
import { css } from '@emotion/react';
|
|
4
2
|
|
|
5
3
|
import { N800 } from '@atlaskit/theme/colors';
|
|
6
4
|
|
|
7
|
-
export const
|
|
5
|
+
export const content = css`
|
|
8
6
|
& div.toolsDrawer {
|
|
9
7
|
padding: 8px 16px;
|
|
10
8
|
background: ${N800};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-slack-transformer",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.4",
|
|
4
4
|
"description": "Editor Slack transformer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -32,19 +32,19 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@atlaskit/activity": "^1.0.1",
|
|
35
|
-
"@atlaskit/adf-schema": "^
|
|
35
|
+
"@atlaskit/adf-schema": "^23.3.0",
|
|
36
36
|
"@atlaskit/docs": "*",
|
|
37
|
-
"@atlaskit/editor-common": "^
|
|
38
|
-
"@atlaskit/editor-core": "^
|
|
39
|
-
"@atlaskit/editor-test-helpers": "^
|
|
40
|
-
"@atlaskit/emoji": "^
|
|
41
|
-
"@atlaskit/smart-card": "^
|
|
37
|
+
"@atlaskit/editor-common": "^69.1.0",
|
|
38
|
+
"@atlaskit/editor-core": "^172.0.0",
|
|
39
|
+
"@atlaskit/editor-test-helpers": "^17.1.0",
|
|
40
|
+
"@atlaskit/emoji": "^65.1.0",
|
|
41
|
+
"@atlaskit/smart-card": "^21.1.0",
|
|
42
42
|
"@atlaskit/theme": "^12.1.0",
|
|
43
|
-
"@atlaskit/util-data-test": "^17.
|
|
43
|
+
"@atlaskit/util-data-test": "^17.5.0",
|
|
44
44
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
45
|
+
"@emotion/react": "^11.7.1",
|
|
45
46
|
"prosemirror-view": "1.23.2",
|
|
46
|
-
"
|
|
47
|
-
"typescript": "3.9.6"
|
|
47
|
+
"typescript": "4.3.5"
|
|
48
48
|
},
|
|
49
49
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",
|
|
50
50
|
"af:exports": {
|
package/report.api.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
## API Report File for "@atlaskit/editor-slack-transformer".
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. This report is auto-generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
[Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
6
|
+
|
|
7
|
+
```ts
|
|
8
|
+
import { Node as Node_2 } from 'prosemirror-model';
|
|
9
|
+
|
|
10
|
+
export declare class SlackTransformer implements Transformer_2<string> {
|
|
11
|
+
private serializer;
|
|
12
|
+
encode(node: Node_2): string;
|
|
13
|
+
parse(_slackMarkdown: string): Node_2;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare interface Transformer_2<T> {
|
|
17
|
+
encode(node: Node_2): T;
|
|
18
|
+
parse(content: T): Node_2;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export {};
|
|
22
|
+
```
|