@atlaskit/editor-plugin-expand 3.3.0 → 3.3.2
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/legacyExpand/ui/ExpandIconButton.js +5 -4
- package/dist/cjs/singlePlayerExpand/ui/ExpandButton.js +5 -4
- package/dist/es2019/legacyExpand/nodeviews/index.js +1 -1
- package/dist/es2019/legacyExpand/ui/ExpandIconButton.js +3 -2
- package/dist/es2019/singlePlayerExpand/ui/ExpandButton.js +3 -2
- package/dist/esm/legacyExpand/nodeviews/index.js +1 -1
- package/dist/esm/legacyExpand/ui/ExpandIconButton.js +3 -2
- package/dist/esm/singlePlayerExpand/ui/ExpandButton.js +3 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -20,8 +20,8 @@ var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom
|
|
|
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
|
-
var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/
|
|
24
|
-
var _chevronRight2 = _interopRequireDefault(require("@atlaskit/icon/
|
|
23
|
+
var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/core/chevron-right"));
|
|
24
|
+
var _chevronRight2 = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-right"));
|
|
25
25
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
26
26
|
var _excluded = ["buttonStyles"];
|
|
27
27
|
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); }
|
|
@@ -86,9 +86,10 @@ var CustomButton = exports.CustomButton = function CustomButton(props) {
|
|
|
86
86
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
87
87
|
,
|
|
88
88
|
className: _styles.expandClassNames.iconContainer,
|
|
89
|
-
iconBefore: (0, _react2.jsx)(
|
|
89
|
+
iconBefore: (0, _react2.jsx)(_chevronRight.default, {
|
|
90
90
|
label: '',
|
|
91
|
-
LEGACY_fallbackIcon:
|
|
91
|
+
LEGACY_fallbackIcon: _chevronRight2.default,
|
|
92
|
+
size: "small"
|
|
92
93
|
}),
|
|
93
94
|
shouldFitContainer: true,
|
|
94
95
|
theme: useTheme,
|
|
@@ -15,8 +15,8 @@ var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom
|
|
|
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
|
-
var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/
|
|
19
|
-
var _chevronRight2 = _interopRequireDefault(require("@atlaskit/icon/
|
|
18
|
+
var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/core/chevron-right"));
|
|
19
|
+
var _chevronRight2 = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-right"));
|
|
20
20
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
21
21
|
var _excluded = ["buttonStyles"];
|
|
22
22
|
/**
|
|
@@ -71,9 +71,10 @@ var ExpandButtonInner = exports.ExpandButtonInner = function ExpandButtonInner(p
|
|
|
71
71
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
72
72
|
,
|
|
73
73
|
className: _styles.expandClassNames.iconContainer,
|
|
74
|
-
iconBefore: (0, _react2.jsx)(
|
|
74
|
+
iconBefore: (0, _react2.jsx)(_chevronRight.default, {
|
|
75
75
|
label: '',
|
|
76
|
-
LEGACY_fallbackIcon:
|
|
76
|
+
LEGACY_fallbackIcon: _chevronRight2.default,
|
|
77
|
+
size: "small"
|
|
77
78
|
}),
|
|
78
79
|
shouldFitContainer: true,
|
|
79
80
|
theme: useTheme,
|
|
@@ -10,7 +10,7 @@ import { redo, undo } from '@atlaskit/editor-prosemirror/history';
|
|
|
10
10
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
11
11
|
import { NodeSelection, Selection } from '@atlaskit/editor-prosemirror/state';
|
|
12
12
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
|
-
import { expValEquals } from
|
|
13
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
14
14
|
import { deleteExpandAtPos, setSelectionInsideExpand, toggleExpandExpanded, updateExpandTitle } from '../commands';
|
|
15
15
|
import { ExpandIconButton } from '../ui/ExpandIconButton';
|
|
16
16
|
function buildExpandClassName(type, expanded) {
|
|
@@ -11,8 +11,8 @@ import Button from '@atlaskit/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
|
+
import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
|
|
14
15
|
import { default as ChevronRightIconLegacy } from '@atlaskit/icon/glyph/chevron-right';
|
|
15
|
-
import ChevronRightIcon from '@atlaskit/icon/utility/chevron-right';
|
|
16
16
|
import Tooltip from '@atlaskit/tooltip';
|
|
17
17
|
export const withTooltip = WrapperComponent => {
|
|
18
18
|
return class WithSortableColumn extends React.Component {
|
|
@@ -72,7 +72,8 @@ export const CustomButton = props => {
|
|
|
72
72
|
className: expandClassNames.iconContainer,
|
|
73
73
|
iconBefore: jsx(ChevronRightIcon, {
|
|
74
74
|
label: '',
|
|
75
|
-
LEGACY_fallbackIcon: ChevronRightIconLegacy
|
|
75
|
+
LEGACY_fallbackIcon: ChevronRightIconLegacy,
|
|
76
|
+
size: "small"
|
|
76
77
|
}),
|
|
77
78
|
shouldFitContainer: true,
|
|
78
79
|
theme: useTheme,
|
|
@@ -11,8 +11,8 @@ import Button from '@atlaskit/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
|
+
import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
|
|
14
15
|
import { default as ChevronRightIconLegacy } from '@atlaskit/icon/glyph/chevron-right';
|
|
15
|
-
import ChevronRightIcon from '@atlaskit/icon/utility/chevron-right';
|
|
16
16
|
import Tooltip from '@atlaskit/tooltip';
|
|
17
17
|
function withTooltip(Component) {
|
|
18
18
|
return function WithTooltip(props) {
|
|
@@ -65,7 +65,8 @@ export const ExpandButtonInner = props => {
|
|
|
65
65
|
className: expandClassNames.iconContainer,
|
|
66
66
|
iconBefore: jsx(ChevronRightIcon, {
|
|
67
67
|
label: '',
|
|
68
|
-
LEGACY_fallbackIcon: ChevronRightIconLegacy
|
|
68
|
+
LEGACY_fallbackIcon: ChevronRightIconLegacy,
|
|
69
|
+
size: "small"
|
|
69
70
|
}),
|
|
70
71
|
shouldFitContainer: true,
|
|
71
72
|
theme: useTheme,
|
|
@@ -12,7 +12,7 @@ import { redo, undo } from '@atlaskit/editor-prosemirror/history';
|
|
|
12
12
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
13
13
|
import { NodeSelection, Selection } from '@atlaskit/editor-prosemirror/state';
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
|
-
import { expValEquals } from
|
|
15
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
16
16
|
import { deleteExpandAtPos, setSelectionInsideExpand, toggleExpandExpanded, updateExpandTitle } from '../commands';
|
|
17
17
|
import { ExpandIconButton } from '../ui/ExpandIconButton';
|
|
18
18
|
function buildExpandClassName(type, expanded) {
|
|
@@ -23,8 +23,8 @@ import Button from '@atlaskit/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
|
+
import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
|
|
26
27
|
import { default as ChevronRightIconLegacy } from '@atlaskit/icon/glyph/chevron-right';
|
|
27
|
-
import ChevronRightIcon from '@atlaskit/icon/utility/chevron-right';
|
|
28
28
|
import Tooltip from '@atlaskit/tooltip';
|
|
29
29
|
export var withTooltip = function withTooltip(WrapperComponent) {
|
|
30
30
|
return /*#__PURE__*/function (_React$Component) {
|
|
@@ -82,7 +82,8 @@ export var CustomButton = function CustomButton(props) {
|
|
|
82
82
|
className: expandClassNames.iconContainer,
|
|
83
83
|
iconBefore: jsx(ChevronRightIcon, {
|
|
84
84
|
label: '',
|
|
85
|
-
LEGACY_fallbackIcon: ChevronRightIconLegacy
|
|
85
|
+
LEGACY_fallbackIcon: ChevronRightIconLegacy,
|
|
86
|
+
size: "small"
|
|
86
87
|
}),
|
|
87
88
|
shouldFitContainer: true,
|
|
88
89
|
theme: useTheme,
|
|
@@ -16,8 +16,8 @@ import Button from '@atlaskit/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
|
+
import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
|
|
19
20
|
import { default as ChevronRightIconLegacy } from '@atlaskit/icon/glyph/chevron-right';
|
|
20
|
-
import ChevronRightIcon from '@atlaskit/icon/utility/chevron-right';
|
|
21
21
|
import Tooltip from '@atlaskit/tooltip';
|
|
22
22
|
function withTooltip(Component) {
|
|
23
23
|
return function WithTooltip(props) {
|
|
@@ -65,7 +65,8 @@ export var ExpandButtonInner = function ExpandButtonInner(props) {
|
|
|
65
65
|
className: expandClassNames.iconContainer,
|
|
66
66
|
iconBefore: jsx(ChevronRightIcon, {
|
|
67
67
|
label: '',
|
|
68
|
-
LEGACY_fallbackIcon: ChevronRightIconLegacy
|
|
68
|
+
LEGACY_fallbackIcon: ChevronRightIconLegacy,
|
|
69
|
+
size: "small"
|
|
69
70
|
}),
|
|
70
71
|
shouldFitContainer: true,
|
|
71
72
|
theme: useTheme,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-expand",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.2",
|
|
4
4
|
"description": "Expand plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
37
37
|
"@atlaskit/button": "^23.2.0",
|
|
38
|
-
"@atlaskit/editor-common": "^106.
|
|
38
|
+
"@atlaskit/editor-common": "^106.6.0",
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^2.3.0",
|
|
40
40
|
"@atlaskit/editor-plugin-decorations": "^2.0.0",
|
|
41
41
|
"@atlaskit/editor-plugin-editor-disabled": "^2.0.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
48
48
|
"@atlaskit/icon": "^26.4.0",
|
|
49
49
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
50
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
50
|
+
"@atlaskit/tmp-editor-statsig": "^7.0.0",
|
|
51
51
|
"@atlaskit/tokens": "^5.1.0",
|
|
52
52
|
"@atlaskit/tooltip": "^20.3.0",
|
|
53
53
|
"@babel/runtime": "^7.0.0",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@atlaskit/editor-plugin-content-insertion": "^2.1.0",
|
|
66
66
|
"@atlaskit/editor-plugin-guideline": "^2.0.0",
|
|
67
67
|
"@atlaskit/editor-plugin-quick-insert": "^2.5.0",
|
|
68
|
-
"@atlaskit/editor-plugin-table": "^10.
|
|
68
|
+
"@atlaskit/editor-plugin-table": "^10.12.0",
|
|
69
69
|
"@atlaskit/editor-plugin-type-ahead": "^2.7.0",
|
|
70
70
|
"@atlaskit/editor-plugin-width": "^3.0.0",
|
|
71
71
|
"@testing-library/react": "^13.4.0",
|