@atlaskit/renderer 136.2.5 → 136.2.6

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.
Files changed (166) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/cjs/actions/get-renderer-range-inline-node-names.js +3 -3
  3. package/dist/cjs/actions/index.js +2 -2
  4. package/dist/cjs/react/index.js +5 -5
  5. package/dist/cjs/react/marks/code.js +2 -2
  6. package/dist/cjs/react/marks/link.js +4 -4
  7. package/dist/cjs/react/nodes/TableStickyScrollbar.js +3 -3
  8. package/dist/cjs/react/nodes/blockCard.js +6 -6
  9. package/dist/cjs/react/nodes/bodiedExtension.js +2 -2
  10. package/dist/cjs/react/nodes/codeBlock/codeBlock.js +2 -2
  11. package/dist/cjs/react/nodes/codeBlock/components/codeBlockCopyButton.js +3 -3
  12. package/dist/cjs/react/nodes/codeBlock/components/codeBlockDownloadButton.js +4 -4
  13. package/dist/cjs/react/nodes/codeBlock/components/codeBlockWrapButton.js +3 -3
  14. package/dist/cjs/react/nodes/embedCard.js +7 -7
  15. package/dist/cjs/react/nodes/emoji.js +3 -3
  16. package/dist/cjs/react/nodes/extension.js +3 -3
  17. package/dist/cjs/react/nodes/fallback.js +1 -1
  18. package/dist/cjs/react/nodes/heading-anchor.js +3 -3
  19. package/dist/cjs/react/nodes/heading.js +2 -2
  20. package/dist/cjs/react/nodes/inlineCard.js +9 -9
  21. package/dist/cjs/react/nodes/layoutColumn-compiled.js +2 -2
  22. package/dist/cjs/react/nodes/layoutColumn-emotion.js +2 -2
  23. package/dist/cjs/react/nodes/layoutColumn.js +2 -2
  24. package/dist/cjs/react/nodes/media/index.js +7 -7
  25. package/dist/cjs/react/nodes/mediaGroup.js +2 -2
  26. package/dist/cjs/react/nodes/mediaInline.js +9 -8
  27. package/dist/cjs/react/nodes/mediaSingle/index.js +2 -2
  28. package/dist/cjs/react/nodes/mention.js +2 -2
  29. package/dist/cjs/react/nodes/panel.js +2 -2
  30. package/dist/cjs/react/nodes/status.js +9 -9
  31. package/dist/cjs/react/nodes/table/colgroup.js +4 -4
  32. package/dist/cjs/react/nodes/table/table.js +4 -4
  33. package/dist/cjs/react/nodes/table.js +2 -2
  34. package/dist/cjs/react/nodes/tableNew.js +6 -6
  35. package/dist/cjs/react/nodes/taskItem.js +2 -2
  36. package/dist/cjs/react/utils/EditorMediaClientProvider.js +7 -6
  37. package/dist/cjs/react/utils/getCardClickHandler.js +2 -2
  38. package/dist/cjs/render-document.js +3 -3
  39. package/dist/cjs/steps/index.js +6 -6
  40. package/dist/cjs/text/nodes/status.js +2 -2
  41. package/dist/cjs/ui/Expand.js +6 -6
  42. package/dist/cjs/ui/MediaCard.js +2 -2
  43. package/dist/cjs/ui/Renderer/RendererStyleContainer.js +4 -4
  44. package/dist/cjs/ui/Renderer/breakout-ssr.js +3 -3
  45. package/dist/cjs/ui/Renderer/index.js +11 -11
  46. package/dist/cjs/ui/RendererActionsContext/index.js +7 -7
  47. package/dist/cjs/ui/annotations/element/mark.js +4 -4
  48. package/dist/cjs/ui/annotations/element/useInlineAnnotationProps.js +2 -2
  49. package/dist/cjs/ui/annotations/index.js +2 -2
  50. package/dist/cjs/ui/annotations/selection/mounter.js +2 -2
  51. package/dist/es2019/actions/get-renderer-range-inline-node-names.js +1 -1
  52. package/dist/es2019/actions/index.js +1 -1
  53. package/dist/es2019/react/index.js +1 -1
  54. package/dist/es2019/react/marks/code.js +1 -1
  55. package/dist/es2019/react/marks/link.js +2 -2
  56. package/dist/es2019/react/nodes/TableStickyScrollbar.js +1 -1
  57. package/dist/es2019/react/nodes/blockCard.js +2 -2
  58. package/dist/es2019/react/nodes/bodiedExtension.js +1 -1
  59. package/dist/es2019/react/nodes/codeBlock/codeBlock.js +1 -1
  60. package/dist/es2019/react/nodes/codeBlock/components/codeBlockCopyButton.js +2 -2
  61. package/dist/es2019/react/nodes/codeBlock/components/codeBlockDownloadButton.js +2 -2
  62. package/dist/es2019/react/nodes/codeBlock/components/codeBlockWrapButton.js +2 -2
  63. package/dist/es2019/react/nodes/embedCard.js +3 -3
  64. package/dist/es2019/react/nodes/emoji.js +1 -1
  65. package/dist/es2019/react/nodes/extension.js +1 -1
  66. package/dist/es2019/react/nodes/fallback.js +1 -1
  67. package/dist/es2019/react/nodes/heading-anchor.js +1 -1
  68. package/dist/es2019/react/nodes/heading.js +1 -1
  69. package/dist/es2019/react/nodes/inlineCard.js +3 -3
  70. package/dist/es2019/react/nodes/layoutColumn-compiled.js +1 -1
  71. package/dist/es2019/react/nodes/layoutColumn-emotion.js +1 -1
  72. package/dist/es2019/react/nodes/layoutColumn.js +1 -1
  73. package/dist/es2019/react/nodes/media/index.js +3 -3
  74. package/dist/es2019/react/nodes/mediaGroup.js +1 -1
  75. package/dist/es2019/react/nodes/mediaInline.js +4 -3
  76. package/dist/es2019/react/nodes/mediaSingle/index.js +1 -1
  77. package/dist/es2019/react/nodes/mention.js +1 -1
  78. package/dist/es2019/react/nodes/panel.js +1 -1
  79. package/dist/es2019/react/nodes/status.js +2 -2
  80. package/dist/es2019/react/nodes/table/colgroup.js +1 -1
  81. package/dist/es2019/react/nodes/table/table.js +1 -1
  82. package/dist/es2019/react/nodes/table.js +1 -1
  83. package/dist/es2019/react/nodes/tableNew.js +1 -1
  84. package/dist/es2019/react/nodes/taskItem.js +1 -1
  85. package/dist/es2019/react/utils/EditorMediaClientProvider.js +3 -2
  86. package/dist/es2019/react/utils/getCardClickHandler.js +1 -1
  87. package/dist/es2019/render-document.js +1 -1
  88. package/dist/es2019/steps/index.js +1 -1
  89. package/dist/es2019/text/nodes/status.js +1 -1
  90. package/dist/es2019/ui/Expand.js +2 -2
  91. package/dist/es2019/ui/MediaCard.js +1 -1
  92. package/dist/es2019/ui/Renderer/RendererStyleContainer.js +1 -1
  93. package/dist/es2019/ui/Renderer/breakout-ssr.js +1 -1
  94. package/dist/es2019/ui/Renderer/index.js +3 -3
  95. package/dist/es2019/ui/RendererActionsContext/index.js +3 -3
  96. package/dist/es2019/ui/annotations/element/mark.js +1 -1
  97. package/dist/es2019/ui/annotations/element/useInlineAnnotationProps.js +1 -1
  98. package/dist/es2019/ui/annotations/index.js +1 -1
  99. package/dist/es2019/ui/annotations/selection/mounter.js +1 -1
  100. package/dist/esm/actions/get-renderer-range-inline-node-names.js +1 -1
  101. package/dist/esm/actions/index.js +1 -1
  102. package/dist/esm/react/index.js +1 -1
  103. package/dist/esm/react/marks/code.js +1 -1
  104. package/dist/esm/react/marks/link.js +2 -2
  105. package/dist/esm/react/nodes/TableStickyScrollbar.js +1 -1
  106. package/dist/esm/react/nodes/blockCard.js +2 -2
  107. package/dist/esm/react/nodes/bodiedExtension.js +1 -1
  108. package/dist/esm/react/nodes/codeBlock/codeBlock.js +1 -1
  109. package/dist/esm/react/nodes/codeBlock/components/codeBlockCopyButton.js +2 -2
  110. package/dist/esm/react/nodes/codeBlock/components/codeBlockDownloadButton.js +2 -2
  111. package/dist/esm/react/nodes/codeBlock/components/codeBlockWrapButton.js +2 -2
  112. package/dist/esm/react/nodes/embedCard.js +3 -3
  113. package/dist/esm/react/nodes/emoji.js +1 -1
  114. package/dist/esm/react/nodes/extension.js +1 -1
  115. package/dist/esm/react/nodes/fallback.js +1 -1
  116. package/dist/esm/react/nodes/heading-anchor.js +1 -1
  117. package/dist/esm/react/nodes/heading.js +1 -1
  118. package/dist/esm/react/nodes/inlineCard.js +3 -3
  119. package/dist/esm/react/nodes/layoutColumn-compiled.js +1 -1
  120. package/dist/esm/react/nodes/layoutColumn-emotion.js +1 -1
  121. package/dist/esm/react/nodes/layoutColumn.js +1 -1
  122. package/dist/esm/react/nodes/media/index.js +3 -3
  123. package/dist/esm/react/nodes/mediaGroup.js +1 -1
  124. package/dist/esm/react/nodes/mediaInline.js +4 -3
  125. package/dist/esm/react/nodes/mediaSingle/index.js +1 -1
  126. package/dist/esm/react/nodes/mention.js +1 -1
  127. package/dist/esm/react/nodes/panel.js +1 -1
  128. package/dist/esm/react/nodes/status.js +2 -2
  129. package/dist/esm/react/nodes/table/colgroup.js +1 -1
  130. package/dist/esm/react/nodes/table/table.js +1 -1
  131. package/dist/esm/react/nodes/table.js +1 -1
  132. package/dist/esm/react/nodes/tableNew.js +1 -1
  133. package/dist/esm/react/nodes/taskItem.js +1 -1
  134. package/dist/esm/react/utils/EditorMediaClientProvider.js +3 -2
  135. package/dist/esm/react/utils/getCardClickHandler.js +1 -1
  136. package/dist/esm/render-document.js +1 -1
  137. package/dist/esm/steps/index.js +1 -1
  138. package/dist/esm/text/nodes/status.js +1 -1
  139. package/dist/esm/ui/Expand.js +2 -2
  140. package/dist/esm/ui/MediaCard.js +1 -1
  141. package/dist/esm/ui/Renderer/RendererStyleContainer.js +1 -1
  142. package/dist/esm/ui/Renderer/breakout-ssr.js +1 -1
  143. package/dist/esm/ui/Renderer/index.js +3 -3
  144. package/dist/esm/ui/RendererActionsContext/index.js +3 -3
  145. package/dist/esm/ui/annotations/element/mark.js +1 -1
  146. package/dist/esm/ui/annotations/element/useInlineAnnotationProps.js +1 -1
  147. package/dist/esm/ui/annotations/index.js +1 -1
  148. package/dist/esm/ui/annotations/selection/mounter.js +1 -1
  149. package/dist/types/actions/index.d.ts +2 -2
  150. package/dist/types/react/nodes/codeBlock/codeBlock.d.ts +1 -1
  151. package/dist/types/react/nodes/fallback.d.ts +1 -1
  152. package/dist/types/types/mediaOptions.d.ts +1 -1
  153. package/dist/types/ui/MediaCard.d.ts +1 -1
  154. package/dist/types/ui/Renderer/ErrorBoundary.d.ts +1 -1
  155. package/dist/types/ui/Renderer/rendererHelper.d.ts +1 -1
  156. package/dist/types/ui/annotations/hooks/use-events.d.ts +1 -1
  157. package/dist/types/ui/annotations/hooks/use-load-annotations.d.ts +1 -1
  158. package/dist/types/ui/annotations/hover/mounter.d.ts +1 -1
  159. package/dist/types/ui/annotations/hover/range-validator.d.ts +1 -1
  160. package/dist/types/ui/annotations/selection/mounter.d.ts +1 -1
  161. package/dist/types/ui/annotations/selection/range-validator.d.ts +1 -1
  162. package/dist/types/ui/annotations/types.d.ts +1 -1
  163. package/dist/types/ui/annotations/view/index.d.ts +1 -1
  164. package/dist/types/ui/annotations/wrapper.d.ts +1 -1
  165. package/dist/types/ui/renderer-props.d.ts +1 -1
  166. package/package.json +12 -2
