@atlaskit/onboarding 14.6.1 → 15.0.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.
Files changed (104) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/cjs/components/spotlight-manager.js +4 -1
  3. package/dist/cjs/components/spotlight-transition.js +1 -0
  4. package/dist/cjs/components/theme.js +4 -3
  5. package/dist/cjs/entry-points/modal-transition.js +13 -0
  6. package/dist/cjs/entry-points/modal.js +13 -0
  7. package/dist/cjs/entry-points/spotlight-card.js +13 -0
  8. package/dist/cjs/entry-points/spotlight-manager.js +32 -0
  9. package/dist/cjs/entry-points/spotlight-target.js +13 -0
  10. package/dist/cjs/entry-points/spotlight-transition.js +20 -0
  11. package/dist/cjs/entry-points/spotlight.js +13 -0
  12. package/dist/cjs/entry-points/target.js +24 -0
  13. package/dist/cjs/entry-points/theme.js +18 -0
  14. package/dist/cjs/entry-points/types.js +1 -0
  15. package/dist/cjs/entry-points/use-spotlight.js +13 -0
  16. package/dist/cjs/styled/dialog.js +2 -0
  17. package/dist/cjs/styled/modal.js +4 -0
  18. package/dist/cjs/styled/target.compiled.css +1 -1
  19. package/dist/cjs/styled/target.js +4 -2
  20. package/dist/es2019/components/index.js +15 -1
  21. package/dist/es2019/components/spotlight-manager.js +3 -1
  22. package/dist/es2019/components/spotlight-transition.js +1 -0
  23. package/dist/es2019/components/theme.js +4 -3
  24. package/dist/es2019/entry-points/modal-transition.js +1 -0
  25. package/dist/es2019/entry-points/modal.js +1 -0
  26. package/dist/es2019/entry-points/spotlight-card.js +1 -0
  27. package/dist/es2019/entry-points/spotlight-manager.js +2 -0
  28. package/dist/es2019/entry-points/spotlight-target.js +1 -0
  29. package/dist/es2019/entry-points/spotlight-transition.js +2 -0
  30. package/dist/es2019/entry-points/spotlight.js +1 -0
  31. package/dist/es2019/entry-points/target.js +1 -0
  32. package/dist/es2019/entry-points/theme.js +1 -0
  33. package/dist/es2019/entry-points/types.js +0 -0
  34. package/dist/es2019/entry-points/use-spotlight.js +1 -0
  35. package/dist/es2019/styled/dialog.js +2 -0
  36. package/dist/es2019/styled/modal.js +4 -0
  37. package/dist/es2019/styled/target.compiled.css +1 -1
  38. package/dist/es2019/styled/target.js +4 -2
  39. package/dist/esm/components/index.js +15 -1
  40. package/dist/esm/components/spotlight-manager.js +3 -1
  41. package/dist/esm/components/spotlight-transition.js +1 -0
  42. package/dist/esm/components/theme.js +4 -3
  43. package/dist/esm/entry-points/modal-transition.js +1 -0
  44. package/dist/esm/entry-points/modal.js +1 -0
  45. package/dist/esm/entry-points/spotlight-card.js +1 -0
  46. package/dist/esm/entry-points/spotlight-manager.js +2 -0
  47. package/dist/esm/entry-points/spotlight-target.js +1 -0
  48. package/dist/esm/entry-points/spotlight-transition.js +2 -0
  49. package/dist/esm/entry-points/spotlight.js +1 -0
  50. package/dist/esm/entry-points/target.js +1 -0
  51. package/dist/esm/entry-points/theme.js +1 -0
  52. package/dist/esm/entry-points/types.js +0 -0
  53. package/dist/esm/entry-points/use-spotlight.js +1 -0
  54. package/dist/esm/styled/dialog.js +2 -0
  55. package/dist/esm/styled/modal.js +4 -0
  56. package/dist/esm/styled/target.compiled.css +1 -1
  57. package/dist/esm/styled/target.js +4 -2
  58. package/dist/types/entry-points/modal-transition.d.ts +1 -0
  59. package/dist/types/entry-points/modal.d.ts +1 -0
  60. package/dist/types/entry-points/spotlight-card.d.ts +1 -0
  61. package/dist/types/entry-points/spotlight-manager.d.ts +3 -0
  62. package/dist/types/entry-points/spotlight-target.d.ts +1 -0
  63. package/dist/types/entry-points/spotlight-transition.d.ts +2 -0
  64. package/dist/types/entry-points/spotlight.d.ts +1 -0
  65. package/dist/types/entry-points/target.d.ts +1 -0
  66. package/dist/types/entry-points/theme.d.ts +1 -0
  67. package/dist/types/entry-points/types.d.ts +1 -0
  68. package/dist/types/entry-points/use-spotlight.d.ts +1 -0
  69. package/modal/package.json +10 -0
  70. package/modal-transition/package.json +10 -0
  71. package/package.json +16 -42
  72. package/spotlight/package.json +10 -0
  73. package/spotlight-card/package.json +10 -0
  74. package/spotlight-manager/package.json +10 -0
  75. package/spotlight-target/package.json +10 -0
  76. package/spotlight-transition/package.json +10 -0
  77. package/target/package.json +10 -0
  78. package/theme/package.json +10 -0
  79. package/types/package.json +4 -11
  80. package/use-spotlight/package.json +10 -0
  81. package/dist/types-ts4.5/components/clone.d.ts +0 -54
  82. package/dist/types-ts4.5/components/index.d.ts +0 -10
  83. package/dist/types-ts4.5/components/modal-transition.d.ts +0 -17
  84. package/dist/types-ts4.5/components/modal.d.ts +0 -54
  85. package/dist/types-ts4.5/components/node-resolver-spotlight-inner.d.ts +0 -18
  86. package/dist/types-ts4.5/components/node-resolver-spotlight-target.d.ts +0 -27
  87. package/dist/types-ts4.5/components/spotlight-card.d.ts +0 -14
  88. package/dist/types-ts4.5/components/spotlight-dialog.d.ts +0 -86
  89. package/dist/types-ts4.5/components/spotlight-inner.d.ts +0 -58
  90. package/dist/types-ts4.5/components/spotlight-manager.d.ts +0 -83
  91. package/dist/types-ts4.5/components/spotlight-target.d.ts +0 -50
  92. package/dist/types-ts4.5/components/spotlight-transition.d.ts +0 -45
  93. package/dist/types-ts4.5/components/spotlight.d.ts +0 -15
  94. package/dist/types-ts4.5/components/theme.d.ts +0 -10
  95. package/dist/types-ts4.5/components/use-spotlight.d.ts +0 -9
  96. package/dist/types-ts4.5/components/value-changed.d.ts +0 -11
  97. package/dist/types-ts4.5/index.d.ts +0 -2
  98. package/dist/types-ts4.5/styled/blanket.d.ts +0 -19
  99. package/dist/types-ts4.5/styled/dialog.d.ts +0 -33
  100. package/dist/types-ts4.5/styled/modal.d.ts +0 -51
  101. package/dist/types-ts4.5/styled/target.d.ts +0 -45
  102. package/dist/types-ts4.5/types.d.ts +0 -173
  103. package/dist/types-ts4.5/utils/use-element-box.d.ts +0 -20
  104. package/dist/types-ts4.5/utils/use-element-observer.d.ts +0 -16
