@atlaskit/renderer 118.4.1 → 118.5.1

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 (62) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/cjs/react/nodes/media/index.js +1 -4
  3. package/dist/cjs/react/nodes/tableNew.js +30 -14
  4. package/dist/cjs/ui/Renderer/RendererStyleContainer.js +1 -1
  5. package/dist/cjs/ui/Renderer/index.js +1 -1
  6. package/dist/cjs/ui/annotations/context.js +3 -99
  7. package/dist/cjs/ui/annotations/contexts/AnnotationRangeContext.js +25 -163
  8. package/dist/cjs/ui/annotations/draft/component.js +1 -5
  9. package/dist/cjs/ui/annotations/element/useInlineAnnotationProps.js +1 -5
  10. package/dist/cjs/ui/annotations/hooks/user-selection.js +3 -8
  11. package/dist/cjs/ui/annotations/hover/mounter.js +7 -31
  12. package/dist/cjs/ui/annotations/hover/range-validator.js +0 -4
  13. package/dist/cjs/ui/annotations/selection/mounter.js +9 -37
  14. package/dist/cjs/ui/annotations/selection/range-validator.js +0 -4
  15. package/dist/cjs/ui/annotations/wrapper.js +2 -77
  16. package/dist/es2019/react/nodes/media/index.js +1 -4
  17. package/dist/es2019/react/nodes/tableNew.js +31 -14
  18. package/dist/es2019/ui/Renderer/RendererStyleContainer.js +1 -1
  19. package/dist/es2019/ui/Renderer/index.js +1 -1
  20. package/dist/es2019/ui/annotations/context.js +2 -84
  21. package/dist/es2019/ui/annotations/contexts/AnnotationRangeContext.js +24 -168
  22. package/dist/es2019/ui/annotations/draft/component.js +1 -5
  23. package/dist/es2019/ui/annotations/element/useInlineAnnotationProps.js +1 -5
  24. package/dist/es2019/ui/annotations/hooks/user-selection.js +3 -8
  25. package/dist/es2019/ui/annotations/hover/mounter.js +8 -27
  26. package/dist/es2019/ui/annotations/hover/range-validator.js +0 -4
  27. package/dist/es2019/ui/annotations/selection/mounter.js +10 -34
  28. package/dist/es2019/ui/annotations/selection/range-validator.js +0 -4
  29. package/dist/es2019/ui/annotations/wrapper.js +3 -83
  30. package/dist/esm/react/nodes/media/index.js +1 -4
  31. package/dist/esm/react/nodes/tableNew.js +30 -14
  32. package/dist/esm/ui/Renderer/RendererStyleContainer.js +1 -1
  33. package/dist/esm/ui/Renderer/index.js +1 -1
  34. package/dist/esm/ui/annotations/context.js +2 -94
  35. package/dist/esm/ui/annotations/contexts/AnnotationRangeContext.js +24 -162
  36. package/dist/esm/ui/annotations/draft/component.js +1 -5
  37. package/dist/esm/ui/annotations/element/useInlineAnnotationProps.js +1 -5
  38. package/dist/esm/ui/annotations/hooks/user-selection.js +3 -8
  39. package/dist/esm/ui/annotations/hover/mounter.js +8 -31
  40. package/dist/esm/ui/annotations/hover/range-validator.js +0 -4
  41. package/dist/esm/ui/annotations/selection/mounter.js +10 -38
  42. package/dist/esm/ui/annotations/selection/range-validator.js +0 -4
  43. package/dist/esm/ui/annotations/wrapper.js +3 -78
  44. package/dist/types/react/nodes/tableNew.d.ts +6 -0
  45. package/dist/types/ui/Renderer/breakout-ssr.d.ts +1 -1
  46. package/dist/types/ui/annotations/context.d.ts +3 -40
  47. package/dist/types/ui/annotations/contexts/AnnotationRangeContext.d.ts +2 -20
  48. package/dist/types/ui/annotations/hover/mounter.d.ts +0 -10
  49. package/dist/types/ui/annotations/hover/range-validator.d.ts +0 -11
  50. package/dist/types/ui/annotations/selection/mounter.d.ts +0 -10
  51. package/dist/types/ui/annotations/selection/range-validator.d.ts +0 -11
  52. package/dist/types/ui/annotations/wrapper.d.ts +0 -2
  53. package/dist/types-ts4.5/react/nodes/tableNew.d.ts +6 -0
  54. package/dist/types-ts4.5/ui/Renderer/breakout-ssr.d.ts +1 -1
  55. package/dist/types-ts4.5/ui/annotations/context.d.ts +3 -40
  56. package/dist/types-ts4.5/ui/annotations/contexts/AnnotationRangeContext.d.ts +2 -20
  57. package/dist/types-ts4.5/ui/annotations/hover/mounter.d.ts +0 -10
  58. package/dist/types-ts4.5/ui/annotations/hover/range-validator.d.ts +0 -11
  59. package/dist/types-ts4.5/ui/annotations/selection/mounter.d.ts +0 -10
  60. package/dist/types-ts4.5/ui/annotations/selection/range-validator.d.ts +0 -11
  61. package/dist/types-ts4.5/ui/annotations/wrapper.d.ts +0 -2
  62. package/package.json +8 -19
