@atlaskit/editor-plugin-expand 1.7.4 → 1.7.5
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 +9 -0
- package/dist/cjs/legacyExpand/ui/ExpandIconButton.js +1 -1
- package/dist/cjs/singlePlayerExpand/node-views/index.js +1 -5
- package/dist/cjs/singlePlayerExpand/ui/ExpandButton.js +1 -0
- package/dist/es2019/legacyExpand/ui/ExpandIconButton.js +2 -0
- package/dist/es2019/singlePlayerExpand/node-views/index.js +1 -5
- package/dist/es2019/singlePlayerExpand/ui/ExpandButton.js +2 -0
- package/dist/esm/legacyExpand/ui/ExpandIconButton.js +2 -0
- package/dist/esm/singlePlayerExpand/node-views/index.js +1 -5
- package/dist/esm/singlePlayerExpand/ui/ExpandButton.js +2 -0
- package/package.json +34 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-expand
|
|
2
2
|
|
|
3
|
+
## 1.7.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#111395](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/111395)
|
|
8
|
+
[`982ae51e945a5`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/982ae51e945a5) -
|
|
9
|
+
[ux] ED-23658 A user on a live page in view mode is not able to edit the contents of an expand.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 1.7.4
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -28,7 +28,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
28
28
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
29
29
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
30
30
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
31
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
|
|
31
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
32
32
|
var withTooltip = exports.withTooltip = function withTooltip(WrapperComponent) {
|
|
33
33
|
return /*#__PURE__*/function (_React$Component) {
|
|
34
34
|
(0, _inherits2.default)(WithSortableColumn, _React$Component);
|
|
@@ -457,10 +457,6 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
|
|
|
457
457
|
_expand.expandedState.set(node, wasExpanded);
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
|
-
if (this.content) {
|
|
461
|
-
// Disallow interaction/selection inside when collapsed.
|
|
462
|
-
this.content.setAttribute('contenteditable', this.getContentEditable(node) ? 'true' : 'false');
|
|
463
|
-
}
|
|
464
460
|
this.node = node;
|
|
465
461
|
this.updateExpandToggleIcon(this.node);
|
|
466
462
|
return true;
|
|
@@ -484,7 +480,7 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
|
|
|
484
480
|
value: function updateExpandBodyContentEditable() {
|
|
485
481
|
// Disallow interaction/selection inside expand body when collapsed.
|
|
486
482
|
if (this.content) {
|
|
487
|
-
this.content.setAttribute('contenteditable',
|
|
483
|
+
this.content.setAttribute('contenteditable', this.getContentEditable(this.node) ? 'true' : 'false');
|
|
488
484
|
}
|
|
489
485
|
}
|
|
490
486
|
}, {
|
|
@@ -19,6 +19,7 @@ var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron
|
|
|
19
19
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
20
20
|
var _excluded = ["buttonStyles"];
|
|
21
21
|
/** @jsx jsx */
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
23
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
23
24
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
25
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import React, { useCallback } from 'react';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
6
|
import { jsx } from '@emotion/react';
|
|
5
7
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
6
8
|
import { expandClassNames } from '@atlaskit/editor-common/styles';
|
|
@@ -452,10 +452,6 @@ export class ExpandNodeView {
|
|
|
452
452
|
expandedState.set(node, wasExpanded);
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
|
-
if (this.content) {
|
|
456
|
-
// Disallow interaction/selection inside when collapsed.
|
|
457
|
-
this.content.setAttribute('contenteditable', this.getContentEditable(node) ? 'true' : 'false');
|
|
458
|
-
}
|
|
459
455
|
this.node = node;
|
|
460
456
|
this.updateExpandToggleIcon(this.node);
|
|
461
457
|
return true;
|
|
@@ -475,7 +471,7 @@ export class ExpandNodeView {
|
|
|
475
471
|
updateExpandBodyContentEditable() {
|
|
476
472
|
// Disallow interaction/selection inside expand body when collapsed.
|
|
477
473
|
if (this.content) {
|
|
478
|
-
this.content.setAttribute('contenteditable',
|
|
474
|
+
this.content.setAttribute('contenteditable', this.getContentEditable(this.node) ? 'true' : 'false');
|
|
479
475
|
}
|
|
480
476
|
}
|
|
481
477
|
destroy() {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import React, { useCallback } from 'react';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
6
|
import { jsx } from '@emotion/react';
|
|
5
7
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
6
8
|
import { expandClassNames } from '@atlaskit/editor-common/styles';
|
|
@@ -13,6 +13,8 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
13
13
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
14
14
|
/** @jsx jsx */
|
|
15
15
|
import React, { useCallback } from 'react';
|
|
16
|
+
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
18
|
import { jsx } from '@emotion/react';
|
|
17
19
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
18
20
|
import { expandClassNames } from '@atlaskit/editor-common/styles';
|
|
@@ -449,10 +449,6 @@ export var ExpandNodeView = /*#__PURE__*/function () {
|
|
|
449
449
|
expandedState.set(node, wasExpanded);
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
|
-
if (this.content) {
|
|
453
|
-
// Disallow interaction/selection inside when collapsed.
|
|
454
|
-
this.content.setAttribute('contenteditable', this.getContentEditable(node) ? 'true' : 'false');
|
|
455
|
-
}
|
|
456
452
|
this.node = node;
|
|
457
453
|
this.updateExpandToggleIcon(this.node);
|
|
458
454
|
return true;
|
|
@@ -476,7 +472,7 @@ export var ExpandNodeView = /*#__PURE__*/function () {
|
|
|
476
472
|
value: function updateExpandBodyContentEditable() {
|
|
477
473
|
// Disallow interaction/selection inside expand body when collapsed.
|
|
478
474
|
if (this.content) {
|
|
479
|
-
this.content.setAttribute('contenteditable',
|
|
475
|
+
this.content.setAttribute('contenteditable', this.getContentEditable(this.node) ? 'true' : 'false');
|
|
480
476
|
}
|
|
481
477
|
}
|
|
482
478
|
}, {
|
|
@@ -6,6 +6,8 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
6
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
7
|
/** @jsx jsx */
|
|
8
8
|
import React, { useCallback } from 'react';
|
|
9
|
+
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
11
|
import { jsx } from '@emotion/react';
|
|
10
12
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
11
13
|
import { expandClassNames } from '@atlaskit/editor-common/styles';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-expand",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.5",
|
|
4
4
|
"description": "Expand plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -21,7 +21,10 @@
|
|
|
21
21
|
"types": "dist/types/index.d.ts",
|
|
22
22
|
"typesVersions": {
|
|
23
23
|
">=4.5 <4.9": {
|
|
24
|
-
"*": [
|
|
24
|
+
"*": [
|
|
25
|
+
"dist/types-ts4.5/*",
|
|
26
|
+
"dist/types-ts4.5/index.d.ts"
|
|
27
|
+
]
|
|
25
28
|
}
|
|
26
29
|
},
|
|
27
30
|
"sideEffects": false,
|
|
@@ -31,8 +34,8 @@
|
|
|
31
34
|
},
|
|
32
35
|
"dependencies": {
|
|
33
36
|
"@atlaskit/adf-schema": "^36.10.7",
|
|
34
|
-
"@atlaskit/button": "^17.
|
|
35
|
-
"@atlaskit/editor-common": "^82.
|
|
37
|
+
"@atlaskit/button": "^17.20.0",
|
|
38
|
+
"@atlaskit/editor-common": "^82.8.0",
|
|
36
39
|
"@atlaskit/editor-plugin-analytics": "^1.2.0",
|
|
37
40
|
"@atlaskit/editor-plugin-decorations": "^1.1.0",
|
|
38
41
|
"@atlaskit/editor-plugin-editor-disabled": "^1.1.0",
|
|
@@ -41,9 +44,9 @@
|
|
|
41
44
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
42
45
|
"@atlaskit/editor-shared-styles": "^2.12.0",
|
|
43
46
|
"@atlaskit/editor-tables": "^2.7.0",
|
|
44
|
-
"@atlaskit/icon": "^22.
|
|
47
|
+
"@atlaskit/icon": "^22.4.0",
|
|
45
48
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
46
|
-
"@atlaskit/tooltip": "^18.
|
|
49
|
+
"@atlaskit/tooltip": "^18.5.0",
|
|
47
50
|
"@babel/runtime": "^7.0.0",
|
|
48
51
|
"@emotion/react": "^11.7.1",
|
|
49
52
|
"w3c-keyname": "^2.1.8"
|
|
@@ -67,18 +70,35 @@
|
|
|
67
70
|
},
|
|
68
71
|
"techstack": {
|
|
69
72
|
"@atlassian/frontend": {
|
|
70
|
-
"import-structure": [
|
|
71
|
-
|
|
73
|
+
"import-structure": [
|
|
74
|
+
"atlassian-conventions"
|
|
75
|
+
],
|
|
76
|
+
"circular-dependencies": [
|
|
77
|
+
"file-and-folder-level"
|
|
78
|
+
]
|
|
72
79
|
},
|
|
73
80
|
"@repo/internal": {
|
|
74
81
|
"dom-events": "use-bind-event-listener",
|
|
75
|
-
"analytics": [
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"
|
|
82
|
+
"analytics": [
|
|
83
|
+
"analytics-next"
|
|
84
|
+
],
|
|
85
|
+
"design-tokens": [
|
|
86
|
+
"color"
|
|
87
|
+
],
|
|
88
|
+
"theming": [
|
|
89
|
+
"react-context"
|
|
90
|
+
],
|
|
91
|
+
"ui-components": [
|
|
92
|
+
"lite-mode"
|
|
93
|
+
],
|
|
79
94
|
"deprecation": "no-deprecated-imports",
|
|
80
|
-
"styling": [
|
|
81
|
-
|
|
95
|
+
"styling": [
|
|
96
|
+
"emotion",
|
|
97
|
+
"emotion"
|
|
98
|
+
],
|
|
99
|
+
"imports": [
|
|
100
|
+
"import-no-extraneous-disable-for-examples-and-docs"
|
|
101
|
+
]
|
|
82
102
|
}
|
|
83
103
|
},
|
|
84
104
|
"platform-feature-flags": {
|