@atlaskit/renderer 130.2.9 → 130.2.11

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 (129) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/actions/index.js +3 -6
  3. package/dist/cjs/react/marks/alignment.js +1 -1
  4. package/dist/cjs/react/marks/border.js +1 -1
  5. package/dist/cjs/react/marks/breakout.js +1 -1
  6. package/dist/cjs/react/marks/code.js +3 -1
  7. package/dist/cjs/react/marks/link.js +1 -1
  8. package/dist/cjs/react/nodes/blockCard.js +1 -1
  9. package/dist/cjs/react/nodes/codeBlock/codeBlock.js +2 -1
  10. package/dist/cjs/react/nodes/codeBlock/components/codeBlockButtonContainer.js +1 -1
  11. package/dist/cjs/react/nodes/codeBlock/components/codeBlockContainer.js +1 -1
  12. package/dist/cjs/react/nodes/codeBlock/components/codeBlockCopyButton.js +2 -1
  13. package/dist/cjs/react/nodes/codeBlock/components/codeBlockWrapButton.js +2 -1
  14. package/dist/cjs/react/nodes/codeBlock/windowedCodeBlock.js +1 -1
  15. package/dist/cjs/react/nodes/date.js +2 -0
  16. package/dist/cjs/react/nodes/embedCard.js +1 -1
  17. package/dist/cjs/react/nodes/emoji.js +2 -1
  18. package/dist/cjs/react/nodes/extensionFrame.js +1 -1
  19. package/dist/cjs/react/nodes/heading-anchor.js +3 -2
  20. package/dist/cjs/react/nodes/layoutColumn.js +1 -1
  21. package/dist/cjs/react/nodes/media/index.js +1 -1
  22. package/dist/cjs/react/nodes/mediaInline.js +4 -1
  23. package/dist/cjs/react/nodes/mediaSingle/index.js +4 -1
  24. package/dist/cjs/react/nodes/mention.js +3 -2
  25. package/dist/cjs/react/nodes/multiBodiedExtension.js +1 -1
  26. package/dist/cjs/react/nodes/panel.js +1 -1
  27. package/dist/cjs/react/nodes/status.js +3 -2
  28. package/dist/cjs/react/nodes/table/sticky.js +1 -3
  29. package/dist/cjs/react/nodes/tableNew.js +3 -1
  30. package/dist/cjs/react/utils/getCardClickHandler.js +1 -0
  31. package/dist/cjs/renderer-context.js +2 -0
  32. package/dist/cjs/ui/Renderer/index.js +1 -1
  33. package/dist/es2019/actions/index.js +1 -3
  34. package/dist/es2019/react/marks/alignment.js +1 -1
  35. package/dist/es2019/react/marks/border.js +1 -1
  36. package/dist/es2019/react/marks/breakout.js +2 -2
  37. package/dist/es2019/react/marks/code.js +3 -1
  38. package/dist/es2019/react/marks/link.js +2 -2
  39. package/dist/es2019/react/nodes/blockCard.js +2 -2
  40. package/dist/es2019/react/nodes/codeBlock/codeBlock.js +2 -1
  41. package/dist/es2019/react/nodes/codeBlock/components/codeBlockButtonContainer.js +1 -1
  42. package/dist/es2019/react/nodes/codeBlock/components/codeBlockContainer.js +1 -1
  43. package/dist/es2019/react/nodes/codeBlock/components/codeBlockCopyButton.js +2 -1
  44. package/dist/es2019/react/nodes/codeBlock/components/codeBlockWrapButton.js +2 -1
  45. package/dist/es2019/react/nodes/codeBlock/windowedCodeBlock.js +1 -1
  46. package/dist/es2019/react/nodes/date.js +2 -0
  47. package/dist/es2019/react/nodes/embedCard.js +2 -2
  48. package/dist/es2019/react/nodes/emoji.js +2 -1
  49. package/dist/es2019/react/nodes/extensionFrame.js +1 -1
  50. package/dist/es2019/react/nodes/heading-anchor.js +4 -1
  51. package/dist/es2019/react/nodes/layoutColumn.js +1 -1
  52. package/dist/es2019/react/nodes/media/index.js +1 -1
  53. package/dist/es2019/react/nodes/mediaInline.js +4 -1
  54. package/dist/es2019/react/nodes/mediaSingle/index.js +4 -1
  55. package/dist/es2019/react/nodes/mention.js +3 -2
  56. package/dist/es2019/react/nodes/multiBodiedExtension.js +1 -1
  57. package/dist/es2019/react/nodes/panel.js +2 -2
  58. package/dist/es2019/react/nodes/status.js +3 -2
  59. package/dist/es2019/react/nodes/table/sticky.js +2 -4
  60. package/dist/es2019/react/nodes/tableNew.js +3 -1
  61. package/dist/es2019/react/utils/getCardClickHandler.js +2 -0
  62. package/dist/es2019/renderer-context.js +2 -0
  63. package/dist/es2019/ui/Renderer/index.js +1 -1
  64. package/dist/esm/actions/index.js +3 -6
  65. package/dist/esm/react/marks/alignment.js +1 -1
  66. package/dist/esm/react/marks/border.js +1 -1
  67. package/dist/esm/react/marks/breakout.js +2 -2
  68. package/dist/esm/react/marks/code.js +3 -1
  69. package/dist/esm/react/marks/link.js +2 -2
  70. package/dist/esm/react/nodes/blockCard.js +2 -2
  71. package/dist/esm/react/nodes/codeBlock/codeBlock.js +2 -1
  72. package/dist/esm/react/nodes/codeBlock/components/codeBlockButtonContainer.js +1 -1
  73. package/dist/esm/react/nodes/codeBlock/components/codeBlockContainer.js +1 -1
  74. package/dist/esm/react/nodes/codeBlock/components/codeBlockCopyButton.js +2 -1
  75. package/dist/esm/react/nodes/codeBlock/components/codeBlockWrapButton.js +2 -1
  76. package/dist/esm/react/nodes/codeBlock/windowedCodeBlock.js +1 -1
  77. package/dist/esm/react/nodes/date.js +2 -0
  78. package/dist/esm/react/nodes/embedCard.js +2 -2
  79. package/dist/esm/react/nodes/emoji.js +2 -1
  80. package/dist/esm/react/nodes/extensionFrame.js +1 -1
  81. package/dist/esm/react/nodes/heading-anchor.js +3 -2
  82. package/dist/esm/react/nodes/layoutColumn.js +1 -1
  83. package/dist/esm/react/nodes/media/index.js +1 -1
  84. package/dist/esm/react/nodes/mediaInline.js +4 -1
  85. package/dist/esm/react/nodes/mediaSingle/index.js +4 -1
  86. package/dist/esm/react/nodes/mention.js +3 -2
  87. package/dist/esm/react/nodes/multiBodiedExtension.js +1 -1
  88. package/dist/esm/react/nodes/panel.js +2 -2
  89. package/dist/esm/react/nodes/status.js +3 -2
  90. package/dist/esm/react/nodes/table/sticky.js +2 -4
  91. package/dist/esm/react/nodes/tableNew.js +3 -1
  92. package/dist/esm/react/utils/getCardClickHandler.js +2 -0
  93. package/dist/esm/renderer-context.js +2 -0
  94. package/dist/esm/ui/Renderer/index.js +1 -1
  95. package/dist/types/actions/index.d.ts +1 -1
  96. package/dist/types/react/hooks/use-in-viewport.d.ts +2 -1
  97. package/dist/types/react/marks/code.d.ts +6 -6
  98. package/dist/types/react/nodes/codeBlock/codeBlock.d.ts +9 -4
  99. package/dist/types/react/nodes/codeBlock/components/codeBlockCopyButton.d.ts +5 -4
  100. package/dist/types/react/nodes/codeBlock/components/codeBlockWrapButton.d.ts +5 -5
  101. package/dist/types/react/nodes/codeBlock/components/lightWeightCodeBlock.d.ts +2 -1
  102. package/dist/types/react/nodes/date.d.ts +2 -2
  103. package/dist/types/react/nodes/embedCard.d.ts +2 -1
  104. package/dist/types/react/nodes/emoji.d.ts +3 -3
  105. package/dist/types/react/nodes/heading-anchor.d.ts +3 -3
  106. package/dist/types/react/nodes/mediaGroup.d.ts +3 -3
  107. package/dist/types/react/nodes/mediaInline.d.ts +3 -3
  108. package/dist/types/react/nodes/mediaSingle/index.d.ts +3 -3
  109. package/dist/types/react/nodes/mention.d.ts +2 -2
  110. package/dist/types/react/nodes/status.d.ts +2 -2
  111. package/dist/types/react/utils/appearance.d.ts +1 -1
  112. package/dist/types-ts4.5/actions/index.d.ts +1 -1
  113. package/dist/types-ts4.5/react/hooks/use-in-viewport.d.ts +2 -1
  114. package/dist/types-ts4.5/react/marks/code.d.ts +6 -6
  115. package/dist/types-ts4.5/react/nodes/codeBlock/codeBlock.d.ts +9 -4
  116. package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockCopyButton.d.ts +5 -4
  117. package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockWrapButton.d.ts +5 -5
  118. package/dist/types-ts4.5/react/nodes/codeBlock/components/lightWeightCodeBlock.d.ts +2 -1
  119. package/dist/types-ts4.5/react/nodes/date.d.ts +2 -2
  120. package/dist/types-ts4.5/react/nodes/embedCard.d.ts +2 -1
  121. package/dist/types-ts4.5/react/nodes/emoji.d.ts +3 -3
  122. package/dist/types-ts4.5/react/nodes/heading-anchor.d.ts +3 -3
  123. package/dist/types-ts4.5/react/nodes/mediaGroup.d.ts +3 -3
  124. package/dist/types-ts4.5/react/nodes/mediaInline.d.ts +3 -3
  125. package/dist/types-ts4.5/react/nodes/mediaSingle/index.d.ts +3 -3
  126. package/dist/types-ts4.5/react/nodes/mention.d.ts +2 -2
  127. package/dist/types-ts4.5/react/nodes/status.d.ts +2 -2
  128. package/dist/types-ts4.5/react/utils/appearance.d.ts +1 -1
  129. package/package.json +6 -6
