zudoku 0.3.0-dev.31 → 0.3.0-dev.32

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 (203) hide show
  1. package/dist/app/App.d.ts +1 -0
  2. package/dist/app/App.js +2 -0
  3. package/dist/app/App.js.map +1 -0
  4. package/dist/app/entry.client.d.ts +5 -0
  5. package/dist/app/entry.client.js +28 -0
  6. package/dist/app/entry.client.js.map +1 -0
  7. package/dist/app/entry.server.d.ts +10 -0
  8. package/dist/app/entry.server.js +107 -0
  9. package/dist/app/entry.server.js.map +1 -0
  10. package/dist/app/main.d.ts +26 -2
  11. package/dist/app/main.js +39 -17
  12. package/dist/app/main.js.map +1 -1
  13. package/dist/app/tailwind.js +5 -0
  14. package/dist/app/tailwind.js.map +1 -1
  15. package/dist/app/zudoku-manifest.d.ts +1 -0
  16. package/dist/app/zudoku-manifest.js +20 -0
  17. package/dist/app/zudoku-manifest.js.map +1 -0
  18. package/dist/cli/cmds/dev.js +5 -0
  19. package/dist/cli/cmds/dev.js.map +1 -1
  20. package/dist/cli/dev/handler.d.ts +1 -0
  21. package/dist/cli/dev/handler.js +3 -1
  22. package/dist/cli/dev/handler.js.map +1 -1
  23. package/dist/config/config.d.ts +5 -0
  24. package/dist/lib/authentication/providers/clerk.js +2 -0
  25. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  26. package/dist/lib/components/DevPortal.d.ts +1 -1
  27. package/dist/lib/components/DevPortal.js +6 -10
  28. package/dist/lib/components/DevPortal.js.map +1 -1
  29. package/dist/lib/components/ErrorPage.d.ts +6 -0
  30. package/dist/lib/components/ErrorPage.js +9 -0
  31. package/dist/lib/components/ErrorPage.js.map +1 -0
  32. package/dist/lib/components/InlineCode.d.ts +5 -0
  33. package/dist/lib/components/InlineCode.js +4 -0
  34. package/dist/lib/components/InlineCode.js.map +1 -0
  35. package/dist/lib/components/Layout.js +2 -1
  36. package/dist/lib/components/Layout.js.map +1 -1
  37. package/dist/lib/components/NotFoundPage.d.ts +1 -0
  38. package/dist/lib/components/NotFoundPage.js +12 -0
  39. package/dist/lib/components/NotFoundPage.js.map +1 -0
  40. package/dist/lib/components/SyntaxHighlight.d.ts +3 -2
  41. package/dist/lib/components/SyntaxHighlight.js +20 -22
  42. package/dist/lib/components/SyntaxHighlight.js.map +1 -1
  43. package/dist/lib/errors/RouterError.js +6 -3
  44. package/dist/lib/errors/RouterError.js.map +1 -1
  45. package/dist/lib/errors/ServerError.d.ts +3 -0
  46. package/dist/lib/errors/ServerError.js +6 -0
  47. package/dist/lib/errors/ServerError.js.map +1 -0
  48. package/dist/lib/oas/parser/index.d.ts +1 -1
  49. package/dist/lib/oas/parser/index.js +38 -14
  50. package/dist/lib/oas/parser/index.js.map +1 -1
  51. package/dist/lib/plugins/api-keys/index.js +3 -8
  52. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  53. package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -1
  54. package/dist/lib/plugins/markdown/index.js +3 -7
  55. package/dist/lib/plugins/markdown/index.js.map +1 -1
  56. package/dist/lib/plugins/openapi/OperationList.js +11 -1
  57. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  58. package/dist/lib/plugins/openapi/OperationListItem.js +2 -1
  59. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  60. package/dist/lib/plugins/openapi/SchemaListView.js +2 -1
  61. package/dist/lib/plugins/openapi/SchemaListView.js.map +1 -1
  62. package/dist/lib/plugins/openapi/client/createMemoryClient.js +1 -1
  63. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +1 -1
  64. package/dist/lib/plugins/openapi/index.js +9 -1
  65. package/dist/lib/plugins/openapi/index.js.map +1 -1
  66. package/dist/lib/plugins/redirect/index.js +2 -3
  67. package/dist/lib/plugins/redirect/index.js.map +1 -1
  68. package/dist/lib/ui/Callout.js +1 -1
  69. package/dist/lib/ui/Callout.js.map +1 -1
  70. package/dist/lib/ui/button-variants.d.ts +1 -1
  71. package/dist/lib/util/MdxComponents.js +2 -2
  72. package/dist/lib/util/MdxComponents.js.map +1 -1
  73. package/dist/lib/util/groupBy.d.ts +1 -6
  74. package/dist/lib/util/groupBy.js +10 -8
  75. package/dist/lib/util/groupBy.js.map +1 -1
  76. package/dist/vite/build.js +23 -10
  77. package/dist/vite/build.js.map +1 -1
  78. package/dist/vite/config.d.ts +2 -1
  79. package/dist/vite/config.js +33 -7
  80. package/dist/vite/config.js.map +1 -1
  81. package/dist/vite/dev-server.d.ts +1 -1
  82. package/dist/vite/dev-server.js +15 -9
  83. package/dist/vite/dev-server.js.map +1 -1
  84. package/dist/vite/html.js +5 -4
  85. package/dist/vite/html.js.map +1 -1
  86. package/dist/vite/plugin-custom-css.d.ts +6 -0
  87. package/dist/vite/plugin-custom-css.js +55 -0
  88. package/dist/vite/plugin-custom-css.js.map +1 -0
  89. package/dist/vite/plugin-docs.js +14 -5
  90. package/dist/vite/plugin-docs.js.map +1 -1
  91. package/dist/vite/plugin-openapi-worker.js +4 -1
  92. package/dist/vite/plugin-openapi-worker.js.map +1 -1
  93. package/dist/vite/plugin.js +2 -0
  94. package/dist/vite/plugin.js.map +1 -1
  95. package/dist/vite/prerender.d.ts +1 -0
  96. package/dist/vite/prerender.js +57 -0
  97. package/dist/vite/prerender.js.map +1 -0
  98. package/lib/{DevPortalProvider-BMk-RCE0.js → DevPortalProvider-BlxLX6GG.js} +230 -250
  99. package/lib/DevPortalProvider-BlxLX6GG.js.map +1 -0
  100. package/lib/{Markdown-DDmW47R9.js → Markdown-CL8KPvJN.js} +8 -9
  101. package/lib/{Markdown-DDmW47R9.js.map → Markdown-CL8KPvJN.js.map} +1 -1
  102. package/lib/MdxComponents-Ev_hBHb2.js +5885 -0
  103. package/lib/MdxComponents-Ev_hBHb2.js.map +1 -0
  104. package/lib/{MdxPage-DyJAHF9y.js → MdxPage-Z3HKNTrj.js} +92 -89
  105. package/lib/MdxPage-Z3HKNTrj.js.map +1 -0
  106. package/lib/{OperationList-Dz9rHM9r.js → OperationList-KoITgfDT.js} +1967 -1785
  107. package/lib/OperationList-KoITgfDT.js.map +1 -0
  108. package/lib/Route-Bf1_D_vC.js +13 -0
  109. package/lib/{Route-CN_7-e5r.js.map → Route-Bf1_D_vC.js.map} +1 -1
  110. package/lib/Select-DSa3bN4t.js +4770 -0
  111. package/lib/Select-DSa3bN4t.js.map +1 -0
  112. package/lib/assets/{worker-BXS8hiSM.js → worker-BjPv-hjP.js} +3100 -2720
  113. package/lib/assets/worker-BjPv-hjP.js.map +1 -0
  114. package/lib/hook-CTmJ6CWq.js +35 -0
  115. package/lib/hook-CTmJ6CWq.js.map +1 -0
  116. package/lib/index-BdWBDosx.js +74 -0
  117. package/lib/index-BdWBDosx.js.map +1 -0
  118. package/lib/{index-Cpdpun6t.js → index-BoWzKb_9.js} +57 -41
  119. package/lib/index-BoWzKb_9.js.map +1 -0
  120. package/lib/{AnchorLink-ptdQk87q.js → index.esm-CPEExBJE.js} +156 -168
  121. package/lib/index.esm-CPEExBJE.js.map +1 -0
  122. package/lib/jsx-runtime-CM0TzjGp.js +866 -0
  123. package/lib/jsx-runtime-CM0TzjGp.js.map +1 -0
  124. package/lib/mutation-91kw0lHb.js +208 -0
  125. package/lib/mutation-91kw0lHb.js.map +1 -0
  126. package/lib/router-CcYTwKjf.js +183 -0
  127. package/lib/router-CcYTwKjf.js.map +1 -0
  128. package/lib/zudoku.auth-clerk.js.map +1 -1
  129. package/lib/zudoku.auth-openid.js +588 -441
  130. package/lib/zudoku.auth-openid.js.map +1 -1
  131. package/lib/zudoku.components.js +284 -595
  132. package/lib/zudoku.components.js.map +1 -1
  133. package/lib/zudoku.openapi-worker.js +18 -18
  134. package/lib/zudoku.plugin-api-keys.js +143 -98
  135. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  136. package/lib/zudoku.plugin-markdown.js +2 -49
  137. package/lib/zudoku.plugin-markdown.js.map +1 -1
  138. package/lib/zudoku.plugin-openapi.js +5 -3
  139. package/lib/zudoku.plugin-openapi.js.map +1 -1
  140. package/lib/zudoku.plugin-redirect.js +6 -7
  141. package/lib/zudoku.plugin-redirect.js.map +1 -1
  142. package/package.json +2 -1
  143. package/src/app/App.tsx +0 -0
  144. package/src/app/entry.client.tsx +51 -0
  145. package/src/app/entry.server.tsx +158 -0
  146. package/src/app/main.tsx +65 -43
  147. package/src/app/tailwind.ts +6 -0
  148. package/src/app/zudoku-manifest.ts +22 -0
  149. package/src/lib/authentication/providers/clerk.tsx +1 -0
  150. package/src/lib/components/DevPortal.tsx +25 -33
  151. package/src/lib/components/ErrorPage.tsx +28 -0
  152. package/src/lib/components/InlineCode.tsx +19 -0
  153. package/src/lib/components/Layout.tsx +7 -4
  154. package/src/lib/components/NotFoundPage.tsx +39 -0
  155. package/src/lib/components/SyntaxHighlight.tsx +26 -22
  156. package/src/lib/errors/RouterError.tsx +8 -7
  157. package/src/lib/errors/ServerError.tsx +5 -0
  158. package/src/lib/oas/parser/index.ts +41 -22
  159. package/src/lib/plugins/api-keys/index.tsx +4 -16
  160. package/src/lib/plugins/markdown/generateRoutes.tsx +1 -1
  161. package/src/lib/plugins/markdown/index.tsx +3 -7
  162. package/src/lib/plugins/openapi/OperationList.tsx +30 -0
  163. package/src/lib/plugins/openapi/OperationListItem.tsx +3 -1
  164. package/src/lib/plugins/openapi/SchemaListView.tsx +8 -10
  165. package/src/lib/plugins/openapi/client/createMemoryClient.ts +1 -1
  166. package/src/lib/plugins/openapi/index.tsx +18 -1
  167. package/src/lib/plugins/redirect/index.tsx +2 -2
  168. package/src/lib/ui/Callout.tsx +2 -2
  169. package/src/lib/util/MdxComponents.tsx +2 -11
  170. package/src/lib/util/groupBy.ts +7 -12
  171. package/dist/lib/components/Router.d.ts +0 -4
  172. package/dist/lib/components/Router.js +0 -21
  173. package/dist/lib/components/Router.js.map +0 -1
  174. package/lib/AnchorLink-ptdQk87q.js.map +0 -1
  175. package/lib/DevPortalProvider-BMk-RCE0.js.map +0 -1
  176. package/lib/MdxComponents-C0R6zobS.js +0 -3019
  177. package/lib/MdxComponents-C0R6zobS.js.map +0 -1
  178. package/lib/MdxPage-DyJAHF9y.js.map +0 -1
  179. package/lib/OperationList-Dz9rHM9r.js.map +0 -1
  180. package/lib/Route-CN_7-e5r.js +0 -14
  181. package/lib/Select-D-Jtx53Q.js +0 -4572
  182. package/lib/Select-D-Jtx53Q.js.map +0 -1
  183. package/lib/Spinner-BG1JnYy0.js +0 -182
  184. package/lib/Spinner-BG1JnYy0.js.map +0 -1
  185. package/lib/assets/worker-BXS8hiSM.js.map +0 -1
  186. package/lib/cn-DpqTslo9.js +0 -2342
  187. package/lib/cn-DpqTslo9.js.map +0 -1
  188. package/lib/hook-BzBeIPL4.js +0 -25
  189. package/lib/hook-BzBeIPL4.js.map +0 -1
  190. package/lib/index-BaOOUFsA.js +0 -412
  191. package/lib/index-BaOOUFsA.js.map +0 -1
  192. package/lib/index-CPvRaBBB.js +0 -713
  193. package/lib/index-CPvRaBBB.js.map +0 -1
  194. package/lib/index-Cpdpun6t.js.map +0 -1
  195. package/lib/index-DLS6fPwU.js +0 -464
  196. package/lib/index-DLS6fPwU.js.map +0 -1
  197. package/lib/jsx-runtime-SV6hXQua.js +0 -3009
  198. package/lib/jsx-runtime-SV6hXQua.js.map +0 -1
  199. package/lib/loglevel-CA34MiFn.js +0 -153
  200. package/lib/loglevel-CA34MiFn.js.map +0 -1
  201. package/lib/util-CCWvaWo7.js +0 -41
  202. package/lib/util-CCWvaWo7.js.map +0 -1
  203. package/src/lib/components/Router.tsx +0 -24
