@atlaskit/util-data-test 17.11.6 → 17.13.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @atlaskit/util-data-test
2
2
 
3
+ ## 17.13.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#163699](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/163699)
8
+ [`f946e35c60150`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f946e35c60150) -
9
+ Update mock profilecard client contract
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 17.12.0
16
+
17
+ ### Minor Changes
18
+
19
+ - [`d4e1da5230f3a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d4e1da5230f3a) -
20
+ [ux] Enable new icons behind a feature flag.
21
+
3
22
  ## 17.11.6
4
23
 
5
24
  ### Patch Changes
@@ -29,6 +29,9 @@
29
29
  {
30
30
  "path": "../../mention/afm-cc/tsconfig.json"
31
31
  },
32
+ {
33
+ "path": "../../../design-system/primitives/afm-cc/tsconfig.json"
34
+ },
32
35
  {
33
36
  "path": "../../../people-and-teams/profilecard/afm-cc/tsconfig.json"
34
37
  },
@@ -1,48 +1,51 @@
1
1
  {
2
- "extends": "../../../../tsconfig.entry-points.jira.json",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "target": "es5",
6
- "outDir": "../../../../../tsDist/@atlaskit__util-data-test/app",
7
- "composite": true,
8
- "rootDir": "../"
9
- },
10
- "include": [
11
- "../src/**/*.ts",
12
- "../src/**/*.tsx"
13
- ],
14
- "exclude": [
15
- "../src/**/__tests__/*",
16
- "../src/**/*.test.*",
17
- "../src/**/test.*"
18
- ],
19
- "references": [
20
- {
21
- "path": "../../../analytics/analytics-next/afm-jira/tsconfig.json"
22
- },
23
- {
24
- "path": "../../emoji/afm-jira/tsconfig.json"
25
- },
26
- {
27
- "path": "../../../design-system/icon/afm-jira/tsconfig.json"
28
- },
29
- {
30
- "path": "../../mention/afm-jira/tsconfig.json"
31
- },
32
- {
33
- "path": "../../../people-and-teams/profilecard/afm-jira/tsconfig.json"
34
- },
35
- {
36
- "path": "../../../design-system/theme/afm-jira/tsconfig.json"
37
- },
38
- {
39
- "path": "../../../design-system/tokens/afm-jira/tsconfig.json"
40
- },
41
- {
42
- "path": "../../user-picker/afm-jira/tsconfig.json"
43
- },
44
- {
45
- "path": "../../util-service-support/afm-jira/tsconfig.json"
46
- }
47
- ]
48
- }
2
+ "extends": "../../../../tsconfig.entry-points.jira.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "target": "es5",
6
+ "outDir": "../../../../../tsDist/@atlaskit__util-data-test/app",
7
+ "rootDir": "../",
8
+ "composite": true
9
+ },
10
+ "include": [
11
+ "../src/**/*.ts",
12
+ "../src/**/*.tsx"
13
+ ],
14
+ "exclude": [
15
+ "../src/**/__tests__/*",
16
+ "../src/**/*.test.*",
17
+ "../src/**/test.*"
18
+ ],
19
+ "references": [
20
+ {
21
+ "path": "../../../analytics/analytics-next/afm-jira/tsconfig.json"
22
+ },
23
+ {
24
+ "path": "../../emoji/afm-jira/tsconfig.json"
25
+ },
26
+ {
27
+ "path": "../../../design-system/icon/afm-jira/tsconfig.json"
28
+ },
29
+ {
30
+ "path": "../../mention/afm-jira/tsconfig.json"
31
+ },
32
+ {
33
+ "path": "../../../design-system/primitives/afm-jira/tsconfig.json"
34
+ },
35
+ {
36
+ "path": "../../../people-and-teams/profilecard/afm-jira/tsconfig.json"
37
+ },
38
+ {
39
+ "path": "../../../design-system/theme/afm-jira/tsconfig.json"
40
+ },
41
+ {
42
+ "path": "../../../design-system/tokens/afm-jira/tsconfig.json"
43
+ },
44
+ {
45
+ "path": "../../user-picker/afm-jira/tsconfig.json"
46
+ },
47
+ {
48
+ "path": "../../util-service-support/afm-jira/tsconfig.json"
49
+ }
50
+ ]
51
+ }
@@ -1,48 +1,51 @@
1
1
  {
2
- "extends": "../../../../tsconfig.entry-points.post-office.json",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "target": "es5",
6
- "outDir": "../../../../../tsDist/@atlaskit__util-data-test/app",
7
- "composite": true,
8
- "rootDir": "../"
9
- },
10
- "include": [
11
- "../src/**/*.ts",
12
- "../src/**/*.tsx"
13
- ],
14
- "exclude": [
15
- "../src/**/__tests__/*",
16
- "../src/**/*.test.*",
17
- "../src/**/test.*"
18
- ],
19
- "references": [
20
- {
21
- "path": "../../../analytics/analytics-next/afm-post-office/tsconfig.json"
22
- },
23
- {
24
- "path": "../../emoji/afm-post-office/tsconfig.json"
25
- },
26
- {
27
- "path": "../../../design-system/icon/afm-post-office/tsconfig.json"
28
- },
29
- {
30
- "path": "../../mention/afm-post-office/tsconfig.json"
31
- },
32
- {
33
- "path": "../../../people-and-teams/profilecard/afm-post-office/tsconfig.json"
34
- },
35
- {
36
- "path": "../../../design-system/theme/afm-post-office/tsconfig.json"
37
- },
38
- {
39
- "path": "../../../design-system/tokens/afm-post-office/tsconfig.json"
40
- },
41
- {
42
- "path": "../../user-picker/afm-post-office/tsconfig.json"
43
- },
44
- {
45
- "path": "../../util-service-support/afm-post-office/tsconfig.json"
46
- }
47
- ]
48
- }
2
+ "extends": "../../../../tsconfig.entry-points.post-office.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "target": "es5",
6
+ "outDir": "../../../../../tsDist/@atlaskit__util-data-test/app",
7
+ "rootDir": "../",
8
+ "composite": true
9
+ },
10
+ "include": [
11
+ "../src/**/*.ts",
12
+ "../src/**/*.tsx"
13
+ ],
14
+ "exclude": [
15
+ "../src/**/__tests__/*",
16
+ "../src/**/*.test.*",
17
+ "../src/**/test.*"
18
+ ],
19
+ "references": [
20
+ {
21
+ "path": "../../../analytics/analytics-next/afm-post-office/tsconfig.json"
22
+ },
23
+ {
24
+ "path": "../../emoji/afm-post-office/tsconfig.json"
25
+ },
26
+ {
27
+ "path": "../../../design-system/icon/afm-post-office/tsconfig.json"
28
+ },
29
+ {
30
+ "path": "../../mention/afm-post-office/tsconfig.json"
31
+ },
32
+ {
33
+ "path": "../../../design-system/primitives/afm-post-office/tsconfig.json"
34
+ },
35
+ {
36
+ "path": "../../../people-and-teams/profilecard/afm-post-office/tsconfig.json"
37
+ },
38
+ {
39
+ "path": "../../../design-system/theme/afm-post-office/tsconfig.json"
40
+ },
41
+ {
42
+ "path": "../../../design-system/tokens/afm-post-office/tsconfig.json"
43
+ },
44
+ {
45
+ "path": "../../user-picker/afm-post-office/tsconfig.json"
46
+ },
47
+ {
48
+ "path": "../../util-service-support/afm-post-office/tsconfig.json"
49
+ }
50
+ ]
51
+ }
@@ -168,6 +168,18 @@ function simpleMockProfilecardClient() {
168
168
  return Promise.reject({
169
169
  reason: 'not built yet'
170
170
  });
171
+ },
172
+ getRovoAgentPermissions: function getRovoAgentPermissions() {
173
+ return Promise.resolve({
174
+ permissions: {
175
+ AGENT_UPDATE: {
176
+ permitted: true
177
+ },
178
+ AGENT_DEACTIVATE: {
179
+ permitted: true
180
+ }
181
+ }
182
+ });
171
183
  }
172
184
  };
173
185
  }
@@ -1,25 +1,25 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ var _typeof = require("@babel/runtime/helpers/typeof");
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
7
8
  exports.default = void 0;
8
9
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
9
- var _react = require("react");
10
- var _react2 = require("@emotion/react");
11
- var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-right"));
10
+ var _react = _interopRequireWildcard(require("react"));
11
+ var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-right"));
12
+ var _primitives = require("@atlaskit/primitives");
12
13
  var _colors = require("@atlaskit/theme/colors");
13
- /**
14
- * @jsxRuntime classic
15
- * @jsx jsx
16
- */
17
-
18
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
19
-
20
- var wrapper = (0, _react2.css)({
14
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
15
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
16
+ var containerStyles = (0, _primitives.xcss)({
21
17
  display: 'flex'
22
18
  });
19
+ var iconWrapperStyles = (0, _primitives.xcss)({
20
+ marginTop: 'space.050',
21
+ marginLeft: 'space.050'
22
+ });
23
23
  var _default = exports.default = function _default() {
24
24
  var _useState = (0, _react.useState)(false),
25
25
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
@@ -31,14 +31,18 @@ var _default = exports.default = function _default() {
31
31
  var onMouseLeave = (0, _react.useCallback)(function () {
32
32
  return setHoverState(false);
33
33
  }, [setHoverState]);
34
- return (0, _react2.jsx)("div", {
35
- css: wrapper,
34
+ return /*#__PURE__*/_react.default.createElement(_primitives.Box, {
35
+ xcss: containerStyles,
36
36
  onMouseEnter: onMouseEnter,
37
37
  onMouseLeave: onMouseLeave
38
- }, (0, _react2.jsx)(_chevronRight.default, {
38
+ }, /*#__PURE__*/_react.default.createElement(_primitives.Box, {
39
+ xcss: iconWrapperStyles
40
+ }, /*#__PURE__*/_react.default.createElement(_chevronRight.default, {
41
+ LEGACY_margin: "var(--ds-space-negative-050, -4px)".concat(" 0 0 ", "var(--ds-space-negative-050, -4px)"),
39
42
  testId: "chevron-right-icon",
40
43
  label: "chevron right",
41
- size: "large",
42
- primaryColor: "var(--ds-text-subtlest, ".concat(isMouseHovered ? _colors.N200 : _colors.N50, ")")
43
- }));
44
+ LEGACY_size: "large",
45
+ color: "var(--ds-text-subtlest, ".concat(isMouseHovered ? _colors.N200 : _colors.N50, ")"),
46
+ spacing: "spacious"
47
+ })));
44
48
  };
@@ -106,6 +106,18 @@ export function simpleMockProfilecardClient() {
106
106
  return Promise.reject({
107
107
  reason: 'not built yet'
108
108
  });
109
+ },
110
+ getRovoAgentPermissions: () => {
111
+ return Promise.resolve({
112
+ permissions: {
113
+ AGENT_UPDATE: {
114
+ permitted: true
115
+ },
116
+ AGENT_DEACTIVATE: {
117
+ permitted: true
118
+ }
119
+ }
120
+ });
109
121
  }
110
122
  };
111
123
  }
@@ -1,27 +1,30 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { useCallback, useState } from 'react';
6
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
- import { css, jsx } from '@emotion/react';
8
- import ChevronRightIcon from '@atlaskit/icon/glyph/chevron-right';
1
+ import React, { useCallback, useState } from 'react';
2
+ import ChevronRightIcon from '@atlaskit/icon/utility/migration/chevron-right';
3
+ import { Box, xcss } from '@atlaskit/primitives';
9
4
  import { N50, N200 } from '@atlaskit/theme/colors';
10
- const wrapper = css({
5
+ const containerStyles = xcss({
11
6
  display: 'flex'
12
7
  });
8
+ const iconWrapperStyles = xcss({
9
+ marginTop: 'space.050',
10
+ marginLeft: 'space.050'
11
+ });
13
12
  export default (() => {
14
13
  const [isMouseHovered, setHoverState] = useState(false);
15
14
  const onMouseEnter = useCallback(() => setHoverState(true), [setHoverState]);
16
15
  const onMouseLeave = useCallback(() => setHoverState(false), [setHoverState]);
17
- return jsx("div", {
18
- css: wrapper,
16
+ return /*#__PURE__*/React.createElement(Box, {
17
+ xcss: containerStyles,
19
18
  onMouseEnter: onMouseEnter,
20
19
  onMouseLeave: onMouseLeave
21
- }, jsx(ChevronRightIcon, {
20
+ }, /*#__PURE__*/React.createElement(Box, {
21
+ xcss: iconWrapperStyles
22
+ }, /*#__PURE__*/React.createElement(ChevronRightIcon, {
23
+ LEGACY_margin: `${"var(--ds-space-negative-050, -4px)"} 0 0 ${"var(--ds-space-negative-050, -4px)"}`,
22
24
  testId: "chevron-right-icon",
23
25
  label: "chevron right",
24
- size: "large",
25
- primaryColor: `var(--ds-text-subtlest, ${isMouseHovered ? N200 : N50})`
26
- }));
26
+ LEGACY_size: "large",
27
+ color: `var(--ds-text-subtlest, ${isMouseHovered ? N200 : N50})`,
28
+ spacing: "spacious"
29
+ })));
27
30
  });
@@ -160,6 +160,18 @@ export function simpleMockProfilecardClient() {
160
160
  return Promise.reject({
161
161
  reason: 'not built yet'
162
162
  });
163
+ },
164
+ getRovoAgentPermissions: function getRovoAgentPermissions() {
165
+ return Promise.resolve({
166
+ permissions: {
167
+ AGENT_UPDATE: {
168
+ permitted: true
169
+ },
170
+ AGENT_DEACTIVATE: {
171
+ permitted: true
172
+ }
173
+ }
174
+ });
163
175
  }
164
176
  };
165
177
  }
@@ -1,16 +1,15 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
- /**
3
- * @jsxRuntime classic
4
- * @jsx jsx
5
- */
6
- import { useCallback, useState } from 'react';
7
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
- import { css, jsx } from '@emotion/react';
9
- import ChevronRightIcon from '@atlaskit/icon/glyph/chevron-right';
2
+ import React, { useCallback, useState } from 'react';
3
+ import ChevronRightIcon from '@atlaskit/icon/utility/migration/chevron-right';
4
+ import { Box, xcss } from '@atlaskit/primitives';
10
5
  import { N50, N200 } from '@atlaskit/theme/colors';
11
- var wrapper = css({
6
+ var containerStyles = xcss({
12
7
  display: 'flex'
13
8
  });
9
+ var iconWrapperStyles = xcss({
10
+ marginTop: 'space.050',
11
+ marginLeft: 'space.050'
12
+ });
14
13
  export default (function () {
15
14
  var _useState = useState(false),
16
15
  _useState2 = _slicedToArray(_useState, 2),
@@ -22,14 +21,18 @@ export default (function () {
22
21
  var onMouseLeave = useCallback(function () {
23
22
  return setHoverState(false);
24
23
  }, [setHoverState]);
25
- return jsx("div", {
26
- css: wrapper,
24
+ return /*#__PURE__*/React.createElement(Box, {
25
+ xcss: containerStyles,
27
26
  onMouseEnter: onMouseEnter,
28
27
  onMouseLeave: onMouseLeave
29
- }, jsx(ChevronRightIcon, {
28
+ }, /*#__PURE__*/React.createElement(Box, {
29
+ xcss: iconWrapperStyles
30
+ }, /*#__PURE__*/React.createElement(ChevronRightIcon, {
31
+ LEGACY_margin: "var(--ds-space-negative-050, -4px)".concat(" 0 0 ", "var(--ds-space-negative-050, -4px)"),
30
32
  testId: "chevron-right-icon",
31
33
  label: "chevron right",
32
- size: "large",
33
- primaryColor: "var(--ds-text-subtlest, ".concat(isMouseHovered ? N200 : N50, ")")
34
- }));
34
+ LEGACY_size: "large",
35
+ color: "var(--ds-text-subtlest, ".concat(isMouseHovered ? N200 : N50, ")"),
36
+ spacing: "spacious"
37
+ })));
35
38
  });
@@ -1,3 +1,3 @@
1
- import { jsx } from '@emotion/react';
2
- declare const _default: () => jsx.JSX.Element;
1
+ /// <reference types="react" />
2
+ declare const _default: () => JSX.Element;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- import { jsx } from '@emotion/react';
2
- declare const _default: () => jsx.JSX.Element;
1
+ /// <reference types="react" />
2
+ declare const _default: () => JSX.Element;
3
3
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/util-data-test",
3
- "version": "17.11.6",
3
+ "version": "17.13.0",
4
4
  "description": "Shared test and story data",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -69,14 +69,14 @@
69
69
  "@atlaskit/analytics-next": "^10.1.0",
70
70
  "@atlaskit/emoji": "67.9.0",
71
71
  "@atlaskit/icon": "^22.24.0",
72
- "@atlaskit/mention": "23.3.3",
73
- "@atlaskit/profilecard": "^20.8.0",
72
+ "@atlaskit/mention": "23.3.4",
73
+ "@atlaskit/primitives": "^13.1.0",
74
+ "@atlaskit/profilecard": "^20.10.0",
74
75
  "@atlaskit/theme": "^14.0.0",
75
- "@atlaskit/tokens": "^2.0.0",
76
- "@atlaskit/user-picker": "10.26.4",
76
+ "@atlaskit/tokens": "^2.2.0",
77
+ "@atlaskit/user-picker": "10.26.5",
77
78
  "@atlaskit/util-service-support": "^6.2.0",
78
79
  "@babel/runtime": "^7.0.0",
79
- "@emotion/react": "^11.7.1",
80
80
  "lodash": "^4.17.21",
81
81
  "memoize-one": "^6.0.0",
82
82
  "uuid": "^3.1.0"
package/.eslintrc.js DELETED
@@ -1,6 +0,0 @@
1
- module.exports = {
2
- rules: {
3
- // We're using relative imports on test utility packages to avoid circular dependencies
4
- '@atlassian/tangerine/import/no-relative-package-imports': 'off',
5
- },
6
- };