@@ -25,35 +25,17 @@ interface AnnotationRangeStateContext {
25
25
  hoverDraftDocumentPosition: Position | null;
26
26
  }
27
27
  interface AnnotationRangeDispatchContext {
28
- /**
29
- * @private
30
- * @deprecated This prop is deprecated as of platform_renderer_annotation_draft_position_fix and will be removed in the future.
31
- * Please use clearSelectionRange or clearHoverRange instead.
32
- */
33
- clearRange: () => void;
34
28
  clearSelectionRange: () => void;
35
- /**
36
- * @private
37
- * @deprecated This prop is deprecated as of platform_renderer_annotation_draft_position_fix and will be removed in the future.
38
- * Please use clearSelectionDraft or clearHoverDraft instead.
39
- */
40
- clearDraftRange: (type: RangeType) => void;
41
29
  clearHoverRange: () => void;
42
30
  setSelectionRange: (range: Range) => void;
43
- /**
44
- * @private
45
- * @deprecated This prop is deprecated as of platform_renderer_annotation_draft_position_fix and will be removed in the future.
46
- * Please use promoteSelectionToDraft or promoteHoverToDraft instead.
47
- */
48
- setDraftRange: (draftRange: Range | null, type: RangeType) => void;
49
31
  setHoverTarget?: (target: HTMLElement) => void;
50
32
  promoteSelectionToDraft: (position: Position | null) => void;
51
33
  promoteHoverToDraft: (position: Position | null) => void;
52
34
  clearSelectionDraft: () => void;
53
35
  clearHoverDraft: () => void;
54
36
  }
