@raystack/chronicle 0.1.0-canary.5a730d4 → 0.1.0-canary.c5d277e
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/dist/cli/index.js
CHANGED
|
@@ -38,6 +38,12 @@ async function createViteConfig(options) {
|
|
|
38
38
|
alias: {
|
|
39
39
|
"@": path5.resolve(root, "src"),
|
|
40
40
|
"@content": contentDir
|
|
41
|
+
},
|
|
42
|
+
dedupe: ["react", "react-dom", "react/jsx-runtime", "react/jsx-dev-runtime"]
|
|
43
|
+
},
|
|
44
|
+
server: {
|
|
45
|
+
fs: {
|
|
46
|
+
allow: [root, contentDir]
|
|
41
47
|
}
|
|
42
48
|
},
|
|
43
49
|
plugins: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raystack/chronicle",
|
|
3
|
-
"version": "0.1.0-canary.
|
|
3
|
+
"version": "0.1.0-canary.c5d277e",
|
|
4
4
|
"description": "Config-driven documentation framework",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -48,7 +48,6 @@
|
|
|
48
48
|
"mermaid": "^11.13.0",
|
|
49
49
|
"openapi-types": "^12.1.3",
|
|
50
50
|
"react": "^19.0.0",
|
|
51
|
-
"react-device-detect": "^2.2.3",
|
|
52
51
|
"react-dom": "^19.0.0",
|
|
53
52
|
"react-router-dom": "^7.13.1",
|
|
54
53
|
"remark-directive": "^4.0.0",
|
|
@@ -5,7 +5,6 @@ import { useNavigate } from "react-router-dom";
|
|
|
5
5
|
import { Button, Command, Dialog, Text } from "@raystack/apsara";
|
|
6
6
|
import { cx } from "class-variance-authority";
|
|
7
7
|
import { DocumentIcon, HashtagIcon } from "@heroicons/react/24/outline";
|
|
8
|
-
import { isMacOs } from "react-device-detect";
|
|
9
8
|
import { MethodBadge } from "@/components/api/method-badge";
|
|
10
9
|
import styles from "./search.module.css";
|
|
11
10
|
|
|
@@ -45,7 +44,7 @@ function SearchShortcutKey({ className }: { className?: string }) {
|
|
|
45
44
|
const [key, setKey] = useState("\u2318");
|
|
46
45
|
|
|
47
46
|
useEffect(() => {
|
|
48
|
-
setKey(
|
|
47
|
+
setKey(navigator.platform?.startsWith("Mac") ? "\u2318" : "Ctrl");
|
|
49
48
|
}, []);
|
|
50
49
|
|
|
51
50
|
return (
|
|
@@ -25,6 +25,12 @@ export async function createViteConfig(options: ViteConfigOptions): Promise<Inli
|
|
|
25
25
|
'@': path.resolve(root, 'src'),
|
|
26
26
|
'@content': contentDir,
|
|
27
27
|
},
|
|
28
|
+
dedupe: ['react', 'react-dom', 'react/jsx-runtime', 'react/jsx-dev-runtime'],
|
|
29
|
+
},
|
|
30
|
+
server: {
|
|
31
|
+
fs: {
|
|
32
|
+
allow: [root, contentDir],
|
|
33
|
+
},
|
|
28
34
|
},
|
|
29
35
|
plugins: [
|
|
30
36
|
mdx({
|