@atlaskit/editor-plugin-caption 1.1.4 → 1.2.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
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-caption
|
|
2
2
|
|
|
3
|
+
## 1.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
|
|
8
|
+
[`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
|
|
9
|
+
[HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
|
|
10
|
+
language triggering composition on an empty line.This was fixed in a patch bump of
|
|
11
|
+
prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
|
|
12
|
+
|
|
13
|
+
## 1.2.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- [#95168](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/95168)
|
|
18
|
+
[`2091e194a817`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2091e194a817) -
|
|
19
|
+
Introduced new PortalProviderAPI behind a FF
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 1.1.4
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
|
-
import type {
|
|
3
|
+
import type { LegacyPortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
4
4
|
import type { ForwardRef, ReactComponentProps, shouldUpdate } from '@atlaskit/editor-common/react-node-view';
|
|
5
5
|
import { SelectionBasedNodeView } from '@atlaskit/editor-common/selection-based-node-view';
|
|
6
|
+
import { type PortalProviderAPI } from '@atlaskit/editor-common/src/portal';
|
|
6
7
|
import type { ExtractInjectionAPI, getPosHandler } from '@atlaskit/editor-common/types';
|
|
7
8
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
8
9
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -11,7 +12,7 @@ export declare class CaptionNodeView extends SelectionBasedNodeView {
|
|
|
11
12
|
private selected;
|
|
12
13
|
private cleanupEditorDisabledListener?;
|
|
13
14
|
pluginInjectionApi?: ExtractInjectionAPI<CaptionPlugin>;
|
|
14
|
-
constructor(node: PMNode, view: EditorView, getPos: getPosHandler, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, reactComponentProps: ReactComponentProps, reactComponent?: React.ComponentType<React.PropsWithChildren<unknown>>, hasContext?: boolean, viewShouldUpdate?: shouldUpdate, hasIntlContext?: boolean, pluginInjectionApi?: ExtractInjectionAPI<CaptionPlugin>);
|
|
15
|
+
constructor(node: PMNode, view: EditorView, getPos: getPosHandler, portalProviderAPI: LegacyPortalProviderAPI | PortalProviderAPI, eventDispatcher: EventDispatcher, reactComponentProps: ReactComponentProps, reactComponent?: React.ComponentType<React.PropsWithChildren<unknown>>, hasContext?: boolean, viewShouldUpdate?: shouldUpdate, hasIntlContext?: boolean, pluginInjectionApi?: ExtractInjectionAPI<CaptionPlugin>);
|
|
15
16
|
createDomRef(): HTMLElement;
|
|
16
17
|
getContentDOM(): {
|
|
17
18
|
dom: HTMLDivElement;
|
|
@@ -21,4 +22,4 @@ export declare class CaptionNodeView extends SelectionBasedNodeView {
|
|
|
21
22
|
viewShouldUpdate(nextNode: PMNode): boolean;
|
|
22
23
|
destroy(): void;
|
|
23
24
|
}
|
|
24
|
-
export default function captionNodeView(portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginInjectionApi: ExtractInjectionAPI<CaptionPlugin> | undefined): (node: PMNode, view: EditorView, getPos: getPosHandler) => CaptionNodeView;
|
|
25
|
+
export default function captionNodeView(portalProviderAPI: LegacyPortalProviderAPI | PortalProviderAPI, eventDispatcher: EventDispatcher, pluginInjectionApi: ExtractInjectionAPI<CaptionPlugin> | undefined): (node: PMNode, view: EditorView, getPos: getPosHandler) => CaptionNodeView;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
|
-
import type {
|
|
2
|
+
import type { LegacyPortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
3
3
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
4
4
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
5
|
+
import { type PortalProviderAPI } from '@atlaskit/editor-common/src/portal';
|
|
5
6
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
6
7
|
import type { CaptionPlugin } from '../types';
|
|
7
|
-
declare const _default: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, dispatch: Dispatch, pluginInjectionApi: ExtractInjectionAPI<CaptionPlugin> | undefined) => SafePlugin<any>;
|
|
8
|
+
declare const _default: (portalProviderAPI: LegacyPortalProviderAPI | PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, dispatch: Dispatch, pluginInjectionApi: ExtractInjectionAPI<CaptionPlugin> | undefined) => SafePlugin<any>;
|
|
8
9
|
export default _default;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
|
-
import type {
|
|
3
|
+
import type { LegacyPortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
4
4
|
import type { ForwardRef, ReactComponentProps, shouldUpdate } from '@atlaskit/editor-common/react-node-view';
|
|
5
5
|
import { SelectionBasedNodeView } from '@atlaskit/editor-common/selection-based-node-view';
|
|
6
|
+
import { type PortalProviderAPI } from '@atlaskit/editor-common/src/portal';
|
|
6
7
|
import type { ExtractInjectionAPI, getPosHandler } from '@atlaskit/editor-common/types';
|
|
7
8
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
8
9
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -11,7 +12,7 @@ export declare class CaptionNodeView extends SelectionBasedNodeView {
|
|
|
11
12
|
private selected;
|
|
12
13
|
private cleanupEditorDisabledListener?;
|
|
13
14
|
pluginInjectionApi?: ExtractInjectionAPI<CaptionPlugin>;
|
|
14
|
-
constructor(node: PMNode, view: EditorView, getPos: getPosHandler, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, reactComponentProps: ReactComponentProps, reactComponent?: React.ComponentType<React.PropsWithChildren<unknown>>, hasContext?: boolean, viewShouldUpdate?: shouldUpdate, hasIntlContext?: boolean, pluginInjectionApi?: ExtractInjectionAPI<CaptionPlugin>);
|
|
15
|
+
constructor(node: PMNode, view: EditorView, getPos: getPosHandler, portalProviderAPI: LegacyPortalProviderAPI | PortalProviderAPI, eventDispatcher: EventDispatcher, reactComponentProps: ReactComponentProps, reactComponent?: React.ComponentType<React.PropsWithChildren<unknown>>, hasContext?: boolean, viewShouldUpdate?: shouldUpdate, hasIntlContext?: boolean, pluginInjectionApi?: ExtractInjectionAPI<CaptionPlugin>);
|
|
15
16
|
createDomRef(): HTMLElement;
|
|
16
17
|
getContentDOM(): {
|
|
17
18
|
dom: HTMLDivElement;
|
|
@@ -21,4 +22,4 @@ export declare class CaptionNodeView extends SelectionBasedNodeView {
|
|
|
21
22
|
viewShouldUpdate(nextNode: PMNode): boolean;
|
|
22
23
|
destroy(): void;
|
|
23
24
|
}
|
|
24
|
-
export default function captionNodeView(portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginInjectionApi: ExtractInjectionAPI<CaptionPlugin> | undefined): (node: PMNode, view: EditorView, getPos: getPosHandler) => CaptionNodeView;
|
|
25
|
+
export default function captionNodeView(portalProviderAPI: LegacyPortalProviderAPI | PortalProviderAPI, eventDispatcher: EventDispatcher, pluginInjectionApi: ExtractInjectionAPI<CaptionPlugin> | undefined): (node: PMNode, view: EditorView, getPos: getPosHandler) => CaptionNodeView;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
|
-
import type {
|
|
2
|
+
import type { LegacyPortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
3
3
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
4
4
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
5
|
+
import { type PortalProviderAPI } from '@atlaskit/editor-common/src/portal';
|
|
5
6
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
6
7
|
import type { CaptionPlugin } from '../types';
|
|
7
|
-
declare const _default: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, dispatch: Dispatch, pluginInjectionApi: ExtractInjectionAPI<CaptionPlugin> | undefined) => SafePlugin<any>;
|
|
8
|
+
declare const _default: (portalProviderAPI: LegacyPortalProviderAPI | PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, dispatch: Dispatch, pluginInjectionApi: ExtractInjectionAPI<CaptionPlugin> | undefined) => SafePlugin<any>;
|
|
8
9
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-caption",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Caption plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/adf-schema": "^35.12.2",
|
|
36
|
-
"@atlaskit/editor-common": "^
|
|
36
|
+
"@atlaskit/editor-common": "^79.1.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^1.1.0",
|
|
38
38
|
"@atlaskit/editor-plugin-editor-disabled": "^1.1.0",
|
|
39
|
-
"@atlaskit/editor-prosemirror": "4.0.
|
|
39
|
+
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
40
40
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
41
41
|
"@babel/runtime": "^7.0.0"
|
|
42
42
|
},
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@atlaskit/editor-plugin-guideline": "^1.1.0",
|
|
51
51
|
"@atlaskit/editor-plugin-selection": "^1.2.0",
|
|
52
52
|
"@atlaskit/editor-plugin-width": "^1.1.0",
|
|
53
|
-
"@atlaskit/renderer": "^109.
|
|
53
|
+
"@atlaskit/renderer": "^109.25.0",
|
|
54
54
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|