@atlaskit/renderer 128.3.5 → 128.3.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.
Files changed (153) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/cjs/react/nodes/heading.js +2 -2
  3. package/dist/cjs/ui/Renderer/RendererStyleContainer.js +2 -2
  4. package/dist/cjs/ui/Renderer/index.js +1 -1
  5. package/dist/es2019/react/nodes/heading.js +2 -2
  6. package/dist/es2019/react/utils/inject-props.js +0 -1
  7. package/dist/es2019/ui/Renderer/RendererStyleContainer.js +2 -2
  8. package/dist/es2019/ui/Renderer/index.js +1 -1
  9. package/dist/esm/react/nodes/heading.js +2 -2
  10. package/dist/esm/react/utils/inject-props.js +0 -1
  11. package/dist/esm/ui/Renderer/RendererStyleContainer.js +2 -2
  12. package/dist/esm/ui/Renderer/index.js +1 -1
  13. package/dist/types/analytics/analyticsContext.d.ts +1 -1
  14. package/dist/types/react/hooks/use-bidi-warnings.d.ts +1 -1
  15. package/dist/types/react/index.d.ts +1 -1
  16. package/dist/types/react/marks/code.d.ts +2 -2
  17. package/dist/types/react/marks/confluence-inline-comment.d.ts +1 -1
  18. package/dist/types/react/marks/data-consumer.d.ts +2 -2
  19. package/dist/types/react/marks/em.d.ts +1 -1
  20. package/dist/types/react/marks/fontSize.d.ts +2 -2
  21. package/dist/types/react/marks/fragment.d.ts +2 -2
  22. package/dist/types/react/marks/indentation.d.ts +2 -2
  23. package/dist/types/react/marks/strike.d.ts +1 -1
  24. package/dist/types/react/marks/strong.d.ts +1 -1
  25. package/dist/types/react/marks/subsup.d.ts +2 -2
  26. package/dist/types/react/marks/underline.d.ts +1 -1
  27. package/dist/types/react/marks/unsupportedMark.d.ts +1 -1
  28. package/dist/types/react/marks/unsupportedNodeAttribute.d.ts +1 -1
  29. package/dist/types/react/nodes/caption.d.ts +1 -1
  30. package/dist/types/react/nodes/date.d.ts +2 -2
  31. package/dist/types/react/nodes/decisionItem.d.ts +1 -1
  32. package/dist/types/react/nodes/emoji.d.ts +4 -4
  33. package/dist/types/react/nodes/extension.d.ts +4 -4
  34. package/dist/types/react/nodes/heading.d.ts +2 -2
  35. package/dist/types/react/nodes/inlineCard.d.ts +3 -7
  36. package/dist/types/react/nodes/mention.d.ts +1 -1
  37. package/dist/types/react/nodes/paragraph.d.ts +1 -1
  38. package/dist/types/react/nodes/status.d.ts +2 -2
  39. package/dist/types/react/nodes/table.d.ts +1 -1
  40. package/dist/types/react/nodes/task-item-with-providers.d.ts +3 -2
  41. package/dist/types/react/nodes/taskItem.d.ts +3 -2
  42. package/dist/types/react/nodes/taskList.d.ts +2 -1
  43. package/dist/types/react/utils/appearance.d.ts +1 -1
  44. package/dist/types/react/utils/inject-props.d.ts +1 -1
  45. package/dist/types/react/utils/links.d.ts +1 -1
  46. package/dist/types/react/utils/lists.d.ts +1 -1
  47. package/dist/types/render-document.d.ts +4 -4
  48. package/dist/types/serializer.d.ts +1 -1
  49. package/dist/types/text/index.d.ts +2 -2
  50. package/dist/types/text/nodes/blockquote.d.ts +1 -1
  51. package/dist/types/text/nodes/bulletList.d.ts +1 -1
  52. package/dist/types/text/nodes/date.d.ts +1 -1
  53. package/dist/types/text/nodes/decisionItem.d.ts +1 -1
  54. package/dist/types/text/nodes/hardBreak.d.ts +1 -1
  55. package/dist/types/text/nodes/heading.d.ts +1 -1
  56. package/dist/types/text/nodes/index.d.ts +1 -1
  57. package/dist/types/text/nodes/inlineCard.d.ts +1 -1
  58. package/dist/types/text/nodes/listItem.d.ts +1 -1
  59. package/dist/types/text/nodes/mediaGroup.d.ts +1 -1
  60. package/dist/types/text/nodes/mention.d.ts +1 -1
  61. package/dist/types/text/nodes/orderedList.d.ts +1 -1
  62. package/dist/types/text/nodes/panel.d.ts +1 -1
  63. package/dist/types/text/nodes/paragraph.d.ts +1 -1
  64. package/dist/types/text/nodes/rule.d.ts +1 -1
  65. package/dist/types/text/nodes/status.d.ts +1 -1
  66. package/dist/types/text/nodes/table.d.ts +1 -1
  67. package/dist/types/text/nodes/taskItem.d.ts +1 -1
  68. package/dist/types/text/nodes/unknown.d.ts +1 -1
  69. package/dist/types/ui/Renderer/RendererStyleContainer.d.ts +1 -1
  70. package/dist/types/ui/RendererActionsContext/WithRendererActions.d.ts +2 -1
  71. package/dist/types/ui/RendererActionsContext/index.d.ts +2 -1
  72. package/dist/types/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +2 -1
  73. package/dist/types/ui/annotations/contexts/AnnotationManagerContext.d.ts +5 -3
  74. package/dist/types/ui/annotations/draft/dom.d.ts +1 -1
  75. package/dist/types/ui/annotations/draft/position.d.ts +2 -1
  76. package/dist/types/ui/annotations/draft/text.d.ts +1 -1
  77. package/dist/types/ui/annotations/element/index.d.ts +1 -1
  78. package/dist/types/ui/annotations/hooks/use-inline-comments-filter.d.ts +1 -1
  79. package/dist/types/ui/annotations/hooks/user-selection.d.ts +1 -1
  80. package/dist/types/ui/annotations/index.d.ts +1 -1
  81. package/dist/types/ui/annotations/view/index.d.ts +1 -1
  82. package/dist/types/use-feature-flags.d.ts +1 -1
  83. package/dist/types-ts4.5/analytics/analyticsContext.d.ts +1 -1
  84. package/dist/types-ts4.5/react/hooks/use-bidi-warnings.d.ts +1 -1
  85. package/dist/types-ts4.5/react/index.d.ts +1 -1
  86. package/dist/types-ts4.5/react/marks/code.d.ts +2 -2
  87. package/dist/types-ts4.5/react/marks/confluence-inline-comment.d.ts +1 -1
  88. package/dist/types-ts4.5/react/marks/data-consumer.d.ts +2 -2
  89. package/dist/types-ts4.5/react/marks/em.d.ts +1 -1
  90. package/dist/types-ts4.5/react/marks/fontSize.d.ts +2 -2
  91. package/dist/types-ts4.5/react/marks/fragment.d.ts +2 -2
  92. package/dist/types-ts4.5/react/marks/indentation.d.ts +2 -2
  93. package/dist/types-ts4.5/react/marks/strike.d.ts +1 -1
  94. package/dist/types-ts4.5/react/marks/strong.d.ts +1 -1
  95. package/dist/types-ts4.5/react/marks/subsup.d.ts +2 -2
  96. package/dist/types-ts4.5/react/marks/underline.d.ts +1 -1
  97. package/dist/types-ts4.5/react/marks/unsupportedMark.d.ts +1 -1
  98. package/dist/types-ts4.5/react/marks/unsupportedNodeAttribute.d.ts +1 -1
  99. package/dist/types-ts4.5/react/nodes/caption.d.ts +1 -1
  100. package/dist/types-ts4.5/react/nodes/date.d.ts +2 -2
  101. package/dist/types-ts4.5/react/nodes/decisionItem.d.ts +1 -1
  102. package/dist/types-ts4.5/react/nodes/emoji.d.ts +4 -4
  103. package/dist/types-ts4.5/react/nodes/extension.d.ts +4 -4
  104. package/dist/types-ts4.5/react/nodes/heading.d.ts +2 -2
  105. package/dist/types-ts4.5/react/nodes/inlineCard.d.ts +3 -7
  106. package/dist/types-ts4.5/react/nodes/mention.d.ts +1 -1
  107. package/dist/types-ts4.5/react/nodes/paragraph.d.ts +1 -1
  108. package/dist/types-ts4.5/react/nodes/status.d.ts +2 -2
  109. package/dist/types-ts4.5/react/nodes/table.d.ts +1 -1
  110. package/dist/types-ts4.5/react/nodes/task-item-with-providers.d.ts +3 -2
  111. package/dist/types-ts4.5/react/nodes/taskItem.d.ts +3 -2
  112. package/dist/types-ts4.5/react/nodes/taskList.d.ts +2 -1
  113. package/dist/types-ts4.5/react/utils/appearance.d.ts +1 -1
  114. package/dist/types-ts4.5/react/utils/inject-props.d.ts +1 -1
  115. package/dist/types-ts4.5/react/utils/links.d.ts +1 -1
  116. package/dist/types-ts4.5/react/utils/lists.d.ts +1 -1
  117. package/dist/types-ts4.5/render-document.d.ts +4 -4
  118. package/dist/types-ts4.5/serializer.d.ts +1 -1
  119. package/dist/types-ts4.5/text/index.d.ts +2 -2
  120. package/dist/types-ts4.5/text/nodes/blockquote.d.ts +1 -1
  121. package/dist/types-ts4.5/text/nodes/bulletList.d.ts +1 -1
  122. package/dist/types-ts4.5/text/nodes/date.d.ts +1 -1
  123. package/dist/types-ts4.5/text/nodes/decisionItem.d.ts +1 -1
  124. package/dist/types-ts4.5/text/nodes/hardBreak.d.ts +1 -1
  125. package/dist/types-ts4.5/text/nodes/heading.d.ts +1 -1
  126. package/dist/types-ts4.5/text/nodes/index.d.ts +1 -1
  127. package/dist/types-ts4.5/text/nodes/inlineCard.d.ts +1 -1
  128. package/dist/types-ts4.5/text/nodes/listItem.d.ts +1 -1
  129. package/dist/types-ts4.5/text/nodes/mediaGroup.d.ts +1 -1
  130. package/dist/types-ts4.5/text/nodes/mention.d.ts +1 -1
  131. package/dist/types-ts4.5/text/nodes/orderedList.d.ts +1 -1
  132. package/dist/types-ts4.5/text/nodes/panel.d.ts +1 -1
  133. package/dist/types-ts4.5/text/nodes/paragraph.d.ts +1 -1
  134. package/dist/types-ts4.5/text/nodes/rule.d.ts +1 -1
  135. package/dist/types-ts4.5/text/nodes/status.d.ts +1 -1
  136. package/dist/types-ts4.5/text/nodes/table.d.ts +1 -1
  137. package/dist/types-ts4.5/text/nodes/taskItem.d.ts +1 -1
  138. package/dist/types-ts4.5/text/nodes/unknown.d.ts +1 -1
  139. package/dist/types-ts4.5/ui/Renderer/RendererStyleContainer.d.ts +1 -1
  140. package/dist/types-ts4.5/ui/RendererActionsContext/WithRendererActions.d.ts +2 -1
  141. package/dist/types-ts4.5/ui/RendererActionsContext/index.d.ts +2 -1
  142. package/dist/types-ts4.5/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +2 -1
  143. package/dist/types-ts4.5/ui/annotations/contexts/AnnotationManagerContext.d.ts +5 -3
  144. package/dist/types-ts4.5/ui/annotations/draft/dom.d.ts +1 -1
  145. package/dist/types-ts4.5/ui/annotations/draft/position.d.ts +2 -1
  146. package/dist/types-ts4.5/ui/annotations/draft/text.d.ts +1 -1
  147. package/dist/types-ts4.5/ui/annotations/element/index.d.ts +1 -1
  148. package/dist/types-ts4.5/ui/annotations/hooks/use-inline-comments-filter.d.ts +1 -1
  149. package/dist/types-ts4.5/ui/annotations/hooks/user-selection.d.ts +1 -1
  150. package/dist/types-ts4.5/ui/annotations/index.d.ts +1 -1
  151. package/dist/types-ts4.5/ui/annotations/view/index.d.ts +1 -1
  152. package/dist/types-ts4.5/use-feature-flags.d.ts +1 -1
  153. package/package.json +6 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 128.3.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ff6221892c2d0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ff6221892c2d0) -