@@ -2,7 +2,7 @@ import React, { memo } from 'react';
2
2
  import { Mention } from '@atlaskit/editor-common/mention';
3
3
  import { fg } from '@atlaskit/platform-feature-flags';
4
4
  import { useInlineAnnotationProps } from '../../ui/annotations/element/useInlineAnnotationProps';
5
- export default /*#__PURE__*/memo(function MentionItem(props) {
5
+ const _default_1 = /*#__PURE__*/memo(function MentionItem(props) {
6
6
  const {
7
7
  eventHandlers,
8
8
  id,
@@ -35,4 +35,5 @@ export default /*#__PURE__*/memo(function MentionItem(props) {
35
35
  localId: localId,
36
36
  eventHandlers: eventHandlers && eventHandlers.mention
37
37
  });
38
- });
38
+ });
39
+ export default _default_1;
@@ -5,7 +5,7 @@
5
5
  * @jsxFrag
6
6
  */
7
7
 
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
+ /* 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 */
9
9
  import { jsx, css } from '@emotion/react';
10
10
  import React, { useState } from 'react';
11
11
  import { WidthConsumer } from '@atlaskit/editor-common/ui';
@@ -4,8 +4,8 @@ import _extends from "@babel/runtime/helpers/extends";
4
4
  * @jsx jsx
5
5
  */
6
6
  import React from 'react';
7
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
- import { css, jsx } from '@emotion/react';
7
+ /* 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 */
8
+ import { jsx, css } from '@emotion/react';
9
9
  import TipIcon from '@atlaskit/icon/core/lightbulb';
10
10
  import { PanelType } from '@atlaskit/adf-schema';
11
11
  import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
@@ -7,7 +7,7 @@ import { useInlineAnnotationProps } from '../../ui/annotations/element/useInline
7
7
  const ANALYTICS_DATA = {
8
8
  userContext: 'document'
9
9
  };
10
- export default /*#__PURE__*/memo(function Status(props) {
10
+ const _default_1 = /*#__PURE__*/memo(function Status(props) {
11
11
  const {
12
12
  text,
13
13
  color,
@@ -68,4 +68,5 @@ export default /*#__PURE__*/memo(function Status(props) {
68
68
  localId: localId,
69
69
  isBold: fg('platform-component-visual-refresh')
70
70
  })));
71
- });
71
+ });
72
+ export default _default_1;
@@ -4,10 +4,8 @@ import _extends from "@babel/runtime/helpers/extends";
4
4
  * @jsx jsx
