@atlaskit/editor-common 78.36.2 → 78.36.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 +7 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui-menu/DropdownMenu/index.js +6 -21
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui-menu/DropdownMenu/index.js +6 -19
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui-menu/DropdownMenu/index.js +6 -21
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 78.36.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#95258](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/95258) [`f40514ef08e3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f40514ef08e3) - Cleanup feature flag to allow grouping with editor dropdown menu.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
3
10
|
## 78.36.2
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
16
16
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
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.36.
|
|
19
|
+
var packageVersion = "78.36.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
|
|
@@ -20,7 +20,7 @@ var _Layer = _interopRequireDefault(require("../Layer"));
|
|
|
20
20
|
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); }; }
|
|
21
21
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "78.36.
|
|
23
|
+
var packageVersion = "78.36.3";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -189,7 +189,7 @@ var DropdownMenuWrapper = exports.default = /*#__PURE__*/function (_PureComponen
|
|
|
189
189
|
}
|
|
190
190
|
}), (0, _react2.jsx)("div", {
|
|
191
191
|
ref: this.popupRef
|
|
192
|
-
}, (0,
|
|
192
|
+
}, (0, _react2.jsx)(_menu.MenuGroup, {
|
|
193
193
|
role: shouldUseDefaultRole ? 'group' : 'menu'
|
|
194
194
|
}, items.map(function (group, index) {
|
|
195
195
|
return (0, _react2.jsx)(_menu.Section, {
|
|
@@ -207,22 +207,7 @@ var DropdownMenuWrapper = exports.default = /*#__PURE__*/function (_PureComponen
|
|
|
207
207
|
onMouseLeave: _this2.props.onMouseLeave
|
|
208
208
|
});
|
|
209
209
|
}));
|
|
210
|
-
}))
|
|
211
|
-
return (0, _react2.jsx)(_menu.MenuGroup, {
|
|
212
|
-
key: index,
|
|
213
|
-
role: shouldUseDefaultRole ? 'group' : 'menu'
|
|
214
|
-
}, group.items.map(function (item) {
|
|
215
|
-
var _item$key2;
|
|
216
|
-
return (0, _react2.jsx)(DropdownMenuItem, {
|
|
217
|
-
key: (_item$key2 = item.key) !== null && _item$key2 !== void 0 ? _item$key2 : String(item.content),
|
|
218
|
-
item: item,
|
|
219
|
-
onItemActivated: _this2.props.onItemActivated,
|
|
220
|
-
shouldUseDefaultRole: _this2.props.shouldUseDefaultRole,
|
|
221
|
-
onMouseEnter: _this2.props.onMouseEnter,
|
|
222
|
-
onMouseLeave: _this2.props.onMouseLeave
|
|
223
|
-
});
|
|
224
|
-
}));
|
|
225
|
-
})))));
|
|
210
|
+
}))))));
|
|
226
211
|
}
|
|
227
212
|
}, {
|
|
228
213
|
key: "render",
|
|
@@ -272,7 +257,7 @@ var DropdownMenuItemCustomComponent = /*#__PURE__*/_react.default.forwardRef(fun
|
|
|
272
257
|
}), children);
|
|
273
258
|
});
|
|
274
259
|
function DropdownMenuItem(_ref) {
|
|
275
|
-
var _item$
|
|
260
|
+
var _item$key2;
|
|
276
261
|
var item = _ref.item,
|
|
277
262
|
onItemActivated = _ref.onItemActivated,
|
|
278
263
|
shouldUseDefaultRole = _ref.shouldUseDefaultRole,
|
|
@@ -306,7 +291,7 @@ function DropdownMenuItem(_ref) {
|
|
|
306
291
|
onMouseDown: _handleSubmenuActive
|
|
307
292
|
}, (0, _react2.jsx)(_menu.CustomItem, {
|
|
308
293
|
item: item,
|
|
309
|
-
key: (_item$
|
|
294
|
+
key: (_item$key2 = item.key) !== null && _item$key2 !== void 0 ? _item$key2 : String(item.content),
|
|
310
295
|
testId: "dropdown-item__".concat(String(item.content)),
|
|
311
296
|
role: shouldUseDefaultRole ? 'button' : 'menuitem',
|
|
312
297
|
iconBefore: item.elemBefore,
|
|
@@ -336,9 +321,9 @@ function DropdownMenuItem(_ref) {
|
|
|
336
321
|
}
|
|
337
322
|
}, item.content));
|
|
338
323
|
if (item.tooltipDescription) {
|
|
339
|
-
var _item$
|
|
324
|
+
var _item$key3;
|
|
340
325
|
return (0, _react2.jsx)(_tooltip.default, {
|
|
341
|
-
key: (_item$
|
|
326
|
+
key: (_item$key3 = item.key) !== null && _item$key3 !== void 0 ? _item$key3 : String(item.content),
|
|
342
327
|
content: item.tooltipDescription,
|
|
343
328
|
position: item.tooltipPosition
|
|
344
329
|
}, dropListItem);
|
|
@@ -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.36.
|
|
3
|
+
const packageVersion = "78.36.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
|
|
@@ -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.36.
|
|
10
|
+
const packageVersion = "78.36.3";
|
|
11
11
|
const halfFocusRing = 1;
|
|
12
12
|
const dropOffset = '0, 8';
|
|
13
13
|
class DropList extends Component {
|
|
@@ -190,7 +190,7 @@ export default class DropdownMenuWrapper extends PureComponent {
|
|
|
190
190
|
}
|
|
191
191
|
}), jsx("div", {
|
|
192
192
|
ref: this.popupRef
|
|
193
|
-
},
|
|
193
|
+
}, jsx(MenuGroup, {
|
|
194
194
|
role: shouldUseDefaultRole ? 'group' : 'menu'
|
|
195
195
|
}, items.map((group, index) => jsx(Section, {
|
|
196
196
|
hasSeparator: (section === null || section === void 0 ? void 0 : section.hasSeparator) && index > 0,
|
|
@@ -206,20 +206,7 @@ export default class DropdownMenuWrapper extends PureComponent {
|
|
|
206
206
|
onMouseEnter: this.props.onMouseEnter,
|
|
207
207
|
onMouseLeave: this.props.onMouseLeave
|
|
208
208
|
});
|
|
209
|
-
}))))
|
|
210
|
-
key: index,
|
|
211
|
-
role: shouldUseDefaultRole ? 'group' : 'menu'
|
|
212
|
-
}, group.items.map(item => {
|
|
213
|
-
var _item$key2;
|
|
214
|
-
return jsx(DropdownMenuItem, {
|
|
215
|
-
key: (_item$key2 = item.key) !== null && _item$key2 !== void 0 ? _item$key2 : String(item.content),
|
|
216
|
-
item: item,
|
|
217
|
-
onItemActivated: this.props.onItemActivated,
|
|
218
|
-
shouldUseDefaultRole: this.props.shouldUseDefaultRole,
|
|
219
|
-
onMouseEnter: this.props.onMouseEnter,
|
|
220
|
-
onMouseLeave: this.props.onMouseLeave
|
|
221
|
-
});
|
|
222
|
-
})))))));
|
|
209
|
+
}))))))));
|
|
223
210
|
}
|
|
224
211
|
render() {
|
|
225
212
|
const {
|
|
@@ -272,7 +259,7 @@ export function DropdownMenuItem({
|
|
|
272
259
|
onMouseEnter,
|
|
273
260
|
onMouseLeave
|
|
274
261
|
}) {
|
|
275
|
-
var _item$
|
|
262
|
+
var _item$key2;
|
|
276
263
|
const [submenuActive, setSubmenuActive] = React.useState(false);
|
|
277
264
|
|
|
278
265
|
// onClick and value.name are the action indicators in the handlers
|
|
@@ -296,7 +283,7 @@ export function DropdownMenuItem({
|
|
|
296
283
|
onMouseDown: _handleSubmenuActive
|
|
297
284
|
}, jsx(CustomItem, {
|
|
298
285
|
item: item,
|
|
299
|
-
key: (_item$
|
|
286
|
+
key: (_item$key2 = item.key) !== null && _item$key2 !== void 0 ? _item$key2 : String(item.content),
|
|
300
287
|
testId: `dropdown-item__${String(item.content)}`,
|
|
301
288
|
role: shouldUseDefaultRole ? 'button' : 'menuitem',
|
|
302
289
|
iconBefore: item.elemBefore,
|
|
@@ -320,9 +307,9 @@ export function DropdownMenuItem({
|
|
|
320
307
|
})
|
|
321
308
|
}, item.content));
|
|
322
309
|
if (item.tooltipDescription) {
|
|
323
|
-
var _item$
|
|
310
|
+
var _item$key3;
|
|
324
311
|
return jsx(Tooltip, {
|
|
325
|
-
key: (_item$
|
|
312
|
+
key: (_item$key3 = item.key) !== null && _item$key3 !== void 0 ? _item$key3 : String(item.content),
|
|
326
313
|
content: item.tooltipDescription,
|
|
327
314
|
position: item.tooltipPosition
|
|
328
315
|
}, dropListItem);
|
|
@@ -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.36.
|
|
9
|
+
var packageVersion = "78.36.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
|
|
@@ -15,7 +15,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
15
15
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
16
16
|
import Layer from '../Layer';
|
|
17
17
|
var packageName = "@atlaskit/editor-common";
|
|
18
|
-
var packageVersion = "78.36.
|
|
18
|
+
var packageVersion = "78.36.3";
|
|
19
19
|
var halfFocusRing = 1;
|
|
20
20
|
var dropOffset = '0, 8';
|
|
21
21
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -179,7 +179,7 @@ var DropdownMenuWrapper = /*#__PURE__*/function (_PureComponent) {
|
|
|
179
179
|
}
|
|
180
180
|
}), jsx("div", {
|
|
181
181
|
ref: this.popupRef
|
|
182
|
-
},
|
|
182
|
+
}, jsx(MenuGroup, {
|
|
183
183
|
role: shouldUseDefaultRole ? 'group' : 'menu'
|
|
184
184
|
}, items.map(function (group, index) {
|
|
185
185
|
return jsx(Section, {
|
|
@@ -197,22 +197,7 @@ var DropdownMenuWrapper = /*#__PURE__*/function (_PureComponent) {
|
|
|
197
197
|
onMouseLeave: _this2.props.onMouseLeave
|
|
198
198
|
});
|
|
199
199
|
}));
|
|
200
|
-
}))
|
|
201
|
-
return jsx(MenuGroup, {
|
|
202
|
-
key: index,
|
|
203
|
-
role: shouldUseDefaultRole ? 'group' : 'menu'
|
|
204
|
-
}, group.items.map(function (item) {
|
|
205
|
-
var _item$key2;
|
|
206
|
-
return jsx(DropdownMenuItem, {
|
|
207
|
-
key: (_item$key2 = item.key) !== null && _item$key2 !== void 0 ? _item$key2 : String(item.content),
|
|
208
|
-
item: item,
|
|
209
|
-
onItemActivated: _this2.props.onItemActivated,
|
|
210
|
-
shouldUseDefaultRole: _this2.props.shouldUseDefaultRole,
|
|
211
|
-
onMouseEnter: _this2.props.onMouseEnter,
|
|
212
|
-
onMouseLeave: _this2.props.onMouseLeave
|
|
213
|
-
});
|
|
214
|
-
}));
|
|
215
|
-
})))));
|
|
200
|
+
}))))));
|
|
216
201
|
}
|
|
217
202
|
}, {
|
|
218
203
|
key: "render",
|
|
@@ -263,7 +248,7 @@ var DropdownMenuItemCustomComponent = /*#__PURE__*/React.forwardRef(function (pr
|
|
|
263
248
|
}), children);
|
|
264
249
|
});
|
|
265
250
|
export function DropdownMenuItem(_ref) {
|
|
266
|
-
var _item$
|
|
251
|
+
var _item$key2;
|
|
267
252
|
var item = _ref.item,
|
|
268
253
|
onItemActivated = _ref.onItemActivated,
|
|
269
254
|
shouldUseDefaultRole = _ref.shouldUseDefaultRole,
|
|
@@ -297,7 +282,7 @@ export function DropdownMenuItem(_ref) {
|
|
|
297
282
|
onMouseDown: _handleSubmenuActive
|
|
298
283
|
}, jsx(CustomItem, {
|
|
299
284
|
item: item,
|
|
300
|
-
key: (_item$
|
|
285
|
+
key: (_item$key2 = item.key) !== null && _item$key2 !== void 0 ? _item$key2 : String(item.content),
|
|
301
286
|
testId: "dropdown-item__".concat(String(item.content)),
|
|
302
287
|
role: shouldUseDefaultRole ? 'button' : 'menuitem',
|
|
303
288
|
iconBefore: item.elemBefore,
|
|
@@ -327,9 +312,9 @@ export function DropdownMenuItem(_ref) {
|
|
|
327
312
|
}
|
|
328
313
|
}, item.content));
|
|
329
314
|
if (item.tooltipDescription) {
|
|
330
|
-
var _item$
|
|
315
|
+
var _item$key3;
|
|
331
316
|
return jsx(Tooltip, {
|
|
332
|
-
key: (_item$
|
|
317
|
+
key: (_item$key3 = item.key) !== null && _item$key3 !== void 0 ? _item$key3 : String(item.content),
|
|
333
318
|
content: item.tooltipDescription,
|
|
334
319
|
position: item.tooltipPosition
|
|
335
320
|
}, dropListItem);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "78.36.
|
|
3
|
+
"version": "78.36.3",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"@atlaskit/mention": "^23.0.0",
|
|
130
130
|
"@atlaskit/menu": "^2.2.0",
|
|
131
131
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
132
|
-
"@atlaskit/primitives": "^5.
|
|
132
|
+
"@atlaskit/primitives": "^5.7.0",
|
|
133
133
|
"@atlaskit/profilecard": "^19.11.0",
|
|
134
134
|
"@atlaskit/section-message": "^6.4.0",
|
|
135
135
|
"@atlaskit/smart-card": "^26.58.0",
|
|
@@ -231,9 +231,6 @@
|
|
|
231
231
|
"platform.linking-platform.datasource-assets_objects": {
|
|
232
232
|
"type": "boolean"
|
|
233
233
|
},
|
|
234
|
-
"platform.editor.menu.group-items": {
|
|
235
|
-
"type": "boolean"
|
|
236
|
-
},
|
|
237
234
|
"platform.editor.ordered-list-auto-join-improvements_mrlv5": {
|
|
238
235
|
"type": "boolean"
|
|
239
236
|
},
|