@atlaskit/spotlight 0.3.5 → 0.4.1
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 +14 -0
- package/dist/cjs/ui/popover-target/index.js +1 -7
- package/dist/es2019/ui/popover-target/index.js +1 -6
- package/dist/esm/ui/popover-target/index.js +1 -6
- package/dist/types/index.d.ts +1 -1
- package/dist/types/ui/popover-content/index.d.ts +1 -2
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/popover-content/index.d.ts +1 -2
- package/package.json +1 -1
- package/dist/cjs/ui/popover-target/index.compiled.css +0 -1
- package/dist/es2019/ui/popover-target/index.compiled.css +0 -1
- package/dist/esm/ui/popover-target/index.compiled.css +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/spotlight
|
|
2
2
|
|
|
3
|
+
## 0.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`499c871b73060`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/499c871b73060) -
|
|
8
|
+
Exports the PopoverContentProps
|
|
9
|
+
|
|
10
|
+
## 0.4.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- [`07392017dde4f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/07392017dde4f) -
|
|
15
|
+
Remove `width: fit-content` styling from `PopoverTarget`.
|
|
16
|
+
|
|
3
17
|
## 0.3.5
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -6,15 +6,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.PopoverTarget = void 0;
|
|
9
|
-
require("./index.compiled.css");
|
|
10
9
|
var React = _interopRequireWildcard(require("react"));
|
|
11
10
|
var _runtime = require("@compiled/react/runtime");
|
|
12
11
|
var _popper = require("@atlaskit/popper");
|
|
13
12
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
14
|
-
var styles = {
|
|
15
|
-
root: "_1bsb1ns9"
|
|
16
|
-
};
|
|
17
|
-
|
|
18
13
|
/**
|
|
19
14
|
* __Target__
|
|
20
15
|
*
|
|
@@ -25,8 +20,7 @@ var PopoverTarget = exports.PopoverTarget = function PopoverTarget(_ref) {
|
|
|
25
20
|
return /*#__PURE__*/React.createElement(_popper.Reference, null, function (_ref2) {
|
|
26
21
|
var ref = _ref2.ref;
|
|
27
22
|
return /*#__PURE__*/React.createElement("div", {
|
|
28
|
-
ref: ref
|
|
29
|
-
className: (0, _runtime.ax)([styles.root])
|
|
23
|
+
ref: ref
|
|
30
24
|
}, children);
|
|
31
25
|
});
|
|
32
26
|
};
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
|
-
import "./index.compiled.css";
|
|
3
2
|
import * as React from 'react';
|
|
4
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
4
|
import { Reference } from '@atlaskit/popper';
|
|
6
|
-
const styles = {
|
|
7
|
-
root: "_1bsb1ns9"
|
|
8
|
-
};
|
|
9
5
|
|
|
10
6
|
/**
|
|
11
7
|
* __Target__
|
|
@@ -18,7 +14,6 @@ export const PopoverTarget = ({
|
|
|
18
14
|
return /*#__PURE__*/React.createElement(Reference, null, ({
|
|
19
15
|
ref
|
|
20
16
|
}) => /*#__PURE__*/React.createElement("div", {
|
|
21
|
-
ref: ref
|
|
22
|
-
className: ax([styles.root])
|
|
17
|
+
ref: ref
|
|
23
18
|
}, children));
|
|
24
19
|
};
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
|
-
import "./index.compiled.css";
|
|
3
2
|
import * as React from 'react';
|
|
4
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
4
|
import { Reference } from '@atlaskit/popper';
|
|
6
|
-
var styles = {
|
|
7
|
-
root: "_1bsb1ns9"
|
|
8
|
-
};
|
|
9
5
|
|
|
10
6
|
/**
|
|
11
7
|
* __Target__
|
|
@@ -17,8 +13,7 @@ export var PopoverTarget = function PopoverTarget(_ref) {
|
|
|
17
13
|
return /*#__PURE__*/React.createElement(Reference, null, function (_ref2) {
|
|
18
14
|
var ref = _ref2.ref;
|
|
19
15
|
return /*#__PURE__*/React.createElement("div", {
|
|
20
|
-
ref: ref
|
|
21
|
-
className: ax([styles.root])
|
|
16
|
+
ref: ref
|
|
22
17
|
}, children);
|
|
23
18
|
});
|
|
24
19
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -12,6 +12,6 @@ export { SpotlightDismissControl, type SpotlightDismissControlProps } from './ui
|
|
|
12
12
|
export { SpotlightShowMoreControl, type SpotlightShowMoreControlProps, } from './ui/show-more-control';
|
|
13
13
|
export { SpotlightMedia, type SpotlightMediaProps } from './ui/media';
|
|
14
14
|
export { PopoverProvider } from './ui/popover-provider';
|
|
15
|
-
export { PopoverContent } from './ui/popover-content';
|
|
15
|
+
export { PopoverContent, type PopoverContentProps } from './ui/popover-content';
|
|
16
16
|
export { PopoverTarget } from './ui/popover-target';
|
|
17
17
|
export { type Placement } from './types';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { type ReactNode } from 'react';
|
|
6
6
|
import type { Placement } from '../../types';
|
|
7
|
-
interface PopoverContentProps {
|
|
7
|
+
export interface PopoverContentProps {
|
|
8
8
|
/**
|
|
9
9
|
* A `testId` prop is provided for specified elements, which is a unique
|
|
10
10
|
* string that appears as a data attribute `data-testid` in the rendered code,
|
|
@@ -21,4 +21,3 @@ interface PopoverContentProps {
|
|
|
21
21
|
* A `PopoverContent` is the element that is shown as a popover.
|
|
22
22
|
*/
|
|
23
23
|
export declare const PopoverContent: ({ children, placement, isVisible, testId, }: PopoverContentProps) => JSX.Element;
|
|
24
|
-
export {};
|
|
@@ -12,6 +12,6 @@ export { SpotlightDismissControl, type SpotlightDismissControlProps } from './ui
|
|
|
12
12
|
export { SpotlightShowMoreControl, type SpotlightShowMoreControlProps, } from './ui/show-more-control';
|
|
13
13
|
export { SpotlightMedia, type SpotlightMediaProps } from './ui/media';
|
|
14
14
|
export { PopoverProvider } from './ui/popover-provider';
|
|
15
|
-
export { PopoverContent } from './ui/popover-content';
|
|
15
|
+
export { PopoverContent, type PopoverContentProps } from './ui/popover-content';
|
|
16
16
|
export { PopoverTarget } from './ui/popover-target';
|
|
17
17
|
export { type Placement } from './types';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { type ReactNode } from 'react';
|
|
6
6
|
import type { Placement } from '../../types';
|
|
7
|
-
interface PopoverContentProps {
|
|
7
|
+
export interface PopoverContentProps {
|
|
8
8
|
/**
|
|
9
9
|
* A `testId` prop is provided for specified elements, which is a unique
|
|
10
10
|
* string that appears as a data attribute `data-testid` in the rendered code,
|
|
@@ -21,4 +21,3 @@ interface PopoverContentProps {
|
|
|
21
21
|
* A `PopoverContent` is the element that is shown as a popover.
|
|
22
22
|
*/
|
|
23
23
|
export declare const PopoverContent: ({ children, placement, isVisible, testId, }: PopoverContentProps) => JSX.Element;
|
|
24
|
-
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/spotlight",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "A spotlight introduces users to various points of interest across Atlassian through focused messages or multi-step tours.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._1bsb1ns9{width:-moz-fit-content;width:fit-content}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._1bsb1ns9{width:-moz-fit-content;width:fit-content}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._1bsb1ns9{width:-moz-fit-content;width:fit-content}
|