@atlaskit/renderer 148.1.0 → 149.0.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 (65) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/cjs/actions/index.js +35 -3
  3. package/dist/cjs/react/index.js +8 -0
  4. package/dist/cjs/react/marks/annotation.js +3 -1
  5. package/dist/cjs/react/nodes/extension-comments.compiled.css +4 -0
  6. package/dist/cjs/react/nodes/extension-comments.js +144 -0
  7. package/dist/cjs/react/nodes/extension.js +86 -11
  8. package/dist/cjs/react/nodes/layoutColumn-compiled.js +1 -2
  9. package/dist/cjs/react/nodes/layoutColumn-emotion.js +1 -2
  10. package/dist/cjs/react/nodes/table/colgroup.js +1 -2
  11. package/dist/cjs/steps/index.js +23 -0
  12. package/dist/cjs/ui/Renderer/RendererStyleContainer.js +1 -1
  13. package/dist/cjs/ui/Renderer/index.js +1 -1
  14. package/dist/cjs/ui/annotations/contexts/AnnotationRangeContext.js +29 -11
  15. package/dist/cjs/ui/annotations/element/extension.compiled.css +6 -0
  16. package/dist/cjs/ui/annotations/element/extension.js +34 -0
  17. package/dist/cjs/ui/annotations/element/index.js +4 -2
  18. package/dist/cjs/ui/annotations/element/mark.js +11 -1
  19. package/dist/cjs/ui/annotations/index.js +2 -1
  20. package/dist/es2019/actions/index.js +33 -3
  21. package/dist/es2019/react/index.js +8 -0
  22. package/dist/es2019/react/marks/annotation.js +3 -1
  23. package/dist/es2019/react/nodes/extension-comments.compiled.css +4 -0
  24. package/dist/es2019/react/nodes/extension-comments.js +115 -0
  25. package/dist/es2019/react/nodes/extension.js +83 -7
  26. package/dist/es2019/react/nodes/layoutColumn-compiled.js +2 -2
  27. package/dist/es2019/react/nodes/layoutColumn-emotion.js +2 -2
  28. package/dist/es2019/react/nodes/table/colgroup.js +1 -2
  29. package/dist/es2019/steps/index.js +25 -0
  30. package/dist/es2019/ui/Renderer/RendererStyleContainer.js +1 -1
  31. package/dist/es2019/ui/Renderer/index.js +1 -1
  32. package/dist/es2019/ui/annotations/contexts/AnnotationRangeContext.js +28 -12
  33. package/dist/es2019/ui/annotations/element/extension.compiled.css +6 -0
  34. package/dist/es2019/ui/annotations/element/extension.js +26 -0
  35. package/dist/es2019/ui/annotations/element/index.js +4 -2
  36. package/dist/es2019/ui/annotations/element/mark.js +11 -1
  37. package/dist/es2019/ui/annotations/index.js +2 -1
  38. package/dist/esm/actions/index.js +35 -3
  39. package/dist/esm/react/index.js +8 -0
  40. package/dist/esm/react/marks/annotation.js +3 -1
  41. package/dist/esm/react/nodes/extension-comments.compiled.css +4 -0
  42. package/dist/esm/react/nodes/extension-comments.js +135 -0
  43. package/dist/esm/react/nodes/extension.js +86 -7
  44. package/dist/esm/react/nodes/layoutColumn-compiled.js +2 -2
  45. package/dist/esm/react/nodes/layoutColumn-emotion.js +2 -2
  46. package/dist/esm/react/nodes/table/colgroup.js +1 -2
  47. package/dist/esm/steps/index.js +23 -0
  48. package/dist/esm/ui/Renderer/RendererStyleContainer.js +1 -1
  49. package/dist/esm/ui/Renderer/index.js +1 -1
  50. package/dist/esm/ui/annotations/contexts/AnnotationRangeContext.js +30 -12
  51. package/dist/esm/ui/annotations/element/extension.compiled.css +6 -0
  52. package/dist/esm/ui/annotations/element/extension.js +27 -0
  53. package/dist/esm/ui/annotations/element/index.js +4 -2
  54. package/dist/esm/ui/annotations/element/mark.js +11 -1
  55. package/dist/esm/ui/annotations/index.js +2 -1
  56. package/dist/types/actions/index.d.ts +13 -0
  57. package/dist/types/react/marks/annotation.d.ts +1 -1
  58. package/dist/types/react/nodes/extension-comments.d.ts +17 -0
  59. package/dist/types/react/nodes/extension.d.ts +12 -0
  60. package/dist/types/react/types.d.ts +1 -0
  61. package/dist/types/ui/annotations/contexts/AnnotationRangeContext.d.ts +4 -2
  62. package/dist/types/ui/annotations/element/extension.d.ts +17 -0
  63. package/dist/types/ui/annotations/element/index.d.ts +2 -1
  64. package/dist/types/ui/annotations/element/mark.d.ts +3 -107
  65. package/package.json +5 -11
