@atlaskit/rating 0.3.26 → 0.3.28

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/rating
2
2
 
3
+ ## 0.3.28
4
+
5
+ ### Patch Changes
6
+
7
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
8
+
9
+ ## 0.3.27
10
+
11
+ ### Patch Changes
12
+
13
+ - [#65957](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65957) [`18bda6c93ac8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/18bda6c93ac8) - Migrate @atlaskit/rating to use declarative entry points
14
+
3
15
  ## 0.3.26
4
16
 
5
17
  ### Patch Changes
@@ -14,8 +14,8 @@ var _starFilled = _interopRequireDefault(require("@atlaskit/icon/glyph/star-fill
14
14
  var _colors = require("@atlaskit/theme/colors");
15
15
  var _rating = _interopRequireDefault(require("./rating"));
16
16
  var _excluded = ["size", "color"];
17
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
18
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
+ 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); }
18
+ 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 && Object.prototype.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; }
19
19
  var Star = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
20
20
  var _ref$size = _ref.size,
21
21
  size = _ref$size === void 0 ? 'large' : _ref$size,
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@atlaskit/rating",
3
- "version": "0.3.26",
3
+ "version": "0.3.28",
4
4
  "description": "An accessible rating component that can be heavily customized.",
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",
@@ -23,19 +23,18 @@
23
23
  "sideEffects": false,
24
24
  "atlaskit:src": "src/index.tsx",
25
25
  "atlassian": {
26
- "team": "Dev Portal",
27
- "deprecatedAutoEntryPoints": true,
26
+ "team": "Ecosystem - Discover",
28
27
  "releaseModel": "continuous",
29
28
  "website": {
30
29
  "name": "Rating"
31
30
  }
32
31
  },
33
32
  "dependencies": {
34
- "@atlaskit/icon": "^22.0.0",
33
+ "@atlaskit/icon": "^22.1.0",
35
34
  "@atlaskit/motion": "^1.5.0",
36
35
  "@atlaskit/theme": "^12.6.0",
37
- "@atlaskit/tokens": "^1.28.0",
38
- "@atlaskit/tooltip": "^18.0.0",
36
+ "@atlaskit/tokens": "^1.42.0",
37
+ "@atlaskit/tooltip": "^18.1.0",
39
38
  "@atlaskit/visually-hidden": "^1.2.3",
40
39
  "@babel/runtime": "^7.0.0",
41
40
  "@emotion/react": "^11.7.1"
@@ -48,7 +47,7 @@
48
47
  "@atlaskit/visual-regression": "*",
49
48
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
50
49
  "@testing-library/react": "^12.1.5",
51
- "typescript": "~4.9.5"
50
+ "typescript": "~5.4.2"
52
51
  },
53
52
  "techstack": {
54
53
  "@atlassian/frontend": {
@@ -65,5 +64,8 @@
65
64
  }
66
65
  },
67
66
  "homepage": "https://atlaskit.atlassian.com/packages/design-system/rating",
68
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
69
- }
67
+ "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",
68
+ "af:exports": {
69
+ ".": "./src/index.tsx"
70
+ }
71
+ }
@@ -1,62 +0,0 @@
1
- ## API Report File for "@atlaskit/rating"
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 { jsx } from '@emotion/react';
11
- import { default as React_2 } from 'react';
12
- import { RefAttributes } from 'react';
13
-
14
- // @public (undocumented)
15
- export interface InternalRatingProps extends RatingProps {
16
- render: RatingRender;
17
- }
18
-
19
- // @public (undocumented)
20
- export const Rating: ForwardRefExoticComponent<InternalRatingProps & RefAttributes<HTMLLabelElement>>;
21
-
22
- // @public (undocumented)
23
- export function RatingGroup({ groupName, onChange, defaultValue, value, testId, children, }: RatingGroupProps): jsx.JSX.Element;
24
-
25
- // @public (undocumented)
26
- export interface RatingGroupProps {
27
- children: JSX.Element | JSX.Element[];
28
- defaultValue?: string;
29
- groupName?: string;
30
- onChange?: (value?: string) => void;
31
- testId?: string;
32
- value?: string;
33
- }
34
-
35
- // @public (undocumented)
36
- export interface RatingProps {
37
- id?: string;
38
- isChecked?: boolean;
39
- label: string;
40
- name?: string;
41
- onChange?: (value?: string) => void;
42
- testId?: string;
43
- value: string;
44
- }
45
-
46
- // @public (undocumented)
47
- export type RatingRender = (props: {
48
- isChecked: boolean;
49
- }) => React.ReactNode;
50
-
51
- // @public (undocumented)
52
- export const Star: React_2.ForwardRefExoticComponent<StarProps & React_2.RefAttributes<HTMLLabelElement>>;
53
-
54
- // @public (undocumented)
55
- export interface StarProps extends RatingProps {
56
- color?: string;
57
- size?: 'large' | 'medium' | 'small' | 'xlarge';
58
- }
59
-
60
- // (No @packageDocumentation comment for this package)
61
-
62
- ```