@atlaskit/editor-core 218.0.0 → 219.0.1
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 +28 -0
- package/dist/cjs/create-editor/ReactEditorView.js +2 -2
- package/dist/cjs/create-editor/messages.js +2 -2
- package/dist/cjs/ui/Appearance/Comment/Comment.js +2 -2
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +2 -2
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +2 -2
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbarNext.js +2 -2
- package/dist/cjs/ui/ChromeCollapsed/index.js +2 -2
- package/dist/cjs/ui/ChromeCollapsed/messages.js +2 -2
- package/dist/cjs/ui/ContextPanel/index.js +2 -2
- package/dist/cjs/ui/IntlProviderIfMissingWrapper/IntlProviderIfMissingWrapper.js +3 -3
- package/dist/cjs/ui/ToolbarHelp/index.js +2 -2
- package/dist/cjs/ui/ToolbarHelp/messages.js +2 -2
- package/dist/es2019/create-editor/ReactEditorView.js +1 -1
- package/dist/es2019/create-editor/messages.js +1 -1
- package/dist/es2019/ui/Appearance/Comment/Comment.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbarNext.js +1 -1
- package/dist/es2019/ui/ChromeCollapsed/index.js +1 -1
- package/dist/es2019/ui/ChromeCollapsed/messages.js +1 -1
- package/dist/es2019/ui/ContextPanel/index.js +1 -1
- package/dist/es2019/ui/IntlProviderIfMissingWrapper/IntlProviderIfMissingWrapper.js +1 -1
- package/dist/es2019/ui/ToolbarHelp/index.js +1 -1
- package/dist/es2019/ui/ToolbarHelp/messages.js +1 -1
- package/dist/esm/create-editor/ReactEditorView.js +1 -1
- package/dist/esm/create-editor/messages.js +1 -1
- package/dist/esm/ui/Appearance/Comment/Comment.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbarNext.js +1 -1
- package/dist/esm/ui/ChromeCollapsed/index.js +1 -1
- package/dist/esm/ui/ChromeCollapsed/messages.js +1 -1
- package/dist/esm/ui/ContextPanel/index.js +1 -1
- package/dist/esm/ui/IntlProviderIfMissingWrapper/IntlProviderIfMissingWrapper.js +1 -1
- package/dist/esm/ui/ToolbarHelp/index.js +1 -1
- package/dist/esm/ui/ToolbarHelp/messages.js +1 -1
- package/dist/types/create-editor/ReactEditorView.d.ts +1 -1
- package/dist/types/create-editor/get-plugins.d.ts +1 -1
- package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +2 -2
- package/dist/types/ui/Appearance/FullPage/FullPageToolbar.d.ts +2 -2
- package/dist/types/ui/ChromeCollapsed/index.d.ts +2 -2
- package/dist/types/ui/ContextPanel/index.d.ts +2 -2
- package/dist/types/ui/ToolbarHelp/index.d.ts +2 -2
- package/dist/types-ts4.5/create-editor/ReactEditorView.d.ts +1 -1
- package/dist/types-ts4.5/create-editor/get-plugins.d.ts +1 -1
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageContentArea.d.ts +2 -2
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar.d.ts +2 -2
- package/dist/types-ts4.5/ui/ChromeCollapsed/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/ContextPanel/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/ToolbarHelp/index.d.ts +2 -2
- package/package.json +19 -18
- package/report.api.md +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 219.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9b150a7caa3b5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9b150a7caa3b5) -
|
|
8
|
+
Adding multi-format response streaming capability for editor minion. Includes demo example in
|
|
9
|
+
editor-core.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 219.0.0
|
|
13
|
+
|
|
14
|
+
### Major Changes
|
|
15
|
+
|
|
16
|
+
- [`901c87a57486e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/901c87a57486e) -
|
|
17
|
+
Removed `react-intl-next` alias and replaced all usages with `react-intl` directly.
|
|
18
|
+
|
|
19
|
+
What changed: The `react-intl-next` npm alias (which resolved to `react-intl@^5`) has been
|
|
20
|
+
removed. All imports now reference `react-intl` directly, and `peerDependencies` have been updated
|
|
21
|
+
to `"^5.25.1 || ^6.0.0 || ^7.0.0"`.
|
|
22
|
+
|
|
23
|
+
How consumer should update their code: Ensure `react-intl` is installed at a version satisfying
|
|
24
|
+
`^5.25.1 || ^6.0.0 || ^7.0.0`. If your application was using `react-intl-next` as an npm alias, it
|
|
25
|
+
can be safely removed. Replace any remaining `react-intl-next` imports with `react-intl`.
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- Updated dependencies
|
|
30
|
+
|
|
3
31
|
## 218.0.0
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
|
@@ -11,7 +11,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
11
11
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
12
12
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
13
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
|
-
var
|
|
14
|
+
var _reactIntl = require("react-intl");
|
|
15
15
|
var _v = _interopRequireDefault(require("uuid/v4"));
|
|
16
16
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
17
17
|
var _coreUtils = require("@atlaskit/editor-common/core-utils");
|
|
@@ -971,4 +971,4 @@ function ReactEditorView(props) {
|
|
|
971
971
|
|
|
972
972
|
// Preserving exact type generated by TypeScript
|
|
973
973
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
974
|
-
var _default = exports.default = (0,
|
|
974
|
+
var _default = exports.default = (0, _reactIntl.injectIntl)(ReactEditorView);
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.editorMessages = void 0;
|
|
7
|
-
var
|
|
8
|
-
var editorMessages = exports.editorMessages = (0,
|
|
7
|
+
var _reactIntl = require("react-intl");
|
|
8
|
+
var editorMessages = exports.editorMessages = (0, _reactIntl.defineMessages)({
|
|
9
9
|
editorAssistiveLabel: {
|
|
10
10
|
id: 'fabric.editor.editorAssistiveLabel',
|
|
11
11
|
defaultMessage: 'Main content area, start typing to enter text.',
|
|
@@ -11,7 +11,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _react2 = require("@emotion/react");
|
|
13
13
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
14
|
-
var
|
|
14
|
+
var _reactIntl = require("react-intl");
|
|
15
15
|
var _buttonGroup = _interopRequireDefault(require("@atlaskit/button/button-group"));
|
|
16
16
|
var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
17
17
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
@@ -124,7 +124,7 @@ var CommentEditorWithIntl = exports.CommentEditorWithIntl = function CommentEdit
|
|
|
124
124
|
var primaryToolbarState = (0, _getPrimaryToolbarComponents.getPrimaryToolbarComponents)(editorAPI, primaryToolbarComponentsState);
|
|
125
125
|
var _useSharedPluginState2 = (0, _hooks.useSharedPluginState)(editorAPI, ['media']),
|
|
126
126
|
mediaState = _useSharedPluginState2.mediaState;
|
|
127
|
-
var intl = (0,
|
|
127
|
+
var intl = (0, _reactIntl.useIntl)();
|
|
128
128
|
var editorDOMElement = props.editorDOMElement,
|
|
129
129
|
editorView = props.editorView,
|
|
130
130
|
editorActions = props.editorActions,
|
|
@@ -10,7 +10,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _react2 = require("@emotion/react");
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
-
var
|
|
13
|
+
var _reactIntl = require("react-intl");
|
|
14
14
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
15
15
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
16
16
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
@@ -326,6 +326,6 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
326
326
|
visible: false
|
|
327
327
|
})));
|
|
328
328
|
});
|
|
329
|
-
var FullPageContentArea = exports.FullPageContentArea = (0,
|
|
329
|
+
var FullPageContentArea = exports.FullPageContentArea = (0, _reactIntl.injectIntl)(Content, {
|
|
330
330
|
forwardRef: true
|
|
331
331
|
});
|
|
@@ -9,7 +9,7 @@ exports.FullPageToolbar = exports.EditorToolbar = void 0;
|
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _react2 = require("@emotion/react");
|
|
12
|
-
var
|
|
12
|
+
var _reactIntl = require("react-intl");
|
|
13
13
|
var _contextPanel = require("@atlaskit/editor-common/context-panel");
|
|
14
14
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
15
15
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
@@ -136,4 +136,4 @@ var EditorToolbar = exports.EditorToolbar = /*#__PURE__*/_react.default.memo(fun
|
|
|
136
136
|
}, shouldSplitToolbar ? nonCustomToolbar : customToolbar), (0, _react2.jsx)(_ToolbarPortal.ToolbarPortalMountPoint, null))));
|
|
137
137
|
});
|
|
138
138
|
});
|
|
139
|
-
var FullPageToolbar = exports.FullPageToolbar = (0,
|
|
139
|
+
var FullPageToolbar = exports.FullPageToolbar = (0, _reactIntl.injectIntl)(EditorToolbar);
|
|
@@ -10,7 +10,7 @@ exports.FullPageToolbarNext = void 0;
|
|
|
10
10
|
require("./FullPageToolbarNext.compiled.css");
|
|
11
11
|
var _runtime = require("@compiled/react/runtime");
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
-
var
|
|
13
|
+
var _reactIntl = require("react-intl");
|
|
14
14
|
var _contextPanel = require("@atlaskit/editor-common/context-panel");
|
|
15
15
|
var _coreUtils = require("@atlaskit/editor-common/core-utils");
|
|
16
16
|
var _toolbar = require("@atlaskit/editor-common/toolbar");
|
|
@@ -85,7 +85,7 @@ var FullPageToolbarNext = exports.FullPageToolbarNext = function FullPageToolbar
|
|
|
85
85
|
disabled = _ref4.disabled;
|
|
86
86
|
var components = editorAPI === null || editorAPI === void 0 || (_editorAPI$toolbar = editorAPI.toolbar) === null || _editorAPI$toolbar === void 0 ? void 0 : _editorAPI$toolbar.actions.getComponents();
|
|
87
87
|
var contextualFormattingEnabled = editorAPI === null || editorAPI === void 0 || (_editorAPI$toolbar2 = editorAPI.toolbar) === null || _editorAPI$toolbar2 === void 0 ? void 0 : _editorAPI$toolbar2.actions.contextualFormattingMode();
|
|
88
|
-
var intl = (0,
|
|
88
|
+
var intl = (0, _reactIntl.useIntl)();
|
|
89
89
|
var toolbar = components === null || components === void 0 ? void 0 : components.find(function (component) {
|
|
90
90
|
return component.key === _toolbar.TOOLBARS.PRIMARY_TOOLBAR;
|
|
91
91
|
});
|
|
@@ -14,7 +14,7 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
14
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
15
|
var _react = _interopRequireWildcard(require("react"));
|
|
16
16
|
var _react2 = require("@emotion/react");
|
|
17
|
-
var
|
|
17
|
+
var _reactIntl = require("react-intl");
|
|
18
18
|
var _messages = require("./messages");
|
|
19
19
|
var _styles = require("./styles");
|
|
20
20
|
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); }
|
|
@@ -70,4 +70,4 @@ var ChromeCollapsed = /*#__PURE__*/function (_PureComponent) {
|
|
|
70
70
|
}
|
|
71
71
|
}]);
|
|
72
72
|
}(_react.PureComponent);
|
|
73
|
-
var _default = exports.default = (0,
|
|
73
|
+
var _default = exports.default = (0, _reactIntl.injectIntl)(ChromeCollapsed);
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.messages = void 0;
|
|
7
|
-
var
|
|
8
|
-
var messages = exports.messages = (0,
|
|
7
|
+
var _reactIntl = require("react-intl");
|
|
8
|
+
var messages = exports.messages = (0, _reactIntl.defineMessages)({
|
|
9
9
|
chromeCollapsedPlaceholder: {
|
|
10
10
|
id: 'fabric.editor.chromeCollapsedPlaceholder',
|
|
11
11
|
defaultMessage: 'Type something…',
|
|
@@ -15,7 +15,7 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
15
15
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
16
16
|
var _react = _interopRequireDefault(require("react"));
|
|
17
17
|
var _react2 = require("@emotion/react");
|
|
18
|
-
var
|
|
18
|
+
var _reactIntl = require("react-intl");
|
|
19
19
|
var _Transition = _interopRequireDefault(require("react-transition-group/Transition"));
|
|
20
20
|
var _contextPanel = require("@atlaskit/editor-common/context-panel");
|
|
21
21
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
@@ -188,7 +188,7 @@ var SwappableContentAreaInner = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
188
188
|
}
|
|
189
189
|
}]);
|
|
190
190
|
}(_react.default.PureComponent);
|
|
191
|
-
var SwappableContentArea = exports.SwappableContentArea = (0,
|
|
191
|
+
var SwappableContentArea = exports.SwappableContentArea = (0, _reactIntl.injectIntl)(SwappableContentAreaInner);
|
|
192
192
|
function ContextPanel(props) {
|
|
193
193
|
var contextPanelContents = (0, _hooks.useSharedPluginStateWithSelector)(props.editorAPI, ['contextPanel'], function (states) {
|
|
194
194
|
var _states$contextPanelS;
|
|
@@ -6,16 +6,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.IntlProviderIfMissingWrapper = IntlProviderIfMissingWrapper;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _reactIntl = require("react-intl");
|
|
10
10
|
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); }
|
|
11
11
|
var useCheckIntlContext = function useCheckIntlContext() {
|
|
12
|
-
return (0, _react.useContext)(
|
|
12
|
+
return (0, _react.useContext)(_reactIntl.IntlContext) === null;
|
|
13
13
|
};
|
|
14
14
|
function IntlProviderIfMissingWrapper(_ref) {
|
|
15
15
|
var children = _ref.children;
|
|
16
16
|
var missingIntlContext = useCheckIntlContext();
|
|
17
17
|
if (missingIntlContext) {
|
|
18
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
18
|
+
return /*#__PURE__*/_react.default.createElement(_reactIntl.IntlProvider, {
|
|
19
19
|
locale: "en"
|
|
20
20
|
}, children);
|
|
21
21
|
}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _reactIntl = require("react-intl");
|
|
10
10
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
11
11
|
var _questionCircle = _interopRequireDefault(require("@atlaskit/icon/core/question-circle"));
|
|
12
12
|
var _EditorContext = require("../EditorContext");
|
|
@@ -64,4 +64,4 @@ var TooltipHelpTrigger = function TooltipHelpTrigger(_ref) {
|
|
|
64
64
|
})
|
|
65
65
|
});
|
|
66
66
|
};
|
|
67
|
-
var _default = exports.default = (0,
|
|
67
|
+
var _default = exports.default = (0, _reactIntl.injectIntl)(TooltipHelpTrigger);
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.messages = void 0;
|
|
7
|
-
var
|
|
8
|
-
var messages = exports.messages = (0,
|
|
7
|
+
var _reactIntl = require("react-intl");
|
|
8
|
+
var messages = exports.messages = (0, _reactIntl.defineMessages)({
|
|
9
9
|
toolbarHelpTitle: {
|
|
10
10
|
id: 'fabric.editor.headingLink.toolbarHelpTitle',
|
|
11
11
|
defaultMessage: 'Open help dialog',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useCallback, useLayoutEffect, useMemo, useRef, useState, useEffect } from 'react';
|
|
2
|
-
import { injectIntl } from 'react-intl
|
|
2
|
+
import { injectIntl } from 'react-intl';
|
|
3
3
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
4
4
|
import uuid from 'uuid/v4';
|
|
5
5
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent, PLATFORMS } from '@atlaskit/editor-common/analytics';
|
|
@@ -7,7 +7,7 @@ import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import classnames from 'classnames';
|
|
10
|
-
import { useIntl } from 'react-intl
|
|
10
|
+
import { useIntl } from 'react-intl';
|
|
11
11
|
import ButtonGroup from '@atlaskit/button/button-group';
|
|
12
12
|
import Button from '@atlaskit/button/new';
|
|
13
13
|
import { useSharedPluginState, useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
@@ -8,7 +8,7 @@ import React, { useImperativeHandle, useRef } from 'react';
|
|
|
8
8
|
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
9
9
|
import { css, jsx, useTheme } from '@emotion/react';
|
|
10
10
|
import classnames from 'classnames';
|
|
11
|
-
import { injectIntl } from 'react-intl
|
|
11
|
+
import { injectIntl } from 'react-intl';
|
|
12
12
|
import { decisionListSelector, taskListSelector } from '@atlaskit/adf-schema';
|
|
13
13
|
import { fullPageMessages as messages } from '@atlaskit/editor-common/messages';
|
|
14
14
|
import { akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
|
|
@@ -7,7 +7,7 @@ import React, { useEffect, useCallback, useState } from 'react';
|
|
|
7
7
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
|
-
import { injectIntl } from 'react-intl
|
|
10
|
+
import { injectIntl } from 'react-intl';
|
|
11
11
|
import { ContextPanelConsumer } from '@atlaskit/editor-common/context-panel';
|
|
12
12
|
import { fullPageMessages as messages } from '@atlaskit/editor-common/messages';
|
|
13
13
|
import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "./FullPageToolbarNext.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useCallback } from 'react';
|
|
5
|
-
import { useIntl } from 'react-intl
|
|
5
|
+
import { useIntl } from 'react-intl';
|
|
6
6
|
import { ContextPanelConsumer } from '@atlaskit/editor-common/context-panel';
|
|
7
7
|
import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
8
8
|
import { shouldShowPrimaryToolbar, TOOLBARS } from '@atlaskit/editor-common/toolbar';
|
|
@@ -7,7 +7,7 @@ import React, { PureComponent } from 'react';
|
|
|
7
7
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
|
-
import { injectIntl } from 'react-intl
|
|
10
|
+
import { injectIntl } from 'react-intl';
|
|
11
11
|
import { messages } from './messages';
|
|
12
12
|
import { inputStyle } from './styles';
|
|
13
13
|
// Ignored via go/ees005
|
|
@@ -9,7 +9,7 @@ import React from 'react';
|
|
|
9
9
|
|
|
10
10
|
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
11
11
|
import { css, jsx } from '@emotion/react';
|
|
12
|
-
import { injectIntl } from 'react-intl
|
|
12
|
+
import { injectIntl } from 'react-intl';
|
|
13
13
|
import Transition from 'react-transition-group/Transition';
|
|
14
14
|
import { ContextPanelConsumer } from '@atlaskit/editor-common/context-panel';
|
|
15
15
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
|
-
import { IntlContext, IntlProvider } from 'react-intl
|
|
2
|
+
import { IntlContext, IntlProvider } from 'react-intl';
|
|
3
3
|
const useCheckIntlContext = () => useContext(IntlContext) === null;
|
|
4
4
|
export function IntlProviderIfMissingWrapper({
|
|
5
5
|
children
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { injectIntl } from 'react-intl
|
|
2
|
+
import { injectIntl } from 'react-intl';
|
|
3
3
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
4
4
|
import QuestionIcon from '@atlaskit/icon/core/question-circle';
|
|
5
5
|
import { useEditorContext } from '../EditorContext';
|
|
@@ -7,7 +7,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
7
7
|
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; }
|
|
8
8
|
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; }
|
|
9
9
|
import React, { useCallback, useLayoutEffect, useMemo, useRef, useState, useEffect } from 'react';
|
|
10
|
-
import { injectIntl } from 'react-intl
|
|
10
|
+
import { injectIntl } from 'react-intl';
|
|
11
11
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
12
12
|
import uuid from 'uuid/v4';
|
|
13
13
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent, PLATFORMS } from '@atlaskit/editor-common/analytics';
|
|
@@ -9,7 +9,7 @@ import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
11
|
import classnames from 'classnames';
|
|
12
|
-
import { useIntl } from 'react-intl
|
|
12
|
+
import { useIntl } from 'react-intl';
|
|
13
13
|
import ButtonGroup from '@atlaskit/button/button-group';
|
|
14
14
|
import Button from '@atlaskit/button/new';
|
|
15
15
|
import { useSharedPluginState, useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
@@ -9,7 +9,7 @@ import React, { useImperativeHandle, useRef } from 'react';
|
|
|
9
9
|
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
10
10
|
import { css, jsx, useTheme } from '@emotion/react';
|
|
11
11
|
import classnames from 'classnames';
|
|
12
|
-
import { injectIntl } from 'react-intl
|
|
12
|
+
import { injectIntl } from 'react-intl';
|
|
13
13
|
import { decisionListSelector, taskListSelector } from '@atlaskit/adf-schema';
|
|
14
14
|
import { fullPageMessages as messages } from '@atlaskit/editor-common/messages';
|
|
15
15
|
import { akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
|
|
@@ -8,7 +8,7 @@ import React, { useEffect, useCallback, useState } from 'react';
|
|
|
8
8
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
10
10
|
import { jsx } from '@emotion/react';
|
|
11
|
-
import { injectIntl } from 'react-intl
|
|
11
|
+
import { injectIntl } from 'react-intl';
|
|
12
12
|
import { ContextPanelConsumer } from '@atlaskit/editor-common/context-panel';
|
|
13
13
|
import { fullPageMessages as messages } from '@atlaskit/editor-common/messages';
|
|
14
14
|
import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "./FullPageToolbarNext.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useCallback } from 'react';
|
|
5
|
-
import { useIntl } from 'react-intl
|
|
5
|
+
import { useIntl } from 'react-intl';
|
|
6
6
|
import { ContextPanelConsumer } from '@atlaskit/editor-common/context-panel';
|
|
7
7
|
import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
8
8
|
import { shouldShowPrimaryToolbar, TOOLBARS } from '@atlaskit/editor-common/toolbar';
|
|
@@ -14,7 +14,7 @@ import React, { PureComponent } from 'react';
|
|
|
14
14
|
|
|
15
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
16
16
|
import { jsx } from '@emotion/react';
|
|
17
|
-
import { injectIntl } from 'react-intl
|
|
17
|
+
import { injectIntl } from 'react-intl';
|
|
18
18
|
import { messages } from './messages';
|
|
19
19
|
import { inputStyle } from './styles';
|
|
20
20
|
// Ignored via go/ees005
|
|
@@ -18,7 +18,7 @@ import React from 'react';
|
|
|
18
18
|
|
|
19
19
|
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
20
20
|
import { css, jsx } from '@emotion/react';
|
|
21
|
-
import { injectIntl } from 'react-intl
|
|
21
|
+
import { injectIntl } from 'react-intl';
|
|
22
22
|
import Transition from 'react-transition-group/Transition';
|
|
23
23
|
import { ContextPanelConsumer } from '@atlaskit/editor-common/context-panel';
|
|
24
24
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
|
-
import { IntlContext, IntlProvider } from 'react-intl
|
|
2
|
+
import { IntlContext, IntlProvider } from 'react-intl';
|
|
3
3
|
var useCheckIntlContext = function useCheckIntlContext() {
|
|
4
4
|
return useContext(IntlContext) === null;
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { injectIntl } from 'react-intl
|
|
2
|
+
import { injectIntl } from 'react-intl';
|
|
3
3
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
4
4
|
import QuestionIcon from '@atlaskit/icon/core/question-circle';
|
|
5
5
|
import { useEditorContext } from '../EditorContext';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps, WithIntlProps } from 'react-intl
|
|
2
|
+
import type { WrappedComponentProps, WithIntlProps } from 'react-intl';
|
|
3
3
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
4
4
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
5
5
|
import { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
4
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import type { ReactElement } from 'react';
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import type { WrappedComponentProps } from 'react-intl
|
|
7
|
+
import type { WrappedComponentProps } from 'react-intl';
|
|
8
8
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
9
9
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
10
10
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
@@ -48,7 +48,7 @@ interface FullPageEditorContentAreaProps {
|
|
|
48
48
|
}
|
|
49
49
|
export declare const CONTENT_AREA_TEST_ID = "ak-editor-fp-content-area";
|
|
50
50
|
export declare const EDITOR_CONTAINER = "ak-editor-container";
|
|
51
|
-
export declare const FullPageContentArea: React.ForwardRefExoticComponent<Omit<import("react-intl
|
|
51
|
+
export declare const FullPageContentArea: React.ForwardRefExoticComponent<Omit<import("react-intl").WithIntlProps<React.PropsWithChildren<FullPageEditorContentAreaProps & WrappedComponentProps & React.RefAttributes<ScrollContainerRefs>>>, "ref"> & React.RefAttributes<any>> & {
|
|
52
52
|
WrappedComponent: React.ComponentType<FullPageEditorContentAreaProps & WrappedComponentProps & React.RefAttributes<ScrollContainerRefs>>;
|
|
53
53
|
};
|
|
54
54
|
export {};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import type { ReactElement } from 'react';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { jsx } from '@emotion/react';
|
|
8
|
-
import type { WrappedComponentProps } from 'react-intl
|
|
8
|
+
import type { WrappedComponentProps } from 'react-intl';
|
|
9
9
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
10
10
|
import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
|
|
11
11
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
@@ -51,6 +51,6 @@ export interface FullPageToolbarProps {
|
|
|
51
51
|
showKeyline: boolean;
|
|
52
52
|
}
|
|
53
53
|
export declare const EditorToolbar: React.MemoExoticComponent<(props: FullPageToolbarProps & WrappedComponentProps) => jsx.JSX.Element>;
|
|
54
|
-
export declare const FullPageToolbar: React.FC<import("react-intl
|
|
54
|
+
export declare const FullPageToolbar: React.FC<import("react-intl").WithIntlProps<FullPageToolbarProps & WrappedComponentProps>> & {
|
|
55
55
|
WrappedComponent: React.ComponentType<FullPageToolbarProps & WrappedComponentProps>;
|
|
56
56
|
};
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import type { WrappedComponentProps } from 'react-intl
|
|
6
|
+
import type { WrappedComponentProps } from 'react-intl';
|
|
7
7
|
export interface Props {
|
|
8
8
|
label?: string;
|
|
9
9
|
onFocus?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
10
10
|
text?: string;
|
|
11
11
|
}
|
|
12
|
-
declare const _default: React.FC<import("react-intl
|
|
12
|
+
declare const _default: React.FC<import("react-intl").WithIntlProps<Props & WrappedComponentProps>> & {
|
|
13
13
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
14
14
|
};
|
|
15
15
|
export default _default;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import type { SerializedStyles } from '@emotion/react';
|
|
8
|
-
import type { IntlShape } from 'react-intl
|
|
8
|
+
import type { IntlShape } from 'react-intl';
|
|
9
9
|
import type { OptionalPlugin, PublicPluginAPI } from '@atlaskit/editor-common/types';
|
|
10
10
|
import type { ContextPanelPlugin } from '@atlaskit/editor-plugins/context-panel';
|
|
11
11
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -23,7 +23,7 @@ type SwappableContentAreaProps = {
|
|
|
23
23
|
intl: IntlShape;
|
|
24
24
|
pluginContent?: React.ReactNode;
|
|
25
25
|
} & Props;
|
|
26
|
-
export declare const SwappableContentArea: React.FC<import("react-intl
|
|
26
|
+
export declare const SwappableContentArea: React.FC<import("react-intl").WithIntlProps<SwappableContentAreaProps>> & {
|
|
27
27
|
WrappedComponent: React.ComponentType<SwappableContentAreaProps>;
|
|
28
28
|
};
|
|
29
29
|
export declare function ContextPanel(props: Props): jsx.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl
|
|
2
|
+
import type { WrappedComponentProps } from 'react-intl';
|
|
3
3
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { HelpDialogPlugin } from '@atlaskit/editor-plugins/help-dialog';
|
|
5
5
|
import type { PositionType } from '@atlaskit/tooltip/types';
|
|
@@ -8,7 +8,7 @@ interface Props {
|
|
|
8
8
|
title?: string;
|
|
9
9
|
titlePosition?: PositionType;
|
|
10
10
|
}
|
|
11
|
-
declare const _default: React.FC<import("react-intl
|
|
11
|
+
declare const _default: React.FC<import("react-intl").WithIntlProps<Props & WrappedComponentProps>> & {
|
|
12
12
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
13
13
|
};
|
|
14
14
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps, WithIntlProps } from 'react-intl
|
|
2
|
+
import type { WrappedComponentProps, WithIntlProps } from 'react-intl';
|
|
3
3
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
4
4
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
5
5
|
import { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
4
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import type { ReactElement } from 'react';
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import type { WrappedComponentProps } from 'react-intl
|
|
7
|
+
import type { WrappedComponentProps } from 'react-intl';
|
|
8
8
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
9
9
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
10
10
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
@@ -48,7 +48,7 @@ interface FullPageEditorContentAreaProps {
|
|
|
48
48
|
}
|
|
49
49
|
export declare const CONTENT_AREA_TEST_ID = "ak-editor-fp-content-area";
|
|
50
50
|
export declare const EDITOR_CONTAINER = "ak-editor-container";
|
|
51
|
-
export declare const FullPageContentArea: React.ForwardRefExoticComponent<Omit<import("react-intl
|
|
51
|
+
export declare const FullPageContentArea: React.ForwardRefExoticComponent<Omit<import("react-intl").WithIntlProps<React.PropsWithChildren<FullPageEditorContentAreaProps & WrappedComponentProps & React.RefAttributes<ScrollContainerRefs>>>, "ref"> & React.RefAttributes<any>> & {
|
|
52
52
|
WrappedComponent: React.ComponentType<FullPageEditorContentAreaProps & WrappedComponentProps & React.RefAttributes<ScrollContainerRefs>>;
|
|
53
53
|
};
|
|
54
54
|
export {};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import type { ReactElement } from 'react';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { jsx } from '@emotion/react';
|
|
8
|
-
import type { WrappedComponentProps } from 'react-intl
|
|
8
|
+
import type { WrappedComponentProps } from 'react-intl';
|
|
9
9
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
10
10
|
import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
|
|
11
11
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
@@ -51,6 +51,6 @@ export interface FullPageToolbarProps {
|
|
|
51
51
|
showKeyline: boolean;
|
|
52
52
|
}
|
|
53
53
|
export declare const EditorToolbar: React.MemoExoticComponent<(props: FullPageToolbarProps & WrappedComponentProps) => jsx.JSX.Element>;
|
|
54
|
-
export declare const FullPageToolbar: React.FC<import("react-intl
|
|
54
|
+
export declare const FullPageToolbar: React.FC<import("react-intl").WithIntlProps<FullPageToolbarProps & WrappedComponentProps>> & {
|
|
55
55
|
WrappedComponent: React.ComponentType<FullPageToolbarProps & WrappedComponentProps>;
|
|
56
56
|
};
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import type { WrappedComponentProps } from 'react-intl
|
|
6
|
+
import type { WrappedComponentProps } from 'react-intl';
|
|
7
7
|
export interface Props {
|
|
8
8
|
label?: string;
|
|
9
9
|
onFocus?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
10
10
|
text?: string;
|
|
11
11
|
}
|
|
12
|
-
declare const _default: React.FC<import("react-intl
|
|
12
|
+
declare const _default: React.FC<import("react-intl").WithIntlProps<Props & WrappedComponentProps>> & {
|
|
13
13
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
14
14
|
};
|
|
15
15
|
export default _default;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import type { SerializedStyles } from '@emotion/react';
|
|
8
|
-
import type { IntlShape } from 'react-intl
|
|
8
|
+
import type { IntlShape } from 'react-intl';
|
|
9
9
|
import type { OptionalPlugin, PublicPluginAPI } from '@atlaskit/editor-common/types';
|
|
10
10
|
import type { ContextPanelPlugin } from '@atlaskit/editor-plugins/context-panel';
|
|
11
11
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -25,7 +25,7 @@ type SwappableContentAreaProps = {
|
|
|
25
25
|
intl: IntlShape;
|
|
26
26
|
pluginContent?: React.ReactNode;
|
|
27
27
|
} & Props;
|
|
28
|
-
export declare const SwappableContentArea: React.FC<import("react-intl
|
|
28
|
+
export declare const SwappableContentArea: React.FC<import("react-intl").WithIntlProps<SwappableContentAreaProps>> & {
|
|
29
29
|
WrappedComponent: React.ComponentType<SwappableContentAreaProps>;
|
|
30
30
|
};
|
|
31
31
|
export declare function ContextPanel(props: Props): jsx.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl
|
|
2
|
+
import type { WrappedComponentProps } from 'react-intl';
|
|
3
3
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { HelpDialogPlugin } from '@atlaskit/editor-plugins/help-dialog';
|
|
5
5
|
import type { PositionType } from '@atlaskit/tooltip/types';
|
|
@@ -8,7 +8,7 @@ interface Props {
|
|
|
8
8
|
title?: string;
|
|
9
9
|
titlePosition?: PositionType;
|
|
10
10
|
}
|
|
11
|
-
declare const _default: React.FC<import("react-intl
|
|
11
|
+
declare const _default: React.FC<import("react-intl").WithIntlProps<Props & WrappedComponentProps>> & {
|
|
12
12
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
13
13
|
};
|
|
14
14
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "219.0.1",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -48,14 +48,14 @@
|
|
|
48
48
|
"@atlaskit/css": "^0.19.0",
|
|
49
49
|
"@atlaskit/editor-json-transformer": "^8.31.0",
|
|
50
50
|
"@atlaskit/editor-performance-metrics": "^2.1.0",
|
|
51
|
-
"@atlaskit/editor-plugin-connectivity": "^
|
|
52
|
-
"@atlaskit/editor-plugin-quick-insert": "^
|
|
53
|
-
"@atlaskit/editor-plugin-user-preferences": "^
|
|
51
|
+
"@atlaskit/editor-plugin-connectivity": "^10.0.0",
|
|
52
|
+
"@atlaskit/editor-plugin-quick-insert": "^10.0.0",
|
|
53
|
+
"@atlaskit/editor-plugin-user-preferences": "^8.0.0",
|
|
54
54
|
"@atlaskit/editor-plugins": "^13.0.0",
|
|
55
55
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
56
56
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
57
|
-
"@atlaskit/editor-ssr-renderer": "^
|
|
58
|
-
"@atlaskit/editor-toolbar": "^0.
|
|
57
|
+
"@atlaskit/editor-ssr-renderer": "^5.0.0",
|
|
58
|
+
"@atlaskit/editor-toolbar": "^1.0.0",
|
|
59
59
|
"@atlaskit/editor-toolbar-model": "^0.4.0",
|
|
60
60
|
"@atlaskit/emoji": "^70.0.0",
|
|
61
61
|
"@atlaskit/feature-gate-js-client": "^5.5.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
68
68
|
"@atlaskit/react-ufo": "^5.14.0",
|
|
69
69
|
"@atlaskit/task-decision": "^20.0.0",
|
|
70
|
-
"@atlaskit/tmp-editor-statsig": "^62.
|
|
70
|
+
"@atlaskit/tmp-editor-statsig": "^62.6.0",
|
|
71
71
|
"@atlaskit/tokens": "^13.0.0",
|
|
72
72
|
"@atlaskit/tooltip": "^21.1.0",
|
|
73
73
|
"@atlaskit/width-detector": "^5.1.0",
|
|
@@ -84,12 +84,12 @@
|
|
|
84
84
|
"uuid": "^3.1.0"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
|
-
"@atlaskit/editor-common": "^
|
|
87
|
+
"@atlaskit/editor-common": "^114.1.0",
|
|
88
88
|
"@atlaskit/link-provider": "^4.3.0",
|
|
89
89
|
"@atlaskit/media-core": "^37.0.0",
|
|
90
90
|
"react": "^18.2.0",
|
|
91
91
|
"react-dom": "^18.2.0",
|
|
92
|
-
"react-intl
|
|
92
|
+
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
95
|
"@af/editor-libra": "workspace:^",
|
|
@@ -97,11 +97,11 @@
|
|
|
97
97
|
"@af/visual-regression": "workspace:^",
|
|
98
98
|
"@atlaskit/adf-utils": "^19.27.0",
|
|
99
99
|
"@atlaskit/analytics-listeners": "^10.0.0",
|
|
100
|
-
"@atlaskit/collab-provider": "^
|
|
101
|
-
"@atlaskit/editor-plugin-annotation": "^
|
|
102
|
-
"@atlaskit/editor-plugin-card": "^
|
|
103
|
-
"@atlaskit/editor-plugin-list": "^
|
|
104
|
-
"@atlaskit/editor-plugin-paste": "^
|
|
100
|
+
"@atlaskit/collab-provider": "^18.0.0",
|
|
101
|
+
"@atlaskit/editor-plugin-annotation": "^10.0.0",
|
|
102
|
+
"@atlaskit/editor-plugin-card": "^16.0.0",
|
|
103
|
+
"@atlaskit/editor-plugin-list": "^12.0.0",
|
|
104
|
+
"@atlaskit/editor-plugin-paste": "^11.0.0",
|
|
105
105
|
"@atlaskit/editor-test-helpers": "workspace:^",
|
|
106
106
|
"@atlaskit/link-provider": "^4.3.0",
|
|
107
107
|
"@atlaskit/linking-common": "^9.11.0",
|
|
@@ -110,16 +110,17 @@
|
|
|
110
110
|
"@atlaskit/media-integration-test-helpers": "workspace:^",
|
|
111
111
|
"@atlaskit/media-test-helpers": "^41.0.0",
|
|
112
112
|
"@atlaskit/modal-dialog": "^14.15.0",
|
|
113
|
-
"@atlaskit/renderer": "^
|
|
113
|
+
"@atlaskit/renderer": "^130.0.0",
|
|
114
114
|
"@atlaskit/section-message": "^8.12.0",
|
|
115
115
|
"@atlaskit/synchrony-test-helpers": "workspace:^",
|
|
116
116
|
"@atlaskit/toggle": "^15.6.0",
|
|
117
117
|
"@atlaskit/util-data-test": "^18.5.0",
|
|
118
118
|
"@atlassian/a11y-jest-testing": "^0.11.0",
|
|
119
119
|
"@atlassian/adf-schema-json": "^1.33.0",
|
|
120
|
+
"@atlassian/editor-rovo-bridge": "^8.1.0",
|
|
120
121
|
"@atlassian/feature-flags-test-utils": "^1.0.0",
|
|
121
|
-
"@atlassian/search-client": "^1.
|
|
122
|
-
"@atlassian/search-provider": "^
|
|
122
|
+
"@atlassian/search-client": "^1.1.0",
|
|
123
|
+
"@atlassian/search-provider": "^11.0.0",
|
|
123
124
|
"@emotion/jest": "^11.8.0",
|
|
124
125
|
"@testing-library/react": "^16.3.0",
|
|
125
126
|
"@types/diff": "^5.0.2",
|
|
@@ -131,7 +132,7 @@
|
|
|
131
132
|
"mockdate": "^3.0.5",
|
|
132
133
|
"raf-stub": "^2.0.1",
|
|
133
134
|
"react": "^18.2.0",
|
|
134
|
-
"react-intl
|
|
135
|
+
"react-intl": "^6.6.2",
|
|
135
136
|
"url-search-params": "^0.10.0"
|
|
136
137
|
},
|
|
137
138
|
"techstack": {
|
package/report.api.md
CHANGED
|
@@ -91,8 +91,8 @@ import type { Transformer as Transformer_2 } from '@atlaskit/editor-common/types
|
|
|
91
91
|
import { TypeAheadItem } from '@atlaskit/editor-common/provider-factory';
|
|
92
92
|
import { UIComponentFactory } from '@atlaskit/editor-common/types';
|
|
93
93
|
import type { UseStickyToolbarType } from '@atlaskit/editor-common/ui';
|
|
94
|
-
import { WithIntlProps } from 'react-intl
|
|
95
|
-
import type { WrappedComponentProps } from 'react-intl
|
|
94
|
+
import { WithIntlProps } from 'react-intl';
|
|
95
|
+
import type { WrappedComponentProps } from 'react-intl';
|
|
96
96
|
|
|
97
97
|
export { ACTION };
|
|
98
98
|
|
|
@@ -798,7 +798,7 @@ interface WithHelpTriggerProps {
|
|
|
798
798
|
"@atlaskit/media-core": "^34.1.2",
|
|
799
799
|
"react": "^16.8.0",
|
|
800
800
|
"react-dom": "^16.8.0",
|
|
801
|
-
"react-intl
|
|
801
|
+
"react-intl": "npm:react-intl@^5.18.1"
|
|
802
802
|
}
|
|
803
803
|
```
|
|
804
804
|
|