@atlaskit/onboarding 12.3.0 → 12.3.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.
- package/CHANGELOG.md +12 -0
- package/dist/types/components/animation.d.ts +2 -2
- package/dist/types/components/clone.d.ts +2 -2
- package/dist/types/components/node-resolver-spotlight-inner.d.ts +2 -2
- package/dist/types/components/spotlight-dialog.d.ts +2 -2
- package/dist/types/components/spotlight-inner.d.ts +1 -1
- package/dist/types/components/spotlight-manager.d.ts +1 -1
- package/dist/types/components/spotlight-target.d.ts +2 -2
- package/dist/types/components/spotlight-transition.d.ts +1 -1
- package/dist/types/components/spotlight.d.ts +2 -2
- package/dist/types-ts4.5/components/animation.d.ts +2 -2
- package/dist/types-ts4.5/components/clone.d.ts +2 -2
- package/dist/types-ts4.5/components/node-resolver-spotlight-inner.d.ts +2 -2
- package/dist/types-ts4.5/components/spotlight-dialog.d.ts +2 -2
- package/dist/types-ts4.5/components/spotlight-inner.d.ts +1 -1
- package/dist/types-ts4.5/components/spotlight-manager.d.ts +1 -1
- package/dist/types-ts4.5/components/spotlight-target.d.ts +2 -2
- package/dist/types-ts4.5/components/spotlight-transition.d.ts +1 -1
- package/dist/types-ts4.5/components/spotlight.d.ts +2 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
2
|
interface FadeProps {
|
|
3
3
|
hasEntered: boolean;
|
|
4
4
|
children: (animationStyles: Record<string, any>) => ReactNode;
|
|
@@ -11,5 +11,5 @@ interface FadeProps {
|
|
|
11
11
|
*
|
|
12
12
|
* @internal
|
|
13
13
|
*/
|
|
14
|
-
export declare const Fade: ({ hasEntered, children, onExited }: FadeProps) => JSX.Element;
|
|
14
|
+
export declare const Fade: ({ hasEntered, children, onExited }: FadeProps) => React.JSX.Element;
|
|
15
15
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type MouseEvent } from 'react';
|
|
1
|
+
import React, { type MouseEvent } from 'react';
|
|
2
2
|
export interface CloneProps {
|
|
3
3
|
/**
|
|
4
4
|
* Whether to display a pulse animation around the spotlighted element.
|
|
@@ -50,5 +50,5 @@ export interface CloneProps {
|
|
|
50
50
|
*
|
|
51
51
|
* @internal
|
|
52
52
|
*/
|
|
53
|
-
declare const Clone: (props: CloneProps) => JSX.Element;
|
|
53
|
+
declare const Clone: (props: CloneProps) => React.JSX.Element;
|
|
54
54
|
export default Clone;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ReactElement } from 'react';
|
|
1
|
+
import React, { type ReactElement } from 'react';
|
|
2
2
|
interface NodeResolverSpotlightInnerProps {
|
|
3
3
|
hasNodeResolver: boolean;
|
|
4
4
|
innerRef: (element: HTMLElement | null) => void;
|
|
@@ -14,5 +14,5 @@ interface NodeResolverSpotlightInnerProps {
|
|
|
14
14
|
* @param {(instance: HTMLDivElement) => void} props.innerRef - A ref callback to get the instance of the HTMLDivElement.
|
|
15
15
|
* @returns {ReactElement} The children wrapped with NodeResolver if hasNodeResolver is true, wrape the children in a div setting innerRef with ref to the div.
|
|
16
16
|
*/
|
|
17
|
-
declare const NodeResolverSpotlightInner: ({ hasNodeResolver, children, innerRef, }: NodeResolverSpotlightInnerProps) => JSX.Element;
|
|
17
|
+
declare const NodeResolverSpotlightInner: ({ hasNodeResolver, children, innerRef, }: NodeResolverSpotlightInnerProps) => React.JSX.Element;
|
|
18
18
|
export default NodeResolverSpotlightInner;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, type ComponentType, type ReactNode } from 'react';
|
|
1
|
+
import React, { Component, type ComponentType, type ReactNode } from 'react';
|
|
2
2
|
import { type Actions } from '../types';
|
|
3
3
|
export interface SpotlightDialogProps {
|
|
4
4
|
/**
|
|
@@ -85,6 +85,6 @@ declare class SpotlightDialogComponent extends Component<SpotlightDialogProps, S
|
|
|
85
85
|
private focusLockTimeoutId;
|
|
86
86
|
componentDidMount(): void;
|
|
87
87
|
componentWillUnmount(): void;
|
|
88
|
-
render(): JSX.Element;
|
|
88
|
+
render(): React.JSX.Element;
|
|
89
89
|
}
|
|
90
90
|
export default SpotlightDialogComponent;
|
|
@@ -53,6 +53,6 @@ declare class SpotlightInner extends React.Component<SpotlightInnerProps, State>
|
|
|
53
53
|
componentDidMount(): void;
|
|
54
54
|
componentWillUnmount(): void;
|
|
55
55
|
getTargetNodeStyle: (box: ElementBoundingBox) => {};
|
|
56
|
-
render(): JSX.Element;
|
|
56
|
+
render(): React.JSX.Element;
|
|
57
57
|
}
|
|
58
58
|
export default SpotlightInner;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
2
|
import { type TargetRef } from './spotlight-manager';
|
|
3
3
|
type RenderChildrenFunction = (props: {
|
|
4
4
|
/**
|
|
@@ -41,5 +41,5 @@ interface SpotlightTargetProps {
|
|
|
41
41
|
* - [Code](https://atlassian.design/components/onboarding/code)
|
|
42
42
|
* - [Usage](https://atlassian.design/components/onboarding/usage)
|
|
43
43
|
*/
|
|
44
|
-
declare const SpotlightTarget: ({ children, name }: SpotlightTargetProps) => JSX.Element;
|
|
44
|
+
declare const SpotlightTarget: ({ children, name }: SpotlightTargetProps) => React.JSX.Element;
|
|
45
45
|
export default SpotlightTarget;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type SpotlightProps } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* __Spotlight__
|
|
@@ -9,5 +9,5 @@ import { type SpotlightProps } from '../types';
|
|
|
9
9
|
* - [Code](https://atlassian.design/components/onboarding/code)
|
|
10
10
|
* - [Usage](https://atlassian.design/components/onboarding/usage)
|
|
11
11
|
*/
|
|
12
|
-
declare const Spotlight: ({ actions, actionsBeforeElement, children, dialogPlacement, dialogWidth, footer, header, heading, headingAfterElement, image, label, pulse, scrollPositionBlock, shouldWatchTarget, target, targetBgColor, targetNode, targetOnClick, targetRadius, targetReplacement, testId, titleId, ...rest }: SpotlightProps) => JSX.Element;
|
|
12
|
+
declare const Spotlight: ({ actions, actionsBeforeElement, children, dialogPlacement, dialogWidth, footer, header, heading, headingAfterElement, image, label, pulse, scrollPositionBlock, shouldWatchTarget, target, targetBgColor, targetNode, targetOnClick, targetRadius, targetReplacement, testId, titleId, ...rest }: SpotlightProps) => React.JSX.Element;
|
|
13
13
|
export default Spotlight;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
2
|
interface FadeProps {
|
|
3
3
|
hasEntered: boolean;
|
|
4
4
|
children: (animationStyles: Record<string, any>) => ReactNode;
|
|
@@ -11,5 +11,5 @@ interface FadeProps {
|
|
|
11
11
|
*
|
|
12
12
|
* @internal
|
|
13
13
|
*/
|
|
14
|
-
export declare const Fade: ({ hasEntered, children, onExited }: FadeProps) => JSX.Element;
|
|
14
|
+
export declare const Fade: ({ hasEntered, children, onExited }: FadeProps) => React.JSX.Element;
|
|
15
15
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type MouseEvent } from 'react';
|
|
1
|
+
import React, { type MouseEvent } from 'react';
|
|
2
2
|
export interface CloneProps {
|
|
3
3
|
/**
|
|
4
4
|
* Whether to display a pulse animation around the spotlighted element.
|
|
@@ -50,5 +50,5 @@ export interface CloneProps {
|
|
|
50
50
|
*
|
|
51
51
|
* @internal
|
|
52
52
|
*/
|
|
53
|
-
declare const Clone: (props: CloneProps) => JSX.Element;
|
|
53
|
+
declare const Clone: (props: CloneProps) => React.JSX.Element;
|
|
54
54
|
export default Clone;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ReactElement } from 'react';
|
|
1
|
+
import React, { type ReactElement } from 'react';
|
|
2
2
|
interface NodeResolverSpotlightInnerProps {
|
|
3
3
|
hasNodeResolver: boolean;
|
|
4
4
|
innerRef: (element: HTMLElement | null) => void;
|
|
@@ -14,5 +14,5 @@ interface NodeResolverSpotlightInnerProps {
|
|
|
14
14
|
* @param {(instance: HTMLDivElement) => void} props.innerRef - A ref callback to get the instance of the HTMLDivElement.
|
|
15
15
|
* @returns {ReactElement} The children wrapped with NodeResolver if hasNodeResolver is true, wrape the children in a div setting innerRef with ref to the div.
|
|
16
16
|
*/
|
|
17
|
-
declare const NodeResolverSpotlightInner: ({ hasNodeResolver, children, innerRef, }: NodeResolverSpotlightInnerProps) => JSX.Element;
|
|
17
|
+
declare const NodeResolverSpotlightInner: ({ hasNodeResolver, children, innerRef, }: NodeResolverSpotlightInnerProps) => React.JSX.Element;
|
|
18
18
|
export default NodeResolverSpotlightInner;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, type ComponentType, type ReactNode } from 'react';
|
|
1
|
+
import React, { Component, type ComponentType, type ReactNode } from 'react';
|
|
2
2
|
import { type Actions } from '../types';
|
|
3
3
|
export interface SpotlightDialogProps {
|
|
4
4
|
/**
|
|
@@ -85,6 +85,6 @@ declare class SpotlightDialogComponent extends Component<SpotlightDialogProps, S
|
|
|
85
85
|
private focusLockTimeoutId;
|
|
86
86
|
componentDidMount(): void;
|
|
87
87
|
componentWillUnmount(): void;
|
|
88
|
-
render(): JSX.Element;
|
|
88
|
+
render(): React.JSX.Element;
|
|
89
89
|
}
|
|
90
90
|
export default SpotlightDialogComponent;
|
|
@@ -53,6 +53,6 @@ declare class SpotlightInner extends React.Component<SpotlightInnerProps, State>
|
|
|
53
53
|
componentDidMount(): void;
|
|
54
54
|
componentWillUnmount(): void;
|
|
55
55
|
getTargetNodeStyle: (box: ElementBoundingBox) => {};
|
|
56
|
-
render(): JSX.Element;
|
|
56
|
+
render(): React.JSX.Element;
|
|
57
57
|
}
|
|
58
58
|
export default SpotlightInner;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
2
|
import { type TargetRef } from './spotlight-manager';
|
|
3
3
|
type RenderChildrenFunction = (props: {
|
|
4
4
|
/**
|
|
@@ -41,5 +41,5 @@ interface SpotlightTargetProps {
|
|
|
41
41
|
* - [Code](https://atlassian.design/components/onboarding/code)
|
|
42
42
|
* - [Usage](https://atlassian.design/components/onboarding/usage)
|
|
43
43
|
*/
|
|
44
|
-
declare const SpotlightTarget: ({ children, name }: SpotlightTargetProps) => JSX.Element;
|
|
44
|
+
declare const SpotlightTarget: ({ children, name }: SpotlightTargetProps) => React.JSX.Element;
|
|
45
45
|
export default SpotlightTarget;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type SpotlightProps } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* __Spotlight__
|
|
@@ -9,5 +9,5 @@ import { type SpotlightProps } from '../types';
|
|
|
9
9
|
* - [Code](https://atlassian.design/components/onboarding/code)
|
|
10
10
|
* - [Usage](https://atlassian.design/components/onboarding/usage)
|
|
11
11
|
*/
|
|
12
|
-
declare const Spotlight: ({ actions, actionsBeforeElement, children, dialogPlacement, dialogWidth, footer, header, heading, headingAfterElement, image, label, pulse, scrollPositionBlock, shouldWatchTarget, target, targetBgColor, targetNode, targetOnClick, targetRadius, targetReplacement, testId, titleId, ...rest }: SpotlightProps) => JSX.Element;
|
|
12
|
+
declare const Spotlight: ({ actions, actionsBeforeElement, children, dialogPlacement, dialogWidth, footer, header, heading, headingAfterElement, image, label, pulse, scrollPositionBlock, shouldWatchTarget, target, targetBgColor, targetNode, targetOnClick, targetRadius, targetReplacement, testId, titleId, ...rest }: SpotlightProps) => React.JSX.Element;
|
|
13
13
|
export default Spotlight;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/onboarding",
|
|
3
|
-
"version": "12.3.
|
|
3
|
+
"version": "12.3.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/"
|
|
@@ -38,17 +38,17 @@
|
|
|
38
38
|
"runReact18": true
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@atlaskit/button": "^20.
|
|
41
|
+
"@atlaskit/button": "^20.5.0",
|
|
42
42
|
"@atlaskit/ds-lib": "^3.5.0",
|
|
43
43
|
"@atlaskit/heading": "^4.1.0",
|
|
44
44
|
"@atlaskit/layering": "^1.1.0",
|
|
45
45
|
"@atlaskit/modal-dialog": "^12.20.0",
|
|
46
46
|
"@atlaskit/motion": "^1.10.0",
|
|
47
|
-
"@atlaskit/platform-feature-flags": "^0.
|
|
47
|
+
"@atlaskit/platform-feature-flags": "^1.0.0",
|
|
48
48
|
"@atlaskit/popper": "^6.4.0",
|
|
49
49
|
"@atlaskit/portal": "^4.11.0",
|
|
50
50
|
"@atlaskit/primitives": "^13.4.0",
|
|
51
|
-
"@atlaskit/theme": "^
|
|
51
|
+
"@atlaskit/theme": "^15.0.0",
|
|
52
52
|
"@atlaskit/tokens": "^3.3.0",
|
|
53
53
|
"@babel/runtime": "^7.0.0",
|
|
54
54
|
"@emotion/react": "^11.7.1",
|