5
5
  */
6
6
  import React from 'react';
7
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
-
9
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
- import { css, jsx } from '@emotion/react';
7
+ /* 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 */
8
+ import { jsx, css } from '@emotion/react';
11
9
  import { TableSharedCssClassName } from '@atlaskit/editor-common/styles';
12
10
  import { akEditorStickyHeaderZIndex } from '@atlaskit/editor-shared-styles';
13
11
  import { Table } from './table';
@@ -80,7 +80,9 @@ export const getRefTop = refElement => {
80
80
  };
81
81
  export const shouldHeaderStick = (scrollTop, tableTop, tableBottom, rowHeight) => tableTop <= scrollTop && !(tableBottom - rowHeight <= scrollTop);
82
82
  export const shouldHeaderPinBottom = (scrollTop, tableBottom, rowHeight) => tableBottom - rowHeight <= scrollTop && !(tableBottom < scrollTop);
83
- export const addSortableColumn = (rows, tableOrderStatus, onSorting) => {
83
+ export const addSortableColumn = (rows, tableOrderStatus, onSorting
84
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
85
+ ) => {
84
86
  return React.Children.map(rows, (row, index) => {
85
87
  if (index === 0) {
86
88
  return /*#__PURE__*/React.cloneElement(React.Children.only(row), {
@@ -1,4 +1,6 @@
1
1
  import { getEventHandler } from '../../utils';
2
+
3
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2
4
  export const getCardClickHandler = (eventHandlers, url) => {
3
5
  const handler = getEventHandler(eventHandlers, 'smartCard');
4
6
  return handler ? e => handler(e, url) : undefined;
@@ -4,4 +4,6 @@
4
4
  import React from 'react';
5
5
  const RendererContext = /*#__PURE__*/React.createContext({});
6
6
  export const useRendererContext = () => React.useContext(RendererContext);
7
+
8
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
7
9
  export const RendererContextProvider = RendererContext.Provider;
@@ -57,7 +57,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
57
57
  const TABLE_INFO_TIMEOUT = 10000;
58
58
  const RENDER_EVENT_SAMPLE_RATE = 0.2;
59
59
  const packageName = "@atlaskit/renderer";
60
- const packageVersion = "130.2.8";
60
+ const packageVersion = "0.0.0-development";
61
61
  const setAsQueryContainerStyles = css({
62
62
  containerName: 'ak-renderer-wrapper',
63
63
  containerType: 'inline-size'
@@ -2,8 +2,6 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
3
  import _createClass from "@babel/runtime/helpers/createClass";
4
4
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
5
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
5
  import { AnnotationTypes } from '@atlaskit/adf-schema';
8
6
  import { canApplyAnnotationOnRange, getAnnotationIdsFromRange, getAnnotationInlineNodeTypes, isEmptyTextSelectionRenderer } from '@atlaskit/editor-common/utils';
9
7
  import { JSONTransformer } from '@atlaskit/editor-json-transformer';
@@ -337,7 +335,7 @@ var RendererActions = /*#__PURE__*/function () {
337
335
  numMatches = _getIndexMatch.numMatches,
338
336
  matchIndex = _getIndexMatch.matchIndex,
339
337
  blockNodePos = _getIndexMatch.blockNodePos;
340
- return _objectSpread({
338
+ return {
341
339
  step: step,
342
340
  doc: this.transformer.encode(doc),
343
341
  inlineNodeTypes: getRendererRangeInlineNodeNames({
@@ -357,10 +355,9 @@ var RendererActions = /*#__PURE__*/function () {
357
355
  originalSelection: originalSelection,
358
356
  numMatches: numMatches,
359
357
  matchIndex: matchIndex,
360
- pos: blockNodePos
361
- }, {
358
+ pos: blockNodePos,
362
359
  targetNodeType: targetNodeType
363
- });
360
+ };
364
361
  }
365
362
  }, {
366
363
  key: "generateAnnotationIndexMatch",
@@ -4,7 +4,7 @@ import _extends from "@babel/runtime/helpers/extends";
4
4
  * @jsx jsx
5
5
  */
6
6
  import React from 'react';
7
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
+ /* 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 */
8
8
  import { jsx } from '@emotion/react';
9
9
  import { alignmentPositionMap } from '@atlaskit/adf-schema';
10
10
  var MarkWrapper = function MarkWrapper(props) {
@@ -2,7 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
+ /* 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 */
6
6
  import { jsx } from '@emotion/react';
7
7
  export default function Border(props) {
8
8
  var _props$color, _props$size;
@@ -3,8 +3,8 @@ import _extends from "@babel/runtime/helpers/extends";
3
3
  * @jsxRuntime classic
4
4
  * @jsx jsx
5
5
  */
6
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
- import { css, jsx } from '@emotion/react';
6
+ /* 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 */
7
+ import { jsx, css } from '@emotion/react';
8
8
  import { akEditorFullWidthLayoutWidth, akEditorMaxLayoutWidth, blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
9
9
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
10
10
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
@@ -18,4 +18,6 @@ export function CodeWithIntl(props) {
18
18
  // eslint-disable-next-line react/jsx-props-no-spreading
19
19
  }, props.dataAttributes), props.children);
20
20
  }
21
- export default injectIntl(CodeWithIntl);
21
+ // eslint-disable-next-line @typescript-eslint/ban-types
22
+ var _default_1 = injectIntl(CodeWithIntl);
23
+ export default _default_1;
@@ -4,8 +4,8 @@ import _extends from "@babel/runtime/helpers/extends";
4
4
  * @jsx jsx
5
5
  */
6
6
  import React, { Fragment } from 'react';
7
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
- import { css, jsx } from '@emotion/react';
7
+ /* 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 */
8
+ import { jsx, css } from '@emotion/react';
9
9
  import { getEventHandler } from '../../utils';
10
10
  import { PLATFORM, MODE } from '../../analytics/events';
11
11
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
@@ -3,8 +3,8 @@ import _extends from "@babel/runtime/helpers/extends";
3
3
  * @jsxRuntime classic
4
4
  * @jsx jsx
5
5
  */
6
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
- import { css, jsx } from '@emotion/react';
6
+ /* 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 */
7
+ import { jsx, css } from '@emotion/react';
8
8
  import { Card } from '@atlaskit/smart-card';
9
9
  import { UnsupportedBlock, UnsupportedInline, WidthConsumer } from '@atlaskit/editor-common/ui';
10
10
  import { CardErrorBoundary } from './fallback';
@@ -47,4 +47,5 @@ function CodeBlock(props) {
47
47
  hasBidiWarnings: expValEquals('platform_editor_remove_bidi_char_warning', 'isEnabled', true) ? false : undefined
48
48
  }));
49
49
  }
50
- export default injectIntl(CodeBlock);
50
+ var _default_1 = injectIntl(CodeBlock);
51
+ export default _default_1;
@@ -2,7 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
+ /* 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 */
6
6
  import { jsx, css } from '@emotion/react';
7
7
  import CopyButton from './codeBlockCopyButton';
8
8
  import CodeWrapButton from './codeBlockWrapButton';
@@ -3,7 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  * @jsxRuntime classic
4
4
  * @jsx jsx
5
5
  */
6
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
+ /* 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 */
7
7
  import { jsx, css } from '@emotion/react';
8
8
  import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
9
9
  import { fg } from '@atlaskit/platform-feature-flags';
@@ -69,4 +69,5 @@ var CopyButton = function CopyButton(_ref) {
69
69
  }))));
70
70
  });
71
71
  };
72
- export default injectIntl(CopyButton);
72
+ var _default_1 = injectIntl(CopyButton);
73
+ export default _default_1;
@@ -54,4 +54,5 @@ var CodeBlockWrapButton = function CodeBlockWrapButton(_ref) {
54
54
  })));
