@atlaskit/renderer 118.4.0 → 118.5.0

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 (60) hide show
  1. package/CHANGELOG.md +19 -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 -31
  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 -28
  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 -32
  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/annotations/context.d.ts +3 -40
  46. package/dist/types/ui/annotations/contexts/AnnotationRangeContext.d.ts +2 -20
  47. package/dist/types/ui/annotations/hover/mounter.d.ts +0 -10
  48. package/dist/types/ui/annotations/hover/range-validator.d.ts +0 -11
  49. package/dist/types/ui/annotations/selection/mounter.d.ts +0 -10
  50. package/dist/types/ui/annotations/selection/range-validator.d.ts +0 -11
  51. package/dist/types/ui/annotations/wrapper.d.ts +0 -2
  52. package/dist/types-ts4.5/react/nodes/tableNew.d.ts +6 -0
  53. package/dist/types-ts4.5/ui/annotations/context.d.ts +3 -40
  54. package/dist/types-ts4.5/ui/annotations/contexts/AnnotationRangeContext.d.ts +2 -20
  55. package/dist/types-ts4.5/ui/annotations/hover/mounter.d.ts +0 -10
  56. package/dist/types-ts4.5/ui/annotations/hover/range-validator.d.ts +0 -11
  57. package/dist/types-ts4.5/ui/annotations/selection/mounter.d.ts +0 -10
  58. package/dist/types-ts4.5/ui/annotations/selection/range-validator.d.ts +0 -11
  59. package/dist/types-ts4.5/ui/annotations/wrapper.d.ts +0 -2
  60. package/package.json +10 -13
@@ -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.0",
3
+ "version": "118.5.0",
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": "^105.11.0",
34
+ "@atlaskit/editor-common": "^106.0.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",
@@ -39,7 +39,7 @@
39
39
  "@atlaskit/editor-tables": "^2.9.0",
40
40
  "@atlaskit/emoji": "^69.2.0",
41
41
  "@atlaskit/feature-gate-js-client": "^5.3.0",
42
- "@atlaskit/icon": "^26.3.0",
42
+ "@atlaskit/icon": "^26.4.0",
43
43
  "@atlaskit/link": "^3.2.0",
44
44
  "@atlaskit/link-datasource": "^4.11.0",
45
45
  "@atlaskit/media-card": "^79.3.0",
@@ -56,9 +56,9 @@
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.1.0",
59
+ "@atlaskit/tmp-editor-statsig": "^5.5.0",
60
60
  "@atlaskit/tokens": "^4.9.0",
61
- "@atlaskit/tooltip": "^20.0.0",
61
+ "@atlaskit/tooltip": "^20.2.0",
62
62
  "@atlaskit/visually-hidden": "^3.0.0",
63
63
  "@babel/runtime": "^7.0.0",
64
64
  "@emotion/react": "^11.7.1",
@@ -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
  },
@@ -253,15 +256,9 @@
253
256
  "platform_editor_bordered_panel_nested_in_table": {
254
257
  "type": "boolean"
255
258
  },
256
- "platform_renderer_annotation_draft_position_fix": {
257
- "type": "boolean"
258
- },
259
259
  "platform_editor_fix_image_size_diff_during_ssr": {
260
260
  "type": "boolean"
261
261
  },
262
- "platform_hide_heading_anchor_wrapper_before_hover": {
263
- "type": "boolean"
264
- },
265
262
  "smartcard_avatar_margin_fix": {
266
263
  "type": "boolean"
267
264
  },