55
- declare const AnnotationRangeStateContext: React.Context<AnnotationRangeStateContext>;
56
- declare const AnnotationRangeDispatchContext: React.Context<AnnotationRangeDispatchContext>;
37
+ export declare const AnnotationRangeStateContext: React.Context<AnnotationRangeStateContext>;
38
+ export declare const AnnotationRangeDispatchContext: React.Context<AnnotationRangeDispatchContext>;
57
39
  export declare const AnnotationRangeProviderInner: ({ children, allowCommentsOnMedia, }: {
58
40
  children?: ReactNode;
59
41
  allowCommentsOnMedia?: boolean | undefined;
@@ -12,16 +12,6 @@ type Props = {
12
12
  isAnnotationAllowed: boolean;
13
13
  onClose: () => void;
14
14
  applyAnnotation: ApplyAnnotation;
15
- /**
16
- * @private
17
- * @deprecated This prop is deprecated as of platform_renderer_annotation_draft_position_fix and will be removed in the future.
18
- */
19
- applyAnnotationDraftAt?: (position: Position) => void;
20
- /**
21
- * @private
22
- * @deprecated This prop is deprecated as of platform_renderer_annotation_draft_position_fix and will be removed in the future.
23
- */
24
- clearAnnotationDraft?: () => void;
25
15
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
26
16
  generateIndexMatch?: (pos: Position) => false | AnnotationByMatches;
27
17
  };
@@ -1,20 +1,9 @@
1
1
  import React from 'react';
2
- import type { Position } from '../types';
3
2
  import type { InlineCommentHoverComponentProps } from '@atlaskit/editor-common/types';
4
3
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
5
4
  type Props = {
6
5
  component: React.ComponentType<InlineCommentHoverComponentProps>;
7
6
  rendererRef: React.RefObject<HTMLDivElement>;
8
- /**
9
- * @private
10
- * @deprecated This prop is deprecated as of platform_renderer_annotation_draft_position_fix and will be removed in the future.
11
- */
12
- applyAnnotationDraftAt?: (position: Position) => void;
13
- /**
14
- * @private
15
- * @deprecated This prop is deprecated as of platform_renderer_annotation_draft_position_fix and will be removed in the future.
16
- */
17
- clearAnnotationDraft?: () => void;
18
7
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
19
8
  };
20
9
  export declare const RangeValidator: {
@@ -12,16 +12,6 @@ type Props = {
12
12
  isAnnotationAllowed: boolean;
13
13
  onClose: () => void;
14
14
  applyAnnotation: ApplyAnnotation;
15
- /**
16
- * @private
17
- * @deprecated This prop is deprecated as of platform_renderer_annotation_draft_position_fix and will be removed in the future.
18
- */
19
- applyAnnotationDraftAt?: (position: Position) => void;
20
- /**
21
- * @private
22
- * @deprecated This prop is deprecated as of platform_renderer_annotation_draft_position_fix and will be removed in the future.
23
- */
24
- clearAnnotationDraft?: () => void;
25
15
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
26
16
  generateIndexMatch?: (pos: Position) => false | AnnotationByMatches;
27
17
  };
@@ -1,20 +1,9 @@
1
1
  import React from 'react';
2
- import type { Position } from '../types';
3
2
  import type { InlineCommentSelectionComponentProps } from '@atlaskit/editor-common/types';
4
3
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
5
4
  type Props = {
6
5
  selectionComponent: React.ComponentType<React.PropsWithChildren<InlineCommentSelectionComponentProps>>;
7
6
  rendererRef: React.RefObject<HTMLDivElement>;
8
- /**
9
- * @private
10
- * @deprecated This prop is deprecated as of platform_renderer_annotation_draft_position_fix and will be removed in the future.
11
- */
12
- applyAnnotationDraftAt?: (position: Position) => void;
13
- /**
14
- * @private
15
- * @deprecated This prop is deprecated as of platform_renderer_annotation_draft_position_fix and will be removed in the future.
16
- */
17
- clearAnnotationDraft?: () => void;
18
7
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
19
8
  };
20
9
  export declare const SelectionRangeValidator: {
@@ -5,7 +5,5 @@ type Props = {
5
5
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
6
6
  isNestedRender?: boolean;
7
7
  };
8
- export declare const AnnotationsContextWrapperOld: (props: React.PropsWithChildren<Props>) => JSX.Element;
9
- export declare const AnnotationsContextWrapperNew: (props: React.PropsWithChildren<Props>) => JSX.Element;
10
8
  export declare const AnnotationsContextWrapper: (props: React.PropsWithChildren<Props>) => JSX.Element;
11
9
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "118.4.1",
3
+ "version": "118.5.1",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -31,7 +31,7 @@
31
31
  "@atlaskit/analytics-next": "^11.0.0",
32
32
  "@atlaskit/button": "^23.2.0",
33
33
  "@atlaskit/code": "^17.2.0",
34
- "@atlaskit/editor-common": "^106.0.0",
34
+ "@atlaskit/editor-common": "^106.1.0",
35
35
  "@atlaskit/editor-json-transformer": "^8.24.0",
36
36
  "@atlaskit/editor-palette": "^2.1.0",
37
37
  "@atlaskit/editor-prosemirror": "7.0.0",
@@ -56,7 +56,7 @@
56
56
  "@atlaskit/status": "^3.0.0",
57
57
  "@atlaskit/task-decision": "^19.2.0",
58
58
  "@atlaskit/theme": "^18.0.0",
59
- "@atlaskit/tmp-editor-statsig": "^5.2.0",
59
+ "@atlaskit/tmp-editor-statsig": "^5.5.0",
60
60
  "@atlaskit/tokens": "^4.9.0",
61
61
  "@atlaskit/tooltip": "^20.2.0",
62
62
  "@atlaskit/visually-hidden": "^3.0.0",
@@ -70,7 +70,7 @@
70
70
  "uuid": "^3.1.0"
71
71
  },
72
72
  "peerDependencies": {
73
- "@atlaskit/link-provider": "^3.1.0",
73
+ "@atlaskit/link-provider": "^3.2.0",
74
74
  "@atlaskit/media-core": "^36.1.0",
75
75
  "react": "^18.2.0",
76
76
  "react-dom": "^18.2.0"
@@ -81,7 +81,7 @@
81
81
  "@atlaskit/analytics-gas-types": "^5.1.0",
82
82
  "@atlaskit/checkbox": "^17.1.0",
83
83
  "@atlaskit/css-reset": "^7.3.0",
84
- "@atlaskit/link-provider": "^3.1.0",
84
+ "@atlaskit/link-provider": "^3.2.0",
85
85
  "@atlaskit/link-test-helpers": "^8.0.0",
86
86
  "@atlaskit/linking-common": "^9.0.0",
87
87
  "@atlaskit/media-core": "^36.1.0",
@@ -124,6 +124,9 @@
124
124
  }
125
125
  },
126
126
  "platform-feature-flags": {
127
+ "confluence_frontend_table_scrollbar_ttvc_fix": {
128
+ "type": "boolean"
129
+ },
127
130
  "platform-ssr-table-resize": {
128
131
  "type": "boolean"
129
132
  },
@@ -169,14 +172,6 @@
169
172
  "confluence-frontend-comments-panel": {
170
173
  "type": "boolean"
171
174
  },
172
- "platform_editor_table_row_span_fix": {
173
- "type": "boolean",
174
- "referenceOnly": true
175
- },
176
- "platform_editor_table_row_span_fix_all": {
177
- "type": "boolean",
178
- "referenceOnly": true
179
- },
180
175
  "platform_editor_fix_vc90_bug_with_files": {
181
176
  "type": "boolean"
182
177
  },
@@ -253,15 +248,9 @@
253
248
  "platform_editor_bordered_panel_nested_in_table": {
254
249
  "type": "boolean"
255
250
  },
256
- "platform_renderer_annotation_draft_position_fix": {
257
- "type": "boolean"
258
- },
259
251
  "platform_editor_fix_image_size_diff_during_ssr": {
260
252
  "type": "boolean"
261
253
  },
262
- "platform_hide_heading_anchor_wrapper_before_hover": {
263
- "type": "boolean"
264
- },
265
254
  "smartcard_avatar_margin_fix": {
266
255
  "type": "boolean"
267
256
  },