@atlaskit/editor-common 66.0.1 → 66.0.2

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,47 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 66.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c827226316a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c827226316a) - ED-14291 removed deprecated themeProvider
8
+ - [`b29ce16dad8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b29ce16dad8) - [ED-14606] Move bitbucket schema, confluence schema, jira schema, and default schema from @atlaskit/adf-schema to their own entry points. These new entry points are as follows
9
+
10
+ @atlaskit/adf-schema/schema-bitbucket for:
11
+
12
+ - bitbucketSchema
13
+
14
+ @atlaskit/adf-schema/schema-confluence for:
15
+
16
+ - confluenceSchema
17
+ - confluenceSchemaWithMediaSingle
18
+
19
+ @atlaskit/adf-schema/schema-jira for:
20
+
21
+ - default as createJIRASchema
22
+ - isSchemaWithLists
23
+ - isSchemaWithMentions
24
+ - isSchemaWithEmojis
25
+ - isSchemaWithLinks
26
+ - isSchemaWithAdvancedTextFormattingMarks
27
+ - isSchemaWithCodeBlock
28
+ - isSchemaWithBlockQuotes
29
+ - isSchemaWithMedia
30
+ - isSchemaWithSubSupMark
31
+ - isSchemaWithTextColor
32
+ - isSchemaWithTables
33
+
34
+ @atlaskit/adf-schema/schema-default for:
35
+
36
+ - defaultSchema
37
+ - getSchemaBasedOnStage
38
+ - defaultSchemaConfig
39
+
40
+ This change also includes codemods in @atlaskit/adf-schema to update these entry points. It also introduces a new util function "changeImportEntryPoint" to @atlaskit/codemod-utils to handle this scenario.
41
+
42
+ - [`3ef794dc11f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3ef794dc11f) - Removed emoji and media packages dependencies from renderer initial load.
43
+ - Updated dependencies
44
+
3
45
  ## 66.0.1
4
46
 
