@xyd-js/core 0.1.0-xyd.1 → 0.1.0-xyd.10

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 ADDED
@@ -0,0 +1,43 @@
1
+ # @xyd-js/core
2
+
3
+ ## 0.1.0-xyd.10
4
+
5
+ ### Patch Changes
6
+
7
+ - refactor, ui tweaks
8
+
9
+ ## 0.1.0-xyd.9
10
+
11
+ ### Patch Changes
12
+
13
+ - refactor, tweaks and ui changes
14
+
15
+ ## 0.1.0-xyd.8
16
+
17
+ ### Patch Changes
18
+
19
+ - ui tweaks
20
+
21
+ ## 0.1.0-xyd.7
22
+
23
+ ### Patch Changes
24
+
25
+ - ui tweaks, and some code refactor
26
+
27
+ ## 0.1.0-xyd.6
28
+
29
+ ### Patch Changes
30
+
31
+ - use react-router 7.1.1
32
+
33
+ ## 0.1.0-xyd.5
34
+
35
+ ### Patch Changes
36
+
37
+ - another update
38
+
39
+ ## 0.1.0-xyd.4
40
+
41
+ ### Patch Changes
42
+
43
+ - initial changeset bump
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 xyd
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.d.mts CHANGED
@@ -1,5 +1,8 @@
1
+ import React from 'react';
2
+
1
3
  interface FrontMatter {
2
4
  title: string | {
5
+ title: string;
3
6
  code: string;
4
7
  };
5
8
  group?: string[];
@@ -18,7 +21,7 @@ interface Settings {
18
21
  }
19
22
  interface Styling {
20
23
  name: string;
21
- logo?: string | Logo | JSX.Element;
24
+ logo?: string | Logo | React.JSX.Element;
22
25
  favicon?: string;
23
26
  colors?: Colors;
24
27
  theme?: ThemeType;
@@ -110,7 +113,7 @@ interface CallToAction {
110
113
  arrow?: boolean;
111
114
  }
112
115
  interface Anchor {
113
- icon?: string | JSX.Element;
116
+ icon?: string | React.JSX.Element;
114
117
  name?: string;
115
118
  url?: string;
116
119
  }
@@ -136,6 +139,7 @@ interface API {
136
139
  info?: APIInfo;
137
140
  openapi?: APIFile;
138
141
  graphql?: APIFile;
142
+ sources?: APIFile;
139
143
  match?: {
140
144
  graphql?: string;
141
145
  openapi?: string;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,8 @@
1
+ import React from 'react';
2
+
1
3
  interface FrontMatter {
2
4
  title: string | {
5
+ title: string;
3
6
  code: string;
4
7
  };
5
8
  group?: string[];
@@ -18,7 +21,7 @@ interface Settings {
18
21
  }
19
22
  interface Styling {
20
23
  name: string;
21
- logo?: string | Logo | JSX.Element;
24
+ logo?: string | Logo | React.JSX.Element;
22
25
  favicon?: string;
23
26
  colors?: Colors;
24
27
  theme?: ThemeType;
@@ -110,7 +113,7 @@ interface CallToAction {
110
113
  arrow?: boolean;
111
114
  }
112
115
  interface Anchor {
113
- icon?: string | JSX.Element;
116
+ icon?: string | React.JSX.Element;
114
117
  name?: string;
115
118
  url?: string;
116
119
  }
@@ -136,6 +139,7 @@ interface API {
136
139
  info?: APIInfo;
137
140
  openapi?: APIFile;
138
141
  graphql?: APIFile;
142
+ sources?: APIFile;
139
143
  match?: {
140
144
  graphql?: string;
141
145
  openapi?: string;
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "@xyd-js/core",
3
- "version": "0.1.0-xyd.1",
3
+ "version": "0.1.0-xyd.10",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "dependencies": {},
7
7
  "devDependencies": {
8
- "tsup": "^8.3.0"
8
+ "tsup": "^8.3.0",
9
+ "rimraf": "^3.0.2",
10
+ "typescript": "^4.5.5"
9
11
  },
10
12
  "scripts": {
11
13
  "clean": "rimraf build",
@@ -1,5 +1,6 @@
1
1
  export interface FrontMatter {
2
2
  title: string | {
3
+ title: string
3
4
  code: string // TODO: in the future mechanism similar to codehike
4
5
  }
5
6
  group?: string[]
@@ -1,3 +1,5 @@
1
+ import React from "react";
2
+
1
3
  export interface Settings {
2
4
  // styling configurations for the documentation
3
5
  styling?: Styling
@@ -20,7 +22,7 @@ export interface Styling {
20
22
 
21
23
  // Path to logo image or object with path to “light” and “dark” mode logo images, and where the logo links to. SVG format is recommended.
22
24
  // It does not pixelate and the file size is generally smaller.
23
- logo?: string | Logo | JSX.Element
25
+ logo?: string | Logo | React.JSX.Element
24
26
 
25
27
  // Path to the favicon image. For example: /path/to/favicon.svg
26
28
  favicon?: string;
@@ -222,7 +224,7 @@ export interface CallToAction {
222
224
 
223
225
  export interface Anchor {
224
226
  // The Font Awesome or JSX icon used to feature the anchor.
225
- icon?: string | JSX.Element
227
+ icon?: string | React.JSX.Element
226
228
 
227
229
  // The name of the anchor label.
228
230
  name?: string
@@ -274,7 +276,10 @@ export interface API {
274
276
  // A string or an array of strings of URL(s) or relative path(s) pointing to your GraphQL file.
275
277
  graphql?: APIFile
276
278
 
277
- // TODO: better in the future?
279
+ // A string or an array of strings of URL(s) or relative path(s) pointing to your source code folder.
280
+ sources?: APIFile
281
+
282
+ // TODO: better in the future? -> move outside of API ?
278
283
  match?: {
279
284
  graphql?: string
280
285
  openapi?: string