@@ -11,7 +11,7 @@ var spotlightTheme = {
11
11
  default: "var(--ds-background-inverse-subtle, #00000029)",
12
12
  hover: "var(--ds-background-inverse-subtle-hovered, #0000003D)",
13
13
  active: "var(--ds-background-inverse-subtle-pressed, #00000052)",
14
- disabled: "var(--ds-background-disabled, #17171708)",
14
+ disabled: "var(--ds-background-disabled, #0515240F)",
15
15
  selected: "var(--ds-background-inverse-subtle-pressed, #00000052)",
16
16
  focus: "var(--ds-background-inverse-subtle, #00000029)"
17
17
  },
@@ -75,8 +75,8 @@ var modalTheme = {
75
75
  hover: "var(--ds-background-discovery-bold-hovered, #803FA5)",
76
76
  active: "var(--ds-background-discovery-bold-pressed, #673286)",
77
77
  disabled: {
78
- light: "var(--ds-background-disabled, #17171708)",
79
- dark: "var(--ds-background-disabled, #17171708)"
78
+ light: "var(--ds-background-disabled, #0515240F)",
79
+ dark: "var(--ds-background-disabled, #0515240F)"
80
80
  },
81
81
  selected: "var(--ds-background-selected-hovered, #CFE1FD)",
82
82
  focus: "var(--ds-background-discovery-bold-hovered, #803FA5)"
@@ -134,6 +134,7 @@ export var spotlightButtonTheme = function spotlightButtonTheme(current, themePr
134
134
  * @deprecated
135
135
  * Custom button themes are deprecated and will be removed in the future.
136
136
  */
137
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
137
138
  export var modalButtonTheme = function modalButtonTheme(current, themeProps) {
138
139
  var _current2 = current(themeProps),
139
140
  buttonStyles = _current2.buttonStyles,
@@ -0,0 +1 @@
1
+ export { default } from '../components/modal-transition';
@@ -0,0 +1 @@
1
+ export { default } from '../components/modal';
@@ -0,0 +1 @@
1
+ export { default } from '../components/spotlight-card';
@@ -0,0 +1,2 @@
1
+ export { SpotlightConsumer, SpotlightContext, TargetConsumer } from '../components/spotlight-manager';
2
+ export { default } from '../components/spotlight-manager';
@@ -0,0 +1 @@
1
+ export { default } from '../components/spotlight-target';
@@ -0,0 +1,2 @@
1
+ export { SpotlightTransitionConsumer } from '../components/spotlight-transition';
2
+ export { default } from '../components/spotlight-transition';
@@ -0,0 +1 @@
1
+ export { default } from '../components/spotlight';
@@ -0,0 +1 @@
1
+ export { Pulse, TargetInner, TargetOverlay } from '../styled/target';
@@ -0,0 +1 @@
1
+ export { modalButtonTheme, spotlightButtonTheme } from '../components/theme';
File without changes
@@ -0,0 +1 @@
1
+ export { default } from '../components/use-spotlight';
@@ -38,6 +38,7 @@ export var DialogImage = function DialogImage(_ref) {
38
38
  *
39
39
  * @internal
40
40
  */
41
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports, @repo/internal/react/require-jsdoc
41
42
  export var DialogActionItemContainer = function DialogActionItemContainer(_ref2) {
42
43
  var children = _ref2.children;
43
44
  return /*#__PURE__*/React.createElement(Box, {
@@ -52,6 +53,7 @@ export var DialogActionItemContainer = function DialogActionItemContainer(_ref2)
52
53
  *
53
54
  * @internal
54
55
  */
56
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports, @repo/internal/react/require-jsdoc
55
57
  export var DialogActionItem = function DialogActionItem(_ref3) {
56
58
  var children = _ref3.children;
57
59
  return /*#__PURE__*/React.createElement(Box, {
@@ -29,6 +29,7 @@ export var ModalBody = function ModalBody(_ref) {
29
29
  *
30
30
  * @internal
31
31
  */
32
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports, @repo/internal/react/require-jsdoc
32
33
  export var ModalHeading = function ModalHeading(_ref2) {
33
34
  var children = _ref2.children,
34
35
  id = _ref2.id;
@@ -43,6 +44,7 @@ export var ModalHeading = function ModalHeading(_ref2) {
43
44
  *
44
45
  * @internal
45
46
  */
47
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports, @repo/internal/react/require-jsdoc
46
48
  export var ModalImage = function ModalImage(_ref3) {
47
49
  var alt = _ref3.alt,
48
50
  src = _ref3.src;
@@ -58,6 +60,7 @@ export var ModalImage = function ModalImage(_ref3) {
58
60
  *
59
61
  * @internal
60
62
  */
63
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports, @repo/internal/react/require-jsdoc
61
64
  export var ModalActionContainer = function ModalActionContainer(_ref4) {
62
65
  var children = _ref4.children,
63
66
  shouldReverseButtonOrder = _ref4.shouldReverseButtonOrder;
@@ -71,6 +74,7 @@ export var ModalActionContainer = function ModalActionContainer(_ref4) {
71
74
  *
72
75
  * @internal
73
76
  */
77
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports, @repo/internal/react/require-jsdoc
74
78
  export var ModalActionItem = function ModalActionItem(_ref5) {
75
79
  var children = _ref5.children;
76
80
  return /*#__PURE__*/React.createElement(Box, {
@@ -4,7 +4,7 @@
4
4
  ._1e02ze3t{inset-inline-start:var(--ds-space-0,0)}
5
5
  ._1pglmcjr{animation-timing-function:cubic-bezier(.55,.055,.675,.19)}
6
6
  ._4t3i1osq{height:100%}
7
- ._5sagi11n{animation-duration:3s}
7
+ ._5sag19pg{animation-duration:var(--ds-duration-xxlong,3s)}
8
8
  ._j7hq10vn{animation-name:k2lcpkd}
9
9
  ._kqswstnw{position:absolute}
10
10
  ._tip812c5{animation-iteration-count:infinite}
@@ -57,7 +57,7 @@ export var TargetInner = function TargetInner(_ref2) {
57
57
  bgColor: bgColor
58
58
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
59
59
  ,
60
- className: ax([pulse && "", pulse && "_5sagi11n _tip812c5 _j7hq10vn _1pglmcjr _16qs1peg", "_1bumglyw _sedtglyw", className]),
60
+ className: ax([pulse && "", pulse && "_5sag19pg _tip812c5 _j7hq10vn _1pglmcjr _16qs1peg", "_1bumglyw _sedtglyw", className]),
61
61
  radius: radius,
62
62
  testId: testId
63
63
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
@@ -78,6 +78,7 @@ var targetOverlayStyles = null;
78
78
  *
79
79
  * @internal
80
80
  */
81
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports, @repo/internal/react/require-jsdoc
81
82
  export var TargetOverlay = function TargetOverlay(_ref3) {
82
83
  var onClick = _ref3.onClick,
83
84
  props = _objectWithoutProperties(_ref3, _excluded3);
@@ -103,6 +104,7 @@ export var TargetOverlay = function TargetOverlay(_ref3) {
103
104
  *
104
105
  * @deprecated Use `@atlaskit/spotlight` instead.
105
106
  */
107
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports, @repo/internal/react/require-jsdoc
106
108
  export var Pulse = function Pulse(_ref4) {
107
109
  var bgColor = _ref4.bgColor,
108
110
  children = _ref4.children,
@@ -116,7 +118,7 @@ export var Pulse = function Pulse(_ref4) {
116
118
  bgColor: bgColor
117
119
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
118
120
  ,
119
- className: ax([pulse && "", pulse && "_5sagi11n _tip812c5 _j7hq10vn _1pglmcjr _16qs1peg", "_1bumglyw _sedtglyw", className]),
121
+ className: ax([pulse && "", pulse && "_5sag19pg _tip812c5 _j7hq10vn _1pglmcjr _16qs1peg", "_1bumglyw _sedtglyw", className]),
120
122
  radius: radius,
121
123
  testId: testId
122
124
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
@@ -0,0 +1 @@
1
+ export { default } from '../components/modal-transition';
@@ -0,0 +1 @@
1
+ export { default } from '../components/modal';
@@ -0,0 +1 @@
1
+ export { default } from '../components/spotlight-card';
@@ -0,0 +1,3 @@
1
+ export { SpotlightConsumer, SpotlightContext, TargetConsumer, } from '../components/spotlight-manager';
2
+ export type { GetTargetRef, TargetRef } from '../components/spotlight-manager';
3
+ export { default } from '../components/spotlight-manager';
@@ -0,0 +1 @@
1
+ export { default } from '../components/spotlight-target';
@@ -0,0 +1,2 @@
1
+ export { SpotlightTransitionConsumer } from '../components/spotlight-transition';
2
+ export { default } from '../components/spotlight-transition';
@@ -0,0 +1 @@
1
+ export { default } from '../components/spotlight';
@@ -0,0 +1 @@
1
+ export { Pulse, TargetInner, TargetOverlay } from '../styled/target';
@@ -0,0 +1 @@
1
+ export { modalButtonTheme, spotlightButtonTheme } from '../components/theme';
@@ -0,0 +1 @@
1
+ export type { Actions, ScrollLogicalPosition, SpotlightCardProps, SpotlightProps } from '../types';
@@ -0,0 +1 @@
1
+ export { default } from '../components/use-spotlight';
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "@atlaskit/onboarding/modal",
3
+ "main": "../dist/cjs/entry-points/modal.js",
4
+ "module": "../dist/esm/entry-points/modal.js",
5
+ "module:es2019": "../dist/es2019/entry-points/modal.js",
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
9
+ "types": "../dist/types/entry-points/modal.d.ts"
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "@atlaskit/onboarding/modal-transition",
3
+ "main": "../dist/cjs/entry-points/modal-transition.js",
4
+ "module": "../dist/esm/entry-points/modal-transition.js",
5
+ "module:es2019": "../dist/es2019/entry-points/modal-transition.js",
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
9
+ "types": "../dist/types/entry-points/modal-transition.d.ts"
10
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/onboarding",
3
- "version": "14.6.1",
3
+ "version": "15.0.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,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.5 <4.9": {
17
- "*": [
18
- "dist/types-ts4.5/*",
19
- "dist/types-ts4.5/index.d.ts"
20
- ]
21
- }
22
- },
23
15
  "sideEffects": [
24
16
  "**/*.compiled.css"
25
17
  ],
@@ -62,18 +54,18 @@
62
54
  }
63
55
  },
64
56
  "dependencies": {
65
- "@atlaskit/button": "^23.11.0",
66
- "@atlaskit/css": "^0.19.0",
67
- "@atlaskit/ds-lib": "^7.0.0",
68
- "@atlaskit/heading": "^5.4.0",
69
- "@atlaskit/layering": "^3.7.0",
70
- "@atlaskit/modal-dialog": "^14.18.0",
71
- "@atlaskit/motion": "^6.0.0",
72
- "@atlaskit/platform-feature-flags": "^1.1.0",
73
- "@atlaskit/popper": "^7.2.0",
74
- "@atlaskit/portal": "^5.4.0",
75
- "@atlaskit/primitives": "^19.0.0",
76
- "@atlaskit/tokens": "^13.0.0",
57
+ "@atlaskit/button": "^24.0.0",
58
+ "@atlaskit/css": "^1.0.0",
59
+ "@atlaskit/ds-lib": "^8.0.0",
60
+ "@atlaskit/heading": "^6.0.0",
61
+ "@atlaskit/layering": "^4.0.0",
62
+ "@atlaskit/modal-dialog": "^16.0.0",
63
+ "@atlaskit/motion": "^7.0.0",
64
+ "@atlaskit/platform-feature-flags": "^2.0.0",
65
+ "@atlaskit/popper": "^8.0.0",
66
+ "@atlaskit/portal": "^6.0.0",
67
+ "@atlaskit/primitives": "^20.0.0",
68
+ "@atlaskit/tokens": "^14.0.0",
77
69
  "@babel/runtime": "^7.0.0",
78
70
  "@compiled/react": "^0.20.0",
79
71
  "bind-event-listener": "^3.0.0",
@@ -92,15 +84,16 @@
92
84
  "@af/accessibility-testing": "workspace:^",
93
85
  "@af/integration-testing": "workspace:^",
94
86
  "@af/visual-regression": "workspace:^",
95
- "@atlaskit/theme": "^23.1.0",
87
+ "@atlaskit/theme": "^26.0.0",
96
88
  "@atlassian/react-compiler-gating": "workspace:^",
97
89
  "@atlassian/ssr-tests": "workspace:^",
98
- "@atlassian/testing-library": "^0.5.0",
90
+ "@atlassian/testing-library": "^0.6.0",
99
91
  "@testing-library/react": "^16.3.0",
100
92
  "@testing-library/user-event": "^14.4.3",
101
93
  "@types/exenv": "^1.2.0",
102
94
  "@types/react-node-resolver": "^2.0.0",
103
95
  "raf-stub": "^2.0.1",
96
+ "react": "^18.2.0",
104
97
  "react-dom": "^18.2.0",
105
98
  "react-lorem-component": "^0.13.0"
106
99
  },
@@ -115,24 +108,5 @@
115
108
  "type": "boolean",
116
109
  "referenceOnly": true
117
110
  }
118
- },
119
- "techstack": {
120
- "@atlassian/frontend": {
121
- "import-structure": "atlassian-conventions"
122
- },
123
- "@repo/internal": {
124
- "dom-events": "use-bind-event-listener",
125
- "analytics": "analytics-next",
126
- "design-tokens": [
127
- "color",
128
- "spacing"
129
- ],
130
- "styling": [
131
- "static",
132
- "emotion"
133
- ],
134
- "design-system": "v1",
135
- "deprecation": "no-deprecated-imports"
136
- }
137
111
  }
138
112
  }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "@atlaskit/onboarding/spotlight",
3
+ "main": "../dist/cjs/entry-points/spotlight.js",
4
+ "module": "../dist/esm/entry-points/spotlight.js",
5
+ "module:es2019": "../dist/es2019/entry-points/spotlight.js",
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
9
+ "types": "../dist/types/entry-points/spotlight.d.ts"
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "@atlaskit/onboarding/spotlight-card",
3
+ "main": "../dist/cjs/entry-points/spotlight-card.js",
4
+ "module": "../dist/esm/entry-points/spotlight-card.js",
5
+ "module:es2019": "../dist/es2019/entry-points/spotlight-card.js",
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
9
+ "types": "../dist/types/entry-points/spotlight-card.d.ts"
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "@atlaskit/onboarding/spotlight-manager",
3
+ "main": "../dist/cjs/entry-points/spotlight-manager.js",
4
+ "module": "../dist/esm/entry-points/spotlight-manager.js",
5
+ "module:es2019": "../dist/es2019/entry-points/spotlight-manager.js",
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
9
+ "types": "../dist/types/entry-points/spotlight-manager.d.ts"
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "@atlaskit/onboarding/spotlight-target",
3
+ "main": "../dist/cjs/entry-points/spotlight-target.js",
4
+ "module": "../dist/esm/entry-points/spotlight-target.js",
5
+ "module:es2019": "../dist/es2019/entry-points/spotlight-target.js",
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
9
+ "types": "../dist/types/entry-points/spotlight-target.d.ts"
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "@atlaskit/onboarding/spotlight-transition",
3
+ "main": "../dist/cjs/entry-points/spotlight-transition.js",
4
+ "module": "../dist/esm/entry-points/spotlight-transition.js",
5
+ "module:es2019": "../dist/es2019/entry-points/spotlight-transition.js",
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
9
+ "types": "../dist/types/entry-points/spotlight-transition.d.ts"
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "@atlaskit/onboarding/target",
3
+ "main": "../dist/cjs/entry-points/target.js",
4
+ "module": "../dist/esm/entry-points/target.js",
5
+ "module:es2019": "../dist/es2019/entry-points/target.js",
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
9
+ "types": "../dist/types/entry-points/target.d.ts"
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "@atlaskit/onboarding/theme",
3
+ "main": "../dist/cjs/entry-points/theme.js",
4
+ "module": "../dist/esm/entry-points/theme.js",
5
+ "module:es2019": "../dist/es2019/entry-points/theme.js",
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
9
+ "types": "../dist/types/entry-points/theme.d.ts"
10
+ }
@@ -1,17 +1,10 @@
1
1
  {
2
2
  "name": "@atlaskit/onboarding/types",
3
- "main": "../dist/cjs/types.js",
4
- "module": "../dist/esm/types.js",
5
- "module:es2019": "../dist/es2019/types.js",
3
+ "main": "../dist/cjs/entry-points/types.js",
4
+ "module": "../dist/esm/entry-points/types.js",
5
+ "module:es2019": "../dist/es2019/entry-points/types.js",
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/types.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/types.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/types.d.ts"
17
10
  }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "@atlaskit/onboarding/use-spotlight",
3
+ "main": "../dist/cjs/entry-points/use-spotlight.js",
4
+ "module": "../dist/esm/entry-points/use-spotlight.js",
5
+ "module:es2019": "../dist/es2019/entry-points/use-spotlight.js",
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
9
+ "types": "../dist/types/entry-points/use-spotlight.d.ts"
10
+ }
@@ -1,54 +0,0 @@
1
- import React, { type MouseEvent } from 'react';
2
- interface CloneProps {
3
- /**
4
- * Whether 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 person 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 | string;
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
- * Whether to watch for html content changes on the target
42
- */
43
- shouldWatch?: boolean;
44
- }
45
- /**
46
- * __Clone__
47
- *
48
- * Used for cloning spotlight targets. The clone is positioned on top of the spotlight target with
49
- * a pulsing animation.
50
- *
51
- * @internal
52
- */
53
- declare const Clone: (props: CloneProps) => React.JSX.Element;
54
- export default Clone;
@@ -1,10 +0,0 @@
1
- import Modal from './modal';
2
- import ModalTransition from './modal-transition';
3
- import Spotlight from './spotlight';
4
- import SpotlightCard from './spotlight-card';
5
- import SpotlightManager from './spotlight-manager';
6
- import SpotlightTarget from './spotlight-target';
7
- import SpotlightTransition from './spotlight-transition';
8
- import useSpotlight from './use-spotlight';
9
- export { spotlightButtonTheme, modalButtonTheme } from './theme';
10
- export { Modal, Spotlight, SpotlightCard, SpotlightManager, SpotlightTarget, SpotlightTransition, useSpotlight, ModalTransition, };
@@ -1,17 +0,0 @@
1
- /**
2
- * We re-export this because products may have multiple versions of
3
- * `@atlaskit/modal-dialog`.
4
- *
5
- * If a consumer uses the onboarding `Modal` with the `ModalTransition` from an
6
- * incompatible version of `@atlaskit/modal-dialog`, then the modal can get
7
- * stuck in an open state.
8
- *
9
- * See https://product-fabric.atlassian.net/browse/DSP-796 for more details
10
- * and a reproduction.
11
- *
12
- */
13
- import ModalTransition from '@atlaskit/modal-dialog/modal-transition';
14
- /**
15
- * @deprecated Use `@atlaskit/spotlight` instead.
16
- */
17
- export default ModalTransition;
@@ -1,54 +0,0 @@
1
- import React, { Component, type ElementType, type ReactNode } from 'react';
2
- import { type ModalFooterProps as FooterComponentProps, type ModalHeaderProps as HeaderComponentProps } from '@atlaskit/modal-dialog';
3
- import { type Actions } from '../types';
4
- type ModalProps = {
5
- /**
6
- * Buttons to render in the footer.
7
- */
8
- actions?: Actions;
9
- /**
10
- * The elements rendered in the modal.
11
- */
12
- children: ReactNode;
13
- /**
14
- * Path to the image.
15
- */
16
- image?: string;
17
- /**
18
- * Optional element rendered above the body.
19
- */
20
- header?: ElementType<HeaderComponentProps>;
21
- /**
22
- * Optional element rendered below the body.
23
- */
24
- footer?: ElementType<FooterComponentProps>;
25
- /**
26
- * Heading text rendered above the body.
27
- */
28
- heading?: string;
29
- /**
30
- * Boolean prop to confirm if primary button in the footer should be shown on the right.
31
- */
32
- experimental_shouldShowPrimaryButtonOnRight?: boolean;
33
- /**
34
- * 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.
35
- */
36
- testId?: string;
37
- };
38
- /**
39
- * __Benefits modal__
40
- *
41
- * A benefits modal explains the benefits of a significant new feature or experience change.
42
- *
43
- * - [Examples](https://atlassian.design/components/onboarding/benefits-modal/examples)
44
- * - [Code](https://atlassian.design/components/onboarding/benefits-modal/code)
45
- * - [Usage](https://atlassian.design/components/onboarding/benefits-modal/usage)
46
- *
47
- * @deprecated Use `@atlaskit/modal-dialog` instead.
48
- */
49
- export default class BenefitsModal extends Component<ModalProps> {
50
- headerComponent: (props: ModalProps) => React.ElementType<HeaderComponentProps> | (() => React.JSX.Element);
51
- footerComponent: (props: ModalProps) => React.ElementType<FooterComponentProps> | (() => React.JSX.Element | null);
52
- render(): React.JSX.Element;
53
- }
54
- export {};
@@ -1,18 +0,0 @@
1
- import React, { type ReactElement } from 'react';
2
- interface NodeResolverSpotlightInnerProps {
3
- hasNodeResolver: boolean;
4
- innerRef: (element: HTMLElement | null) => void;
5
- children: ReactElement;
6
- }
7
- /**
8
- * A wrapper component that conditionally applies a NodeResolver to its children.
9
- *
10
- * Note: NodeResolver should not be used in React 18 concurrent mode. This component
11
- * is intended to be removed once the feature flag is removed.
12
- * @param {boolean} props.hasNodeResolver - Determines whether to apply the NodeResolver.
13
- * @param {ReactElement} props.children - The child elements to be wrapped.
14
- * @param {(instance: HTMLDivElement) => void} props.innerRef - A ref callback to get the instance of the HTMLDivElement.
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
- */
17
- declare const NodeResolverSpotlightInner: ({ hasNodeResolver, children, innerRef, }: NodeResolverSpotlightInnerProps) => React.JSX.Element;
18
- export default NodeResolverSpotlightInner;
@@ -1,27 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { type ReactElement } from 'react';
6
- interface NodeResolverSpotlightTargetProps {
7
- hasNodeResolver: boolean;
8
- children: ReactElement;
9
- getTargetRef: (name: string) => (element: HTMLElement | null | undefined) => void;
10
- name: string;
11
- }
12
- /**
13
- * A wrapper component that conditionally applies a NodeResolver to its children.
14
- *
15
- * Note: NodeResolver should not be used in React 18 concurrent mode. This component
16
- * is intended to be removed once the feature flag is removed.
17
- * @param {boolean} props.hasNodeResolver - Determines whether to apply the NodeResolver.
18
- * @param {ReactElement} props.children - The child elements to be wrapped.
19
- * @param {string} props.name - The name to reference from Spotlight.
20
- * @param {ReactElement} props.getTargetRef - Setting up Target Node in Spotlight Manager.
21
- * @returns {ReactElement} The children wrapped with NodeResolver if hasNodeResolver is true, wrape the children in a div setting innerRef with ref to the div.
22
- */
23
- declare const NodeResolverSpotlightTarget: {
24
- ({ hasNodeResolver, children, getTargetRef, name, }: NodeResolverSpotlightTargetProps): JSX.Element;
25
- displayName: string;
26
- };
27
- export default NodeResolverSpotlightTarget;
@@ -1,14 +0,0 @@
1
- import { type SpotlightCardProps } from '../types';
2
- /**
3
- * __Spotlight card__
4
- *
5
- * A spotlight card is for onboarding messages that need a more flexible layout, or don't require a dialog.
6
- *
7
- * - [Examples](https://atlassian.design/components/onboarding/spotlight-card/examples)
8
- * - [Code](https://atlassian.design/components/onboarding/spotlight-card/code)
9
- * - [Usage](https://atlassian.design/components/onboarding/spotlight-card/usage)
10
- *
11
- * @deprecated Use `@atlaskit/spotlight` instead.
12
- */
13
- declare const SpotlightCard: React.ForwardRefExoticComponent<React.PropsWithoutRef<SpotlightCardProps> & React.RefAttributes<HTMLDivElement>>;
14
- export default SpotlightCard;