@atlaskit/editor-common 114.21.0 → 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 CHANGED
@@ -1,5 +1,16 @@
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
+
3
14
  ## 114.21.0
4
15
 
5
16
  ### Minor Changes
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "extends": "../../../../tsconfig.local-consumption.json",
3
3
  "compilerOptions": {
4
- "target": "es5",
5
4
  "outDir": "../../../../../confluence/tsDist/@atlaskit__editor-common",
6
5
  "rootDir": "../",
7
6
  "composite": true,
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "extends": "../../../../tsconfig.local-consumption.json",
3
3
  "compilerOptions": {
4
- "target": "es5",
5
4
  "outDir": "../../../../../tsDist/@atlaskit__editor-common/app",
6
5
  "rootDir": "../",
7
6
  "composite": true,
@@ -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.20.1";
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 = "114.20.1";
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)({
@@ -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.20.1";
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 = "114.20.1";
17
+ const packageVersion = "0.0.0-development";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -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.20.1";
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 = "114.20.1";
24
+ var packageVersion = "0.0.0-development";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -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 ContextualTypeaheadAcceptedAEP = TrackAEP<ACTION.SUGGESTION_INSERTED, ACTION_SUBJECT.CONTEXTUAL_TYPEAHEAD, undefined, undefined, undefined>;
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, ShadowObserver } from '../../../ui';
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>;
@@ -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 ContextualTypeaheadAcceptedAEP = TrackAEP<ACTION.SUGGESTION_INSERTED, ACTION_SUBJECT.CONTEXTUAL_TYPEAHEAD, undefined, undefined, undefined>;
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, ShadowObserver } from '../../../ui';
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.21.0",
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.3.0",
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.1.0",
66
+ "@atlaskit/media-client": "^36.2.0",
67
67
  "@atlaskit/media-client-react": "^5.1.0",
68
- "@atlaskit/media-common": "^13.2.0",
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.1.0",
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.1.0",
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",