@atlaskit/renderer 130.2.12 → 130.2.15

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 (95) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/cjs/react/nodes/tableNew.js +1 -1
  3. package/dist/cjs/react/utils/getCardClickHandler.js +2 -1
  4. package/dist/cjs/steps/index.js +2 -0
  5. package/dist/cjs/ui/Expand.js +4 -1
  6. package/dist/cjs/ui/ExtensionRenderer.js +4 -1
  7. package/dist/cjs/ui/Renderer/PortalContext.js +2 -0
  8. package/dist/cjs/ui/Renderer/RendererStyleContainer.js +2 -1
  9. package/dist/cjs/ui/Renderer/breakout-ssr.js +5 -1
  10. package/dist/cjs/ui/Renderer/count-nodes.js +2 -0
  11. package/dist/cjs/ui/Renderer/index.js +8 -7
  12. package/dist/cjs/ui/Renderer/truncated-wrapper.js +2 -1
  13. package/dist/cjs/ui/Renderer/useMemoFromPropsDerivative.js +2 -0
  14. package/dist/cjs/ui/RendererActionsContext/index.js +2 -0
  15. package/dist/cjs/ui/TaskItemsFormatContext/TaskItemsFormatContext.js +2 -0
  16. package/dist/cjs/ui/active-header-id-provider.js +3 -3
  17. package/dist/cjs/ui/annotations/contexts/AnnotationManagerContext.js +1 -0
  18. package/dist/cjs/ui/annotations/contexts/AnnotationRangeContext.js +1 -0
  19. package/dist/cjs/ui/annotations/draft/component.js +2 -1
  20. package/dist/cjs/ui/annotations/draft/dom.js +2 -0
  21. package/dist/cjs/ui/annotations/element/mark.js +1 -0
  22. package/dist/cjs/ui/annotations/element/useInlineAnnotationProps.js +2 -0
  23. package/dist/es2019/react/nodes/tableNew.js +1 -1
  24. package/dist/es2019/react/utils/getCardClickHandler.js +2 -2
  25. package/dist/es2019/steps/index.js +1 -0
  26. package/dist/es2019/ui/Expand.js +4 -1
  27. package/dist/es2019/ui/ExtensionRenderer.js +4 -2
  28. package/dist/es2019/ui/Renderer/PortalContext.js +1 -0
  29. package/dist/es2019/ui/Renderer/RendererStyleContainer.js +3 -2
  30. package/dist/es2019/ui/Renderer/breakout-ssr.js +4 -1
  31. package/dist/es2019/ui/Renderer/count-nodes.js +1 -0
  32. package/dist/es2019/ui/Renderer/index.js +9 -8
  33. package/dist/es2019/ui/Renderer/truncated-wrapper.js +2 -2
  34. package/dist/es2019/ui/Renderer/useMemoFromPropsDerivative.js +1 -0
  35. package/dist/es2019/ui/RendererActionsContext/index.js +1 -0
  36. package/dist/es2019/ui/TaskItemsFormatContext/TaskItemsFormatContext.js +1 -0
  37. package/dist/es2019/ui/active-header-id-provider.js +3 -4
  38. package/dist/es2019/ui/annotations/contexts/AnnotationManagerContext.js +1 -0
  39. package/dist/es2019/ui/annotations/contexts/AnnotationRangeContext.js +1 -0
  40. package/dist/es2019/ui/annotations/draft/component.js +3 -2
  41. package/dist/es2019/ui/annotations/draft/dom.js +2 -0
  42. package/dist/es2019/ui/annotations/element/mark.js +1 -0
  43. package/dist/es2019/ui/annotations/element/useInlineAnnotationProps.js +1 -0
  44. package/dist/esm/react/nodes/tableNew.js +1 -1
  45. package/dist/esm/react/utils/getCardClickHandler.js +2 -2
  46. package/dist/esm/steps/index.js +1 -0
  47. package/dist/esm/ui/Expand.js +4 -1
  48. package/dist/esm/ui/ExtensionRenderer.js +4 -2
  49. package/dist/esm/ui/Renderer/PortalContext.js +1 -0
  50. package/dist/esm/ui/Renderer/RendererStyleContainer.js +3 -2
  51. package/dist/esm/ui/Renderer/breakout-ssr.js +4 -1
  52. package/dist/esm/ui/Renderer/count-nodes.js +1 -0
  53. package/dist/esm/ui/Renderer/index.js +9 -8
  54. package/dist/esm/ui/Renderer/truncated-wrapper.js +2 -2
  55. package/dist/esm/ui/Renderer/useMemoFromPropsDerivative.js +1 -0
  56. package/dist/esm/ui/RendererActionsContext/index.js +1 -0
  57. package/dist/esm/ui/TaskItemsFormatContext/TaskItemsFormatContext.js +1 -0
  58. package/dist/esm/ui/active-header-id-provider.js +3 -3
  59. package/dist/esm/ui/annotations/contexts/AnnotationManagerContext.js +1 -0
  60. package/dist/esm/ui/annotations/contexts/AnnotationRangeContext.js +1 -0
  61. package/dist/esm/ui/annotations/draft/component.js +3 -2
  62. package/dist/esm/ui/annotations/draft/dom.js +2 -0
  63. package/dist/esm/ui/annotations/element/mark.js +1 -0
  64. package/dist/esm/ui/annotations/element/useInlineAnnotationProps.js +1 -0
  65. package/dist/types/react/nodes/codeBlock/components/lightWeightCodeBlock.d.ts +1 -1
  66. package/dist/types/react/nodes/index.d.ts +57 -32
  67. package/dist/types/ui/Expand.d.ts +3 -3
  68. package/dist/types/ui/ExtensionRenderer.d.ts +2 -1
  69. package/dist/types/ui/MediaCard.d.ts +2 -2
  70. package/dist/types/ui/Renderer/RendererStyleContainer.d.ts +2 -2
  71. package/dist/types/ui/Renderer/ValidationContext.d.ts +3 -2
  72. package/dist/types/ui/Renderer/get-base-font-size.d.ts +1 -1
  73. package/dist/types/ui/Renderer/index.d.ts +2 -3
  74. package/dist/types/ui/annotations/context.d.ts +3 -2
  75. package/dist/types/ui/annotations/draft/dom.d.ts +1 -1
  76. package/dist/types/ui/annotations/draft/text.d.ts +1 -1
  77. package/dist/types/ui/annotations/element/mark.d.ts +83 -82
  78. package/dist/types/ui/annotations/element/useInlineAnnotationProps.d.ts +6 -6
  79. package/dist/types/ui/annotations/hooks/use-inline-comment-subscriber.d.ts +2 -1
  80. package/dist/types-ts4.5/react/nodes/codeBlock/components/lightWeightCodeBlock.d.ts +1 -1
  81. package/dist/types-ts4.5/react/nodes/index.d.ts +57 -32
  82. package/dist/types-ts4.5/ui/Expand.d.ts +3 -3
  83. package/dist/types-ts4.5/ui/ExtensionRenderer.d.ts +2 -1
  84. package/dist/types-ts4.5/ui/MediaCard.d.ts +2 -2
  85. package/dist/types-ts4.5/ui/Renderer/RendererStyleContainer.d.ts +2 -2
  86. package/dist/types-ts4.5/ui/Renderer/ValidationContext.d.ts +3 -2
  87. package/dist/types-ts4.5/ui/Renderer/get-base-font-size.d.ts +1 -1
  88. package/dist/types-ts4.5/ui/Renderer/index.d.ts +2 -3
  89. package/dist/types-ts4.5/ui/annotations/context.d.ts +3 -2
  90. package/dist/types-ts4.5/ui/annotations/draft/dom.d.ts +1 -1
  91. package/dist/types-ts4.5/ui/annotations/draft/text.d.ts +1 -1
  92. package/dist/types-ts4.5/ui/annotations/element/mark.d.ts +83 -82
  93. package/dist/types-ts4.5/ui/annotations/element/useInlineAnnotationProps.d.ts +6 -6
  94. package/dist/types-ts4.5/ui/annotations/hooks/use-inline-comment-subscriber.d.ts +2 -1
  95. package/package.json +9 -9
