@atlaskit/renderer 112.11.2 → 112.12.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.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/types/react/marks/code.d.ts +6 -2
- package/dist/types/react/nodes/extension.d.ts +6 -9
- package/dist/types/react/nodes/fallback.d.ts +1 -1
- package/dist/types/react/nodes/index.d.ts +2 -2
- package/dist/types/react/nodes/inlineCard.d.ts +4 -8
- package/dist/types/react/nodes/table.d.ts +4 -8
- package/dist/types/ui/Renderer/ErrorBoundary.d.ts +1 -1
- package/dist/types/ui/SmartCardStorage.d.ts +4 -8
- package/dist/types-ts4.5/react/marks/code.d.ts +6 -2
- package/dist/types-ts4.5/react/nodes/extension.d.ts +6 -9
- package/dist/types-ts4.5/react/nodes/fallback.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/index.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/inlineCard.d.ts +4 -8
- package/dist/types-ts4.5/react/nodes/table.d.ts +4 -8
- package/dist/types-ts4.5/ui/Renderer/ErrorBoundary.d.ts +1 -1
- package/dist/types-ts4.5/ui/SmartCardStorage.d.ts +4 -8
- package/package.json +37 -37
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 112.12.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#109060](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109060)
|
|
8
|
+
[`4660ec858a305`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4660ec858a305) -
|
|
9
|
+
Update `React` from v16 to v18
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 112.11.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -64,7 +64,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
64
64
|
var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
65
65
|
var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
66
66
|
var packageName = "@atlaskit/renderer";
|
|
67
|
-
var packageVersion = "112.
|
|
67
|
+
var packageVersion = "112.12.0";
|
|
68
68
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
69
69
|
containerName: 'ak-renderer-wrapper',
|
|
70
70
|
containerType: 'inline-size',
|
|
@@ -45,7 +45,7 @@ import { TruncatedWrapper } from './truncated-wrapper';
|
|
|
45
45
|
export const NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
46
46
|
export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
47
47
|
const packageName = "@atlaskit/renderer";
|
|
48
|
-
const packageVersion = "112.
|
|
48
|
+
const packageVersion = "112.12.0";
|
|
49
49
|
const setAsQueryContainerStyles = css({
|
|
50
50
|
containerName: 'ak-renderer-wrapper',
|
|
51
51
|
containerType: 'inline-size',
|
|
@@ -54,7 +54,7 @@ import { TruncatedWrapper } from './truncated-wrapper';
|
|
|
54
54
|
export var NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
55
55
|
export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
56
56
|
var packageName = "@atlaskit/renderer";
|
|
57
|
-
var packageVersion = "112.
|
|
57
|
+
var packageVersion = "112.12.0";
|
|
58
58
|
var setAsQueryContainerStyles = css({
|
|
59
59
|
containerName: 'ak-renderer-wrapper',
|
|
60
60
|
containerType: 'inline-size',
|
|
@@ -8,9 +8,13 @@ export declare function CodeWithIntl(props: MarkProps<{
|
|
|
8
8
|
}> & WrappedComponentProps): JSX.Element;
|
|
9
9
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
10
10
|
codeBidiWarningTooltipEnabled: boolean;
|
|
11
|
-
} & import("../types").MarkMeta &
|
|
11
|
+
} & import("../types").MarkMeta & {
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
} & WrappedComponentProps>> & {
|
|
12
14
|
WrappedComponent: React.ComponentType<{
|
|
13
15
|
codeBidiWarningTooltipEnabled: boolean;
|
|
14
|
-
} & import("../types").MarkMeta &
|
|
16
|
+
} & import("../types").MarkMeta & {
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
} & WrappedComponentProps>;
|
|
15
19
|
};
|
|
16
20
|
export default _default;
|
|
@@ -47,12 +47,10 @@ declare const _default: {
|
|
|
47
47
|
handleContainer: (container: HTMLElement | null) => void;
|
|
48
48
|
initShadowObserver(): void;
|
|
49
49
|
render(): JSX.Element;
|
|
50
|
-
context:
|
|
50
|
+
context: unknown;
|
|
51
51
|
setState<K extends keyof import("@atlaskit/editor-common/ui").OverflowShadowState>(state: import("@atlaskit/editor-common/ui").OverflowShadowState | ((prevState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, props: Readonly<Props>) => import("@atlaskit/editor-common/ui").OverflowShadowState | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K> | null) | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
|
|
52
52
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
53
|
-
readonly props: Readonly<Props
|
|
54
|
-
children?: React.ReactNode;
|
|
55
|
-
}>;
|
|
53
|
+
readonly props: Readonly<Props>;
|
|
56
54
|
refs: {
|
|
57
55
|
[key: string]: React.ReactInstance;
|
|
58
56
|
};
|
|
@@ -75,7 +73,8 @@ declare const _default: {
|
|
|
75
73
|
scrollable?: NodeList | undefined;
|
|
76
74
|
diff?: number | undefined;
|
|
77
75
|
state: {
|
|
78
|
-
showLeftShadow: boolean;
|
|
76
|
+
showLeftShadow: boolean; /** We don't want this error to block renderer */
|
|
77
|
+
/** We keep rendering the default content */
|
|
79
78
|
showRightShadow: boolean;
|
|
80
79
|
};
|
|
81
80
|
componentWillUnmount(): void;
|
|
@@ -88,12 +87,10 @@ declare const _default: {
|
|
|
88
87
|
handleContainer: (container: HTMLElement | null) => void;
|
|
89
88
|
initShadowObserver(): void;
|
|
90
89
|
render(): JSX.Element;
|
|
91
|
-
context:
|
|
90
|
+
context: unknown;
|
|
92
91
|
setState<K_1 extends keyof import("@atlaskit/editor-common/ui").OverflowShadowState>(state: import("@atlaskit/editor-common/ui").OverflowShadowState | ((prevState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, props: Readonly<Props>) => import("@atlaskit/editor-common/ui").OverflowShadowState | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K_1> | null) | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K_1> | null, callback?: (() => void) | undefined): void;
|
|
93
92
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
94
|
-
readonly props: Readonly<Props
|
|
95
|
-
children?: React.ReactNode;
|
|
96
|
-
}>;
|
|
93
|
+
readonly props: Readonly<Props>;
|
|
97
94
|
refs: {
|
|
98
95
|
[key: string]: React.ReactInstance;
|
|
99
96
|
};
|
|
@@ -18,7 +18,7 @@ export declare class CardErrorBoundary extends React.PureComponent<{
|
|
|
18
18
|
isError: boolean;
|
|
19
19
|
error: Error;
|
|
20
20
|
};
|
|
21
|
-
render(): React.
|
|
21
|
+
render(): string | number | boolean | React.ReactFragment | JSX.Element | null | undefined;
|
|
22
22
|
componentDidCatch(_error: Error): void;
|
|
23
23
|
}
|
|
24
24
|
export {};
|
|
@@ -29,7 +29,7 @@ declare const CodeBlock: React.ComponentType<import("react-intl-next").WithIntlP
|
|
|
29
29
|
declare const TaskList: React.ComponentType<import("./taskList").Props> & Loadable.LoadableComponent;
|
|
30
30
|
declare const TaskItem: React.ComponentType<import("../types").NodeProps<import("./taskItem").Props>> & Loadable.LoadableComponent;
|
|
31
31
|
declare const DecisionList: React.ComponentType<import("./decisionList").Props> & Loadable.LoadableComponent;
|
|
32
|
-
declare const DecisionItem: React.ComponentType<
|
|
32
|
+
declare const DecisionItem: React.ComponentType<import("../types").NodeProps> & Loadable.LoadableComponent;
|
|
33
33
|
declare const Date: React.ComponentType<import("./date").Props> & Loadable.LoadableComponent;
|
|
34
34
|
declare const Status: React.ComponentType<import("./status").Props> & Loadable.LoadableComponent;
|
|
35
35
|
declare const Emoji: React.ComponentType<import("./emoji").EmojiProps> & Loadable.LoadableComponent;
|
|
@@ -60,7 +60,7 @@ declare const BlockCard: React.ComponentType<{
|
|
|
60
60
|
layout?: string | undefined;
|
|
61
61
|
isNodeNested?: boolean | undefined;
|
|
62
62
|
}> & Loadable.LoadableComponent;
|
|
63
|
-
declare const Media: React.ComponentType<import("./media").MediaProps
|
|
63
|
+
declare const Media: React.ComponentType<React.PropsWithChildren<import("./media").MediaProps>> & Loadable.LoadableComponent;
|
|
64
64
|
declare const MediaGroup: React.ComponentType<import("./mediaGroup").MediaGroupProps> & Loadable.LoadableComponent;
|
|
65
65
|
declare const MediaInline: React.ComponentType<import("react-intl-next").WithIntlProps<{
|
|
66
66
|
id: string;
|
|
@@ -15,12 +15,10 @@ export interface InlineCardProps extends MarkDataAttributes {
|
|
|
15
15
|
declare const _default: {
|
|
16
16
|
new (props: import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps> | Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>): {
|
|
17
17
|
render(): JSX.Element;
|
|
18
|
-
context:
|
|
18
|
+
context: unknown;
|
|
19
19
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
20
20
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
21
|
-
readonly props: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps
|
|
22
|
-
children?: import("react").ReactNode;
|
|
23
|
-
}>;
|
|
21
|
+
readonly props: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>;
|
|
24
22
|
state: Readonly<{}>;
|
|
25
23
|
refs: {
|
|
26
24
|
[key: string]: import("react").ReactInstance;
|
|
@@ -40,12 +38,10 @@ declare const _default: {
|
|
|
40
38
|
};
|
|
41
39
|
new (props: import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>, context: any): {
|
|
42
40
|
render(): JSX.Element;
|
|
43
|
-
context:
|
|
41
|
+
context: unknown;
|
|
44
42
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
45
43
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
46
|
-
readonly props: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps
|
|
47
|
-
children?: import("react").ReactNode;
|
|
48
|
-
}>;
|
|
44
|
+
readonly props: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>;
|
|
49
45
|
state: Readonly<{}>;
|
|
50
46
|
refs: {
|
|
51
47
|
[key: string]: import("react").ReactInstance;
|
|
@@ -88,7 +88,7 @@ declare const _default: {
|
|
|
88
88
|
allowTableResizing?: boolean | undefined;
|
|
89
89
|
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>): {
|
|
90
90
|
render(): JSX.Element;
|
|
91
|
-
context:
|
|
91
|
+
context: unknown;
|
|
92
92
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
93
93
|
renderWidth?: number | undefined;
|
|
94
94
|
} & Omit<SharedTableProps & {
|
|
@@ -111,9 +111,7 @@ declare const _default: {
|
|
|
111
111
|
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
112
112
|
allowTableAlignment?: boolean | undefined;
|
|
113
113
|
allowTableResizing?: boolean | undefined;
|
|
114
|
-
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps
|
|
115
|
-
children?: React.ReactNode;
|
|
116
|
-
}>;
|
|
114
|
+
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>;
|
|
117
115
|
state: Readonly<{}>;
|
|
118
116
|
refs: {
|
|
119
117
|
[key: string]: React.ReactInstance;
|
|
@@ -213,7 +211,7 @@ declare const _default: {
|
|
|
213
211
|
allowTableResizing?: boolean | undefined;
|
|
214
212
|
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>, context: any): {
|
|
215
213
|
render(): JSX.Element;
|
|
216
|
-
context:
|
|
214
|
+
context: unknown;
|
|
217
215
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
218
216
|
renderWidth?: number | undefined;
|
|
219
217
|
} & Omit<SharedTableProps & {
|
|
@@ -236,9 +234,7 @@ declare const _default: {
|
|
|
236
234
|
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
237
235
|
allowTableAlignment?: boolean | undefined;
|
|
238
236
|
allowTableResizing?: boolean | undefined;
|
|
239
|
-
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps
|
|
240
|
-
children?: React.ReactNode;
|
|
241
|
-
}>;
|
|
237
|
+
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>;
|
|
242
238
|
state: Readonly<{}>;
|
|
243
239
|
refs: {
|
|
244
240
|
[key: string]: React.ReactInstance;
|
|
@@ -23,6 +23,6 @@ export declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, E
|
|
|
23
23
|
private hasFallback;
|
|
24
24
|
private shouldRecover;
|
|
25
25
|
componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
|
|
26
|
-
render(): React.
|
|
26
|
+
render(): string | number | boolean | React.ReactFragment | JSX.Element | null | undefined;
|
|
27
27
|
}
|
|
28
28
|
export {};
|
|
@@ -8,12 +8,10 @@ export declare const Provider: ({ children }: React.PropsWithChildren<unknown>)
|
|
|
8
8
|
export declare const withSmartCardStorage: <Props extends WithSmartCardStorageProps>(WrappedComponent: React.ComponentType<React.PropsWithChildren<Props>>) => {
|
|
9
9
|
new (props: Diff<Props, WithSmartCardStorageProps> | Readonly<Diff<Props, WithSmartCardStorageProps>>): {
|
|
10
10
|
render(): JSX.Element;
|
|
11
|
-
context:
|
|
11
|
+
context: unknown;
|
|
12
12
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<Props, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
13
13
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
14
|
-
readonly props: Readonly<Diff<Props, WithSmartCardStorageProps
|
|
15
|
-
children?: React.ReactNode;
|
|
16
|
-
}>;
|
|
14
|
+
readonly props: Readonly<Diff<Props, WithSmartCardStorageProps>>;
|
|
17
15
|
state: Readonly<{}>;
|
|
18
16
|
refs: {
|
|
19
17
|
[key: string]: React.ReactInstance;
|
|
@@ -33,12 +31,10 @@ export declare const withSmartCardStorage: <Props extends WithSmartCardStoragePr
|
|
|
33
31
|
};
|
|
34
32
|
new (props: Diff<Props, WithSmartCardStorageProps>, context: any): {
|
|
35
33
|
render(): JSX.Element;
|
|
36
|
-
context:
|
|
34
|
+
context: unknown;
|
|
37
35
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<Props, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
38
36
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
39
|
-
readonly props: Readonly<Diff<Props, WithSmartCardStorageProps
|
|
40
|
-
children?: React.ReactNode;
|
|
41
|
-
}>;
|
|
37
|
+
readonly props: Readonly<Diff<Props, WithSmartCardStorageProps>>;
|
|
42
38
|
state: Readonly<{}>;
|
|
43
39
|
refs: {
|
|
44
40
|
[key: string]: React.ReactInstance;
|
|
@@ -8,9 +8,13 @@ export declare function CodeWithIntl(props: MarkProps<{
|
|
|
8
8
|
}> & WrappedComponentProps): JSX.Element;
|
|
9
9
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
10
10
|
codeBidiWarningTooltipEnabled: boolean;
|
|
11
|
-
} & import("../types").MarkMeta &
|
|
11
|
+
} & import("../types").MarkMeta & {
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
} & WrappedComponentProps>> & {
|
|
12
14
|
WrappedComponent: React.ComponentType<{
|
|
13
15
|
codeBidiWarningTooltipEnabled: boolean;
|
|
14
|
-
} & import("../types").MarkMeta &
|
|
16
|
+
} & import("../types").MarkMeta & {
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
} & WrappedComponentProps>;
|
|
15
19
|
};
|
|
16
20
|
export default _default;
|
|
@@ -47,12 +47,10 @@ declare const _default: {
|
|
|
47
47
|
handleContainer: (container: HTMLElement | null) => void;
|
|
48
48
|
initShadowObserver(): void;
|
|
49
49
|
render(): JSX.Element;
|
|
50
|
-
context:
|
|
50
|
+
context: unknown;
|
|
51
51
|
setState<K extends keyof import("@atlaskit/editor-common/ui").OverflowShadowState>(state: import("@atlaskit/editor-common/ui").OverflowShadowState | ((prevState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, props: Readonly<Props>) => import("@atlaskit/editor-common/ui").OverflowShadowState | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K> | null) | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
|
|
52
52
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
53
|
-
readonly props: Readonly<Props
|
|
54
|
-
children?: React.ReactNode;
|
|
55
|
-
}>;
|
|
53
|
+
readonly props: Readonly<Props>;
|
|
56
54
|
refs: {
|
|
57
55
|
[key: string]: React.ReactInstance;
|
|
58
56
|
};
|
|
@@ -75,7 +73,8 @@ declare const _default: {
|
|
|
75
73
|
scrollable?: NodeList | undefined;
|
|
76
74
|
diff?: number | undefined;
|
|
77
75
|
state: {
|
|
78
|
-
showLeftShadow: boolean;
|
|
76
|
+
showLeftShadow: boolean; /** We don't want this error to block renderer */
|
|
77
|
+
/** We keep rendering the default content */
|
|
79
78
|
showRightShadow: boolean;
|
|
80
79
|
};
|
|
81
80
|
componentWillUnmount(): void;
|
|
@@ -88,12 +87,10 @@ declare const _default: {
|
|
|
88
87
|
handleContainer: (container: HTMLElement | null) => void;
|
|
89
88
|
initShadowObserver(): void;
|
|
90
89
|
render(): JSX.Element;
|
|
91
|
-
context:
|
|
90
|
+
context: unknown;
|
|
92
91
|
setState<K_1 extends keyof import("@atlaskit/editor-common/ui").OverflowShadowState>(state: import("@atlaskit/editor-common/ui").OverflowShadowState | ((prevState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, props: Readonly<Props>) => import("@atlaskit/editor-common/ui").OverflowShadowState | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K_1> | null) | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K_1> | null, callback?: (() => void) | undefined): void;
|
|
93
92
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
94
|
-
readonly props: Readonly<Props
|
|
95
|
-
children?: React.ReactNode;
|
|
96
|
-
}>;
|
|
93
|
+
readonly props: Readonly<Props>;
|
|
97
94
|
refs: {
|
|
98
95
|
[key: string]: React.ReactInstance;
|
|
99
96
|
};
|
|
@@ -18,7 +18,7 @@ export declare class CardErrorBoundary extends React.PureComponent<{
|
|
|
18
18
|
isError: boolean;
|
|
19
19
|
error: Error;
|
|
20
20
|
};
|
|
21
|
-
render(): React.
|
|
21
|
+
render(): string | number | boolean | React.ReactFragment | JSX.Element | null | undefined;
|
|
22
22
|
componentDidCatch(_error: Error): void;
|
|
23
23
|
}
|
|
24
24
|
export {};
|
|
@@ -29,7 +29,7 @@ declare const CodeBlock: React.ComponentType<import("react-intl-next").WithIntlP
|
|
|
29
29
|
declare const TaskList: React.ComponentType<import("./taskList").Props> & Loadable.LoadableComponent;
|
|
30
30
|
declare const TaskItem: React.ComponentType<import("../types").NodeProps<import("./taskItem").Props>> & Loadable.LoadableComponent;
|
|
31
31
|
declare const DecisionList: React.ComponentType<import("./decisionList").Props> & Loadable.LoadableComponent;
|
|
32
|
-
declare const DecisionItem: React.ComponentType<
|
|
32
|
+
declare const DecisionItem: React.ComponentType<import("../types").NodeProps> & Loadable.LoadableComponent;
|
|
33
33
|
declare const Date: React.ComponentType<import("./date").Props> & Loadable.LoadableComponent;
|
|
34
34
|
declare const Status: React.ComponentType<import("./status").Props> & Loadable.LoadableComponent;
|
|
35
35
|
declare const Emoji: React.ComponentType<import("./emoji").EmojiProps> & Loadable.LoadableComponent;
|
|
@@ -60,7 +60,7 @@ declare const BlockCard: React.ComponentType<{
|
|
|
60
60
|
layout?: string | undefined;
|
|
61
61
|
isNodeNested?: boolean | undefined;
|
|
62
62
|
}> & Loadable.LoadableComponent;
|
|
63
|
-
declare const Media: React.ComponentType<import("./media").MediaProps
|
|
63
|
+
declare const Media: React.ComponentType<React.PropsWithChildren<import("./media").MediaProps>> & Loadable.LoadableComponent;
|
|
64
64
|
declare const MediaGroup: React.ComponentType<import("./mediaGroup").MediaGroupProps> & Loadable.LoadableComponent;
|
|
65
65
|
declare const MediaInline: React.ComponentType<import("react-intl-next").WithIntlProps<{
|
|
66
66
|
id: string;
|
|
@@ -15,12 +15,10 @@ export interface InlineCardProps extends MarkDataAttributes {
|
|
|
15
15
|
declare const _default: {
|
|
16
16
|
new (props: import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps> | Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>): {
|
|
17
17
|
render(): JSX.Element;
|
|
18
|
-
context:
|
|
18
|
+
context: unknown;
|
|
19
19
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
20
20
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
21
|
-
readonly props: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps
|
|
22
|
-
children?: import("react").ReactNode;
|
|
23
|
-
}>;
|
|
21
|
+
readonly props: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>;
|
|
24
22
|
state: Readonly<{}>;
|
|
25
23
|
refs: {
|
|
26
24
|
[key: string]: import("react").ReactInstance;
|
|
@@ -40,12 +38,10 @@ declare const _default: {
|
|
|
40
38
|
};
|
|
41
39
|
new (props: import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>, context: any): {
|
|
42
40
|
render(): JSX.Element;
|
|
43
|
-
context:
|
|
41
|
+
context: unknown;
|
|
44
42
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
45
43
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
46
|
-
readonly props: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps
|
|
47
|
-
children?: import("react").ReactNode;
|
|
48
|
-
}>;
|
|
44
|
+
readonly props: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>;
|
|
49
45
|
state: Readonly<{}>;
|
|
50
46
|
refs: {
|
|
51
47
|
[key: string]: import("react").ReactInstance;
|
|
@@ -88,7 +88,7 @@ declare const _default: {
|
|
|
88
88
|
allowTableResizing?: boolean | undefined;
|
|
89
89
|
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>): {
|
|
90
90
|
render(): JSX.Element;
|
|
91
|
-
context:
|
|
91
|
+
context: unknown;
|
|
92
92
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
93
93
|
renderWidth?: number | undefined;
|
|
94
94
|
} & Omit<SharedTableProps & {
|
|
@@ -111,9 +111,7 @@ declare const _default: {
|
|
|
111
111
|
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
112
112
|
allowTableAlignment?: boolean | undefined;
|
|
113
113
|
allowTableResizing?: boolean | undefined;
|
|
114
|
-
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps
|
|
115
|
-
children?: React.ReactNode;
|
|
116
|
-
}>;
|
|
114
|
+
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>;
|
|
117
115
|
state: Readonly<{}>;
|
|
118
116
|
refs: {
|
|
119
117
|
[key: string]: React.ReactInstance;
|
|
@@ -213,7 +211,7 @@ declare const _default: {
|
|
|
213
211
|
allowTableResizing?: boolean | undefined;
|
|
214
212
|
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>, context: any): {
|
|
215
213
|
render(): JSX.Element;
|
|
216
|
-
context:
|
|
214
|
+
context: unknown;
|
|
217
215
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
218
216
|
renderWidth?: number | undefined;
|
|
219
217
|
} & Omit<SharedTableProps & {
|
|
@@ -236,9 +234,7 @@ declare const _default: {
|
|
|
236
234
|
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
237
235
|
allowTableAlignment?: boolean | undefined;
|
|
238
236
|
allowTableResizing?: boolean | undefined;
|
|
239
|
-
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps
|
|
240
|
-
children?: React.ReactNode;
|
|
241
|
-
}>;
|
|
237
|
+
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>;
|
|
242
238
|
state: Readonly<{}>;
|
|
243
239
|
refs: {
|
|
244
240
|
[key: string]: React.ReactInstance;
|
|
@@ -23,6 +23,6 @@ export declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, E
|
|
|
23
23
|
private hasFallback;
|
|
24
24
|
private shouldRecover;
|
|
25
25
|
componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
|
|
26
|
-
render(): React.
|
|
26
|
+
render(): string | number | boolean | React.ReactFragment | JSX.Element | null | undefined;
|
|
27
27
|
}
|
|
28
28
|
export {};
|
|
@@ -8,12 +8,10 @@ export declare const Provider: ({ children }: React.PropsWithChildren<unknown>)
|
|
|
8
8
|
export declare const withSmartCardStorage: <Props extends WithSmartCardStorageProps>(WrappedComponent: React.ComponentType<React.PropsWithChildren<Props>>) => {
|
|
9
9
|
new (props: Diff<Props, WithSmartCardStorageProps> | Readonly<Diff<Props, WithSmartCardStorageProps>>): {
|
|
10
10
|
render(): JSX.Element;
|
|
11
|
-
context:
|
|
11
|
+
context: unknown;
|
|
12
12
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<Props, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
13
13
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
14
|
-
readonly props: Readonly<Diff<Props, WithSmartCardStorageProps
|
|
15
|
-
children?: React.ReactNode;
|
|
16
|
-
}>;
|
|
14
|
+
readonly props: Readonly<Diff<Props, WithSmartCardStorageProps>>;
|
|
17
15
|
state: Readonly<{}>;
|
|
18
16
|
refs: {
|
|
19
17
|
[key: string]: React.ReactInstance;
|
|
@@ -33,12 +31,10 @@ export declare const withSmartCardStorage: <Props extends WithSmartCardStoragePr
|
|
|
33
31
|
};
|
|
34
32
|
new (props: Diff<Props, WithSmartCardStorageProps>, context: any): {
|
|
35
33
|
render(): JSX.Element;
|
|
36
|
-
context:
|
|
34
|
+
context: unknown;
|
|
37
35
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<Props, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
38
36
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
39
|
-
readonly props: Readonly<Diff<Props, WithSmartCardStorageProps
|
|
40
|
-
children?: React.ReactNode;
|
|
41
|
-
}>;
|
|
37
|
+
readonly props: Readonly<Diff<Props, WithSmartCardStorageProps>>;
|
|
42
38
|
state: Readonly<{}>;
|
|
43
39
|
refs: {
|
|
44
40
|
[key: string]: React.ReactInstance;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "112.
|
|
3
|
+
"version": "112.12.0",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -23,37 +23,37 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
26
|
-
"@atlaskit/adf-utils": "^19.
|
|
27
|
-
"@atlaskit/analytics-listeners": "^8.
|
|
28
|
-
"@atlaskit/analytics-namespaced-context": "^6.
|
|
29
|
-
"@atlaskit/analytics-next": "^10.
|
|
30
|
-
"@atlaskit/button": "^20.
|
|
31
|
-
"@atlaskit/code": "^15.
|
|
32
|
-
"@atlaskit/editor-common": "^99.
|
|
33
|
-
"@atlaskit/editor-json-transformer": "^8.
|
|
34
|
-
"@atlaskit/editor-palette": "1.
|
|
26
|
+
"@atlaskit/adf-utils": "^19.18.0",
|
|
27
|
+
"@atlaskit/analytics-listeners": "^8.14.0",
|
|
28
|
+
"@atlaskit/analytics-namespaced-context": "^6.13.0",
|
|
29
|
+
"@atlaskit/analytics-next": "^10.3.0",
|
|
30
|
+
"@atlaskit/button": "^20.4.0",
|
|
31
|
+
"@atlaskit/code": "^15.7.0",
|
|
32
|
+
"@atlaskit/editor-common": "^99.6.0",
|
|
33
|
+
"@atlaskit/editor-json-transformer": "^8.22.0",
|
|
34
|
+
"@atlaskit/editor-palette": "1.7.0",
|
|
35
35
|
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
36
36
|
"@atlaskit/editor-shared-styles": "^3.2.0",
|
|
37
|
-
"@atlaskit/emoji": "^67.
|
|
37
|
+
"@atlaskit/emoji": "^67.13.0",
|
|
38
38
|
"@atlaskit/feature-gate-js-client": "^4.23.0",
|
|
39
|
-
"@atlaskit/icon": "^23.
|
|
40
|
-
"@atlaskit/link-datasource": "^3.
|
|
41
|
-
"@atlaskit/media-card": "^78.
|
|
42
|
-
"@atlaskit/media-client": "^31.
|
|
43
|
-
"@atlaskit/media-client-react": "^2.
|
|
44
|
-
"@atlaskit/media-common": "^11.
|
|
45
|
-
"@atlaskit/media-filmstrip": "^48.
|
|
46
|
-
"@atlaskit/media-ui": "^27.
|
|
47
|
-
"@atlaskit/media-viewer": "^50.
|
|
39
|
+
"@atlaskit/icon": "^23.5.0",
|
|
40
|
+
"@atlaskit/link-datasource": "^3.17.0",
|
|
41
|
+
"@atlaskit/media-card": "^78.19.0",
|
|
42
|
+
"@atlaskit/media-client": "^31.1.0",
|
|
43
|
+
"@atlaskit/media-client-react": "^2.7.0",
|
|
44
|
+
"@atlaskit/media-common": "^11.8.0",
|
|
45
|
+
"@atlaskit/media-filmstrip": "^48.2.0",
|
|
46
|
+
"@atlaskit/media-ui": "^27.4.0",
|
|
47
|
+
"@atlaskit/media-viewer": "^50.1.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
49
|
-
"@atlaskit/smart-card": "^34.
|
|
50
|
-
"@atlaskit/status": "^1.
|
|
51
|
-
"@atlaskit/task-decision": "^17.
|
|
52
|
-
"@atlaskit/theme": "^14.
|
|
49
|
+
"@atlaskit/smart-card": "^34.8.0",
|
|
50
|
+
"@atlaskit/status": "^1.9.0",
|
|
51
|
+
"@atlaskit/task-decision": "^17.12.0",
|
|
52
|
+
"@atlaskit/theme": "^14.1.0",
|
|
53
53
|
"@atlaskit/tmp-editor-statsig": "^2.41.0",
|
|
54
|
-
"@atlaskit/tokens": "^3.
|
|
55
|
-
"@atlaskit/tooltip": "^19.
|
|
56
|
-
"@atlaskit/visually-hidden": "^1.
|
|
54
|
+
"@atlaskit/tokens": "^3.3.0",
|
|
55
|
+
"@atlaskit/tooltip": "^19.1.0",
|
|
56
|
+
"@atlaskit/visually-hidden": "^1.6.0",
|
|
57
57
|
"@babel/runtime": "^7.0.0",
|
|
58
58
|
"@emotion/react": "^11.7.1",
|
|
59
59
|
"lodash": "^4.17.21",
|
|
@@ -74,22 +74,22 @@
|
|
|
74
74
|
"@af/visual-regression": "*",
|
|
75
75
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
76
76
|
"@atlaskit/css-reset": "^6.11.0",
|
|
77
|
-
"@atlaskit/link-provider": "^1.
|
|
78
|
-
"@atlaskit/link-test-helpers": "^7.
|
|
79
|
-
"@atlaskit/linking-common": "^6.
|
|
80
|
-
"@atlaskit/media-core": "^34.
|
|
77
|
+
"@atlaskit/link-provider": "^1.19.0",
|
|
78
|
+
"@atlaskit/link-test-helpers": "^7.6.0",
|
|
79
|
+
"@atlaskit/linking-common": "^6.2.0",
|
|
80
|
+
"@atlaskit/media-core": "^34.5.0",
|
|
81
81
|
"@atlaskit/media-integration-test-helpers": "^3.1.0",
|
|
82
|
-
"@atlaskit/media-test-helpers": "^34.
|
|
83
|
-
"@atlaskit/mention": "^23.
|
|
82
|
+
"@atlaskit/media-test-helpers": "^34.8.0",
|
|
83
|
+
"@atlaskit/mention": "^23.11.0",
|
|
84
84
|
"@atlaskit/navigation-next": "^9.0.0",
|
|
85
|
-
"@atlaskit/util-data-test": "^
|
|
85
|
+
"@atlaskit/util-data-test": "^18.0.0",
|
|
86
86
|
"@atlaskit/visual-regression": "*",
|
|
87
87
|
"@atlassian/feature-flags-test-utils": "*",
|
|
88
|
-
"@testing-library/react": "^
|
|
88
|
+
"@testing-library/react": "^13.4.0",
|
|
89
89
|
"@testing-library/react-hooks": "^8.0.1",
|
|
90
90
|
"@testing-library/user-event": "^14.4.3",
|
|
91
91
|
"@types/react-loadable": "^5.4.1",
|
|
92
|
-
"@types/react-test-renderer": "^
|
|
92
|
+
"@types/react-test-renderer": "^18.0.6",
|
|
93
93
|
"ajv": "^6.12.6",
|
|
94
94
|
"enzyme": "^3.10.0",
|
|
95
95
|
"jsdom": "^22.0.0",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"react-live-clock": "^5.0.0",
|
|
99
99
|
"react-magnetic-di": "^3.1.4",
|
|
100
100
|
"react-moment": "^1.1.2",
|
|
101
|
-
"react-test-renderer": "^
|
|
101
|
+
"react-test-renderer": "^18.2.0",
|
|
102
102
|
"rxjs": "^5.5.0",
|
|
103
103
|
"sinon": "^2.2.0",
|
|
104
104
|
"typescript": "~5.4.2",
|