55
55
  });
56
56
  };
57
- export default injectIntl(CodeBlockWrapButton);
57
+ var _default_1 = injectIntl(CodeBlockWrapButton);
58
+ export default _default_1;
@@ -6,7 +6,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
6
6
  * @jsx jsx
7
7
  */
8
8
  import { Fragment, lazy, memo, Suspense, useState } from 'react';
9
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
+ /* 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 */
10
10
  import { jsx } from '@emotion/react';
11
11
  import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
12
12
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
@@ -29,6 +29,8 @@ var Date = /*#__PURE__*/memo(function Date(props) {
29
29
  "data-timestamp": timestamp
30
30
  }, parentIsIncompleteTask ? timestampToTaskContext(timestamp, intl, timeZone) : timestampToString(timestamp, intl)));
31
31
  });
32
+
33
+ // eslint-disable-next-line @typescript-eslint/ban-types
32
34
  export var DateComponent = injectIntl(Date);
33
35
  function DateWithFormatContext(props) {
34
36
  var _useTaskItemsFormatCo = useTaskItemsFormatContext(),
@@ -5,8 +5,8 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
5
5
  * @jsx jsx
6
6
  */
7
7
  /* eslint-disable jsdoc/check-tag-names */
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
- import { css, jsx } from '@emotion/react';
8
+ /* 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 */
9
+ import { jsx, css } from '@emotion/react';
10
10
  import { useContext, useState, useRef } from 'react';
11
11
  import { Card, EmbedResizeMessageListener } from '@atlaskit/smart-card';
12
12
  import { CardSSR } from '@atlaskit/smart-card/ssr';
@@ -128,4 +128,5 @@ export var EmojiItemComponent = function EmojiItemComponent(props) {
128
128
  resourceConfig: resourceConfig
129
129
  });
