@atlaskit/renderer 109.30.1 → 109.31.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 (58) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/cjs/react/marks/alignment.js +1 -1
  3. package/dist/cjs/react/nodes/codeBlock/components/codeBlockContainer.js +1 -1
  4. package/dist/cjs/react/nodes/codeBlock/components/lightWeightCodeBlock.js +2 -2
  5. package/dist/cjs/react/nodes/media/index.js +4 -3
  6. package/dist/cjs/react/nodes/multiBodiedExtension.js +2 -2
  7. package/dist/cjs/react/nodes/panel.js +2 -2
  8. package/dist/cjs/react/nodes/table/colgroup.js +8 -8
  9. package/dist/cjs/ui/Expand.js +3 -3
  10. package/dist/cjs/ui/Renderer/index.js +1 -1
  11. package/dist/cjs/ui/Renderer/style.js +9 -9
  12. package/dist/cjs/ui/annotations/element/mark.js +1 -1
  13. package/dist/es2019/react/marks/alignment.js +2 -2
  14. package/dist/es2019/react/nodes/codeBlock/components/codeBlockContainer.js +26 -19
  15. package/dist/es2019/react/nodes/codeBlock/components/lightWeightCodeBlock.js +9 -9
  16. package/dist/es2019/react/nodes/media/index.js +16 -15
  17. package/dist/es2019/react/nodes/multiBodiedExtension.js +24 -24
  18. package/dist/es2019/react/nodes/panel.js +15 -15
  19. package/dist/es2019/react/nodes/table/colgroup.js +8 -8
  20. package/dist/es2019/ui/Expand.js +13 -13
  21. package/dist/es2019/ui/Renderer/index.js +1 -1
  22. package/dist/es2019/ui/Renderer/style.js +575 -585
  23. package/dist/es2019/ui/annotations/element/mark.js +10 -10
  24. package/dist/esm/react/marks/alignment.js +1 -1
  25. package/dist/esm/react/nodes/codeBlock/components/codeBlockContainer.js +1 -1
  26. package/dist/esm/react/nodes/codeBlock/components/lightWeightCodeBlock.js +2 -2
  27. package/dist/esm/react/nodes/media/index.js +4 -3
  28. package/dist/esm/react/nodes/multiBodiedExtension.js +2 -2
  29. package/dist/esm/react/nodes/panel.js +2 -2
  30. package/dist/esm/react/nodes/table/colgroup.js +8 -8
  31. package/dist/esm/ui/Expand.js +3 -3
  32. package/dist/esm/ui/Renderer/index.js +1 -1
  33. package/dist/esm/ui/Renderer/style.js +9 -9
  34. package/dist/esm/ui/annotations/element/mark.js +1 -1
  35. package/dist/types/actions.d.ts +1 -1
  36. package/dist/types/react/hooks/use-bidi-warnings.d.ts +1 -1
  37. package/dist/types/react/nodes/extension.d.ts +1 -2
  38. package/dist/types/react/nodes/table/colgroup.d.ts +1 -1
  39. package/dist/types/ui/RendererActionsContext/index.d.ts +1 -1
  40. package/dist/types/ui/SmartCardStorage.d.ts +1 -1
  41. package/dist/types/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +1 -4
  42. package/dist/types/ui/TaskItemsFormatContext/index.d.ts +1 -1
  43. package/dist/types/ui/active-header-id-provider.d.ts +1 -1
  44. package/dist/types/ui/annotations/contexts/AnnotationHoverContext.d.ts +1 -1
  45. package/dist/types/ui/annotations/hooks/use-events.d.ts +1 -1
  46. package/dist/types-ts4.5/actions.d.ts +1 -1
  47. package/dist/types-ts4.5/react/hooks/use-bidi-warnings.d.ts +1 -1
  48. package/dist/types-ts4.5/react/nodes/extension.d.ts +1 -2
  49. package/dist/types-ts4.5/react/nodes/table/colgroup.d.ts +1 -1
  50. package/dist/types-ts4.5/ui/RendererActionsContext/index.d.ts +1 -1
  51. package/dist/types-ts4.5/ui/SmartCardStorage.d.ts +1 -1
  52. package/dist/types-ts4.5/ui/TaskItemsFormatContext/index.d.ts +1 -1
  53. package/dist/types-ts4.5/ui/active-header-id-provider.d.ts +1 -1
  54. package/dist/types-ts4.5/ui/annotations/contexts/AnnotationHoverContext.d.ts +1 -1
  55. package/dist/types-ts4.5/ui/annotations/hooks/use-events.d.ts +1 -1
  56. package/docs/0-intro.tsx +12 -21
  57. package/package.json +2 -2
  58. package/report.api.md +478 -492
