zudoku 0.3.0-dev.85 → 0.3.0-dev.87

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.
Files changed (67) hide show
  1. package/dist/config/validators/InputSidebarSchema.d.ts +176 -0
  2. package/dist/config/validators/InputSidebarSchema.js +71 -0
  3. package/dist/config/validators/InputSidebarSchema.js.map +1 -0
  4. package/dist/config/validators/SidebarSchema.d.ts +13 -173
  5. package/dist/config/validators/SidebarSchema.js +75 -70
  6. package/dist/config/validators/SidebarSchema.js.map +1 -1
  7. package/dist/config/validators/validate.d.ts +5 -5
  8. package/dist/config/validators/validate.js +4 -3
  9. package/dist/config/validators/validate.js.map +1 -1
  10. package/dist/index.d.ts +1 -1
  11. package/dist/lib/components/context/DevPortalProvider.d.ts +1 -1
  12. package/dist/lib/components/context/DevPortalProvider.js +2 -2
  13. package/dist/lib/components/context/DevPortalProvider.js.map +1 -1
  14. package/dist/lib/components/navigation/SidebarCategory.d.ts +2 -2
  15. package/dist/lib/components/navigation/SidebarItem.d.ts +2 -2
  16. package/dist/lib/components/navigation/SidebarItem.js +1 -1
  17. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  18. package/dist/lib/components/navigation/utils.d.ts +6 -6
  19. package/dist/lib/components/navigation/utils.js.map +1 -1
  20. package/dist/lib/core/DevPortalContext.d.ts +3 -3
  21. package/dist/lib/core/DevPortalContext.js +2 -2
  22. package/dist/lib/core/DevPortalContext.js.map +1 -1
  23. package/dist/lib/core/plugins.d.ts +2 -2
  24. package/dist/lib/plugins/openapi/index.js +1 -1
  25. package/dist/lib/plugins/openapi/index.js.map +1 -1
  26. package/dist/vite/plugin-sidebar.js +1 -1
  27. package/dist/vite/plugin-sidebar.js.map +1 -1
  28. package/lib/{AuthenticationPlugin-DgwV0hVu.js → AuthenticationPlugin-B68Pelzd.js} +2 -2
  29. package/lib/{AuthenticationPlugin-DgwV0hVu.js.map → AuthenticationPlugin-B68Pelzd.js.map} +1 -1
  30. package/lib/{Combination-DkycFHkm.js → Combination-BOiWt0Ng.js} +2 -2
  31. package/lib/{Combination-DkycFHkm.js.map → Combination-BOiWt0Ng.js.map} +1 -1
  32. package/lib/{DevPortalProvider-CTxoCHIT.js → DevPortalProvider-D6Tr_uD_.js} +2 -2
  33. package/lib/{DevPortalProvider-CTxoCHIT.js.map → DevPortalProvider-D6Tr_uD_.js.map} +1 -1
  34. package/lib/{Input-BclXSY0g.js → Input-LkQSHT1l.js} +3 -3
  35. package/lib/{Input-BclXSY0g.js.map → Input-LkQSHT1l.js.map} +1 -1
  36. package/lib/{MdxPage-Crlr0GmN.js → MdxPage-PhgXcrKE.js} +2 -2
  37. package/lib/{MdxPage-Crlr0GmN.js.map → MdxPage-PhgXcrKE.js.map} +1 -1
  38. package/lib/{OperationList-CMH3DPpj.js → OperationList-DDLgAusb.js} +4 -4
  39. package/lib/{OperationList-CMH3DPpj.js.map → OperationList-DDLgAusb.js.map} +1 -1
  40. package/lib/{Route-CwXfyIUw.js → Route-2Br45GpS.js} +2 -2
  41. package/lib/{Route-CwXfyIUw.js.map → Route-2Br45GpS.js.map} +1 -1
  42. package/lib/{Spinner-fF-Xv-gw.js → Spinner-CeuEm0Qc.js} +2 -2
  43. package/lib/{Spinner-fF-Xv-gw.js.map → Spinner-CeuEm0Qc.js.map} +1 -1
  44. package/lib/{index-DUrF63A6.js → index-BuVwhb9F.js} +8 -8
  45. package/lib/{index-DUrF63A6.js.map → index-BuVwhb9F.js.map} +1 -1
  46. package/lib/{index-DkuZvRNP.js → index-DiSzJkoL.js} +3 -3
  47. package/lib/{index-DkuZvRNP.js.map → index-DiSzJkoL.js.map} +1 -1
  48. package/lib/{utils-CzT_9Tsn.js → utils-Ctz-5ywK.js} +2 -2
  49. package/lib/{utils-CzT_9Tsn.js.map → utils-Ctz-5ywK.js.map} +1 -1
  50. package/lib/zudoku.auth-clerk.js +1 -1
  51. package/lib/zudoku.auth-openid.js +1 -1
  52. package/lib/zudoku.components.js +189 -189
  53. package/lib/zudoku.components.js.map +1 -1
  54. package/lib/zudoku.plugin-api-keys.js +3 -3
  55. package/lib/zudoku.plugin-markdown.js +1 -1
  56. package/lib/zudoku.plugin-openapi.js +3 -3
  57. package/package.json +1 -1
  58. package/src/lib/components/context/DevPortalProvider.ts +2 -2
  59. package/src/lib/components/navigation/SidebarCategory.tsx +2 -2
  60. package/src/lib/components/navigation/SidebarItem.tsx +7 -3
  61. package/src/lib/components/navigation/utils.ts +9 -9
  62. package/src/lib/core/DevPortalContext.ts +4 -4
  63. package/src/lib/core/plugins.ts +2 -2
  64. package/src/lib/plugins/openapi/index.tsx +3 -3
  65. package/dist/config/validators/ResolvedSidebarSchema.d.ts +0 -18
  66. package/dist/config/validators/ResolvedSidebarSchema.js +0 -76
  67. package/dist/config/validators/ResolvedSidebarSchema.js.map +0 -1