@@ -3,8 +3,7 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import type React from 'react';
6
- import { type SerializedStyles } from '@emotion/react';
7
- import type { AnnotationId, AnnotationDataAttributes, AnnotationTypes } from '@atlaskit/adf-schema/annotation';
6
+ import type { AnnotationId, AnnotationDataAttributes } from '@atlaskit/adf-schema/annotation';
8
7
  import { AnnotationMarkStates } from '@atlaskit/adf-schema/annotation';
9
8
  import type { OnAnnotationClickPayload } from '@atlaskit/editor-common/types';
10
9
  type MarkComponentProps = {
@@ -12,114 +11,11 @@ type MarkComponentProps = {
12
11
  dataAttributes: AnnotationDataAttributes;
13
12
  hasFocus: boolean;
14
13
  id: AnnotationId;
14
+ isExtension?: boolean;
15
15
  isHovered: boolean;
16
16
  onClick: (props: OnAnnotationClickPayload) => void;
17
17
  state: AnnotationMarkStates | null;
18
18
  useBlockLevel?: boolean;
19
19
  };
20
- export declare const MarkComponent: ({ annotationParentIds, children, dataAttributes, id, state, hasFocus, isHovered, onClick, useBlockLevel, }: React.PropsWithChildren<MarkComponentProps>) => React.ReactElement<{
21
- 'aria-disabled': boolean;
22
- css?: (false | SerializedStyles)[] | undefined;
23
- 'data-id': AnnotationId;
24
- 'data-mark-annotation-state'?: AnnotationMarkStates;
25
- 'data-mark-annotation-type': AnnotationTypes;
26
- 'data-mark-type': string;
27
- id: string;
28
- ref: ((node: HTMLElement | null) => void) | undefined;
29
- style?: {
30
- '--ak-renderer-annotation-endmarker': string;
31
- '--ak-renderer-annotation-startmarker': string;
32
- } | undefined;
33
- } | {
34
- 'aria-disabled': boolean;
35
- css?: (false | SerializedStyles)[] | undefined;
36
- 'data-has-focus': boolean;
37
- 'data-id': AnnotationId;
38
- 'data-is-hovered': boolean;
39
- 'data-mark-annotation-state': AnnotationMarkStates;
40
- 'data-mark-annotation-type': AnnotationTypes;
41
- 'data-mark-type': string;
42
- id: string;
43
- ref: ((node: HTMLElement | null) => void) | undefined;
44
- style?: {
45
- '--ak-renderer-annotation-endmarker': string;
46
- '--ak-renderer-annotation-startmarker': string;
47
- } | undefined;
48
- } | {
49
- 'aria-details': string;
50
- 'aria-disabled'?: undefined;
51
- 'aria-expanded'?: undefined;
52
- css?: (false | SerializedStyles)[] | undefined;
53
- 'data-id': AnnotationId;
54
- 'data-mark-annotation-state'?: AnnotationMarkStates;
55
- 'data-mark-annotation-type': AnnotationTypes;
56
- 'data-mark-type': string;
57
- id: string;
58
- onKeyDown?: undefined;
59
- ref: ((node: HTMLElement | null) => void) | undefined;
60
- role?: undefined;
61
- style?: {
62
- '--ak-renderer-annotation-endmarker': string;
63
- '--ak-renderer-annotation-startmarker': string;
64
- } | undefined;
65
- tabIndex?: undefined;
66
- } | {
67
- 'aria-details': string;
68
- 'aria-disabled'?: undefined;
69
- 'aria-expanded'?: undefined;
70
- css?: (false | SerializedStyles)[] | undefined;
71
- 'data-has-focus': boolean;
72
- 'data-id': AnnotationId;
73
- 'data-is-hovered': boolean;
74
- 'data-mark-annotation-state': AnnotationMarkStates;
75
- 'data-mark-annotation-type': AnnotationTypes;
76
- 'data-mark-type': string;
77
- id: string;
78
- onKeyDown?: undefined;
79
- ref: ((node: HTMLElement | null) => void) | undefined;
80
- role?: undefined;
81
- style?: {
82
- '--ak-renderer-annotation-endmarker': string;
83
- '--ak-renderer-annotation-startmarker': string;
84
- } | undefined;
85
- tabIndex?: undefined;
86
- } | {
87
- 'aria-details': string;
88
- 'aria-disabled'?: undefined;
89
- 'aria-expanded': boolean;
90
- css?: (false | SerializedStyles)[] | undefined;
91
- 'data-id': AnnotationId;
92
- 'data-mark-annotation-state'?: AnnotationMarkStates;
93
- 'data-mark-annotation-type': AnnotationTypes;
94
- 'data-mark-type': string;
95
- id: string;
96
- onKeyDown: (evt: KeyboardEvent) => void;
97
- ref: ((node: HTMLElement | null) => void) | undefined;
98
- role: string;
99
- style?: {
100
- '--ak-renderer-annotation-endmarker': string;
101
- '--ak-renderer-annotation-startmarker': string;
102
- } | undefined;
103
- tabIndex: number;
104
- } | {
105
- 'aria-details': string;
106
- 'aria-disabled'?: undefined;
107
- 'aria-expanded': boolean;
108
- css?: (false | SerializedStyles)[] | undefined;
109
- 'data-has-focus': boolean;
110
- 'data-id': AnnotationId;
111
- 'data-is-hovered': boolean;
112
- 'data-mark-annotation-state': AnnotationMarkStates;
113
- 'data-mark-annotation-type': AnnotationTypes;
114
- 'data-mark-type': string;
115
- id: string;
116
- onKeyDown: (evt: KeyboardEvent) => void;
117
- ref: ((node: HTMLElement | null) => void) | undefined;
118
- role: string;
119
- style?: {
120
- '--ak-renderer-annotation-endmarker': string;
121
- '--ak-renderer-annotation-startmarker': string;
122
- } | undefined;
123
- tabIndex: number;
124
- }>;
20
+ export declare const MarkComponent: ({ annotationParentIds, children, dataAttributes, id, state, hasFocus, isHovered, onClick, useBlockLevel, isExtension, }: React.PropsWithChildren<MarkComponentProps>) => React.JSX.Element;
125
21
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "148.1.0",
3
+ "version": "149.0.1",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -73,8 +73,8 @@
73
73
  "@atlaskit/status": "^5.13.0",
74
74
  "@atlaskit/task-decision": "^21.12.0",
75
75
  "@atlaskit/theme": "^28.2.0",
76
- "@atlaskit/tmp-editor-statsig": "^227.0.0",
77
- "@atlaskit/tokens": "^20.3.0",
76
+ "@atlaskit/tmp-editor-statsig": "^228.0.0",
77
+ "@atlaskit/tokens": "^20.4.0",
78
78
  "@atlaskit/tooltip": "^24.4.0",
79
79
  "@atlaskit/visually-hidden": "^4.4.0",
80
80
  "@babel/runtime": "^7.0.0",
@@ -88,7 +88,7 @@
88
88
  "uuid": "^11.1.1"
89
89
  },
