@atlaskit/editor-slack-transformer 3.2.7 → 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 CHANGED
@@ -1,10 +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
+
9
+ ## 3.2.8
10
+
11
+ ### Patch Changes
12
+
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.
14
+
3
15
  ## 3.2.7
4
16
 
5
17
  ### Patch Changes
6
18
 
7
- - [`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
8
20
 
9
21
  ## 3.2.6
10
22
 
@@ -16,91 +28,91 @@
16
28
 
17
29
  ### Patch Changes
18
30
 
19
- - [`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
20
32
 
21
33
  ## 3.2.4
22
34
 
23
35
  ### Patch Changes
24
36
 
25
- - [`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
26
38
 
27
39
  ## 3.2.3
28
40
 
29
41
  ### Patch Changes
30
42
 
31
- - [`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
32
44
 
33
45
  ## 3.2.2
34
46
 
35
47
  ### Patch Changes
36
48
 
37
- - [`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
38
50
 
39
51
  ## 3.2.1
40
52
 
41
53
  ### Patch Changes
42
54
 
43
- - [`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`
44
56
 
45
57
  ## 3.2.0
46
58
 
47
59
  ### Minor Changes
48
60
 
49
- - [`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
50
62
 
51
63
  ## 3.1.7
52
64
 
53
65
  ### Patch Changes
54
66
 
55
- - [`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"
56
68
 
57
69
  ## 3.1.6
58
70
 
59
71
  ### Patch Changes
60
72
 
61
- - [`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
62
74
 
63
75
  ## 3.1.5
64
76
 
65
77
  ### Patch Changes
66
78
 
67
- - [`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`
68
80
 
69
81
  ## 3.1.4
70
82
 
71
83
  ### Patch Changes
72
84
 
73
- - [`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`.
74
86
 
75
87
  ## 3.1.3
76
88
 
77
89
  ### Patch Changes
78
90
 
79
- - [`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
80
92
 
81
93
  ## 3.1.2
82
94
 
83
95
  ### Patch Changes
84
96
 
85
- - [`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
86
98
 
87
99
  ## 3.1.1
88
100
 
89
101
  ### Patch Changes
90
102
 
91
- - [`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
92
104
 
93
105
  ## 3.1.0
94
106
 
95
107
  ### Minor Changes
96
108
 
97
- - [`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
98
110
 
99
111
  ## 3.0.0
100
112
 
101
113
  ### Major Changes
102
114
 
103
- - [`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
104
116
 
105
117
  ### Minor Changes
106
118
 
@@ -120,19 +132,19 @@
120
132
 
121
133
  ### Major Changes
122
134
 
123
- - [`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
124
136
 
125
137
  ## 1.0.6
126
138
 
127
139
  ### Patch Changes
128
140
 
129
- - [`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
130
142
 
131
143
  ## 1.0.5
132
144
 
133
145
  ### Patch Changes
134
146
 
135
- - [`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.
136
148
 
137
149
  ## 1.0.4
138
150
 
@@ -144,20 +156,20 @@
144
156
 
145
157
  ### Patch Changes
146
158
 
147
- - [`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.
148
160
  Emojis return text (an emoji itself) instead of a short name.
149
161
 
150
162
  ## 1.0.2
151
163
 
152
164
  ### Patch Changes
153
165
 
154
- - [`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]
155
167
 
156
168
  ## 1.0.1
157
169
 
158
170
  ### Patch Changes
159
171
 
160
- - [`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].
161
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.
162
174
  Added a missed description in package.json. Removed unused devDependencies.
163
175
 
@@ -165,6 +177,6 @@
165
177
 
166
178
  ### Major Changes
167
179
 
168
- - [`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.
169
181
  Supported bold, italic and strikethrough text, links, quotes, inline code blocks, code blocks, emojis. Mentions are serialised as @id.
170
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
+ }();
@@ -13,11 +13,11 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
13
13
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
14
14
  var _markdown = require("@atlaskit/editor-prosemirror/markdown");
15
15
  var _util = require("./util");
16
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
17
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
16
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
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.MarkdownSerializerState = MarkdownSerializerState;
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
+ };
@@ -4,8 +4,8 @@ import _createClass from "@babel/runtime/helpers/createClass";
4
4
  import _inherits from "@babel/runtime/helpers/inherits";
5
5
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
6
6
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
8
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
7
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
8
+ 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) { _defineProperty(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; }
9
9
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
10
10
  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; } }
11
11
  import { MarkdownSerializer as PMMarkdownSerializer, MarkdownSerializerState as PMMarkdownSerializerState } from '@atlaskit/editor-prosemirror/markdown';
@@ -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.7",
3
+ "version": "3.2.9",
4
4
  "description": "Editor Slack transformer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -23,7 +23,7 @@
23
23
  "sideEffects": false,
24
24
  "atlaskit:src": "src/index.ts",
25
25
  "atlassian": {
26
- "team": "Editor Services",
26
+ "team": "Editor: ADF",
27
27
  "inPublicMirror": true,
28
28
  "releaseModel": "continuous",
29
29
  "website": {
@@ -39,10 +39,11 @@
39
39
  },
40
40
  "devDependencies": {
41
41
  "@atlaskit/activity": "^1.0.1",
42
- "@atlaskit/editor-core": "^187.28.0",
43
- "@atlaskit/editor-test-helpers": "^18.11.0",
44
- "@atlaskit/emoji": "^67.4.0",
45
- "@atlaskit/theme": "^12.5.0",
42
+ "@atlaskit/editor-core": "^189.3.0",
43
+ "@atlaskit/editor-test-helpers": "^18.14.0",
44
+ "@atlaskit/emoji": "^67.5.0",
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",