shokupan 0.9.0 → 0.10.1

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 (49) hide show
  1. package/dist/analyzer-BqIe1p0R.js +35 -0
  2. package/dist/analyzer-BqIe1p0R.js.map +1 -0
  3. package/dist/analyzer-CKLGLFtx.cjs +35 -0
  4. package/dist/analyzer-CKLGLFtx.cjs.map +1 -0
  5. package/dist/{analyzer-Ce_7JxZh.js → analyzer.impl-CV6W1Eq7.js} +238 -21
  6. package/dist/analyzer.impl-CV6W1Eq7.js.map +1 -0
  7. package/dist/{analyzer-Bei1sVWp.cjs → analyzer.impl-D9Yi1Hax.cjs} +237 -20
  8. package/dist/analyzer.impl-D9Yi1Hax.cjs.map +1 -0
  9. package/dist/cli.cjs +1 -1
  10. package/dist/cli.js +1 -1
  11. package/dist/context.d.ts +19 -7
  12. package/dist/http-server-BEMPIs33.cjs.map +1 -1
  13. package/dist/http-server-CCeagTyU.js.map +1 -1
  14. package/dist/index.cjs +1500 -275
  15. package/dist/index.cjs.map +1 -1
  16. package/dist/index.d.ts +3 -0
  17. package/dist/index.js +1482 -256
  18. package/dist/index.js.map +1 -1
  19. package/dist/plugins/application/api-explorer/plugin.d.ts +9 -0
  20. package/dist/plugins/application/api-explorer/static/explorer-client.mjs +880 -0
  21. package/dist/plugins/application/api-explorer/static/style.css +767 -0
  22. package/dist/plugins/application/api-explorer/static/theme.css +128 -0
  23. package/dist/plugins/application/asyncapi/generator.d.ts +3 -0
  24. package/dist/plugins/application/asyncapi/plugin.d.ts +15 -0
  25. package/dist/plugins/application/asyncapi/static/asyncapi-client.mjs +748 -0
  26. package/dist/plugins/application/asyncapi/static/style.css +565 -0
  27. package/dist/plugins/application/asyncapi/static/theme.css +128 -0
  28. package/dist/plugins/application/auth.d.ts +3 -1
  29. package/dist/plugins/application/dashboard/metrics-collector.d.ts +3 -1
  30. package/dist/plugins/application/dashboard/plugin.d.ts +13 -3
  31. package/dist/plugins/application/dashboard/static/registry.css +0 -53
  32. package/dist/plugins/application/dashboard/static/styles.css +29 -20
  33. package/dist/plugins/application/dashboard/static/tabulator.css +83 -31
  34. package/dist/plugins/application/dashboard/static/theme.css +128 -0
  35. package/dist/plugins/application/graphql-apollo.d.ts +33 -0
  36. package/dist/plugins/application/graphql-yoga.d.ts +25 -0
  37. package/dist/plugins/application/openapi/analyzer.d.ts +12 -119
  38. package/dist/plugins/application/openapi/analyzer.impl.d.ts +167 -0
  39. package/dist/plugins/application/scalar.d.ts +9 -2
  40. package/dist/router.d.ts +80 -51
  41. package/dist/shokupan.d.ts +14 -8
  42. package/dist/util/datastore.d.ts +71 -7
  43. package/dist/util/decorators.d.ts +2 -2
  44. package/dist/util/types.d.ts +96 -3
  45. package/package.json +32 -12
  46. package/dist/analyzer-Bei1sVWp.cjs.map +0 -1
  47. package/dist/analyzer-Ce_7JxZh.js.map +0 -1
  48. package/dist/plugins/application/dashboard/static/scrollbar.css +0 -24
  49. package/dist/plugins/application/dashboard/template.eta +0 -246
