@atlaskit/renderer 126.1.0 → 126.1.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 +17 -0
- package/afm-jira/tsconfig.json +1 -1
- package/dist/cjs/react/nodes/extension.js +3 -2
- package/dist/cjs/react/nodes/inlineCard.js +2 -1
- package/dist/cjs/react/nodes/table.js +12 -4
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/react/nodes/extension.js +3 -2
- package/dist/es2019/react/nodes/inlineCard.js +2 -1
- package/dist/es2019/react/nodes/table.js +12 -4
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/react/nodes/extension.js +3 -2
- package/dist/esm/react/nodes/inlineCard.js +2 -1
- package/dist/esm/react/nodes/table.js +12 -4
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/types/analytics/events.d.ts +9 -1
- package/dist/types/react/nodes/extension.d.ts +58 -58
- package/dist/types/react/nodes/inlineCard.d.ts +47 -41
- package/dist/types/react/nodes/table.d.ts +39 -38
- package/dist/types-ts4.5/analytics/events.d.ts +9 -1
- package/dist/types-ts4.5/react/nodes/extension.d.ts +58 -58
- package/dist/types-ts4.5/react/nodes/inlineCard.d.ts +47 -41
- package/dist/types-ts4.5/react/nodes/table.d.ts +39 -38
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 126.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`7080196995b11`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7080196995b11) -
|
|
8
|
+
Cleaning up FG platform_editor_ai_generic_prep_for_aifc
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 126.1.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`7f41011a1b0ff`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7f41011a1b0ff) -
|
|
16
|
+
EDITOR-1665 update sync block experience events to use general experience ids, keep existing error
|
|
17
|
+
events and add success events
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 126.1.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
package/afm-jira/tsconfig.json
CHANGED
|
@@ -164,6 +164,7 @@ var Extension = function Extension(props) {
|
|
|
164
164
|
}, undefined, parameters === null || parameters === void 0 ? void 0 : parameters.extensionId, extensionViewportSizes, nodeHeight, localId, undefined, undefined);
|
|
165
165
|
});
|
|
166
166
|
};
|
|
167
|
-
var
|
|
167
|
+
var _default_1 = (0, _ui.overflowShadow)(Extension, {
|
|
168
168
|
overflowSelector: ".".concat(_consts.RendererCssClassName.EXTENSION_OVERFLOW_CONTAINER)
|
|
169
|
-
});
|
|
169
|
+
});
|
|
170
|
+
var _default = exports.default = _default_1;
|
|
@@ -323,4 +323,5 @@ var InlineCard = function InlineCard(props) {
|
|
|
323
323
|
})
|
|
324
324
|
}))), CompetitorPromptComponent)));
|
|
325
325
|
};
|
|
326
|
-
var
|
|
326
|
+
var _default_1 = (0, _SmartCardStorage.withSmartCardStorage)(InlineCard);
|
|
327
|
+
var _default = exports.default = _default_1;
|
|
@@ -98,7 +98,10 @@ var shouldHeaderStick = exports.shouldHeaderStick = function shouldHeaderStick(s
|
|
|
98
98
|
var shouldHeaderPinBottom = exports.shouldHeaderPinBottom = function shouldHeaderPinBottom(scrollTop, tableBottom, rowHeight) {
|
|
99
99
|
return tableBottom - rowHeight <= scrollTop && !(tableBottom < scrollTop);
|
|
100
100
|
};
|
|
101
|
-
var addSortableColumn = exports.addSortableColumn = function addSortableColumn(rows, tableOrderStatus, onSorting
|
|
101
|
+
var addSortableColumn = exports.addSortableColumn = function addSortableColumn(rows, tableOrderStatus, onSorting
|
|
102
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
103
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
104
|
+
) {
|
|
102
105
|
return _react.default.Children.map(rows, function (row, index) {
|
|
103
106
|
if (index === 0) {
|
|
104
107
|
return /*#__PURE__*/_react.default.cloneElement(_react.default.Children.only(row), {
|
|
@@ -109,7 +112,9 @@ var addSortableColumn = exports.addSortableColumn = function addSortableColumn(r
|
|
|
109
112
|
return row;
|
|
110
113
|
});
|
|
111
114
|
};
|
|
112
|
-
var isHeaderRowEnabled = exports.isHeaderRowEnabled = function isHeaderRowEnabled(rows
|
|
115
|
+
var isHeaderRowEnabled = exports.isHeaderRowEnabled = function isHeaderRowEnabled(rows
|
|
116
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
117
|
+
) {
|
|
113
118
|
if (!rows.length) {
|
|
114
119
|
return false;
|
|
115
120
|
}
|
|
@@ -155,7 +160,9 @@ var TableWrapper = function TableWrapper(_ref2) {
|
|
|
155
160
|
"aria-label": formatMessage(_messages.tableMessages.tableScrollRegion)
|
|
156
161
|
}, children);
|
|
157
162
|
};
|
|
158
|
-
var tableCanBeSticky = exports.tableCanBeSticky = function tableCanBeSticky(node, children
|
|
163
|
+
var tableCanBeSticky = exports.tableCanBeSticky = function tableCanBeSticky(node, children
|
|
164
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
165
|
+
) {
|
|
159
166
|
return isHeaderRowEnabled(children) && node && node.firstChild && !hasRowspan(node.firstChild);
|
|
160
167
|
};
|
|
161
168
|
/**
|
|
@@ -752,4 +759,5 @@ var TableWithWidth = function TableWithWidth(props) {
|
|
|
752
759
|
});
|
|
753
760
|
}
|
|
754
761
|
};
|
|
755
|
-
var
|
|
762
|
+
var _default_1 = (0, _SmartCardStorage.withSmartCardStorage)(TableWithWidth);
|
|
763
|
+
var _default = exports.default = _default_1;
|
|
@@ -70,7 +70,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
70
70
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
71
71
|
var RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
72
72
|
var packageName = "@atlaskit/renderer";
|
|
73
|
-
var packageVersion = "126.
|
|
73
|
+
var packageVersion = "126.1.1";
|
|
74
74
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
75
75
|
containerName: 'ak-renderer-wrapper',
|
|
76
76
|
containerType: 'inline-size'
|
|
@@ -146,6 +146,7 @@ const Extension = props => {
|
|
|
146
146
|
}, undefined, parameters === null || parameters === void 0 ? void 0 : parameters.extensionId, extensionViewportSizes, nodeHeight, localId, undefined, undefined);
|
|
147
147
|
});
|
|
148
148
|
};
|
|
149
|
-
|
|
149
|
+
const _default_1 = overflowShadow(Extension, {
|
|
150
150
|
overflowSelector: `.${RendererCssClassName.EXTENSION_OVERFLOW_CONTAINER}`
|
|
151
|
-
});
|
|
151
|
+
});
|
|
152
|
+
export default _default_1;
|
|
@@ -67,7 +67,10 @@ export const getRefTop = refElement => {
|
|
|
67
67
|
};
|
|
68
68
|
export const shouldHeaderStick = (scrollTop, tableTop, tableBottom, rowHeight) => tableTop <= scrollTop && !(tableBottom - rowHeight <= scrollTop);
|
|
69
69
|
export const shouldHeaderPinBottom = (scrollTop, tableBottom, rowHeight) => tableBottom - rowHeight <= scrollTop && !(tableBottom < scrollTop);
|
|
70
|
-
export const addSortableColumn = (rows, tableOrderStatus, onSorting
|
|
70
|
+
export const addSortableColumn = (rows, tableOrderStatus, onSorting
|
|
71
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
72
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
73
|
+
) => {
|
|
71
74
|
return React.Children.map(rows, (row, index) => {
|
|
72
75
|
if (index === 0) {
|
|
73
76
|
return /*#__PURE__*/React.cloneElement(React.Children.only(row), {
|
|
@@ -78,7 +81,9 @@ export const addSortableColumn = (rows, tableOrderStatus, onSorting) => {
|
|
|
78
81
|
return row;
|
|
79
82
|
});
|
|
80
83
|
};
|
|
81
|
-
export const isHeaderRowEnabled = rows
|
|
84
|
+
export const isHeaderRowEnabled = (rows
|
|
85
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
86
|
+
) => {
|
|
82
87
|
if (!rows.length) {
|
|
83
88
|
return false;
|
|
84
89
|
}
|
|
@@ -126,7 +131,9 @@ const TableWrapper = ({
|
|
|
126
131
|
"aria-label": formatMessage(tableMessages.tableScrollRegion)
|
|
127
132
|
}, children);
|
|
128
133
|
};
|
|
129
|
-
export const tableCanBeSticky = (node, children
|
|
134
|
+
export const tableCanBeSticky = (node, children
|
|
135
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
136
|
+
) => {
|
|
130
137
|
return isHeaderRowEnabled(children) && node && node.firstChild && !hasRowspan(node.firstChild);
|
|
131
138
|
};
|
|
132
139
|
/**
|
|
@@ -689,4 +696,5 @@ const TableWithWidth = props => {
|
|
|
689
696
|
});
|
|
690
697
|
}
|
|
691
698
|
};
|
|
692
|
-
|
|
699
|
+
const _default_1 = withSmartCardStorage(TableWithWidth);
|
|
700
|
+
export default _default_1;
|
|
@@ -56,7 +56,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
56
56
|
const TABLE_INFO_TIMEOUT = 10000;
|
|
57
57
|
const RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
58
58
|
const packageName = "@atlaskit/renderer";
|
|
59
|
-
const packageVersion = "126.
|
|
59
|
+
const packageVersion = "126.1.1";
|
|
60
60
|
const setAsQueryContainerStyles = css({
|
|
61
61
|
containerName: 'ak-renderer-wrapper',
|
|
62
62
|
containerType: 'inline-size'
|
|
@@ -156,6 +156,7 @@ var Extension = function Extension(props) {
|
|
|
156
156
|
}, undefined, parameters === null || parameters === void 0 ? void 0 : parameters.extensionId, extensionViewportSizes, nodeHeight, localId, undefined, undefined);
|
|
157
157
|
});
|
|
158
158
|
};
|
|
159
|
-
|
|
159
|
+
var _default_1 = overflowShadow(Extension, {
|
|
160
160
|
overflowSelector: ".".concat(RendererCssClassName.EXTENSION_OVERFLOW_CONTAINER)
|
|
161
|
-
});
|
|
161
|
+
});
|
|
162
|
+
export default _default_1;
|
|
@@ -91,7 +91,10 @@ export var shouldHeaderStick = function shouldHeaderStick(scrollTop, tableTop, t
|
|
|
91
91
|
export var shouldHeaderPinBottom = function shouldHeaderPinBottom(scrollTop, tableBottom, rowHeight) {
|
|
92
92
|
return tableBottom - rowHeight <= scrollTop && !(tableBottom < scrollTop);
|
|
93
93
|
};
|
|
94
|
-
export var addSortableColumn = function addSortableColumn(rows, tableOrderStatus, onSorting
|
|
94
|
+
export var addSortableColumn = function addSortableColumn(rows, tableOrderStatus, onSorting
|
|
95
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
96
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
97
|
+
) {
|
|
95
98
|
return React.Children.map(rows, function (row, index) {
|
|
96
99
|
if (index === 0) {
|
|
97
100
|
return /*#__PURE__*/React.cloneElement(React.Children.only(row), {
|
|
@@ -102,7 +105,9 @@ export var addSortableColumn = function addSortableColumn(rows, tableOrderStatus
|
|
|
102
105
|
return row;
|
|
103
106
|
});
|
|
104
107
|
};
|
|
105
|
-
export var isHeaderRowEnabled = function isHeaderRowEnabled(rows
|
|
108
|
+
export var isHeaderRowEnabled = function isHeaderRowEnabled(rows
|
|
109
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
110
|
+
) {
|
|
106
111
|
if (!rows.length) {
|
|
107
112
|
return false;
|
|
108
113
|
}
|
|
@@ -148,7 +153,9 @@ var TableWrapper = function TableWrapper(_ref2) {
|
|
|
148
153
|
"aria-label": formatMessage(tableMessages.tableScrollRegion)
|
|
149
154
|
}, children);
|
|
150
155
|
};
|
|
151
|
-
export var tableCanBeSticky = function tableCanBeSticky(node, children
|
|
156
|
+
export var tableCanBeSticky = function tableCanBeSticky(node, children
|
|
157
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
158
|
+
) {
|
|
152
159
|
return isHeaderRowEnabled(children) && node && node.firstChild && !hasRowspan(node.firstChild);
|
|
153
160
|
};
|
|
154
161
|
/**
|
|
@@ -747,4 +754,5 @@ var TableWithWidth = function TableWithWidth(props) {
|
|
|
747
754
|
});
|
|
748
755
|
}
|
|
749
756
|
};
|
|
750
|
-
|
|
757
|
+
var _default_1 = withSmartCardStorage(TableWithWidth);
|
|
758
|
+
export default _default_1;
|
|
@@ -61,7 +61,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
61
61
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
62
62
|
var RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
63
63
|
var packageName = "@atlaskit/renderer";
|
|
64
|
-
var packageVersion = "126.
|
|
64
|
+
var packageVersion = "126.1.1";
|
|
65
65
|
var setAsQueryContainerStyles = css({
|
|
66
66
|
containerName: 'ak-renderer-wrapper',
|
|
67
67
|
containerType: 'inline-size'
|
|
@@ -152,13 +152,21 @@ export type MediaRenderErrorEvent = UIAEP<ACTION.ERRORED, ACTION_SUBJECT.RENDERE
|
|
|
152
152
|
}>;
|
|
153
153
|
type SyncedBlockFetchErrorAEP = OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_FETCH, {
|
|
154
154
|
error: string;
|
|
155
|
+
resourceId?: string;
|
|
156
|
+
}>;
|
|
157
|
+
type SyncedBlockFetchSuccessAEP = OperationalAEP<ACTION.FETCHED, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_FETCH, {
|
|
158
|
+
blockInstanceId?: string;
|
|
159
|
+
resourceId?: string;
|
|
160
|
+
sourceProduct?: string;
|
|
155
161
|
}>;
|
|
156
162
|
type SyncedBlockGetSourceInfoErrorAEP = OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_GET_SOURCE_INFO, {
|
|
157
163
|
error: string;
|
|
164
|
+
resourceId?: string;
|
|
158
165
|
}>;
|
|
159
166
|
type ReferenceSyncedBlockUpdateErrorAEP = OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.REFERENCE_SYNCED_BLOCK_UPDATE, {
|
|
160
167
|
error: string;
|
|
168
|
+
resourceId?: string;
|
|
161
169
|
}>;
|
|
162
|
-
export type AnalyticsEventPayload<_T = void> = RendererStartAEP | RendererRenderedAEP | RendererRenderedSampledAEP | ComponentCrashErrorAEP | RendererUnsupportedContentLevelsTrackingSucceeded | RendererUnsupportedContentLevelsTrackingErrored | RendererSelectAllCaughtAEP | RendererSelectAllEscapedAEP | CodeBlockCopyAEP | CodeBlockWrapAEP | HeadingAnchorLinkButtonAEP | HoverLabelAEP | AnchorLinkAEP | TableSortColumnNotAllowedAEP | TableSortColumnAEP | TableWidthInfoAEP | TableRendererHeightInfoAEP | VisitLinkAEP | VisitMediaLinkAEP | ExpandAEP | UnsupportedContentPayload | UnsupportedContentTooltipPayload | AnnotationAEP | AnnotationDeleteAEP | MediaLnkTransformedAEP | InvalidProsemirrorDocumentErrorAEP | NestedTableTransformedAEP | MediaRenderErrorEvent | SyncedBlockFetchErrorAEP | SyncedBlockGetSourceInfoErrorAEP | ReferenceSyncedBlockUpdateErrorAEP | ExperienceEventPayload;
|
|
170
|
+
export type AnalyticsEventPayload<_T = void> = RendererStartAEP | RendererRenderedAEP | RendererRenderedSampledAEP | ComponentCrashErrorAEP | RendererUnsupportedContentLevelsTrackingSucceeded | RendererUnsupportedContentLevelsTrackingErrored | RendererSelectAllCaughtAEP | RendererSelectAllEscapedAEP | CodeBlockCopyAEP | CodeBlockWrapAEP | HeadingAnchorLinkButtonAEP | HoverLabelAEP | AnchorLinkAEP | TableSortColumnNotAllowedAEP | TableSortColumnAEP | TableWidthInfoAEP | TableRendererHeightInfoAEP | VisitLinkAEP | VisitMediaLinkAEP | ExpandAEP | UnsupportedContentPayload | UnsupportedContentTooltipPayload | AnnotationAEP | AnnotationDeleteAEP | MediaLnkTransformedAEP | InvalidProsemirrorDocumentErrorAEP | NestedTableTransformedAEP | MediaRenderErrorEvent | SyncedBlockFetchErrorAEP | SyncedBlockGetSourceInfoErrorAEP | ReferenceSyncedBlockUpdateErrorAEP | SyncedBlockFetchSuccessAEP | ExperienceEventPayload;
|
|
163
171
|
export type FireAnalyticsCallback = <T = void>(payload: AnalyticsEventPayload<T>) => void | undefined;
|
|
164
172
|
export {};
|
|
@@ -8,7 +8,7 @@ import { type RendererContext, type ExtensionViewportSize } from '../types';
|
|
|
8
8
|
import { type ExtensionLayout } from '@atlaskit/adf-schema';
|
|
9
9
|
import type { ExtensionHandlers, ExtensionParams, Parameters } from '@atlaskit/editor-common/extensions';
|
|
10
10
|
import { type ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
11
|
-
import type { OverflowShadowProps } from '@atlaskit/editor-common/ui';
|
|
11
|
+
import type { OverflowShadowProps, OverflowShadowState, ShadowObserver } from '@atlaskit/editor-common/ui';
|
|
12
12
|
interface Props {
|
|
13
13
|
extensionHandlers?: ExtensionHandlers;
|
|
14
14
|
extensionKey: string;
|
|
@@ -32,85 +32,85 @@ type RenderExtensionOptions = {
|
|
|
32
32
|
isTopLevel?: boolean;
|
|
33
33
|
} & AllOrNone<OverflowShadowProps>;
|
|
34
34
|
export declare const renderExtension: (content: any, layout: string, options?: RenderExtensionOptions, removeOverflow?: boolean, extensionId?: string, extensionViewportSizes?: ExtensionViewportSize[], nodeHeight?: string, localId?: string, shouldDisplayExtensionAsInline?: (extensionParams?: ExtensionParams<Parameters>) => boolean, node?: ExtensionParams<Parameters>) => React.JSX.Element;
|
|
35
|
-
declare const
|
|
35
|
+
declare const _default_1: {
|
|
36
36
|
new (props: Props & OverflowShadowProps): {
|
|
37
|
-
|
|
37
|
+
calcOverflowDiff: () => number;
|
|
38
|
+
calcScrollableWidth: () => number;
|
|
39
|
+
componentDidCatch?: (error: Error, errorInfo: React.ErrorInfo) => void;
|
|
40
|
+
componentDidMount?: () => void;
|
|
41
|
+
componentDidUpdate: () => void;
|
|
42
|
+
componentWillMount?: () => void;
|
|
43
|
+
componentWillReceiveProps?: (nextProps: Readonly<Props & OverflowShadowProps>, nextContext: any) => void;
|
|
44
|
+
componentWillUnmount: () => void;
|
|
45
|
+
componentWillUpdate?: (nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any) => void;
|
|
38
46
|
container?: HTMLElement;
|
|
39
|
-
|
|
47
|
+
context: unknown;
|
|
48
|
+
diff?: number;
|
|
49
|
+
forceUpdate: (callback?: (() => void) | undefined) => void;
|
|
50
|
+
getSnapshotBeforeUpdate?: (prevProps: Readonly<Props & OverflowShadowProps>, prevState: Readonly<OverflowShadowState>) => any;
|
|
51
|
+
handleContainer: (container: HTMLElement | null) => void;
|
|
52
|
+
handleScroll: (event: Event) => void;
|
|
53
|
+
initShadowObserver: () => void;
|
|
54
|
+
overflowContainer?: HTMLElement | null;
|
|
40
55
|
overflowContainerWidth: number;
|
|
56
|
+
readonly props: Readonly<Props & OverflowShadowProps>;
|
|
57
|
+
refs: {
|
|
58
|
+
[key: string]: React.ReactInstance;
|
|
59
|
+
};
|
|
60
|
+
render: () => React.JSX.Element;
|
|
41
61
|
scrollable?: NodeList;
|
|
42
|
-
|
|
62
|
+
setState: <K extends keyof OverflowShadowState>(state: OverflowShadowState | ((prevState: Readonly<OverflowShadowState>, props: Readonly<Props & OverflowShadowProps>) => OverflowShadowState | Pick<OverflowShadowState, K> | null) | Pick<OverflowShadowState, K> | null, callback?: (() => void) | undefined) => void;
|
|
63
|
+
shadowObserver?: ShadowObserver;
|
|
64
|
+
shouldComponentUpdate?: (nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any) => boolean;
|
|
65
|
+
showLeftShadow: (overflowContainer: HTMLElement | null | undefined) => boolean;
|
|
43
66
|
state: {
|
|
44
67
|
showLeftShadow: boolean;
|
|
45
68
|
showRightShadow: boolean;
|
|
46
69
|
};
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
70
|
+
UNSAFE_componentWillMount?: () => void;
|
|
71
|
+
UNSAFE_componentWillReceiveProps?: (nextProps: Readonly<Props & OverflowShadowProps>, nextContext: any) => void;
|
|
72
|
+
UNSAFE_componentWillUpdate?: (nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any) => void;
|
|
50
73
|
updateShadows: () => void;
|
|
51
|
-
|
|
74
|
+
};
|
|
75
|
+
new (props: Props & OverflowShadowProps, context: any): {
|
|
52
76
|
calcOverflowDiff: () => number;
|
|
53
77
|
calcScrollableWidth: () => number;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
78
|
+
componentDidCatch?: (error: Error, errorInfo: React.ErrorInfo) => void;
|
|
79
|
+
componentDidMount?: () => void;
|
|
80
|
+
componentDidUpdate: () => void;
|
|
81
|
+
componentWillMount?: () => void;
|
|
82
|
+
componentWillReceiveProps?: (nextProps: Readonly<Props & OverflowShadowProps>, nextContext: any) => void;
|
|
83
|
+
componentWillUnmount: () => void;
|
|
84
|
+
componentWillUpdate?: (nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any) => void;
|
|
85
|
+
container?: HTMLElement;
|
|
57
86
|
context: unknown;
|
|
58
|
-
|
|
59
|
-
forceUpdate(callback?: (() => void) | undefined)
|
|
87
|
+
diff?: number;
|
|
88
|
+
forceUpdate: (callback?: (() => void) | undefined) => void;
|
|
89
|
+
getSnapshotBeforeUpdate?: (prevProps: Readonly<Props & OverflowShadowProps>, prevState: Readonly<OverflowShadowState>) => any;
|
|
90
|
+
handleContainer: (container: HTMLElement | null) => void;
|
|
91
|
+
handleScroll: (event: Event) => void;
|
|
92
|
+
initShadowObserver: () => void;
|
|
93
|
+
overflowContainer?: HTMLElement | null;
|
|
94
|
+
overflowContainerWidth: number;
|
|
60
95
|
readonly props: Readonly<Props & OverflowShadowProps>;
|
|
61
96
|
refs: {
|
|
62
97
|
[key: string]: React.ReactInstance;
|
|
63
98
|
};
|
|
64
|
-
|
|
65
|
-
shouldComponentUpdate?(nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): boolean;
|
|
66
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
67
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Props & OverflowShadowProps>, prevState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>): any;
|
|
68
|
-
componentWillMount?(): void;
|
|
69
|
-
UNSAFE_componentWillMount?(): void;
|
|
70
|
-
componentWillReceiveProps?(nextProps: Readonly<Props & OverflowShadowProps>, nextContext: any): void;
|
|
71
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props & OverflowShadowProps>, nextContext: any): void;
|
|
72
|
-
componentWillUpdate?(nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
|
|
73
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
|
|
74
|
-
};
|
|
75
|
-
new (props: Props & OverflowShadowProps, context: any): {
|
|
76
|
-
overflowContainer?: HTMLElement | null;
|
|
77
|
-
container?: HTMLElement;
|
|
78
|
-
shadowObserver?: import("@atlaskit/editor-common/ui").ShadowObserver;
|
|
79
|
-
overflowContainerWidth: number;
|
|
99
|
+
render: () => React.JSX.Element;
|
|
80
100
|
scrollable?: NodeList;
|
|
81
|
-
|
|
101
|
+
setState: <K extends keyof OverflowShadowState>(state: OverflowShadowState | ((prevState: Readonly<OverflowShadowState>, props: Readonly<Props & OverflowShadowProps>) => OverflowShadowState | Pick<OverflowShadowState, K> | null) | Pick<OverflowShadowState, K> | null, callback?: (() => void) | undefined) => void;
|
|
102
|
+
shadowObserver?: ShadowObserver;
|
|
103
|
+
shouldComponentUpdate?: (nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any) => boolean;
|
|
104
|
+
showLeftShadow: (overflowContainer: HTMLElement | null | undefined) => boolean;
|
|
82
105
|
state: {
|
|
83
106
|
showLeftShadow: boolean;
|
|
84
107
|
showRightShadow: boolean;
|
|
85
108
|
};
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
109
|
+
UNSAFE_componentWillMount?: () => void;
|
|
110
|
+
UNSAFE_componentWillReceiveProps?: (nextProps: Readonly<Props & OverflowShadowProps>, nextContext: any) => void;
|
|
111
|
+
UNSAFE_componentWillUpdate?: (nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any) => void;
|
|
89
112
|
updateShadows: () => void;
|
|
90
|
-
showLeftShadow: (overflowContainer: HTMLElement | null | undefined) => boolean;
|
|
91
|
-
calcOverflowDiff: () => number;
|
|
92
|
-
calcScrollableWidth: () => number;
|
|
93
|
-
handleContainer: (container: HTMLElement | null) => void;
|
|
94
|
-
initShadowObserver(): void;
|
|
95
|
-
render(): React.JSX.Element;
|
|
96
|
-
context: unknown;
|
|
97
|
-
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 & OverflowShadowProps>) => 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;
|
|
98
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
99
|
-
readonly props: Readonly<Props & OverflowShadowProps>;
|
|
100
|
-
refs: {
|
|
101
|
-
[key: string]: React.ReactInstance;
|
|
102
|
-
};
|
|
103
|
-
componentDidMount?(): void;
|
|
104
|
-
shouldComponentUpdate?(nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): boolean;
|
|
105
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
106
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Props & OverflowShadowProps>, prevState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>): any;
|
|
107
|
-
componentWillMount?(): void;
|
|
108
|
-
UNSAFE_componentWillMount?(): void;
|
|
109
|
-
componentWillReceiveProps?(nextProps: Readonly<Props & OverflowShadowProps>, nextContext: any): void;
|
|
110
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props & OverflowShadowProps>, nextContext: any): void;
|
|
111
|
-
componentWillUpdate?(nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
|
|
112
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
|
|
113
113
|
};
|
|
114
114
|
contextType?: React.Context<any> | undefined;
|
|
115
115
|
};
|
|
116
|
-
export default
|
|
116
|
+
export default _default_1;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type Context, type ErrorInfo, type JSX, type ReactInstance } from 'react';
|
|
1
6
|
import { type Mark } from '@atlaskit/editor-prosemirror/model';
|
|
2
7
|
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
3
8
|
import type { WithSmartCardStorageProps } from '../../ui/SmartCardStorage';
|
|
@@ -5,6 +10,7 @@ import type { SmartLinksOptions } from '../../types/smartLinksOptions';
|
|
|
5
10
|
import { type MarkDataAttributes } from '../../ui/annotations/element/useInlineAnnotationProps';
|
|
6
11
|
import type { RendererAppearance } from '../../ui/Renderer/types';
|
|
7
12
|
import type { AnalyticsEventPayload } from '../../analytics/events';
|
|
13
|
+
import type { Diff } from '@atlaskit/editor-common/utils';
|
|
8
14
|
export interface InlineCardProps extends MarkDataAttributes {
|
|
9
15
|
data?: object;
|
|
10
16
|
eventHandlers?: EventHandlers;
|
|
@@ -16,53 +22,53 @@ export interface InlineCardProps extends MarkDataAttributes {
|
|
|
16
22
|
smartLinks?: SmartLinksOptions;
|
|
17
23
|
url?: string;
|
|
18
24
|
}
|
|
19
|
-
declare const
|
|
20
|
-
new (props:
|
|
21
|
-
|
|
25
|
+
declare const _default_1: {
|
|
26
|
+
new (props: Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>): {
|
|
27
|
+
componentDidCatch?: (error: Error, errorInfo: ErrorInfo) => void;
|
|
28
|
+
componentDidMount?: () => void;
|
|
29
|
+
componentDidUpdate?: (prevProps: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, prevState: Readonly<{}>, snapshot?: any) => void;
|
|
30
|
+
componentWillMount?: () => void;
|
|
31
|
+
componentWillReceiveProps?: (nextProps: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextContext: any) => void;
|
|
32
|
+
componentWillUnmount?: () => void;
|
|
33
|
+
componentWillUpdate?: (nextProps: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any) => void;
|
|
22
34
|
context: unknown;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
readonly props: Readonly<
|
|
26
|
-
state: Readonly<{}>;
|
|
35
|
+
forceUpdate: (callback?: (() => void) | undefined) => void;
|
|
36
|
+
getSnapshotBeforeUpdate?: (prevProps: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, prevState: Readonly<{}>) => any;
|
|
37
|
+
readonly props: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>;
|
|
27
38
|
refs: {
|
|
28
|
-
[key: string]:
|
|
39
|
+
[key: string]: ReactInstance;
|
|
29
40
|
};
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
UNSAFE_componentWillMount?(): void;
|
|
38
|
-
componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
39
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
40
|
-
componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
41
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
41
|
+
render: () => JSX.Element;
|
|
42
|
+
setState: <K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined) => void;
|
|
43
|
+
shouldComponentUpdate?: (nextProps: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any) => boolean;
|
|
44
|
+
state: Readonly<{}>;
|
|
45
|
+
UNSAFE_componentWillMount?: () => void;
|
|
46
|
+
UNSAFE_componentWillReceiveProps?: (nextProps: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextContext: any) => void;
|
|
47
|
+
UNSAFE_componentWillUpdate?: (nextProps: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any) => void;
|
|
42
48
|
};
|
|
43
|
-
new (props:
|
|
44
|
-
|
|
49
|
+
new (props: Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>, context: any): {
|
|
50
|
+
componentDidCatch?: (error: Error, errorInfo: ErrorInfo) => void;
|
|
51
|
+
componentDidMount?: () => void;
|
|
52
|
+
componentDidUpdate?: (prevProps: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, prevState: Readonly<{}>, snapshot?: any) => void;
|
|
53
|
+
componentWillMount?: () => void;
|
|
54
|
+
componentWillReceiveProps?: (nextProps: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextContext: any) => void;
|
|
55
|
+
componentWillUnmount?: () => void;
|
|
56
|
+
componentWillUpdate?: (nextProps: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any) => void;
|
|
45
57
|
context: unknown;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
readonly props: Readonly<
|
|
49
|
-
state: Readonly<{}>;
|
|
58
|
+
forceUpdate: (callback?: (() => void) | undefined) => void;
|
|
59
|
+
getSnapshotBeforeUpdate?: (prevProps: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, prevState: Readonly<{}>) => any;
|
|
60
|
+
readonly props: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>;
|
|
50
61
|
refs: {
|
|
51
|
-
[key: string]:
|
|
62
|
+
[key: string]: ReactInstance;
|
|
52
63
|
};
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
UNSAFE_componentWillMount?(): void;
|
|
61
|
-
componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
62
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
63
|
-
componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
64
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
64
|
+
render: () => JSX.Element;
|
|
65
|
+
setState: <K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined) => void;
|
|
66
|
+
shouldComponentUpdate?: (nextProps: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any) => boolean;
|
|
67
|
+
state: Readonly<{}>;
|
|
68
|
+
UNSAFE_componentWillMount?: () => void;
|
|
69
|
+
UNSAFE_componentWillReceiveProps?: (nextProps: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextContext: any) => void;
|
|
70
|
+
UNSAFE_componentWillUpdate?: (nextProps: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any) => void;
|
|
65
71
|
};
|
|
66
|
-
contextType?:
|
|
72
|
+
contextType?: Context<any> | undefined;
|
|
67
73
|
};
|
|
68
|
-
export default
|
|
74
|
+
export default _default_1;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { OverflowShadowProps } from '@atlaskit/editor-common/ui';
|
|
4
|
+
import { type Diff } from '@atlaskit/editor-common/utils';
|
|
4
5
|
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
5
6
|
import type { RendererAppearance, StickyHeaderConfig } from '../../ui/Renderer/types';
|
|
6
7
|
import type { WithSmartCardStorageProps } from '../../ui/SmartCardStorage';
|
|
@@ -112,53 +113,53 @@ export declare class TableProcessor extends React.Component<TableProps & Overflo
|
|
|
112
113
|
private changeSortOrder;
|
|
113
114
|
private addNumberColumnIndexes;
|
|
114
115
|
}
|
|
115
|
-
declare const
|
|
116
|
-
new (props:
|
|
117
|
-
|
|
116
|
+
declare const _default_1: {
|
|
117
|
+
new (props: Diff<any, WithSmartCardStorageProps>): {
|
|
118
|
+
componentDidCatch?: (error: Error, errorInfo: React.ErrorInfo) => void;
|
|
119
|
+
componentDidMount?: () => void;
|
|
120
|
+
componentDidUpdate?: (prevProps: Readonly<Diff<any, WithSmartCardStorageProps>>, prevState: Readonly<{}>, snapshot?: any) => void;
|
|
121
|
+
componentWillMount?: () => void;
|
|
122
|
+
componentWillReceiveProps?: (nextProps: Readonly<Diff<any, WithSmartCardStorageProps>>, nextContext: any) => void;
|
|
123
|
+
componentWillUnmount?: () => void;
|
|
124
|
+
componentWillUpdate?: (nextProps: Readonly<Diff<any, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any) => void;
|
|
118
125
|
context: unknown;
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
readonly props: Readonly<
|
|
122
|
-
state: Readonly<{}>;
|
|
126
|
+
forceUpdate: (callback?: (() => void) | undefined) => void;
|
|
127
|
+
getSnapshotBeforeUpdate?: (prevProps: Readonly<Diff<any, WithSmartCardStorageProps>>, prevState: Readonly<{}>) => any;
|
|
128
|
+
readonly props: Readonly<Diff<any, WithSmartCardStorageProps>>;
|
|
123
129
|
refs: {
|
|
124
130
|
[key: string]: React.ReactInstance;
|
|
125
131
|
};
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
UNSAFE_componentWillMount?(): void;
|
|
134
|
-
componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<any, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
135
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<any, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
136
|
-
componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<any, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
137
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<any, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
132
|
+
render: () => React.JSX.Element;
|
|
133
|
+
setState: <K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<any, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined) => void;
|
|
134
|
+
shouldComponentUpdate?: (nextProps: Readonly<Diff<any, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any) => boolean;
|
|
135
|
+
state: Readonly<{}>;
|
|
136
|
+
UNSAFE_componentWillMount?: () => void;
|
|
137
|
+
UNSAFE_componentWillReceiveProps?: (nextProps: Readonly<Diff<any, WithSmartCardStorageProps>>, nextContext: any) => void;
|
|
138
|
+
UNSAFE_componentWillUpdate?: (nextProps: Readonly<Diff<any, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any) => void;
|
|
138
139
|
};
|
|
139
|
-
new (props:
|
|
140
|
-
|
|
140
|
+
new (props: Diff<any, WithSmartCardStorageProps>, context: any): {
|
|
141
|
+
componentDidCatch?: (error: Error, errorInfo: React.ErrorInfo) => void;
|
|
142
|
+
componentDidMount?: () => void;
|
|
143
|
+
componentDidUpdate?: (prevProps: Readonly<Diff<any, WithSmartCardStorageProps>>, prevState: Readonly<{}>, snapshot?: any) => void;
|
|
144
|
+
componentWillMount?: () => void;
|
|
145
|
+
componentWillReceiveProps?: (nextProps: Readonly<Diff<any, WithSmartCardStorageProps>>, nextContext: any) => void;
|
|
146
|
+
componentWillUnmount?: () => void;
|
|
147
|
+
componentWillUpdate?: (nextProps: Readonly<Diff<any, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any) => void;
|
|
141
148
|
context: unknown;
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
readonly props: Readonly<
|
|
145
|
-
state: Readonly<{}>;
|
|
149
|
+
forceUpdate: (callback?: (() => void) | undefined) => void;
|
|
150
|
+
getSnapshotBeforeUpdate?: (prevProps: Readonly<Diff<any, WithSmartCardStorageProps>>, prevState: Readonly<{}>) => any;
|
|
151
|
+
readonly props: Readonly<Diff<any, WithSmartCardStorageProps>>;
|
|
146
152
|
refs: {
|
|
147
153
|
[key: string]: React.ReactInstance;
|
|
148
154
|
};
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
UNSAFE_componentWillMount?(): void;
|
|
157
|
-
componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<any, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
158
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<any, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
159
|
-
componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<any, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
160
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<any, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
155
|
+
render: () => React.JSX.Element;
|
|
156
|
+
setState: <K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<any, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined) => void;
|
|
157
|
+
shouldComponentUpdate?: (nextProps: Readonly<Diff<any, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any) => boolean;
|
|
158
|
+
state: Readonly<{}>;
|
|
159
|
+
UNSAFE_componentWillMount?: () => void;
|
|
160
|
+
UNSAFE_componentWillReceiveProps?: (nextProps: Readonly<Diff<any, WithSmartCardStorageProps>>, nextContext: any) => void;
|
|
161
|
+
UNSAFE_componentWillUpdate?: (nextProps: Readonly<Diff<any, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any) => void;
|
|
161
162
|
};
|
|
162
163
|
contextType?: React.Context<any> | undefined;
|
|
163
164
|
};
|
|
164
|
-
export default
|
|
165
|
+
export default _default_1;
|
|
@@ -152,13 +152,21 @@ export type MediaRenderErrorEvent = UIAEP<ACTION.ERRORED, ACTION_SUBJECT.RENDERE
|
|
|
152
152
|
}>;
|
|
153
153
|
type SyncedBlockFetchErrorAEP = OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_FETCH, {
|
|
154
154
|
error: string;
|
|
155
|
+
resourceId?: string;
|
|
156
|
+
}>;
|
|
157
|
+
type SyncedBlockFetchSuccessAEP = OperationalAEP<ACTION.FETCHED, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_FETCH, {
|
|
158
|
+
blockInstanceId?: string;
|
|
159
|
+
resourceId?: string;
|
|
160
|
+
sourceProduct?: string;
|
|
155
161
|
}>;
|
|
156
162
|
type SyncedBlockGetSourceInfoErrorAEP = OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.SYNCED_BLOCK_GET_SOURCE_INFO, {
|
|
157
163
|
error: string;
|
|
164
|
+
resourceId?: string;
|
|
158
165
|
}>;
|
|
159
166
|
type ReferenceSyncedBlockUpdateErrorAEP = OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, ACTION_SUBJECT_ID.REFERENCE_SYNCED_BLOCK_UPDATE, {
|
|
160
167
|
error: string;
|
|
168
|
+
resourceId?: string;
|
|
161
169
|
}>;
|
|
162
|
-
export type AnalyticsEventPayload<_T = void> = RendererStartAEP | RendererRenderedAEP | RendererRenderedSampledAEP | ComponentCrashErrorAEP | RendererUnsupportedContentLevelsTrackingSucceeded | RendererUnsupportedContentLevelsTrackingErrored | RendererSelectAllCaughtAEP | RendererSelectAllEscapedAEP | CodeBlockCopyAEP | CodeBlockWrapAEP | HeadingAnchorLinkButtonAEP | HoverLabelAEP | AnchorLinkAEP | TableSortColumnNotAllowedAEP | TableSortColumnAEP | TableWidthInfoAEP | TableRendererHeightInfoAEP | VisitLinkAEP | VisitMediaLinkAEP | ExpandAEP | UnsupportedContentPayload | UnsupportedContentTooltipPayload | AnnotationAEP | AnnotationDeleteAEP | MediaLnkTransformedAEP | InvalidProsemirrorDocumentErrorAEP | NestedTableTransformedAEP | MediaRenderErrorEvent | SyncedBlockFetchErrorAEP | SyncedBlockGetSourceInfoErrorAEP | ReferenceSyncedBlockUpdateErrorAEP | ExperienceEventPayload;
|
|
170
|
+
export type AnalyticsEventPayload<_T = void> = RendererStartAEP | RendererRenderedAEP | RendererRenderedSampledAEP | ComponentCrashErrorAEP | RendererUnsupportedContentLevelsTrackingSucceeded | RendererUnsupportedContentLevelsTrackingErrored | RendererSelectAllCaughtAEP | RendererSelectAllEscapedAEP | CodeBlockCopyAEP | CodeBlockWrapAEP | HeadingAnchorLinkButtonAEP | HoverLabelAEP | AnchorLinkAEP | TableSortColumnNotAllowedAEP | TableSortColumnAEP | TableWidthInfoAEP | TableRendererHeightInfoAEP | VisitLinkAEP | VisitMediaLinkAEP | ExpandAEP | UnsupportedContentPayload | UnsupportedContentTooltipPayload | AnnotationAEP | AnnotationDeleteAEP | MediaLnkTransformedAEP | InvalidProsemirrorDocumentErrorAEP | NestedTableTransformedAEP | MediaRenderErrorEvent | SyncedBlockFetchErrorAEP | SyncedBlockGetSourceInfoErrorAEP | ReferenceSyncedBlockUpdateErrorAEP | SyncedBlockFetchSuccessAEP | ExperienceEventPayload;
|
|
163
171
|
export type FireAnalyticsCallback = <T = void>(payload: AnalyticsEventPayload<T>) => void | undefined;
|
|
164
172
|
export {};
|
|
@@ -8,7 +8,7 @@ import { type RendererContext, type ExtensionViewportSize } from '../types';
|
|
|
8
8
|
import { type ExtensionLayout } from '@atlaskit/adf-schema';
|
|
9
9
|
import type { ExtensionHandlers, ExtensionParams, Parameters } from '@atlaskit/editor-common/extensions';
|
|
10
10
|
import { type ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
11
|
-
import type { OverflowShadowProps } from '@atlaskit/editor-common/ui';
|
|
11
|
+
import type { OverflowShadowProps, OverflowShadowState, ShadowObserver } from '@atlaskit/editor-common/ui';
|
|
12
12
|
interface Props {
|
|
13
13
|
extensionHandlers?: ExtensionHandlers;
|
|
14
14
|
extensionKey: string;
|
|
@@ -32,85 +32,85 @@ type RenderExtensionOptions = {
|
|
|
32
32
|
isTopLevel?: boolean;
|
|
33
33
|
} & AllOrNone<OverflowShadowProps>;
|
|
34
34
|
export declare const renderExtension: (content: any, layout: string, options?: RenderExtensionOptions, removeOverflow?: boolean, extensionId?: string, extensionViewportSizes?: ExtensionViewportSize[], nodeHeight?: string, localId?: string, shouldDisplayExtensionAsInline?: (extensionParams?: ExtensionParams<Parameters>) => boolean, node?: ExtensionParams<Parameters>) => React.JSX.Element;
|
|
35
|
-
declare const
|
|
35
|
+
declare const _default_1: {
|
|
36
36
|
new (props: Props & OverflowShadowProps): {
|
|
37
|
-
|
|
37
|
+
calcOverflowDiff: () => number;
|
|
38
|
+
calcScrollableWidth: () => number;
|
|
39
|
+
componentDidCatch?: (error: Error, errorInfo: React.ErrorInfo) => void;
|
|
40
|
+
componentDidMount?: () => void;
|
|
41
|
+
componentDidUpdate: () => void;
|
|
42
|
+
componentWillMount?: () => void;
|
|
43
|
+
componentWillReceiveProps?: (nextProps: Readonly<Props & OverflowShadowProps>, nextContext: any) => void;
|
|
44
|
+
componentWillUnmount: () => void;
|
|
45
|
+
componentWillUpdate?: (nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any) => void;
|
|
38
46
|
container?: HTMLElement;
|
|
39
|
-
|
|
47
|
+
context: unknown;
|
|
48
|
+
diff?: number;
|
|
49
|
+
forceUpdate: (callback?: (() => void) | undefined) => void;
|
|
50
|
+
getSnapshotBeforeUpdate?: (prevProps: Readonly<Props & OverflowShadowProps>, prevState: Readonly<OverflowShadowState>) => any;
|
|
51
|
+
handleContainer: (container: HTMLElement | null) => void;
|
|
52
|
+
handleScroll: (event: Event) => void;
|
|
53
|
+
initShadowObserver: () => void;
|
|
54
|
+
overflowContainer?: HTMLElement | null;
|
|
40
55
|
overflowContainerWidth: number;
|
|
56
|
+
readonly props: Readonly<Props & OverflowShadowProps>;
|
|
57
|
+
refs: {
|
|
58
|
+
[key: string]: React.ReactInstance;
|
|
59
|
+
};
|
|
60
|
+
render: () => React.JSX.Element;
|
|
41
61
|
scrollable?: NodeList;
|
|
42
|
-
|
|
62
|
+
setState: <K extends keyof OverflowShadowState>(state: OverflowShadowState | ((prevState: Readonly<OverflowShadowState>, props: Readonly<Props & OverflowShadowProps>) => OverflowShadowState | Pick<OverflowShadowState, K> | null) | Pick<OverflowShadowState, K> | null, callback?: (() => void) | undefined) => void;
|
|
63
|
+
shadowObserver?: ShadowObserver;
|
|
64
|
+
shouldComponentUpdate?: (nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any) => boolean;
|
|
65
|
+
showLeftShadow: (overflowContainer: HTMLElement | null | undefined) => boolean;
|
|
43
66
|
state: {
|
|
44
67
|
showLeftShadow: boolean;
|
|
45
68
|
showRightShadow: boolean;
|
|
46
69
|
};
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
70
|
+
UNSAFE_componentWillMount?: () => void;
|
|
71
|
+
UNSAFE_componentWillReceiveProps?: (nextProps: Readonly<Props & OverflowShadowProps>, nextContext: any) => void;
|
|
72
|
+
UNSAFE_componentWillUpdate?: (nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any) => void;
|
|
50
73
|
updateShadows: () => void;
|
|
51
|
-
|
|
74
|
+
};
|
|
75
|
+
new (props: Props & OverflowShadowProps, context: any): {
|
|
52
76
|
calcOverflowDiff: () => number;
|
|
53
77
|
calcScrollableWidth: () => number;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
78
|
+
componentDidCatch?: (error: Error, errorInfo: React.ErrorInfo) => void;
|
|
79
|
+
componentDidMount?: () => void;
|
|
80
|
+
componentDidUpdate: () => void;
|
|
81
|
+
componentWillMount?: () => void;
|
|
82
|
+
componentWillReceiveProps?: (nextProps: Readonly<Props & OverflowShadowProps>, nextContext: any) => void;
|
|
83
|
+
componentWillUnmount: () => void;
|
|
84
|
+
componentWillUpdate?: (nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any) => void;
|
|
85
|
+
container?: HTMLElement;
|
|
57
86
|
context: unknown;
|
|
58
|
-
|
|
59
|
-
forceUpdate(callback?: (() => void) | undefined)
|
|
87
|
+
diff?: number;
|
|
88
|
+
forceUpdate: (callback?: (() => void) | undefined) => void;
|
|
89
|
+
getSnapshotBeforeUpdate?: (prevProps: Readonly<Props & OverflowShadowProps>, prevState: Readonly<OverflowShadowState>) => any;
|
|
90
|
+
handleContainer: (container: HTMLElement | null) => void;
|
|
91
|
+
handleScroll: (event: Event) => void;
|
|
92
|
+
initShadowObserver: () => void;
|
|
93
|
+
overflowContainer?: HTMLElement | null;
|
|
94
|
+
overflowContainerWidth: number;
|
|
60
95
|
readonly props: Readonly<Props & OverflowShadowProps>;
|
|
61
96
|
refs: {
|
|
62
97
|
[key: string]: React.ReactInstance;
|
|
63
98
|
};
|
|
64
|
-
|
|
65
|
-
shouldComponentUpdate?(nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): boolean;
|
|
66
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
67
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Props & OverflowShadowProps>, prevState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>): any;
|
|
68
|
-
componentWillMount?(): void;
|
|
69
|
-
UNSAFE_componentWillMount?(): void;
|
|
70
|
-
componentWillReceiveProps?(nextProps: Readonly<Props & OverflowShadowProps>, nextContext: any): void;
|
|
71
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props & OverflowShadowProps>, nextContext: any): void;
|
|
72
|
-
componentWillUpdate?(nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
|
|
73
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
|
|
74
|
-
};
|
|
75
|
-
new (props: Props & OverflowShadowProps, context: any): {
|
|
76
|
-
overflowContainer?: HTMLElement | null;
|
|
77
|
-
container?: HTMLElement;
|
|
78
|
-
shadowObserver?: import("@atlaskit/editor-common/ui").ShadowObserver;
|
|
79
|
-
overflowContainerWidth: number;
|
|
99
|
+
render: () => React.JSX.Element;
|
|
80
100
|
scrollable?: NodeList;
|
|
81
|
-
|
|
101
|
+
setState: <K extends keyof OverflowShadowState>(state: OverflowShadowState | ((prevState: Readonly<OverflowShadowState>, props: Readonly<Props & OverflowShadowProps>) => OverflowShadowState | Pick<OverflowShadowState, K> | null) | Pick<OverflowShadowState, K> | null, callback?: (() => void) | undefined) => void;
|
|
102
|
+
shadowObserver?: ShadowObserver;
|
|
103
|
+
shouldComponentUpdate?: (nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any) => boolean;
|
|
104
|
+
showLeftShadow: (overflowContainer: HTMLElement | null | undefined) => boolean;
|
|
82
105
|
state: {
|
|
83
106
|
showLeftShadow: boolean;
|
|
84
107
|
showRightShadow: boolean;
|
|
85
108
|
};
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
109
|
+
UNSAFE_componentWillMount?: () => void;
|
|
110
|
+
UNSAFE_componentWillReceiveProps?: (nextProps: Readonly<Props & OverflowShadowProps>, nextContext: any) => void;
|
|
111
|
+
UNSAFE_componentWillUpdate?: (nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any) => void;
|
|
89
112
|
updateShadows: () => void;
|
|
90
|
-
showLeftShadow: (overflowContainer: HTMLElement | null | undefined) => boolean;
|
|
91
|
-
calcOverflowDiff: () => number;
|
|
92
|
-
calcScrollableWidth: () => number;
|
|
93
|
-
handleContainer: (container: HTMLElement | null) => void;
|
|
94
|
-
initShadowObserver(): void;
|
|
95
|
-
render(): React.JSX.Element;
|
|
96
|
-
context: unknown;
|
|
97
|
-
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 & OverflowShadowProps>) => 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;
|
|
98
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
99
|
-
readonly props: Readonly<Props & OverflowShadowProps>;
|
|
100
|
-
refs: {
|
|
101
|
-
[key: string]: React.ReactInstance;
|
|
102
|
-
};
|
|
103
|
-
componentDidMount?(): void;
|
|
104
|
-
shouldComponentUpdate?(nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): boolean;
|
|
105
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
106
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Props & OverflowShadowProps>, prevState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>): any;
|
|
107
|
-
componentWillMount?(): void;
|
|
108
|
-
UNSAFE_componentWillMount?(): void;
|
|
109
|
-
componentWillReceiveProps?(nextProps: Readonly<Props & OverflowShadowProps>, nextContext: any): void;
|
|
110
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props & OverflowShadowProps>, nextContext: any): void;
|
|
111
|
-
componentWillUpdate?(nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
|
|
112
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
|
|
113
113
|
};
|
|
114
114
|
contextType?: React.Context<any> | undefined;
|
|
115
115
|
};
|
|
116
|
-
export default
|
|
116
|
+
export default _default_1;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type Context, type ErrorInfo, type JSX, type ReactInstance } from 'react';
|
|
1
6
|
import { type Mark } from '@atlaskit/editor-prosemirror/model';
|
|
2
7
|
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
3
8
|
import type { WithSmartCardStorageProps } from '../../ui/SmartCardStorage';
|
|
@@ -5,6 +10,7 @@ import type { SmartLinksOptions } from '../../types/smartLinksOptions';
|
|
|
5
10
|
import { type MarkDataAttributes } from '../../ui/annotations/element/useInlineAnnotationProps';
|
|
6
11
|
import type { RendererAppearance } from '../../ui/Renderer/types';
|
|
7
12
|
import type { AnalyticsEventPayload } from '../../analytics/events';
|
|
13
|
+
import type { Diff } from '@atlaskit/editor-common/utils';
|
|
8
14
|
export interface InlineCardProps extends MarkDataAttributes {
|
|
9
15
|
data?: object;
|
|
10
16
|
eventHandlers?: EventHandlers;
|
|
@@ -16,53 +22,53 @@ export interface InlineCardProps extends MarkDataAttributes {
|
|
|
16
22
|
smartLinks?: SmartLinksOptions;
|
|
17
23
|
url?: string;
|
|
18
24
|
}
|
|
19
|
-
declare const
|
|
20
|
-
new (props:
|
|
21
|
-
|
|
25
|
+
declare const _default_1: {
|
|
26
|
+
new (props: Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>): {
|
|
27
|
+
componentDidCatch?: (error: Error, errorInfo: ErrorInfo) => void;
|
|
28
|
+
componentDidMount?: () => void;
|
|
29
|
+
componentDidUpdate?: (prevProps: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, prevState: Readonly<{}>, snapshot?: any) => void;
|
|
30
|
+
componentWillMount?: () => void;
|
|
31
|
+
componentWillReceiveProps?: (nextProps: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextContext: any) => void;
|
|
32
|
+
componentWillUnmount?: () => void;
|
|
33
|
+
componentWillUpdate?: (nextProps: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any) => void;
|
|
22
34
|
context: unknown;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
readonly props: Readonly<
|
|
26
|
-
state: Readonly<{}>;
|
|
35
|
+
forceUpdate: (callback?: (() => void) | undefined) => void;
|
|
36
|
+
getSnapshotBeforeUpdate?: (prevProps: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, prevState: Readonly<{}>) => any;
|
|
37
|
+
readonly props: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>;
|
|
27
38
|
refs: {
|
|
28
|
-
[key: string]:
|
|
39
|
+
[key: string]: ReactInstance;
|
|
29
40
|
};
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
UNSAFE_componentWillMount?(): void;
|
|
38
|
-
componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
39
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
40
|
-
componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
41
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
41
|
+
render: () => JSX.Element;
|
|
42
|
+
setState: <K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined) => void;
|
|
43
|
+
shouldComponentUpdate?: (nextProps: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any) => boolean;
|
|
44
|
+
state: Readonly<{}>;
|
|
45
|
+
UNSAFE_componentWillMount?: () => void;
|
|
46
|
+
UNSAFE_componentWillReceiveProps?: (nextProps: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextContext: any) => void;
|
|
47
|
+
UNSAFE_componentWillUpdate?: (nextProps: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any) => void;
|
|
42
48
|
};
|
|
43
|
-
new (props:
|
|
44
|
-
|
|
49
|
+
new (props: Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>, context: any): {
|
|
50
|
+
componentDidCatch?: (error: Error, errorInfo: ErrorInfo) => void;
|
|
51
|
+
componentDidMount?: () => void;
|
|
52
|
+
componentDidUpdate?: (prevProps: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, prevState: Readonly<{}>, snapshot?: any) => void;
|
|
53
|
+
componentWillMount?: () => void;
|
|
54
|
+
componentWillReceiveProps?: (nextProps: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextContext: any) => void;
|
|
55
|
+
componentWillUnmount?: () => void;
|
|
56
|
+
componentWillUpdate?: (nextProps: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any) => void;
|
|
45
57
|
context: unknown;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
readonly props: Readonly<
|
|
49
|
-
state: Readonly<{}>;
|
|
58
|
+
forceUpdate: (callback?: (() => void) | undefined) => void;
|
|
59
|
+
getSnapshotBeforeUpdate?: (prevProps: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, prevState: Readonly<{}>) => any;
|
|
60
|
+
readonly props: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>;
|
|
50
61
|
refs: {
|
|
51
|
-
[key: string]:
|
|
62
|
+
[key: string]: ReactInstance;
|
|
52
63
|
};
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
UNSAFE_componentWillMount?(): void;
|
|
61
|
-
componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
62
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
63
|
-
componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
64
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
64
|
+
render: () => JSX.Element;
|
|
65
|
+
setState: <K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined) => void;
|
|
66
|
+
shouldComponentUpdate?: (nextProps: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any) => boolean;
|
|
67
|
+
state: Readonly<{}>;
|
|
68
|
+
UNSAFE_componentWillMount?: () => void;
|
|
69
|
+
UNSAFE_componentWillReceiveProps?: (nextProps: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextContext: any) => void;
|
|
70
|
+
UNSAFE_componentWillUpdate?: (nextProps: Readonly<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any) => void;
|
|
65
71
|
};
|
|
66
|
-
contextType?:
|
|
72
|
+
contextType?: Context<any> | undefined;
|
|
67
73
|
};
|
|
68
|
-
export default
|
|
74
|
+
export default _default_1;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { OverflowShadowProps } from '@atlaskit/editor-common/ui';
|
|
4
|
+
import { type Diff } from '@atlaskit/editor-common/utils';
|
|
4
5
|
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
5
6
|
import type { RendererAppearance, StickyHeaderConfig } from '../../ui/Renderer/types';
|
|
6
7
|
import type { WithSmartCardStorageProps } from '../../ui/SmartCardStorage';
|
|
@@ -112,53 +113,53 @@ export declare class TableProcessor extends React.Component<TableProps & Overflo
|
|
|
112
113
|
private changeSortOrder;
|
|
113
114
|
private addNumberColumnIndexes;
|
|
114
115
|
}
|
|
115
|
-
declare const
|
|
116
|
-
new (props:
|
|
117
|
-
|
|
116
|
+
declare const _default_1: {
|
|
117
|
+
new (props: Diff<any, WithSmartCardStorageProps>): {
|
|
118
|
+
componentDidCatch?: (error: Error, errorInfo: React.ErrorInfo) => void;
|
|
119
|
+
componentDidMount?: () => void;
|
|
120
|
+
componentDidUpdate?: (prevProps: Readonly<Diff<any, WithSmartCardStorageProps>>, prevState: Readonly<{}>, snapshot?: any) => void;
|
|
121
|
+
componentWillMount?: () => void;
|
|
122
|
+
componentWillReceiveProps?: (nextProps: Readonly<Diff<any, WithSmartCardStorageProps>>, nextContext: any) => void;
|
|
123
|
+
componentWillUnmount?: () => void;
|
|
124
|
+
componentWillUpdate?: (nextProps: Readonly<Diff<any, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any) => void;
|
|
118
125
|
context: unknown;
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
readonly props: Readonly<
|
|
122
|
-
state: Readonly<{}>;
|
|
126
|
+
forceUpdate: (callback?: (() => void) | undefined) => void;
|
|
127
|
+
getSnapshotBeforeUpdate?: (prevProps: Readonly<Diff<any, WithSmartCardStorageProps>>, prevState: Readonly<{}>) => any;
|
|
128
|
+
readonly props: Readonly<Diff<any, WithSmartCardStorageProps>>;
|
|
123
129
|
refs: {
|
|
124
130
|
[key: string]: React.ReactInstance;
|
|
125
131
|
};
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
UNSAFE_componentWillMount?(): void;
|
|
134
|
-
componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<any, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
135
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<any, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
136
|
-
componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<any, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
137
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<any, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
132
|
+
render: () => React.JSX.Element;
|
|
133
|
+
setState: <K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<any, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined) => void;
|
|
134
|
+
shouldComponentUpdate?: (nextProps: Readonly<Diff<any, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any) => boolean;
|
|
135
|
+
state: Readonly<{}>;
|
|
136
|
+
UNSAFE_componentWillMount?: () => void;
|
|
137
|
+
UNSAFE_componentWillReceiveProps?: (nextProps: Readonly<Diff<any, WithSmartCardStorageProps>>, nextContext: any) => void;
|
|
138
|
+
UNSAFE_componentWillUpdate?: (nextProps: Readonly<Diff<any, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any) => void;
|
|
138
139
|
};
|
|
139
|
-
new (props:
|
|
140
|
-
|
|
140
|
+
new (props: Diff<any, WithSmartCardStorageProps>, context: any): {
|
|
141
|
+
componentDidCatch?: (error: Error, errorInfo: React.ErrorInfo) => void;
|
|
142
|
+
componentDidMount?: () => void;
|
|
143
|
+
componentDidUpdate?: (prevProps: Readonly<Diff<any, WithSmartCardStorageProps>>, prevState: Readonly<{}>, snapshot?: any) => void;
|
|
144
|
+
componentWillMount?: () => void;
|
|
145
|
+
componentWillReceiveProps?: (nextProps: Readonly<Diff<any, WithSmartCardStorageProps>>, nextContext: any) => void;
|
|
146
|
+
componentWillUnmount?: () => void;
|
|
147
|
+
componentWillUpdate?: (nextProps: Readonly<Diff<any, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any) => void;
|
|
141
148
|
context: unknown;
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
readonly props: Readonly<
|
|
145
|
-
state: Readonly<{}>;
|
|
149
|
+
forceUpdate: (callback?: (() => void) | undefined) => void;
|
|
150
|
+
getSnapshotBeforeUpdate?: (prevProps: Readonly<Diff<any, WithSmartCardStorageProps>>, prevState: Readonly<{}>) => any;
|
|
151
|
+
readonly props: Readonly<Diff<any, WithSmartCardStorageProps>>;
|
|
146
152
|
refs: {
|
|
147
153
|
[key: string]: React.ReactInstance;
|
|
148
154
|
};
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
UNSAFE_componentWillMount?(): void;
|
|
157
|
-
componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<any, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
158
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<any, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
159
|
-
componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<any, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
160
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<any, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
155
|
+
render: () => React.JSX.Element;
|
|
156
|
+
setState: <K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<any, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined) => void;
|
|
157
|
+
shouldComponentUpdate?: (nextProps: Readonly<Diff<any, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any) => boolean;
|
|
158
|
+
state: Readonly<{}>;
|
|
159
|
+
UNSAFE_componentWillMount?: () => void;
|
|
160
|
+
UNSAFE_componentWillReceiveProps?: (nextProps: Readonly<Diff<any, WithSmartCardStorageProps>>, nextContext: any) => void;
|
|
161
|
+
UNSAFE_componentWillUpdate?: (nextProps: Readonly<Diff<any, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any) => void;
|
|
161
162
|
};
|
|
162
163
|
contextType?: React.Context<any> | undefined;
|
|
163
164
|
};
|
|
164
|
-
export default
|
|
165
|
+
export default _default_1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "126.1.
|
|
3
|
+
"version": "126.1.2",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
54
54
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
55
55
|
"@atlaskit/react-ufo": "^5.0.0",
|
|
56
|
-
"@atlaskit/smart-card": "^43.
|
|
56
|
+
"@atlaskit/smart-card": "^43.22.0",
|
|
57
57
|
"@atlaskit/status": "^3.1.0",
|
|
58
58
|
"@atlaskit/task-decision": "^19.2.0",
|
|
59
59
|
"@atlaskit/theme": "^21.0.0",
|
|
60
|
-
"@atlaskit/tmp-editor-statsig": "^16.
|
|
60
|
+
"@atlaskit/tmp-editor-statsig": "^16.30.0",
|
|
61
61
|
"@atlaskit/tokens": "^10.1.0",
|
|
62
62
|
"@atlaskit/tooltip": "^20.14.0",
|
|
63
63
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
@@ -90,8 +90,9 @@
|
|
|
90
90
|
"@atlaskit/mention": "^24.4.0",
|
|
91
91
|
"@atlaskit/modal-dialog": "^14.10.0",
|
|
92
92
|
"@atlaskit/navigation-next": "patch:@atlaskit/navigation-next@npm%3A9.0.17#~/.yarn/patches/@atlaskit-navigation-next-npm-9.0.17-958ca0ab9d.patch",
|
|
93
|
-
"@atlaskit/profilecard": "^24.
|
|
93
|
+
"@atlaskit/profilecard": "^24.32.0",
|
|
94
94
|
"@atlaskit/util-data-test": "^18.4.0",
|
|
95
|
+
"@atlassian/a11y-jest-testing": "^0.7.0",
|
|
95
96
|
"@atlassian/feature-flags-test-utils": "^1.0.0",
|
|
96
97
|
"@testing-library/react": "^16.3.0",
|
|
97
98
|
"@testing-library/user-event": "^14.4.3",
|