@atlaskit/editor-plugin-panel 28.0.4 → 28.0.7
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 +18 -0
- package/dist/cjs/editor-actions/actions.js +9 -9
- package/dist/cjs/nodeviews/panel.js +16 -12
- package/dist/cjs/panelPlugin.js +26 -24
- package/dist/cjs/pm-plugins/commands/create-panel-action.js +8 -8
- package/dist/cjs/pm-plugins/main.js +1 -1
- package/dist/cjs/pm-plugins/utils/utils.js +3 -3
- package/dist/cjs/ui/panelBlockMenuItem.js +7 -7
- package/dist/cjs/ui/panelTypeDropdown.js +7 -7
- package/dist/cjs/ui/quick-insert/getPanelQuickInsertComponents.js +13 -13
- package/dist/cjs/ui/toolbar.js +38 -37
- package/dist/es2019/editor-actions/actions.js +2 -2
- package/dist/es2019/nodeviews/panel.js +8 -4
- package/dist/es2019/panelPlugin.js +5 -3
- package/dist/es2019/pm-plugins/commands/create-panel-action.js +2 -2
- package/dist/es2019/pm-plugins/main.js +1 -1
- package/dist/es2019/pm-plugins/utils/utils.js +2 -2
- package/dist/es2019/ui/panelBlockMenuItem.js +3 -3
- package/dist/es2019/ui/panelTypeDropdown.js +1 -1
- package/dist/es2019/ui/quick-insert/getPanelQuickInsertComponents.js +1 -1
- package/dist/es2019/ui/toolbar.js +9 -6
- package/dist/esm/editor-actions/actions.js +2 -2
- package/dist/esm/nodeviews/panel.js +8 -4
- package/dist/esm/panelPlugin.js +5 -3
- package/dist/esm/pm-plugins/commands/create-panel-action.js +2 -2
- package/dist/esm/pm-plugins/main.js +1 -1
- package/dist/esm/pm-plugins/utils/utils.js +2 -2
- package/dist/esm/ui/panelBlockMenuItem.js +3 -3
- package/dist/esm/ui/panelTypeDropdown.js +1 -1
- package/dist/esm/ui/quick-insert/getPanelQuickInsertComponents.js +1 -1
- package/dist/esm/ui/toolbar.js +9 -6
- package/dist/types/editor-actions/actions.d.ts +2 -2
- package/dist/types/nodeviews/panel.d.ts +4 -3
- package/dist/types/panelPluginType.d.ts +10 -8
- package/dist/types/pm-plugins/commands/create-panel-action.d.ts +3 -3
- package/dist/types/pm-plugins/main.d.ts +3 -3
- package/dist/types/ui/panelBlockMenuItem.d.ts +1 -1
- package/dist/types/ui/panelTypeDropdown.d.ts +3 -2
- package/dist/types/ui/quick-insert/PanelQuickInsertMenuItem.d.ts +1 -1
- package/dist/types/ui/quick-insert/getPanelQuickInsertComponents.d.ts +1 -1
- package/dist/types/ui/toolbar.d.ts +6 -4
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-panel
|
|
2
2
|
|
|
3
|
+
## 28.0.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 28.0.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 28.0.5
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 28.0.4
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.removePanel = exports.changePanelType = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var
|
|
10
|
-
var _panel = require("@atlaskit/editor-common/panel");
|
|
9
|
+
var _enums = require("@atlaskit/editor-common/analytics/types/enums");
|
|
10
|
+
var _panel = require("@atlaskit/editor-common/styles/panel");
|
|
11
11
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
12
12
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
13
13
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
@@ -19,12 +19,12 @@ var removePanel = exports.removePanel = function removePanel(editorAnalyticsAPI)
|
|
|
19
19
|
var nodes = state.schema.nodes,
|
|
20
20
|
tr = state.tr;
|
|
21
21
|
var payload = {
|
|
22
|
-
action:
|
|
23
|
-
actionSubject:
|
|
22
|
+
action: _enums.ACTION.DELETED,
|
|
23
|
+
actionSubject: _enums.ACTION_SUBJECT.PANEL,
|
|
24
24
|
attributes: {
|
|
25
|
-
inputMethod:
|
|
25
|
+
inputMethod: _enums.INPUT_METHOD.FLOATING_TB
|
|
26
26
|
},
|
|
27
|
-
eventType:
|
|
27
|
+
eventType: _enums.EVENT_TYPE.TRACK
|
|
28
28
|
};
|
|
29
29
|
var panelNodeTypes = (0, _utils2.panelTypes)(nodes);
|
|
30
30
|
var deleteTr = tr;
|
|
@@ -82,13 +82,13 @@ var changePanelType = exports.changePanelType = function changePanelType(editorA
|
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
var payload = {
|
|
85
|
-
action:
|
|
86
|
-
actionSubject:
|
|
85
|
+
action: _enums.ACTION.CHANGED_TYPE,
|
|
86
|
+
actionSubject: _enums.ACTION_SUBJECT.PANEL,
|
|
87
87
|
attributes: {
|
|
88
88
|
newType: newType,
|
|
89
89
|
previousType: previousType
|
|
90
90
|
},
|
|
91
|
-
eventType:
|
|
91
|
+
eventType: _enums.EVENT_TYPE.TRACK
|
|
92
92
|
};
|
|
93
93
|
|
|
94
94
|
// Select the panel if it was previously selected
|
|
@@ -10,10 +10,14 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
var _uuid = require("uuid");
|
|
12
12
|
var _panel = require("@atlaskit/adf-schema/panel");
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
var
|
|
13
|
+
var _PanelErrorIcon = require("@atlaskit/editor-common/icons/PanelErrorIcon");
|
|
14
|
+
var _PanelInfoIcon = require("@atlaskit/editor-common/icons/PanelInfoIcon");
|
|
15
|
+
var _PanelNoteIcon = require("@atlaskit/editor-common/icons/PanelNoteIcon");
|
|
16
|
+
var _PanelSuccessIcon = require("@atlaskit/editor-common/icons/PanelSuccessIcon");
|
|
17
|
+
var _PanelWarningIcon = require("@atlaskit/editor-common/icons/PanelWarningIcon");
|
|
18
|
+
var _panel2 = require("@atlaskit/editor-common/styles/panel");
|
|
19
|
+
var _uiEmoji = _interopRequireDefault(require("@atlaskit/editor-common/ui-emoji"));
|
|
20
|
+
var _useSharedPluginStateWithSelector = require("@atlaskit/editor-common/useSharedPluginStateWithSelector");
|
|
17
21
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
18
22
|
var _consts = require("@atlaskit/editor-shared-styles/consts");
|
|
19
23
|
var _lightbulb = _interopRequireDefault(require("@atlaskit/icon/core/lightbulb"));
|
|
@@ -24,13 +28,13 @@ var _renderPanelIcon = require("../ui/renderPanelIcon");
|
|
|
24
28
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
25
29
|
// Mapping export
|
|
26
30
|
var panelIcons = exports.panelIcons = {
|
|
27
|
-
info:
|
|
28
|
-
success:
|
|
29
|
-
note:
|
|
31
|
+
info: _PanelInfoIcon.PanelInfoIcon,
|
|
32
|
+
success: _PanelSuccessIcon.PanelSuccessIcon,
|
|
33
|
+
note: _PanelNoteIcon.PanelNoteIcon,
|
|
30
34
|
tip: _lightbulb.default,
|
|
31
|
-
warning:
|
|
32
|
-
error:
|
|
33
|
-
custom:
|
|
35
|
+
warning: _PanelWarningIcon.PanelWarningIcon,
|
|
36
|
+
error: _PanelErrorIcon.PanelErrorIcon,
|
|
37
|
+
custom: _PanelInfoIcon.PanelInfoIcon
|
|
34
38
|
};
|
|
35
39
|
/* eslint-enable @atlaskit/editor/no-re-export */
|
|
36
40
|
|
|
@@ -48,11 +52,11 @@ var PanelIcon = exports.PanelIcon = function PanelIcon(props) {
|
|
|
48
52
|
panelIcon = _props$panelAttribute.panelIcon,
|
|
49
53
|
panelIconId = _props$panelAttribute.panelIconId,
|
|
50
54
|
panelIconText = _props$panelAttribute.panelIconText;
|
|
51
|
-
var _useSharedPluginState = (0,
|
|
55
|
+
var _useSharedPluginState = (0, _useSharedPluginStateWithSelector.useSharedPluginStateWithSelector)(pluginInjectionApi, ['emoji'], selector),
|
|
52
56
|
emojiState = _useSharedPluginState.emojiState;
|
|
53
57
|
var emojiProvider = emojiState === null || emojiState === void 0 ? void 0 : emojiState.emojiProvider;
|
|
54
58
|
if (allowCustomPanel && panelIcon && panelType === _panel.PanelType.CUSTOM) {
|
|
55
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
59
|
+
return /*#__PURE__*/_react.default.createElement(_uiEmoji.default, {
|
|
56
60
|
emojiProvider: emojiProvider,
|
|
57
61
|
providers: providerFactory,
|
|
58
62
|
shortName: panelIcon,
|
package/dist/cjs/panelPlugin.js
CHANGED
|
@@ -13,9 +13,11 @@ var _extendedPanelC = require("@atlaskit/adf-schema/extended-panel-c1");
|
|
|
13
13
|
var _extendedPanelC1WithLocalId = require("@atlaskit/adf-schema/extended-panel-c1-with-local-id");
|
|
14
14
|
var _extendedPanelWithLocalId = require("@atlaskit/adf-schema/extended-panel-with-local-id");
|
|
15
15
|
var _panel = require("@atlaskit/adf-schema/panel");
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var
|
|
16
|
+
var _assets = require("@atlaskit/editor-common/assets");
|
|
17
|
+
var _key = require("@atlaskit/editor-common/block-menu/key");
|
|
18
|
+
var _rank = require("@atlaskit/editor-common/block-menu/rank");
|
|
19
|
+
var _customPanel = _interopRequireDefault(require("@atlaskit/editor-common/custom-panel"));
|
|
20
|
+
var _blockType = require("@atlaskit/editor-common/messages/block-type");
|
|
19
21
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
20
22
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
21
23
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
@@ -39,11 +41,11 @@ var panelPlugin = function panelPlugin(_ref) {
|
|
|
39
41
|
api = _ref.api;
|
|
40
42
|
api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 || _api$blockMenu.actions.registerBlockMenuComponents([{
|
|
41
43
|
type: 'block-menu-item',
|
|
42
|
-
key:
|
|
44
|
+
key: _key.TRANSFORM_STRUCTURE_PANEL_MENU_ITEM.key,
|
|
43
45
|
parent: {
|
|
44
46
|
type: 'block-menu-section',
|
|
45
|
-
key:
|
|
46
|
-
rank:
|
|
47
|
+
key: _key.TRANSFORM_STRUCTURE_MENU_SECTION.key,
|
|
48
|
+
rank: _rank.TRANSFORM_STRUCTURE_MENU_SECTION_RANK[_key.TRANSFORM_STRUCTURE_PANEL_MENU_ITEM.key]
|
|
47
49
|
},
|
|
48
50
|
component: (0, _panelBlockMenuItem.createPanelBlockMenuItem)(api),
|
|
49
51
|
isHidden: function isHidden() {
|
|
@@ -129,12 +131,12 @@ var panelPlugin = function panelPlugin(_ref) {
|
|
|
129
131
|
var formatMessage = _ref3.formatMessage;
|
|
130
132
|
var quickInsertOptions = [{
|
|
131
133
|
id: 'infopanel',
|
|
132
|
-
title: formatMessage(
|
|
134
|
+
title: formatMessage(_blockType.messages.infoPanel),
|
|
133
135
|
keywords: ['panel'],
|
|
134
|
-
description: formatMessage(
|
|
136
|
+
description: formatMessage(_blockType.messages.infoPanelDescription),
|
|
135
137
|
priority: 800,
|
|
136
138
|
icon: function icon() {
|
|
137
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
139
|
+
return /*#__PURE__*/_react.default.createElement(_assets.IconPanel, null);
|
|
138
140
|
},
|
|
139
141
|
action: function action(typeAheadInsert, state) {
|
|
140
142
|
return (0, _createPanelAction.createPanelAction)({
|
|
@@ -148,11 +150,11 @@ var panelPlugin = function panelPlugin(_ref) {
|
|
|
148
150
|
}
|
|
149
151
|
}, {
|
|
150
152
|
id: 'notepanel',
|
|
151
|
-
title: formatMessage(
|
|
152
|
-
description: formatMessage(
|
|
153
|
+
title: formatMessage(_blockType.messages.notePanel),
|
|
154
|
+
description: formatMessage(_blockType.messages.notePanelDescription),
|
|
153
155
|
priority: 1000,
|
|
154
156
|
icon: function icon() {
|
|
155
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
157
|
+
return /*#__PURE__*/_react.default.createElement(_assets.IconPanelNote, null);
|
|
156
158
|
},
|
|
157
159
|
action: function action(typeAheadInsert, state) {
|
|
158
160
|
return (0, _createPanelAction.createPanelAction)({
|
|
@@ -166,12 +168,12 @@ var panelPlugin = function panelPlugin(_ref) {
|
|
|
166
168
|
}
|
|
167
169
|
}, {
|
|
168
170
|
id: 'successpanel',
|
|
169
|
-
title: formatMessage(
|
|
170
|
-
description: formatMessage(
|
|
171
|
+
title: formatMessage(_blockType.messages.successPanel),
|
|
172
|
+
description: formatMessage(_blockType.messages.successPanelDescription),
|
|
171
173
|
keywords: ['tip'],
|
|
172
174
|
priority: 1000,
|
|
173
175
|
icon: function icon() {
|
|
174
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
176
|
+
return /*#__PURE__*/_react.default.createElement(_assets.IconPanelSuccess, null);
|
|
175
177
|
},
|
|
176
178
|
action: function action(typeAheadInsert, state) {
|
|
177
179
|
return (0, _createPanelAction.createPanelAction)({
|
|
@@ -185,11 +187,11 @@ var panelPlugin = function panelPlugin(_ref) {
|
|
|
185
187
|
}
|
|
186
188
|
}, {
|
|
187
189
|
id: 'warningpanel',
|
|
188
|
-
title: formatMessage(
|
|
189
|
-
description: formatMessage(
|
|
190
|
+
title: formatMessage(_blockType.messages.warningPanel),
|
|
191
|
+
description: formatMessage(_blockType.messages.warningPanelDescription),
|
|
190
192
|
priority: 1000,
|
|
191
193
|
icon: function icon() {
|
|
192
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
194
|
+
return /*#__PURE__*/_react.default.createElement(_assets.IconPanelWarning, null);
|
|
193
195
|
},
|
|
194
196
|
action: function action(typeAheadInsert, state) {
|
|
195
197
|
return (0, _createPanelAction.createPanelAction)({
|
|
@@ -203,11 +205,11 @@ var panelPlugin = function panelPlugin(_ref) {
|
|
|
203
205
|
}
|
|
204
206
|
}, {
|
|
205
207
|
id: 'errorpanel',
|
|
206
|
-
title: formatMessage(
|
|
207
|
-
description: formatMessage(
|
|
208
|
+
title: formatMessage(_blockType.messages.errorPanel),
|
|
209
|
+
description: formatMessage(_blockType.messages.errorPanelDescription),
|
|
208
210
|
priority: 1000,
|
|
209
211
|
icon: function icon() {
|
|
210
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
212
|
+
return /*#__PURE__*/_react.default.createElement(_assets.IconPanelError, null);
|
|
211
213
|
},
|
|
212
214
|
action: function action(typeAheadInsert, state) {
|
|
213
215
|
return (0, _createPanelAction.createPanelAction)({
|
|
@@ -223,11 +225,11 @@ var panelPlugin = function panelPlugin(_ref) {
|
|
|
223
225
|
if (allowCustomPanel && allowCustomPanelEdit) {
|
|
224
226
|
quickInsertOptions.push({
|
|
225
227
|
id: 'custompanel',
|
|
226
|
-
title: formatMessage(
|
|
227
|
-
description: formatMessage(
|
|
228
|
+
title: formatMessage(_blockType.messages.customPanel),
|
|
229
|
+
description: formatMessage(_blockType.messages.customPanelDescription),
|
|
228
230
|
priority: 1000,
|
|
229
231
|
icon: function icon() {
|
|
230
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
232
|
+
return /*#__PURE__*/_react.default.createElement(_customPanel.default, null);
|
|
231
233
|
},
|
|
232
234
|
action: function action(typeAheadInsert, state) {
|
|
233
235
|
return (0, _createPanelAction.createPanelAction)({
|
|
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.createPanelAction = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var
|
|
9
|
+
var _enums = require("@atlaskit/editor-common/analytics/types/enums");
|
|
10
10
|
var _insert = require("@atlaskit/editor-common/insert");
|
|
11
|
-
var
|
|
11
|
+
var _createWrapSelectionTransaction = require("@atlaskit/editor-common/utils/create-wrap-selection-transaction");
|
|
12
12
|
var _nodeTypeUtils = require("@atlaskit/editor-common/utils/node-type-utils");
|
|
13
13
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
14
14
|
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; }
|
|
@@ -19,7 +19,7 @@ var createPanelAction = exports.createPanelAction = function createPanelAction(_
|
|
|
19
19
|
api = _ref.api,
|
|
20
20
|
typeAheadInsert = _ref.typeAheadInsert,
|
|
21
21
|
_ref$inputMethod = _ref.inputMethod,
|
|
22
|
-
inputMethod = _ref$inputMethod === void 0 ?
|
|
22
|
+
inputMethod = _ref$inputMethod === void 0 ? _enums.INPUT_METHOD.QUICK_INSERT : _ref$inputMethod;
|
|
23
23
|
var panelNodeType = (0, _expValEquals.expValEquals)('platform_editor_nest_table_in_panel', 'isEnabled', true) ? (0, _nodeTypeUtils.pickPanelTypeForInsertion)(state.selection.$from) : state.schema.nodes.panel;
|
|
24
24
|
var tr;
|
|
25
25
|
if (state.selection.empty) {
|
|
@@ -30,7 +30,7 @@ var createPanelAction = exports.createPanelAction = function createPanelAction(_
|
|
|
30
30
|
}
|
|
31
31
|
tr = typeAheadInsert ? typeAheadInsert(node) : (_insertSelectedItem = (0, _insert.insertSelectedItem)(node)(state, state.tr, state.selection.head)) === null || _insertSelectedItem === void 0 ? void 0 : _insertSelectedItem.scrollIntoView();
|
|
32
32
|
} else {
|
|
33
|
-
tr = (0,
|
|
33
|
+
tr = (0, _createWrapSelectionTransaction.createWrapSelectionTransaction)({
|
|
34
34
|
state: state,
|
|
35
35
|
type: panelNodeType,
|
|
36
36
|
nodeAttributes: _objectSpread({}, attributes)
|
|
@@ -39,14 +39,14 @@ var createPanelAction = exports.createPanelAction = function createPanelAction(_
|
|
|
39
39
|
if (tr) {
|
|
40
40
|
var _api$analytics;
|
|
41
41
|
api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 || _api$analytics.actions.attachAnalyticsEvent({
|
|
42
|
-
action:
|
|
43
|
-
actionSubject:
|
|
44
|
-
actionSubjectId:
|
|
42
|
+
action: _enums.ACTION.INSERTED,
|
|
43
|
+
actionSubject: _enums.ACTION_SUBJECT.DOCUMENT,
|
|
44
|
+
actionSubjectId: _enums.ACTION_SUBJECT_ID.PANEL,
|
|
45
45
|
attributes: {
|
|
46
46
|
inputMethod: inputMethod,
|
|
47
47
|
panelType: attributes.panelType
|
|
48
48
|
},
|
|
49
|
-
eventType:
|
|
49
|
+
eventType: _enums.EVENT_TYPE.TRACK
|
|
50
50
|
})(tr);
|
|
51
51
|
}
|
|
52
52
|
return tr !== null && tr !== void 0 ? tr : false;
|
|
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.createPlugin = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var _panel = require("@atlaskit/editor-common/panel");
|
|
10
9
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
11
10
|
var _selection = require("@atlaskit/editor-common/selection");
|
|
11
|
+
var _panel = require("@atlaskit/editor-common/styles/panel");
|
|
12
12
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
13
13
|
var _panel2 = require("../nodeviews/panel");
|
|
14
14
|
var _panelPluginType = require("../panelPluginType");
|
|
@@ -7,8 +7,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.panelTypes = exports.panelContentCheck = exports.panelAttrsToDom = exports.isPanel = exports.handleCut = exports.findPanel = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _panel = require("@atlaskit/adf-schema/panel");
|
|
10
|
-
var _panel2 = require("@atlaskit/editor-common/panel");
|
|
11
|
-
var
|
|
10
|
+
var _panel2 = require("@atlaskit/editor-common/styles/panel");
|
|
11
|
+
var _background = require("@atlaskit/editor-palette/background");
|
|
12
12
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
13
13
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
14
14
|
var _consts = require("@atlaskit/editor-shared-styles/consts");
|
|
@@ -35,7 +35,7 @@ var panelAttrsToDom = exports.panelAttrsToDom = function panelAttrsToDom(attrs,
|
|
|
35
35
|
panelIconText = attrs.panelIconText;
|
|
36
36
|
var isCustomPanel = panelType === _panel.PanelType.CUSTOM && allowCustomPanel;
|
|
37
37
|
var hasIcon = !isCustomPanel || !!panelIcon || !!panelIconId;
|
|
38
|
-
var tokenColor = typeof panelColor === 'string' && (0,
|
|
38
|
+
var tokenColor = typeof panelColor === 'string' && (0, _background.hexToEditorBackgroundPaletteColor)(panelColor);
|
|
39
39
|
var panelBackgroundColor = tokenColor || panelColor;
|
|
40
40
|
var isCustomPanelWithColor = typeof panelColor === 'string' && isCustomPanel;
|
|
41
41
|
var style = ["".concat(isCustomPanelWithColor ? "background-color: ".concat(panelBackgroundColor, ";") : ''), // When table-in-panel is enabled, set --table-container-bg so that table
|
|
@@ -7,10 +7,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.createPanelBlockMenuItem = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _reactIntl = require("react-intl");
|
|
10
|
-
var
|
|
11
|
-
var
|
|
10
|
+
var _enums = require("@atlaskit/editor-common/analytics/types/enums");
|
|
11
|
+
var _blockType = require("@atlaskit/editor-common/messages/block-type");
|
|
12
12
|
var _nodeTypeUtils = require("@atlaskit/editor-common/utils/node-type-utils");
|
|
13
|
-
var
|
|
13
|
+
var _toolbarDropdownItem = require("@atlaskit/editor-toolbar/toolbar-dropdown-item");
|
|
14
14
|
var _informationCircle = _interopRequireDefault(require("@atlaskit/icon/core/information-circle"));
|
|
15
15
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
16
16
|
var NODE_NAME = 'panel';
|
|
@@ -20,8 +20,8 @@ var PanelBlockMenuItem = function PanelBlockMenuItem(_ref) {
|
|
|
20
20
|
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
21
21
|
formatMessage = _useIntl.formatMessage;
|
|
22
22
|
var handleClick = function handleClick(event) {
|
|
23
|
-
var triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ?
|
|
24
|
-
var inputMethod =
|
|
23
|
+
var triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? _enums.INPUT_METHOD.KEYBOARD : _enums.INPUT_METHOD.MOUSE;
|
|
24
|
+
var inputMethod = _enums.INPUT_METHOD.BLOCK_MENU;
|
|
25
25
|
api === null || api === void 0 || api.core.actions.execute(function (_ref2) {
|
|
26
26
|
var _api$blockMenu;
|
|
27
27
|
var tr = _ref2.tr;
|
|
@@ -37,13 +37,13 @@ var PanelBlockMenuItem = function PanelBlockMenuItem(_ref) {
|
|
|
37
37
|
}) : null;
|
|
38
38
|
});
|
|
39
39
|
};
|
|
40
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
40
|
+
return /*#__PURE__*/_react.default.createElement(_toolbarDropdownItem.ToolbarDropdownItem, {
|
|
41
41
|
onClick: handleClick,
|
|
42
42
|
elemBefore: /*#__PURE__*/_react.default.createElement(_informationCircle.default, {
|
|
43
43
|
label: "",
|
|
44
44
|
size: "small"
|
|
45
45
|
})
|
|
46
|
-
}, formatMessage(
|
|
46
|
+
}, formatMessage(_blockType.messages.panel));
|
|
47
47
|
};
|
|
48
48
|
var createPanelBlockMenuItem = exports.createPanelBlockMenuItem = function createPanelBlockMenuItem(api) {
|
|
49
49
|
return function () {
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.panelTypeDropdown = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _panel = require("@atlaskit/adf-schema/panel");
|
|
10
|
-
var
|
|
10
|
+
var _panel2 = require("@atlaskit/editor-common/messages/panel");
|
|
11
11
|
var _crossCircle = _interopRequireDefault(require("@atlaskit/icon/core/cross-circle"));
|
|
12
12
|
var _customize = _interopRequireDefault(require("@atlaskit/icon/core/customize"));
|
|
13
13
|
var _statusDiscovery = _interopRequireDefault(require("@atlaskit/icon/core/status-discovery"));
|
|
@@ -16,37 +16,37 @@ var _statusSuccess = _interopRequireDefault(require("@atlaskit/icon/core/status-
|
|
|
16
16
|
var _statusWarning = _interopRequireDefault(require("@atlaskit/icon/core/status-warning"));
|
|
17
17
|
var _actions = require("../editor-actions/actions");
|
|
18
18
|
var panelTitleAndIcon = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _panel.PanelType.INFO, {
|
|
19
|
-
title:
|
|
19
|
+
title: _panel2.panelMessages.info,
|
|
20
20
|
icon: (0, _statusInformation.default)({
|
|
21
21
|
label: 'info-icon',
|
|
22
22
|
color: "var(--ds-icon-information, #357DE8)"
|
|
23
23
|
})
|
|
24
24
|
}), _panel.PanelType.NOTE, {
|
|
25
|
-
title:
|
|
25
|
+
title: _panel2.panelMessages.note,
|
|
26
26
|
icon: (0, _statusDiscovery.default)({
|
|
27
27
|
label: 'note-icon',
|
|
28
28
|
color: "var(--ds-icon-discovery, #AF59E1)"
|
|
29
29
|
})
|
|
30
30
|
}), _panel.PanelType.SUCCESS, {
|
|
31
|
-
title:
|
|
31
|
+
title: _panel2.panelMessages.success,
|
|
32
32
|
icon: (0, _statusSuccess.default)({
|
|
33
33
|
label: 'success-icon',
|
|
34
34
|
color: "var(--ds-icon-success, #6A9A23)"
|
|
35
35
|
})
|
|
36
36
|
}), _panel.PanelType.WARNING, {
|
|
37
|
-
title:
|
|
37
|
+
title: _panel2.panelMessages.warning,
|
|
38
38
|
icon: (0, _statusWarning.default)({
|
|
39
39
|
label: 'warning-icon',
|
|
40
40
|
color: "var(--ds-icon-warning, #E06C00)"
|
|
41
41
|
})
|
|
42
42
|
}), _panel.PanelType.ERROR, {
|
|
43
|
-
title:
|
|
43
|
+
title: _panel2.panelMessages.error,
|
|
44
44
|
icon: (0, _crossCircle.default)({
|
|
45
45
|
label: 'error-icon',
|
|
46
46
|
color: "var(--ds-icon-danger, #C9372C)"
|
|
47
47
|
})
|
|
48
48
|
}), _panel.PanelType.CUSTOM, {
|
|
49
|
-
title:
|
|
49
|
+
title: _panel2.panelMessages.custom,
|
|
50
50
|
icon: (0, _customize.default)({
|
|
51
51
|
label: 'custom-icon'
|
|
52
52
|
})
|
|
@@ -8,7 +8,7 @@ exports.getPanelQuickInsertComponents = void 0;
|
|
|
8
8
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _panel = require("@atlaskit/adf-schema/panel");
|
|
11
|
-
var
|
|
11
|
+
var _blockType = require("@atlaskit/editor-common/messages/block-type");
|
|
12
12
|
var _createQuickInsertMatcher = require("@atlaskit/editor-common/quick-insert/create-quick-insert-matcher");
|
|
13
13
|
var _keys = require("@atlaskit/editor-common/quick-insert/keys");
|
|
14
14
|
var _rank = require("@atlaskit/editor-common/quick-insert/rank");
|
|
@@ -20,7 +20,7 @@ var _informationCircle = _interopRequireDefault(require("@atlaskit/icon/core/inf
|
|
|
20
20
|
var _note = _interopRequireDefault(require("@atlaskit/icon/core/note"));
|
|
21
21
|
var _PanelQuickInsertMenuItem = require("./PanelQuickInsertMenuItem");
|
|
22
22
|
var standardPanelItems = [{
|
|
23
|
-
description:
|
|
23
|
+
description: _blockType.messages.infoPanelDescription,
|
|
24
24
|
icon: _informationCircle.default,
|
|
25
25
|
keywords: ['panel'],
|
|
26
26
|
menuItem: _keys.INFO_PANEL_MENU_ITEM,
|
|
@@ -29,9 +29,9 @@ var standardPanelItems = [{
|
|
|
29
29
|
light: 'https://dam-cdn.atl.orangelogic.com/CDNLink/AT12OVKL.png',
|
|
30
30
|
dark: 'https://dam-cdn.atl.orangelogic.com/CDNLink/AT12OVHA.png'
|
|
31
31
|
},
|
|
32
|
-
title:
|
|
32
|
+
title: _blockType.messages.infoPanel
|
|
33
33
|
}, {
|
|
34
|
-
description:
|
|
34
|
+
description: _blockType.messages.notePanelDescription,
|
|
35
35
|
icon: _note.default,
|
|
36
36
|
menuItem: _keys.NOTE_PANEL_MENU_ITEM,
|
|
37
37
|
panelType: _panel.PanelType.NOTE,
|
|
@@ -39,9 +39,9 @@ var standardPanelItems = [{
|
|
|
39
39
|
light: 'https://dam-cdn.atl.orangelogic.com/CDNLink/AT12OVKJ.png',
|
|
40
40
|
dark: 'https://dam-cdn.atl.orangelogic.com/CDNLink/AT12OVHB.png'
|
|
41
41
|
},
|
|
42
|
-
title:
|
|
42
|
+
title: _blockType.messages.notePanel
|
|
43
43
|
}, {
|
|
44
|
-
description:
|
|
44
|
+
description: _blockType.messages.successPanelDescription,
|
|
45
45
|
icon: _checkCircle.default,
|
|
46
46
|
keywords: ['tip'],
|
|
47
47
|
menuItem: _keys.SUCCESS_PANEL_MENU_ITEM,
|
|
@@ -50,9 +50,9 @@ var standardPanelItems = [{
|
|
|
50
50
|
light: 'https://dam-cdn.atl.orangelogic.com/CDNLink/AT12OVKP.png',
|
|
51
51
|
dark: 'https://dam-cdn.atl.orangelogic.com/CDNLink/AT12OVH6.png'
|
|
52
52
|
},
|
|
53
|
-
title:
|
|
53
|
+
title: _blockType.messages.successPanel
|
|
54
54
|
}, {
|
|
55
|
-
description:
|
|
55
|
+
description: _blockType.messages.warningPanelDescription,
|
|
56
56
|
icon: _warningOutline.default,
|
|
57
57
|
menuItem: _keys.WARNING_PANEL_MENU_ITEM,
|
|
58
58
|
panelType: _panel.PanelType.WARNING,
|
|
@@ -60,9 +60,9 @@ var standardPanelItems = [{
|
|
|
60
60
|
light: 'https://dam-cdn.atl.orangelogic.com/CDNLink/AT12OVKO.png',
|
|
61
61
|
dark: 'https://dam-cdn.atl.orangelogic.com/CDNLink/AT12OVHC.png'
|
|
62
62
|
},
|
|
63
|
-
title:
|
|
63
|
+
title: _blockType.messages.warningPanel
|
|
64
64
|
}, {
|
|
65
|
-
description:
|
|
65
|
+
description: _blockType.messages.errorPanelDescription,
|
|
66
66
|
icon: _statusWorkflowCancelled.default,
|
|
67
67
|
menuItem: _keys.ERROR_PANEL_MENU_ITEM,
|
|
68
68
|
panelType: _panel.PanelType.ERROR,
|
|
@@ -70,10 +70,10 @@ var standardPanelItems = [{
|
|
|
70
70
|
light: 'https://dam-cdn.atl.orangelogic.com/CDNLink/AT12OVKQ.png',
|
|
71
71
|
dark: 'https://dam-cdn.atl.orangelogic.com/CDNLink/AT12OVH1.png'
|
|
72
72
|
},
|
|
73
|
-
title:
|
|
73
|
+
title: _blockType.messages.errorPanel
|
|
74
74
|
}];
|
|
75
75
|
var customPanelItem = {
|
|
76
|
-
description:
|
|
76
|
+
description: _blockType.messages.customPanelDescription,
|
|
77
77
|
icon: _pencil.default,
|
|
78
78
|
menuItem: _keys.CUSTOM_PANEL_MENU_ITEM,
|
|
79
79
|
panelType: _panel.PanelType.CUSTOM,
|
|
@@ -81,7 +81,7 @@ var customPanelItem = {
|
|
|
81
81
|
light: 'https://dam-cdn.atl.orangelogic.com/CDNLink/AT12OVKN.png',
|
|
82
82
|
dark: 'https://dam-cdn.atl.orangelogic.com/CDNLink/AT12OVHD.png'
|
|
83
83
|
},
|
|
84
|
-
title:
|
|
84
|
+
title: _blockType.messages.customPanel
|
|
85
85
|
};
|
|
86
86
|
var getPanelQuickInsertComponents = exports.getPanelQuickInsertComponents = function getPanelQuickInsertComponents(_ref) {
|
|
87
87
|
var api = _ref.api,
|
package/dist/cjs/ui/toolbar.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
@@ -10,14 +9,17 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
|
|
|
10
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
10
|
var _react = _interopRequireDefault(require("react"));
|
|
12
11
|
var _panel = require("@atlaskit/adf-schema/panel");
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
var
|
|
12
|
+
var _enums = require("@atlaskit/editor-common/analytics/types/enums");
|
|
13
|
+
var _messages = _interopRequireDefault(require("@atlaskit/editor-common/messages"));
|
|
14
|
+
var _panel2 = require("@atlaskit/editor-common/messages/panel");
|
|
15
|
+
var _panel3 = require("@atlaskit/editor-common/styles/panel");
|
|
17
16
|
var _toolbarFlagCheck = require("@atlaskit/editor-common/toolbar-flag-check");
|
|
18
|
-
var
|
|
17
|
+
var _common = require("@atlaskit/editor-common/ui-color/ColorPalette/Palettes/common");
|
|
18
|
+
var _panelBackgroundPalette = require("@atlaskit/editor-common/ui-color/ColorPalette/panelBackgroundPalette");
|
|
19
|
+
var _panelBackgroundPaletteNew = require("@atlaskit/editor-common/ui-color/ColorPalette/panelBackgroundPaletteNew");
|
|
20
|
+
var _withAnalytics = require("@atlaskit/editor-common/withAnalytics");
|
|
19
21
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
20
|
-
var
|
|
22
|
+
var _constants = require("@atlaskit/editor-shared-styles/constants");
|
|
21
23
|
var _copy = _interopRequireDefault(require("@atlaskit/icon/core/copy"));
|
|
22
24
|
var _crossCircle = _interopRequireDefault(require("@atlaskit/icon/core/cross-circle"));
|
|
23
25
|
var _delete = _interopRequireDefault(require("@atlaskit/icon/core/delete"));
|
|
@@ -30,7 +32,6 @@ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
|
30
32
|
var _actions = require("../editor-actions/actions");
|
|
31
33
|
var _utils2 = require("../pm-plugins/utils/utils");
|
|
32
34
|
var _panelTypeDropdown = require("./panelTypeDropdown");
|
|
33
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
34
35
|
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; }
|
|
35
36
|
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; }
|
|
36
37
|
var panelIconMap = exports.panelIconMap = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _panel.PanelType.INFO, {
|
|
@@ -62,7 +63,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
|
|
|
62
63
|
icon: _statusInformation.default,
|
|
63
64
|
onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_panel.PanelType.INFO),
|
|
64
65
|
selected: activePanelType === _panel.PanelType.INFO,
|
|
65
|
-
title: formatMessage(
|
|
66
|
+
title: formatMessage(_panel2.panelMessages.info),
|
|
66
67
|
tabIndex: null
|
|
67
68
|
}, {
|
|
68
69
|
id: 'editor.panel.note',
|
|
@@ -70,7 +71,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
|
|
|
70
71
|
icon: _statusDiscovery.default,
|
|
71
72
|
onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_panel.PanelType.NOTE),
|
|
72
73
|
selected: activePanelType === _panel.PanelType.NOTE,
|
|
73
|
-
title: formatMessage(
|
|
74
|
+
title: formatMessage(_panel2.panelMessages.note),
|
|
74
75
|
tabIndex: null
|
|
75
76
|
}, {
|
|
76
77
|
id: 'editor.panel.success',
|
|
@@ -78,7 +79,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
|
|
|
78
79
|
icon: _statusSuccess.default,
|
|
79
80
|
onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_panel.PanelType.SUCCESS),
|
|
80
81
|
selected: activePanelType === _panel.PanelType.SUCCESS,
|
|
81
|
-
title: formatMessage(
|
|
82
|
+
title: formatMessage(_panel2.panelMessages.success),
|
|
82
83
|
tabIndex: null
|
|
83
84
|
}, {
|
|
84
85
|
id: 'editor.panel.warning',
|
|
@@ -86,7 +87,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
|
|
|
86
87
|
icon: _statusWarning.default,
|
|
87
88
|
onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_panel.PanelType.WARNING),
|
|
88
89
|
selected: activePanelType === _panel.PanelType.WARNING,
|
|
89
|
-
title: formatMessage(
|
|
90
|
+
title: formatMessage(_panel2.panelMessages.warning),
|
|
90
91
|
tabIndex: null
|
|
91
92
|
}, {
|
|
92
93
|
id: 'editor.panel.error',
|
|
@@ -94,7 +95,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
|
|
|
94
95
|
icon: _crossCircle.default,
|
|
95
96
|
onClick: (0, _actions.changePanelType)(editorAnalyticsAPI)(_panel.PanelType.ERROR),
|
|
96
97
|
selected: activePanelType === _panel.PanelType.ERROR,
|
|
97
|
-
title: formatMessage(
|
|
98
|
+
title: formatMessage(_panel2.panelMessages.error),
|
|
98
99
|
tabIndex: null
|
|
99
100
|
}] : [(0, _panelTypeDropdown.panelTypeDropdown)({
|
|
100
101
|
activePanelType: activePanelType,
|
|
@@ -110,7 +111,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
|
|
|
110
111
|
if (panelNode === undefined) {
|
|
111
112
|
return false;
|
|
112
113
|
}
|
|
113
|
-
var previousColor = panelNode.node.attrs.panelType === 'custom' ? panelNode.node.attrs.panelColor || 'none' : (0,
|
|
114
|
+
var previousColor = panelNode.node.attrs.panelType === 'custom' ? panelNode.node.attrs.panelColor || 'none' : (0, _panel3.getPanelTypeBackgroundNoTokens)(panelNode.node.attrs.panelType);
|
|
114
115
|
var emojiInfo = panelNode.node.attrs.panelType;
|
|
115
116
|
var panelEmoji = panelIconMap[emojiInfo];
|
|
116
117
|
var previousEmoji = panelEmoji ? {
|
|
@@ -124,16 +125,16 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
|
|
|
124
125
|
return false;
|
|
125
126
|
}
|
|
126
127
|
var payload = {
|
|
127
|
-
action:
|
|
128
|
-
actionSubject:
|
|
129
|
-
actionSubjectId:
|
|
128
|
+
action: _enums.ACTION.CHANGED_BACKGROUND_COLOR,
|
|
129
|
+
actionSubject: _enums.ACTION_SUBJECT.PANEL,
|
|
130
|
+
actionSubjectId: _enums.ACTION_SUBJECT_ID.PANEL,
|
|
130
131
|
attributes: {
|
|
131
132
|
newColor: color,
|
|
132
133
|
previousColor: previousColor
|
|
133
134
|
},
|
|
134
|
-
eventType:
|
|
135
|
+
eventType: _enums.EVENT_TYPE.TRACK
|
|
135
136
|
};
|
|
136
|
-
(0,
|
|
137
|
+
(0, _withAnalytics.withAnalytics)(editorAnalyticsAPI, payload)((0, _actions.changePanelType)(editorAnalyticsAPI)(_panel.PanelType.CUSTOM, _objectSpread({
|
|
137
138
|
color: color
|
|
138
139
|
}, previousEmoji), isCustomPanelEnabled))(state, dispatch);
|
|
139
140
|
return false;
|
|
@@ -155,16 +156,16 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
|
|
|
155
156
|
return false;
|
|
156
157
|
}
|
|
157
158
|
var payload = {
|
|
158
|
-
action:
|
|
159
|
-
actionSubject:
|
|
160
|
-
actionSubjectId:
|
|
159
|
+
action: _enums.ACTION.CHANGED_ICON,
|
|
160
|
+
actionSubject: _enums.ACTION_SUBJECT.PANEL,
|
|
161
|
+
actionSubjectId: _enums.ACTION_SUBJECT_ID.PANEL,
|
|
161
162
|
attributes: {
|
|
162
163
|
newIcon: emoji.shortName,
|
|
163
164
|
previousIcon: previousIcon
|
|
164
165
|
},
|
|
165
|
-
eventType:
|
|
166
|
+
eventType: _enums.EVENT_TYPE.TRACK
|
|
166
167
|
};
|
|
167
|
-
(0,
|
|
168
|
+
(0, _withAnalytics.withAnalytics)(editorAnalyticsAPI, payload)((0, _actions.changePanelType)(editorAnalyticsAPI)(_panel.PanelType.CUSTOM, {
|
|
168
169
|
emoji: emoji.shortName,
|
|
169
170
|
emojiId: emoji.id,
|
|
170
171
|
emojiText: emoji.fallback
|
|
@@ -182,15 +183,15 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
|
|
|
182
183
|
return false;
|
|
183
184
|
}
|
|
184
185
|
var payload = {
|
|
185
|
-
action:
|
|
186
|
-
actionSubject:
|
|
187
|
-
actionSubjectId:
|
|
186
|
+
action: _enums.ACTION.REMOVE_ICON,
|
|
187
|
+
actionSubject: _enums.ACTION_SUBJECT.PANEL,
|
|
188
|
+
actionSubjectId: _enums.ACTION_SUBJECT_ID.PANEL,
|
|
188
189
|
attributes: {
|
|
189
190
|
icon: panelNode.node.attrs.panelIcon
|
|
190
191
|
},
|
|
191
|
-
eventType:
|
|
192
|
+
eventType: _enums.EVENT_TYPE.TRACK
|
|
192
193
|
};
|
|
193
|
-
(0,
|
|
194
|
+
(0, _withAnalytics.withAnalytics)(editorAnalyticsAPI, payload)((0, _actions.changePanelType)(editorAnalyticsAPI)(_panel.PanelType.CUSTOM, {
|
|
194
195
|
emoji: undefined,
|
|
195
196
|
emojiId: undefined,
|
|
196
197
|
emojiText: undefined
|
|
@@ -198,21 +199,21 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
|
|
|
198
199
|
return false;
|
|
199
200
|
};
|
|
200
201
|
};
|
|
201
|
-
var panelColor = activePanelType === _panel.PanelType.CUSTOM ? activePanelColor || (0,
|
|
202
|
+
var panelColor = activePanelType === _panel.PanelType.CUSTOM ? activePanelColor || (0, _panel3.getPanelTypeBackgroundNoTokens)(_panel.PanelType.INFO) : (0, _panel3.getPanelTypeBackgroundNoTokens)(activePanelType);
|
|
202
203
|
var isNewPanelPaletteEnabled = (0, _expValEquals.expValEquals)('platform_editor_lovability_text_bg_color', 'isEnabled', true);
|
|
203
|
-
var colorPalette = isNewPanelPaletteEnabled ?
|
|
204
|
+
var colorPalette = isNewPanelPaletteEnabled ? _panelBackgroundPaletteNew.panelBackgroundPaletteNew : _panelBackgroundPalette.panelBackgroundPalette;
|
|
204
205
|
var defaultPalette = colorPalette.find(function (item) {
|
|
205
206
|
return item.value === panelColor;
|
|
206
207
|
}) || {
|
|
207
208
|
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-object
|
|
208
209
|
label: 'Custom',
|
|
209
210
|
value: panelColor,
|
|
210
|
-
border:
|
|
211
|
+
border: _common.DEFAULT_BORDER_COLOR
|
|
211
212
|
};
|
|
212
213
|
if (isCustomPanelEditable) {
|
|
213
214
|
var colorPicker = {
|
|
214
215
|
id: 'editor.panel.colorPicker',
|
|
215
|
-
title: formatMessage(
|
|
216
|
+
title: formatMessage(_panel2.panelMessages.backgroundColor),
|
|
216
217
|
isAriaExpanded: true,
|
|
217
218
|
type: 'select',
|
|
218
219
|
selectType: 'color',
|
|
@@ -225,7 +226,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
|
|
|
225
226
|
};
|
|
226
227
|
var emojiPicker = {
|
|
227
228
|
id: 'editor.panel.emojiPicker',
|
|
228
|
-
title: formatMessage(
|
|
229
|
+
title: formatMessage(_panel2.panelMessages.emoji),
|
|
229
230
|
type: 'select',
|
|
230
231
|
selectType: 'emoji',
|
|
231
232
|
options: [],
|
|
@@ -310,13 +311,13 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
|
|
|
310
311
|
onClick: function onClick() {
|
|
311
312
|
var _api$core, _api$floatingToolbar;
|
|
312
313
|
api === null || api === void 0 || (_api$core = api.core) === null || _api$core === void 0 || _api$core.actions.execute( // @ts-ignore
|
|
313
|
-
api === null || api === void 0 || (_api$floatingToolbar = api.floatingToolbar) === null || _api$floatingToolbar === void 0 ? void 0 : _api$floatingToolbar.commands.copyNode(panelNodeType,
|
|
314
|
+
api === null || api === void 0 || (_api$floatingToolbar = api.floatingToolbar) === null || _api$floatingToolbar === void 0 ? void 0 : _api$floatingToolbar.commands.copyNode(panelNodeType, _enums.INPUT_METHOD.FLOATING_TB));
|
|
314
315
|
return true;
|
|
315
316
|
},
|
|
316
317
|
icon: /*#__PURE__*/_react.default.createElement(_copy.default, {
|
|
317
318
|
label: ""
|
|
318
319
|
})
|
|
319
|
-
}, hoverDecorationProps(panelNodeType,
|
|
320
|
+
}, hoverDecorationProps(panelNodeType, _constants.akEditorSelectedNodeClassName)), _objectSpread({
|
|
320
321
|
title: formatMessage(_messages.default.delete),
|
|
321
322
|
onClick: (0, _actions.removePanel)(editorAnalyticsAPI),
|
|
322
323
|
icon: /*#__PURE__*/_react.default.createElement(_delete.default, {
|
|
@@ -358,7 +359,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(stat
|
|
|
358
359
|
nodeType: nodeType,
|
|
359
360
|
items: items,
|
|
360
361
|
scrollable: true,
|
|
361
|
-
groupLabel: formatMessage(
|
|
362
|
+
groupLabel: formatMessage(_panel2.panelMessages.panelsGroup)
|
|
362
363
|
};
|
|
363
364
|
}
|
|
364
365
|
return;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import { getPanelTypeBackgroundNoTokens } from '@atlaskit/editor-common/panel';
|
|
1
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
|
+
import { getPanelTypeBackgroundNoTokens } from '@atlaskit/editor-common/styles/panel';
|
|
3
3
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import { findParentNodeOfType, findSelectedNodeOfType, removeParentNodeOfType, removeSelectedNode } from '@atlaskit/editor-prosemirror/utils';
|
|
5
5
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -3,10 +3,14 @@ import React from 'react';
|
|
|
3
3
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
4
4
|
import { v4 as uuid } from 'uuid';
|
|
5
5
|
import { PanelType } from '@atlaskit/adf-schema/panel';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
6
|
+
import { PanelErrorIcon } from '@atlaskit/editor-common/icons/PanelErrorIcon';
|
|
7
|
+
import { PanelInfoIcon } from '@atlaskit/editor-common/icons/PanelInfoIcon';
|
|
8
|
+
import { PanelNoteIcon } from '@atlaskit/editor-common/icons/PanelNoteIcon';
|
|
9
|
+
import { PanelSuccessIcon } from '@atlaskit/editor-common/icons/PanelSuccessIcon';
|
|
10
|
+
import { PanelWarningIcon } from '@atlaskit/editor-common/icons/PanelWarningIcon';
|
|
11
|
+
import { PanelSharedCssClassName } from '@atlaskit/editor-common/styles/panel';
|
|
12
|
+
import Emoji from '@atlaskit/editor-common/ui-emoji';
|
|
13
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
10
14
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
11
15
|
import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
|
|
12
16
|
import LightbulbIcon from '@atlaskit/icon/core/lightbulb';
|
|
@@ -4,9 +4,11 @@ import { extendedPanelC1 } from '@atlaskit/adf-schema/extended-panel-c1';
|
|
|
4
4
|
import { extendedPanelC1WithLocalId } from '@atlaskit/adf-schema/extended-panel-c1-with-local-id';
|
|
5
5
|
import { extendedPanelWithLocalId } from '@atlaskit/adf-schema/extended-panel-with-local-id';
|
|
6
6
|
import { PanelType } from '@atlaskit/adf-schema/panel';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
7
|
+
import { IconPanel, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning } from '@atlaskit/editor-common/assets';
|
|
8
|
+
import { TRANSFORM_STRUCTURE_PANEL_MENU_ITEM, TRANSFORM_STRUCTURE_MENU_SECTION } from '@atlaskit/editor-common/block-menu/key';
|
|
9
|
+
import { TRANSFORM_STRUCTURE_MENU_SECTION_RANK } from '@atlaskit/editor-common/block-menu/rank';
|
|
10
|
+
import IconCustomPanel from '@atlaskit/editor-common/custom-panel';
|
|
11
|
+
import { messages as blockTypeMessages } from '@atlaskit/editor-common/messages/block-type';
|
|
10
12
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
11
13
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
12
14
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
2
|
import { insertSelectedItem } from '@atlaskit/editor-common/insert';
|
|
3
|
-
import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
|
|
3
|
+
import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils/create-wrap-selection-transaction';
|
|
4
4
|
import { pickPanelTypeForInsertion } from '@atlaskit/editor-common/utils/node-type-utils';
|
|
5
5
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
6
|
export const createPanelAction = ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
|
|
2
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
2
|
import { createSelectionClickHandler } from '@atlaskit/editor-common/selection';
|
|
3
|
+
import { PanelSharedCssClassName } from '@atlaskit/editor-common/styles/panel';
|
|
4
4
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
5
|
import { getPanelNodeView } from '../nodeviews/panel';
|
|
6
6
|
import { pluginKey } from '../panelPluginType';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PanelType } from '@atlaskit/adf-schema/panel';
|
|
2
|
-
import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
|
|
3
|
-
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
2
|
+
import { PanelSharedCssClassName } from '@atlaskit/editor-common/styles/panel';
|
|
3
|
+
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette/background';
|
|
4
4
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import { findParentNode, findParentNodeOfType, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
6
6
|
import { akEditorTableContainerBg } from '@atlaskit/editor-shared-styles/consts';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
import { blockTypeMessages } from '@atlaskit/editor-common/messages';
|
|
3
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
4
|
+
import { messages as blockTypeMessages } from '@atlaskit/editor-common/messages/block-type';
|
|
5
5
|
import { pickPanelTypeForInsertion } from '@atlaskit/editor-common/utils/node-type-utils';
|
|
6
|
-
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
|
|
6
|
+
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
|
|
7
7
|
import InformationCircleIcon from '@atlaskit/icon/core/information-circle';
|
|
8
8
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
9
|
const NODE_NAME = 'panel';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PanelType } from '@atlaskit/adf-schema/panel';
|
|
2
|
-
import { panelMessages as messages } from '@atlaskit/editor-common/messages';
|
|
2
|
+
import { panelMessages as messages } from '@atlaskit/editor-common/messages/panel';
|
|
3
3
|
import CrossCircleIcon from '@atlaskit/icon/core/cross-circle';
|
|
4
4
|
import CustomizeIcon from '@atlaskit/icon/core/customize';
|
|
5
5
|
import StatusDiscoveryIcon from '@atlaskit/icon/core/status-discovery';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PanelType } from '@atlaskit/adf-schema/panel';
|
|
3
|
-
import { blockTypeMessages } from '@atlaskit/editor-common/messages';
|
|
3
|
+
import { messages as blockTypeMessages } from '@atlaskit/editor-common/messages/block-type';
|
|
4
4
|
import { createQuickInsertMatcher } from '@atlaskit/editor-common/quick-insert/create-quick-insert-matcher';
|
|
5
5
|
import { CUSTOM_PANEL_MENU_ITEM, ERROR_PANEL_MENU_ITEM, INFO_PANEL_MENU_ITEM, NOTE_PANEL_MENU_ITEM, STRUCTURE_SECTION, SUCCESS_PANEL_MENU_ITEM, WARNING_PANEL_MENU_ITEM } from '@atlaskit/editor-common/quick-insert/keys';
|
|
6
6
|
import { STRUCTURE_SECTION_RANK } from '@atlaskit/editor-common/quick-insert/rank';
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PanelType } from '@atlaskit/adf-schema/panel';
|
|
3
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { getPanelTypeBackgroundNoTokens } from '@atlaskit/editor-common/panel';
|
|
3
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
4
|
+
import commonMessages from '@atlaskit/editor-common/messages';
|
|
5
|
+
import { panelMessages as messages } from '@atlaskit/editor-common/messages/panel';
|
|
6
|
+
import { getPanelTypeBackgroundNoTokens } from '@atlaskit/editor-common/styles/panel';
|
|
7
7
|
import { areToolbarFlagsEnabled } from '@atlaskit/editor-common/toolbar-flag-check';
|
|
8
|
-
import { DEFAULT_BORDER_COLOR
|
|
8
|
+
import { DEFAULT_BORDER_COLOR } from '@atlaskit/editor-common/ui-color/ColorPalette/Palettes/common';
|
|
9
|
+
import { panelBackgroundPalette } from '@atlaskit/editor-common/ui-color/ColorPalette/panelBackgroundPalette';
|
|
10
|
+
import { panelBackgroundPaletteNew } from '@atlaskit/editor-common/ui-color/ColorPalette/panelBackgroundPaletteNew';
|
|
11
|
+
import { withAnalytics } from '@atlaskit/editor-common/withAnalytics';
|
|
9
12
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
10
|
-
import { akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
|
|
13
|
+
import { akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles/constants';
|
|
11
14
|
import CopyIcon from '@atlaskit/icon/core/copy';
|
|
12
15
|
import CrossCircleIcon from '@atlaskit/icon/core/cross-circle';
|
|
13
16
|
import DeleteIcon from '@atlaskit/icon/core/delete';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
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; }
|
|
3
3
|
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; }
|
|
4
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
5
|
-
import { getPanelTypeBackgroundNoTokens } from '@atlaskit/editor-common/panel';
|
|
4
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
5
|
+
import { getPanelTypeBackgroundNoTokens } from '@atlaskit/editor-common/styles/panel';
|
|
6
6
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
7
7
|
import { findParentNodeOfType, findSelectedNodeOfType, removeParentNodeOfType, removeSelectedNode } from '@atlaskit/editor-prosemirror/utils';
|
|
8
8
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -5,10 +5,14 @@ import React from 'react';
|
|
|
5
5
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
6
6
|
import { v4 as uuid } from 'uuid';
|
|
7
7
|
import { PanelType } from '@atlaskit/adf-schema/panel';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
8
|
+
import { PanelErrorIcon } from '@atlaskit/editor-common/icons/PanelErrorIcon';
|
|
9
|
+
import { PanelInfoIcon } from '@atlaskit/editor-common/icons/PanelInfoIcon';
|
|
10
|
+
import { PanelNoteIcon } from '@atlaskit/editor-common/icons/PanelNoteIcon';
|
|
11
|
+
import { PanelSuccessIcon } from '@atlaskit/editor-common/icons/PanelSuccessIcon';
|
|
12
|
+
import { PanelWarningIcon } from '@atlaskit/editor-common/icons/PanelWarningIcon';
|
|
13
|
+
import { PanelSharedCssClassName } from '@atlaskit/editor-common/styles/panel';
|
|
14
|
+
import Emoji from '@atlaskit/editor-common/ui-emoji';
|
|
15
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
12
16
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
13
17
|
import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
|
|
14
18
|
import LightbulbIcon from '@atlaskit/icon/core/lightbulb';
|
package/dist/esm/panelPlugin.js
CHANGED
|
@@ -8,9 +8,11 @@ import { extendedPanelC1 } from '@atlaskit/adf-schema/extended-panel-c1';
|
|
|
8
8
|
import { extendedPanelC1WithLocalId } from '@atlaskit/adf-schema/extended-panel-c1-with-local-id';
|
|
9
9
|
import { extendedPanelWithLocalId } from '@atlaskit/adf-schema/extended-panel-with-local-id';
|
|
10
10
|
import { PanelType } from '@atlaskit/adf-schema/panel';
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
11
|
+
import { IconPanel, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning } from '@atlaskit/editor-common/assets';
|
|
12
|
+
import { TRANSFORM_STRUCTURE_PANEL_MENU_ITEM, TRANSFORM_STRUCTURE_MENU_SECTION } from '@atlaskit/editor-common/block-menu/key';
|
|
13
|
+
import { TRANSFORM_STRUCTURE_MENU_SECTION_RANK } from '@atlaskit/editor-common/block-menu/rank';
|
|
14
|
+
import IconCustomPanel from '@atlaskit/editor-common/custom-panel';
|
|
15
|
+
import { messages as blockTypeMessages } from '@atlaskit/editor-common/messages/block-type';
|
|
14
16
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
15
17
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
16
18
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
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; }
|
|
3
3
|
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; }
|
|
4
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
5
5
|
import { insertSelectedItem } from '@atlaskit/editor-common/insert';
|
|
6
|
-
import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
|
|
6
|
+
import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils/create-wrap-selection-transaction';
|
|
7
7
|
import { pickPanelTypeForInsertion } from '@atlaskit/editor-common/utils/node-type-utils';
|
|
8
8
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
9
|
export var createPanelAction = function createPanelAction(_ref) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
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; }
|
|
3
3
|
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; }
|
|
4
|
-
import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
|
|
5
4
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
6
5
|
import { createSelectionClickHandler } from '@atlaskit/editor-common/selection';
|
|
6
|
+
import { PanelSharedCssClassName } from '@atlaskit/editor-common/styles/panel';
|
|
7
7
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
8
|
import { getPanelNodeView } from '../nodeviews/panel';
|
|
9
9
|
import { pluginKey } from '../panelPluginType';
|
|
@@ -2,8 +2,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
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; }
|
|
3
3
|
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; }
|
|
4
4
|
import { PanelType } from '@atlaskit/adf-schema/panel';
|
|
5
|
-
import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
|
|
6
|
-
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
5
|
+
import { PanelSharedCssClassName } from '@atlaskit/editor-common/styles/panel';
|
|
6
|
+
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette/background';
|
|
7
7
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
8
8
|
import { findParentNode, findParentNodeOfType, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
9
9
|
import { akEditorTableContainerBg } from '@atlaskit/editor-shared-styles/consts';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
import { blockTypeMessages } from '@atlaskit/editor-common/messages';
|
|
3
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
4
|
+
import { messages as blockTypeMessages } from '@atlaskit/editor-common/messages/block-type';
|
|
5
5
|
import { pickPanelTypeForInsertion } from '@atlaskit/editor-common/utils/node-type-utils';
|
|
6
|
-
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
|
|
6
|
+
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar/toolbar-dropdown-item';
|
|
7
7
|
import InformationCircleIcon from '@atlaskit/icon/core/information-circle';
|
|
8
8
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
9
|
var NODE_NAME = 'panel';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { PanelType } from '@atlaskit/adf-schema/panel';
|
|
3
|
-
import { panelMessages as messages } from '@atlaskit/editor-common/messages';
|
|
3
|
+
import { panelMessages as messages } from '@atlaskit/editor-common/messages/panel';
|
|
4
4
|
import CrossCircleIcon from '@atlaskit/icon/core/cross-circle';
|
|
5
5
|
import CustomizeIcon from '@atlaskit/icon/core/customize';
|
|
6
6
|
import StatusDiscoveryIcon from '@atlaskit/icon/core/status-discovery';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { PanelType } from '@atlaskit/adf-schema/panel';
|
|
4
|
-
import { blockTypeMessages } from '@atlaskit/editor-common/messages';
|
|
4
|
+
import { messages as blockTypeMessages } from '@atlaskit/editor-common/messages/block-type';
|
|
5
5
|
import { createQuickInsertMatcher } from '@atlaskit/editor-common/quick-insert/create-quick-insert-matcher';
|
|
6
6
|
import { CUSTOM_PANEL_MENU_ITEM, ERROR_PANEL_MENU_ITEM, INFO_PANEL_MENU_ITEM, NOTE_PANEL_MENU_ITEM, STRUCTURE_SECTION, SUCCESS_PANEL_MENU_ITEM, WARNING_PANEL_MENU_ITEM } from '@atlaskit/editor-common/quick-insert/keys';
|
|
7
7
|
import { STRUCTURE_SECTION_RANK } from '@atlaskit/editor-common/quick-insert/rank';
|
package/dist/esm/ui/toolbar.js
CHANGED
|
@@ -4,14 +4,17 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
4
4
|
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; }
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { PanelType } from '@atlaskit/adf-schema/panel';
|
|
7
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { getPanelTypeBackgroundNoTokens } from '@atlaskit/editor-common/panel';
|
|
7
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
8
|
+
import commonMessages from '@atlaskit/editor-common/messages';
|
|
9
|
+
import { panelMessages as messages } from '@atlaskit/editor-common/messages/panel';
|
|
10
|
+
import { getPanelTypeBackgroundNoTokens } from '@atlaskit/editor-common/styles/panel';
|
|
11
11
|
import { areToolbarFlagsEnabled } from '@atlaskit/editor-common/toolbar-flag-check';
|
|
12
|
-
import { DEFAULT_BORDER_COLOR
|
|
12
|
+
import { DEFAULT_BORDER_COLOR } from '@atlaskit/editor-common/ui-color/ColorPalette/Palettes/common';
|
|
13
|
+
import { panelBackgroundPalette } from '@atlaskit/editor-common/ui-color/ColorPalette/panelBackgroundPalette';
|
|
14
|
+
import { panelBackgroundPaletteNew } from '@atlaskit/editor-common/ui-color/ColorPalette/panelBackgroundPaletteNew';
|
|
15
|
+
import { withAnalytics } from '@atlaskit/editor-common/withAnalytics';
|
|
13
16
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
14
|
-
import { akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
|
|
17
|
+
import { akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles/constants';
|
|
15
18
|
import CopyIcon from '@atlaskit/icon/core/copy';
|
|
16
19
|
import CrossCircleIcon from '@atlaskit/icon/core/cross-circle';
|
|
17
20
|
import DeleteIcon from '@atlaskit/icon/core/delete';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PanelType } from '@atlaskit/adf-schema/panel';
|
|
2
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
|
|
3
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
4
4
|
import type { PanelOptions } from '../pm-plugins/main';
|
|
5
5
|
export type DomAtPos = (pos: number) => {
|
|
6
6
|
node: HTMLElement;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { PanelAttributes } from '@atlaskit/adf-schema/panel';
|
|
3
3
|
import { PanelType } from '@atlaskit/adf-schema/panel';
|
|
4
|
-
import type { PortalProviderAPI } from '@atlaskit/editor-common/
|
|
5
|
-
import type
|
|
6
|
-
import type {
|
|
4
|
+
import type { PortalProviderAPI } from '@atlaskit/editor-common/common';
|
|
5
|
+
import type ProviderFactory from '@atlaskit/editor-common/provider-factory/provider-factory';
|
|
6
|
+
import type { getPosHandler, getPosHandlerNode } from '@atlaskit/editor-common/types/editor-plugin';
|
|
7
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
7
8
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
8
9
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
9
10
|
import type { PanelPlugin, PanelPluginOptions } from '../panelPluginType';
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { Command
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
8
|
-
import type {
|
|
1
|
+
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
3
|
+
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
4
|
+
import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types/selection';
|
|
5
|
+
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics/analyticsPlugin';
|
|
6
|
+
import type { BlockMenuPlugin } from '@atlaskit/editor-plugin-block-menu/blockMenuPluginType';
|
|
7
|
+
import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations/decorationsPlugin';
|
|
8
|
+
import type { EmojiPlugin } from '@atlaskit/editor-plugin-emoji/emojiPluginType';
|
|
9
|
+
import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection/selection-plugin-type';
|
|
10
|
+
import type { ToolbarPlugin } from '@atlaskit/editor-plugin-toolbar/toolbar-plugin-type';
|
|
9
11
|
import type { UiControlRegistryPlugin } from '@atlaskit/editor-plugin-ui-control-registry/ui-control-registry-plugin-type';
|
|
10
12
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
11
13
|
export declare const pluginKey: PluginKey;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PanelAttributes } from '@atlaskit/adf-schema/panel';
|
|
2
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import type { QuickInsertActionInsert } from '@atlaskit/editor-common/provider-factory';
|
|
4
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
3
|
+
import type { QuickInsertActionInsert } from '@atlaskit/editor-common/provider-factory/quick-insert-provider';
|
|
4
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
5
5
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
6
6
|
import type { PanelPlugin } from '../../panelPluginType';
|
|
7
7
|
export declare const createPanelAction: ({ state, attributes, api, typeAheadInsert, inputMethod, }: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import type { PortalProviderAPI } from '@atlaskit/editor-common/common';
|
|
1
2
|
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
|
-
import type
|
|
3
|
-
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
+
import type ProviderFactory from '@atlaskit/editor-common/provider-factory/provider-factory';
|
|
4
4
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
5
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
5
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
6
6
|
import type { PanelPlugin, PanelPluginOptions } from '../panelPluginType';
|
|
7
7
|
export type PanelOptions = {
|
|
8
8
|
color?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
3
3
|
import type { BlockMenuItemComponentProps } from '@atlaskit/editor-plugin-block-menu/blockMenuPluginType';
|
|
4
4
|
import type { PanelPlugin } from '../panelPluginType';
|
|
5
5
|
export declare const createPanelBlockMenuItem: (api: ExtractInjectionAPI<PanelPlugin> | undefined) => ({ isSuggested }?: BlockMenuItemComponentProps) => React.JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl';
|
|
2
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import type { Command
|
|
2
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
|
|
3
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
4
|
+
import type { FloatingToolbarDropdown } from '@atlaskit/editor-common/types/floating-toolbar';
|
|
4
5
|
type Props = {
|
|
5
6
|
activePanelType?: string;
|
|
6
7
|
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import type { MessageDescriptor } from 'react-intl';
|
|
3
3
|
import { PanelType } from '@atlaskit/adf-schema/panel';
|
|
4
4
|
import { type QuickInsertMenuItemProps } from '@atlaskit/editor-common/quick-insert/menu-item';
|
|
5
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
5
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
6
6
|
import type { PanelPlugin } from '../../panelPluginType';
|
|
7
7
|
export type QuickInsertPanelType = Exclude<PanelType, PanelType.TIP>;
|
|
8
8
|
export declare const PanelQuickInsertMenuItem: ({ api, description, icon: Icon, panelType, previewImageUrls, title, }: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
2
2
|
import type { RegisterMenuItem } from '@atlaskit/editor-ui-control-model/types';
|
|
3
3
|
import type { PanelPlugin } from '../../panelPluginType';
|
|
4
4
|
export declare const getPanelQuickInsertComponents: ({ api, allowCustomPanel, allowCustomPanelEdit, }: {
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import { PanelType } from '@atlaskit/adf-schema/panel';
|
|
3
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
import type
|
|
5
|
-
import type { Command
|
|
6
|
-
import type {
|
|
3
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
|
|
4
|
+
import type ProviderFactory from '@atlaskit/editor-common/provider-factory/provider-factory';
|
|
5
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
6
|
+
import type { FloatingToolbarConfig, FloatingToolbarItem } from '@atlaskit/editor-common/types/floating-toolbar';
|
|
7
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
8
|
+
import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations/main';
|
|
7
9
|
import type { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
8
10
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
9
11
|
import type { PanelPlugin } from '../index';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-panel",
|
|
3
|
-
"version": "28.0.
|
|
3
|
+
"version": "28.0.7",
|
|
4
4
|
"description": "Panel plugin for @atlaskit/editor-core.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
"@atlaskit/icon-lab": "^7.11.0",
|
|
38
38
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
39
39
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
40
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
40
|
+
"@atlaskit/tmp-editor-statsig": "^234.0.0",
|
|
41
41
|
"@atlaskit/tokens": "^20.4.0",
|
|
42
42
|
"@babel/runtime": "^7.0.0",
|
|
43
43
|
"uuid": "^11.1.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@atlaskit/editor-common": "^130.
|
|
46
|
+
"@atlaskit/editor-common": "^130.5.0",
|
|
47
47
|
"react": "^18.2.0 || ^19.2.0",
|
|
48
48
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
49
49
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|