@atlaskit/editor-common 108.4.0 → 108.5.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 +11 -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 +26 -0
- package/dist/cjs/user-intent/index.js +12 -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 +21 -0
- package/dist/es2019/user-intent/index.js +4 -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 +20 -0
- package/dist/esm/user-intent/index.js +4 -0
- package/dist/types/user-intent/UserIntentPopupWrapper.d.ts +9 -0
- package/dist/types/user-intent/index.d.ts +1 -0
- package/dist/types-ts4.5/user-intent/UserIntentPopupWrapper.d.ts +9 -0
- package/dist/types-ts4.5/user-intent/index.d.ts +1 -0
- package/package.json +4 -3
- package/user-intent/package.json +17 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 108.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`a8630c1107c3d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a8630c1107c3d) -
|
|
8
|
+
[ED-28781] Hide inline text toolbar when other popups are open
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 108.4.0
|
|
4
15
|
|
|
5
16
|
### Minor 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 = "108.
|
|
19
|
+
var packageVersion = "108.4.0";
|
|
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 = "108.
|
|
27
|
+
var packageVersion = "108.4.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.UserIntentPopupWrapper = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* A wrapper for popups to signal popupOpen user intent
|
|
11
|
+
*/
|
|
12
|
+
var UserIntentPopupWrapper = exports.UserIntentPopupWrapper = function UserIntentPopupWrapper(_ref) {
|
|
13
|
+
var children = _ref.children,
|
|
14
|
+
api = _ref.api;
|
|
15
|
+
(0, _react.useEffect)(function () {
|
|
16
|
+
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'));
|
|
18
|
+
return function () {
|
|
19
|
+
var _api$userIntent2;
|
|
20
|
+
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'));
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
24
|
+
}, []);
|
|
25
|
+
return children;
|
|
26
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "UserIntentPopupWrapper", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _UserIntentPopupWrapper.UserIntentPopupWrapper;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _UserIntentPopupWrapper = require("./UserIntentPopupWrapper");
|
|
@@ -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 = "108.
|
|
4
|
+
const packageVersion = "108.4.0";
|
|
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 = "108.
|
|
17
|
+
const packageVersion = "108.4.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { useEffect } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* A wrapper for popups to signal popupOpen user intent
|
|
5
|
+
*/
|
|
6
|
+
export const UserIntentPopupWrapper = ({
|
|
7
|
+
children,
|
|
8
|
+
api
|
|
9
|
+
}) => {
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
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'));
|
|
13
|
+
return () => {
|
|
14
|
+
var _api$userIntent2;
|
|
15
|
+
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'));
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
19
|
+
}, []);
|
|
20
|
+
return children;
|
|
21
|
+
};
|
|
@@ -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 = "108.
|
|
10
|
+
var packageVersion = "108.4.0";
|
|
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 = "108.
|
|
24
|
+
var packageVersion = "108.4.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { useEffect } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* A wrapper for popups to signal popupOpen user intent
|
|
5
|
+
*/
|
|
6
|
+
export var UserIntentPopupWrapper = function UserIntentPopupWrapper(_ref) {
|
|
7
|
+
var children = _ref.children,
|
|
8
|
+
api = _ref.api;
|
|
9
|
+
useEffect(function () {
|
|
10
|
+
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'));
|
|
12
|
+
return function () {
|
|
13
|
+
var _api$userIntent2;
|
|
14
|
+
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'));
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
18
|
+
}, []);
|
|
19
|
+
return children;
|
|
20
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ExtractInjectionAPI, NextEditorPlugin } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* A wrapper for popups to signal popupOpen user intent
|
|
5
|
+
*/
|
|
6
|
+
export declare const UserIntentPopupWrapper: ({ children, api, }: {
|
|
7
|
+
api: ExtractInjectionAPI<NextEditorPlugin<any, any>> | undefined | null;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}) => import("react").ReactNode;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UserIntentPopupWrapper } from './UserIntentPopupWrapper';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ExtractInjectionAPI, NextEditorPlugin } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* A wrapper for popups to signal popupOpen user intent
|
|
5
|
+
*/
|
|
6
|
+
export declare const UserIntentPopupWrapper: ({ children, api, }: {
|
|
7
|
+
api: ExtractInjectionAPI<NextEditorPlugin<any, any>> | undefined | null;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}) => import("react").ReactNode;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UserIntentPopupWrapper } from './UserIntentPopupWrapper';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "108.
|
|
3
|
+
"version": "108.5.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/"
|
|
@@ -122,7 +122,8 @@
|
|
|
122
122
|
"./get-dom-ref-from-selection": "./src/utils/get-dom-ref-from-selection.ts",
|
|
123
123
|
"./ncs-step-metrics": "./src/ncs-step-metrics/index.ts",
|
|
124
124
|
"./toolbar-flag-check": "./src/toolbar-flag-check.ts",
|
|
125
|
-
"./context-panel": "./src/ui/ContextPanel/context.tsx"
|
|
125
|
+
"./context-panel": "./src/ui/ContextPanel/context.tsx",
|
|
126
|
+
"./user-intent": "./src/user-intent/index.ts"
|
|
126
127
|
},
|
|
127
128
|
"dependencies": {
|
|
128
129
|
"@atlaskit/activity-provider": "^2.5.0",
|
|
@@ -166,7 +167,7 @@
|
|
|
166
167
|
"@atlaskit/platform-feature-flags-react": "^0.3.0",
|
|
167
168
|
"@atlaskit/popper": "^7.1.0",
|
|
168
169
|
"@atlaskit/primitives": "^14.13.0",
|
|
169
|
-
"@atlaskit/profilecard": "^24.
|
|
170
|
+
"@atlaskit/profilecard": "^24.11.0",
|
|
170
171
|
"@atlaskit/react-ufo": "^4.5.0",
|
|
171
172
|
"@atlaskit/section-message": "^8.7.0",
|
|
172
173
|
"@atlaskit/smart-card": "^40.20.0",
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-common/user-intent",
|
|
3
|
+
"main": "../dist/cjs/user-intent/index.js",
|
|
4
|
+
"module": "../dist/esm/user-intent/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/user-intent/index.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/user-intent/index.d.ts",
|
|
10
|
+
"typesVersions": {
|
|
11
|
+
">=4.5 <5.9": {
|
|
12
|
+
"*": [
|
|
13
|
+
"../dist/types-ts4.5/user-intent/index.d.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|