@atlaskit/renderer 95.0.1 → 96.0.2
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 +40 -1
- package/dist/cjs/react/index.js +0 -2
- package/dist/cjs/react/nodes/embedCard.js +2 -5
- package/dist/cjs/react/nodes/inlineCard.js +5 -1
- package/dist/cjs/react/nodes/mediaInline.js +41 -4
- package/dist/cjs/react/nodes/mediaSingle/index.js +3 -7
- package/dist/cjs/react/nodes/panel.js +7 -5
- package/dist/cjs/react/nodes/table/colgroup.js +6 -12
- package/dist/cjs/react/nodes/table/sticky.js +28 -17
- package/dist/cjs/react/nodes/table/table.js +1 -3
- package/dist/cjs/react/nodes/table.js +20 -9
- package/dist/cjs/react/nodes/tableCell.js +5 -3
- package/dist/cjs/render-document.js +2 -2
- package/dist/cjs/ui/MediaCard.js +2 -2
- package/dist/cjs/ui/Renderer/breakout-ssr.js +6 -8
- package/dist/cjs/ui/Renderer/index.js +4 -12
- package/dist/cjs/ui/Renderer/style.js +3 -3
- package/dist/cjs/ui/annotations/hooks/use-events.js +4 -2
- package/dist/cjs/utils.js +0 -24
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/react/index.js +0 -2
- package/dist/es2019/react/nodes/embedCard.js +4 -7
- package/dist/es2019/react/nodes/inlineCard.js +4 -1
- package/dist/es2019/react/nodes/mediaInline.js +36 -4
- package/dist/es2019/react/nodes/mediaSingle/index.js +5 -9
- package/dist/es2019/react/nodes/panel.js +19 -16
- package/dist/es2019/react/nodes/table/colgroup.js +2 -8
- package/dist/es2019/react/nodes/table/sticky.js +26 -10
- package/dist/es2019/react/nodes/table/table.js +1 -3
- package/dist/es2019/react/nodes/table.js +18 -9
- package/dist/es2019/react/nodes/tableCell.js +4 -1
- package/dist/es2019/render-document.js +1 -1
- package/dist/es2019/ui/MediaCard.js +1 -1
- package/dist/es2019/ui/Renderer/breakout-ssr.js +6 -8
- package/dist/es2019/ui/Renderer/index.js +3 -11
- package/dist/es2019/ui/Renderer/style.js +16 -3
- package/dist/es2019/ui/annotations/hooks/use-events.js +2 -2
- package/dist/es2019/utils.js +0 -22
- package/dist/es2019/version.json +1 -1
- package/dist/esm/react/index.js +0 -2
- package/dist/esm/react/nodes/embedCard.js +4 -7
- package/dist/esm/react/nodes/heading-anchor.js +1 -1
- package/dist/esm/react/nodes/inlineCard.js +4 -1
- package/dist/esm/react/nodes/mediaInline.js +37 -5
- package/dist/esm/react/nodes/mediaSingle/index.js +5 -9
- package/dist/esm/react/nodes/panel.js +7 -5
- package/dist/esm/react/nodes/table/colgroup.js +6 -12
- package/dist/esm/react/nodes/table/sticky.js +26 -8
- package/dist/esm/react/nodes/table/table.js +1 -3
- package/dist/esm/react/nodes/table.js +20 -9
- package/dist/esm/react/nodes/tableCell.js +5 -3
- package/dist/esm/react/nodes/task-item-with-providers.js +1 -1
- package/dist/esm/render-document.js +1 -1
- package/dist/esm/ui/MediaCard.js +3 -2
- package/dist/esm/ui/Renderer/breakout-ssr.js +6 -8
- package/dist/esm/ui/Renderer/index.js +3 -11
- package/dist/esm/ui/Renderer/style.js +4 -3
- package/dist/esm/ui/annotations/hooks/use-events.js +4 -2
- package/dist/esm/utils.js +0 -22
- package/dist/esm/version.json +1 -1
- package/dist/types/react/index.d.ts +0 -2
- package/dist/types/react/nodes/embedCard.d.ts +0 -1
- package/dist/types/react/nodes/extension.d.ts +6 -0
- package/dist/types/react/nodes/index.d.ts +1 -2
- package/dist/types/react/nodes/media.d.ts +0 -1
- package/dist/types/react/nodes/mediaInline.d.ts +6 -3
- package/dist/types/react/nodes/mediaSingle/index.d.ts +0 -1
- package/dist/types/react/nodes/table/sticky.d.ts +1 -2
- package/dist/types/react/nodes/table/table.d.ts +1 -1
- package/dist/types/react/nodes/table/types.d.ts +0 -1
- package/dist/types/react/types.d.ts +0 -1
- package/dist/types/renderer-context.d.ts +1 -0
- package/dist/types/ui/MediaCard.d.ts +1 -1
- package/dist/types/ui/Renderer/breakout-ssr.d.ts +2 -4
- package/dist/types/ui/renderer-props.d.ts +1 -0
- package/dist/types/utils.d.ts +4 -8
- package/package.json +20 -18
- package/report.api.md +225 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "96.0.2",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -24,22 +24,23 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@atlaskit/adf-schema": "^23.
|
|
28
|
-
"@atlaskit/adf-utils": "^
|
|
29
|
-
"@atlaskit/analytics-listeners": "^8.
|
|
30
|
-
"@atlaskit/analytics-namespaced-context": "^6.
|
|
27
|
+
"@atlaskit/adf-schema": "^23.1.0",
|
|
28
|
+
"@atlaskit/adf-utils": "^17.0.0",
|
|
29
|
+
"@atlaskit/analytics-listeners": "^8.3.0",
|
|
30
|
+
"@atlaskit/analytics-namespaced-context": "^6.5.0",
|
|
31
31
|
"@atlaskit/analytics-next": "^8.2.0",
|
|
32
32
|
"@atlaskit/button": "^16.3.0",
|
|
33
33
|
"@atlaskit/code": "^14.3.0",
|
|
34
|
-
"@atlaskit/editor-common": "^
|
|
34
|
+
"@atlaskit/editor-common": "^68.0.0",
|
|
35
35
|
"@atlaskit/editor-json-transformer": "^8.7.0",
|
|
36
36
|
"@atlaskit/editor-shared-styles": "^2.1.0",
|
|
37
37
|
"@atlaskit/icon": "^21.10.0",
|
|
38
|
-
"@atlaskit/media-card": "^73.
|
|
39
|
-
"@atlaskit/media-client": "^
|
|
40
|
-
"@atlaskit/media-common": "^2.
|
|
38
|
+
"@atlaskit/media-card": "^73.8.0",
|
|
39
|
+
"@atlaskit/media-client": "^17.0.0",
|
|
40
|
+
"@atlaskit/media-common": "^2.15.0",
|
|
41
41
|
"@atlaskit/media-filmstrip": "^44.0.0",
|
|
42
|
-
"@atlaskit/media-
|
|
42
|
+
"@atlaskit/media-ui": "^22.1.0",
|
|
43
|
+
"@atlaskit/media-viewer": "^46.5.0",
|
|
43
44
|
"@atlaskit/status": "^1.1.0",
|
|
44
45
|
"@atlaskit/task-decision": "^17.4.0",
|
|
45
46
|
"@atlaskit/theme": "^12.1.0",
|
|
@@ -58,29 +59,30 @@
|
|
|
58
59
|
},
|
|
59
60
|
"peerDependencies": {
|
|
60
61
|
"@atlaskit/media-core": "^33.0.0",
|
|
61
|
-
"@atlaskit/smart-card": "^19.1.
|
|
62
|
+
"@atlaskit/smart-card": "^19.1.12",
|
|
62
63
|
"react": "^16.8.0",
|
|
63
|
-
"react-dom": "^16.8.0"
|
|
64
|
+
"react-dom": "^16.8.0",
|
|
65
|
+
"styled-components": "^3.2.6"
|
|
64
66
|
},
|
|
65
67
|
"devDependencies": {
|
|
66
68
|
"@atlaskit/analytics-gas-types": "^5.0.5",
|
|
67
|
-
"@atlaskit/avatar": "^
|
|
69
|
+
"@atlaskit/avatar": "^21.0.0",
|
|
68
70
|
"@atlaskit/css-reset": "^6.3.0",
|
|
69
71
|
"@atlaskit/docs": "*",
|
|
70
|
-
"@atlaskit/editor-core": "^
|
|
72
|
+
"@atlaskit/editor-core": "^167.0.0",
|
|
71
73
|
"@atlaskit/editor-test-helpers": "^17.0.0",
|
|
72
|
-
"@atlaskit/logo": "^13.
|
|
74
|
+
"@atlaskit/logo": "^13.7.0",
|
|
73
75
|
"@atlaskit/media-core": "^33.0.0",
|
|
74
76
|
"@atlaskit/media-integration-test-helpers": "^2.6.0",
|
|
75
77
|
"@atlaskit/media-test-helpers": "^30.0.0",
|
|
76
78
|
"@atlaskit/mention": "^21.0.0",
|
|
77
79
|
"@atlaskit/navigation-next": "^9.0.0",
|
|
78
|
-
"@atlaskit/profilecard": "^16.
|
|
80
|
+
"@atlaskit/profilecard": "^16.9.0",
|
|
79
81
|
"@atlaskit/radio": "^5.3.0",
|
|
80
82
|
"@atlaskit/range": "^6.0.0",
|
|
81
83
|
"@atlaskit/smart-card": "^19.1.0",
|
|
82
84
|
"@atlaskit/ssr": "*",
|
|
83
|
-
"@atlaskit/util-data-test": "^17.
|
|
85
|
+
"@atlaskit/util-data-test": "^17.3.0",
|
|
84
86
|
"@atlaskit/visual-regression": "*",
|
|
85
87
|
"@atlaskit/webdriver-runner": "*",
|
|
86
88
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
@@ -92,7 +94,7 @@
|
|
|
92
94
|
"enzyme": "^3.10.0",
|
|
93
95
|
"jsdom": "^16.2.2",
|
|
94
96
|
"mockdate": "^3.0.2",
|
|
95
|
-
"puppeteer": "
|
|
97
|
+
"puppeteer": "13.7.0",
|
|
96
98
|
"react": "^16.8.0",
|
|
97
99
|
"react-dom": "^16.8.0",
|
|
98
100
|
"react-live-clock": "^4.0.0",
|
package/report.api.md
ADDED
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
## API Report File for "@atlaskit/renderer"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
/// <reference types="react" />
|
|
7
|
+
|
|
8
|
+
import type { ADFStage } from '@atlaskit/editor-common/validator';
|
|
9
|
+
import type { AnnotationProviders } from '@atlaskit/editor-common/types';
|
|
10
|
+
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
11
|
+
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
12
|
+
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
13
|
+
import { Fragment } from 'prosemirror-model';
|
|
14
|
+
import { jsx } from '@emotion/react';
|
|
15
|
+
import { Mark } from 'prosemirror-model';
|
|
16
|
+
import { MediaClientConfig } from '@atlaskit/media-core';
|
|
17
|
+
import { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
18
|
+
import { Node as Node_2 } from 'prosemirror-model';
|
|
19
|
+
import { PropsDifference } from '@atlaskit/editor-common/utils';
|
|
20
|
+
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
21
|
+
import { Schema } from 'prosemirror-model';
|
|
22
|
+
import { SEVERITY } from '@atlaskit/editor-common/utils';
|
|
23
|
+
import { ShallowPropsDifference } from '@atlaskit/editor-common/utils';
|
|
24
|
+
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
25
|
+
import { SSR } from '@atlaskit/media-common';
|
|
26
|
+
import type { Transformer as Transformer_2 } from '@atlaskit/editor-common/types';
|
|
27
|
+
import { UNSUPPORTED_CONTENT_LEVEL_SEVERITY } from '@atlaskit/editor-common/utils';
|
|
28
|
+
import type { UnsupportedContentLevelsTracking } from '@atlaskit/editor-common/utils';
|
|
29
|
+
import type { UnsupportedContentPayload } from '@atlaskit/editor-common/utils';
|
|
30
|
+
import { UnsupportedContentTooltipPayload } from '@atlaskit/editor-common/src/utils/analytics';
|
|
31
|
+
|
|
32
|
+
// @public (undocumented)
|
|
33
|
+
export class ADFEncoder<T> {
|
|
34
|
+
constructor(createTransformerWithSchema: TransformerProvider<T>);
|
|
35
|
+
// (undocumented)
|
|
36
|
+
encode: (value: T) => any;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// @public (undocumented)
|
|
40
|
+
export type HeadingAnchorLinksProps = boolean | HeadingAnchorLinksConfig;
|
|
41
|
+
|
|
42
|
+
// @public (undocumented)
|
|
43
|
+
export type MediaSSR = {
|
|
44
|
+
mode: SSR;
|
|
45
|
+
config: MediaClientConfig;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
// @public (undocumented)
|
|
49
|
+
export const ReactRenderer: (props: RendererProps) => jsx.JSX.Element;
|
|
50
|
+
|
|
51
|
+
// @public (undocumented)
|
|
52
|
+
export class ReactSerializer implements Serializer<JSX.Element> {
|
|
53
|
+
constructor(init: ReactSerializerInit);
|
|
54
|
+
// (undocumented)
|
|
55
|
+
static buildMarkStructure(content: Node_2[]): Mark<any>[];
|
|
56
|
+
// (undocumented)
|
|
57
|
+
static fromSchema(_: unknown, init: ReactSerializerInit): ReactSerializer;
|
|
58
|
+
// (undocumented)
|
|
59
|
+
static getChildNodes(fragment: Fragment): (Node_2 | TextWrapper)[];
|
|
60
|
+
// (undocumented)
|
|
61
|
+
static getMarks(node: Node_2): Mark[];
|
|
62
|
+
// (undocumented)
|
|
63
|
+
serializeFragment(
|
|
64
|
+
fragment: Fragment,
|
|
65
|
+
props?: any,
|
|
66
|
+
target?: any,
|
|
67
|
+
key?: string,
|
|
68
|
+
parentInfo?: ParentInfo,
|
|
69
|
+
): JSX.Element | null;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// @public (undocumented)
|
|
73
|
+
export const renderDocument: <T>(
|
|
74
|
+
doc: any,
|
|
75
|
+
serializer: Serializer<T>,
|
|
76
|
+
schema?: Schema,
|
|
77
|
+
adfStage?: ADFStage,
|
|
78
|
+
useSpecBasedValidator?: boolean,
|
|
79
|
+
rendererId?: string,
|
|
80
|
+
dispatchAnalyticsEvent?: DispatchAnalyticsEvent | undefined,
|
|
81
|
+
unsupportedContentLevelsTracking?:
|
|
82
|
+
| UnsupportedContentLevelsTracking
|
|
83
|
+
| undefined,
|
|
84
|
+
appearance?: RendererAppearance,
|
|
85
|
+
) => RenderOutput<T | null>;
|
|
86
|
+
|
|
87
|
+
// @public (undocumented)
|
|
88
|
+
export type RendererAppearance =
|
|
89
|
+
| 'comment'
|
|
90
|
+
| 'full-page'
|
|
91
|
+
| 'full-width'
|
|
92
|
+
| 'mobile'
|
|
93
|
+
| undefined;
|
|
94
|
+
|
|
95
|
+
// @public (undocumented)
|
|
96
|
+
export interface RendererContext {
|
|
97
|
+
// (undocumented)
|
|
98
|
+
adDoc?: any;
|
|
99
|
+
// (undocumented)
|
|
100
|
+
containerAri?: string;
|
|
101
|
+
// (undocumented)
|
|
102
|
+
objectAri?: string;
|
|
103
|
+
// (undocumented)
|
|
104
|
+
schema?: Schema;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// @public (undocumented)
|
|
108
|
+
export interface RendererProps {
|
|
109
|
+
// (undocumented)
|
|
110
|
+
adfStage?: ADFStage;
|
|
111
|
+
// (undocumented)
|
|
112
|
+
allowAltTextOnImages?: boolean;
|
|
113
|
+
// (undocumented)
|
|
114
|
+
allowAnnotations?: boolean;
|
|
115
|
+
// (undocumented)
|
|
116
|
+
allowColumnSorting?: boolean;
|
|
117
|
+
// (undocumented)
|
|
118
|
+
allowCopyToClipboard?: boolean;
|
|
119
|
+
// (undocumented)
|
|
120
|
+
allowCustomPanels?: boolean;
|
|
121
|
+
// @deprecated (undocumented)
|
|
122
|
+
allowDynamicTextSizing?: boolean;
|
|
123
|
+
// (undocumented)
|
|
124
|
+
allowHeadingAnchorLinks?: HeadingAnchorLinksProps;
|
|
125
|
+
// (undocumented)
|
|
126
|
+
allowPlaceholderText?: boolean;
|
|
127
|
+
// (undocumented)
|
|
128
|
+
allowSelectAllTrap?: boolean;
|
|
129
|
+
// (undocumented)
|
|
130
|
+
allowUgcScrubber?: boolean;
|
|
131
|
+
// (undocumented)
|
|
132
|
+
analyticsEventSeverityTracking?: {
|
|
133
|
+
enabled: boolean;
|
|
134
|
+
severityNormalThreshold: number;
|
|
135
|
+
severityDegradedThreshold: number;
|
|
136
|
+
};
|
|
137
|
+
// (undocumented)
|
|
138
|
+
annotationProvider?: AnnotationProviders | null;
|
|
139
|
+
// (undocumented)
|
|
140
|
+
appearance?: RendererAppearance;
|
|
141
|
+
// (undocumented)
|
|
142
|
+
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
143
|
+
// (undocumented)
|
|
144
|
+
dataProviders?: ProviderFactory;
|
|
145
|
+
// (undocumented)
|
|
146
|
+
disableActions?: boolean;
|
|
147
|
+
// (undocumented)
|
|
148
|
+
disableHeadingIDs?: boolean;
|
|
149
|
+
// (undocumented)
|
|
150
|
+
document: any;
|
|
151
|
+
// (undocumented)
|
|
152
|
+
enableSsrInlineScripts?: boolean;
|
|
153
|
+
// (undocumented)
|
|
154
|
+
eventHandlers?: EventHandlers;
|
|
155
|
+
// (undocumented)
|
|
156
|
+
extensionHandlers?: ExtensionHandlers;
|
|
157
|
+
// (undocumented)
|
|
158
|
+
fadeOutHeight?: number;
|
|
159
|
+
featureFlags?:
|
|
160
|
+
| {
|
|
161
|
+
[featureFlag: string]: boolean;
|
|
162
|
+
}
|
|
163
|
+
| Partial<RawObjectFeatureFlags>;
|
|
164
|
+
// (undocumented)
|
|
165
|
+
innerRef?: React.RefObject<HTMLDivElement>;
|
|
166
|
+
// (undocumented)
|
|
167
|
+
maxHeight?: number;
|
|
168
|
+
// (undocumented)
|
|
169
|
+
media?: MediaOptions;
|
|
170
|
+
// (undocumented)
|
|
171
|
+
onComplete?: (stat: RenderOutputStat) => void;
|
|
172
|
+
// (undocumented)
|
|
173
|
+
onError?: (error: any) => void;
|
|
174
|
+
// (undocumented)
|
|
175
|
+
portal?: HTMLElement;
|
|
176
|
+
// (undocumented)
|
|
177
|
+
rendererContext?: RendererContext;
|
|
178
|
+
// (undocumented)
|
|
179
|
+
schema?: Schema;
|
|
180
|
+
// (undocumented)
|
|
181
|
+
shouldOpenMediaViewer?: boolean;
|
|
182
|
+
// (undocumented)
|
|
183
|
+
smartLinks?: SmartLinksOptions;
|
|
184
|
+
// (undocumented)
|
|
185
|
+
stickyHeaders?: StickyHeaderProps;
|
|
186
|
+
// (undocumented)
|
|
187
|
+
truncated?: boolean;
|
|
188
|
+
// (undocumented)
|
|
189
|
+
unsupportedContentLevelsTracking?: UnsupportedContentLevelsTracking;
|
|
190
|
+
// (undocumented)
|
|
191
|
+
useSpecBasedValidator?: boolean;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
// @public (undocumented)
|
|
195
|
+
export interface RenderOutputStat {
|
|
196
|
+
// (undocumented)
|
|
197
|
+
buildTreeTime?: number;
|
|
198
|
+
// (undocumented)
|
|
199
|
+
sanitizeTime: number;
|
|
200
|
+
// (undocumented)
|
|
201
|
+
serializeTime?: number;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
// @public (undocumented)
|
|
205
|
+
export interface Serializer<T> {
|
|
206
|
+
// (undocumented)
|
|
207
|
+
serializeFragment(
|
|
208
|
+
fragment: Fragment,
|
|
209
|
+
props?: any,
|
|
210
|
+
target?: any,
|
|
211
|
+
key?: string,
|
|
212
|
+
): T | null;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
// @public (undocumented)
|
|
216
|
+
export class TextSerializer implements Serializer<string> {
|
|
217
|
+
constructor(schema: Schema);
|
|
218
|
+
// (undocumented)
|
|
219
|
+
static fromSchema(schema?: Schema): TextSerializer;
|
|
220
|
+
// (undocumented)
|
|
221
|
+
serializeFragment(fragment: Fragment): string;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
// (No @packageDocumentation comment for this package)
|
|
225
|
+
```
|