@atlaskit/editor-common 114.20.1 → 114.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/afm-cc/tsconfig.json +0 -1
- package/afm-products/tsconfig.json +0 -1
- package/dist/cjs/ai-messages/ai-config-items.js +11 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/ai-messages/ai-config-items.js +11 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/ai-messages/ai-config-items.js +11 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/ai-messages/ai-config-items.d.ts +10 -0
- 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-config-items.d.ts +10 -0
- 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 +6 -6
- package/afm-jira/tsconfig.json +0 -192
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 114.22.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`975a31aae73f4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/975a31aae73f4) -
|
|
8
|
+
Add KSS attributes to contextual typeahead acceptance analytics
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 114.21.0
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- [`ba2fcee7745c4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ba2fcee7745c4) -
|
|
19
|
+
[ux] Added a new configurable empty state hero config item for the jira editor-plugin-ai, which
|
|
20
|
+
renders a 'Suggest a comment' AI hero button when the editor is empty. When the editor has
|
|
21
|
+
content, it switches back to the default hero button. The changes are for the
|
|
22
|
+
jira-smart-replies-v2 experiment.
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
|
|
3
28
|
## 114.20.1
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -396,6 +396,17 @@ var aiConfigItemMessages = exports.aiConfigItemMessages = (0, _reactIntl.defineM
|
|
|
396
396
|
defaultMessage: 'Creates a suggestion for rewriting your sentences',
|
|
397
397
|
description: 'Description for the the Atlassian Intelligence "Rephrase".'
|
|
398
398
|
},
|
|
399
|
+
// Suggest a comment messages
|
|
400
|
+
suggestCommentTitle: {
|
|
401
|
+
id: 'fabric.editor.ai.config.item.suggestComment.title',
|
|
402
|
+
defaultMessage: 'Suggest a comment',
|
|
403
|
+
description: 'Label for the AI-powered "Suggest a comment" hero button shown in the editor toolbar when the comment editor is empty.'
|
|
404
|
+
},
|
|
405
|
+
suggestCommentDescription: {
|
|
406
|
+
id: 'fabric.editor.ai.config.item.suggestComment.description',
|
|
407
|
+
defaultMessage: 'Get an AI-suggested comment based on this work item',
|
|
408
|
+
description: 'Description for the "Suggest a comment" Atlassian Intelligence feature shown in the editor toolbar.'
|
|
409
|
+
},
|
|
399
410
|
// Suggest title messages
|
|
400
411
|
suggestTitleTitle: {
|
|
401
412
|
id: 'fabric.editor.ai.config.item.suggest.title',
|
|
@@ -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 = "
|
|
22
|
+
var packageVersion = "0.0.0-development";
|
|
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 = "
|
|
27
|
+
var packageVersion = "0.0.0-development";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -390,6 +390,17 @@ export const aiConfigItemMessages = defineMessages({
|
|
|
390
390
|
defaultMessage: 'Creates a suggestion for rewriting your sentences',
|
|
391
391
|
description: 'Description for the the Atlassian Intelligence "Rephrase".'
|
|
392
392
|
},
|
|
393
|
+
// Suggest a comment messages
|
|
394
|
+
suggestCommentTitle: {
|
|
395
|
+
id: 'fabric.editor.ai.config.item.suggestComment.title',
|
|
396
|
+
defaultMessage: 'Suggest a comment',
|
|
397
|
+
description: 'Label for the AI-powered "Suggest a comment" hero button shown in the editor toolbar when the comment editor is empty.'
|
|
398
|
+
},
|
|
399
|
+
suggestCommentDescription: {
|
|
400
|
+
id: 'fabric.editor.ai.config.item.suggestComment.description',
|
|
401
|
+
defaultMessage: 'Get an AI-suggested comment based on this work item',
|
|
402
|
+
description: 'Description for the "Suggest a comment" Atlassian Intelligence feature shown in the editor toolbar.'
|
|
403
|
+
},
|
|
393
404
|
// Suggest title messages
|
|
394
405
|
suggestTitleTitle: {
|
|
395
406
|
id: 'fabric.editor.ai.config.item.suggest.title',
|
|
@@ -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 = "
|
|
7
|
+
const packageVersion = "0.0.0-development";
|
|
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 = "
|
|
17
|
+
const packageVersion = "0.0.0-development";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -390,6 +390,17 @@ export var aiConfigItemMessages = defineMessages({
|
|
|
390
390
|
defaultMessage: 'Creates a suggestion for rewriting your sentences',
|
|
391
391
|
description: 'Description for the the Atlassian Intelligence "Rephrase".'
|
|
392
392
|
},
|
|
393
|
+
// Suggest a comment messages
|
|
394
|
+
suggestCommentTitle: {
|
|
395
|
+
id: 'fabric.editor.ai.config.item.suggestComment.title',
|
|
396
|
+
defaultMessage: 'Suggest a comment',
|
|
397
|
+
description: 'Label for the AI-powered "Suggest a comment" hero button shown in the editor toolbar when the comment editor is empty.'
|
|
398
|
+
},
|
|
399
|
+
suggestCommentDescription: {
|
|
400
|
+
id: 'fabric.editor.ai.config.item.suggestComment.description',
|
|
401
|
+
defaultMessage: 'Get an AI-suggested comment based on this work item',
|
|
402
|
+
description: 'Description for the "Suggest a comment" Atlassian Intelligence feature shown in the editor toolbar.'
|
|
403
|
+
},
|
|
393
404
|
// Suggest title messages
|
|
394
405
|
suggestTitleTitle: {
|
|
395
406
|
id: 'fabric.editor.ai.config.item.suggest.title',
|
|
@@ -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 = "
|
|
13
|
+
var packageVersion = "0.0.0-development";
|
|
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 = "
|
|
24
|
+
var packageVersion = "0.0.0-development";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -389,6 +389,16 @@ export declare const aiConfigItemMessages: {
|
|
|
389
389
|
description: string;
|
|
390
390
|
id: string;
|
|
391
391
|
};
|
|
392
|
+
suggestCommentDescription: {
|
|
393
|
+
defaultMessage: string;
|
|
394
|
+
description: string;
|
|
395
|
+
id: string;
|
|
396
|
+
};
|
|
397
|
+
suggestCommentTitle: {
|
|
398
|
+
defaultMessage: string;
|
|
399
|
+
description: string;
|
|
400
|
+
id: string;
|
|
401
|
+
};
|
|
392
402
|
suggestTitleDescription: {
|
|
393
403
|
defaultMessage: string;
|
|
394
404
|
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>;
|
|
@@ -389,6 +389,16 @@ export declare const aiConfigItemMessages: {
|
|
|
389
389
|
description: string;
|
|
390
390
|
id: string;
|
|
391
391
|
};
|
|
392
|
+
suggestCommentDescription: {
|
|
393
|
+
defaultMessage: string;
|
|
394
|
+
description: string;
|
|
395
|
+
id: string;
|
|
396
|
+
};
|
|
397
|
+
suggestCommentTitle: {
|
|
398
|
+
defaultMessage: string;
|
|
399
|
+
description: string;
|
|
400
|
+
id: string;
|
|
401
|
+
};
|
|
392
402
|
suggestTitleDescription: {
|
|
393
403
|
defaultMessage: string;
|
|
394
404
|
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.0",
|
|
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",
|
|
@@ -86,7 +86,7 @@
|
|
|
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",
|
package/afm-jira/tsconfig.json
DELETED
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../../../tsconfig.local-consumption.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"target": "es5",
|
|
5
|
-
"outDir": "../../../../../jira/tsDist/@atlaskit__editor-common/app",
|
|
6
|
-
"rootDir": "../",
|
|
7
|
-
"composite": true,
|
|
8
|
-
"noCheck": true
|
|
9
|
-
},
|
|
10
|
-
"include": [
|
|
11
|
-
"../src/**/*.ts",
|
|
12
|
-
"../src/**/*.tsx"
|
|
13
|
-
],
|
|
14
|
-
"exclude": [
|
|
15
|
-
"../src/**/__tests__/*",
|
|
16
|
-
"../src/**/*.test.*",
|
|
17
|
-
"../src/**/test.*",
|
|
18
|
-
"../src/**/examples.*",
|
|
19
|
-
"../src/**/examples/*",
|
|
20
|
-
"../src/**/examples/**/*",
|
|
21
|
-
"../src/**/*.stories.*",
|
|
22
|
-
"../src/**/stories/*",
|
|
23
|
-
"../src/**/stories/**/*"
|
|
24
|
-
],
|
|
25
|
-
"references": [
|
|
26
|
-
{
|
|
27
|
-
"path": "../../activity-provider/afm-jira/tsconfig.json"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"path": "../../adf-schema/afm-jira/tsconfig.json"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"path": "../../adf-utils/afm-jira/tsconfig.json"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"path": "../../../analytics/analytics-listeners/afm-jira/tsconfig.json"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"path": "../../../analytics/analytics-namespaced-context/afm-jira/tsconfig.json"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"path": "../../../analytics/analytics-next/afm-jira/tsconfig.json"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"path": "../../../uip/atlassian-context/afm-jira/tsconfig.json"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"path": "../../../helpers/browser-apis/afm-jira/tsconfig.json"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"path": "../../../design-system/button/afm-jira/tsconfig.json"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"path": "../../../monorepo-tooling/codemod-utils/afm-jira/tsconfig.json"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"path": "../../../design-system/css/afm-jira/tsconfig.json"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"path": "../../custom-steps/afm-jira/tsconfig.json"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"path": "../../../design-system/dropdown-menu/afm-jira/tsconfig.json"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"path": "../../editor-json-transformer/afm-jira/tsconfig.json"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"path": "../../editor-palette/afm-jira/tsconfig.json"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"path": "../../editor-prosemirror/afm-jira/tsconfig.json"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"path": "../../editor-shared-styles/afm-jira/tsconfig.json"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"path": "../../editor-tables/afm-jira/tsconfig.json"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"path": "../../editor-toolbar/afm-jira/tsconfig.json"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"path": "../../editor-toolbar-model/afm-jira/tsconfig.json"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"path": "../../../elements/emoji/afm-jira/tsconfig.json"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"path": "../../../design-system/icon/afm-jira/tsconfig.json"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"path": "../../../design-system/icon-object/afm-jira/tsconfig.json"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"path": "../../../design-system/link/afm-jira/tsconfig.json"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"path": "../../../linking-platform/link-datasource/afm-jira/tsconfig.json"
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"path": "../../../linking-platform/link-picker/afm-jira/tsconfig.json"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"path": "../../../media/media-card/afm-jira/tsconfig.json"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"path": "../../../media/media-client/afm-jira/tsconfig.json"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"path": "../../../media/media-client-react/afm-jira/tsconfig.json"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"path": "../../../media/media-common/afm-jira/tsconfig.json"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"path": "../../../media/media-file-preview/afm-jira/tsconfig.json"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"path": "../../../media/media-picker/afm-jira/tsconfig.json"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"path": "../../../media/media-ui/afm-jira/tsconfig.json"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"path": "../../../media/media-viewer/afm-jira/tsconfig.json"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
"path": "../../../elements/mention/afm-jira/tsconfig.json"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"path": "../../../design-system/menu/afm-jira/tsconfig.json"
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
"path": "../../../design-system/onboarding/afm-jira/tsconfig.json"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"path": "../../../platform/feature-flags/afm-jira/tsconfig.json"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"path": "../../../platform/feature-flags-react/afm-jira/tsconfig.json"
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
"path": "../../../design-system/popper/afm-jira/tsconfig.json"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"path": "../../../design-system/primitives/afm-jira/tsconfig.json"
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"path": "../../../people-and-teams/profilecard/afm-jira/tsconfig.json"
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
"path": "../../prosemirror-history/afm-jira/tsconfig.json"
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
"path": "../../../react-ufo/atlaskit/afm-jira/tsconfig.json"
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
"path": "../../../design-system/section-message/afm-jira/tsconfig.json"
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"path": "../../../linking-platform/smart-card/afm-jira/tsconfig.json"
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
"path": "../../../smart-experiences/smart-user-picker/afm-jira/tsconfig.json"
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
"path": "../../../design-system/spinner/afm-jira/tsconfig.json"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"path": "../../../elements/task-decision/afm-jira/tsconfig.json"
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
"path": "../../../design-system/textfield/afm-jira/tsconfig.json"
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
"path": "../../tmp-editor-statsig/afm-jira/tsconfig.json"
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
"path": "../../../design-system/tokens/afm-jira/tsconfig.json"
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
"path": "../../../design-system/tooltip/afm-jira/tsconfig.json"
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
"path": "../../../design-system/width-detector/afm-jira/tsconfig.json"
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
"path": "../../../media/media-core/afm-jira/tsconfig.json"
|
|
190
|
-
}
|
|
191
|
-
]
|
|
192
|
-
}
|