@atlaskit/editor-common 110.22.2 → 110.23.0
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 +14 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/styles/shared/expand.js +2 -0
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/user-intent/UserIntentPopupWrapper.js +8 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/styles/shared/expand.js +2 -0
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/user-intent/UserIntentPopupWrapper.js +8 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/styles/shared/expand.js +2 -0
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/user-intent/UserIntentPopupWrapper.js +8 -1
- package/dist/types/styles/shared/expand.d.ts +2 -0
- package/dist/types/user-intent/types.d.ts +1 -1
- package/dist/types-ts4.5/styles/shared/expand.d.ts +2 -0
- package/dist/types-ts4.5/user-intent/types.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 110.23.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`236d9310035ae`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/236d9310035ae) -
|
|
8
|
+
[https://product-fabric.atlassian.net/browse/ED-29205](ED-29205) - use native DOM element for
|
|
9
|
+
editor expand icon
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`e3336879840a4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e3336879840a4) -
|
|
14
|
+
[ux] EDITOR-2620 Toggle contextual menu when drag menu is opened
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 110.22.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
16
16
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
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 = "
|
|
19
|
+
var packageVersion = "110.22.2";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// Ignored via go/ees007
|
|
@@ -29,6 +29,8 @@ var expandClassNames = exports.expandClassNames = {
|
|
|
29
29
|
inputContainer: "".concat(prefix, "__input-container"),
|
|
30
30
|
iconContainer: "".concat(prefix, "__icon-container"),
|
|
31
31
|
icon: "".concat(prefix, "__icon"),
|
|
32
|
+
iconButton: "".concat(prefix, "__icon-button"),
|
|
33
|
+
iconSvg: "".concat(prefix, "__icon-svg"),
|
|
32
34
|
titleInput: "".concat(prefix, "__title-input"),
|
|
33
35
|
content: "".concat(prefix, "__content"),
|
|
34
36
|
type: function type(_type) {
|
|
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "
|
|
27
|
+
var packageVersion = "110.22.2";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -20,7 +20,14 @@ var UserIntentPopupWrapper = exports.UserIntentPopupWrapper = function UserInten
|
|
|
20
20
|
api === null || api === void 0 || api.core.actions.execute(api === null || api === void 0 || (_api$userIntent = api.userIntent) === null || _api$userIntent === void 0 ? void 0 : _api$userIntent.commands.setCurrentUserIntent((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_lovability_user_intent', 'isEnabled', true) ? userIntent : 'popupOpen'));
|
|
21
21
|
return function () {
|
|
22
22
|
var _api$userIntent2;
|
|
23
|
-
|
|
23
|
+
if (userIntent === (api === null || api === void 0 || (_api$userIntent2 = api.userIntent) === null || _api$userIntent2 === void 0 ? void 0 : _api$userIntent2.sharedState.currentState().currentUserIntent) && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_lovability_user_intent', 'isEnabled', true)) {
|
|
24
|
+
var _api$userIntent3;
|
|
25
|
+
api === null || api === void 0 || api.core.actions.execute(api === null || api === void 0 || (_api$userIntent3 = api.userIntent) === null || _api$userIntent3 === void 0 ? void 0 : _api$userIntent3.commands.setCurrentUserIntent('default'));
|
|
26
|
+
}
|
|
27
|
+
if (!(0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_lovability_user_intent', 'isEnabled', true)) {
|
|
28
|
+
var _api$userIntent4;
|
|
29
|
+
api === null || api === void 0 || api.core.actions.execute(api === null || api === void 0 || (_api$userIntent4 = api.userIntent) === null || _api$userIntent4 === void 0 ? void 0 : _api$userIntent4.commands.setCurrentUserIntent('default'));
|
|
30
|
+
}
|
|
24
31
|
};
|
|
25
32
|
|
|
26
33
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isFedRamp } from './environment';
|
|
2
2
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
3
3
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
4
|
-
const packageVersion = "
|
|
4
|
+
const packageVersion = "110.22.2";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -22,6 +22,8 @@ export const expandClassNames = {
|
|
|
22
22
|
inputContainer: `${prefix}__input-container`,
|
|
23
23
|
iconContainer: `${prefix}__icon-container`,
|
|
24
24
|
icon: `${prefix}__icon`,
|
|
25
|
+
iconButton: `${prefix}__icon-button`,
|
|
26
|
+
iconSvg: `${prefix}__icon-svg`,
|
|
25
27
|
titleInput: `${prefix}__title-input`,
|
|
26
28
|
content: `${prefix}__content`,
|
|
27
29
|
type: type => `${prefix}__type-${type}`
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "
|
|
17
|
+
const packageVersion = "110.22.2";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -14,7 +14,14 @@ export const UserIntentPopupWrapper = ({
|
|
|
14
14
|
api === null || api === void 0 ? void 0 : api.core.actions.execute(api === null || api === void 0 ? void 0 : (_api$userIntent = api.userIntent) === null || _api$userIntent === void 0 ? void 0 : _api$userIntent.commands.setCurrentUserIntent(expValEqualsNoExposure('platform_editor_lovability_user_intent', 'isEnabled', true) ? userIntent : 'popupOpen'));
|
|
15
15
|
return () => {
|
|
16
16
|
var _api$userIntent2;
|
|
17
|
-
|
|
17
|
+
if (userIntent === (api === null || api === void 0 ? void 0 : (_api$userIntent2 = api.userIntent) === null || _api$userIntent2 === void 0 ? void 0 : _api$userIntent2.sharedState.currentState().currentUserIntent) && expValEqualsNoExposure('platform_editor_lovability_user_intent', 'isEnabled', true)) {
|
|
18
|
+
var _api$userIntent3;
|
|
19
|
+
api === null || api === void 0 ? void 0 : api.core.actions.execute(api === null || api === void 0 ? void 0 : (_api$userIntent3 = api.userIntent) === null || _api$userIntent3 === void 0 ? void 0 : _api$userIntent3.commands.setCurrentUserIntent('default'));
|
|
20
|
+
}
|
|
21
|
+
if (!expValEqualsNoExposure('platform_editor_lovability_user_intent', 'isEnabled', true)) {
|
|
22
|
+
var _api$userIntent4;
|
|
23
|
+
api === null || api === void 0 ? void 0 : api.core.actions.execute(api === null || api === void 0 ? void 0 : (_api$userIntent4 = api.userIntent) === null || _api$userIntent4 === void 0 ? void 0 : _api$userIntent4.commands.setCurrentUserIntent('default'));
|
|
24
|
+
}
|
|
18
25
|
};
|
|
19
26
|
|
|
20
27
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import { isFedRamp } from './environment';
|
|
8
8
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
9
9
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
10
|
-
var packageVersion = "
|
|
10
|
+
var packageVersion = "110.22.2";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -22,6 +22,8 @@ export var expandClassNames = {
|
|
|
22
22
|
inputContainer: "".concat(prefix, "__input-container"),
|
|
23
23
|
iconContainer: "".concat(prefix, "__icon-container"),
|
|
24
24
|
icon: "".concat(prefix, "__icon"),
|
|
25
|
+
iconButton: "".concat(prefix, "__icon-button"),
|
|
26
|
+
iconSvg: "".concat(prefix, "__icon-svg"),
|
|
25
27
|
titleInput: "".concat(prefix, "__title-input"),
|
|
26
28
|
content: "".concat(prefix, "__content"),
|
|
27
29
|
type: function type(_type) {
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "
|
|
24
|
+
var packageVersion = "110.22.2";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -14,7 +14,14 @@ export var UserIntentPopupWrapper = function UserIntentPopupWrapper(_ref) {
|
|
|
14
14
|
api === null || api === void 0 || api.core.actions.execute(api === null || api === void 0 || (_api$userIntent = api.userIntent) === null || _api$userIntent === void 0 ? void 0 : _api$userIntent.commands.setCurrentUserIntent(expValEqualsNoExposure('platform_editor_lovability_user_intent', 'isEnabled', true) ? userIntent : 'popupOpen'));
|
|
15
15
|
return function () {
|
|
16
16
|
var _api$userIntent2;
|
|
17
|
-
|
|
17
|
+
if (userIntent === (api === null || api === void 0 || (_api$userIntent2 = api.userIntent) === null || _api$userIntent2 === void 0 ? void 0 : _api$userIntent2.sharedState.currentState().currentUserIntent) && expValEqualsNoExposure('platform_editor_lovability_user_intent', 'isEnabled', true)) {
|
|
18
|
+
var _api$userIntent3;
|
|
19
|
+
api === null || api === void 0 || api.core.actions.execute(api === null || api === void 0 || (_api$userIntent3 = api.userIntent) === null || _api$userIntent3 === void 0 ? void 0 : _api$userIntent3.commands.setCurrentUserIntent('default'));
|
|
20
|
+
}
|
|
21
|
+
if (!expValEqualsNoExposure('platform_editor_lovability_user_intent', 'isEnabled', true)) {
|
|
22
|
+
var _api$userIntent4;
|
|
23
|
+
api === null || api === void 0 || api.core.actions.execute(api === null || api === void 0 || (_api$userIntent4 = api.userIntent) === null || _api$userIntent4 === void 0 ? void 0 : _api$userIntent4.commands.setCurrentUserIntent('default'));
|
|
24
|
+
}
|
|
18
25
|
};
|
|
19
26
|
|
|
20
27
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type PopupUserIntent = 'popupOpen' | '
|
|
1
|
+
export type PopupUserIntent = 'popupOpen' | 'tableContextualMenuPopupOpen' | 'tableDragMenuPopupOpen' | 'statusPickerOpen';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type PopupUserIntent = 'popupOpen' | '
|
|
1
|
+
export type PopupUserIntent = 'popupOpen' | 'tableContextualMenuPopupOpen' | 'tableDragMenuPopupOpen' | 'statusPickerOpen';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "110.
|
|
3
|
+
"version": "110.23.0",
|
|
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/"
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"@atlaskit/task-decision": "^19.2.0",
|
|
83
83
|
"@atlaskit/textfield": "^8.0.0",
|
|
84
84
|
"@atlaskit/theme": "^21.0.0",
|
|
85
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
85
|
+
"@atlaskit/tmp-editor-statsig": "^13.30.0",
|
|
86
86
|
"@atlaskit/tokens": "^7.1.0",
|
|
87
87
|
"@atlaskit/tooltip": "^20.7.0",
|
|
88
88
|
"@atlaskit/ufo": "^0.4.0",
|