@redocly/theme 0.5.1 → 0.6.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/lib/index.d.ts CHANGED
@@ -17,5 +17,6 @@ export * from './OperationBadge';
17
17
  export * from './TableOfContent';
18
18
  export * from './Profile';
19
19
  export * from './ColorModeSwitcher';
20
+ export * from './Sidebar';
20
21
  export * from './types/config';
21
22
  export * from './config';
package/lib/index.js CHANGED
@@ -33,6 +33,7 @@ __exportStar(require("./OperationBadge"), exports);
33
33
  __exportStar(require("./TableOfContent"), exports);
34
34
  __exportStar(require("./Profile"), exports);
35
35
  __exportStar(require("./ColorModeSwitcher"), exports);
36
+ __exportStar(require("./Sidebar"), exports);
36
37
  __exportStar(require("./types/config"), exports);
37
38
  __exportStar(require("./config"), exports);
38
39
  //# sourceMappingURL=index.js.map
@@ -6,7 +6,7 @@ function withPathPrefix(link) {
6
6
  }
7
7
  exports.withPathPrefix = withPathPrefix;
8
8
  function timeAgo(lastModified) {
9
- // should return format(lastModified) in new-hope
9
+ // should return format(lastModified) in portal
10
10
  const d = new Date(lastModified);
11
11
  return `${d.getDate()}-${d.getMonth() + 1}-${d.getFullYear()}`;
12
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/theme",
3
- "version": "0.5.1",
3
+ "version": "0.6.0",
4
4
  "description": "Shared UI components",
5
5
  "author": "team@redocly.com",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -62,7 +62,7 @@
62
62
  "@testing-library/react": "^12.1.4",
63
63
  "@testing-library/react-hooks": "^8.0.1",
64
64
  "@testing-library/user-event": "^13.5.0",
65
- "@types/jest": "^29.1.2",
65
+ "@types/jest": "^29.2.1",
66
66
  "@types/jest-when": "^3.5.2",
67
67
  "@types/lodash.throttle": "^4.1.7",
68
68
  "@types/node": "^16.11.26",
@@ -76,14 +76,12 @@
76
76
  "@typescript-eslint/parser": "^5.23.0",
77
77
  "chromatic": "^6.10.2",
78
78
  "esbuild": "^0.15.11",
79
- "jest": "^29.2.0",
80
- "jest-environment-jsdom": "^29.2.0",
79
+ "jest": "^29.2.2",
80
+ "jest-environment-jsdom": "^29.2.2",
81
81
  "jest-styled-components": "^7.1.1",
82
82
  "jest-when": "^3.5.1",
83
83
  "lodash.throttle": "^4.1.1",
84
84
  "npm-run-all": "^4.1.5",
85
- "react": "^17.0.2",
86
- "react-dom": "^17.0.2",
87
85
  "react-refresh": "^0.14.0",
88
86
  "react-router-dom": "^5.3.0",
89
87
  "storybook-addon-pseudo-states": "^1.15.1",
package/src/index.ts CHANGED
@@ -17,6 +17,6 @@ export * from './OperationBadge';
17
17
  export * from './TableOfContent';
18
18
  export * from './Profile';
19
19
  export * from './ColorModeSwitcher';
20
-
20
+ export * from './Sidebar';
21
21
  export * from './types/config';
22
22
  export * from './config';
@@ -3,7 +3,7 @@ export function withPathPrefix(link: string): string {
3
3
  }
4
4
 
5
5
  export function timeAgo(lastModified: string | Date): string {
6
- // should return format(lastModified) in new-hope
6
+ // should return format(lastModified) in portal
7
7
  const d = new Date(lastModified);
8
8
  return `${d.getDate()}-${d.getMonth() + 1}-${d.getFullYear()}`;
9
9
  }