@atlaskit/editor-common 66.0.1 → 66.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +55 -0
- package/dist/cjs/panel.js +55 -0
- package/dist/cjs/styles/index.js +0 -44
- package/dist/cjs/styles/shared/panel.js +10 -4
- package/dist/cjs/ui/BaseTheme/index.js +1 -5
- package/dist/cjs/utils/validator.js +6 -4
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/panel.js +1 -0
- package/dist/es2019/styles/index.js +0 -1
- package/dist/es2019/styles/shared/panel.js +77 -74
- package/dist/es2019/ui/BaseTheme/index.js +1 -4
- package/dist/es2019/utils/validator.js +2 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/panel.js +1 -0
- package/dist/esm/styles/index.js +0 -1
- package/dist/esm/styles/shared/panel.js +6 -3
- package/dist/esm/ui/BaseTheme/index.js +1 -4
- package/dist/esm/utils/validator.js +2 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/extensions/extension-handlers.d.ts +2 -5
- package/dist/types/extensions/manifest-helpers.d.ts +1 -1
- package/dist/types/panel.d.ts +1 -0
- package/dist/types/provider-factory/media-provider.d.ts +2 -2
- package/dist/types/provider-factory/types.d.ts +1 -1
- package/dist/types/styles/index.d.ts +0 -1
- package/dist/types/styles/shared/panel.d.ts +1 -0
- package/dist/types/ui/EventHandlers/index.d.ts +2 -2
- package/dist/types/ui/IntlErrorBoundary/index.d.ts +1 -1
- package/dist/types/ui/OverflowShadow/index.d.ts +2 -2
- package/dist/types/ui/Popup/index.d.ts +0 -1
- package/package.json +12 -12
- package/panel/package.json +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,60 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 66.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a424e62b264`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a424e62b264) - Changes to support Node 16 Typescript definitions from `@types/node`.
|
|
8
|
+
|
|
9
|
+
## 66.0.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
16
|
+
## 66.0.2
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- [`c827226316a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c827226316a) - ED-14291 removed deprecated themeProvider
|
|
21
|
+
- [`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
|
|
22
|
+
|
|
23
|
+
@atlaskit/adf-schema/schema-bitbucket for:
|
|
24
|
+
|
|
25
|
+
- bitbucketSchema
|
|
26
|
+
|
|
27
|
+
@atlaskit/adf-schema/schema-confluence for:
|
|
28
|
+
|
|
29
|
+
- confluenceSchema
|
|
30
|
+
- confluenceSchemaWithMediaSingle
|
|
31
|
+
|
|
32
|
+
@atlaskit/adf-schema/schema-jira for:
|
|
33
|
+
|
|
34
|
+
- default as createJIRASchema
|
|
35
|
+
- isSchemaWithLists
|
|
36
|
+
- isSchemaWithMentions
|
|
37
|
+
- isSchemaWithEmojis
|
|
38
|
+
- isSchemaWithLinks
|
|
39
|
+
- isSchemaWithAdvancedTextFormattingMarks
|
|
40
|
+
- isSchemaWithCodeBlock
|
|
41
|
+
- isSchemaWithBlockQuotes
|
|
42
|
+
- isSchemaWithMedia
|
|
43
|
+
- isSchemaWithSubSupMark
|
|
44
|
+
- isSchemaWithTextColor
|
|
45
|
+
- isSchemaWithTables
|
|
46
|
+
|
|
47
|
+
@atlaskit/adf-schema/schema-default for:
|
|
48
|
+
|
|
49
|
+
- defaultSchema
|
|
50
|
+
- getSchemaBasedOnStage
|
|
51
|
+
- defaultSchemaConfig
|
|
52
|
+
|
|
53
|
+
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.
|
|
54
|
+
|
|
55
|
+
- [`3ef794dc11f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3ef794dc11f) - Removed emoji and media packages dependencies from renderer initial load.
|
|
56
|
+
- Updated dependencies
|
|
57
|
+
|
|
3
58
|
## 66.0.1
|
|
4
59
|
|
|
5
60
|
### 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");
|
package/dist/cjs/styles/index.js
CHANGED
|
@@ -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
|
|
222
|
-
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n
|
|
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
|
-
},
|
|
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] :
|
|
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] :
|
|
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] :
|
|
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] :
|
|
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,
|
package/dist/cjs/version.json
CHANGED
|
@@ -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
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
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
|
-
|
|
186
|
+
${mainDynamicStyles(PanelType.INFO)(props)}
|
|
188
187
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
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
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
201
|
+
> span {
|
|
202
|
+
vertical-align: middle;
|
|
203
|
+
display: inline-flex;
|
|
204
|
+
}
|
|
206
205
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
206
|
+
.${emojiSprite} {
|
|
207
|
+
vertical-align: ${panelEmojiSpriteVerticalAlignment}px;
|
|
208
|
+
}
|
|
210
209
|
|
|
211
|
-
|
|
212
|
-
|
|
210
|
+
.${emojiImage} {
|
|
211
|
+
vertical-align: ${panelEmojiImageVerticalAlignment}px;
|
|
213
212
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
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
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
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
|
-
|
|
234
|
-
|
|
232
|
+
&[data-panel-type='${PanelType.NOTE}'] {
|
|
233
|
+
${mainDynamicStyles(PanelType.NOTE)(props)}
|
|
235
234
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
}
|
|
235
|
+
.${PanelSharedCssClassName.icon} {
|
|
236
|
+
${iconDynamicStyles(PanelType.NOTE)(props)}
|
|
239
237
|
}
|
|
238
|
+
}
|
|
240
239
|
|
|
241
|
-
|
|
242
|
-
|
|
240
|
+
&[data-panel-type='${PanelType.TIP}'] {
|
|
241
|
+
${mainDynamicStyles(PanelType.TIP)(props)}
|
|
243
242
|
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
}
|
|
243
|
+
.${PanelSharedCssClassName.icon} {
|
|
244
|
+
${iconDynamicStyles(PanelType.TIP)(props)}
|
|
247
245
|
}
|
|
246
|
+
}
|
|
248
247
|
|
|
249
|
-
|
|
250
|
-
|
|
248
|
+
&[data-panel-type='${PanelType.WARNING}'] {
|
|
249
|
+
${mainDynamicStyles(PanelType.WARNING)(props)}
|
|
251
250
|
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
}
|
|
251
|
+
.${PanelSharedCssClassName.icon} {
|
|
252
|
+
${iconDynamicStyles(PanelType.WARNING)(props)}
|
|
255
253
|
}
|
|
254
|
+
}
|
|
256
255
|
|
|
257
|
-
|
|
258
|
-
|
|
256
|
+
&[data-panel-type='${PanelType.ERROR}'] {
|
|
257
|
+
${mainDynamicStyles(PanelType.ERROR)(props)}
|
|
259
258
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
}
|
|
259
|
+
.${PanelSharedCssClassName.icon} {
|
|
260
|
+
${iconDynamicStyles(PanelType.ERROR)(props)}
|
|
263
261
|
}
|
|
262
|
+
}
|
|
264
263
|
|
|
265
|
-
|
|
266
|
-
|
|
264
|
+
&[data-panel-type='${PanelType.SUCCESS}'] {
|
|
265
|
+
${mainDynamicStyles(PanelType.SUCCESS)(props)}
|
|
267
266
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
}
|
|
267
|
+
.${PanelSharedCssClassName.icon} {
|
|
268
|
+
${iconDynamicStyles(PanelType.SUCCESS)(props)}
|
|
271
269
|
}
|
|
270
|
+
}
|
|
272
271
|
|
|
273
|
-
|
|
274
|
-
|
|
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
|
-
},
|
|
54
|
-
theme: memoizedTheme
|
|
55
|
-
}, children));
|
|
52
|
+
}, children);
|
|
56
53
|
}
|
|
57
54
|
export function BaseTheme({
|
|
58
55
|
children,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
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'
|
package/dist/es2019/version.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getPanelTypeBackground, darkPanelColors, getPanelDarkColor, panelSharedStyles, panelSharedStylesWithoutPrefix, PanelSharedCssClassName, PanelSharedSelectors, getPanelBackgroundDarkModeColors } from './styles/shared/panel';
|
package/dist/esm/styles/index.js
CHANGED
|
@@ -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
|
|
185
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n
|
|
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
|
-
},
|
|
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 {
|
|
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'
|
package/dist/esm/version.json
CHANGED
|
@@ -7,10 +7,7 @@ export declare function getExtensionModuleNode(extensionProvider: ExtensionProvi
|
|
|
7
7
|
* Gets `__` prefixed properties from an extension node module definition
|
|
8
8
|
*/
|
|
9
9
|
export declare function getExtensionModuleNodePrivateProps(extensionProvider: ExtensionProvider, extensionType: ExtensionType, extensionKey: ExtensionKey): Promise<any>;
|
|
10
|
-
export declare function getNodeRenderer<T>(extensionProvider: ExtensionProvider, extensionType: ExtensionType, extensionKey: ExtensionKey):
|
|
10
|
+
export declare function getNodeRenderer<T>(extensionProvider: ExtensionProvider, extensionType: ExtensionType, extensionKey: ExtensionKey): React.ComponentType<{
|
|
11
11
|
node: ExtensionParams<T>;
|
|
12
12
|
references?: ReferenceEntity[] | undefined;
|
|
13
|
-
}
|
|
14
|
-
node: ExtensionParams<T>;
|
|
15
|
-
references?: ReferenceEntity[] | undefined;
|
|
16
|
-
}> & Loadable.LoadableComponent);
|
|
13
|
+
}> & Loadable.LoadableComponent;
|
|
@@ -4,5 +4,5 @@ export declare const FORGE_EXTENSION_TYPE = "com.atlassian.ecosystem";
|
|
|
4
4
|
export declare const getExtensionKeyAndNodeKey: (extensionKey: ExtensionKey, extensionType: ExtensionType) => string[];
|
|
5
5
|
export declare const buildExtensionKeyAndNodeKey: (extensionKey: ExtensionKey, nodeKey?: string | undefined) => string;
|
|
6
6
|
export declare function buildAction<T>(action: ExtensionModuleAction<T>, manifest: ExtensionManifest<T>): ADFEntity | import("./types/extension-manifest").ExtensionModuleActionHandler | undefined;
|
|
7
|
-
export declare const resolveImport: <T>(importPromise:
|
|
7
|
+
export declare const resolveImport: <T>(importPromise: Module<T>) => Promise<T>;
|
|
8
8
|
export declare function buildNode<T>(action: ExtensionModuleActionObject<T>, manifest: ExtensionManifest<T>): ADFEntity | undefined;
|
|
@@ -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[];
|
|
@@ -10,6 +10,6 @@ export declare class IntlErrorBoundary extends React.Component<ErrorBoundaryProp
|
|
|
10
10
|
missingIntlProviderInAncestry: boolean;
|
|
11
11
|
};
|
|
12
12
|
componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
|
|
13
|
-
render():
|
|
13
|
+
render(): React.ReactNode;
|
|
14
14
|
}
|
|
15
15
|
export {};
|
|
@@ -35,7 +35,7 @@ export default function overflowShadow<P>(Component: React.ComponentType<P & Ove
|
|
|
35
35
|
handleContainer: (container: HTMLElement | null) => void;
|
|
36
36
|
render(): JSX.Element;
|
|
37
37
|
context: any;
|
|
38
|
-
setState<K extends
|
|
38
|
+
setState<K extends keyof OverflowShadowState>(state: OverflowShadowState | ((prevState: Readonly<OverflowShadowState>, props: Readonly<P>) => OverflowShadowState | Pick<OverflowShadowState, K> | null) | Pick<OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
|
|
39
39
|
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
40
40
|
readonly props: Readonly<P> & Readonly<{
|
|
41
41
|
children?: React.ReactNode;
|
|
@@ -73,7 +73,7 @@ export default function overflowShadow<P>(Component: React.ComponentType<P & Ove
|
|
|
73
73
|
handleContainer: (container: HTMLElement | null) => void;
|
|
74
74
|
render(): JSX.Element;
|
|
75
75
|
context: any;
|
|
76
|
-
setState<K extends
|
|
76
|
+
setState<K extends keyof OverflowShadowState>(state: OverflowShadowState | ((prevState: Readonly<OverflowShadowState>, props: Readonly<P>) => OverflowShadowState | Pick<OverflowShadowState, K> | null) | Pick<OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
|
|
77
77
|
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
78
78
|
readonly props: Readonly<P> & Readonly<{
|
|
79
79
|
children?: React.ReactNode;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "66.0.
|
|
3
|
+
"version": "66.0.4",
|
|
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": "^
|
|
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.
|
|
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.
|
|
57
|
-
"@atlaskit/media-client": "^15.
|
|
58
|
-
"@atlaskit/media-picker": "^
|
|
57
|
+
"@atlaskit/media-card": "^73.5.0",
|
|
58
|
+
"@atlaskit/media-client": "^15.1.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.
|
|
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",
|
|
@@ -83,11 +84,10 @@
|
|
|
83
84
|
"react-loadable": "^5.1.0"
|
|
84
85
|
},
|
|
85
86
|
"peerDependencies": {
|
|
86
|
-
"@atlaskit/media-core": "^32.3.
|
|
87
|
+
"@atlaskit/media-core": "^32.3.1",
|
|
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",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"react": "^16.8.0",
|
|
107
107
|
"react-test-renderer": "^16.8.0",
|
|
108
108
|
"sinon": "^2.2.0",
|
|
109
|
-
"typescript": "
|
|
109
|
+
"typescript": "4.2.4"
|
|
110
110
|
},
|
|
111
111
|
"techstack": {
|
|
112
112
|
"@atlassian/frontend": {
|