@atlaskit/renderer 124.16.5 → 124.16.7
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 +19 -0
- package/afm-cc/tsconfig.json +0 -3
- package/afm-jira/tsconfig.json +0 -3
- package/afm-products/tsconfig.json +0 -3
- package/dist/cjs/ui/Renderer/RendererStyleContainer.js +1 -1
- package/dist/cjs/ui/Renderer/index.js +3 -1
- package/dist/cjs/ui/hooks/useScrollToLocalId.js +5 -3
- package/dist/es2019/ui/Renderer/RendererStyleContainer.js +1 -1
- package/dist/es2019/ui/Renderer/index.js +3 -1
- package/dist/es2019/ui/hooks/useScrollToLocalId.js +5 -3
- package/dist/esm/ui/Renderer/RendererStyleContainer.js +1 -1
- package/dist/esm/ui/Renderer/index.js +3 -1
- package/dist/esm/ui/hooks/useScrollToLocalId.js +5 -3
- package/dist/types/analytics/events.d.ts +7 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types-ts4.5/analytics/events.d.ts +7 -1
- package/dist/types-ts4.5/index.d.ts +1 -0
- package/package.json +8 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 124.16.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`0cc1855e9071d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0cc1855e9071d) -
|
|
8
|
+
EDITOR-1921 add analytics for sync block provider failures
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 124.16.6
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`e1fb8551a5f6a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e1fb8551a5f6a) -
|
|
16
|
+
ED-29571: Update renderer with support for hash link to block
|
|
17
|
+
- [`f910a750d2d52`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f910a750d2d52) -
|
|
18
|
+
Moving all references to aifc_create_enabled FG over to a new seperately controlled
|
|
19
|
+
platform_editor_ai_aifc_streaming gate
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 124.16.5
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
package/afm-jira/tsconfig.json
CHANGED
|
@@ -1655,7 +1655,7 @@ var RendererStyleContainer = exports.RendererStyleContainer = function RendererS
|
|
|
1655
1655
|
'--ak-renderer-editor-font-heading-h6': "".concat((0, _ugcTokens.editorUGCToken)('editor.font.heading.h6')),
|
|
1656
1656
|
'--ak-renderer-editor-font-normal-text': "".concat((0, _ugcTokens.editorUGCToken)('editor.font.body'))
|
|
1657
1657
|
},
|
|
1658
|
-
css: [baseStyles, hideHeadingCopyLinkWrapperStyles, appearance === 'full-page' && isPreviewPanelResponsivenessOn && rendererFullPageStylesWithReducedPadding, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && rendererFullPageStyles, appearance === 'full-width' && rendererFullWidthStyles, (appearance === 'full-width' || appearance === 'max' && (0, _expValEquals.expValEquals)('editor_tinymce_full_width_mode', 'isEnabled', true)) && !(0, _table.isTableResizingEnabled)(appearance) && rendererFullWidthStylesForTableResizing, appearance === 'max' && (0, _expValEquals.expValEquals)('editor_tinymce_full_width_mode', 'isEnabled', true) && rendererMaxWidthStyles, !(0, _platformFeatureFlags.fg)('
|
|
1658
|
+
css: [baseStyles, hideHeadingCopyLinkWrapperStyles, appearance === 'full-page' && isPreviewPanelResponsivenessOn && rendererFullPageStylesWithReducedPadding, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && rendererFullPageStyles, appearance === 'full-width' && rendererFullWidthStyles, (appearance === 'full-width' || appearance === 'max' && (0, _expValEquals.expValEquals)('editor_tinymce_full_width_mode', 'isEnabled', true)) && !(0, _table.isTableResizingEnabled)(appearance) && rendererFullWidthStylesForTableResizing, appearance === 'max' && (0, _expValEquals.expValEquals)('editor_tinymce_full_width_mode', 'isEnabled', true) && rendererMaxWidthStyles, !(0, _platformFeatureFlags.fg)('platform_editor_ai_aifc_streaming') && telepointerStyles, (0, _platformFeatureFlags.fg)('platform_editor_ai_aifc_streaming') && rovoTelepointerStyles, whitespaceSharedStyles, blockquoteSharedStyles, (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') ? headingsSharedStylesWithEditorUGC : headingsSharedStyles, headingWithAlignmentStyles, ruleSharedStyles, (contentMode === 'compact' || contentMode === 'dense') && isCompactModeSupported && extensionStyle, (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') ? isCompactModeSupported ? paragraphStylesUGCScaledMargin : paragraphSharedStylesWithEditorUGC : isCompactModeSupported ? paragraphSharedStyleScaledMargin : paragraphSharedStyles, listsSharedStyles, browser.gecko && listsSharedStylesForGekko, indentationSharedStyles, (0, _platformFeatureFlags.fg)('platform_editor__renderer_indentation_text_margin') && indentationSharedStylesWithMarginFix, blockMarksSharedStyles, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, textColorStyles, backgroundColorStyles, (0, _expValEquals.expValEquals)('platform_editor_text_highlight_padding', 'isEnabled', true) &&
|
|
1659
1659
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
1660
1660
|
textHighlightPaddingStyles, tasksAndDecisionsStyles, smartCardStyles, smartCardStylesAvatarFix, (0, _experiments.editorExperiment)('platform_editor_preview_panel_linking_exp', true) && headerSmartCardStyles, smartCardStylesAvatarMarginFix, smartCardStylesAvatarListZeroMarginTop, (0, _platformFeatureFlags.fg)('editor_inline_comments_on_inline_nodes') && rendererAnnotationStyles,
|
|
1661
1661
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
@@ -782,7 +782,9 @@ var RendererWithAnnotationSelection = function RendererWithAnnotationSelection(p
|
|
|
782
782
|
var innerRef = props.innerRef || localRef;
|
|
783
783
|
|
|
784
784
|
// @see https://hello.jira.atlassian.cloud/browse/EDITOR-3389
|
|
785
|
-
if (props.appearance === 'max' &&
|
|
785
|
+
if (props.appearance === 'max' &&
|
|
786
|
+
// @ts-expect-error - false is not allowed as an expected value
|
|
787
|
+
(0, _expValEquals.expValEquals)('editor_tinymce_full_width_mode', 'isEnabled', false)) {
|
|
786
788
|
props.appearance = 'full-width';
|
|
787
789
|
}
|
|
788
790
|
if (!allowAnnotations) {
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.useScrollToLocalId = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _browserApis = require("@atlaskit/browser-apis");
|
|
9
|
+
var _blockMenu = require("@atlaskit/editor-common/block-menu");
|
|
9
10
|
// Find editor node dom with localId - similar to confluence useScrollOnUrlChange.ts
|
|
10
11
|
var getLocalIdSelector = function getLocalIdSelector(localId, container) {
|
|
11
12
|
// Check if the element with data-local-id exists
|
|
@@ -45,9 +46,10 @@ var useScrollToLocalId = exports.useScrollToLocalId = function useScrollToLocalI
|
|
|
45
46
|
return;
|
|
46
47
|
}
|
|
47
48
|
|
|
48
|
-
// Parse
|
|
49
|
-
var
|
|
50
|
-
var
|
|
49
|
+
// Parse hash fragment for block ID (format: #block-{localId})
|
|
50
|
+
var hash = window.location.hash;
|
|
51
|
+
var defaultPrefixWithHash = "#".concat(_blockMenu.DEFAULT_BLOCK_LINK_HASH_PREFIX);
|
|
52
|
+
var blockId = hash.startsWith(defaultPrefixWithHash) ? hash.slice(defaultPrefixWithHash.length) : null;
|
|
51
53
|
if (!blockId) {
|
|
52
54
|
return;
|
|
53
55
|
}
|
|
@@ -2078,7 +2078,7 @@ export const RendererStyleContainer = props => {
|
|
|
2078
2078
|
'--ak-renderer-editor-font-heading-h6': `${editorUGCToken('editor.font.heading.h6')}`,
|
|
2079
2079
|
'--ak-renderer-editor-font-normal-text': `${editorUGCToken('editor.font.body')}`
|
|
2080
2080
|
},
|
|
2081
|
-
css: [baseStyles, hideHeadingCopyLinkWrapperStyles, appearance === 'full-page' && isPreviewPanelResponsivenessOn && rendererFullPageStylesWithReducedPadding, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && rendererFullPageStyles, appearance === 'full-width' && rendererFullWidthStyles, (appearance === 'full-width' || appearance === 'max' && expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true)) && !isTableResizingEnabled(appearance) && rendererFullWidthStylesForTableResizing, appearance === 'max' && expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) && rendererMaxWidthStyles, !fg('
|
|
2081
|
+
css: [baseStyles, hideHeadingCopyLinkWrapperStyles, appearance === 'full-page' && isPreviewPanelResponsivenessOn && rendererFullPageStylesWithReducedPadding, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && rendererFullPageStyles, appearance === 'full-width' && rendererFullWidthStyles, (appearance === 'full-width' || appearance === 'max' && expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true)) && !isTableResizingEnabled(appearance) && rendererFullWidthStylesForTableResizing, appearance === 'max' && expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) && rendererMaxWidthStyles, !fg('platform_editor_ai_aifc_streaming') && telepointerStyles, fg('platform_editor_ai_aifc_streaming') && rovoTelepointerStyles, whitespaceSharedStyles, blockquoteSharedStyles, fg('platform_editor_typography_ugc') ? headingsSharedStylesWithEditorUGC : headingsSharedStyles, headingWithAlignmentStyles, ruleSharedStyles, (contentMode === 'compact' || contentMode === 'dense') && isCompactModeSupported && extensionStyle, fg('platform_editor_typography_ugc') ? isCompactModeSupported ? paragraphStylesUGCScaledMargin : paragraphSharedStylesWithEditorUGC : isCompactModeSupported ? paragraphSharedStyleScaledMargin : paragraphSharedStyles, listsSharedStyles, browser.gecko && listsSharedStylesForGekko, indentationSharedStyles, fg('platform_editor__renderer_indentation_text_margin') && indentationSharedStylesWithMarginFix, blockMarksSharedStyles, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, textColorStyles, backgroundColorStyles, expValEquals('platform_editor_text_highlight_padding', 'isEnabled', true) &&
|
|
2082
2082
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
2083
2083
|
textHighlightPaddingStyles, tasksAndDecisionsStyles, smartCardStyles, smartCardStylesAvatarFix, editorExperiment('platform_editor_preview_panel_linking_exp', true) && headerSmartCardStyles, smartCardStylesAvatarMarginFix, smartCardStylesAvatarListZeroMarginTop, fg('editor_inline_comments_on_inline_nodes') && rendererAnnotationStyles,
|
|
2084
2084
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
@@ -769,7 +769,9 @@ const RendererWithAnnotationSelection = props => {
|
|
|
769
769
|
const innerRef = props.innerRef || localRef;
|
|
770
770
|
|
|
771
771
|
// @see https://hello.jira.atlassian.cloud/browse/EDITOR-3389
|
|
772
|
-
if (props.appearance === 'max' &&
|
|
772
|
+
if (props.appearance === 'max' &&
|
|
773
|
+
// @ts-expect-error - false is not allowed as an expected value
|
|
774
|
+
expValEquals('editor_tinymce_full_width_mode', 'isEnabled', false)) {
|
|
773
775
|
props.appearance = 'full-width';
|
|
774
776
|
}
|
|
775
777
|
if (!allowAnnotations) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
2
|
import { getDocument } from '@atlaskit/browser-apis';
|
|
3
|
+
import { DEFAULT_BLOCK_LINK_HASH_PREFIX } from '@atlaskit/editor-common/block-menu';
|
|
3
4
|
|
|
4
5
|
// Find editor node dom with localId - similar to confluence useScrollOnUrlChange.ts
|
|
5
6
|
const getLocalIdSelector = (localId, container) => {
|
|
@@ -40,9 +41,10 @@ export const useScrollToLocalId = (containerRef, shouldScrollToLocalId) => {
|
|
|
40
41
|
return;
|
|
41
42
|
}
|
|
42
43
|
|
|
43
|
-
// Parse
|
|
44
|
-
const
|
|
45
|
-
const
|
|
44
|
+
// Parse hash fragment for block ID (format: #block-{localId})
|
|
45
|
+
const hash = window.location.hash;
|
|
46
|
+
const defaultPrefixWithHash = `#${DEFAULT_BLOCK_LINK_HASH_PREFIX}`;
|
|
47
|
+
const blockId = hash.startsWith(defaultPrefixWithHash) ? hash.slice(defaultPrefixWithHash.length) : null;
|
|
46
48
|
if (!blockId) {
|
|
47
49
|
return;
|
|
48
50
|
}
|
|
@@ -1648,7 +1648,7 @@ export var RendererStyleContainer = function RendererStyleContainer(props) {
|
|
|
1648
1648
|
'--ak-renderer-editor-font-heading-h6': "".concat(editorUGCToken('editor.font.heading.h6')),
|
|
1649
1649
|
'--ak-renderer-editor-font-normal-text': "".concat(editorUGCToken('editor.font.body'))
|
|
1650
1650
|
},
|
|
1651
|
-
css: [baseStyles, hideHeadingCopyLinkWrapperStyles, appearance === 'full-page' && isPreviewPanelResponsivenessOn && rendererFullPageStylesWithReducedPadding, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && rendererFullPageStyles, appearance === 'full-width' && rendererFullWidthStyles, (appearance === 'full-width' || appearance === 'max' && expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true)) && !isTableResizingEnabled(appearance) && rendererFullWidthStylesForTableResizing, appearance === 'max' && expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) && rendererMaxWidthStyles, !fg('
|
|
1651
|
+
css: [baseStyles, hideHeadingCopyLinkWrapperStyles, appearance === 'full-page' && isPreviewPanelResponsivenessOn && rendererFullPageStylesWithReducedPadding, appearance === 'full-page' && !isPreviewPanelResponsivenessOn && rendererFullPageStyles, appearance === 'full-width' && rendererFullWidthStyles, (appearance === 'full-width' || appearance === 'max' && expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true)) && !isTableResizingEnabled(appearance) && rendererFullWidthStylesForTableResizing, appearance === 'max' && expValEquals('editor_tinymce_full_width_mode', 'isEnabled', true) && rendererMaxWidthStyles, !fg('platform_editor_ai_aifc_streaming') && telepointerStyles, fg('platform_editor_ai_aifc_streaming') && rovoTelepointerStyles, whitespaceSharedStyles, blockquoteSharedStyles, fg('platform_editor_typography_ugc') ? headingsSharedStylesWithEditorUGC : headingsSharedStyles, headingWithAlignmentStyles, ruleSharedStyles, (contentMode === 'compact' || contentMode === 'dense') && isCompactModeSupported && extensionStyle, fg('platform_editor_typography_ugc') ? isCompactModeSupported ? paragraphStylesUGCScaledMargin : paragraphSharedStylesWithEditorUGC : isCompactModeSupported ? paragraphSharedStyleScaledMargin : paragraphSharedStyles, listsSharedStyles, browser.gecko && listsSharedStylesForGekko, indentationSharedStyles, fg('platform_editor__renderer_indentation_text_margin') && indentationSharedStylesWithMarginFix, blockMarksSharedStyles, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, textColorStyles, backgroundColorStyles, expValEquals('platform_editor_text_highlight_padding', 'isEnabled', true) &&
|
|
1652
1652
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
1653
1653
|
textHighlightPaddingStyles, tasksAndDecisionsStyles, smartCardStyles, smartCardStylesAvatarFix, editorExperiment('platform_editor_preview_panel_linking_exp', true) && headerSmartCardStyles, smartCardStylesAvatarMarginFix, smartCardStylesAvatarListZeroMarginTop, fg('editor_inline_comments_on_inline_nodes') && rendererAnnotationStyles,
|
|
1654
1654
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
@@ -773,7 +773,9 @@ var RendererWithAnnotationSelection = function RendererWithAnnotationSelection(p
|
|
|
773
773
|
var innerRef = props.innerRef || localRef;
|
|
774
774
|
|
|
775
775
|
// @see https://hello.jira.atlassian.cloud/browse/EDITOR-3389
|
|
776
|
-
if (props.appearance === 'max' &&
|
|
776
|
+
if (props.appearance === 'max' &&
|
|
777
|
+
// @ts-expect-error - false is not allowed as an expected value
|
|
778
|
+
expValEquals('editor_tinymce_full_width_mode', 'isEnabled', false)) {
|
|
777
779
|
props.appearance = 'full-width';
|
|
778
780
|
}
|
|
779
781
|
if (!allowAnnotations) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
2
|
import { getDocument } from '@atlaskit/browser-apis';
|
|
3
|
+
import { DEFAULT_BLOCK_LINK_HASH_PREFIX } from '@atlaskit/editor-common/block-menu';
|
|
3
4
|
|
|
4
5
|
// Find editor node dom with localId - similar to confluence useScrollOnUrlChange.ts
|
|
5
6
|
var getLocalIdSelector = function getLocalIdSelector(localId, container) {
|
|
@@ -40,9 +41,10 @@ export var useScrollToLocalId = function useScrollToLocalId(containerRef, should
|
|
|
40
41
|
return;
|
|
41
42
|
}
|
|
42
43
|
|
|
43
|
-
// Parse
|
|
44
|
-
var
|
|
45
|
-
var
|
|
44
|
+
// Parse hash fragment for block ID (format: #block-{localId})
|
|
45
|
+
var hash = window.location.hash;
|
|
46
|
+
var defaultPrefixWithHash = "#".concat(DEFAULT_BLOCK_LINK_HASH_PREFIX);
|
|
47
|
+
var blockId = hash.startsWith(defaultPrefixWithHash) ? hash.slice(defaultPrefixWithHash.length) : null;
|
|
46
48
|
if (!blockId) {
|
|
47
49
|
return;
|
|
48
50
|
}
|
|
@@ -142,6 +142,12 @@ export type MediaRenderErrorEvent = UIAEP<ACTION.ERRORED, ACTION_SUBJECT.RENDERE
|
|
|
142
142
|
external?: boolean;
|
|
143
143
|
reason: string;
|
|
144
144
|
}>;
|
|
145
|
-
|
|
145
|
+
type SyncedBlockFetchErrorAEP = OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_FETCH, {
|
|
146
|
+
error: string;
|
|
147
|
+
}>;
|
|
148
|
+
type SyncedBlockGetSourceInfoErrorAEP = OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_GET_SOURCE_INFO, {
|
|
149
|
+
error: string;
|
|
150
|
+
}>;
|
|
151
|
+
export type AnalyticsEventPayload<_T = void> = RendererStartAEP | RendererRenderedAEP | ComponentCrashErrorAEP | RendererUnsupportedContentLevelsTrackingSucceeded | RendererUnsupportedContentLevelsTrackingErrored | RendererSelectAllCaughtAEP | RendererSelectAllEscapedAEP | CodeBlockCopyAEP | CodeBlockWrapAEP | HeadingAnchorLinkButtonAEP | HoverLabelAEP | AnchorLinkAEP | TableSortColumnNotAllowedAEP | TableSortColumnAEP | TableWidthInfoAEP | TableRendererHeightInfoAEP | VisitLinkAEP | VisitMediaLinkAEP | ExpandAEP | UnsupportedContentPayload | UnsupportedContentTooltipPayload | AnnotationAEP | AnnotationDeleteAEP | MediaLnkTransformedAEP | InvalidProsemirrorDocumentErrorAEP | NestedTableTransformedAEP | MediaRenderErrorEvent | SyncedBlockFetchErrorAEP | SyncedBlockGetSourceInfoErrorAEP;
|
|
146
152
|
export type FireAnalyticsCallback = <T = void>(payload: AnalyticsEventPayload<T>) => void | undefined;
|
|
147
153
|
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -13,3 +13,4 @@ export { ADFEncoder } from './utils';
|
|
|
13
13
|
export { renderDocument } from './render-document';
|
|
14
14
|
export type { RenderOutputStat } from './render-document';
|
|
15
15
|
export type { MediaSSR } from './types/mediaOptions';
|
|
16
|
+
export type { AnalyticsEventPayload } from './analytics/events';
|
|
@@ -142,6 +142,12 @@ export type MediaRenderErrorEvent = UIAEP<ACTION.ERRORED, ACTION_SUBJECT.RENDERE
|
|
|
142
142
|
external?: boolean;
|
|
143
143
|
reason: string;
|
|
144
144
|
}>;
|
|
145
|
-
|
|
145
|
+
type SyncedBlockFetchErrorAEP = OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_FETCH, {
|
|
146
|
+
error: string;
|
|
147
|
+
}>;
|
|
148
|
+
type SyncedBlockGetSourceInfoErrorAEP = OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_GET_SOURCE_INFO, {
|
|
149
|
+
error: string;
|
|
150
|
+
}>;
|
|
151
|
+
export type AnalyticsEventPayload<_T = void> = RendererStartAEP | RendererRenderedAEP | ComponentCrashErrorAEP | RendererUnsupportedContentLevelsTrackingSucceeded | RendererUnsupportedContentLevelsTrackingErrored | RendererSelectAllCaughtAEP | RendererSelectAllEscapedAEP | CodeBlockCopyAEP | CodeBlockWrapAEP | HeadingAnchorLinkButtonAEP | HoverLabelAEP | AnchorLinkAEP | TableSortColumnNotAllowedAEP | TableSortColumnAEP | TableWidthInfoAEP | TableRendererHeightInfoAEP | VisitLinkAEP | VisitMediaLinkAEP | ExpandAEP | UnsupportedContentPayload | UnsupportedContentTooltipPayload | AnnotationAEP | AnnotationDeleteAEP | MediaLnkTransformedAEP | InvalidProsemirrorDocumentErrorAEP | NestedTableTransformedAEP | MediaRenderErrorEvent | SyncedBlockFetchErrorAEP | SyncedBlockGetSourceInfoErrorAEP;
|
|
146
152
|
export type FireAnalyticsCallback = <T = void>(payload: AnalyticsEventPayload<T>) => void | undefined;
|
|
147
153
|
export {};
|
|
@@ -13,3 +13,4 @@ export { ADFEncoder } from './utils';
|
|
|
13
13
|
export { renderDocument } from './render-document';
|
|
14
14
|
export type { RenderOutputStat } from './render-document';
|
|
15
15
|
export type { MediaSSR } from './types/mediaOptions';
|
|
16
|
+
export type { AnalyticsEventPayload } from './analytics/events';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "124.16.
|
|
3
|
+
"version": "124.16.7",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -36,15 +36,14 @@
|
|
|
36
36
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
37
37
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
38
38
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
39
|
-
"@atlaskit/editor-tables": "^2.9.0",
|
|
40
39
|
"@atlaskit/emoji": "^69.8.0",
|
|
41
40
|
"@atlaskit/feature-gate-js-client": "^5.5.0",
|
|
42
41
|
"@atlaskit/icon": "^29.0.0",
|
|
43
42
|
"@atlaskit/link": "^3.2.0",
|
|
44
43
|
"@atlaskit/link-datasource": "^4.30.0",
|
|
45
44
|
"@atlaskit/link-extractors": "^2.4.0",
|
|
46
|
-
"@atlaskit/linking-common": "^9.
|
|
47
|
-
"@atlaskit/media-card": "^79.
|
|
45
|
+
"@atlaskit/linking-common": "^9.9.0",
|
|
46
|
+
"@atlaskit/media-card": "^79.9.0",
|
|
48
47
|
"@atlaskit/media-client": "^35.6.0",
|
|
49
48
|
"@atlaskit/media-client-react": "^4.1.0",
|
|
50
49
|
"@atlaskit/media-common": "^12.3.0",
|
|
@@ -58,8 +57,8 @@
|
|
|
58
57
|
"@atlaskit/status": "^3.0.0",
|
|
59
58
|
"@atlaskit/task-decision": "^19.2.0",
|
|
60
59
|
"@atlaskit/theme": "^21.0.0",
|
|
61
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
62
|
-
"@atlaskit/tokens": "^8.
|
|
60
|
+
"@atlaskit/tmp-editor-statsig": "^14.1.0",
|
|
61
|
+
"@atlaskit/tokens": "^8.4.0",
|
|
63
62
|
"@atlaskit/tooltip": "^20.10.0",
|
|
64
63
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
65
64
|
"@babel/runtime": "^7.0.0",
|
|
@@ -72,7 +71,7 @@
|
|
|
72
71
|
"uuid": "^3.1.0"
|
|
73
72
|
},
|
|
74
73
|
"peerDependencies": {
|
|
75
|
-
"@atlaskit/editor-common": "^110.
|
|
74
|
+
"@atlaskit/editor-common": "^110.36.0",
|
|
76
75
|
"@atlaskit/link-provider": "^4.0.0",
|
|
77
76
|
"@atlaskit/media-core": "^37.0.0",
|
|
78
77
|
"react": "^18.2.0",
|
|
@@ -83,7 +82,6 @@
|
|
|
83
82
|
"@af/visual-regression": "workspace:^",
|
|
84
83
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
85
84
|
"@atlaskit/checkbox": "^17.1.0",
|
|
86
|
-
"@atlaskit/css-reset": "^7.3.0",
|
|
87
85
|
"@atlaskit/link-provider": "^4.0.0",
|
|
88
86
|
"@atlaskit/link-test-helpers": "^8.5.0",
|
|
89
87
|
"@atlaskit/media-core": "^37.0.0",
|
|
@@ -92,7 +90,7 @@
|
|
|
92
90
|
"@atlaskit/mention": "^24.4.0",
|
|
93
91
|
"@atlaskit/modal-dialog": "^14.7.0",
|
|
94
92
|
"@atlaskit/navigation-next": "patch:@atlaskit/navigation-next@npm%3A9.0.17#~/.yarn/patches/@atlaskit-navigation-next-npm-9.0.17-958ca0ab9d.patch",
|
|
95
|
-
"@atlaskit/profilecard": "^24.
|
|
93
|
+
"@atlaskit/profilecard": "^24.22.0",
|
|
96
94
|
"@atlaskit/util-data-test": "^18.3.0",
|
|
97
95
|
"@atlassian/feature-flags-test-utils": "^1.0.0",
|
|
98
96
|
"@testing-library/react": "^13.4.0",
|
|
@@ -134,7 +132,7 @@
|
|
|
134
132
|
"platform-ssr-table-resize": {
|
|
135
133
|
"type": "boolean"
|
|
136
134
|
},
|
|
137
|
-
"
|
|
135
|
+
"platform_editor_ai_aifc_streaming": {
|
|
138
136
|
"type": "boolean"
|
|
139
137
|
},
|
|
140
138
|
"platform_fix_nested_num_column_scaling": {
|