@atlaskit/editor-plugin-extension 1.9.4 → 1.10.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
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-extension
|
|
2
2
|
|
|
3
|
+
## 1.10.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#119966](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/119966)
|
|
8
|
+
[`596ad24e38929`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/596ad24e38929) -
|
|
9
|
+
Clean up typescript references to LegacyPortalProviderAPI
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 1.9.4
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -306,7 +306,7 @@ var createPlugin = exports.createPlugin = function createPlugin(dispatch, provid
|
|
|
306
306
|
multiBodiedExtension: (0, _extensibility.ExtensionNodeView)(portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionNodeViewOptions, pluginInjectionApi, macroInteractionDesignFeatureFlags)
|
|
307
307
|
},
|
|
308
308
|
createSelectionBetween: function createSelectionBetween(view, anchor, head) {
|
|
309
|
-
if (!(0, _platformFeatureFlags.
|
|
309
|
+
if (!(0, _platformFeatureFlags.fg)('platform.editor.multi-bodied-extension_0rygg')) {
|
|
310
310
|
return null;
|
|
311
311
|
}
|
|
312
312
|
var _view$state3 = view.state,
|
|
@@ -3,7 +3,7 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
3
3
|
import { createSelectionClickHandler, GapCursorSelection, isSelectionAtEndOfNode, isSelectionAtStartOfNode } from '@atlaskit/editor-common/selection';
|
|
4
4
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import { findParentNodeOfTypeClosestToPos, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
6
|
-
import {
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
7
|
import { clearEditingContext, updateState } from '../commands';
|
|
8
8
|
import { createCommand, createPluginState, getPluginState } from '../plugin-factory';
|
|
9
9
|
import { pluginKey } from '../plugin-key';
|
|
@@ -241,7 +241,7 @@ const createPlugin = (dispatch, providerFactory, extensionHandlers, portalProvid
|
|
|
241
241
|
multiBodiedExtension: ExtensionNodeView(portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionNodeViewOptions, pluginInjectionApi, macroInteractionDesignFeatureFlags)
|
|
242
242
|
},
|
|
243
243
|
createSelectionBetween: function (view, anchor, head) {
|
|
244
|
-
if (!
|
|
244
|
+
if (!fg('platform.editor.multi-bodied-extension_0rygg')) {
|
|
245
245
|
return null;
|
|
246
246
|
}
|
|
247
247
|
const {
|
|
@@ -6,7 +6,7 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
6
6
|
import { createSelectionClickHandler, GapCursorSelection, isSelectionAtEndOfNode, isSelectionAtStartOfNode } from '@atlaskit/editor-common/selection';
|
|
7
7
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
8
8
|
import { findParentNodeOfTypeClosestToPos, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
9
|
-
import {
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
10
|
import { clearEditingContext, updateState } from '../commands';
|
|
11
11
|
import { createCommand, createPluginState, getPluginState } from '../plugin-factory';
|
|
12
12
|
import { pluginKey } from '../plugin-key';
|
|
@@ -280,7 +280,7 @@ var createPlugin = function createPlugin(dispatch, providerFactory, extensionHan
|
|
|
280
280
|
multiBodiedExtension: ExtensionNodeView(portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionNodeViewOptions, pluginInjectionApi, macroInteractionDesignFeatureFlags)
|
|
281
281
|
},
|
|
282
282
|
createSelectionBetween: function createSelectionBetween(view, anchor, head) {
|
|
283
|
-
if (!
|
|
283
|
+
if (!fg('platform.editor.multi-bodied-extension_0rygg')) {
|
|
284
284
|
return null;
|
|
285
285
|
}
|
|
286
286
|
var _view$state3 = view.state,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
2
|
import type { ExtensionHandlers, ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
3
3
|
import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
4
|
-
import type { LegacyPortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
5
4
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
6
5
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
7
6
|
import type { EditorAppearance, ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
|
|
@@ -19,7 +18,7 @@ export declare const handleUpdate: ({ view, prevState, domAtPos, extensionHandle
|
|
|
19
18
|
extensionHandlers: ExtensionHandlers;
|
|
20
19
|
applyChange: ApplyChangeHandler | undefined;
|
|
21
20
|
}) => true | undefined;
|
|
22
|
-
declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, portalProviderAPI:
|
|
21
|
+
declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginInjectionApi: ExtractInjectionAPI<ExtensionPlugin> | undefined, useLongPressSelection?: boolean, options?: {
|
|
23
22
|
appearance?: EditorAppearance;
|
|
24
23
|
}, featureFlags?: FeatureFlags) => SafePlugin<import("../types").ExtensionState>;
|
|
25
24
|
export { pluginKey, createPlugin, createCommand, getPluginState };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
2
|
import type { ExtensionHandlers, ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
3
3
|
import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
4
|
-
import type { LegacyPortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
5
4
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
6
5
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
7
6
|
import type { EditorAppearance, ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
|
|
@@ -19,7 +18,7 @@ export declare const handleUpdate: ({ view, prevState, domAtPos, extensionHandle
|
|
|
19
18
|
extensionHandlers: ExtensionHandlers;
|
|
20
19
|
applyChange: ApplyChangeHandler | undefined;
|
|
21
20
|
}) => true | undefined;
|
|
22
|
-
declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, portalProviderAPI:
|
|
21
|
+
declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginInjectionApi: ExtractInjectionAPI<ExtensionPlugin> | undefined, useLongPressSelection?: boolean, options?: {
|
|
23
22
|
appearance?: EditorAppearance;
|
|
24
23
|
}, featureFlags?: FeatureFlags) => SafePlugin<import("../types").ExtensionState>;
|
|
25
24
|
export { pluginKey, createPlugin, createCommand, getPluginState };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-extension",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "editor-plugin-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"@atlaskit/adf-utils": "^19.4.0",
|
|
29
29
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
30
30
|
"@atlaskit/avatar": "^21.11.0",
|
|
31
|
-
"@atlaskit/button": "^18.
|
|
31
|
+
"@atlaskit/button": "^18.4.0",
|
|
32
32
|
"@atlaskit/checkbox": "^13.5.0",
|
|
33
33
|
"@atlaskit/datetime-picker": "^13.7.0",
|
|
34
|
-
"@atlaskit/editor-common": "^
|
|
34
|
+
"@atlaskit/editor-common": "^85.0.0",
|
|
35
35
|
"@atlaskit/editor-json-transformer": "^8.15.0",
|
|
36
36
|
"@atlaskit/editor-plugin-analytics": "^1.4.0",
|
|
37
37
|
"@atlaskit/editor-plugin-context-identifier": "^1.1.0",
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
"@atlaskit/select": "^17.11.0",
|
|
53
53
|
"@atlaskit/smart-user-picker": "^6.9.0",
|
|
54
54
|
"@atlaskit/spinner": "^16.2.0",
|
|
55
|
-
"@atlaskit/tabs": "^16.
|
|
55
|
+
"@atlaskit/tabs": "^16.3.0",
|
|
56
56
|
"@atlaskit/textarea": "^5.5.0",
|
|
57
57
|
"@atlaskit/textfield": "^6.4.0",
|
|
58
58
|
"@atlaskit/theme": "^12.11.0",
|
|
59
59
|
"@atlaskit/toggle": "^13.2.0",
|
|
60
|
-
"@atlaskit/tokens": "^1.
|
|
60
|
+
"@atlaskit/tokens": "^1.54.0",
|
|
61
61
|
"@atlaskit/tooltip": "^18.5.0",
|
|
62
62
|
"@babel/runtime": "^7.0.0",
|
|
63
63
|
"@emotion/react": "^11.7.1",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@atlaskit/editor-test-helpers": "^18.
|
|
74
|
+
"@atlaskit/editor-test-helpers": "^18.26.0",
|
|
75
75
|
"react-select": "^5.4.0",
|
|
76
76
|
"typescript": "~5.4.2"
|
|
77
77
|
},
|