@@ -0,0 +1,176 @@
1
+ import { z } from "zod";
2
+ export declare const BaseInputSidebarItemCategoryLinkDocSchema: z.ZodObject<{
3
+ type: z.ZodLiteral<"doc">;
4
+ id: z.ZodString;
5
+ label: z.ZodOptional<z.ZodString>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ type: "doc";
8
+ id: string;
9
+ label?: string | undefined;
10
+ }, {
11
+ type: "doc";
12
+ id: string;
13
+ label?: string | undefined;
14
+ }>;
15
+ export type BaseInputSidebarItemCategoryLinkDoc = z.infer<typeof BaseInputSidebarItemCategoryLinkDocSchema>;
16
+ export declare const InputSidebarItemCategoryLinkDocSchema: z.ZodUnion<[z.ZodObject<{
17
+ type: z.ZodLiteral<"doc">;
18
+ id: z.ZodString;
19
+ label: z.ZodOptional<z.ZodString>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ type: "doc";
22
+ id: string;
23
+ label?: string | undefined;
24
+ }, {
25
+ type: "doc";
26
+ id: string;
27
+ label?: string | undefined;
28
+ }>, z.ZodString]>;
29
+ export declare const BaseInputSidebarItemDocSchema: z.ZodObject<{
30
+ type: z.ZodLiteral<"doc">;
31
+ id: z.ZodString;
32
+ label: z.ZodOptional<z.ZodString>;
33
+ badge: z.ZodOptional<z.ZodObject<{
34
+ label: z.ZodString;
35
+ color: z.ZodEnum<["green", "blue", "yellow", "red", "purple", "indigo", "gray"]>;
36
+ }, "strip", z.ZodTypeAny, {
37
+ label: string;
38
+ color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray";
39
+ }, {
40
+ label: string;
41
+ color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray";
42
+ }>>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ type: "doc";
45
+ id: string;
46
+ label?: string | undefined;
47
+ badge?: {
48
+ label: string;
49
+ color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray";
50
+ } | undefined;
51
+ }, {
52
+ type: "doc";
53
+ id: string;
54
+ label?: string | undefined;
55
+ badge?: {
56
+ label: string;
57
+ color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray";
58
+ } | undefined;
59
+ }>;
60
+ export type BaseInputSidebarItemDoc = z.infer<typeof BaseInputSidebarItemDocSchema>;
61
+ export declare const InputSidebarItemDocSchema: z.ZodUnion<[z.ZodObject<{
62
+ type: z.ZodLiteral<"doc">;
63
+ id: z.ZodString;
64
+ label: z.ZodOptional<z.ZodString>;
65
+ badge: z.ZodOptional<z.ZodObject<{
66
+ label: z.ZodString;
67
+ color: z.ZodEnum<["green", "blue", "yellow", "red", "purple", "indigo", "gray"]>;
68
+ }, "strip", z.ZodTypeAny, {
69
+ label: string;
70
+ color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray";
71
+ }, {
72
+ label: string;
73
+ color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray";
74
+ }>>;
75
+ }, "strip", z.ZodTypeAny, {
76
+ type: "doc";
77
+ id: string;
78
+ label?: string | undefined;
79
+ badge?: {
80
+ label: string;
81
+ color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray";
82
+ } | undefined;
83
+ }, {
84
+ type: "doc";
85
+ id: string;
86
+ label?: string | undefined;
87
+ badge?: {
88
+ label: string;
89
+ color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray";
90
+ } | undefined;
91
+ }>, z.ZodString]>;
92
+ export declare const InputSidebarItemLinkSchema: z.ZodObject<{
93
+ type: z.ZodLiteral<"link">;
94
+ label: z.ZodString;
95
+ href: z.ZodString;
96
+ description: z.ZodOptional<z.ZodString>;
97
+ badge: z.ZodOptional<z.ZodObject<{
98
+ label: z.ZodString;
99
+ color: z.ZodEnum<["green", "blue", "yellow", "red", "purple", "indigo", "gray"]>;
100
+ }, "strip", z.ZodTypeAny, {
101
+ label: string;
102
+ color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray";
103
+ }, {
104
+ label: string;
105
+ color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray";
106
+ }>>;
107
+ }, "strip", z.ZodTypeAny, {
108
+ type: "link";
109
+ label: string;
110
+ href: string;
111
+ badge?: {
112
+ label: string;
113
+ color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray";
114
+ } | undefined;
115
+ description?: string | undefined;
116
+ }, {
117
+ type: "link";
118
+ label: string;
119
+ href: string;
120
+ badge?: {
121
+ label: string;
122
+ color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray";
123
+ } | undefined;
124
+ description?: string | undefined;
125
+ }>;
126
+ export type InputSidebarItemLink = z.infer<typeof InputSidebarItemLinkSchema>;
127
+ export declare const BaseInputSidebarItemCategorySchema: z.ZodObject<{
128
+ type: z.ZodLiteral<"category">;
129
+ label: z.ZodString;
130
+ description: z.ZodOptional<z.ZodString>;
131
+ collapsible: z.ZodOptional<z.ZodBoolean>;
132
+ collapsed: z.ZodOptional<z.ZodBoolean>;
133
+ link: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
134
+ type: z.ZodLiteral<"doc">;
135
+ id: z.ZodString;
136
+ label: z.ZodOptional<z.ZodString>;
137
+ }, "strip", z.ZodTypeAny, {
138
+ type: "doc";
139
+ id: string;
140
+ label?: string | undefined;
141
+ }, {
142
+ type: "doc";
143
+ id: string;
144
+ label?: string | undefined;
145
+ }>, z.ZodString]>>;
146
+ }, "strip", z.ZodTypeAny, {
147
+ type: "category";
148
+ label: string;
149
+ link?: string | {
150
+ type: "doc";
151
+ id: string;
152
+ label?: string | undefined;
153
+ } | undefined;
154
+ description?: string | undefined;
155
+ collapsible?: boolean | undefined;
156
+ collapsed?: boolean | undefined;
157
+ }, {
158
+ type: "category";
159
+ label: string;
160
+ link?: string | {
161
+ type: "doc";
162
+ id: string;
163
+ label?: string | undefined;
164
+ } | undefined;
165
+ description?: string | undefined;
166
+ collapsible?: boolean | undefined;
167
+ collapsed?: boolean | undefined;
168
+ }>;
169
+ export type InputSidebarItem = z.infer<typeof InputSidebarItemDocSchema> | z.infer<typeof InputSidebarItemLinkSchema> | z.infer<typeof InputSidebarItemCategorySchema>;
170
+ export declare const InputSidebarItemSchema: z.ZodType<InputSidebarItem>;
171
+ export type InputSidebarItemCategory = z.infer<typeof BaseInputSidebarItemCategorySchema> & {
172
+ items: InputSidebarItem[];
173
+ };
174
+ export declare const InputSidebarItemCategorySchema: z.ZodType<InputSidebarItemCategory>;
175
+ export declare const InputSidebarSchema: z.ZodArray<z.ZodType<InputSidebarItem, z.ZodTypeDef, InputSidebarItem>, "many">;
176
+ export type InputSidebar = z.infer<typeof InputSidebarSchema>;
@@ -0,0 +1,71 @@
1
+ import { z } from "zod";
2
+ export const BaseInputSidebarItemCategoryLinkDocSchema = z.object({
3
+ type: z.literal("doc"),
4
+ id: z.string(),
5
+ label: z.string().optional(),
6
+ });
7
+ export const InputSidebarItemCategoryLinkDocSchema = z.union([
8
+ BaseInputSidebarItemCategoryLinkDocSchema,
9
+ z.string(),
10
+ ]);
11
+ export const BaseInputSidebarItemDocSchema = z.object({
12
+ type: z.literal("doc"),
13
+ id: z.string(),
14
+ label: z.string().optional(),
15
+ badge: z
16
+ .object({
17
+ label: z.string(),
18
+ color: z.enum([
19
+ "green",
20
+ "blue",
21
+ "yellow",
22
+ "red",
23
+ "purple",
24
+ "indigo",
25
+ "gray",
26
+ ]),
27
+ })
28
+ .optional(),
29
+ });
30
+ export const InputSidebarItemDocSchema = z.union([
31
+ BaseInputSidebarItemDocSchema,
32
+ z.string(),
33
+ ]);
34
+ export const InputSidebarItemLinkSchema = z.object({
35
+ type: z.literal("link"),
36
+ label: z.string(),
37
+ href: z.string(),
38
+ description: z.string().optional(),
39
+ badge: z
40
+ .object({
41
+ label: z.string(),
42
+ color: z.enum([
43
+ "green",
44
+ "blue",
45
+ "yellow",
46
+ "red",
47
+ "purple",
48
+ "indigo",
49
+ "gray",
50
+ ]),
51
+ })
52
+ .optional(),
53
+ });
54
+ export const BaseInputSidebarItemCategorySchema = z.object({
55
+ type: z.literal("category"),
56
+ label: z.string(),
57
+ description: z.string().optional(),
58
+ collapsible: z.boolean().optional(),
59
+ collapsed: z.boolean().optional(),
60
+ link: InputSidebarItemCategoryLinkDocSchema.optional(),
61
+ });
62
+ export const InputSidebarItemSchema = z.lazy(() => z.union([
63
+ InputSidebarItemDocSchema,
64
+ InputSidebarItemLinkSchema,
65
+ InputSidebarItemCategorySchema,
66
+ ]));
67
+ export const InputSidebarItemCategorySchema = BaseInputSidebarItemCategorySchema.extend({
68
+ items: InputSidebarItemSchema.array(),
69
+ });
70
+ export const InputSidebarSchema = InputSidebarItemSchema.array();
71
+ //# sourceMappingURL=InputSidebarSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputSidebarSchema.js","sourceRoot":"","sources":["../../../src/config/validators/InputSidebarSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,yCAAyC,GAAG,CAAC,CAAC,MAAM,CAAC;IAChE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IACtB,EAAE,EAAE,CAAC,CAAC,MAAM,EAA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Q;YACR,KAAK;YACL,QAAQ;YACR,QAAQ;YACR,MAAM;SACP,CAAC;KACH,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,CAAC,MAAM,CAAC;IACzD,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;IAC3B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,WAAW,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACnC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACjC,IAAI,EAAE,qCAAqC,CAAC,QAAQ,EAAE;CACvD,CAAC,CAAC;AAOH,MAAM,CAAC,MAAM,sBAAsB,GAAgC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAC7E,CAAC,CAAC,KAAK,CAAC;IACN,yBAAyB;IACzB,0BAA0B;IAC1B,8BAA8B;CAC/B,CAAC,CACH,CAAC;AAQF,MAAM,CAAC,MAAM,8BAA8B,GACzC,kCAAkC,CAAC,MAAM,CAAC;IACxC,KAAK,EAAE,sBAAsB,CAAC,KAAK,EAAE;CACtC,CAAC,CAAC;AAEL,MAAM,CAAC,MAAM,kBAAkB,GAAG,sBAAsB,CAAC,KAAK,EAAE,CAAC"}
@@ -1,177 +1,17 @@
1
- import { z } from "zod";
2
- export declare const BaseSidebarItemCategoryLinkDocSchema: z.ZodObject<{
3
- type: z.ZodLiteral<"doc">;
4
- id: z.ZodString;
5
- label: z.ZodOptional<z.ZodString>;
6
- }, "strip", z.ZodTypeAny, {
7
- type: "doc";
8
- id: string;
9
- label?: string | undefined;
10
- }, {
11
- type: "doc";
12
- id: string;
13
- label?: string | undefined;
14
- }>;
15
- export type BaseSidebarItemCategoryLinkDoc = z.infer<typeof BaseSidebarItemCategoryLinkDocSchema>;
16
- export declare const SidebarItemCategoryLinkDocSchema: z.ZodUnion<[z.ZodObject<{
17
- type: z.ZodLiteral<"doc">;
18
- id: z.ZodString;
19
- label: z.ZodOptional<z.ZodString>;
20
- }, "strip", z.ZodTypeAny, {
21
- type: "doc";
22
- id: string;
23
- label?: string | undefined;
24
- }, {
25
- type: "doc";
26
- id: string;
27
- label?: string | undefined;
28
- }>, z.ZodString]>;
29
- declare const BaseSidebarItemDocSchema: z.ZodObject<{
30
- type: z.ZodLiteral<"doc">;
31
- id: z.ZodString;
32
- label: z.ZodOptional<z.ZodString>;
33
- badge: z.ZodOptional<z.ZodObject<{
34
- label: z.ZodString;
35
- color: z.ZodEnum<["green", "blue", "yellow", "red", "purple", "indigo", "gray"]>;
36
- }, "strip", z.ZodTypeAny, {
37
- label: string;
38
- color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray";
39
- }, {
40
- label: string;
41
- color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray";
42
- }>>;
43
- }, "strip", z.ZodTypeAny, {
44
- type: "doc";
45
- id: string;
46
- label?: string | undefined;
47
- badge?: {
48
- label: string;
49
- color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray";
50
- } | undefined;
51
- }, {
52
- type: "doc";
53
- id: string;
54
- label?: string | undefined;
55
- badge?: {
56
- label: string;
57
- color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray";
58
- } | undefined;
59
- }>;
60
- export type BaseSidebarItemDoc = z.infer<typeof BaseSidebarItemDocSchema>;
61
- export declare const SidebarItemDocSchema: z.ZodUnion<[z.ZodObject<{
62
- type: z.ZodLiteral<"doc">;
63
- id: z.ZodString;
64
- label: z.ZodOptional<z.ZodString>;
65
- badge: z.ZodOptional<z.ZodObject<{
66
- label: z.ZodString;
67
- color: z.ZodEnum<["green", "blue", "yellow", "red", "purple", "indigo", "gray"]>;
68
- }, "strip", z.ZodTypeAny, {
69
- label: string;
70
- color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray";
71
- }, {
72
- label: string;
73
- color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray";
74
- }>>;
75
- }, "strip", z.ZodTypeAny, {
76
- type: "doc";
77
- id: string;
78
- label?: string | undefined;
79
- badge?: {
80
- label: string;
81
- color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray";
82
- } | undefined;
83
- }, {
84
- type: "doc";
85
- id: string;
86
- label?: string | undefined;
87
- badge?: {
88
- label: string;
89
- color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray";
90
- } | undefined;
91
- }>, z.ZodString]>;
92
- export declare const SidebarItemLinkSchema: z.ZodObject<{
93
- type: z.ZodLiteral<"link">;
94
- label: z.ZodString;
95
- href: z.ZodString;
96
- description: z.ZodOptional<z.ZodString>;
97
- badge: z.ZodOptional<z.ZodObject<{
98
- label: z.ZodString;
99
- color: z.ZodEnum<["green", "blue", "yellow", "red", "purple", "indigo", "gray"]>;
100
- }, "strip", z.ZodTypeAny, {
101
- label: string;
102
- color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray";
103
- }, {
104
- label: string;
105
- color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray";
106
- }>>;
107
- }, "strip", z.ZodTypeAny, {
108
- type: "link";
1
+ import type { BaseInputSidebarItemCategoryLinkDoc, BaseInputSidebarItemDoc, InputSidebarItem, InputSidebarItemCategory, InputSidebarItemLink } from "./InputSidebarSchema.js";
2
+ export type SidebarItemDoc = BaseInputSidebarItemDoc & {
109
3
  label: string;
110
- href: string;
111
- badge?: {
112
- label: string;
113
- color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray";
114
- } | undefined;
115
- description?: string | undefined;
116
- }, {
117
- type: "link";
118
- label: string;
119
- href: string;
120
- badge?: {
121
- label: string;
122
- color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray";
123
- } | undefined;
124
- description?: string | undefined;
125
- }>;
126
- export type SidebarItemLink = z.infer<typeof SidebarItemLinkSchema>;
127
- export declare const BaseSidebarItemCategorySchema: z.ZodObject<{
128
- type: z.ZodLiteral<"category">;
129
- label: z.ZodString;
130
- description: z.ZodOptional<z.ZodString>;
131
- collapsible: z.ZodOptional<z.ZodBoolean>;
132
- collapsed: z.ZodOptional<z.ZodBoolean>;
133
- link: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
134
- type: z.ZodLiteral<"doc">;
135
- id: z.ZodString;
136
- label: z.ZodOptional<z.ZodString>;
137
- }, "strip", z.ZodTypeAny, {
138
- type: "doc";
139
- id: string;
140
- label?: string | undefined;
141
- }, {
142
- type: "doc";
143
- id: string;
144
- label?: string | undefined;
145
- }>, z.ZodString]>>;
146
- }, "strip", z.ZodTypeAny, {
147
- type: "category";
148
- label: string;
149
- link?: string | {
150
- type: "doc";
151
- id: string;
152
- label?: string | undefined;
153
- } | undefined;
154
- description?: string | undefined;
155
- collapsible?: boolean | undefined;
156
- collapsed?: boolean | undefined;
157
- }, {
158
- type: "category";
4
+ categoryLabel?: string;
5
+ };
6
+ export type SidebarItemLink = InputSidebarItemLink;
7
+ export type SidebarItemCategoryLinkDoc = BaseInputSidebarItemCategoryLinkDoc & {
159
8
  label: string;
160
- link?: string | {
161
- type: "doc";
162
- id: string;
163
- label?: string | undefined;
164
- } | undefined;
165
- description?: string | undefined;
166
- collapsible?: boolean | undefined;
167
- collapsed?: boolean | undefined;
168
- }>;
169
- export type SidebarItem = z.infer<typeof SidebarItemDocSchema> | z.infer<typeof SidebarItemLinkSchema> | z.infer<typeof SidebarItemCategorySchema>;
170
- export declare const SidebarItemSchema: z.ZodType<SidebarItem>;
171
- export type SidebarItemCategory = z.infer<typeof BaseSidebarItemCategorySchema> & {
9
+ };
10
+ export type SidebarItemCategory = Omit<InputSidebarItemCategory, "items" | "link"> & {
172
11
  items: SidebarItem[];
12
+ link?: SidebarItemCategoryLinkDoc;
173
13
  };
