@atlaskit/util-data-test 18.5.5 → 18.5.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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/util-data-test
2
2
 
3
+ ## 18.5.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`608c375f6f9b9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/608c375f6f9b9) -
8
+ Internal changes to remove unnecessary token fallbacks and imports from `@atlaskit/theme`
9
+ - Updated dependencies
10
+
11
+ ## 18.5.6
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 18.5.5
4
18
 
5
19
  ### Patch Changes
@@ -44,9 +44,6 @@
44
44
  {
45
45
  "path": "../../../people-and-teams/profilecard/afm-cc/tsconfig.json"
46
46
  },
47
- {
48
- "path": "../../../design-system/theme/afm-cc/tsconfig.json"
49
- },
50
47
  {
51
48
  "path": "../../../design-system/tokens/afm-cc/tsconfig.json"
52
49
  },
@@ -1,17 +1,13 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- var _typeof = require("@babel/runtime/helpers/typeof");
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.default = void 0;
9
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
10
- var _react = _interopRequireWildcard(require("react"));
11
8
  var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/core/chevron-right"));
9
+ var _react = _interopRequireDefault(require("react"));
12
10
  var _primitives = require("@atlaskit/primitives");
13
- var _colors = require("@atlaskit/theme/colors");
14
- 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); }
15
11
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
16
12
 
