@atlaskit/editor-common 114.12.2 → 114.13.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 +25 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/collab/index.d.ts +15 -0
- package/dist/types/compiled-migration/withCompiledMigration.d.ts +2 -2
- package/dist/types/ui/Mention/mention-with-providers.d.ts +1 -1
- package/dist/types-ts4.5/collab/index.d.ts +15 -0
- package/dist/types-ts4.5/compiled-migration/withCompiledMigration.d.ts +2 -2
- package/dist/types-ts4.5/ui/Mention/mention-with-providers.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 114.13.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`e6053f4348753`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e6053f4348753) -
|
|
8
|
+
Fix cc-markdown-mode duplication and stuck-loading issues on rich/markdown convert. Cache the
|
|
9
|
+
latest init payload on the native collab provider and expose it via an optional getInitPayload()
|
|
10
|
+
getter so editor-plugin-collab-edit can seed collabInitialised=true on a rebind (e.g. preset
|
|
11
|
+
rebuild) without re-running handleInit. Gate a synthetic-BE-step filter in
|
|
12
|
+
documentService.processSteps that neutralises NCS reconcile-generated steps tagged with the user's
|
|
13
|
+
userId but no clientId (prevents HelloHello duplication after a markdown-mode flip). Defensively
|
|
14
|
+
hide the WYSIWYG editor DOM in MarkdownModeContentComponent when the source view is active so the
|
|
15
|
+
floating toolbar/cursor doesn't leak through. All behaviour changes are behind the
|
|
16
|
+
cc-markdown-mode experiment.
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
22
|
+
## 114.12.3
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
|
|
3
28
|
## 114.12.2
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
|
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
19
19
|
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); }
|
|
20
20
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
21
21
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
22
|
-
var packageVersion = "
|
|
22
|
+
var packageVersion = "0.0.0-development";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// 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)({
|
|
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
|
|
|
4
4
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
5
5
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
6
6
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
7
|
-
const packageVersion = "
|
|
7
|
+
const packageVersion = "0.0.0-development";
|
|
8
8
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
9
9
|
// Remove URL as it has UGC
|
|
10
10
|
// 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({
|
|
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
|
|
|
10
10
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
11
11
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
12
12
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
13
|
-
var packageVersion = "
|
|
13
|
+
var packageVersion = "0.0.0-development";
|
|
14
14
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
15
15
|
// Remove URL as it has UGC
|
|
16
16
|
// 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({
|
|
@@ -448,6 +448,21 @@ export interface CollabEvents {
|
|
|
448
448
|
export type SyncUpErrorFunction = (attributes: NewCollabSyncUpErrorAttributes) => void;
|
|
449
449
|
export interface CollabEditProvider<Events extends CollabEvents = CollabEvents> {
|
|
450
450
|
getFinalAcknowledgedState: (reason: GetResolvedEditorStateReason) => Promise<ResolvedEditorState>;
|
|
451
|
+
/**
|
|
452
|
+
* Returns the cached `init` payload if the provider has already initialised the
|
|
453
|
+
* document with NCS, otherwise `undefined`.
|
|
454
|
+
*
|
|
455
|
+
* Used by the collab plugin to seed a freshly-attached plugin view (e.g. after
|
|
456
|
+
* an editor preset reconfigure or a full EditorView recreation) with the same
|
|
457
|
+
* `init` data the original subscribers received. Without this, late subscribers
|
|
458
|
+
* never receive `init` (it is fired once at session start) and the editor
|
|
459
|
+
* gets stuck in the `!isReady` state, silently dropping doc-changing
|
|
460
|
+
* transactions via `filterTransaction`.
|
|
461
|
+
*
|
|
462
|
+
* Optional for backwards compatibility with custom provider implementations
|
|
463
|
+
* (e.g. test mocks). When undefined, the rebind path is skipped.
|
|
464
|
+
*/
|
|
465
|
+
getInitPayload?: () => CollabEventInitData | undefined;
|
|
451
466
|
getIsNamespaceLocked: () => boolean;
|
|
452
467
|
initialize: (getState: () => any, createStep: (json: object) => Step) => this;
|
|
453
468
|
off: (evt: keyof Events, handler: (...args: any) => void) => this;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* @see https://hello.atlassian.net/wiki/spaces/~712020e6f24689f2da470b80ba6873df7b44a2/pages/6788274038/Emotion+-+Compiled+Feature+Gating+Strategy
|
|
14
14
|
*/
|
|
15
15
|
import type { ComponentType } from 'react';
|
|
16
|
-
import {
|
|
16
|
+
import { type SerializedStyles } from '@emotion/react';
|
|
17
17
|
/**
|
|
18
18
|
* A HOC that enables per-component feature-gated migration from Emotion to Compiled CSS-in-JS.
|
|
19
19
|
*
|
|
@@ -60,6 +60,6 @@ import { jsx, type SerializedStyles } from '@emotion/react';
|
|
|
60
60
|
export declare function withCompiledMigration<P extends {
|
|
61
61
|
className?: string;
|
|
62
62
|
}>(WrappedComponent: ComponentType<P>, emotionStyles: SerializedStyles): {
|
|
63
|
-
(props: P):
|
|
63
|
+
(props: P): JSX.Element;
|
|
64
64
|
displayName: string;
|
|
65
65
|
};
|
|
@@ -14,4 +14,4 @@ export interface Props {
|
|
|
14
14
|
export interface State {
|
|
15
15
|
profilecardProvider: ProfilecardProvider | null;
|
|
16
16
|
}
|
|
17
|
-
export declare const MentionWithProviders: React.MemoExoticComponent<({ accessLevel, eventHandlers, id, mentionProvider, profilecardProvider
|
|
17
|
+
export declare const MentionWithProviders: React.MemoExoticComponent<({ accessLevel, eventHandlers, id, mentionProvider, profilecardProvider, text, localId, }: Props) => React.JSX.Element>;
|
|
@@ -448,6 +448,21 @@ export interface CollabEvents {
|
|
|
448
448
|
export type SyncUpErrorFunction = (attributes: NewCollabSyncUpErrorAttributes) => void;
|
|
449
449
|
export interface CollabEditProvider<Events extends CollabEvents = CollabEvents> {
|
|
450
450
|
getFinalAcknowledgedState: (reason: GetResolvedEditorStateReason) => Promise<ResolvedEditorState>;
|
|
451
|
+
/**
|
|
452
|
+
* Returns the cached `init` payload if the provider has already initialised the
|
|
453
|
+
* document with NCS, otherwise `undefined`.
|
|
454
|
+
*
|
|
455
|
+
* Used by the collab plugin to seed a freshly-attached plugin view (e.g. after
|
|
456
|
+
* an editor preset reconfigure or a full EditorView recreation) with the same
|
|
457
|
+
* `init` data the original subscribers received. Without this, late subscribers
|
|
458
|
+
* never receive `init` (it is fired once at session start) and the editor
|
|
459
|
+
* gets stuck in the `!isReady` state, silently dropping doc-changing
|
|
460
|
+
* transactions via `filterTransaction`.
|
|
461
|
+
*
|
|
462
|
+
* Optional for backwards compatibility with custom provider implementations
|
|
463
|
+
* (e.g. test mocks). When undefined, the rebind path is skipped.
|
|
464
|
+
*/
|
|
465
|
+
getInitPayload?: () => CollabEventInitData | undefined;
|
|
451
466
|
getIsNamespaceLocked: () => boolean;
|
|
452
467
|
initialize: (getState: () => any, createStep: (json: object) => Step) => this;
|
|
453
468
|
off: (evt: keyof Events, handler: (...args: any) => void) => this;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* @see https://hello.atlassian.net/wiki/spaces/~712020e6f24689f2da470b80ba6873df7b44a2/pages/6788274038/Emotion+-+Compiled+Feature+Gating+Strategy
|
|
14
14
|
*/
|
|
15
15
|
import type { ComponentType } from 'react';
|
|
16
|
-
import {
|
|
16
|
+
import { type SerializedStyles } from '@emotion/react';
|
|
17
17
|
/**
|
|
18
18
|
* A HOC that enables per-component feature-gated migration from Emotion to Compiled CSS-in-JS.
|
|
19
19
|
*
|
|
@@ -60,6 +60,6 @@ import { jsx, type SerializedStyles } from '@emotion/react';
|
|
|
60
60
|
export declare function withCompiledMigration<P extends {
|
|
61
61
|
className?: string;
|
|
62
62
|
}>(WrappedComponent: ComponentType<P>, emotionStyles: SerializedStyles): {
|
|
63
|
-
(props: P):
|
|
63
|
+
(props: P): JSX.Element;
|
|
64
64
|
displayName: string;
|
|
65
65
|
};
|
|
@@ -14,4 +14,4 @@ export interface Props {
|
|
|
14
14
|
export interface State {
|
|
15
15
|
profilecardProvider: ProfilecardProvider | null;
|
|
16
16
|
}
|
|
17
|
-
export declare const MentionWithProviders: React.MemoExoticComponent<({ accessLevel, eventHandlers, id, mentionProvider, profilecardProvider
|
|
17
|
+
export declare const MentionWithProviders: React.MemoExoticComponent<({ accessLevel, eventHandlers, id, mentionProvider, profilecardProvider, text, localId, }: Props) => React.JSX.Element>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "114.
|
|
3
|
+
"version": "114.13.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/"
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"@atlaskit/spinner": "^19.1.0",
|
|
87
87
|
"@atlaskit/task-decision": "^20.0.0",
|
|
88
88
|
"@atlaskit/textfield": "^8.3.0",
|
|
89
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
89
|
+
"@atlaskit/tmp-editor-statsig": "^71.0.0",
|
|
90
90
|
"@atlaskit/tokens": "^13.0.0",
|
|
91
91
|
"@atlaskit/tooltip": "^21.2.0",
|
|
92
92
|
"@atlaskit/width-detector": "^5.1.0",
|