130
130
  };
131
- export default /*#__PURE__*/memo(EmojiItemComponent);
131
+ var _default_1 = /*#__PURE__*/memo(EmojiItemComponent);
132
+ export default _default_1;
@@ -3,7 +3,7 @@
3
3
  * @jsx jsx
4
4
  */
5
5
 
6
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
+ /* 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 */
7
7
  import { jsx, css } from '@emotion/react';
8
8
  var containerCSS = css({
9
9
  padding: "var(--ds-space-100, 8px)",
@@ -157,5 +157,6 @@ var HeadingAnchor = /*#__PURE__*/function (_React$PureComponent) {
157
157
  return this.renderAnchorButton();
158
158
  }
159
159
  }]);
160
- }(React.PureComponent);
161
- export default injectIntl(HeadingAnchor);
160
+ }(React.PureComponent); // eslint-disable-next-line @typescript-eslint/ban-types
161
+ var _default_1 = injectIntl(HeadingAnchor);
162
+ export default _default_1;
@@ -4,7 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  * @jsx jsx
5
5
  */
6
6
  import React from 'react';
7
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
+ /* 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 */
8
8
  import { jsx, css } from '@emotion/react';
9
9
  import { WidthProvider } from '@atlaskit/editor-common/ui';
10
10
  import { fg } from '@atlaskit/platform-feature-flags';
