@atlaskit/editor-slack-transformer 3.2.8 → 3.2.9
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 +30 -24
- package/dist/cjs/index.js +2 -3
- package/dist/cjs/serializer.js +5 -9
- package/dist/cjs/util.js +2 -3
- package/example-helpers/styles.ts +7 -7
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-slack-transformer
|
|
2
2
|
|
|
3
|
+
## 3.2.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#42761](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42761) [`5d1881c7ed0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5d1881c7ed0) - Adds @ak/tokens as a dependency
|
|
8
|
+
|
|
3
9
|
## 3.2.8
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
6
12
|
|
|
7
|
-
- [`ec4867e1376`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ec4867e1376) - Removed captions flag and replaced with a new media prop `allowCaptions`. `allowCaptions` is set to `false` by default and products will need to opt in to be able to use captions from now on.
|
|
13
|
+
- [#39320](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39320) [`ec4867e1376`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ec4867e1376) - Removed captions flag and replaced with a new media prop `allowCaptions`. `allowCaptions` is set to `false` by default and products will need to opt in to be able to use captions from now on.
|
|
8
14
|
|
|
9
15
|
## 3.2.7
|
|
10
16
|
|
|
11
17
|
### Patch Changes
|
|
12
18
|
|
|
13
|
-
- [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
|
|
19
|
+
- [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162) [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
|
|
14
20
|
|
|
15
21
|
## 3.2.6
|
|
16
22
|
|
|
@@ -22,91 +28,91 @@
|
|
|
22
28
|
|
|
23
29
|
### Patch Changes
|
|
24
30
|
|
|
25
|
-
- [`4e6f1bf8511`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4e6f1bf8511) - [ED-19233] Import prosemirror libraries from internal facade package
|
|
31
|
+
- [#37785](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37785) [`4e6f1bf8511`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4e6f1bf8511) - [ED-19233] Import prosemirror libraries from internal facade package
|
|
26
32
|
|
|
27
33
|
## 3.2.4
|
|
28
34
|
|
|
29
35
|
### Patch Changes
|
|
30
36
|
|
|
31
|
-
- [`61cb5313358`](https://bitbucket.org/atlassian/atlassian-frontend/commits/61cb5313358) - Removing unused dependencies and dev dependencies
|
|
37
|
+
- [#34443](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34443) [`61cb5313358`](https://bitbucket.org/atlassian/atlassian-frontend/commits/61cb5313358) - Removing unused dependencies and dev dependencies
|
|
32
38
|
|
|
33
39
|
## 3.2.3
|
|
34
40
|
|
|
35
41
|
### Patch Changes
|
|
36
42
|
|
|
37
|
-
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
43
|
+
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793) [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
38
44
|
|
|
39
45
|
## 3.2.2
|
|
40
46
|
|
|
41
47
|
### Patch Changes
|
|
42
48
|
|
|
43
|
-
- [`a142ba1aa28`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a142ba1aa28) - [ED17172] Bump prosemirror-model to 1.16.0 and prosemirror-view to 1.23.7 and removed work-arounds for fixed issues
|
|
49
|
+
- [#33771](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33771) [`a142ba1aa28`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a142ba1aa28) - [ED17172] Bump prosemirror-model to 1.16.0 and prosemirror-view to 1.23.7 and removed work-arounds for fixed issues
|
|
44
50
|
|
|
45
51
|
## 3.2.1
|
|
46
52
|
|
|
47
53
|
### Patch Changes
|
|
48
54
|
|
|
49
|
-
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
55
|
+
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649) [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
50
56
|
|
|
51
57
|
## 3.2.0
|
|
52
58
|
|
|
53
59
|
### Minor Changes
|
|
54
60
|
|
|
55
|
-
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
61
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
56
62
|
|
|
57
63
|
## 3.1.7
|
|
58
64
|
|
|
59
65
|
### Patch Changes
|
|
60
66
|
|
|
61
|
-
- [`0ffb55018c9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0ffb55018c9) - Revert "[ED-17172] Bumped prosemirror-view from 1.23.2 to 1.23.7 and removed work-around for fixed issues"
|
|
67
|
+
- [#33004](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33004) [`0ffb55018c9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0ffb55018c9) - Revert "[ED-17172] Bumped prosemirror-view from 1.23.2 to 1.23.7 and removed work-around for fixed issues"
|
|
62
68
|
|
|
63
69
|
## 3.1.6
|
|
64
70
|
|
|
65
71
|
### Patch Changes
|
|
66
72
|
|
|
67
|
-
- [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
|
|
73
|
+
- [#32424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32424) [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
|
|
68
74
|
|
|
69
75
|
## 3.1.5
|
|
70
76
|
|
|
71
77
|
### Patch Changes
|
|
72
78
|
|
|
73
|
-
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
79
|
+
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874) [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
74
80
|
|
|
75
81
|
## 3.1.4
|
|
76
82
|
|
|
77
83
|
### Patch Changes
|
|
78
84
|
|
|
79
|
-
- [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
85
|
+
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492) [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
80
86
|
|
|
81
87
|
## 3.1.3
|
|
82
88
|
|
|
83
89
|
### Patch Changes
|
|
84
90
|
|
|
85
|
-
- [`4db684dafa6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4db684dafa6) - ED-13895 update editor slack transformer to emotion
|
|
91
|
+
- [#21570](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/21570) [`4db684dafa6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4db684dafa6) - ED-13895 update editor slack transformer to emotion
|
|
86
92
|
|
|
87
93
|
## 3.1.2
|
|
88
94
|
|
|
89
95
|
### Patch Changes
|
|
90
96
|
|
|
91
|
-
- [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
97
|
+
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650) [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
92
98
|
|
|
93
99
|
## 3.1.1
|
|
94
100
|
|
|
95
101
|
### Patch Changes
|
|
96
102
|
|
|
97
|
-
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - ED-13025 Bump prosemirror-view 1.23.1 -> 1.23.2
|
|
103
|
+
- [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752) [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - ED-13025 Bump prosemirror-view 1.23.1 -> 1.23.2
|
|
98
104
|
|
|
99
105
|
## 3.1.0
|
|
100
106
|
|
|
101
107
|
### Minor Changes
|
|
102
108
|
|
|
103
|
-
- [`95c8a998ef1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/95c8a998ef1) - Inline cards with url type attributes are sent as links. Adding a new row after embedded card
|
|
109
|
+
- [#17424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/17424) [`95c8a998ef1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/95c8a998ef1) - Inline cards with url type attributes are sent as links. Adding a new row after embedded card
|
|
104
110
|
|
|
105
111
|
## 3.0.0
|
|
106
112
|
|
|
107
113
|
### Major Changes
|
|
108
114
|
|
|
109
|
-
- [`8f0577e0eb1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8f0577e0eb1) - [ux] Promoted captions to full schema and better support of wikimarkup, email and slack renderer
|
|
115
|
+
- [#15998](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15998) [`8f0577e0eb1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8f0577e0eb1) - [ux] Promoted captions to full schema and better support of wikimarkup, email and slack renderer
|
|
110
116
|
|
|
111
117
|
### Minor Changes
|
|
112
118
|
|
|
@@ -126,19 +132,19 @@
|
|
|
126
132
|
|
|
127
133
|
### Major Changes
|
|
128
134
|
|
|
129
|
-
- [`ad7872a08ed`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ad7872a08ed) - Add media inline component to wikimarkup, slack markdown, email renderer transformers
|
|
135
|
+
- [#14777](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/14777) [`ad7872a08ed`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ad7872a08ed) - Add media inline component to wikimarkup, slack markdown, email renderer transformers
|
|
130
136
|
|
|
131
137
|
## 1.0.6
|
|
132
138
|
|
|
133
139
|
### Patch Changes
|
|
134
140
|
|
|
135
|
-
- [`4855cb64aab`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4855cb64aab) - Fixed typo in the embedded node name
|
|
141
|
+
- [#14969](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/14969) [`4855cb64aab`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4855cb64aab) - Fixed typo in the embedded node name
|
|
136
142
|
|
|
137
143
|
## 1.0.5
|
|
138
144
|
|
|
139
145
|
### Patch Changes
|
|
140
146
|
|
|
141
|
-
- [`5eb1f5c3eb6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5eb1f5c3eb6) - Moved @atlaskit/editor-common to devDependencies. Extracted Transformer interface from it.
|
|
147
|
+
- [#12300](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12300) [`5eb1f5c3eb6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5eb1f5c3eb6) - Moved @atlaskit/editor-common to devDependencies. Extracted Transformer interface from it.
|
|
142
148
|
|
|
143
149
|
## 1.0.4
|
|
144
150
|
|
|
@@ -150,20 +156,20 @@
|
|
|
150
156
|
|
|
151
157
|
### Patch Changes
|
|
152
158
|
|
|
153
|
-
- [`b7d23a07930`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b7d23a07930) - Added/updated unsupported nodes/marks stubs. Added support for decisions, layouts, status, panel.
|
|
159
|
+
- [#12237](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12237) [`b7d23a07930`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b7d23a07930) - Added/updated unsupported nodes/marks stubs. Added support for decisions, layouts, status, panel.
|
|
154
160
|
Emojis return text (an emoji itself) instead of a short name.
|
|
155
161
|
|
|
156
162
|
## 1.0.2
|
|
157
163
|
|
|
158
164
|
### Patch Changes
|
|
159
165
|
|
|
160
|
-
- [`a17337cd389`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a17337cd389) - Added stubs for unsupported nodes in Slack markdown such as table, panel, inline card, task, decision as ["node type" attached]
|
|
166
|
+
- [#11502](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/11502) [`a17337cd389`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a17337cd389) - Added stubs for unsupported nodes in Slack markdown such as table, panel, inline card, task, decision as ["node type" attached]
|
|
161
167
|
|
|
162
168
|
## 1.0.1
|
|
163
169
|
|
|
164
170
|
### Patch Changes
|
|
165
171
|
|
|
166
|
-
- [`93a63117404`](https://bitbucket.org/atlassian/atlassian-frontend/commits/93a63117404) - Replaced a [media attached] link (when some file is attached) just with a text [media attached].
|
|
172
|
+
- [#11387](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/11387) [`93a63117404`](https://bitbucket.org/atlassian/atlassian-frontend/commits/93a63117404) - Replaced a [media attached] link (when some file is attached) just with a text [media attached].
|
|
167
173
|
Added a rule node (serialized to an empty line) and a text color mark (serialized to a pure text). Slack doesn’t have syntax for it.
|
|
168
174
|
Added a missed description in package.json. Removed unused devDependencies.
|
|
169
175
|
|
|
@@ -171,6 +177,6 @@
|
|
|
171
177
|
|
|
172
178
|
### Major Changes
|
|
173
179
|
|
|
174
|
-
- [`944b9d04d22`](https://bitbucket.org/atlassian/atlassian-frontend/commits/944b9d04d22) - [ux] TI-210 Implemented a converter to support ADF to Slack markdown transformation.
|
|
180
|
+
- [#11002](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/11002) [`944b9d04d22`](https://bitbucket.org/atlassian/atlassian-frontend/commits/944b9d04d22) - [ux] TI-210 Implemented a converter to support ADF to Slack markdown transformation.
|
|
175
181
|
Supported bold, italic and strikethrough text, links, quotes, inline code blocks, code blocks, emojis. Mentions are serialised as @id.
|
|
176
182
|
There’s no specific list syntax in app-published text, but we can mimic list (bullet, numbered) formatting. Also there’s no specific syntax for headers, images/files (will be converted to [image attached] or [media attached] as a link).
|
package/dist/cjs/index.js
CHANGED
|
@@ -9,7 +9,7 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
|
|
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
var _serializer = require("./serializer");
|
|
12
|
-
var SlackTransformer = /*#__PURE__*/function () {
|
|
12
|
+
var SlackTransformer = exports.SlackTransformer = /*#__PURE__*/function () {
|
|
13
13
|
function SlackTransformer() {
|
|
14
14
|
(0, _classCallCheck2.default)(this, SlackTransformer);
|
|
15
15
|
(0, _defineProperty2.default)(this, "serializer", new _serializer.MarkdownSerializer(_serializer.nodes, _serializer.marks));
|
|
@@ -26,5 +26,4 @@ var SlackTransformer = /*#__PURE__*/function () {
|
|
|
26
26
|
}
|
|
27
27
|
}]);
|
|
28
28
|
return SlackTransformer;
|
|
29
|
-
}();
|
|
30
|
-
exports.SlackTransformer = SlackTransformer;
|
|
29
|
+
}();
|
package/dist/cjs/serializer.js
CHANGED
|
@@ -17,7 +17,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
17
17
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18
18
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
19
19
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
20
|
-
var MarkdownSerializerState = /*#__PURE__*/function (_PMMarkdownSerializer) {
|
|
20
|
+
var MarkdownSerializerState = exports.MarkdownSerializerState = /*#__PURE__*/function (_PMMarkdownSerializer) {
|
|
21
21
|
(0, _inherits2.default)(MarkdownSerializerState, _PMMarkdownSerializer);
|
|
22
22
|
var _super = _createSuper(MarkdownSerializerState);
|
|
23
23
|
function MarkdownSerializerState() {
|
|
@@ -42,8 +42,7 @@ var MarkdownSerializerState = /*#__PURE__*/function (_PMMarkdownSerializer) {
|
|
|
42
42
|
}]);
|
|
43
43
|
return MarkdownSerializerState;
|
|
44
44
|
}(_markdown.MarkdownSerializerState);
|
|
45
|
-
exports.
|
|
46
|
-
var MarkdownSerializer = /*#__PURE__*/function (_PMMarkdownSerializer2) {
|
|
45
|
+
var MarkdownSerializer = exports.MarkdownSerializer = /*#__PURE__*/function (_PMMarkdownSerializer2) {
|
|
47
46
|
(0, _inherits2.default)(MarkdownSerializer, _PMMarkdownSerializer2);
|
|
48
47
|
var _super2 = _createSuper(MarkdownSerializer);
|
|
49
48
|
function MarkdownSerializer() {
|
|
@@ -63,7 +62,6 @@ var MarkdownSerializer = /*#__PURE__*/function (_PMMarkdownSerializer2) {
|
|
|
63
62
|
/**
|
|
64
63
|
* Stubs for unsupported nodes
|
|
65
64
|
*/
|
|
66
|
-
exports.MarkdownSerializer = MarkdownSerializer;
|
|
67
65
|
var unsupportedNodes = {
|
|
68
66
|
table: function table(state, node) {
|
|
69
67
|
state.write('[table]');
|
|
@@ -118,7 +116,7 @@ var unsupportedNodes = {
|
|
|
118
116
|
state.write('');
|
|
119
117
|
}
|
|
120
118
|
};
|
|
121
|
-
var nodes = _objectSpread({
|
|
119
|
+
var nodes = exports.nodes = _objectSpread({
|
|
122
120
|
blockquote: function blockquote(state, node) {
|
|
123
121
|
state.wrapBlock('> ', undefined, node, function () {
|
|
124
122
|
return state.renderContent(node);
|
|
@@ -289,7 +287,6 @@ var nodes = _objectSpread({
|
|
|
289
287
|
/**
|
|
290
288
|
* Slack markdown does not have specific syntax for (sub|super)script, underline, text color.
|
|
291
289
|
*/
|
|
292
|
-
exports.nodes = nodes;
|
|
293
290
|
var unsupportedMarks = {
|
|
294
291
|
subsup: {
|
|
295
292
|
open: '',
|
|
@@ -320,7 +317,7 @@ var unsupportedMarks = {
|
|
|
320
317
|
close: ''
|
|
321
318
|
}
|
|
322
319
|
};
|
|
323
|
-
var marks = _objectSpread({
|
|
320
|
+
var marks = exports.marks = _objectSpread({
|
|
324
321
|
em: {
|
|
325
322
|
open: '_',
|
|
326
323
|
close: '_',
|
|
@@ -350,5 +347,4 @@ var marks = _objectSpread({
|
|
|
350
347
|
close: '`',
|
|
351
348
|
escape: false
|
|
352
349
|
}
|
|
353
|
-
}, unsupportedMarks);
|
|
354
|
-
exports.marks = marks;
|
|
350
|
+
}, unsupportedMarks);
|
package/dist/cjs/util.js
CHANGED
|
@@ -9,7 +9,7 @@ exports.escapeMarkdown = void 0;
|
|
|
9
9
|
* so they must be converted to HTML entities.
|
|
10
10
|
*
|
|
11
11
|
*/
|
|
12
|
-
var escapeMarkdown = function escapeMarkdown(str) {
|
|
12
|
+
var escapeMarkdown = exports.escapeMarkdown = function escapeMarkdown(str) {
|
|
13
13
|
return str.replace(/[`*_~&<>]/g, function (matched) {
|
|
14
14
|
switch (matched) {
|
|
15
15
|
case '&':
|
|
@@ -22,5 +22,4 @@ var escapeMarkdown = function escapeMarkdown(str) {
|
|
|
22
22
|
return "\\".concat(matched);
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
|
-
};
|
|
26
|
-
exports.escapeMarkdown = escapeMarkdown;
|
|
25
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
|
-
|
|
2
|
+
import { token } from '@atlaskit/tokens';
|
|
3
3
|
import { N800 } from '@atlaskit/theme/colors';
|
|
4
4
|
|
|
5
5
|
export const content = css`
|
|
6
6
|
& div.toolsDrawer {
|
|
7
|
-
padding: 8px 16px;
|
|
8
|
-
background: ${N800};
|
|
7
|
+
padding: ${token('space.100', '8px')} ${token('space.200', '16px')};
|
|
8
|
+
background: ${token('color.background.neutral.bold', N800)};
|
|
9
9
|
|
|
10
10
|
& label {
|
|
11
11
|
display: flex;
|
|
12
|
-
color: white;
|
|
12
|
+
color: ${token('color.text.inverse', 'white')};
|
|
13
13
|
align-self: center;
|
|
14
|
-
padding-right: 8px;
|
|
14
|
+
padding-right: ${token('space.100', '8px')};
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
& > div {
|
|
@@ -19,12 +19,12 @@ export const content = css`
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
& button {
|
|
22
|
-
margin: 4px 0;
|
|
22
|
+
margin: ${token('space.050', '4px')} 0;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
& legend {
|
|
27
|
-
margin: 8px 0;
|
|
27
|
+
margin: ${token('space.100', '8px')} 0;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
& input {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-slack-transformer",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.9",
|
|
4
4
|
"description": "Editor Slack transformer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -39,10 +39,11 @@
|
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@atlaskit/activity": "^1.0.1",
|
|
42
|
-
"@atlaskit/editor-core": "^
|
|
43
|
-
"@atlaskit/editor-test-helpers": "^18.
|
|
42
|
+
"@atlaskit/editor-core": "^189.3.0",
|
|
43
|
+
"@atlaskit/editor-test-helpers": "^18.14.0",
|
|
44
44
|
"@atlaskit/emoji": "^67.5.0",
|
|
45
45
|
"@atlaskit/theme": "^12.6.0",
|
|
46
|
+
"@atlaskit/tokens": "^1.28.0",
|
|
46
47
|
"@atlaskit/util-data-test": "^17.8.0",
|
|
47
48
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
48
49
|
"@emotion/react": "^11.7.1",
|