@atlaskit/editor-core 195.5.1 → 195.6.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/.eslintrc.js +2 -0
- package/CHANGELOG.md +16 -0
- package/codemods/migrates/next-remove-allow-more-text-colors-prop.ts +1 -1
- package/codemods/migrates/remove-config-panel-width-prop.ts +1 -1
- package/codemods/migrates/rename-editor-to-editor-migration-component.ts +1 -1
- package/codemods/migrates/rename-smartlinks-prop.ts +1 -1
- package/codemods/utils.ts +11 -4
- package/dist/cjs/CollapsedEditor/index.js +1 -0
- package/dist/cjs/actions/index.js +6 -1
- package/dist/cjs/composable-editor/editor-internal.js +6 -2
- package/dist/cjs/create-editor/ReactEditorView.js +1 -0
- package/dist/cjs/create-editor/create-plugins-list.js +3 -1
- package/dist/cjs/create-editor/create-universal-preset.js +3 -1
- package/dist/cjs/presets/context.js +3 -0
- package/dist/cjs/presets/universal.js +2 -2
- package/dist/cjs/test-utils.js +3 -1
- package/dist/cjs/ui/ContextPanel/index.js +2 -0
- package/dist/cjs/ui/Toolbar/ToolbarInner.js +3 -4
- package/dist/cjs/ui/ToolbarFeedback/index.js +1 -0
- package/dist/cjs/ui/WithHelpTrigger/index.js +2 -0
- package/dist/cjs/use-preset.js +2 -0
- package/dist/cjs/utils/action.js +1 -0
- package/dist/cjs/utils/deprecation-warnings.js +2 -2
- package/dist/cjs/utils/performance/instrumented-plugin.js +2 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/CollapsedEditor/index.js +3 -0
- package/dist/es2019/actions/index.js +6 -1
- package/dist/es2019/composable-editor/editor-internal.js +6 -2
- package/dist/es2019/create-editor/ReactEditorView.js +1 -0
- package/dist/es2019/create-editor/create-plugins-list.js +3 -1
- package/dist/es2019/create-editor/create-universal-preset.js +3 -1
- package/dist/es2019/presets/context.js +4 -0
- package/dist/es2019/presets/universal.js +2 -1
- package/dist/es2019/test-utils.js +3 -1
- package/dist/es2019/ui/Appearance/Mobile.js +1 -0
- package/dist/es2019/ui/ContextPanel/index.js +2 -0
- package/dist/es2019/ui/Toolbar/ToolbarInner.js +3 -4
- package/dist/es2019/ui/ToolbarFeedback/index.js +1 -0
- package/dist/es2019/ui/WithHelpTrigger/index.js +2 -0
- package/dist/es2019/use-preset.js +3 -0
- package/dist/es2019/utils/action.js +1 -0
- package/dist/es2019/utils/deprecation-warnings.js +2 -2
- package/dist/es2019/utils/performance/instrumented-plugin.js +2 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/CollapsedEditor/index.js +2 -0
- package/dist/esm/actions/index.js +6 -1
- package/dist/esm/composable-editor/editor-internal.js +6 -2
- package/dist/esm/create-editor/ReactEditorView.js +1 -0
- package/dist/esm/create-editor/create-plugins-list.js +3 -1
- package/dist/esm/create-editor/create-universal-preset.js +3 -1
- package/dist/esm/presets/context.js +4 -0
- package/dist/esm/presets/universal.js +2 -2
- package/dist/esm/test-utils.js +3 -1
- package/dist/esm/ui/ContextPanel/index.js +2 -0
- package/dist/esm/ui/Toolbar/ToolbarInner.js +3 -4
- package/dist/esm/ui/ToolbarFeedback/index.js +1 -0
- package/dist/esm/ui/WithHelpTrigger/index.js +2 -0
- package/dist/esm/use-preset.js +3 -0
- package/dist/esm/utils/action.js +1 -0
- package/dist/esm/utils/deprecation-warnings.js +2 -2
- package/dist/esm/utils/performance/instrumented-plugin.js +2 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/CollapsedEditor/index.d.ts +7 -7
- package/dist/types/EditorWithActions/index.d.ts +1 -6
- package/dist/types/create-editor/create-universal-preset.d.ts +154 -2
- package/dist/types/create-editor/get-plugins.d.ts +4 -2
- package/dist/types/presets/default.d.ts +150 -2
- package/dist/types/presets/universal.d.ts +162 -3
- package/dist/types/presets/useUniversalPreset.d.ts +154 -2
- package/dist/types/types/editor-props.d.ts +1 -1
- package/dist/types/ui/Addon/ClickAreaBlock/index.d.ts +6 -1
- package/dist/types/ui/Addon/ClickAreaMobile/index.d.ts +1 -1
- package/dist/types/ui/Addon/Dropdown/index.d.ts +1 -1
- package/dist/types/ui/Addon/click-area-helper.d.ts +1 -1
- package/dist/types/ui/Addon/types.d.ts +3 -3
- package/dist/types/ui/Appearance/Chromeless.d.ts +1 -1
- package/dist/types/ui/Appearance/FullPage/BeforeWrapper.d.ts +1 -1
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +2 -2
- package/dist/types/ui/CollapsedEditor/index.d.ts +2 -2
- package/dist/types/ui/ContentStyles/index.d.ts +2 -1
- package/dist/types/ui/PluginSlot/index.d.ts +1 -1
- package/dist/types/ui/WithEditorActions/index.d.ts +2 -2
- package/dist/types/ui/WithFlash/index.d.ts +1 -1
- package/dist/types/ui/WithHelpTrigger/index.d.ts +1 -1
- package/dist/types/use-preset.d.ts +2 -1
- package/dist/types/utils/deprecation-warnings.d.ts +3 -3
- package/dist/types-ts4.5/CollapsedEditor/index.d.ts +7 -7
- package/dist/types-ts4.5/EditorWithActions/index.d.ts +1 -6
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +178 -2
- package/dist/types-ts4.5/create-editor/get-plugins.d.ts +4 -2
- package/dist/types-ts4.5/presets/default.d.ts +174 -2
- package/dist/types-ts4.5/presets/universal.d.ts +186 -3
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +178 -2
- package/dist/types-ts4.5/types/editor-props.d.ts +1 -1
- package/dist/types-ts4.5/ui/Addon/ClickAreaBlock/index.d.ts +6 -1
- package/dist/types-ts4.5/ui/Addon/ClickAreaMobile/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/Addon/Dropdown/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/Addon/click-area-helper.d.ts +1 -1
- package/dist/types-ts4.5/ui/Addon/types.d.ts +3 -3
- package/dist/types-ts4.5/ui/Appearance/Chromeless.d.ts +1 -1
- package/dist/types-ts4.5/ui/Appearance/FullPage/BeforeWrapper.d.ts +1 -1
- package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +2 -2
- package/dist/types-ts4.5/ui/CollapsedEditor/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +2 -1
- package/dist/types-ts4.5/ui/PluginSlot/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/WithEditorActions/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/WithFlash/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/WithHelpTrigger/index.d.ts +1 -1
- package/dist/types-ts4.5/use-preset.d.ts +2 -1
- package/dist/types-ts4.5/utils/deprecation-warnings.d.ts +3 -3
- package/docs/4-annotations.tsx +1 -0
- package/package.json +6 -6
package/.eslintrc.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
rules: {
|
|
3
|
+
'@typescript-eslint/no-explicit-any': 'error',
|
|
3
4
|
'@atlaskit/design-system/ensure-design-token-usage/preview': [
|
|
4
5
|
'error',
|
|
5
6
|
{ domains: ['spacing'], shouldEnforceFallbacks: false },
|
|
@@ -33,6 +34,7 @@ module.exports = {
|
|
|
33
34
|
],
|
|
34
35
|
rules: {
|
|
35
36
|
'import/no-restricted-paths': ['off'],
|
|
37
|
+
'@typescript-eslint/no-explicit-any': ['off'],
|
|
36
38
|
},
|
|
37
39
|
},
|
|
38
40
|
],
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 195.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#131374](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/131374)
|
|
8
|
+
[`9ef24a0e887b2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9ef24a0e887b2) -
|
|
9
|
+
Fix type definitions for `any` type in editor-core.
|
|
10
|
+
|
|
11
|
+
## 195.6.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#131937](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/131937)
|
|
16
|
+
[`64414d9668409`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/64414d9668409) -
|
|
17
|
+
Adding configuration to mentions plugin from confluence
|
|
18
|
+
|
|
3
19
|
## 195.5.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -8,7 +8,7 @@ import { findImportFromPackage } from '../utils';
|
|
|
8
8
|
* Ref: ED-15849
|
|
9
9
|
*/
|
|
10
10
|
const createRemoveAllowMoreTextColorsPropTransform = (pkg: string, component: string) => {
|
|
11
|
-
return (j: core.JSCodeshift, source: Collection<
|
|
11
|
+
return (j: core.JSCodeshift, source: Collection<unknown>) => {
|
|
12
12
|
// Find regular or renamed imports
|
|
13
13
|
// of <Editor/> component from '@atlaskit/editor-core' package
|
|
14
14
|
const importedNames: string[] = findImportFromPackage(
|
|
@@ -4,7 +4,7 @@ import type { Collection } from 'jscodeshift/src/Collection';
|
|
|
4
4
|
import { findImportFromPackage } from '../utils';
|
|
5
5
|
|
|
6
6
|
const createRemoveComponentPropTransform = (pkg: string, component: string, propName: string) => {
|
|
7
|
-
return (j: core.JSCodeshift, source: Collection<
|
|
7
|
+
return (j: core.JSCodeshift, source: Collection<unknown>) => {
|
|
8
8
|
// Find regular or renamed imports
|
|
9
9
|
const importedNames: string[] = findImportFromPackage(j, source, pkg, component);
|
|
10
10
|
|
|
@@ -7,7 +7,7 @@ import type { Collection } from 'jscodeshift/src/Collection';
|
|
|
7
7
|
* Ref: ED-16826
|
|
8
8
|
*/
|
|
9
9
|
export const createUpdateEditorToMigrationComponent = (pkg: string, component: string) => {
|
|
10
|
-
return (j: core.JSCodeshift, source: Collection<
|
|
10
|
+
return (j: core.JSCodeshift, source: Collection<unknown>) => {
|
|
11
11
|
source
|
|
12
12
|
.find(j.ImportDeclaration, { source: { value: pkg } })
|
|
13
13
|
.filter(
|
|
@@ -14,7 +14,7 @@ export const createJSXRenameVariableToNestedKeyTransform = (
|
|
|
14
14
|
toObjectName: string,
|
|
15
15
|
toObjectKey: string,
|
|
16
16
|
) => {
|
|
17
|
-
return (j: core.JSCodeshift, source: Collection<
|
|
17
|
+
return (j: core.JSCodeshift, source: Collection<unknown>) => {
|
|
18
18
|
source
|
|
19
19
|
.find(j.JSXAttribute, { name: { type: 'JSXIdentifier', name: from } })
|
|
20
20
|
.forEach((fromAttribute) => {
|
package/codemods/utils.ts
CHANGED
|
@@ -8,7 +8,11 @@ import type {
|
|
|
8
8
|
} from 'jscodeshift';
|
|
9
9
|
import type { Collection } from 'jscodeshift/src/Collection';
|
|
10
10
|
|
|
11
|
-
function hasImportDeclaration(
|
|
11
|
+
function hasImportDeclaration(
|
|
12
|
+
j: core.JSCodeshift,
|
|
13
|
+
source: Collection<unknown>,
|
|
14
|
+
importPath: string,
|
|
15
|
+
) {
|
|
12
16
|
const imports = source
|
|
13
17
|
.find(j.ImportDeclaration)
|
|
14
18
|
.filter((path: ASTPath<ImportDeclaration>) => path.node.source.value === importPath);
|
|
@@ -17,7 +21,10 @@ function hasImportDeclaration(j: core.JSCodeshift, source: Collection<any>, impo
|
|
|
17
21
|
}
|
|
18
22
|
|
|
19
23
|
export const createTransformer =
|
|
20
|
-
(
|
|
24
|
+
(
|
|
25
|
+
packageName: string,
|
|
26
|
+
migrations: { (j: core.JSCodeshift, source: Collection<unknown>): void }[],
|
|
27
|
+
) =>
|
|
21
28
|
(fileInfo: FileInfo, { jscodeshift: j }: API, options: Options) => {
|
|
22
29
|
const source = j(fileInfo.source);
|
|
23
30
|
|
|
@@ -42,7 +49,7 @@ export const createTransformer =
|
|
|
42
49
|
*/
|
|
43
50
|
export const findImportFromPackage = (
|
|
44
51
|
j: core.JSCodeshift,
|
|
45
|
-
source: Collection<
|
|
52
|
+
source: Collection<unknown>,
|
|
46
53
|
pkg: string,
|
|
47
54
|
importName: string,
|
|
48
55
|
): string[] => {
|
|
@@ -89,7 +96,7 @@ export const findImportFromPackage = (
|
|
|
89
96
|
* @param toName String
|
|
90
97
|
*/
|
|
91
98
|
export const createRenameVariableTransform = (from: string, toName: string) => {
|
|
92
|
-
return (j: core.JSCodeshift, source: Collection<
|
|
99
|
+
return (j: core.JSCodeshift, source: Collection<unknown>) => {
|
|
93
100
|
source.find(j.Identifier, { name: from }).forEach((x) => {
|
|
94
101
|
x.replace(j.identifier(toName));
|
|
95
102
|
});
|
|
@@ -21,6 +21,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
21
21
|
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; }
|
|
22
22
|
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); }; }
|
|
23
23
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
24
25
|
var CollapsedEditor = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
25
26
|
(0, _inherits2.default)(CollapsedEditor, _React$Component);
|
|
26
27
|
var _super = _createSuper(CollapsedEditor);
|
|
@@ -25,9 +25,12 @@ var _nodesByLocalIds = require("../utils/nodes-by-localIds");
|
|
|
25
25
|
var fakePluginKey = {
|
|
26
26
|
key: 'nativeCollabProviderPlugin$',
|
|
27
27
|
getState: function getState(state) {
|
|
28
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
28
29
|
return state['nativeCollabProviderPlugin$'];
|
|
29
30
|
}
|
|
30
31
|
};
|
|
32
|
+
|
|
33
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
31
34
|
var EditorActions = exports.default = /*#__PURE__*/function () {
|
|
32
35
|
function EditorActions() {
|
|
33
36
|
var _this = this;
|
|
@@ -327,7 +330,9 @@ var EditorActions = exports.default = /*#__PURE__*/function () {
|
|
|
327
330
|
}
|
|
328
331
|
}, {
|
|
329
332
|
key: "replaceDocument",
|
|
330
|
-
value: function replaceDocument(
|
|
333
|
+
value: function replaceDocument(
|
|
334
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
335
|
+
rawValue) {
|
|
331
336
|
var shouldScrollToBottom = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
332
337
|
var shouldAddToHistory = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
333
338
|
(0, _deprecationWarnings.default)('EditorActions.replaceDocument', {
|
|
@@ -44,7 +44,9 @@ var EditorInternal = exports.EditorInternal = /*#__PURE__*/(0, _react.memo)(func
|
|
|
44
44
|
onEditorDestroyed = _ref.onEditorDestroyed,
|
|
45
45
|
preset = _ref.preset;
|
|
46
46
|
var Component = (0, _createEditor.getUiComponent)(props.appearance);
|
|
47
|
-
var setEditorApi = (0, _react.useCallback)(
|
|
47
|
+
var setEditorApi = (0, _react.useCallback)(
|
|
48
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
49
|
+
function (api) {
|
|
48
50
|
// This is an workaround to unblock Editor Lego Decoupling project, if you have questions ping us #cc-editor-lego
|
|
49
51
|
// We may clean up this code when EditorActions deprecation process starts
|
|
50
52
|
// @ts-expect-error 2339: Property '__EDITOR_INTERNALS_DO_NOT_USE__API' does not exist on type 'EditorActions<any>'.
|
|
@@ -157,7 +159,9 @@ function ReactEditorViewContextWrapper(props) {
|
|
|
157
159
|
* so we should also set the value for the `EditorContext` that is used in
|
|
158
160
|
* `EditorInternal`.
|
|
159
161
|
*/
|
|
160
|
-
var setEditorAPI = (0, _react.useCallback)(
|
|
162
|
+
var setEditorAPI = (0, _react.useCallback)(
|
|
163
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
164
|
+
function (api) {
|
|
161
165
|
setInternalEditorAPI === null || setInternalEditorAPI === void 0 || setInternalEditorAPI(api);
|
|
162
166
|
setExternalEditorAPI === null || setExternalEditorAPI === void 0 || setExternalEditorAPI(api);
|
|
163
167
|
}, [setInternalEditorAPI, setExternalEditorAPI]);
|
|
@@ -616,6 +616,7 @@ var ReactEditorView = exports.ReactEditorView = /*#__PURE__*/function (_React$Co
|
|
|
616
616
|
}, {
|
|
617
617
|
key: "getPluginNames",
|
|
618
618
|
value: function getPluginNames() {
|
|
619
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
619
620
|
return this.editorState.plugins.map(function (p) {
|
|
620
621
|
return p.key;
|
|
621
622
|
});
|
|
@@ -109,7 +109,9 @@ function getDefaultPresetOptionsFromEditorProps(props, createAnalyticsEvent
|
|
|
109
109
|
* Note: The order that presets are added determines
|
|
110
110
|
* their placement in the editor toolbar.
|
|
111
111
|
*/
|
|
112
|
-
function createPluginsList(
|
|
112
|
+
function createPluginsList(
|
|
113
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
114
|
+
preset, props, pluginInjectionAPI) {
|
|
113
115
|
var excludes = new Set();
|
|
114
116
|
if (!isCodeBlockAllowed({
|
|
115
117
|
allowBlockType: props.allowBlockType
|
|
@@ -25,7 +25,9 @@ function createUniversalPreset(_ref) {
|
|
|
25
25
|
return withDangerouslyAppendPlugins(preset)((_props$dangerouslyApp = props.dangerouslyAppendPlugins) === null || _props$dangerouslyApp === void 0 ? void 0 : _props$dangerouslyApp.__plugins);
|
|
26
26
|
}
|
|
27
27
|
function withDangerouslyAppendPlugins(preset) {
|
|
28
|
-
function createEditorNextPluginsFromDangerouslyAppended(plugins
|
|
28
|
+
function createEditorNextPluginsFromDangerouslyAppended(plugins
|
|
29
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
30
|
+
) {
|
|
29
31
|
return plugins ? plugins.map(function (plugin) {
|
|
30
32
|
return function () {
|
|
31
33
|
return plugin;
|
|
@@ -12,9 +12,12 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
14
14
|
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; }
|
|
15
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
16
|
+
|
|
15
17
|
var EditorAPIContext = exports.EditorAPIContext = /*#__PURE__*/_react.default.createContext({});
|
|
16
18
|
var PresetContextProvider = exports.PresetContextProvider = function PresetContextProvider(_ref) {
|
|
17
19
|
var children = _ref.children;
|
|
20
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18
21
|
var _useState = (0, _react.useState)(),
|
|
19
22
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
20
23
|
editorApi = _useState2[0],
|
|
@@ -133,13 +133,13 @@ function createUniversalPresetInternal(_ref) {
|
|
|
133
133
|
isCopyPasteEnabled: !isMobile,
|
|
134
134
|
alignLeftOnInsert: typeof ((_props$media3 = props.media) === null || _props$media3 === void 0 ? void 0 : _props$media3.alignLeftOnInsert) !== 'undefined' ? (_props$media4 = props.media) === null || _props$media4 === void 0 ? void 0 : _props$media4.alignLeftOnInsert : isComment,
|
|
135
135
|
getEditorFeatureFlags: getEditorFeatureFlags
|
|
136
|
-
})], Boolean(props.media)).maybeAdd(_mediaInsert.mediaInsertPlugin, Boolean(props.media && (0, _platformFeatureFlags.fg)('platform_editor_insert_media_plugin_phase_one'))).maybeAdd(_caption.captionPlugin, Boolean((_props$media5 = props.media) === null || _props$media5 === void 0 ? void 0 : _props$media5.allowCaptions)).maybeAdd([_mentions.mentionsPlugin, {
|
|
136
|
+
})], Boolean(props.media)).maybeAdd(_mediaInsert.mediaInsertPlugin, Boolean(props.media && (0, _platformFeatureFlags.fg)('platform_editor_insert_media_plugin_phase_one'))).maybeAdd(_caption.captionPlugin, Boolean((_props$media5 = props.media) === null || _props$media5 === void 0 ? void 0 : _props$media5.allowCaptions)).maybeAdd([_mentions.mentionsPlugin, _objectSpread({
|
|
137
137
|
sanitizePrivateContent: props.sanitizePrivateContent,
|
|
138
138
|
insertDisplayName: (_props$mention$insert = (_props$mention = props.mention) === null || _props$mention === void 0 ? void 0 : _props$mention.insertDisplayName) !== null && _props$mention$insert !== void 0 ? _props$mention$insert : props.mentionInsertDisplayName,
|
|
139
139
|
allowZeroWidthSpaceAfter: !isMobile,
|
|
140
140
|
HighlightComponent: (_props$mention2 = props.mention) === null || _props$mention2 === void 0 ? void 0 : _props$mention2.HighlightComponent,
|
|
141
141
|
profilecardProvider: (_props$mention3 = props.mention) === null || _props$mention3 === void 0 ? void 0 : _props$mention3.profilecardProvider
|
|
142
|
-
}], Boolean(props.mentionProvider)).maybeAdd(_emoji.emojiPlugin, Boolean(props.emojiProvider)).maybeAdd([_table.tablesPlugin, {
|
|
142
|
+
}, initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.mentionsPlugin)], Boolean(props.mentionProvider)).maybeAdd(_emoji.emojiPlugin, Boolean(props.emojiProvider)).maybeAdd([_table.tablesPlugin, {
|
|
143
143
|
tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
|
|
144
144
|
tableResizingEnabled: isFullPage || isComment && (0, _platformFeatureFlags.fg)('platform_editor_table_support_in_comment'),
|
|
145
145
|
dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && (isFullPage || (isComment || isChromeless) && (0, _platformFeatureFlags.fg)('platform_editor_table_support_in_comment')),
|
package/dist/cjs/test-utils.js
CHANGED
|
@@ -221,6 +221,7 @@ var SwappableContentArea = exports.SwappableContentArea = /*#__PURE__*/function
|
|
|
221
221
|
var widthPluginKey = {
|
|
222
222
|
key: 'widthPlugin$',
|
|
223
223
|
getState: function getState(state) {
|
|
224
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
224
225
|
return state['widthPlugin$'];
|
|
225
226
|
}
|
|
226
227
|
};
|
|
@@ -229,6 +230,7 @@ var widthPluginKey = {
|
|
|
229
230
|
var contextPanelPluginKey = {
|
|
230
231
|
key: 'contextPanelPluginKey$',
|
|
231
232
|
getState: function getState(state) {
|
|
233
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
232
234
|
return state['contextPanelPluginKey$'];
|
|
233
235
|
}
|
|
234
236
|
};
|
|
@@ -60,9 +60,6 @@ var ToolbarInner = exports.ToolbarInner = /*#__PURE__*/function (_React$Componen
|
|
|
60
60
|
return (0, _react2.jsx)("div", {
|
|
61
61
|
css: toolbarComponentsWrapper
|
|
62
62
|
}, items.map(function (component, key) {
|
|
63
|
-
var props = {
|
|
64
|
-
key: key
|
|
65
|
-
};
|
|
66
63
|
var element = component({
|
|
67
64
|
editorView: editorView,
|
|
68
65
|
editorActions: editorActions,
|
|
@@ -80,7 +77,9 @@ var ToolbarInner = exports.ToolbarInner = /*#__PURE__*/function (_React$Componen
|
|
|
80
77
|
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
81
78
|
wrapperElement: null
|
|
82
79
|
});
|
|
83
|
-
return element && /*#__PURE__*/_react.default.cloneElement(element,
|
|
80
|
+
return element && /*#__PURE__*/_react.default.cloneElement(element, {
|
|
81
|
+
key: key
|
|
82
|
+
});
|
|
84
83
|
}));
|
|
85
84
|
}
|
|
86
85
|
}]);
|
|
@@ -206,6 +206,7 @@ var ToolbarFeedbackInternal = /*#__PURE__*/function (_PureComponent) {
|
|
|
206
206
|
}]);
|
|
207
207
|
return ToolbarFeedbackInternal;
|
|
208
208
|
}(_react.PureComponent);
|
|
209
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
209
210
|
(0, _defineProperty2.default)(ToolbarFeedbackInternal, "contextTypes", {
|
|
210
211
|
editorActions: _propTypes.default.object.isRequired
|
|
211
212
|
});
|
|
@@ -33,6 +33,8 @@ var WithHelpTrigger = exports.default = /*#__PURE__*/function (_React$Component)
|
|
|
33
33
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "openHelp", function () {
|
|
34
34
|
var _ref = _this.context,
|
|
35
35
|
editorActions = _ref.editorActions;
|
|
36
|
+
|
|
37
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
36
38
|
var dispatch = (0, _eventDispatcher.createDispatch)(editorActions.eventDispatcher);
|
|
37
39
|
dispatch(_utils.analyticsEventKey, {
|
|
38
40
|
payload: {
|
package/dist/cjs/use-preset.js
CHANGED
|
@@ -8,6 +8,8 @@ exports.usePreset = usePreset;
|
|
|
8
8
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
9
9
|
var _react = require("react");
|
|
10
10
|
var _preset = require("@atlaskit/editor-common/preset");
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12
|
+
|
|
11
13
|
/**
|
|
12
14
|
* Creates a preset.
|
|
13
15
|
*
|
package/dist/cjs/utils/action.js
CHANGED
|
@@ -14,6 +14,7 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
14
14
|
var mediaPluginKey = {
|
|
15
15
|
key: 'mediaPlugin$',
|
|
16
16
|
getState: function getState(state) {
|
|
17
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
17
18
|
return state['mediaPlugin$'];
|
|
18
19
|
}
|
|
19
20
|
};
|
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
8
8
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
9
9
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
10
|
-
|
|
10
|
+
function deprecationWarnings(className, props, deprecations) {
|
|
11
11
|
if (process.env.NODE_ENV === 'production') {
|
|
12
12
|
return;
|
|
13
13
|
}
|
|
@@ -37,5 +37,5 @@ var deprecationWarnings = function deprecationWarnings(className, props, depreca
|
|
|
37
37
|
} finally {
|
|
38
38
|
_iterator.f();
|
|
39
39
|
}
|
|
40
|
-
}
|
|
40
|
+
}
|
|
41
41
|
var _default = exports.default = deprecationWarnings;
|
|
@@ -36,6 +36,7 @@ var InstrumentedPlugin = exports.InstrumentedPlugin = /*#__PURE__*/function (_Sa
|
|
|
36
36
|
if (spec.state) {
|
|
37
37
|
var originalApply = spec.state.apply.bind(spec.state);
|
|
38
38
|
spec.state.apply = function (aTr, value, oldState, newState) {
|
|
39
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
39
40
|
var self = (0, _assertThisInitialized2.default)(_this);
|
|
40
41
|
var tr = new Proxy(aTr, (0, _saferTransactions.freezeUnsafeTransactionProperties)({
|
|
41
42
|
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
@@ -60,6 +61,7 @@ var InstrumentedPlugin = exports.InstrumentedPlugin = /*#__PURE__*/function (_Sa
|
|
|
60
61
|
if (uiTracking.enabled && spec.view) {
|
|
61
62
|
var originalView = spec.view.bind(spec);
|
|
62
63
|
spec.view = function (editorView) {
|
|
64
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
63
65
|
var self = (0, _assertThisInitialized2.default)(_this);
|
|
64
66
|
var measure = "\uD83E\uDD89".concat(self.key, "::view::update");
|
|
65
67
|
var view = originalView(editorView);
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import ChromeCollapsed from '../ui/ChromeCollapsed';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
|
+
|
|
4
7
|
export default class CollapsedEditor extends React.Component {
|
|
5
8
|
constructor(...args) {
|
|
6
9
|
super(...args);
|
|
@@ -15,9 +15,12 @@ import { findNodePosByFragmentLocalIds } from '../utils/nodes-by-localIds';
|
|
|
15
15
|
const fakePluginKey = {
|
|
16
16
|
key: 'nativeCollabProviderPlugin$',
|
|
17
17
|
getState: state => {
|
|
18
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18
19
|
return state['nativeCollabProviderPlugin$'];
|
|
19
20
|
}
|
|
20
21
|
};
|
|
22
|
+
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
21
24
|
export default class EditorActions {
|
|
22
25
|
constructor() {
|
|
23
26
|
_defineProperty(this, "listeners", []);
|
|
@@ -223,7 +226,9 @@ export default class EditorActions {
|
|
|
223
226
|
}
|
|
224
227
|
return isEmptyDocument(this.editorView.state.doc);
|
|
225
228
|
}
|
|
226
|
-
replaceDocument(
|
|
229
|
+
replaceDocument(
|
|
230
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
231
|
+
rawValue, shouldScrollToBottom = true, /** @deprecated [ED-14158] shouldAddToHistory is not being used in this function */
|
|
227
232
|
shouldAddToHistory = true) {
|
|
228
233
|
deprecationWarnings('EditorActions.replaceDocument', {
|
|
229
234
|
shouldAddToHistory
|
|
@@ -37,7 +37,9 @@ export const EditorInternal = /*#__PURE__*/memo(({
|
|
|
37
37
|
}) => {
|
|
38
38
|
var _props$performanceTra, _props$performanceTra2, _props$performanceTra3, _props$performanceTra4;
|
|
39
39
|
const Component = getUiComponent(props.appearance);
|
|
40
|
-
const setEditorApi = useCallback(
|
|
40
|
+
const setEditorApi = useCallback(
|
|
41
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
42
|
+
api => {
|
|
41
43
|
// This is an workaround to unblock Editor Lego Decoupling project, if you have questions ping us #cc-editor-lego
|
|
42
44
|
// We may clean up this code when EditorActions deprecation process starts
|
|
43
45
|
// @ts-expect-error 2339: Property '__EDITOR_INTERNALS_DO_NOT_USE__API' does not exist on type 'EditorActions<any>'.
|
|
@@ -151,7 +153,9 @@ function ReactEditorViewContextWrapper(props) {
|
|
|
151
153
|
* so we should also set the value for the `EditorContext` that is used in
|
|
152
154
|
* `EditorInternal`.
|
|
153
155
|
*/
|
|
154
|
-
const setEditorAPI = useCallback(
|
|
156
|
+
const setEditorAPI = useCallback(
|
|
157
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
158
|
+
api => {
|
|
155
159
|
setInternalEditorAPI === null || setInternalEditorAPI === void 0 ? void 0 : setInternalEditorAPI(api);
|
|
156
160
|
setExternalEditorAPI === null || setExternalEditorAPI === void 0 ? void 0 : setExternalEditorAPI(api);
|
|
157
161
|
}, [setInternalEditorAPI, setExternalEditorAPI]);
|
|
@@ -98,7 +98,9 @@ export function getDefaultPresetOptionsFromEditorProps(props, createAnalyticsEve
|
|
|
98
98
|
* Note: The order that presets are added determines
|
|
99
99
|
* their placement in the editor toolbar.
|
|
100
100
|
*/
|
|
101
|
-
export default function createPluginsList(
|
|
101
|
+
export default function createPluginsList(
|
|
102
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
103
|
+
preset, props, pluginInjectionAPI) {
|
|
102
104
|
const excludes = new Set();
|
|
103
105
|
if (!isCodeBlockAllowed({
|
|
104
106
|
allowBlockType: props.allowBlockType
|
|
@@ -20,7 +20,9 @@ export function createUniversalPreset({
|
|
|
20
20
|
return withDangerouslyAppendPlugins(preset)((_props$dangerouslyApp = props.dangerouslyAppendPlugins) === null || _props$dangerouslyApp === void 0 ? void 0 : _props$dangerouslyApp.__plugins);
|
|
21
21
|
}
|
|
22
22
|
function withDangerouslyAppendPlugins(preset) {
|
|
23
|
-
function createEditorNextPluginsFromDangerouslyAppended(plugins
|
|
23
|
+
function createEditorNextPluginsFromDangerouslyAppended(plugins
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
25
|
+
) {
|
|
24
26
|
return plugins ? plugins.map(plugin => () => plugin) : [];
|
|
25
27
|
}
|
|
26
28
|
return editorPluginsToAppend => {
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import React, { useContext, useMemo, useState } from 'react';
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4
|
+
|
|
2
5
|
export const EditorAPIContext = /*#__PURE__*/React.createContext({});
|
|
3
6
|
export const PresetContextProvider = ({
|
|
4
7
|
children
|
|
5
8
|
}) => {
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
10
|
const [editorApi, setEditorApi] = useState();
|
|
7
11
|
const contextValue = useMemo(() => ({
|
|
8
12
|
editorApi,
|
|
@@ -129,7 +129,8 @@ export default function createUniversalPresetInternal({
|
|
|
129
129
|
insertDisplayName: (_props$mention$insert = (_props$mention = props.mention) === null || _props$mention === void 0 ? void 0 : _props$mention.insertDisplayName) !== null && _props$mention$insert !== void 0 ? _props$mention$insert : props.mentionInsertDisplayName,
|
|
130
130
|
allowZeroWidthSpaceAfter: !isMobile,
|
|
131
131
|
HighlightComponent: (_props$mention2 = props.mention) === null || _props$mention2 === void 0 ? void 0 : _props$mention2.HighlightComponent,
|
|
132
|
-
profilecardProvider: (_props$mention3 = props.mention) === null || _props$mention3 === void 0 ? void 0 : _props$mention3.profilecardProvider
|
|
132
|
+
profilecardProvider: (_props$mention3 = props.mention) === null || _props$mention3 === void 0 ? void 0 : _props$mention3.profilecardProvider,
|
|
133
|
+
...(initialPluginConfiguration === null || initialPluginConfiguration === void 0 ? void 0 : initialPluginConfiguration.mentionsPlugin)
|
|
133
134
|
}], Boolean(props.mentionProvider)).maybeAdd(emojiPlugin, Boolean(props.emojiProvider)).maybeAdd([tablesPlugin, {
|
|
134
135
|
tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
|
|
135
136
|
tableResizingEnabled: isFullPage || isComment && fg('platform_editor_table_support_in_comment'),
|
|
@@ -194,6 +194,7 @@ export class SwappableContentArea extends React.PureComponent {
|
|
|
194
194
|
const widthPluginKey = {
|
|
195
195
|
key: 'widthPlugin$',
|
|
196
196
|
getState: state => {
|
|
197
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
197
198
|
return state['widthPlugin$'];
|
|
198
199
|
}
|
|
199
200
|
};
|
|
@@ -202,6 +203,7 @@ const widthPluginKey = {
|
|
|
202
203
|
const contextPanelPluginKey = {
|
|
203
204
|
key: 'contextPanelPluginKey$',
|
|
204
205
|
getState: state => {
|
|
206
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
205
207
|
return state['contextPanelPluginKey$'];
|
|
206
208
|
}
|
|
207
209
|
};
|
|
@@ -41,9 +41,6 @@ export class ToolbarInner extends React.Component {
|
|
|
41
41
|
return jsx("div", {
|
|
42
42
|
css: toolbarComponentsWrapper
|
|
43
43
|
}, items.map((component, key) => {
|
|
44
|
-
const props = {
|
|
45
|
-
key
|
|
46
|
-
};
|
|
47
44
|
const element = component({
|
|
48
45
|
editorView,
|
|
49
46
|
editorActions: editorActions,
|
|
@@ -61,7 +58,9 @@ export class ToolbarInner extends React.Component {
|
|
|
61
58
|
dispatchAnalyticsEvent,
|
|
62
59
|
wrapperElement: null
|
|
63
60
|
});
|
|
64
|
-
return element && /*#__PURE__*/React.cloneElement(element,
|
|
61
|
+
return element && /*#__PURE__*/React.cloneElement(element, {
|
|
62
|
+
key
|
|
63
|
+
});
|
|
65
64
|
}));
|
|
66
65
|
}
|
|
67
66
|
}
|
|
@@ -178,6 +178,7 @@ class ToolbarFeedbackInternal extends PureComponent {
|
|
|
178
178
|
}, "Learn more")))))) : null;
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
181
182
|
_defineProperty(ToolbarFeedbackInternal, "contextTypes", {
|
|
182
183
|
editorActions: PropTypes.object.isRequired
|
|
183
184
|
});
|
|
@@ -12,6 +12,8 @@ export default class WithHelpTrigger extends React.Component {
|
|
|
12
12
|
const {
|
|
13
13
|
editorActions
|
|
14
14
|
} = this.context;
|
|
15
|
+
|
|
16
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15
17
|
const dispatch = createDispatch(editorActions.eventDispatcher);
|
|
16
18
|
dispatch(analyticsEventKey, {
|
|
17
19
|
payload: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
function deprecationWarnings(className, props, deprecations) {
|
|
2
2
|
if (process.env.NODE_ENV === 'production') {
|
|
3
3
|
return;
|
|
4
4
|
}
|
|
@@ -16,5 +16,5 @@ const deprecationWarnings = (className, props, deprecations) => {
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
}
|
|
19
|
+
}
|
|
20
20
|
export default deprecationWarnings;
|
|
@@ -15,6 +15,7 @@ export class InstrumentedPlugin extends SafePlugin {
|
|
|
15
15
|
if (spec.state) {
|
|
16
16
|
const originalApply = spec.state.apply.bind(spec.state);
|
|
17
17
|
spec.state.apply = (aTr, value, oldState, newState) => {
|
|
18
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18
19
|
const self = this;
|
|
19
20
|
const tr = new Proxy(aTr, freezeUnsafeTransactionProperties({
|
|
20
21
|
dispatchAnalyticsEvent,
|
|
@@ -41,6 +42,7 @@ export class InstrumentedPlugin extends SafePlugin {
|
|
|
41
42
|
if (uiTracking.enabled && spec.view) {
|
|
42
43
|
const originalView = spec.view.bind(spec);
|
|
43
44
|
spec.view = editorView => {
|
|
45
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
44
46
|
const self = this;
|
|
45
47
|
const measure = `🦉${self.key}::view::update`;
|
|
46
48
|
const view = originalView(editorView);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "195.
|
|
2
|
+
export const version = "195.6.1";
|