zudoku 0.4.5 → 0.4.6-dev.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.
@@ -1,5 +1,5 @@
1
1
  import "./jsx-runtime-B6kdoens.js";
2
- import { o as s } from "./index-BfLQd6h_.js";
2
+ import { o as s } from "./index-Bx9hQF5t.js";
3
3
  import "./urql-YhcsXYy8.js";
4
4
  import "./ZudokuContext-BHNQL3XO.js";
5
5
  import "zudoku/openapi-worker";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zudoku",
3
- "version": "0.4.5",
3
+ "version": "0.4.6-dev.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
package/src/app/main.css CHANGED
@@ -81,11 +81,11 @@
81
81
  --top-header-height: 65px;
82
82
  --top-nav-height: 50px;
83
83
  --banner-height: 48px;
84
- --side-nav-width: theme("spacing.72");
85
84
  --header-height: calc(
86
85
  var(--top-header-height) + var(--top-nav-height) + var(--banner-height)
87
86
  );
88
87
  --scroll-padding: calc(var(--header-height) + 10px);
88
+ --side-nav-width: theme("spacing.72");
89
89
  --padding-content-top: theme("spacing.12");
90
90
  --padding-content-bottom: theme("spacing.12");
91
91
  --padding-nav-item: theme("spacing[2.5]");
@@ -93,6 +93,11 @@
93
93
  --scrollbar-width: calc(100vw - 100%);
94
94
  }
95
95
 
96
+ html {
97
+ /* This is to prevent layout jumping when the scrollbar appears/disappears */
98
+ @apply -mr-[--scrollbar-width] scroll-pt-[--scroll-padding];
99
+ }
100
+
96
101
  html,
97
102
  body {
98
103
  @apply h-full overscroll-none;
@@ -105,12 +110,6 @@
105
110
  @apply border-border;
106
111
  }
107
112
 
108
- html {
109
- scroll-padding-block: var(--scroll-padding);
110
- /* This is to prevent layout jumping when the scrollbar appears/disappears */
111
- @apply -mr-[--scrollbar-width];
112
- }
113
-
114
113
  body {
115
114
  @apply antialiased bg-background text-foreground overflow-y-auto overflow-x-clip;
116
115
  font-feature-settings:
@@ -66,7 +66,7 @@ export const Header = memo(function HeaderInner() {
66
66
  <div>{page.banner.message}</div>
67
67
  </div>
68
68
  ) : (
69
- <style>{`:root{--banner-height: 0}`}</style>
69
+ <style>{`:root{ --banner-height: 0px }`}</style>
70
70
  )}
71
71
  </>
72
72
  <div className="max-w-screen-2xl mx-auto">
@@ -60,7 +60,12 @@ export const OperationListItem = ({
60
60
  )}
61
61
  {renderIf(operation.requestBody?.content?.at(0)?.schema, (schema) => (
62
62
  <div className="mt-4 flex flex-col gap-4">
63
- <Heading level={3} className="capitalize">
63
+ <Heading
64
+ level={3}
65
+ className="capitalize"
66
+ id={`${operation.slug}/request-body`}
67
+ registerSidebarAnchor
68
+ >
64
69
  Request Body
65
70
  </Heading>
66
71
  <SchemaView schema={schema} />
@@ -68,7 +73,12 @@ export const OperationListItem = ({
68
73
  ))}
69
74
  {operation.responses.length > 0 && (
70
75
  <>
71
- <Heading level={3} className="capitalize mt-8 pt-8 border-t">
76
+ <Heading
77
+ level={3}
78
+ className="capitalize mt-8 pt-8 border-t"
79
+ id={`${operation.slug}/responses`}
80
+ registerSidebarAnchor
81
+ >
72
82
  Responses
73
83
  </Heading>
74
84
  <Tabs