5
47
  ### Patch Changes
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "PanelSharedCssClassName", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _panel.PanelSharedCssClassName;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "PanelSharedSelectors", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _panel.PanelSharedSelectors;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "darkPanelColors", {
19
+ enumerable: true,
20
+ get: function get() {
21
+ return _panel.darkPanelColors;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "getPanelBackgroundDarkModeColors", {
25
+ enumerable: true,
26
+ get: function get() {
27
+ return _panel.getPanelBackgroundDarkModeColors;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "getPanelDarkColor", {
31
+ enumerable: true,
32
+ get: function get() {
33
+ return _panel.getPanelDarkColor;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "getPanelTypeBackground", {
37
+ enumerable: true,
38
+ get: function get() {
39
+ return _panel.getPanelTypeBackground;
40
+ }
41
+ });
42
+ Object.defineProperty(exports, "panelSharedStyles", {
43
+ enumerable: true,
44
+ get: function get() {
45
+ return _panel.panelSharedStyles;
46
+ }
47
+ });
48
+ Object.defineProperty(exports, "panelSharedStylesWithoutPrefix", {
49
+ enumerable: true,
50
+ get: function get() {
51
+ return _panel.panelSharedStylesWithoutPrefix;
52
+ }
53
+ });
54
+
55
+ var _panel = require("./styles/shared/panel");
@@ -21,18 +21,6 @@ Object.defineProperty(exports, "DateSharedCssClassName", {
21
21
  return _date.DateSharedCssClassName;
22
22
  }
23
23
  });
24
- Object.defineProperty(exports, "PanelSharedCssClassName", {
25
- enumerable: true,
26
- get: function get() {
27
- return _panel.PanelSharedCssClassName;
28
- }
29
- });
30
- Object.defineProperty(exports, "PanelSharedSelectors", {
31
- enumerable: true,
32
- get: function get() {
33
- return _panel.PanelSharedSelectors;
34
- }
35
- });
36
24
  Object.defineProperty(exports, "SmartCardSharedCssClassName", {
37
25
  enumerable: true,
38
26
  get: function get() {
@@ -93,36 +81,12 @@ Object.defineProperty(exports, "columnLayoutSharedStyle", {
93
81
  return _columnLayout.columnLayoutSharedStyle;
94
82
  }
95
83
  });
96
- Object.defineProperty(exports, "darkPanelColors", {
97
- enumerable: true,
98
- get: function get() {
99
- return _panel.darkPanelColors;
100
- }
101
- });
102
84
  Object.defineProperty(exports, "dateSharedStyle", {
103
85
  enumerable: true,
104
86
  get: function get() {
105
87
  return _date.dateSharedStyle;
106
88
  }
107
89
  });
108
- Object.defineProperty(exports, "getPanelBackgroundDarkModeColors", {
109
- enumerable: true,
110
- get: function get() {
111
- return _panel.getPanelBackgroundDarkModeColors;
112
- }
113
- });
114
- Object.defineProperty(exports, "getPanelDarkColor", {
115
- enumerable: true,
116
- get: function get() {
117
- return _panel.getPanelDarkColor;
118
- }
119
- });
120
- Object.defineProperty(exports, "getPanelTypeBackground", {
121
- enumerable: true,
122
- get: function get() {
123
- return _panel.getPanelTypeBackground;
124
- }
125
- });
126
90
  Object.defineProperty(exports, "headingsSharedStyles", {
127
91
  enumerable: true,
128
92
  get: function get() {
@@ -153,12 +117,6 @@ Object.defineProperty(exports, "mediaSingleSharedStyle", {
153
117
  return _mediaSingle.mediaSingleSharedStyle;
154
118
  }
155
119
  });
156
- Object.defineProperty(exports, "panelSharedStyles", {
157
- enumerable: true,
158
- get: function get() {
159
- return _panel.panelSharedStyles;
160
- }
161
- });
162
120
  Object.defineProperty(exports, "paragraphSharedStyles", {
163
121
  enumerable: true,
164
122
  get: function get() {
@@ -276,8 +234,6 @@ var _blockquote = require("./shared/blockquote");
276
234
 
277
235
  var _headings = require("./shared/headings");
278
236
 
279
- var _panel = require("./shared/panel");
280
-
281
237
  var _rule = require("./shared/rule");
282
238
 
283
239
  var _whitespace = require("./shared/whitespace");
@@ -9,7 +9,7 @@ Object.defineProperty(exports, "__esModule", {
9
9
  });
10
10
  exports.getPanelDarkColor = exports.getPanelBackgroundDarkModeColors = exports.darkPanelColors = exports.PanelSharedSelectors = exports.PanelSharedCssClassName = void 0;
11
11
  exports.getPanelDarkModeCSS = getPanelDarkModeCSS;
12
- exports.panelSharedStyles = exports.getPanelTypeBackground = void 0;
12
+ exports.panelSharedStylesWithoutPrefix = exports.panelSharedStyles = exports.getPanelTypeBackground = void 0;
13
13
 
14
14
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
15
15
 
@@ -31,7 +31,7 @@ var _components = require("@atlaskit/theme/components");
31
31
 
32
32
  var _constants = require("@atlaskit/theme/constants");
33
33
 
34
- var _templateObject;
34
+ var _templateObject, _templateObject2;
35
35
 
36
36
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
37
37
 
@@ -218,10 +218,16 @@ var mainDynamicStyles = function mainDynamicStyles(panelType) {
218
218
  };
219
219
  };
220
220
 
221
- var panelSharedStyles = function panelSharedStyles(props) {
222
- return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .", " {\n border-radius: ", "px;\n margin: ", " 0 0;\n padding: ", "px;\n min-width: ", "px;\n display: flex;\n position: relative;\n align-items: baseline;\n word-break: break-word;\n\n ", "\n\n .", " {\n flex-shrink: 0;\n height: ", "px;\n width: ", "px;\n box-sizing: content-box;\n padding-right: ", "px;\n text-align: center;\n user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n ", "\n\n > span {\n vertical-align: middle;\n display: inline-flex;\n }\n\n .", " {\n vertical-align: ", "px;\n }\n\n .", " {\n vertical-align: ", "px;\n\n // Vertical align only works for inline-block elements in Firefox\n @-moz-document url-prefix() {\n img {\n display: inline-block;\n }\n }\n }\n }\n\n .ak-editor-panel__content {\n margin: 1px 0 1px;\n flex: 1 0 0;\n /*\n https://ishadeed.com/article/min-max-css/#setting-min-width-to-zero-with-flexbox\n The default value for min-width is auto, which is computed to zero. When an element is a flex item, the value of min-width doesn\u2019t compute to zero. The minimum size of a flex item is equal to the size of its contents.\n */\n min-width: 0;\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", ";\n }\n }\n"])), PanelSharedCssClassName.prefix, (0, _constants.borderRadius)(), _editorSharedStyles.blockNodesVerticalMargin, (0, _constants.gridSize)(), _editorSharedStyles.akEditorTableCellMinWidth, mainDynamicStyles(_adfSchema.PanelType.INFO)(props), PanelSharedCssClassName.icon, (0, _constants.gridSize)() * 3, (0, _constants.gridSize)() * 3, (0, _constants.gridSize)(), iconDynamicStyles(_adfSchema.PanelType.INFO)(props), _emoji.emojiSprite, panelEmojiSpriteVerticalAlignment, _emoji.emojiImage, panelEmojiImageVerticalAlignment, _adfSchema.PanelType.NOTE, mainDynamicStyles(_adfSchema.PanelType.NOTE)(props), PanelSharedCssClassName.icon, iconDynamicStyles(_adfSchema.PanelType.NOTE)(props), _adfSchema.PanelType.TIP, mainDynamicStyles(_adfSchema.PanelType.TIP)(props), PanelSharedCssClassName.icon, iconDynamicStyles(_adfSchema.PanelType.TIP)(props), _adfSchema.PanelType.WARNING, mainDynamicStyles(_adfSchema.PanelType.WARNING)(props), PanelSharedCssClassName.icon, iconDynamicStyles(_adfSchema.PanelType.WARNING)(props), _adfSchema.PanelType.ERROR, mainDynamicStyles(_adfSchema.PanelType.ERROR)(props), PanelSharedCssClassName.icon, iconDynamicStyles(_adfSchema.PanelType.ERROR)(props), _adfSchema.PanelType.SUCCESS, mainDynamicStyles(_adfSchema.PanelType.SUCCESS)(props), PanelSharedCssClassName.icon, iconDynamicStyles(_adfSchema.PanelType.SUCCESS)(props), _adfSchema.PanelType.CUSTOM, (0, _components.themed)({
221
+ var panelSharedStylesWithoutPrefix = function panelSharedStylesWithoutPrefix(props) {
222
+ return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n border-radius: ", "px;\n margin: ", " 0 0;\n padding: ", "px;\n min-width: ", "px;\n display: flex;\n position: relative;\n align-items: baseline;\n word-break: break-word;\n\n ", "\n\n .", " {\n flex-shrink: 0;\n height: ", "px;\n width: ", "px;\n box-sizing: content-box;\n padding-right: ", "px;\n text-align: center;\n user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n ", "\n\n > span {\n vertical-align: middle;\n display: inline-flex;\n }\n\n .", " {\n vertical-align: ", "px;\n }\n\n .", " {\n vertical-align: ", "px;\n\n // Vertical align only works for inline-block elements in Firefox\n @-moz-document url-prefix() {\n img {\n display: inline-block;\n }\n }\n }\n }\n\n .ak-editor-panel__content {\n margin: 1px 0 1px;\n flex: 1 0 0;\n /*\n https://ishadeed.com/article/min-max-css/#setting-min-width-to-zero-with-flexbox\n The default value for min-width is auto, which is computed to zero. When an element is a flex item, the value of min-width doesn\u2019t compute to zero. The minimum size of a flex item is equal to the size of its contents.\n */\n min-width: 0;\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", ";\n }\n"])), (0, _constants.borderRadius)(), _editorSharedStyles.blockNodesVerticalMargin, (0, _constants.gridSize)(), _editorSharedStyles.akEditorTableCellMinWidth, mainDynamicStyles(_adfSchema.PanelType.INFO)(props), PanelSharedCssClassName.icon, (0, _constants.gridSize)() * 3, (0, _constants.gridSize)() * 3, (0, _constants.gridSize)(), iconDynamicStyles(_adfSchema.PanelType.INFO)(props), _emoji.emojiSprite, panelEmojiSpriteVerticalAlignment, _emoji.emojiImage, panelEmojiImageVerticalAlignment, _adfSchema.PanelType.NOTE, mainDynamicStyles(_adfSchema.PanelType.NOTE)(props), PanelSharedCssClassName.icon, iconDynamicStyles(_adfSchema.PanelType.NOTE)(props), _adfSchema.PanelType.TIP, mainDynamicStyles(_adfSchema.PanelType.TIP)(props), PanelSharedCssClassName.icon, iconDynamicStyles(_adfSchema.PanelType.TIP)(props), _adfSchema.PanelType.WARNING, mainDynamicStyles(_adfSchema.PanelType.WARNING)(props), PanelSharedCssClassName.icon, iconDynamicStyles(_adfSchema.PanelType.WARNING)(props), _adfSchema.PanelType.ERROR, mainDynamicStyles(_adfSchema.PanelType.ERROR)(props), PanelSharedCssClassName.icon, iconDynamicStyles(_adfSchema.PanelType.ERROR)(props), _adfSchema.PanelType.SUCCESS, mainDynamicStyles(_adfSchema.PanelType.SUCCESS)(props), PanelSharedCssClassName.icon, iconDynamicStyles(_adfSchema.PanelType.SUCCESS)(props), _adfSchema.PanelType.CUSTOM, (0, _components.themed)({
223
223
  dark: getPanelBackgroundDarkModeColors
224
224
  })(props));
225
225
  };
226
226
 
227
+ exports.panelSharedStylesWithoutPrefix = panelSharedStylesWithoutPrefix;
228
+
229
+ var panelSharedStyles = function panelSharedStyles(props) {
230
+ return (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n .", " {\n ", "\n }\n"])), PanelSharedCssClassName.prefix, panelSharedStylesWithoutPrefix(props));
231
+ };
232
+
227
233
  exports.panelSharedStyles = panelSharedStyles;
@@ -17,8 +17,6 @@ var _react = _interopRequireWildcard(require("react"));
17
17
 
18
18
  var _react2 = require("@emotion/react");
19
19
 
20
- var _styledComponents = require("styled-components");
21
-
22
20
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
23
21
 
24
22
  var _components = require("@atlaskit/theme/components");
@@ -76,9 +74,7 @@ function BaseThemeWrapper(_ref) {
76
74
  }, [breakpoint, dynamicTextSizing, baseFontSize, mode]);
77
75
  return /*#__PURE__*/_react.default.createElement(_react2.ThemeProvider, {
78
76
  theme: memoizedTheme
79
- }, /*#__PURE__*/_react.default.createElement(_styledComponents.ThemeProvider, {
80
- theme: memoizedTheme
81
- }, children));
77
+ }, children);
82
78
  }
83
79
 
84
80
  function BaseTheme(_ref3) {
@@ -13,6 +13,8 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
13
13
 
14
14
  var _adfSchema = require("@atlaskit/adf-schema");
15
15
 
16
+ var _schemaDefault = require("@atlaskit/adf-schema/schema-default");
17
+
16
18
  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
19
 
18
20
  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; }
@@ -63,7 +65,7 @@ var isSameMark = function isSameMark(mark, otherMark) {
63
65
  exports.isSameMark = isSameMark;
64
66
 
65
67
  var getValidDocument = function getValidDocument(doc) {
66
- var schema = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _adfSchema.defaultSchema;
68
+ var schema = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _schemaDefault.defaultSchema;
67
69
  var adfStage = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'final';
68
70
  var node = getValidNode(doc, schema, adfStage);
69
71
 
@@ -88,7 +90,7 @@ var wrapInlineNodes = function wrapInlineNodes() {
88
90
  };
89
91
 
90
92
  var getValidContent = function getValidContent(content) {
91
- var schema = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _adfSchema.defaultSchema;
93
+ var schema = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _schemaDefault.defaultSchema;
92
94
  var adfStage = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'final';
93
95
  return content.map(function (node) {
94
96
  return getValidNode(node, schema, adfStage);
@@ -101,7 +103,7 @@ var RELATIVE_LINK = /^\//;
101
103
  var ANCHOR_LINK = /^#/;
102
104
 
103
105
  var flattenUnknownBlockTree = function flattenUnknownBlockTree(node) {
104
- var schema = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _adfSchema.defaultSchema;
106
+ var schema = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _schemaDefault.defaultSchema;
105
107
  var adfStage = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'final';
106
108
  var output = [];
107
109
  var isPrevLeafNode = false;
@@ -210,7 +212,7 @@ var getValidMarks = function getValidMarks(marks) {
210
212
 
211
213
 
212
214
  var getValidNode = function getValidNode(originalNode) {
213
- var schema = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _adfSchema.defaultSchema;
215
+ var schema = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _schemaDefault.defaultSchema;
214
216
  var adfStage = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'final';
215
217
  var attrs = originalNode.attrs,
216
218
  marks = originalNode.marks,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "66.0.1",
3
+ "version": "66.0.2",
4
4
  "sideEffects": false
5
5
  }
@@ -0,0 +1 @@
1
+ export { getPanelTypeBackground, darkPanelColors, getPanelDarkColor, panelSharedStyles, panelSharedStylesWithoutPrefix, PanelSharedCssClassName, PanelSharedSelectors, getPanelBackgroundDarkModeColors } from './styles/shared/panel';
@@ -5,7 +5,6 @@ export { columnLayoutSharedStyle } from './shared/column-layout';
5
5
  export { mediaSingleSharedStyle, richMediaClassName } from './shared/media-single';
6
6
  export { blockquoteSharedStyles } from './shared/blockquote';
7
7
  export { headingsSharedStyles } from './shared/headings';
8
- export { getPanelTypeBackground, darkPanelColors, getPanelDarkColor, panelSharedStyles, PanelSharedCssClassName, PanelSharedSelectors, getPanelBackgroundDarkModeColors } from './shared/panel';
9
8
  export { ruleSharedStyles } from './shared/rule';
10
9
  export { whitespaceSharedStyles } from './shared/whitespace';
11
10
  export { paragraphSharedStyles } from './shared/paragraph';
@@ -173,107 +173,110 @@ const mainDynamicStyles = panelType => props => {
173
173
  `;
174
174
  };
175
175
 
176
- export const panelSharedStyles = props => css`
177
- .${PanelSharedCssClassName.prefix} {
178
- border-radius: ${borderRadius()}px;
179
- margin: ${blockNodesVerticalMargin} 0 0;
180
- padding: ${gridSize()}px;
181
- min-width: ${akEditorTableCellMinWidth}px;
182
- display: flex;
183
- position: relative;
184
- align-items: baseline;
185
- word-break: break-word;
176
+ export const panelSharedStylesWithoutPrefix = props => css`
177
+ border-radius: ${borderRadius()}px;
178
+ margin: ${blockNodesVerticalMargin} 0 0;
179
+ padding: ${gridSize()}px;
180
+ min-width: ${akEditorTableCellMinWidth}px;
181
+ display: flex;
182
+ position: relative;
183
+ align-items: baseline;
184
+ word-break: break-word;
186
185
 
187
- ${mainDynamicStyles(PanelType.INFO)(props)}
186
+ ${mainDynamicStyles(PanelType.INFO)(props)}
188
187
 
189
- .${PanelSharedCssClassName.icon} {
190
- flex-shrink: 0;
191
- height: ${gridSize() * 3}px;
192
- width: ${gridSize() * 3}px;
193
- box-sizing: content-box;
194
- padding-right: ${gridSize()}px;
195
- text-align: center;
196
- user-select: none;
197
- -moz-user-select: none;
198
- -webkit-user-select: none;
199
- -ms-user-select: none;
200
- ${iconDynamicStyles(PanelType.INFO)(props)}
188
+ .${PanelSharedCssClassName.icon} {
189
+ flex-shrink: 0;
190
+ height: ${gridSize() * 3}px;
191
+ width: ${gridSize() * 3}px;
192
+ box-sizing: content-box;
193
+ padding-right: ${gridSize()}px;
194
+ text-align: center;
195
+ user-select: none;
196
+ -moz-user-select: none;
197
+ -webkit-user-select: none;
198
+ -ms-user-select: none;
199
+ ${iconDynamicStyles(PanelType.INFO)(props)}
201
200
 
202
- > span {
203
- vertical-align: middle;
204
- display: inline-flex;
205
- }
201
+ > span {
202
+ vertical-align: middle;
203
+ display: inline-flex;
204
+ }
206
205
 
207
- .${emojiSprite} {
208
- vertical-align: ${panelEmojiSpriteVerticalAlignment}px;
209
- }
206
+ .${emojiSprite} {
207
+ vertical-align: ${panelEmojiSpriteVerticalAlignment}px;
208
+ }
210
209
 
211
- .${emojiImage} {
212
- vertical-align: ${panelEmojiImageVerticalAlignment}px;
210
+ .${emojiImage} {
211
+ vertical-align: ${panelEmojiImageVerticalAlignment}px;
213
212
 
214
- // Vertical align only works for inline-block elements in Firefox
215
- @-moz-document url-prefix() {
216
- img {
217
- display: inline-block;
218
- }
213
+ // Vertical align only works for inline-block elements in Firefox
214
+ @-moz-document url-prefix() {
215
+ img {
216
+ display: inline-block;
219
217
  }
220
218
  }
221
219
  }
220
+ }
222
221
 
223
- .ak-editor-panel__content {
224
- margin: 1px 0 1px;
225
- flex: 1 0 0;
226
- /*
227
- https://ishadeed.com/article/min-max-css/#setting-min-width-to-zero-with-flexbox
228
- The default value for min-width is auto, which is computed to zero. When an element is a flex item, the value of min-width doesn’t compute to zero. The minimum size of a flex item is equal to the size of its contents.
229
- */
230
- min-width: 0;
231
- }
222
+ .ak-editor-panel__content {
223
+ margin: 1px 0 1px;
224
+ flex: 1 0 0;
225
+ /*
226
+ https://ishadeed.com/article/min-max-css/#setting-min-width-to-zero-with-flexbox
227
+ The default value for min-width is auto, which is computed to zero. When an element is a flex item, the value of min-width doesn’t compute to zero. The minimum size of a flex item is equal to the size of its contents.
228
+ */
229
+ min-width: 0;
230
+ }
232
231
 
233
- &[data-panel-type='${PanelType.NOTE}'] {
234
- ${mainDynamicStyles(PanelType.NOTE)(props)}
232
+ &[data-panel-type='${PanelType.NOTE}'] {
233
+ ${mainDynamicStyles(PanelType.NOTE)(props)}
235
234
 
236
- .${PanelSharedCssClassName.icon} {
237
- ${iconDynamicStyles(PanelType.NOTE)(props)}
238
- }
235
+ .${PanelSharedCssClassName.icon} {
236
+ ${iconDynamicStyles(PanelType.NOTE)(props)}
239
237
  }
238
+ }
240
239
 
241
- &[data-panel-type='${PanelType.TIP}'] {
242
- ${mainDynamicStyles(PanelType.TIP)(props)}
240
+ &[data-panel-type='${PanelType.TIP}'] {
241
+ ${mainDynamicStyles(PanelType.TIP)(props)}
243
242
 
244
- .${PanelSharedCssClassName.icon} {
245
- ${iconDynamicStyles(PanelType.TIP)(props)}
246
- }
243
+ .${PanelSharedCssClassName.icon} {
244
+ ${iconDynamicStyles(PanelType.TIP)(props)}
247
245
  }
246
+ }
248
247
 
249
- &[data-panel-type='${PanelType.WARNING}'] {
250
- ${mainDynamicStyles(PanelType.WARNING)(props)}
248
+ &[data-panel-type='${PanelType.WARNING}'] {
249
+ ${mainDynamicStyles(PanelType.WARNING)(props)}
251
250
 
252
- .${PanelSharedCssClassName.icon} {
253
- ${iconDynamicStyles(PanelType.WARNING)(props)}
254
- }
251
+ .${PanelSharedCssClassName.icon} {
252
+ ${iconDynamicStyles(PanelType.WARNING)(props)}
255
253
  }
254
+ }
256
255
 
257
- &[data-panel-type='${PanelType.ERROR}'] {
258
- ${mainDynamicStyles(PanelType.ERROR)(props)}
256
+ &[data-panel-type='${PanelType.ERROR}'] {
257
+ ${mainDynamicStyles(PanelType.ERROR)(props)}
259
258
 
260
- .${PanelSharedCssClassName.icon} {
261
- ${iconDynamicStyles(PanelType.ERROR)(props)}
262
- }
259
+ .${PanelSharedCssClassName.icon} {
260
+ ${iconDynamicStyles(PanelType.ERROR)(props)}
263
261
  }
262
+ }
264
263
 
265
- &[data-panel-type='${PanelType.SUCCESS}'] {
266
- ${mainDynamicStyles(PanelType.SUCCESS)(props)}
264
+ &[data-panel-type='${PanelType.SUCCESS}'] {
265
+ ${mainDynamicStyles(PanelType.SUCCESS)(props)}
267
266
 
268
- .${PanelSharedCssClassName.icon} {
269
- ${iconDynamicStyles(PanelType.SUCCESS)(props)}
270
- }
267
+ .${PanelSharedCssClassName.icon} {
268
+ ${iconDynamicStyles(PanelType.SUCCESS)(props)}
271
269
  }
270
+ }
272
271
 
273
- &[data-panel-type='${PanelType.CUSTOM}'] {
274
- ${themed({
272
+ &[data-panel-type='${PanelType.CUSTOM}'] {
273
+ ${themed({
275
274
  dark: getPanelBackgroundDarkModeColors
276
275
  })(props)};
277
- }
276
+ }
277
+ `;
278
+ export const panelSharedStyles = props => css`
279
+ .${PanelSharedCssClassName.prefix} {
280
+ ${panelSharedStylesWithoutPrefix(props)}
278
281
  }
279
282
  `;
@@ -1,6 +1,5 @@
1
1
  import React, { useMemo } from 'react';
2
2
  import { ThemeProvider } from '@emotion/react';
3
- import { ThemeProvider as DeprecatedThemeProvider } from 'styled-components';
4
3
  import { akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles';
5
4
  import { useGlobalTheme } from '@atlaskit/theme/components';
6
5
  import { CHANNEL, fontSize } from '@atlaskit/theme/constants';
@@ -50,9 +49,7 @@ export function BaseThemeWrapper({
50
49
  }), [breakpoint, dynamicTextSizing, baseFontSize, mode]);
51
50
  return /*#__PURE__*/React.createElement(ThemeProvider, {
52
51
  theme: memoizedTheme
53
- }, /*#__PURE__*/React.createElement(DeprecatedThemeProvider, {
54
- theme: memoizedTheme
55
- }, children));
52
+ }, children);
56
53
  }
57
54
  export function BaseTheme({
58
55
  children,
@@ -1,4 +1,5 @@
1
- import { defaultSchema, inlineNodes, isSafeUrl, PanelType, generateUuid as uuid } from '@atlaskit/adf-schema';
1
+ import { inlineNodes, isSafeUrl, PanelType, generateUuid as uuid } from '@atlaskit/adf-schema';
2
+ import { defaultSchema } from '@atlaskit/adf-schema/schema-default';
2
3
  export const ADFStages = {
3
4
  FINAL: 'final',
4
5
  STAGE_0: 'stage0'
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "66.0.1",
3
+ "version": "66.0.2",
4
4
  "sideEffects": false
5
5
  }
@@ -0,0 +1 @@
1
+ export { getPanelTypeBackground, darkPanelColors, getPanelDarkColor, panelSharedStyles, panelSharedStylesWithoutPrefix, PanelSharedCssClassName, PanelSharedSelectors, getPanelBackgroundDarkModeColors } from './styles/shared/panel';
@@ -5,7 +5,6 @@ export { columnLayoutSharedStyle } from './shared/column-layout';
5
5
  export { mediaSingleSharedStyle, richMediaClassName } from './shared/media-single';
6
6
  export { blockquoteSharedStyles } from './shared/blockquote';
7
7
  export { headingsSharedStyles } from './shared/headings';
8
- export { getPanelTypeBackground, darkPanelColors, getPanelDarkColor, panelSharedStyles, PanelSharedCssClassName, PanelSharedSelectors, getPanelBackgroundDarkModeColors } from './shared/panel';
9
8
  export { ruleSharedStyles } from './shared/rule';
10
9
  export { whitespaceSharedStyles } from './shared/whitespace';
11
10
  export { paragraphSharedStyles } from './shared/paragraph';
@@ -1,7 +1,7 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
 
4
- var _templateObject;
4
+ var _templateObject, _templateObject2;
5
5
 
6
6
  import { css } from '@emotion/react';
7
7
  import { PanelType } from '@atlaskit/adf-schema';
@@ -181,8 +181,11 @@ var mainDynamicStyles = function mainDynamicStyles(panelType) {
181
181
  };
182
182
  };
183
183
 
184
- export var panelSharedStyles = function panelSharedStyles(props) {
185
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " {\n border-radius: ", "px;\n margin: ", " 0 0;\n padding: ", "px;\n min-width: ", "px;\n display: flex;\n position: relative;\n align-items: baseline;\n word-break: break-word;\n\n ", "\n\n .", " {\n flex-shrink: 0;\n height: ", "px;\n width: ", "px;\n box-sizing: content-box;\n padding-right: ", "px;\n text-align: center;\n user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n ", "\n\n > span {\n vertical-align: middle;\n display: inline-flex;\n }\n\n .", " {\n vertical-align: ", "px;\n }\n\n .", " {\n vertical-align: ", "px;\n\n // Vertical align only works for inline-block elements in Firefox\n @-moz-document url-prefix() {\n img {\n display: inline-block;\n }\n }\n }\n }\n\n .ak-editor-panel__content {\n margin: 1px 0 1px;\n flex: 1 0 0;\n /*\n https://ishadeed.com/article/min-max-css/#setting-min-width-to-zero-with-flexbox\n The default value for min-width is auto, which is computed to zero. When an element is a flex item, the value of min-width doesn\u2019t compute to zero. The minimum size of a flex item is equal to the size of its contents.\n */\n min-width: 0;\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", ";\n }\n }\n"])), PanelSharedCssClassName.prefix, borderRadius(), blockNodesVerticalMargin, gridSize(), akEditorTableCellMinWidth, mainDynamicStyles(PanelType.INFO)(props), PanelSharedCssClassName.icon, gridSize() * 3, gridSize() * 3, gridSize(), iconDynamicStyles(PanelType.INFO)(props), emojiSprite, panelEmojiSpriteVerticalAlignment, emojiImage, panelEmojiImageVerticalAlignment, PanelType.NOTE, mainDynamicStyles(PanelType.NOTE)(props), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.NOTE)(props), PanelType.TIP, mainDynamicStyles(PanelType.TIP)(props), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.TIP)(props), PanelType.WARNING, mainDynamicStyles(PanelType.WARNING)(props), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.WARNING)(props), PanelType.ERROR, mainDynamicStyles(PanelType.ERROR)(props), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.ERROR)(props), PanelType.SUCCESS, mainDynamicStyles(PanelType.SUCCESS)(props), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.SUCCESS)(props), PanelType.CUSTOM, themed({
184
+ export var panelSharedStylesWithoutPrefix = function panelSharedStylesWithoutPrefix(props) {
185
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border-radius: ", "px;\n margin: ", " 0 0;\n padding: ", "px;\n min-width: ", "px;\n display: flex;\n position: relative;\n align-items: baseline;\n word-break: break-word;\n\n ", "\n\n .", " {\n flex-shrink: 0;\n height: ", "px;\n width: ", "px;\n box-sizing: content-box;\n padding-right: ", "px;\n text-align: center;\n user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n ", "\n\n > span {\n vertical-align: middle;\n display: inline-flex;\n }\n\n .", " {\n vertical-align: ", "px;\n }\n\n .", " {\n vertical-align: ", "px;\n\n // Vertical align only works for inline-block elements in Firefox\n @-moz-document url-prefix() {\n img {\n display: inline-block;\n }\n }\n }\n }\n\n .ak-editor-panel__content {\n margin: 1px 0 1px;\n flex: 1 0 0;\n /*\n https://ishadeed.com/article/min-max-css/#setting-min-width-to-zero-with-flexbox\n The default value for min-width is auto, which is computed to zero. When an element is a flex item, the value of min-width doesn\u2019t compute to zero. The minimum size of a flex item is equal to the size of its contents.\n */\n min-width: 0;\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", "\n\n .", " {\n ", "\n }\n }\n\n &[data-panel-type='", "'] {\n ", ";\n }\n"])), borderRadius(), blockNodesVerticalMargin, gridSize(), akEditorTableCellMinWidth, mainDynamicStyles(PanelType.INFO)(props), PanelSharedCssClassName.icon, gridSize() * 3, gridSize() * 3, gridSize(), iconDynamicStyles(PanelType.INFO)(props), emojiSprite, panelEmojiSpriteVerticalAlignment, emojiImage, panelEmojiImageVerticalAlignment, PanelType.NOTE, mainDynamicStyles(PanelType.NOTE)(props), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.NOTE)(props), PanelType.TIP, mainDynamicStyles(PanelType.TIP)(props), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.TIP)(props), PanelType.WARNING, mainDynamicStyles(PanelType.WARNING)(props), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.WARNING)(props), PanelType.ERROR, mainDynamicStyles(PanelType.ERROR)(props), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.ERROR)(props), PanelType.SUCCESS, mainDynamicStyles(PanelType.SUCCESS)(props), PanelSharedCssClassName.icon, iconDynamicStyles(PanelType.SUCCESS)(props), PanelType.CUSTOM, themed({
186
186
  dark: getPanelBackgroundDarkModeColors
187
187
  })(props));
188
+ };
189
+ export var panelSharedStyles = function panelSharedStyles(props) {
190
+ return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n .", " {\n ", "\n }\n"])), PanelSharedCssClassName.prefix, panelSharedStylesWithoutPrefix(props));
188
191
  };
@@ -1,7 +1,6 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import React, { useMemo } from 'react';
3
3
  import { ThemeProvider } from '@emotion/react';
4
- import { ThemeProvider as DeprecatedThemeProvider } from 'styled-components';
5
4
  import { akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles';
6
5
  import { useGlobalTheme } from '@atlaskit/theme/components';
7
6
  import { CHANNEL, fontSize } from '@atlaskit/theme/constants';
@@ -51,9 +50,7 @@ export function BaseThemeWrapper(_ref) {
51
50
  }, [breakpoint, dynamicTextSizing, baseFontSize, mode]);
52
51
  return /*#__PURE__*/React.createElement(ThemeProvider, {
53
52
  theme: memoizedTheme
54
- }, /*#__PURE__*/React.createElement(DeprecatedThemeProvider, {
55
- theme: memoizedTheme
56
- }, children));
53
+ }, children);
57
54
  }
58
55
  export function BaseTheme(_ref3) {
59
56
  var children = _ref3.children,
@@ -5,7 +5,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
5
5
 
6
6
  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
7
 
8
- import { defaultSchema, inlineNodes, isSafeUrl, PanelType, generateUuid as uuid } from '@atlaskit/adf-schema';
8
+ import { inlineNodes, isSafeUrl, PanelType, generateUuid as uuid } from '@atlaskit/adf-schema';
9
+ import { defaultSchema } from '@atlaskit/adf-schema/schema-default';
9
10
  export var ADFStages = {
10
11
  FINAL: 'final',
11
12
  STAGE_0: 'stage0'
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "66.0.1",
3
+ "version": "66.0.2",
4
4
  "sideEffects": false
5
5
  }
@@ -0,0 +1 @@
1
+ export { getPanelTypeBackground, darkPanelColors, getPanelDarkColor, panelSharedStyles, panelSharedStylesWithoutPrefix, PanelSharedCssClassName, PanelSharedSelectors, getPanelBackgroundDarkModeColors, } from './styles/shared/panel';
@@ -1,5 +1,5 @@
1
- import { MediaClientConfig } from '@atlaskit/media-core/auth';
2
- import { UploadParams } from '@atlaskit/media-picker/types';
1
+ import type { MediaClientConfig } from '@atlaskit/media-core/auth';
2
+ import type { UploadParams } from '@atlaskit/media-picker/types';
3
3
  export declare type MediaProvider = {
4
4
  uploadParams?: UploadParams;
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { ActivityProvider } from '@atlaskit/activity-provider';
2
- import { EmojiProvider } from '@atlaskit/emoji/types';
2
+ import type { EmojiProvider } from '@atlaskit/emoji/types';
3
3
  import { MentionProvider } from '@atlaskit/mention/types';
4
4
  import { TaskDecisionProvider } from '@atlaskit/task-decision/types';
5
5
  import { CollabEditProvider } from '../collab/types';
@@ -5,7 +5,6 @@ export { columnLayoutSharedStyle } from './shared/column-layout';
5
5
  export { mediaSingleSharedStyle, richMediaClassName, } from './shared/media-single';
6
6
  export { blockquoteSharedStyles } from './shared/blockquote';
7
7
  export { headingsSharedStyles } from './shared/headings';
8
- export { getPanelTypeBackground, darkPanelColors, getPanelDarkColor, panelSharedStyles, PanelSharedCssClassName, PanelSharedSelectors, getPanelBackgroundDarkModeColors, } from './shared/panel';
9
8
  export { ruleSharedStyles } from './shared/rule';
10
9
  export { whitespaceSharedStyles } from './shared/whitespace';
11
10
  export { paragraphSharedStyles } from './shared/paragraph';
@@ -79,4 +79,5 @@ export declare const PanelSharedSelectors: {
79
79
  yellowWarningIcon: string;
80
80
  };
81
81
  export declare const getPanelTypeBackground: (panelType: Exclude<PanelType, PanelType.CUSTOM>, props?: ThemeProps) => string;
82
+ export declare const panelSharedStylesWithoutPrefix: (props: ThemeProps) => import("@emotion/react").SerializedStyles;
82
83
  export declare const panelSharedStyles: (props: ThemeProps) => import("@emotion/react").SerializedStyles;
@@ -1,6 +1,6 @@
1
1
  import { SyntheticEvent } from 'react';
2
- import { CardEvent } from '@atlaskit/media-card';
3
- import { Identifier } from '@atlaskit/media-client';
2
+ import type { CardEvent } from '@atlaskit/media-card';
3
+ import type { Identifier } from '@atlaskit/media-client';
4
4
  export interface CardSurroundings {
5
5
  collectionName: string;
6
6
  list: Identifier[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "66.0.1",
3
+ "version": "66.0.2",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -39,28 +39,29 @@
39
39
  "./mention": "./src/mention.ts",
40
40
  "./provider-helpers": "./src/provider-helpers/index.ts",
41
41
  "./icons": "./src/icons/index.ts",
42
- "./safe-plugin": "./src/safe-plugin/index.ts"
42
+ "./safe-plugin": "./src/safe-plugin/index.ts",
43
+ "./panel": "./src/panel.ts"
43
44
  },
44
45
  "dependencies": {
45
46
  "@atlaskit/activity-provider": "^2.3.0",
46
- "@atlaskit/adf-schema": "^22.1.0",
47
+ "@atlaskit/adf-schema": "^23.0.0",
47
48
  "@atlaskit/adf-utils": "^16.0.0",
48
49
  "@atlaskit/analytics-namespaced-context": "^6.4.0",
49
50
  "@atlaskit/analytics-next": "^8.2.0",
50
51
  "@atlaskit/code": "^14.3.0",
51
52
  "@atlaskit/editor-json-transformer": "^8.7.0",
52
53
  "@atlaskit/editor-shared-styles": "^2.0.0",
53
- "@atlaskit/emoji": "^64.4.0",
54
+ "@atlaskit/emoji": "^64.5.0",
54
55
  "@atlaskit/icon": "^21.10.0",
55
56
  "@atlaskit/in-product-testing": "^0.1.0",
56
- "@atlaskit/media-card": "^73.4.0",
57
+ "@atlaskit/media-card": "^73.5.0",
57
58
  "@atlaskit/media-client": "^15.0.0",
58
- "@atlaskit/media-picker": "^60.0.0",
59
+ "@atlaskit/media-picker": "^61.0.0",
59
60
  "@atlaskit/mention": "^21.0.0",
60
61
  "@atlaskit/profilecard": "^16.4.0",
61
62
  "@atlaskit/smart-card": "^18.0.0",
62
63
  "@atlaskit/smart-user-picker": "^5.0.2",
63
- "@atlaskit/task-decision": "^17.3.0",
64
+ "@atlaskit/task-decision": "^17.4.0",
64
65
  "@atlaskit/theme": "^12.1.0",
65
66
  "@atlaskit/tooltip": "^17.5.0",
66
67
  "@atlaskit/ufo": "^0.1.0",
@@ -86,8 +87,7 @@
86
87
  "@atlaskit/media-core": "^32.3.0",
87
88
  "react": "^16.8.0",
88
89
  "react-dom": "^16.8.0",
89
- "react-intl-next": "npm:react-intl@^5.18.1",
90
- "styled-components": "^3.2.6"
90
+ "react-intl-next": "npm:react-intl@^5.18.1"
91
91
  },
92
92
  "devDependencies": {
93
93
  "@atlaskit/editor-json-transformer": "^8.7.0",
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "@atlaskit/editor-common/panel",
3
+ "main": "../dist/cjs/panel.js",
4
+ "module": "../dist/esm/panel.js",
5
+ "module:es2019": "../dist/es2019/panel.js",
6
+ "types": "../dist/types/panel.d.ts"
7
+ }