@@ -19,7 +19,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
19
19
  */
20
20
 
21
21
  import React, { PureComponent, Fragment, useEffect, useState, useMemo } from 'react';
22
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
22
+ /* 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 */
23
23
  import { jsx, css } from '@emotion/react';
24
24
  import { AnalyticsContext } from '@atlaskit/analytics-next';
25
25
  import { MEDIA_CONTEXT } from '@atlaskit/analytics-namespaced-context';
@@ -207,4 +207,7 @@ var MediaInline = function MediaInline(props) {
207
207
  fallbackMediaNameFetcher: fallbackMediaNameFetcher
208
208
  });
209
209
  };
210
- export default injectIntl(MediaInline);
210
+
211
+ // eslint-disable-next-line @typescript-eslint/ban-types
212
+ var _default_1 = injectIntl(MediaInline);
213
+ export default _default_1;
@@ -278,4 +278,7 @@ var MediaSingle = function MediaSingle(props) {
278
278
  caption: caption
279
279
  }));
280
280
  };
281
- export default injectIntl(MediaSingle);
281
+
282
+ // eslint-disable-next-line @typescript-eslint/ban-types
283
+ var _default_1 = injectIntl(MediaSingle);
284
+ export default _default_1;
@@ -2,7 +2,7 @@ import React, { memo } from 'react';
2
2
  import { Mention } from '@atlaskit/editor-common/mention';
3
3
  import { fg } from '@atlaskit/platform-feature-flags';
4
4
  import { useInlineAnnotationProps } from '../../ui/annotations/element/useInlineAnnotationProps';
5
- export default /*#__PURE__*/memo(function MentionItem(props) {
5
+ var _default_1 = /*#__PURE__*/memo(function MentionItem(props) {
6
6
  var eventHandlers = props.eventHandlers,
7
7
  id = props.id,
8
8
  providers = props.providers,
@@ -33,4 +33,5 @@ export default /*#__PURE__*/memo(function MentionItem(props) {
33
33
  localId: localId,
34
34
  eventHandlers: eventHandlers && eventHandlers.mention
35
35
  });
36
- });
36
+ });
37
+ export default _default_1;
@@ -8,7 +8,7 @@ var _templateObject;
8
8
  * @jsxFrag
9
9
  */
10
10
 
11
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
+ /* 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 */
12
12
  import { jsx, css } from '@emotion/react';
13
13
  import React, { useState } from 'react';
14
14
  import { WidthConsumer } from '@atlaskit/editor-common/ui';
@@ -6,8 +6,8 @@ var _excluded = ["backgroundColor", "hasIcon"];
6
6
  * @jsx jsx
7
7
  */
8
8
  import React from 'react';
9
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
- import { css, jsx } from '@emotion/react';
9
+ /* 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 */
10
+ import { jsx, css } from '@emotion/react';
11
11
  import TipIcon from '@atlaskit/icon/core/lightbulb';
12
12
  import { PanelType } from '@atlaskit/adf-schema';
13
13
  import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
@@ -7,7 +7,7 @@ import { useInlineAnnotationProps } from '../../ui/annotations/element/useInline
7
7
  var ANALYTICS_DATA = {
8
8
  userContext: 'document'
9
9
  };
