@atlaskit/editor-common 105.0.0 → 105.1.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 +8 -0
- package/dist/cjs/ai-messages/ai-experience-application.js +1 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/ai-messages/ai-experience-application.js +1 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/ai-messages/ai-experience-application.js +1 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/api.d.ts +11 -5
- package/dist/types/analytics/index.d.ts +1 -1
- package/dist/types/analytics/types/events.d.ts +2 -3
- package/dist/types-ts4.5/analytics/api.d.ts +11 -5
- package/dist/types-ts4.5/analytics/index.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/events.d.ts +2 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 105.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#149096](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/149096)
|
|
8
|
+
[`831e11ae4484e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/831e11ae4484e) -
|
|
9
|
+
ED-27855 remove duplicate typeahead invoked events
|
|
10
|
+
|
|
3
11
|
## 105.0.0
|
|
4
12
|
|
|
5
13
|
### Major Changes
|
|
@@ -103,6 +103,7 @@ var aiExperienceApplicationMessages = exports.aiExperienceApplicationMessages =
|
|
|
103
103
|
defaultMessage: 'Rovo agents',
|
|
104
104
|
description: 'Heading text to indicate that the next set of features are for agents'
|
|
105
105
|
},
|
|
106
|
+
// Remove when cleaning up editor_ai_converge_free_gen_on_rovo
|
|
106
107
|
useGeneralAiKnowledgeLabel: {
|
|
107
108
|
id: 'fabric.editor.ai.experience.useGeneralAiKnowledgeLabel',
|
|
108
109
|
defaultMessage: 'Use general knowledge',
|
|
@@ -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 && {}.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 = "105.
|
|
20
|
+
var packageVersion = "105.1.0";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// Ignored via go/ees007
|
|
@@ -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 = "105.
|
|
26
|
+
var packageVersion = "105.1.0";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -96,6 +96,7 @@ export const aiExperienceApplicationMessages = defineMessages({
|
|
|
96
96
|
defaultMessage: 'Rovo agents',
|
|
97
97
|
description: 'Heading text to indicate that the next set of features are for agents'
|
|
98
98
|
},
|
|
99
|
+
// Remove when cleaning up editor_ai_converge_free_gen_on_rovo
|
|
99
100
|
useGeneralAiKnowledgeLabel: {
|
|
100
101
|
id: 'fabric.editor.ai.experience.useGeneralAiKnowledgeLabel',
|
|
101
102
|
defaultMessage: 'Use general knowledge',
|
|
@@ -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 = "105.
|
|
4
|
+
const packageVersion = "105.1.0";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
13
13
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
14
14
|
import Layer from '../Layer';
|
|
15
15
|
const packageName = "@atlaskit/editor-common";
|
|
16
|
-
const packageVersion = "105.
|
|
16
|
+
const packageVersion = "105.1.0";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -96,6 +96,7 @@ export var aiExperienceApplicationMessages = defineMessages({
|
|
|
96
96
|
defaultMessage: 'Rovo agents',
|
|
97
97
|
description: 'Heading text to indicate that the next set of features are for agents'
|
|
98
98
|
},
|
|
99
|
+
// Remove when cleaning up editor_ai_converge_free_gen_on_rovo
|
|
99
100
|
useGeneralAiKnowledgeLabel: {
|
|
100
101
|
id: 'fabric.editor.ai.experience.useGeneralAiKnowledgeLabel',
|
|
101
102
|
defaultMessage: 'Use general knowledge',
|
|
@@ -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 = "105.
|
|
10
|
+
var packageVersion = "105.1.0";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
20
20
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
21
21
|
import Layer from '../Layer';
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "105.
|
|
23
|
+
var packageVersion = "105.1.0";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
1
|
+
import type { Transaction, Selection } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import type { AnalyticsEventPayload } from './types/events';
|
|
3
|
+
export type FireAnalyticsEventOptions = {
|
|
4
|
+
immediate?: boolean;
|
|
5
|
+
context?: {
|
|
6
|
+
selection: Selection;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
3
9
|
export type EditorAnalyticsAPI = {
|
|
4
10
|
/**
|
|
5
11
|
* attachAnalyticsEvent is used to attach an analytics payloads to a transaction
|
|
@@ -15,9 +21,9 @@ export type EditorAnalyticsAPI = {
|
|
|
15
21
|
*
|
|
16
22
|
* @param {AnalyticsEventPayload} payload - analytics payload
|
|
17
23
|
* @param {string} [channel="editor"] - optional channel identifier
|
|
18
|
-
* @param {object} [options] - optional options
|
|
24
|
+
* @param {object} [options] - optional options object
|
|
25
|
+
* @param {boolean} [options.immediate] - if true, fire the event immediately
|
|
26
|
+
* @param {object} [options.context] - optional context object will include the selection data.
|
|
19
27
|
*/
|
|
20
|
-
fireAnalyticsEvent: (payload: AnalyticsEventPayload, channel?: string, options?:
|
|
21
|
-
immediate?: boolean;
|
|
22
|
-
}) => void | undefined;
|
|
28
|
+
fireAnalyticsEvent: (payload: AnalyticsEventPayload, channel?: string, options?: FireAnalyticsEventOptions) => void | undefined;
|
|
23
29
|
};
|
|
@@ -36,7 +36,7 @@ export type { OperationalAEP } from './types/utils';
|
|
|
36
36
|
export type { PluginMethodReport, PluginsReport, NodeCount, PluginPerformanceReportData, } from './types/performance-report';
|
|
37
37
|
export type { InitialiseFragmentMarksAEP, ConnectedNodesAEP, DisconnectedSourceAEP, DisconnectedTargetAEP, GotConnectionsAEP, UpdatedFragmentMarkNameAEP, UpdatedSourceAEP, UpdatedTargetAEP, } from './types/referentiality-events';
|
|
38
38
|
export type { ViewInlineCommentsButtonEventAEP, ViewEventPayload } from './types/view-events';
|
|
39
|
-
export type { EditorAnalyticsAPI } from './api';
|
|
39
|
+
export type { EditorAnalyticsAPI, FireAnalyticsEventOptions } from './api';
|
|
40
40
|
export { editorAnalyticsChannel, fireAnalyticsEvent } from './fire-analytics-event';
|
|
41
41
|
export { getAnalyticsEventsFromTransaction } from './utils';
|
|
42
42
|
export { buildEditLinkPayload, buildVisitedLinkPayload, buildVisitedNonHyperLinkPayload, buildOpenedSettingsPayload, unlinkPayload, } from './linking-utils';
|
|
@@ -3,6 +3,7 @@ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
|
3
3
|
import type { EditorState, PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { NewCollabSyncUpErrorAttributes } from '../../collab';
|
|
5
5
|
import type { UnsupportedContentPayload, UnsupportedContentTooltipPayload, UserBrowserExtensionResults } from '../../utils';
|
|
6
|
+
import type { FireAnalyticsEventOptions } from '../api';
|
|
6
7
|
import type { ActiveSessionEventPayload } from './activity-session-events';
|
|
7
8
|
import type { AICommandPaletteEventPayload } from './ai-command-palette-events';
|
|
8
9
|
import type { AIDefinitionsEventPayload } from './ai-definitions-events';
|
|
@@ -156,9 +157,7 @@ type SmartLinkErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.SMART_LIN
|
|
|
156
157
|
export type ErrorEventPayload = InvalidTransactionErrorAEP | InvalidTransactionStepErrorAEP | FailedToUnmountErrorAEP | SynchronyErrorAEP | InvalidDocumentEncounteredAEP | SynchronyEntityErrorAEP | ContentComponentErrorAEP | PickerErrorAEP | ComponentCrashErrorAEP | ComponentCrashAdditionalInfoErrorAEP | SmartLinkErrorAEP;
|
|
157
158
|
export type AnalyticsEventPayloadCallback = (state: EditorState) => AnalyticsEventPayload | undefined;
|
|
158
159
|
export type FireAnalyticsCallback = <T>(payload: FireAnalyticsEventPayload<T>) => void | undefined;
|
|
159
|
-
export type FireAnalyticsEvent = (createAnalyticsEvent?: CreateUIAnalyticsEvent, options?:
|
|
160
|
-
immediate?: boolean;
|
|
161
|
-
}) => FireAnalyticsCallback;
|
|
160
|
+
export type FireAnalyticsEvent = (createAnalyticsEvent?: CreateUIAnalyticsEvent, options?: FireAnalyticsEventOptions) => FireAnalyticsCallback;
|
|
162
161
|
export type FireAnalyticsEventPayload<T = void> = {
|
|
163
162
|
payload: AnalyticsEventPayload<T>;
|
|
164
163
|
channel?: string;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
1
|
+
import type { Transaction, Selection } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import type { AnalyticsEventPayload } from './types/events';
|
|
3
|
+
export type FireAnalyticsEventOptions = {
|
|
4
|
+
immediate?: boolean;
|
|
5
|
+
context?: {
|
|
6
|
+
selection: Selection;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
3
9
|
export type EditorAnalyticsAPI = {
|
|
4
10
|
/**
|
|
5
11
|
* attachAnalyticsEvent is used to attach an analytics payloads to a transaction
|
|
@@ -15,9 +21,9 @@ export type EditorAnalyticsAPI = {
|
|
|
15
21
|
*
|
|
16
22
|
* @param {AnalyticsEventPayload} payload - analytics payload
|
|
17
23
|
* @param {string} [channel="editor"] - optional channel identifier
|
|
18
|
-
* @param {object} [options] - optional options
|
|
24
|
+
* @param {object} [options] - optional options object
|
|
25
|
+
* @param {boolean} [options.immediate] - if true, fire the event immediately
|
|
26
|
+
* @param {object} [options.context] - optional context object will include the selection data.
|
|
19
27
|
*/
|
|
20
|
-
fireAnalyticsEvent: (payload: AnalyticsEventPayload, channel?: string, options?:
|
|
21
|
-
immediate?: boolean;
|
|
22
|
-
}) => void | undefined;
|
|
28
|
+
fireAnalyticsEvent: (payload: AnalyticsEventPayload, channel?: string, options?: FireAnalyticsEventOptions) => void | undefined;
|
|
23
29
|
};
|
|
@@ -36,7 +36,7 @@ export type { OperationalAEP } from './types/utils';
|
|
|
36
36
|
export type { PluginMethodReport, PluginsReport, NodeCount, PluginPerformanceReportData, } from './types/performance-report';
|
|
37
37
|
export type { InitialiseFragmentMarksAEP, ConnectedNodesAEP, DisconnectedSourceAEP, DisconnectedTargetAEP, GotConnectionsAEP, UpdatedFragmentMarkNameAEP, UpdatedSourceAEP, UpdatedTargetAEP, } from './types/referentiality-events';
|
|
38
38
|
export type { ViewInlineCommentsButtonEventAEP, ViewEventPayload } from './types/view-events';
|
|
39
|
-
export type { EditorAnalyticsAPI } from './api';
|
|
39
|
+
export type { EditorAnalyticsAPI, FireAnalyticsEventOptions } from './api';
|
|
40
40
|
export { editorAnalyticsChannel, fireAnalyticsEvent } from './fire-analytics-event';
|
|
41
41
|
export { getAnalyticsEventsFromTransaction } from './utils';
|
|
42
42
|
export { buildEditLinkPayload, buildVisitedLinkPayload, buildVisitedNonHyperLinkPayload, buildOpenedSettingsPayload, unlinkPayload, } from './linking-utils';
|
|
@@ -3,6 +3,7 @@ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
|
3
3
|
import type { EditorState, PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import type { NewCollabSyncUpErrorAttributes } from '../../collab';
|
|
5
5
|
import type { UnsupportedContentPayload, UnsupportedContentTooltipPayload, UserBrowserExtensionResults } from '../../utils';
|
|
6
|
+
import type { FireAnalyticsEventOptions } from '../api';
|
|
6
7
|
import type { ActiveSessionEventPayload } from './activity-session-events';
|
|
7
8
|
import type { AICommandPaletteEventPayload } from './ai-command-palette-events';
|
|
8
9
|
import type { AIDefinitionsEventPayload } from './ai-definitions-events';
|
|
@@ -156,9 +157,7 @@ type SmartLinkErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.SMART_LIN
|
|
|
156
157
|
export type ErrorEventPayload = InvalidTransactionErrorAEP | InvalidTransactionStepErrorAEP | FailedToUnmountErrorAEP | SynchronyErrorAEP | InvalidDocumentEncounteredAEP | SynchronyEntityErrorAEP | ContentComponentErrorAEP | PickerErrorAEP | ComponentCrashErrorAEP | ComponentCrashAdditionalInfoErrorAEP | SmartLinkErrorAEP;
|
|
157
158
|
export type AnalyticsEventPayloadCallback = (state: EditorState) => AnalyticsEventPayload | undefined;
|
|
158
159
|
export type FireAnalyticsCallback = <T>(payload: FireAnalyticsEventPayload<T>) => void | undefined;
|
|
159
|
-
export type FireAnalyticsEvent = (createAnalyticsEvent?: CreateUIAnalyticsEvent, options?:
|
|
160
|
-
immediate?: boolean;
|
|
161
|
-
}) => FireAnalyticsCallback;
|
|
160
|
+
export type FireAnalyticsEvent = (createAnalyticsEvent?: CreateUIAnalyticsEvent, options?: FireAnalyticsEventOptions) => FireAnalyticsCallback;
|
|
162
161
|
export type FireAnalyticsEventPayload<T = void> = {
|
|
163
162
|
payload: AnalyticsEventPayload<T>;
|
|
164
163
|
channel?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "105.
|
|
3
|
+
"version": "105.1.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/"
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
"@atlaskit/task-decision": "^19.2.0",
|
|
167
167
|
"@atlaskit/textfield": "^8.0.0",
|
|
168
168
|
"@atlaskit/theme": "^18.0.0",
|
|
169
|
-
"@atlaskit/tmp-editor-statsig": "^4.
|
|
169
|
+
"@atlaskit/tmp-editor-statsig": "^4.20.0",
|
|
170
170
|
"@atlaskit/tokens": "^4.8.0",
|
|
171
171
|
"@atlaskit/tooltip": "^20.0.0",
|
|
172
172
|
"@atlaskit/width-detector": "^5.0.0",
|