@atlaskit/renderer 130.2.16 → 130.2.18

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 (63) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/react/marks/link-compiled.compiled.css +6 -0
  3. package/dist/cjs/react/marks/link-compiled.js +27 -0
  4. package/dist/cjs/react/marks/link-emotion.js +42 -0
  5. package/dist/cjs/react/marks/link.js +13 -23
  6. package/dist/cjs/react/nodes/layoutColumn-compiled.compiled.css +10 -0
  7. package/dist/cjs/react/nodes/layoutColumn-compiled.js +37 -0
  8. package/dist/cjs/react/nodes/layoutColumn-emotion.js +59 -0
  9. package/dist/cjs/react/nodes/layoutColumn.js +11 -41
  10. package/dist/cjs/react/nodes/panel-compiled.compiled.css +54 -0
  11. package/dist/cjs/react/nodes/panel-compiled.js +60 -0
  12. package/dist/cjs/react/nodes/panel-emotion.js +185 -0
  13. package/dist/cjs/react/nodes/panel.js +14 -181
  14. package/dist/es2019/react/marks/link-compiled.compiled.css +6 -0
  15. package/dist/es2019/react/marks/link-compiled.js +17 -0
  16. package/dist/es2019/react/marks/link-emotion.js +31 -0
  17. package/dist/es2019/react/marks/link.js +13 -23
  18. package/dist/es2019/react/nodes/layoutColumn-compiled.compiled.css +10 -0
  19. package/dist/es2019/react/nodes/layoutColumn-compiled.js +31 -0
  20. package/dist/es2019/react/nodes/layoutColumn-emotion.js +61 -0
  21. package/dist/es2019/react/nodes/layoutColumn.js +10 -50
  22. package/dist/es2019/react/nodes/panel-compiled.compiled.css +57 -0
  23. package/dist/es2019/react/nodes/panel-compiled.js +44 -0
  24. package/dist/es2019/react/nodes/panel-emotion.js +178 -0
  25. package/dist/es2019/react/nodes/panel.js +12 -180
  26. package/dist/esm/react/marks/link-compiled.compiled.css +6 -0
  27. package/dist/esm/react/marks/link-compiled.js +19 -0
  28. package/dist/esm/react/marks/link-emotion.js +34 -0
  29. package/dist/esm/react/marks/link.js +15 -23
  30. package/dist/esm/react/nodes/layoutColumn-compiled.compiled.css +10 -0
  31. package/dist/esm/react/nodes/layoutColumn-compiled.js +31 -0
  32. package/dist/esm/react/nodes/layoutColumn-emotion.js +52 -0
  33. package/dist/esm/react/nodes/layoutColumn.js +12 -41
  34. package/dist/esm/react/nodes/panel-compiled.compiled.css +54 -0
  35. package/dist/esm/react/nodes/panel-compiled.js +53 -0
  36. package/dist/esm/react/nodes/panel-emotion.js +179 -0
  37. package/dist/esm/react/nodes/panel.js +14 -181
  38. package/dist/types/react/marks/link-compiled.d.ts +13 -0
  39. package/dist/types/react/marks/link-emotion.d.ts +14 -0
  40. package/dist/types/react/marks/link.d.ts +5 -2
  41. package/dist/types/react/nodes/index.d.ts +2 -2
  42. package/dist/types/react/nodes/layoutColumn-compiled.d.ts +14 -0
  43. package/dist/types/react/nodes/layoutColumn-emotion.d.ts +14 -0
  44. package/dist/types/react/nodes/layoutColumn.d.ts +3 -5
  45. package/dist/types/react/nodes/panel-compiled.d.ts +22 -0
  46. package/dist/types/react/nodes/panel-emotion.d.ts +23 -0
  47. package/dist/types/react/nodes/panel.d.ts +1 -6
  48. package/dist/types/ui/annotations/draft/dom.d.ts +1 -1
  49. package/dist/types/ui/annotations/hooks/use-events.d.ts +1 -1
  50. package/dist/types-ts4.5/react/marks/link-compiled.d.ts +13 -0
  51. package/dist/types-ts4.5/react/marks/link-emotion.d.ts +14 -0
  52. package/dist/types-ts4.5/react/marks/link.d.ts +5 -2
  53. package/dist/types-ts4.5/react/nodes/index.d.ts +2 -2
  54. package/dist/types-ts4.5/react/nodes/layoutColumn-compiled.d.ts +14 -0
  55. package/dist/types-ts4.5/react/nodes/layoutColumn-emotion.d.ts +14 -0
  56. package/dist/types-ts4.5/react/nodes/layoutColumn.d.ts +3 -5
  57. package/dist/types-ts4.5/react/nodes/panel-compiled.d.ts +22 -0
  58. package/dist/types-ts4.5/react/nodes/panel-emotion.d.ts +23 -0
  59. package/dist/types-ts4.5/react/nodes/panel.d.ts +1 -6
  60. package/dist/types-ts4.5/ui/annotations/draft/dom.d.ts +1 -1
  61. package/dist/types-ts4.5/ui/annotations/hooks/use-events.d.ts +1 -1
  62. package/package.json +13 -10
  63. package/renderer.docs.tsx +47 -0
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ /**
6
+ * Compiled branch of the `platform_editor_static_css` experiment.
7
+ * Used via `componentWithCondition` in `layoutColumn.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import React from 'react';
12
+ export declare const LayoutSectionCompiled: (props: React.PropsWithChildren<{
13
+ width?: number;
14
+ }>) => React.JSX.Element;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ /**
6
+ * Emotion branch of the `platform_editor_static_css` experiment.
7
+ * Used via `componentWithCondition` in `layoutColumn.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import React from 'react';
12
+ export declare const LayoutSectionEmotion: (props: React.PropsWithChildren<{
13
+ width?: number;
14
+ }>) => React.JSX.Element;
@@ -1,9 +1,7 @@
1
+ import React from 'react';
1
2
  /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
3
+ * Render a layout column in renderer.
4
4
  */
