@atlaskit/editor-plugin-rule 26.0.0 → 27.0.0
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 +6 -0
- package/dist/cjs/pm-plugins/commands.js +17 -17
- package/dist/cjs/pm-plugins/input-rule.js +10 -9
- package/dist/cjs/pm-plugins/keymap.js +2 -2
- package/dist/cjs/rulePlugin.js +9 -9
- package/dist/cjs/ui/quick-insert/RuleQuickInsertMenuItem.js +11 -11
- package/dist/cjs/ui/quick-insert/getRuleQuickInsertComponents.js +3 -3
- package/dist/cjs/ui/toolbar.js +4 -4
- package/dist/es2019/pm-plugins/commands.js +1 -1
- package/dist/es2019/pm-plugins/input-rule.js +3 -2
- package/dist/es2019/pm-plugins/keymap.js +1 -1
- package/dist/es2019/rulePlugin.js +2 -2
- package/dist/es2019/ui/quick-insert/RuleQuickInsertMenuItem.js +2 -2
- package/dist/es2019/ui/quick-insert/getRuleQuickInsertComponents.js +1 -1
- package/dist/es2019/ui/toolbar.js +2 -2
- package/dist/esm/pm-plugins/commands.js +1 -1
- package/dist/esm/pm-plugins/input-rule.js +3 -2
- package/dist/esm/pm-plugins/keymap.js +1 -1
- package/dist/esm/rulePlugin.js +2 -2
- package/dist/esm/ui/quick-insert/RuleQuickInsertMenuItem.js +2 -2
- package/dist/esm/ui/quick-insert/getRuleQuickInsertComponents.js +1 -1
- package/dist/esm/ui/toolbar.js +2 -2
- package/dist/types/pm-plugins/commands.d.ts +3 -3
- package/dist/types/pm-plugins/input-rule.d.ts +2 -2
- package/dist/types/pm-plugins/keymap.d.ts +1 -1
- package/dist/types/rulePluginType.d.ts +5 -5
- package/dist/types/ui/quick-insert/RuleQuickInsertMenuItem.d.ts +1 -1
- package/dist/types/ui/quick-insert/getRuleQuickInsertComponents.d.ts +1 -1
- package/dist/types/ui/toolbar.d.ts +2 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.updateHorizontalRuleWeight = exports.updateHorizontalRuleStyle = exports.updateHorizontalRuleColor = exports.removeHorizontalRule = exports.insertHorizontalRule = 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 _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
11
11
|
var _constants = require("../ui/constants");
|
|
12
12
|
var _inputRule = require("./input-rule");
|
|
@@ -35,12 +35,12 @@ var removeHorizontalRule = exports.removeHorizontalRule = function removeHorizon
|
|
|
35
35
|
if (dispatch) {
|
|
36
36
|
var deleteTr = (0, _utils.removeSelectedNode)(state.tr);
|
|
37
37
|
var payload = {
|
|
38
|
-
action:
|
|
39
|
-
actionSubject:
|
|
38
|
+
action: _enums.ACTION.DELETED,
|
|
39
|
+
actionSubject: _enums.ACTION_SUBJECT.DIVIDER,
|
|
40
40
|
attributes: {
|
|
41
|
-
inputMethod:
|
|
41
|
+
inputMethod: _enums.INPUT_METHOD.FLOATING_TB
|
|
42
42
|
},
|
|
43
|
-
eventType:
|
|
43
|
+
eventType: _enums.EVENT_TYPE.TRACK
|
|
44
44
|
};
|
|
45
45
|
editorAnalyticsAPI === null || editorAnalyticsAPI === void 0 || editorAnalyticsAPI.attachAnalyticsEvent(payload)(deleteTr);
|
|
46
46
|
dispatch(deleteTr);
|
|
@@ -65,14 +65,14 @@ var updateHorizontalRuleWeight = exports.updateHorizontalRuleWeight = function u
|
|
|
65
65
|
weight: weight
|
|
66
66
|
}));
|
|
67
67
|
editorAnalyticsAPI === null || editorAnalyticsAPI === void 0 || editorAnalyticsAPI.attachAnalyticsEvent({
|
|
68
|
-
action:
|
|
69
|
-
actionSubject:
|
|
68
|
+
action: _enums.ACTION.UPDATED,
|
|
69
|
+
actionSubject: _enums.ACTION_SUBJECT.DIVIDER,
|
|
70
70
|
attributes: {
|
|
71
|
-
inputMethod:
|
|
71
|
+
inputMethod: _enums.INPUT_METHOD.FLOATING_TB,
|
|
72
72
|
previousWeight: previousWeight,
|
|
73
73
|
weight: weight
|
|
74
74
|
},
|
|
75
|
-
eventType:
|
|
75
|
+
eventType: _enums.EVENT_TYPE.TRACK
|
|
76
76
|
})(updateTr);
|
|
77
77
|
dispatch(updateTr);
|
|
78
78
|
}
|
|
@@ -96,14 +96,14 @@ var updateHorizontalRuleStyle = exports.updateHorizontalRuleStyle = function upd
|
|
|
96
96
|
style: style
|
|
97
97
|
}));
|
|
98
98
|
editorAnalyticsAPI === null || editorAnalyticsAPI === void 0 || editorAnalyticsAPI.attachAnalyticsEvent({
|
|
99
|
-
action:
|
|
100
|
-
actionSubject:
|
|
99
|
+
action: _enums.ACTION.UPDATED,
|
|
100
|
+
actionSubject: _enums.ACTION_SUBJECT.DIVIDER,
|
|
101
101
|
attributes: {
|
|
102
|
-
inputMethod:
|
|
102
|
+
inputMethod: _enums.INPUT_METHOD.FLOATING_TB,
|
|
103
103
|
previousStyle: previousStyle,
|
|
104
104
|
style: style
|
|
105
105
|
},
|
|
106
|
-
eventType:
|
|
106
|
+
eventType: _enums.EVENT_TYPE.TRACK
|
|
107
107
|
})(updateTr);
|
|
108
108
|
dispatch(updateTr);
|
|
109
109
|
}
|
|
@@ -128,14 +128,14 @@ var updateHorizontalRuleColor = exports.updateHorizontalRuleColor = function upd
|
|
|
128
128
|
color: updatedColor
|
|
129
129
|
}));
|
|
130
130
|
editorAnalyticsAPI === null || editorAnalyticsAPI === void 0 || editorAnalyticsAPI.attachAnalyticsEvent({
|
|
131
|
-
action:
|
|
132
|
-
actionSubject:
|
|
131
|
+
action: _enums.ACTION.UPDATED,
|
|
132
|
+
actionSubject: _enums.ACTION_SUBJECT.DIVIDER,
|
|
133
133
|
attributes: {
|
|
134
|
-
inputMethod:
|
|
134
|
+
inputMethod: _enums.INPUT_METHOD.FLOATING_TB,
|
|
135
135
|
previousColor: previousColor,
|
|
136
136
|
color: updatedColor
|
|
137
137
|
},
|
|
138
|
-
eventType:
|
|
138
|
+
eventType: _enums.EVENT_TYPE.TRACK
|
|
139
139
|
})(updateTr);
|
|
140
140
|
dispatch(updateTr);
|
|
141
141
|
}
|
|
@@ -5,13 +5,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.createHorizontalRule = void 0;
|
|
7
7
|
exports.inputRulePlugin = inputRulePlugin;
|
|
8
|
-
var
|
|
8
|
+
var _enums = require("@atlaskit/editor-common/analytics/types/enums");
|
|
9
9
|
var _insert = require("@atlaskit/editor-common/insert");
|
|
10
10
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
11
11
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
12
12
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
13
13
|
var _utils2 = require("@atlaskit/editor-prosemirror/utils");
|
|
14
|
-
var
|
|
14
|
+
var _constants = require("@atlaskit/prosemirror-input-rules/constants");
|
|
15
|
+
var _utils3 = require("@atlaskit/prosemirror-input-rules/utils");
|
|
15
16
|
var createHorizontalRule = exports.createHorizontalRule = function createHorizontalRule(state, start, end, inputMethod, editorAnalyticsAPI) {
|
|
16
17
|
if (!state.selection.empty) {
|
|
17
18
|
return null;
|
|
@@ -29,13 +30,13 @@ var createHorizontalRule = exports.createHorizontalRule = function createHorizon
|
|
|
29
30
|
tr = state.tr.replaceRange(start, end, new _model.Slice(_model.Fragment.from(state.schema.nodes.rule.createChecked()), 0, 0));
|
|
30
31
|
}
|
|
31
32
|
editorAnalyticsAPI === null || editorAnalyticsAPI === void 0 || editorAnalyticsAPI.attachAnalyticsEvent({
|
|
32
|
-
action:
|
|
33
|
-
actionSubject:
|
|
34
|
-
actionSubjectId:
|
|
33
|
+
action: _enums.ACTION.INSERTED,
|
|
34
|
+
actionSubject: _enums.ACTION_SUBJECT.DOCUMENT,
|
|
35
|
+
actionSubjectId: _enums.ACTION_SUBJECT_ID.DIVIDER,
|
|
35
36
|
attributes: {
|
|
36
37
|
inputMethod: inputMethod
|
|
37
38
|
},
|
|
38
|
-
eventType:
|
|
39
|
+
eventType: _enums.EVENT_TYPE.TRACK
|
|
39
40
|
})(tr);
|
|
40
41
|
return tr;
|
|
41
42
|
};
|
|
@@ -44,7 +45,7 @@ var createHorizontalRuleAutoformat = function createHorizontalRuleAutoformat(sta
|
|
|
44
45
|
if ((0, _utils2.hasParentNodeOfType)(listItem)(state.selection)) {
|
|
45
46
|
return null;
|
|
46
47
|
}
|
|
47
|
-
return createHorizontalRule(state, start, end,
|
|
48
|
+
return createHorizontalRule(state, start, end, _enums.INPUT_METHOD.FORMATTING, editorAnalyticsAPI);
|
|
48
49
|
};
|
|
49
50
|
|
|
50
51
|
// eslint-disable-next-line require-unicode-regexp
|
|
@@ -61,7 +62,7 @@ function inputRulePlugin(schema, editorAnalyticsAPI) {
|
|
|
61
62
|
rules.push((0, _utils.createRule)(
|
|
62
63
|
// Ignored via go/ees005
|
|
63
64
|
// eslint-disable-next-line require-unicode-regexp
|
|
64
|
-
new RegExp("".concat(
|
|
65
|
+
new RegExp("".concat(_constants.leafNodeReplacementCharacter, "(\\-\\-\\-|\\*\\*\\*)")), function (state, _match, start, end) {
|
|
65
66
|
var hardBreak = state.schema.nodes.hardBreak;
|
|
66
67
|
// Ignored via go/ees005
|
|
67
68
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
@@ -72,7 +73,7 @@ function inputRulePlugin(schema, editorAnalyticsAPI) {
|
|
|
72
73
|
}));
|
|
73
74
|
}
|
|
74
75
|
if (rules.length !== 0) {
|
|
75
|
-
return new _safePlugin.SafePlugin((0,
|
|
76
|
+
return new _safePlugin.SafePlugin((0, _utils3.createPlugin)('rule', rules, {
|
|
76
77
|
isBlockNodeRule: true
|
|
77
78
|
}));
|
|
78
79
|
}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
exports.keymapPlugin = keymapPlugin;
|
|
8
|
-
var
|
|
8
|
+
var _enums = require("@atlaskit/editor-common/analytics/types/enums");
|
|
9
9
|
var _keymaps = require("@atlaskit/editor-common/keymaps");
|
|
10
10
|
var _keymap = require("@atlaskit/editor-prosemirror/keymap");
|
|
11
11
|
var _commands = require("./commands");
|
|
@@ -14,7 +14,7 @@ function keymapPlugin(editorAnalyticsAPI) {
|
|
|
14
14
|
(0, _keymaps.bindKeymapWithCommand)(
|
|
15
15
|
// Ignored via go/ees005
|
|
16
16
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
17
|
-
_keymaps.insertRule.common, (0, _commands.insertHorizontalRule)(editorAnalyticsAPI)(
|
|
17
|
+
_keymaps.insertRule.common, (0, _commands.insertHorizontalRule)(editorAnalyticsAPI)(_enums.INPUT_METHOD.SHORTCUT), list);
|
|
18
18
|
|
|
19
19
|
// Ignored via go/ees005
|
|
20
20
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
package/dist/cjs/rulePlugin.js
CHANGED
|
@@ -8,9 +8,9 @@ exports.rulePlugin = void 0;
|
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _rule = require("@atlaskit/adf-schema/rule");
|
|
11
|
-
var
|
|
11
|
+
var _enums = require("@atlaskit/editor-common/analytics/types/enums");
|
|
12
12
|
var _assets = require("@atlaskit/editor-common/assets");
|
|
13
|
-
var
|
|
13
|
+
var _insertBlock = require("@atlaskit/editor-common/messages/insert-block");
|
|
14
14
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
15
15
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
16
16
|
var _commands = require("./pm-plugins/commands");
|
|
@@ -69,8 +69,8 @@ var rulePlugin = exports.rulePlugin = function rulePlugin(_ref) {
|
|
|
69
69
|
var formatMessage = _ref3.formatMessage;
|
|
70
70
|
return [{
|
|
71
71
|
id: 'rule',
|
|
72
|
-
title: formatMessage(
|
|
73
|
-
description: formatMessage(
|
|
72
|
+
title: formatMessage(_insertBlock.toolbarInsertBlockMessages.horizontalRule),
|
|
73
|
+
description: formatMessage(_insertBlock.toolbarInsertBlockMessages.horizontalRuleDescription),
|
|
74
74
|
keywords: ['horizontal', 'rule', 'line', 'hr'],
|
|
75
75
|
priority: 1200,
|
|
76
76
|
keyshortcut: '---',
|
|
@@ -81,13 +81,13 @@ var rulePlugin = exports.rulePlugin = function rulePlugin(_ref) {
|
|
|
81
81
|
var _api$analytics4;
|
|
82
82
|
var tr = insert(state.schema.nodes.rule.createChecked());
|
|
83
83
|
api === null || api === void 0 || (_api$analytics4 = api.analytics) === null || _api$analytics4 === void 0 || _api$analytics4.actions.attachAnalyticsEvent({
|
|
84
|
-
action:
|
|
85
|
-
actionSubject:
|
|
86
|
-
actionSubjectId:
|
|
84
|
+
action: _enums.ACTION.INSERTED,
|
|
85
|
+
actionSubject: _enums.ACTION_SUBJECT.DOCUMENT,
|
|
86
|
+
actionSubjectId: _enums.ACTION_SUBJECT_ID.DIVIDER,
|
|
87
87
|
attributes: {
|
|
88
|
-
inputMethod: source !== null && source !== void 0 ? source :
|
|
88
|
+
inputMethod: source !== null && source !== void 0 ? source : _enums.INPUT_METHOD.QUICK_INSERT
|
|
89
89
|
},
|
|
90
|
-
eventType:
|
|
90
|
+
eventType: _enums.EVENT_TYPE.TRACK
|
|
91
91
|
})(tr);
|
|
92
92
|
return tr;
|
|
93
93
|
}
|
|
@@ -8,10 +8,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.RuleQuickInsertMenuItem = void 0;
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _reactIntl = require("react-intl");
|
|
11
|
-
var
|
|
12
|
-
var
|
|
11
|
+
var _enums = require("@atlaskit/editor-common/analytics/types/enums");
|
|
12
|
+
var _insertBlock = require("@atlaskit/editor-common/messages/insert-block");
|
|
13
13
|
var _menuItem = require("@atlaskit/editor-common/quick-insert/menu-item");
|
|
14
|
-
var
|
|
14
|
+
var _messages = require("@atlaskit/editor-common/quick-insert/messages");
|
|
15
15
|
var _minus = _interopRequireDefault(require("@atlaskit/icon/core/minus"));
|
|
16
16
|
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); }
|
|
17
17
|
var RuleQuickInsertMenuItem = exports.RuleQuickInsertMenuItem = function RuleQuickInsertMenuItem(_ref) {
|
|
@@ -23,7 +23,7 @@ var RuleQuickInsertMenuItem = exports.RuleQuickInsertMenuItem = function RuleQui
|
|
|
23
23
|
return previewImageUrls ? {
|
|
24
24
|
image: previewImageUrls,
|
|
25
25
|
attribution: {
|
|
26
|
-
name: formatMessage(
|
|
26
|
+
name: formatMessage(_messages.messages.previewAttributionAtlassian)
|
|
27
27
|
}
|
|
28
28
|
} : undefined;
|
|
29
29
|
}, [formatMessage, previewImageUrls]);
|
|
@@ -34,24 +34,24 @@ var RuleQuickInsertMenuItem = exports.RuleQuickInsertMenuItem = function RuleQui
|
|
|
34
34
|
source = _ref2.source;
|
|
35
35
|
var tr = insert(editorView.state.schema.nodes.rule.createChecked());
|
|
36
36
|
api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 || _api$analytics.actions.attachAnalyticsEvent({
|
|
37
|
-
action:
|
|
38
|
-
actionSubject:
|
|
39
|
-
actionSubjectId:
|
|
37
|
+
action: _enums.ACTION.INSERTED,
|
|
38
|
+
actionSubject: _enums.ACTION_SUBJECT.DOCUMENT,
|
|
39
|
+
actionSubjectId: _enums.ACTION_SUBJECT_ID.DIVIDER,
|
|
40
40
|
attributes: {
|
|
41
|
-
inputMethod: source !== null && source !== void 0 ? source :
|
|
41
|
+
inputMethod: source !== null && source !== void 0 ? source : _enums.INPUT_METHOD.QUICK_INSERT
|
|
42
42
|
},
|
|
43
|
-
eventType:
|
|
43
|
+
eventType: _enums.EVENT_TYPE.TRACK
|
|
44
44
|
})(tr);
|
|
45
45
|
return tr;
|
|
46
46
|
}, [api]);
|
|
47
47
|
return /*#__PURE__*/_react.default.createElement(_menuItem.QuickInsertMenuItem, {
|
|
48
|
-
description: formatMessage(
|
|
48
|
+
description: formatMessage(_insertBlock.toolbarInsertBlockMessages.horizontalRuleDescription),
|
|
49
49
|
iconBefore: /*#__PURE__*/_react.default.createElement(_minus.default, {
|
|
50
50
|
label: ""
|
|
51
51
|
}),
|
|
52
52
|
onSelect: onSelect,
|
|
53
53
|
preview: preview,
|
|
54
54
|
shortcut: "---",
|
|
55
|
-
title: formatMessage(
|
|
55
|
+
title: formatMessage(_insertBlock.toolbarInsertBlockMessages.horizontalRule)
|
|
56
56
|
});
|
|
57
57
|
};
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.getRuleQuickInsertComponents = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _insertBlock = require("@atlaskit/editor-common/messages/insert-block");
|
|
10
10
|
var _createQuickInsertMatcher = require("@atlaskit/editor-common/quick-insert/create-quick-insert-matcher");
|
|
11
11
|
var _keys = require("@atlaskit/editor-common/quick-insert/keys");
|
|
12
12
|
var _rank = require("@atlaskit/editor-common/quick-insert/rank");
|
|
@@ -28,10 +28,10 @@ var getRuleQuickInsertComponents = exports.getRuleQuickInsertComponents = functi
|
|
|
28
28
|
match: (0, _createQuickInsertMatcher.createQuickInsertMatcher)(function (_ref2) {
|
|
29
29
|
var formatMessage = _ref2.formatMessage;
|
|
30
30
|
return {
|
|
31
|
-
description: formatMessage(
|
|
31
|
+
description: formatMessage(_insertBlock.toolbarInsertBlockMessages.horizontalRuleDescription),
|
|
32
32
|
keywords: ['horizontal', 'rule', 'line', 'hr'],
|
|
33
33
|
shortcut: '---',
|
|
34
|
-
title: formatMessage(
|
|
34
|
+
title: formatMessage(_insertBlock.toolbarInsertBlockMessages.horizontalRule)
|
|
35
35
|
};
|
|
36
36
|
}),
|
|
37
37
|
component: function component() {
|
package/dist/cjs/ui/toolbar.js
CHANGED
|
@@ -7,12 +7,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.getToolbarConfig = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
var
|
|
10
|
+
var _enums = require("@atlaskit/editor-common/analytics/types/enums");
|
|
11
11
|
var _messages = _interopRequireDefault(require("@atlaskit/editor-common/messages"));
|
|
12
12
|
var _rule = require("@atlaskit/editor-common/messages/rule");
|
|
13
13
|
var _text = require("@atlaskit/editor-palette/text");
|
|
14
14
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
15
|
-
var
|
|
15
|
+
var _constants = require("@atlaskit/editor-shared-styles/constants");
|
|
16
16
|
var _copy = _interopRequireDefault(require("@atlaskit/icon/core/copy"));
|
|
17
17
|
var _customize = _interopRequireDefault(require("@atlaskit/icon/core/customize"));
|
|
18
18
|
var _delete = _interopRequireDefault(require("@atlaskit/icon/core/delete"));
|
|
@@ -96,10 +96,10 @@ var getToolbarItems = function getToolbarItems(formatMessage, ruleNodeType, rule
|
|
|
96
96
|
}),
|
|
97
97
|
onClick: function onClick() {
|
|
98
98
|
var _api$core, _api$floatingToolbar;
|
|
99
|
-
api === null || api === void 0 || (_api$core = api.core) === null || _api$core === void 0 || _api$core.actions.execute(api === null || api === void 0 || (_api$floatingToolbar = api.floatingToolbar) === null || _api$floatingToolbar === void 0 ? void 0 : _api$floatingToolbar.commands.copyNode(ruleNodeType,
|
|
99
|
+
api === null || api === void 0 || (_api$core = api.core) === null || _api$core === void 0 || _api$core.actions.execute(api === null || api === void 0 || (_api$floatingToolbar = api.floatingToolbar) === null || _api$floatingToolbar === void 0 ? void 0 : _api$floatingToolbar.commands.copyNode(ruleNodeType, _enums.INPUT_METHOD.FLOATING_TB));
|
|
100
100
|
return true;
|
|
101
101
|
}
|
|
102
|
-
}, hoverDecorationProps(
|
|
102
|
+
}, hoverDecorationProps(_constants.akEditorSelectedNodeClassName)), _objectSpread({
|
|
103
103
|
title: formatMessage(_messages.default.delete),
|
|
104
104
|
icon: /*#__PURE__*/_react.default.createElement(_delete.default, {
|
|
105
105
|
label: ""
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
2
|
import { findSelectedNodeOfType, removeSelectedNode } from '@atlaskit/editor-prosemirror/utils';
|
|
3
3
|
import { DEFAULT_DIVIDER_STYLE, DEFAULT_DIVIDER_WEIGHT } from '../ui/constants';
|
|
4
4
|
import { createHorizontalRule } from './input-rule';
|
|
@@ -1,10 +1,11 @@
|
|
|
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 { safeInsert } from '@atlaskit/editor-common/insert';
|
|
3
3
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
4
|
import { createRule } from '@atlaskit/editor-common/utils';
|
|
5
5
|
import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
6
6
|
import { hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
7
|
-
import {
|
|
7
|
+
import { leafNodeReplacementCharacter } from '@atlaskit/prosemirror-input-rules/constants';
|
|
8
|
+
import { createPlugin } from '@atlaskit/prosemirror-input-rules/utils';
|
|
8
9
|
export const createHorizontalRule = (state, start, end, inputMethod, editorAnalyticsAPI) => {
|
|
9
10
|
if (!state.selection.empty) {
|
|
10
11
|
return null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
2
|
import { bindKeymapWithCommand, escape, insertRule } from '@atlaskit/editor-common/keymaps';
|
|
3
3
|
import { keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
4
4
|
import { insertHorizontalRule } from './commands';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { rule, ruleWithAttrs, ruleWithLocalId } from '@atlaskit/adf-schema/rule';
|
|
3
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
4
4
|
import { IconDivider } from '@atlaskit/editor-common/assets';
|
|
5
|
-
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
5
|
+
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages/insert-block';
|
|
6
6
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
8
|
import { insertHorizontalRule } from './pm-plugins/commands';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useCallback, useMemo } from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
3
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
4
|
+
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages/insert-block';
|
|
5
5
|
import { QuickInsertMenuItem } from '@atlaskit/editor-common/quick-insert/menu-item';
|
|
6
6
|
import { messages as quickInsertMessages } from '@atlaskit/editor-common/quick-insert/messages';
|
|
7
7
|
import MinusIcon from '@atlaskit/icon/core/minus';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
2
|
+
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages/insert-block';
|
|
3
3
|
import { createQuickInsertMatcher } from '@atlaskit/editor-common/quick-insert/create-quick-insert-matcher';
|
|
4
4
|
import { RULE_MENU_ITEM, STRUCTURE_SECTION } from '@atlaskit/editor-common/quick-insert/keys';
|
|
5
5
|
import { STRUCTURE_SECTION_RANK } from '@atlaskit/editor-common/quick-insert/rank';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
3
3
|
import commonMessages from '@atlaskit/editor-common/messages';
|
|
4
4
|
import { ruleMessages } from '@atlaskit/editor-common/messages/rule';
|
|
5
5
|
import { hexToEditorTextPaletteColor } from '@atlaskit/editor-palette/text';
|
|
6
6
|
import { findDomRefAtPos, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
7
|
-
import { akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
|
|
7
|
+
import { akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles/constants';
|
|
8
8
|
import CopyIcon from '@atlaskit/icon/core/copy';
|
|
9
9
|
import CustomizeIcon from '@atlaskit/icon/core/customize';
|
|
10
10
|
import DeleteIcon from '@atlaskit/icon/core/delete';
|
|
@@ -1,7 +1,7 @@
|
|
|
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';
|
|
4
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
5
5
|
import { findSelectedNodeOfType, removeSelectedNode } from '@atlaskit/editor-prosemirror/utils';
|
|
6
6
|
import { DEFAULT_DIVIDER_STYLE, DEFAULT_DIVIDER_WEIGHT } from '../ui/constants';
|
|
7
7
|
import { createHorizontalRule } from './input-rule';
|
|
@@ -1,10 +1,11 @@
|
|
|
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 { safeInsert } from '@atlaskit/editor-common/insert';
|
|
3
3
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
4
|
import { createRule } from '@atlaskit/editor-common/utils';
|
|
5
5
|
import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
6
6
|
import { hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
7
|
-
import {
|
|
7
|
+
import { leafNodeReplacementCharacter } from '@atlaskit/prosemirror-input-rules/constants';
|
|
8
|
+
import { createPlugin } from '@atlaskit/prosemirror-input-rules/utils';
|
|
8
9
|
export var createHorizontalRule = function createHorizontalRule(state, start, end, inputMethod, editorAnalyticsAPI) {
|
|
9
10
|
if (!state.selection.empty) {
|
|
10
11
|
return null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
2
|
import { bindKeymapWithCommand, escape, insertRule } from '@atlaskit/editor-common/keymaps';
|
|
3
3
|
import { keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
4
4
|
import { insertHorizontalRule } from './commands';
|
package/dist/esm/rulePlugin.js
CHANGED
|
@@ -3,9 +3,9 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
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 React from 'react';
|
|
5
5
|
import { rule, ruleWithAttrs, ruleWithLocalId } from '@atlaskit/adf-schema/rule';
|
|
6
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
6
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
7
7
|
import { IconDivider } from '@atlaskit/editor-common/assets';
|
|
8
|
-
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
8
|
+
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages/insert-block';
|
|
9
9
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
10
10
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
11
11
|
import { insertHorizontalRule } from './pm-plugins/commands';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useCallback, useMemo } from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
3
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
4
|
+
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages/insert-block';
|
|
5
5
|
import { QuickInsertMenuItem } from '@atlaskit/editor-common/quick-insert/menu-item';
|
|
6
6
|
import { messages as quickInsertMessages } from '@atlaskit/editor-common/quick-insert/messages';
|
|
7
7
|
import MinusIcon from '@atlaskit/icon/core/minus';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
2
|
+
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages/insert-block';
|
|
3
3
|
import { createQuickInsertMatcher } from '@atlaskit/editor-common/quick-insert/create-quick-insert-matcher';
|
|
4
4
|
import { RULE_MENU_ITEM, STRUCTURE_SECTION } from '@atlaskit/editor-common/quick-insert/keys';
|
|
5
5
|
import { STRUCTURE_SECTION_RANK } from '@atlaskit/editor-common/quick-insert/rank';
|
package/dist/esm/ui/toolbar.js
CHANGED
|
@@ -2,12 +2,12 @@ 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 React from 'react';
|
|
5
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
5
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
6
6
|
import commonMessages from '@atlaskit/editor-common/messages';
|
|
7
7
|
import { ruleMessages } from '@atlaskit/editor-common/messages/rule';
|
|
8
8
|
import { hexToEditorTextPaletteColor } from '@atlaskit/editor-palette/text';
|
|
9
9
|
import { findDomRefAtPos, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
10
|
-
import { akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
|
|
10
|
+
import { akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles/constants';
|
|
11
11
|
import CopyIcon from '@atlaskit/icon/core/copy';
|
|
12
12
|
import CustomizeIcon from '@atlaskit/icon/core/customize';
|
|
13
13
|
import DeleteIcon from '@atlaskit/icon/core/delete';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
|
|
2
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
3
|
+
import type { Command } from '@atlaskit/editor-common/types/command';
|
|
4
4
|
import { type DividerStyle, type DividerWeight } from '../ui/constants';
|
|
5
5
|
export declare const insertHorizontalRule: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod: INPUT_METHOD.ELEMENT_BROWSER | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.SHORTCUT) => Command;
|
|
6
6
|
export declare const removeHorizontalRule: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
|
|
2
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
3
3
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
4
|
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
5
5
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics/api';
|
|
2
2
|
import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
3
|
export declare function keymapPlugin(editorAnalyticsAPI: EditorAnalyticsAPI | undefined): SafePlugin;
|
|
4
4
|
export default keymapPlugin;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
|
-
import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
4
|
-
import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
5
|
-
import type { UiControlRegistryPlugin } from '@atlaskit/editor-plugin-ui-control-registry';
|
|
1
|
+
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
2
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics/analyticsPluginType';
|
|
3
|
+
import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations/decorationsPluginType';
|
|
4
|
+
import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar/floatingToolbarPluginType';
|
|
5
|
+
import type { UiControlRegistryPlugin } from '@atlaskit/editor-plugin-ui-control-registry/ui-control-registry-plugin-type';
|
|
6
6
|
import type { insertHorizontalRule } from './pm-plugins/commands';
|
|
7
7
|
type RulePluginDependencies = [
|
|
8
8
|
OptionalPlugin<AnalyticsPlugin>,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type QuickInsertMenuItemProps } from '@atlaskit/editor-common/quick-insert/menu-item';
|
|
3
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
4
4
|
import type { RulePlugin } from '../../rulePluginType';
|
|
5
5
|
export declare const RuleQuickInsertMenuItem: ({ api, previewImageUrls, }: {
|
|
6
6
|
api: ExtractInjectionAPI<RulePlugin> | undefined;
|
|
@@ -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 { RulePlugin } from '../../rulePluginType';
|
|
4
4
|
export declare const getRuleQuickInsertComponents: ({ api, }: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl';
|
|
2
|
-
import type {
|
|
2
|
+
import type { FloatingToolbarConfig } from '@atlaskit/editor-common/types/floating-toolbar';
|
|
3
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
3
4
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
4
5
|
import type { RulePlugin } from '../rulePluginType';
|
|
5
6
|
export declare const getToolbarConfig: (state: EditorState, intl: IntlShape, api?: ExtractInjectionAPI<RulePlugin>) => FloatingToolbarConfig | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-rule",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "27.0.0",
|
|
4
4
|
"description": "Rule plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -23,23 +23,23 @@
|
|
|
23
23
|
"@atlaskit/button": "^25.4.0",
|
|
24
24
|
"@atlaskit/css": "^1.1.0",
|
|
25
25
|
"@atlaskit/editor-palette": "^3.5.0",
|
|
26
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
27
|
-
"@atlaskit/editor-plugin-floating-toolbar": "^
|
|
28
|
-
"@atlaskit/editor-plugin-ui-control-registry": "^
|
|
26
|
+
"@atlaskit/editor-plugin-analytics": "^27.0.0",
|
|
27
|
+
"@atlaskit/editor-plugin-floating-toolbar": "^29.0.0",
|
|
28
|
+
"@atlaskit/editor-plugin-ui-control-registry": "^21.0.0",
|
|
29
29
|
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
30
|
-
"@atlaskit/editor-shared-styles": "^4.
|
|
30
|
+
"@atlaskit/editor-shared-styles": "^4.4.0",
|
|
31
31
|
"@atlaskit/icon": "^38.0.0",
|
|
32
32
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
33
33
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
34
34
|
"@atlaskit/primitives": "^22.5.0",
|
|
35
35
|
"@atlaskit/prosemirror-input-rules": "^4.1.0",
|
|
36
|
-
"@atlaskit/tokens": "^20.
|
|
36
|
+
"@atlaskit/tokens": "^20.5.0",
|
|
37
37
|
"@babel/runtime": "^7.0.0",
|
|
38
38
|
"@compiled/react": "^1.0.2",
|
|
39
39
|
"react-intl": "^7.0.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@atlaskit/editor-common": "^
|
|
42
|
+
"@atlaskit/editor-common": "^131.0.0",
|
|
43
43
|
"react": "^18.2.0 || ^19.2.0",
|
|
44
44
|
"react-dom": "^18.2.0 || ^19.2.0"
|
|
45
45
|
},
|