@atlaskit/editor-plugin-expand 16.1.2 → 16.1.3
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 +10 -0
- package/dist/cjs/legacyExpand/commands.js +2 -2
- package/dist/cjs/legacyExpand/nodeviews/index.js +6 -5
- package/dist/cjs/legacyExpand/ui/ExpandIconButton.js +3 -3
- package/dist/cjs/singlePlayerExpand/commands.js +3 -3
- package/dist/cjs/singlePlayerExpand/node-views/index.js +4 -3
- package/dist/cjs/singlePlayerExpand/ui/ExpandButton.js +3 -3
- package/dist/cjs/singlePlayerExpand/ui/NodeView.js +2 -2
- package/dist/es2019/legacyExpand/commands.js +1 -1
- package/dist/es2019/legacyExpand/nodeviews/index.js +3 -2
- package/dist/es2019/legacyExpand/ui/ExpandIconButton.js +2 -2
- package/dist/es2019/singlePlayerExpand/commands.js +1 -1
- package/dist/es2019/singlePlayerExpand/node-views/index.js +2 -1
- package/dist/es2019/singlePlayerExpand/ui/ExpandButton.js +2 -2
- package/dist/es2019/singlePlayerExpand/ui/NodeView.js +1 -1
- package/dist/esm/legacyExpand/commands.js +1 -1
- package/dist/esm/legacyExpand/nodeviews/index.js +3 -2
- package/dist/esm/legacyExpand/ui/ExpandIconButton.js +2 -2
- package/dist/esm/singlePlayerExpand/commands.js +1 -1
- package/dist/esm/singlePlayerExpand/node-views/index.js +2 -1
- package/dist/esm/singlePlayerExpand/ui/ExpandButton.js +2 -2
- package/dist/esm/singlePlayerExpand/ui/NodeView.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-expand
|
|
2
2
|
|
|
3
|
+
## 16.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`656801b9e097c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/656801b9e097c) -
|
|
8
|
+
VOLTC-331 - Migrate updated package usage in platform/editor: rewrite barrel imports of
|
|
9
|
+
voltCompliant provider packages to deep/subpath imports (consumer-side debarrel). No public API
|
|
10
|
+
changes.
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 16.1.2
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -16,7 +16,7 @@ var _state2 = require("@atlaskit/editor-prosemirror/state");
|
|
|
16
16
|
var _utils2 = require("@atlaskit/editor-prosemirror/utils");
|
|
17
17
|
var _utils3 = require("@atlaskit/editor-tables/utils");
|
|
18
18
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
19
|
-
var
|
|
19
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
20
20
|
var _utils4 = require("../utils");
|
|
21
21
|
var _pluginFactory = require("./pm-plugins/plugin-factory");
|
|
22
22
|
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; }
|
|
@@ -164,7 +164,7 @@ var insertExpandWithInputMethod = exports.insertExpandWithInputMethod = function
|
|
|
164
164
|
state: state,
|
|
165
165
|
type: expandNode.type
|
|
166
166
|
});
|
|
167
|
-
var resolvedInputMethod = (0,
|
|
167
|
+
var resolvedInputMethod = (0, _fg.fg)('platform_editor_element_browser_analytic') ? inputMethod : _analytics.INPUT_METHOD.QUICK_INSERT;
|
|
168
168
|
var payload = {
|
|
169
169
|
action: _analytics.ACTION.INSERTED,
|
|
170
170
|
actionSubject: _analytics.ACTION_SUBJECT.DOCUMENT,
|
|
@@ -20,8 +20,9 @@ var _contentVisibility = require("@atlaskit/editor-common/utils/content-visibili
|
|
|
20
20
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
21
21
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
22
22
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
23
|
-
var
|
|
24
|
-
var
|
|
23
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
24
|
+
var _redo = require("@atlaskit/prosemirror-history/redo");
|
|
25
|
+
var _undo = require("@atlaskit/prosemirror-history/undo");
|
|
25
26
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
26
27
|
var _renderExpandButton = require("../../ui/renderExpandButton");
|
|
27
28
|
var _commands = require("../commands");
|
|
@@ -37,7 +38,7 @@ var toDOM = function toDOM(node, __livePage, intl, titleReadOnly, contentEditabl
|
|
|
37
38
|
'class': buildExpandClassName(node.type.name, __livePage ? !node.attrs.__expanded : node.attrs.__expanded),
|
|
38
39
|
'data-node-type': node.type.name,
|
|
39
40
|
'data-title': node.attrs.title
|
|
40
|
-
}, (0,
|
|
41
|
+
}, (0, _fg.fg)('platform_editor_adf_with_localid') && {
|
|
41
42
|
'data-local-id': node.attrs.localId
|
|
42
43
|
}), ['div', {
|
|
43
44
|
// prettier-ignore
|
|
@@ -493,7 +494,7 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
|
|
|
493
494
|
var _this$view1 = _this.view,
|
|
494
495
|
state = _this$view1.state,
|
|
495
496
|
dispatch = _this$view1.dispatch;
|
|
496
|
-
(0,
|
|
497
|
+
(0, _undo.undo)(state, dispatch);
|
|
497
498
|
event.preventDefault();
|
|
498
499
|
return;
|
|
499
500
|
});
|
|
@@ -501,7 +502,7 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
|
|
|
501
502
|
var _this$view10 = _this.view,
|
|
502
503
|
state = _this$view10.state,
|
|
503
504
|
dispatch = _this$view10.dispatch;
|
|
504
|
-
(0,
|
|
505
|
+
(0, _redo.redo)(state, dispatch);
|
|
505
506
|
event.preventDefault();
|
|
506
507
|
return;
|
|
507
508
|
});
|
|
@@ -16,12 +16,12 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
16
16
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
17
17
|
var _react = _interopRequireWildcard(require("react"));
|
|
18
18
|
var _react2 = require("@emotion/react");
|
|
19
|
-
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
|
|
19
|
+
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button/custom-theme-button"));
|
|
20
20
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
21
21
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
22
22
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
23
23
|
var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/core/chevron-right"));
|
|
24
|
-
var
|
|
24
|
+
var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
|
|
25
25
|
var _excluded = ["buttonStyles"];
|
|
26
26
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
27
27
|
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; }
|
|
@@ -44,7 +44,7 @@ var withTooltip = exports.withTooltip = function withTooltip(WrapperComponent) {
|
|
|
44
44
|
var label = this.props.label;
|
|
45
45
|
return (
|
|
46
46
|
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
47
|
-
(0, _react2.jsx)(
|
|
47
|
+
(0, _react2.jsx)(_Tooltip.default, {
|
|
48
48
|
content: label,
|
|
49
49
|
position: "top",
|
|
50
50
|
tag: _ui.ExpandLayoutWrapperWithRef
|
|
@@ -18,7 +18,7 @@ var _state2 = require("@atlaskit/editor-prosemirror/state");
|
|
|
18
18
|
var _utils2 = require("@atlaskit/editor-prosemirror/utils");
|
|
19
19
|
var _utils3 = require("@atlaskit/editor-tables/utils");
|
|
20
20
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
21
|
-
var
|
|
21
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
22
22
|
var _utils4 = require("../utils");
|
|
23
23
|
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; }
|
|
24
24
|
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; } // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
@@ -34,7 +34,7 @@ var createExpandNode = exports.createExpandNode = function createExpandNode(stat
|
|
|
34
34
|
var isSelectionInTable = !!(0, _utils3.findTable)(state.selection);
|
|
35
35
|
var isSelectionInExpand = (0, _utils4.isNestedInExpand)(state);
|
|
36
36
|
var expandType = isSelectionInTable || isSelectionInExpand ? nestedExpand : expand;
|
|
37
|
-
var expandNode = (0,
|
|
37
|
+
var expandNode = (0, _fg.fg)('platform_editor_adf_with_localid') ? expandType.createAndFill(addLocalId ? {
|
|
38
38
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
39
39
|
localId: (0, _v.default)()
|
|
40
40
|
} : {},
|
|
@@ -81,7 +81,7 @@ var insertExpandWithInputMethod = exports.insertExpandWithInputMethod = function
|
|
|
81
81
|
tr = (0, _utils.createWrapSelectionTransaction)(_objectSpread({
|
|
82
82
|
state: state,
|
|
83
83
|
type: expandNode.type
|
|
84
|
-
}, (0,
|
|
84
|
+
}, (0, _fg.fg)('platform_editor_adf_with_localid') && {
|
|
85
85
|
nodeAttributes: expandNode.attrs
|
|
86
86
|
}));
|
|
87
87
|
var wrapperNode = (0, _utils2.findParentNodeOfType)(expandNode.type)(tr.selection);
|
|
@@ -20,7 +20,8 @@ var _contentVisibility = require("@atlaskit/editor-common/utils/content-visibili
|
|
|
20
20
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
21
21
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
22
22
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
23
|
-
var
|
|
23
|
+
var _redo = require("@atlaskit/prosemirror-history/redo");
|
|
24
|
+
var _undo = require("@atlaskit/prosemirror-history/undo");
|
|
24
25
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
25
26
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
26
27
|
var _renderExpandButton = require("../../ui/renderExpandButton");
|
|
@@ -447,7 +448,7 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
|
|
|
447
448
|
var _this$view0 = _this.view,
|
|
448
449
|
state = _this$view0.state,
|
|
449
450
|
dispatch = _this$view0.dispatch;
|
|
450
|
-
(0,
|
|
451
|
+
(0, _undo.undo)(state, dispatch);
|
|
451
452
|
event.preventDefault();
|
|
452
453
|
return;
|
|
453
454
|
});
|
|
@@ -455,7 +456,7 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
|
|
|
455
456
|
var _this$view1 = _this.view,
|
|
456
457
|
state = _this$view1.state,
|
|
457
458
|
dispatch = _this$view1.dispatch;
|
|
458
|
-
(0,
|
|
459
|
+
(0, _redo.redo)(state, dispatch);
|
|
459
460
|
event.preventDefault();
|
|
460
461
|
return;
|
|
461
462
|
});
|
|
@@ -11,12 +11,12 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
11
11
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _react2 = require("@emotion/react");
|
|
14
|
-
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
|
|
14
|
+
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button/custom-theme-button"));
|
|
15
15
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
16
16
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
17
17
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
18
18
|
var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/core/chevron-right"));
|
|
19
|
-
var
|
|
19
|
+
var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
|
|
20
20
|
var _excluded = ["buttonStyles"];
|
|
21
21
|
/**
|
|
22
22
|
* @jsxRuntime classic
|
|
@@ -30,7 +30,7 @@ function withTooltip(Component) {
|
|
|
30
30
|
return function WithTooltip(props) {
|
|
31
31
|
return (
|
|
32
32
|
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
33
|
-
(0, _react2.jsx)(
|
|
33
|
+
(0, _react2.jsx)(_Tooltip.default, {
|
|
34
34
|
content: props.label,
|
|
35
35
|
position: "top",
|
|
36
36
|
tag: _ui.ExpandLayoutWrapperWithRef
|
|
@@ -9,7 +9,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
9
9
|
var _expand = require("@atlaskit/editor-common/expand");
|
|
10
10
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
11
11
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
12
|
-
var
|
|
12
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
13
13
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
14
14
|
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; }
|
|
15
15
|
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; }
|
|
@@ -23,7 +23,7 @@ var toDOM = exports.toDOM = function toDOM(node, __livePage, intl, titleReadOnly
|
|
|
23
23
|
'class': buildExpandClassName(node.type.name, (_expandedState$get = _expand.expandedState.get(node)) !== null && _expandedState$get !== void 0 ? _expandedState$get : false),
|
|
24
24
|
'data-node-type': node.type.name,
|
|
25
25
|
'data-title': node.attrs.title
|
|
26
|
-
}, (0,
|
|
26
|
+
}, (0, _fg.fg)('platform_editor_adf_with_localid') && {
|
|
27
27
|
'data-local-id': node.attrs.localId
|
|
28
28
|
}), ['div', {
|
|
29
29
|
// prettier-ignore
|
|
@@ -8,7 +8,7 @@ import { Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
|
8
8
|
import { safeInsert } from '@atlaskit/editor-prosemirror/utils';
|
|
9
9
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
10
10
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
12
12
|
import { isNestedInExpand } from '../utils';
|
|
13
13
|
import { createCommand } from './pm-plugins/plugin-factory';
|
|
14
14
|
export const setExpandRef = ref => createCommand({
|
|
@@ -11,8 +11,9 @@ import { applyContentVisibility, estimateExpandIntrinsicHeight } from '@atlaskit
|
|
|
11
11
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
12
12
|
import { NodeSelection, Selection } from '@atlaskit/editor-prosemirror/state';
|
|
13
13
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
14
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
|
-
import { redo
|
|
14
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
15
|
+
import { redo } from '@atlaskit/prosemirror-history/redo';
|
|
16
|
+
import { undo } from '@atlaskit/prosemirror-history/undo';
|
|
16
17
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
17
18
|
import { renderExpandButton } from '../../ui/renderExpandButton';
|
|
18
19
|
import { deleteExpandAtPos, setSelectionInsideExpand, toggleExpandExpanded, updateExpandTitle } from '../commands';
|
|
@@ -7,12 +7,12 @@ import React, { useCallback } from 'react';
|
|
|
7
7
|
|
|
8
8
|
// eslint-disable-next-line @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
|
-
import Button from '@atlaskit/button/custom-theme-button';
|
|
10
|
+
import Button from '@atlaskit/button/custom-theme-button/custom-theme-button';
|
|
11
11
|
import { expandClassNames } from '@atlaskit/editor-common/styles';
|
|
12
12
|
import { expandLayoutWrapperStyle, ExpandLayoutWrapperWithRef, expandMessages } from '@atlaskit/editor-common/ui';
|
|
13
13
|
import { akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
|
|
14
14
|
import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
|
|
15
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
15
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
16
16
|
export const withTooltip = WrapperComponent => {
|
|
17
17
|
return class WithSortableColumn extends React.Component {
|
|
18
18
|
constructor(props) {
|
|
@@ -13,7 +13,7 @@ import { Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
|
13
13
|
import { findParentNodeOfType, safeInsert } from '@atlaskit/editor-prosemirror/utils';
|
|
14
14
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
15
15
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
16
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
17
17
|
import { isNestedInExpand } from '../utils';
|
|
18
18
|
|
|
19
19
|
// Creates either an expand or a nestedExpand node based on the current selection
|
|
@@ -11,7 +11,8 @@ import { applyContentVisibility, estimateExpandIntrinsicHeight } from '@atlaskit
|
|
|
11
11
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
12
12
|
import { NodeSelection, Selection } from '@atlaskit/editor-prosemirror/state';
|
|
13
13
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
14
|
-
import { redo
|
|
14
|
+
import { redo } from '@atlaskit/prosemirror-history/redo';
|
|
15
|
+
import { undo } from '@atlaskit/prosemirror-history/undo';
|
|
15
16
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
16
17
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
17
18
|
import { renderExpandButton } from '../../ui/renderExpandButton';
|
|
@@ -7,12 +7,12 @@ import React, { useCallback } from 'react';
|
|
|
7
7
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
|
-
import Button from '@atlaskit/button/custom-theme-button';
|
|
10
|
+
import Button from '@atlaskit/button/custom-theme-button/custom-theme-button';
|
|
11
11
|
import { expandClassNames } from '@atlaskit/editor-common/styles';
|
|
12
12
|
import { expandLayoutWrapperStyle, ExpandLayoutWrapperWithRef, expandMessages } from '@atlaskit/editor-common/ui';
|
|
13
13
|
import { akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
|
|
14
14
|
import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
|
|
15
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
15
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
16
16
|
function withTooltip(Component) {
|
|
17
17
|
return function WithTooltip(props) {
|
|
18
18
|
return (
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { expandedState } from '@atlaskit/editor-common/expand';
|
|
2
2
|
import { expandClassNames } from '@atlaskit/editor-common/styles';
|
|
3
3
|
import { expandMessages } from '@atlaskit/editor-common/ui';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
5
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
6
|
export const buildExpandClassName = (type, expanded) => {
|
|
7
7
|
return `${expandClassNames.prefix} ${expandClassNames.type(type)} ${expanded ? expandClassNames.expanded : ''}`;
|
|
@@ -11,7 +11,7 @@ import { Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
|
11
11
|
import { safeInsert } from '@atlaskit/editor-prosemirror/utils';
|
|
12
12
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
13
13
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
14
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
15
15
|
import { isNestedInExpand } from '../utils';
|
|
16
16
|
import { createCommand } from './pm-plugins/plugin-factory';
|
|
17
17
|
export var setExpandRef = function setExpandRef(ref) {
|
|
@@ -15,8 +15,9 @@ import { applyContentVisibility, estimateExpandIntrinsicHeight } from '@atlaskit
|
|
|
15
15
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
16
16
|
import { NodeSelection, Selection } from '@atlaskit/editor-prosemirror/state';
|
|
17
17
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
18
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
19
|
-
import { redo
|
|
18
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
19
|
+
import { redo } from '@atlaskit/prosemirror-history/redo';
|
|
20
|
+
import { undo } from '@atlaskit/prosemirror-history/undo';
|
|
20
21
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
21
22
|
import { renderExpandButton } from '../../ui/renderExpandButton';
|
|
22
23
|
import { deleteExpandAtPos, setSelectionInsideExpand, toggleExpandExpanded, updateExpandTitle } from '../commands';
|
|
@@ -19,12 +19,12 @@ import React, { useCallback } from 'react';
|
|
|
19
19
|
|
|
20
20
|
// eslint-disable-next-line @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
21
21
|
import { jsx } from '@emotion/react';
|
|
22
|
-
import Button from '@atlaskit/button/custom-theme-button';
|
|
22
|
+
import Button from '@atlaskit/button/custom-theme-button/custom-theme-button';
|
|
23
23
|
import { expandClassNames } from '@atlaskit/editor-common/styles';
|
|
24
24
|
import { expandLayoutWrapperStyle, ExpandLayoutWrapperWithRef, expandMessages } from '@atlaskit/editor-common/ui';
|
|
25
25
|
import { akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
|
|
26
26
|
import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
|
|
27
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
27
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
28
28
|
export var withTooltip = function withTooltip(WrapperComponent) {
|
|
29
29
|
return /*#__PURE__*/function (_React$Component) {
|
|
30
30
|
function WithSortableColumn(props) {
|
|
@@ -16,7 +16,7 @@ import { Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
|
16
16
|
import { findParentNodeOfType, safeInsert } from '@atlaskit/editor-prosemirror/utils';
|
|
17
17
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
18
18
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
19
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
19
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
20
20
|
import { isNestedInExpand } from '../utils';
|
|
21
21
|
|
|
22
22
|
// Creates either an expand or a nestedExpand node based on the current selection
|
|
@@ -13,7 +13,8 @@ import { applyContentVisibility, estimateExpandIntrinsicHeight } from '@atlaskit
|
|
|
13
13
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
14
14
|
import { NodeSelection, Selection } from '@atlaskit/editor-prosemirror/state';
|
|
15
15
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
16
|
-
import { redo
|
|
16
|
+
import { redo } from '@atlaskit/prosemirror-history/redo';
|
|
17
|
+
import { undo } from '@atlaskit/prosemirror-history/undo';
|
|
17
18
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
18
19
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
19
20
|
import { renderExpandButton } from '../../ui/renderExpandButton';
|
|
@@ -12,12 +12,12 @@ import React, { useCallback } from 'react';
|
|
|
12
12
|
|
|
13
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
14
14
|
import { jsx } from '@emotion/react';
|
|
15
|
-
import Button from '@atlaskit/button/custom-theme-button';
|
|
15
|
+
import Button from '@atlaskit/button/custom-theme-button/custom-theme-button';
|
|
16
16
|
import { expandClassNames } from '@atlaskit/editor-common/styles';
|
|
17
17
|
import { expandLayoutWrapperStyle, ExpandLayoutWrapperWithRef, expandMessages } from '@atlaskit/editor-common/ui';
|
|
18
18
|
import { akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
|
|
19
19
|
import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
|
|
20
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
20
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
21
21
|
function withTooltip(Component) {
|
|
22
22
|
return function WithTooltip(props) {
|
|
23
23
|
return (
|
|
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
import { expandedState } from '@atlaskit/editor-common/expand';
|
|
5
5
|
import { expandClassNames } from '@atlaskit/editor-common/styles';
|
|
6
6
|
import { expandMessages } from '@atlaskit/editor-common/ui';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
8
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
9
|
export var buildExpandClassName = function buildExpandClassName(type, expanded) {
|
|
10
10
|
return "".concat(expandClassNames.prefix, " ").concat(expandClassNames.type(type), " ").concat(expanded ? expandClassNames.expanded : '');
|