@atlaskit/status 1.3.5 → 1.3.7
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/dist/cjs/components/analytics.js +3 -3
- package/dist/cjs/components/internal/color.js +1 -1
- package/dist/es2019/components/analytics.js +1 -1
- package/dist/es2019/components/internal/color.js +1 -1
- package/dist/esm/components/analytics.js +3 -3
- package/dist/esm/components/internal/color.js +1 -1
- package/package.json +15 -14
- package/tmp/api-report-tmp.d.ts +74 -0
- package/dist/cjs/version.json +0 -4
- package/dist/es2019/version.json +0 -4
- package/dist/esm/version.json +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/status
|
|
2
2
|
|
|
3
|
+
## 1.3.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`6900f89eb0e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6900f89eb0e) - Internal changes to use space tokens. There is no expected visual or behaviour change.
|
|
8
|
+
|
|
9
|
+
## 1.3.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 1.3.5
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.createStatusAnalyticsAndFire = exports.ELEMENTS_CHANNEL = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
function ownKeys(
|
|
10
|
-
function _objectSpread(
|
|
9
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
10
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
11
11
|
var ELEMENTS_CHANNEL = 'fabric-elements';
|
|
12
12
|
exports.ELEMENTS_CHANNEL = ELEMENTS_CHANNEL;
|
|
13
13
|
var packageName = "@atlaskit/status";
|
|
14
|
-
var packageVersion = "1.3.
|
|
14
|
+
var packageVersion = "1.3.7";
|
|
15
15
|
var createStatusAnalyticsAndFire = function createStatusAnalyticsAndFire(createAnalyticsEvent) {
|
|
16
16
|
return function (payload) {
|
|
17
17
|
var statusPayload = _objectSpread(_objectSpread({}, payload), {}, {
|
|
@@ -28,7 +28,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
28
28
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
29
29
|
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; } }
|
|
30
30
|
var buttonStyles = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n height: 24px;\n width: 24px;\n background: ", ";\n padding: 0;\n border-radius: 4px;\n border: 1px solid ", ";\n cursor: pointer;\n display: block;\n box-sizing: border-box;\n overflow: hidden;\n"])), "var(--ds-background-neutral, ".concat(_colors.N900, ")"), "var(--ds-border, ".concat(_colors.N0, ")"));
|
|
31
|
-
var buttonWrapperStyles = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n border: 1px solid transparent;\n margin: 0
|
|
31
|
+
var buttonWrapperStyles = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n border: 1px solid transparent;\n margin: 0 ", ";\n font-size: 0;\n display: flex;\n align-items: center;\n padding: 1px;\n border-radius: 6px;\n &:hover {\n border: 1px solid ", ";\n }\n"])), "var(--ds-space-025, 2px)", "var(--ds-border, ".concat(_colors.N50, ")"));
|
|
32
32
|
var Color = /*#__PURE__*/function (_PureComponent) {
|
|
33
33
|
(0, _inherits2.default)(Color, _PureComponent);
|
|
34
34
|
var _super = _createSuper(Color);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const ELEMENTS_CHANNEL = 'fabric-elements';
|
|
2
2
|
const packageName = "@atlaskit/status";
|
|
3
|
-
const packageVersion = "1.3.
|
|
3
|
+
const packageVersion = "1.3.7";
|
|
4
4
|
export const createStatusAnalyticsAndFire = createAnalyticsEvent => payload => {
|
|
5
5
|
const statusPayload = {
|
|
6
6
|
...payload,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
export var ELEMENTS_CHANNEL = 'fabric-elements';
|
|
5
5
|
var packageName = "@atlaskit/status";
|
|
6
|
-
var packageVersion = "1.3.
|
|
6
|
+
var packageVersion = "1.3.7";
|
|
7
7
|
export var createStatusAnalyticsAndFire = function createStatusAnalyticsAndFire(createAnalyticsEvent) {
|
|
8
8
|
return function (payload) {
|
|
9
9
|
var statusPayload = _objectSpread(_objectSpread({}, payload), {}, {
|
|
@@ -18,7 +18,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
18
18
|
import { ANALYTICS_HOVER_DELAY } from '../constants';
|
|
19
19
|
import { messages } from '../i18n';
|
|
20
20
|
var buttonStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: 24px;\n width: 24px;\n background: ", ";\n padding: 0;\n border-radius: 4px;\n border: 1px solid ", ";\n cursor: pointer;\n display: block;\n box-sizing: border-box;\n overflow: hidden;\n"])), "var(--ds-background-neutral, ".concat(N900, ")"), "var(--ds-border, ".concat(N0, ")"));
|
|
21
|
-
var buttonWrapperStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n border: 1px solid transparent;\n margin: 0
|
|
21
|
+
var buttonWrapperStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n border: 1px solid transparent;\n margin: 0 ", ";\n font-size: 0;\n display: flex;\n align-items: center;\n padding: 1px;\n border-radius: 6px;\n &:hover {\n border: 1px solid ", ";\n }\n"])), "var(--ds-space-025, 2px)", "var(--ds-border, ".concat(N50, ")"));
|
|
22
22
|
var Color = /*#__PURE__*/function (_PureComponent) {
|
|
23
23
|
_inherits(Color, _PureComponent);
|
|
24
24
|
var _super = _createSuper(Color);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/status",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.7",
|
|
4
4
|
"description": "Fabric Status React Components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -12,17 +12,9 @@
|
|
|
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
|
"atlaskit:src": "src/index.ts",
|
|
24
16
|
"atlassian": {
|
|
25
|
-
"team": "Editor",
|
|
17
|
+
"team": "Editor: Scarlet",
|
|
26
18
|
"deprecatedAutoEntryPoints": true,
|
|
27
19
|
"releaseModel": "continuous",
|
|
28
20
|
"website": {
|
|
@@ -37,8 +29,8 @@
|
|
|
37
29
|
"@atlaskit/icon": "^21.12.0",
|
|
38
30
|
"@atlaskit/lozenge": "^11.4.0",
|
|
39
31
|
"@atlaskit/textfield": "^5.6.0",
|
|
40
|
-
"@atlaskit/theme": "^12.
|
|
41
|
-
"@atlaskit/tokens": "^1.
|
|
32
|
+
"@atlaskit/theme": "^12.6.0",
|
|
33
|
+
"@atlaskit/tokens": "^1.21.0",
|
|
42
34
|
"@babel/runtime": "^7.0.0",
|
|
43
35
|
"@emotion/react": "^11.7.1"
|
|
44
36
|
},
|
|
@@ -47,6 +39,7 @@
|
|
|
47
39
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
48
40
|
},
|
|
49
41
|
"devDependencies": {
|
|
42
|
+
"@af/visual-regression": "*",
|
|
50
43
|
"@atlaskit/elements-test-helpers": "^0.7.0",
|
|
51
44
|
"@atlaskit/visual-regression": "*",
|
|
52
45
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
@@ -62,12 +55,20 @@
|
|
|
62
55
|
"fabric",
|
|
63
56
|
"editor"
|
|
64
57
|
],
|
|
65
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",
|
|
66
58
|
"techstack": {
|
|
67
59
|
"@repo/internal": {
|
|
68
60
|
"design-tokens": [
|
|
69
61
|
"color"
|
|
70
62
|
]
|
|
71
63
|
}
|
|
72
|
-
}
|
|
64
|
+
},
|
|
65
|
+
"typesVersions": {
|
|
66
|
+
">=4.5 <4.9": {
|
|
67
|
+
"*": [
|
|
68
|
+
"dist/types-ts4.5/*",
|
|
69
|
+
"dist/types-ts4.5/index.d.ts"
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
|
73
74
|
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
## API Report File for "@atlaskit/status"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
|
|
9
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
10
|
+
import { default as React_2 } from 'react';
|
|
11
|
+
import { RefAttributes } from 'react';
|
|
12
|
+
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
13
|
+
import { WithIntlProps } from 'react-intl-next';
|
|
14
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
15
|
+
|
|
16
|
+
// @public (undocumented)
|
|
17
|
+
export type Color = 'blue' | 'green' | 'neutral' | 'purple' | 'red' | 'yellow';
|
|
18
|
+
|
|
19
|
+
// @public (undocumented)
|
|
20
|
+
type ColorType = Color;
|
|
21
|
+
|
|
22
|
+
// @public (undocumented)
|
|
23
|
+
interface OwnProps {
|
|
24
|
+
// (undocumented)
|
|
25
|
+
color: Color;
|
|
26
|
+
// (undocumented)
|
|
27
|
+
localId?: string;
|
|
28
|
+
// (undocumented)
|
|
29
|
+
onClick?: (event: React.SyntheticEvent<any>) => void;
|
|
30
|
+
// (undocumented)
|
|
31
|
+
onHover?: () => void;
|
|
32
|
+
// (undocumented)
|
|
33
|
+
role?: string;
|
|
34
|
+
// (undocumented)
|
|
35
|
+
style?: StatusStyle;
|
|
36
|
+
// (undocumented)
|
|
37
|
+
text: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// @public (undocumented)
|
|
41
|
+
export type Props = OwnProps & WithAnalyticsEventsProps;
|
|
42
|
+
|
|
43
|
+
// @public (undocumented)
|
|
44
|
+
export const Status: ForwardRefExoticComponent<Omit<Props, keyof WithAnalyticsEventsProps> & RefAttributes<any>>;
|
|
45
|
+
|
|
46
|
+
// @public (undocumented)
|
|
47
|
+
export const StatusPicker: React_2.FC<WithIntlProps<StatusPickerProps & WrappedComponentProps<"intl">>> & {
|
|
48
|
+
WrappedComponent: React_2.ComponentType<StatusPickerProps & WrappedComponentProps<"intl">>;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
// @public (undocumented)
|
|
52
|
+
export interface StatusPickerProps {
|
|
53
|
+
// (undocumented)
|
|
54
|
+
autoFocus?: boolean;
|
|
55
|
+
// (undocumented)
|
|
56
|
+
onColorClick: (value: ColorType) => void;
|
|
57
|
+
// (undocumented)
|
|
58
|
+
onColorHover?: (value: ColorType) => void;
|
|
59
|
+
// (undocumented)
|
|
60
|
+
onEnter: () => void;
|
|
61
|
+
// (undocumented)
|
|
62
|
+
onTextChanged: (value: string) => void;
|
|
63
|
+
// (undocumented)
|
|
64
|
+
selectedColor: ColorType;
|
|
65
|
+
// (undocumented)
|
|
66
|
+
text: string;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// @public (undocumented)
|
|
70
|
+
export type StatusStyle = 'bold' | 'subtle';
|
|
71
|
+
|
|
72
|
+
// (No @packageDocumentation comment for this package)
|
|
73
|
+
|
|
74
|
+
```
|
package/dist/cjs/version.json
DELETED
package/dist/es2019/version.json
DELETED
package/dist/esm/version.json
DELETED