174
- export declare const SidebarItemCategorySchema: z.ZodType<SidebarItemCategory>;
175
- export declare const SidebarSchema: z.ZodArray<z.ZodType<SidebarItem, z.ZodTypeDef, SidebarItem>, "many">;
176
- export type Sidebar = z.infer<typeof SidebarSchema>;
177
- export {};
14
+ export type SidebarItem = SidebarItemDoc | SidebarItemLink | SidebarItemCategory;
15
+ export declare const resolveSidebar: (rootDir: string, parentId: string, sidebar: InputSidebarItem[]) => Promise<SidebarItem[]>;
16
+ export type Sidebar = SidebarItem[];
17
+ export type SidebarConfig = Record<string, Sidebar>;
@@ -1,71 +1,76 @@
1
- import { z } from "zod";
2
- export const BaseSidebarItemCategoryLinkDocSchema = z.object({
3
- type: z.literal("doc"),
4
- id: z.string(),
5
- label: z.string().optional(),
6
- });
7
- export const SidebarItemCategoryLinkDocSchema = z.union([
8
- BaseSidebarItemCategoryLinkDocSchema,
9
- z.string(),
10
- ]);
11
- const BaseSidebarItemDocSchema = z.object({
12
- type: z.literal("doc"),
13
- id: z.string(),
14
- label: z.string().optional(),
15
- badge: z
16
- .object({
17
- label: z.string(),
18
- color: z.enum([
19
- "green",
20
- "blue",
21
- "yellow",
22
- "red",
23
- "purple",
24
- "indigo",
25
- "gray",
26
- ]),
27
- })
28
- .optional(),
29
- });
30
- export const SidebarItemDocSchema = z.union([
31
- BaseSidebarItemDocSchema,
32
- z.string(),
33
- ]);
34
- export const SidebarItemLinkSchema = z.object({
35
- type: z.literal("link"),
36
- label: z.string(),
37
- href: z.string(),
38
- description: z.string().optional(),
39
- badge: z
40
- .object({
41
- label: z.string(),
42
- color: z.enum([
43
- "green",
44
- "blue",
45
- "yellow",
46
- "red",
47
- "purple",
48
- "indigo",
49
- "gray",
50
- ]),
51
- })
52
- .optional(),
53
- });
54
- export const BaseSidebarItemCategorySchema = z.object({
55
- type: z.literal("category"),
56
- label: z.string(),
57
- description: z.string().optional(),
58
- collapsible: z.boolean().optional(),
59
- collapsed: z.boolean().optional(),
60
- link: SidebarItemCategoryLinkDocSchema.optional(),
61
- });
62
- export const SidebarItemSchema = z.lazy(() => z.union([
63
- SidebarItemDocSchema,
64
- SidebarItemLinkSchema,
65
- SidebarItemCategorySchema,
66
- ]));
67
- export const SidebarItemCategorySchema = BaseSidebarItemCategorySchema.extend({
68
- items: SidebarItemSchema.array(),
69
- });
70
- export const SidebarSchema = SidebarItemSchema.array();
1
+ import { glob } from "glob";
2
+ import matter from "gray-matter";
3
+ import fs from "node:fs/promises";
4
+ const extractTitleFromContent = (content) => content.match(/^\s*#\s(.*)$/m)?.at(1);
5
+ export const resolveSidebar = async (rootDir, parentId, sidebar) => {
6
+ const resolveDoc = async (id, categoryLabel) => {
7
+ const foundMatches = await glob(`/**/${parentId}/${id}.{md,mdx}`, {
8
+ root: rootDir,
9
+ });
10
+ if (foundMatches.length === 0) {
11
+ throw new Error(`No file found for doc ${parentId}/${id}`);
12
+ }
13
+ if (foundMatches.length > 1) {
14
+ throw new Error(`Multiple files found for doc ${parentId}/${id}`);
15
+ }
16
+ const file = await fs.readFile(foundMatches.at(0));
17
+ const { data, content } = matter(file);
18
+ const label = data.sidebar_label ?? data.title ?? extractTitleFromContent(content);
19
+ if (typeof label !== "string") {
20
+ throw new Error(`No title found for doc ${id}`);
21
+ }
22
+ return {
23
+ type: "doc",
24
+ id,
25
+ label,
26
+ categoryLabel,
27
+ };
28
+ };
29
+ const resolveLink = async (id) => {
30
+ const doc = await resolveDoc(id);
31
+ return {
32
+ type: "doc",
33
+ id: id,
34
+ label: doc.label,
35
+ };
36
+ };
37
+ const resolveSidebarItemCategoryLinkDoc = async (item) => {
38
+ if (typeof item === "string") {
39
+ return resolveLink(item);
40
+ }
41
+ const label = item.label ?? (await resolveDoc(item.id)).label;
42
+ return { label, ...item };
43
+ };
44
+ const resolveSidebarItemDoc = async (item, categoryLabel) => {
45
+ if (typeof item === "string") {
46
+ return resolveDoc(item, categoryLabel);
47
+ }
48
+ const label = item.label ?? (await resolveDoc(item.id, categoryLabel)).label;
49
+ return { ...item, label, categoryLabel };
50
+ };
51
+ const resolveSidebarItem = async (item, categoryLabel) => {
52
+ if (typeof item === "string") {
53
+ return resolveDoc(item, categoryLabel);
54
+ }
55
+ switch (item.type) {
56
+ case "doc":
57
+ return resolveSidebarItemDoc(item, categoryLabel);
58
+ case "link":
59
+ return item;
60
+ case "category": {
61
+ const categoryItem = item;
62
+ const items = await Promise.all(categoryItem.items.map((subItem) => resolveSidebarItem(subItem, categoryItem.label)));
63
+ const resolvedLink = categoryItem.link
64
+ ? await resolveSidebarItemCategoryLinkDoc(categoryItem.link)
65
+ : undefined;
66
+ return {
67
+ ...categoryItem,
68
+ items,
69
+ link: resolvedLink,
70
+ };
71
+ }
72
+ }
73
+ };
74
+ return Promise.all(sidebar.map((item) => resolveSidebarItem(item)));
75
+ };
71
76
  //# sourceMappingURL=SidebarSchema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarSchema.js","sourceRoot":"","sources":["../../../src/config/validators/SidebarSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3D,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IACtB,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC;IACtD,oCAAoC;IACpC,CAAC,CAAC,MAAM,EAAE;CACX,CAAC,CAAC;AAEH,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IACtB,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,KAAK,EAAE,CAAC;SACL,MAAM,CAAC;QACN,KAAK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AO,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACtE,CAAC,CAAC"}
@@ -68,7 +68,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
68
68
  id: string;
69
69
  label: string;
70
70
  }>, "many">>;
