@xyd-js/cli 0.1.0-xyd.23 → 0.1.0-xyd.25

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/.cli/index.js CHANGED
@@ -109,7 +109,7 @@ var require_package = __commonJS({
109
109
  "package.json"(exports2, module2) {
110
110
  module2.exports = {
111
111
  name: "@xyd-js/cli",
112
- version: "0.1.0-xyd.23",
112
+ version: "0.1.0-xyd.24",
113
113
  keywords: [],
114
114
  author: "",
115
115
  description: "",
package/.cli/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "scripts": {},
11
11
  "dependencies": {
12
- "@xyd-js/theme-poetry": "0.1.0-xyd.19",
12
+ "@xyd-js/theme-poetry": "0.1.0-xyd.20",
13
13
  "@xyd-js/react-router-dev": "7.1.1-xyd.4",
14
14
  "@readme/oas-to-snippet": "^26.0.1",
15
15
  "@react-router/node": "7.1.1",
@@ -249,6 +249,14 @@ function mdxContent(code: string) {
249
249
  }
250
250
  }
251
251
 
252
+ // TODO: below is a concept only
253
+ // const themeSettings = new ThemeSettings()
254
+ // .toc.hide()
255
+ // .sidebar({
256
+ // clientSideRouting: true
257
+ // })
258
+ // .layout.size("large")
259
+
252
260
  // TODO: in the future more smoother loader - first fast server render then move to ideal position of client and then replace and 3 items at start
253
261
  export default function APIReference({loaderData}: { loaderData: loaderData }) {
254
262
  const content = mdxContent(loaderData.code)
@@ -267,9 +275,11 @@ export default function APIReference({loaderData}: { loaderData: loaderData }) {
267
275
  <Theme
268
276
  themeSettings={{
269
277
  hideToc: true,
270
- bigArticle: true,
271
278
  sidebar: {
272
279
  clientSideRouting: true
280
+ },
281
+ layout: {
282
+ size: "large"
273
283
  }
274
284
  }}
275
285
  >
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyd-js/cli",
3
- "version": "0.1.0-xyd.23",
3
+ "version": "0.1.0-xyd.25",
4
4
  "keywords": [],
5
5
  "author": "",
6
6
  "description": "",
@@ -13,6 +13,10 @@
13
13
  ".cli",
14
14
  "postinstall.js"
15
15
  ],
16
+ "scripts": {
17
+ "build": "tsup",
18
+ "postinstall": "node postinstall.js"
19
+ },
16
20
  "dependencies": {
17
21
  "@xyd-js/react-router-dev": "7.1.1-xyd.4",
18
22
  "arg": "^5.0.2",
@@ -57,15 +61,11 @@
57
61
  "vite-tsconfig-paths": "^5.1.4"
58
62
  },
59
63
  "devDependencies": {
64
+ "@xyd-js/documan": "workspace:*",
60
65
  "tsup": "^8.3.0",
61
66
  "arg": "^5.0.2",
62
67
  "colors": "^1.4.0",
63
68
  "semver": "^7.6.3",
64
- "vite-tsconfig-paths": "^5.1.4",
65
- "@xyd-js/documan": "0.1.0-xyd.21"
66
- },
67
- "scripts": {
68
- "build": "tsup",
69
- "postinstall": "node postinstall.js"
69
+ "vite-tsconfig-paths": "^5.1.4"
70
70
  }
71
71
  }