5
- import React from 'react';
6
- import { jsx } from '@emotion/react';
7
5
  export default function LayoutSection(props: React.PropsWithChildren<{
8
6
  width?: number;
9
- }>): jsx.JSX.Element;
7
+ }>): React.JSX.Element;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ /**
6
+ * Compiled branch of the `platform_editor_static_css` experiment.
7
+ * Used via `componentWithCondition` in `panel.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import React from 'react';
12
+ import { PanelType } from '@atlaskit/adf-schema';
13
+ interface PanelStyledProps {
14
+ backgroundColor?: string;
15
+ 'data-panel-type': PanelType;
16
+ hasIcon?: boolean;
17
+ }
18
+ export declare const PanelStyledCompiled: {
19
+ ({ backgroundColor, children, className, hasIcon, ...props }: React.PropsWithChildren<PanelStyledProps & React.HTMLAttributes<HTMLDivElement>>): JSX.Element;
20
+ displayName: string;
21
+ };
22
+ export {};
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ /**
6
+ * Emotion branch of the `platform_editor_static_css` experiment.
7
+ * Used via `componentWithCondition` in `panel.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import React from 'react';
12
+ import { jsx } from '@emotion/react';
13
+ import { PanelType } from '@atlaskit/adf-schema';
14
+ interface PanelStyledProps {
15
+ backgroundColor?: string;
16
+ 'data-panel-type': PanelType;
17
+ hasIcon?: boolean;
18
+ }
19
+ export declare const PanelStyledEmotion: {
20
+ ({ backgroundColor, hasIcon, ...props }: React.PropsWithChildren<PanelStyledProps & React.HTMLAttributes<HTMLDivElement>>): jsx.JSX.Element;
21
+ displayName: string;
22
+ };
23
+ export {};
@@ -1,9 +1,4 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
1
  import React from 'react';
6
- import { jsx } from '@emotion/react';
7
2
  import { PanelType } from '@atlaskit/adf-schema';
8
3
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
9
4
  export interface Props {
@@ -17,5 +12,5 @@ export interface Props {
17
12
  panelType: PanelType;
18
13
  providers?: ProviderFactory;
19
14
  }
20
- declare const Panel: (props: Props) => jsx.JSX.Element;
15
+ declare const Panel: (props: Props) => React.JSX.Element;
21
16
  export default Panel;
@@ -1,5 +1,5 @@
1
1
  import type { Position } from '../types';
2
- export declare const dataAttributes: ({ from, to }: Position) => {
2
+ export declare const dataAttributes: ({ from, to, }: Position) => {
3
3
  "data-annotation-draft-mark": boolean;
4
4
  "data-draft-end-at": number;
5
5
  "data-draft-start-at": number;
@@ -13,7 +13,7 @@ type UseAnnotationUpdateSatteByEventProps = {
13
13
  updateSubscriber: AnnotationUpdateEmitter | null;
14
14
  };
15
15
  export declare const useAnnotationStateByTypeEvent: ({ type, updateSubscriber, }: UseAnnotationUpdateSatteByEventProps) => Record<string, AnnotationMarkStates | null>;
16
- export declare const useHasFocusEvent: ({ id, updateSubscriber }: ListenEventProps) => {
16
+ export declare const useHasFocusEvent: ({ id, updateSubscriber, }: ListenEventProps) => {
17
17
  hasFocus: boolean;
18
18
  isHovered: boolean;
19
19
  };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ /**
6
+ * Compiled branch of the `platform_editor_static_css` experiment.
7
+ * Used via `componentWithCondition` in `link.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import type { ComponentProps } from 'react';
12
+ import LinkUrl from '@atlaskit/smart-card/link-url';
13
+ export declare const LinkUrlCompiled: (props: ComponentProps<typeof LinkUrl>) => JSX.Element;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ /**
6
+ * Emotion branch of the `platform_editor_static_css` experiment.
7
+ * Used via `componentWithCondition` in `link.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import type { ComponentProps } from 'react';
12
+ import { jsx } from '@emotion/react';
13
+ import LinkUrl from '@atlaskit/smart-card/link-url';
14
+ export declare const LinkUrlEmotion: (props: ComponentProps<typeof LinkUrl>) => jsx.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { jsx } from '@emotion/react';
1
+ import React from 'react';
2
2
  import type { LinkAttributes } from '@atlaskit/adf-schema';
3
3
  import type { MarkProps } from '../types';
4
4
  interface LinkProps extends LinkAttributes {
@@ -6,5 +6,8 @@ interface LinkProps extends LinkAttributes {
6
6
  onSetLinkTarget?: (url: string) => '_blank' | undefined;
7
7
  target?: string;
8
8
  }
9
- export default function Link(props: MarkProps<LinkProps>): jsx.JSX.Element;
9
+ /**
10
+ * Render an ADF link mark in renderer.
11
+ */
12
+ export default function Link(props: MarkProps<LinkProps>): React.JSX.Element;
10
13
  export {};