@@ -20,11 +20,11 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
20
20
  import React, { PureComponent, Fragment, useEffect, useState, useMemo } from 'react';
21
21
  /* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
22
22
  import { jsx, css } from '@emotion/react';
23
- import { AnalyticsContext } from '@atlaskit/analytics-next';
24
- import { MEDIA_CONTEXT } from '@atlaskit/analytics-namespaced-context';
23
+ import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
24
+ import { MEDIA_CONTEXT } from '@atlaskit/analytics-namespaced-context/MediaAnalyticsContext';
25
25
  import { WithProviders } from '@atlaskit/editor-common/provider-factory';
26
26
  import { MediaBorderGapFiller } from '@atlaskit/editor-common/ui';
27
- import { fg } from '@atlaskit/platform-feature-flags';
27
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
28
28
  import { MediaCard } from '../../../ui/MediaCard';
29
29
  import { AnnotationMarkStates } from '@atlaskit/adf-schema';
30
30
  import { hexToEditorBorderPaletteColor } from '@atlaskit/editor-palette';
@@ -12,7 +12,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
12
12
  import React, { PureComponent } from 'react';
13
13
  import { defaultImageCardDimensions } from '@atlaskit/media-card';
14
14
  import { FilmstripView } from '@atlaskit/media-filmstrip';
15
- import { fg } from '@atlaskit/platform-feature-flags';
15
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
16
16
  import { VcMediaWrapperProps } from '@atlaskit/react-ufo/vc-media';
17
17
  // Ignored via go/ees005
18
18
  // eslint-disable-next-line @repo/internal/react/no-class-components
@@ -8,12 +8,13 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
8
8
  import { MediaInlineImageCard } from '@atlaskit/editor-common/media-inline';
9
9
  import { useProvider } from '@atlaskit/editor-common/provider-factory';
10
10
  import { MediaInlineCard } from '@atlaskit/media-card';
11
- import { MediaClientContext, getMediaClient } from '@atlaskit/media-client-react';
12
- import { MediaInlineCardLoadingView } from '@atlaskit/media-ui';
11
+ import { MediaClientContext } from '@atlaskit/media-client-react/media-client-provider';
12
+ import { getMediaClient } from '@atlaskit/media-client-react/get-media-client';
13
+ import { MediaInlineCardLoadingView } from '@atlaskit/media-ui/LoadingView';
13
14
  import React, { useCallback, useEffect, useState, useContext } from 'react';
14
15
  import { injectIntl } from 'react-intl';
15
16
  import { getClipboardAttrs, mediaIdentifierMap } from '../../ui/MediaCard';
16
- import { useAnalyticsEvents } from '@atlaskit/analytics-next';
17
+ import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
17
18
  import { ErrorBoundary } from '../../ui/Renderer/ErrorBoundary';
18
19
  import { ACTION_SUBJECT } from '../../analytics/enums';
19
20
  import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
@@ -10,7 +10,7 @@ import { default as React, Fragment, useCallback, useContext, useMemo, useEffect
10
10
  import { css, jsx } from '@emotion/react';
11
11
  import { injectIntl } from 'react-intl';
12
12
  import { MediaSingle as UIMediaSingle, WidthContext } from '@atlaskit/editor-common/ui';
13
- import { fg } from '@atlaskit/platform-feature-flags';
13
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
14
14
  import { akEditorFullWidthLayoutWidth, akEditorDefaultLayoutWidth, akEditorWideLayoutWidth } from '@atlaskit/editor-shared-styles';
15
15
  import { isSSR } from '@atlaskit/editor-common/core-utils';
16
16
  import { FullPagePadding } from '../../../ui/Renderer/style';
@@ -1,6 +1,6 @@
1
1
  import React, { memo } from 'react';
2
2
  import { Mention } from '@atlaskit/editor-common/mention';
3
- import { fg } from '@atlaskit/platform-feature-flags';
3
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
4
4
  import { useInlineAnnotationProps } from '../../ui/annotations/element/useInlineAnnotationProps';
5
5
  var _default_1 = /*#__PURE__*/memo(function MentionItem(props) {
6
6
  var eventHandlers = props.eventHandlers,
@@ -4,7 +4,7 @@ import { PanelInfoIcon, PanelSuccessIcon, PanelNoteIcon, PanelWarningIcon, Panel
4
4
  import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
5
5
  import EmojiIcon from '@atlaskit/icon/core/emoji';
6
6
  import TipIcon from '@atlaskit/icon/core/lightbulb';
7
- import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
7
+ import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
8
8
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
9
9
  import EmojiItem from './emoji';
10
10
  import { PanelStyledCompiled } from './panel-compiled';
@@ -1,8 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { memo } from 'react';
3
3
  import { Status as AkStatus } from '@atlaskit/status/element';
4
- import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
5
- import { fg } from '@atlaskit/platform-feature-flags';
4
+ import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context/FabricElementsAnalyticsContext';
5
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
6
6
  import { useInlineAnnotationProps } from '../../ui/annotations/element/useInlineAnnotationProps';
7
7
  var ANALYTICS_DATA = {
8
8
  userContext: 'document'
@@ -7,7 +7,7 @@ import { WidthContext } from '@atlaskit/editor-common/ui';
7
7
  import { akEditorTableNumberColumnWidth, akEditorTableLegacyCellMinWidth, akEditorTableCellMinWidth } from '@atlaskit/editor-shared-styles';
8
8
  import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
9
9
  import { useRendererContext } from '../../../renderer-context';
10
- import { fg } from '@atlaskit/platform-feature-flags';
10
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
11
11
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
12
12
 
13
13
  // we allow scaling down column widths by no more than 30%
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import { Colgroup, colWidthSum } from './colgroup';
4
4
  import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
5
5
  import { akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles';
6
- import { fg } from '@atlaskit/platform-feature-flags';
6
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
7
7
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
8
8
  import { isTableInContentMode } from '@atlaskit/editor-common/table';
9
9
  import { isContentModeSupported } from './content-mode';
@@ -18,7 +18,7 @@ import { useIntl } from 'react-intl';
18
18
  import { TableSharedCssClassName, tableMarginTop } from '@atlaskit/editor-common/styles';
19
19
  import { tableMessages } from '@atlaskit/editor-common/messages';
20
20
  import { WidthConsumer, overflowShadow } from '@atlaskit/editor-common/ui';
21
- import { fg } from '@atlaskit/platform-feature-flags';
21
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
22
22
  import { createCompareNodes, convertProsemirrorTableNodeToArrayOfRows, hasMergedCell, compose } from '@atlaskit/editor-common/utils';
23
23
  import { SortOrder } from '@atlaskit/editor-common/types';
24
24
  import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorMaxWidthLayoutWidth } from '@atlaskit/editor-shared-styles';
@@ -17,7 +17,7 @@ import React from 'react';
17
17
  import { TableSharedCssClassName, tableMarginTop } from '@atlaskit/editor-common/styles';
18
18
  import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
19
19
  import { FullPagePadding } from '../../ui/Renderer/style';
20
- import { fg } from '@atlaskit/platform-feature-flags';
20
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
21
21
  import { RendererCssClassName } from '../../consts';
22
22
  import { createCompareNodes, convertProsemirrorTableNodeToArrayOfRows, hasMergedCell, compose } from '@atlaskit/editor-common/utils';
23
23
  import { SortOrder } from '@atlaskit/editor-common/types';
@@ -10,7 +10,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
10
10
  import React, { PureComponent } from 'react';
11
11
  import { ProviderFactory, WithProviders } from '@atlaskit/editor-common/provider-factory';
12
12
  import TaskItemWithProviders from './task-item-with-providers';
13
- import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
13
+ import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context/FabricElementsAnalyticsContext';
14
14
  import { TaskItemsFormatProvider, TaskItemsFormatConsumer } from '../../ui/TaskItemsFormatContext/TaskItemsFormatContext';
15
15
  // Ignored via go/ees005
16
16
  // eslint-disable-next-line @repo/internal/react/no-class-components
@@ -1,8 +1,9 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import React, { useContext, useEffect, useLayoutEffect, useMemo, useState } from 'react';
3
- import { MediaClientContext, getMediaClient } from '@atlaskit/media-client-react';
3
+ import { MediaClientContext } from '@atlaskit/media-client-react/media-client-provider';
4
+ import { getMediaClient } from '@atlaskit/media-client-react/get-media-client';
4
5
  import { useProviderFactory, useProviderLayout } from '@atlaskit/editor-common/provider-factory';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
6
7
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
7
8
  var getMediaClientConfigForRenderer = function getMediaClientConfigForRenderer(provider) {
8
9
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
@@ -1,4 +1,4 @@
1
- import { fg } from '@atlaskit/platform-feature-flags';
1
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
2
2
  import { getEventHandler } from '../../utils';
3
3
  export var getCardClickHandler = function getCardClickHandler(eventHandlers, url) {
4
4
  var handler = getEventHandler(eventHandlers, 'smartCard');
@@ -8,7 +8,7 @@ import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/anal
8
8
  import { findAndTrackUnsupportedContentNodes, validateADFEntity } from '@atlaskit/editor-common/utils';
9
9
  import { getValidDocument } from '@atlaskit/editor-common/validator';
10
10
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
11
- import { fg } from '@atlaskit/platform-feature-flags';
11
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
12
12
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
13
13
  import memoizeOne from 'memoize-one';
14
14
  import { PLATFORM } from './analytics/events';
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable jsdoc/require-jsdoc -- internal step helpers */
2
- import { fg } from '@atlaskit/platform-feature-flags';
2
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
3
3
  import { AddMarkStep } from '@atlaskit/editor-prosemirror/transform';
4
4
 
5
5
  // Ignored via go/ees005
@@ -1,5 +1,5 @@
1
1
  import { getText } from '../../utils';
2
- import { fg } from '@atlaskit/platform-feature-flags';
2
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
3
3
  var status = function status(node, _schema) {
4
4
  return node.attrs.text ? node.attrs.style === 'mixedCase' && fg('platform-dst-lozenge-tag-badge-visual-uplifts') ? "[ ".concat(node.attrs.text, " ]") : "[ ".concat(node.attrs.text.toUpperCase(), " ]") : getText(node);
5
5
  };
@@ -12,8 +12,8 @@ import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/anal
12
12
  import { ExpandIconWrapper, ExpandLayoutWrapperWithRef, expandMessages, WidthProvider } from '@atlaskit/editor-common/ui';
13
13
  import { akEditorLineHeight, akEditorSwoopCubicBezier, akLayoutGutterOffset } from '@atlaskit/editor-shared-styles';
14
14
  import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
15
- import Tooltip from '@atlaskit/tooltip';
16
- import { fg } from '@atlaskit/platform-feature-flags';
15
+ import Tooltip from '@atlaskit/tooltip/Tooltip';
16
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
17
17
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
18
18
  import _uniqueId from 'lodash/uniqueId';
19
19
  import { injectIntl } from 'react-intl';
@@ -14,7 +14,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
14
14
  import React, { Component, useContext } from 'react';
15
15
  import { filter } from '@atlaskit/adf-utils/traverse';
16
16
  import { Card as CardAsync, CardSync, CardLoading, CardError } from '@atlaskit/media-card';
17
- import { MediaClientContext } from '@atlaskit/media-client-react';
17
+ import { MediaClientContext } from '@atlaskit/media-client-react/media-client-provider';
18
18
  import { withImageLoader } from '@atlaskit/editor-common/utils';
19
19
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
20
20
  import AnalyticsContext from '../analytics/analyticsContext';
@@ -14,7 +14,7 @@ import { css, jsx } from '@emotion/react'; // oxlint-ignore @typescript-eslint/c
14
14
 
15
15
  import { FullPagePadding } from './style';
16
16
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
17
- import { fg } from '@atlaskit/platform-feature-flags';
17
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
18
18
  import { RendererCssClassName } from '../../consts';
19
19
  import { akEditorCalculatedWideLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorFullPageNarrowBreakout, akEditorGutterPaddingReduced, akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorMaxWidthLayoutWidth, akEditorGutterPadding, akEditorLineHeight, akEditorSelectedNodeClassName, akEditorShadowZIndex, akEditorStickyHeaderZIndex, akEditorTableCellMinWidth, akEditorTableNumberColumnWidth, blockNodesVerticalMargin, scaledBlockNodesVerticalMargin, gridMediumMaxWidth, akEditorFullPageDefaultFontSize, akEditorFullPageDenseFontSize } from '@atlaskit/editor-shared-styles';
20
20
  import { INLINE_IMAGE_WRAPPER_CLASS_NAME } from '@atlaskit/editor-common/media-inline';
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable jsdoc/require-jsdoc -- SSR inline script helpers */
2
2
  import React from 'react';
3
3
  import { breakoutConsts } from '@atlaskit/editor-common/utils';
4
- import { fg } from '@atlaskit/platform-feature-flags';
4
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
5
5
  import { FullPagePadding } from './style';
6
6
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
7
7
  /**
@@ -24,9 +24,9 @@ import { getResponseEndTime } from '@atlaskit/editor-common/performance/navigati
24
24
  import { useScrollToBlock } from '../hooks/useScrollToBlock';
25
25
  import { getAnalyticsAppearance, getAnalyticsEventSeverity, shouldForceTracking } from '@atlaskit/editor-common/utils';
26
26
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
27
- import { fg } from '@atlaskit/platform-feature-flags';
27
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
28
28
  import { FabricChannel } from '@atlaskit/analytics-listeners/types';
29
- import { FabricEditorAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
29
+ import { FabricEditorAnalyticsContext } from '@atlaskit/analytics-namespaced-context/FabricEditorAnalyticsContext';
30
30
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
31
31
  import { normalizeFeatureFlags } from '@atlaskit/editor-common/normalize-feature-flags';
32
32
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
@@ -65,7 +65,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
65
65
  var TABLE_INFO_TIMEOUT = 10000;
66
66
  var RENDER_EVENT_SAMPLE_RATE = 0.1;
67
67
  var packageName = "@atlaskit/renderer";
68
- var packageVersion = "136.2.4";
68
+ var packageVersion = "136.2.5";
69
69
  var setAsQueryContainerStyles = css({
70
70
  containerName: 'ak-renderer-wrapper',
71
71
  containerType: 'inline-size'
@@ -1,8 +1,8 @@
1
1
  /* eslint-disable jsdoc/require-jsdoc */
2
2
  import React, { useMemo } from 'react';
3
- import { fg } from '@atlaskit/platform-feature-flags';
4
- import { useAnalyticsEvents } from '@atlaskit/analytics-next';
5
- import { FabricChannel } from '@atlaskit/analytics-listeners';
3
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
4
+ import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
5
+ import { FabricChannel } from '@atlaskit/analytics-listeners/types';
6
6
  import { EVENT_TYPE } from '@atlaskit/editor-common/analytics';
7
7
  import RendererActions from '../../actions/index';
8
8
  export var RendererContext = /*#__PURE__*/React.createContext(new RendererActions());
@@ -11,7 +11,7 @@ import { useMemo, useCallback } from 'react';
11
11
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
12
12
  import { css, jsx } from '@emotion/react';
13
13
  import { AnnotationMarkStates } from '@atlaskit/adf-schema';
14
- import { fg } from '@atlaskit/platform-feature-flags';
14
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
15
15
  import { useIntl } from 'react-intl';
16
16
  import { inlineCommentMessages } from '../../../messages';
17
17
  import { useAnnotationManagerDispatch, useAnnotationManagerState } from '../contexts/AnnotationManagerContext';
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable jsdoc/require-jsdoc */
2
- import { fg } from '@atlaskit/platform-feature-flags';
2
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
3
3
  import { useAnnotationRangeState } from '../contexts/AnnotationRangeContext';
4
4
  export function useInlineAnnotationProps(props) {
5
5
  var _useAnnotationRangeSt = useAnnotationRangeState(),
@@ -5,7 +5,7 @@ import { AnnotationsContextWrapper } from './wrapper';
5
5
  import { ProvidersContext, InlineCommentsStateContext } from './context';
6
6
  import { useLoadAnnotations } from './hooks/use-load-annotations';
7
7
  import { useAnnotationStateByTypeEvent } from './hooks/use-events';
8
- import { useAnalyticsEvents } from '@atlaskit/analytics-next';
8
+ import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
9
9
  import { AnnotationRangeProvider } from './contexts/AnnotationRangeContext';
10
10
  import { AnnotationHoverContext } from './contexts/AnnotationHoverContext';
11
11
  import { AnnotationManagerProvider } from './contexts/AnnotationManagerContext';
@@ -1,6 +1,6 @@
1
1
  import React, { useCallback, useContext, useMemo, useEffect } from 'react';
2
2
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
3
- import { fg } from '@atlaskit/platform-feature-flags';
3
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
4
4
 
5
5
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
6
6
  import uuid from 'uuid/v4';
@@ -1,8 +1,8 @@
1
1
  import { AnnotationTypes } from '@atlaskit/adf-schema';
2
2
  import type { AnnotationActionResult, AnnotationByMatches, SelectionContext } from '@atlaskit/editor-common/types';
3
- import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
3
+ import type { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
4
4
  import type { Mark, Node, Schema } from '@atlaskit/editor-prosemirror/model';
5
- import type { Step } from '@atlaskit/editor-prosemirror/transform';
5
+ import type { Step } from '@atlaskit/editor-prosemirror/transform-override';
6
6
  import { RemoveMarkStep, RemoveNodeMarkStep } from '@atlaskit/editor-prosemirror/transform';
7
7
  import type { AnalyticsEventPayload } from '../analytics/events';
8
8
  type ActionResult = {
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { type ComponentType, type FC } from 'react';
6
6
  import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
7
- import type { SupportedLanguages } from '@atlaskit/code';
7
+ import type { SupportedLanguages } from '@atlaskit/code/constants';
8
8
  export interface Props {
9
9
  allowCopyToClipboard?: boolean;
10
10
  allowDownloadCodeBlock?: boolean;
@@ -16,8 +16,8 @@ export declare class CardErrorBoundary extends React.PureComponent<{
16
16
  };
17
17
  onClickFallback: (e: React.MouseEvent<HTMLElement>) => void;
18
18
  static getDerivedStateFromError(error: Error): {
19
- isError: boolean;
20
19
  error: Error;
20
+ isError: boolean;
21
21
  };
22
22
  render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
23
23
  componentDidCatch(_error: Error): void;
@@ -1,4 +1,4 @@
1
- import type { MediaClientConfig } from '@atlaskit/media-core';
1
+ import type { MediaClientConfig } from '@atlaskit/media-core/auth';
2
2
  import type { MediaFeatureFlags, SSR } from '@atlaskit/media-common';
3
3
  import type { MediaViewerExtensions } from '@atlaskit/media-viewer';
4
4
  export type MediaSSR = {
@@ -1,7 +1,7 @@
1
1
  import React, { Component } from 'react';
2
2
  import type { ADFEntity } from '@atlaskit/adf-utils/types';
3
3
  import type { CardAppearance, CardDimensions, CardOnClickCallback, NumericalCardDimensions } from '@atlaskit/media-card';
4
- import type { MediaClientConfig } from '@atlaskit/media-core';
4
+ import type { MediaClientConfig } from '@atlaskit/media-core/auth';
5
5
  import type { ImageResizeMode, Identifier, FileState, MediaClient } from '@atlaskit/media-client';
6
6
  import type { MediaType } from '@atlaskit/adf-schema';
7
7
  import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
+ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
3
3
  import type { ComponentCrashErrorAEP } from '../../analytics/events';
4
4
  interface ErrorBoundaryProps {
5
5
  additionalInfo?: string;
@@ -1,2 +1,2 @@
1
- import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
1
+ import type { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
2
2
  export declare const removeEmptySpaceAroundContent: (document: JSONDocNode) => JSONDocNode;
@@ -1,7 +1,7 @@
1
1
  import type { InlineCommentViewComponentProps, AnnotationUpdateEmitter } from '@atlaskit/editor-common/types';
2
2
  import type { AnnotationMarkStates, AnnotationId } from '@atlaskit/adf-schema';
3
3
  import { AnnotationTypes } from '@atlaskit/adf-schema';
4
- import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
4
+ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
5
5
  type ListenEventProps = {
6
6
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
7
7
  id: AnnotationId;
@@ -1,4 +1,4 @@
1
- import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
1
+ import type { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
2
2
  export type LoadCompleteHandler = (params: {
3
3
  numberOfUnresolvedInlineComments: number;
4
4
  }) => void;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import type { AnnotationByMatches, InlineCommentHoverComponentProps } from '@atlaskit/editor-common/types';
3
3
  import type { ApplyAnnotation } from '../../../actions/index';
4
4
  import type { Position } from '../types';
5
- import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
5
+ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
6
6
  type Props = {
7
7
  applyAnnotation: ApplyAnnotation;
8
8
  component: React.ComponentType<InlineCommentHoverComponentProps>;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { InlineCommentHoverComponentProps } from '@atlaskit/editor-common/types';
3
- import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
3
+ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
4
4
  type Props = {
5
5
  component: React.ComponentType<InlineCommentHoverComponentProps>;
6
6
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import type { AnnotationByMatches, InlineCommentSelectionComponentProps } from '@atlaskit/editor-common/types';
3
3
  import type { ApplyAnnotation } from '../../../actions/index';
4
4
  import type { Position } from '../types';
5
- import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
5
+ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
6
6
  type Props = {
7
7
  applyAnnotation: ApplyAnnotation;
8
8
  component: React.ComponentType<React.PropsWithChildren<InlineCommentSelectionComponentProps>>;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { InlineCommentSelectionComponentProps } from '@atlaskit/editor-common/types';
3
- import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
3
+ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
4
4
  type Props = {
5
5
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
6
6
  rendererRef: React.RefObject<HTMLDivElement>;
@@ -1,4 +1,4 @@
1
- import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
1
+ import type { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
2
2
  import type { AnnotationProviders } from '@atlaskit/editor-common/types';
3
3
  export declare enum InsertDraftPosition {
4
4
  AROUND_TEXT = "AROUND_TEXT",
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
+ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
3
3
  type Props = {
4
4
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
5
5
  isNestedRender: boolean;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
+ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
3
3
  type Props = {
4
4
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
5
5
  isNestedRender?: boolean;
@@ -1,5 +1,5 @@
1
1
  import type { DocNode } from '@atlaskit/adf-schema';
2
- import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
+ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
3
3
  import type { ExtensionHandlers, ExtensionParams, Parameters } from '@atlaskit/editor-common/extensions';
4
4
  import type { GetPMNodeHeight } from '@atlaskit/editor-common/extensibility';
5
5
  import type { MentionNodeDataProvider } from '@atlaskit/editor-common/mention';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "136.2.5",
3
+ "version": "136.2.6",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -53,7 +53,7 @@
53
53
  "@atlaskit/link-datasource": "^6.7.0",
54
54
  "@atlaskit/link-extractors": "^4.1.0",
55
55
  "@atlaskit/linking-common": "^12.0.0",
56
- "@atlaskit/media-card": "^81.7.0",
56
+ "@atlaskit/media-card": "^81.8.0",
57
57
  "@atlaskit/media-client": "^37.5.0",
58
58
  "@atlaskit/media-client-react": "^6.2.0",
59
59
  "@atlaskit/media-common": "^14.5.0",
@@ -93,10 +93,14 @@
93
93
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
94
94
  },
95
95
  "devDependencies": {
96
+ "@af/editor-examples-helpers": "workspace:^",
96
97
  "@af/integration-testing": "workspace:^",
97
98
  "@af/visual-regression": "workspace:^",
98
99
  "@atlaskit/analytics-gas-types": "^6.0.0",
99
100
  "@atlaskit/checkbox": "^19.1.0",
101
+ "@atlaskit/editor-plugin-media": "^17.2.0",
102
+ "@atlaskit/editor-test-helpers": "workspace:^",
103
+ "@atlaskit/inline-edit": "^16.3.0",
100
104
  "@atlaskit/link-provider": "^5.4.0",
101
105
  "@atlaskit/link-test-helpers": "^11.1.0",
102
106
  "@atlaskit/media-core": "^38.0.0",
@@ -105,8 +109,14 @@
105
109
  "@atlaskit/mention": "^27.18.0",
106
110
  "@atlaskit/modal-dialog": "^16.5.0",
107
111
  "@atlaskit/navigation-system": "^10.16.0",
112
+ "@atlaskit/primitives": "^22.4.0",
108
113
  "@atlaskit/profilecard": "^26.19.0",
114
+ "@atlaskit/radio": "^10.1.0",
115
+ "@atlaskit/range": "^12.1.0",
116
+ "@atlaskit/section-message": "^10.1.0",
109
117
  "@atlaskit/side-nav-items": "^2.3.0",
118
+ "@atlaskit/textfield": "^10.1.0",
119
+ "@atlaskit/toggle": "^17.2.0",
110
120
  "@atlaskit/util-data-test": "^19.1.0",
111
121
  "@atlassian/a11y-jest-testing": "^0.17.0",
112
122
  "@atlassian/a11y-playwright-testing": "^0.12.0",