@atlaskit/editor-common 88.3.1 → 88.4.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 +18 -0
- package/dist/cjs/analytics/types/enums.js +1 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/WidthProvider/isSSR.js +3 -2
- package/dist/es2019/analytics/types/enums.js +1 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/WidthProvider/isSSR.js +3 -2
- package/dist/esm/analytics/types/enums.js +1 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/WidthProvider/isSSR.js +3 -2
- package/dist/types/analytics/types/enums.d.ts +1 -0
- package/dist/types/analytics/types/insert-events.d.ts +1 -1
- package/dist/types/card/types.d.ts +2 -1
- package/dist/types-ts4.5/analytics/types/enums.d.ts +1 -0
- package/dist/types-ts4.5/analytics/types/insert-events.d.ts +1 -1
- package/dist/types-ts4.5/card/types.d.ts +2 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 88.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`c4d2eb3f9f965`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c4d2eb3f9f965) -
|
|
8
|
+
[ux] Fix issue with card provider not updating asynchronously
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- [#134882](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/134882)
|
|
13
|
+
[`ba204702f8e32`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ba204702f8e32) -
|
|
14
|
+
[ED-24567]
|
|
15
|
+
|
|
16
|
+
- **@atlaskit/editor-common** Add MEDIA_PICKER as a variable fo analytics
|
|
17
|
+
- **@atlaskit/media-client** Return the mime-type from when calling the `uploadExternal` function
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 88.3.1
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -170,6 +170,7 @@ var INPUT_METHOD = exports.INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
|
|
|
170
170
|
INPUT_METHOD["FORMATTING"] = "autoformatting";
|
|
171
171
|
INPUT_METHOD["INSERT_MENU"] = "insertMenu";
|
|
172
172
|
INPUT_METHOD["KEYBOARD"] = "keyboard";
|
|
173
|
+
INPUT_METHOD["MEDIA_PICKER"] = "mediaPicker";
|
|
173
174
|
INPUT_METHOD["MACRO_BROWSER"] = "macroBrowser";
|
|
174
175
|
INPUT_METHOD["MANUAL"] = "manual";
|
|
175
176
|
INPUT_METHOD["PICKER"] = "picker";
|
|
@@ -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 = "88.
|
|
20
|
+
var packageVersion = "88.4.0";
|
|
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 = "88.
|
|
26
|
+
var packageVersion = "88.4.0";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -8,7 +8,8 @@ function isSSR() {
|
|
|
8
8
|
var _process;
|
|
9
9
|
return Boolean(
|
|
10
10
|
// In most places there is no document when running on server-side
|
|
11
|
-
typeof document === 'undefined' ||
|
|
11
|
+
typeof document === 'undefined' ||
|
|
12
|
+
// When SSRing editor with full cycle mode we define the document
|
|
12
13
|
// Check Confluence specific environment variable
|
|
13
|
-
(_process = process) === null || _process === void 0 || (_process = _process.env) === null || _process === void 0 ? void 0 : _process.REACT_SSR));
|
|
14
|
+
typeof process !== 'undefined' && ((_process = process) === null || _process === void 0 || (_process = _process.env) === null || _process === void 0 ? void 0 : _process.REACT_SSR));
|
|
14
15
|
}
|
|
@@ -164,6 +164,7 @@ export let INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
|
|
|
164
164
|
INPUT_METHOD["FORMATTING"] = "autoformatting";
|
|
165
165
|
INPUT_METHOD["INSERT_MENU"] = "insertMenu";
|
|
166
166
|
INPUT_METHOD["KEYBOARD"] = "keyboard";
|
|
167
|
+
INPUT_METHOD["MEDIA_PICKER"] = "mediaPicker";
|
|
167
168
|
INPUT_METHOD["MACRO_BROWSER"] = "macroBrowser";
|
|
168
169
|
INPUT_METHOD["MANUAL"] = "manual";
|
|
169
170
|
INPUT_METHOD["PICKER"] = "picker";
|
|
@@ -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 = "88.
|
|
4
|
+
const packageVersion = "88.4.0";
|
|
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 = "88.
|
|
15
|
+
const packageVersion = "88.4.0";
|
|
16
16
|
const halfFocusRing = 1;
|
|
17
17
|
const dropOffset = '0, 8';
|
|
18
18
|
class DropList extends Component {
|
|
@@ -2,7 +2,8 @@ export function isSSR() {
|
|
|
2
2
|
var _process, _process$env;
|
|
3
3
|
return Boolean(
|
|
4
4
|
// In most places there is no document when running on server-side
|
|
5
|
-
typeof document === 'undefined' ||
|
|
5
|
+
typeof document === 'undefined' ||
|
|
6
|
+
// When SSRing editor with full cycle mode we define the document
|
|
6
7
|
// Check Confluence specific environment variable
|
|
7
|
-
(_process = process) === null || _process === void 0 ? void 0 : (_process$env = _process.env) === null || _process$env === void 0 ? void 0 : _process$env.REACT_SSR));
|
|
8
|
+
typeof process !== 'undefined' && ((_process = process) === null || _process === void 0 ? void 0 : (_process$env = _process.env) === null || _process$env === void 0 ? void 0 : _process$env.REACT_SSR));
|
|
8
9
|
}
|
|
@@ -164,6 +164,7 @@ export var INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
|
|
|
164
164
|
INPUT_METHOD["FORMATTING"] = "autoformatting";
|
|
165
165
|
INPUT_METHOD["INSERT_MENU"] = "insertMenu";
|
|
166
166
|
INPUT_METHOD["KEYBOARD"] = "keyboard";
|
|
167
|
+
INPUT_METHOD["MEDIA_PICKER"] = "mediaPicker";
|
|
167
168
|
INPUT_METHOD["MACRO_BROWSER"] = "macroBrowser";
|
|
168
169
|
INPUT_METHOD["MANUAL"] = "manual";
|
|
169
170
|
INPUT_METHOD["PICKER"] = "picker";
|
|
@@ -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 = "88.
|
|
10
|
+
var packageVersion = "88.4.0";
|
|
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 = "88.
|
|
23
|
+
var packageVersion = "88.4.0";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -2,7 +2,8 @@ export function isSSR() {
|
|
|
2
2
|
var _process;
|
|
3
3
|
return Boolean(
|
|
4
4
|
// In most places there is no document when running on server-side
|
|
5
|
-
typeof document === 'undefined' ||
|
|
5
|
+
typeof document === 'undefined' ||
|
|
6
|
+
// When SSRing editor with full cycle mode we define the document
|
|
6
7
|
// Check Confluence specific environment variable
|
|
7
|
-
(_process = process) === null || _process === void 0 || (_process = _process.env) === null || _process === void 0 ? void 0 : _process.REACT_SSR));
|
|
8
|
+
typeof process !== 'undefined' && ((_process = process) === null || _process === void 0 || (_process = _process.env) === null || _process === void 0 ? void 0 : _process.REACT_SSR));
|
|
8
9
|
}
|
|
@@ -68,7 +68,7 @@ type InsertEmojiAEP = InsertAEP<ACTION_SUBJECT_ID.EMOJI, {
|
|
|
68
68
|
type InsertStatusAEP = InsertAEP<ACTION_SUBJECT_ID.STATUS, {
|
|
69
69
|
inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU;
|
|
70
70
|
}, undefined>;
|
|
71
|
-
export type InputMethodInsertMedia = INPUT_METHOD.CLIPBOARD | INPUT_METHOD.PICKER_CLOUD | INPUT_METHOD.DRAG_AND_DROP | INPUT_METHOD.BROWSER;
|
|
71
|
+
export type InputMethodInsertMedia = INPUT_METHOD.CLIPBOARD | INPUT_METHOD.PICKER_CLOUD | INPUT_METHOD.DRAG_AND_DROP | INPUT_METHOD.BROWSER | INPUT_METHOD.MEDIA_PICKER;
|
|
72
72
|
type InsertMediaSingleAEP = InsertAEP<ACTION_SUBJECT_ID.MEDIA, {
|
|
73
73
|
inputMethod: InputMethodInsertMedia;
|
|
74
74
|
fileExtension?: string;
|
|
@@ -3,7 +3,7 @@ import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
|
3
3
|
import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import type { ACTION, EditorAnalyticsAPI, INPUT_METHOD } from '../analytics';
|
|
6
|
-
import { type CardAppearance, type ProviderFactory } from '../provider-factory';
|
|
6
|
+
import { type CardAppearance, type CardProvider, type ProviderFactory } from '../provider-factory';
|
|
7
7
|
import type { Command, FloatingToolbarItem } from '../types';
|
|
8
8
|
export interface OptionConfig {
|
|
9
9
|
appearance?: CardAppearance;
|
|
@@ -30,4 +30,5 @@ export type CardPluginActions = {
|
|
|
30
30
|
hideLinkToolbar: HideLinkToolbarAction;
|
|
31
31
|
getStartingToolbarItems: GetStartingToolbarItems;
|
|
32
32
|
getEndingToolbarItems: GetEndingToolbarItems;
|
|
33
|
+
setProvider: (provider: Promise<CardProvider>) => Promise<boolean>;
|
|
33
34
|
};
|
|
@@ -68,7 +68,7 @@ type InsertEmojiAEP = InsertAEP<ACTION_SUBJECT_ID.EMOJI, {
|
|
|
68
68
|
type InsertStatusAEP = InsertAEP<ACTION_SUBJECT_ID.STATUS, {
|
|
69
69
|
inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU;
|
|
70
70
|
}, undefined>;
|
|
71
|
-
export type InputMethodInsertMedia = INPUT_METHOD.CLIPBOARD | INPUT_METHOD.PICKER_CLOUD | INPUT_METHOD.DRAG_AND_DROP | INPUT_METHOD.BROWSER;
|
|
71
|
+
export type InputMethodInsertMedia = INPUT_METHOD.CLIPBOARD | INPUT_METHOD.PICKER_CLOUD | INPUT_METHOD.DRAG_AND_DROP | INPUT_METHOD.BROWSER | INPUT_METHOD.MEDIA_PICKER;
|
|
72
72
|
type InsertMediaSingleAEP = InsertAEP<ACTION_SUBJECT_ID.MEDIA, {
|
|
73
73
|
inputMethod: InputMethodInsertMedia;
|
|
74
74
|
fileExtension?: string;
|
|
@@ -3,7 +3,7 @@ import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
|
3
3
|
import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import type { ACTION, EditorAnalyticsAPI, INPUT_METHOD } from '../analytics';
|
|
6
|
-
import { type CardAppearance, type ProviderFactory } from '../provider-factory';
|
|
6
|
+
import { type CardAppearance, type CardProvider, type ProviderFactory } from '../provider-factory';
|
|
7
7
|
import type { Command, FloatingToolbarItem } from '../types';
|
|
8
8
|
export interface OptionConfig {
|
|
9
9
|
appearance?: CardAppearance;
|
|
@@ -30,4 +30,5 @@ export type CardPluginActions = {
|
|
|
30
30
|
hideLinkToolbar: HideLinkToolbarAction;
|
|
31
31
|
getStartingToolbarItems: GetStartingToolbarItems;
|
|
32
32
|
getEndingToolbarItems: GetEndingToolbarItems;
|
|
33
|
+
setProvider: (provider: Promise<CardProvider>) => Promise<boolean>;
|
|
33
34
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "88.
|
|
3
|
+
"version": "88.4.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/"
|
|
@@ -119,10 +119,10 @@
|
|
|
119
119
|
"@atlaskit/icon": "^22.15.0",
|
|
120
120
|
"@atlaskit/icon-object": "^6.5.0",
|
|
121
121
|
"@atlaskit/link-datasource": "^2.11.0",
|
|
122
|
-
"@atlaskit/link-picker": "^1.
|
|
123
|
-
"@atlaskit/media-card": "^78.
|
|
124
|
-
"@atlaskit/media-client": "^27.
|
|
125
|
-
"@atlaskit/media-client-react": "^2.
|
|
122
|
+
"@atlaskit/link-picker": "^1.45.0",
|
|
123
|
+
"@atlaskit/media-card": "^78.2.0",
|
|
124
|
+
"@atlaskit/media-client": "^27.6.0",
|
|
125
|
+
"@atlaskit/media-client-react": "^2.2.0",
|
|
126
126
|
"@atlaskit/media-common": "^11.4.0",
|
|
127
127
|
"@atlaskit/media-file-preview": "^0.8.0",
|
|
128
128
|
"@atlaskit/media-picker": "^66.5.0",
|