@atlaskit/editor-plugin-table 22.4.19 → 22.4.21
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/TableRowNativeStickyWithFallback.js +4 -4
- package/dist/cjs/ui/TableMenu/cell/items/VerticalAlignDropdownItem.js +2 -1
- package/dist/cjs/ui/toolbar.js +3 -2
- package/dist/es2019/ui/TableMenu/cell/items/VerticalAlignDropdownItem.js +2 -1
- package/dist/esm/nodeviews/TableRowNativeStickyWithFallback.js +4 -4
- package/dist/esm/ui/TableMenu/cell/items/VerticalAlignDropdownItem.js +2 -1
- package/dist/esm/ui/toolbar.js +3 -2
- package/dist/types/ui/TableMenu/cell/items/VerticalAlignDropdownItem.d.ts +1 -1
- package/dist/types/ui/TableMenu/cell/items/verticalAlignUtils.d.ts +1 -1
- package/dist/types-ts4.5/ui/TableMenu/cell/items/VerticalAlignDropdownItem.d.ts +1 -1
- package/dist/types-ts4.5/ui/TableMenu/cell/items/verticalAlignUtils.d.ts +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -39,7 +39,7 @@ var HEADER_ROW_SCROLL_THROTTLE_TIMEOUT = 200;
|
|
|
39
39
|
// timeout for resetting the scroll class - if it's too long then users won't be able to click on the header cells,
|
|
40
40
|
// if too short it would trigger too many dom updates.
|
|
41
41
|
var HEADER_ROW_SCROLL_RESET_DEBOUNCE_TIMEOUT = 400;
|
|
42
|
-
var TableRowNativeStickyWithFallback = exports.default = /*#__PURE__*/function (
|
|
42
|
+
var TableRowNativeStickyWithFallback = exports.default = /*#__PURE__*/function (_TableNodeView) {
|
|
43
43
|
function TableRowNativeStickyWithFallback(node, view, getPos, eventDispatcher, api) {
|
|
44
44
|
var _api$limitedMode;
|
|
45
45
|
var _this;
|
|
@@ -137,8 +137,8 @@ var TableRowNativeStickyWithFallback = exports.default = /*#__PURE__*/function (
|
|
|
137
137
|
}
|
|
138
138
|
if (_this.isHeaderRow && _this.isStickyHeaderEnabled && (0, _platformFeatureFlags.fg)('platform_editor_table_sticky_header_patch_4')) {
|
|
139
139
|
var _api$table;
|
|
140
|
-
_this.onEditorContentAreaHeightChange = api === null || api === void 0 || (_api$table = api.table) === null || _api$table === void 0 ? void 0 : _api$table.sharedState.onChange(function (
|
|
141
|
-
var nextSharedState =
|
|
140
|
+
_this.onEditorContentAreaHeightChange = api === null || api === void 0 || (_api$table = api.table) === null || _api$table === void 0 ? void 0 : _api$table.sharedState.onChange(function (_ref) {
|
|
141
|
+
var nextSharedState = _ref.nextSharedState;
|
|
142
142
|
if (nextSharedState !== null && nextSharedState !== void 0 && nextSharedState.editorContentAreaHeight && (nextSharedState === null || nextSharedState === void 0 ? void 0 : nextSharedState.editorContentAreaHeight) !== _this.editorContentAreaHeight) {
|
|
143
143
|
var _this$stickyRowHeight;
|
|
144
144
|
_this.editorContentAreaHeight = nextSharedState.editorContentAreaHeight;
|
|
@@ -148,7 +148,7 @@ var TableRowNativeStickyWithFallback = exports.default = /*#__PURE__*/function (
|
|
|
148
148
|
}
|
|
149
149
|
return _this;
|
|
150
150
|
}
|
|
151
|
-
(0, _inherits2.default)(TableRowNativeStickyWithFallback,
|
|
151
|
+
(0, _inherits2.default)(TableRowNativeStickyWithFallback, _TableNodeView);
|
|
152
152
|
return (0, _createClass2.default)(TableRowNativeStickyWithFallback, [{
|
|
153
153
|
key: "subscribeWhenRowVisible",
|
|
154
154
|
value: function subscribeWhenRowVisible() {
|
package/dist/cjs/ui/toolbar.js
CHANGED
|
@@ -55,6 +55,7 @@ var _isContentModeSupported = require("../pm-plugins/utils/tableMode/is-content-
|
|
|
55
55
|
var _types = require("../types");
|
|
56
56
|
var _FloatingAlignmentButtons = require("./FloatingAlignmentButtons/FloatingAlignmentButtons");
|
|
57
57
|
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); }
|
|
58
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
58
59
|
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; }
|
|
59
60
|
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; } /**
|
|
60
61
|
* @jsxRuntime classic
|
|
@@ -873,10 +874,10 @@ var isLayoutOptionDisabledImpl = function isLayoutOptionDisabledImpl(selectedNod
|
|
|
873
874
|
var getMemoizedIsLayoutOptionDisabled = (0, _memoizeOne.default)(isLayoutOptionDisabledImpl, function (_ref6, _ref7) {
|
|
874
875
|
var _ref8 = (0, _toArray2.default)(_ref6),
|
|
875
876
|
prevNode = _ref8[0],
|
|
876
|
-
prevRest = _ref8.slice(1);
|
|
877
|
+
prevRest = _arrayLikeToArray(_ref8).slice(1);
|
|
877
878
|
var _ref9 = (0, _toArray2.default)(_ref7),
|
|
878
879
|
nextNode = _ref9[0],
|
|
879
|
-
nextRest = _ref9.slice(1);
|
|
880
|
+
nextRest = _arrayLikeToArray(_ref9).slice(1);
|
|
880
881
|
// Only node needs special comparison (attrs only), rest use reference equality
|
|
881
882
|
var nodeEqual = (0, _isEqual.default)(prevNode.attrs, nextNode.attrs);
|
|
882
883
|
var restEqual = prevRest.every(function (val, idx) {
|
|
@@ -32,7 +32,7 @@ var HEADER_ROW_SCROLL_THROTTLE_TIMEOUT = 200;
|
|
|
32
32
|
// timeout for resetting the scroll class - if it's too long then users won't be able to click on the header cells,
|
|
33
33
|
// if too short it would trigger too many dom updates.
|
|
34
34
|
var HEADER_ROW_SCROLL_RESET_DEBOUNCE_TIMEOUT = 400;
|
|
35
|
-
var TableRowNativeStickyWithFallback = /*#__PURE__*/function (
|
|
35
|
+
var TableRowNativeStickyWithFallback = /*#__PURE__*/function (_TableNodeView) {
|
|
36
36
|
function TableRowNativeStickyWithFallback(node, view, getPos, eventDispatcher, api) {
|
|
37
37
|
var _api$limitedMode;
|
|
38
38
|
var _this;
|
|
@@ -130,8 +130,8 @@ var TableRowNativeStickyWithFallback = /*#__PURE__*/function (_ref) {
|
|
|
130
130
|
}
|
|
131
131
|
if (_this.isHeaderRow && _this.isStickyHeaderEnabled && fg('platform_editor_table_sticky_header_patch_4')) {
|
|
132
132
|
var _api$table;
|
|
133
|
-
_this.onEditorContentAreaHeightChange = api === null || api === void 0 || (_api$table = api.table) === null || _api$table === void 0 ? void 0 : _api$table.sharedState.onChange(function (
|
|
134
|
-
var nextSharedState =
|
|
133
|
+
_this.onEditorContentAreaHeightChange = api === null || api === void 0 || (_api$table = api.table) === null || _api$table === void 0 ? void 0 : _api$table.sharedState.onChange(function (_ref) {
|
|
134
|
+
var nextSharedState = _ref.nextSharedState;
|
|
135
135
|
if (nextSharedState !== null && nextSharedState !== void 0 && nextSharedState.editorContentAreaHeight && (nextSharedState === null || nextSharedState === void 0 ? void 0 : nextSharedState.editorContentAreaHeight) !== _this.editorContentAreaHeight) {
|
|
136
136
|
var _this$stickyRowHeight;
|
|
137
137
|
_this.editorContentAreaHeight = nextSharedState.editorContentAreaHeight;
|
|
@@ -141,7 +141,7 @@ var TableRowNativeStickyWithFallback = /*#__PURE__*/function (_ref) {
|
|
|
141
141
|
}
|
|
142
142
|
return _this;
|
|
143
143
|
}
|
|
144
|
-
_inherits(TableRowNativeStickyWithFallback,
|
|
144
|
+
_inherits(TableRowNativeStickyWithFallback, _TableNodeView);
|
|
145
145
|
return _createClass(TableRowNativeStickyWithFallback, [{
|
|
146
146
|
key: "subscribeWhenRowVisible",
|
|
147
147
|
value: function subscribeWhenRowVisible() {
|
package/dist/esm/ui/toolbar.js
CHANGED
|
@@ -2,6 +2,7 @@ import _toArray from "@babel/runtime/helpers/toArray";
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
5
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5
6
|
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; }
|
|
6
7
|
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
8
|
/**
|
|
@@ -866,10 +867,10 @@ var isLayoutOptionDisabledImpl = function isLayoutOptionDisabledImpl(selectedNod
|
|
|
866
867
|
var getMemoizedIsLayoutOptionDisabled = memoizeOne(isLayoutOptionDisabledImpl, function (_ref6, _ref7) {
|
|
867
868
|
var _ref8 = _toArray(_ref6),
|
|
868
869
|
prevNode = _ref8[0],
|
|
869
|
-
prevRest = _ref8.slice(1);
|
|
870
|
+
prevRest = _arrayLikeToArray(_ref8).slice(1);
|
|
870
871
|
var _ref9 = _toArray(_ref7),
|
|
871
872
|
nextNode = _ref9[0],
|
|
872
|
-
nextRest = _ref9.slice(1);
|
|
873
|
+
nextRest = _arrayLikeToArray(_ref9).slice(1);
|
|
873
874
|
// Only node needs special comparison (attrs only), rest use reference equality
|
|
874
875
|
var nodeEqual = isEqual(prevNode.attrs, nextNode.attrs);
|
|
875
876
|
var restEqual = prevRest.every(function (val, idx) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type MessageDescriptor } from 'react-intl';
|
|
3
|
-
import type { Valign } from '@atlaskit/
|
|
3
|
+
import type { Valign } from '@atlaskit/adf-schema/layout-column';
|
|
4
4
|
import type AlignPositionTopIcon from '@atlaskit/icon-lab/core/align-position-top';
|
|
5
5
|
import type { TableMenuComponentsParams } from '../../shared/types';
|
|
6
6
|
type VerticalAlignDropdownItemProps = TableMenuComponentsParams & {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { Valign } from '@atlaskit/
|
|
1
|
+
import type { Valign } from '@atlaskit/adf-schema/layout-column';
|
|
2
2
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
3
|
export declare const getSelectedCellValign: (editorView?: EditorView) => Valign;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type MessageDescriptor } from 'react-intl';
|
|
3
|
-
import type { Valign } from '@atlaskit/
|
|
3
|
+
import type { Valign } from '@atlaskit/adf-schema/layout-column';
|
|
4
4
|
import type AlignPositionTopIcon from '@atlaskit/icon-lab/core/align-position-top';
|
|
5
5
|
import type { TableMenuComponentsParams } from '../../shared/types';
|
|
6
6
|
type VerticalAlignDropdownItemProps = TableMenuComponentsParams & {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { Valign } from '@atlaskit/
|
|
1
|
+
import type { Valign } from '@atlaskit/adf-schema/layout-column';
|
|
2
2
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
3
|
export declare const getSelectedCellValign: (editorView?: EditorView) => Valign;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "22.4.
|
|
3
|
+
"version": "22.4.21",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"singleton": true
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@atlaskit/adf-schema": "^52.
|
|
31
|
+
"@atlaskit/adf-schema": "^52.15.0",
|
|
32
32
|
"@atlaskit/button": "^23.11.0",
|
|
33
33
|
"@atlaskit/custom-steps": "^0.17.0",
|
|
34
34
|
"@atlaskit/editor-palette": "^2.2.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@atlaskit/editor-plugin-batch-attribute-updates": "^10.1.0",
|
|
38
38
|
"@atlaskit/editor-plugin-content-insertion": "^10.1.0",
|
|
39
39
|
"@atlaskit/editor-plugin-editor-viewmode": "^12.1.0",
|
|
40
|
-
"@atlaskit/editor-plugin-extension": "13.5.
|
|
40
|
+
"@atlaskit/editor-plugin-extension": "13.5.10",
|
|
41
41
|
"@atlaskit/editor-plugin-guideline": "^10.1.0",
|
|
42
42
|
"@atlaskit/editor-plugin-interaction": "^19.1.0",
|
|
43
43
|
"@atlaskit/editor-plugin-limited-mode": "^7.2.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
50
50
|
"@atlaskit/editor-shared-styles": "^3.11.0",
|
|
51
51
|
"@atlaskit/editor-tables": "^2.10.0",
|
|
52
|
-
"@atlaskit/editor-toolbar": "^1.
|
|
52
|
+
"@atlaskit/editor-toolbar": "^1.8.0",
|
|
53
53
|
"@atlaskit/editor-ui-control-model": "^1.2.0",
|
|
54
54
|
"@atlaskit/icon": "^35.3.0",
|
|
55
55
|
"@atlaskit/icon-lab": "^6.12.0",
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^2.1.0",
|
|
61
61
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
|
|
62
62
|
"@atlaskit/primitives": "^19.0.0",
|
|
63
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
63
|
+
"@atlaskit/tmp-editor-statsig": "^85.0.0",
|
|
64
64
|
"@atlaskit/toggle": "^16.0.0",
|
|
65
|
-
"@atlaskit/tokens": "^13.
|
|
66
|
-
"@atlaskit/tooltip": "^22.
|
|
65
|
+
"@atlaskit/tokens": "^13.1.0",
|
|
66
|
+
"@atlaskit/tooltip": "^22.5.0",
|
|
67
67
|
"@babel/runtime": "^7.0.0",
|
|
68
68
|
"@compiled/react": "^0.20.0",
|
|
69
69
|
"@emotion/react": "^11.7.1",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"uuid": "^3.1.0"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
|
-
"@atlaskit/editor-common": "^114.
|
|
78
|
+
"@atlaskit/editor-common": "^114.50.0",
|
|
79
79
|
"react": "^18.2.0",
|
|
80
80
|
"react-dom": "^18.2.0",
|
|
81
81
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|