@@ -0,0 +1,183 @@
1
+ /**
2
+ * @remix-run/router v1.17.1
3
+ *
4
+ * Copyright (c) Remix Software Inc.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE.md file in the root directory of this source tree.
8
+ *
9
+ * @license MIT
10
+ */
11
+ function c() {
12
+ return c = Object.assign ? Object.assign.bind() : function(e) {
13
+ for (var n = 1; n < arguments.length; n++) {
14
+ var t = arguments[n];
15
+ for (var a in t)
16
+ Object.prototype.hasOwnProperty.call(t, a) && (e[a] = t[a]);
17
+ }
18
+ return e;
19
+ }, c.apply(this, arguments);
20
+ }
21
+ var w;
22
+ (function(e) {
23
+ e.Pop = "POP", e.Push = "PUSH", e.Replace = "REPLACE";
24
+ })(w || (w = {}));
25
+ function d(e, n) {
26
+ if (e === !1 || e === null || typeof e > "u")
27
+ throw new Error(n);
28
+ }
29
+ function W(e, n) {
30
+ if (!e) {
31
+ typeof console < "u" && console.warn(n);
32
+ try {
33
+ throw new Error(n);
34
+ } catch {
35
+ }
36
+ }
37
+ }
38
+ function M(e) {
39
+ let {
40
+ pathname: n = "/",
41
+ search: t = "",
42
+ hash: a = ""
43
+ } = e;
44
+ return t && t !== "?" && (n += t.charAt(0) === "?" ? t : "?" + t), a && a !== "#" && (n += a.charAt(0) === "#" ? a : "#" + a), n;
45
+ }
46
+ function y(e) {
47
+ let n = {};
48
+ if (e) {
49
+ let t = e.indexOf("#");
50
+ t >= 0 && (n.hash = e.substr(t), e = e.substr(0, t));
51
+ let a = e.indexOf("?");
52
+ a >= 0 && (n.search = e.substr(a), e = e.substr(0, a)), e && (n.pathname = e);
53
+ }
54
+ return n;
55
+ }
56
+ var v;
57
+ (function(e) {
58
+ e.data = "data", e.deferred = "deferred", e.redirect = "redirect", e.error = "error";
59
+ })(v || (v = {}));
60
+ function L(e, n) {
61
+ typeof e == "string" && (e = {
62
+ path: e,
63
+ caseSensitive: !1,
64
+ end: !0
65
+ });
66
+ let [t, a] = b(e.path, e.caseSensitive, e.end), r = n.match(t);
67
+ if (!r) return null;
68
+ let i = r[0], s = i.replace(/(.)\/+$/, "$1"), l = r.slice(1);
69
+ return {
70
+ params: a.reduce((f, p, h) => {
71
+ let {
72
+ paramName: u,
73
+ isOptional: $
74
+ } = p;
75
+ if (u === "*") {
76
+ let x = l[h] || "";
77
+ s = i.slice(0, i.length - x.length).replace(/(.)\/+$/, "$1");
78
+ }
79
+ const g = l[h];
80
+ return $ && !g ? f[u] = void 0 : f[u] = (g || "").replace(/%2F/g, "/"), f;
81
+ }, {}),
82
+ pathname: i,
83
+ pathnameBase: s,
84
+ pattern: e
85
+ };
86
+ }
87
+ function b(e, n, t) {
88
+ n === void 0 && (n = !1), t === void 0 && (t = !0), W(e === "*" || !e.endsWith("*") || e.endsWith("/*"), 'Route path "' + e + '" will be treated as if it were ' + ('"' + e.replace(/\*$/, "/*") + '" because the `*` character must ') + "always follow a `/` in the pattern. To get rid of this warning, " + ('please change the route path to "' + e.replace(/\*$/, "/*") + '".'));
89
+ let a = [], r = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (s, l, o) => (a.push({
90
+ paramName: l,
91
+ isOptional: o != null
92
+ }), o ? "/?([^\\/]+)?" : "/([^\\/]+)"));
93
+ return e.endsWith("*") ? (a.push({
94
+ paramName: "*"
95
+ }), r += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : t ? r += "\\/*$" : e !== "" && e !== "/" && (r += "(?:(?=\\/|$))"), [new RegExp(r, n ? void 0 : "i"), a];
96
+ }
97
+ function R(e, n) {
98
+ if (n === "/") return e;
99
+ if (!e.toLowerCase().startsWith(n.toLowerCase()))
100
+ return null;
101
+ let t = n.endsWith("/") ? n.length - 1 : n.length, a = e.charAt(t);
102
+ return a && a !== "/" ? null : e.slice(t) || "/";
103
+ }
104
+ function S(e, n) {
105
+ n === void 0 && (n = "/");
106
+ let {
107
+ pathname: t,
108
+ search: a = "",
109
+ hash: r = ""
110
+ } = typeof e == "string" ? y(e) : e;
111
+ return {
112
+ pathname: t ? t.startsWith("/") ? t : E(t, n) : n,
113
+ search: j(a),
114
+ hash: C(r)
115
+ };
116
+ }
117
+ function E(e, n) {
118
+ let t = n.replace(/\/+$/, "").split("/");
119
+ return e.split("/").forEach((r) => {
120
+ r === ".." ? t.length > 1 && t.pop() : r !== "." && t.push(r);
121
+ }), t.length > 1 ? t.join("/") : "/";
122
+ }
123
+ function m(e, n, t, a) {
124
+ return "Cannot include a '" + e + "' character in a manually specified " + ("`to." + n + "` field [" + JSON.stringify(a) + "]. Please separate it out to the ") + ("`to." + t + "` field. Alternatively you may provide the full path as ") + 'a string in <Link to="..."> and the router will parse it for you.';
125
+ }
126
+ function O(e) {
127
+ return e.filter((n, t) => t === 0 || n.route.path && n.route.path.length > 0);
128
+ }
129
+ function B(e, n) {
130
+ let t = O(e);
131
+ return n ? t.map((a, r) => r === t.length - 1 ? a.pathname : a.pathnameBase) : t.map((a) => a.pathnameBase);
132
+ }
133
+ function T(e, n, t, a) {
134
+ a === void 0 && (a = !1);
135
+ let r;
136
+ typeof e == "string" ? r = y(e) : (r = c({}, e), d(!r.pathname || !r.pathname.includes("?"), m("?", "pathname", "search", r)), d(!r.pathname || !r.pathname.includes("#"), m("#", "pathname", "hash", r)), d(!r.search || !r.search.includes("#"), m("#", "search", "hash", r)));
137
+ let i = e === "" || r.pathname === "", s = i ? "/" : r.pathname, l;
138
+ if (s == null)
139
+ l = t;
140
+ else {
141
+ let h = n.length - 1;
142
+ if (!a && s.startsWith("..")) {
143
+ let u = s.split("/");
144
+ for (; u[0] === ".."; )
145
+ u.shift(), h -= 1;
146
+ r.pathname = u.join("/");
147
+ }
148
+ l = h >= 0 ? n[h] : "/";
149
+ }
150
+ let o = S(r, l), f = s && s !== "/" && s.endsWith("/"), p = (i || s === ".") && t.endsWith("/");
151
+ return !o.pathname.endsWith("/") && (f || p) && (o.pathname += "/"), o;
152
+ }
153
+ const A = (e) => e.join("/").replace(/\/\/+/g, "/"), j = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, C = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, H = function(n, t) {
154
+ t === void 0 && (t = 302);
155
+ let a = t;
156
+ typeof a == "number" ? a = {
157
+ status: a
158
+ } : typeof a.status > "u" && (a.status = 302);
159
+ let r = new Headers(a.headers);
160
+ return r.set("Location", n), new Response(null, c({}, a, {
161
+ headers: r
162
+ }));
163
+ };
164
+ function N(e) {
165
+ return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
166
+ }
167
+ const P = ["post", "put", "patch", "delete"];
168
+ new Set(P);
169
+ const I = ["get", ...P];
170
+ new Set(I);
171
+ export {
172
+ d as a,
173
+ H as b,
174
+ M as c,
175
+ B as g,
176
+ N as i,
177
+ A as j,
178
+ L as m,
179
+ T as r,
180
+ R as s,
181
+ W as w
182
+ };
183
+ //# sourceMappingURL=router-CcYTwKjf.js.map