@atlaskit/editor-common 78.8.2 → 78.8.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 +8 -0
- package/dist/cjs/card/MediaAndEmbedsToolbar/index.js +1 -1
- package/dist/cjs/messages/insert-block.js +2 -2
- package/dist/cjs/messages/table.js +1 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/node-width/index.js +4 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/card/MediaAndEmbedsToolbar/index.js +1 -1
- package/dist/es2019/messages/insert-block.js +2 -2
- package/dist/es2019/messages/table.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/node-width/index.js +4 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/card/MediaAndEmbedsToolbar/index.js +1 -1
- package/dist/esm/messages/insert-block.js +2 -2
- package/dist/esm/messages/table.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/node-width/index.js +4 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/node-width/index.d.ts +2 -2
- package/dist/types-ts4.5/node-width/index.d.ts +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 78.8.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#77599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/77599) [`a7b1a6b762eb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a7b1a6b762eb) - [ux] Table picker popup displays text using column x rows pattern and table picker button uses label column by row.
|
|
8
|
+
- [#75436](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75436) [`bfcf32bb4fa3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bfcf32bb4fa3) - [ux] ED-21941 Disable resize/layout options for table, media and extension when added to MBE. Table rendering fixed for Confluence editor
|
|
9
|
+
- [#77543](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/77543) [`5b4b40dddddf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5b4b40dddddf) - Updates default message of Background color option in table's menus
|
|
10
|
+
|
|
3
11
|
## 78.8.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -145,7 +145,7 @@ var mapIconsToToolbarItem = function mapIconsToToolbarItem(icons, layout, intl,
|
|
|
145
145
|
};
|
|
146
146
|
var shouldHideLayoutToolbar = function shouldHideLayoutToolbar(selection, _ref2, allowResizingInTables) {
|
|
147
147
|
var nodes = _ref2.nodes;
|
|
148
|
-
return (0, _utils.hasParentNodeOfType)([nodes.bodiedExtension, nodes.listItem, nodes.expand, nodes.nestedExpand].concat((0, _toConsumableArray2.default)(allowResizingInTables ? [] : [nodes.table])).filter(Boolean))(selection);
|
|
148
|
+
return (0, _utils.hasParentNodeOfType)([nodes.bodiedExtension, nodes.extensionFrame, nodes.listItem, nodes.expand, nodes.nestedExpand].concat((0, _toConsumableArray2.default)(allowResizingInTables ? [] : [nodes.table])).filter(Boolean))(selection);
|
|
149
149
|
};
|
|
150
150
|
var buildLayoutButtons = function buildLayoutButtons(state, intl, nodeType, widthPluginDependencyApi, analyticsApi, allowResizing, allowResizingInTables) {
|
|
151
151
|
var allowWrapping = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : true;
|
|
@@ -88,8 +88,8 @@ var toolbarInsertBlockMessages = exports.toolbarInsertBlockMessages = (0, _react
|
|
|
88
88
|
},
|
|
89
89
|
tableSizeSelectorButton: {
|
|
90
90
|
id: 'fabric.editor.tableSizeSelectorButton',
|
|
91
|
-
defaultMessage: '
|
|
92
|
-
description: 'Creates table
|
|
91
|
+
defaultMessage: '{numberOfColumns} by {numberOfRows}',
|
|
92
|
+
description: 'Creates a table of custom size'
|
|
93
93
|
},
|
|
94
94
|
tableSizeSelectorPopup: {
|
|
95
95
|
id: 'fabric.editor.tableSizeSelectorPopup',
|
|
@@ -173,7 +173,7 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
173
173
|
},
|
|
174
174
|
backgroundColor: {
|
|
175
175
|
id: 'fabric.editor.backgroundColor',
|
|
176
|
-
defaultMessage: 'Background
|
|
176
|
+
defaultMessage: 'Background color',
|
|
177
177
|
description: 'Change the background color of a table cell.'
|
|
178
178
|
},
|
|
179
179
|
mergeCells: {
|
|
@@ -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 = "78.8.
|
|
19
|
+
var packageVersion = "78.8.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
|
|
@@ -73,6 +73,9 @@ var getParentNodeWidth = exports.getParentNodeWidth = function getParentNodeWidt
|
|
|
73
73
|
case schema.nodes.bodiedExtension:
|
|
74
74
|
parentWidth -= _extension.BODIED_EXT_PADDING * 2;
|
|
75
75
|
break;
|
|
76
|
+
case schema.nodes.extensionFrame:
|
|
77
|
+
parentWidth -= _extension.BODIED_EXT_PADDING * 2;
|
|
78
|
+
break;
|
|
76
79
|
|
|
77
80
|
// TODO: Migrate away from gridSize
|
|
78
81
|
// Recommendation: Replace gridSize with 8
|
|
@@ -96,7 +99,7 @@ var getNestedParentNode = function getNestedParentNode(tablePos, state) {
|
|
|
96
99
|
return null;
|
|
97
100
|
}
|
|
98
101
|
var $pos = state.doc.resolve(tablePos);
|
|
99
|
-
var parent = (0, _utils.findParentNodeOfTypeClosestToPos)($pos, [state.schema.nodes.bodiedExtension, state.schema.nodes.layoutSection, state.schema.nodes.expand]);
|
|
102
|
+
var parent = (0, _utils.findParentNodeOfTypeClosestToPos)($pos, [state.schema.nodes.bodiedExtension, state.schema.nodes.extensionFrame, state.schema.nodes.layoutSection, state.schema.nodes.expand]);
|
|
100
103
|
return parent ? parent.node : null;
|
|
101
104
|
};
|
|
102
105
|
var calcBreakoutNodeWidth = function calcBreakoutNodeWidth(layout, containerWidth, isFullWidthModeEnabled) {
|
|
@@ -22,7 +22,7 @@ var _templateObject, _templateObject2, _templateObject3;
|
|
|
22
22
|
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); }; }
|
|
23
23
|
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 */
|
|
24
24
|
var packageName = "@atlaskit/editor-common";
|
|
25
|
-
var packageVersion = "78.8.
|
|
25
|
+
var packageVersion = "78.8.3";
|
|
26
26
|
var halfFocusRing = 1;
|
|
27
27
|
var dropOffset = '0, 8';
|
|
28
28
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -152,7 +152,7 @@ const mapIconsToToolbarItem = (icons, layout, intl, nodeType, widthPluginDepende
|
|
|
152
152
|
const shouldHideLayoutToolbar = (selection, {
|
|
153
153
|
nodes
|
|
154
154
|
}, allowResizingInTables) => {
|
|
155
|
-
return hasParentNodeOfType([nodes.bodiedExtension, nodes.listItem, nodes.expand, nodes.nestedExpand, ...(allowResizingInTables ? [] : [nodes.table])].filter(Boolean))(selection);
|
|
155
|
+
return hasParentNodeOfType([nodes.bodiedExtension, nodes.extensionFrame, nodes.listItem, nodes.expand, nodes.nestedExpand, ...(allowResizingInTables ? [] : [nodes.table])].filter(Boolean))(selection);
|
|
156
156
|
};
|
|
157
157
|
const buildLayoutButtons = (state, intl, nodeType, widthPluginDependencyApi, analyticsApi, allowResizing, allowResizingInTables, allowWrapping = true, allowAlignment = true, isChangingLayoutDisabled) => {
|
|
158
158
|
const {
|
|
@@ -82,8 +82,8 @@ export const toolbarInsertBlockMessages = defineMessages({
|
|
|
82
82
|
},
|
|
83
83
|
tableSizeSelectorButton: {
|
|
84
84
|
id: 'fabric.editor.tableSizeSelectorButton',
|
|
85
|
-
defaultMessage: '
|
|
86
|
-
description: 'Creates table
|
|
85
|
+
defaultMessage: '{numberOfColumns} by {numberOfRows}',
|
|
86
|
+
description: 'Creates a table of custom size'
|
|
87
87
|
},
|
|
88
88
|
tableSizeSelectorPopup: {
|
|
89
89
|
id: 'fabric.editor.tableSizeSelectorPopup',
|
|
@@ -167,7 +167,7 @@ export const messages = defineMessages({
|
|
|
167
167
|
},
|
|
168
168
|
backgroundColor: {
|
|
169
169
|
id: 'fabric.editor.backgroundColor',
|
|
170
|
-
defaultMessage: 'Background
|
|
170
|
+
defaultMessage: 'Background color',
|
|
171
171
|
description: 'Change the background color of a table cell.'
|
|
172
172
|
},
|
|
173
173
|
mergeCells: {
|
|
@@ -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 = "78.8.
|
|
3
|
+
const packageVersion = "78.8.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
|
|
@@ -68,6 +68,9 @@ export const getParentNodeWidth = (pos, state, containerWidth, isFullWidthModeEn
|
|
|
68
68
|
case schema.nodes.bodiedExtension:
|
|
69
69
|
parentWidth -= BODIED_EXT_PADDING * 2;
|
|
70
70
|
break;
|
|
71
|
+
case schema.nodes.extensionFrame:
|
|
72
|
+
parentWidth -= BODIED_EXT_PADDING * 2;
|
|
73
|
+
break;
|
|
71
74
|
|
|
72
75
|
// TODO: Migrate away from gridSize
|
|
73
76
|
// Recommendation: Replace gridSize with 8
|
|
@@ -91,7 +94,7 @@ const getNestedParentNode = (tablePos, state) => {
|
|
|
91
94
|
return null;
|
|
92
95
|
}
|
|
93
96
|
const $pos = state.doc.resolve(tablePos);
|
|
94
|
-
const parent = findParentNodeOfTypeClosestToPos($pos, [state.schema.nodes.bodiedExtension, state.schema.nodes.layoutSection, state.schema.nodes.expand]);
|
|
97
|
+
const parent = findParentNodeOfTypeClosestToPos($pos, [state.schema.nodes.bodiedExtension, state.schema.nodes.extensionFrame, state.schema.nodes.layoutSection, state.schema.nodes.expand]);
|
|
95
98
|
return parent ? parent.node : null;
|
|
96
99
|
};
|
|
97
100
|
const calcBreakoutNodeWidth = (layout, containerWidth, isFullWidthModeEnabled) => {
|
|
@@ -7,7 +7,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
7
7
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
8
8
|
import Layer from '../Layer';
|
|
9
9
|
const packageName = "@atlaskit/editor-common";
|
|
10
|
-
const packageVersion = "78.8.
|
|
10
|
+
const packageVersion = "78.8.3";
|
|
11
11
|
const halfFocusRing = 1;
|
|
12
12
|
const dropOffset = '0, 8';
|
|
13
13
|
class DropList extends Component {
|
|
@@ -135,7 +135,7 @@ var mapIconsToToolbarItem = function mapIconsToToolbarItem(icons, layout, intl,
|
|
|
135
135
|
};
|
|
136
136
|
var shouldHideLayoutToolbar = function shouldHideLayoutToolbar(selection, _ref2, allowResizingInTables) {
|
|
137
137
|
var nodes = _ref2.nodes;
|
|
138
|
-
return hasParentNodeOfType([nodes.bodiedExtension, nodes.listItem, nodes.expand, nodes.nestedExpand].concat(_toConsumableArray(allowResizingInTables ? [] : [nodes.table])).filter(Boolean))(selection);
|
|
138
|
+
return hasParentNodeOfType([nodes.bodiedExtension, nodes.extensionFrame, nodes.listItem, nodes.expand, nodes.nestedExpand].concat(_toConsumableArray(allowResizingInTables ? [] : [nodes.table])).filter(Boolean))(selection);
|
|
139
139
|
};
|
|
140
140
|
var buildLayoutButtons = function buildLayoutButtons(state, intl, nodeType, widthPluginDependencyApi, analyticsApi, allowResizing, allowResizingInTables) {
|
|
141
141
|
var allowWrapping = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : true;
|
|
@@ -82,8 +82,8 @@ export var toolbarInsertBlockMessages = defineMessages({
|
|
|
82
82
|
},
|
|
83
83
|
tableSizeSelectorButton: {
|
|
84
84
|
id: 'fabric.editor.tableSizeSelectorButton',
|
|
85
|
-
defaultMessage: '
|
|
86
|
-
description: 'Creates table
|
|
85
|
+
defaultMessage: '{numberOfColumns} by {numberOfRows}',
|
|
86
|
+
description: 'Creates a table of custom size'
|
|
87
87
|
},
|
|
88
88
|
tableSizeSelectorPopup: {
|
|
89
89
|
id: 'fabric.editor.tableSizeSelectorPopup',
|
|
@@ -167,7 +167,7 @@ export var messages = defineMessages({
|
|
|
167
167
|
},
|
|
168
168
|
backgroundColor: {
|
|
169
169
|
id: 'fabric.editor.backgroundColor',
|
|
170
|
-
defaultMessage: 'Background
|
|
170
|
+
defaultMessage: 'Background color',
|
|
171
171
|
description: 'Change the background color of a table cell.'
|
|
172
172
|
},
|
|
173
173
|
mergeCells: {
|
|
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
6
6
|
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
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 = "78.8.
|
|
9
|
+
var packageVersion = "78.8.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
|
|
@@ -66,6 +66,9 @@ export var getParentNodeWidth = function getParentNodeWidth(pos, state, containe
|
|
|
66
66
|
case schema.nodes.bodiedExtension:
|
|
67
67
|
parentWidth -= BODIED_EXT_PADDING * 2;
|
|
68
68
|
break;
|
|
69
|
+
case schema.nodes.extensionFrame:
|
|
70
|
+
parentWidth -= BODIED_EXT_PADDING * 2;
|
|
71
|
+
break;
|
|
69
72
|
|
|
70
73
|
// TODO: Migrate away from gridSize
|
|
71
74
|
// Recommendation: Replace gridSize with 8
|
|
@@ -89,7 +92,7 @@ var getNestedParentNode = function getNestedParentNode(tablePos, state) {
|
|
|
89
92
|
return null;
|
|
90
93
|
}
|
|
91
94
|
var $pos = state.doc.resolve(tablePos);
|
|
92
|
-
var parent = findParentNodeOfTypeClosestToPos($pos, [state.schema.nodes.bodiedExtension, state.schema.nodes.layoutSection, state.schema.nodes.expand]);
|
|
95
|
+
var parent = findParentNodeOfTypeClosestToPos($pos, [state.schema.nodes.bodiedExtension, state.schema.nodes.extensionFrame, state.schema.nodes.layoutSection, state.schema.nodes.expand]);
|
|
93
96
|
return parent ? parent.node : null;
|
|
94
97
|
};
|
|
95
98
|
var calcBreakoutNodeWidth = function calcBreakoutNodeWidth(layout, containerWidth, isFullWidthModeEnabled) {
|
|
@@ -17,7 +17,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
17
17
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
18
18
|
import Layer from '../Layer';
|
|
19
19
|
var packageName = "@atlaskit/editor-common";
|
|
20
|
-
var packageVersion = "78.8.
|
|
20
|
+
var packageVersion = "78.8.3";
|
|
21
21
|
var halfFocusRing = 1;
|
|
22
22
|
var dropOffset = '0, 8';
|
|
23
23
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
1
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import type { EditorContainerWidth } from '../types/editor-container-width';
|
|
4
4
|
export declare const layoutToWidth: {
|
|
5
5
|
default: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
1
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import type { EditorContainerWidth } from '../types/editor-container-width';
|
|
4
4
|
export declare const layoutToWidth: {
|
|
5
5
|
default: number;
|
package/package.json
CHANGED