@atlaskit/editor-common 111.9.0 → 111.9.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 +13 -0
- package/dist/cjs/analytics/types/enums.js +1 -0
- package/dist/cjs/experiences/Experience.js +3 -3
- package/dist/cjs/experiences/ExperienceCheckDomMutation.js +1 -1
- package/dist/cjs/experiences/consts.js +4 -4
- package/dist/cjs/messages/syncBlock.js +10 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/analytics/types/enums.js +1 -0
- package/dist/es2019/experiences/Experience.js +3 -3
- package/dist/es2019/experiences/ExperienceCheckDomMutation.js +1 -1
- package/dist/es2019/experiences/consts.js +4 -4
- package/dist/es2019/messages/syncBlock.js +10 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/analytics/types/enums.js +1 -0
- package/dist/esm/experiences/Experience.js +3 -3
- package/dist/esm/experiences/ExperienceCheckDomMutation.js +1 -1
- package/dist/esm/experiences/consts.js +4 -4
- package/dist/esm/messages/syncBlock.js +10 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/types/enums.d.ts +1 -0
- package/dist/types/analytics/types/sync-block-events.d.ts +4 -2
- package/dist/types/experiences/Experience.d.ts +3 -3
- package/dist/types/experiences/ExperienceCheckDomMutation.d.ts +2 -2
- package/dist/types/experiences/consts.d.ts +4 -4
- package/dist/types/experiences/types.d.ts +1 -1
- package/dist/types/messages/syncBlock.d.ts +10 -0
- package/dist/types-ts4.5/analytics/types/enums.d.ts +1 -0
- package/dist/types-ts4.5/analytics/types/sync-block-events.d.ts +4 -2
- package/dist/types-ts4.5/experiences/Experience.d.ts +3 -3
- package/dist/types-ts4.5/experiences/ExperienceCheckDomMutation.d.ts +2 -2
- package/dist/types-ts4.5/experiences/consts.d.ts +4 -4
- package/dist/types-ts4.5/experiences/types.d.ts +1 -1
- package/dist/types-ts4.5/messages/syncBlock.d.ts +10 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 111.9.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`81230b670d02c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/81230b670d02c) -
|
|
8
|
+
ED-29744 camel case experience attributes
|
|
9
|
+
- [`7702ea47c5329`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7702ea47c5329) -
|
|
10
|
+
Add messages for synced block unpublished flag
|
|
11
|
+
- [`2a9dfb4b326e6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2a9dfb4b326e6) -
|
|
12
|
+
EDITOR-4698 add missing analytics for fetch references, graphql subsciption update, reference sync
|
|
13
|
+
block insert and delete success
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 111.9.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -125,6 +125,7 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
125
125
|
ACTION["SYNCED_BLOCK_CREATE"] = "syncedBlockCreate";
|
|
126
126
|
ACTION["SYNCED_BLOCK_UPDATE"] = "syncedBlockUpdate";
|
|
127
127
|
ACTION["SYNCED_BLOCK_FETCH"] = "syncedBlockFetch";
|
|
128
|
+
ACTION["SYNCED_BLOCK_FETCH_REFERENCES"] = "syncedBlockFetchReferences";
|
|
128
129
|
ACTION["SYNCED_BLOCK_DELETE"] = "syncedBlockDelete";
|
|
129
130
|
ACTION["SYNCED_BLOCK_GET_SOURCE_INFO"] = "syncedBlockGetSourceInfo";
|
|
130
131
|
ACTION["SYNCHRONY_DISCONNECTED"] = "synchronyDisconnected";
|
|
@@ -38,14 +38,14 @@ var Experience = exports.Experience = /*#__PURE__*/function () {
|
|
|
38
38
|
/**
|
|
39
39
|
* Creates a new Experience instance for tracking user experiences.
|
|
40
40
|
*
|
|
41
|
-
* @param id - Unique identifier for the experience e.g. '
|
|
41
|
+
* @param id - Unique identifier for the experience e.g. 'toolbarOpen' 'menuAction'
|
|
42
42
|
* @param options - Configuration options for the experience
|
|
43
43
|
* @param options.checks - Experience checks to monitor for completion
|
|
44
44
|
* @param options.dispatchAnalyticsEvent - Function to dispatch analytics events
|
|
45
45
|
* @param options.sampleRate - Sample rate for experienceSampled events
|
|
46
46
|
* @param options.metadata - Global metadata to attach to all events
|
|
47
|
-
* @param options.action - Optional sub identifier for the specific experience action e.g. 'bold' '
|
|
48
|
-
* @param options.actionSubjectId - Optional sub identifier for the experience action subject e.g. '
|
|
47
|
+
* @param options.action - Optional sub identifier for the specific experience action e.g. 'bold' 'insertTable'
|
|
48
|
+
* @param options.actionSubjectId - Optional sub identifier for the experience action subject e.g. 'selectionToolbar' 'quickInsert'
|
|
49
49
|
*/
|
|
50
50
|
function Experience(id, options) {
|
|
51
51
|
var _options$sampleRate;
|
|
@@ -45,7 +45,7 @@ var ExperienceCheckDomMutation = exports.ExperienceCheckDomMutation = /*#__PURE_
|
|
|
45
45
|
if (result) {
|
|
46
46
|
callback(result);
|
|
47
47
|
}
|
|
48
|
-
} catch (
|
|
48
|
+
} catch (_unused) {
|
|
49
49
|
callback({
|
|
50
50
|
status: 'failure',
|
|
51
51
|
reason: _consts.EXPERIENCE_FAILURE_REASON.DOM_MUTATION_CHECK_ERROR
|
|
@@ -18,11 +18,11 @@ var EXPERIENCE_FAILURE_REASON = exports.EXPERIENCE_FAILURE_REASON = {
|
|
|
18
18
|
/**
|
|
19
19
|
* Target element could not be found when starting DOM mutation observation
|
|
20
20
|
*/
|
|
21
|
-
DOM_MUTATION_TARGET_NOT_FOUND: '
|
|
21
|
+
DOM_MUTATION_TARGET_NOT_FOUND: 'domMutationTargetNotFound',
|
|
22
22
|
/**
|
|
23
23
|
* Error occurred during DOM mutation check execution
|
|
24
24
|
*/
|
|
25
|
-
DOM_MUTATION_CHECK_ERROR: '
|
|
25
|
+
DOM_MUTATION_CHECK_ERROR: 'domMutationCheckError'
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
/**
|
|
@@ -52,7 +52,7 @@ var DEFAULT_EXPERIENCE_SAMPLE_RATE = exports.DEFAULT_EXPERIENCE_SAMPLE_RATE = 0.
|
|
|
52
52
|
var EXPERIENCE_ID = exports.EXPERIENCE_ID = {
|
|
53
53
|
ASYNC_OPERATION: 'asyncOperation',
|
|
54
54
|
MENU_ACTION: 'menuAction',
|
|
55
|
-
MENU_OPEN: '
|
|
55
|
+
MENU_OPEN: 'menuOpen',
|
|
56
56
|
TOOLBAR_ACTION: 'toolbarAction',
|
|
57
|
-
TOOLBAR_OPEN: '
|
|
57
|
+
TOOLBAR_OPEN: 'toolbarOpen'
|
|
58
58
|
};
|
|
@@ -286,6 +286,16 @@ var syncBlockMessages = exports.syncBlockMessages = (0, _reactIntlNext.defineMes
|
|
|
286
286
|
defaultMessage: 'Request access',
|
|
287
287
|
description: 'Label shown in the synced location dropdown option when the sync block is not accessible to the user'
|
|
288
288
|
},
|
|
289
|
+
unpublishedSyncBlockPastedTitle: {
|
|
290
|
+
id: 'fabric.editor.unpublishedSyncBlockPastedTitle',
|
|
291
|
+
defaultMessage: 'Pasted from unpublished page',
|
|
292
|
+
description: 'Title in flag which appears when a reference to an unpublished sync block is pasted'
|
|
293
|
+
},
|
|
294
|
+
unpublishedSyncBlockPastedDescription: {
|
|
295
|
+
id: 'fabric.editor.unpublishedSyncBlockPastedDescription',
|
|
296
|
+
defaultMessage: 'When the page is published, the content will be displayed.',
|
|
297
|
+
description: 'Description in flag which appears when a reference to an unpublished sync block is pasted'
|
|
298
|
+
},
|
|
289
299
|
unsyncButton: {
|
|
290
300
|
id: 'fabric.editor.syncedBlock.unsync',
|
|
291
301
|
defaultMessage: 'Unsync',
|
|
@@ -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 = "111.
|
|
22
|
+
var packageVersion = "111.9.0";
|
|
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 = "111.
|
|
27
|
+
var packageVersion = "111.9.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -119,6 +119,7 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
119
119
|
ACTION["SYNCED_BLOCK_CREATE"] = "syncedBlockCreate";
|
|
120
120
|
ACTION["SYNCED_BLOCK_UPDATE"] = "syncedBlockUpdate";
|
|
121
121
|
ACTION["SYNCED_BLOCK_FETCH"] = "syncedBlockFetch";
|
|
122
|
+
ACTION["SYNCED_BLOCK_FETCH_REFERENCES"] = "syncedBlockFetchReferences";
|
|
122
123
|
ACTION["SYNCED_BLOCK_DELETE"] = "syncedBlockDelete";
|
|
123
124
|
ACTION["SYNCED_BLOCK_GET_SOURCE_INFO"] = "syncedBlockGetSourceInfo";
|
|
124
125
|
ACTION["SYNCHRONY_DISCONNECTED"] = "synchronyDisconnected";
|
|
@@ -27,14 +27,14 @@ export class Experience {
|
|
|
27
27
|
/**
|
|
28
28
|
* Creates a new Experience instance for tracking user experiences.
|
|
29
29
|
*
|
|
30
|
-
* @param id - Unique identifier for the experience e.g. '
|
|
30
|
+
* @param id - Unique identifier for the experience e.g. 'toolbarOpen' 'menuAction'
|
|
31
31
|
* @param options - Configuration options for the experience
|
|
32
32
|
* @param options.checks - Experience checks to monitor for completion
|
|
33
33
|
* @param options.dispatchAnalyticsEvent - Function to dispatch analytics events
|
|
34
34
|
* @param options.sampleRate - Sample rate for experienceSampled events
|
|
35
35
|
* @param options.metadata - Global metadata to attach to all events
|
|
36
|
-
* @param options.action - Optional sub identifier for the specific experience action e.g. 'bold' '
|
|
37
|
-
* @param options.actionSubjectId - Optional sub identifier for the experience action subject e.g. '
|
|
36
|
+
* @param options.action - Optional sub identifier for the specific experience action e.g. 'bold' 'insertTable'
|
|
37
|
+
* @param options.actionSubjectId - Optional sub identifier for the experience action subject e.g. 'selectionToolbar' 'quickInsert'
|
|
38
38
|
*/
|
|
39
39
|
constructor(id, options) {
|
|
40
40
|
var _options$sampleRate;
|
|
@@ -12,11 +12,11 @@ export const EXPERIENCE_FAILURE_REASON = {
|
|
|
12
12
|
/**
|
|
13
13
|
* Target element could not be found when starting DOM mutation observation
|
|
14
14
|
*/
|
|
15
|
-
DOM_MUTATION_TARGET_NOT_FOUND: '
|
|
15
|
+
DOM_MUTATION_TARGET_NOT_FOUND: 'domMutationTargetNotFound',
|
|
16
16
|
/**
|
|
17
17
|
* Error occurred during DOM mutation check execution
|
|
18
18
|
*/
|
|
19
|
-
DOM_MUTATION_CHECK_ERROR: '
|
|
19
|
+
DOM_MUTATION_CHECK_ERROR: 'domMutationCheckError'
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
/**
|
|
@@ -46,7 +46,7 @@ export const DEFAULT_EXPERIENCE_SAMPLE_RATE = 0.001;
|
|
|
46
46
|
export const EXPERIENCE_ID = {
|
|
47
47
|
ASYNC_OPERATION: 'asyncOperation',
|
|
48
48
|
MENU_ACTION: 'menuAction',
|
|
49
|
-
MENU_OPEN: '
|
|
49
|
+
MENU_OPEN: 'menuOpen',
|
|
50
50
|
TOOLBAR_ACTION: 'toolbarAction',
|
|
51
|
-
TOOLBAR_OPEN: '
|
|
51
|
+
TOOLBAR_OPEN: 'toolbarOpen'
|
|
52
52
|
};
|
|
@@ -280,6 +280,16 @@ export const syncBlockMessages = defineMessages({
|
|
|
280
280
|
defaultMessage: 'Request access',
|
|
281
281
|
description: 'Label shown in the synced location dropdown option when the sync block is not accessible to the user'
|
|
282
282
|
},
|
|
283
|
+
unpublishedSyncBlockPastedTitle: {
|
|
284
|
+
id: 'fabric.editor.unpublishedSyncBlockPastedTitle',
|
|
285
|
+
defaultMessage: 'Pasted from unpublished page',
|
|
286
|
+
description: 'Title in flag which appears when a reference to an unpublished sync block is pasted'
|
|
287
|
+
},
|
|
288
|
+
unpublishedSyncBlockPastedDescription: {
|
|
289
|
+
id: 'fabric.editor.unpublishedSyncBlockPastedDescription',
|
|
290
|
+
defaultMessage: 'When the page is published, the content will be displayed.',
|
|
291
|
+
description: 'Description in flag which appears when a reference to an unpublished sync block is pasted'
|
|
292
|
+
},
|
|
283
293
|
unsyncButton: {
|
|
284
294
|
id: 'fabric.editor.syncedBlock.unsync',
|
|
285
295
|
defaultMessage: 'Unsync',
|
|
@@ -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 = "111.
|
|
7
|
+
const packageVersion = "111.9.0";
|
|
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 = "111.
|
|
17
|
+
const packageVersion = "111.9.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -119,6 +119,7 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
119
119
|
ACTION["SYNCED_BLOCK_CREATE"] = "syncedBlockCreate";
|
|
120
120
|
ACTION["SYNCED_BLOCK_UPDATE"] = "syncedBlockUpdate";
|
|
121
121
|
ACTION["SYNCED_BLOCK_FETCH"] = "syncedBlockFetch";
|
|
122
|
+
ACTION["SYNCED_BLOCK_FETCH_REFERENCES"] = "syncedBlockFetchReferences";
|
|
122
123
|
ACTION["SYNCED_BLOCK_DELETE"] = "syncedBlockDelete";
|
|
123
124
|
ACTION["SYNCED_BLOCK_GET_SOURCE_INFO"] = "syncedBlockGetSourceInfo";
|
|
124
125
|
ACTION["SYNCHRONY_DISCONNECTED"] = "synchronyDisconnected";
|
|
@@ -31,14 +31,14 @@ export var Experience = /*#__PURE__*/function () {
|
|
|
31
31
|
/**
|
|
32
32
|
* Creates a new Experience instance for tracking user experiences.
|
|
33
33
|
*
|
|
34
|
-
* @param id - Unique identifier for the experience e.g. '
|
|
34
|
+
* @param id - Unique identifier for the experience e.g. 'toolbarOpen' 'menuAction'
|
|
35
35
|
* @param options - Configuration options for the experience
|
|
36
36
|
* @param options.checks - Experience checks to monitor for completion
|
|
37
37
|
* @param options.dispatchAnalyticsEvent - Function to dispatch analytics events
|
|
38
38
|
* @param options.sampleRate - Sample rate for experienceSampled events
|
|
39
39
|
* @param options.metadata - Global metadata to attach to all events
|
|
40
|
-
* @param options.action - Optional sub identifier for the specific experience action e.g. 'bold' '
|
|
41
|
-
* @param options.actionSubjectId - Optional sub identifier for the experience action subject e.g. '
|
|
40
|
+
* @param options.action - Optional sub identifier for the specific experience action e.g. 'bold' 'insertTable'
|
|
41
|
+
* @param options.actionSubjectId - Optional sub identifier for the experience action subject e.g. 'selectionToolbar' 'quickInsert'
|
|
42
42
|
*/
|
|
43
43
|
function Experience(id, options) {
|
|
44
44
|
var _options$sampleRate;
|
|
@@ -12,11 +12,11 @@ export var EXPERIENCE_FAILURE_REASON = {
|
|
|
12
12
|
/**
|
|
13
13
|
* Target element could not be found when starting DOM mutation observation
|
|
14
14
|
*/
|
|
15
|
-
DOM_MUTATION_TARGET_NOT_FOUND: '
|
|
15
|
+
DOM_MUTATION_TARGET_NOT_FOUND: 'domMutationTargetNotFound',
|
|
16
16
|
/**
|
|
17
17
|
* Error occurred during DOM mutation check execution
|
|
18
18
|
*/
|
|
19
|
-
DOM_MUTATION_CHECK_ERROR: '
|
|
19
|
+
DOM_MUTATION_CHECK_ERROR: 'domMutationCheckError'
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
/**
|
|
@@ -46,7 +46,7 @@ export var DEFAULT_EXPERIENCE_SAMPLE_RATE = 0.001;
|
|
|
46
46
|
export var EXPERIENCE_ID = {
|
|
47
47
|
ASYNC_OPERATION: 'asyncOperation',
|
|
48
48
|
MENU_ACTION: 'menuAction',
|
|
49
|
-
MENU_OPEN: '
|
|
49
|
+
MENU_OPEN: 'menuOpen',
|
|
50
50
|
TOOLBAR_ACTION: 'toolbarAction',
|
|
51
|
-
TOOLBAR_OPEN: '
|
|
51
|
+
TOOLBAR_OPEN: 'toolbarOpen'
|
|
52
52
|
};
|
|
@@ -280,6 +280,16 @@ export var syncBlockMessages = defineMessages({
|
|
|
280
280
|
defaultMessage: 'Request access',
|
|
281
281
|
description: 'Label shown in the synced location dropdown option when the sync block is not accessible to the user'
|
|
282
282
|
},
|
|
283
|
+
unpublishedSyncBlockPastedTitle: {
|
|
284
|
+
id: 'fabric.editor.unpublishedSyncBlockPastedTitle',
|
|
285
|
+
defaultMessage: 'Pasted from unpublished page',
|
|
286
|
+
description: 'Title in flag which appears when a reference to an unpublished sync block is pasted'
|
|
287
|
+
},
|
|
288
|
+
unpublishedSyncBlockPastedDescription: {
|
|
289
|
+
id: 'fabric.editor.unpublishedSyncBlockPastedDescription',
|
|
290
|
+
defaultMessage: 'When the page is published, the content will be displayed.',
|
|
291
|
+
description: 'Description in flag which appears when a reference to an unpublished sync block is pasted'
|
|
292
|
+
},
|
|
283
293
|
unsyncButton: {
|
|
284
294
|
id: 'fabric.editor.syncedBlock.unsync',
|
|
285
295
|
defaultMessage: 'Unsync',
|
|
@@ -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 = "111.
|
|
13
|
+
var packageVersion = "111.9.0";
|
|
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 = "111.
|
|
24
|
+
var packageVersion = "111.9.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -118,6 +118,7 @@ export declare enum ACTION {
|
|
|
118
118
|
SYNCED_BLOCK_CREATE = "syncedBlockCreate",
|
|
119
119
|
SYNCED_BLOCK_UPDATE = "syncedBlockUpdate",
|
|
120
120
|
SYNCED_BLOCK_FETCH = "syncedBlockFetch",
|
|
121
|
+
SYNCED_BLOCK_FETCH_REFERENCES = "syncedBlockFetchReferences",
|
|
121
122
|
SYNCED_BLOCK_DELETE = "syncedBlockDelete",
|
|
122
123
|
SYNCED_BLOCK_GET_SOURCE_INFO = "syncedBlockGetSourceInfo",
|
|
123
124
|
SYNCHRONY_DISCONNECTED = "synchronyDisconnected",
|
|
@@ -6,10 +6,10 @@ type SyncedBlockErrorAttributes = {
|
|
|
6
6
|
resourceId?: string;
|
|
7
7
|
};
|
|
8
8
|
type SyncedBlockSuccessAttributes = {
|
|
9
|
+
blockInstanceId?: string;
|
|
9
10
|
resourceId: string;
|
|
10
11
|
};
|
|
11
12
|
type FetchSyncedBlockSuccessAttributes = SyncedBlockSuccessAttributes & {
|
|
12
|
-
blockInstanceId?: string;
|
|
13
13
|
sourceProduct?: string;
|
|
14
14
|
};
|
|
15
15
|
export type SyncedBlockSourceURLErrorAEP = OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_SOURCE_URL, SyncedBlockErrorAttributes>;
|
|
@@ -25,6 +25,8 @@ export type SyncedBlockFetchSuccessAEP = OperationalAEP<ACTION.FETCHED, ACTION_S
|
|
|
25
25
|
export type SyncedBlockCreateSuccessAEP = OperationalAEP<ACTION.INSERTED, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_CREATE, SyncedBlockSuccessAttributes>;
|
|
26
26
|
export type SyncedBlockUpdateSuccessAEP = OperationalAEP<ACTION.UPDATED, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_UPDATE, SyncedBlockSuccessAttributes>;
|
|
27
27
|
export type SyncedBlockDeleteSuccessAEP = OperationalAEP<ACTION.DELETED, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_DELETE, SyncedBlockSuccessAttributes>;
|
|
28
|
-
export type
|
|
28
|
+
export type ReferenceSyncedBlockCreateSuccessAEP = OperationalAEP<ACTION.INSERTED, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.REFERENCE_SYNCED_BLOCK_CREATE, SyncedBlockSuccessAttributes>;
|
|
29
|
+
export type ReferenceSyncedBlockDeleteSuccessAEP = OperationalAEP<ACTION.DELETED, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.REFERENCE_SYNCED_BLOCK_DELETE, SyncedBlockSuccessAttributes>;
|
|
30
|
+
export type SyncBlockEventPayload = SyncedBlockSourceURLErrorAEP | SyncedBlockUpdateCacheErrorAEP | SyncedBlockUpdateErrorAEP | SyncedBlockUpdateSuccessAEP | SyncedBlockCreateErrorAEP | SyncedBlockCreateSuccessAEP | SyncedBlockDeleteErrorAEP | SyncedBlockDeleteSuccessAEP | SyncedBlockGetSourceInfoErrorAEP | SyncedBlockFetchErrorAEP | SyncedBlockFetchSuccessAEP | ReferenceSyncedBlockUpdateErrorAEP | SyncedBlockFetchReferencesErrorAEP | ExperienceEventPayload | ReferenceSyncedBlockCreateSuccessAEP | ReferenceSyncedBlockDeleteSuccessAEP;
|
|
29
31
|
export type RendererSyncBlockEventPayload = SyncedBlockGetSourceInfoErrorAEP | SyncedBlockFetchErrorAEP | SyncedBlockFetchSuccessAEP | ReferenceSyncedBlockUpdateErrorAEP | ExperienceEventPayload;
|
|
30
32
|
export {};
|
|
@@ -90,14 +90,14 @@ export declare class Experience {
|
|
|
90
90
|
/**
|
|
91
91
|
* Creates a new Experience instance for tracking user experiences.
|
|
92
92
|
*
|
|
93
|
-
* @param id - Unique identifier for the experience e.g. '
|
|
93
|
+
* @param id - Unique identifier for the experience e.g. 'toolbarOpen' 'menuAction'
|
|
94
94
|
* @param options - Configuration options for the experience
|
|
95
95
|
* @param options.checks - Experience checks to monitor for completion
|
|
96
96
|
* @param options.dispatchAnalyticsEvent - Function to dispatch analytics events
|
|
97
97
|
* @param options.sampleRate - Sample rate for experienceSampled events
|
|
98
98
|
* @param options.metadata - Global metadata to attach to all events
|
|
99
|
-
* @param options.action - Optional sub identifier for the specific experience action e.g. 'bold' '
|
|
100
|
-
* @param options.actionSubjectId - Optional sub identifier for the experience action subject e.g. '
|
|
99
|
+
* @param options.action - Optional sub identifier for the specific experience action e.g. 'bold' 'insertTable'
|
|
100
|
+
* @param options.actionSubjectId - Optional sub identifier for the experience action subject e.g. 'selectionToolbar' 'quickInsert'
|
|
101
101
|
*/
|
|
102
102
|
constructor(id: ExperienceId, options: ExperienceOptions);
|
|
103
103
|
private startCheck;
|
|
@@ -23,7 +23,7 @@ export type ExperienceCheckDomMutationObserveConfig = {
|
|
|
23
23
|
/**
|
|
24
24
|
* Target element to observe for mutations
|
|
25
25
|
*
|
|
26
|
-
* If null or undefined, the experience will fail with '
|
|
26
|
+
* If null or undefined, the experience will fail with 'domMutationTargetNotFound'.
|
|
27
27
|
*/
|
|
28
28
|
target?: Node | null;
|
|
29
29
|
};
|
|
@@ -37,7 +37,7 @@ export type ExperienceCheckDomMutationConfig = {
|
|
|
37
37
|
*
|
|
38
38
|
* !!IMPORTANT!!
|
|
39
39
|
* Return null if the target element cannot be found.
|
|
40
|
-
* This will immediately fail the experience with experienceFailureReason '
|
|
40
|
+
* This will immediately fail the experience with experienceFailureReason 'domMutationTargetNotFound'.
|
|
41
41
|
*/
|
|
42
42
|
observeConfig: () => ExperienceCheckDomMutationObserveConfig | null;
|
|
43
43
|
/**
|
|
@@ -12,11 +12,11 @@ export declare const EXPERIENCE_FAILURE_REASON: {
|
|
|
12
12
|
/**
|
|
13
13
|
* Target element could not be found when starting DOM mutation observation
|
|
14
14
|
*/
|
|
15
|
-
readonly DOM_MUTATION_TARGET_NOT_FOUND: "
|
|
15
|
+
readonly DOM_MUTATION_TARGET_NOT_FOUND: "domMutationTargetNotFound";
|
|
16
16
|
/**
|
|
17
17
|
* Error occurred during DOM mutation check execution
|
|
18
18
|
*/
|
|
19
|
-
readonly DOM_MUTATION_CHECK_ERROR: "
|
|
19
|
+
readonly DOM_MUTATION_CHECK_ERROR: "domMutationCheckError";
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
22
22
|
* Built-in abort reasons for experiences.
|
|
@@ -44,7 +44,7 @@ export declare const DEFAULT_EXPERIENCE_SAMPLE_RATE = 0.001;
|
|
|
44
44
|
export declare const EXPERIENCE_ID: {
|
|
45
45
|
readonly ASYNC_OPERATION: "asyncOperation";
|
|
46
46
|
readonly MENU_ACTION: "menuAction";
|
|
47
|
-
readonly MENU_OPEN: "
|
|
47
|
+
readonly MENU_OPEN: "menuOpen";
|
|
48
48
|
readonly TOOLBAR_ACTION: "toolbarAction";
|
|
49
|
-
readonly TOOLBAR_OPEN: "
|
|
49
|
+
readonly TOOLBAR_OPEN: "toolbarOpen";
|
|
50
50
|
};
|
|
@@ -8,6 +8,6 @@ export type CustomExperienceMetadata = {
|
|
|
8
8
|
* Represents the state of an experience throughout its lifecycle.
|
|
9
9
|
*/
|
|
10
10
|
export type ExperienceState = 'pending' | 'started' | 'aborted' | 'failed' | 'succeeded';
|
|
11
|
-
declare const EXPERIENCE_IDS: ("asyncOperation" | "menuAction" | "
|
|
11
|
+
declare const EXPERIENCE_IDS: ("asyncOperation" | "menuAction" | "menuOpen" | "toolbarAction" | "toolbarOpen")[];
|
|
12
12
|
export type ExperienceId = typeof EXPERIENCE_IDS[number];
|
|
13
13
|
export {};
|
|
@@ -279,6 +279,16 @@ export declare const syncBlockMessages: {
|
|
|
279
279
|
defaultMessage: string;
|
|
280
280
|
description: string;
|
|
281
281
|
};
|
|
282
|
+
unpublishedSyncBlockPastedTitle: {
|
|
283
|
+
id: string;
|
|
284
|
+
defaultMessage: string;
|
|
285
|
+
description: string;
|
|
286
|
+
};
|
|
287
|
+
unpublishedSyncBlockPastedDescription: {
|
|
288
|
+
id: string;
|
|
289
|
+
defaultMessage: string;
|
|
290
|
+
description: string;
|
|
291
|
+
};
|
|
282
292
|
unsyncButton: {
|
|
283
293
|
id: string;
|
|
284
294
|
defaultMessage: string;
|
|
@@ -118,6 +118,7 @@ export declare enum ACTION {
|
|
|
118
118
|
SYNCED_BLOCK_CREATE = "syncedBlockCreate",
|
|
119
119
|
SYNCED_BLOCK_UPDATE = "syncedBlockUpdate",
|
|
120
120
|
SYNCED_BLOCK_FETCH = "syncedBlockFetch",
|
|
121
|
+
SYNCED_BLOCK_FETCH_REFERENCES = "syncedBlockFetchReferences",
|
|
121
122
|
SYNCED_BLOCK_DELETE = "syncedBlockDelete",
|
|
122
123
|
SYNCED_BLOCK_GET_SOURCE_INFO = "syncedBlockGetSourceInfo",
|
|
123
124
|
SYNCHRONY_DISCONNECTED = "synchronyDisconnected",
|
|
@@ -6,10 +6,10 @@ type SyncedBlockErrorAttributes = {
|
|
|
6
6
|
resourceId?: string;
|
|
7
7
|
};
|
|
8
8
|
type SyncedBlockSuccessAttributes = {
|
|
9
|
+
blockInstanceId?: string;
|
|
9
10
|
resourceId: string;
|
|
10
11
|
};
|
|
11
12
|
type FetchSyncedBlockSuccessAttributes = SyncedBlockSuccessAttributes & {
|
|
12
|
-
blockInstanceId?: string;
|
|
13
13
|
sourceProduct?: string;
|
|
14
14
|
};
|
|
15
15
|
export type SyncedBlockSourceURLErrorAEP = OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_SOURCE_URL, SyncedBlockErrorAttributes>;
|
|
@@ -25,6 +25,8 @@ export type SyncedBlockFetchSuccessAEP = OperationalAEP<ACTION.FETCHED, ACTION_S
|
|
|
25
25
|
export type SyncedBlockCreateSuccessAEP = OperationalAEP<ACTION.INSERTED, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_CREATE, SyncedBlockSuccessAttributes>;
|
|
26
26
|
export type SyncedBlockUpdateSuccessAEP = OperationalAEP<ACTION.UPDATED, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_UPDATE, SyncedBlockSuccessAttributes>;
|
|
27
27
|
export type SyncedBlockDeleteSuccessAEP = OperationalAEP<ACTION.DELETED, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_DELETE, SyncedBlockSuccessAttributes>;
|
|
28
|
-
export type
|
|
28
|
+
export type ReferenceSyncedBlockCreateSuccessAEP = OperationalAEP<ACTION.INSERTED, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.REFERENCE_SYNCED_BLOCK_CREATE, SyncedBlockSuccessAttributes>;
|
|
29
|
+
export type ReferenceSyncedBlockDeleteSuccessAEP = OperationalAEP<ACTION.DELETED, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.REFERENCE_SYNCED_BLOCK_DELETE, SyncedBlockSuccessAttributes>;
|
|
30
|
+
export type SyncBlockEventPayload = SyncedBlockSourceURLErrorAEP | SyncedBlockUpdateCacheErrorAEP | SyncedBlockUpdateErrorAEP | SyncedBlockUpdateSuccessAEP | SyncedBlockCreateErrorAEP | SyncedBlockCreateSuccessAEP | SyncedBlockDeleteErrorAEP | SyncedBlockDeleteSuccessAEP | SyncedBlockGetSourceInfoErrorAEP | SyncedBlockFetchErrorAEP | SyncedBlockFetchSuccessAEP | ReferenceSyncedBlockUpdateErrorAEP | SyncedBlockFetchReferencesErrorAEP | ExperienceEventPayload | ReferenceSyncedBlockCreateSuccessAEP | ReferenceSyncedBlockDeleteSuccessAEP;
|
|
29
31
|
export type RendererSyncBlockEventPayload = SyncedBlockGetSourceInfoErrorAEP | SyncedBlockFetchErrorAEP | SyncedBlockFetchSuccessAEP | ReferenceSyncedBlockUpdateErrorAEP | ExperienceEventPayload;
|
|
30
32
|
export {};
|
|
@@ -90,14 +90,14 @@ export declare class Experience {
|
|
|
90
90
|
/**
|
|
91
91
|
* Creates a new Experience instance for tracking user experiences.
|
|
92
92
|
*
|
|
93
|
-
* @param id - Unique identifier for the experience e.g. '
|
|
93
|
+
* @param id - Unique identifier for the experience e.g. 'toolbarOpen' 'menuAction'
|
|
94
94
|
* @param options - Configuration options for the experience
|
|
95
95
|
* @param options.checks - Experience checks to monitor for completion
|
|
96
96
|
* @param options.dispatchAnalyticsEvent - Function to dispatch analytics events
|
|
97
97
|
* @param options.sampleRate - Sample rate for experienceSampled events
|
|
98
98
|
* @param options.metadata - Global metadata to attach to all events
|
|
99
|
-
* @param options.action - Optional sub identifier for the specific experience action e.g. 'bold' '
|
|
100
|
-
* @param options.actionSubjectId - Optional sub identifier for the experience action subject e.g. '
|
|
99
|
+
* @param options.action - Optional sub identifier for the specific experience action e.g. 'bold' 'insertTable'
|
|
100
|
+
* @param options.actionSubjectId - Optional sub identifier for the experience action subject e.g. 'selectionToolbar' 'quickInsert'
|
|
101
101
|
*/
|
|
102
102
|
constructor(id: ExperienceId, options: ExperienceOptions);
|
|
103
103
|
private startCheck;
|
|
@@ -23,7 +23,7 @@ export type ExperienceCheckDomMutationObserveConfig = {
|
|
|
23
23
|
/**
|
|
24
24
|
* Target element to observe for mutations
|
|
25
25
|
*
|
|
26
|
-
* If null or undefined, the experience will fail with '
|
|
26
|
+
* If null or undefined, the experience will fail with 'domMutationTargetNotFound'.
|
|
27
27
|
*/
|
|
28
28
|
target?: Node | null;
|
|
29
29
|
};
|
|
@@ -37,7 +37,7 @@ export type ExperienceCheckDomMutationConfig = {
|
|
|
37
37
|
*
|
|
38
38
|
* !!IMPORTANT!!
|
|
39
39
|
* Return null if the target element cannot be found.
|
|
40
|
-
* This will immediately fail the experience with experienceFailureReason '
|
|
40
|
+
* This will immediately fail the experience with experienceFailureReason 'domMutationTargetNotFound'.
|
|
41
41
|
*/
|
|
42
42
|
observeConfig: () => ExperienceCheckDomMutationObserveConfig | null;
|
|
43
43
|
/**
|
|
@@ -12,11 +12,11 @@ export declare const EXPERIENCE_FAILURE_REASON: {
|
|
|
12
12
|
/**
|
|
13
13
|
* Target element could not be found when starting DOM mutation observation
|
|
14
14
|
*/
|
|
15
|
-
readonly DOM_MUTATION_TARGET_NOT_FOUND: "
|
|
15
|
+
readonly DOM_MUTATION_TARGET_NOT_FOUND: "domMutationTargetNotFound";
|
|
16
16
|
/**
|
|
17
17
|
* Error occurred during DOM mutation check execution
|
|
18
18
|
*/
|
|
19
|
-
readonly DOM_MUTATION_CHECK_ERROR: "
|
|
19
|
+
readonly DOM_MUTATION_CHECK_ERROR: "domMutationCheckError";
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
22
22
|
* Built-in abort reasons for experiences.
|
|
@@ -44,7 +44,7 @@ export declare const DEFAULT_EXPERIENCE_SAMPLE_RATE = 0.001;
|
|
|
44
44
|
export declare const EXPERIENCE_ID: {
|
|
45
45
|
readonly ASYNC_OPERATION: "asyncOperation";
|
|
46
46
|
readonly MENU_ACTION: "menuAction";
|
|
47
|
-
readonly MENU_OPEN: "
|
|
47
|
+
readonly MENU_OPEN: "menuOpen";
|
|
48
48
|
readonly TOOLBAR_ACTION: "toolbarAction";
|
|
49
|
-
readonly TOOLBAR_OPEN: "
|
|
49
|
+
readonly TOOLBAR_OPEN: "toolbarOpen";
|
|
50
50
|
};
|
|
@@ -8,6 +8,6 @@ export type CustomExperienceMetadata = {
|
|
|
8
8
|
* Represents the state of an experience throughout its lifecycle.
|
|
9
9
|
*/
|
|
10
10
|
export type ExperienceState = 'pending' | 'started' | 'aborted' | 'failed' | 'succeeded';
|
|
11
|
-
declare const EXPERIENCE_IDS: ("asyncOperation" | "menuAction" | "
|
|
11
|
+
declare const EXPERIENCE_IDS: ("asyncOperation" | "menuAction" | "menuOpen" | "toolbarAction" | "toolbarOpen")[];
|
|
12
12
|
export type ExperienceId = typeof EXPERIENCE_IDS[number];
|
|
13
13
|
export {};
|
|
@@ -279,6 +279,16 @@ export declare const syncBlockMessages: {
|
|
|
279
279
|
defaultMessage: string;
|
|
280
280
|
description: string;
|
|
281
281
|
};
|
|
282
|
+
unpublishedSyncBlockPastedTitle: {
|
|
283
|
+
id: string;
|
|
284
|
+
defaultMessage: string;
|
|
285
|
+
description: string;
|
|
286
|
+
};
|
|
287
|
+
unpublishedSyncBlockPastedDescription: {
|
|
288
|
+
id: string;
|
|
289
|
+
defaultMessage: string;
|
|
290
|
+
description: string;
|
|
291
|
+
};
|
|
282
292
|
unsyncButton: {
|
|
283
293
|
id: string;
|
|
284
294
|
defaultMessage: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "111.9.
|
|
3
|
+
"version": "111.9.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/"
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
71
71
|
"@atlaskit/popper": "^7.1.0",
|
|
72
72
|
"@atlaskit/primitives": "^17.1.0",
|
|
73
|
-
"@atlaskit/profilecard": "^24.
|
|
73
|
+
"@atlaskit/profilecard": "^24.33.0",
|
|
74
74
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
75
75
|
"@atlaskit/react-ufo": "^5.0.0",
|
|
76
76
|
"@atlaskit/section-message": "^8.12.0",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@atlaskit/task-decision": "^19.2.0",
|
|
82
82
|
"@atlaskit/textfield": "^8.2.0",
|
|
83
83
|
"@atlaskit/theme": "^21.0.0",
|
|
84
|
-
"@atlaskit/tmp-editor-statsig": "^16.
|
|
84
|
+
"@atlaskit/tmp-editor-statsig": "^16.35.0",
|
|
85
85
|
"@atlaskit/tokens": "^10.1.0",
|
|
86
86
|
"@atlaskit/tooltip": "^20.14.0",
|
|
87
87
|
"@atlaskit/width-detector": "^5.0.0",
|