@@ -3,8 +3,9 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import type React from 'react';
6
+ import { type SerializedStyles } from '@emotion/react';
6
7
  import type { OnAnnotationClickPayload } from '@atlaskit/editor-common/types';
7
- import type { AnnotationId, AnnotationDataAttributes } from '@atlaskit/adf-schema';
8
+ import type { AnnotationId, AnnotationDataAttributes, AnnotationTypes } from '@atlaskit/adf-schema';
8
9
  import { AnnotationMarkStates } from '@atlaskit/adf-schema';
9
10
  type MarkComponentProps = {
10
11
  annotationParentIds: AnnotationId[];
@@ -17,108 +18,108 @@ type MarkComponentProps = {
17
18
  useBlockLevel?: boolean;
18
19
  };
19
20
  export declare const MarkComponent: ({ annotationParentIds, children, dataAttributes, id, state, hasFocus, isHovered, onClick, useBlockLevel, }: React.PropsWithChildren<MarkComponentProps>) => React.ReactElement<{
20
- css?: (false | import("@emotion/utils").SerializedStyles)[] | undefined;
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;
21
29
  style?: {
22
- '--ak-renderer-annotation-startmarker': string;
23
- '--ak-renderer-annotation-endmarker': string;
30
+ "--ak-renderer-annotation-endmarker": string;
31
+ "--ak-renderer-annotation-startmarker": string;
24
32
  } | undefined;
25
- 'data-id': AnnotationId;
26
- 'data-mark-annotation-state'?: AnnotationMarkStates;
27
- 'data-mark-annotation-type': import("@atlaskit/adf-schema").AnnotationTypes;
28
- 'data-mark-type': string;
29
- 'aria-disabled': boolean;
30
- ref: ((node: HTMLElement | null) => void) | undefined;
31
- id: string;
32
33
  } | {
33
- css?: (false | import("@emotion/utils").SerializedStyles)[] | undefined;
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;
34
44
  style?: {
35
- '--ak-renderer-annotation-startmarker': string;
36
- '--ak-renderer-annotation-endmarker': string;
45
+ "--ak-renderer-annotation-endmarker": string;
46
+ "--ak-renderer-annotation-startmarker": string;
37
47
  } | undefined;
38
- 'data-mark-annotation-state': AnnotationMarkStates;
39
- 'data-has-focus': boolean;
40
- 'data-is-hovered': boolean;
41
- 'data-id': AnnotationId;
42
- 'data-mark-annotation-type': import("@atlaskit/adf-schema").AnnotationTypes;
43
- 'data-mark-type': string;
44
- 'aria-disabled': boolean;
45
- ref: ((node: HTMLElement | null) => void) | undefined;
46
- id: string;
47
48
  } | {
48
- css?: (false | import("@emotion/utils").SerializedStyles)[] | undefined;
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;
49
61
  style?: {
50
- '--ak-renderer-annotation-startmarker': string;
51
- '--ak-renderer-annotation-endmarker': string;
62
+ "--ak-renderer-annotation-endmarker": string;
63
+ "--ak-renderer-annotation-startmarker": string;
52
64
  } | undefined;
53
- 'data-id': AnnotationId;
54
- 'data-mark-annotation-state'?: AnnotationMarkStates;
55
- 'data-mark-annotation-type': import("@atlaskit/adf-schema").AnnotationTypes;
56
- 'data-mark-type': string;
57
- role?: undefined;
58
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;
59
78
  onKeyDown?: undefined;
60
- 'aria-expanded'?: undefined;
61
- 'aria-details': string;
62
- 'aria-disabled'?: undefined;
63
79
  ref: ((node: HTMLElement | null) => void) | undefined;
64
- id: string;
65
- } | {
66
- css?: (false | import("@emotion/utils").SerializedStyles)[] | undefined;
80
+ role?: undefined;
67
81
  style?: {
68
- '--ak-renderer-annotation-startmarker': string;
69
- '--ak-renderer-annotation-endmarker': string;
82
+ "--ak-renderer-annotation-endmarker": string;
83
+ "--ak-renderer-annotation-startmarker": string;
70
84
  } | undefined;
71
- 'data-mark-annotation-state': AnnotationMarkStates;
72
- 'data-has-focus': boolean;
73
- 'data-is-hovered': boolean;
74
- 'data-id': AnnotationId;
75
- 'data-mark-annotation-type': import("@atlaskit/adf-schema").AnnotationTypes;
76
- 'data-mark-type': string;
77
- role?: undefined;
78
85
  tabIndex?: undefined;
79
- onKeyDown?: undefined;
80
- 'aria-expanded'?: undefined;
81
- 'aria-details': string;
82
- 'aria-disabled'?: undefined;
83
- ref: ((node: HTMLElement | null) => void) | undefined;
84
- id: string;
85
86
  } | {
86
- css?: (false | import("@emotion/utils").SerializedStyles)[] | undefined;
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;
87
99
  style?: {
88
- '--ak-renderer-annotation-startmarker': string;
89
- '--ak-renderer-annotation-endmarker': string;
100
+ "--ak-renderer-annotation-endmarker": string;
101
+ "--ak-renderer-annotation-startmarker": string;
90
102
  } | undefined;
91
- 'data-id': AnnotationId;
92
- 'data-mark-annotation-state'?: AnnotationMarkStates;
93
- 'data-mark-annotation-type': import("@atlaskit/adf-schema").AnnotationTypes;
94
- 'data-mark-type': string;
95
- role: string;
96
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;
97
116
  onKeyDown: (evt: KeyboardEvent) => void;
98
- 'aria-expanded': boolean;
99
- 'aria-details': string;
100
- 'aria-disabled'?: undefined;
101
117
  ref: ((node: HTMLElement | null) => void) | undefined;
102
- id: string;
103
- } | {
104
- css?: (false | import("@emotion/utils").SerializedStyles)[] | undefined;
118
+ role: string;
105
119
  style?: {
106
- '--ak-renderer-annotation-startmarker': string;
107
- '--ak-renderer-annotation-endmarker': string;
120
+ "--ak-renderer-annotation-endmarker": string;
121
+ "--ak-renderer-annotation-startmarker": string;
108
122
  } | undefined;
109
- 'data-mark-annotation-state': AnnotationMarkStates;
110
- 'data-has-focus': boolean;
111
- 'data-is-hovered': boolean;
112
- 'data-id': AnnotationId;
113
- 'data-mark-annotation-type': import("@atlaskit/adf-schema").AnnotationTypes;
114
- 'data-mark-type': string;
115
- role: string;
116
123
  tabIndex: number;
117
- onKeyDown: (evt: KeyboardEvent) => void;
118
- 'aria-expanded': boolean;
119
- 'aria-details': string;
120
- 'aria-disabled'?: undefined;
121
- ref: ((node: HTMLElement | null) => void) | undefined;
122
- id: string;
123
- }, string | React.JSXElementConstructor<any>>;
124
+ }>;
124
125
  export {};