@@ -65,7 +65,7 @@ declare const EmbedCard: React.ComponentType<{
65
65
  isInsideOfBlockNode?: boolean;
66
66
  isInsideOfInlineExtension?: boolean;
67
67
  layout: RichMediaLayout;
68
- onSetLinkTarget?: (url: string) => "_blank" | undefined;
68
+ onSetLinkTarget?: (url: string) => '_blank' | undefined;
69
69
  originalHeight?: number;
70
70
  originalWidth?: number;
71
71
  portal?: HTMLElement;
@@ -82,7 +82,7 @@ declare const BlockCard: React.ComponentType<{
82
82
  isNodeNested?: boolean;
83
83
  layout?: string;
84
84
  localId?: string;
85
- onSetLinkTarget?: (url: string) => "_blank" | undefined;
85
+ onSetLinkTarget?: (url: string) => '_blank' | undefined;
86
86
  portal?: HTMLElement;
87
87
  rendererAppearance?: RendererAppearance;
88
88
  smartLinks?: SmartLinksOptions;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ /**
6
+ * Compiled branch of the `platform_editor_static_css` experiment.
7
+ * Used via `componentWithCondition` in `layoutColumn.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import React from 'react';
12
+ export declare const LayoutSectionCompiled: (props: React.PropsWithChildren<{
13
+ width?: number;
14
+ }>) => React.JSX.Element;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ /**
6
+ * Emotion branch of the `platform_editor_static_css` experiment.
7
+ * Used via `componentWithCondition` in `layoutColumn.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import React from 'react';
12
+ export declare const LayoutSectionEmotion: (props: React.PropsWithChildren<{
13
+ width?: number;
14
+ }>) => React.JSX.Element;
@@ -1,9 +1,7 @@
1
+ import React from 'react';
1
2
  /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
3
+ * Render a layout column in renderer.
4
4
  */
5
- import React from 'react';
6
- import { jsx } from '@emotion/react';
7
5
  export default function LayoutSection(props: React.PropsWithChildren<{
8
6
  width?: number;
9
- }>): jsx.JSX.Element;
7
+ }>): React.JSX.Element;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ /**
6
+ * Compiled branch of the `platform_editor_static_css` experiment.
7
+ * Used via `componentWithCondition` in `panel.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import React from 'react';
12
+ import { PanelType } from '@atlaskit/adf-schema';
13
+ interface PanelStyledProps {
14
+ backgroundColor?: string;
15
+ 'data-panel-type': PanelType;
16
+ hasIcon?: boolean;
17
+ }
18
+ export declare const PanelStyledCompiled: {
19
+ ({ backgroundColor, children, className, hasIcon, ...props }: React.PropsWithChildren<PanelStyledProps & React.HTMLAttributes<HTMLDivElement>>): JSX.Element;
20
+ displayName: string;
21
+ };
22
+ export {};
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ /**
6
+ * Emotion branch of the `platform_editor_static_css` experiment.
7
+ * Used via `componentWithCondition` in `panel.tsx`.
8
+ *
9
+ * Cleanup: delete this file once the experiment has shipped.
10
+ */
11
+ import React from 'react';
12
+ import { jsx } from '@emotion/react';
13
+ import { PanelType } from '@atlaskit/adf-schema';
14
+ interface PanelStyledProps {
15
+ backgroundColor?: string;
16
+ 'data-panel-type': PanelType;
17
+ hasIcon?: boolean;
18
+ }
19
+ export declare const PanelStyledEmotion: {
20
+ ({ backgroundColor, hasIcon, ...props }: React.PropsWithChildren<PanelStyledProps & React.HTMLAttributes<HTMLDivElement>>): jsx.JSX.Element;
21
+ displayName: string;
22
+ };
23
+ export {};
@@ -1,9 +1,4 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
1
  import React from 'react';
