@atlaskit/onboarding 10.6.1 → 10.6.2

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.
Files changed (30) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/components/spotlight-dialog.js +1 -1
  3. package/dist/cjs/version.json +1 -1
  4. package/dist/es2019/components/spotlight-dialog.js +1 -1
  5. package/dist/es2019/version.json +1 -1
  6. package/dist/esm/components/spotlight-dialog.js +1 -1
  7. package/dist/esm/version.json +1 -1
  8. package/package.json +3 -11
  9. package/report.api.md +89 -262
  10. package/dist/types-ts4.0/components/animation.d.ts +0 -15
  11. package/dist/types-ts4.0/components/clone.d.ts +0 -50
  12. package/dist/types-ts4.0/components/index.d.ts +0 -9
  13. package/dist/types-ts4.0/components/modal.d.ts +0 -50
  14. package/dist/types-ts4.0/components/spotlight-card.d.ts +0 -81
  15. package/dist/types-ts4.0/components/spotlight-dialog.d.ts +0 -61
  16. package/dist/types-ts4.0/components/spotlight-inner.d.ts +0 -54
  17. package/dist/types-ts4.0/components/spotlight-manager.d.ts +0 -66
  18. package/dist/types-ts4.0/components/spotlight-target.d.ts +0 -22
  19. package/dist/types-ts4.0/components/spotlight-transition.d.ts +0 -43
  20. package/dist/types-ts4.0/components/spotlight.d.ts +0 -96
  21. package/dist/types-ts4.0/components/theme.d.ts +0 -10
  22. package/dist/types-ts4.0/components/use-spotlight.d.ts +0 -6
  23. package/dist/types-ts4.0/components/value-changed.d.ts +0 -11
  24. package/dist/types-ts4.0/index.d.ts +0 -14
  25. package/dist/types-ts4.0/styled/blanket.d.ts +0 -18
  26. package/dist/types-ts4.0/styled/dialog.d.ts +0 -25
  27. package/dist/types-ts4.0/styled/modal.d.ts +0 -36
  28. package/dist/types-ts4.0/styled/target.d.ts +0 -40
  29. package/dist/types-ts4.0/types.d.ts +0 -8
  30. package/dist/types-ts4.0/utils/use-element-box.d.ts +0 -23
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/onboarding
2
2
 
3
+ ## 10.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 10.6.1
4
10
 
5
11
  ### Patch Changes
@@ -50,7 +50,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
50
50
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
51
51
 
52
52
  var packageName = "@atlaskit/onboarding";
53
- var packageVersion = "10.6.1";
53
+ var packageVersion = "10.6.2";
54
54
 
55
55
  var SpotlightDialog = /*#__PURE__*/function (_Component) {
56
56
  (0, _inherits2.default)(SpotlightDialog, _Component);
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/onboarding",
3
- "version": "10.6.1",
3
+ "version": "10.6.2",
4
4
  "sideEffects": false
5
5
  }
@@ -7,7 +7,7 @@ import { DialogImage } from '../styled/dialog';
7
7
  import SpotlightCard from './spotlight-card';
8
8
  import ValueChanged from './value-changed';
9
9
  const packageName = "@atlaskit/onboarding";
10
- const packageVersion = "10.6.1";
10
+ const packageVersion = "10.6.2";
11
11
 
12
12
  class SpotlightDialog extends Component {
13
13
  constructor(...args) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/onboarding",
3
- "version": "10.6.1",
3
+ "version": "10.6.2",
4
4
  "sideEffects": false
5
5
  }
@@ -22,7 +22,7 @@ import { DialogImage } from '../styled/dialog';
22
22
  import SpotlightCard from './spotlight-card';
23
23
  import ValueChanged from './value-changed';
24
24
  var packageName = "@atlaskit/onboarding";
25
- var packageVersion = "10.6.1";
25
+ var packageVersion = "10.6.2";
26
26
 