@@ -4,21 +4,21 @@ export type MarkDataAttributes = {
4
4
  };
5
5
  };
6
6
  export declare function useInlineAnnotationProps(props: MarkDataAttributes): {
7
- 'data-renderer-mark'?: undefined;
8
7
  'data-annotation-draft-mark'?: undefined;
9
8
  'data-annotation-inline-node'?: undefined;
10
- 'data-renderer-start-pos'?: undefined;
11
9
  'data-annotation-mark'?: undefined;
10
+ 'data-renderer-mark'?: undefined;
11
+ 'data-renderer-start-pos'?: undefined;
12
12
  } | {
13
- 'data-renderer-mark': boolean;
14
13
  'data-annotation-draft-mark': boolean;
15
14
  'data-annotation-inline-node': boolean;
16
- 'data-renderer-start-pos': number;
17
15
  'data-annotation-mark'?: undefined;
16
+ 'data-renderer-mark': boolean;
17
+ 'data-renderer-start-pos': number;
18
18
  } | {
19
+ 'data-annotation-draft-mark'?: undefined;
19
20
  'data-annotation-inline-node': boolean;
20
21
  'data-annotation-mark': boolean;
21
- 'data-renderer-start-pos': number;
22
22
  'data-renderer-mark'?: undefined;
23
- 'data-annotation-draft-mark'?: undefined;
23
+ 'data-renderer-start-pos': number;
24
24
  };
