@atlaskit/editor-plugin-table 7.16.16 → 7.16.17
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 +21 -0
- package/dist/cjs/commands-with-analytics.js +66 -41
- package/dist/cjs/nodeviews/TableContainer.js +14 -12
- package/dist/cjs/nodeviews/TableResizer.js +12 -13
- package/dist/cjs/plugin.js +3 -2
- package/dist/cjs/pm-plugins/keymap.js +6 -0
- package/dist/cjs/pm-plugins/table-resizing/utils/misc.js +1 -1
- package/dist/cjs/toolbar.js +23 -48
- package/dist/cjs/ui/icons/index.js +0 -7
- package/dist/cjs/utils/snapping.js +2 -2
- package/dist/es2019/commands-with-analytics.js +29 -6
- package/dist/es2019/nodeviews/TableContainer.js +17 -13
- package/dist/es2019/nodeviews/TableResizer.js +11 -12
- package/dist/es2019/plugin.js +3 -2
- package/dist/es2019/pm-plugins/keymap.js +7 -1
- package/dist/es2019/pm-plugins/table-resizing/utils/misc.js +2 -2
- package/dist/es2019/toolbar.js +22 -48
- package/dist/es2019/ui/icons/index.js +0 -1
- package/dist/es2019/utils/snapping.js +3 -3
- package/dist/esm/commands-with-analytics.js +66 -41
- package/dist/esm/nodeviews/TableContainer.js +15 -13
- package/dist/esm/nodeviews/TableResizer.js +14 -15
- package/dist/esm/plugin.js +3 -2
- package/dist/esm/pm-plugins/keymap.js +7 -1
- package/dist/esm/pm-plugins/table-resizing/utils/misc.js +2 -2
- package/dist/esm/toolbar.js +24 -49
- package/dist/esm/ui/icons/index.js +0 -1
- package/dist/esm/utils/snapping.js +3 -3
- package/dist/types/commands/toggle.d.ts +1 -1
- package/dist/types/commands-with-analytics.d.ts +7 -4
- package/dist/types/pm-plugins/table-resizing/utils/resize-state.d.ts +1 -1
- package/dist/types/toolbar.d.ts +2 -3
- package/dist/types/ui/TableFloatingColumnControls/ColumnControls/index.d.ts +2 -0
- package/dist/types/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +4 -0
- package/dist/types/ui/TableFloatingControls/index.d.ts +2 -0
- package/dist/types/ui/icons/index.d.ts +0 -1
- package/dist/types-ts4.5/commands/toggle.d.ts +1 -1
- package/dist/types-ts4.5/commands-with-analytics.d.ts +7 -4
- package/dist/types-ts4.5/pm-plugins/table-resizing/utils/resize-state.d.ts +1 -1
- package/dist/types-ts4.5/toolbar.d.ts +2 -3
- package/dist/types-ts4.5/ui/TableFloatingColumnControls/ColumnControls/index.d.ts +2 -0
- package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +4 -0
- package/dist/types-ts4.5/ui/TableFloatingControls/index.d.ts +2 -0
- package/dist/types-ts4.5/ui/icons/index.d.ts +0 -1
- package/package.json +6 -3
- package/src/commands-with-analytics.ts +80 -40
- package/src/nodeviews/TableContainer.tsx +24 -14
- package/src/nodeviews/TableResizer.tsx +17 -9
- package/src/plugin.tsx +5 -2
- package/src/pm-plugins/keymap.ts +30 -0
- package/src/pm-plugins/table-resizing/utils/misc.ts +2 -2
- package/src/toolbar.tsx +29 -55
- package/src/ui/TableFloatingControls/index.tsx +0 -1
- package/src/ui/icons/index.ts +0 -1
- package/src/utils/snapping.ts +4 -4
- package/dist/cjs/ui/icons/DisplayModeIcon.js +0 -46
- package/dist/es2019/ui/icons/DisplayModeIcon.js +0 -39
- package/dist/esm/ui/icons/DisplayModeIcon.js +0 -39
- package/dist/types/ui/icons/DisplayModeIcon.d.ts +0 -4
- package/dist/types-ts4.5/ui/icons/DisplayModeIcon.d.ts +0 -4
- package/src/ui/icons/DisplayModeIcon.tsx +0 -41
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.DisplayModeIcon = exports.DisplayModeGlyth = void 0;
|
|
8
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
-
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
var _icon = _interopRequireDefault(require("@atlaskit/icon"));
|
|
11
|
-
var DisplayModeGlyth = exports.DisplayModeGlyth = function DisplayModeGlyth(props) {
|
|
12
|
-
return /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({
|
|
13
|
-
width: "24",
|
|
14
|
-
height: "24",
|
|
15
|
-
viewBox: "0 0 24 24",
|
|
16
|
-
fill: "none",
|
|
17
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
18
|
-
}, props), /*#__PURE__*/_react.default.createElement("rect", {
|
|
19
|
-
x: "4",
|
|
20
|
-
y: "5",
|
|
21
|
-
width: "4",
|
|
22
|
-
height: "14",
|
|
23
|
-
rx: "1",
|
|
24
|
-
fill: "currentColor"
|
|
25
|
-
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
26
|
-
fillRule: "evenodd",
|
|
27
|
-
clipRule: "evenodd",
|
|
28
|
-
d: "M11 5C10.4477 5 10 5.44772 10 6V9.10102C11.0503 8.02921 12.4424 7.29368 14 7.07089V6C14 5.44772 13.5523 5 13 5H11Z",
|
|
29
|
-
fill: "currentColor"
|
|
30
|
-
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
31
|
-
fillRule: "evenodd",
|
|
32
|
-
clipRule: "evenodd",
|
|
33
|
-
d: "M17 5C16.4477 5 16 5.44772 16 6V7.07089C17.5576 7.29368 18.9497 8.02921 20 9.10102V6C20 5.44772 19.5523 5 19 5H17Z",
|
|
34
|
-
fill: "currentColor"
|
|
35
|
-
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
36
|
-
fillRule: "evenodd",
|
|
37
|
-
clipRule: "evenodd",
|
|
38
|
-
d: "M21 14C21 17.3137 18.3137 20 15 20C11.6863 20 9 17.3137 9 14C9 10.6863 11.6863 8 15 8C18.3137 8 21 10.6863 21 14ZM12 15C12 14.4477 12.4477 14 13 14V12C13 10.8954 13.8954 10 15 10C16.1046 10 17 10.8954 17 12V14C17.5523 14 18 14.4477 18 15V17C18 17.5523 17.5523 18 17 18H13C12.4477 18 12 17.5523 12 17V15ZM16 14V12C16 11.4477 15.5523 11 15 11C14.4477 11 14 11.4477 14 12V14H16Z",
|
|
39
|
-
fill: "currentColor"
|
|
40
|
-
}));
|
|
41
|
-
};
|
|
42
|
-
var DisplayModeIcon = exports.DisplayModeIcon = function DisplayModeIcon(props) {
|
|
43
|
-
return /*#__PURE__*/_react.default.createElement(_icon.default, (0, _extends2.default)({
|
|
44
|
-
glyph: DisplayModeGlyth
|
|
45
|
-
}, props));
|
|
46
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import Icon from '@atlaskit/icon';
|
|
4
|
-
export const DisplayModeGlyth = props => {
|
|
5
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
6
|
-
width: "24",
|
|
7
|
-
height: "24",
|
|
8
|
-
viewBox: "0 0 24 24",
|
|
9
|
-
fill: "none",
|
|
10
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
11
|
-
}, props), /*#__PURE__*/React.createElement("rect", {
|
|
12
|
-
x: "4",
|
|
13
|
-
y: "5",
|
|
14
|
-
width: "4",
|
|
15
|
-
height: "14",
|
|
16
|
-
rx: "1",
|
|
17
|
-
fill: "currentColor"
|
|
18
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
19
|
-
fillRule: "evenodd",
|
|
20
|
-
clipRule: "evenodd",
|
|
21
|
-
d: "M11 5C10.4477 5 10 5.44772 10 6V9.10102C11.0503 8.02921 12.4424 7.29368 14 7.07089V6C14 5.44772 13.5523 5 13 5H11Z",
|
|
22
|
-
fill: "currentColor"
|
|
23
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
24
|
-
fillRule: "evenodd",
|
|
25
|
-
clipRule: "evenodd",
|
|
26
|
-
d: "M17 5C16.4477 5 16 5.44772 16 6V7.07089C17.5576 7.29368 18.9497 8.02921 20 9.10102V6C20 5.44772 19.5523 5 19 5H17Z",
|
|
27
|
-
fill: "currentColor"
|
|
28
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
29
|
-
fillRule: "evenodd",
|
|
30
|
-
clipRule: "evenodd",
|
|
31
|
-
d: "M21 14C21 17.3137 18.3137 20 15 20C11.6863 20 9 17.3137 9 14C9 10.6863 11.6863 8 15 8C18.3137 8 21 10.6863 21 14ZM12 15C12 14.4477 12.4477 14 13 14V12C13 10.8954 13.8954 10 15 10C16.1046 10 17 10.8954 17 12V14C17.5523 14 18 14.4477 18 15V17C18 17.5523 17.5523 18 17 18H13C12.4477 18 12 17.5523 12 17V15ZM16 14V12C16 11.4477 15.5523 11 15 11C14.4477 11 14 11.4477 14 12V14H16Z",
|
|
32
|
-
fill: "currentColor"
|
|
33
|
-
}));
|
|
34
|
-
};
|
|
35
|
-
export const DisplayModeIcon = props => {
|
|
36
|
-
return /*#__PURE__*/React.createElement(Icon, _extends({
|
|
37
|
-
glyph: DisplayModeGlyth
|
|
38
|
-
}, props));
|
|
39
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import Icon from '@atlaskit/icon';
|
|
4
|
-
export var DisplayModeGlyth = function DisplayModeGlyth(props) {
|
|
5
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
6
|
-
width: "24",
|
|
7
|
-
height: "24",
|
|
8
|
-
viewBox: "0 0 24 24",
|
|
9
|
-
fill: "none",
|
|
10
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
11
|
-
}, props), /*#__PURE__*/React.createElement("rect", {
|
|
12
|
-
x: "4",
|
|
13
|
-
y: "5",
|
|
14
|
-
width: "4",
|
|
15
|
-
height: "14",
|
|
16
|
-
rx: "1",
|
|
17
|
-
fill: "currentColor"
|
|
18
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
19
|
-
fillRule: "evenodd",
|
|
20
|
-
clipRule: "evenodd",
|
|
21
|
-
d: "M11 5C10.4477 5 10 5.44772 10 6V9.10102C11.0503 8.02921 12.4424 7.29368 14 7.07089V6C14 5.44772 13.5523 5 13 5H11Z",
|
|
22
|
-
fill: "currentColor"
|
|
23
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
24
|
-
fillRule: "evenodd",
|
|
25
|
-
clipRule: "evenodd",
|
|
26
|
-
d: "M17 5C16.4477 5 16 5.44772 16 6V7.07089C17.5576 7.29368 18.9497 8.02921 20 9.10102V6C20 5.44772 19.5523 5 19 5H17Z",
|
|
27
|
-
fill: "currentColor"
|
|
28
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
29
|
-
fillRule: "evenodd",
|
|
30
|
-
clipRule: "evenodd",
|
|
31
|
-
d: "M21 14C21 17.3137 18.3137 20 15 20C11.6863 20 9 17.3137 9 14C9 10.6863 11.6863 8 15 8C18.3137 8 21 10.6863 21 14ZM12 15C12 14.4477 12.4477 14 13 14V12C13 10.8954 13.8954 10 15 10C16.1046 10 17 10.8954 17 12V14C17.5523 14 18 14.4477 18 15V17C18 17.5523 17.5523 18 17 18H13C12.4477 18 12 17.5523 12 17V15ZM16 14V12C16 11.4477 15.5523 11 15 11C14.4477 11 14 11.4477 14 12V14H16Z",
|
|
32
|
-
fill: "currentColor"
|
|
33
|
-
}));
|
|
34
|
-
};
|
|
35
|
-
export var DisplayModeIcon = function DisplayModeIcon(props) {
|
|
36
|
-
return /*#__PURE__*/React.createElement(Icon, _extends({
|
|
37
|
-
glyph: DisplayModeGlyth
|
|
38
|
-
}, props));
|
|
39
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import Icon from '@atlaskit/icon';
|
|
4
|
-
import type { CustomGlyphProps, GlyphProps } from '@atlaskit/icon/types';
|
|
5
|
-
|
|
6
|
-
export const DisplayModeGlyth = (props: CustomGlyphProps) => {
|
|
7
|
-
return (
|
|
8
|
-
<svg
|
|
9
|
-
width="24"
|
|
10
|
-
height="24"
|
|
11
|
-
viewBox="0 0 24 24"
|
|
12
|
-
fill="none"
|
|
13
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
14
|
-
{...props}
|
|
15
|
-
>
|
|
16
|
-
<rect x="4" y="5" width="4" height="14" rx="1" fill="currentColor" />
|
|
17
|
-
<path
|
|
18
|
-
fillRule="evenodd"
|
|
19
|
-
clipRule="evenodd"
|
|
20
|
-
d="M11 5C10.4477 5 10 5.44772 10 6V9.10102C11.0503 8.02921 12.4424 7.29368 14 7.07089V6C14 5.44772 13.5523 5 13 5H11Z"
|
|
21
|
-
fill="currentColor"
|
|
22
|
-
/>
|
|
23
|
-
<path
|
|
24
|
-
fillRule="evenodd"
|
|
25
|
-
clipRule="evenodd"
|
|
26
|
-
d="M17 5C16.4477 5 16 5.44772 16 6V7.07089C17.5576 7.29368 18.9497 8.02921 20 9.10102V6C20 5.44772 19.5523 5 19 5H17Z"
|
|
27
|
-
fill="currentColor"
|
|
28
|
-
/>
|
|
29
|
-
<path
|
|
30
|
-
fillRule="evenodd"
|
|
31
|
-
clipRule="evenodd"
|
|
32
|
-
d="M21 14C21 17.3137 18.3137 20 15 20C11.6863 20 9 17.3137 9 14C9 10.6863 11.6863 8 15 8C18.3137 8 21 10.6863 21 14ZM12 15C12 14.4477 12.4477 14 13 14V12C13 10.8954 13.8954 10 15 10C16.1046 10 17 10.8954 17 12V14C17.5523 14 18 14.4477 18 15V17C18 17.5523 17.5523 18 17 18H13C12.4477 18 12 17.5523 12 17V15ZM16 14V12C16 11.4477 15.5523 11 15 11C14.4477 11 14 11.4477 14 12V14H16Z"
|
|
33
|
-
fill="currentColor"
|
|
34
|
-
/>
|
|
35
|
-
</svg>
|
|
36
|
-
);
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export const DisplayModeIcon = (props: GlyphProps) => {
|
|
40
|
-
return <Icon glyph={DisplayModeGlyth} {...props} />;
|
|
41
|
-
};
|