@atlaskit/status 1.4.4 → 1.4.6

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/status
2
2
 
3
+ ## 1.4.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#66759](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66759) [`906578f1ea5d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/906578f1ea5d) - [ux] ED-21787: Migrating few CSS entries to space and color tokens
8
+
9
+ ## 1.4.5
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 1.4.4
4
16
 
5
17
  ### Patch Changes
@@ -0,0 +1,40 @@
1
+ {
2
+ "extends": "../../../../tsconfig.entry-points.confluence.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "target": "es5",
6
+ "composite": true,
7
+ "outDir": "../dist",
8
+ "rootDir": "../",
9
+ "baseUrl": "../"
10
+ },
11
+ "include": [
12
+ "../src/**/*.ts",
13
+ "../src/**/*.tsx"
14
+ ],
15
+ "exclude": [
16
+ "../src/**/__tests__/*",
17
+ "../src/**/*.test.*",
18
+ "../src/**/test.*"
19
+ ],
20
+ "references": [
21
+ {
22
+ "path": "../../../analytics/analytics-next/afm-cc/tsconfig.json"
23
+ },
24
+ {
25
+ "path": "../../../design-system/icon/afm-cc/tsconfig.json"
26
+ },
27
+ {
28
+ "path": "../../../design-system/lozenge/afm-cc/tsconfig.json"
29
+ },
30
+ {
31
+ "path": "../../../design-system/textfield/afm-cc/tsconfig.json"
32
+ },
33
+ {
34
+ "path": "../../../design-system/theme/afm-cc/tsconfig.json"
35
+ },
36
+ {
37
+ "path": "../../../design-system/tokens/afm-cc/tsconfig.json"
38
+ }
39
+ ]
40
+ }
@@ -20,7 +20,9 @@ var _analytics = require("./analytics");
20
20
  var _constants = require("./constants");
21
21
  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); }; }
22
22
  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; } } /** @jsx jsx */