@@ -1 +1,2 @@
1
- export declare const useInlineCommentSubscriberContext: () => import("@atlaskit/editor-common/types").AnnotationUpdateEmitter | null;
1
+ import type { AnnotationUpdateEmitter } from '@atlaskit/editor-common/types';
2
+ export declare const useInlineCommentSubscriberContext: () => AnnotationUpdateEmitter | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "130.2.12",
3
+ "version": "130.2.15",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -51,13 +51,13 @@
51
51
  "@atlaskit/link-datasource": "^5.2.0",
52
52
  "@atlaskit/link-extractors": "^2.4.0",
53
53
  "@atlaskit/linking-common": "^9.11.0",
54
- "@atlaskit/media-card": "^80.2.0",
54
+ "@atlaskit/media-card": "^80.3.0",
55
55
  "@atlaskit/media-client": "^36.0.0",
56
- "@atlaskit/media-client-react": "^5.0.0",
57
- "@atlaskit/media-common": "^13.0.0",
58
- "@atlaskit/media-filmstrip": "^51.2.0",
59
- "@atlaskit/media-ui": "^29.0.0",
60
- "@atlaskit/media-viewer": "^53.0.0",
56
+ "@atlaskit/media-client-react": "^5.1.0",
57
+ "@atlaskit/media-common": "^13.1.0",
58
+ "@atlaskit/media-filmstrip": "^51.3.0",
59
+ "@atlaskit/media-ui": "^29.1.0",
60
+ "@atlaskit/media-viewer": "^53.1.0",
61
61
  "@atlaskit/platform-feature-flags": "^1.1.0",
62
62
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
63
63
  "@atlaskit/pragmatic-drag-and-drop": "^1.8.0",
@@ -66,7 +66,7 @@
66
66
  "@atlaskit/status": "^4.0.0",
67
67
  "@atlaskit/task-decision": "^20.0.0",
68
68
  "@atlaskit/theme": "^23.2.0",
69
- "@atlaskit/tmp-editor-statsig": "^69.0.0",
69
+ "@atlaskit/tmp-editor-statsig": "^71.0.0",
70
70
  "@atlaskit/tokens": "^13.0.0",
71
71
  "@atlaskit/tooltip": "^21.2.0",
72
72
  "@atlaskit/visually-hidden": "^3.0.0",
@@ -79,7 +79,7 @@
79
79
  "uuid": "^3.1.0"
80
80
  },
81
81
  "peerDependencies": {
82
- "@atlaskit/editor-common": "^114.10.0",
82
+ "@atlaskit/editor-common": "^114.12.0",
83
83
  "@atlaskit/link-provider": "^4.3.0",
84
84
  "@atlaskit/media-core": "^37.0.0",
85
85
  "react": "^18.2.0",