@atlaskit/editor-common 95.0.0 → 95.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 +9 -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/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/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/types/analytics/index.d.ts +1 -0
- package/dist/types/analytics/types/ai-definitions-events.d.ts +5 -2
- package/dist/types/analytics/types/enums.d.ts +2 -1
- package/dist/types-ts4.5/analytics/index.d.ts +1 -0
- package/dist/types-ts4.5/analytics/types/ai-definitions-events.d.ts +5 -2
- package/dist/types-ts4.5/analytics/types/enums.d.ts +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 95.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#166267](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/166267)
|
|
8
|
+
[`fb6305ddf2788`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fb6305ddf2788) -
|
|
9
|
+
EDF-2000 - Resolve todo, folder structure refactor, add aiDefinitions errored operational event
|
|
10
|
+
that will be fired when there is an error when updating auto-highlights decorations.
|
|
11
|
+
|
|
3
12
|
## 95.0.0
|
|
4
13
|
|
|
5
14
|
### Major Changes
|
|
@@ -268,6 +268,7 @@ var ACTION_SUBJECT = exports.ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJ
|
|
|
268
268
|
ACTION_SUBJECT["ENGAGEMENT_PLATFORM"] = "engagementPlatform";
|
|
269
269
|
ACTION_SUBJECT["MEDIA_VIEWER"] = "mediaViewer";
|
|
270
270
|
ACTION_SUBJECT["DECORATION"] = "decoration";
|
|
271
|
+
ACTION_SUBJECT["AI_DEFINITIONS"] = "aiDefinitions";
|
|
271
272
|
return ACTION_SUBJECT;
|
|
272
273
|
}({});
|
|
273
274
|
var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
@@ -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 = "95.
|
|
20
|
+
var packageVersion = "95.1.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
|
|
@@ -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 = "95.
|
|
27
|
+
var packageVersion = "95.1.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -262,6 +262,7 @@ export let ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
|
|
|
262
262
|
ACTION_SUBJECT["ENGAGEMENT_PLATFORM"] = "engagementPlatform";
|
|
263
263
|
ACTION_SUBJECT["MEDIA_VIEWER"] = "mediaViewer";
|
|
264
264
|
ACTION_SUBJECT["DECORATION"] = "decoration";
|
|
265
|
+
ACTION_SUBJECT["AI_DEFINITIONS"] = "aiDefinitions";
|
|
265
266
|
return ACTION_SUBJECT;
|
|
266
267
|
}({});
|
|
267
268
|
export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
@@ -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 = "95.
|
|
4
|
+
const packageVersion = "95.1.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
|
|
@@ -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 = "95.
|
|
16
|
+
const packageVersion = "95.1.0";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
class DropList extends Component {
|
|
@@ -262,6 +262,7 @@ export var ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
|
|
|
262
262
|
ACTION_SUBJECT["ENGAGEMENT_PLATFORM"] = "engagementPlatform";
|
|
263
263
|
ACTION_SUBJECT["MEDIA_VIEWER"] = "mediaViewer";
|
|
264
264
|
ACTION_SUBJECT["DECORATION"] = "decoration";
|
|
265
|
+
ACTION_SUBJECT["AI_DEFINITIONS"] = "aiDefinitions";
|
|
265
266
|
return ACTION_SUBJECT;
|
|
266
267
|
}({});
|
|
267
268
|
export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
@@ -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 = "95.
|
|
10
|
+
var packageVersion = "95.1.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
|
|
@@ -21,7 +21,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
21
21
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "95.
|
|
24
|
+
var packageVersion = "95.1.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -42,3 +42,4 @@ export { getAnalyticsEventsFromTransaction } from './utils';
|
|
|
42
42
|
export { buildEditLinkPayload, buildVisitedLinkPayload, buildOpenedSettingsPayload, unlinkPayload, } from './linking-utils';
|
|
43
43
|
export type { LinkType } from './linking-utils';
|
|
44
44
|
export type { RequestToEditAEP } from './types/general-events';
|
|
45
|
+
export type { AIDefinitionsEventPayload } from './types/ai-definitions-events';
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { type ACTION, type ACTION_SUBJECT, type ACTION_SUBJECT_ID } from './enums';
|
|
2
|
-
import { type UIAEP } from './utils';
|
|
2
|
+
import { type OperationalAEP, type UIAEP } from './utils';
|
|
3
3
|
type CommonAttributes = {
|
|
4
4
|
readingAidsSessionId: string;
|
|
5
5
|
};
|
|
6
6
|
type DefineButtonClickedAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.BUTTON, ACTION_SUBJECT_ID.AI_DEFINITIONS_DEFINE_BUTTON, CommonAttributes, undefined>;
|
|
7
7
|
type AutoHighlightClickedAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.DECORATION, ACTION_SUBJECT_ID.AI_DEFINITIONS_AUTO_HIGHLIGHT, CommonAttributes, undefined>;
|
|
8
|
-
|
|
8
|
+
type AIDefinitionsErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.AI_DEFINITIONS, ACTION_SUBJECT_ID, {
|
|
9
|
+
errorMessage?: string;
|
|
10
|
+
}>;
|
|
11
|
+
export type AIDefinitionsEventPayload = DefineButtonClickedAEP | AutoHighlightClickedAEP | AIDefinitionsErrorAEP;
|
|
9
12
|
export {};
|
|
@@ -264,7 +264,8 @@ export declare enum ACTION_SUBJECT {
|
|
|
264
264
|
INLINE_DIALOG = "inlineDialog",
|
|
265
265
|
ENGAGEMENT_PLATFORM = "engagementPlatform",
|
|
266
266
|
MEDIA_VIEWER = "mediaViewer",
|
|
267
|
-
DECORATION = "decoration"
|
|
267
|
+
DECORATION = "decoration",
|
|
268
|
+
AI_DEFINITIONS = "aiDefinitions"
|
|
268
269
|
}
|
|
269
270
|
export declare enum ACTION_SUBJECT_ID {
|
|
270
271
|
ACTION = "action",
|
|
@@ -42,3 +42,4 @@ export { getAnalyticsEventsFromTransaction } from './utils';
|
|
|
42
42
|
export { buildEditLinkPayload, buildVisitedLinkPayload, buildOpenedSettingsPayload, unlinkPayload, } from './linking-utils';
|
|
43
43
|
export type { LinkType } from './linking-utils';
|
|
44
44
|
export type { RequestToEditAEP } from './types/general-events';
|
|
45
|
+
export type { AIDefinitionsEventPayload } from './types/ai-definitions-events';
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { type ACTION, type ACTION_SUBJECT, type ACTION_SUBJECT_ID } from './enums';
|
|
2
|
-
import { type UIAEP } from './utils';
|
|
2
|
+
import { type OperationalAEP, type UIAEP } from './utils';
|
|
3
3
|
type CommonAttributes = {
|
|
4
4
|
readingAidsSessionId: string;
|
|
5
5
|
};
|
|
6
6
|
type DefineButtonClickedAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.BUTTON, ACTION_SUBJECT_ID.AI_DEFINITIONS_DEFINE_BUTTON, CommonAttributes, undefined>;
|
|
7
7
|
type AutoHighlightClickedAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.DECORATION, ACTION_SUBJECT_ID.AI_DEFINITIONS_AUTO_HIGHLIGHT, CommonAttributes, undefined>;
|
|
8
|
-
|
|
8
|
+
type AIDefinitionsErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.AI_DEFINITIONS, ACTION_SUBJECT_ID, {
|
|
9
|
+
errorMessage?: string;
|
|
10
|
+
}>;
|
|
11
|
+
export type AIDefinitionsEventPayload = DefineButtonClickedAEP | AutoHighlightClickedAEP | AIDefinitionsErrorAEP;
|
|
9
12
|
export {};
|
|
@@ -264,7 +264,8 @@ export declare enum ACTION_SUBJECT {
|
|
|
264
264
|
INLINE_DIALOG = "inlineDialog",
|
|
265
265
|
ENGAGEMENT_PLATFORM = "engagementPlatform",
|
|
266
266
|
MEDIA_VIEWER = "mediaViewer",
|
|
267
|
-
DECORATION = "decoration"
|
|
267
|
+
DECORATION = "decoration",
|
|
268
|
+
AI_DEFINITIONS = "aiDefinitions"
|
|
268
269
|
}
|
|
269
270
|
export declare enum ACTION_SUBJECT_ID {
|
|
270
271
|
ACTION = "action",
|
package/package.json
CHANGED