@@ -12,7 +12,7 @@ type UseAnnotationUpdateSatteByEventProps = {
12
12
  updateSubscriber: AnnotationUpdateEmitter | null;
13
13
  };
14
14
  export declare const useAnnotationStateByTypeEvent: ({ type, updateSubscriber, }: UseAnnotationUpdateSatteByEventProps) => Record<string, AnnotationMarkStates | null>;
15
- export declare const useHasFocusEvent: ({ id, updateSubscriber, }: ListenEventProps) => boolean;
15
+ export declare const useHasFocusEvent: ({ id, updateSubscriber }: ListenEventProps) => boolean;
16
16
  type AnnotationsWithClickTarget = Pick<InlineCommentViewComponentProps, 'annotations' | 'clickElementTarget'> | null;
17
17
  export declare const useAnnotationClickEvent: (props: Pick<ListenEventProps, "createAnalyticsEvent" | "updateSubscriber"> & {
18
18
  isCommentsOnMediaAnalyticsEnabled?: boolean | undefined;
package/docs/0-intro.tsx CHANGED
@@ -1,11 +1,5 @@
1
1
  import React from 'react';
2
- import {
3
- md,
4
- Example,
5
- Props,
6
- code,
7
- AtlassianInternalWarning,
8
- } from '@atlaskit/docs';
2
+ import { md, Example, Props, code, AtlassianInternalWarning } from '@atlaskit/docs';
9
3
 
10
4
  export default md`
11
5
  ${(<AtlassianInternalWarning />)}
@@ -24,11 +18,11 @@ ReactDOM.render(<ReactRenderer document={DOCUMENT} />, container);
24
18
  ## Example
25
19
 
26
20
  ${(
27
- <Example
28
- Component={require('../examples/1-with-providers').default}
29
- title="With Providers"
30
- source={require('!!raw-loader!../examples/1-with-providers')}
31
- />
21
+ <Example
22
+ Component={require('../examples/1-with-providers').default}
23
+ title="With Providers"
24
+ source={require('!!raw-loader!../examples/1-with-providers')}
25
+ />
32
26
  )}
33
27
 
34
28
  ## Best practices to prevent performance issues
@@ -130,11 +124,11 @@ ReactDOM.render(<ReactRenderer document={DOCUMENT} truncated={true} maxHeight={7
130
124
  `}
131
125
 
132
126
  ${(
133
- <Example
134
- Component={require('../examples/15-truncated').default}
135
- title="Truncated"
136
- source={require('!!raw-loader!../examples/15-truncated')}
137
- />
127
+ <Example
128
+ Component={require('../examples/15-truncated').default}
129
+ title="Truncated"
130
+ source={require('!!raw-loader!../examples/15-truncated')}
131
+ />
138
132
  )}
139
133
 
140
134
  ## Theming and dark mode support
@@ -146,9 +140,6 @@ Full light and dark mode support for the Editor is a work in progress. Currently
146
140
  - Custom table backgrounds
147
141
 
148
142
  ${(
149
- <Props
150
- heading="Props"
151
- props={require('!!extract-react-types-loader!../src/ui/Renderer/index')}
152
- />
143
+ <Props heading="Props" props={require('!!extract-react-types-loader!../src/ui/Renderer/index')} />
153
144
  )}
154
145
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "109.30.1",
3
+ "version": "109.31.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": "^9.3.0",
32
32
  "@atlaskit/button": "^17.17.0",
33
33
  "@atlaskit/code": "^15.2.0",
34
- "@atlaskit/editor-common": "^81.1.0",
34
+ "@atlaskit/editor-common": "^81.2.0",
35
35
  "@atlaskit/editor-json-transformer": "^8.13.0",
36
36
  "@atlaskit/editor-palette": "1.6.0",
37
37
  "@atlaskit/editor-prosemirror": "4.0.1",