6
- import { jsx } from '@emotion/react';
7
2
  import { PanelType } from '@atlaskit/adf-schema';
8
3
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
9
4
  export interface Props {
@@ -17,5 +12,5 @@ export interface Props {
17
12
  panelType: PanelType;
18
13
  providers?: ProviderFactory;
19
14
  }
20
- declare const Panel: (props: Props) => jsx.JSX.Element;
15
+ declare const Panel: (props: Props) => React.JSX.Element;
21
16
  export default Panel;
@@ -1,5 +1,5 @@
1
1
  import type { Position } from '../types';
2
- export declare const dataAttributes: ({ from, to }: Position) => {
2
+ export declare const dataAttributes: ({ from, to, }: Position) => {
3
3
  "data-annotation-draft-mark": boolean;
4
4
  "data-draft-end-at": number;
5
5
  "data-draft-start-at": number;
@@ -13,7 +13,7 @@ type UseAnnotationUpdateSatteByEventProps = {
13
13
  updateSubscriber: AnnotationUpdateEmitter | null;
14
14
  };
15
15
  export declare const useAnnotationStateByTypeEvent: ({ type, updateSubscriber, }: UseAnnotationUpdateSatteByEventProps) => Record<string, AnnotationMarkStates | null>;
16
- export declare const useHasFocusEvent: ({ id, updateSubscriber }: ListenEventProps) => {
16
+ export declare const useHasFocusEvent: ({ id, updateSubscriber, }: ListenEventProps) => {
17
17
  hasFocus: boolean;
18
18
  isHovered: boolean;
19
19
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "130.2.16",
3
+ "version": "130.2.18",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -30,8 +30,8 @@
30
30
  }
31
31
  },
32
32
  "dependencies": {
33
- "@atlaskit/adf-schema": "^52.6.0",
34
- "@atlaskit/adf-utils": "^19.27.0",
33
+ "@atlaskit/adf-schema": "^52.7.0",
34
+ "@atlaskit/adf-utils": "^19.28.0",
35
35
  "@atlaskit/afm-i18n-platform-editor-renderer": "2.10.0",
36
36
  "@atlaskit/analytics-listeners": "^10.0.0",
37
37
  "@atlaskit/analytics-namespaced-context": "^7.2.0",
@@ -51,26 +51,27 @@
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.3.0",
55
- "@atlaskit/media-client": "^36.0.0",
54
+ "@atlaskit/media-card": "^80.4.0",
55
+ "@atlaskit/media-client": "^36.1.0",
56
56
  "@atlaskit/media-client-react": "^5.1.0",
57
- "@atlaskit/media-common": "^13.1.0",
57
+ "@atlaskit/media-common": "^13.2.0",
58
58
  "@atlaskit/media-filmstrip": "^51.3.0",
59
59
  "@atlaskit/media-ui": "^29.1.0",
60
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",
64
- "@atlaskit/react-ufo": "^5.16.0",
64
+ "@atlaskit/react-ufo": "^5.18.0",
65
65
  "@atlaskit/smart-card": "^44.3.0",
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": "^72.0.0",
69
+ "@atlaskit/tmp-editor-statsig": "^74.0.0",
70
70
  "@atlaskit/tokens": "^13.0.0",
71
71
  "@atlaskit/tooltip": "^21.2.0",
72
72
  "@atlaskit/visually-hidden": "^3.0.0",
73
73
  "@babel/runtime": "^7.0.0",
74
+ "@compiled/react": "^0.20.0",
74
75
  "@emotion/react": "^11.7.1",
75
76
  "lodash": "^4.17.21",
76
77
  "memoize-one": "^6.0.0",
@@ -79,7 +80,7 @@
79
80
  "uuid": "^3.1.0"
80
81
  },
81
82
  "peerDependencies": {
82
- "@atlaskit/editor-common": "^114.13.0",
83
+ "@atlaskit/editor-common": "^114.15.0",
83
84
  "@atlaskit/link-provider": "^4.3.0",
84
85
  "@atlaskit/media-core": "^37.0.0",
85
86
  "react": "^18.2.0",
@@ -98,7 +99,7 @@
98
99
  "@atlaskit/media-test-helpers": "^41.0.0",
99
100
  "@atlaskit/mention": "^25.0.0",
100
101
  "@atlaskit/modal-dialog": "^14.18.0",
101
- "@atlaskit/navigation-system": "^8.2.0",
102
+ "@atlaskit/navigation-system": "^9.0.0",
102
103
  "@atlaskit/profilecard": "^25.1.0",
103
104
  "@atlaskit/side-nav-items": "^1.13.0",
104
105
  "@atlaskit/util-data-test": "^18.5.0",
@@ -106,6 +107,7 @@
106
107
  "@atlassian/a11y-playwright-testing": "^0.9.0",
107
108
  "@atlassian/feature-flags-test-utils": "^1.0.0",
108
109
  "@atlassian/react-compiler-gating": "workspace:^",
110
+ "@atlassian/structured-docs-types": "workspace:^",
109
111
  "@atlassian/testing-library": "^0.5.0",
110
112
  "@testing-library/react": "^16.3.0",
111
113
  "@testing-library/user-event": "^14.4.3",
@@ -132,6 +134,7 @@
132
134
  ],
133
135
  "deprecation": "no-deprecated-imports",
134
136
  "styling": [
137
+ "compiled",
135
138
  "emotion"
136
139
  ]
137
140
  }
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Testing structured MCP docs for review — ignore this file.
3
+ * Contact #dst-structured-content in Slack with questions.
4
+ */
5
+
6
+ import path from 'path';
7
+
8
+
9
+ import type { ComponentStructuredContentSource } from '@atlassian/structured-docs-types';
10
+
11
+ import packageJson from './package.json';
12
+
13
+ const packagePath = path.resolve(__dirname);
14
+
15
+ const documentation: ComponentStructuredContentSource[] = [
16
+ {
17
+ name: 'Renderer',
18
+ description: 'Renderer component',
19
+ status: 'general-availability',
20
+ import: {
21
+ name: 'Renderer',
22
+ package: '@atlaskit/renderer',
23
+ type: 'default',
24
+ packagePath,
25
+ packageJson,
26
+ },
27
+ usageGuidelines: [
28
+ 'Use ReactRenderer with an ADF document; use a transformer (e.g. BitbucketTransformer) with ADFEncoder when your storage format is not ADF.',
29
+ 'Avoid unnecessary props changes: extract static objects to constants, avoid passing new objects or anonymous functions on every render, use useMemo/useCallback for props and callbacks to prevent performance degradation.',
30
+ 'Ensure only one version of Renderer sub-dependencies (adf-schema, editor-common, prosemirror-model, etc.) in your bundles; use deduplication or resolutions. Use correct peer dependency versions.',
31
+ 'Use the truncated prop with maxHeight/fadeOutHeight when you need to cap rendered content with a fade; add polyfills for fetch and ES6/ES7 when targeting older browsers.',
32
+ ],
33
+ contentGuidelines: [],
34
+ accessibilityGuidelines: [],
35
+ keywords: ['editor', 'renderer', 'atlaskit'],
36
+ categories: ['editor'],
37
+ examples: [
38
+ { name: 'Basic', description: 'Basic ReactRenderer with ADF document.', source: path.resolve(packagePath, './examples/0-basic.tsx') },
39
+ { name: 'Full page', description: 'Full-page renderer with full ADF.', source: path.resolve(packagePath, './examples/0-full-page.tsx') },
40
+ { name: 'With providers', description: 'Renderer with media and other providers.', source: path.resolve(packagePath, './examples/1-with-providers.tsx') },
41
+ { name: 'Full page with media caption', description: 'Renderer with media and captions.', source: path.resolve(packagePath, './examples/0-full-page-with-media-caption.tsx') },
42
+ { name: 'Column layout', description: 'Renderer with column layout.', source: path.resolve(packagePath, './examples/10-column-layout.tsx') },
43
+ ],
44
+ },
45
+ ];
46
+
47
+ export default documentation;