90
90
  "peerDependencies": {
91
- "@atlaskit/editor-common": "^129.1.0",
91
+ "@atlaskit/editor-common": "^130.1.0",
92
92
  "@atlaskit/link-provider": "^6.0.0",
93
93
  "@atlaskit/media-core": "^39.0.0",
94
94
  "react": "^18.2.0 || ^19.2.0",
@@ -100,7 +100,7 @@
100
100
  "@af/visual-regression": "workspace:^",
101
101
  "@atlaskit/analytics-gas-types": "^6.2.0",
102
102
  "@atlaskit/checkbox": "^19.3.0",
103
- "@atlaskit/editor-plugin-media": "^27.0.0",
103
+ "@atlaskit/editor-plugin-media": "^28.0.0",
104
104
  "@atlaskit/editor-test-helpers": "workspace:^",
105
105
  "@atlaskit/inline-edit": "^16.4.0",
106
106
  "@atlaskit/json-ld-types": "^2.0.0",
@@ -152,9 +152,6 @@
152
152
  "platform_editor_a11y_codeblock_haspopup": {
153
153
  "type": "boolean"
154
154
  },
155
- "platform_renderer_ssr_block_margin_fix": {
156
- "type": "boolean"
157
- },
158
155
  "platform_native_embeds_rollout_non_maui_experience": {
159
156
  "type": "boolean"
160
157
  },
@@ -200,9 +197,6 @@
200
197
  "confluence_frontend_fix_view_page_slo": {
201
198
  "type": "boolean"
202
199
  },
203
- "platform_editor_numbered_column_in_include": {
204
- "type": "boolean"
205
- },
206
200
  "media-perf-uplift-mutation-fix": {
207
201
  "type": "boolean"
208
202
  },