zudoku 0.3.0-dev.23 → 0.3.0-dev.24

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 (85) hide show
  1. package/dist/lib/authentication/Callback.js +1 -1
  2. package/dist/lib/authentication/Callback.js.map +1 -1
  3. package/dist/lib/authentication/providers/openid.d.ts +1 -1
  4. package/dist/lib/components/DevPortal.d.ts +1 -1
  5. package/dist/lib/components/DevPortal.js +2 -2
  6. package/dist/lib/components/DevPortal.js.map +1 -1
  7. package/dist/lib/components/Layout.js +1 -1
  8. package/dist/lib/components/Layout.js.map +1 -1
  9. package/dist/lib/components/index.d.ts +10 -5
  10. package/dist/lib/components/index.js +8 -5
  11. package/dist/lib/components/index.js.map +1 -1
  12. package/dist/lib/plugins/markdown/MdxPage.js +2 -2
  13. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  14. package/dist/lib/plugins/markdown/Toc.js +1 -1
  15. package/dist/lib/plugins/markdown/Toc.js.map +1 -1
  16. package/dist/lib/plugins/markdown/generateRoutes.d.ts +1 -1
  17. package/dist/lib/plugins/markdown/generateRoutes.js +1 -1
  18. package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -1
  19. package/dist/lib/plugins/openapi/Route.js +1 -1
  20. package/dist/lib/plugins/openapi/Route.js.map +1 -1
  21. package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
  22. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
  23. package/dist/lib/plugins/openapi/index.js +1 -1
  24. package/dist/lib/plugins/openapi/index.js.map +1 -1
  25. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +1 -1
  26. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +1 -1
  27. package/dist/lib/plugins/openapi/playground/createUrl.d.ts +1 -1
  28. package/dist/lib/ui/Callout.js +1 -1
  29. package/dist/lib/ui/Callout.js.map +1 -1
  30. package/dist/lib/util/MdxComponents.js.map +1 -1
  31. package/lib/{AnchorLink-DIUlXlf0.js → AnchorLink-BzDjVML_.js} +183 -183
  32. package/lib/{DevPortalProvider-gzyAGqHT.js → DevPortalProvider-DssVwuLz.js} +2 -2
  33. package/lib/{Markdown-BjA7peYW.js → Markdown-BX9FqDM4.js} +3 -3
  34. package/lib/{MdxComponents-W-fE1ISO.js → MdxComponents-DiOAVA3z.js} +2 -2
  35. package/lib/{MdxPage-DQ7lZBzE.js → MdxPage-C9wmWulr.js} +21 -21
  36. package/lib/{OperationList-DuIBqFNA.js → OperationList-CmWB9QNy.js} +9 -9
  37. package/lib/{Route-B98Y2MdH.js → Route-QN8KKlcN.js} +2 -2
  38. package/lib/{Select-DczD5e29.js → Select-BK8C7kpB.js} +4 -4
  39. package/lib/{Spinner-CSoij67T.js → Spinner-CQiMiphN.js} +3 -3
  40. package/lib/{hook-CBXxHulF.js → hook-Rc146Fwy.js} +1 -1
  41. package/lib/{index-Cg6lXS1z.js → index-B5n-zpzS.js} +3 -3
  42. package/lib/{index-ClDDiRmC.js → index-B7upi2sn.js} +11 -11
  43. package/lib/{index-CKvOcM7w.js → index-Bf5lvKIp.js} +169 -169
  44. package/lib/{index-C7O9D7f6.js → index-DbU_G5RQ.js} +2 -2
  45. package/lib/{router-DibNxKUP.js → jsx-runtime-D7DwziLW.js} +2843 -2843
  46. package/lib/{util-CaVongBq.js → util-DnDPBx_j.js} +1 -1
  47. package/lib/zudoku.auth-openid.js +2 -2
  48. package/lib/zudoku.components.js +107 -109
  49. package/lib/zudoku.plugin-api-keys.js +6 -6
  50. package/lib/zudoku.plugin-markdown.js +5 -5
  51. package/lib/zudoku.plugin-openapi.js +2 -2
  52. package/lib/zudoku.plugin-redirect.js +2 -2
  53. package/package.json +1 -1
  54. package/src/lib/authentication/Callback.tsx +1 -1
  55. package/src/lib/authentication/providers/openid.tsx +1 -1
  56. package/src/lib/components/DevPortal.tsx +2 -2
  57. package/src/lib/components/Layout.tsx +1 -1
  58. package/src/lib/components/index.ts +8 -5
  59. package/src/lib/plugins/markdown/MdxPage.tsx +2 -2
  60. package/src/lib/plugins/markdown/Toc.tsx +1 -1
  61. package/src/lib/plugins/markdown/generateRoutes.tsx +1 -1
  62. package/src/lib/plugins/openapi/Route.tsx +1 -1
  63. package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
  64. package/src/lib/plugins/openapi/index.tsx +1 -1
  65. package/src/lib/plugins/openapi/playground/PathParams.tsx +1 -1
  66. package/src/lib/plugins/openapi/playground/QueryParams.tsx +1 -1
  67. package/src/lib/plugins/openapi/playground/createUrl.ts +1 -1
  68. package/src/lib/ui/Callout.tsx +2 -2
  69. package/src/lib/util/MdxComponents.tsx +0 -1
  70. package/dist/lib/components/Link.d.ts +0 -1
  71. package/dist/lib/components/Link.js +0 -2
  72. package/dist/lib/components/Link.js.map +0 -1
  73. package/dist/lib/core/helmet.d.ts +0 -4
  74. package/dist/lib/core/helmet.js +0 -5
  75. package/dist/lib/core/helmet.js.map +0 -1
  76. package/dist/lib/core/icons.d.ts +0 -1
  77. package/dist/lib/core/icons.js +0 -2
  78. package/dist/lib/core/icons.js.map +0 -1
  79. package/dist/lib/core/router.d.ts +0 -1
  80. package/dist/lib/core/router.js +0 -2
  81. package/dist/lib/core/router.js.map +0 -1
  82. package/src/lib/components/Link.tsx +0 -1
  83. package/src/lib/core/helmet.ts +0 -5
  84. package/src/lib/core/icons.tsx +0 -1
  85. package/src/lib/core/router.tsx +0 -1
