@atlaskit/renderer 115.1.0 → 116.0.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 +15 -0
- package/dist/cjs/analytics/enums.js +0 -1
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockCopyButton.js +8 -7
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockWrapButton.js +4 -4
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/analytics/enums.js +0 -1
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockCopyButton.js +7 -7
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockWrapButton.js +4 -4
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/analytics/enums.js +0 -1
- package/dist/esm/react/nodes/codeBlock/components/codeBlockCopyButton.js +7 -7
- package/dist/esm/react/nodes/codeBlock/components/codeBlockWrapButton.js +4 -4
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/types/analytics/enums.d.ts +0 -1
- package/dist/types/analytics/events.d.ts +2 -7
- package/dist/types-ts4.5/analytics/enums.d.ts +0 -1
- package/dist/types-ts4.5/analytics/events.d.ts +2 -7
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 116.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#152928](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/152928)
|
|
8
|
+
[`085c1eac95c8f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/085c1eac95c8f) -
|
|
9
|
+
[EDITOR-709] Removed unused analytics enums and types
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#153538](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/153538)
|
|
14
|
+
[`5c7cf4707fb42`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5c7cf4707fb42) -
|
|
15
|
+
[ux] Fix Smart Link AvatarGroup padding
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 115.1.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
|
@@ -14,7 +14,6 @@ var EVENT_TYPE = exports.EVENT_TYPE = /*#__PURE__*/function (EVENT_TYPE) {
|
|
|
14
14
|
var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
|
|
15
15
|
ACTION["STARTED"] = "started";
|
|
16
16
|
ACTION["RENDERED"] = "rendered";
|
|
17
|
-
ACTION["RENDERER_TTI"] = "tti";
|
|
18
17
|
ACTION["CRASHED"] = "unhandledErrorCaught";
|
|
19
18
|
ACTION["INVALID_PROSEMIRROR_DOCUMENT"] = "invalidProsemirrorDocument";
|
|
20
19
|
ACTION["SELECT_ALL_CAUGHT"] = "selectAllCaught";
|
|
@@ -6,20 +6,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
9
|
+
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
|
|
10
|
+
var _messages = require("@atlaskit/editor-common/messages");
|
|
11
|
+
var _copy = _interopRequireDefault(require("@atlaskit/icon/core/migration/copy"));
|
|
12
|
+
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
9
13
|
var _react = require("@emotion/react");
|
|
10
14
|
var _react2 = require("react");
|
|
11
15
|
var _reactIntlNext = require("react-intl-next");
|
|
12
|
-
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
13
|
-
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
|
|
14
|
-
var _copy = _interopRequireDefault(require("@atlaskit/icon/core/migration/copy"));
|
|
15
|
-
var _clipboard = require("../../../utils/clipboard");
|
|
16
|
-
var _messages = require("@atlaskit/editor-common/messages");
|
|
17
|
-
var _enums = require("../../../../analytics/enums");
|
|
18
16
|
var _analyticsContext = _interopRequireDefault(require("../../../../analytics/analyticsContext"));
|
|
17
|
+
var _enums = require("../../../../analytics/enums");
|
|
18
|
+
var _clipboard = require("../../../utils/clipboard");
|
|
19
19
|
/**
|
|
20
20
|
* @jsxRuntime classic
|
|
21
21
|
* @jsx jsx
|
|
22
22
|
*/
|
|
23
|
+
|
|
23
24
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
24
25
|
|
|
25
26
|
var CopyButton = function CopyButton(_ref) {
|
|
@@ -57,7 +58,7 @@ var CopyButton = function CopyButton(_ref) {
|
|
|
57
58
|
}),
|
|
58
59
|
onClick: function onClick(event) {
|
|
59
60
|
fireAnalyticsEvent({
|
|
60
|
-
// @ts-expect-error - Type 'ACTION.CLICKED' is not assignable to type 'ACTION.CLICKED | ACTION.
|
|
61
|
+
// @ts-expect-error - Type 'ACTION.CLICKED' is not assignable to type 'ACTION.CLICKED | ACTION.MEDIA_LINK_TRANSFORMED | ACTION.STARTED | ACTION.TOGGLE_EXPAND | ACTION.UNSUPPORTED_CONTENT_ENCOUNTERED | ACTION.VISITED | ACTION.RENDERED | ACTION.INVALID_PROSEMIRROR_DOCUMENT | ACTION.CRASHED | ... 6 more ... | AnnotationActionType'.
|
|
61
62
|
// This error was introduced after upgrading to TypeScript 5
|
|
62
63
|
action: _enums.ACTION.CLICKED,
|
|
63
64
|
actionSubject: _enums.ACTION_SUBJECT.BUTTON,
|
|
@@ -7,12 +7,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
9
|
var _reactIntlNext = require("react-intl-next");
|
|
10
|
-
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
11
10
|
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
|
|
12
|
-
var _icon = _interopRequireDefault(require("@atlaskit/icon"));
|
|
13
11
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
14
|
-
var
|
|
12
|
+
var _icon = _interopRequireDefault(require("@atlaskit/icon"));
|
|
13
|
+
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
15
14
|
var _analyticsContext = _interopRequireDefault(require("../../../../analytics/analyticsContext"));
|
|
15
|
+
var _enums = require("../../../../analytics/enums");
|
|
16
16
|
/**
|
|
17
17
|
* @jsxRuntime classic
|
|
18
18
|
* @jsx jsx
|
|
@@ -59,7 +59,7 @@ var CodeBlockWrapButton = function CodeBlockWrapButton(_ref) {
|
|
|
59
59
|
isSelected: wrapLongLines,
|
|
60
60
|
onClick: function onClick(event) {
|
|
61
61
|
fireAnalyticsEvent({
|
|
62
|
-
// @ts-expect-error - Type 'ACTION.CLICKED' is not assignable to type 'ACTION.CLICKED | ACTION.
|
|
62
|
+
// @ts-expect-error - Type 'ACTION.CLICKED' is not assignable to type 'ACTION.CLICKED | ACTION.MEDIA_LINK_TRANSFORMED | ACTION.STARTED | ACTION.TOGGLE_EXPAND | ACTION.UNSUPPORTED_CONTENT_ENCOUNTERED | ACTION.VISITED | ACTION.RENDERED | ACTION.INVALID_PROSEMIRROR_DOCUMENT | ACTION.CRASHED | ... 6 more ... | AnnotationActionType'
|
|
63
63
|
// This error was introduced after upgrading to TypeScript 5
|
|
64
64
|
action: _enums.ACTION.CLICKED,
|
|
65
65
|
actionSubject: _enums.ACTION_SUBJECT.BUTTON,
|
|
@@ -63,7 +63,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
63
63
|
var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
64
64
|
var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
65
65
|
var packageName = "@atlaskit/renderer";
|
|
66
|
-
var packageVersion = "
|
|
66
|
+
var packageVersion = "116.0.0";
|
|
67
67
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
68
68
|
containerName: 'ak-renderer-wrapper',
|
|
69
69
|
containerType: 'inline-size'
|
|
@@ -8,7 +8,6 @@ export let EVENT_TYPE = /*#__PURE__*/function (EVENT_TYPE) {
|
|
|
8
8
|
export let ACTION = /*#__PURE__*/function (ACTION) {
|
|
9
9
|
ACTION["STARTED"] = "started";
|
|
10
10
|
ACTION["RENDERED"] = "rendered";
|
|
11
|
-
ACTION["RENDERER_TTI"] = "tti";
|
|
12
11
|
ACTION["CRASHED"] = "unhandledErrorCaught";
|
|
13
12
|
ACTION["INVALID_PROSEMIRROR_DOCUMENT"] = "invalidProsemirrorDocument";
|
|
14
13
|
ACTION["SELECT_ALL_CAUGHT"] = "selectAllCaught";
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
+
import Button from '@atlaskit/button/custom-theme-button';
|
|
6
|
+
import { codeBlockButtonMessages } from '@atlaskit/editor-common/messages';
|
|
7
|
+
import CopyIcon from '@atlaskit/icon/core/migration/copy';
|
|
8
|
+
import Tooltip from '@atlaskit/tooltip';
|
|
5
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
10
|
import { jsx } from '@emotion/react';
|
|
7
11
|
import { useState } from 'react';
|
|
8
12
|
import { injectIntl } from 'react-intl-next';
|
|
9
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
10
|
-
import Button from '@atlaskit/button/custom-theme-button';
|
|
11
|
-
import CopyIcon from '@atlaskit/icon/core/migration/copy';
|
|
12
|
-
import { copyTextToClipboard } from '../../../utils/clipboard';
|
|
13
|
-
import { codeBlockButtonMessages } from '@atlaskit/editor-common/messages';
|
|
14
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../../../analytics/enums';
|
|
15
13
|
import AnalyticsContext from '../../../../analytics/analyticsContext';
|
|
14
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../../../analytics/enums';
|
|
15
|
+
import { copyTextToClipboard } from '../../../utils/clipboard';
|
|
16
16
|
const CopyButton = ({
|
|
17
17
|
content,
|
|
18
18
|
intl
|
|
@@ -43,7 +43,7 @@ const CopyButton = ({
|
|
|
43
43
|
}),
|
|
44
44
|
onClick: event => {
|
|
45
45
|
fireAnalyticsEvent({
|
|
46
|
-
// @ts-expect-error - Type 'ACTION.CLICKED' is not assignable to type 'ACTION.CLICKED | ACTION.
|
|
46
|
+
// @ts-expect-error - Type 'ACTION.CLICKED' is not assignable to type 'ACTION.CLICKED | ACTION.MEDIA_LINK_TRANSFORMED | ACTION.STARTED | ACTION.TOGGLE_EXPAND | ACTION.UNSUPPORTED_CONTENT_ENCOUNTERED | ACTION.VISITED | ACTION.RENDERED | ACTION.INVALID_PROSEMIRROR_DOCUMENT | ACTION.CRASHED | ... 6 more ... | AnnotationActionType'.
|
|
47
47
|
// This error was introduced after upgrading to TypeScript 5
|
|
48
48
|
action: ACTION.CLICKED,
|
|
49
49
|
actionSubject: ACTION_SUBJECT.BUTTON,
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import { injectIntl } from 'react-intl-next';
|
|
8
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
9
8
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
10
|
-
import Icon from '@atlaskit/icon';
|
|
11
9
|
import { codeBlockButtonMessages } from '@atlaskit/editor-common/messages';
|
|
12
|
-
import
|
|
10
|
+
import Icon from '@atlaskit/icon';
|
|
11
|
+
import Tooltip from '@atlaskit/tooltip';
|
|
13
12
|
import AnalyticsContext from '../../../../analytics/analyticsContext';
|
|
13
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../../../analytics/enums';
|
|
14
14
|
const WrapIcon = () => {
|
|
15
15
|
return jsx("svg", {
|
|
16
16
|
width: "24",
|
|
@@ -52,7 +52,7 @@ const CodeBlockWrapButton = ({
|
|
|
52
52
|
isSelected: wrapLongLines,
|
|
53
53
|
onClick: event => {
|
|
54
54
|
fireAnalyticsEvent({
|
|
55
|
-
// @ts-expect-error - Type 'ACTION.CLICKED' is not assignable to type 'ACTION.CLICKED | ACTION.
|
|
55
|
+
// @ts-expect-error - Type 'ACTION.CLICKED' is not assignable to type 'ACTION.CLICKED | ACTION.MEDIA_LINK_TRANSFORMED | ACTION.STARTED | ACTION.TOGGLE_EXPAND | ACTION.UNSUPPORTED_CONTENT_ENCOUNTERED | ACTION.VISITED | ACTION.RENDERED | ACTION.INVALID_PROSEMIRROR_DOCUMENT | ACTION.CRASHED | ... 6 more ... | AnnotationActionType'
|
|
56
56
|
// This error was introduced after upgrading to TypeScript 5
|
|
57
57
|
action: ACTION.CLICKED,
|
|
58
58
|
actionSubject: ACTION_SUBJECT.BUTTON,
|
|
@@ -48,7 +48,7 @@ import { PortalContext } from './PortalContext';
|
|
|
48
48
|
export const NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
49
49
|
export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
50
50
|
const packageName = "@atlaskit/renderer";
|
|
51
|
-
const packageVersion = "
|
|
51
|
+
const packageVersion = "116.0.0";
|
|
52
52
|
const setAsQueryContainerStyles = css({
|
|
53
53
|
containerName: 'ak-renderer-wrapper',
|
|
54
54
|
containerType: 'inline-size'
|
|
@@ -8,7 +8,6 @@ export var EVENT_TYPE = /*#__PURE__*/function (EVENT_TYPE) {
|
|
|
8
8
|
export var ACTION = /*#__PURE__*/function (ACTION) {
|
|
9
9
|
ACTION["STARTED"] = "started";
|
|
10
10
|
ACTION["RENDERED"] = "rendered";
|
|
11
|
-
ACTION["RENDERER_TTI"] = "tti";
|
|
12
11
|
ACTION["CRASHED"] = "unhandledErrorCaught";
|
|
13
12
|
ACTION["INVALID_PROSEMIRROR_DOCUMENT"] = "invalidProsemirrorDocument";
|
|
14
13
|
ACTION["SELECT_ALL_CAUGHT"] = "selectAllCaught";
|
|
@@ -3,17 +3,17 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
3
3
|
* @jsxRuntime classic
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
|
+
import Button from '@atlaskit/button/custom-theme-button';
|
|
7
|
+
import { codeBlockButtonMessages } from '@atlaskit/editor-common/messages';
|
|
8
|
+
import CopyIcon from '@atlaskit/icon/core/migration/copy';
|
|
9
|
+
import Tooltip from '@atlaskit/tooltip';
|
|
6
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
11
|
import { jsx } from '@emotion/react';
|
|
8
12
|
import { useState } from 'react';
|
|
9
13
|
import { injectIntl } from 'react-intl-next';
|
|
10
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
11
|
-
import Button from '@atlaskit/button/custom-theme-button';
|
|
12
|
-
import CopyIcon from '@atlaskit/icon/core/migration/copy';
|
|
13
|
-
import { copyTextToClipboard } from '../../../utils/clipboard';
|
|
14
|
-
import { codeBlockButtonMessages } from '@atlaskit/editor-common/messages';
|
|
15
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../../../analytics/enums';
|
|
16
14
|
import AnalyticsContext from '../../../../analytics/analyticsContext';
|
|
15
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../../../analytics/enums';
|
|
16
|
+
import { copyTextToClipboard } from '../../../utils/clipboard';
|
|
17
17
|
var CopyButton = function CopyButton(_ref) {
|
|
18
18
|
var content = _ref.content,
|
|
19
19
|
intl = _ref.intl;
|
|
@@ -49,7 +49,7 @@ var CopyButton = function CopyButton(_ref) {
|
|
|
49
49
|
}),
|
|
50
50
|
onClick: function onClick(event) {
|
|
51
51
|
fireAnalyticsEvent({
|
|
52
|
-
// @ts-expect-error - Type 'ACTION.CLICKED' is not assignable to type 'ACTION.CLICKED | ACTION.
|
|
52
|
+
// @ts-expect-error - Type 'ACTION.CLICKED' is not assignable to type 'ACTION.CLICKED | ACTION.MEDIA_LINK_TRANSFORMED | ACTION.STARTED | ACTION.TOGGLE_EXPAND | ACTION.UNSUPPORTED_CONTENT_ENCOUNTERED | ACTION.VISITED | ACTION.RENDERED | ACTION.INVALID_PROSEMIRROR_DOCUMENT | ACTION.CRASHED | ... 6 more ... | AnnotationActionType'.
|
|
53
53
|
// This error was introduced after upgrading to TypeScript 5
|
|
54
54
|
action: ACTION.CLICKED,
|
|
55
55
|
actionSubject: ACTION_SUBJECT.BUTTON,
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import { injectIntl } from 'react-intl-next';
|
|
8
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
9
8
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
10
|
-
import Icon from '@atlaskit/icon';
|
|
11
9
|
import { codeBlockButtonMessages } from '@atlaskit/editor-common/messages';
|
|
12
|
-
import
|
|
10
|
+
import Icon from '@atlaskit/icon';
|
|
11
|
+
import Tooltip from '@atlaskit/tooltip';
|
|
13
12
|
import AnalyticsContext from '../../../../analytics/analyticsContext';
|
|
13
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../../../analytics/enums';
|
|
14
14
|
var WrapIcon = function WrapIcon() {
|
|
15
15
|
return jsx("svg", {
|
|
16
16
|
width: "24",
|
|
@@ -51,7 +51,7 @@ var CodeBlockWrapButton = function CodeBlockWrapButton(_ref) {
|
|
|
51
51
|
isSelected: wrapLongLines,
|
|
52
52
|
onClick: function onClick(event) {
|
|
53
53
|
fireAnalyticsEvent({
|
|
54
|
-
// @ts-expect-error - Type 'ACTION.CLICKED' is not assignable to type 'ACTION.CLICKED | ACTION.
|
|
54
|
+
// @ts-expect-error - Type 'ACTION.CLICKED' is not assignable to type 'ACTION.CLICKED | ACTION.MEDIA_LINK_TRANSFORMED | ACTION.STARTED | ACTION.TOGGLE_EXPAND | ACTION.UNSUPPORTED_CONTENT_ENCOUNTERED | ACTION.VISITED | ACTION.RENDERED | ACTION.INVALID_PROSEMIRROR_DOCUMENT | ACTION.CRASHED | ... 6 more ... | AnnotationActionType'
|
|
55
55
|
// This error was introduced after upgrading to TypeScript 5
|
|
56
56
|
action: ACTION.CLICKED,
|
|
57
57
|
actionSubject: ACTION_SUBJECT.BUTTON,
|
|
@@ -53,7 +53,7 @@ import { PortalContext } from './PortalContext';
|
|
|
53
53
|
export var NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
54
54
|
export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
55
55
|
var packageName = "@atlaskit/renderer";
|
|
56
|
-
var packageVersion = "
|
|
56
|
+
var packageVersion = "116.0.0";
|
|
57
57
|
var setAsQueryContainerStyles = css({
|
|
58
58
|
containerName: 'ak-renderer-wrapper',
|
|
59
59
|
containerType: 'inline-size'
|
|
@@ -7,7 +7,6 @@ export declare enum EVENT_TYPE {
|
|
|
7
7
|
export declare enum ACTION {
|
|
8
8
|
STARTED = "started",
|
|
9
9
|
RENDERED = "rendered",
|
|
10
|
-
RENDERER_TTI = "tti",
|
|
11
10
|
CRASHED = "unhandledErrorCaught",
|
|
12
11
|
INVALID_PROSEMIRROR_DOCUMENT = "invalidProsemirrorDocument",
|
|
13
12
|
SELECT_ALL_CAUGHT = "selectAllCaught",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, OperationalAEP } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { AEP } from './enums';
|
|
3
|
-
import type { SEVERITY, UNSUPPORTED_CONTENT_LEVEL_SEVERITY, UnsupportedContentPayload, UnsupportedContentTooltipPayload } from '@atlaskit/editor-common/utils';
|
|
4
3
|
import type { SortOrder } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { SEVERITY, UNSUPPORTED_CONTENT_LEVEL_SEVERITY, UnsupportedContentPayload, UnsupportedContentTooltipPayload } from '@atlaskit/editor-common/utils';
|
|
5
5
|
export declare enum PLATFORM {
|
|
6
6
|
NATIVE = "mobileNative",
|
|
7
7
|
HYBRID = "mobileHybrid",
|
|
@@ -108,12 +108,7 @@ declare enum RESOLVE_METHOD {
|
|
|
108
108
|
}
|
|
109
109
|
type AnnotationAEP = AEP<AnnotationActionType, ACTION_SUBJECT.ANNOTATION, ACTION_SUBJECT_ID.INLINE_COMMENT, AnnotationAEPAttributes, undefined>;
|
|
110
110
|
type MediaLnkTransformedAEP = AEP<ACTION.MEDIA_LINK_TRANSFORMED, ACTION_SUBJECT.RENDERER, undefined, undefined, EVENT_TYPE.OPERATIONAL>;
|
|
111
|
-
type RendererTTIAEP = AEP<ACTION.RENDERER_TTI, ACTION_SUBJECT.RENDERER, undefined, {
|
|
112
|
-
tti: number;
|
|
113
|
-
ttiFromInvocation: number;
|
|
114
|
-
canceled: boolean;
|
|
115
|
-
}, EVENT_TYPE.OPERATIONAL>;
|
|
116
111
|
type NestedTableTransformedAEP = OperationalAEP<ACTION.NESTED_TABLE_TRANSFORMED, ACTION_SUBJECT.RENDERER, undefined, undefined>;
|
|
117
|
-
export type AnalyticsEventPayload<T = void> = RendererStartAEP | RendererRenderedAEP | ComponentCrashErrorAEP | RendererUnsupportedContentLevelsTrackingSucceeded | RendererUnsupportedContentLevelsTrackingErrored | RendererSelectAllCaughtAEP | RendererSelectAllEscapedAEP | CodeBlockCopyAEP | CodeBlockWrapAEP | HeadingAnchorLinkButtonAEP | AnchorLinkAEP | TableSortColumnNotAllowedAEP | TableSortColumnAEP | VisitLinkAEP | VisitMediaLinkAEP | ExpandAEP | UnsupportedContentPayload | UnsupportedContentTooltipPayload | AnnotationAEP | AnnotationDeleteAEP | MediaLnkTransformedAEP | InvalidProsemirrorDocumentErrorAEP |
|
|
112
|
+
export type AnalyticsEventPayload<T = void> = RendererStartAEP | RendererRenderedAEP | ComponentCrashErrorAEP | RendererUnsupportedContentLevelsTrackingSucceeded | RendererUnsupportedContentLevelsTrackingErrored | RendererSelectAllCaughtAEP | RendererSelectAllEscapedAEP | CodeBlockCopyAEP | CodeBlockWrapAEP | HeadingAnchorLinkButtonAEP | AnchorLinkAEP | TableSortColumnNotAllowedAEP | TableSortColumnAEP | VisitLinkAEP | VisitMediaLinkAEP | ExpandAEP | UnsupportedContentPayload | UnsupportedContentTooltipPayload | AnnotationAEP | AnnotationDeleteAEP | MediaLnkTransformedAEP | InvalidProsemirrorDocumentErrorAEP | NestedTableTransformedAEP;
|
|
118
113
|
export type FireAnalyticsCallback = <T = void>(payload: AnalyticsEventPayload<T>) => void | undefined;
|
|
119
114
|
export {};
|
|
@@ -7,7 +7,6 @@ export declare enum EVENT_TYPE {
|
|
|
7
7
|
export declare enum ACTION {
|
|
8
8
|
STARTED = "started",
|
|
9
9
|
RENDERED = "rendered",
|
|
10
|
-
RENDERER_TTI = "tti",
|
|
11
10
|
CRASHED = "unhandledErrorCaught",
|
|
12
11
|
INVALID_PROSEMIRROR_DOCUMENT = "invalidProsemirrorDocument",
|
|
13
12
|
SELECT_ALL_CAUGHT = "selectAllCaught",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, OperationalAEP } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { AEP } from './enums';
|
|
3
|
-
import type { SEVERITY, UNSUPPORTED_CONTENT_LEVEL_SEVERITY, UnsupportedContentPayload, UnsupportedContentTooltipPayload } from '@atlaskit/editor-common/utils';
|
|
4
3
|
import type { SortOrder } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { SEVERITY, UNSUPPORTED_CONTENT_LEVEL_SEVERITY, UnsupportedContentPayload, UnsupportedContentTooltipPayload } from '@atlaskit/editor-common/utils';
|
|
5
5
|
export declare enum PLATFORM {
|
|
6
6
|
NATIVE = "mobileNative",
|
|
7
7
|
HYBRID = "mobileHybrid",
|
|
@@ -108,12 +108,7 @@ declare enum RESOLVE_METHOD {
|
|
|
108
108
|
}
|
|
109
109
|
type AnnotationAEP = AEP<AnnotationActionType, ACTION_SUBJECT.ANNOTATION, ACTION_SUBJECT_ID.INLINE_COMMENT, AnnotationAEPAttributes, undefined>;
|
|
110
110
|
type MediaLnkTransformedAEP = AEP<ACTION.MEDIA_LINK_TRANSFORMED, ACTION_SUBJECT.RENDERER, undefined, undefined, EVENT_TYPE.OPERATIONAL>;
|
|
111
|
-
type RendererTTIAEP = AEP<ACTION.RENDERER_TTI, ACTION_SUBJECT.RENDERER, undefined, {
|
|
112
|
-
tti: number;
|
|
113
|
-
ttiFromInvocation: number;
|
|
114
|
-
canceled: boolean;
|
|
115
|
-
}, EVENT_TYPE.OPERATIONAL>;
|
|
116
111
|
type NestedTableTransformedAEP = OperationalAEP<ACTION.NESTED_TABLE_TRANSFORMED, ACTION_SUBJECT.RENDERER, undefined, undefined>;
|
|
117
|
-
export type AnalyticsEventPayload<T = void> = RendererStartAEP | RendererRenderedAEP | ComponentCrashErrorAEP | RendererUnsupportedContentLevelsTrackingSucceeded | RendererUnsupportedContentLevelsTrackingErrored | RendererSelectAllCaughtAEP | RendererSelectAllEscapedAEP | CodeBlockCopyAEP | CodeBlockWrapAEP | HeadingAnchorLinkButtonAEP | AnchorLinkAEP | TableSortColumnNotAllowedAEP | TableSortColumnAEP | VisitLinkAEP | VisitMediaLinkAEP | ExpandAEP | UnsupportedContentPayload | UnsupportedContentTooltipPayload | AnnotationAEP | AnnotationDeleteAEP | MediaLnkTransformedAEP | InvalidProsemirrorDocumentErrorAEP |
|
|
112
|
+
export type AnalyticsEventPayload<T = void> = RendererStartAEP | RendererRenderedAEP | ComponentCrashErrorAEP | RendererUnsupportedContentLevelsTrackingSucceeded | RendererUnsupportedContentLevelsTrackingErrored | RendererSelectAllCaughtAEP | RendererSelectAllEscapedAEP | CodeBlockCopyAEP | CodeBlockWrapAEP | HeadingAnchorLinkButtonAEP | AnchorLinkAEP | TableSortColumnNotAllowedAEP | TableSortColumnAEP | VisitLinkAEP | VisitMediaLinkAEP | ExpandAEP | UnsupportedContentPayload | UnsupportedContentTooltipPayload | AnnotationAEP | AnnotationDeleteAEP | MediaLnkTransformedAEP | InvalidProsemirrorDocumentErrorAEP | NestedTableTransformedAEP;
|
|
118
113
|
export type FireAnalyticsCallback = <T = void>(payload: AnalyticsEventPayload<T>) => void | undefined;
|
|
119
114
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "116.0.0",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
32
32
|
"@atlaskit/button": "^23.0.0",
|
|
33
33
|
"@atlaskit/code": "^17.1.0",
|
|
34
|
-
"@atlaskit/editor-common": "^
|
|
34
|
+
"@atlaskit/editor-common": "^105.0.0",
|
|
35
35
|
"@atlaskit/editor-json-transformer": "^8.24.0",
|
|
36
36
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
37
37
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@atlaskit/emoji": "^69.1.0",
|
|
41
41
|
"@atlaskit/feature-gate-js-client": "^5.3.0",
|
|
42
42
|
"@atlaskit/icon": "^26.0.0",
|
|
43
|
-
"@atlaskit/link-datasource": "^4.
|
|
43
|
+
"@atlaskit/link-datasource": "^4.10.0",
|
|
44
44
|
"@atlaskit/media-card": "^79.2.0",
|
|
45
45
|
"@atlaskit/media-client": "^33.0.0",
|
|
46
46
|
"@atlaskit/media-client-react": "^4.0.0",
|