@atlaskit/renderer 130.2.16 → 130.2.17

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 130.2.17
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 130.2.16
4
10
 
5
11
  ### Patch Changes
@@ -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;
@@ -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
  };
@@ -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;
@@ -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.17",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -61,12 +61,12 @@
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.17.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": "^73.0.0",
70
70
  "@atlaskit/tokens": "^13.0.0",
71
71
  "@atlaskit/tooltip": "^21.2.0",
72
72
  "@atlaskit/visually-hidden": "^3.0.0",
@@ -98,7 +98,7 @@
98
98
  "@atlaskit/media-test-helpers": "^41.0.0",
99
99
  "@atlaskit/mention": "^25.0.0",
100
100
  "@atlaskit/modal-dialog": "^14.18.0",
101
- "@atlaskit/navigation-system": "^8.2.0",
101
+ "@atlaskit/navigation-system": "^9.0.0",
102
102
  "@atlaskit/profilecard": "^25.1.0",
103
103
  "@atlaskit/side-nav-items": "^1.13.0",
104
104
  "@atlaskit/util-data-test": "^18.5.0",
@@ -106,6 +106,7 @@
106
106
  "@atlassian/a11y-playwright-testing": "^0.9.0",
107
107
  "@atlassian/feature-flags-test-utils": "^1.0.0",
108
108
  "@atlassian/react-compiler-gating": "workspace:^",
109
+ "@atlassian/structured-docs-types": "workspace:^",
109
110
  "@atlassian/testing-library": "^0.5.0",
110
111
  "@testing-library/react": "^16.3.0",
111
112
  "@testing-library/user-event": "^14.4.3",
@@ -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;