zudoku 0.4.2-dev.1 → 0.4.2-dev.3
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/dist/cli/dev/handler.js +1 -0
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/lib/components/DeveloperHint.js +1 -3
- package/dist/lib/components/DeveloperHint.js.map +1 -1
- package/dist/lib/components/Header.js +2 -2
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/navigation/SidebarCategory.js +3 -1
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/lib/DeveloperHint-BkVaBhYp.js +16 -0
- package/lib/DeveloperHint-BkVaBhYp.js.map +1 -0
- package/lib/{OperationList-DajrjZzx.js → OperationList-CCwy1nfs.js} +3 -3
- package/lib/{OperationList-DajrjZzx.js.map → OperationList-CCwy1nfs.js.map} +1 -1
- package/lib/{Route-D7sTrFzF.js → Route-bSTdQP2q.js} +2 -2
- package/lib/{Route-D7sTrFzF.js.map → Route-bSTdQP2q.js.map} +1 -1
- package/lib/{SlotletProvider-WwEUzQQ3.js → SlotletProvider-B1N8zYvn.js} +2 -2
- package/lib/{SlotletProvider-WwEUzQQ3.js.map → SlotletProvider-B1N8zYvn.js.map} +1 -1
- package/lib/{index-D2SS6ne_.js → index-Sapny0Di.js} +4 -4
- package/lib/index-Sapny0Di.js.map +1 -0
- package/lib/zudoku.auth-openid.js +1 -1
- package/lib/zudoku.components.js +91 -91
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +2 -2
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/package.json +1 -1
- package/src/app/main.css +11 -1
- package/src/lib/components/DeveloperHint.tsx +1 -3
- package/src/lib/components/Header.tsx +2 -2
- package/src/lib/components/navigation/SidebarCategory.tsx +5 -2
- package/src/lib/plugins/openapi/playground/Playground.tsx +1 -1
- package/lib/DeveloperHint-BQSFXH01.js +0 -10
- package/lib/DeveloperHint-BQSFXH01.js.map +0 -1
- package/lib/index-D2SS6ne_.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-B6kdoens.js";
|
|
2
|
-
import { S as p, R as g } from "./SlotletProvider-
|
|
2
|
+
import { S as p, R as g } from "./SlotletProvider-B1N8zYvn.js";
|
|
3
3
|
import { u as j, a as u, I as k, S as v, b as w, c as b, d as K, e as N, f as y } from "./Input-CBiLCRuK.js";
|
|
4
4
|
import { e as E, L as x, O as A } from "./index-ChhUJhLT.js";
|
|
5
5
|
import { u as m, t as C, j as S } from "./ZudokuContext-BHNQL3XO.js";
|
|
6
6
|
import { B as l, p as I } from "./Combination-Ce1nWgn5.js";
|
|
7
|
-
import { D as P } from "./DeveloperHint-
|
|
7
|
+
import { D as P } from "./DeveloperHint-BkVaBhYp.js";
|
|
8
8
|
import { useState as h } from "react";
|
|
9
9
|
import { c as d, a as D, C as R, g as q } from "./Markdown-h11bKkQ9.js";
|
|
10
10
|
/**
|
package/package.json
CHANGED
package/src/app/main.css
CHANGED
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
html {
|
|
103
103
|
scroll-padding-block: var(--scroll-padding);
|
|
104
104
|
/* This is to prevent layout jumping when the scrollbar appears/disappears */
|
|
105
|
-
|
|
105
|
+
@apply mr-[calc(-1*var(--scrollbar-width))] overflow-x-hidden;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
body {
|
|
@@ -172,6 +172,16 @@
|
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
+
.scrollbar {
|
|
176
|
+
/* For Firefox */
|
|
177
|
+
scrollbar-width: thin;
|
|
178
|
+
scrollbar-color: transparent transparent;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.scrollbar:hover {
|
|
182
|
+
scrollbar-color: hsla(var(--border)) transparent;
|
|
183
|
+
}
|
|
184
|
+
|
|
175
185
|
.scrollbar::-webkit-scrollbar {
|
|
176
186
|
padding: 2px;
|
|
177
187
|
width: 12px;
|
|
@@ -8,9 +8,7 @@ export const DeveloperHint = ({
|
|
|
8
8
|
children: ReactNode;
|
|
9
9
|
className?: string;
|
|
10
10
|
}) => {
|
|
11
|
-
|
|
12
|
-
// so this doesn't get stripped out in the build
|
|
13
|
-
if (!import.meta.env.DEV) return;
|
|
11
|
+
if (process.env.NODE_ENV !== "development") return;
|
|
14
12
|
|
|
15
13
|
return (
|
|
16
14
|
<Callout type="caution" title="Developer hint" className={className}>
|
|
@@ -58,8 +58,8 @@ export const Header = memo(function HeaderInner() {
|
|
|
58
58
|
const ThemeIcon = isDark ? MoonStarIcon : SunIcon;
|
|
59
59
|
|
|
60
60
|
return (
|
|
61
|
-
//
|
|
62
|
-
<header className="fixed top-0 z-10 bg-background/80 backdrop-blur left-0 right-0
|
|
61
|
+
// margin-left is to prevent layout jumping when scrollbar appears/disappears
|
|
62
|
+
<header className="fixed top-0 z-10 bg-background/80 backdrop-blur left-0 right-0 2xl:ml-[--scrollbar-width]">
|
|
63
63
|
<div className="max-w-screen-2xl mx-auto">
|
|
64
64
|
<div className="grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-12 h-[--top-header-height]">
|
|
65
65
|
<div className="flex">
|
|
@@ -103,10 +103,13 @@ export const SidebarCategory = ({
|
|
|
103
103
|
<ul className="mt-1 border-l ps-2">
|
|
104
104
|
{category.items.map((item) => (
|
|
105
105
|
<SidebarItem
|
|
106
|
-
key={
|
|
106
|
+
key={
|
|
107
|
+
("id" in item ? item.id : "") +
|
|
108
|
+
("href" in item ? item.href : "") +
|
|
109
|
+
item.label
|
|
110
|
+
}
|
|
107
111
|
level={level + 1}
|
|
108
112
|
item={item}
|
|
109
|
-
// activeAnchor={activeAnchor}
|
|
110
113
|
/>
|
|
111
114
|
))}
|
|
112
115
|
</ul>
|
|
@@ -225,7 +225,7 @@ export const Playground = ({
|
|
|
225
225
|
<Tabs
|
|
226
226
|
defaultValue={pathParams.length > 0 ? "parameters" : "headers"}
|
|
227
227
|
>
|
|
228
|
-
<div className="flex justify-between">
|
|
228
|
+
<div className="flex flex-wrap gap-1 justify-between">
|
|
229
229
|
<TabsList>
|
|
230
230
|
{queryParams.length + pathParams.length > 0 && (
|
|
231
231
|
<TabsTrigger value="parameters">Parameters</TabsTrigger>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DeveloperHint-BQSFXH01.js","sources":["../src/lib/components/DeveloperHint.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { Callout } from \"../ui/Callout.js\";\n\nexport const DeveloperHint = ({\n children,\n className,\n}: {\n children: ReactNode;\n className?: string;\n}) => {\n // TODO: figure out a way to do that in consumer dev mode not \"internal\"\n // so this doesn't get stripped out in the build\n if (!import.meta.env.DEV) return;\n\n return (\n <Callout type=\"caution\" title=\"Developer hint\" className={className}>\n <div className=\"flex flex-col gap-2\">\n <div>{children}</div>\n <small className=\"italic\">\n Note: This hint is only shown in development mode.\n </small>\n </div>\n </Callout>\n );\n};\n"],"names":["DeveloperHint","children","className"],"mappings":";AAGO,MAAMA,IAAgB,CAAC;AAAA,EAC5B,UAAAC;AAAA,EACA,WAAAC;AACF,MAGM;AAeN;"}
|