@atlaskit/editor-common 74.51.1 → 74.51.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 +13 -0
- package/dist/cjs/media-single/index.js +6 -0
- package/dist/cjs/media-single/utils.js +12 -2
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/quick-insert/assets/action.js +0 -2
- package/dist/cjs/quick-insert/assets/code.js +0 -2
- package/dist/cjs/quick-insert/assets/decision.js +0 -2
- package/dist/cjs/quick-insert/assets/divider.js +0 -2
- package/dist/cjs/quick-insert/assets/emoji.js +23 -8
- package/dist/cjs/quick-insert/assets/expand.js +28 -10
- package/dist/cjs/quick-insert/assets/fallback.js +43 -8
- package/dist/cjs/styles/shared/table.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/media-single/index.js +1 -1
- package/dist/es2019/media-single/utils.js +10 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/quick-insert/assets/action.js +0 -1
- package/dist/es2019/quick-insert/assets/code.js +0 -1
- package/dist/es2019/quick-insert/assets/decision.js +0 -1
- package/dist/es2019/quick-insert/assets/divider.js +0 -1
- package/dist/es2019/quick-insert/assets/emoji.js +24 -7
- package/dist/es2019/quick-insert/assets/expand.js +29 -9
- package/dist/es2019/quick-insert/assets/fallback.js +44 -8
- package/dist/es2019/styles/shared/table.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/media-single/index.js +1 -1
- package/dist/esm/media-single/utils.js +10 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/quick-insert/assets/action.js +0 -1
- package/dist/esm/quick-insert/assets/code.js +0 -1
- package/dist/esm/quick-insert/assets/decision.js +0 -1
- package/dist/esm/quick-insert/assets/divider.js +0 -1
- package/dist/esm/quick-insert/assets/emoji.js +23 -7
- package/dist/esm/quick-insert/assets/expand.js +28 -9
- package/dist/esm/quick-insert/assets/fallback.js +43 -8
- package/dist/esm/styles/shared/table.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/media-single/index.d.ts +1 -1
- package/dist/types/media-single/utils.d.ts +6 -0
- package/dist/types-ts4.5/media-single/index.d.ts +1 -1
- package/dist/types-ts4.5/media-single/utils.d.ts +6 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 74.51.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`265255c9011`](https://bitbucket.org/atlassian/atlassian-frontend/commits/265255c9011) - Remove height from will-change css
|
|
8
|
+
- [`ef2d5662e05`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ef2d5662e05) - [ux] Implement pixel entry input validation when submitting and render warning decoration for invalid input
|
|
9
|
+
|
|
10
|
+
## 74.51.2
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`14a853a7939`](https://bitbucket.org/atlassian/atlassian-frontend/commits/14a853a7939) - [ux] ED-19439 Added dark mode icons for emoji, expand and fallback
|
|
15
|
+
|
|
3
16
|
## 74.51.1
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -69,6 +69,12 @@ Object.defineProperty(exports, "calcMediaSinglePixelWidth", {
|
|
|
69
69
|
return _utils.calcMediaSinglePixelWidth;
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
|
+
Object.defineProperty(exports, "calcMinWidth", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function get() {
|
|
75
|
+
return _utils.calcMinWidth;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
72
78
|
Object.defineProperty(exports, "calculateOffsetLeft", {
|
|
73
79
|
enumerable: true,
|
|
74
80
|
get: function get() {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.calcMediaSinglePixelWidth = exports.calcMediaSingleMaxWidth = void 0;
|
|
6
|
+
exports.calcMinWidth = exports.calcMediaSinglePixelWidth = exports.calcMediaSingleMaxWidth = void 0;
|
|
7
7
|
exports.calculateOffsetLeft = calculateOffsetLeft;
|
|
8
8
|
exports.getMediaSingleInitialWidth = exports.getMaxWidthForNestedNodeNext = exports.getMaxWidthForNestedNode = void 0;
|
|
9
9
|
exports.getMediaSinglePixelWidth = getMediaSinglePixelWidth;
|
|
@@ -142,12 +142,22 @@ var roundToNearest = function roundToNearest(value) {
|
|
|
142
142
|
return Math.round(value / interval) * interval;
|
|
143
143
|
};
|
|
144
144
|
|
|
145
|
+
/**
|
|
146
|
+
* Retuns minimum value for media single node
|
|
147
|
+
* @param isVideoFile is child media of video type
|
|
148
|
+
* @param contentWidth parent content width
|
|
149
|
+
*/
|
|
150
|
+
exports.roundToNearest = roundToNearest;
|
|
151
|
+
var calcMinWidth = function calcMinWidth(isVideoFile, contentWidth) {
|
|
152
|
+
return Math.min(contentWidth, isVideoFile ? _constants.MEDIA_SINGLE_VIDEO_MIN_PIXEL_WIDTH : _constants.MEDIA_SINGLE_DEFAULT_MIN_PIXEL_WIDTH);
|
|
153
|
+
};
|
|
154
|
+
|
|
145
155
|
/**
|
|
146
156
|
* Get parent width for a nested media single node
|
|
147
157
|
* @param view Editor view
|
|
148
158
|
* @param pos node position
|
|
149
159
|
*/
|
|
150
|
-
exports.
|
|
160
|
+
exports.calcMinWidth = calcMinWidth;
|
|
151
161
|
var getMaxWidthForNestedNode = function getMaxWidthForNestedNode(view, pos) {
|
|
152
162
|
if (typeof pos !== 'number') {
|
|
153
163
|
return null;
|
|
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
16
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
17
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
18
18
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
19
|
-
var packageVersion = "74.51.
|
|
19
|
+
var packageVersion = "74.51.3";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -7,8 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = IconAction;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _useIconThemed2 = require("../use-icon-themed");
|
|
10
|
-
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
11
|
-
|
|
12
10
|
function IconAction() {
|
|
13
11
|
var _useIconThemed = (0, _useIconThemed2.useIconThemed)(),
|
|
14
12
|
iconThemed = _useIconThemed.iconThemed;
|
|
@@ -7,8 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = IconCode;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _useIconThemed2 = require("../use-icon-themed");
|
|
10
|
-
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
11
|
-
|
|
12
10
|
function IconCode() {
|
|
13
11
|
var _useIconThemed = (0, _useIconThemed2.useIconThemed)(),
|
|
14
12
|
iconThemed = _useIconThemed.iconThemed;
|
|
@@ -7,8 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = IconDecision;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _useIconThemed2 = require("../use-icon-themed");
|
|
10
|
-
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
11
|
-
|
|
12
10
|
function IconDecision() {
|
|
13
11
|
var _useIconThemed = (0, _useIconThemed2.useIconThemed)(),
|
|
14
12
|
iconThemed = _useIconThemed.iconThemed;
|
|
@@ -7,8 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = IconDivider;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _useIconThemed2 = require("../use-icon-themed");
|
|
10
|
-
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
11
|
-
|
|
12
10
|
function IconDivider() {
|
|
13
11
|
var _useIconThemed = (0, _useIconThemed2.useIconThemed)(),
|
|
14
12
|
iconThemed = _useIconThemed.iconThemed;
|
|
@@ -6,10 +6,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = IconEmoji;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
11
|
-
|
|
9
|
+
var _useIconThemed2 = require("../use-icon-themed");
|
|
12
10
|
function IconEmoji() {
|
|
11
|
+
var _useIconThemed = (0, _useIconThemed2.useIconThemed)(),
|
|
12
|
+
iconThemed = _useIconThemed.iconThemed;
|
|
13
13
|
return /*#__PURE__*/_react.default.createElement("svg", {
|
|
14
14
|
focusable: "false",
|
|
15
15
|
"aria-hidden": true,
|
|
@@ -19,19 +19,34 @@ function IconEmoji() {
|
|
|
19
19
|
fill: "none",
|
|
20
20
|
fillRule: "evenodd"
|
|
21
21
|
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
22
|
-
fill:
|
|
22
|
+
fill: iconThemed({
|
|
23
|
+
light: '#FFF',
|
|
24
|
+
dark: '#161A1D'
|
|
25
|
+
}),
|
|
23
26
|
d: "M0 0h40v40H0z"
|
|
24
27
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
25
28
|
d: "M32 20c0 6.627-5.373 12-12 12S8 26.627 8 20 13.373 8 20 8s12 5.373 12 12",
|
|
26
|
-
fill:
|
|
29
|
+
fill: iconThemed({
|
|
30
|
+
light: '#FFCC4D',
|
|
31
|
+
dark: '#946F00'
|
|
32
|
+
})
|
|
27
33
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
28
34
|
d: "M20 22c-2.415 0-4.018-.281-6-.667-.453-.087-1.333 0-1.333 1.334 0 2.666 3.063 6 7.333 6s7.333-3.334 7.333-6c0-1.334-.88-1.422-1.333-1.334-1.982.386-3.585.667-6 .667",
|
|
29
|
-
fill:
|
|
35
|
+
fill: iconThemed({
|
|
36
|
+
light: '#664500',
|
|
37
|
+
dark: '#43290F'
|
|
38
|
+
})
|
|
30
39
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
31
40
|
d: "M14 22.667s2 .666 6 .666 6-.666 6-.666-1.333 2.666-6 2.666-6-2.666-6-2.666",
|
|
32
|
-
fill:
|
|
41
|
+
fill: iconThemed({
|
|
42
|
+
light: '#FFF',
|
|
43
|
+
dark: '#8696A7'
|
|
44
|
+
})
|
|
33
45
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
34
46
|
d: "M17.667 17c0 1.29-.746 2.333-1.667 2.333-.92 0-1.667-1.044-1.667-2.333 0-1.289.746-2.333 1.667-2.333.92 0 1.667 1.044 1.667 2.333m8 0c0 1.29-.746 2.333-1.667 2.333-.92 0-1.667-1.044-1.667-2.333 0-1.289.746-2.333 1.667-2.333.92 0 1.667 1.044 1.667 2.333",
|
|
35
|
-
fill:
|
|
47
|
+
fill: iconThemed({
|
|
48
|
+
light: '#664500',
|
|
49
|
+
dark: '#43290F'
|
|
50
|
+
})
|
|
36
51
|
})));
|
|
37
52
|
}
|
|
@@ -6,10 +6,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = IconExpand;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
11
|
-
|
|
9
|
+
var _useIconThemed2 = require("../use-icon-themed");
|
|
12
10
|
function IconExpand() {
|
|
11
|
+
var _useIconThemed = (0, _useIconThemed2.useIconThemed)(),
|
|
12
|
+
iconThemed = _useIconThemed.iconThemed;
|
|
13
13
|
return /*#__PURE__*/_react.default.createElement("svg", {
|
|
14
14
|
focusable: "false",
|
|
15
15
|
"aria-hidden": true,
|
|
@@ -19,21 +19,36 @@ function IconExpand() {
|
|
|
19
19
|
fill: "none",
|
|
20
20
|
fillRule: "evenodd"
|
|
21
21
|
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
22
|
-
fill:
|
|
22
|
+
fill: iconThemed({
|
|
23
|
+
light: '#FFF',
|
|
24
|
+
dark: '#161A1D'
|
|
25
|
+
}),
|
|
23
26
|
d: "M0 0h40v40H0z"
|
|
24
27
|
}), /*#__PURE__*/_react.default.createElement("g", {
|
|
25
28
|
transform: "translate(7 8)"
|
|
26
29
|
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
27
30
|
d: "M1 0h31v24H1a1 1 0 01-1-1V1a1 1 0 011-1z",
|
|
28
|
-
fill:
|
|
31
|
+
fill: iconThemed({
|
|
32
|
+
light: '#EBECF0',
|
|
33
|
+
dark: '#2C333A'
|
|
34
|
+
})
|
|
29
35
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
30
|
-
d: "
|
|
31
|
-
fill:
|
|
36
|
+
d: "M1 7h31v15H3a1 1 0 01-1-1V8a1 1 0 011-1z",
|
|
37
|
+
fill: iconThemed({
|
|
38
|
+
light: '#FFF',
|
|
39
|
+
dark: '#454F59'
|
|
40
|
+
})
|
|
32
41
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
33
42
|
d: "M5.5 18h14a.5.5 0 110 1h-14a.5.5 0 110-1zm0-3h23a.5.5 0 110 1h-23a.5.5 0 110-1zm0-3h23a.5.5 0 110 1h-23a.5.5 0 110-1zm0-3h23a.5.5 0 110 1h-23a.5.5 0 010-1z",
|
|
34
|
-
fill:
|
|
43
|
+
fill: iconThemed({
|
|
44
|
+
light: '#A5ADBA',
|
|
45
|
+
dark: '#8696A7'
|
|
46
|
+
})
|
|
35
47
|
}), /*#__PURE__*/_react.default.createElement("rect", {
|
|
36
|
-
fill:
|
|
48
|
+
fill: iconThemed({
|
|
49
|
+
light: '#2684FF',
|
|
50
|
+
dark: '#0C66E4'
|
|
51
|
+
}),
|
|
37
52
|
x: 7,
|
|
38
53
|
y: 3,
|
|
39
54
|
width: 18,
|
|
@@ -41,7 +56,10 @@ function IconExpand() {
|
|
|
41
56
|
rx: 0.5
|
|
42
57
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
43
58
|
d: "M2.646 2.354a.5.5 0 11.708-.708l1.5 1.5a.5.5 0 010 .708l-1.5 1.5a.5.5 0 11-.708-.708L3.793 3.5 2.646 2.354z",
|
|
44
|
-
fill:
|
|
59
|
+
fill: iconThemed({
|
|
60
|
+
light: '#2684FF',
|
|
61
|
+
dark: '#0C66E4'
|
|
62
|
+
}),
|
|
45
63
|
fillRule: "nonzero"
|
|
46
64
|
}))));
|
|
47
65
|
}
|
|
@@ -6,10 +6,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = IconFallback;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
9
|
+
var _useIconThemed2 = require("../use-icon-themed");
|
|
10
10
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
11
11
|
|
|
12
12
|
function IconFallback() {
|
|
13
|
+
var _useIconThemed = (0, _useIconThemed2.useIconThemed)(),
|
|
14
|
+
iconThemed = _useIconThemed.iconThemed;
|
|
13
15
|
return /*#__PURE__*/_react.default.createElement("svg", {
|
|
14
16
|
focusable: "false",
|
|
15
17
|
"aria-hidden": true,
|
|
@@ -27,29 +29,62 @@ function IconFallback() {
|
|
|
27
29
|
}), /*#__PURE__*/_react.default.createElement("stop", {
|
|
28
30
|
stopColor: "#A5ADBA",
|
|
29
31
|
offset: "100%"
|
|
32
|
+
})), /*#__PURE__*/_react.default.createElement("linearGradient", {
|
|
33
|
+
x1: "-12.24%",
|
|
34
|
+
y1: "100%",
|
|
35
|
+
x2: "82.44%",
|
|
36
|
+
y2: "0%",
|
|
37
|
+
id: "fallback-b"
|
|
38
|
+
}, /*#__PURE__*/_react.default.createElement("stop", {
|
|
39
|
+
stopColor: "#5A6977",
|
|
40
|
+
offset: "0%"
|
|
41
|
+
}), /*#__PURE__*/_react.default.createElement("stop", {
|
|
42
|
+
stopColor: "#454F59",
|
|
43
|
+
offset: "100%"
|
|
30
44
|
}))), /*#__PURE__*/_react.default.createElement("g", {
|
|
31
45
|
fill: "none",
|
|
32
46
|
fillRule: "evenodd"
|
|
33
47
|
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
34
|
-
fill:
|
|
48
|
+
fill: iconThemed({
|
|
49
|
+
light: '#FFF',
|
|
50
|
+
dark: '#161A1D'
|
|
51
|
+
}),
|
|
35
52
|
d: "M0 0h40v40H0z"
|
|
36
53
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
37
|
-
fill:
|
|
54
|
+
fill: iconThemed({
|
|
55
|
+
light: '#DFE1E6',
|
|
56
|
+
dark: '#738496'
|
|
57
|
+
}),
|
|
38
58
|
d: "M20 16h12v12H20z"
|
|
39
59
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
40
|
-
fill:
|
|
60
|
+
fill: iconThemed({
|
|
61
|
+
light: 'url(#fallback-a)',
|
|
62
|
+
dark: 'url(#fallback-b)'
|
|
63
|
+
}),
|
|
41
64
|
d: "M8 16h12v12H8z"
|
|
42
65
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
43
66
|
d: "M20 16c-4 .5-6.029 2.5-6.086 6-.057 3.5-2.028 5.5-5.914 6h12V16z",
|
|
44
|
-
fill:
|
|
67
|
+
fill: iconThemed({
|
|
68
|
+
light: '#A5ADBA',
|
|
69
|
+
dark: '#454F59'
|
|
70
|
+
})
|
|
45
71
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
46
|
-
fill:
|
|
72
|
+
fill: iconThemed({
|
|
73
|
+
light: '#B3BAC5',
|
|
74
|
+
dark: '#454F59'
|
|
75
|
+
}),
|
|
47
76
|
d: "M17.5 13h5v3h-5z"
|
|
48
77
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
49
|
-
fill:
|
|
78
|
+
fill: iconThemed({
|
|
79
|
+
light: '#A5ADBA',
|
|
80
|
+
dark: '#454F59'
|
|
81
|
+
}),
|
|
50
82
|
d: "M10 13h5v3h-5z"
|
|
51
83
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
52
|
-
fill:
|
|
84
|
+
fill: iconThemed({
|
|
85
|
+
light: '#DFE1E6',
|
|
86
|
+
dark: '#738496'
|
|
87
|
+
}),
|
|
53
88
|
d: "M25 13h5v3h-5z"
|
|
54
89
|
})));
|
|
55
90
|
}
|
|
@@ -54,7 +54,7 @@ var TableSharedCssClassName = {
|
|
|
54
54
|
};
|
|
55
55
|
exports.TableSharedCssClassName = TableSharedCssClassName;
|
|
56
56
|
var tableSharedStyle = function tableSharedStyle(props) {
|
|
57
|
-
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n ", "\n .", " {\n position: relative;\n margin: 0 auto ", "px;\n box-sizing: border-box;\n\n /**\n * Fix block top alignment inside table cells.\n */\n .decisionItemView-content-wrap:first-of-type > div {\n margin-top: 0;\n }\n }\n .", "[data-number-column='true'] {\n padding-left: ", "px;\n clear: both;\n }\n\n .", " {\n will-change: width,
|
|
57
|
+
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n ", "\n .", " {\n position: relative;\n margin: 0 auto ", "px;\n box-sizing: border-box;\n\n /**\n * Fix block top alignment inside table cells.\n */\n .decisionItemView-content-wrap:first-of-type > div {\n margin-top: 0;\n }\n }\n .", "[data-number-column='true'] {\n padding-left: ", "px;\n clear: both;\n }\n\n .", " {\n will-change: width, margin-left;\n }\n\n .", " table {\n will-change: width;\n }\n\n .", " > table {\n margin: ", "px 0 0 0;\n }\n\n .", " > table,\n .", " > table {\n margin: ", "px ", "px 0 0;\n }\n\n /* avoid applying styles to nested tables (possible via extensions) */\n .", " > table,\n .", " > table,\n .", " > table {\n border-collapse: collapse;\n border: ", "px solid\n ", ";\n table-layout: fixed;\n font-size: 1em;\n width: 100%;\n\n &[data-autosize='true'] {\n table-layout: auto;\n }\n\n & {\n * {\n box-sizing: border-box;\n }\n hr {\n box-sizing: content-box;\n }\n\n tbody {\n border-bottom: none;\n }\n th td {\n background-color: ", ";\n }\n th,\n td {\n min-width: ", "px;\n font-weight: normal;\n vertical-align: top;\n border: 1px solid\n ", ";\n border-right-width: 0;\n border-bottom-width: 0;\n padding: ", "px;\n /* https://stackoverflow.com/questions/7517127/borders-not-shown-in-firefox-with-border-collapse-on-table-position-relative-o */\n ", "\n\n ", ";\n\n > :first-child:not(style),\n > style:first-child + * {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor:first-child + *,\n > style:first-child + .ProseMirror-gapcursor + * {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor:first-child + span + *,\n > style:first-child + .ProseMirror-gapcursor + span + * {\n margin-top: 0;\n }\n\n th p:not(:first-of-type),\n td p:not(:first-of-type) {\n margin-top: 12px;\n }\n }\n th {\n background-color: ", ";\n text-align: left;\n\n /* only apply this styling to codeblocks in default background headercells */\n /* TODO this needs to be overhauled as it relies on unsafe selectors */\n &:not([style]):not(.danger) {\n .", ":not(.danger) {\n background-color: ", ";\n\n :not(.", ") {\n box-shadow: 0px 0px 0px 1px\n ", ";\n }\n\n .", " {\n background-image: ", ";\n\n background-color: ", ";\n }\n\n .", " {\n background-color: ", ";\n }\n\n /* this is only relevant to the element taken care of by renderer */\n > [data-ds--code--code-block] {\n background-image: ", "!important;\n\n background-color: ", "!important;\n\n // selector lives inside @atlaskit/code\n --ds--code--line-number-bg-color: ", ";\n }\n }\n }\n }\n }\n }\n"])), (0, _tableCell.tableCellBackgroundStyleOverride)(), TableSharedCssClassName.TABLE_CONTAINER, tableMarginBottom, TableSharedCssClassName.TABLE_CONTAINER, _editorSharedStyles.akEditorTableNumberColumnWidth - 1, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, tableMarginTop, TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableMarginTop, tableMarginSides, TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableCellBorderWidth, (0, _components.themed)({
|
|
58
58
|
light: "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")"),
|
|
59
59
|
dark: "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorderDark, ")")
|
|
60
60
|
})(props), "var(--ds-background-neutral-subtle, white)", tableCellMinWidth, (0, _components.themed)({
|
|
@@ -24,7 +24,7 @@ var _templateObject, _templateObject2, _templateObject3;
|
|
|
24
24
|
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); }; }
|
|
25
25
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "74.51.
|
|
27
|
+
var packageVersion = "74.51.3";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { MEDIA_SINGLE_DEFAULT_MIN_PIXEL_WIDTH, MEDIA_SINGLE_VIDEO_MIN_PIXEL_WIDTH, MEDIA_SINGLE_SNAP_GAP, MEDIA_SINGLE_HIGHLIGHT_GAP, MEDIA_SINGLE_GUTTER_SIZE, MEDIA_SINGLE_RESIZE_THROTTLE_TIME, Layout as MediaSingleLayout, DEFAULT_IMAGE_WIDTH, DEFAULT_IMAGE_HEIGHT, wrappedLayouts } from './constants';
|
|
2
|
-
export { getMediaSinglePixelWidth, calcMediaSinglePixelWidth, calcMediaSingleMaxWidth, getMediaSingleInitialWidth, calculateOffsetLeft, roundToNearest, getMaxWidthForNestedNode, getMaxWidthForNestedNodeNext } from './utils';
|
|
2
|
+
export { getMediaSinglePixelWidth, calcMediaSinglePixelWidth, calcMediaSingleMaxWidth, getMediaSingleInitialWidth, calculateOffsetLeft, roundToNearest, calcMinWidth, getMaxWidthForNestedNode, getMaxWidthForNestedNodeNext } from './utils';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles';
|
|
2
2
|
import { floatingLayouts, isRichMediaInsideOfBlockNode } from '../utils/rich-media-utils';
|
|
3
|
-
import { DEFAULT_IMAGE_WIDTH, DEFAULT_ROUNDING_INTERVAL, MEDIA_SINGLE_DEFAULT_MIN_PIXEL_WIDTH, wrappedLayouts } from './constants';
|
|
3
|
+
import { DEFAULT_IMAGE_WIDTH, DEFAULT_ROUNDING_INTERVAL, MEDIA_SINGLE_DEFAULT_MIN_PIXEL_WIDTH, MEDIA_SINGLE_VIDEO_MIN_PIXEL_WIDTH, wrappedLayouts } from './constants';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Convert media node width to pixel
|
|
@@ -121,6 +121,15 @@ export function calculateOffsetLeft(insideInlineLike, insideLayout, pmViewDom, w
|
|
|
121
121
|
*/
|
|
122
122
|
export const roundToNearest = (value, interval = DEFAULT_ROUNDING_INTERVAL) => Math.round(value / interval) * interval;
|
|
123
123
|
|
|
124
|
+
/**
|
|
125
|
+
* Retuns minimum value for media single node
|
|
126
|
+
* @param isVideoFile is child media of video type
|
|
127
|
+
* @param contentWidth parent content width
|
|
128
|
+
*/
|
|
129
|
+
export const calcMinWidth = (isVideoFile, contentWidth) => {
|
|
130
|
+
return Math.min(contentWidth, isVideoFile ? MEDIA_SINGLE_VIDEO_MIN_PIXEL_WIDTH : MEDIA_SINGLE_DEFAULT_MIN_PIXEL_WIDTH);
|
|
131
|
+
};
|
|
132
|
+
|
|
124
133
|
/**
|
|
125
134
|
* Get parent width for a nested media single node
|
|
126
135
|
* @param view Editor view
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
2
2
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
3
|
-
const packageVersion = "74.51.
|
|
3
|
+
const packageVersion = "74.51.3";
|
|
4
4
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
5
5
|
// Remove URL as it has UGC
|
|
6
6
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
// TODO: https://product-fabric.atlassian.net/browse/DSP-4138
|
|
2
|
-
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
3
1
|
import React from 'react';
|
|
2
|
+
import { useIconThemed } from '../use-icon-themed';
|
|
4
3
|
export default function IconEmoji() {
|
|
4
|
+
const {
|
|
5
|
+
iconThemed
|
|
6
|
+
} = useIconThemed();
|
|
5
7
|
return /*#__PURE__*/React.createElement("svg", {
|
|
6
8
|
focusable: "false",
|
|
7
9
|
"aria-hidden": true,
|
|
@@ -11,19 +13,34 @@ export default function IconEmoji() {
|
|
|
11
13
|
fill: "none",
|
|
12
14
|
fillRule: "evenodd"
|
|
13
15
|
}, /*#__PURE__*/React.createElement("path", {
|
|
14
|
-
fill:
|
|
16
|
+
fill: iconThemed({
|
|
17
|
+
light: '#FFF',
|
|
18
|
+
dark: '#161A1D'
|
|
19
|
+
}),
|
|
15
20
|
d: "M0 0h40v40H0z"
|
|
16
21
|
}), /*#__PURE__*/React.createElement("path", {
|
|
17
22
|
d: "M32 20c0 6.627-5.373 12-12 12S8 26.627 8 20 13.373 8 20 8s12 5.373 12 12",
|
|
18
|
-
fill:
|
|
23
|
+
fill: iconThemed({
|
|
24
|
+
light: '#FFCC4D',
|
|
25
|
+
dark: '#946F00'
|
|
26
|
+
})
|
|
19
27
|
}), /*#__PURE__*/React.createElement("path", {
|
|
20
28
|
d: "M20 22c-2.415 0-4.018-.281-6-.667-.453-.087-1.333 0-1.333 1.334 0 2.666 3.063 6 7.333 6s7.333-3.334 7.333-6c0-1.334-.88-1.422-1.333-1.334-1.982.386-3.585.667-6 .667",
|
|
21
|
-
fill:
|
|
29
|
+
fill: iconThemed({
|
|
30
|
+
light: '#664500',
|
|
31
|
+
dark: '#43290F'
|
|
32
|
+
})
|
|
22
33
|
}), /*#__PURE__*/React.createElement("path", {
|
|
23
34
|
d: "M14 22.667s2 .666 6 .666 6-.666 6-.666-1.333 2.666-6 2.666-6-2.666-6-2.666",
|
|
24
|
-
fill:
|
|
35
|
+
fill: iconThemed({
|
|
36
|
+
light: '#FFF',
|
|
37
|
+
dark: '#8696A7'
|
|
38
|
+
})
|
|
25
39
|
}), /*#__PURE__*/React.createElement("path", {
|
|
26
40
|
d: "M17.667 17c0 1.29-.746 2.333-1.667 2.333-.92 0-1.667-1.044-1.667-2.333 0-1.289.746-2.333 1.667-2.333.92 0 1.667 1.044 1.667 2.333m8 0c0 1.29-.746 2.333-1.667 2.333-.92 0-1.667-1.044-1.667-2.333 0-1.289.746-2.333 1.667-2.333.92 0 1.667 1.044 1.667 2.333",
|
|
27
|
-
fill:
|
|
41
|
+
fill: iconThemed({
|
|
42
|
+
light: '#664500',
|
|
43
|
+
dark: '#43290F'
|
|
44
|
+
})
|
|
28
45
|
})));
|
|
29
46
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
// TODO: https://product-fabric.atlassian.net/browse/DSP-4138
|
|
2
|
-
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
3
1
|
import React from 'react';
|
|
2
|
+
import { useIconThemed } from '../use-icon-themed';
|
|
4
3
|
export default function IconExpand() {
|
|
4
|
+
const {
|
|
5
|
+
iconThemed
|
|
6
|
+
} = useIconThemed();
|
|
5
7
|
return /*#__PURE__*/React.createElement("svg", {
|
|
6
8
|
focusable: "false",
|
|
7
9
|
"aria-hidden": true,
|
|
@@ -11,21 +13,36 @@ export default function IconExpand() {
|
|
|
11
13
|
fill: "none",
|
|
12
14
|
fillRule: "evenodd"
|
|
13
15
|
}, /*#__PURE__*/React.createElement("path", {
|
|
14
|
-
fill:
|
|
16
|
+
fill: iconThemed({
|
|
17
|
+
light: '#FFF',
|
|
18
|
+
dark: '#161A1D'
|
|
19
|
+
}),
|
|
15
20
|
d: "M0 0h40v40H0z"
|
|
16
21
|
}), /*#__PURE__*/React.createElement("g", {
|
|
17
22
|
transform: "translate(7 8)"
|
|
18
23
|
}, /*#__PURE__*/React.createElement("path", {
|
|
19
24
|
d: "M1 0h31v24H1a1 1 0 01-1-1V1a1 1 0 011-1z",
|
|
20
|
-
fill:
|
|
25
|
+
fill: iconThemed({
|
|
26
|
+
light: '#EBECF0',
|
|
27
|
+
dark: '#2C333A'
|
|
28
|
+
})
|
|
21
29
|
}), /*#__PURE__*/React.createElement("path", {
|
|
22
|
-
d: "
|
|
23
|
-
fill:
|
|
30
|
+
d: "M1 7h31v15H3a1 1 0 01-1-1V8a1 1 0 011-1z",
|
|
31
|
+
fill: iconThemed({
|
|
32
|
+
light: '#FFF',
|
|
33
|
+
dark: '#454F59'
|
|
34
|
+
})
|
|
24
35
|
}), /*#__PURE__*/React.createElement("path", {
|
|
25
36
|
d: "M5.5 18h14a.5.5 0 110 1h-14a.5.5 0 110-1zm0-3h23a.5.5 0 110 1h-23a.5.5 0 110-1zm0-3h23a.5.5 0 110 1h-23a.5.5 0 110-1zm0-3h23a.5.5 0 110 1h-23a.5.5 0 010-1z",
|
|
26
|
-
fill:
|
|
37
|
+
fill: iconThemed({
|
|
38
|
+
light: '#A5ADBA',
|
|
39
|
+
dark: '#8696A7'
|
|
40
|
+
})
|
|
27
41
|
}), /*#__PURE__*/React.createElement("rect", {
|
|
28
|
-
fill:
|
|
42
|
+
fill: iconThemed({
|
|
43
|
+
light: '#2684FF',
|
|
44
|
+
dark: '#0C66E4'
|
|
45
|
+
}),
|
|
29
46
|
x: 7,
|
|
30
47
|
y: 3,
|
|
31
48
|
width: 18,
|
|
@@ -33,7 +50,10 @@ export default function IconExpand() {
|
|
|
33
50
|
rx: 0.5
|
|
34
51
|
}), /*#__PURE__*/React.createElement("path", {
|
|
35
52
|
d: "M2.646 2.354a.5.5 0 11.708-.708l1.5 1.5a.5.5 0 010 .708l-1.5 1.5a.5.5 0 11-.708-.708L3.793 3.5 2.646 2.354z",
|
|
36
|
-
fill:
|
|
53
|
+
fill: iconThemed({
|
|
54
|
+
light: '#2684FF',
|
|
55
|
+
dark: '#0C66E4'
|
|
56
|
+
}),
|
|
37
57
|
fillRule: "nonzero"
|
|
38
58
|
}))));
|
|
39
59
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
// TODO: https://product-fabric.atlassian.net/browse/DSP-4138
|
|
2
1
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
3
2
|
import React from 'react';
|
|
3
|
+
import { useIconThemed } from '../use-icon-themed';
|
|
4
4
|
export default function IconFallback() {
|
|
5
|
+
const {
|
|
6
|
+
iconThemed
|
|
7
|
+
} = useIconThemed();
|
|
5
8
|
return /*#__PURE__*/React.createElement("svg", {
|
|
6
9
|
focusable: "false",
|
|
7
10
|
"aria-hidden": true,
|
|
@@ -19,29 +22,62 @@ export default function IconFallback() {
|
|
|
19
22
|
}), /*#__PURE__*/React.createElement("stop", {
|
|
20
23
|
stopColor: "#A5ADBA",
|
|
21
24
|
offset: "100%"
|
|
25
|
+
})), /*#__PURE__*/React.createElement("linearGradient", {
|
|
26
|
+
x1: "-12.24%",
|
|
27
|
+
y1: "100%",
|
|
28
|
+
x2: "82.44%",
|
|
29
|
+
y2: "0%",
|
|
30
|
+
id: "fallback-b"
|
|
31
|
+
}, /*#__PURE__*/React.createElement("stop", {
|
|
32
|
+
stopColor: "#5A6977",
|
|
33
|
+
offset: "0%"
|
|
34
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
35
|
+
stopColor: "#454F59",
|
|
36
|
+
offset: "100%"
|
|
22
37
|
}))), /*#__PURE__*/React.createElement("g", {
|
|
23
38
|
fill: "none",
|
|
24
39
|
fillRule: "evenodd"
|
|
25
40
|
}, /*#__PURE__*/React.createElement("path", {
|
|
26
|
-
fill:
|
|
41
|
+
fill: iconThemed({
|
|
42
|
+
light: '#FFF',
|
|
43
|
+
dark: '#161A1D'
|
|
44
|
+
}),
|
|
27
45
|
d: "M0 0h40v40H0z"
|
|
28
46
|
}), /*#__PURE__*/React.createElement("path", {
|
|
29
|
-
fill:
|
|
47
|
+
fill: iconThemed({
|
|
48
|
+
light: '#DFE1E6',
|
|
49
|
+
dark: '#738496'
|
|
50
|
+
}),
|
|
30
51
|
d: "M20 16h12v12H20z"
|
|
31
52
|
}), /*#__PURE__*/React.createElement("path", {
|
|
32
|
-
fill:
|
|
53
|
+
fill: iconThemed({
|
|
54
|
+
light: 'url(#fallback-a)',
|
|
55
|
+
dark: 'url(#fallback-b)'
|
|
56
|
+
}),
|
|
33
57
|
d: "M8 16h12v12H8z"
|
|
34
58
|
}), /*#__PURE__*/React.createElement("path", {
|
|
35
59
|
d: "M20 16c-4 .5-6.029 2.5-6.086 6-.057 3.5-2.028 5.5-5.914 6h12V16z",
|
|
36
|
-
fill:
|
|
60
|
+
fill: iconThemed({
|
|
61
|
+
light: '#A5ADBA',
|
|
62
|
+
dark: '#454F59'
|
|
63
|
+
})
|
|
37
64
|
}), /*#__PURE__*/React.createElement("path", {
|
|
38
|
-
fill:
|
|
65
|
+
fill: iconThemed({
|
|
66
|
+
light: '#B3BAC5',
|
|
67
|
+
dark: '#454F59'
|
|
68
|
+
}),
|
|
39
69
|
d: "M17.5 13h5v3h-5z"
|
|
40
70
|
}), /*#__PURE__*/React.createElement("path", {
|
|
41
|
-
fill:
|
|
71
|
+
fill: iconThemed({
|
|
72
|
+
light: '#A5ADBA',
|
|
73
|
+
dark: '#454F59'
|
|
74
|
+
}),
|
|
42
75
|
d: "M10 13h5v3h-5z"
|
|
43
76
|
}), /*#__PURE__*/React.createElement("path", {
|
|
44
|
-
fill:
|
|
77
|
+
fill: iconThemed({
|
|
78
|
+
light: '#DFE1E6',
|
|
79
|
+
dark: '#738496'
|
|
80
|
+
}),
|
|
45
81
|
d: "M25 13h5v3h-5z"
|
|
46
82
|
})));
|
|
47
83
|
}
|
|
@@ -8,7 +8,7 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
8
8
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
9
9
|
import Layer from '../Layer';
|
|
10
10
|
const packageName = "@atlaskit/editor-common";
|
|
11
|
-
const packageVersion = "74.51.
|
|
11
|
+
const packageVersion = "74.51.3";
|
|
12
12
|
const halfFocusRing = 1;
|
|
13
13
|
const dropOffset = '0, 8';
|
|
14
14
|
class DropList extends Component {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { MEDIA_SINGLE_DEFAULT_MIN_PIXEL_WIDTH, MEDIA_SINGLE_VIDEO_MIN_PIXEL_WIDTH, MEDIA_SINGLE_SNAP_GAP, MEDIA_SINGLE_HIGHLIGHT_GAP, MEDIA_SINGLE_GUTTER_SIZE, MEDIA_SINGLE_RESIZE_THROTTLE_TIME, Layout as MediaSingleLayout, DEFAULT_IMAGE_WIDTH, DEFAULT_IMAGE_HEIGHT, wrappedLayouts } from './constants';
|
|
2
|
-
export { getMediaSinglePixelWidth, calcMediaSinglePixelWidth, calcMediaSingleMaxWidth, getMediaSingleInitialWidth, calculateOffsetLeft, roundToNearest, getMaxWidthForNestedNode, getMaxWidthForNestedNodeNext } from './utils';
|
|
2
|
+
export { getMediaSinglePixelWidth, calcMediaSinglePixelWidth, calcMediaSingleMaxWidth, getMediaSingleInitialWidth, calculateOffsetLeft, roundToNearest, calcMinWidth, getMaxWidthForNestedNode, getMaxWidthForNestedNodeNext } from './utils';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, breakoutWideScaleRatio } from '@atlaskit/editor-shared-styles';
|
|
2
2
|
import { floatingLayouts, isRichMediaInsideOfBlockNode } from '../utils/rich-media-utils';
|
|
3
|
-
import { DEFAULT_IMAGE_WIDTH, DEFAULT_ROUNDING_INTERVAL, MEDIA_SINGLE_DEFAULT_MIN_PIXEL_WIDTH, wrappedLayouts } from './constants';
|
|
3
|
+
import { DEFAULT_IMAGE_WIDTH, DEFAULT_ROUNDING_INTERVAL, MEDIA_SINGLE_DEFAULT_MIN_PIXEL_WIDTH, MEDIA_SINGLE_VIDEO_MIN_PIXEL_WIDTH, wrappedLayouts } from './constants';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Convert media node width to pixel
|
|
@@ -130,6 +130,15 @@ export var roundToNearest = function roundToNearest(value) {
|
|
|
130
130
|
return Math.round(value / interval) * interval;
|
|
131
131
|
};
|
|
132
132
|
|
|
133
|
+
/**
|
|
134
|
+
* Retuns minimum value for media single node
|
|
135
|
+
* @param isVideoFile is child media of video type
|
|
136
|
+
* @param contentWidth parent content width
|
|
137
|
+
*/
|
|
138
|
+
export var calcMinWidth = function calcMinWidth(isVideoFile, contentWidth) {
|
|
139
|
+
return Math.min(contentWidth, isVideoFile ? MEDIA_SINGLE_VIDEO_MIN_PIXEL_WIDTH : MEDIA_SINGLE_DEFAULT_MIN_PIXEL_WIDTH);
|
|
140
|
+
};
|
|
141
|
+
|
|
133
142
|
/**
|
|
134
143
|
* Get parent width for a nested media single node
|
|
135
144
|
* @param view Editor view
|
|
@@ -6,7 +6,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
6
6
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7
7
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
8
8
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
9
|
-
var packageVersion = "74.51.
|
|
9
|
+
var packageVersion = "74.51.3";
|
|
10
10
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
11
11
|
// Remove URL as it has UGC
|
|
12
12
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
// TODO: https://product-fabric.atlassian.net/browse/DSP-4138
|
|
2
|
-
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
3
1
|
import React from 'react';
|
|
2
|
+
import { useIconThemed } from '../use-icon-themed';
|
|
4
3
|
export default function IconEmoji() {
|
|
4
|
+
var _useIconThemed = useIconThemed(),
|
|
5
|
+
iconThemed = _useIconThemed.iconThemed;
|
|
5
6
|
return /*#__PURE__*/React.createElement("svg", {
|
|
6
7
|
focusable: "false",
|
|
7
8
|
"aria-hidden": true,
|
|
@@ -11,19 +12,34 @@ export default function IconEmoji() {
|
|
|
11
12
|
fill: "none",
|
|
12
13
|
fillRule: "evenodd"
|
|
13
14
|
}, /*#__PURE__*/React.createElement("path", {
|
|
14
|
-
fill:
|
|
15
|
+
fill: iconThemed({
|
|
16
|
+
light: '#FFF',
|
|
17
|
+
dark: '#161A1D'
|
|
18
|
+
}),
|
|
15
19
|
d: "M0 0h40v40H0z"
|
|
16
20
|
}), /*#__PURE__*/React.createElement("path", {
|
|
17
21
|
d: "M32 20c0 6.627-5.373 12-12 12S8 26.627 8 20 13.373 8 20 8s12 5.373 12 12",
|
|
18
|
-
fill:
|
|
22
|
+
fill: iconThemed({
|
|
23
|
+
light: '#FFCC4D',
|
|
24
|
+
dark: '#946F00'
|
|
25
|
+
})
|
|
19
26
|
}), /*#__PURE__*/React.createElement("path", {
|
|
20
27
|
d: "M20 22c-2.415 0-4.018-.281-6-.667-.453-.087-1.333 0-1.333 1.334 0 2.666 3.063 6 7.333 6s7.333-3.334 7.333-6c0-1.334-.88-1.422-1.333-1.334-1.982.386-3.585.667-6 .667",
|
|
21
|
-
fill:
|
|
28
|
+
fill: iconThemed({
|
|
29
|
+
light: '#664500',
|
|
30
|
+
dark: '#43290F'
|
|
31
|
+
})
|
|
22
32
|
}), /*#__PURE__*/React.createElement("path", {
|
|
23
33
|
d: "M14 22.667s2 .666 6 .666 6-.666 6-.666-1.333 2.666-6 2.666-6-2.666-6-2.666",
|
|
24
|
-
fill:
|
|
34
|
+
fill: iconThemed({
|
|
35
|
+
light: '#FFF',
|
|
36
|
+
dark: '#8696A7'
|
|
37
|
+
})
|
|
25
38
|
}), /*#__PURE__*/React.createElement("path", {
|
|
26
39
|
d: "M17.667 17c0 1.29-.746 2.333-1.667 2.333-.92 0-1.667-1.044-1.667-2.333 0-1.289.746-2.333 1.667-2.333.92 0 1.667 1.044 1.667 2.333m8 0c0 1.29-.746 2.333-1.667 2.333-.92 0-1.667-1.044-1.667-2.333 0-1.289.746-2.333 1.667-2.333.92 0 1.667 1.044 1.667 2.333",
|
|
27
|
-
fill:
|
|
40
|
+
fill: iconThemed({
|
|
41
|
+
light: '#664500',
|
|
42
|
+
dark: '#43290F'
|
|
43
|
+
})
|
|
28
44
|
})));
|
|
29
45
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
// TODO: https://product-fabric.atlassian.net/browse/DSP-4138
|
|
2
|
-
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
3
1
|
import React from 'react';
|
|
2
|
+
import { useIconThemed } from '../use-icon-themed';
|
|
4
3
|
export default function IconExpand() {
|
|
4
|
+
var _useIconThemed = useIconThemed(),
|
|
5
|
+
iconThemed = _useIconThemed.iconThemed;
|
|
5
6
|
return /*#__PURE__*/React.createElement("svg", {
|
|
6
7
|
focusable: "false",
|
|
7
8
|
"aria-hidden": true,
|
|
@@ -11,21 +12,36 @@ export default function IconExpand() {
|
|
|
11
12
|
fill: "none",
|
|
12
13
|
fillRule: "evenodd"
|
|
13
14
|
}, /*#__PURE__*/React.createElement("path", {
|
|
14
|
-
fill:
|
|
15
|
+
fill: iconThemed({
|
|
16
|
+
light: '#FFF',
|
|
17
|
+
dark: '#161A1D'
|
|
18
|
+
}),
|
|
15
19
|
d: "M0 0h40v40H0z"
|
|
16
20
|
}), /*#__PURE__*/React.createElement("g", {
|
|
17
21
|
transform: "translate(7 8)"
|
|
18
22
|
}, /*#__PURE__*/React.createElement("path", {
|
|
19
23
|
d: "M1 0h31v24H1a1 1 0 01-1-1V1a1 1 0 011-1z",
|
|
20
|
-
fill:
|
|
24
|
+
fill: iconThemed({
|
|
25
|
+
light: '#EBECF0',
|
|
26
|
+
dark: '#2C333A'
|
|
27
|
+
})
|
|
21
28
|
}), /*#__PURE__*/React.createElement("path", {
|
|
22
|
-
d: "
|
|
23
|
-
fill:
|
|
29
|
+
d: "M1 7h31v15H3a1 1 0 01-1-1V8a1 1 0 011-1z",
|
|
30
|
+
fill: iconThemed({
|
|
31
|
+
light: '#FFF',
|
|
32
|
+
dark: '#454F59'
|
|
33
|
+
})
|
|
24
34
|
}), /*#__PURE__*/React.createElement("path", {
|
|
25
35
|
d: "M5.5 18h14a.5.5 0 110 1h-14a.5.5 0 110-1zm0-3h23a.5.5 0 110 1h-23a.5.5 0 110-1zm0-3h23a.5.5 0 110 1h-23a.5.5 0 110-1zm0-3h23a.5.5 0 110 1h-23a.5.5 0 010-1z",
|
|
26
|
-
fill:
|
|
36
|
+
fill: iconThemed({
|
|
37
|
+
light: '#A5ADBA',
|
|
38
|
+
dark: '#8696A7'
|
|
39
|
+
})
|
|
27
40
|
}), /*#__PURE__*/React.createElement("rect", {
|
|
28
|
-
fill:
|
|
41
|
+
fill: iconThemed({
|
|
42
|
+
light: '#2684FF',
|
|
43
|
+
dark: '#0C66E4'
|
|
44
|
+
}),
|
|
29
45
|
x: 7,
|
|
30
46
|
y: 3,
|
|
31
47
|
width: 18,
|
|
@@ -33,7 +49,10 @@ export default function IconExpand() {
|
|
|
33
49
|
rx: 0.5
|
|
34
50
|
}), /*#__PURE__*/React.createElement("path", {
|
|
35
51
|
d: "M2.646 2.354a.5.5 0 11.708-.708l1.5 1.5a.5.5 0 010 .708l-1.5 1.5a.5.5 0 11-.708-.708L3.793 3.5 2.646 2.354z",
|
|
36
|
-
fill:
|
|
52
|
+
fill: iconThemed({
|
|
53
|
+
light: '#2684FF',
|
|
54
|
+
dark: '#0C66E4'
|
|
55
|
+
}),
|
|
37
56
|
fillRule: "nonzero"
|
|
38
57
|
}))));
|
|
39
58
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
// TODO: https://product-fabric.atlassian.net/browse/DSP-4138
|
|
2
1
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
3
2
|
import React from 'react';
|
|
3
|
+
import { useIconThemed } from '../use-icon-themed';
|
|
4
4
|
export default function IconFallback() {
|
|
5
|
+
var _useIconThemed = useIconThemed(),
|
|
6
|
+
iconThemed = _useIconThemed.iconThemed;
|
|
5
7
|
return /*#__PURE__*/React.createElement("svg", {
|
|
6
8
|
focusable: "false",
|
|
7
9
|
"aria-hidden": true,
|
|
@@ -19,29 +21,62 @@ export default function IconFallback() {
|
|
|
19
21
|
}), /*#__PURE__*/React.createElement("stop", {
|
|
20
22
|
stopColor: "#A5ADBA",
|
|
21
23
|
offset: "100%"
|
|
24
|
+
})), /*#__PURE__*/React.createElement("linearGradient", {
|
|
25
|
+
x1: "-12.24%",
|
|
26
|
+
y1: "100%",
|
|
27
|
+
x2: "82.44%",
|
|
28
|
+
y2: "0%",
|
|
29
|
+
id: "fallback-b"
|
|
30
|
+
}, /*#__PURE__*/React.createElement("stop", {
|
|
31
|
+
stopColor: "#5A6977",
|
|
32
|
+
offset: "0%"
|
|
33
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
34
|
+
stopColor: "#454F59",
|
|
35
|
+
offset: "100%"
|
|
22
36
|
}))), /*#__PURE__*/React.createElement("g", {
|
|
23
37
|
fill: "none",
|
|
24
38
|
fillRule: "evenodd"
|
|
25
39
|
}, /*#__PURE__*/React.createElement("path", {
|
|
26
|
-
fill:
|
|
40
|
+
fill: iconThemed({
|
|
41
|
+
light: '#FFF',
|
|
42
|
+
dark: '#161A1D'
|
|
43
|
+
}),
|
|
27
44
|
d: "M0 0h40v40H0z"
|
|
28
45
|
}), /*#__PURE__*/React.createElement("path", {
|
|
29
|
-
fill:
|
|
46
|
+
fill: iconThemed({
|
|
47
|
+
light: '#DFE1E6',
|
|
48
|
+
dark: '#738496'
|
|
49
|
+
}),
|
|
30
50
|
d: "M20 16h12v12H20z"
|
|
31
51
|
}), /*#__PURE__*/React.createElement("path", {
|
|
32
|
-
fill:
|
|
52
|
+
fill: iconThemed({
|
|
53
|
+
light: 'url(#fallback-a)',
|
|
54
|
+
dark: 'url(#fallback-b)'
|
|
55
|
+
}),
|
|
33
56
|
d: "M8 16h12v12H8z"
|
|
34
57
|
}), /*#__PURE__*/React.createElement("path", {
|
|
35
58
|
d: "M20 16c-4 .5-6.029 2.5-6.086 6-.057 3.5-2.028 5.5-5.914 6h12V16z",
|
|
36
|
-
fill:
|
|
59
|
+
fill: iconThemed({
|
|
60
|
+
light: '#A5ADBA',
|
|
61
|
+
dark: '#454F59'
|
|
62
|
+
})
|
|
37
63
|
}), /*#__PURE__*/React.createElement("path", {
|
|
38
|
-
fill:
|
|
64
|
+
fill: iconThemed({
|
|
65
|
+
light: '#B3BAC5',
|
|
66
|
+
dark: '#454F59'
|
|
67
|
+
}),
|
|
39
68
|
d: "M17.5 13h5v3h-5z"
|
|
40
69
|
}), /*#__PURE__*/React.createElement("path", {
|
|
41
|
-
fill:
|
|
70
|
+
fill: iconThemed({
|
|
71
|
+
light: '#A5ADBA',
|
|
72
|
+
dark: '#454F59'
|
|
73
|
+
}),
|
|
42
74
|
d: "M10 13h5v3h-5z"
|
|
43
75
|
}), /*#__PURE__*/React.createElement("path", {
|
|
44
|
-
fill:
|
|
76
|
+
fill: iconThemed({
|
|
77
|
+
light: '#DFE1E6',
|
|
78
|
+
dark: '#738496'
|
|
79
|
+
}),
|
|
45
80
|
d: "M25 13h5v3h-5z"
|
|
46
81
|
})));
|
|
47
82
|
}
|
|
@@ -38,7 +38,7 @@ export var TableSharedCssClassName = {
|
|
|
38
38
|
TABLE_RESIZER_CONTAINER: "".concat(tablePrefixSelector, "-resizer-container")
|
|
39
39
|
};
|
|
40
40
|
var tableSharedStyle = function tableSharedStyle(props) {
|
|
41
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n .", " {\n position: relative;\n margin: 0 auto ", "px;\n box-sizing: border-box;\n\n /**\n * Fix block top alignment inside table cells.\n */\n .decisionItemView-content-wrap:first-of-type > div {\n margin-top: 0;\n }\n }\n .", "[data-number-column='true'] {\n padding-left: ", "px;\n clear: both;\n }\n\n .", " {\n will-change: width,
|
|
41
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n .", " {\n position: relative;\n margin: 0 auto ", "px;\n box-sizing: border-box;\n\n /**\n * Fix block top alignment inside table cells.\n */\n .decisionItemView-content-wrap:first-of-type > div {\n margin-top: 0;\n }\n }\n .", "[data-number-column='true'] {\n padding-left: ", "px;\n clear: both;\n }\n\n .", " {\n will-change: width, margin-left;\n }\n\n .", " table {\n will-change: width;\n }\n\n .", " > table {\n margin: ", "px 0 0 0;\n }\n\n .", " > table,\n .", " > table {\n margin: ", "px ", "px 0 0;\n }\n\n /* avoid applying styles to nested tables (possible via extensions) */\n .", " > table,\n .", " > table,\n .", " > table {\n border-collapse: collapse;\n border: ", "px solid\n ", ";\n table-layout: fixed;\n font-size: 1em;\n width: 100%;\n\n &[data-autosize='true'] {\n table-layout: auto;\n }\n\n & {\n * {\n box-sizing: border-box;\n }\n hr {\n box-sizing: content-box;\n }\n\n tbody {\n border-bottom: none;\n }\n th td {\n background-color: ", ";\n }\n th,\n td {\n min-width: ", "px;\n font-weight: normal;\n vertical-align: top;\n border: 1px solid\n ", ";\n border-right-width: 0;\n border-bottom-width: 0;\n padding: ", "px;\n /* https://stackoverflow.com/questions/7517127/borders-not-shown-in-firefox-with-border-collapse-on-table-position-relative-o */\n ", "\n\n ", ";\n\n > :first-child:not(style),\n > style:first-child + * {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor:first-child + *,\n > style:first-child + .ProseMirror-gapcursor + * {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor:first-child + span + *,\n > style:first-child + .ProseMirror-gapcursor + span + * {\n margin-top: 0;\n }\n\n th p:not(:first-of-type),\n td p:not(:first-of-type) {\n margin-top: 12px;\n }\n }\n th {\n background-color: ", ";\n text-align: left;\n\n /* only apply this styling to codeblocks in default background headercells */\n /* TODO this needs to be overhauled as it relies on unsafe selectors */\n &:not([style]):not(.danger) {\n .", ":not(.danger) {\n background-color: ", ";\n\n :not(.", ") {\n box-shadow: 0px 0px 0px 1px\n ", ";\n }\n\n .", " {\n background-image: ", ";\n\n background-color: ", ";\n }\n\n .", " {\n background-color: ", ";\n }\n\n /* this is only relevant to the element taken care of by renderer */\n > [data-ds--code--code-block] {\n background-image: ", "!important;\n\n background-color: ", "!important;\n\n // selector lives inside @atlaskit/code\n --ds--code--line-number-bg-color: ", ";\n }\n }\n }\n }\n }\n }\n"])), tableCellBackgroundStyleOverride(), TableSharedCssClassName.TABLE_CONTAINER, tableMarginBottom, TableSharedCssClassName.TABLE_CONTAINER, akEditorTableNumberColumnWidth - 1, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, tableMarginTop, TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableMarginTop, tableMarginSides, TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableCellBorderWidth, themed({
|
|
42
42
|
light: "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"),
|
|
43
43
|
dark: "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorderDark, ")")
|
|
44
44
|
})(props), "var(--ds-background-neutral-subtle, white)", tableCellMinWidth, themed({
|
|
@@ -18,7 +18,7 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
18
18
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
19
19
|
import Layer from '../Layer';
|
|
20
20
|
var packageName = "@atlaskit/editor-common";
|
|
21
|
-
var packageVersion = "74.51.
|
|
21
|
+
var packageVersion = "74.51.3";
|
|
22
22
|
var halfFocusRing = 1;
|
|
23
23
|
var dropOffset = '0, 8';
|
|
24
24
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { MEDIA_SINGLE_DEFAULT_MIN_PIXEL_WIDTH, MEDIA_SINGLE_VIDEO_MIN_PIXEL_WIDTH, MEDIA_SINGLE_SNAP_GAP, MEDIA_SINGLE_HIGHLIGHT_GAP, MEDIA_SINGLE_GUTTER_SIZE, MEDIA_SINGLE_RESIZE_THROTTLE_TIME, Layout as MediaSingleLayout, DEFAULT_IMAGE_WIDTH, DEFAULT_IMAGE_HEIGHT, wrappedLayouts, } from './constants';
|
|
2
|
-
export { getMediaSinglePixelWidth, calcMediaSinglePixelWidth, calcMediaSingleMaxWidth, getMediaSingleInitialWidth, calculateOffsetLeft, roundToNearest, getMaxWidthForNestedNode, getMaxWidthForNestedNodeNext, } from './utils';
|
|
2
|
+
export { getMediaSinglePixelWidth, calcMediaSinglePixelWidth, calcMediaSingleMaxWidth, getMediaSingleInitialWidth, calculateOffsetLeft, roundToNearest, calcMinWidth, getMaxWidthForNestedNode, getMaxWidthForNestedNodeNext, } from './utils';
|
|
@@ -56,6 +56,12 @@ export declare function calculateOffsetLeft(insideInlineLike: boolean, insideLay
|
|
|
56
56
|
* @return {number} the rounded number
|
|
57
57
|
*/
|
|
58
58
|
export declare const roundToNearest: (value: number, interval?: number) => number;
|
|
59
|
+
/**
|
|
60
|
+
* Retuns minimum value for media single node
|
|
61
|
+
* @param isVideoFile is child media of video type
|
|
62
|
+
* @param contentWidth parent content width
|
|
63
|
+
*/
|
|
64
|
+
export declare const calcMinWidth: (isVideoFile: boolean, contentWidth: number) => number;
|
|
59
65
|
/**
|
|
60
66
|
* Get parent width for a nested media single node
|
|
61
67
|
* @param view Editor view
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { MEDIA_SINGLE_DEFAULT_MIN_PIXEL_WIDTH, MEDIA_SINGLE_VIDEO_MIN_PIXEL_WIDTH, MEDIA_SINGLE_SNAP_GAP, MEDIA_SINGLE_HIGHLIGHT_GAP, MEDIA_SINGLE_GUTTER_SIZE, MEDIA_SINGLE_RESIZE_THROTTLE_TIME, Layout as MediaSingleLayout, DEFAULT_IMAGE_WIDTH, DEFAULT_IMAGE_HEIGHT, wrappedLayouts, } from './constants';
|
|
2
|
-
export { getMediaSinglePixelWidth, calcMediaSinglePixelWidth, calcMediaSingleMaxWidth, getMediaSingleInitialWidth, calculateOffsetLeft, roundToNearest, getMaxWidthForNestedNode, getMaxWidthForNestedNodeNext, } from './utils';
|
|
2
|
+
export { getMediaSinglePixelWidth, calcMediaSinglePixelWidth, calcMediaSingleMaxWidth, getMediaSingleInitialWidth, calculateOffsetLeft, roundToNearest, calcMinWidth, getMaxWidthForNestedNode, getMaxWidthForNestedNodeNext, } from './utils';
|
|
@@ -56,6 +56,12 @@ export declare function calculateOffsetLeft(insideInlineLike: boolean, insideLay
|
|
|
56
56
|
* @return {number} the rounded number
|
|
57
57
|
*/
|
|
58
58
|
export declare const roundToNearest: (value: number, interval?: number) => number;
|
|
59
|
+
/**
|
|
60
|
+
* Retuns minimum value for media single node
|
|
61
|
+
* @param isVideoFile is child media of video type
|
|
62
|
+
* @param contentWidth parent content width
|
|
63
|
+
*/
|
|
64
|
+
export declare const calcMinWidth: (isVideoFile: boolean, contentWidth: number) => number;
|
|
59
65
|
/**
|
|
60
66
|
* Get parent width for a nested media single node
|
|
61
67
|
* @param view Editor view
|
package/package.json
CHANGED