@xyd-js/core 0.1.0-xyd.4 → 0.1.0-xyd.54

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/tsconfig.json CHANGED
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "compilerOptions": {
3
+ "outDir": "./dist",
3
4
  "module": "esnext",
4
5
  "esModuleInterop": true,
5
6
  "moduleResolution": "node",
@@ -0,0 +1,6 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": ""
5
+ }
6
+ }
package/tsup.config.ts CHANGED
@@ -2,7 +2,7 @@ import {defineConfig, Options} from 'tsup';
2
2
 
3
3
  const config: Options = {
4
4
  entry: ['index.ts'],
5
- format: ['esm', 'cjs'], // Output both ESM and CJS formats
5
+ format: ['esm'], // Output both ESM and CJS formats
6
6
  target: 'node16', // Ensure compatibility with Node.js 16
7
7
  dts: {
8
8
  entry: 'index.ts', // Specify the entry for DTS
@@ -16,6 +16,7 @@ const config: Options = {
16
16
  options.external = ['node:fs/promises']; // Mark 'node:fs/promises' as external
17
17
  options.loader = {'.js': 'jsx'}; // Ensure proper handling of .js files
18
18
  },
19
+ tsconfig: 'tsconfig.tsup.json',
19
20
  ignoreWatch: ['node_modules', 'dist', '.git', 'build'] // Exclude unnecessary directories
20
21
  }
21
22
 
package/dist/index.d.mts DELETED
@@ -1,186 +0,0 @@
1
- import React from 'react';
2
-
3
- interface FrontMatter {
4
- title: string | {
5
- title: string;
6
- code: string;
7
- };
8
- group?: string[];
9
- }
10
- type PageFrontMatter = {
11
- [page: string]: FrontMatter;
12
- };
13
-
14
- interface Settings {
15
- styling?: Styling;
16
- structure?: Structure;
17
- api?: API;
18
- integrations?: Integrations;
19
- redirects?: Redirects[];
20
- seo?: SEO;
21
- }
22
- interface Styling {
23
- name: string;
24
- logo?: string | Logo | React.JSX.Element;
25
- favicon?: string;
26
- colors?: Colors;
27
- theme?: ThemeType;
28
- layout?: LayoutType;
29
- background?: Background;
30
- backgroundImage?: string;
31
- font?: FontDetailsType | {
32
- headings?: FontDetailsType;
33
- body?: FontDetailsType;
34
- };
35
- modeToggle?: ModeToggle;
36
- sidebar?: StyleSidebar;
37
- topbar?: Topbar;
38
- search?: SearchType;
39
- rounded?: Rounded;
40
- }
41
- interface Logo {
42
- light?: string;
43
- dark?: string;
44
- href?: string;
45
- }
46
- interface Colors {
47
- primary: string;
48
- light?: string;
49
- dark?: string;
50
- background?: {
51
- light: string;
52
- dark: string;
53
- };
54
- }
55
- interface Background {
56
- style?: "gradient" | "grid" | "windows";
57
- }
58
- interface FontDetailsType {
59
- family: string;
60
- weight?: number;
61
- url?: string;
62
- format?: "woff" | "woff2";
63
- }
64
- interface ModeToggle {
65
- default?: "light" | "dark";
66
- isHidden?: boolean;
67
- }
68
- interface StyleSidebar {
69
- items: "container" | "card" | "border" | "undecorated";
70
- }
71
- interface Topbar {
72
- style: "default" | "gradient";
73
- }
74
- type ThemeType = "gusto" | "poetry" | "plato" | "picasso";
75
- type LayoutType = "app" | "default";
76
- type SearchType = "side" | "top";
77
- type Rounded = "default" | "sharp";
78
- interface Structure {
79
- sidebar: (SidebarMulti | Sidebar)[];
80
- header?: Header[];
81
- topbarCtaButton?: CallToAction;
82
- versions?: string[];
83
- anchors?: AnchorRoot;
84
- footerSocials?: FooterSocials;
85
- feedback?: Feedback;
86
- search?: Search;
87
- }
88
- interface SidebarMulti {
89
- match: string;
90
- items: Sidebar[];
91
- }
92
- interface Sidebar {
93
- group?: string;
94
- pages?: (string | Sidebar)[];
95
- icon?: string;
96
- iconType?: string;
97
- }
98
- interface SubHeader {
99
- match: string;
100
- name: string;
101
- items: Header[];
102
- }
103
- interface Header {
104
- name?: string;
105
- url?: string;
106
- sub?: SubHeader;
107
- }
108
- interface CallToAction {
109
- type?: "link" | "github";
110
- url?: string;
111
- name?: string;
112
- style?: "pill" | "roundedRectangle";
113
- arrow?: boolean;
114
- }
115
- interface Anchor {
116
- icon?: string | React.JSX.Element;
117
- name?: string;
118
- url?: string;
119
- }
120
- interface AnchorRoot {
121
- bottom: Anchor[];
122
- }
123
- interface FooterSocials {
124
- [key: string]: string;
125
- property: string;
126
- }
127
- interface Feedback {
128
- thumbsRating?: boolean;
129
- suggestEdit?: boolean;
130
- raiseIssue?: boolean;
131
- }
132
- interface Search {
133
- prompt?: string;
134
- }
135
- type APIFile = string | string[] | {
136
- [id: string]: string;
137
- };
138
- interface API {
139
- info?: APIInfo;
140
- openapi?: APIFile;
141
- graphql?: APIFile;
142
- match?: {
143
- graphql?: string;
144
- openapi?: string;
145
- };
146
- }
147
- interface APIInfo {
148
- baseUrl?: string;
149
- auth?: APIAuth;
150
- name?: string;
151
- inputPrefix?: string;
152
- playground?: APIPlayground;
153
- request?: APIInfoRequest;
154
- paramFields?: ApiParamFields;
155
- }
156
- interface APIAuth {
157
- method: "bearer" | "basic" | "key";
158
- }
159
- interface APIPlayground {
160
- mode?: "show" | "simple" | "hide";
161
- }
162
- interface APIInfoRequest {
163
- example?: {
164
- languages?: string[];
165
- };
166
- }
167
- interface ApiParamFields {
168
- expanded: "all" | "topLevel" | "topLevelOneOfs" | "none";
169
- }
170
- interface Integrations {
171
- analytics?: Analytics;
172
- }
173
- interface Analytics {
174
- livesession: {
175
- trackId: string;
176
- };
177
- }
178
- interface Redirects {
179
- source: string;
180
- destination: string;
181
- }
182
- interface SEO {
183
- indexHiddenPages: boolean;
184
- }
185
-
186
- export type { API, APIAuth, APIFile, APIInfo, APIInfoRequest, APIPlayground, Analytics, Anchor, AnchorRoot, ApiParamFields, Background, CallToAction, Colors, Feedback, FontDetailsType, FooterSocials, FrontMatter, Header, Integrations, LayoutType, Logo, ModeToggle, PageFrontMatter, Redirects, Rounded, SEO, Search, SearchType, Settings, Sidebar, SidebarMulti, Structure, StyleSidebar, Styling, SubHeader, ThemeType, Topbar };
package/dist/index.mjs DELETED
@@ -1 +0,0 @@
1
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,9 +0,0 @@
1
- export interface FrontMatter {
2
- title: string | {
3
- title: string
4
- code: string // TODO: in the future mechanism similar to codehike
5
- }
6
- group?: string[]
7
- }
8
-
9
- export type PageFrontMatter = { [page: string]: FrontMatter }