@atlaskit/onboarding 11.6.0 → 11.7.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 +13 -0
- package/README.md +2 -1
- package/__perf__/default.tsx +1 -3
- package/dist/cjs/components/modal.js +3 -1
- package/dist/cjs/components/spotlight-card.js +4 -0
- package/dist/cjs/components/spotlight-dialog.js +1 -1
- package/dist/cjs/styled/blanket.js +3 -1
- package/dist/cjs/styled/dialog.js +5 -1
- package/dist/cjs/styled/modal.js +8 -1
- package/dist/cjs/styled/target.js +7 -2
- package/dist/es2019/components/modal.js +5 -0
- package/dist/es2019/components/spotlight-card.js +5 -0
- package/dist/es2019/components/spotlight-dialog.js +1 -1
- package/dist/es2019/styled/blanket.js +4 -0
- package/dist/es2019/styled/dialog.js +5 -1
- package/dist/es2019/styled/modal.js +7 -1
- package/dist/es2019/styled/target.js +7 -2
- package/dist/esm/components/modal.js +5 -0
- package/dist/esm/components/spotlight-card.js +5 -0
- package/dist/esm/components/spotlight-dialog.js +1 -1
- package/dist/esm/styled/blanket.js +4 -0
- package/dist/esm/styled/dialog.js +5 -1
- package/dist/esm/styled/modal.js +7 -1
- package/dist/esm/styled/target.js +7 -2
- package/dist/types/components/modal.d.ts +3 -0
- package/dist/types/components/spotlight-card.d.ts +3 -0
- package/dist/types/components/spotlight.d.ts +8 -8
- package/dist/types/styled/blanket.d.ts +3 -0
- package/dist/types/styled/dialog.d.ts +4 -1
- package/dist/types/styled/modal.d.ts +4 -1
- package/dist/types/styled/target.d.ts +3 -0
- package/dist/types-ts4.5/components/modal.d.ts +3 -0
- package/dist/types-ts4.5/components/spotlight-card.d.ts +3 -0
- package/dist/types-ts4.5/components/spotlight.d.ts +8 -8
- package/dist/types-ts4.5/styled/blanket.d.ts +3 -0
- package/dist/types-ts4.5/styled/dialog.d.ts +4 -1
- package/dist/types-ts4.5/styled/modal.d.ts +4 -1
- package/dist/types-ts4.5/styled/target.d.ts +3 -0
- package/package.json +103 -103
- package/report.api.md +157 -173
package/package.json
CHANGED
|
@@ -1,104 +1,104 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
2
|
+
"name": "@atlaskit/onboarding",
|
|
3
|
+
"version": "11.7.0",
|
|
4
|
+
"description": "An onboarding spotlight introduces new features to users through focused messages or multi-step tours.",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"registry": "https://registry.npmjs.org/"
|
|
7
|
+
},
|
|
8
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
9
|
+
"author": "Atlassian Pty Ltd",
|
|
10
|
+
"license": "Apache-2.0",
|
|
11
|
+
"main": "dist/cjs/index.js",
|
|
12
|
+
"module": "dist/esm/index.js",
|
|
13
|
+
"module:es2019": "dist/es2019/index.js",
|
|
14
|
+
"types": "dist/types/index.d.ts",
|
|
15
|
+
"typesVersions": {
|
|
16
|
+
">=4.5 <4.9": {
|
|
17
|
+
"*": [
|
|
18
|
+
"dist/types-ts4.5/*",
|
|
19
|
+
"dist/types-ts4.5/index.d.ts"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"sideEffects": false,
|
|
24
|
+
"atlaskit:src": "src/index.tsx",
|
|
25
|
+
"af:exports": {
|
|
26
|
+
".": "./src/index.tsx",
|
|
27
|
+
"./types": "./src/types.tsx"
|
|
28
|
+
},
|
|
29
|
+
"homepage": "https://atlassian.design/components/onboarding/",
|
|
30
|
+
"atlassian": {
|
|
31
|
+
"team": "Design System Team",
|
|
32
|
+
"releaseModel": "continuous",
|
|
33
|
+
"productPushConsumption": [
|
|
34
|
+
"jira"
|
|
35
|
+
],
|
|
36
|
+
"website": {
|
|
37
|
+
"name": "Onboarding (spotlight)",
|
|
38
|
+
"category": "Components"
|
|
39
|
+
},
|
|
40
|
+
"runReact18": true
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@atlaskit/analytics-next": "^9.3.0",
|
|
44
|
+
"@atlaskit/button": "^17.17.0",
|
|
45
|
+
"@atlaskit/ds-lib": "^2.3.0",
|
|
46
|
+
"@atlaskit/heading": "^2.4.0",
|
|
47
|
+
"@atlaskit/modal-dialog": "^12.14.0",
|
|
48
|
+
"@atlaskit/motion": "^1.7.0",
|
|
49
|
+
"@atlaskit/popper": "^6.1.0",
|
|
50
|
+
"@atlaskit/portal": "^4.6.0",
|
|
51
|
+
"@atlaskit/primitives": "^7.4.0",
|
|
52
|
+
"@atlaskit/theme": "^12.10.0",
|
|
53
|
+
"@atlaskit/tokens": "^1.51.0",
|
|
54
|
+
"@babel/runtime": "^7.0.0",
|
|
55
|
+
"@emotion/react": "^11.7.1",
|
|
56
|
+
"bind-event-listener": "^3.0.0",
|
|
57
|
+
"exenv": "^1.2.2",
|
|
58
|
+
"memoize-one": "^6.0.0",
|
|
59
|
+
"react-focus-lock": "^2.9.5",
|
|
60
|
+
"react-node-resolver": "^1.0.1",
|
|
61
|
+
"react-scrolllock": "^5.0.1",
|
|
62
|
+
"react-transition-group": "^4.4.1",
|
|
63
|
+
"scroll-into-view-if-needed": "^2.2.20"
|
|
64
|
+
},
|
|
65
|
+
"peerDependencies": {
|
|
66
|
+
"react": "^16.8.0 || ^17.0.0 || ~18.2.0",
|
|
67
|
+
"react-dom": "^16.8.0"
|
|
68
|
+
},
|
|
69
|
+
"devDependencies": {
|
|
70
|
+
"@af/accessibility-testing": "*",
|
|
71
|
+
"@af/integration-testing": "*",
|
|
72
|
+
"@af/visual-regression": "*",
|
|
73
|
+
"@atlaskit/ssr": "*",
|
|
74
|
+
"@atlaskit/visual-regression": "*",
|
|
75
|
+
"@testing-library/react": "^12.1.5",
|
|
76
|
+
"@testing-library/react-hooks": "^8.0.1",
|
|
77
|
+
"@types/exenv": "^1.2.0",
|
|
78
|
+
"@types/react-node-resolver": "^2.0.0",
|
|
79
|
+
"@types/react-transition-group": "^2.0.6",
|
|
80
|
+
"raf-stub": "^2.0.1",
|
|
81
|
+
"react-dom": "^16.8.0",
|
|
82
|
+
"react-lorem-component": "^0.13.0",
|
|
83
|
+
"typescript": "~5.4.2"
|
|
84
|
+
},
|
|
85
|
+
"techstack": {
|
|
86
|
+
"@atlassian/frontend": {
|
|
87
|
+
"import-structure": "atlassian-conventions"
|
|
88
|
+
},
|
|
89
|
+
"@repo/internal": {
|
|
90
|
+
"dom-events": "use-bind-event-listener",
|
|
91
|
+
"analytics": "analytics-next",
|
|
92
|
+
"design-tokens": [
|
|
93
|
+
"color",
|
|
94
|
+
"spacing"
|
|
95
|
+
],
|
|
96
|
+
"styling": [
|
|
97
|
+
"static",
|
|
98
|
+
"emotion"
|
|
99
|
+
],
|
|
100
|
+
"design-system": "v1",
|
|
101
|
+
"deprecation": "no-deprecated-imports"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/onboarding"
|
|
4
4
|
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
5
|
+
> Do not edit this file. This report is auto-generated using
|
|
6
|
+
> [API Extractor](https://api-extractor.com/).
|
|
6
7
|
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
8
|
|
|
8
9
|
### Table of contents
|
|
@@ -35,10 +36,10 @@ import { ThemeProp } from '@atlaskit/theme/components';
|
|
|
35
36
|
|
|
36
37
|
// @public (undocumented)
|
|
37
38
|
interface Action extends Omit<CustomThemeButtonProps, 'children'> {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
// (undocumented)
|
|
40
|
+
key?: string;
|
|
41
|
+
// (undocumented)
|
|
42
|
+
text?: ReactNode;
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
// @public (undocumented)
|
|
@@ -46,244 +47,227 @@ type Actions = Action[];
|
|
|
46
47
|
|
|
47
48
|
// @public (undocumented)
|
|
48
49
|
type BaseProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
bgColor?: string;
|
|
51
|
+
radius?: number;
|
|
52
|
+
className?: string;
|
|
53
|
+
testId?: string;
|
|
54
|
+
children?: ReactNode;
|
|
54
55
|
};
|
|
55
56
|
|
|
56
57
|
// @public @deprecated (undocumented)
|
|
57
58
|
interface CardTokens {
|
|
58
|
-
|
|
59
|
-
|
|
59
|
+
// @deprecated (undocumented)
|
|
60
|
+
container: Record<string, string | undefined>;
|
|
60
61
|
}
|
|
61
62
|
|
|
62
63
|
// @public
|
|
63
64
|
export class Modal extends Component<ModalProps> {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
// (undocumented)
|
|
73
|
-
render(): jsx.JSX.Element;
|
|
65
|
+
// (undocumented)
|
|
66
|
+
footerComponent: (
|
|
67
|
+
props: ModalProps,
|
|
68
|
+
) => (() => jsx.JSX.Element | null) | ElementType<ModalFooterProps>;
|
|
69
|
+
// (undocumented)
|
|
70
|
+
headerComponent: (props: ModalProps) => (() => jsx.JSX.Element) | ElementType<ModalHeaderProps>;
|
|
71
|
+
// (undocumented)
|
|
72
|
+
render(): jsx.JSX.Element;
|
|
74
73
|
}
|
|
75
74
|
|
|
76
75
|
// @public @deprecated (undocumented)
|
|
77
|
-
export const modalButtonTheme: (
|
|
78
|
-
current: any,
|
|
79
|
-
themeProps: Record<string, any>,
|
|
80
|
-
) => any;
|
|
76
|
+
export const modalButtonTheme: (current: any, themeProps: Record<string, any>) => any;
|
|
81
77
|
|
|
82
78
|
// @public (undocumented)
|
|
83
79
|
type ModalProps = {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
80
|
+
actions?: Actions;
|
|
81
|
+
children: ReactNode;
|
|
82
|
+
image?: string;
|
|
83
|
+
header?: ElementType<ModalHeaderProps>;
|
|
84
|
+
footer?: ElementType<ModalFooterProps>;
|
|
85
|
+
heading?: string;
|
|
86
|
+
experimental_shouldShowPrimaryButtonOnRight?: boolean;
|
|
91
87
|
};
|
|
92
88
|
|
|
93
89
|
export { ModalTransition };
|
|
94
90
|
|
|
95
91
|
// @public
|
|
96
92
|
export const Spotlight: ({
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
93
|
+
dialogWidth,
|
|
94
|
+
pulse,
|
|
95
|
+
testId,
|
|
96
|
+
targetNode,
|
|
97
|
+
target,
|
|
98
|
+
...rest
|
|
103
99
|
}: SpotlightProps) => JSX.Element;
|
|
104
100
|
|
|
105
101
|
// @public @deprecated (undocumented)
|
|
106
|
-
export const spotlightButtonTheme: (
|
|
107
|
-
current: any,
|
|
108
|
-
themeProps: Record<string, any>,
|
|
109
|
-
) => any;
|
|
102
|
+
export const spotlightButtonTheme: (current: any, themeProps: Record<string, any>) => any;
|
|
110
103
|
|
|
111
104
|
// @public
|
|
112
105
|
export const SpotlightCard: ForwardRefExoticComponent<
|
|
113
|
-
|
|
106
|
+
SpotlightCardProps & RefAttributes<HTMLDivElement>
|
|
114
107
|
>;
|
|
115
108
|
|
|
116
109
|
// @public (undocumented)
|
|
117
110
|
interface SpotlightCardProps {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
111
|
+
actions?: Actions;
|
|
112
|
+
actionsBeforeElement?: ReactNode;
|
|
113
|
+
children?: ReactNode;
|
|
114
|
+
components?: {
|
|
115
|
+
Header?: ComponentType<any>;
|
|
116
|
+
Footer?: ComponentType<any>;
|
|
117
|
+
};
|
|
118
|
+
heading?: ReactNode;
|
|
119
|
+
headingAfterElement?: ReactNode;
|
|
120
|
+
headingId?: string;
|
|
121
|
+
image?: ReactNode | string;
|
|
122
|
+
// @deprecated (undocumented)
|
|
123
|
+
innerRef?: Ref<HTMLDivElement> | null;
|
|
124
|
+
isFlat?: boolean;
|
|
125
|
+
testId?: string;
|
|
126
|
+
// @deprecated (undocumented)
|
|
127
|
+
theme?: ThemeProp<CardTokens, {}>;
|
|
128
|
+
width?: '100%' | number;
|
|
136
129
|
}
|
|
137
130
|
|
|
138
131
|
// @public
|
|
139
132
|
export class SpotlightManager extends PureComponent<
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
133
|
+
SpotlightManagerProps,
|
|
134
|
+
{
|
|
135
|
+
spotlightCount: number;
|
|
136
|
+
targets: {
|
|
137
|
+
[key: string]: HTMLElement | void;
|
|
138
|
+
};
|
|
139
|
+
}
|
|
147
140
|
> {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
141
|
+
// (undocumented)
|
|
142
|
+
componentDidMount(): void;
|
|
143
|
+
// (undocumented)
|
|
144
|
+
static defaultProps: {
|
|
145
|
+
blanketIsTinted: boolean;
|
|
146
|
+
};
|
|
147
|
+
// (undocumented)
|
|
148
|
+
getStateProviderValue: MemoizedFn<
|
|
149
|
+
(
|
|
150
|
+
this: any,
|
|
151
|
+
targets: any,
|
|
152
|
+
) => {
|
|
153
|
+
opened: () => void;
|
|
154
|
+
closed: () => void;
|
|
155
|
+
targets: any;
|
|
156
|
+
}
|
|
157
|
+
>;
|
|
158
|
+
// (undocumented)
|
|
159
|
+
render(): JSX.Element;
|
|
160
|
+
// (undocumented)
|
|
161
|
+
spotlightClose: () => void;
|
|
162
|
+
// (undocumented)
|
|
163
|
+
spotlightOpen: () => void;
|
|
164
|
+
// (undocumented)
|
|
165
|
+
state: {
|
|
166
|
+
spotlightCount: number;
|
|
167
|
+
targets: {};
|
|
168
|
+
};
|
|
169
|
+
// (undocumented)
|
|
170
|
+
targetRef: (name: string) => (element: HTMLElement | void) => void;
|
|
178
171
|
}
|
|
179
172
|
|
|
180
173
|
// @public (undocumented)
|
|
181
174
|
interface SpotlightManagerProps {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
175
|
+
blanketIsTinted?: boolean;
|
|
176
|
+
children: ReactNode;
|
|
177
|
+
// @deprecated (undocumented)
|
|
178
|
+
component?: ElementType;
|
|
186
179
|
}
|
|
187
180
|
|
|
188
181
|
// @public (undocumented)
|
|
189
182
|
interface SpotlightProps {
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
targetRadius?: number;
|
|
221
|
-
targetReplacement?: ComponentType<any>;
|
|
222
|
-
testId?: string;
|
|
183
|
+
actions?: Actions;
|
|
184
|
+
actionsBeforeElement?: ReactNode;
|
|
185
|
+
children?: ReactNode;
|
|
186
|
+
dialogPlacement?:
|
|
187
|
+
| 'bottom center'
|
|
188
|
+
| 'bottom left'
|
|
189
|
+
| 'bottom right'
|
|
190
|
+
| 'left bottom'
|
|
191
|
+
| 'left middle'
|
|
192
|
+
| 'left top'
|
|
193
|
+
| 'right bottom'
|
|
194
|
+
| 'right middle'
|
|
195
|
+
| 'right top'
|
|
196
|
+
| 'top center'
|
|
197
|
+
| 'top left'
|
|
198
|
+
| 'top right';
|
|
199
|
+
dialogWidth?: number;
|
|
200
|
+
footer?: ComponentType<any>;
|
|
201
|
+
header?: ComponentType<any>;
|
|
202
|
+
heading?: string;
|
|
203
|
+
headingAfterElement?: ReactNode;
|
|
204
|
+
image?: string;
|
|
205
|
+
pulse?: boolean;
|
|
206
|
+
target?: string;
|
|
207
|
+
targetBgColor?: string;
|
|
208
|
+
targetNode?: HTMLElement;
|
|
209
|
+
targetOnClick?: (eventData: { event: MouseEvent_2<HTMLElement>; target?: string }) => void;
|
|
210
|
+
targetRadius?: number;
|
|
211
|
+
targetReplacement?: ComponentType<any>;
|
|
212
|
+
testId?: string;
|
|
223
213
|
}
|
|
224
214
|
|
|
225
215
|
// @public
|
|
226
216
|
export const SpotlightPulse: ({
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
217
|
+
children,
|
|
218
|
+
pulse,
|
|
219
|
+
testId,
|
|
220
|
+
...props
|
|
231
221
|
}: TargetProps) => jsx.JSX.Element;
|
|
232
222
|
|
|
233
223
|
// @public
|
|
234
|
-
export const SpotlightTarget: ({
|
|
235
|
-
children,
|
|
236
|
-
name,
|
|
237
|
-
}: SpotlightTargetProps) => JSX.Element;
|
|
224
|
+
export const SpotlightTarget: ({ children, name }: SpotlightTargetProps) => JSX.Element;
|
|
238
225
|
|
|
239
226
|
// @public (undocumented)
|
|
240
227
|
interface SpotlightTargetProps {
|
|
241
|
-
|
|
242
|
-
|
|
228
|
+
children: ReactNode;
|
|
229
|
+
name: string;
|
|
243
230
|
}
|
|
244
231
|
|
|
245
232
|
// @public
|
|
246
|
-
export class SpotlightTransition extends React_2.Component<
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
state: {
|
|
263
|
-
currentChildren: undefined;
|
|
264
|
-
};
|
|
233
|
+
export class SpotlightTransition extends React_2.Component<SpotlightTransitionProps, State> {
|
|
234
|
+
// (undocumented)
|
|
235
|
+
static getDerivedStateFromProps(
|
|
236
|
+
props: SpotlightTransitionProps,
|
|
237
|
+
state: State,
|
|
238
|
+
): {
|
|
239
|
+
currentChildren: React_2.ReactNode;
|
|
240
|
+
};
|
|
241
|
+
// (undocumented)
|
|
242
|
+
onExited: () => void;
|
|
243
|
+
// (undocumented)
|
|
244
|
+
render(): JSX.Element;
|
|
245
|
+
// (undocumented)
|
|
246
|
+
state: {
|
|
247
|
+
currentChildren: undefined;
|
|
248
|
+
};
|
|
265
249
|
}
|
|
266
250
|
|
|
267
251
|
// @public (undocumented)
|
|
268
252
|
interface SpotlightTransitionProps {
|
|
269
|
-
|
|
253
|
+
children?: ReactNode;
|
|
270
254
|
}
|
|
271
255
|
|
|
272
256
|
// @public (undocumented)
|
|
273
257
|
interface State {
|
|
274
|
-
|
|
275
|
-
|
|
258
|
+
// (undocumented)
|
|
259
|
+
currentChildren: ReactNode;
|
|
276
260
|
}
|
|
277
261
|
|
|
278
262
|
// @public (undocumented)
|
|
279
263
|
type TargetProps = Omit<BaseProps, 'css'> & {
|
|
280
|
-
|
|
281
|
-
|
|
264
|
+
pulse?: boolean;
|
|
265
|
+
testId?: string;
|
|
282
266
|
};
|
|
283
267
|
|
|
284
268
|
// @public
|
|
285
269
|
export function useSpotlight(): {
|
|
286
|
-
|
|
270
|
+
isTargetRendered: (target: string) => boolean;
|
|
287
271
|
};
|
|
288
272
|
|
|
289
273
|
// (No @packageDocumentation comment for this package)
|
|
@@ -297,8 +281,8 @@ export function useSpotlight(): {
|
|
|
297
281
|
|
|
298
282
|
```json
|
|
299
283
|
{
|
|
300
|
-
|
|
301
|
-
|
|
284
|
+
"react": "^16.8.0",
|
|
285
|
+
"react-dom": "^16.8.0"
|
|
302
286
|
}
|
|
303
287
|
```
|
|
304
288
|
|