@atlaskit/editor-common 114.21.0 → 114.22.1
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 +19 -0
- package/afm-cc/tsconfig.json +0 -1
- package/afm-products/tsconfig.json +0 -1
- package/dist/cjs/ai-messages/ai-suggestions.js +0 -10
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/ai-messages/ai-suggestions.js +0 -10
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/ai-messages/ai-suggestions.js +0 -10
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/ai-messages/ai-suggestions.d.ts +0 -10
- package/dist/types/analytics/types/contextual-typeahead-events.d.ts +6 -1
- package/dist/types/extensibility/Extension/Extension/index.d.ts +2 -82
- package/dist/types/link/LinkSearch/index.d.ts +1 -52
- package/dist/types/link/LinkSearch/withActivityProvider.d.ts +1 -52
- package/dist/types/ui/OverflowShadow/index.d.ts +1 -82
- package/dist/types-ts4.5/ai-messages/ai-suggestions.d.ts +0 -10
- package/dist/types-ts4.5/analytics/types/contextual-typeahead-events.d.ts +6 -1
- package/dist/types-ts4.5/extensibility/Extension/Extension/index.d.ts +2 -82
- package/dist/types-ts4.5/link/LinkSearch/index.d.ts +1 -52
- package/dist/types-ts4.5/link/LinkSearch/withActivityProvider.d.ts +1 -52
- package/dist/types-ts4.5/ui/OverflowShadow/index.d.ts +1 -82
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 114.22.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`51a4f923f5d1f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/51a4f923f5d1f) -
|
|
8
|
+
Removed Suggested Edits quick insert
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 114.22.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [`975a31aae73f4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/975a31aae73f4) -
|
|
16
|
+
Add KSS attributes to contextual typeahead acceptance analytics
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 114.21.0
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -66,16 +66,6 @@ var aiSuggestionsMessages = exports.aiSuggestionsMessages = (0, _reactIntl.defin
|
|
|
66
66
|
defaultMessage: '{count} suggestions',
|
|
67
67
|
description: 'Tooltip text for the suggestion icon button when there are multiple AI suggestions'
|
|
68
68
|
},
|
|
69
|
-
fetchGenerateFromDocument: {
|
|
70
|
-
id: 'fabric.editor.ai.suggestions.quickInsert.generateFromDocument.non-final',
|
|
71
|
-
defaultMessage: 'Suggested edits (generate)',
|
|
72
|
-
description: 'Quick insert: fetch AI suggestions by generating from the current document (ADF)'
|
|
73
|
-
},
|
|
74
|
-
fetchGenerateFromAdf: {
|
|
75
|
-
id: 'fabric.editor.ai.suggestions.quickInsert.generateFromAdf.non-final',
|
|
76
|
-
defaultMessage: 'Suggested edits (generate from ADF)',
|
|
77
|
-
description: 'Quick insert: fetch AI suggestions by generating from document, same as page toolbar action'
|
|
78
|
-
},
|
|
79
69
|
originalViewLabel: {
|
|
80
70
|
id: 'fabric.editor.ai.suggestions.stagingArea.originalViewLabel.non-final',
|
|
81
71
|
defaultMessage: 'Original • View only',
|
|
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
19
19
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
20
20
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
21
21
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
22
|
-
var packageVersion = "114.
|
|
22
|
+
var packageVersion = "114.22.0";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// Ignored via go/ees007
|
|
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "114.
|
|
27
|
+
var packageVersion = "114.22.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -60,16 +60,6 @@ export const aiSuggestionsMessages = defineMessages({
|
|
|
60
60
|
defaultMessage: '{count} suggestions',
|
|
61
61
|
description: 'Tooltip text for the suggestion icon button when there are multiple AI suggestions'
|
|
62
62
|
},
|
|
63
|
-
fetchGenerateFromDocument: {
|
|
64
|
-
id: 'fabric.editor.ai.suggestions.quickInsert.generateFromDocument.non-final',
|
|
65
|
-
defaultMessage: 'Suggested edits (generate)',
|
|
66
|
-
description: 'Quick insert: fetch AI suggestions by generating from the current document (ADF)'
|
|
67
|
-
},
|
|
68
|
-
fetchGenerateFromAdf: {
|
|
69
|
-
id: 'fabric.editor.ai.suggestions.quickInsert.generateFromAdf.non-final',
|
|
70
|
-
defaultMessage: 'Suggested edits (generate from ADF)',
|
|
71
|
-
description: 'Quick insert: fetch AI suggestions by generating from document, same as page toolbar action'
|
|
72
|
-
},
|
|
73
63
|
originalViewLabel: {
|
|
74
64
|
id: 'fabric.editor.ai.suggestions.stagingArea.originalViewLabel.non-final',
|
|
75
65
|
defaultMessage: 'Original • View only',
|
|
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
|
|
|
4
4
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
5
5
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
6
6
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
7
|
-
const packageVersion = "114.
|
|
7
|
+
const packageVersion = "114.22.0";
|
|
8
8
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
9
9
|
// Remove URL as it has UGC
|
|
10
10
|
// Ignored via go/ees007
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "114.
|
|
17
|
+
const packageVersion = "114.22.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -60,16 +60,6 @@ export var aiSuggestionsMessages = defineMessages({
|
|
|
60
60
|
defaultMessage: '{count} suggestions',
|
|
61
61
|
description: 'Tooltip text for the suggestion icon button when there are multiple AI suggestions'
|
|
62
62
|
},
|
|
63
|
-
fetchGenerateFromDocument: {
|
|
64
|
-
id: 'fabric.editor.ai.suggestions.quickInsert.generateFromDocument.non-final',
|
|
65
|
-
defaultMessage: 'Suggested edits (generate)',
|
|
66
|
-
description: 'Quick insert: fetch AI suggestions by generating from the current document (ADF)'
|
|
67
|
-
},
|
|
68
|
-
fetchGenerateFromAdf: {
|
|
69
|
-
id: 'fabric.editor.ai.suggestions.quickInsert.generateFromAdf.non-final',
|
|
70
|
-
defaultMessage: 'Suggested edits (generate from ADF)',
|
|
71
|
-
description: 'Quick insert: fetch AI suggestions by generating from document, same as page toolbar action'
|
|
72
|
-
},
|
|
73
63
|
originalViewLabel: {
|
|
74
64
|
id: 'fabric.editor.ai.suggestions.stagingArea.originalViewLabel.non-final',
|
|
75
65
|
defaultMessage: 'Original • View only',
|
|
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
|
|
|
10
10
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
11
11
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
12
12
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
13
|
-
var packageVersion = "114.
|
|
13
|
+
var packageVersion = "114.22.0";
|
|
14
14
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
15
15
|
// Remove URL as it has UGC
|
|
16
16
|
// Ignored via go/ees007
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "114.
|
|
24
|
+
var packageVersion = "114.22.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -79,16 +79,6 @@ export declare const aiSuggestionsMessages: {
|
|
|
79
79
|
description: string;
|
|
80
80
|
id: string;
|
|
81
81
|
};
|
|
82
|
-
fetchGenerateFromAdf: {
|
|
83
|
-
defaultMessage: string;
|
|
84
|
-
description: string;
|
|
85
|
-
id: string;
|
|
86
|
-
};
|
|
87
|
-
fetchGenerateFromDocument: {
|
|
88
|
-
defaultMessage: string;
|
|
89
|
-
description: string;
|
|
90
|
-
id: string;
|
|
91
|
-
};
|
|
92
82
|
fetchSuggestionsButtonLabel: {
|
|
93
83
|
defaultMessage: string;
|
|
94
84
|
description: string;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import type { ACTION, ACTION_SUBJECT } from './enums';
|
|
2
2
|
import type { TrackAEP } from './utils';
|
|
3
3
|
type ContextualTypeaheadViewedAEP = TrackAEP<ACTION.SUGGESTION_VIEWED, ACTION_SUBJECT.CONTEXTUAL_TYPEAHEAD, undefined, undefined, undefined>;
|
|
4
|
-
type
|
|
4
|
+
type ContextualTypeaheadAcceptedAttributes = {
|
|
5
|
+
kssDelta: number;
|
|
6
|
+
suggestionLength: number;
|
|
7
|
+
typedLength: number;
|
|
8
|
+
};
|
|
9
|
+
type ContextualTypeaheadAcceptedAEP = TrackAEP<ACTION.SUGGESTION_INSERTED, ACTION_SUBJECT.CONTEXTUAL_TYPEAHEAD, undefined, ContextualTypeaheadAcceptedAttributes, undefined>;
|
|
5
10
|
export type ContextualTypeaheadEventPayload = ContextualTypeaheadViewedAEP | ContextualTypeaheadAcceptedAEP;
|
|
6
11
|
export {};
|
|
@@ -4,7 +4,7 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
4
4
|
import type { ExtensionProvider, ReferenceEntity } from '../../../extensions';
|
|
5
5
|
import type { ProsemirrorGetPosHandler } from '../../../react-node-view';
|
|
6
6
|
import type { EditorAppearance } from '../../../types';
|
|
7
|
-
import type { OverflowShadowProps, OverflowShadowState
|
|
7
|
+
import type { OverflowShadowProps, OverflowShadowState } from '../../../ui';
|
|
8
8
|
import type { ExtensionsPluginInjectionAPI, MacroInteractionDesignFeatureFlags } from '../../types';
|
|
9
9
|
export interface Props {
|
|
10
10
|
children?: React.ReactNode;
|
|
@@ -28,85 +28,5 @@ export interface Props {
|
|
|
28
28
|
showUpdatedLivePages1PBodiedExtensionUI?: boolean;
|
|
29
29
|
view: EditorView;
|
|
30
30
|
}
|
|
31
|
-
declare const _default_1:
|
|
32
|
-
new (props: Props & OverflowShadowProps): {
|
|
33
|
-
calcOverflowDiff: () => number;
|
|
34
|
-
calcScrollableWidth: () => number;
|
|
35
|
-
componentDidCatch?: (error: Error, errorInfo: React.ErrorInfo) => void;
|
|
36
|
-
componentDidMount?: () => void;
|
|
37
|
-
componentDidUpdate: () => void;
|
|
38
|
-
componentWillMount?: () => void;
|
|
39
|
-
componentWillReceiveProps?: (nextProps: Readonly<Props & OverflowShadowProps>, nextContext: any) => void;
|
|
40
|
-
componentWillUnmount: () => void;
|
|
41
|
-
componentWillUpdate?: (nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any) => void;
|
|
42
|
-
container?: HTMLElement;
|
|
43
|
-
context: unknown;
|
|
44
|
-
diff?: number;
|
|
45
|
-
forceUpdate: (callback?: (() => void) | undefined) => void;
|
|
46
|
-
getSnapshotBeforeUpdate?: (prevProps: Readonly<Props & OverflowShadowProps>, prevState: Readonly<OverflowShadowState>) => any;
|
|
47
|
-
handleContainer: (container: HTMLElement | null) => void;
|
|
48
|
-
handleScroll: (event: Event) => void;
|
|
49
|
-
initShadowObserver: () => void;
|
|
50
|
-
overflowContainer?: HTMLElement | null;
|
|
51
|
-
overflowContainerWidth: number;
|
|
52
|
-
readonly props: Readonly<Props & OverflowShadowProps>;
|
|
53
|
-
refs: {
|
|
54
|
-
[key: string]: React.ReactInstance;
|
|
55
|
-
};
|
|
56
|
-
render: () => React.JSX.Element;
|
|
57
|
-
scrollable?: NodeList;
|
|
58
|
-
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;
|
|
59
|
-
shadowObserver?: ShadowObserver;
|
|
60
|
-
shouldComponentUpdate?: (nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any) => boolean;
|
|
61
|
-
showLeftShadow: (overflowContainer: HTMLElement | null | undefined) => boolean;
|
|
62
|
-
state: {
|
|
63
|
-
showLeftShadow: boolean;
|
|
64
|
-
showRightShadow: boolean;
|
|
65
|
-
};
|
|
66
|
-
UNSAFE_componentWillMount?: () => void;
|
|
67
|
-
UNSAFE_componentWillReceiveProps?: (nextProps: Readonly<Props & OverflowShadowProps>, nextContext: any) => void;
|
|
68
|
-
UNSAFE_componentWillUpdate?: (nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any) => void;
|
|
69
|
-
updateShadows: () => void;
|
|
70
|
-
};
|
|
71
|
-
new (props: Props & OverflowShadowProps, context: any): {
|
|
72
|
-
calcOverflowDiff: () => number;
|
|
73
|
-
calcScrollableWidth: () => number;
|
|
74
|
-
componentDidCatch?: (error: Error, errorInfo: React.ErrorInfo) => void;
|
|
75
|
-
componentDidMount?: () => void;
|
|
76
|
-
componentDidUpdate: () => void;
|
|
77
|
-
componentWillMount?: () => void;
|
|
78
|
-
componentWillReceiveProps?: (nextProps: Readonly<Props & OverflowShadowProps>, nextContext: any) => void;
|
|
79
|
-
componentWillUnmount: () => void;
|
|
80
|
-
componentWillUpdate?: (nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any) => void;
|
|
81
|
-
container?: HTMLElement;
|
|
82
|
-
context: unknown;
|
|
83
|
-
diff?: number;
|
|
84
|
-
forceUpdate: (callback?: (() => void) | undefined) => void;
|
|
85
|
-
getSnapshotBeforeUpdate?: (prevProps: Readonly<Props & OverflowShadowProps>, prevState: Readonly<OverflowShadowState>) => any;
|
|
86
|
-
handleContainer: (container: HTMLElement | null) => void;
|
|
87
|
-
handleScroll: (event: Event) => void;
|
|
88
|
-
initShadowObserver: () => void;
|
|
89
|
-
overflowContainer?: HTMLElement | null;
|
|
90
|
-
overflowContainerWidth: number;
|
|
91
|
-
readonly props: Readonly<Props & OverflowShadowProps>;
|
|
92
|
-
refs: {
|
|
93
|
-
[key: string]: React.ReactInstance;
|
|
94
|
-
};
|
|
95
|
-
render: () => React.JSX.Element;
|
|
96
|
-
scrollable?: NodeList;
|
|
97
|
-
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;
|
|
98
|
-
shadowObserver?: ShadowObserver;
|
|
99
|
-
shouldComponentUpdate?: (nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any) => boolean;
|
|
100
|
-
showLeftShadow: (overflowContainer: HTMLElement | null | undefined) => boolean;
|
|
101
|
-
state: {
|
|
102
|
-
showLeftShadow: boolean;
|
|
103
|
-
showRightShadow: boolean;
|
|
104
|
-
};
|
|
105
|
-
UNSAFE_componentWillMount?: () => void;
|
|
106
|
-
UNSAFE_componentWillReceiveProps?: (nextProps: Readonly<Props & OverflowShadowProps>, nextContext: any) => void;
|
|
107
|
-
UNSAFE_componentWillUpdate?: (nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any) => void;
|
|
108
|
-
updateShadows: () => void;
|
|
109
|
-
};
|
|
110
|
-
contextType?: React.Context<any> | undefined;
|
|
111
|
-
};
|
|
31
|
+
declare const _default_1: React.ComponentClass<Props & OverflowShadowProps, OverflowShadowState>;
|
|
112
32
|
export default _default_1;
|
|
@@ -1,57 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { Providers } from '../../provider-factory';
|
|
3
2
|
import type { Diff } from '../../utils';
|
|
4
3
|
import type { RecentSearchProps } from './types';
|
|
5
4
|
import type { ExpandedActivityProviderProps, WithActivityProviderProps } from './withActivityProvider';
|
|
6
|
-
declare const _default_1:
|
|
7
|
-
new (props: Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps): {
|
|
8
|
-
componentDidCatch?: (error: Error, errorInfo: React.ErrorInfo) => void;
|
|
9
|
-
componentDidMount?: () => void;
|
|
10
|
-
componentDidUpdate?: (prevProps: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>, prevState: Readonly<{}>, snapshot?: any) => void;
|
|
11
|
-
componentWillMount?: () => void;
|
|
12
|
-
componentWillReceiveProps?: (nextProps: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextContext: any) => void;
|
|
13
|
-
componentWillUnmount?: () => void;
|
|
14
|
-
componentWillUpdate?: (nextProps: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any) => void;
|
|
15
|
-
context: unknown;
|
|
16
|
-
forceUpdate: (callback?: (() => void) | undefined) => void;
|
|
17
|
-
getSnapshotBeforeUpdate?: (prevProps: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>, prevState: Readonly<{}>) => any;
|
|
18
|
-
readonly props: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>;
|
|
19
|
-
refs: {
|
|
20
|
-
[key: string]: React.ReactInstance;
|
|
21
|
-
};
|
|
22
|
-
render: () => React.JSX.Element;
|
|
23
|
-
renderNode: (providers: Providers) => React.JSX.Element;
|
|
24
|
-
setState: <K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined) => void;
|
|
25
|
-
shouldComponentUpdate?: (nextProps: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any) => boolean;
|
|
26
|
-
state: Readonly<{}>;
|
|
27
|
-
UNSAFE_componentWillMount?: () => void;
|
|
28
|
-
UNSAFE_componentWillReceiveProps?: (nextProps: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextContext: any) => void;
|
|
29
|
-
UNSAFE_componentWillUpdate?: (nextProps: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any) => void;
|
|
30
|
-
};
|
|
31
|
-
new (props: Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps, context: any): {
|
|
32
|
-
componentDidCatch?: (error: Error, errorInfo: React.ErrorInfo) => void;
|
|
33
|
-
componentDidMount?: () => void;
|
|
34
|
-
componentDidUpdate?: (prevProps: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>, prevState: Readonly<{}>, snapshot?: any) => void;
|
|
35
|
-
componentWillMount?: () => void;
|
|
36
|
-
componentWillReceiveProps?: (nextProps: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextContext: any) => void;
|
|
37
|
-
componentWillUnmount?: () => void;
|
|
38
|
-
componentWillUpdate?: (nextProps: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any) => void;
|
|
39
|
-
context: unknown;
|
|
40
|
-
forceUpdate: (callback?: (() => void) | undefined) => void;
|
|
41
|
-
getSnapshotBeforeUpdate?: (prevProps: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>, prevState: Readonly<{}>) => any;
|
|
42
|
-
readonly props: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>;
|
|
43
|
-
refs: {
|
|
44
|
-
[key: string]: React.ReactInstance;
|
|
45
|
-
};
|
|
46
|
-
render: () => React.JSX.Element;
|
|
47
|
-
renderNode: (providers: Providers) => React.JSX.Element;
|
|
48
|
-
setState: <K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined) => void;
|
|
49
|
-
shouldComponentUpdate?: (nextProps: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any) => boolean;
|
|
50
|
-
state: Readonly<{}>;
|
|
51
|
-
UNSAFE_componentWillMount?: () => void;
|
|
52
|
-
UNSAFE_componentWillReceiveProps?: (nextProps: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextContext: any) => void;
|
|
53
|
-
UNSAFE_componentWillUpdate?: (nextProps: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any) => void;
|
|
54
|
-
};
|
|
55
|
-
contextType?: React.Context<any> | undefined;
|
|
56
|
-
};
|
|
5
|
+
declare const _default_1: React.ComponentClass<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>;
|
|
57
6
|
export default _default_1;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ActivityProvider } from '@atlaskit/activity-provider';
|
|
3
3
|
import type { ProviderFactory } from '../../provider-factory';
|
|
4
|
-
import type { Providers } from '../../provider-factory';
|
|
5
4
|
import type { Diff } from '../../utils';
|
|
6
5
|
export interface ExpandedActivityProviderProps {
|
|
7
6
|
providerFactory: ProviderFactory;
|
|
@@ -9,54 +8,4 @@ export interface ExpandedActivityProviderProps {
|
|
|
9
8
|
export interface WithActivityProviderProps {
|
|
10
9
|
activityProvider: ActivityProvider;
|
|
11
10
|
}
|
|
12
|
-
export default function withActivityProvider<Props>(WrappedComponent: React.ComponentType<React.PropsWithChildren<Props & WithActivityProviderProps>>):
|
|
13
|
-
new (props: Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps): {
|
|
14
|
-
renderNode: (providers: Providers) => React.JSX.Element;
|
|
15
|
-
render(): React.JSX.Element;
|
|
16
|
-
context: unknown;
|
|
17
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
18
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
19
|
-
readonly props: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>;
|
|
20
|
-
state: Readonly<{}>;
|
|
21
|
-
refs: {
|
|
22
|
-
[key: string]: React.ReactInstance;
|
|
23
|
-
};
|
|
24
|
-
componentDidMount?(): void;
|
|
25
|
-
shouldComponentUpdate?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
26
|
-
componentWillUnmount?(): void;
|
|
27
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
28
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, prevState: Readonly<{}>): any;
|
|
29
|
-
componentDidUpdate?(prevProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
30
|
-
componentWillMount?(): void;
|
|
31
|
-
UNSAFE_componentWillMount?(): void;
|
|
32
|
-
componentWillReceiveProps?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextContext: any): void;
|
|
33
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextContext: any): void;
|
|
34
|
-
componentWillUpdate?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
35
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
36
|
-
};
|
|
37
|
-
new (props: Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps, context: any): {
|
|
38
|
-
renderNode: (providers: Providers) => React.JSX.Element;
|
|
39
|
-
render(): React.JSX.Element;
|
|
40
|
-
context: unknown;
|
|
41
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
42
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
43
|
-
readonly props: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>;
|
|
44
|
-
state: Readonly<{}>;
|
|
45
|
-
refs: {
|
|
46
|
-
[key: string]: React.ReactInstance;
|
|
47
|
-
};
|
|
48
|
-
componentDidMount?(): void;
|
|
49
|
-
shouldComponentUpdate?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
50
|
-
componentWillUnmount?(): void;
|
|
51
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
52
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, prevState: Readonly<{}>): any;
|
|
53
|
-
componentDidUpdate?(prevProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
54
|
-
componentWillMount?(): void;
|
|
55
|
-
UNSAFE_componentWillMount?(): void;
|
|
56
|
-
componentWillReceiveProps?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextContext: any): void;
|
|
57
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextContext: any): void;
|
|
58
|
-
componentWillUpdate?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
59
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
60
|
-
};
|
|
61
|
-
contextType?: React.Context<any> | undefined;
|
|
62
|
-
};
|
|
11
|
+
export default function withActivityProvider<Props>(WrappedComponent: React.ComponentType<React.PropsWithChildren<Props & WithActivityProviderProps>>): React.ComponentClass<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ShadowObserver } from './shadowObserver';
|
|
3
2
|
export declare const shadowClassNames: {
|
|
4
3
|
RIGHT_SHADOW: string;
|
|
5
4
|
LEFT_SHADOW: string;
|
|
@@ -18,84 +17,4 @@ export interface OverflowShadowOptions {
|
|
|
18
17
|
overflowSelector: string;
|
|
19
18
|
useShadowObserver?: boolean;
|
|
20
19
|
}
|
|
21
|
-
export default function overflowShadow<P>(Component: React.ComponentType<React.PropsWithChildren<P & OverflowShadowProps>>, options: OverflowShadowOptions):
|
|
22
|
-
new (props: P & OverflowShadowProps): {
|
|
23
|
-
overflowContainer?: HTMLElement | null;
|
|
24
|
-
container?: HTMLElement;
|
|
25
|
-
shadowObserver?: ShadowObserver;
|
|
26
|
-
overflowContainerWidth: number;
|
|
27
|
-
scrollable?: NodeList;
|
|
28
|
-
diff?: number;
|
|
29
|
-
state: {
|
|
30
|
-
showLeftShadow: boolean;
|
|
31
|
-
showRightShadow: boolean;
|
|
32
|
-
};
|
|
33
|
-
componentWillUnmount(): void;
|
|
34
|
-
componentDidUpdate(): void;
|
|
35
|
-
handleScroll: (event: Event) => void;
|
|
36
|
-
updateShadows: () => void;
|
|
37
|
-
showLeftShadow: (overflowContainer: HTMLElement | null | undefined) => boolean;
|
|
38
|
-
calcOverflowDiff: () => number;
|
|
39
|
-
calcScrollableWidth: () => number;
|
|
40
|
-
handleContainer: (container: HTMLElement | null) => void;
|
|
41
|
-
initShadowObserver(): void;
|
|
42
|
-
render(): React.JSX.Element;
|
|
43
|
-
context: unknown;
|
|
44
|
-
setState<K extends keyof OverflowShadowState>(state: OverflowShadowState | ((prevState: Readonly<OverflowShadowState>, props: Readonly<P & OverflowShadowProps>) => OverflowShadowState | Pick<OverflowShadowState, K> | null) | Pick<OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
|
|
45
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
46
|
-
readonly props: Readonly<P & OverflowShadowProps>;
|
|
47
|
-
refs: {
|
|
48
|
-
[key: string]: React.ReactInstance;
|
|
49
|
-
};
|
|
50
|
-
componentDidMount?(): void;
|
|
51
|
-
shouldComponentUpdate?(nextProps: Readonly<P & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any): boolean;
|
|
52
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
53
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<P & OverflowShadowProps>, prevState: Readonly<OverflowShadowState>): any;
|
|
54
|
-
componentWillMount?(): void;
|
|
55
|
-
UNSAFE_componentWillMount?(): void;
|
|
56
|
-
componentWillReceiveProps?(nextProps: Readonly<P & OverflowShadowProps>, nextContext: any): void;
|
|
57
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<P & OverflowShadowProps>, nextContext: any): void;
|
|
58
|
-
componentWillUpdate?(nextProps: Readonly<P & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any): void;
|
|
59
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<P & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any): void;
|
|
60
|
-
};
|
|
61
|
-
new (props: P & OverflowShadowProps, context: any): {
|
|
62
|
-
overflowContainer?: HTMLElement | null;
|
|
63
|
-
container?: HTMLElement;
|
|
64
|
-
shadowObserver?: ShadowObserver;
|
|
65
|
-
overflowContainerWidth: number;
|
|
66
|
-
scrollable?: NodeList;
|
|
67
|
-
diff?: number;
|
|
68
|
-
state: {
|
|
69
|
-
showLeftShadow: boolean;
|
|
70
|
-
showRightShadow: boolean;
|
|
71
|
-
};
|
|
72
|
-
componentWillUnmount(): void;
|
|
73
|
-
componentDidUpdate(): void;
|
|
74
|
-
handleScroll: (event: Event) => void;
|
|
75
|
-
updateShadows: () => void;
|
|
76
|
-
showLeftShadow: (overflowContainer: HTMLElement | null | undefined) => boolean;
|
|
77
|
-
calcOverflowDiff: () => number;
|
|
78
|
-
calcScrollableWidth: () => number;
|
|
79
|
-
handleContainer: (container: HTMLElement | null) => void;
|
|
80
|
-
initShadowObserver(): void;
|
|
81
|
-
render(): React.JSX.Element;
|
|
82
|
-
context: unknown;
|
|
83
|
-
setState<K extends keyof OverflowShadowState>(state: OverflowShadowState | ((prevState: Readonly<OverflowShadowState>, props: Readonly<P & OverflowShadowProps>) => OverflowShadowState | Pick<OverflowShadowState, K> | null) | Pick<OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
|
|
84
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
85
|
-
readonly props: Readonly<P & OverflowShadowProps>;
|
|
86
|
-
refs: {
|
|
87
|
-
[key: string]: React.ReactInstance;
|
|
88
|
-
};
|
|
89
|
-
componentDidMount?(): void;
|
|
90
|
-
shouldComponentUpdate?(nextProps: Readonly<P & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any): boolean;
|
|
91
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
92
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<P & OverflowShadowProps>, prevState: Readonly<OverflowShadowState>): any;
|
|
93
|
-
componentWillMount?(): void;
|
|
94
|
-
UNSAFE_componentWillMount?(): void;
|
|
95
|
-
componentWillReceiveProps?(nextProps: Readonly<P & OverflowShadowProps>, nextContext: any): void;
|
|
96
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<P & OverflowShadowProps>, nextContext: any): void;
|
|
97
|
-
componentWillUpdate?(nextProps: Readonly<P & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any): void;
|
|
98
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<P & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any): void;
|
|
99
|
-
};
|
|
100
|
-
contextType?: React.Context<any> | undefined;
|
|
101
|
-
};
|
|
20
|
+
export default function overflowShadow<P>(Component: React.ComponentType<React.PropsWithChildren<P & OverflowShadowProps>>, options: OverflowShadowOptions): React.ComponentClass<P & OverflowShadowProps, OverflowShadowState>;
|
|
@@ -79,16 +79,6 @@ export declare const aiSuggestionsMessages: {
|
|
|
79
79
|
description: string;
|
|
80
80
|
id: string;
|
|
81
81
|
};
|
|
82
|
-
fetchGenerateFromAdf: {
|
|
83
|
-
defaultMessage: string;
|
|
84
|
-
description: string;
|
|
85
|
-
id: string;
|
|
86
|
-
};
|
|
87
|
-
fetchGenerateFromDocument: {
|
|
88
|
-
defaultMessage: string;
|
|
89
|
-
description: string;
|
|
90
|
-
id: string;
|
|
91
|
-
};
|
|
92
82
|
fetchSuggestionsButtonLabel: {
|
|
93
83
|
defaultMessage: string;
|
|
94
84
|
description: string;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import type { ACTION, ACTION_SUBJECT } from './enums';
|
|
2
2
|
import type { TrackAEP } from './utils';
|
|
3
3
|
type ContextualTypeaheadViewedAEP = TrackAEP<ACTION.SUGGESTION_VIEWED, ACTION_SUBJECT.CONTEXTUAL_TYPEAHEAD, undefined, undefined, undefined>;
|
|
4
|
-
type
|
|
4
|
+
type ContextualTypeaheadAcceptedAttributes = {
|
|
5
|
+
kssDelta: number;
|
|
6
|
+
suggestionLength: number;
|
|
7
|
+
typedLength: number;
|
|
8
|
+
};
|
|
9
|
+
type ContextualTypeaheadAcceptedAEP = TrackAEP<ACTION.SUGGESTION_INSERTED, ACTION_SUBJECT.CONTEXTUAL_TYPEAHEAD, undefined, ContextualTypeaheadAcceptedAttributes, undefined>;
|
|
5
10
|
export type ContextualTypeaheadEventPayload = ContextualTypeaheadViewedAEP | ContextualTypeaheadAcceptedAEP;
|
|
6
11
|
export {};
|
|
@@ -4,7 +4,7 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
4
4
|
import type { ExtensionProvider, ReferenceEntity } from '../../../extensions';
|
|
5
5
|
import type { ProsemirrorGetPosHandler } from '../../../react-node-view';
|
|
6
6
|
import type { EditorAppearance } from '../../../types';
|
|
7
|
-
import type { OverflowShadowProps, OverflowShadowState
|
|
7
|
+
import type { OverflowShadowProps, OverflowShadowState } from '../../../ui';
|
|
8
8
|
import type { ExtensionsPluginInjectionAPI, MacroInteractionDesignFeatureFlags } from '../../types';
|
|
9
9
|
export interface Props {
|
|
10
10
|
children?: React.ReactNode;
|
|
@@ -28,85 +28,5 @@ export interface Props {
|
|
|
28
28
|
showUpdatedLivePages1PBodiedExtensionUI?: boolean;
|
|
29
29
|
view: EditorView;
|
|
30
30
|
}
|
|
31
|
-
declare const _default_1:
|
|
32
|
-
new (props: Props & OverflowShadowProps): {
|
|
33
|
-
calcOverflowDiff: () => number;
|
|
34
|
-
calcScrollableWidth: () => number;
|
|
35
|
-
componentDidCatch?: (error: Error, errorInfo: React.ErrorInfo) => void;
|
|
36
|
-
componentDidMount?: () => void;
|
|
37
|
-
componentDidUpdate: () => void;
|
|
38
|
-
componentWillMount?: () => void;
|
|
39
|
-
componentWillReceiveProps?: (nextProps: Readonly<Props & OverflowShadowProps>, nextContext: any) => void;
|
|
40
|
-
componentWillUnmount: () => void;
|
|
41
|
-
componentWillUpdate?: (nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any) => void;
|
|
42
|
-
container?: HTMLElement;
|
|
43
|
-
context: unknown;
|
|
44
|
-
diff?: number;
|
|
45
|
-
forceUpdate: (callback?: (() => void) | undefined) => void;
|
|
46
|
-
getSnapshotBeforeUpdate?: (prevProps: Readonly<Props & OverflowShadowProps>, prevState: Readonly<OverflowShadowState>) => any;
|
|
47
|
-
handleContainer: (container: HTMLElement | null) => void;
|
|
48
|
-
handleScroll: (event: Event) => void;
|
|
49
|
-
initShadowObserver: () => void;
|
|
50
|
-
overflowContainer?: HTMLElement | null;
|
|
51
|
-
overflowContainerWidth: number;
|
|
52
|
-
readonly props: Readonly<Props & OverflowShadowProps>;
|
|
53
|
-
refs: {
|
|
54
|
-
[key: string]: React.ReactInstance;
|
|
55
|
-
};
|
|
56
|
-
render: () => React.JSX.Element;
|
|
57
|
-
scrollable?: NodeList;
|
|
58
|
-
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;
|
|
59
|
-
shadowObserver?: ShadowObserver;
|
|
60
|
-
shouldComponentUpdate?: (nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any) => boolean;
|
|
61
|
-
showLeftShadow: (overflowContainer: HTMLElement | null | undefined) => boolean;
|
|
62
|
-
state: {
|
|
63
|
-
showLeftShadow: boolean;
|
|
64
|
-
showRightShadow: boolean;
|
|
65
|
-
};
|
|
66
|
-
UNSAFE_componentWillMount?: () => void;
|
|
67
|
-
UNSAFE_componentWillReceiveProps?: (nextProps: Readonly<Props & OverflowShadowProps>, nextContext: any) => void;
|
|
68
|
-
UNSAFE_componentWillUpdate?: (nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any) => void;
|
|
69
|
-
updateShadows: () => void;
|
|
70
|
-
};
|
|
71
|
-
new (props: Props & OverflowShadowProps, context: any): {
|
|
72
|
-
calcOverflowDiff: () => number;
|
|
73
|
-
calcScrollableWidth: () => number;
|
|
74
|
-
componentDidCatch?: (error: Error, errorInfo: React.ErrorInfo) => void;
|
|
75
|
-
componentDidMount?: () => void;
|
|
76
|
-
componentDidUpdate: () => void;
|
|
77
|
-
componentWillMount?: () => void;
|
|
78
|
-
componentWillReceiveProps?: (nextProps: Readonly<Props & OverflowShadowProps>, nextContext: any) => void;
|
|
79
|
-
componentWillUnmount: () => void;
|
|
80
|
-
componentWillUpdate?: (nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any) => void;
|
|
81
|
-
container?: HTMLElement;
|
|
82
|
-
context: unknown;
|
|
83
|
-
diff?: number;
|
|
84
|
-
forceUpdate: (callback?: (() => void) | undefined) => void;
|
|
85
|
-
getSnapshotBeforeUpdate?: (prevProps: Readonly<Props & OverflowShadowProps>, prevState: Readonly<OverflowShadowState>) => any;
|
|
86
|
-
handleContainer: (container: HTMLElement | null) => void;
|
|
87
|
-
handleScroll: (event: Event) => void;
|
|
88
|
-
initShadowObserver: () => void;
|
|
89
|
-
overflowContainer?: HTMLElement | null;
|
|
90
|
-
overflowContainerWidth: number;
|
|
91
|
-
readonly props: Readonly<Props & OverflowShadowProps>;
|
|
92
|
-
refs: {
|
|
93
|
-
[key: string]: React.ReactInstance;
|
|
94
|
-
};
|
|
95
|
-
render: () => React.JSX.Element;
|
|
96
|
-
scrollable?: NodeList;
|
|
97
|
-
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;
|
|
98
|
-
shadowObserver?: ShadowObserver;
|
|
99
|
-
shouldComponentUpdate?: (nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any) => boolean;
|
|
100
|
-
showLeftShadow: (overflowContainer: HTMLElement | null | undefined) => boolean;
|
|
101
|
-
state: {
|
|
102
|
-
showLeftShadow: boolean;
|
|
103
|
-
showRightShadow: boolean;
|
|
104
|
-
};
|
|
105
|
-
UNSAFE_componentWillMount?: () => void;
|
|
106
|
-
UNSAFE_componentWillReceiveProps?: (nextProps: Readonly<Props & OverflowShadowProps>, nextContext: any) => void;
|
|
107
|
-
UNSAFE_componentWillUpdate?: (nextProps: Readonly<Props & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any) => void;
|
|
108
|
-
updateShadows: () => void;
|
|
109
|
-
};
|
|
110
|
-
contextType?: React.Context<any> | undefined;
|
|
111
|
-
};
|
|
31
|
+
declare const _default_1: React.ComponentClass<Props & OverflowShadowProps, OverflowShadowState>;
|
|
112
32
|
export default _default_1;
|
|
@@ -1,57 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { Providers } from '../../provider-factory';
|
|
3
2
|
import type { Diff } from '../../utils';
|
|
4
3
|
import type { RecentSearchProps } from './types';
|
|
5
4
|
import type { ExpandedActivityProviderProps, WithActivityProviderProps } from './withActivityProvider';
|
|
6
|
-
declare const _default_1:
|
|
7
|
-
new (props: Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps): {
|
|
8
|
-
componentDidCatch?: (error: Error, errorInfo: React.ErrorInfo) => void;
|
|
9
|
-
componentDidMount?: () => void;
|
|
10
|
-
componentDidUpdate?: (prevProps: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>, prevState: Readonly<{}>, snapshot?: any) => void;
|
|
11
|
-
componentWillMount?: () => void;
|
|
12
|
-
componentWillReceiveProps?: (nextProps: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextContext: any) => void;
|
|
13
|
-
componentWillUnmount?: () => void;
|
|
14
|
-
componentWillUpdate?: (nextProps: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any) => void;
|
|
15
|
-
context: unknown;
|
|
16
|
-
forceUpdate: (callback?: (() => void) | undefined) => void;
|
|
17
|
-
getSnapshotBeforeUpdate?: (prevProps: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>, prevState: Readonly<{}>) => any;
|
|
18
|
-
readonly props: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>;
|
|
19
|
-
refs: {
|
|
20
|
-
[key: string]: React.ReactInstance;
|
|
21
|
-
};
|
|
22
|
-
render: () => React.JSX.Element;
|
|
23
|
-
renderNode: (providers: Providers) => React.JSX.Element;
|
|
24
|
-
setState: <K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined) => void;
|
|
25
|
-
shouldComponentUpdate?: (nextProps: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any) => boolean;
|
|
26
|
-
state: Readonly<{}>;
|
|
27
|
-
UNSAFE_componentWillMount?: () => void;
|
|
28
|
-
UNSAFE_componentWillReceiveProps?: (nextProps: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextContext: any) => void;
|
|
29
|
-
UNSAFE_componentWillUpdate?: (nextProps: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any) => void;
|
|
30
|
-
};
|
|
31
|
-
new (props: Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps, context: any): {
|
|
32
|
-
componentDidCatch?: (error: Error, errorInfo: React.ErrorInfo) => void;
|
|
33
|
-
componentDidMount?: () => void;
|
|
34
|
-
componentDidUpdate?: (prevProps: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>, prevState: Readonly<{}>, snapshot?: any) => void;
|
|
35
|
-
componentWillMount?: () => void;
|
|
36
|
-
componentWillReceiveProps?: (nextProps: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextContext: any) => void;
|
|
37
|
-
componentWillUnmount?: () => void;
|
|
38
|
-
componentWillUpdate?: (nextProps: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any) => void;
|
|
39
|
-
context: unknown;
|
|
40
|
-
forceUpdate: (callback?: (() => void) | undefined) => void;
|
|
41
|
-
getSnapshotBeforeUpdate?: (prevProps: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>, prevState: Readonly<{}>) => any;
|
|
42
|
-
readonly props: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>;
|
|
43
|
-
refs: {
|
|
44
|
-
[key: string]: React.ReactInstance;
|
|
45
|
-
};
|
|
46
|
-
render: () => React.JSX.Element;
|
|
47
|
-
renderNode: (providers: Providers) => React.JSX.Element;
|
|
48
|
-
setState: <K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined) => void;
|
|
49
|
-
shouldComponentUpdate?: (nextProps: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any) => boolean;
|
|
50
|
-
state: Readonly<{}>;
|
|
51
|
-
UNSAFE_componentWillMount?: () => void;
|
|
52
|
-
UNSAFE_componentWillReceiveProps?: (nextProps: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextContext: any) => void;
|
|
53
|
-
UNSAFE_componentWillUpdate?: (nextProps: Readonly<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any) => void;
|
|
54
|
-
};
|
|
55
|
-
contextType?: React.Context<any> | undefined;
|
|
56
|
-
};
|
|
5
|
+
declare const _default_1: React.ComponentClass<Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & ExpandedActivityProviderProps>;
|
|
57
6
|
export default _default_1;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ActivityProvider } from '@atlaskit/activity-provider';
|
|
3
3
|
import type { ProviderFactory } from '../../provider-factory';
|
|
4
|
-
import type { Providers } from '../../provider-factory';
|
|
5
4
|
import type { Diff } from '../../utils';
|
|
6
5
|
export interface ExpandedActivityProviderProps {
|
|
7
6
|
providerFactory: ProviderFactory;
|
|
@@ -9,54 +8,4 @@ export interface ExpandedActivityProviderProps {
|
|
|
9
8
|
export interface WithActivityProviderProps {
|
|
10
9
|
activityProvider: ActivityProvider;
|
|
11
10
|
}
|
|
12
|
-
export default function withActivityProvider<Props>(WrappedComponent: React.ComponentType<React.PropsWithChildren<Props & WithActivityProviderProps>>):
|
|
13
|
-
new (props: Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps): {
|
|
14
|
-
renderNode: (providers: Providers) => React.JSX.Element;
|
|
15
|
-
render(): React.JSX.Element;
|
|
16
|
-
context: unknown;
|
|
17
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
18
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
19
|
-
readonly props: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>;
|
|
20
|
-
state: Readonly<{}>;
|
|
21
|
-
refs: {
|
|
22
|
-
[key: string]: React.ReactInstance;
|
|
23
|
-
};
|
|
24
|
-
componentDidMount?(): void;
|
|
25
|
-
shouldComponentUpdate?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
26
|
-
componentWillUnmount?(): void;
|
|
27
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
28
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, prevState: Readonly<{}>): any;
|
|
29
|
-
componentDidUpdate?(prevProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
30
|
-
componentWillMount?(): void;
|
|
31
|
-
UNSAFE_componentWillMount?(): void;
|
|
32
|
-
componentWillReceiveProps?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextContext: any): void;
|
|
33
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextContext: any): void;
|
|
34
|
-
componentWillUpdate?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
35
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
36
|
-
};
|
|
37
|
-
new (props: Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps, context: any): {
|
|
38
|
-
renderNode: (providers: Providers) => React.JSX.Element;
|
|
39
|
-
render(): React.JSX.Element;
|
|
40
|
-
context: unknown;
|
|
41
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
42
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
43
|
-
readonly props: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>;
|
|
44
|
-
state: Readonly<{}>;
|
|
45
|
-
refs: {
|
|
46
|
-
[key: string]: React.ReactInstance;
|
|
47
|
-
};
|
|
48
|
-
componentDidMount?(): void;
|
|
49
|
-
shouldComponentUpdate?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
50
|
-
componentWillUnmount?(): void;
|
|
51
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
52
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, prevState: Readonly<{}>): any;
|
|
53
|
-
componentDidUpdate?(prevProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
54
|
-
componentWillMount?(): void;
|
|
55
|
-
UNSAFE_componentWillMount?(): void;
|
|
56
|
-
componentWillReceiveProps?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextContext: any): void;
|
|
57
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextContext: any): void;
|
|
58
|
-
componentWillUpdate?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
59
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
60
|
-
};
|
|
61
|
-
contextType?: React.Context<any> | undefined;
|
|
62
|
-
};
|
|
11
|
+
export default function withActivityProvider<Props>(WrappedComponent: React.ComponentType<React.PropsWithChildren<Props & WithActivityProviderProps>>): React.ComponentClass<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ShadowObserver } from './shadowObserver';
|
|
3
2
|
export declare const shadowClassNames: {
|
|
4
3
|
RIGHT_SHADOW: string;
|
|
5
4
|
LEFT_SHADOW: string;
|
|
@@ -18,84 +17,4 @@ export interface OverflowShadowOptions {
|
|
|
18
17
|
overflowSelector: string;
|
|
19
18
|
useShadowObserver?: boolean;
|
|
20
19
|
}
|
|
21
|
-
export default function overflowShadow<P>(Component: React.ComponentType<React.PropsWithChildren<P & OverflowShadowProps>>, options: OverflowShadowOptions):
|
|
22
|
-
new (props: P & OverflowShadowProps): {
|
|
23
|
-
overflowContainer?: HTMLElement | null;
|
|
24
|
-
container?: HTMLElement;
|
|
25
|
-
shadowObserver?: ShadowObserver;
|
|
26
|
-
overflowContainerWidth: number;
|
|
27
|
-
scrollable?: NodeList;
|
|
28
|
-
diff?: number;
|
|
29
|
-
state: {
|
|
30
|
-
showLeftShadow: boolean;
|
|
31
|
-
showRightShadow: boolean;
|
|
32
|
-
};
|
|
33
|
-
componentWillUnmount(): void;
|
|
34
|
-
componentDidUpdate(): void;
|
|
35
|
-
handleScroll: (event: Event) => void;
|
|
36
|
-
updateShadows: () => void;
|
|
37
|
-
showLeftShadow: (overflowContainer: HTMLElement | null | undefined) => boolean;
|
|
38
|
-
calcOverflowDiff: () => number;
|
|
39
|
-
calcScrollableWidth: () => number;
|
|
40
|
-
handleContainer: (container: HTMLElement | null) => void;
|
|
41
|
-
initShadowObserver(): void;
|
|
42
|
-
render(): React.JSX.Element;
|
|
43
|
-
context: unknown;
|
|
44
|
-
setState<K extends keyof OverflowShadowState>(state: OverflowShadowState | ((prevState: Readonly<OverflowShadowState>, props: Readonly<P & OverflowShadowProps>) => OverflowShadowState | Pick<OverflowShadowState, K> | null) | Pick<OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
|
|
45
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
46
|
-
readonly props: Readonly<P & OverflowShadowProps>;
|
|
47
|
-
refs: {
|
|
48
|
-
[key: string]: React.ReactInstance;
|
|
49
|
-
};
|
|
50
|
-
componentDidMount?(): void;
|
|
51
|
-
shouldComponentUpdate?(nextProps: Readonly<P & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any): boolean;
|
|
52
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
53
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<P & OverflowShadowProps>, prevState: Readonly<OverflowShadowState>): any;
|
|
54
|
-
componentWillMount?(): void;
|
|
55
|
-
UNSAFE_componentWillMount?(): void;
|
|
56
|
-
componentWillReceiveProps?(nextProps: Readonly<P & OverflowShadowProps>, nextContext: any): void;
|
|
57
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<P & OverflowShadowProps>, nextContext: any): void;
|
|
58
|
-
componentWillUpdate?(nextProps: Readonly<P & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any): void;
|
|
59
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<P & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any): void;
|
|
60
|
-
};
|
|
61
|
-
new (props: P & OverflowShadowProps, context: any): {
|
|
62
|
-
overflowContainer?: HTMLElement | null;
|
|
63
|
-
container?: HTMLElement;
|
|
64
|
-
shadowObserver?: ShadowObserver;
|
|
65
|
-
overflowContainerWidth: number;
|
|
66
|
-
scrollable?: NodeList;
|
|
67
|
-
diff?: number;
|
|
68
|
-
state: {
|
|
69
|
-
showLeftShadow: boolean;
|
|
70
|
-
showRightShadow: boolean;
|
|
71
|
-
};
|
|
72
|
-
componentWillUnmount(): void;
|
|
73
|
-
componentDidUpdate(): void;
|
|
74
|
-
handleScroll: (event: Event) => void;
|
|
75
|
-
updateShadows: () => void;
|
|
76
|
-
showLeftShadow: (overflowContainer: HTMLElement | null | undefined) => boolean;
|
|
77
|
-
calcOverflowDiff: () => number;
|
|
78
|
-
calcScrollableWidth: () => number;
|
|
79
|
-
handleContainer: (container: HTMLElement | null) => void;
|
|
80
|
-
initShadowObserver(): void;
|
|
81
|
-
render(): React.JSX.Element;
|
|
82
|
-
context: unknown;
|
|
83
|
-
setState<K extends keyof OverflowShadowState>(state: OverflowShadowState | ((prevState: Readonly<OverflowShadowState>, props: Readonly<P & OverflowShadowProps>) => OverflowShadowState | Pick<OverflowShadowState, K> | null) | Pick<OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
|
|
84
|
-
forceUpdate(callback?: (() => void) | undefined): void;
|
|
85
|
-
readonly props: Readonly<P & OverflowShadowProps>;
|
|
86
|
-
refs: {
|
|
87
|
-
[key: string]: React.ReactInstance;
|
|
88
|
-
};
|
|
89
|
-
componentDidMount?(): void;
|
|
90
|
-
shouldComponentUpdate?(nextProps: Readonly<P & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any): boolean;
|
|
91
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
92
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<P & OverflowShadowProps>, prevState: Readonly<OverflowShadowState>): any;
|
|
93
|
-
componentWillMount?(): void;
|
|
94
|
-
UNSAFE_componentWillMount?(): void;
|
|
95
|
-
componentWillReceiveProps?(nextProps: Readonly<P & OverflowShadowProps>, nextContext: any): void;
|
|
96
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<P & OverflowShadowProps>, nextContext: any): void;
|
|
97
|
-
componentWillUpdate?(nextProps: Readonly<P & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any): void;
|
|
98
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<P & OverflowShadowProps>, nextState: Readonly<OverflowShadowState>, nextContext: any): void;
|
|
99
|
-
};
|
|
100
|
-
contextType?: React.Context<any> | undefined;
|
|
101
|
-
};
|
|
20
|
+
export default function overflowShadow<P>(Component: React.ComponentType<React.PropsWithChildren<P & OverflowShadowProps>>, options: OverflowShadowOptions): React.ComponentClass<P & OverflowShadowProps, OverflowShadowState>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "114.
|
|
3
|
+
"version": "114.22.1",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -57,19 +57,19 @@
|
|
|
57
57
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
58
58
|
"@atlaskit/editor-toolbar": "^1.0.0",
|
|
59
59
|
"@atlaskit/editor-toolbar-model": "^0.4.0",
|
|
60
|
-
"@atlaskit/emoji": "^70.
|
|
60
|
+
"@atlaskit/emoji": "^70.4.0",
|
|
61
61
|
"@atlaskit/icon": "^34.4.0",
|
|
62
62
|
"@atlaskit/link": "^3.4.0",
|
|
63
63
|
"@atlaskit/link-datasource": "^5.2.0",
|
|
64
64
|
"@atlaskit/link-picker": "^5.1.0",
|
|
65
65
|
"@atlaskit/media-card": "^80.4.0",
|
|
66
|
-
"@atlaskit/media-client": "^36.
|
|
66
|
+
"@atlaskit/media-client": "^36.2.0",
|
|
67
67
|
"@atlaskit/media-client-react": "^5.1.0",
|
|
68
|
-
"@atlaskit/media-common": "^13.
|
|
68
|
+
"@atlaskit/media-common": "^13.3.0",
|
|
69
69
|
"@atlaskit/media-file-preview": "^0.17.0",
|
|
70
70
|
"@atlaskit/media-picker": "^71.2.0",
|
|
71
71
|
"@atlaskit/media-ui": "^29.2.0",
|
|
72
|
-
"@atlaskit/media-viewer": "^53.
|
|
72
|
+
"@atlaskit/media-viewer": "^53.2.0",
|
|
73
73
|
"@atlaskit/mention": "^25.0.0",
|
|
74
74
|
"@atlaskit/menu": "^8.5.0",
|
|
75
75
|
"@atlaskit/object": "^1.0.0",
|
|
@@ -81,12 +81,12 @@
|
|
|
81
81
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
82
82
|
"@atlaskit/react-ufo": "^5.19.0",
|
|
83
83
|
"@atlaskit/section-message": "^8.12.0",
|
|
84
|
-
"@atlaskit/smart-card": "^44.
|
|
84
|
+
"@atlaskit/smart-card": "^44.8.0",
|
|
85
85
|
"@atlaskit/smart-user-picker": "^10.0.0",
|
|
86
86
|
"@atlaskit/spinner": "^19.1.0",
|
|
87
87
|
"@atlaskit/task-decision": "^20.0.0",
|
|
88
88
|
"@atlaskit/textfield": "^8.3.0",
|
|
89
|
-
"@atlaskit/tmp-editor-statsig": "^77.
|
|
89
|
+
"@atlaskit/tmp-editor-statsig": "^77.2.0",
|
|
90
90
|
"@atlaskit/tokens": "^13.0.0",
|
|
91
91
|
"@atlaskit/tooltip": "^22.0.0",
|
|
92
92
|
"@atlaskit/width-detector": "^5.1.0",
|