@atlaskit/renderer 93.0.0 → 93.0.3
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 +56 -0
- package/actions/package.json +1 -0
- package/consts/package.json +1 -0
- package/dist/cjs/i18n/en.js +28 -0
- package/dist/cjs/i18n/en_GB.js +28 -0
- package/dist/cjs/i18n/pl.js +7 -1
- package/dist/cjs/i18n/pt_BR.js +1 -1
- package/dist/cjs/react/nodes/panel.js +16 -10
- package/dist/cjs/render-document.js +2 -2
- package/dist/cjs/text/index.js +2 -2
- package/dist/cjs/ui/Renderer/click-to-edit.js +4 -4
- package/dist/cjs/ui/Renderer/index.js +2 -2
- package/dist/cjs/ui/Renderer/style.js +2 -2
- package/dist/cjs/ui/annotations/element/mark.js +5 -1
- package/dist/cjs/utils.js +2 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/i18n/en.js +20 -0
- package/dist/es2019/i18n/en_GB.js +20 -0
- package/dist/es2019/i18n/pl.js +7 -1
- package/dist/es2019/i18n/pt_BR.js +1 -1
- package/dist/es2019/react/nodes/panel.js +18 -5
- package/dist/es2019/render-document.js +1 -1
- package/dist/es2019/text/index.js +1 -1
- package/dist/es2019/ui/Renderer/click-to-edit.js +1 -1
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/es2019/ui/Renderer/style.js +1 -2
- package/dist/es2019/ui/annotations/element/mark.js +6 -2
- package/dist/es2019/utils.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/i18n/en.js +20 -0
- package/dist/esm/i18n/en_GB.js +20 -0
- package/dist/esm/i18n/pl.js +7 -1
- package/dist/esm/i18n/pt_BR.js +1 -1
- package/dist/esm/react/nodes/panel.js +12 -7
- package/dist/esm/render-document.js +1 -1
- package/dist/esm/text/index.js +1 -1
- package/dist/esm/ui/Renderer/click-to-edit.js +1 -1
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/esm/ui/Renderer/style.js +3 -3
- package/dist/esm/ui/annotations/element/mark.js +5 -1
- package/dist/esm/utils.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/actions/index.d.ts +1 -4
- package/dist/types/i18n/en.d.ts +20 -0
- package/dist/types/i18n/en_GB.d.ts +20 -0
- package/dist/types/i18n/pl.d.ts +6 -0
- package/dist/types/react/nodes/copy-text-provider.d.ts +1 -1
- package/dist/types/react/nodes/extension.d.ts +2 -2
- package/dist/types/react/nodes/fallback.d.ts +1 -1
- package/dist/types/react/nodes/index.d.ts +20 -38
- package/dist/types/react/nodes/inlineCard.d.ts +20 -20
- package/dist/types/react/nodes/media.d.ts +1 -1
- package/dist/types/react/nodes/mediaGroup.d.ts +3 -3
- package/dist/types/react/nodes/table.d.ts +80 -80
- package/dist/types/ui/MediaCard.d.ts +1 -1
- package/dist/types/ui/SmartCardStorage.d.ts +21 -20
- package/dist/types/ui/SortingIcon.d.ts +7 -5
- package/dist/types/utils.d.ts +1 -1
- package/messages/package.json +1 -0
- package/package.json +14 -14
- package/render-document/package.json +1 -0
- package/renderer-context/package.json +1 -0
- package/serializer/package.json +1 -0
- package/text-serializer/package.json +1 -0
- package/use-feature-flags/package.json +1 -0
- package/utils/package.json +1 -0
|
@@ -54,36 +54,36 @@ export declare class TableProcessor extends React.Component<TableProps & Overflo
|
|
|
54
54
|
private addNumberColumnIndexes;
|
|
55
55
|
}
|
|
56
56
|
declare const _default: {
|
|
57
|
-
new (props: Readonly<
|
|
57
|
+
new (props: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
58
58
|
renderWidth?: number | undefined;
|
|
59
|
-
} &
|
|
60
|
-
children: React.ReactElement<any, string |
|
|
59
|
+
} & Omit<SharedTableProps & {
|
|
60
|
+
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
61
61
|
tableNode?: PMNode<any> | undefined;
|
|
62
62
|
rendererAppearance?: RendererAppearance;
|
|
63
63
|
allowColumnSorting?: boolean | undefined;
|
|
64
64
|
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
65
|
-
} & WithSmartCardStorageProps, "
|
|
65
|
+
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>): {
|
|
66
66
|
render(): JSX.Element;
|
|
67
67
|
context: any;
|
|
68
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<
|
|
68
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
69
69
|
renderWidth?: number | undefined;
|
|
70
|
-
} &
|
|
71
|
-
children: React.ReactElement<any, string |
|
|
70
|
+
} & Omit<SharedTableProps & {
|
|
71
|
+
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
72
72
|
tableNode?: PMNode<any> | undefined;
|
|
73
73
|
rendererAppearance?: RendererAppearance;
|
|
74
74
|
allowColumnSorting?: boolean | undefined;
|
|
75
75
|
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
76
|
-
} & WithSmartCardStorageProps, "
|
|
76
|
+
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
77
77
|
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
78
|
-
readonly props: Readonly<
|
|
78
|
+
readonly props: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
79
79
|
renderWidth?: number | undefined;
|
|
80
|
-
} &
|
|
81
|
-
children: React.ReactElement<any, string |
|
|
80
|
+
} & Omit<SharedTableProps & {
|
|
81
|
+
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
82
82
|
tableNode?: PMNode<any> | undefined;
|
|
83
83
|
rendererAppearance?: RendererAppearance;
|
|
84
84
|
allowColumnSorting?: boolean | undefined;
|
|
85
85
|
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
86
|
-
} & WithSmartCardStorageProps, "
|
|
86
|
+
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>> & Readonly<{
|
|
87
87
|
children?: React.ReactNode;
|
|
88
88
|
}>;
|
|
89
89
|
state: Readonly<{}>;
|
|
@@ -91,104 +91,104 @@ declare const _default: {
|
|
|
91
91
|
[key: string]: React.ReactInstance;
|
|
92
92
|
};
|
|
93
93
|
componentDidMount?(): void;
|
|
94
|
-
shouldComponentUpdate?(nextProps: Readonly<
|
|
94
|
+
shouldComponentUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
95
95
|
renderWidth?: number | undefined;
|
|
96
|
-
} &
|
|
97
|
-
children: React.ReactElement<any, string |
|
|
96
|
+
} & Omit<SharedTableProps & {
|
|
97
|
+
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
98
98
|
tableNode?: PMNode<any> | undefined;
|
|
99
99
|
rendererAppearance?: RendererAppearance;
|
|
100
100
|
allowColumnSorting?: boolean | undefined;
|
|
101
101
|
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
102
|
-
} & WithSmartCardStorageProps, "
|
|
102
|
+
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
103
103
|
componentWillUnmount?(): void;
|
|
104
104
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
105
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<
|
|
105
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
106
106
|
renderWidth?: number | undefined;
|
|
107
|
-
} &
|
|
108
|
-
children: React.ReactElement<any, string |
|
|
107
|
+
} & Omit<SharedTableProps & {
|
|
108
|
+
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
109
109
|
tableNode?: PMNode<any> | undefined;
|
|
110
110
|
rendererAppearance?: RendererAppearance;
|
|
111
111
|
allowColumnSorting?: boolean | undefined;
|
|
112
112
|
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
113
|
-
} & WithSmartCardStorageProps, "
|
|
114
|
-
componentDidUpdate?(prevProps: Readonly<
|
|
113
|
+
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, prevState: Readonly<{}>): any;
|
|
114
|
+
componentDidUpdate?(prevProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
115
115
|
renderWidth?: number | undefined;
|
|
116
|
-
} &
|
|
117
|
-
children: React.ReactElement<any, string |
|
|
116
|
+
} & Omit<SharedTableProps & {
|
|
117
|
+
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
118
118
|
tableNode?: PMNode<any> | undefined;
|
|
119
119
|
rendererAppearance?: RendererAppearance;
|
|
120
120
|
allowColumnSorting?: boolean | undefined;
|
|
121
121
|
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
122
|
-
} & WithSmartCardStorageProps, "
|
|
122
|
+
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
123
123
|
componentWillMount?(): void;
|
|
124
124
|
UNSAFE_componentWillMount?(): void;
|
|
125
|
-
componentWillReceiveProps?(nextProps: Readonly<
|
|
125
|
+
componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
126
126
|
renderWidth?: number | undefined;
|
|
127
|
-
} &
|
|
128
|
-
children: React.ReactElement<any, string |
|
|
127
|
+
} & Omit<SharedTableProps & {
|
|
128
|
+
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
129
129
|
tableNode?: PMNode<any> | undefined;
|
|
130
130
|
rendererAppearance?: RendererAppearance;
|
|
131
131
|
allowColumnSorting?: boolean | undefined;
|
|
132
132
|
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
133
|
-
} & WithSmartCardStorageProps, "
|
|
134
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<
|
|
133
|
+
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
134
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
135
135
|
renderWidth?: number | undefined;
|
|
136
|
-
} &
|
|
137
|
-
children: React.ReactElement<any, string |
|
|
136
|
+
} & Omit<SharedTableProps & {
|
|
137
|
+
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
138
138
|
tableNode?: PMNode<any> | undefined;
|
|
139
139
|
rendererAppearance?: RendererAppearance;
|
|
140
140
|
allowColumnSorting?: boolean | undefined;
|
|
141
141
|
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
142
|
-
} & WithSmartCardStorageProps, "
|
|
143
|
-
componentWillUpdate?(nextProps: Readonly<
|
|
142
|
+
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
143
|
+
componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
144
144
|
renderWidth?: number | undefined;
|
|
145
|
-
} &
|
|
146
|
-
children: React.ReactElement<any, string |
|
|
145
|
+
} & Omit<SharedTableProps & {
|
|
146
|
+
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
147
147
|
tableNode?: PMNode<any> | undefined;
|
|
148
148
|
rendererAppearance?: RendererAppearance;
|
|
149
149
|
allowColumnSorting?: boolean | undefined;
|
|
150
150
|
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
151
|
-
} & WithSmartCardStorageProps, "
|
|
152
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<
|
|
151
|
+
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
152
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
153
153
|
renderWidth?: number | undefined;
|
|
154
|
-
} &
|
|
155
|
-
children: React.ReactElement<any, string |
|
|
154
|
+
} & Omit<SharedTableProps & {
|
|
155
|
+
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
156
156
|
tableNode?: PMNode<any> | undefined;
|
|
157
157
|
rendererAppearance?: RendererAppearance;
|
|
158
158
|
allowColumnSorting?: boolean | undefined;
|
|
159
159
|
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
160
|
-
} & WithSmartCardStorageProps, "
|
|
160
|
+
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
161
161
|
};
|
|
162
|
-
new (props:
|
|
162
|
+
new (props: import("@atlaskit/editor-common/utils").Diff<{
|
|
163
163
|
renderWidth?: number | undefined;
|
|
164
|
-
} &
|
|
165
|
-
children: React.ReactElement<any, string |
|
|
164
|
+
} & Omit<SharedTableProps & {
|
|
165
|
+
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
166
166
|
tableNode?: PMNode<any> | undefined;
|
|
167
167
|
rendererAppearance?: RendererAppearance;
|
|
168
168
|
allowColumnSorting?: boolean | undefined;
|
|
169
169
|
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
170
|
-
} & WithSmartCardStorageProps, "
|
|
170
|
+
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>, context?: any): {
|
|
171
171
|
render(): JSX.Element;
|
|
172
172
|
context: any;
|
|
173
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<
|
|
173
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
174
174
|
renderWidth?: number | undefined;
|
|
175
|
-
} &
|
|
176
|
-
children: React.ReactElement<any, string |
|
|
175
|
+
} & Omit<SharedTableProps & {
|
|
176
|
+
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
177
177
|
tableNode?: PMNode<any> | undefined;
|
|
178
178
|
rendererAppearance?: RendererAppearance;
|
|
179
179
|
allowColumnSorting?: boolean | undefined;
|
|
180
180
|
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
181
|
-
} & WithSmartCardStorageProps, "
|
|
181
|
+
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
182
182
|
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
183
|
-
readonly props: Readonly<
|
|
183
|
+
readonly props: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
184
184
|
renderWidth?: number | undefined;
|
|
185
|
-
} &
|
|
186
|
-
children: React.ReactElement<any, string |
|
|
185
|
+
} & Omit<SharedTableProps & {
|
|
186
|
+
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
187
187
|
tableNode?: PMNode<any> | undefined;
|
|
188
188
|
rendererAppearance?: RendererAppearance;
|
|
189
189
|
allowColumnSorting?: boolean | undefined;
|
|
190
190
|
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
191
|
-
} & WithSmartCardStorageProps, "
|
|
191
|
+
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>> & Readonly<{
|
|
192
192
|
children?: React.ReactNode;
|
|
193
193
|
}>;
|
|
194
194
|
state: Readonly<{}>;
|
|
@@ -196,73 +196,73 @@ declare const _default: {
|
|
|
196
196
|
[key: string]: React.ReactInstance;
|
|
197
197
|
};
|
|
198
198
|
componentDidMount?(): void;
|
|
199
|
-
shouldComponentUpdate?(nextProps: Readonly<
|
|
199
|
+
shouldComponentUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
200
200
|
renderWidth?: number | undefined;
|
|
201
|
-
} &
|
|
202
|
-
children: React.ReactElement<any, string |
|
|
201
|
+
} & Omit<SharedTableProps & {
|
|
202
|
+
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
203
203
|
tableNode?: PMNode<any> | undefined;
|
|
204
204
|
rendererAppearance?: RendererAppearance;
|
|
205
205
|
allowColumnSorting?: boolean | undefined;
|
|
206
206
|
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
207
|
-
} & WithSmartCardStorageProps, "
|
|
207
|
+
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
208
208
|
componentWillUnmount?(): void;
|
|
209
209
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
210
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<
|
|
210
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
211
211
|
renderWidth?: number | undefined;
|
|
212
|
-
} &
|
|
213
|
-
children: React.ReactElement<any, string |
|
|
212
|
+
} & Omit<SharedTableProps & {
|
|
213
|
+
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
214
214
|
tableNode?: PMNode<any> | undefined;
|
|
215
215
|
rendererAppearance?: RendererAppearance;
|
|
216
216
|
allowColumnSorting?: boolean | undefined;
|
|
217
217
|
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
218
|
-
} & WithSmartCardStorageProps, "
|
|
219
|
-
componentDidUpdate?(prevProps: Readonly<
|
|
218
|
+
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, prevState: Readonly<{}>): any;
|
|
219
|
+
componentDidUpdate?(prevProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
220
220
|
renderWidth?: number | undefined;
|
|
221
|
-
} &
|
|
222
|
-
children: React.ReactElement<any, string |
|
|
221
|
+
} & Omit<SharedTableProps & {
|
|
222
|
+
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
223
223
|
tableNode?: PMNode<any> | undefined;
|
|
224
224
|
rendererAppearance?: RendererAppearance;
|
|
225
225
|
allowColumnSorting?: boolean | undefined;
|
|
226
226
|
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
227
|
-
} & WithSmartCardStorageProps, "
|
|
227
|
+
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
228
228
|
componentWillMount?(): void;
|
|
229
229
|
UNSAFE_componentWillMount?(): void;
|
|
230
|
-
componentWillReceiveProps?(nextProps: Readonly<
|
|
230
|
+
componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
231
231
|
renderWidth?: number | undefined;
|
|
232
|
-
} &
|
|
233
|
-
children: React.ReactElement<any, string |
|
|
232
|
+
} & Omit<SharedTableProps & {
|
|
233
|
+
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
234
234
|
tableNode?: PMNode<any> | undefined;
|
|
235
235
|
rendererAppearance?: RendererAppearance;
|
|
236
236
|
allowColumnSorting?: boolean | undefined;
|
|
237
237
|
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
238
|
-
} & WithSmartCardStorageProps, "
|
|
239
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<
|
|
238
|
+
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
239
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
240
240
|
renderWidth?: number | undefined;
|
|
241
|
-
} &
|
|
242
|
-
children: React.ReactElement<any, string |
|
|
241
|
+
} & Omit<SharedTableProps & {
|
|
242
|
+
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
243
243
|
tableNode?: PMNode<any> | undefined;
|
|
244
244
|
rendererAppearance?: RendererAppearance;
|
|
245
245
|
allowColumnSorting?: boolean | undefined;
|
|
246
246
|
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
247
|
-
} & WithSmartCardStorageProps, "
|
|
248
|
-
componentWillUpdate?(nextProps: Readonly<
|
|
247
|
+
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
248
|
+
componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
249
249
|
renderWidth?: number | undefined;
|
|
250
|
-
} &
|
|
251
|
-
children: React.ReactElement<any, string |
|
|
250
|
+
} & Omit<SharedTableProps & {
|
|
251
|
+
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
252
252
|
tableNode?: PMNode<any> | undefined;
|
|
253
253
|
rendererAppearance?: RendererAppearance;
|
|
254
254
|
allowColumnSorting?: boolean | undefined;
|
|
255
255
|
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
256
|
-
} & WithSmartCardStorageProps, "
|
|
257
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<
|
|
256
|
+
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
257
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
258
258
|
renderWidth?: number | undefined;
|
|
259
|
-
} &
|
|
260
|
-
children: React.ReactElement<any, string |
|
|
259
|
+
} & Omit<SharedTableProps & {
|
|
260
|
+
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
261
261
|
tableNode?: PMNode<any> | undefined;
|
|
262
262
|
rendererAppearance?: RendererAppearance;
|
|
263
263
|
allowColumnSorting?: boolean | undefined;
|
|
264
264
|
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
265
|
-
} & WithSmartCardStorageProps, "
|
|
265
|
+
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
266
266
|
};
|
|
267
267
|
contextType?: React.Context<any> | undefined;
|
|
268
268
|
};
|
|
@@ -70,7 +70,7 @@ export declare const getClipboardAttrs: ({ id, alt, collection, contextIdentifie
|
|
|
70
70
|
collection?: string | undefined;
|
|
71
71
|
contextIdentifierProvider?: ContextIdentifierProvider | undefined;
|
|
72
72
|
originalDimensions?: NumericalCardDimensions | undefined;
|
|
73
|
-
fileState?:
|
|
73
|
+
fileState?: FileState | undefined;
|
|
74
74
|
}) => {
|
|
75
75
|
[key: string]: string | number | undefined;
|
|
76
76
|
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { Diff } from '@atlaskit/editor-common/utils';
|
|
2
3
|
export interface WithSmartCardStorageProps {
|
|
3
4
|
smartCardStorage: Map<string, string>;
|
|
4
5
|
}
|
|
5
6
|
export declare const Context: React.Context<Map<string, string>>;
|
|
6
7
|
export declare const Provider: React.FunctionComponent;
|
|
7
8
|
export declare const withSmartCardStorage: <Props extends WithSmartCardStorageProps>(WrappedComponent: React.ComponentType<Props>) => {
|
|
8
|
-
new (props: Readonly<
|
|
9
|
+
new (props: Readonly<Diff<Props, WithSmartCardStorageProps>>): {
|
|
9
10
|
render(): JSX.Element;
|
|
10
11
|
context: any;
|
|
11
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<
|
|
12
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<Props, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
12
13
|
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
13
|
-
readonly props: Readonly<
|
|
14
|
+
readonly props: Readonly<Diff<Props, WithSmartCardStorageProps>> & Readonly<{
|
|
14
15
|
children?: React.ReactNode;
|
|
15
16
|
}>;
|
|
16
17
|
state: Readonly<{}>;
|
|
@@ -18,24 +19,24 @@ export declare const withSmartCardStorage: <Props extends WithSmartCardStoragePr
|
|
|
18
19
|
[key: string]: React.ReactInstance;
|
|
19
20
|
};
|
|
20
21
|
componentDidMount?(): void;
|
|
21
|
-
shouldComponentUpdate?(nextProps: Readonly<
|
|
22
|
+
shouldComponentUpdate?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
22
23
|
componentWillUnmount?(): void;
|
|
23
24
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
24
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<
|
|
25
|
-
componentDidUpdate?(prevProps: Readonly<
|
|
25
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, prevState: Readonly<{}>): any;
|
|
26
|
+
componentDidUpdate?(prevProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
26
27
|
componentWillMount?(): void;
|
|
27
28
|
UNSAFE_componentWillMount?(): void;
|
|
28
|
-
componentWillReceiveProps?(nextProps: Readonly<
|
|
29
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<
|
|
30
|
-
componentWillUpdate?(nextProps: Readonly<
|
|
31
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<
|
|
29
|
+
componentWillReceiveProps?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
30
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
31
|
+
componentWillUpdate?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
32
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
32
33
|
};
|
|
33
|
-
new (props:
|
|
34
|
+
new (props: Diff<Props, WithSmartCardStorageProps>, context?: any): {
|
|
34
35
|
render(): JSX.Element;
|
|
35
36
|
context: any;
|
|
36
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<
|
|
37
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<Props, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
37
38
|
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
38
|
-
readonly props: Readonly<
|
|
39
|
+
readonly props: Readonly<Diff<Props, WithSmartCardStorageProps>> & Readonly<{
|
|
39
40
|
children?: React.ReactNode;
|
|
40
41
|
}>;
|
|
41
42
|
state: Readonly<{}>;
|
|
@@ -43,17 +44,17 @@ export declare const withSmartCardStorage: <Props extends WithSmartCardStoragePr
|
|
|
43
44
|
[key: string]: React.ReactInstance;
|
|
44
45
|
};
|
|
45
46
|
componentDidMount?(): void;
|
|
46
|
-
shouldComponentUpdate?(nextProps: Readonly<
|
|
47
|
+
shouldComponentUpdate?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
47
48
|
componentWillUnmount?(): void;
|
|
48
49
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
49
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<
|
|
50
|
-
componentDidUpdate?(prevProps: Readonly<
|
|
50
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, prevState: Readonly<{}>): any;
|
|
51
|
+
componentDidUpdate?(prevProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
51
52
|
componentWillMount?(): void;
|
|
52
53
|
UNSAFE_componentWillMount?(): void;
|
|
53
|
-
componentWillReceiveProps?(nextProps: Readonly<
|
|
54
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<
|
|
55
|
-
componentWillUpdate?(nextProps: Readonly<
|
|
56
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<
|
|
54
|
+
componentWillReceiveProps?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
55
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
56
|
+
componentWillUpdate?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
57
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
57
58
|
};
|
|
58
59
|
contextType?: React.Context<any> | undefined;
|
|
59
60
|
};
|
|
@@ -8,11 +8,13 @@ export declare enum StatusClassNames {
|
|
|
8
8
|
NO_ORDER = "sorting-icon-svg__no_order",
|
|
9
9
|
SORTING_NOT_ALLOWED = "sorting-icon-svg__not-allowed"
|
|
10
10
|
}
|
|
11
|
-
declare
|
|
11
|
+
declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<{
|
|
12
12
|
isSortingAllowed: boolean;
|
|
13
|
-
sortOrdered?: SortOrder;
|
|
14
|
-
} & WrappedComponentProps
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
sortOrdered?: SortOrder | undefined;
|
|
14
|
+
} & WrappedComponentProps<"intl">>> & {
|
|
15
|
+
WrappedComponent: import("react").ComponentType<{
|
|
16
|
+
isSortingAllowed: boolean;
|
|
17
|
+
sortOrdered?: SortOrder | undefined;
|
|
18
|
+
} & WrappedComponentProps<"intl">>;
|
|
17
19
|
};
|
|
18
20
|
export default _default;
|
package/dist/types/utils.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare class ADFEncoder<T> {
|
|
|
10
10
|
constructor(createTransformerWithSchema: TransformerProvider<T>);
|
|
11
11
|
}
|
|
12
12
|
export declare const getText: (node: PMNode | ADNode) => string;
|
|
13
|
-
export declare const getEventHandler: (eventHandlers?: EventHandlers | undefined, type?:
|
|
13
|
+
export declare const getEventHandler: (eventHandlers?: EventHandlers | undefined, type?: keyof EventHandlers | undefined, eventName?: string) => any;
|
|
14
14
|
/**
|
|
15
15
|
* Traverse DOM Tree upwards looking for table parents with "overflow: scroll".
|
|
16
16
|
*/
|
package/messages/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "93.0.
|
|
3
|
+
"version": "93.0.3",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -24,24 +24,24 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@atlaskit/adf-schema": "^
|
|
27
|
+
"@atlaskit/adf-schema": "^23.0.0",
|
|
28
28
|
"@atlaskit/adf-utils": "^16.0.0",
|
|
29
29
|
"@atlaskit/analytics-listeners": "^8.2.0",
|
|
30
30
|
"@atlaskit/analytics-namespaced-context": "^6.4.0",
|
|
31
31
|
"@atlaskit/analytics-next": "^8.2.0",
|
|
32
|
-
"@atlaskit/button": "^16.
|
|
32
|
+
"@atlaskit/button": "^16.3.0",
|
|
33
33
|
"@atlaskit/code": "^14.3.0",
|
|
34
34
|
"@atlaskit/editor-common": "^66.0.0",
|
|
35
35
|
"@atlaskit/editor-json-transformer": "^8.7.0",
|
|
36
36
|
"@atlaskit/editor-shared-styles": "^2.0.0",
|
|
37
37
|
"@atlaskit/icon": "^21.10.0",
|
|
38
|
-
"@atlaskit/media-card": "^73.
|
|
39
|
-
"@atlaskit/media-client": "^15.
|
|
40
|
-
"@atlaskit/media-common": "^2.
|
|
38
|
+
"@atlaskit/media-card": "^73.5.0",
|
|
39
|
+
"@atlaskit/media-client": "^15.1.0",
|
|
40
|
+
"@atlaskit/media-common": "^2.12.0",
|
|
41
41
|
"@atlaskit/media-filmstrip": "^43.0.0",
|
|
42
42
|
"@atlaskit/media-viewer": "^46.2.0",
|
|
43
|
-
"@atlaskit/status": "^1.
|
|
44
|
-
"@atlaskit/task-decision": "^17.
|
|
43
|
+
"@atlaskit/status": "^1.1.0",
|
|
44
|
+
"@atlaskit/task-decision": "^17.4.0",
|
|
45
45
|
"@atlaskit/theme": "^12.1.0",
|
|
46
46
|
"@atlaskit/tooltip": "^17.5.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"uuid": "^3.1.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@atlaskit/media-core": "^32.3.
|
|
60
|
-
"@atlaskit/smart-card": "^18.0.
|
|
59
|
+
"@atlaskit/media-core": "^32.3.1",
|
|
60
|
+
"@atlaskit/smart-card": "^18.0.18",
|
|
61
61
|
"react": "^16.8.0",
|
|
62
62
|
"react-dom": "^16.8.0"
|
|
63
63
|
},
|
|
@@ -66,12 +66,12 @@
|
|
|
66
66
|
"@atlaskit/avatar": "^20.5.0",
|
|
67
67
|
"@atlaskit/css-reset": "^6.3.0",
|
|
68
68
|
"@atlaskit/docs": "*",
|
|
69
|
-
"@atlaskit/editor-core": "^
|
|
69
|
+
"@atlaskit/editor-core": "^164.0.0",
|
|
70
70
|
"@atlaskit/editor-test-helpers": "^17.0.0",
|
|
71
71
|
"@atlaskit/logo": "^13.5.0",
|
|
72
72
|
"@atlaskit/media-core": "^32.3.0",
|
|
73
|
-
"@atlaskit/media-integration-test-helpers": "^2.
|
|
74
|
-
"@atlaskit/media-test-helpers": "^29.
|
|
73
|
+
"@atlaskit/media-integration-test-helpers": "^2.6.0",
|
|
74
|
+
"@atlaskit/media-test-helpers": "^29.4.0",
|
|
75
75
|
"@atlaskit/mention": "^21.0.0",
|
|
76
76
|
"@atlaskit/navigation-next": "^9.0.0",
|
|
77
77
|
"@atlaskit/profilecard": "^16.4.0",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"react-test-renderer": "^16.8.0",
|
|
99
99
|
"rxjs": "^5.5.0",
|
|
100
100
|
"sinon": "^2.2.0",
|
|
101
|
-
"typescript": "
|
|
101
|
+
"typescript": "4.2.4",
|
|
102
102
|
"worker-plugin": "^4.0.2"
|
|
103
103
|
},
|
|
104
104
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
package/serializer/package.json
CHANGED