27
27
  var SpotlightDialog = /*#__PURE__*/function (_Component) {
28
28
  _inherits(SpotlightDialog, _Component);
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/onboarding",
3
- "version": "10.6.1",
3
+ "version": "10.6.2",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/onboarding",
3
- "version": "10.6.1",
3
+ "version": "10.6.2",
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,14 +12,6 @@
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
- "dist/types-ts4.0/index.d.ts"
20
- ]
21
- }
22
- },
23
15
  "sideEffects": false,
24
16
  "atlaskit:src": "src/index.tsx",
25
17
  "homepage": "https://atlassian.design/components/onboarding/",
@@ -35,9 +27,9 @@
35
27
  },
36
28
  "dependencies": {
37
29
  "@atlaskit/analytics-next": "^8.0.0",
38
- "@atlaskit/button": "^16.3.0",
30
+ "@atlaskit/button": "^16.4.0",
39
31
  "@atlaskit/ds-lib": "^2.1.0",
40
- "@atlaskit/heading": "^0.1.14",
32
+ "@atlaskit/heading": "^1.0.0",
41
33
  "@atlaskit/modal-dialog": "^12.4.0",
42
34
  "@atlaskit/popper": "^5.0.0",
43
35
  "@atlaskit/portal": "^4.0.0",
package/report.api.md CHANGED
@@ -1,6 +1,10 @@
1
- ## API Report File for "@atlaskit/onboarding".
1
+ ## API Report File for "@atlaskit/onboarding"
2
2
 
3
- > Do not edit this file. This report is auto-generated by [API Extractor](https://api-extractor.com/).
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ <!--
6
+ Generated API Report version: 2.0
7
+ -->
4
8
 
5
9
  [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
6
10
 
@@ -23,192 +27,101 @@ import { ReactNode } from 'react';
23
27
  import { Ref } from 'react';
24
28
  import { ThemeProp } from '@atlaskit/theme/components';
25
29
 
26
- declare interface Action extends Omit<CustomThemeButtonProps, 'children'> {
30
+ // @public (undocumented)
31
+ interface Action extends Omit<CustomThemeButtonProps, 'children'> {
32
+ // (undocumented)
27
33
  key?: string;
34
+ // (undocumented)
28
35
  text?: ReactNode;
29
36
  }
30
37
 
31
- declare type Actions = Action[];
38
+ // @public (undocumented)
39
+ type Actions = Action[];
32
40
 
33
- declare type BaseProps = React.HTMLAttributes<HTMLDivElement> & {
41
+ // @public (undocumented)
42
+ type BaseProps = React.HTMLAttributes<HTMLDivElement> & {
34
43
  bgColor?: string;
35
44
  radius?: number;
36
45
  className?: string;
37
46
  testId?: string;
38
47
  };
39
48
 
40
- /**
41
- * @deprecated
42
- */
43
- declare interface CardTokens {
44
- /**
45
- * @deprecated
46
- */
49
+ // @public @deprecated (undocumented)
50
+ interface CardTokens {
51
+ // @deprecated (undocumented)
47
52
  container: Record<string, string | undefined>;
48
53
  }
49
54
 
50
- /**
51
- * __Benefits modal__
52
- *
53
- * A benefits modal explains the benefits of a significant new feature or experience change.
54
- *
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)
58
- */
59
- export declare class Modal extends Component<ModalProps> {
60
- headerComponent: (
61
- props: ModalProps,
62
- ) => ElementType<ModalHeaderProps> | (() => jsx.JSX.Element);
55
+ // @public
56
+ export class Modal extends Component<ModalProps> {
57
+ // (undocumented)
63
58
  footerComponent: (
64
59
  props: ModalProps,
65
60
  ) => ElementType<ModalFooterProps> | (() => jsx.JSX.Element | null);
61
+ // (undocumented)
62
+ headerComponent: (
63
+ props: ModalProps,
64
+ ) => ElementType<ModalHeaderProps> | (() => jsx.JSX.Element);
65
+ // (undocumented)
66
66
  render(): jsx.JSX.Element;
67
67
  }
68
68
 
69
- /**
70
- * @deprecated
71
- * Custom button themes are deprecated and will be removed in the future.
72
- */
73
- export declare const modalButtonTheme: (
69
+ // @public @deprecated (undocumented)
70
+ export const modalButtonTheme: (
74
71
  current: any,
75
72
  themeProps: Record<string, any>,
76
73
  ) => any;
77
74
 
78
- declare type ModalProps = {
79
- /**
80
- * Buttons to render in the footer
81
- */
75
+ // @public (undocumented)
76
+ type ModalProps = {
82
77
  actions?: Actions;
83
- /**
84
- * The elements rendered in the modal
85
- */
86
78
  children: ReactNode;
87
- /**
88
- * Path to the the your image
89
- */
90
79
  image?: string;
91
- /**
92
- * Optional element rendered above the body
93
- */
94
80
  header?: ElementType<ModalHeaderProps>;
95
- /**
96
- * Optional element rendered below the body
97
- */
98
81
  footer?: ElementType<ModalFooterProps>;
99
- /**
100
- * Heading text rendered above the body
101
- */
102
82
  heading?: string;
103
- /**
104
- * Boolean prop to confirm if primary button in the footer should be shown on the right
105
- */
106
83
  experimental_shouldShowPrimaryButtonOnRight?: boolean;
107
84
  };
108
85
 
109
86
  export { ModalTransition };
110
87
 
111
- /**
112
- * __Spotlight__
113
- *
114
- * An onboarding spotlight introduces new features to users through focused messages or multi-step tours.
115
- *
116
- * - [Examples](https://atlassian.design/components/onboarding/examples)
117
- * - [Code](https://atlassian.design/components/onboarding/code)
118
- * - [Usage](https://atlassian.design/components/onboarding/usage)
119
- */
120
- export declare const Spotlight: React_2.FC<SpotlightProps>;
88
+ // @public
89
+ export const Spotlight: React_2.FC<SpotlightProps>;
121
90
 
122
- /**
123
- * @deprecated
124
- * Custom button themes are deprecated and will be removed in the future.
125
- */
126
- export declare const spotlightButtonTheme: (
91
+ // @public @deprecated (undocumented)
92
+ export const spotlightButtonTheme: (
127
93
  current: any,
128
94
  themeProps: Record<string, any>,
129
95
  ) => any;
130
96
 
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
- */
140
- export declare const SpotlightCard: React_2.ForwardRefExoticComponent<
97
+ // @public
98
+ export const SpotlightCard: React_2.ForwardRefExoticComponent<
141
99
  SpotlightCardProps & React_2.RefAttributes<HTMLDivElement>
142
100
  >;
143
101
 
144
- declare interface SpotlightCardProps {
145
- /**
146
- * Buttons to render in the footer
147
- */
102
+ // @public (undocumented)
103
+ interface SpotlightCardProps {
148
104
  actions?: Actions;
149
- /**
150
- * An optional element rendered to the left of the footer actions
151
- */
152
105
  actionsBeforeElement?: ReactNode;
153
- /**
154
- * The content of the card
155
- */
156
106
  children?: ReactNode;
157
- /**
158
- * The container elements rendered by the component
159
- */
160
107
  components?: {
161
108
  Header?: ComponentType<any>;
162
109
  Footer?: ComponentType<any>;
163
110
  };
164
- /**
165
- * The heading to be rendered above the body
166
- */
167
111
  heading?: ReactNode;
168
- /**
169
- * An optional element rendered to the right of the heading
170
- */
171
112
  headingAfterElement?: ReactNode;
172
- /**
173
- * The image src to render above the heading
174
- */
175
113
  image?: string | ReactNode;
176
- /**
177
- * Removes elevation styles if set
178
- */
114
+ // @deprecated (undocumented)
115
+ innerRef?: Ref<HTMLDivElement> | null;
179
116
  isFlat?: boolean;
180
- /**
181
- * @deprecated
182
- * Theme prop is deprecated and will be removed in the future.
183
- */
117
+ testId?: string;
118
+ // @deprecated (undocumented)
184
119
  theme?: ThemeProp<CardTokens, {}>;
185
- /**
186
- * Width of the card in pixels.
187
- */
188
120
  width?: number;
189
- /**
190
- * @deprecated
191
- * Use `ref` instead.
192
- */
193
- innerRef?: Ref<HTMLDivElement> | null;
194
- /**
195
- * A `testId` prop is provided for specified elements,
196
- * which is a unique string that appears as a data attribute `data-testid` in the rendered code,
197
- * serving as a hook for automated tests.
198
- */
199
- testId?: string;
200
121
  }
201
122
 
202
- /**
203
- * __Spotlight manager__
204
- *
205
- * A spotlight manager manages the visibility of spotlights used to introduce new features to users through focused messages or multi-step tours.
206
- *
207
- * - [Examples](https://atlassian.design/components/onboarding/examples)
208
- * - [Code](https://atlassian.design/components/onboarding/code)
209
- * - [Usage](https://atlassian.design/components/onboarding/usage)
210
- */
211
- export declare class SpotlightManager extends PureComponent<
123
+ // @public
124
+ export class SpotlightManager extends PureComponent<
212
125
  SpotlightManagerProps,
213
126
  {
214
127
  spotlightCount: number;
@@ -217,17 +130,13 @@ export declare class SpotlightManager extends PureComponent<
217
130
  };
218
131
  }
219
132
  > {
133
+ // (undocumented)
134
+ componentDidMount(): void;
135
+ // (undocumented)
220
136
  static defaultProps: {
221
137
  blanketIsTinted: boolean;
222
138
  };
223
- componentDidMount(): void;
224
- state: {
225
- spotlightCount: number;
226
- targets: {};
227
- };
228
- targetRef: (name: string) => (element: HTMLElement | void) => void;
229
- spotlightOpen: () => void;
230
- spotlightClose: () => void;
139
+ // (undocumented)
231
140
  getStateProviderValue: MemoizedFn<
232
141
  (
233
142
  this: any,
@@ -238,41 +147,34 @@ export declare class SpotlightManager extends PureComponent<
238
147
  targets: any;
239
148
  }
240
149
  >;
150
+ // (undocumented)
241
151
  render(): JSX.Element;
152
+ // (undocumented)
153
+ spotlightClose: () => void;
154
+ // (undocumented)
155
+ spotlightOpen: () => void;
156
+ // (undocumented)
157
+ state: {
158
+ spotlightCount: number;
159
+ targets: {};
160
+ };
161
+ // (undocumented)
162
+ targetRef: (name: string) => (element: HTMLElement | void) => void;
242
163
  }
243
164
 
244
- declare interface SpotlightManagerProps {
245
- /**
246
- * Boolean prop for toggling blanket transparency
247
- */
165
+ // @public (undocumented)
166
+ interface SpotlightManagerProps {
248
167
  blanketIsTinted?: boolean;
249
- /**
250
- * Typically the app, or a section of the app
251
- */
252
168
  children: ReactNode;
253
- /**
254
- * @deprecated
255
- * Component is deprecated and will be removed in the future.
256
- */
169
+ // @deprecated (undocumented)
257
170
  component?: ElementType;
258
171
  }
259
172
 
260
- declare interface SpotlightProps {
261
- /**
262
- * Buttons to render in the footer
263
- */
173
+ // @public (undocumented)
174
+ interface SpotlightProps {
264
175
  actions?: Actions;
265
- /**
266
- * An optional node to be rendered beside the footer actions
267
- */
268
176
  actionsBeforeElement?: ReactNode;
269
- /**
270
- * The elements rendered in the modal
271
- */
272
177
  children?: ReactNode;
273
- /**
274
- * Where the dialog should appear, relative to the contents of the children.
275
- */
276
178
  dialogPlacement?:
277
179
  | 'top left'
278
180
  | 'top center'
@@ -286,155 +188,80 @@ declare interface SpotlightProps {
286
188
  | 'left top'
287
189
  | 'left middle'
288
190
  | 'left bottom';
289
- /**
290
- * The width of the dialog in pixels. Min 160 - Max 600
291
- */
292
191
  dialogWidth?: number;
293
- /**
294
- * Optional element rendered below the body
295
- */
296
192
  footer?: ComponentType<any>;
297
- /**
298
- * Optional element rendered above the body
299
- */
300
193
  header?: ComponentType<any>;
301
- /**
302
- * Heading text rendered above the body
303
- */
304
194
  heading?: string;
305
- /**
306
- * An optional element rendered to the right of the heading
307
- */
308
195
  headingAfterElement?: ReactNode;
309
- /**
310
- * Path to the the your image
311
- */
312
196
  image?: string;
313
- /**
314
- * Whether or not to display a pulse animation around the spotlighted element
315
- */
316
197
  pulse?: boolean;
317
- /**
318
- * The name of the SpotlightTarget
319
- */
320
198
  target?: string;
321
- /**
322
- * The spotlight target node
323
- */
324
- targetNode?: HTMLElement;
325
- /**
326
- * The background color of the element being highlighted
327
- */
328
199
  targetBgColor?: string;
329
- /**
330
- * Function to fire when a user clicks on the cloned target
331
- */
200
+ targetNode?: HTMLElement;
332
201
  targetOnClick?: (eventData: {
333
202
  event: MouseEvent_2<HTMLElement>;
334
203
  target?: string;
335
204
  }) => void;
336
- /**
337
- * The border-radius of the element being highlighted
338
- */
339
205
  targetRadius?: number;
340
- /**
341
- * Alternative element to render than the wrapped target
342
- */
343
206
  targetReplacement?: ComponentType<any>;
344
- /**
345
- This prop is a unique string that appears as an attribute `data-testid` in the rendered HTML output serving as a hook for automated tests.
346
- As this component is composed of multiple components we use this `testId` as a prefix:
347
-
348
- - `"${testId}--dialog"` to identify the spotlight dialog
349
- - `"${testId}--target"` to identify the spotlight target clone
350
-
351
- Defaults to `"spotlight"`.
352
- */
353
207
  testId?: string;
354
208
  }
355
209
 
356
- /**
357
- * __Spotlight pulse__
358
- *
359
- * A spotlight pulse draws attention to a new feature.
360
- *
361
- * - [Examples](https://atlassian.design/components/onboarding/examples)
362
- * - [Code](https://atlassian.design/components/onboarding/code)
363
- * - [Usage](https://atlassian.design/components/onboarding/usage)
364
- */
365
- export declare const SpotlightPulse: React.FC<TargetProps>;
210
+ // @public
211
+ export const SpotlightPulse: React.FC<TargetProps>;
366
212
 
367
- /**
368
- * __Spotlight target__
369
- *
370
- * A spotlight target marks a component to be used for introducing new features to users through focused messages or multi-step tours.
371
- *
372
- * - [Examples](https://atlassian.design/components/onboarding/examples)
373
- * - [Code](https://atlassian.design/components/onboarding/code)
374
- * - [Usage](https://atlassian.design/components/onboarding/usage)
375
- */
376
- export declare const SpotlightTarget: React_2.FC<SpotlightTargetProps>;
213
+ // @public
214
+ export const SpotlightTarget: React_2.FC<SpotlightTargetProps>;
377
215
 
378
- declare interface SpotlightTargetProps {
379
- /**
380
- * A single child
381
- */
216
+ // @public (undocumented)
217
+ interface SpotlightTargetProps {
382
218
  children: ReactNode;
383
- /**
384
- * The name to reference from Spotlight
385
- */
386
219
  name: string;
387
220
  }
388
221
 
389
- /**
390
- * __Spotlight transition__
391
- *
392
- * A spotlight transition holds onto spotlights so they can fade out when exiting the viewport.
393
- *
394
- * - [Examples](https://atlassian.design/components/onboarding/examples)
395
- * - [Code](https://atlassian.design/components/onboarding/code)
396
- * - [Usage](https://atlassian.design/components/onboarding/usage)
397
- */
398
- export declare class SpotlightTransition extends React_2.Component<
222
+ // @public
223
+ export class SpotlightTransition extends React_2.Component<
399
224
  SpotlightTransitionProps,
400
225
  State
401
226
  > {
227
+ // (undocumented)
402
228
  static getDerivedStateFromProps(
403
229
  props: SpotlightTransitionProps,
404
230
  state: State,
405
231
  ): {
406
232
  currentChildren: React_2.ReactNode;
407
233
  };
234
+ // (undocumented)
235
+ onExited: () => void;
236
+ // (undocumented)
237
+ render(): JSX.Element;
238
+ // (undocumented)
408
239
  state: {
409
240
  currentChildren: undefined;
410
241
  };
411
- onExited: () => void;
412
- render(): JSX.Element;
413
242
  }
414
243
 
415
- declare interface SpotlightTransitionProps {
416
- /**
417
- * Children that are conditionally rendered. The transition happens based
418
- * on the existence or non-existence of children.
419
- */
244
+ // @public (undocumented)
245
+ interface SpotlightTransitionProps {
420
246
  children?: ReactNode;
421
247
  }
422
248
 
423
- declare interface State {
249
+ // @public (undocumented)
250
+ interface State {
251
+ // (undocumented)
424
252
  currentChildren: ReactNode;
425
253
  }
426
254
 
427
- declare type TargetProps = Omit<BaseProps, 'css'> & {
255
+ // @public (undocumented)
256
+ type TargetProps = Omit<BaseProps, 'css'> & {
428
257
  pulse?: boolean;
429
258
  testId?: string;
430
259
  };
431
260
 
432
- /**
433
- * Use spotlight hook returns information about available spotlight targets.
434
- */
435
- export declare function useSpotlight(): {
261
+ // @public
262
+ export function useSpotlight(): {
436
263
  isTargetRendered: (target: string) => boolean;
437
264
  };
438
265
 
439
- export {};
266
+ // (No @packageDocumentation comment for this package)
440
267
  ```
@@ -1,15 +0,0 @@
1
- import { ReactNode } from 'react';
2
- interface FadeProps {
3
- hasEntered: boolean;
4
- children: (animationStyles: Record<string, any>) => ReactNode;
5
- onExited?: () => any;
6
- }
7
- /**
8
- * __Fade__
9
- *
10
- * A fade in animation used for spotlights.
11
- *
12
- * @internal
13
- */
14
- export declare const Fade: ({ hasEntered, children, onExited }: FadeProps) => JSX.Element;
15
- export {};
@@ -1,50 +0,0 @@
1
- import { MouseEvent } from 'react';
2
- export interface CloneProps {
3
- /**
4
- * Whether or not to display a pulse animation around the spotlighted element
5
- */
6
- pulse: boolean;
7
- /**
8
- * An object containing the information used for positioning clone
9
- */
10
- style: Record<string, any>;
11
- /**
12
- * The name of the SpotlightTarget
13
- */
14
- target?: string;
15
- /**
16
- * The spotlight target node
17
- */
18
- targetNode: HTMLElement;
19
- /**
20
- * The background color of the element being highlighted
21
- */
22
- targetBgColor?: string;
23
- /**
24
- * Function to fire when a user clicks on the cloned target
25
- */
26
- targetOnClick?: (eventData: {
27
- event: MouseEvent<HTMLElement>;
28
- target?: string;
29
- }) => void;
30
- /**
31
- * The border-radius of the element being highlighted
32
- */
33
- targetRadius?: number;
34
- /**
35
- * A `testId` prop is provided for specified elements,
36
- * which is a unique string that appears as a data attribute `data-testid` in the rendered code,
37
- * serving as a hook for automated tests.
38
- */
39
- testId?: string;
40
- }
41
- /**
42
- * __Clone__
43
- *
44
- * Used for cloning spotlight targets. The clone is positioned on top of the spotlight target with
45
- * a pulsing animation.
46
- *
47
- * @internal
48
- */
49
- declare const Clone: (props: CloneProps) => JSX.Element;
50
- export default Clone;
@@ -1,9 +0,0 @@
1
- import Modal from './modal';
2
- import Spotlight from './spotlight';
3
- import SpotlightCard from './spotlight-card';
4
- import SpotlightManager from './spotlight-manager';
5
- import SpotlightTarget from './spotlight-target';
6
- import SpotlightTransition from './spotlight-transition';
7
- import useSpotlight from './use-spotlight';
8
- export { spotlightButtonTheme, modalButtonTheme } from './theme';
9
- export { Modal, Spotlight, SpotlightCard, SpotlightManager, SpotlightTarget, SpotlightTransition, useSpotlight, };