10
- export default /*#__PURE__*/memo(function Status(props) {
10
+ var _default_1 = /*#__PURE__*/memo(function Status(props) {
11
11
  var text = props.text,
12
12
  color = props.color,
13
13
  style = props.style,
@@ -66,4 +66,5 @@ export default /*#__PURE__*/memo(function Status(props) {
66
66
  localId: localId,
67
67
  isBold: fg('platform-component-visual-refresh')
68
68
  })));
69
- });
69
+ });
70
+ export default _default_1;
@@ -7,10 +7,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
7
7
  * @jsx jsx
8
8
  */
9
9
  import React from 'react';
10
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
-
12
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
13
- import { css, jsx } from '@emotion/react';
10
+ /* 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 */
11
+ import { jsx, css } from '@emotion/react';
14
12
  import { TableSharedCssClassName } from '@atlaskit/editor-common/styles';
15
13
  import { akEditorStickyHeaderZIndex } from '@atlaskit/editor-shared-styles';
16
14
  import { Table } from './table';
@@ -105,7 +105,9 @@ export var shouldHeaderStick = function shouldHeaderStick(scrollTop, tableTop, t
105
105
  export var shouldHeaderPinBottom = function shouldHeaderPinBottom(scrollTop, tableBottom, rowHeight) {
106
106
  return tableBottom - rowHeight <= scrollTop && !(tableBottom < scrollTop);
107
107
  };
108
- export var addSortableColumn = function addSortableColumn(rows, tableOrderStatus, onSorting) {
108
+ export var addSortableColumn = function addSortableColumn(rows, tableOrderStatus, onSorting
109
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
110
+ ) {
109
111
  return React.Children.map(rows, function (row, index) {
110
112
  if (index === 0) {
111
113
  return /*#__PURE__*/React.cloneElement(React.Children.only(row), {
@@ -1,4 +1,6 @@
1
1
  import { getEventHandler } from '../../utils';
2
+
3
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2
4
  export var getCardClickHandler = function getCardClickHandler(eventHandlers, url) {
3
5
  var handler = getEventHandler(eventHandlers, 'smartCard');
4
6
  return handler ? function (e) {
@@ -6,4 +6,6 @@ var RendererContext = /*#__PURE__*/React.createContext({});
6
6
  export var useRendererContext = function useRendererContext() {
7
7
  return React.useContext(RendererContext);
8
8
  };
9
+
10
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
9
11
  export var RendererContextProvider = RendererContext.Provider;
@@ -62,7 +62,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
62
62
  var TABLE_INFO_TIMEOUT = 10000;
63
63
  var RENDER_EVENT_SAMPLE_RATE = 0.2;
64
64
  var packageName = "@atlaskit/renderer";
65
- var packageVersion = "130.2.8";
65
+ var packageVersion = "0.0.0-development";
66
66
  var setAsQueryContainerStyles = css({
67
67
  containerName: 'ak-renderer-wrapper',
68
68
  containerType: 'inline-size'
@@ -49,8 +49,8 @@ export default class RendererActions implements RendererActionsOptions, Annotati
49
49
  */
50
50
  _privateValidatePositionsForAnnotation(from: number, to: number): boolean;
51
51
  deleteAnnotation(annotationId: string, annotationType: 'inlineComment'): false | {
52
- step: RemoveNodeMarkStep | RemoveMarkStep;
53
52
  doc: JSONDocNode;
53
+ step: RemoveNodeMarkStep | RemoveMarkStep;
54
54
  };
55
55
  annotate(range: Range, annotationId: string, _annotationType: 'inlineComment'): AnnotationActionResult;
56
56
  isValidAnnotationRange(range: Range | null): boolean;
@@ -1,4 +1,5 @@
1
+ import { type MutableRefObject } from 'react';
1
2
  export declare const useInViewport: <RefType extends Element>() => {
2
3
  isInViewport: boolean;
3
- trackingRef: import("react").MutableRefObject<RefType | null>;
4
+ trackingRef: MutableRefObject<RefType | null>;
4
5
  };
@@ -1,20 +1,20 @@
1
1
  import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
3
  import type { Mark } from '@atlaskit/editor-prosemirror/model';
4
- import type { MarkProps } from '../types';
4
+ import type { MarkMeta, MarkProps } from '../types';
5
5
  export declare const isCodeMark: (mark: Mark) => boolean;
6
6
  export declare function CodeWithIntl(props: MarkProps<{
7
7
  codeBidiWarningTooltipEnabled: boolean;
8
8
  }> & WrappedComponentProps): React.JSX.Element;
9
- declare const _default: React.FC<import("react-intl").WithIntlProps<{
9
+ declare const _default_1: React.FC<WithIntlProps<{
10
10
  codeBidiWarningTooltipEnabled: boolean;
11
- } & import("../types").MarkMeta & {
11
+ } & MarkMeta & {
12
12
  children?: React.ReactNode | undefined;
13
13
  } & WrappedComponentProps>> & {
14
14
  WrappedComponent: React.ComponentType<{
15
15
  codeBidiWarningTooltipEnabled: boolean;
16
- } & import("../types").MarkMeta & {
16
+ } & MarkMeta & {
17
17
  children?: React.ReactNode | undefined;
18
18
  } & WrappedComponentProps>;
19
19
  };
20
- export default _default;
20
+ export default _default_1;
@@ -1,4 +1,9 @@
1
- import type { WrappedComponentProps } from 'react-intl';
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import { type ComponentType, type FC } from 'react';
6
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
2
7
  import type { SupportedLanguages } from '@atlaskit/code';
3
8
  export interface Props {
4
9
  allowCopyToClipboard?: boolean;
@@ -9,7 +14,7 @@ export interface Props {
9
14
  localId?: string;
10
15
  text: string;
11
16
  }
12
- declare const _default: import("react").FC<import("react-intl").WithIntlProps<Props & WrappedComponentProps>> & {
13
- WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps>;
17
+ declare const _default_1: FC<WithIntlProps<Props & WrappedComponentProps>> & {
18
+ WrappedComponent: ComponentType<Props & WrappedComponentProps>;
14
19
  };
15
- export default _default;
20
+ export default _default_1;
@@ -1,8 +1,9 @@
1
- import type { WrappedComponentProps } from 'react-intl';
1
+ import { type ComponentType, type FC } from 'react';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
2
3
  type Props = {
3
4
  content: string;
4
5
  };
5
- declare const _default: import("react").FC<import("react-intl").WithIntlProps<Props & WrappedComponentProps>> & {
6
- WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps>;
6
+ declare const _default_1: FC<WithIntlProps<Props & WrappedComponentProps>> & {
7
+ WrappedComponent: ComponentType<Props & WrappedComponentProps>;
7
8
  };
8
- export default _default;
9
+ export default _default_1;
@@ -1,10 +1,10 @@
1
- import type { Dispatch, SetStateAction } from 'react';
2
- import type { WrappedComponentProps } from 'react-intl';
1
+ import type { ComponentType, Dispatch, FC, SetStateAction } from 'react';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
3
  type Props = {
4
4
  setWrapLongLines: Dispatch<SetStateAction<boolean>>;
5
5
  wrapLongLines?: boolean;
6
6
  };
7
- declare const _default: import("react").FC<import("react-intl").WithIntlProps<Props & WrappedComponentProps>> & {
8
- WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps>;
7
+ declare const _default_1: FC<WithIntlProps<Props & WrappedComponentProps>> & {
8
+ WrappedComponent: ComponentType<Props & WrappedComponentProps>;
9
9
  };
10
- export default _default;
10
+ export default _default_1;
@@ -3,6 +3,7 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import React from 'react';
6
+ import { type SerializedStyles } from '@emotion/react';
6
7
  import type { Props as CodeBlockProps } from '../codeBlock';
7
8
  export declare const LightWeightCodeBlockCssClassName: {
8
9
  CONTAINER: string;
@@ -11,6 +12,6 @@ export declare const LightWeightCodeBlockCssClassName: {
11
12
  * @private
12
13
  * @deprecated styles are moved to RendererStyleContainer
13
14
  */
14
- export declare const getLightWeightCodeBlockStylesForRootRendererStyleSheet: () => import("@emotion/utils").SerializedStyles;
15
+ export declare const getLightWeightCodeBlockStylesForRootRendererStyleSheet: () => SerializedStyles;
15
16
  declare const LightWeightCodeBlock: React.ForwardRefExoticComponent<Pick<CodeBlockProps, "text" | "className" | "codeBidiWarningTooltipEnabled"> & React.RefAttributes<HTMLDivElement>>;
16
17
  export default LightWeightCodeBlock;
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
3
  import type { MarkDataAttributes } from '../../ui/annotations/element/useInlineAnnotationProps';
4
4
  export interface Props extends MarkDataAttributes {
5
5
  parentIsIncompleteTask?: boolean;
6
6
  timestamp: string;
7
7
  }
8
- export declare const DateComponent: React.FC<import("react-intl").WithIntlProps<Props & WrappedComponentProps>> & {
8
+ export declare const DateComponent: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
9
9
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
10
10
  };
11
11
  declare function DateWithFormatContext(props: Props): React.JSX.Element;