@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
@@ -1,3 +1,3 @@
1
- import { type NodeReducer } from './';
1
+ import type { NodeReducer } from './';
2
2
  declare const unknown: NodeReducer;
3
3
  export default unknown;
@@ -3,7 +3,7 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import { jsx } from '@emotion/react';
6
- import { type RendererWrapperProps } from './index';
6
+ import type { RendererWrapperProps } from './index';
7
7
  export declare const textHighlightPaddingStyles: import("@emotion/utils").SerializedStyles;
8
8
  type RendererStyleContainerProps = Pick<RendererWrapperProps, 'onClick' | 'onMouseDown' | 'appearance' | 'contentMode' | 'allowNestedHeaderLinks' | 'allowColumnSorting' | 'useBlockRenderForCodeBlock' | 'allowAnnotations' | 'allowTableResizing' | 'innerRef' | 'children' | 'allowRendererContainerStyles'> & {
9
9
  testId?: string;
@@ -1,4 +1,5 @@
1
- import React, { type ReactNode } from 'react';
1
+ import React from 'react';
2
+ import type { ReactNode } from 'react';
2
3
  import type RendererActions from '../../actions/index';
3
4
  interface WithRendererActionsProps {
4
5
  render(actions: RendererActions): ReactNode | null;
@@ -1,4 +1,5 @@
1
- import React, { type PropsWithChildren } from 'react';
1
+ import React from 'react';
2
+ import type { PropsWithChildren } from 'react';
2
3
  import RendererActions from '../../actions/index';
3
4
  export declare const RendererContext: React.Context<RendererActions>;
4
5
  type RendererActionsContextProps = PropsWithChildren<{
@@ -1,4 +1,5 @@
1
- import React, { type ReactNode } from 'react';
1
+ import React from 'react';
2
+ import type { ReactNode } from 'react';
2
3
  type TaskItemsDone = boolean | undefined;
3
4
  type TaskItemsStateContext = [
4
5
  TaskItemsDone,
@@ -1,7 +1,9 @@
1
- import React, { type ReactNode } from 'react';
2
- import { type AnnotationId, AnnotationMarkStates } from '@atlaskit/adf-schema';
1
+ import React from 'react';
2
+ import type { ReactNode } from 'react';
3
+ import { AnnotationMarkStates } from '@atlaskit/adf-schema';
4
+ import type { AnnotationId } from '@atlaskit/adf-schema';
3
5
  import type { AnnotationManager, ActionResult } from '@atlaskit/editor-common/annotation';
4
- import { type AnnotationUpdateEmitter } from '@atlaskit/editor-common/types';
6
+ import type { AnnotationUpdateEmitter } from '@atlaskit/editor-common/types';
5
7
  interface AnnotationState {
6
8
  id: AnnotationId;
7
9
  markState: AnnotationMarkStates;
@@ -1,4 +1,4 @@
1
- import { type Position } from '../types';
1
+ import type { Position } from '../types';
2
2
  export declare const dataAttributes: ({ from, to }: Position) => {
3
3
  "data-annotation-draft-mark": boolean;
4
4
  "data-draft-start-at": number;
@@ -1,2 +1,3 @@
1
- import { InsertDraftPosition, type Position, type TextPosition } from '../types';
1
+ import { InsertDraftPosition } from '../types';
2
+ import type { Position, TextPosition } from '../types';
2
3
  export declare const calcInsertDraftPositionOnText: ({ start: startTextPosition, end: endTextPosition }: TextPosition, position: Position) => InsertDraftPosition | false;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type TextPosition, type Position } from '../types';
2
+ import type { TextPosition, Position } from '../types';
3
3
  export declare const findTextString: (reactNode: React.ReactNode) => string | null;
4
4
  type Offset = {
5
5
  endOffset: number;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type AnnotationId, type AnnotationDataAttributes, type AnnotationTypes } from '@atlaskit/adf-schema';
2
+ import type { AnnotationId, AnnotationDataAttributes, AnnotationTypes } from '@atlaskit/adf-schema';
3
3
  type MarkElementProps = React.PropsWithChildren<{
4
4
  annotationParentIds: AnnotationId[];
5
5
  annotationType: AnnotationTypes;
@@ -1,4 +1,4 @@
1
- import { type AnnotationId, type AnnotationMarkStates } from '@atlaskit/adf-schema';
1
+ import type { AnnotationId, AnnotationMarkStates } from '@atlaskit/adf-schema';
2
2
  type Props = {
3
3
  annotationIds: AnnotationId[];
4
4
  filter: {
@@ -1,4 +1,4 @@
1
- import { type RangeType } from '../contexts/AnnotationRangeContext';
1
+ import type { RangeType } from '../contexts/AnnotationRangeContext';
2
2
  type Props = {
3
3
  rendererRef: React.RefObject<HTMLDivElement>;
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type AnnotationsWrapperProps } from './types';
2
+ import type { AnnotationsWrapperProps } from './types';
3
3
  export declare const AnnotationsPositionContext: React.Context<{
4
4
  startPos: number;
5
5
  }>;
@@ -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';
3
3
  type Props = {
4
4
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
5
5
  isNestedRender: boolean;
@@ -1,2 +1,2 @@
1
- import { type RendererContextProps } from './renderer-context';
1
+ import type { RendererContextProps } from './renderer-context';
2
2
  export declare const useFeatureFlags: () => RendererContextProps["featureFlags"] | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "128.3.5",
3
+ "version": "128.3.7",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -39,7 +39,7 @@
39
39
  "@atlaskit/editor-smart-link-draggable": "^0.2.0",
40
40
  "@atlaskit/emoji": "^69.10.0",
41
41
  "@atlaskit/feature-gate-js-client": "^5.5.0",
42
- "@atlaskit/icon": "^33.0.0",
42
+ "@atlaskit/icon": "^33.1.0",
43
43
  "@atlaskit/link": "^3.3.0",
44
44
  "@atlaskit/link-datasource": "^4.34.0",
45
45
  "@atlaskit/link-extractors": "^2.4.0",
@@ -55,12 +55,12 @@
55
55
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
56
56
  "@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
57
57
  "@atlaskit/react-ufo": "^5.5.0",
58
- "@atlaskit/smart-card": "^43.27.0",
58
+ "@atlaskit/smart-card": "^43.28.0",
59
59
  "@atlaskit/status": "^3.1.0",
60
60
  "@atlaskit/task-decision": "^19.3.0",
61
61
  "@atlaskit/theme": "^22.0.0",
62
- "@atlaskit/tmp-editor-statsig": "^46.0.0",
63
- "@atlaskit/tokens": "^11.2.0",
62
+ "@atlaskit/tmp-editor-statsig": "^47.0.0",
63
+ "@atlaskit/tokens": "^11.3.0",
64
64
  "@atlaskit/tooltip": "^21.0.0",
65
65
  "@atlaskit/visually-hidden": "^3.0.0",
66
66
  "@babel/runtime": "^7.0.0",
@@ -73,7 +73,7 @@
73
73
  "uuid": "^3.1.0"
74
74
  },
75
75
  "peerDependencies": {
76
- "@atlaskit/editor-common": "^112.9.0",
76
+ "@atlaskit/editor-common": "^112.10.0",
77
77
  "@atlaskit/link-provider": "^4.3.0",
78
78
  "@atlaskit/media-core": "^37.0.0",
79
79
  "react": "^18.2.0",