@@ -0,0 +1,128 @@
1
+ :root {
2
+ /* Raw Palette - Dark (Now Default) */
3
+ --palette-dark-primary: #FFB380;
4
+ /* Warm Filament */
5
+ --palette-dark-secondary: #7B5E7B;
6
+ /* Yeast Purple */
7
+ --palette-dark-accent: #D6D3D1;
8
+ /* Flour Dust */
9
+ --palette-dark-bg: #1A1614;
10
+ /* Oven Depth */
11
+ --palette-dark-card: #2A2421;
12
+
13
+ --palette-dark-header: rgb(39, 27, 19);
14
+ /* Proofing Drawer */
15
+
16
+ /* Universal defaults (tokens) */
17
+ --shokupan-font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
18
+
19
+ /* Theme Variables - Enforced Dark Mode */
20
+ --bg-primary: var(--palette-dark-bg);
21
+ --bg-secondary: var(--palette-dark-card);
22
+ --bg-card: var(--palette-dark-card);
23
+ --bg-header: var(--palette-dark-header);
24
+
25
+ --text-primary: #F0F0F0;
26
+ --text-secondary: var(--palette-dark-accent);
27
+ --text-muted: rgba(214, 211, 209, 0.5);
28
+
29
+ --primary: var(--palette-dark-primary);
30
+ --secondary: var(--palette-dark-secondary);
31
+ --accent: var(--palette-dark-accent);
32
+
33
+ --border-color: rgba(214, 211, 209, 0.2);
34
+ --card-border: rgba(214, 211, 209, 0.2);
35
+
36
+ --table-header-border-color: rgba(214, 211, 209, 0.2);
37
+
38
+ --link-color: var(--palette-dark-primary);
39
+ --link-hover: #FFCBA0;
40
+
41
+ --button-bg: var(--palette-dark-primary);
42
+ --button-text: #1A1614;
43
+ }
44
+
45
+ ::-webkit-scrollbar {
46
+ width: 8px;
47
+ height: 8px;
48
+ background-color: var(--bg-primary);
49
+ }
50
+
51
+ ::-webkit-scrollbar-thumb {
52
+ border-radius: 10px;
53
+ background-color: var(--primary);
54
+ box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
55
+ }
56
+
57
+ ::-webkit-scrollbar-track {
58
+ border-radius: 10px;
59
+ background-color: var(--bg-secondary);
60
+ }
61
+
62
+ ::-webkit-scrollbar-corner {
63
+ box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
64
+ }
65
+
66
+ .badge-SEND {
67
+ background: rgba(59, 130, 246, 0.15);
68
+ color: #60a5fa;
69
+ border: 1px solid rgba(59, 130, 246, 0.3);
70
+ }
71
+
72
+ .badge-RECV {
73
+ background: rgba(16, 185, 129, 0.15);
74
+ color: #34d399;
75
+ border: 1px solid rgba(16, 185, 129, 0.3);
76
+ }
77
+
78
+ .badge-GET {
79
+ background: #0f172a;
80
+ color: #3b82f6;
81
+ border: 1px solid #3b82f6;
82
+ }
83
+
84
+ .badge-POST {
85
+ background: #0f172a;
86
+ color: #22c55e;
87
+ border: 1px solid #22c55e;
88
+ }
89
+
90
+ .badge-PUT {
91
+ background: #0f172a;
92
+ color: #eab308;
93
+ border: 1px solid #eab308;
94
+ }
95
+
96
+ .badge-PATCH {
97
+ background: #0f172a;
98
+ color: #08d3ea;
99
+ border: 1px solid #08eae6;
100
+ }
101
+
102
+ .badge-HEAD {
103
+ background: #0f172a;
104
+ color: #e3ea08;
105
+ border: 1px solid #e3ea08;
106
+ }
107
+
108
+ .badge-OPTIONS {
109
+ background: #0f172a;
110
+ color: #838383;
111
+ border: 1px solid #838383;
112
+ }
113
+
114
+ .badge-DELETE {
115
+ background: #0f172a;
116
+ color: #ef4444;
117
+ border: 1px solid #ef4444;
118
+ }
119
+
120
+ .badge-ROUTER {
121
+ background: #334155;
122
+ color: #f8fafc;
123
+ }
124
+
125
+ .badge-CONTROLLER {
126
+ background: #475569;
127
+ color: #f8fafc;
128
+ }
@@ -0,0 +1,3 @@
1
+ import { ShokupanRouter } from '../../../router';
2
+ import { AsyncAPIOptions } from '../../../util/types';
3
+ export declare function generateAsyncApi<T extends Record<string, any>>(rootRouter: ShokupanRouter<T>, options?: AsyncAPIOptions): Promise<any>;
@@ -0,0 +1,15 @@
1
+ import { ShokupanRouter } from '../../../router';
2
+ import { Shokupan } from '../../../shokupan';
3
+ import { DeepPartial, ShokupanPlugin, ShokupanPluginOptions } from '../../../util/types';
4
+ export interface AsyncApiPluginOptions {
5
+ path?: string;
6
+ spec?: DeepPartial<any>;
7
+ disableSourceView?: boolean;
8
+ }
9
+ export declare class AsyncApiPlugin extends ShokupanRouter<any> implements ShokupanPlugin {
10
+ private pluginOptions;
11
+ private static getBasePath;
12
+ constructor(pluginOptions?: AsyncApiPluginOptions);
13
+ onInit(app: Shokupan, options?: ShokupanPluginOptions): void;
14
+ private init;
15
+ }