@umijs/plugin-docs 4.0.0-canary.20220422.2 → 4.0.0-canary.20220425.1

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.
@@ -63,6 +63,7 @@ export default () => {
63
63
  return (
64
64
  <Fragment>
65
65
  <div
66
+ id="search-input-wrapper"
66
67
  className="rounded-lg w-40 lg:w-64 flex items-center pr-2 flex-row hover:bg-gray-50
67
68
  transition duration-300 bg-gray-100 border border-white focus-within:border-gray-100
68
69
  focus-within:bg-white dark:bg-gray-700 dark:border-gray-700 relative
@@ -84,6 +85,7 @@ export default () => {
84
85
  {isMac ? macSearchKey : windowsSearchKey}
85
86
  </div>
86
87
  <div
88
+ id="search-results-wrapper"
87
89
  className={cx(
88
90
  'absolute transition-all duration-500 top-12 w-96 rounded-lg',
89
91
  'cursor-pointer shadow overflow-hidden',
@@ -49,7 +49,7 @@ export default (props: SidebarProps) => {
49
49
  if (to === window.location.pathname) {
50
50
  return (
51
51
  <div
52
- key={child}
52
+ key={route.path}
53
53
  className="my-2 hover:text-blue-400 transition-all
54
54
  bg-blue-50 text-blue-400 px-4 py-1
55
55
  rounded-lg cursor-default dark:bg-blue-900 dark:text-blue-200"
@@ -61,6 +61,7 @@ export default (props: SidebarProps) => {
61
61
 
62
62
  return (
63
63
  <components.Link
64
+ key={route.path}
64
65
  to={route.path}
65
66
  onClick={() =>
66
67
  props.setMenuOpened && props.setMenuOpened((o) => !o)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/plugin-docs",
3
- "version": "4.0.0-canary.20220422.2",
3
+ "version": "4.0.0-canary.20220425.1",
4
4
  "description": "@umijs/plugin-docs",
5
5
  "homepage": "https://github.com/umijs/umi-next/tree/master/packages/plugin-docs#readme",
6
6
  "bugs": "https://github.com/umijs/umi-next/issues",
@@ -19,11 +19,11 @@
19
19
  "scripts": {
20
20
  "build": "pnpm tsc",
21
21
  "build:css": "tailwindcss -i ./client/theme-doc/tailwind.css -o ./client/theme-doc/tailwind.out.css",
22
- "build:deps": "pnpm esno ../../scripts/bundleDeps.ts",
22
+ "build:deps": "umi-scripts bundleDeps",
23
23
  "build:extra": "pnpm build:css && pnpm build:deps",
24
24
  "dev": "pnpm build -- --watch",
25
25
  "dev:css": "pnpm build:css -- --watch",
26
- "test": "jest -c ../../jest.turbo.config.ts"
26
+ "test": "umi-scripts jest-turbo"
27
27
  },
28
28
  "dependencies": {
29
29
  "keymaster": "1.6.2",
@@ -39,7 +39,7 @@
39
39
  "rehype-slug": "5.0.1",
40
40
  "remark-gfm": "^3.0.1",
41
41
  "tailwindcss": "^3.0.23",
42
- "umi": "4.0.0-canary.20220422.2"
42
+ "umi": "4.0.0-canary.20220425.1"
43
43
  },
44
44
  "publishConfig": {
45
45
  "access": "public"