8
+ EDITOR-6158: Stop hiding list markers on list items containing nested task lists to fix
9
+ inconsistent marker visibility
10
+ - Updated dependencies
11
+
12
+ ## 128.3.6
13
+
14
+ ### Patch Changes
15
+
16
+ - [`9245d3bb1916d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9245d3bb1916d) -
17
+ Mechanical type-import autofix for renderer.
18
+ - Updated dependencies
19
+
3
20
  ## 128.3.5
4
21
 
5
22
  ### Patch Changes
@@ -107,7 +107,7 @@ function HeadingWithDuplicateAnchor(props) {
107
107
  "data-renderer-start-pos": dataAttributes['data-renderer-start-pos'],
108
108
  "data-as-inline": asInline,
109
109
  onMouseEnter: mouseEnterHandler,
110
- tabIndex: (0, _expValEquals.expValEquals)("confluence_toc_nav_a11y", "isEnabled", true) ? -1 : undefined
110
+ tabIndex: (0, _expValEquals.expValEquals)('confluence_toc_nav_a11y', 'isEnabled', true) ? -1 : undefined
111
111
  }, (0, _react2.jsx)(_react.default.Fragment, null, showAnchorLink && headingId && isRightAligned && (0, _react2.jsx)(WrappedHeadingAnchor, {
112
112
  level: props.level,
113
113
  enableNestedHeaderLinks: enableNestedHeaderLinks,
@@ -173,7 +173,7 @@ function HeadingWithWrapper(props) {
173
173
  "data-renderer-start-pos": dataAttributes['data-renderer-start-pos'],
174
174
  "data-as-inline": asInline,
175
175
  onMouseEnter: mouseEnterHandler,
176
- tabIndex: (0, _expValEquals.expValEquals)("confluence_toc_nav_a11y", "isEnabled", true) ? -1 : undefined
176
+ tabIndex: (0, _expValEquals.expValEquals)('confluence_toc_nav_a11y', 'isEnabled', true) ? -1 : undefined
177
177
  }, props.children), showAnchorLink && headingId && !isRightAligned && (0, _react2.jsx)(WrappedHeadingAnchor, {
178
178
  level: props.level,
179
179
  enableNestedHeaderLinks: enableNestedHeaderLinks,
@@ -711,14 +711,14 @@ var listsSharedStylesForGekko = (0, _react.css)({
711
711
  var listItemHiddenMarkerStyles = (0, _react.css)({
712
712
  // Hide markers and remove spacing for wrapper list items (items containing only nested lists)
713
713
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
714
- 'li:has(> ul:only-child), li:has(> ol:only-child), li:has(> div[data-node-type="actionList"]:only-child)': {
714
+ 'li:has(> ul:only-child), li:has(> ol:only-child)': {
715
715
  listStyleType: 'none',
716
716
  marginTop: 0,
717
717
  marginBottom: 0
718
718
  },
719
719
  // Remove margin from nested lists inside wrapper list items to avoid double spacing
720
720
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
721
- 'li:has(> ul:only-child) > ul, li:has(> ol:only-child) > ol, li:has(> div[data-node-type="actionList"]:only-child) > div[data-node-type="actionList"]': {
721
+ 'li:has(> ul:only-child) > ul, li:has(> ol:only-child) > ol': {
722
722
  marginTop: 0
723
723
  },
724
724
  // Collapse wrapper task items (empty task items followed by a sibling nested task list)
@@ -71,7 +71,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
71
71
  var TABLE_INFO_TIMEOUT = 10000;
72
72
  var RENDER_EVENT_SAMPLE_RATE = 0.2;
73
73
  var packageName = "@atlaskit/renderer";
74
- var packageVersion = "128.3.4";
74
+ var packageVersion = "128.3.7";
75
75
  var setAsQueryContainerStyles = (0, _react2.css)({
76
76
  containerName: 'ak-renderer-wrapper',
77
77
  containerType: 'inline-size'
@@ -97,7 +97,7 @@ function HeadingWithDuplicateAnchor(props) {
97
97
  "data-renderer-start-pos": dataAttributes['data-renderer-start-pos'],
98
98
  "data-as-inline": asInline,
99
99
  onMouseEnter: mouseEnterHandler,
100
- tabIndex: expValEquals("confluence_toc_nav_a11y", "isEnabled", true) ? -1 : undefined
100
+ tabIndex: expValEquals('confluence_toc_nav_a11y', 'isEnabled', true) ? -1 : undefined
101
101
  }, jsx(React.Fragment, null, showAnchorLink && headingId && isRightAligned && jsx(WrappedHeadingAnchor, {
102
102
  level: props.level,
103
103
  enableNestedHeaderLinks: enableNestedHeaderLinks,
@@ -165,7 +165,7 @@ function HeadingWithWrapper(props) {
165
165
  "data-renderer-start-pos": dataAttributes['data-renderer-start-pos'],
166
166
  "data-as-inline": asInline,
167
167
  onMouseEnter: mouseEnterHandler,
168
- tabIndex: expValEquals("confluence_toc_nav_a11y", "isEnabled", true) ? -1 : undefined
168
+ tabIndex: expValEquals('confluence_toc_nav_a11y', 'isEnabled', true) ? -1 : undefined
169
169
  }, props.children), showAnchorLink && headingId && !isRightAligned && jsx(WrappedHeadingAnchor, {
170
170
  level: props.level,
171
171
  enableNestedHeaderLinks: enableNestedHeaderLinks,
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
-
3
2
  /**
4
3
  * Helper function to recursively injects props to
5
4
  * all valid children react nodes.
@@ -834,14 +834,14 @@ const listsSharedStylesForGekko = css({
834
834
  const listItemHiddenMarkerStyles = css({
835
835
  // Hide markers and remove spacing for wrapper list items (items containing only nested lists)
836
836
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
837
- 'li:has(> ul:only-child), li:has(> ol:only-child), li:has(> div[data-node-type="actionList"]:only-child)': {
837
+ 'li:has(> ul:only-child), li:has(> ol:only-child)': {
838
838
  listStyleType: 'none',
839
839
  marginTop: 0,
840
840
  marginBottom: 0
841
841
  },
842
842
  // Remove margin from nested lists inside wrapper list items to avoid double spacing
843
843
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
844
- 'li:has(> ul:only-child) > ul, li:has(> ol:only-child) > ol, li:has(> div[data-node-type="actionList"]:only-child) > div[data-node-type="actionList"]': {
844
+ 'li:has(> ul:only-child) > ul, li:has(> ol:only-child) > ol': {
845
845
  marginTop: 0
846
846
  },
847
847
  // Collapse wrapper task items (empty task items followed by a sibling nested task list)
@@ -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 = "128.3.4";
60
+ const packageVersion = "128.3.7";
61
61
  const setAsQueryContainerStyles = css({
62
62
  containerName: 'ak-renderer-wrapper',
63
63
  containerType: 'inline-size'
@@ -98,7 +98,7 @@ function HeadingWithDuplicateAnchor(props) {
98
98
  "data-renderer-start-pos": dataAttributes['data-renderer-start-pos'],
99
99
  "data-as-inline": asInline,
100
100
  onMouseEnter: mouseEnterHandler,
101
- tabIndex: expValEquals("confluence_toc_nav_a11y", "isEnabled", true) ? -1 : undefined
101
+ tabIndex: expValEquals('confluence_toc_nav_a11y', 'isEnabled', true) ? -1 : undefined
102
102
  }, jsx(React.Fragment, null, showAnchorLink && headingId && isRightAligned && jsx(WrappedHeadingAnchor, {
103
103
  level: props.level,
104
104
  enableNestedHeaderLinks: enableNestedHeaderLinks,
@@ -164,7 +164,7 @@ function HeadingWithWrapper(props) {
164
164
  "data-renderer-start-pos": dataAttributes['data-renderer-start-pos'],
165
165
  "data-as-inline": asInline,
166
166
  onMouseEnter: mouseEnterHandler,
167
- tabIndex: expValEquals("confluence_toc_nav_a11y", "isEnabled", true) ? -1 : undefined
167
+ tabIndex: expValEquals('confluence_toc_nav_a11y', 'isEnabled', true) ? -1 : undefined
168
168
  }, props.children), showAnchorLink && headingId && !isRightAligned && jsx(WrappedHeadingAnchor, {
169
169
  level: props.level,
170
170
  enableNestedHeaderLinks: enableNestedHeaderLinks,
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
-
3
2
  /**
4
3
  * Helper function to recursively injects props to
5
4
  * all valid children react nodes.
@@ -704,14 +704,14 @@ var listsSharedStylesForGekko = css({
704
704
  var listItemHiddenMarkerStyles = css({
705
705
  // Hide markers and remove spacing for wrapper list items (items containing only nested lists)
706
706
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
707
- 'li:has(> ul:only-child), li:has(> ol:only-child), li:has(> div[data-node-type="actionList"]:only-child)': {
707
+ 'li:has(> ul:only-child), li:has(> ol:only-child)': {
708
708
  listStyleType: 'none',
709
709
  marginTop: 0,
710
710
  marginBottom: 0
711
711
  },
712
712
  // Remove margin from nested lists inside wrapper list items to avoid double spacing
713
713
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
714
- 'li:has(> ul:only-child) > ul, li:has(> ol:only-child) > ol, li:has(> div[data-node-type="actionList"]:only-child) > div[data-node-type="actionList"]': {
714
+ 'li:has(> ul:only-child) > ul, li:has(> ol:only-child) > ol': {
715
715
  marginTop: 0
716
716
  },
717
717
  // Collapse wrapper task items (empty task items followed by a sibling nested task list)
@@ -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 = "128.3.4";
65
+ var packageVersion = "128.3.7";
66
66
  var setAsQueryContainerStyles = css({
67
67
  containerName: 'ak-renderer-wrapper',
68
68
  containerType: 'inline-size'
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type AnalyticsEventPayload } from './events';
2
+ import type { AnalyticsEventPayload } from './events';
3
3
  declare const AnalyticsContext: React.Context<{
4
4
  fireAnalyticsEvent: (event: AnalyticsEventPayload) => void;
5
5
  }>;
@@ -1,4 +1,4 @@
1
- import { type ReactNode } from 'react';
1
+ import type { ReactNode } from 'react';
2
2
  interface Config {
3
3
  enableWarningTooltip: boolean;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { type GetPMNodeHeight } from '@atlaskit/editor-common/extensibility';
1
+ import type { GetPMNodeHeight } from '@atlaskit/editor-common/extensibility';
2
2
  import type { Fragment, Mark, Node } from '@atlaskit/editor-prosemirror/model';
3
3
  import type { AnalyticsEventPayload } from '../analytics/events';
4
4
  import type { Serializer } from '../serializer';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { type WrappedComponentProps } from 'react-intl-next';
3
- import { type Mark } from '@atlaskit/editor-prosemirror/model';
2
+ import type { WrappedComponentProps } from 'react-intl-next';
3
+ import type { Mark } from '@atlaskit/editor-prosemirror/model';
4
4
  import type { MarkProps } from '../types';
5
5
  export declare const isCodeMark: (mark: Mark) => boolean;
6
6
  export declare function CodeWithIntl(props: MarkProps<{
@@ -1,5 +1,5 @@
1
1
  import React, { Component } from 'react';
2
- import { type MarkProps } from '../types';
2
+ import type { MarkProps } from '../types';
3
3
  interface Props {
4
4
  reference: string;
5
5
  }
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { type DataConsumerAttributes } from '@atlaskit/adf-schema';
3
- import { type MarkProps } from '../types';
2
+ import type { DataConsumerAttributes } from '@atlaskit/adf-schema';
3
+ import type { MarkProps } from '../types';
4
4
  export default function DataConsumer(props: MarkProps<DataConsumerAttributes>): React.JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { type MarkProps } from '../types';
2
+ import type { MarkProps } from '../types';
3
3
  export default function Em(props: MarkProps): React.JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { type FontSizeMarkAttrs } from '@atlaskit/adf-schema';
3
- import { type MarkProps } from '../types';
2
+ import type { FontSizeMarkAttrs } from '@atlaskit/adf-schema';
3
+ import type { MarkProps } from '../types';
4
4
  export default function FontSize(props: MarkProps<FontSizeMarkAttrs>): React.JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { type FragmentAttributes } from '@atlaskit/adf-schema';
3
- import { type MarkProps } from '../types';
2
+ import type { FragmentAttributes } from '@atlaskit/adf-schema';
3
+ import type { MarkProps } from '../types';
4
4
  export default function FragmentMark(props: MarkProps<FragmentAttributes>): React.JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { type IndentationMarkAttributes } from '@atlaskit/adf-schema';
3
- import { type MarkProps } from '../types';
2
+ import type { IndentationMarkAttributes } from '@atlaskit/adf-schema';
3
+ import type { MarkProps } from '../types';
4
4
  export default function Indentation(props: MarkProps<IndentationMarkAttributes>): React.JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { type MarkProps } from '../types';
2
+ import type { MarkProps } from '../types';
3
3
  export default function Strike(props: MarkProps): React.JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { type MarkProps } from '../types';
2
+ import type { MarkProps } from '../types';
3
3
  export default function Strong(props: MarkProps): React.JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { type SubSupAttributes } from '@atlaskit/adf-schema';
3
- import { type MarkProps } from '../types';
2
+ import type { SubSupAttributes } from '@atlaskit/adf-schema';
3
+ import type { MarkProps } from '../types';
4
4
  export default function SubSup(props: MarkProps<SubSupAttributes>): React.JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { type MarkProps } from '../types';
2
+ import type { MarkProps } from '../types';
3
3
  export default function Underline(props: MarkProps): React.JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { type MarkProps } from '../types';
2
+ import type { MarkProps } from '../types';
3
3
  export default function UnsupportedMark(props: MarkProps): React.JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { type MarkProps } from '../types';
2
+ import type { MarkProps } from '../types';
3
3
  export default function UnsupportedNodeAttribute(props: MarkProps): React.JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { type NodeProps } from '../types';
2
+ import type { NodeProps } from '../types';
3
3
  declare const RenderCaption: ({ children, dataAttributes }: NodeProps) => React.JSX.Element;
4
4
  export default RenderCaption;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { type WrappedComponentProps } from 'react-intl-next';
3
- import { type MarkDataAttributes } from '../../ui/annotations/element/useInlineAnnotationProps';
2
+ import type { WrappedComponentProps } from 'react-intl-next';
3
+ import type { MarkDataAttributes } from '../../ui/annotations/element/useInlineAnnotationProps';
4
4
  export interface Props extends MarkDataAttributes {
5
5
  parentIsIncompleteTask?: boolean;
6
6
  timestamp: string;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { type NodeProps } from '../types';
2
+ import type { NodeProps } from '../types';
3
3
  export default function DecisionItem({ children, dataAttributes }: NodeProps): React.JSX.Element;
@@ -1,9 +1,9 @@
1
- import { type EmojiResourceConfig } from '@atlaskit/emoji/resource';
2
- import { type FC } from 'react';
1
+ import type { EmojiResourceConfig } from '@atlaskit/emoji/resource';
2
+ import type { FC } from 'react';
3
3
  import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
4
4
  import type { EmojiId } from '@atlaskit/emoji/types';
5
- import { type MarkDataAttributes } from '../../ui/annotations/element/useInlineAnnotationProps';
6
- import { type EmojiAttributes } from '@atlaskit/adf-schema';
5
+ import type { MarkDataAttributes } from '../../ui/annotations/element/useInlineAnnotationProps';
6
+ import type { EmojiAttributes } from '@atlaskit/adf-schema';
7
7
  export interface EmojiProps extends EmojiId, EmojiAttributes, MarkDataAttributes {
8
8
  allowTextFallback?: boolean;
9
9
  fitToHeight?: number;
@@ -3,11 +3,11 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import React from 'react';
6
- import { type Mark as PMMark, type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
7
- import { type RendererContext, type ExtensionViewportSize } from '../types';
8
- import { type ExtensionLayout } from '@atlaskit/adf-schema';
6
+ import type { Mark as PMMark, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
7
+ import type { RendererContext, ExtensionViewportSize } from '../types';
8
+ import type { ExtensionLayout } from '@atlaskit/adf-schema';
9
9
  import type { ExtensionHandlers, ExtensionParams, Parameters } from '@atlaskit/editor-common/extensions';
10
- import { type ProviderFactory } from '@atlaskit/editor-common/provider-factory';
10
+ import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
11
11
  import type { OverflowShadowProps, OverflowShadowState, ShadowObserver } from '@atlaskit/editor-common/ui';
12
12
  import type { RendererAppearance } from '../../ui/Renderer/types';
13
13
  interface Props {
@@ -4,9 +4,9 @@
4
4
  * @jsxFrag
5
5
  */
6
6
  import React from 'react';
7
- import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
7
+ import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
8
8
  import type { NodeProps } from '../types';
9
- import { type HeadingAnchorLinksProps } from '../../ui/Renderer/types';
9
+ import type { HeadingAnchorLinksProps } from '../../ui/Renderer/types';
10
10
  export type HeadingLevels = 1 | 2 | 3 | 4 | 5 | 6;
11
11
  type HeadingProps = NodeProps<{
12
12
  allowHeadingAnchorLinks?: HeadingAnchorLinksProps;
@@ -1,13 +1,9 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { type Context, type ErrorInfo, type JSX, type ReactInstance } from 'react';
6
- import { type Mark } from '@atlaskit/editor-prosemirror/model';
1
+ import type { Context, ErrorInfo, JSX, ReactInstance } from 'react';
2
+ import type { Mark } from '@atlaskit/editor-prosemirror/model';
7
3
  import type { EventHandlers } from '@atlaskit/editor-common/ui';
8
4
  import type { WithSmartCardStorageProps } from '../../ui/SmartCardStorage';
9
5
  import type { SmartLinksOptions } from '../../types/smartLinksOptions';
10
- import { type MarkDataAttributes } from '../../ui/annotations/element/useInlineAnnotationProps';
6
+ import type { MarkDataAttributes } from '../../ui/annotations/element/useInlineAnnotationProps';
11
7
  import type { RendererAppearance } from '../../ui/Renderer/types';
12
8
  import type { AnalyticsEventPayload } from '../../analytics/events';
13
9
  import type { Diff } from '@atlaskit/editor-common/utils';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
3
3
  import type { EventHandlers } from '@atlaskit/editor-common/ui';
4
- import { type MarkDataAttributes } from '../../ui/annotations/element/useInlineAnnotationProps';
4
+ import type { MarkDataAttributes } from '../../ui/annotations/element/useInlineAnnotationProps';
5
5
  export interface Props extends MarkDataAttributes {
6
6
  accessLevel?: string;
7
7
  eventHandlers?: EventHandlers;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- import { type NodeProps } from '../types';
2
+ import type { NodeProps } from '../types';
3
3
  export default function Paragraph({ children, dataAttributes, localId, asInline, }: NodeProps): React.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { type Color } from '@atlaskit/status/element';
3
- import { type MarkDataAttributes } from '../../ui/annotations/element/useInlineAnnotationProps';
2
+ import type { Color } from '@atlaskit/status/element';
3
+ import type { MarkDataAttributes } from '../../ui/annotations/element/useInlineAnnotationProps';
4
4
  export interface Props extends MarkDataAttributes {
5
5
  color: Color;
6
6
  localId?: string;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
3
  import type { OverflowShadowProps } from '@atlaskit/editor-common/ui';
4
- import { type Diff } from '@atlaskit/editor-common/utils';
4
+ import type { Diff } from '@atlaskit/editor-common/utils';
5
5
  import { SortOrder } from '@atlaskit/editor-common/types';
6
6
  import type { RendererAppearance, StickyHeaderConfig } from '../../ui/Renderer/types';
7
7
  import type { WithSmartCardStorageProps } from '../../ui/SmartCardStorage';
@@ -1,6 +1,7 @@
1
- import React, { type ReactNode } from 'react';
1
+ import React from 'react';
2
+ import type { ReactNode } from 'react';
2
3
  import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
3
- import { type ContentRef, type TaskDecisionProvider } from '@atlaskit/task-decision';
4
+ import type { ContentRef, TaskDecisionProvider } from '@atlaskit/task-decision';
4
5
  interface Props {
5
6
  children?: ReactNode;
6
7
  contentRef?: ContentRef;
@@ -1,6 +1,7 @@
1
- import React, { PureComponent, type ReactNode } from 'react';
1
+ import React, { PureComponent } from 'react';
2
+ import type { ReactNode } from 'react';
2
3
  import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
3
- import { type RendererContext, type NodeProps } from '../types';
4
+ import type { RendererContext, NodeProps } from '../types';
4
5
  export interface Props {
5
6
  children?: ReactNode;
6
7
  disabled?: boolean;
@@ -1,4 +1,5 @@
1
- import React, { PureComponent, type ReactNode } from 'react';
1
+ import React, { PureComponent } from 'react';
2
+ import type { ReactNode } from 'react';
2
3
  export interface Props {
3
4
  children?: ReactNode;
4
5
  localId?: string;
@@ -1,4 +1,4 @@
1
- import { type RendererAppearance } from '../../ui/Renderer/types';
1
+ import type { RendererAppearance } from '../../ui/Renderer/types';
2
2
  export declare const isFullWidthAppearance: (appearance: RendererAppearance) => appearance is "full-width";
3
3
  export declare const isMaxWidthAppearance: (appearance: RendererAppearance) => appearance is "max";
4
4
  export declare const isFullPageAppearance: (appearance: RendererAppearance) => appearance is "full-page";
@@ -1,4 +1,4 @@
1
- import { type ReactNode } from 'react';
1
+ import type { ReactNode } from 'react';
2
2
  /**
3
3
  * Helper function to recursively injects props to
4
4
  * all valid children react nodes.
@@ -1,3 +1,3 @@
1
- import { type HeadingAnchorLinksProps } from '../../ui/Renderer/types';
1
+ import type { HeadingAnchorLinksProps } from '../../ui/Renderer/types';
2
2
  export declare function isNestedHeaderLinksEnabled(allowHeadingAnchorLinks?: HeadingAnchorLinksProps): boolean;
3
3
  export declare function getActiveHeadingId(allowHeadingAnchorLinks?: HeadingAnchorLinksProps): string | undefined;
@@ -1,2 +1,2 @@
1
- import { type Node } from '@atlaskit/editor-prosemirror/model';
1
+ import type { Node } from '@atlaskit/editor-prosemirror/model';
2
2
  export declare function getListIndentLevel(path: Node[]): number;
@@ -1,9 +1,9 @@
1
1
  import type { UnsupportedContentLevelsTracking } from '@atlaskit/editor-common/utils';
2
2
  import type { ADFStage } from '@atlaskit/editor-common/validator';
3
- import { type Node as PMNode, type Schema } from '@atlaskit/editor-prosemirror/model';
4
- import { type AnalyticsEventPayload } from './analytics/events';
5
- import { type Serializer } from './serializer';
6
- import { type RendererAppearance } from './ui/Renderer/types';
3
+ import type { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
4
+ import type { AnalyticsEventPayload } from './analytics/events';
5
+ import type { Serializer } from './serializer';
6
+ import type { RendererAppearance } from './ui/Renderer/types';
7
7
  export interface RenderOutput<T> {
8
8
  pmDoc?: PMNode;
9
9
  result: T;
@@ -1,4 +1,4 @@
1
- import { type Fragment } from '@atlaskit/editor-prosemirror/model';
1
+ import type { Fragment } from '@atlaskit/editor-prosemirror/model';
2
2
  export interface Serializer<T> {
3
3
  serializeFragment(fragment: Fragment, props?: any, target?: any, key?: string): T | null;
4
4
  }
@@ -1,5 +1,5 @@
1
- import { type Fragment, type Schema } from '@atlaskit/editor-prosemirror/model';
2
- import { type Serializer } from '../serializer';
1
+ import type { Fragment, Schema } from '@atlaskit/editor-prosemirror/model';
2
+ import type { Serializer } from '../serializer';
3
3
  export default class TextSerializer implements Serializer<string> {
4
4
  private schema;
5
5
  constructor(schema: Schema);
@@ -1,3 +1,3 @@
1
- import { type NodeReducer } from './';
1
+ import type { NodeReducer } from './';
2
2
  declare const blockquote: NodeReducer;
3
3
  export default blockquote;
@@ -1,3 +1,3 @@
1
- import { type NodeReducer } from './';
1
+ import type { NodeReducer } from './';
2
2
  declare const bulletList: NodeReducer;
3
3
  export default bulletList;
@@ -1,3 +1,3 @@
1
- import { type NodeReducer } from './';
1
+ import type { NodeReducer } from './';
2
2
  declare const date: NodeReducer;
3
3
  export default date;
@@ -1,3 +1,3 @@
1
- import { type NodeReducer } from './';
1
+ import type { NodeReducer } from './';
2
2
  declare const decisionItem: NodeReducer;
3
3
  export default decisionItem;
@@ -1,3 +1,3 @@
1
- import { type NodeReducer } from './';
1
+ import type { NodeReducer } from './';
2
2
  declare const hardBreak: NodeReducer;
3
3
  export default hardBreak;
@@ -1,3 +1,3 @@
1
- import { type NodeReducer } from './';
1
+ import type { NodeReducer } from './';
2
2
  declare const heading: NodeReducer;
3
3
  export default heading;
@@ -1,3 +1,3 @@
1
- import { type Node as PMNode, type Schema } from '@atlaskit/editor-prosemirror/model';
1
+ import type { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
2
2
  export type NodeReducer = (node: PMNode, schema: Schema) => string;
3
3
  export declare const reduce: NodeReducer;
@@ -1,3 +1,3 @@
1
- import { type NodeReducer } from './';
1
+ import type { NodeReducer } from './';
2
2
  declare const inlineCard: NodeReducer;
3
3
  export default inlineCard;
@@ -1,3 +1,3 @@
1
- import { type NodeReducer } from './';
1
+ import type { NodeReducer } from './';
2
2
  declare const listItem: NodeReducer;
3
3
  export default listItem;
@@ -1,3 +1,3 @@
1
- import { type NodeReducer } from './';
1
+ import type { NodeReducer } from './';
2
2
  declare const mediaGroup: NodeReducer;
3
3
  export default mediaGroup;
@@ -1,3 +1,3 @@
1
- import { type NodeReducer } from './';
1
+ import type { NodeReducer } from './';
2
2
  declare const mention: NodeReducer;
3
3
  export default mention;
@@ -1,3 +1,3 @@
1
- import { type NodeReducer } from './';
1
+ import type { NodeReducer } from './';
2
2
  declare const orderedList: NodeReducer;
3
3
  export default orderedList;
@@ -1,3 +1,3 @@
1
- import { type NodeReducer } from './';
1
+ import type { NodeReducer } from './';
2
2
  declare const panel: NodeReducer;
3
3
  export default panel;
@@ -1,3 +1,3 @@
1
- import { type NodeReducer } from './';
1
+ import type { NodeReducer } from './';
2
2
  declare const paragraph: NodeReducer;
3
3
  export default paragraph;