@atlaskit/editor-slack-transformer 3.1.2 → 3.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/editor-slack-transformer
2
2
 
3
+ ## 3.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`4db684dafa6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4db684dafa6) - ED-13895 update editor slack transformer to emotion
8
+
3
9
  ## 3.1.2
4
10
 
5
11
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-slack-transformer",
3
- "version": "3.1.2",
3
+ "version": "3.1.3",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-slack-transformer",
3
- "version": "3.1.2",
3
+ "version": "3.1.3",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-slack-transformer",
3
- "version": "3.1.2",
3
+ "version": "3.1.3",
4
4
  "sideEffects": false
5
5
  }
@@ -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 { Content } from './styles';
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
- <Content>
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
- </Content>
116
+ </div>
115
117
  );
116
118
  }
@@ -1,10 +1,8 @@
1
- import { ComponentClass, HTMLAttributes } from 'react';
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 Content: ComponentClass<HTMLAttributes<{}>> = styled.div`
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.2",
3
+ "version": "3.1.3",
4
4
  "description": "Editor Slack transformer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -32,18 +32,18 @@
32
32
  },
33
33
  "devDependencies": {
34
34
  "@atlaskit/activity": "^1.0.1",
35
- "@atlaskit/adf-schema": "^23.0.0",
35
+ "@atlaskit/adf-schema": "^23.1.0",
36
36
  "@atlaskit/docs": "*",
37
- "@atlaskit/editor-common": "^66.0.0",
38
- "@atlaskit/editor-core": "^164.0.0",
37
+ "@atlaskit/editor-common": "^68.0.0",
38
+ "@atlaskit/editor-core": "^167.0.0",
39
39
  "@atlaskit/editor-test-helpers": "^17.0.0",
40
- "@atlaskit/emoji": "^64.5.0",
41
- "@atlaskit/smart-card": "^18.0.0",
40
+ "@atlaskit/emoji": "^64.7.0",
41
+ "@atlaskit/smart-card": "^19.1.0",
42
42
  "@atlaskit/theme": "^12.1.0",
43
43
  "@atlaskit/util-data-test": "^17.2.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
- "styled-components": "^3.2.6",
47
47
  "typescript": "4.2.4"
48
48
  },
49
49
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",