@atlaskit/editor-common 110.18.9 → 110.19.1
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 +22 -0
- package/dist/cjs/messages/track-changes.js +5 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/user-intent/UserIntentPopupWrapper.js +5 -2
- package/dist/cjs/user-intent/types.js +1 -0
- package/dist/es2019/messages/track-changes.js +5 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/user-intent/UserIntentPopupWrapper.js +3 -1
- package/dist/es2019/user-intent/types.js +0 -0
- package/dist/esm/messages/track-changes.js +5 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/user-intent/UserIntentPopupWrapper.js +5 -2
- package/dist/esm/user-intent/types.js +0 -0
- package/dist/types/messages/track-changes.d.ts +5 -0
- package/dist/types/types/floating-toolbar.d.ts +2 -1
- package/dist/types/user-intent/UserIntentPopupWrapper.d.ts +3 -1
- package/dist/types/user-intent/index.d.ts +1 -0
- package/dist/types/user-intent/types.d.ts +1 -0
- package/dist/types-ts4.5/messages/track-changes.d.ts +5 -0
- package/dist/types-ts4.5/types/floating-toolbar.d.ts +2 -1
- package/dist/types-ts4.5/user-intent/UserIntentPopupWrapper.d.ts +3 -1
- package/dist/types-ts4.5/user-intent/index.d.ts +1 -0
- package/dist/types-ts4.5/user-intent/types.d.ts +1 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 110.19.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e727490d9f62f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e727490d9f62f) -
|
|
8
|
+
[ux] EDITOR-2572 Hide floating toolbar when status picker is open
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 110.19.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [`28ba94dae8f9a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/28ba94dae8f9a) -
|
|
16
|
+
[ux] EDITOR-2458 Replace usage of \_\_suppressAllToolbars with userIntentPlugin
|
|
17
|
+
- [`68caaf98e8f89`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/68caaf98e8f89) -
|
|
18
|
+
[ux] [EDITOR-1628] Added "Removed" Lozenge and gray border decorations to deleted block nodes in
|
|
19
|
+
show diff view
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 110.18.9
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -10,5 +10,10 @@ var trackChangesMessages = exports.trackChangesMessages = (0, _reactIntlNext.def
|
|
|
10
10
|
id: 'editor.trackChanges.toolbarIconLabel',
|
|
11
11
|
defaultMessage: 'Track Changes',
|
|
12
12
|
description: 'Label for the track changes toolbar icon'
|
|
13
|
+
},
|
|
14
|
+
removed: {
|
|
15
|
+
id: 'editor.trackChanges.removed',
|
|
16
|
+
defaultMessage: 'Removed',
|
|
17
|
+
description: 'Label for content that has been removed in track changes'
|
|
13
18
|
}
|
|
14
19
|
});
|
|
@@ -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 = "0.0.0-development";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// Ignored via go/ees007
|
|
@@ -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 = "0.0.0-development";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -5,16 +5,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.UserIntentPopupWrapper = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
+
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
8
9
|
/**
|
|
9
10
|
*
|
|
10
11
|
* A wrapper for popups to signal popupOpen user intent
|
|
11
12
|
*/
|
|
12
13
|
var UserIntentPopupWrapper = exports.UserIntentPopupWrapper = function UserIntentPopupWrapper(_ref) {
|
|
13
|
-
var
|
|
14
|
+
var _ref$userIntent = _ref.userIntent,
|
|
15
|
+
userIntent = _ref$userIntent === void 0 ? 'popupOpen' : _ref$userIntent,
|
|
16
|
+
children = _ref.children,
|
|
14
17
|
api = _ref.api;
|
|
15
18
|
(0, _react.useEffect)(function () {
|
|
16
19
|
var _api$userIntent;
|
|
17
|
-
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('popupOpen'));
|
|
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'));
|
|
18
21
|
return function () {
|
|
19
22
|
var _api$userIntent2;
|
|
20
23
|
api === null || api === void 0 || api.core.actions.execute(api === null || api === void 0 || (_api$userIntent2 = api.userIntent) === null || _api$userIntent2 === void 0 ? void 0 : _api$userIntent2.commands.setCurrentUserIntent('default'));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -4,5 +4,10 @@ export const trackChangesMessages = defineMessages({
|
|
|
4
4
|
id: 'editor.trackChanges.toolbarIconLabel',
|
|
5
5
|
defaultMessage: 'Track Changes',
|
|
6
6
|
description: 'Label for the track changes toolbar icon'
|
|
7
|
+
},
|
|
8
|
+
removed: {
|
|
9
|
+
id: 'editor.trackChanges.removed',
|
|
10
|
+
defaultMessage: 'Removed',
|
|
11
|
+
description: 'Label for content that has been removed in track changes'
|
|
7
12
|
}
|
|
8
13
|
});
|
|
@@ -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 = "0.0.0-development";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -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 = "0.0.0-development";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
2
3
|
/**
|
|
3
4
|
*
|
|
4
5
|
* A wrapper for popups to signal popupOpen user intent
|
|
5
6
|
*/
|
|
6
7
|
export const UserIntentPopupWrapper = ({
|
|
8
|
+
userIntent = 'popupOpen',
|
|
7
9
|
children,
|
|
8
10
|
api
|
|
9
11
|
}) => {
|
|
10
12
|
useEffect(() => {
|
|
11
13
|
var _api$userIntent;
|
|
12
|
-
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('popupOpen'));
|
|
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'));
|
|
13
15
|
return () => {
|
|
14
16
|
var _api$userIntent2;
|
|
15
17
|
api === null || api === void 0 ? void 0 : api.core.actions.execute(api === null || api === void 0 ? void 0 : (_api$userIntent2 = api.userIntent) === null || _api$userIntent2 === void 0 ? void 0 : _api$userIntent2.commands.setCurrentUserIntent('default'));
|
|
File without changes
|
|
@@ -4,5 +4,10 @@ export var trackChangesMessages = defineMessages({
|
|
|
4
4
|
id: 'editor.trackChanges.toolbarIconLabel',
|
|
5
5
|
defaultMessage: 'Track Changes',
|
|
6
6
|
description: 'Label for the track changes toolbar icon'
|
|
7
|
+
},
|
|
8
|
+
removed: {
|
|
9
|
+
id: 'editor.trackChanges.removed',
|
|
10
|
+
defaultMessage: 'Removed',
|
|
11
|
+
description: 'Label for content that has been removed in track changes'
|
|
7
12
|
}
|
|
8
13
|
});
|
|
@@ -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 = "0.0.0-development";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -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 = "0.0.0-development";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
|
+
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
2
3
|
/**
|
|
3
4
|
*
|
|
4
5
|
* A wrapper for popups to signal popupOpen user intent
|
|
5
6
|
*/
|
|
6
7
|
export var UserIntentPopupWrapper = function UserIntentPopupWrapper(_ref) {
|
|
7
|
-
var
|
|
8
|
+
var _ref$userIntent = _ref.userIntent,
|
|
9
|
+
userIntent = _ref$userIntent === void 0 ? 'popupOpen' : _ref$userIntent,
|
|
10
|
+
children = _ref.children,
|
|
8
11
|
api = _ref.api;
|
|
9
12
|
useEffect(function () {
|
|
10
13
|
var _api$userIntent;
|
|
11
|
-
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('popupOpen'));
|
|
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'));
|
|
12
15
|
return function () {
|
|
13
16
|
var _api$userIntent2;
|
|
14
17
|
api === null || api === void 0 || api.core.actions.execute(api === null || api === void 0 || (_api$userIntent2 = api.userIntent) === null || _api$userIntent2 === void 0 ? void 0 : _api$userIntent2.commands.setCurrentUserIntent('default'));
|
|
File without changes
|
|
@@ -295,12 +295,13 @@ export type FloatingToolbarFallbackItem<T extends Object> = FloatingToolbarButto
|
|
|
295
295
|
export type FloatingToolbarItem<T extends Object> = FloatingToolbarButton<T> | FloatingToolbarCopyButton | FloatingToolbarDropdown<T> | FloatingToolbarSelect<T> | FloatingToolbarInput<T> | FloatingToolbarCustom<T> | FloatingToolbarSeparator | FloatingToolbarExtensionsPlaceholder | FloatingToolbarOverflowDropdown<T>;
|
|
296
296
|
export interface FloatingToolbarConfig {
|
|
297
297
|
/**
|
|
298
|
-
*
|
|
298
|
+
* @deprecated To suppress visibility of toolbars, set user intent state in userIntentPlugin instead.
|
|
299
299
|
* If any config has __suppressAllToolbars set to true, no floating toolbar will be rendered.
|
|
300
300
|
* Use case:
|
|
301
301
|
* When a node is nested inside a table and the cursor is inside of the nested node.
|
|
302
302
|
* Nested node's toolbar is active. When table's menu opens, we provide table's config with
|
|
303
303
|
* __suppressAllToolbars set to true.
|
|
304
|
+
* To hide floating toolbar, use user intent API instead.
|
|
304
305
|
*/
|
|
305
306
|
__suppressAllToolbars?: boolean;
|
|
306
307
|
/** Absolute offset of the toolbar */
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { ExtractInjectionAPI, NextEditorPlugin } from '../types';
|
|
2
|
+
import type { PopupUserIntent } from './types';
|
|
2
3
|
/**
|
|
3
4
|
*
|
|
4
5
|
* A wrapper for popups to signal popupOpen user intent
|
|
5
6
|
*/
|
|
6
|
-
export declare const UserIntentPopupWrapper: ({ children, api, }: {
|
|
7
|
+
export declare const UserIntentPopupWrapper: ({ userIntent, children, api, }: {
|
|
7
8
|
api: ExtractInjectionAPI<NextEditorPlugin<any, any>> | undefined | null;
|
|
8
9
|
children: React.ReactNode;
|
|
10
|
+
userIntent?: PopupUserIntent;
|
|
9
11
|
}) => import("react").ReactNode;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type PopupUserIntent = 'popupOpen' | 'tablePopupOpen' | 'statusPickerOpen';
|
|
@@ -295,12 +295,13 @@ export type FloatingToolbarFallbackItem<T extends Object> = FloatingToolbarButto
|
|
|
295
295
|
export type FloatingToolbarItem<T extends Object> = FloatingToolbarButton<T> | FloatingToolbarCopyButton | FloatingToolbarDropdown<T> | FloatingToolbarSelect<T> | FloatingToolbarInput<T> | FloatingToolbarCustom<T> | FloatingToolbarSeparator | FloatingToolbarExtensionsPlaceholder | FloatingToolbarOverflowDropdown<T>;
|
|
296
296
|
export interface FloatingToolbarConfig {
|
|
297
297
|
/**
|
|
298
|
-
*
|
|
298
|
+
* @deprecated To suppress visibility of toolbars, set user intent state in userIntentPlugin instead.
|
|
299
299
|
* If any config has __suppressAllToolbars set to true, no floating toolbar will be rendered.
|
|
300
300
|
* Use case:
|
|
301
301
|
* When a node is nested inside a table and the cursor is inside of the nested node.
|
|
302
302
|
* Nested node's toolbar is active. When table's menu opens, we provide table's config with
|
|
303
303
|
* __suppressAllToolbars set to true.
|
|
304
|
+
* To hide floating toolbar, use user intent API instead.
|
|
304
305
|
*/
|
|
305
306
|
__suppressAllToolbars?: boolean;
|
|
306
307
|
/** Absolute offset of the toolbar */
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { ExtractInjectionAPI, NextEditorPlugin } from '../types';
|
|
2
|
+
import type { PopupUserIntent } from './types';
|
|
2
3
|
/**
|
|
3
4
|
*
|
|
4
5
|
* A wrapper for popups to signal popupOpen user intent
|
|
5
6
|
*/
|
|
6
|
-
export declare const UserIntentPopupWrapper: ({ children, api, }: {
|
|
7
|
+
export declare const UserIntentPopupWrapper: ({ userIntent, children, api, }: {
|
|
7
8
|
api: ExtractInjectionAPI<NextEditorPlugin<any, any>> | undefined | null;
|
|
8
9
|
children: React.ReactNode;
|
|
10
|
+
userIntent?: PopupUserIntent;
|
|
9
11
|
}) => import("react").ReactNode;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type PopupUserIntent = 'popupOpen' | 'tablePopupOpen' | 'statusPickerOpen';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "110.
|
|
3
|
+
"version": "110.19.1",
|
|
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/"
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
49
49
|
"@atlaskit/editor-shared-styles": "^3.8.0",
|
|
50
50
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
51
|
-
"@atlaskit/editor-toolbar": "^0.
|
|
51
|
+
"@atlaskit/editor-toolbar": "^0.17.0",
|
|
52
52
|
"@atlaskit/editor-toolbar-model": "^0.2.0",
|
|
53
53
|
"@atlaskit/emoji": "^69.6.0",
|
|
54
54
|
"@atlaskit/icon": "^28.5.0",
|
|
@@ -82,9 +82,9 @@
|
|
|
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.22.0",
|
|
86
86
|
"@atlaskit/tokens": "^7.0.0",
|
|
87
|
-
"@atlaskit/tooltip": "^20.
|
|
87
|
+
"@atlaskit/tooltip": "^20.7.0",
|
|
88
88
|
"@atlaskit/ufo": "^0.4.0",
|
|
89
89
|
"@atlaskit/width-detector": "^5.0.0",
|
|
90
90
|
"@babel/runtime": "^7.0.0",
|