17
13
  var containerStyles = (0, _primitives.xcss)({
@@ -22,26 +18,14 @@ var iconWrapperStyles = (0, _primitives.xcss)({
22
18
  marginLeft: 'space.050'
23
19
  });
24
20
  var _default = exports.default = function _default() {
25
- var _useState = (0, _react.useState)(false),
26
- _useState2 = (0, _slicedToArray2.default)(_useState, 2),
27
- isMouseHovered = _useState2[0],
28
- setHoverState = _useState2[1];
29
- var onMouseEnter = (0, _react.useCallback)(function () {
30
- return setHoverState(true);
31
- }, [setHoverState]);
32
- var onMouseLeave = (0, _react.useCallback)(function () {
33
- return setHoverState(false);
34
- }, [setHoverState]);
35
21
  return /*#__PURE__*/_react.default.createElement(_primitives.Box, {
36
- xcss: containerStyles,
37
- onMouseEnter: onMouseEnter,
38
- onMouseLeave: onMouseLeave
22
+ xcss: containerStyles
39
23
  }, /*#__PURE__*/_react.default.createElement(_primitives.Box, {
40
24
  xcss: iconWrapperStyles
41
25
  }, /*#__PURE__*/_react.default.createElement(_chevronRight.default, {
42
26
  testId: "chevron-right-icon",
43
27
  label: "chevron right",
44
- color: "var(--ds-text-subtlest, ".concat(isMouseHovered ? _colors.N200 : _colors.N50, ")"),
28
+ color: "var(--ds-text-subtlest, #6B6E76)",
45
29
  spacing: "spacious",
46
30
  size: "small"
47
31
  })));
@@ -1,8 +1,7 @@
1
- import React, { useCallback, useState } from 'react';
2
1
  import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
2
+ import React from 'react';
3
3
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
4
4
  import { Box, xcss } from '@atlaskit/primitives';
5
- import { N50, N200 } from '@atlaskit/theme/colors';
6
5
  const containerStyles = xcss({
7
6
  display: 'flex'
8
7
  });
@@ -11,19 +10,14 @@ const iconWrapperStyles = xcss({
11
10
  marginLeft: 'space.050'
12
11
  });
13
12
  export default (() => {
14
- const [isMouseHovered, setHoverState] = useState(false);
15
- const onMouseEnter = useCallback(() => setHoverState(true), [setHoverState]);
16
- const onMouseLeave = useCallback(() => setHoverState(false), [setHoverState]);
17
13
  return /*#__PURE__*/React.createElement(Box, {
18
- xcss: containerStyles,
19
- onMouseEnter: onMouseEnter,
20
- onMouseLeave: onMouseLeave
14
+ xcss: containerStyles
21
15
  }, /*#__PURE__*/React.createElement(Box, {
22
16
  xcss: iconWrapperStyles
23
17
  }, /*#__PURE__*/React.createElement(ChevronRightIcon, {
24
18
  testId: "chevron-right-icon",
25
19
  label: "chevron right",
26
- color: `var(--ds-text-subtlest, ${isMouseHovered ? N200 : N50})`,
20
+ color: "var(--ds-text-subtlest, #6B6E76)",
27
21
  spacing: "spacious",
28
22
  size: "small"
29
23
  })));
@@ -1,9 +1,7 @@
1
- import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
- import React, { useCallback, useState } from 'react';
3
1
  import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
2
+ import React from 'react';
4
3
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
5
4
  import { Box, xcss } from '@atlaskit/primitives';
6
- import { N50, N200 } from '@atlaskit/theme/colors';
7
5
  var containerStyles = xcss({
8
6
  display: 'flex'
9
7
  });
@@ -12,26 +10,14 @@ var iconWrapperStyles = xcss({
12
10
  marginLeft: 'space.050'
13
11
  });
14
12
  export default (function () {
15
- var _useState = useState(false),
16
- _useState2 = _slicedToArray(_useState, 2),
17
- isMouseHovered = _useState2[0],
18
- setHoverState = _useState2[1];
19
- var onMouseEnter = useCallback(function () {
20
- return setHoverState(true);
21
- }, [setHoverState]);
22
- var onMouseLeave = useCallback(function () {
23
- return setHoverState(false);
24
- }, [setHoverState]);
25
13
  return /*#__PURE__*/React.createElement(Box, {
26
- xcss: containerStyles,
27
- onMouseEnter: onMouseEnter,
28
- onMouseLeave: onMouseLeave
14
+ xcss: containerStyles
29
15
  }, /*#__PURE__*/React.createElement(Box, {
30
16
  xcss: iconWrapperStyles
31
17
  }, /*#__PURE__*/React.createElement(ChevronRightIcon, {
32
18
  testId: "chevron-right-icon",
33
19
  label: "chevron right",
34
- color: "var(--ds-text-subtlest, ".concat(isMouseHovered ? N200 : N50, ")"),
20
+ color: "var(--ds-text-subtlest, #6B6E76)",
35
21
  spacing: "spacious",
36
22
  size: "small"
37
23
  })));
@@ -2,5 +2,5 @@ export declare const customType = "SITE";
2
2
  export declare const customCategory = "CUSTOM";
3
3
  export declare const selectedToneStorageKey = "fabric.emoji.selectedTone";
4
4
  export declare const mediaBaseUrl = "https://media.example.com/";
5
- export declare const mediaEmojiImagePath = "https://media.example.com/path-to-image.png";
6
- export declare const mediaEmojiAlternateImagePath = "https://media.example.com/alt-path-to-image.png";
5
+ export declare const mediaEmojiImagePath: 'https://media.example.com/path-to-image.png';
6
+ export declare const mediaEmojiAlternateImagePath: 'https://media.example.com/alt-path-to-image.png';
@@ -4,12 +4,12 @@ export declare const getTestEmojis: () => (import("@atlaskit/emoji").EmojiDescri
4
4
  category: string;
5
5
  order: number;
6
6
  representation: {
7
- mediaPath: string;
7
+ mediaPath: "https://media.example.com/path-to-image.png";
8
8
  width: number;
9
9
  height: number;
10
10
  };
11
11
  altRepresentation: {
12
- mediaPath: string;
12
+ mediaPath: "https://media.example.com/alt-path-to-image.png";
13
13
  width: number;
14
14
  height: number;
15
15
  };
@@ -5,12 +5,12 @@ export declare const getTestSiteEmojis: () => {
5
5
  category: string;
6
6
  order: number;
7
7
  representation: {
8
- mediaPath: string;
8
+ mediaPath: "https://media.example.com/path-to-image.png";
9
9
  width: number;
10
10
  height: number;
11
11
  };
12
12
  altRepresentation: {
13
- mediaPath: string;
13
+ mediaPath: "https://media.example.com/alt-path-to-image.png";
14
14
  width: number;
15
15
  height: number;
16
16
  };
@@ -8,13 +8,13 @@ export declare const getTestSiteServiceEmojis: () => {
8
8
  category: string;
9
9
  order: number;
10
10
  representation: {
11
- imagePath: string;
11
+ imagePath: "https://media.example.com/path-to-image.png";
12
12
  width: number;
13
13
  height: number;
14
14
  };
15
15
  altRepresentations: {
16
16
  XHDPI: {
17
- imagePath: string;
17
+ imagePath: "https://media.example.com/alt-path-to-image.png";
18
18
  width: number;
19
19
  height: number;
20
20
  };
@@ -9,12 +9,12 @@ export declare const mediaEmoji: {
9
9
  category: string;
10
10
  order: number;
11
11
  representation: {
12
- mediaPath: string;
12
+ mediaPath: "https://media.example.com/path-to-image.png";
13
13
  width: number;
14
14
  height: number;
15
15
  };
16
16
  altRepresentation: {
17
- mediaPath: string;
17
+ mediaPath: "https://media.example.com/alt-path-to-image.png";
18
18
  width: number;
19
19
  height: number;
20
20
  };
@@ -7,13 +7,13 @@ export declare const mediaServiceEmoji: {
7
7
  category: string;
8
8
  order: number;
9
9
  representation: {
10
- imagePath: string;
10
+ imagePath: "https://media.example.com/path-to-image.png";
11
11
  width: number;
12
12
  height: number;
13
13
  };
14
14
  altRepresentations: {
15
15
  XHDPI: {
16
- imagePath: string;
16
+ imagePath: "https://media.example.com/alt-path-to-image.png";
17
17
  width: number;
18
18
  height: number;
19
19
  };
@@ -2,5 +2,5 @@ export declare const customType = "SITE";
2
2
  export declare const customCategory = "CUSTOM";
3
3
  export declare const selectedToneStorageKey = "fabric.emoji.selectedTone";
4
4
  export declare const mediaBaseUrl = "https://media.example.com/";
5
- export declare const mediaEmojiImagePath = "https://media.example.com/path-to-image.png";
6
- export declare const mediaEmojiAlternateImagePath = "https://media.example.com/alt-path-to-image.png";
5
+ export declare const mediaEmojiImagePath: 'https://media.example.com/path-to-image.png';
6
+ export declare const mediaEmojiAlternateImagePath: 'https://media.example.com/alt-path-to-image.png';
@@ -4,12 +4,12 @@ export declare const getTestEmojis: () => (import("@atlaskit/emoji").EmojiDescri
4
4
  category: string;
5
5
  order: number;
6
6
  representation: {
7
- mediaPath: string;
7
+ mediaPath: "https://media.example.com/path-to-image.png";
8
8
  width: number;
9
9
  height: number;
10
10
  };
11
11
  altRepresentation: {
12
- mediaPath: string;
12
+ mediaPath: "https://media.example.com/alt-path-to-image.png";
13
13
  width: number;
14
14
  height: number;
15
15
  };
@@ -5,12 +5,12 @@ export declare const getTestSiteEmojis: () => {
5
5
  category: string;
6
6
  order: number;
7
7
  representation: {
8
- mediaPath: string;
8
+ mediaPath: "https://media.example.com/path-to-image.png";
9
9
  width: number;
10
10
  height: number;
11
11
  };
12
12
  altRepresentation: {
13
- mediaPath: string;
13
+ mediaPath: "https://media.example.com/alt-path-to-image.png";
14
14
  width: number;
15
15
  height: number;
16
16
  };
@@ -8,13 +8,13 @@ export declare const getTestSiteServiceEmojis: () => {
8
8
  category: string;
9
9
  order: number;
10
10
  representation: {
11
- imagePath: string;
11
+ imagePath: "https://media.example.com/path-to-image.png";
12
12
  width: number;
13
13
  height: number;
14
14
  };
15
15
  altRepresentations: {
16
16
  XHDPI: {
17
- imagePath: string;
17
+ imagePath: "https://media.example.com/alt-path-to-image.png";
18
18
  width: number;
19
19
  height: number;
20
20
  };
@@ -9,12 +9,12 @@ export declare const mediaEmoji: {
9
9
  category: string;
10
10
  order: number;
11
11
  representation: {
12
- mediaPath: string;
12
+ mediaPath: "https://media.example.com/path-to-image.png";
13
13
  width: number;
14
14
  height: number;
15
15
  };
16
16
  altRepresentation: {
17
- mediaPath: string;
17
+ mediaPath: "https://media.example.com/alt-path-to-image.png";
18
18
  width: number;
19
19
  height: number;
20
20
  };
@@ -7,13 +7,13 @@ export declare const mediaServiceEmoji: {
7
7
  category: string;
8
8
  order: number;
9
9
  representation: {
10
- imagePath: string;
10
+ imagePath: "https://media.example.com/path-to-image.png";
11
11
  width: number;
12
12
  height: number;
13
13
  };
14
14
  altRepresentations: {
15
15
  XHDPI: {
16
- imagePath: string;
16
+ imagePath: "https://media.example.com/alt-path-to-image.png";
17
17
  width: number;
18
18
  height: number;
19
19
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/util-data-test",
3
- "version": "18.5.5",
3
+ "version": "18.5.7",
4
4
  "description": "Shared test and story data",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -18,16 +18,15 @@
18
18
  "access": "public"
19
19
  },
20
20
  "dependencies": {
21
- "@atlaskit/analytics-next": "^11.1.0",
21
+ "@atlaskit/analytics-next": "^11.2.0",
22
22
  "@atlaskit/editor-plugin-emoji": "^9.0.0",
23
23
  "@atlaskit/emoji": "^69.10.0",
24
- "@atlaskit/icon": "^32.0.0",
25
- "@atlaskit/mention": "^24.5.0",
26
- "@atlaskit/primitives": "^18.0.0",
27
- "@atlaskit/profilecard": "^24.44.0",
28
- "@atlaskit/theme": "^22.0.0",
29
- "@atlaskit/tokens": "^11.1.0",
30
- "@atlaskit/user-picker": "^11.24.0",
24
+ "@atlaskit/icon": "^33.1.0",
25
+ "@atlaskit/mention": "^24.6.0",
26
+ "@atlaskit/primitives": "^18.1.0",
27
+ "@atlaskit/profilecard": "^24.45.0",
28
+ "@atlaskit/tokens": "^11.3.0",
29
+ "@atlaskit/user-picker": "^11.25.0",
31
30
  "@atlaskit/util-service-support": "^6.3.0",
32
31
  "@babel/runtime": "^7.0.0",
33
32
  "lodash": "^4.17.21",