71
- sidebar: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodType<import("./SidebarSchema.js").SidebarItem, z.ZodTypeDef, import("./SidebarSchema.js").SidebarItem>, "many">>>;
71
+ sidebar: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodType<import("./InputSidebarSchema.js").InputSidebarItem, z.ZodTypeDef, import("./InputSidebarSchema.js").InputSidebarItem>, "many">>>;
72
72
  slotlets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<ReactNode, z.ZodTypeDef, ReactNode>>>;
73
73
  theme: z.ZodOptional<z.ZodObject<{
74
74
  light: z.ZodOptional<z.ZodObject<{
@@ -681,7 +681,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
681
681
  audience?: string | undefined;
682
682
  } | undefined;
683
683
  slotlets?: Record<string, ReactNode> | undefined;
684
- sidebar?: Record<string, import("./SidebarSchema.js").SidebarItem[]> | undefined;
684
+ sidebar?: Record<string, import("./InputSidebarSchema.js").InputSidebarItem[]> | undefined;
685
685
  mdx?: {
686
686
  components?: Readonly<import("mdx/types.js").MDXComponents> | import("node_modules/@mdx-js/react/lib/index.js").MergeComponents | null | undefined;
687
687
  } | undefined;
@@ -848,7 +848,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
848
848
  audience?: string | undefined;
849
849
  } | undefined;
