@atlaskit/editor-plugin-caption 1.11.6 → 1.11.8
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 +12 -0
- package/dist/cjs/nodeviews/index.js +6 -9
- package/dist/es2019/index.js +3 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/nodeviews/index.js +6 -9
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -8,29 +8,27 @@ exports.CaptionNodeView = void 0;
|
|
|
8
8
|
exports.default = captionNodeView;
|
|
9
9
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
10
10
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
11
|
-
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
12
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
11
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
14
12
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
13
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
16
15
|
var _react = _interopRequireDefault(require("react"));
|
|
17
16
|
var _selectionBasedNodeView = require("@atlaskit/editor-common/selection-based-node-view");
|
|
18
17
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
19
|
-
function
|
|
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)); }
|
|
20
19
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
21
20
|
var CaptionNodeView = exports.CaptionNodeView = /*#__PURE__*/function (_SelectionBasedNodeVi) {
|
|
22
|
-
(0, _inherits2.default)(CaptionNodeView, _SelectionBasedNodeVi);
|
|
23
|
-
var _super = _createSuper(CaptionNodeView);
|
|
24
21
|
function CaptionNodeView(node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps, reactComponent, viewShouldUpdate, pluginInjectionApi) {
|
|
25
22
|
var _this;
|
|
26
23
|
(0, _classCallCheck2.default)(this, CaptionNodeView);
|
|
27
|
-
_this =
|
|
28
|
-
(0, _defineProperty2.default)(
|
|
24
|
+
_this = _callSuper(this, CaptionNodeView, [node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps, reactComponent, viewShouldUpdate]);
|
|
25
|
+
(0, _defineProperty2.default)(_this, "selected", _this.insideSelection());
|
|
29
26
|
_this.pluginInjectionApi = pluginInjectionApi;
|
|
30
27
|
_this.handleEditorDisabledChanged();
|
|
31
28
|
return _this;
|
|
32
29
|
}
|
|
33
|
-
(0,
|
|
30
|
+
(0, _inherits2.default)(CaptionNodeView, _SelectionBasedNodeVi);
|
|
31
|
+
return (0, _createClass2.default)(CaptionNodeView, [{
|
|
34
32
|
key: "createDomRef",
|
|
35
33
|
value: function createDomRef() {
|
|
36
34
|
var domRef = document.createElement('figcaption');
|
|
@@ -104,7 +102,6 @@ var CaptionNodeView = exports.CaptionNodeView = /*#__PURE__*/function (_Selectio
|
|
|
104
102
|
this.cleanupEditorDisabledListener = undefined;
|
|
105
103
|
}
|
|
106
104
|
}]);
|
|
107
|
-
return CaptionNodeView;
|
|
108
105
|
}(_selectionBasedNodeView.SelectionBasedNodeView);
|
|
109
106
|
function captionNodeView(portalProviderAPI, eventDispatcher, pluginInjectionApi) {
|
|
110
107
|
return function (node, view, getPos) {
|
package/dist/es2019/index.js
CHANGED
package/dist/esm/index.js
CHANGED
|
@@ -1,28 +1,26 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
-
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
4
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
5
3
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
4
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
5
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
|
7
6
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
-
function
|
|
7
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
9
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
9
|
import React from 'react';
|
|
11
10
|
import { SelectionBasedNodeView } from '@atlaskit/editor-common/selection-based-node-view';
|
|
12
11
|
import { Caption } from '@atlaskit/editor-common/ui';
|
|
13
12
|
export var CaptionNodeView = /*#__PURE__*/function (_SelectionBasedNodeVi) {
|
|
14
|
-
_inherits(CaptionNodeView, _SelectionBasedNodeVi);
|
|
15
|
-
var _super = _createSuper(CaptionNodeView);
|
|
16
13
|
function CaptionNodeView(node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps, reactComponent, viewShouldUpdate, pluginInjectionApi) {
|
|
17
14
|
var _this;
|
|
18
15
|
_classCallCheck(this, CaptionNodeView);
|
|
19
|
-
_this =
|
|
20
|
-
_defineProperty(
|
|
16
|
+
_this = _callSuper(this, CaptionNodeView, [node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps, reactComponent, viewShouldUpdate]);
|
|
17
|
+
_defineProperty(_this, "selected", _this.insideSelection());
|
|
21
18
|
_this.pluginInjectionApi = pluginInjectionApi;
|
|
22
19
|
_this.handleEditorDisabledChanged();
|
|
23
20
|
return _this;
|
|
24
21
|
}
|
|
25
|
-
|
|
22
|
+
_inherits(CaptionNodeView, _SelectionBasedNodeVi);
|
|
23
|
+
return _createClass(CaptionNodeView, [{
|
|
26
24
|
key: "createDomRef",
|
|
27
25
|
value: function createDomRef() {
|
|
28
26
|
var domRef = document.createElement('figcaption');
|
|
@@ -96,7 +94,6 @@ export var CaptionNodeView = /*#__PURE__*/function (_SelectionBasedNodeVi) {
|
|
|
96
94
|
this.cleanupEditorDisabledListener = undefined;
|
|
97
95
|
}
|
|
98
96
|
}]);
|
|
99
|
-
return CaptionNodeView;
|
|
100
97
|
}(SelectionBasedNodeView);
|
|
101
98
|
export default function captionNodeView(portalProviderAPI, eventDispatcher, pluginInjectionApi) {
|
|
102
99
|
return function (node, view, getPos) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-caption",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.8",
|
|
4
4
|
"description": "Caption plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
35
|
-
"@atlaskit/editor-common": "^
|
|
35
|
+
"@atlaskit/editor-common": "^97.0.0",
|
|
36
36
|
"@atlaskit/editor-plugin-analytics": "^1.10.0",
|
|
37
37
|
"@atlaskit/editor-plugin-editor-disabled": "^1.3.0",
|
|
38
|
-
"@atlaskit/editor-prosemirror": "6.
|
|
38
|
+
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
39
39
|
"@babel/runtime": "^7.0.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"@atlaskit/editor-plugin-focus": "^1.4.0",
|
|
47
47
|
"@atlaskit/editor-plugin-grid": "^1.2.0",
|
|
48
48
|
"@atlaskit/editor-plugin-guideline": "^1.2.0",
|
|
49
|
-
"@atlaskit/editor-plugin-selection": "^1.
|
|
49
|
+
"@atlaskit/editor-plugin-selection": "^1.6.0",
|
|
50
50
|
"@atlaskit/editor-plugin-width": "^1.3.0",
|
|
51
|
-
"@atlaskit/renderer": "^112.
|
|
51
|
+
"@atlaskit/renderer": "^112.7.0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"react": "^16.8.0 || ^17.0.0 || ~18.2.0"
|