@atlaskit/editor-common 86.7.0 → 86.7.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 +9 -0
- package/afm-post-office/tsconfig.json +153 -0
- package/dist/cjs/link/LinkPicker/EditorLinkPicker/index.js +2 -2
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/link/LinkPicker/EditorLinkPicker/index.js +2 -2
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/link/LinkPicker/EditorLinkPicker/index.js +2 -2
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/link/LinkPicker/EditorLinkPicker/index.d.ts +3 -3
- package/dist/types-ts4.5/link/LinkPicker/EditorLinkPicker/index.d.ts +3 -3
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 86.7.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#124114](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/124114)
|
|
8
|
+
[`0add97fe66134`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0add97fe66134) -
|
|
9
|
+
Adopt lazy link picker entrypoint.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 86.7.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.entry-points.post-office.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"target": "es5",
|
|
6
|
+
"outDir": "../../../../../tsDist/@atlaskit__editor-common/app",
|
|
7
|
+
"composite": true,
|
|
8
|
+
"rootDir": "../"
|
|
9
|
+
},
|
|
10
|
+
"include": [
|
|
11
|
+
"../src/**/*.ts",
|
|
12
|
+
"../src/**/*.tsx"
|
|
13
|
+
],
|
|
14
|
+
"exclude": [
|
|
15
|
+
"../src/**/__tests__/*",
|
|
16
|
+
"../src/**/*.test.*",
|
|
17
|
+
"../src/**/test.*"
|
|
18
|
+
],
|
|
19
|
+
"references": [
|
|
20
|
+
{
|
|
21
|
+
"path": "../../activity-provider/afm-post-office/tsconfig.json"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"path": "../../adf-utils/afm-post-office/tsconfig.json"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"path": "../../../analytics/analytics-listeners/afm-post-office/tsconfig.json"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"path": "../../../analytics/analytics-namespaced-context/afm-post-office/tsconfig.json"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"path": "../../../analytics/analytics-next/afm-post-office/tsconfig.json"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"path": "../../../uip/atlassian-context/afm-post-office/tsconfig.json"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"path": "../../../design-system/button/afm-post-office/tsconfig.json"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"path": "../../../design-system/code/afm-post-office/tsconfig.json"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"path": "../../custom-steps/afm-post-office/tsconfig.json"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"path": "../../../design-system/dropdown-menu/afm-post-office/tsconfig.json"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"path": "../../editor-json-transformer/afm-post-office/tsconfig.json"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"path": "../../editor-palette/afm-post-office/tsconfig.json"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"path": "../../editor-shared-styles/afm-post-office/tsconfig.json"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"path": "../../editor-tables/afm-post-office/tsconfig.json"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"path": "../../../elements/emoji/afm-post-office/tsconfig.json"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"path": "../../../design-system/icon/afm-post-office/tsconfig.json"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"path": "../../../design-system/icon-object/afm-post-office/tsconfig.json"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"path": "../../../linking-platform/link-datasource/afm-post-office/tsconfig.json"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"path": "../../../linking-platform/link-picker/afm-post-office/tsconfig.json"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"path": "../../../media/media-card/afm-post-office/tsconfig.json"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"path": "../../../media/media-client/afm-post-office/tsconfig.json"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"path": "../../../media/media-client-react/afm-post-office/tsconfig.json"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"path": "../../../media/media-common/afm-post-office/tsconfig.json"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"path": "../../../media/media-file-preview/afm-post-office/tsconfig.json"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"path": "../../../media/media-picker/afm-post-office/tsconfig.json"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"path": "../../../media/media-ui/afm-post-office/tsconfig.json"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"path": "../../../media/media-viewer/afm-post-office/tsconfig.json"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"path": "../../../elements/mention/afm-post-office/tsconfig.json"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"path": "../../../design-system/menu/afm-post-office/tsconfig.json"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"path": "../../../platform/feature-flags/afm-post-office/tsconfig.json"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"path": "../../../design-system/primitives/afm-post-office/tsconfig.json"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"path": "../../../people-and-teams/profilecard/afm-post-office/tsconfig.json"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"path": "../../../design-system/section-message/afm-post-office/tsconfig.json"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"path": "../../../linking-platform/smart-card/afm-post-office/tsconfig.json"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"path": "../../../smart-experiences/smart-user-picker/afm-post-office/tsconfig.json"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"path": "../../../design-system/spinner/afm-post-office/tsconfig.json"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"path": "../../../elements/task-decision/afm-post-office/tsconfig.json"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"path": "../../../design-system/textfield/afm-post-office/tsconfig.json"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"path": "../../../design-system/theme/afm-post-office/tsconfig.json"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"path": "../../../design-system/tokens/afm-post-office/tsconfig.json"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"path": "../../../design-system/tooltip/afm-post-office/tsconfig.json"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"path": "../../../data/ufo-external/afm-post-office/tsconfig.json"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"path": "../../../design-system/width-detector/afm-post-office/tsconfig.json"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"path": "../../../media/media-core/afm-post-office/tsconfig.json"
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
}
|
|
@@ -10,7 +10,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
13
|
-
var
|
|
13
|
+
var _lazy = require("@atlaskit/link-picker/lazy");
|
|
14
14
|
var _utils = require("../../../utils");
|
|
15
15
|
var _useEscapeClickaway = require("./useEscapeClickaway");
|
|
16
16
|
var _excluded = ["view", "onCancel", "invokeMethod", "editorAppearance", "onClose", "onEscapeCallback", "onClickAwayCallback"];
|
|
@@ -79,7 +79,7 @@ var EditorLinkPicker = exports.EditorLinkPicker = function EditorLinkPicker(_ref
|
|
|
79
79
|
ref: ref
|
|
80
80
|
}, /*#__PURE__*/_react.default.createElement(_analyticsNext.AnalyticsContext, {
|
|
81
81
|
data: analyticsData
|
|
82
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
82
|
+
}, /*#__PURE__*/_react.default.createElement(_lazy.LazyLinkPicker, (0, _extends2.default)({}, restProps, {
|
|
83
83
|
onCancel: onEscape
|
|
84
84
|
}))));
|
|
85
85
|
};
|
|
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
17
17
|
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; }
|
|
18
18
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
19
19
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
20
|
-
var packageVersion = "86.7.
|
|
20
|
+
var packageVersion = "86.7.1";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
23
23
|
* @jsx jsx
|
|
24
24
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
25
|
var packageName = "@atlaskit/editor-common";
|
|
26
|
-
var packageVersion = "86.7.
|
|
26
|
+
var packageVersion = "86.7.1";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useCallback, useEffect, useMemo, useRef } from 'react';
|
|
3
3
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
4
|
-
import {
|
|
4
|
+
import { LazyLinkPicker } from '@atlaskit/link-picker/lazy';
|
|
5
5
|
import { getAnalyticsEditorAppearance } from '../../../utils';
|
|
6
6
|
import { useEscapeClickaway } from './useEscapeClickaway';
|
|
7
7
|
|
|
@@ -68,7 +68,7 @@ export const EditorLinkPicker = ({
|
|
|
68
68
|
ref: ref
|
|
69
69
|
}, /*#__PURE__*/React.createElement(AnalyticsContext, {
|
|
70
70
|
data: analyticsData
|
|
71
|
-
}, /*#__PURE__*/React.createElement(
|
|
71
|
+
}, /*#__PURE__*/React.createElement(LazyLinkPicker, _extends({}, restProps, {
|
|
72
72
|
onCancel: onEscape
|
|
73
73
|
}))));
|
|
74
74
|
};
|
|
@@ -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 = "86.7.
|
|
4
|
+
const packageVersion = "86.7.1";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -12,7 +12,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
12
12
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
13
13
|
import Layer from '../Layer';
|
|
14
14
|
const packageName = "@atlaskit/editor-common";
|
|
15
|
-
const packageVersion = "86.7.
|
|
15
|
+
const packageVersion = "86.7.1";
|
|
16
16
|
const halfFocusRing = 1;
|
|
17
17
|
const dropOffset = '0, 8';
|
|
18
18
|
class DropList extends Component {
|
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["view", "onCancel", "invokeMethod", "editorAppearance", "onClose", "onEscapeCallback", "onClickAwayCallback"];
|
|
4
4
|
import React, { useCallback, useEffect, useMemo, useRef } from 'react';
|
|
5
5
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
6
|
-
import {
|
|
6
|
+
import { LazyLinkPicker } from '@atlaskit/link-picker/lazy';
|
|
7
7
|
import { getAnalyticsEditorAppearance } from '../../../utils';
|
|
8
8
|
import { useEscapeClickaway } from './useEscapeClickaway';
|
|
9
9
|
|
|
@@ -70,7 +70,7 @@ export var EditorLinkPicker = function EditorLinkPicker(_ref) {
|
|
|
70
70
|
ref: ref
|
|
71
71
|
}, /*#__PURE__*/React.createElement(AnalyticsContext, {
|
|
72
72
|
data: analyticsData
|
|
73
|
-
}, /*#__PURE__*/React.createElement(
|
|
73
|
+
}, /*#__PURE__*/React.createElement(LazyLinkPicker, _extends({}, restProps, {
|
|
74
74
|
onCancel: onEscape
|
|
75
75
|
}))));
|
|
76
76
|
};
|
|
@@ -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 = "86.7.
|
|
10
|
+
var packageVersion = "86.7.1";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -20,7 +20,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
20
20
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
21
21
|
import Layer from '../Layer';
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "86.7.
|
|
23
|
+
var packageVersion = "86.7.1";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
-
import {
|
|
3
|
+
import { LazyLinkPicker } from '@atlaskit/link-picker/lazy';
|
|
4
4
|
import type { Command, EditorAppearance } from '../../../types';
|
|
5
5
|
/**
|
|
6
6
|
* Returns a type that matches T but where keys (K) are now optional
|
|
7
7
|
*/
|
|
8
8
|
type OptionalKeys<T extends {}, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
9
|
-
export interface EditorLinkPickerProps extends OptionalKeys<
|
|
9
|
+
export interface EditorLinkPickerProps extends OptionalKeys<React.ComponentProps<typeof LazyLinkPicker>, 'onCancel'> {
|
|
10
10
|
view: EditorView;
|
|
11
11
|
/**
|
|
12
12
|
* Used for analytics purposes to describe how the link picker was invoked
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
-
import {
|
|
3
|
+
import { LazyLinkPicker } from '@atlaskit/link-picker/lazy';
|
|
4
4
|
import type { Command, EditorAppearance } from '../../../types';
|
|
5
5
|
/**
|
|
6
6
|
* Returns a type that matches T but where keys (K) are now optional
|
|
7
7
|
*/
|
|
8
8
|
type OptionalKeys<T extends {}, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
9
|
-
export interface EditorLinkPickerProps extends OptionalKeys<
|
|
9
|
+
export interface EditorLinkPickerProps extends OptionalKeys<React.ComponentProps<typeof LazyLinkPicker>, 'onCancel'> {
|
|
10
10
|
view: EditorView;
|
|
11
11
|
/**
|
|
12
12
|
* Used for analytics purposes to describe how the link picker was invoked
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "86.7.
|
|
3
|
+
"version": "86.7.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/"
|
|
@@ -117,8 +117,8 @@
|
|
|
117
117
|
"@atlaskit/emoji": "^67.6.0",
|
|
118
118
|
"@atlaskit/icon": "^22.7.0",
|
|
119
119
|
"@atlaskit/icon-object": "^6.4.0",
|
|
120
|
-
"@atlaskit/link-datasource": "^2.
|
|
121
|
-
"@atlaskit/link-picker": "^1.
|
|
120
|
+
"@atlaskit/link-datasource": "^2.7.0",
|
|
121
|
+
"@atlaskit/link-picker": "^1.41.0",
|
|
122
122
|
"@atlaskit/media-card": "^78.0.0",
|
|
123
123
|
"@atlaskit/media-client": "^27.3.0",
|
|
124
124
|
"@atlaskit/media-client-react": "^2.0.0",
|
|
@@ -130,10 +130,10 @@
|
|
|
130
130
|
"@atlaskit/mention": "^23.2.0",
|
|
131
131
|
"@atlaskit/menu": "^2.8.0",
|
|
132
132
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
133
|
-
"@atlaskit/primitives": "^11.
|
|
133
|
+
"@atlaskit/primitives": "^11.1.0",
|
|
134
134
|
"@atlaskit/profilecard": "^19.16.0",
|
|
135
135
|
"@atlaskit/section-message": "^6.5.0",
|
|
136
|
-
"@atlaskit/smart-card": "^27.
|
|
136
|
+
"@atlaskit/smart-card": "^27.11.0",
|
|
137
137
|
"@atlaskit/smart-user-picker": "^6.10.0",
|
|
138
138
|
"@atlaskit/spinner": "^16.2.0",
|
|
139
139
|
"@atlaskit/task-decision": "^17.10.0",
|