@@ -1,5 +1,5 @@
1
1
  import { useEffect, useRef, useState } from "react";
2
- import { useNavigate } from "../core/router.js";
2
+ import { useNavigate } from "react-router-dom";
3
3
  import { OAuthAuthorizationError } from "./errors.js";
4
4
 
5
5
  export function Callback({
@@ -1,7 +1,7 @@
1
1
  import logger from "loglevel";
2
2
  import * as oauth from "oauth4webapi";
3
+ import type { RouteObject } from "react-router-dom";
3
4
  import { OpenIDAuthenticationConfig } from "../../../config/config.js";
4
- import { RouteObject } from "../../core/router.js";
5
5
  import {
6
6
  AuthenticationProvider,
7
7
  AuthenticationProviderInitializer,
@@ -1,12 +1,12 @@
1
1
  import { MDXProvider } from "@mdx-js/react";
2
2
  import { QueryClientProvider } from "@tanstack/react-query";
3
3
  import { Fragment, memo, Suspense, useEffect, useMemo } from "react";
4
+ import { Helmet, HelmetProvider } from "react-helmet-async";
4
5
  import {
5
6
  DevPortalContext,
6
7
  queryClient,
7
8
  ZudokuContextOptions,
8
9
  } from "../core/DevPortalContext.js";
9
- import { Helmet, HelmetProvider } from "../core/helmet.js";
10
10
  import { hasHead } from "../core/plugins.js";
11
11
  import { MdxComponents } from "../util/MdxComponents.js";
12
12
  import {
@@ -18,7 +18,7 @@ import { ThemeProvider } from "./context/ThemeContext.js";
18
18
  import { ViewportAnchorProvider } from "./context/ViewportAnchorContext.js";
19
19
  import { Router } from "./Router.js";
20
20
 
21
- export const DevPortalSystemPaths = {
21
+ const DevPortalSystemPaths = {
22
22
  Settings: "/settings",
23
23
  } as const;
24
24
 
@@ -1,6 +1,6 @@
1
1
  import { Suspense, useEffect, useRef, type ReactNode } from "react";
2
+ import { Helmet } from "react-helmet-async";
2
3
  import { Outlet, useLocation } from "react-router-dom";
3
- import { Helmet } from "../core/helmet.js";
4
4
  import { useScrollToAnchor } from "../util/useScrollToAnchor.js";
5
5
  import { useScrollToTop } from "../util/useScrollToTop.js";
6
6
  import { useDevPortal } from "./context/DevPortalProvider.js";
@@ -1,6 +1,9 @@
1
- import { Callout } from "../ui/Callout.js";
1
+ import { useMDXComponents as useMDXComponentsImport } from "@mdx-js/react";
2
+ import { Link as LinkImport } from "react-router-dom";
3
+ import { Callout as CalloutImport } from "../ui/Callout.js";
4
+ import { DevPortal as DevPortalImport } from "./DevPortal.js";
2
5
 
3
- export { useMDXComponents } from "@mdx-js/react";
4
- export { DevPortal } from "./DevPortal.js";
5
- export { Link } from "./Link.js";
6
- export { Callout };
6
+ export const useMDXComponents = /*@__PURE__*/ useMDXComponentsImport;
7
+ export const Callout = /*@__PURE__*/ CalloutImport;
8
+ export const DevPortal = /*@__PURE__*/ DevPortalImport;
9
+ export const Link = /*@__PURE__*/ LinkImport;
@@ -1,12 +1,12 @@
1
1
  import { useMDXComponents } from "@mdx-js/react";
2
2
  import { useMemo, type PropsWithChildren, type ReactNode } from "react";
3
+ import { Helmet } from "react-helmet-async";
4
+ import { Link, useLocation } from "react-router-dom";
3
5
  import { CategoryHeading } from "../../components/CategoryHeading.js";
4
6
  import { Heading } from "../../components/Heading.js";
5
7
  import { ProseClasses } from "../../components/Markdown.js";
6
8
  import { useTopNavigationItem } from "../../components/context/DevPortalProvider.js";
7
9
  import { isPathItem } from "../../components/navigation/util.js";
8
- import { Helmet } from "../../core/helmet.js";
9
- import { Link, useLocation } from "../../core/router.js";
10
10
  import type { MdxComponentsType } from "../../util/MdxComponents.js";
11
11
  import { cn } from "../../util/cn.js";
12
12
  import slugify from "../../util/slugify.js";
@@ -1,4 +1,5 @@
1
1
  import type { TocEntry } from "@stefanprobst/rehype-extract-toc";
2
+ import { ListTreeIcon } from "lucide-react";
2
3
  import {
3
4
  useEffect,
4
5
  useRef,
@@ -8,7 +9,6 @@ import {
8
9
  } from "react";
9
10
  import { AnchorLink } from "../../components/AnchorLink.js";
10
11
  import { useViewportAnchor } from "../../components/context/ViewportAnchorContext.js";
11
- import { ListTreeIcon } from "../../core/icons.js";
12
12
  import { cn } from "../../util/cn.js";
13
13
 
14
14
  const DATA_ANCHOR_ATTR = "data-active";
@@ -1,6 +1,6 @@
1
+ import { Navigate, type RouteObject } from "react-router-dom";
1
2
  import { useTopNavigationItem } from "../../components/context/DevPortalProvider.js";
2
3
  import { isPathItem } from "../../components/navigation/util.js";
3
- import { Navigate, type RouteObject } from "../../core/router.js";
4
4
  import { traverseNavigation } from "../../util/traverseNavigation.js";
5
5
 
6
6
  import {
@@ -1,4 +1,4 @@
1
- import { Outlet } from "../../core/router.js";
1
+ import { Outlet } from "react-router-dom";
2
2
  import { OasConfigProvider } from "./context.js";
3
3
  import { OasPluginConfig } from "./interfaces.js";
4
4
 
@@ -1,5 +1,5 @@
1
+ import { ChevronsUpDownIcon } from "lucide-react";
1
2
  import type { ChangeEventHandler } from "react";
2
- import { ChevronsUpDownIcon } from "../../core/icons.js";
3
3
  import { cn } from "../../util/cn.js";
4
4
 
5
5
  export const SimpleSelect = ({
@@ -1,8 +1,8 @@
1
+ import { matchPath, type RouteObject } from "react-router-dom";
1
2
  import {
2
3
  type DevPortalPlugin,
3
4
  type PluginNavigationCategory,
4
5
  } from "../../core/plugins.js";
5
- import { matchPath, type RouteObject } from "../../core/router.js";
6
6
  import { MethodBadge } from "./MethodBadge.js";
7
7
  import { graphql } from "./graphql/index.js";
8
8
  import {
@@ -3,7 +3,7 @@ import { Control, useFieldArray, UseFormRegister } from "react-hook-form";
3
3
  import { cn } from "../../../util/cn.js";
4
4
  import { DATA_ATTR, usePastellizedColor } from "../ColorizedParam.js";
5
5
  import { InlineInput } from "./InlineInput.js";
6
- import { PlaygroundForm } from "./Playground.js";
6
+ import type { PlaygroundForm } from "./Playground.js";
7
7
 
8
8
  type ParameterValueProps = {
9
9
  part: string;
@@ -6,7 +6,7 @@ import {
6
6
  useFormContext,
7
7
  } from "react-hook-form";
8
8
  import { InlineInput } from "./InlineInput.js";
9
- import { PlaygroundForm } from "./Playground.js";
9
+ import type { PlaygroundForm } from "./Playground.js";
10
10
 
11
11
  export const QueryParams = ({
12
12
  control,
@@ -1,4 +1,4 @@
1
- import { PlaygroundForm } from "./Playground.js";
1
+ import type { PlaygroundForm } from "./Playground.js";
2
2
 
3
3
  export const createUrl = (host: string, path: string, data: PlaygroundForm) => {
4
4
  const url = new URL(
@@ -1,10 +1,10 @@
1
- import type { ReactNode } from "react";
2
1
  import {
3
2
  AlertTriangleIcon,
4
3
  InfoIcon,
5
4
  LightbulbIcon,
6
5
  ShieldAlertIcon,
7
- } from "../core/icons.js";
6
+ } from "lucide-react";
7
+ import type { ReactNode } from "react";
8
8
  import { cn } from "../util/cn.js";
9
9
 
10
10
  const stylesMap = {
@@ -1,6 +1,5 @@
1
1
  import { MDXProvider } from "@mdx-js/react";
2
2
  import type { ComponentProps } from "react";
3
-
4
3
  import { Link } from "react-router-dom";
5
4
  import { Heading } from "../components/Heading.js";
6
5
  import { SyntaxHighlight } from "../components/SyntaxHighlight.js";
@@ -1 +0,0 @@
1
- export { Link } from "../core/router.js";
@@ -1,2 +0,0 @@
1
- export { Link } from "../core/router.js";
2
- //# sourceMappingURL=Link.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Link.js","sourceRoot":"","sources":["../../../src/lib/components/Link.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1,4 +0,0 @@
1
- import * as helmet from "react-helmet-async";
2
- export declare const Helmet: typeof helmet.Helmet;
3
- export declare const HelmetData: typeof helmet.HelmetData;
4
- export declare const HelmetProvider: typeof helmet.HelmetProvider;
@@ -1,5 +0,0 @@
1
- import * as helmet from "react-helmet-async";
2
- export const Helmet = helmet.Helmet;
3
- export const HelmetData = helmet.HelmetData;
4
- export const HelmetProvider = helmet.HelmetProvider;
5
- //# sourceMappingURL=helmet.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helmet.js","sourceRoot":"","sources":["../../../src/lib/core/helmet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAE7C,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACpC,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;AAC5C,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC"}
@@ -1 +0,0 @@
1
- export * from "lucide-react";
@@ -1,2 +0,0 @@
1
- export * from "lucide-react";
2
- //# sourceMappingURL=icons.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"icons.js","sourceRoot":"","sources":["../../../src/lib/core/icons.tsx"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
@@ -1 +0,0 @@
1
- export * from "react-router-dom";
@@ -1,2 +0,0 @@
1
- export * from "react-router-dom";
2
- //# sourceMappingURL=router.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"router.js","sourceRoot":"","sources":["../../../src/lib/core/router.tsx"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
@@ -1 +0,0 @@
1
- export { Link } from "../core/router.js";
@@ -1,5 +0,0 @@
1
- import * as helmet from "react-helmet-async";
2
-
3
- export const Helmet = helmet.Helmet;
4
- export const HelmetData = helmet.HelmetData;
5
- export const HelmetProvider = helmet.HelmetProvider;
@@ -1 +0,0 @@
1
- export * from "lucide-react";
@@ -1 +0,0 @@
1
- export * from "react-router-dom";