23
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
23
+ // Disabling linting for nextline since these values are used as text reference, but not used as part of the CSS
24
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview
25
+ /* eslint-disable @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview */
24
26
  var colorToLozengeAppearanceMap = {
25
27
  neutral: 'default',
26
28
  purple: 'new',
@@ -29,7 +31,7 @@ var colorToLozengeAppearanceMap = {
29
31
  yellow: 'moved',
30
32
  green: 'success'
31
33
  };
32
- /* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
34
+ /* eslint-enable @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview */
33
35
 
34
36
  var DEFAULT_APPEARANCE = 'default';
35
37
  var MAX_WIDTH = 200;
@@ -10,7 +10,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
10
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 = exports.ELEMENTS_CHANNEL = 'fabric-elements';
12
12
  var packageName = "@atlaskit/status";
13
- var packageVersion = "1.4.4";
13
+ var packageVersion = "1.4.6";
14
14
  var createStatusAnalyticsAndFire = exports.createStatusAnalyticsAndFire = function createStatusAnalyticsAndFire(createAnalyticsEvent) {
15
15
  return function (payload) {
16
16
  var statusPayload = _objectSpread(_objectSpread({}, payload), {}, {
@@ -28,7 +28,11 @@ 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 ", ";\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, ")"));
31
+
32
+ // We have tried with changing border and padding from 1px to token near version 2px,
33
+ // the pop - up is being expanded to two lines.
34
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
35
+ 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: ", ";\n &:hover {\n border: 1px solid ", ";\n }\n"])), "var(--ds-space-025, 2px)", "var(--ds-space-075, 6px)", "var(--ds-border, ".concat(_colors.N50, ")"));
32
36
  var Color = exports.default = /*#__PURE__*/function (_PureComponent) {
33
37
  (0, _inherits2.default)(Color, _PureComponent);
34
38
  var _super = _createSuper(Color);
@@ -6,7 +6,10 @@ import Lozenge from '@atlaskit/lozenge';
6
6
  import { withAnalyticsEvents } from '@atlaskit/analytics-next';
7
7
  import { createStatusAnalyticsAndFire } from './analytics';
8
8
  import { ANALYTICS_HOVER_DELAY } from './constants';
9
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
9
+
10
+ // Disabling linting for nextline since these values are used as text reference, but not used as part of the CSS
11
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview
12
+ /* eslint-disable @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview */
10
13
  const colorToLozengeAppearanceMap = {
11
14
  neutral: 'default',
12
15
  purple: 'new',
@@ -15,7 +18,7 @@ const colorToLozengeAppearanceMap = {
15
18
  yellow: 'moved',
16
19
  green: 'success'
17
20
  };
18
- /* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
21
+ /* eslint-enable @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview */
19
22
 
20
23
  const DEFAULT_APPEARANCE = 'default';
21
24
  const MAX_WIDTH = 200;
@@ -1,6 +1,6 @@
1
1
  export const ELEMENTS_CHANNEL = 'fabric-elements';
2
2
  const packageName = "@atlaskit/status";
3
- const packageVersion = "1.4.4";
3
+ const packageVersion = "1.4.6";
4
4
  export const createStatusAnalyticsAndFire = createAnalyticsEvent => payload => {
5
5
  const statusPayload = {
6
6
  ...payload,
@@ -19,6 +19,10 @@ const buttonStyles = css`
19
19
  box-sizing: border-box;
20
20
  overflow: hidden;
21
21
  `;
22
+
23
+ // We have tried with changing border and padding from 1px to token near version 2px,
24
+ // the pop - up is being expanded to two lines.
25
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
22
26
  const buttonWrapperStyles = css`
23
27
  border: 1px solid transparent;
24
28
  margin: 0 ${"var(--ds-space-025, 2px)"};
@@ -26,7 +30,7 @@ const buttonWrapperStyles = css`
26
30
  display: flex;
27
31
  align-items: center;
28
32
  padding: 1px;
29
- border-radius: 6px;
33
+ border-radius: ${"var(--ds-space-075, 6px)"};
30
34
  &:hover {
31
35
  border: 1px solid ${`var(--ds-border, ${N50})`};
32
36
  }
@@ -14,7 +14,10 @@ import Lozenge from '@atlaskit/lozenge';
14
14
  import { withAnalyticsEvents } from '@atlaskit/analytics-next';
15
15
  import { createStatusAnalyticsAndFire } from './analytics';
16
16
  import { ANALYTICS_HOVER_DELAY } from './constants';
17
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
17
+
18
+ // Disabling linting for nextline since these values are used as text reference, but not used as part of the CSS
19
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview
20
+ /* eslint-disable @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview */
18
21
  var colorToLozengeAppearanceMap = {
19
22
  neutral: 'default',
20
23
  purple: 'new',
@@ -23,7 +26,7 @@ var colorToLozengeAppearanceMap = {
23
26
  yellow: 'moved',
24
27
  green: 'success'
25
28
  };
26
- /* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
29
+ /* eslint-enable @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview */
27
30
 
28
31
  var DEFAULT_APPEARANCE = 'default';
29
32
  var MAX_WIDTH = 200;
@@ -3,7 +3,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
3
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.4.4";
6
+ var packageVersion = "1.4.6";
7
7
  export var createStatusAnalyticsAndFire = function createStatusAnalyticsAndFire(createAnalyticsEvent) {
8
8
  return function (payload) {
9
9
  var statusPayload = _objectSpread(_objectSpread({}, payload), {}, {
@@ -18,7 +18,11 @@ 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 ", ";\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, ")"));
21
+
22
+ // We have tried with changing border and padding from 1px to token near version 2px,
23
+ // the pop - up is being expanded to two lines.
24
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
25
+ 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: ", ";\n &:hover {\n border: 1px solid ", ";\n }\n"])), "var(--ds-space-025, 2px)", "var(--ds-space-075, 6px)", "var(--ds-border, ".concat(N50, ")"));
22
26
  var Color = /*#__PURE__*/function (_PureComponent) {
23
27
  _inherits(Color, _PureComponent);
24
28
  var _super = _createSuper(Color);
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@atlaskit/status",
3
- "version": "1.4.4",
3
+ "version": "1.4.6",
4
4
  "description": "Fabric Status React Components",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
7
7
  },
8
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend",
8
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
9
9
  "author": "Atlassian Pty Ltd",
10
10
  "license": "Apache-2.0",
11
11
  "main": "dist/cjs/index.js",
@@ -19,7 +19,8 @@
19
19
  "releaseModel": "continuous",
20
20
  "website": {
21
21
  "name": "Status"
22
- }
22
+ },
23
+ "runReact18": false
23
24
  },
24
25
  "config": {
25
26
  "access": "public"
@@ -27,10 +28,10 @@
27
28
  "dependencies": {
28
29
  "@atlaskit/analytics-next": "^9.1.0",
29
30
  "@atlaskit/icon": "^22.0.0",
30
- "@atlaskit/lozenge": "^11.4.0",
31
- "@atlaskit/textfield": "^5.6.0",
31
+ "@atlaskit/lozenge": "^11.6.0",
32
+ "@atlaskit/textfield": "^6.0.0",
32
33
  "@atlaskit/theme": "^12.6.0",
33
- "@atlaskit/tokens": "^1.28.0",
34
+ "@atlaskit/tokens": "^1.33.0",
34
35
  "@babel/runtime": "^7.0.0",
35
36
  "@emotion/react": "^11.7.1"
36
37
  },
@@ -1,74 +0,0 @@
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
- ```