@atlaskit/editor-plugin-table 7.11.6 → 7.12.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 +20 -0
- package/dist/types/nodeviews/table.d.ts +3 -2
- package/dist/types/nodeviews/types.d.ts +3 -2
- package/dist/types/pm-plugins/main.d.ts +3 -2
- package/dist/types-ts4.5/nodeviews/table.d.ts +3 -2
- package/dist/types-ts4.5/nodeviews/types.d.ts +3 -2
- package/dist/types-ts4.5/pm-plugins/main.d.ts +3 -2
- package/package.json +4 -4
- package/src/nodeviews/table.tsx +3 -2
- package/src/nodeviews/types.ts +3 -2
- package/src/pm-plugins/main.ts +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 7.12.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#95168](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/95168)
|
|
8
|
+
[`2091e194a817`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2091e194a817) -
|
|
9
|
+
Introduced new PortalProviderAPI behind a FF
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 7.11.7
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#96237](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96237)
|
|
20
|
+
[`0401e7b5a88e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0401e7b5a88e) -
|
|
21
|
+
[ED-23102] Bump ADF schema to version 35.12.2
|
|
22
|
+
|
|
3
23
|
## 7.11.6
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
|
-
import type
|
|
4
|
+
import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
5
|
+
import type { LegacyPortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
5
6
|
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
6
7
|
import type { GetEditorContainerWidth, GetEditorFeatureFlags, getPosHandler, getPosHandlerNode } from '@atlaskit/editor-common/types';
|
|
7
8
|
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
@@ -31,5 +32,5 @@ export default class TableView extends ReactNodeView<Props> {
|
|
|
31
32
|
}): boolean;
|
|
32
33
|
destroy(): void;
|
|
33
34
|
}
|
|
34
|
-
export declare const createTableView: (node: PmNode, view: EditorView, getPos: getPosHandler, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, dispatchAnalyticsEvent: DispatchAnalyticsEvent, pluginInjectionApi?: PluginInjectionAPI) => NodeView;
|
|
35
|
+
export declare const createTableView: (node: PmNode, view: EditorView, getPos: getPosHandler, portalProviderAPI: LegacyPortalProviderAPI | PortalProviderAPI, eventDispatcher: EventDispatcher, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, dispatchAnalyticsEvent: DispatchAnalyticsEvent, pluginInjectionApi?: PluginInjectionAPI) => NodeView;
|
|
35
36
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
|
-
import type
|
|
3
|
+
import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
4
|
+
import type { LegacyPortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
4
5
|
import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
5
6
|
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
6
7
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -18,7 +19,7 @@ export interface Props {
|
|
|
18
19
|
allowColumnResizing?: boolean;
|
|
19
20
|
allowControls?: boolean;
|
|
20
21
|
cellMinWidth?: number;
|
|
21
|
-
portalProviderAPI: PortalProviderAPI;
|
|
22
|
+
portalProviderAPI: LegacyPortalProviderAPI | PortalProviderAPI;
|
|
22
23
|
eventDispatcher: EventDispatcher;
|
|
23
24
|
getPos: () => number | undefined;
|
|
24
25
|
options?: TableOptions;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl-next';
|
|
2
2
|
import type { DispatchAnalyticsEvent, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
|
-
import type
|
|
4
|
+
import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
5
|
+
import type { LegacyPortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
5
6
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
6
7
|
import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
7
8
|
import type { PluginConfig, PluginInjectionAPI } from '../types';
|
|
8
|
-
export declare const createPlugin: (dispatchAnalyticsEvent: DispatchAnalyticsEvent, dispatch: Dispatch, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginConfig: PluginConfig, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, getIntl: () => IntlShape, tableResizingEnabled?: boolean, fullWidthModeEnabled?: boolean, previousFullWidthModeEnabled?: boolean, dragAndDropEnabled?: boolean, editorAnalyticsAPI?: EditorAnalyticsAPI, pluginInjectionApi?: PluginInjectionAPI, isTableScalingEnabled?: boolean) => SafePlugin<import("../types").TablePluginState>;
|
|
9
|
+
export declare const createPlugin: (dispatchAnalyticsEvent: DispatchAnalyticsEvent, dispatch: Dispatch, portalProviderAPI: LegacyPortalProviderAPI | PortalProviderAPI, eventDispatcher: EventDispatcher, pluginConfig: PluginConfig, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, getIntl: () => IntlShape, tableResizingEnabled?: boolean, fullWidthModeEnabled?: boolean, previousFullWidthModeEnabled?: boolean, dragAndDropEnabled?: boolean, editorAnalyticsAPI?: EditorAnalyticsAPI, pluginInjectionApi?: PluginInjectionAPI, isTableScalingEnabled?: boolean) => SafePlugin<import("../types").TablePluginState>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
|
-
import type
|
|
4
|
+
import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
5
|
+
import type { LegacyPortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
5
6
|
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
6
7
|
import type { GetEditorContainerWidth, GetEditorFeatureFlags, getPosHandler, getPosHandlerNode } from '@atlaskit/editor-common/types';
|
|
7
8
|
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
@@ -31,5 +32,5 @@ export default class TableView extends ReactNodeView<Props> {
|
|
|
31
32
|
}): boolean;
|
|
32
33
|
destroy(): void;
|
|
33
34
|
}
|
|
34
|
-
export declare const createTableView: (node: PmNode, view: EditorView, getPos: getPosHandler, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, dispatchAnalyticsEvent: DispatchAnalyticsEvent, pluginInjectionApi?: PluginInjectionAPI) => NodeView;
|
|
35
|
+
export declare const createTableView: (node: PmNode, view: EditorView, getPos: getPosHandler, portalProviderAPI: LegacyPortalProviderAPI | PortalProviderAPI, eventDispatcher: EventDispatcher, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, dispatchAnalyticsEvent: DispatchAnalyticsEvent, pluginInjectionApi?: PluginInjectionAPI) => NodeView;
|
|
35
36
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
|
-
import type
|
|
3
|
+
import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
4
|
+
import type { LegacyPortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
4
5
|
import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
5
6
|
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
6
7
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -18,7 +19,7 @@ export interface Props {
|
|
|
18
19
|
allowColumnResizing?: boolean;
|
|
19
20
|
allowControls?: boolean;
|
|
20
21
|
cellMinWidth?: number;
|
|
21
|
-
portalProviderAPI: PortalProviderAPI;
|
|
22
|
+
portalProviderAPI: LegacyPortalProviderAPI | PortalProviderAPI;
|
|
22
23
|
eventDispatcher: EventDispatcher;
|
|
23
24
|
getPos: () => number | undefined;
|
|
24
25
|
options?: TableOptions;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { IntlShape } from 'react-intl-next';
|
|
2
2
|
import type { DispatchAnalyticsEvent, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
|
-
import type
|
|
4
|
+
import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
5
|
+
import type { LegacyPortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
5
6
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
6
7
|
import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
7
8
|
import type { PluginConfig, PluginInjectionAPI } from '../types';
|
|
8
|
-
export declare const createPlugin: (dispatchAnalyticsEvent: DispatchAnalyticsEvent, dispatch: Dispatch, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginConfig: PluginConfig, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, getIntl: () => IntlShape, tableResizingEnabled?: boolean, fullWidthModeEnabled?: boolean, previousFullWidthModeEnabled?: boolean, dragAndDropEnabled?: boolean, editorAnalyticsAPI?: EditorAnalyticsAPI, pluginInjectionApi?: PluginInjectionAPI, isTableScalingEnabled?: boolean) => SafePlugin<import("../types").TablePluginState>;
|
|
9
|
+
export declare const createPlugin: (dispatchAnalyticsEvent: DispatchAnalyticsEvent, dispatch: Dispatch, portalProviderAPI: LegacyPortalProviderAPI | PortalProviderAPI, eventDispatcher: EventDispatcher, pluginConfig: PluginConfig, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, getIntl: () => IntlShape, tableResizingEnabled?: boolean, fullWidthModeEnabled?: boolean, previousFullWidthModeEnabled?: boolean, dragAndDropEnabled?: boolean, editorAnalyticsAPI?: EditorAnalyticsAPI, pluginInjectionApi?: PluginInjectionAPI, isTableScalingEnabled?: boolean) => SafePlugin<import("../types").TablePluginState>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.12.0",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"runReact18": false
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@atlaskit/adf-schema": "^35.12.
|
|
31
|
+
"@atlaskit/adf-schema": "^35.12.2",
|
|
32
32
|
"@atlaskit/custom-steps": "^0.1.0",
|
|
33
|
-
"@atlaskit/editor-common": "^
|
|
33
|
+
"@atlaskit/editor-common": "^79.0.0",
|
|
34
34
|
"@atlaskit/editor-palette": "1.6.0",
|
|
35
35
|
"@atlaskit/editor-plugin-accessibility-utils": "^1.1.0",
|
|
36
36
|
"@atlaskit/editor-plugin-analytics": "^1.1.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@atlaskit/primitives": "^5.7.0",
|
|
52
52
|
"@atlaskit/theme": "^12.7.0",
|
|
53
53
|
"@atlaskit/toggle": "^13.0.0",
|
|
54
|
-
"@atlaskit/tokens": "^1.
|
|
54
|
+
"@atlaskit/tokens": "^1.45.0",
|
|
55
55
|
"@atlaskit/tooltip": "^18.3.0",
|
|
56
56
|
"@babel/runtime": "^7.0.0",
|
|
57
57
|
"@emotion/react": "^11.7.1",
|
package/src/nodeviews/table.tsx
CHANGED
|
@@ -4,7 +4,8 @@ import type { TableColumnOrdering } from '@atlaskit/custom-steps';
|
|
|
4
4
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
5
5
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
6
6
|
import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
|
|
7
|
-
import type
|
|
7
|
+
import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
8
|
+
import type { LegacyPortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
8
9
|
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
9
10
|
import type {
|
|
10
11
|
GetEditorContainerWidth,
|
|
@@ -384,7 +385,7 @@ export const createTableView = (
|
|
|
384
385
|
node: PmNode,
|
|
385
386
|
view: EditorView,
|
|
386
387
|
getPos: getPosHandler,
|
|
387
|
-
portalProviderAPI: PortalProviderAPI,
|
|
388
|
+
portalProviderAPI: LegacyPortalProviderAPI | PortalProviderAPI,
|
|
388
389
|
eventDispatcher: EventDispatcher,
|
|
389
390
|
getEditorContainerWidth: GetEditorContainerWidth,
|
|
390
391
|
getEditorFeatureFlags: GetEditorFeatureFlags,
|
package/src/nodeviews/types.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
|
-
import type
|
|
3
|
+
import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
4
|
+
import type { LegacyPortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
4
5
|
import type {
|
|
5
6
|
GetEditorContainerWidth,
|
|
6
7
|
GetEditorFeatureFlags,
|
|
@@ -24,7 +25,7 @@ export interface Props {
|
|
|
24
25
|
allowColumnResizing?: boolean;
|
|
25
26
|
allowControls?: boolean;
|
|
26
27
|
cellMinWidth?: number;
|
|
27
|
-
portalProviderAPI: PortalProviderAPI;
|
|
28
|
+
portalProviderAPI: LegacyPortalProviderAPI | PortalProviderAPI;
|
|
28
29
|
eventDispatcher: EventDispatcher;
|
|
29
30
|
getPos: () => number | undefined;
|
|
30
31
|
options?: TableOptions;
|
package/src/pm-plugins/main.ts
CHANGED
|
@@ -15,7 +15,8 @@ import type {
|
|
|
15
15
|
Dispatch,
|
|
16
16
|
EventDispatcher,
|
|
17
17
|
} from '@atlaskit/editor-common/event-dispatcher';
|
|
18
|
-
import type
|
|
18
|
+
import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
19
|
+
import type { LegacyPortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
19
20
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
20
21
|
import {
|
|
21
22
|
transformSliceToRemoveOpenBodiedExtension,
|
|
@@ -101,7 +102,7 @@ import { pluginKey } from './plugin-key';
|
|
|
101
102
|
export const createPlugin = (
|
|
102
103
|
dispatchAnalyticsEvent: DispatchAnalyticsEvent,
|
|
103
104
|
dispatch: Dispatch,
|
|
104
|
-
portalProviderAPI: PortalProviderAPI,
|
|
105
|
+
portalProviderAPI: LegacyPortalProviderAPI | PortalProviderAPI,
|
|
105
106
|
eventDispatcher: EventDispatcher,
|
|
106
107
|
pluginConfig: PluginConfig,
|
|
107
108
|
getEditorContainerWidth: GetEditorContainerWidth,
|