@atlaskit/onboarding 10.5.3 → 10.6.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 +17 -0
- package/dist/cjs/components/clone.js +1 -0
- package/dist/cjs/components/modal.js +8 -8
- package/dist/cjs/components/spotlight-card.js +18 -18
- package/dist/cjs/components/spotlight-dialog.js +1 -1
- package/dist/cjs/styled/blanket.js +3 -3
- package/dist/cjs/styled/dialog.js +7 -7
- package/dist/cjs/styled/modal.js +14 -14
- package/dist/cjs/styled/target.js +9 -9
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/clone.js +1 -0
- package/dist/es2019/components/modal.js +1 -1
- package/dist/es2019/components/spotlight-card.js +1 -1
- package/dist/es2019/components/spotlight-dialog.js +1 -1
- package/dist/es2019/styled/blanket.js +1 -1
- package/dist/es2019/styled/dialog.js +1 -1
- package/dist/es2019/styled/modal.js +1 -1
- package/dist/es2019/styled/target.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/clone.js +1 -0
- package/dist/esm/components/modal.js +1 -1
- package/dist/esm/components/spotlight-card.js +1 -1
- package/dist/esm/components/spotlight-dialog.js +1 -1
- package/dist/esm/styled/blanket.js +1 -1
- package/dist/esm/styled/dialog.js +1 -1
- package/dist/esm/styled/modal.js +1 -1
- package/dist/esm/styled/target.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/components/modal.d.ts +4 -3
- package/dist/types/components/spotlight-dialog.d.ts +1 -1
- package/dist/types-ts4.0/components/animation.d.ts +15 -0
- package/dist/types-ts4.0/components/clone.d.ts +50 -0
- package/dist/types-ts4.0/components/index.d.ts +9 -0
- package/dist/types-ts4.0/components/modal.d.ts +50 -0
- package/dist/types-ts4.0/components/spotlight-card.d.ts +81 -0
- package/dist/types-ts4.0/components/spotlight-dialog.d.ts +61 -0
- package/dist/types-ts4.0/components/spotlight-inner.d.ts +54 -0
- package/dist/types-ts4.0/components/spotlight-manager.d.ts +66 -0
- package/dist/types-ts4.0/components/spotlight-target.d.ts +22 -0
- package/dist/types-ts4.0/components/spotlight-transition.d.ts +43 -0
- package/dist/types-ts4.0/components/spotlight.d.ts +96 -0
- package/dist/types-ts4.0/components/theme.d.ts +10 -0
- package/dist/types-ts4.0/components/use-spotlight.d.ts +6 -0
- package/dist/types-ts4.0/components/value-changed.d.ts +11 -0
- package/dist/types-ts4.0/index.d.ts +14 -0
- package/dist/types-ts4.0/styled/blanket.d.ts +18 -0
- package/dist/types-ts4.0/styled/dialog.d.ts +25 -0
- package/dist/types-ts4.0/styled/modal.d.ts +36 -0
- package/dist/types-ts4.0/styled/target.d.ts +40 -0
- package/dist/types-ts4.0/types.d.ts +8 -0
- package/dist/types-ts4.0/utils/use-element-box.d.ts +23 -0
- package/package.json +14 -7
- package/report.api.md +68 -34
- package/types/package.json +8 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* __Dialog image__
|
|
4
|
+
*
|
|
5
|
+
* An optional header image in spotlight dialogs.
|
|
6
|
+
*
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export declare const DialogImage: React.FC<React.ImgHTMLAttributes<HTMLImageElement>>;
|
|
10
|
+
/**
|
|
11
|
+
* __Dialog action item container__
|
|
12
|
+
*
|
|
13
|
+
* Flex wrapper around dialog action items.
|
|
14
|
+
*
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export declare const DialogActionItemContainer: React.FC<{}>;
|
|
18
|
+
/**
|
|
19
|
+
* __Dialog action item__
|
|
20
|
+
*
|
|
21
|
+
* Action items shown inside of the dialog.
|
|
22
|
+
*
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export declare const DialogActionItem: React.FC<{}>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* __Modal body__
|
|
4
|
+
*
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export declare const ModalBody: React.FC<{}>;
|
|
8
|
+
/**
|
|
9
|
+
* __Modal heading__
|
|
10
|
+
*
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export declare const ModalHeading: React.FC<{}>;
|
|
14
|
+
/**
|
|
15
|
+
* __Modal image__
|
|
16
|
+
*
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
export declare const ModalImage: React.FC<{
|
|
20
|
+
alt: string;
|
|
21
|
+
src?: string;
|
|
22
|
+
}>;
|
|
23
|
+
/**
|
|
24
|
+
* __Modal action container__
|
|
25
|
+
*
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
export declare const ModalActionContainer: React.FC<{
|
|
29
|
+
shouldReverseButtonOrder: boolean;
|
|
30
|
+
}>;
|
|
31
|
+
/**
|
|
32
|
+
* __Modal action item__
|
|
33
|
+
*
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
export declare const ModalActionItem: React.FC<{}>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type BaseProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
3
|
+
bgColor?: string;
|
|
4
|
+
radius?: number;
|
|
5
|
+
className?: string;
|
|
6
|
+
testId?: string;
|
|
7
|
+
};
|
|
8
|
+
declare type TargetProps = Omit<BaseProps, 'css'> & {
|
|
9
|
+
pulse?: boolean;
|
|
10
|
+
testId?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const pulseKeyframesName: string;
|
|
13
|
+
/**
|
|
14
|
+
* __Target inner__
|
|
15
|
+
*
|
|
16
|
+
* Used to apply spotlight border and pulse to spotlight targets.
|
|
17
|
+
*
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
export declare const TargetInner: React.FC<TargetProps>;
|
|
21
|
+
/**
|
|
22
|
+
* __Target overlay__
|
|
23
|
+
*
|
|
24
|
+
* Overlays a spotlight target, allowing for custom click events that are intended
|
|
25
|
+
* only for onboarding.
|
|
26
|
+
*
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
export declare const TargetOverlay: React.FC<React.HTMLAttributes<HTMLDivElement>>;
|
|
30
|
+
/**
|
|
31
|
+
* __Spotlight pulse__
|
|
32
|
+
*
|
|
33
|
+
* A spotlight pulse draws attention to a new feature.
|
|
34
|
+
*
|
|
35
|
+
* - [Examples](https://atlassian.design/components/onboarding/examples)
|
|
36
|
+
* - [Code](https://atlassian.design/components/onboarding/code)
|
|
37
|
+
* - [Usage](https://atlassian.design/components/onboarding/usage)
|
|
38
|
+
*/
|
|
39
|
+
export declare const Pulse: React.FC<TargetProps>;
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { CustomThemeButtonProps } from '@atlaskit/button/types';
|
|
3
|
+
interface Action extends Omit<CustomThemeButtonProps, 'children'> {
|
|
4
|
+
key?: string;
|
|
5
|
+
text?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare type Actions = Action[];
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface ElementBoundingBox {
|
|
2
|
+
height: number;
|
|
3
|
+
left: number;
|
|
4
|
+
top: number;
|
|
5
|
+
width: number;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Will listen to the document resizing to see if an element has moved positions.
|
|
9
|
+
* Not using ResizeObserver because of IE11 support.
|
|
10
|
+
* @param element HTMLElement to watch when resizing.
|
|
11
|
+
*/
|
|
12
|
+
export declare const useElementBox: (element: HTMLElement) => ElementBoundingBox;
|
|
13
|
+
/**
|
|
14
|
+
* __Element box__
|
|
15
|
+
*
|
|
16
|
+
* Allows consumption of `userElementBox` hook through render props.
|
|
17
|
+
*
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
export declare const ElementBox: (props: {
|
|
21
|
+
element: HTMLElement;
|
|
22
|
+
children: (box: ElementBoundingBox) => any;
|
|
23
|
+
}) => any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/onboarding",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.6.0",
|
|
4
4
|
"description": "An onboarding spotlight introduces new features to users through focused messages or multi-step tours.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -12,6 +12,13 @@
|
|
|
12
12
|
"module": "dist/esm/index.js",
|
|
13
13
|
"module:es2019": "dist/es2019/index.js",
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
|
+
"typesVersions": {
|
|
16
|
+
">=4.0 <4.5": {
|
|
17
|
+
"*": [
|
|
18
|
+
"dist/types-ts4.0/*"
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
15
22
|
"sideEffects": false,
|
|
16
23
|
"atlaskit:src": "src/index.tsx",
|
|
17
24
|
"homepage": "https://atlassian.design/components/onboarding/",
|
|
@@ -29,13 +36,13 @@
|
|
|
29
36
|
"@atlaskit/button": "^16.3.0",
|
|
30
37
|
"@atlaskit/ds-lib": "^2.1.0",
|
|
31
38
|
"@atlaskit/heading": "^0.1.14",
|
|
32
|
-
"@atlaskit/modal-dialog": "^12.
|
|
39
|
+
"@atlaskit/modal-dialog": "^12.4.0",
|
|
33
40
|
"@atlaskit/popper": "^5.0.0",
|
|
34
41
|
"@atlaskit/portal": "^4.0.0",
|
|
35
42
|
"@atlaskit/theme": "^12.2.0",
|
|
36
43
|
"@atlaskit/tokens": "^0.10.0",
|
|
37
44
|
"@babel/runtime": "^7.0.0",
|
|
38
|
-
"@emotion/
|
|
45
|
+
"@emotion/react": "^11.7.1",
|
|
39
46
|
"bind-event-listener": "^2.1.1",
|
|
40
47
|
"exenv": "^1.2.2",
|
|
41
48
|
"memoize-one": "^6.0.0",
|
|
@@ -50,9 +57,9 @@
|
|
|
50
57
|
"react-dom": "^16.8.0"
|
|
51
58
|
},
|
|
52
59
|
"devDependencies": {
|
|
53
|
-
"@atlaskit/avatar": "^21.
|
|
60
|
+
"@atlaskit/avatar": "^21.1.0",
|
|
54
61
|
"@atlaskit/docs": "*",
|
|
55
|
-
"@atlaskit/icon": "^21.
|
|
62
|
+
"@atlaskit/icon": "^21.11.0",
|
|
56
63
|
"@atlaskit/progress-indicator": "^9.3.0",
|
|
57
64
|
"@atlaskit/select": "^15.7.0",
|
|
58
65
|
"@atlaskit/ssr": "*",
|
|
@@ -60,11 +67,11 @@
|
|
|
60
67
|
"@atlaskit/webdriver-runner": "*",
|
|
61
68
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
62
69
|
"@testing-library/react": "^12.1.5",
|
|
63
|
-
"@testing-library/react-hooks": "^
|
|
70
|
+
"@testing-library/react-hooks": "^8.0.1",
|
|
64
71
|
"raf-stub": "^2.0.1",
|
|
65
72
|
"react-dom": "^16.8.0",
|
|
66
73
|
"react-lorem-component": "^0.13.0",
|
|
67
|
-
"typescript": "4.
|
|
74
|
+
"typescript": "4.5.5"
|
|
68
75
|
},
|
|
69
76
|
"techstack": {
|
|
70
77
|
"@atlassian/frontend": {
|
package/report.api.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/onboarding"
|
|
1
|
+
## API Report File for "@atlaskit/onboarding".
|
|
2
2
|
|
|
3
|
-
> Do not edit this file.
|
|
3
|
+
> Do not edit this file. This report is auto-generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
[Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
4
6
|
|
|
5
7
|
```ts
|
|
6
8
|
/// <reference types="react" />
|
|
@@ -9,6 +11,7 @@ import { Component } from 'react';
|
|
|
9
11
|
import { ComponentType } from 'react';
|
|
10
12
|
import { CustomThemeButtonProps } from '@atlaskit/button/types';
|
|
11
13
|
import { ElementType } from 'react';
|
|
14
|
+
import { jsx } from '@emotion/react';
|
|
12
15
|
import { MemoizedFn } from 'memoize-one';
|
|
13
16
|
import { ModalFooterProps } from '@atlaskit/modal-dialog';
|
|
14
17
|
import { ModalHeaderProps } from '@atlaskit/modal-dialog';
|
|
@@ -34,28 +37,39 @@ declare type BaseProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
34
37
|
testId?: string;
|
|
35
38
|
};
|
|
36
39
|
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated
|
|
42
|
+
*/
|
|
37
43
|
declare interface CardTokens {
|
|
44
|
+
/**
|
|
45
|
+
* @deprecated
|
|
46
|
+
*/
|
|
38
47
|
container: Record<string, string | undefined>;
|
|
39
48
|
}
|
|
40
49
|
|
|
41
50
|
/**
|
|
42
|
-
*
|
|
51
|
+
* __Benefits modal__
|
|
43
52
|
*
|
|
44
|
-
*
|
|
45
|
-
* this component can be used to outline the benefits of the change to the user.
|
|
53
|
+
* A benefits modal explains the benefits of a significant new feature or experience change.
|
|
46
54
|
*
|
|
47
|
-
* - [Examples](https://
|
|
55
|
+
* - [Examples](https://atlassian.design/components/onboarding/benefits-modal/examples)
|
|
56
|
+
* - [Code](https://atlassian.design/components/onboarding/benefits-modal/code)
|
|
57
|
+
* - [Usage](https://atlassian.design/components/onboarding/benefits-modal/usage)
|
|
48
58
|
*/
|
|
49
59
|
export declare class Modal extends Component<ModalProps> {
|
|
50
60
|
headerComponent: (
|
|
51
61
|
props: ModalProps,
|
|
52
|
-
) => ElementType<ModalHeaderProps> | (() => JSX.Element);
|
|
62
|
+
) => ElementType<ModalHeaderProps> | (() => jsx.JSX.Element);
|
|
53
63
|
footerComponent: (
|
|
54
64
|
props: ModalProps,
|
|
55
|
-
) => ElementType<ModalFooterProps> | (() => JSX.Element | null);
|
|
56
|
-
render(): JSX.Element;
|
|
65
|
+
) => ElementType<ModalFooterProps> | (() => jsx.JSX.Element | null);
|
|
66
|
+
render(): jsx.JSX.Element;
|
|
57
67
|
}
|
|
58
68
|
|
|
69
|
+
/**
|
|
70
|
+
* @deprecated
|
|
71
|
+
* Custom button themes are deprecated and will be removed in the future.
|
|
72
|
+
*/
|
|
59
73
|
export declare const modalButtonTheme: (
|
|
60
74
|
current: any,
|
|
61
75
|
themeProps: Record<string, any>,
|
|
@@ -97,21 +111,34 @@ export { ModalTransition };
|
|
|
97
111
|
/**
|
|
98
112
|
* __Spotlight__
|
|
99
113
|
*
|
|
100
|
-
*
|
|
114
|
+
* An onboarding spotlight introduces new features to users through focused messages or multi-step tours.
|
|
101
115
|
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
* - [
|
|
116
|
+
* - [Examples](https://atlassian.design/components/onboarding/examples)
|
|
117
|
+
* - [Code](https://atlassian.design/components/onboarding/code)
|
|
118
|
+
* - [Usage](https://atlassian.design/components/onboarding/usage)
|
|
105
119
|
*/
|
|
106
120
|
export declare const Spotlight: React_2.FC<SpotlightProps>;
|
|
107
121
|
|
|
122
|
+
/**
|
|
123
|
+
* @deprecated
|
|
124
|
+
* Custom button themes are deprecated and will be removed in the future.
|
|
125
|
+
*/
|
|
108
126
|
export declare const spotlightButtonTheme: (
|
|
109
127
|
current: any,
|
|
110
128
|
themeProps: Record<string, any>,
|
|
111
129
|
) => any;
|
|
112
130
|
|
|
131
|
+
/**
|
|
132
|
+
* __Spotlight card__
|
|
133
|
+
*
|
|
134
|
+
* A spotlight card is for onboarding messages that need a more flexible layout, or don't require a dialog.
|
|
135
|
+
*
|
|
136
|
+
* - [Examples](https://atlassian.design/components/onboarding/spotlight-card/examples)
|
|
137
|
+
* - [Code](https://atlassian.design/components/onboarding/spotlight-card/code)
|
|
138
|
+
* - [Usage](https://atlassian.design/components/onboarding/spotlight-card/usage)
|
|
139
|
+
*/
|
|
113
140
|
export declare const SpotlightCard: React_2.ForwardRefExoticComponent<
|
|
114
|
-
SpotlightCardProps & React_2.RefAttributes<
|
|
141
|
+
SpotlightCardProps & React_2.RefAttributes<HTMLDivElement>
|
|
115
142
|
>;
|
|
116
143
|
|
|
117
144
|
declare interface SpotlightCardProps {
|
|
@@ -151,14 +178,19 @@ declare interface SpotlightCardProps {
|
|
|
151
178
|
*/
|
|
152
179
|
isFlat?: boolean;
|
|
153
180
|
/**
|
|
154
|
-
*
|
|
181
|
+
* @deprecated
|
|
182
|
+
* Theme prop is deprecated and will be removed in the future.
|
|
155
183
|
*/
|
|
156
184
|
theme?: ThemeProp<CardTokens, {}>;
|
|
157
185
|
/**
|
|
158
|
-
* Width of the card in pixels
|
|
186
|
+
* Width of the card in pixels.
|
|
159
187
|
*/
|
|
160
188
|
width?: number;
|
|
161
|
-
|
|
189
|
+
/**
|
|
190
|
+
* @deprecated
|
|
191
|
+
* Use `ref` instead.
|
|
192
|
+
*/
|
|
193
|
+
innerRef?: Ref<HTMLDivElement> | null;
|
|
162
194
|
/**
|
|
163
195
|
* A `testId` prop is provided for specified elements,
|
|
164
196
|
* which is a unique string that appears as a data attribute `data-testid` in the rendered code,
|
|
@@ -170,9 +202,11 @@ declare interface SpotlightCardProps {
|
|
|
170
202
|
/**
|
|
171
203
|
* __Spotlight manager__
|
|
172
204
|
*
|
|
173
|
-
*
|
|
205
|
+
* A spotlight manager manages the visibility of spotlights used to introduce new features to users through focused messages or multi-step tours.
|
|
174
206
|
*
|
|
175
|
-
* - [Examples](https://
|
|
207
|
+
* - [Examples](https://atlassian.design/components/onboarding/examples)
|
|
208
|
+
* - [Code](https://atlassian.design/components/onboarding/code)
|
|
209
|
+
* - [Usage](https://atlassian.design/components/onboarding/usage)
|
|
176
210
|
*/
|
|
177
211
|
export declare class SpotlightManager extends PureComponent<
|
|
178
212
|
SpotlightManagerProps,
|
|
@@ -218,7 +252,7 @@ declare interface SpotlightManagerProps {
|
|
|
218
252
|
children: ReactNode;
|
|
219
253
|
/**
|
|
220
254
|
* @deprecated
|
|
221
|
-
*
|
|
255
|
+
* Component is deprecated and will be removed in the future.
|
|
222
256
|
*/
|
|
223
257
|
component?: ElementType;
|
|
224
258
|
}
|
|
@@ -320,20 +354,24 @@ declare interface SpotlightProps {
|
|
|
320
354
|
}
|
|
321
355
|
|
|
322
356
|
/**
|
|
323
|
-
*
|
|
357
|
+
* __Spotlight pulse__
|
|
324
358
|
*
|
|
325
|
-
*
|
|
359
|
+
* A spotlight pulse draws attention to a new feature.
|
|
326
360
|
*
|
|
327
|
-
* - [Examples](https://
|
|
361
|
+
* - [Examples](https://atlassian.design/components/onboarding/examples)
|
|
362
|
+
* - [Code](https://atlassian.design/components/onboarding/code)
|
|
363
|
+
* - [Usage](https://atlassian.design/components/onboarding/usage)
|
|
328
364
|
*/
|
|
329
365
|
export declare const SpotlightPulse: React.FC<TargetProps>;
|
|
330
366
|
|
|
331
367
|
/**
|
|
332
368
|
* __Spotlight target__
|
|
333
369
|
*
|
|
334
|
-
*
|
|
370
|
+
* A spotlight target marks a component to be used for introducing new features to users through focused messages or multi-step tours.
|
|
335
371
|
*
|
|
336
|
-
* - [Examples](https://
|
|
372
|
+
* - [Examples](https://atlassian.design/components/onboarding/examples)
|
|
373
|
+
* - [Code](https://atlassian.design/components/onboarding/code)
|
|
374
|
+
* - [Usage](https://atlassian.design/components/onboarding/usage)
|
|
337
375
|
*/
|
|
338
376
|
export declare const SpotlightTarget: React_2.FC<SpotlightTargetProps>;
|
|
339
377
|
|
|
@@ -351,9 +389,11 @@ declare interface SpotlightTargetProps {
|
|
|
351
389
|
/**
|
|
352
390
|
* __Spotlight transition__
|
|
353
391
|
*
|
|
354
|
-
*
|
|
392
|
+
* A spotlight transition holds onto spotlights so they can fade out when exiting the viewport.
|
|
355
393
|
*
|
|
356
|
-
* - [Examples](https://
|
|
394
|
+
* - [Examples](https://atlassian.design/components/onboarding/examples)
|
|
395
|
+
* - [Code](https://atlassian.design/components/onboarding/code)
|
|
396
|
+
* - [Usage](https://atlassian.design/components/onboarding/usage)
|
|
357
397
|
*/
|
|
358
398
|
export declare class SpotlightTransition extends React_2.Component<
|
|
359
399
|
SpotlightTransitionProps,
|
|
@@ -390,13 +430,7 @@ declare type TargetProps = Omit<BaseProps, 'css'> & {
|
|
|
390
430
|
};
|
|
391
431
|
|
|
392
432
|
/**
|
|
393
|
-
*
|
|
394
|
-
*
|
|
395
|
-
* Provides the following methods:
|
|
396
|
-
* - `isTargetRendered`
|
|
397
|
-
*
|
|
398
|
-
* Checks if the given spotlight target is currently
|
|
399
|
-
* being rendered.
|
|
433
|
+
* Use spotlight hook returns information about available spotlight targets.
|
|
400
434
|
*/
|
|
401
435
|
export declare function useSpotlight(): {
|
|
402
436
|
isTargetRendered: (target: string) => boolean;
|
package/types/package.json
CHANGED
|
@@ -4,5 +4,12 @@
|
|
|
4
4
|
"module": "../dist/esm/types.js",
|
|
5
5
|
"module:es2019": "../dist/es2019/types.js",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"types": "../dist/types/types.d.ts"
|
|
7
|
+
"types": "../dist/types/types.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.0 <4.5": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.0/types.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
8
15
|
}
|