@atlaskit/editor-plugin-caption 11.1.1 → 12.0.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 +32 -0
- package/captionPlugin/package.json +1 -8
- package/captionPluginType/package.json +1 -8
- package/package.json +7 -15
- package/dist/types-ts4.5/captionPlugin.d.ts +0 -3
- package/dist/types-ts4.5/captionPluginType.d.ts +0 -10
- package/dist/types-ts4.5/entry-points/captionPlugin.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/captionPluginType.d.ts +0 -1
- package/dist/types-ts4.5/index.d.ts +0 -2
- package/dist/types-ts4.5/nodeviews/index.d.ts +0 -31
- package/dist/types-ts4.5/pm-plugins/keymap.d.ts +0 -2
- package/dist/types-ts4.5/pm-plugins/main.d.ts +0 -9
- package/dist/types-ts4.5/pm-plugins/plugin-key.d.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-caption
|
|
2
2
|
|
|
3
|
+
## 12.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
|
|
8
|
+
Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
|
|
9
|
+
|
|
10
|
+
Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
|
|
11
|
+
|
|
12
|
+
Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
|
|
13
|
+
|
|
14
|
+
```diff
|
|
15
|
+
- "typesVersions": {
|
|
16
|
+
- ">=4.5 <4.9": {
|
|
17
|
+
- "*": [
|
|
18
|
+
- "dist/types-ts4.5/*",
|
|
19
|
+
- "dist/types-ts4.5/index.d.ts"
|
|
20
|
+
- ]
|
|
21
|
+
- }
|
|
22
|
+
- },
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
|
|
29
|
+
## 11.1.2
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- Updated dependencies
|
|
34
|
+
|
|
3
35
|
## 11.1.1
|
|
4
36
|
|
|
5
37
|
### Patch Changes
|
|
@@ -4,12 +4,5 @@
|
|
|
4
4
|
"module": "../dist/esm/entry-points/captionPlugin.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/entry-points/captionPlugin.js",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"types": "../dist/types/entry-points/captionPlugin.d.ts"
|
|
8
|
-
"typesVersions": {
|
|
9
|
-
">=4.5 <5.9": {
|
|
10
|
-
"*": [
|
|
11
|
-
"../dist/types-ts4.5/entry-points/captionPlugin.d.ts"
|
|
12
|
-
]
|
|
13
|
-
}
|
|
14
|
-
}
|
|
7
|
+
"types": "../dist/types/entry-points/captionPlugin.d.ts"
|
|
15
8
|
}
|
|
@@ -4,12 +4,5 @@
|
|
|
4
4
|
"module": "../dist/esm/entry-points/captionPluginType.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/entry-points/captionPluginType.js",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"types": "../dist/types/entry-points/captionPluginType.d.ts"
|
|
8
|
-
"typesVersions": {
|
|
9
|
-
">=4.5 <5.9": {
|
|
10
|
-
"*": [
|
|
11
|
-
"../dist/types-ts4.5/entry-points/captionPluginType.d.ts"
|
|
12
|
-
]
|
|
13
|
-
}
|
|
14
|
-
}
|
|
7
|
+
"types": "../dist/types/entry-points/captionPluginType.d.ts"
|
|
15
8
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-caption",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0",
|
|
4
4
|
"description": "Caption plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -16,26 +16,18 @@
|
|
|
16
16
|
"module": "dist/esm/index.js",
|
|
17
17
|
"module:es2019": "dist/es2019/index.js",
|
|
18
18
|
"types": "dist/types/index.d.ts",
|
|
19
|
-
"typesVersions": {
|
|
20
|
-
">=4.5 <4.9": {
|
|
21
|
-
"*": [
|
|
22
|
-
"dist/types-ts4.5/*",
|
|
23
|
-
"dist/types-ts4.5/index.d.ts"
|
|
24
|
-
]
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
19
|
"sideEffects": false,
|
|
28
20
|
"atlaskit:src": "src/index.ts",
|
|
29
21
|
"dependencies": {
|
|
30
|
-
"@atlaskit/adf-schema": "^
|
|
31
|
-
"@atlaskit/browser-apis": "^0.0
|
|
32
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
33
|
-
"@atlaskit/editor-plugin-editor-disabled": "^
|
|
34
|
-
"@atlaskit/editor-prosemirror": "^
|
|
22
|
+
"@atlaskit/adf-schema": "^55.0.0",
|
|
23
|
+
"@atlaskit/browser-apis": "^1.0.0",
|
|
24
|
+
"@atlaskit/editor-plugin-analytics": "^12.0.0",
|
|
25
|
+
"@atlaskit/editor-plugin-editor-disabled": "^12.0.0",
|
|
26
|
+
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
35
27
|
"@babel/runtime": "^7.0.0"
|
|
36
28
|
},
|
|
37
29
|
"peerDependencies": {
|
|
38
|
-
"@atlaskit/editor-common": "^
|
|
30
|
+
"@atlaskit/editor-common": "^116.0.0",
|
|
39
31
|
"react": "^18.2.0",
|
|
40
32
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
41
33
|
},
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
|
-
import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
|
|
4
|
-
export type CaptionPluginDependencies = [
|
|
5
|
-
typeof analyticsPlugin,
|
|
6
|
-
OptionalPlugin<EditorDisabledPlugin>
|
|
7
|
-
];
|
|
8
|
-
export type CaptionPlugin = NextEditorPlugin<'caption', {
|
|
9
|
-
dependencies: CaptionPluginDependencies;
|
|
10
|
-
}>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as captionPlugin } from '../captionPlugin';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { CaptionPlugin, CaptionPluginDependencies } from '../captionPluginType';
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type IntlShape } from 'react-intl';
|
|
3
|
-
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
|
-
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
5
|
-
import type { ForwardRef, ReactComponentProps, shouldUpdate } from '@atlaskit/editor-common/react-node-view';
|
|
6
|
-
import { SelectionBasedNodeView } from '@atlaskit/editor-common/selection-based-node-view';
|
|
7
|
-
import type { ExtractInjectionAPI, getPosHandler } from '@atlaskit/editor-common/types';
|
|
8
|
-
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
9
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
|
-
import type { CaptionPlugin } from '../captionPluginType';
|
|
11
|
-
export declare class CaptionNodeView extends SelectionBasedNodeView {
|
|
12
|
-
private selected;
|
|
13
|
-
private cleanupEditorDisabledListener?;
|
|
14
|
-
pluginInjectionApi?: ExtractInjectionAPI<CaptionPlugin>;
|
|
15
|
-
private intl?;
|
|
16
|
-
constructor(node: PMNode, view: EditorView, getPos: getPosHandler, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, reactComponentProps: ReactComponentProps, reactComponent?: React.ComponentType<React.PropsWithChildren<unknown>>, viewShouldUpdate?: shouldUpdate, pluginInjectionApi?: ExtractInjectionAPI<CaptionPlugin>, intl?: IntlShape);
|
|
17
|
-
createDomRef(): HTMLElement;
|
|
18
|
-
getContentDOM(): {
|
|
19
|
-
dom: HTMLDivElement;
|
|
20
|
-
};
|
|
21
|
-
ignoreMutation(mutation: MutationRecord | {
|
|
22
|
-
target: Node;
|
|
23
|
-
type: 'selection';
|
|
24
|
-
}): boolean;
|
|
25
|
-
handleEditorDisabledChanged(): void;
|
|
26
|
-
render(_props: never, forwardRef: ForwardRef): React.JSX.Element;
|
|
27
|
-
viewShouldUpdate(nextNode: PMNode): boolean;
|
|
28
|
-
destroy(): void;
|
|
29
|
-
}
|
|
30
|
-
/** Creates a caption node view for use with ProseMirror. */
|
|
31
|
-
export default function captionNodeView(portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginInjectionApi: ExtractInjectionAPI<CaptionPlugin> | undefined, intl?: IntlShape): (node: PMNode, view: EditorView, getPos: getPosHandler) => CaptionNodeView;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl';
|
|
2
|
-
import type { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
|
-
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
4
|
-
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
6
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
7
|
-
import type { CaptionPlugin } from '../captionPluginType';
|
|
8
|
-
declare const _default: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, dispatch: Dispatch, pluginInjectionApi: ExtractInjectionAPI<CaptionPlugin> | undefined, intl?: IntlShape) => SafePlugin;
|
|
9
|
-
export default _default;
|