850
850
  slotlets?: Record<string, ReactNode> | undefined;
851
- sidebar?: Record<string, import("./SidebarSchema.js").SidebarItem[]> | undefined;
851
+ sidebar?: Record<string, import("./InputSidebarSchema.js").InputSidebarItem[]> | undefined;
852
852
  mdx?: {
853
853
  components?: Readonly<import("mdx/types.js").MDXComponents> | import("node_modules/@mdx-js/react/lib/index.js").MergeComponents | null | undefined;
854
854
  } | undefined;
@@ -1015,7 +1015,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1015
1015
  audience?: string | undefined;
1016
1016
  } | undefined;
1017
1017
  slotlets?: Record<string, ReactNode> | undefined;
1018
- sidebar?: Record<string, import("./SidebarSchema.js").SidebarItem[]> | undefined;
1018
+ sidebar?: Record<string, import("./InputSidebarSchema.js").InputSidebarItem[]> | undefined;
1019
1019
  mdx?: {
1020
1020
  components?: Readonly<import("mdx/types.js").MDXComponents> | import("node_modules/@mdx-js/react/lib/index.js").MergeComponents | null | undefined;
1021
1021
  } | undefined;
@@ -1182,7 +1182,7 @@ declare const ConfigSchema: z.ZodEffects<z.ZodObject<{
1182
1182
  audience?: string | undefined;
1183
1183
  } | undefined;
1184
1184
  slotlets?: Record<string, ReactNode> | undefined;
1185
- sidebar?: Record<string, import("./SidebarSchema.js").SidebarItem[]> | undefined;
1185
+ sidebar?: Record<string, import("./InputSidebarSchema.js").InputSidebarItem[]> | undefined;
1186
1186
  mdx?: {
1187
1187
  components?: Readonly<import("mdx/types.js").MDXComponents> | import("node_modules/@mdx-js/react/lib/index.js").MergeComponents | null | undefined;
1188
1188
  } | undefined;