@atlaskit/editor-plugin-caption 1.11.9 → 1.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 +18 -0
- package/dist/cjs/nodeviews/index.js +0 -2
- package/dist/cjs/pm-plugins/main.js +1 -4
- package/dist/es2019/nodeviews/index.js +0 -2
- package/dist/es2019/pm-plugins/main.js +1 -4
- package/dist/esm/nodeviews/index.js +0 -2
- package/dist/esm/pm-plugins/main.js +1 -4
- package/dist/types/captionPluginType.d.ts +5 -1
- package/dist/types/nodeviews/index.d.ts +2 -2
- package/dist/types-ts4.5/captionPluginType.d.ts +5 -4
- package/dist/types-ts4.5/nodeviews/index.d.ts +2 -2
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-caption
|
|
2
2
|
|
|
3
|
+
## 1.12.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#105322](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/105322)
|
|
8
|
+
[`8876083532adc`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8876083532adc) -
|
|
9
|
+
Bumped editor-prosemirror version to 7.0.0
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 1.11.10
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 1.11.9
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -18,8 +18,6 @@ var _ui = require("@atlaskit/editor-common/ui");
|
|
|
18
18
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
19
19
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
20
20
|
var CaptionNodeView = exports.CaptionNodeView = /*#__PURE__*/function (_SelectionBasedNodeVi) {
|
|
21
|
-
// Ignored via go/ees005
|
|
22
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
23
21
|
function CaptionNodeView(node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps, reactComponent, viewShouldUpdate, pluginInjectionApi) {
|
|
24
22
|
var _this;
|
|
25
23
|
(0, _classCallCheck2.default)(this, CaptionNodeView);
|
|
@@ -18,10 +18,7 @@ var fireAnalytics = function fireAnalytics(tr, action, analyticsApi) {
|
|
|
18
18
|
actionSubjectId: _analytics.ACTION_SUBJECT_ID.CAPTION
|
|
19
19
|
})(tr);
|
|
20
20
|
};
|
|
21
|
-
var _default = exports.default = function _default(portalProviderAPI, eventDispatcher, providerFactory, dispatch, pluginInjectionApi
|
|
22
|
-
// Ignored via go/ees005
|
|
23
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
24
|
-
) {
|
|
21
|
+
var _default = exports.default = function _default(portalProviderAPI, eventDispatcher, providerFactory, dispatch, pluginInjectionApi) {
|
|
25
22
|
var _pluginInjectionApi$a;
|
|
26
23
|
var analyticsApi = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions;
|
|
27
24
|
return new _safePlugin.SafePlugin({
|
|
@@ -3,8 +3,6 @@ import React from 'react';
|
|
|
3
3
|
import { SelectionBasedNodeView } from '@atlaskit/editor-common/selection-based-node-view';
|
|
4
4
|
import { Caption } from '@atlaskit/editor-common/ui';
|
|
5
5
|
export class CaptionNodeView extends SelectionBasedNodeView {
|
|
6
|
-
// Ignored via go/ees005
|
|
7
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
8
6
|
constructor(node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps, reactComponent, viewShouldUpdate, pluginInjectionApi) {
|
|
9
7
|
super(node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps, reactComponent, viewShouldUpdate);
|
|
10
8
|
_defineProperty(this, "selected", this.insideSelection());
|
|
@@ -11,10 +11,7 @@ const fireAnalytics = (tr, action, analyticsApi) => {
|
|
|
11
11
|
actionSubjectId: ACTION_SUBJECT_ID.CAPTION
|
|
12
12
|
})(tr);
|
|
13
13
|
};
|
|
14
|
-
export default ((portalProviderAPI, eventDispatcher, providerFactory, dispatch, pluginInjectionApi
|
|
15
|
-
// Ignored via go/ees005
|
|
16
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
17
|
-
) => {
|
|
14
|
+
export default ((portalProviderAPI, eventDispatcher, providerFactory, dispatch, pluginInjectionApi) => {
|
|
18
15
|
var _pluginInjectionApi$a;
|
|
19
16
|
const analyticsApi = pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions;
|
|
20
17
|
return new SafePlugin({
|
|
@@ -10,8 +10,6 @@ import React from 'react';
|
|
|
10
10
|
import { SelectionBasedNodeView } from '@atlaskit/editor-common/selection-based-node-view';
|
|
11
11
|
import { Caption } from '@atlaskit/editor-common/ui';
|
|
12
12
|
export var CaptionNodeView = /*#__PURE__*/function (_SelectionBasedNodeVi) {
|
|
13
|
-
// Ignored via go/ees005
|
|
14
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
15
13
|
function CaptionNodeView(node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps, reactComponent, viewShouldUpdate, pluginInjectionApi) {
|
|
16
14
|
var _this;
|
|
17
15
|
_classCallCheck(this, CaptionNodeView);
|
|
@@ -11,10 +11,7 @@ var fireAnalytics = function fireAnalytics(tr, action, analyticsApi) {
|
|
|
11
11
|
actionSubjectId: ACTION_SUBJECT_ID.CAPTION
|
|
12
12
|
})(tr);
|
|
13
13
|
};
|
|
14
|
-
export default (function (portalProviderAPI, eventDispatcher, providerFactory, dispatch, pluginInjectionApi
|
|
15
|
-
// Ignored via go/ees005
|
|
16
|
-
// eslint-disable-next-line @typescript-eslint/max-params
|
|
17
|
-
) {
|
|
14
|
+
export default (function (portalProviderAPI, eventDispatcher, providerFactory, dispatch, pluginInjectionApi) {
|
|
18
15
|
var _pluginInjectionApi$a;
|
|
19
16
|
var analyticsApi = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions;
|
|
20
17
|
return new SafePlugin({
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
3
|
import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
|
|
4
|
+
export type CaptionPluginDependencies = [
|
|
5
|
+
typeof analyticsPlugin,
|
|
6
|
+
OptionalPlugin<EditorDisabledPlugin>
|
|
7
|
+
];
|
|
4
8
|
export type CaptionPlugin = NextEditorPlugin<'caption', {
|
|
5
|
-
dependencies:
|
|
9
|
+
dependencies: CaptionPluginDependencies;
|
|
6
10
|
}>;
|
|
@@ -18,10 +18,10 @@ export declare class CaptionNodeView extends SelectionBasedNodeView {
|
|
|
18
18
|
};
|
|
19
19
|
ignoreMutation(mutation: MutationRecord | {
|
|
20
20
|
type: 'selection';
|
|
21
|
-
target:
|
|
21
|
+
target: Node;
|
|
22
22
|
}): boolean;
|
|
23
23
|
handleEditorDisabledChanged(): void;
|
|
24
|
-
render(_props: never, forwardRef: ForwardRef): JSX.Element;
|
|
24
|
+
render(_props: never, forwardRef: ForwardRef): React.JSX.Element;
|
|
25
25
|
viewShouldUpdate(nextNode: PMNode): boolean;
|
|
26
26
|
destroy(): void;
|
|
27
27
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
3
|
import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
|
|
4
|
+
export type CaptionPluginDependencies = [
|
|
5
|
+
typeof analyticsPlugin,
|
|
6
|
+
OptionalPlugin<EditorDisabledPlugin>
|
|
7
|
+
];
|
|
4
8
|
export type CaptionPlugin = NextEditorPlugin<'caption', {
|
|
5
|
-
dependencies:
|
|
6
|
-
typeof analyticsPlugin,
|
|
7
|
-
OptionalPlugin<EditorDisabledPlugin>
|
|
8
|
-
];
|
|
9
|
+
dependencies: CaptionPluginDependencies;
|
|
9
10
|
}>;
|
|
@@ -18,10 +18,10 @@ export declare class CaptionNodeView extends SelectionBasedNodeView {
|
|
|
18
18
|
};
|
|
19
19
|
ignoreMutation(mutation: MutationRecord | {
|
|
20
20
|
type: 'selection';
|
|
21
|
-
target:
|
|
21
|
+
target: Node;
|
|
22
22
|
}): boolean;
|
|
23
23
|
handleEditorDisabledChanged(): void;
|
|
24
|
-
render(_props: never, forwardRef: ForwardRef): JSX.Element;
|
|
24
|
+
render(_props: never, forwardRef: ForwardRef): React.JSX.Element;
|
|
25
25
|
viewShouldUpdate(nextNode: PMNode): boolean;
|
|
26
26
|
destroy(): void;
|
|
27
27
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-caption",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"description": "Caption plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,23 +32,23 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
35
|
-
"@atlaskit/editor-common": "^
|
|
36
|
-
"@atlaskit/editor-plugin-analytics": "^1.
|
|
37
|
-
"@atlaskit/editor-plugin-editor-disabled": "^1.
|
|
38
|
-
"@atlaskit/editor-prosemirror": "
|
|
35
|
+
"@atlaskit/editor-common": "^99.10.0",
|
|
36
|
+
"@atlaskit/editor-plugin-analytics": "^1.12.0",
|
|
37
|
+
"@atlaskit/editor-plugin-editor-disabled": "^1.5.0",
|
|
38
|
+
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
39
39
|
"@babel/runtime": "^7.0.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@atlaskit/editor-plugin-copy-button": "^1.
|
|
43
|
-
"@atlaskit/editor-plugin-decorations": "^1.
|
|
44
|
-
"@atlaskit/editor-plugin-feature-flags": "^1.
|
|
45
|
-
"@atlaskit/editor-plugin-floating-toolbar": "^1.
|
|
46
|
-
"@atlaskit/editor-plugin-focus": "^1.
|
|
47
|
-
"@atlaskit/editor-plugin-grid": "^1.
|
|
48
|
-
"@atlaskit/editor-plugin-guideline": "^1.
|
|
49
|
-
"@atlaskit/editor-plugin-selection": "^1.
|
|
50
|
-
"@atlaskit/editor-plugin-width": "^2.
|
|
51
|
-
"@atlaskit/renderer": "^112.
|
|
42
|
+
"@atlaskit/editor-plugin-copy-button": "^1.5.0",
|
|
43
|
+
"@atlaskit/editor-plugin-decorations": "^1.5.0",
|
|
44
|
+
"@atlaskit/editor-plugin-feature-flags": "^1.3.0",
|
|
45
|
+
"@atlaskit/editor-plugin-floating-toolbar": "^1.17.0",
|
|
46
|
+
"@atlaskit/editor-plugin-focus": "^1.5.0",
|
|
47
|
+
"@atlaskit/editor-plugin-grid": "^1.4.0",
|
|
48
|
+
"@atlaskit/editor-plugin-guideline": "^1.4.0",
|
|
49
|
+
"@atlaskit/editor-plugin-selection": "^1.7.0",
|
|
50
|
+
"@atlaskit/editor-plugin-width": "^2.1.0",
|
|
51
|
+
"@atlaskit/renderer": "^112.13.0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"react": "^16.8.0 || ^17.0.0 || ~18.2.0"
|