@atlaskit/editor-common 82.12.0 → 82.14.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 +25 -0
- package/afm-jira/tsconfig.json +150 -0
- package/dist/cjs/extensibility/Extension/Extension/index.js +0 -43
- package/dist/cjs/extensibility/MultiBodiedExtension/index.js +1 -45
- package/dist/cjs/messages/highlight.js +5 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/extensibility/Extension/Extension/index.js +0 -45
- package/dist/es2019/extensibility/MultiBodiedExtension/index.js +1 -47
- package/dist/es2019/messages/highlight.js +5 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/extensibility/Extension/Extension/index.js +0 -44
- package/dist/esm/extensibility/MultiBodiedExtension/index.js +1 -46
- package/dist/esm/messages/highlight.js +5 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/extensibility/Extension/Extension/index.d.ts +0 -3
- package/dist/types/extensibility/MultiBodiedExtension/index.d.ts +0 -3
- package/dist/types/messages/highlight.d.ts +5 -0
- package/dist/types/portal/PortalManager.d.ts +3 -3
- package/dist/types/types/annotation/index.d.ts +2 -0
- package/dist/types-ts4.5/extensibility/Extension/Extension/index.d.ts +0 -3
- package/dist/types-ts4.5/extensibility/MultiBodiedExtension/index.d.ts +0 -3
- package/dist/types-ts4.5/messages/highlight.d.ts +5 -0
- package/dist/types-ts4.5/portal/PortalManager.d.ts +3 -3
- package/dist/types-ts4.5/types/annotation/index.d.ts +2 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 82.14.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#114477](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114477)
|
|
8
|
+
[`33e0090cf80ef`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/33e0090cf80ef) -
|
|
9
|
+
ED-23785 - add `inlineNodeTypes` to `InlineCommentSelectionComponentProps`
|
|
10
|
+
|
|
11
|
+
## 82.13.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#113571](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/113571)
|
|
16
|
+
[`67a148fad7f47`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/67a148fad7f47) -
|
|
17
|
+
ED-23785 - add `inlineNodeTypes` to `InlineCommentSelectionComponentProps`
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- [#114315](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114315)
|
|
22
|
+
[`5a42f41565210`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5a42f41565210) -
|
|
23
|
+
[ux] [ED-23759] Add localisation string for text highlighting floating toolbar experiment
|
|
24
|
+
- [#114122](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114122)
|
|
25
|
+
[`cf80fda06fa1d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cf80fda06fa1d) -
|
|
26
|
+
Cleaning up unused code using WithPluginState for extensions
|
|
27
|
+
|
|
3
28
|
## 82.12.0
|
|
4
29
|
|
|
5
30
|
### Minor Changes
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.entry-points.jira.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"target": "es5",
|
|
6
|
+
"outDir": "../../../../../tsDist/@atlaskit__editor-common/app",
|
|
7
|
+
"composite": true,
|
|
8
|
+
"rootDir": "../"
|
|
9
|
+
},
|
|
10
|
+
"include": [
|
|
11
|
+
"../src/**/*.ts",
|
|
12
|
+
"../src/**/*.tsx"
|
|
13
|
+
],
|
|
14
|
+
"exclude": [
|
|
15
|
+
"../src/**/__tests__/*",
|
|
16
|
+
"../src/**/*.test.*",
|
|
17
|
+
"../src/**/test.*"
|
|
18
|
+
],
|
|
19
|
+
"references": [
|
|
20
|
+
{
|
|
21
|
+
"path": "../../activity-provider/afm-jira/tsconfig.json"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"path": "../../adf-utils/afm-jira/tsconfig.json"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"path": "../../../analytics/analytics-listeners/afm-jira/tsconfig.json"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"path": "../../../analytics/analytics-namespaced-context/afm-jira/tsconfig.json"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"path": "../../../analytics/analytics-next/afm-jira/tsconfig.json"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"path": "../../../design-system/button/afm-jira/tsconfig.json"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"path": "../../../design-system/code/afm-jira/tsconfig.json"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"path": "../../../monorepo-tooling/codemod-utils/afm-jira/tsconfig.json"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"path": "../../custom-steps/afm-jira/tsconfig.json"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"path": "../../editor-json-transformer/afm-jira/tsconfig.json"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"path": "../../editor-palette/afm-jira/tsconfig.json"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"path": "../../editor-shared-styles/afm-jira/tsconfig.json"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"path": "../../editor-tables/afm-jira/tsconfig.json"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"path": "../../../elements/emoji/afm-jira/tsconfig.json"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"path": "../../../design-system/icon/afm-jira/tsconfig.json"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"path": "../../../design-system/icon-object/afm-jira/tsconfig.json"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"path": "../../../linking-platform/link-datasource/afm-jira/tsconfig.json"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"path": "../../../linking-platform/link-picker/afm-jira/tsconfig.json"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"path": "../../../media/media-card/afm-jira/tsconfig.json"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"path": "../../../media/media-client/afm-jira/tsconfig.json"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"path": "../../../media/media-client-react/afm-jira/tsconfig.json"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"path": "../../../media/media-common/afm-jira/tsconfig.json"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"path": "../../../media/media-file-preview/afm-jira/tsconfig.json"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"path": "../../../media/media-picker/afm-jira/tsconfig.json"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"path": "../../../media/media-ui/afm-jira/tsconfig.json"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"path": "../../../media/media-viewer/afm-jira/tsconfig.json"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"path": "../../../elements/mention/afm-jira/tsconfig.json"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"path": "../../../design-system/menu/afm-jira/tsconfig.json"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"path": "../../../platform/feature-flags/afm-jira/tsconfig.json"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"path": "../../../design-system/primitives/afm-jira/tsconfig.json"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"path": "../../../people-and-teams/profilecard/afm-jira/tsconfig.json"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"path": "../../../design-system/section-message/afm-jira/tsconfig.json"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"path": "../../../linking-platform/smart-card/afm-jira/tsconfig.json"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"path": "../../../smart-experiences/smart-user-picker/afm-jira/tsconfig.json"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"path": "../../../design-system/spinner/afm-jira/tsconfig.json"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"path": "../../../elements/task-decision/afm-jira/tsconfig.json"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"path": "../../../design-system/textfield/afm-jira/tsconfig.json"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"path": "../../../design-system/theme/afm-jira/tsconfig.json"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"path": "../../../design-system/tokens/afm-jira/tsconfig.json"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"path": "../../../design-system/tooltip/afm-jira/tsconfig.json"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"path": "../../../data/ufo-external/afm-jira/tsconfig.json"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"path": "../../../design-system/width-detector/afm-jira/tsconfig.json"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"path": "../../../media/media-core/afm-jira/tsconfig.json"
|
|
148
|
+
}
|
|
149
|
+
]
|
|
150
|
+
}
|
|
@@ -12,7 +12,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _react2 = require("@emotion/react");
|
|
14
14
|
var _classnames2 = _interopRequireDefault(require("classnames"));
|
|
15
|
-
var _withPluginState = require("../../..//with-plugin-state");
|
|
16
15
|
var _hooks = require("../../../hooks");
|
|
17
16
|
var _ui = require("../../../ui");
|
|
18
17
|
var _utils = require("../../../utils");
|
|
@@ -165,14 +164,6 @@ function ExtensionWithPluginState(props) {
|
|
|
165
164
|
})))));
|
|
166
165
|
}
|
|
167
166
|
var Extension = function Extension(props) {
|
|
168
|
-
// TODO: ED-17836 This code is here because confluence injects
|
|
169
|
-
// the `editor-referentiality` plugin via `dangerouslyAppendPlugins`
|
|
170
|
-
// which cannot access the `pluginInjectionApi`. When we move
|
|
171
|
-
// Confluence to using presets we can remove this workaround.
|
|
172
|
-
var pluginInjectionApi = props.pluginInjectionApi;
|
|
173
|
-
return pluginInjectionApi === undefined ? (0, _react2.jsx)(ExtensionDeprecated, props) : (0, _react2.jsx)(ExtensionWithSharedState, props);
|
|
174
|
-
};
|
|
175
|
-
var ExtensionWithSharedState = function ExtensionWithSharedState(props) {
|
|
176
167
|
var pluginInjectionApi = props.pluginInjectionApi;
|
|
177
168
|
var _useSharedPluginState = (0, _hooks.useSharedPluginState)(pluginInjectionApi, ['width']),
|
|
178
169
|
widthState = _useSharedPluginState.widthState;
|
|
@@ -180,40 +171,6 @@ var ExtensionWithSharedState = function ExtensionWithSharedState(props) {
|
|
|
180
171
|
widthState: widthState
|
|
181
172
|
}, props));
|
|
182
173
|
};
|
|
183
|
-
|
|
184
|
-
// TODO: ED-17836 This code is here because Confluence injects
|
|
185
|
-
// the `editor-referentiality` plugin via `dangerouslyAppendPlugins`
|
|
186
|
-
// which cannot access the `pluginInjectionApi`. When we move
|
|
187
|
-
// Confluence to using presets we can remove this workaround.
|
|
188
|
-
// @ts-ignore
|
|
189
|
-
var widthPluginKey = {
|
|
190
|
-
key: 'widthPlugin$',
|
|
191
|
-
getState: function getState(state) {
|
|
192
|
-
return state['widthPlugin$'];
|
|
193
|
-
}
|
|
194
|
-
};
|
|
195
|
-
var ExtensionDeprecated = function ExtensionDeprecated(props) {
|
|
196
|
-
return (
|
|
197
|
-
// @ts-ignore - 'WithPluginState' cannot be used as a JSX component.
|
|
198
|
-
// This error was introduced after upgrading to TypeScript 5
|
|
199
|
-
(0, _react2.jsx)(_withPluginState.WithPluginState, {
|
|
200
|
-
editorView: props.view,
|
|
201
|
-
plugins: {
|
|
202
|
-
widthState: widthPluginKey
|
|
203
|
-
},
|
|
204
|
-
render: function render(_ref2) {
|
|
205
|
-
var widthState = _ref2.widthState;
|
|
206
|
-
return (0, _react2.jsx)(ExtensionWithPluginState, (0, _extends2.default)({
|
|
207
|
-
widthState: widthState
|
|
208
|
-
}, props));
|
|
209
|
-
}
|
|
210
|
-
})
|
|
211
|
-
);
|
|
212
|
-
};
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* End workaround
|
|
216
|
-
*/
|
|
217
174
|
var _default = exports.default = (0, _ui.overflowShadow)(Extension, {
|
|
218
175
|
overflowSelector: '.extension-overflow-wrapper'
|
|
219
176
|
});
|
|
@@ -18,7 +18,6 @@ var _file = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/file"));
|
|
|
18
18
|
var _hooks = require("../../hooks");
|
|
19
19
|
var _MultiBodiedExtension = require("../../ui/MultiBodiedExtension");
|
|
20
20
|
var _utils = require("../../utils");
|
|
21
|
-
var _withPluginState = require("../../with-plugin-state");
|
|
22
21
|
var _Lozenge = _interopRequireDefault(require("../Extension/Lozenge"));
|
|
23
22
|
var _actionApi = require("./action-api");
|
|
24
23
|
var _styles = require("./styles");
|
|
@@ -213,7 +212,7 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref)
|
|
|
213
212
|
ref: articleRef
|
|
214
213
|
}))));
|
|
215
214
|
};
|
|
216
|
-
var
|
|
215
|
+
var MultiBodiedExtension = function MultiBodiedExtension(props) {
|
|
217
216
|
var pluginInjectionApi = props.pluginInjectionApi;
|
|
218
217
|
var _useSharedPluginState = (0, _hooks.useSharedPluginState)(pluginInjectionApi, ['width']),
|
|
219
218
|
widthState = _useSharedPluginState.widthState;
|
|
@@ -221,47 +220,4 @@ var MultiBodiedExtensionWithSharedState = function MultiBodiedExtensionWithShare
|
|
|
221
220
|
widthState: widthState
|
|
222
221
|
}, props));
|
|
223
222
|
};
|
|
224
|
-
|
|
225
|
-
// Workaround taken from platform/packages/editor/editor-core/src/plugins/extension/ui/Extension/Extension/index.tsx
|
|
226
|
-
var MultiBodiedExtension = function MultiBodiedExtension(props) {
|
|
227
|
-
// TODO: ED-17836 This code is here because confluence injects
|
|
228
|
-
// the `editor-referentiality` plugin via `dangerouslyAppendPlugins`
|
|
229
|
-
// which cannot access the `pluginInjectionApi`. When we move
|
|
230
|
-
// Confluence to using presets we can remove this workaround.
|
|
231
|
-
var pluginInjectionApi = props.pluginInjectionApi;
|
|
232
|
-
return pluginInjectionApi === undefined ? (0, _react2.jsx)(MultiBodiedExtensionDeprecated, props) : (0, _react2.jsx)(MultiBodiedExtensionWithSharedState, props);
|
|
233
|
-
};
|
|
234
|
-
|
|
235
|
-
// TODO: ED-17836 This code is here because Confluence injects
|
|
236
|
-
// the `editor-referentiality` plugin via `dangerouslyAppendPlugins`
|
|
237
|
-
// which cannot access the `pluginInjectionApi`. When we move
|
|
238
|
-
// Confluence to using presets we can remove this workaround.
|
|
239
|
-
// @ts-ignore
|
|
240
|
-
var widthPluginKey = {
|
|
241
|
-
key: 'widthPlugin$',
|
|
242
|
-
getState: function getState(state) {
|
|
243
|
-
return state['widthPlugin$'];
|
|
244
|
-
}
|
|
245
|
-
};
|
|
246
|
-
var MultiBodiedExtensionDeprecated = function MultiBodiedExtensionDeprecated(props) {
|
|
247
|
-
return (
|
|
248
|
-
// @ts-ignore - 'WithPluginState' cannot be used as a JSX component.
|
|
249
|
-
// This error was introduced after upgrading to TypeScript 5
|
|
250
|
-
(0, _react2.jsx)(_withPluginState.WithPluginState, {
|
|
251
|
-
editorView: props.editorView,
|
|
252
|
-
plugins: {
|
|
253
|
-
widthState: widthPluginKey
|
|
254
|
-
},
|
|
255
|
-
render: function render(_ref3) {
|
|
256
|
-
var widthState = _ref3.widthState;
|
|
257
|
-
return (0, _react2.jsx)(MultiBodiedExtensionWithWidth, (0, _extends2.default)({
|
|
258
|
-
widthState: widthState
|
|
259
|
-
}, props));
|
|
260
|
-
}
|
|
261
|
-
})
|
|
262
|
-
);
|
|
263
|
-
};
|
|
264
|
-
/**
|
|
265
|
-
* End workaround
|
|
266
|
-
*/
|
|
267
223
|
var _default = exports.default = MultiBodiedExtension;
|
|
@@ -10,5 +10,10 @@ var highlightMessages = exports.highlightMessages = (0, _reactIntlNext.defineMes
|
|
|
10
10
|
id: 'fabric.editor.highlight',
|
|
11
11
|
defaultMessage: 'Highlight color',
|
|
12
12
|
description: 'Label for the highlight color menu option in the primary editor toolbar. Opens up the color palette for the highlight colors.'
|
|
13
|
+
},
|
|
14
|
+
highlightFloatingToolbar: {
|
|
15
|
+
id: 'fabric.editor.highlightFloatingToolbar',
|
|
16
|
+
defaultMessage: 'Highlight',
|
|
17
|
+
description: 'Button content for the highlight color menu option in the editor floating toolbar. Opens up the color palette for the highlight colors.'
|
|
13
18
|
}
|
|
14
19
|
});
|
|
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
17
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
19
19
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
20
|
-
var packageVersion = "82.
|
|
20
|
+
var packageVersion = "82.14.0";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -20,7 +20,7 @@ var _Layer = _interopRequireDefault(require("../Layer"));
|
|
|
20
20
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
21
21
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "82.
|
|
23
|
+
var packageVersion = "82.14.0";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -6,7 +6,6 @@ import React, { Fragment } from 'react';
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
import { jsx } from '@emotion/react';
|
|
8
8
|
import classnames from 'classnames';
|
|
9
|
-
import { WithPluginState } from '../../..//with-plugin-state';
|
|
10
9
|
import { useSharedPluginState } from '../../../hooks';
|
|
11
10
|
import { overflowShadow } from '../../../ui';
|
|
12
11
|
import { calculateBreakoutStyles } from '../../../utils';
|
|
@@ -159,16 +158,6 @@ function ExtensionWithPluginState(props) {
|
|
|
159
158
|
})))));
|
|
160
159
|
}
|
|
161
160
|
const Extension = props => {
|
|
162
|
-
// TODO: ED-17836 This code is here because confluence injects
|
|
163
|
-
// the `editor-referentiality` plugin via `dangerouslyAppendPlugins`
|
|
164
|
-
// which cannot access the `pluginInjectionApi`. When we move
|
|
165
|
-
// Confluence to using presets we can remove this workaround.
|
|
166
|
-
const {
|
|
167
|
-
pluginInjectionApi
|
|
168
|
-
} = props;
|
|
169
|
-
return pluginInjectionApi === undefined ? jsx(ExtensionDeprecated, props) : jsx(ExtensionWithSharedState, props);
|
|
170
|
-
};
|
|
171
|
-
const ExtensionWithSharedState = props => {
|
|
172
161
|
const {
|
|
173
162
|
pluginInjectionApi
|
|
174
163
|
} = props;
|
|
@@ -179,40 +168,6 @@ const ExtensionWithSharedState = props => {
|
|
|
179
168
|
widthState: widthState
|
|
180
169
|
}, props));
|
|
181
170
|
};
|
|
182
|
-
|
|
183
|
-
// TODO: ED-17836 This code is here because Confluence injects
|
|
184
|
-
// the `editor-referentiality` plugin via `dangerouslyAppendPlugins`
|
|
185
|
-
// which cannot access the `pluginInjectionApi`. When we move
|
|
186
|
-
// Confluence to using presets we can remove this workaround.
|
|
187
|
-
// @ts-ignore
|
|
188
|
-
const widthPluginKey = {
|
|
189
|
-
key: 'widthPlugin$',
|
|
190
|
-
getState: state => {
|
|
191
|
-
return state['widthPlugin$'];
|
|
192
|
-
}
|
|
193
|
-
};
|
|
194
|
-
const ExtensionDeprecated = props => {
|
|
195
|
-
return (
|
|
196
|
-
// @ts-ignore - 'WithPluginState' cannot be used as a JSX component.
|
|
197
|
-
// This error was introduced after upgrading to TypeScript 5
|
|
198
|
-
jsx(WithPluginState, {
|
|
199
|
-
editorView: props.view,
|
|
200
|
-
plugins: {
|
|
201
|
-
widthState: widthPluginKey
|
|
202
|
-
},
|
|
203
|
-
render: ({
|
|
204
|
-
widthState
|
|
205
|
-
}) => jsx(ExtensionWithPluginState, _extends({
|
|
206
|
-
widthState: widthState
|
|
207
|
-
}, props))
|
|
208
|
-
})
|
|
209
|
-
);
|
|
210
|
-
};
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* End workaround
|
|
214
|
-
*/
|
|
215
|
-
|
|
216
171
|
export default overflowShadow(Extension, {
|
|
217
172
|
overflowSelector: '.extension-overflow-wrapper'
|
|
218
173
|
});
|
|
@@ -11,7 +11,6 @@ import EditorFileIcon from '@atlaskit/icon/glyph/editor/file';
|
|
|
11
11
|
import { useSharedPluginState } from '../../hooks';
|
|
12
12
|
import { removeMarginsAndBorder, sharedMultiBodiedExtensionStyles } from '../../ui/MultiBodiedExtension';
|
|
13
13
|
import { calculateBreakoutStyles, getExtensionLozengeData } from '../../utils';
|
|
14
|
-
import { WithPluginState } from '../../with-plugin-state';
|
|
15
14
|
import ExtensionLozenge from '../Extension/Lozenge';
|
|
16
15
|
import { useMultiBodiedExtensionActions } from './action-api';
|
|
17
16
|
import { mbeExtensionWrapperCSSStyles, overlayStyles } from './styles';
|
|
@@ -199,7 +198,7 @@ const MultiBodiedExtensionWithWidth = ({
|
|
|
199
198
|
ref: articleRef
|
|
200
199
|
}))));
|
|
201
200
|
};
|
|
202
|
-
const
|
|
201
|
+
const MultiBodiedExtension = props => {
|
|
203
202
|
const {
|
|
204
203
|
pluginInjectionApi
|
|
205
204
|
} = props;
|
|
@@ -210,49 +209,4 @@ const MultiBodiedExtensionWithSharedState = props => {
|
|
|
210
209
|
widthState: widthState
|
|
211
210
|
}, props));
|
|
212
211
|
};
|
|
213
|
-
|
|
214
|
-
// Workaround taken from platform/packages/editor/editor-core/src/plugins/extension/ui/Extension/Extension/index.tsx
|
|
215
|
-
const MultiBodiedExtension = props => {
|
|
216
|
-
// TODO: ED-17836 This code is here because confluence injects
|
|
217
|
-
// the `editor-referentiality` plugin via `dangerouslyAppendPlugins`
|
|
218
|
-
// which cannot access the `pluginInjectionApi`. When we move
|
|
219
|
-
// Confluence to using presets we can remove this workaround.
|
|
220
|
-
const {
|
|
221
|
-
pluginInjectionApi
|
|
222
|
-
} = props;
|
|
223
|
-
return pluginInjectionApi === undefined ? jsx(MultiBodiedExtensionDeprecated, props) : jsx(MultiBodiedExtensionWithSharedState, props);
|
|
224
|
-
};
|
|
225
|
-
|
|
226
|
-
// TODO: ED-17836 This code is here because Confluence injects
|
|
227
|
-
// the `editor-referentiality` plugin via `dangerouslyAppendPlugins`
|
|
228
|
-
// which cannot access the `pluginInjectionApi`. When we move
|
|
229
|
-
// Confluence to using presets we can remove this workaround.
|
|
230
|
-
// @ts-ignore
|
|
231
|
-
const widthPluginKey = {
|
|
232
|
-
key: 'widthPlugin$',
|
|
233
|
-
getState: state => {
|
|
234
|
-
return state['widthPlugin$'];
|
|
235
|
-
}
|
|
236
|
-
};
|
|
237
|
-
const MultiBodiedExtensionDeprecated = props => {
|
|
238
|
-
return (
|
|
239
|
-
// @ts-ignore - 'WithPluginState' cannot be used as a JSX component.
|
|
240
|
-
// This error was introduced after upgrading to TypeScript 5
|
|
241
|
-
jsx(WithPluginState, {
|
|
242
|
-
editorView: props.editorView,
|
|
243
|
-
plugins: {
|
|
244
|
-
widthState: widthPluginKey
|
|
245
|
-
},
|
|
246
|
-
render: ({
|
|
247
|
-
widthState
|
|
248
|
-
}) => jsx(MultiBodiedExtensionWithWidth, _extends({
|
|
249
|
-
widthState: widthState
|
|
250
|
-
}, props))
|
|
251
|
-
})
|
|
252
|
-
);
|
|
253
|
-
};
|
|
254
|
-
/**
|
|
255
|
-
* End workaround
|
|
256
|
-
*/
|
|
257
|
-
|
|
258
212
|
export default MultiBodiedExtension;
|
|
@@ -4,5 +4,10 @@ export const highlightMessages = defineMessages({
|
|
|
4
4
|
id: 'fabric.editor.highlight',
|
|
5
5
|
defaultMessage: 'Highlight color',
|
|
6
6
|
description: 'Label for the highlight color menu option in the primary editor toolbar. Opens up the color palette for the highlight colors.'
|
|
7
|
+
},
|
|
8
|
+
highlightFloatingToolbar: {
|
|
9
|
+
id: 'fabric.editor.highlightFloatingToolbar',
|
|
10
|
+
defaultMessage: 'Highlight',
|
|
11
|
+
description: 'Button content for the highlight color menu option in the editor floating toolbar. Opens up the color palette for the highlight colors.'
|
|
7
12
|
}
|
|
8
13
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isFedRamp } from './environment';
|
|
2
2
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
3
3
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
4
|
-
const packageVersion = "82.
|
|
4
|
+
const packageVersion = "82.14.0";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -9,7 +9,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
9
9
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
10
10
|
import Layer from '../Layer';
|
|
11
11
|
const packageName = "@atlaskit/editor-common";
|
|
12
|
-
const packageVersion = "82.
|
|
12
|
+
const packageVersion = "82.14.0";
|
|
13
13
|
const halfFocusRing = 1;
|
|
14
14
|
const dropOffset = '0, 8';
|
|
15
15
|
class DropList extends Component {
|
|
@@ -11,7 +11,6 @@ import React, { Fragment } from 'react';
|
|
|
11
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
12
|
import { jsx } from '@emotion/react';
|
|
13
13
|
import classnames from 'classnames';
|
|
14
|
-
import { WithPluginState } from '../../..//with-plugin-state';
|
|
15
14
|
import { useSharedPluginState } from '../../../hooks';
|
|
16
15
|
import { overflowShadow } from '../../../ui';
|
|
17
16
|
import { calculateBreakoutStyles } from '../../../utils';
|
|
@@ -157,14 +156,6 @@ function ExtensionWithPluginState(props) {
|
|
|
157
156
|
})))));
|
|
158
157
|
}
|
|
159
158
|
var Extension = function Extension(props) {
|
|
160
|
-
// TODO: ED-17836 This code is here because confluence injects
|
|
161
|
-
// the `editor-referentiality` plugin via `dangerouslyAppendPlugins`
|
|
162
|
-
// which cannot access the `pluginInjectionApi`. When we move
|
|
163
|
-
// Confluence to using presets we can remove this workaround.
|
|
164
|
-
var pluginInjectionApi = props.pluginInjectionApi;
|
|
165
|
-
return pluginInjectionApi === undefined ? jsx(ExtensionDeprecated, props) : jsx(ExtensionWithSharedState, props);
|
|
166
|
-
};
|
|
167
|
-
var ExtensionWithSharedState = function ExtensionWithSharedState(props) {
|
|
168
159
|
var pluginInjectionApi = props.pluginInjectionApi;
|
|
169
160
|
var _useSharedPluginState = useSharedPluginState(pluginInjectionApi, ['width']),
|
|
170
161
|
widthState = _useSharedPluginState.widthState;
|
|
@@ -172,41 +163,6 @@ var ExtensionWithSharedState = function ExtensionWithSharedState(props) {
|
|
|
172
163
|
widthState: widthState
|
|
173
164
|
}, props));
|
|
174
165
|
};
|
|
175
|
-
|
|
176
|
-
// TODO: ED-17836 This code is here because Confluence injects
|
|
177
|
-
// the `editor-referentiality` plugin via `dangerouslyAppendPlugins`
|
|
178
|
-
// which cannot access the `pluginInjectionApi`. When we move
|
|
179
|
-
// Confluence to using presets we can remove this workaround.
|
|
180
|
-
// @ts-ignore
|
|
181
|
-
var widthPluginKey = {
|
|
182
|
-
key: 'widthPlugin$',
|
|
183
|
-
getState: function getState(state) {
|
|
184
|
-
return state['widthPlugin$'];
|
|
185
|
-
}
|
|
186
|
-
};
|
|
187
|
-
var ExtensionDeprecated = function ExtensionDeprecated(props) {
|
|
188
|
-
return (
|
|
189
|
-
// @ts-ignore - 'WithPluginState' cannot be used as a JSX component.
|
|
190
|
-
// This error was introduced after upgrading to TypeScript 5
|
|
191
|
-
jsx(WithPluginState, {
|
|
192
|
-
editorView: props.view,
|
|
193
|
-
plugins: {
|
|
194
|
-
widthState: widthPluginKey
|
|
195
|
-
},
|
|
196
|
-
render: function render(_ref2) {
|
|
197
|
-
var widthState = _ref2.widthState;
|
|
198
|
-
return jsx(ExtensionWithPluginState, _extends({
|
|
199
|
-
widthState: widthState
|
|
200
|
-
}, props));
|
|
201
|
-
}
|
|
202
|
-
})
|
|
203
|
-
);
|
|
204
|
-
};
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* End workaround
|
|
208
|
-
*/
|
|
209
|
-
|
|
210
166
|
export default overflowShadow(Extension, {
|
|
211
167
|
overflowSelector: '.extension-overflow-wrapper'
|
|
212
168
|
});
|
|
@@ -16,7 +16,6 @@ import EditorFileIcon from '@atlaskit/icon/glyph/editor/file';
|
|
|
16
16
|
import { useSharedPluginState } from '../../hooks';
|
|
17
17
|
import { removeMarginsAndBorder, sharedMultiBodiedExtensionStyles } from '../../ui/MultiBodiedExtension';
|
|
18
18
|
import { calculateBreakoutStyles, getExtensionLozengeData } from '../../utils';
|
|
19
|
-
import { WithPluginState } from '../../with-plugin-state';
|
|
20
19
|
import ExtensionLozenge from '../Extension/Lozenge';
|
|
21
20
|
import { useMultiBodiedExtensionActions } from './action-api';
|
|
22
21
|
import { mbeExtensionWrapperCSSStyles, overlayStyles } from './styles';
|
|
@@ -205,7 +204,7 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref)
|
|
|
205
204
|
ref: articleRef
|
|
206
205
|
}))));
|
|
207
206
|
};
|
|
208
|
-
var
|
|
207
|
+
var MultiBodiedExtension = function MultiBodiedExtension(props) {
|
|
209
208
|
var pluginInjectionApi = props.pluginInjectionApi;
|
|
210
209
|
var _useSharedPluginState = useSharedPluginState(pluginInjectionApi, ['width']),
|
|
211
210
|
widthState = _useSharedPluginState.widthState;
|
|
@@ -213,48 +212,4 @@ var MultiBodiedExtensionWithSharedState = function MultiBodiedExtensionWithShare
|
|
|
213
212
|
widthState: widthState
|
|
214
213
|
}, props));
|
|
215
214
|
};
|
|
216
|
-
|
|
217
|
-
// Workaround taken from platform/packages/editor/editor-core/src/plugins/extension/ui/Extension/Extension/index.tsx
|
|
218
|
-
var MultiBodiedExtension = function MultiBodiedExtension(props) {
|
|
219
|
-
// TODO: ED-17836 This code is here because confluence injects
|
|
220
|
-
// the `editor-referentiality` plugin via `dangerouslyAppendPlugins`
|
|
221
|
-
// which cannot access the `pluginInjectionApi`. When we move
|
|
222
|
-
// Confluence to using presets we can remove this workaround.
|
|
223
|
-
var pluginInjectionApi = props.pluginInjectionApi;
|
|
224
|
-
return pluginInjectionApi === undefined ? jsx(MultiBodiedExtensionDeprecated, props) : jsx(MultiBodiedExtensionWithSharedState, props);
|
|
225
|
-
};
|
|
226
|
-
|
|
227
|
-
// TODO: ED-17836 This code is here because Confluence injects
|
|
228
|
-
// the `editor-referentiality` plugin via `dangerouslyAppendPlugins`
|
|
229
|
-
// which cannot access the `pluginInjectionApi`. When we move
|
|
230
|
-
// Confluence to using presets we can remove this workaround.
|
|
231
|
-
// @ts-ignore
|
|
232
|
-
var widthPluginKey = {
|
|
233
|
-
key: 'widthPlugin$',
|
|
234
|
-
getState: function getState(state) {
|
|
235
|
-
return state['widthPlugin$'];
|
|
236
|
-
}
|
|
237
|
-
};
|
|
238
|
-
var MultiBodiedExtensionDeprecated = function MultiBodiedExtensionDeprecated(props) {
|
|
239
|
-
return (
|
|
240
|
-
// @ts-ignore - 'WithPluginState' cannot be used as a JSX component.
|
|
241
|
-
// This error was introduced after upgrading to TypeScript 5
|
|
242
|
-
jsx(WithPluginState, {
|
|
243
|
-
editorView: props.editorView,
|
|
244
|
-
plugins: {
|
|
245
|
-
widthState: widthPluginKey
|
|
246
|
-
},
|
|
247
|
-
render: function render(_ref3) {
|
|
248
|
-
var widthState = _ref3.widthState;
|
|
249
|
-
return jsx(MultiBodiedExtensionWithWidth, _extends({
|
|
250
|
-
widthState: widthState
|
|
251
|
-
}, props));
|
|
252
|
-
}
|
|
253
|
-
})
|
|
254
|
-
);
|
|
255
|
-
};
|
|
256
|
-
/**
|
|
257
|
-
* End workaround
|
|
258
|
-
*/
|
|
259
|
-
|
|
260
215
|
export default MultiBodiedExtension;
|
|
@@ -4,5 +4,10 @@ export var highlightMessages = defineMessages({
|
|
|
4
4
|
id: 'fabric.editor.highlight',
|
|
5
5
|
defaultMessage: 'Highlight color',
|
|
6
6
|
description: 'Label for the highlight color menu option in the primary editor toolbar. Opens up the color palette for the highlight colors.'
|
|
7
|
+
},
|
|
8
|
+
highlightFloatingToolbar: {
|
|
9
|
+
id: 'fabric.editor.highlightFloatingToolbar',
|
|
10
|
+
defaultMessage: 'Highlight',
|
|
11
|
+
description: 'Button content for the highlight color menu option in the editor floating toolbar. Opens up the color palette for the highlight colors.'
|
|
7
12
|
}
|
|
8
13
|
});
|
|
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import { isFedRamp } from './environment';
|
|
8
8
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
9
9
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
10
|
-
var packageVersion = "82.
|
|
10
|
+
var packageVersion = "82.14.0";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -17,7 +17,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
17
17
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
18
18
|
import Layer from '../Layer';
|
|
19
19
|
var packageName = "@atlaskit/editor-common";
|
|
20
|
-
var packageVersion = "82.
|
|
20
|
+
var packageVersion = "82.14.0";
|
|
21
21
|
var halfFocusRing = 1;
|
|
22
22
|
var dropOffset = '0, 8';
|
|
23
23
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -22,9 +22,6 @@ export interface Props {
|
|
|
22
22
|
isNodeNested?: boolean;
|
|
23
23
|
setIsNodeHovered?: (isHovered: boolean) => void;
|
|
24
24
|
}
|
|
25
|
-
/**
|
|
26
|
-
* End workaround
|
|
27
|
-
*/
|
|
28
25
|
declare const _default: {
|
|
29
26
|
new (props: Props | Readonly<Props>): {
|
|
30
27
|
overflowContainer?: HTMLElement | null | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
type PortalsBucketUpdater = React.Dispatch<React.SetStateAction<Record<
|
|
2
|
+
type PortalsBucketUpdater = React.Dispatch<React.SetStateAction<Record<string | number, React.ReactPortal>>>;
|
|
3
3
|
type PortalRendererUpdater = React.Dispatch<React.SetStateAction<Array<PortalBucketType>>>;
|
|
4
4
|
type PortalBucketType = {
|
|
5
|
-
portals: Record<
|
|
5
|
+
portals: Record<string | number, React.ReactPortal>;
|
|
6
6
|
capacity: number;
|
|
7
7
|
updater: PortalsBucketUpdater | null;
|
|
8
8
|
};
|
|
@@ -41,7 +41,7 @@ export declare class PortalManager {
|
|
|
41
41
|
registerBucket(id: number, updater: PortalsBucketUpdater): void;
|
|
42
42
|
unregisterBucket(id: number): void;
|
|
43
43
|
updateBuckets(id: number): void;
|
|
44
|
-
registerPortal(key:
|
|
44
|
+
registerPortal(key: string | number, portal: React.ReactPortal): () => void;
|
|
45
45
|
registerPortalRenderer(updater: PortalRendererUpdater): void;
|
|
46
46
|
unregisterPortalRenderer(): void;
|
|
47
47
|
/**
|
|
@@ -63,6 +63,8 @@ export type InlineCommentSelectionComponentProps = {
|
|
|
63
63
|
* getAnnotationIndexMatch finds the { numMatch, matchIndex } tuple of the current selection
|
|
64
64
|
*/
|
|
65
65
|
getAnnotationIndexMatch?: () => AnnotationByMatches | false;
|
|
66
|
+
/** The list of types of all inline nodes, which were wrapped by annotation. */
|
|
67
|
+
inlineNodeTypes?: string[];
|
|
66
68
|
};
|
|
67
69
|
type AnnotationInfo = {
|
|
68
70
|
id: AnnotationId;
|
|
@@ -22,9 +22,6 @@ export interface Props {
|
|
|
22
22
|
isNodeNested?: boolean;
|
|
23
23
|
setIsNodeHovered?: (isHovered: boolean) => void;
|
|
24
24
|
}
|
|
25
|
-
/**
|
|
26
|
-
* End workaround
|
|
27
|
-
*/
|
|
28
25
|
declare const _default: {
|
|
29
26
|
new (props: Props | Readonly<Props>): {
|
|
30
27
|
overflowContainer?: HTMLElement | null | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
type PortalsBucketUpdater = React.Dispatch<React.SetStateAction<Record<
|
|
2
|
+
type PortalsBucketUpdater = React.Dispatch<React.SetStateAction<Record<string | number, React.ReactPortal>>>;
|
|
3
3
|
type PortalRendererUpdater = React.Dispatch<React.SetStateAction<Array<PortalBucketType>>>;
|
|
4
4
|
type PortalBucketType = {
|
|
5
|
-
portals: Record<
|
|
5
|
+
portals: Record<string | number, React.ReactPortal>;
|
|
6
6
|
capacity: number;
|
|
7
7
|
updater: PortalsBucketUpdater | null;
|
|
8
8
|
};
|
|
@@ -41,7 +41,7 @@ export declare class PortalManager {
|
|
|
41
41
|
registerBucket(id: number, updater: PortalsBucketUpdater): void;
|
|
42
42
|
unregisterBucket(id: number): void;
|
|
43
43
|
updateBuckets(id: number): void;
|
|
44
|
-
registerPortal(key:
|
|
44
|
+
registerPortal(key: string | number, portal: React.ReactPortal): () => void;
|
|
45
45
|
registerPortalRenderer(updater: PortalRendererUpdater): void;
|
|
46
46
|
unregisterPortalRenderer(): void;
|
|
47
47
|
/**
|
|
@@ -63,6 +63,8 @@ export type InlineCommentSelectionComponentProps = {
|
|
|
63
63
|
* getAnnotationIndexMatch finds the { numMatch, matchIndex } tuple of the current selection
|
|
64
64
|
*/
|
|
65
65
|
getAnnotationIndexMatch?: () => AnnotationByMatches | false;
|
|
66
|
+
/** The list of types of all inline nodes, which were wrapped by annotation. */
|
|
67
|
+
inlineNodeTypes?: string[];
|
|
66
68
|
};
|
|
67
69
|
type AnnotationInfo = {
|
|
68
70
|
id: AnnotationId;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "82.
|
|
3
|
+
"version": "82.14.0",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -127,10 +127,10 @@
|
|
|
127
127
|
"@atlaskit/mention": "^23.2.0",
|
|
128
128
|
"@atlaskit/menu": "^2.5.0",
|
|
129
129
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
130
|
-
"@atlaskit/primitives": "^8.
|
|
130
|
+
"@atlaskit/primitives": "^8.2.0",
|
|
131
131
|
"@atlaskit/profilecard": "^19.15.0",
|
|
132
132
|
"@atlaskit/section-message": "^6.5.0",
|
|
133
|
-
"@atlaskit/smart-card": "^27.
|
|
133
|
+
"@atlaskit/smart-card": "^27.7.0",
|
|
134
134
|
"@atlaskit/smart-user-picker": "^6.9.0",
|
|
135
135
|
"@atlaskit/spinner": "^16.2.0",
|
|
136
136
|
"@atlaskit/task-decision": "^17.10.0",
|