@mehdad67/apitogo 0.1.25 → 0.1.27
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/cli.js +36 -36
- package/dist/declarations/lib/ui/ActionButton.d.ts +1 -1
- package/dist/declarations/lib/ui/Command.d.ts +1 -1
- package/dist/declarations/lib/util/MdxComponents.d.ts +1 -1
- package/package.json +4 -4
- package/src/app/main.tsx +2 -2
- package/src/lib/authentication/components/CallbackHandler.tsx +1 -1
- package/src/lib/authentication/components/SignIn.tsx +2 -2
- package/src/lib/authentication/components/SignUp.tsx +2 -2
- package/src/lib/authentication/providers/clerk.tsx +1 -1
- package/src/lib/authentication/ui/AuthCard.tsx +1 -1
- package/src/lib/authentication/ui/EmailLinkCallbackUi.tsx +5 -5
- package/src/lib/authentication/ui/EmailLinkSentUi.tsx +3 -3
- package/src/lib/authentication/ui/EmailLinkSignInUi.tsx +4 -4
- package/src/lib/authentication/ui/EmailVerificationUi.tsx +4 -4
- package/src/lib/authentication/ui/ZudokuAuthUi.tsx +6 -6
- package/src/lib/components/AiAssistantMenuItems.tsx +1 -1
- package/src/lib/components/Autocomplete.tsx +2 -2
- package/src/lib/components/DeveloperHint.tsx +1 -1
- package/src/lib/components/Header.tsx +2 -2
- package/src/lib/components/LandingLayout.tsx +1 -1
- package/src/lib/components/Layout.tsx +1 -1
- package/src/lib/components/Main.tsx +1 -1
- package/src/lib/components/Mermaid.tsx +1 -1
- package/src/lib/components/MobileTopNavigation.tsx +3 -3
- package/src/lib/components/MultiSelect.tsx +1 -1
- package/src/lib/components/TopNavigation.tsx +1 -1
- package/src/lib/components/context/ZudokuContext.ts +1 -1
- package/src/lib/components/navigation/NavigationCategory.tsx +1 -1
- package/src/lib/components/navigation/NavigationFilterInput.tsx +1 -1
- package/src/lib/components/navigation/NavigationItem.tsx +2 -2
- package/src/lib/core/RouteGuard.tsx +2 -2
- package/src/lib/errors/ErrorMessage.tsx +2 -2
- package/src/lib/plugins/api-catalog/Catalog.tsx +1 -1
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +4 -4
- package/src/lib/plugins/api-keys/CreateApiKeyDialog.tsx +1 -1
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +3 -3
- package/src/lib/plugins/api-keys/settings/ApiKeyItem.tsx +5 -5
- package/src/lib/plugins/api-keys/settings/RevealApiKey.tsx +3 -3
- package/src/lib/plugins/markdown/MdxPage.tsx +3 -3
- package/src/lib/plugins/openapi/ApiHeader.tsx +1 -1
- package/src/lib/plugins/openapi/CollapsibleCode.tsx +2 -2
- package/src/lib/plugins/openapi/DownloadSchemaButton.tsx +3 -3
- package/src/lib/plugins/openapi/GeneratedExampleSidecarBox.tsx +2 -2
- package/src/lib/plugins/openapi/OperationListItem.tsx +2 -2
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +2 -2
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +4 -4
- package/src/lib/plugins/openapi/SchemaInfo.tsx +1 -1
- package/src/lib/plugins/openapi/SchemaList.tsx +2 -2
- package/src/lib/plugins/openapi/Sidecar.tsx +4 -4
- package/src/lib/plugins/openapi/SidecarExamples.tsx +2 -2
- package/src/lib/plugins/openapi/components/EnumValues.tsx +1 -1
- package/src/lib/plugins/openapi/components/ResponseContent.tsx +3 -3
- package/src/lib/plugins/openapi/playground/BodyPanel.tsx +4 -4
- package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +1 -1
- package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +2 -2
- package/src/lib/plugins/openapi/playground/Headers.tsx +3 -3
- package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +5 -5
- package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +2 -2
- package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +2 -2
- package/src/lib/plugins/openapi/playground/Playground.tsx +4 -4
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +3 -3
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +2 -2
- package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +4 -4
- package/src/lib/plugins/openapi/playground/request-panel/MultipartField.tsx +2 -2
- package/src/lib/plugins/openapi/playground/result-panel/AudioPlayer.tsx +1 -1
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +5 -5
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +2 -2
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +1 -1
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +2 -2
- package/src/lib/plugins/search-pagefind/IndexingDialog.tsx +2 -2
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +4 -4
- package/src/lib/plugins/search-pagefind/ResultList.tsx +1 -1
- package/src/lib/ui/ActionButton.tsx +1 -1
- package/src/lib/ui/Command.tsx +1 -1
- package/src/lib/util/MdxComponents.tsx +2 -2
- package/src/vite/config.ts +4 -4
- package/src/vite/plugin-api-keys.ts +1 -1
- package/src/vite/plugin-api.ts +2 -2
- package/src/vite/plugin-auth.ts +1 -1
- package/src/vite/plugin-component.ts +5 -5
- package/src/vite/plugin-config.ts +1 -1
- package/src/vite/plugin-custom-pages.ts +1 -1
- package/src/vite/plugin-docs.ts +1 -1
- package/src/vite/plugin-mdx.ts +1 -1
- package/src/vite/plugin-modules.ts +2 -2
- package/src/vite/plugin-navigation.ts +1 -1
- package/src/vite/plugin-search.ts +2 -2
- package/src/vite/plugin.ts +1 -1
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
Alert,
|
|
3
3
|
AlertDescription,
|
|
4
4
|
AlertTitle,
|
|
5
|
-
} from "@
|
|
5
|
+
} from "@mehdad67/apitogo/ui/Alert.js";
|
|
6
6
|
import { Suspense, lazy } from "react";
|
|
7
7
|
import { DeveloperHint } from "../components/DeveloperHint.js";
|
|
8
8
|
import { ZudokuError } from "../util/invariant.js";
|
|
9
9
|
|
|
10
10
|
const SyntaxHighlight = lazy(() =>
|
|
11
|
-
import("@
|
|
11
|
+
import("@mehdad67/apitogo/ui/SyntaxHighlight.js").then((m) => ({
|
|
12
12
|
default: m.SyntaxHighlight,
|
|
13
13
|
})),
|
|
14
14
|
);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ActionButton } from "@
|
|
1
|
+
import { ActionButton } from "@mehdad67/apitogo/ui/ActionButton.js";
|
|
2
2
|
import {
|
|
3
3
|
Alert,
|
|
4
4
|
AlertDescription,
|
|
5
5
|
AlertTitle,
|
|
6
|
-
} from "@
|
|
7
|
-
import { DialogClose, DialogFooter } from "@
|
|
6
|
+
} from "@mehdad67/apitogo/ui/Alert.js";
|
|
7
|
+
import { DialogClose, DialogFooter } from "@mehdad67/apitogo/ui/Dialog.js";
|
|
8
8
|
import {
|
|
9
9
|
Select,
|
|
10
10
|
SelectContent,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
SelectItem,
|
|
13
13
|
SelectTrigger,
|
|
14
14
|
SelectValue,
|
|
15
|
-
} from "@
|
|
15
|
+
} from "@mehdad67/apitogo/ui/Select.js";
|
|
16
16
|
import { useMutation, useQueryClient } from "@tanstack/react-query";
|
|
17
17
|
import { useForm } from "react-hook-form";
|
|
18
18
|
import { useNavigate } from "react-router";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
DialogHeader,
|
|
5
5
|
DialogTitle,
|
|
6
6
|
DialogTrigger,
|
|
7
|
-
} from "@
|
|
7
|
+
} from "@mehdad67/apitogo/ui/Dialog.js";
|
|
8
8
|
import type { ReactNode } from "react";
|
|
9
9
|
import { Button } from "../../ui/Button.js";
|
|
10
10
|
import { CreateApiKey } from "./CreateApiKey.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Button } from "@
|
|
2
|
-
import { useAuth } from "@
|
|
1
|
+
import { Button } from "@mehdad67/apitogo/components";
|
|
2
|
+
import { useAuth } from "@mehdad67/apitogo/hooks";
|
|
3
3
|
import {
|
|
4
4
|
Item,
|
|
5
5
|
ItemActions,
|
|
6
6
|
ItemContent,
|
|
7
7
|
ItemDescription,
|
|
8
8
|
ItemTitle,
|
|
9
|
-
} from "@
|
|
9
|
+
} from "@mehdad67/apitogo/ui/Item.js";
|
|
10
10
|
import { useState } from "react";
|
|
11
11
|
import { ErrorBoundary } from "react-error-boundary";
|
|
12
12
|
import { useVerifiedEmail } from "../../authentication/hook.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Alert, AlertTitle } from "@
|
|
2
|
-
import { Button } from "@
|
|
1
|
+
import { Alert, AlertTitle } from "@mehdad67/apitogo/ui/Alert.js";
|
|
2
|
+
import { Button } from "@mehdad67/apitogo/ui/Button.js";
|
|
3
3
|
import {
|
|
4
4
|
Dialog,
|
|
5
5
|
DialogClose,
|
|
@@ -9,15 +9,15 @@ import {
|
|
|
9
9
|
DialogHeader,
|
|
10
10
|
DialogTitle,
|
|
11
11
|
DialogTrigger,
|
|
12
|
-
} from "@
|
|
12
|
+
} from "@mehdad67/apitogo/ui/Dialog.js";
|
|
13
13
|
import {
|
|
14
14
|
Frame,
|
|
15
15
|
FrameDescription,
|
|
16
16
|
FrameHeader,
|
|
17
17
|
FramePanel,
|
|
18
18
|
FrameTitle,
|
|
19
|
-
} from "@
|
|
20
|
-
import { Input } from "@
|
|
19
|
+
} from "@mehdad67/apitogo/ui/Frame.js";
|
|
20
|
+
import { Input } from "@mehdad67/apitogo/ui/Input.js";
|
|
21
21
|
import { useMutation, useQueryClient } from "@tanstack/react-query";
|
|
22
22
|
import {
|
|
23
23
|
CheckIcon,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Button } from "@
|
|
1
|
+
import { Button } from "@mehdad67/apitogo/ui/Button.js";
|
|
2
2
|
import {
|
|
3
3
|
Dialog,
|
|
4
4
|
DialogClose,
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
DialogHeader,
|
|
9
9
|
DialogTitle,
|
|
10
10
|
DialogTrigger,
|
|
11
|
-
} from "@
|
|
12
|
-
import { Secret } from "@
|
|
11
|
+
} from "@mehdad67/apitogo/ui/Dialog.js";
|
|
12
|
+
import { Secret } from "@mehdad67/apitogo/ui/Secret.js";
|
|
13
13
|
import { TrashIcon } from "lucide-react";
|
|
14
14
|
import { useState } from "react";
|
|
15
15
|
import { cn } from "../../../util/cn.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Button } from "@
|
|
2
|
-
import { ButtonGroup } from "@
|
|
1
|
+
import { Button } from "@mehdad67/apitogo/ui/Button.js";
|
|
2
|
+
import { ButtonGroup } from "@mehdad67/apitogo/ui/ButtonGroup.js";
|
|
3
3
|
import {
|
|
4
4
|
DropdownMenu,
|
|
5
5
|
DropdownMenuContent,
|
|
6
6
|
DropdownMenuItem,
|
|
7
7
|
DropdownMenuTrigger,
|
|
8
|
-
} from "@
|
|
8
|
+
} from "@mehdad67/apitogo/ui/DropdownMenu.js";
|
|
9
9
|
import { useMDXComponents } from "@mdx-js/react";
|
|
10
10
|
import { Helmet } from "@zudoku/react-helmet-async";
|
|
11
11
|
import {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
SelectItem,
|
|
5
5
|
SelectTrigger,
|
|
6
6
|
SelectValue,
|
|
7
|
-
} from "@
|
|
7
|
+
} from "@mehdad67/apitogo/ui/Select.js";
|
|
8
8
|
import type { ReactNode } from "react";
|
|
9
9
|
import { Link, useNavigate } from "react-router";
|
|
10
10
|
import { CategoryHeading } from "../../components/CategoryHeading.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Button } from "@
|
|
1
|
+
import { Button } from "@mehdad67/apitogo/ui/Button.js";
|
|
2
2
|
import {
|
|
3
3
|
Collapsible,
|
|
4
4
|
CollapsibleContent,
|
|
5
5
|
CollapsibleTrigger,
|
|
6
|
-
} from "@
|
|
6
|
+
} from "@mehdad67/apitogo/ui/Collapsible.js";
|
|
7
7
|
import { FoldVerticalIcon, UnfoldVerticalIcon } from "lucide-react";
|
|
8
8
|
import { type CSSProperties, type ReactNode, useRef, useState } from "react";
|
|
9
9
|
import { cn } from "../../util/cn.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Button } from "@
|
|
2
|
-
import { ButtonGroup } from "@
|
|
1
|
+
import { Button } from "@mehdad67/apitogo/components";
|
|
2
|
+
import { ButtonGroup } from "@mehdad67/apitogo/ui/ButtonGroup.js";
|
|
3
3
|
import {
|
|
4
4
|
DropdownMenu,
|
|
5
5
|
DropdownMenuContent,
|
|
6
6
|
DropdownMenuItem,
|
|
7
7
|
DropdownMenuTrigger,
|
|
8
|
-
} from "@
|
|
8
|
+
} from "@mehdad67/apitogo/ui/DropdownMenu.js";
|
|
9
9
|
import {
|
|
10
10
|
ChevronDownIcon,
|
|
11
11
|
CopyIcon,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { SyntaxHighlight } from "@
|
|
1
|
+
import { SyntaxHighlight } from "@mehdad67/apitogo/ui/SyntaxHighlight.js";
|
|
2
2
|
import {
|
|
3
3
|
Tooltip,
|
|
4
4
|
TooltipContent,
|
|
5
5
|
TooltipProvider,
|
|
6
6
|
TooltipTrigger,
|
|
7
|
-
} from "@
|
|
7
|
+
} from "@mehdad67/apitogo/ui/Tooltip.js";
|
|
8
8
|
import { InfoIcon } from "lucide-react";
|
|
9
9
|
import { NonHighlightedCode } from "./components/NonHighlightedCode.js";
|
|
10
10
|
import * as SidecarBox from "./SidecarBox.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Badge } from "@
|
|
2
|
-
import { Separator } from "@
|
|
1
|
+
import { Badge } from "@mehdad67/apitogo/ui/Badge.js";
|
|
2
|
+
import { Separator } from "@mehdad67/apitogo/ui/Separator.js";
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { Heading } from "../../components/Heading.js";
|
|
5
5
|
import { Markdown } from "../../components/Markdown.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Button } from "@
|
|
1
|
+
import { Button } from "@mehdad67/apitogo/components";
|
|
2
2
|
import {
|
|
3
3
|
Collapsible,
|
|
4
4
|
CollapsibleContent,
|
|
5
5
|
CollapsibleTrigger,
|
|
6
|
-
} from "@
|
|
6
|
+
} from "@mehdad67/apitogo/ui/Collapsible.js";
|
|
7
7
|
import { ChevronsDownUpIcon, ChevronsUpDownIcon } from "lucide-react";
|
|
8
8
|
import type { MediaTypeObject } from "./graphql/graphql.js";
|
|
9
9
|
import * as SidecarBox from "./SidecarBox.js";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Button } from "@
|
|
1
|
+
import { Button } from "@mehdad67/apitogo/components";
|
|
2
2
|
import {
|
|
3
3
|
Collapsible,
|
|
4
4
|
CollapsibleContent,
|
|
5
5
|
CollapsibleTrigger,
|
|
6
|
-
} from "@
|
|
6
|
+
} from "@mehdad67/apitogo/ui/Collapsible.js";
|
|
7
7
|
import {
|
|
8
8
|
NativeSelect,
|
|
9
9
|
NativeSelectOption,
|
|
10
|
-
} from "@
|
|
10
|
+
} from "@mehdad67/apitogo/ui/NativeSelect.js";
|
|
11
11
|
import {
|
|
12
12
|
Tooltip,
|
|
13
13
|
TooltipContent,
|
|
14
14
|
TooltipProvider,
|
|
15
15
|
TooltipTrigger,
|
|
16
|
-
} from "@
|
|
16
|
+
} from "@mehdad67/apitogo/ui/Tooltip.js";
|
|
17
17
|
import { ChevronsDownUpIcon, ChevronsUpDownIcon, InfoIcon } from "lucide-react";
|
|
18
18
|
import { useEffect, useState } from "react";
|
|
19
19
|
import type { ResponseItem } from "./graphql/graphql.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Button } from "@
|
|
1
|
+
import { Button } from "@mehdad67/apitogo/ui/Button.js";
|
|
2
2
|
import {
|
|
3
3
|
Collapsible,
|
|
4
4
|
CollapsibleContent,
|
|
5
5
|
CollapsibleTrigger,
|
|
6
|
-
} from "@
|
|
6
|
+
} from "@mehdad67/apitogo/ui/Collapsible.js";
|
|
7
7
|
import { useSuspenseQuery } from "@tanstack/react-query";
|
|
8
8
|
import { Helmet } from "@zudoku/react-helmet-async";
|
|
9
9
|
import { ChevronRightIcon } from "lucide-react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { useApitogo } from "@
|
|
2
|
-
import { Badge } from "@
|
|
1
|
+
import { useApitogo } from "@mehdad67/apitogo/hooks";
|
|
2
|
+
import { Badge } from "@mehdad67/apitogo/ui/Badge.js";
|
|
3
3
|
import {
|
|
4
4
|
NativeSelect,
|
|
5
5
|
NativeSelectOption,
|
|
6
|
-
} from "@
|
|
7
|
-
import { SyntaxHighlight } from "@
|
|
6
|
+
} from "@mehdad67/apitogo/ui/NativeSelect.js";
|
|
7
|
+
import { SyntaxHighlight } from "@mehdad67/apitogo/ui/SyntaxHighlight.js";
|
|
8
8
|
import { useMemo, useState, useTransition } from "react";
|
|
9
9
|
import { useSearchParams } from "react-router";
|
|
10
10
|
import { useAuthState } from "../../authentication/state.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Badge } from "@
|
|
1
|
+
import { Badge } from "@mehdad67/apitogo/ui/Badge.js";
|
|
2
2
|
import {
|
|
3
3
|
NativeSelect,
|
|
4
4
|
NativeSelectOption,
|
|
5
|
-
} from "@
|
|
5
|
+
} from "@mehdad67/apitogo/ui/NativeSelect.js";
|
|
6
6
|
import { ExternalLinkIcon } from "lucide-react";
|
|
7
7
|
import { SyntaxHighlight } from "../../ui/SyntaxHighlight.js";
|
|
8
8
|
import { NonHighlightedCode } from "./components/NonHighlightedCode.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Badge } from "@
|
|
1
|
+
import { Badge } from "@mehdad67/apitogo/ui/Badge.js";
|
|
2
2
|
import {
|
|
3
3
|
NativeSelect,
|
|
4
4
|
NativeSelectOption,
|
|
5
|
-
} from "@
|
|
6
|
-
import { cn } from "@
|
|
5
|
+
} from "@mehdad67/apitogo/ui/NativeSelect.js";
|
|
6
|
+
import { cn } from "@mehdad67/apitogo/ui/util.js";
|
|
7
7
|
import * as Tabs from "@radix-ui/react-tabs";
|
|
8
8
|
import { useState } from "react";
|
|
9
9
|
import { Markdown } from "../../../components/Markdown.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Button } from "@
|
|
1
|
+
import { Button } from "@mehdad67/apitogo/components";
|
|
2
2
|
import {
|
|
3
3
|
Collapsible,
|
|
4
4
|
CollapsibleContent,
|
|
5
|
-
} from "@
|
|
5
|
+
} from "@mehdad67/apitogo/ui/Collapsible.js";
|
|
6
6
|
import {
|
|
7
7
|
DropdownMenu,
|
|
8
8
|
DropdownMenuContent,
|
|
9
9
|
DropdownMenuItem,
|
|
10
10
|
DropdownMenuTrigger,
|
|
11
|
-
} from "@
|
|
12
|
-
import { Textarea } from "@
|
|
11
|
+
} from "@mehdad67/apitogo/ui/DropdownMenu.js";
|
|
12
|
+
import { Textarea } from "@mehdad67/apitogo/ui/Textarea.js";
|
|
13
13
|
import {
|
|
14
14
|
ChevronDownIcon,
|
|
15
15
|
FileInput,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Button } from "@
|
|
1
|
+
import { Button } from "@mehdad67/apitogo/ui/Button.js";
|
|
2
2
|
import {
|
|
3
3
|
DropdownMenu,
|
|
4
4
|
DropdownMenuContent,
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
DropdownMenuLabel,
|
|
8
8
|
DropdownMenuSeparator,
|
|
9
9
|
DropdownMenuTrigger,
|
|
10
|
-
} from "@
|
|
10
|
+
} from "@mehdad67/apitogo/ui/DropdownMenu.js";
|
|
11
11
|
import { PlusCircleIcon } from "lucide-react";
|
|
12
12
|
import type { ExampleItem, MediaTypeObject } from "../graphql/graphql.js";
|
|
13
13
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Checkbox } from "@
|
|
1
|
+
import { Checkbox } from "@mehdad67/apitogo/ui/Checkbox.js";
|
|
2
2
|
import {
|
|
3
3
|
Collapsible,
|
|
4
4
|
CollapsibleContent,
|
|
5
|
-
} from "@
|
|
5
|
+
} from "@mehdad67/apitogo/ui/Collapsible.js";
|
|
6
6
|
import {
|
|
7
7
|
Tooltip,
|
|
8
8
|
TooltipContent,
|
|
9
9
|
TooltipTrigger,
|
|
10
|
-
} from "@
|
|
10
|
+
} from "@mehdad67/apitogo/ui/Tooltip.js";
|
|
11
11
|
import { CircleAlertIcon, LockIcon, TableOfContentsIcon } from "lucide-react";
|
|
12
12
|
import { type Control, useFormContext } from "react-hook-form";
|
|
13
13
|
import { Autocomplete } from "../../../components/Autocomplete.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Button } from "@
|
|
2
|
-
import { Card } from "@
|
|
3
|
-
import { Checkbox } from "@
|
|
1
|
+
import { Button } from "@mehdad67/apitogo/ui/Button.js";
|
|
2
|
+
import { Card } from "@mehdad67/apitogo/ui/Card.js";
|
|
3
|
+
import { Checkbox } from "@mehdad67/apitogo/ui/Checkbox.js";
|
|
4
4
|
import {
|
|
5
5
|
Dialog,
|
|
6
6
|
DialogContent,
|
|
7
7
|
DialogDescription,
|
|
8
8
|
DialogFooter,
|
|
9
9
|
DialogTitle,
|
|
10
|
-
} from "@
|
|
11
|
-
import { Label } from "@
|
|
10
|
+
} from "@mehdad67/apitogo/ui/Dialog.js";
|
|
11
|
+
import { Label } from "@mehdad67/apitogo/ui/Label.js";
|
|
12
12
|
import { useState } from "react";
|
|
13
13
|
import type { ApiIdentity } from "../../../core/ZudokuContext.js";
|
|
14
14
|
import IdentitySelector from "./IdentitySelector.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Label } from "@
|
|
2
|
-
import { RadioGroup, RadioGroupItem } from "@
|
|
1
|
+
import { Label } from "@mehdad67/apitogo/ui/Label.js";
|
|
2
|
+
import { RadioGroup, RadioGroupItem } from "@mehdad67/apitogo/ui/RadioGroup.js";
|
|
3
3
|
import type { ApiIdentity } from "../../../core/ZudokuContext.js";
|
|
4
4
|
import { NO_IDENTITY } from "./Playground.js";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Button } from "@
|
|
2
|
-
import { Input } from "@
|
|
1
|
+
import { Button } from "@mehdad67/apitogo/components";
|
|
2
|
+
import { Input } from "@mehdad67/apitogo/ui/Input.js";
|
|
3
3
|
import { XIcon } from "lucide-react";
|
|
4
4
|
import { cn } from "../../../util/cn.js";
|
|
5
5
|
import createVariantComponent from "../../../util/createVariantComponent.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Button } from "@
|
|
1
|
+
import { Button } from "@mehdad67/apitogo/ui/Button.js";
|
|
2
2
|
import {
|
|
3
3
|
Collapsible,
|
|
4
4
|
CollapsibleContent,
|
|
5
|
-
} from "@
|
|
5
|
+
} from "@mehdad67/apitogo/ui/Collapsible.js";
|
|
6
6
|
import {
|
|
7
7
|
Select,
|
|
8
8
|
SelectContent,
|
|
9
9
|
SelectItem,
|
|
10
10
|
SelectTrigger,
|
|
11
11
|
SelectValue,
|
|
12
|
-
} from "@
|
|
13
|
-
import { TooltipProvider } from "@
|
|
12
|
+
} from "@mehdad67/apitogo/ui/Select.js";
|
|
13
|
+
import { TooltipProvider } from "@mehdad67/apitogo/ui/Tooltip.js";
|
|
14
14
|
import { useNProgress } from "@tanem/react-nprogress";
|
|
15
15
|
import { useMutation } from "@tanstack/react-query";
|
|
16
16
|
import {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { useAuth } from "@
|
|
2
|
-
import { Button } from "@
|
|
1
|
+
import { useAuth } from "@mehdad67/apitogo/hooks";
|
|
2
|
+
import { Button } from "@mehdad67/apitogo/ui/Button.js";
|
|
3
3
|
import {
|
|
4
4
|
Dialog,
|
|
5
5
|
DialogContent,
|
|
6
6
|
DialogTitle,
|
|
7
7
|
DialogTrigger,
|
|
8
|
-
} from "@
|
|
8
|
+
} from "@mehdad67/apitogo/ui/Dialog.js";
|
|
9
9
|
import { VisuallyHidden } from "@radix-ui/react-visually-hidden";
|
|
10
10
|
import { PlayIcon } from "lucide-react";
|
|
11
11
|
import { type PropsWithChildren, useState } from "react";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Checkbox } from "@
|
|
1
|
+
import { Checkbox } from "@mehdad67/apitogo/ui/Checkbox.js";
|
|
2
2
|
import {
|
|
3
3
|
Collapsible,
|
|
4
4
|
CollapsibleContent,
|
|
5
|
-
} from "@
|
|
5
|
+
} from "@mehdad67/apitogo/ui/Collapsible.js";
|
|
6
6
|
import { Unlink2Icon } from "lucide-react";
|
|
7
7
|
import { type Control, useFormContext } from "react-hook-form";
|
|
8
8
|
import { Autocomplete } from "../../../components/Autocomplete.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Button } from "@
|
|
2
|
-
import { Checkbox } from "@
|
|
1
|
+
import { Button } from "@mehdad67/apitogo/ui/Button.js";
|
|
2
|
+
import { Checkbox } from "@mehdad67/apitogo/ui/Checkbox.js";
|
|
3
3
|
import {
|
|
4
4
|
Dialog,
|
|
5
5
|
DialogContent,
|
|
6
6
|
DialogDescription,
|
|
7
7
|
DialogFooter,
|
|
8
8
|
DialogTitle,
|
|
9
|
-
} from "@
|
|
10
|
-
import { Label } from "@
|
|
9
|
+
} from "@mehdad67/apitogo/ui/Dialog.js";
|
|
10
|
+
import { Label } from "@mehdad67/apitogo/ui/Label.js";
|
|
11
11
|
import { useState } from "react";
|
|
12
12
|
|
|
13
13
|
const RequestLoginDialog = ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Button } from "@
|
|
2
|
-
import { Checkbox } from "@
|
|
1
|
+
import { Button } from "@mehdad67/apitogo/components";
|
|
2
|
+
import { Checkbox } from "@mehdad67/apitogo/ui/Checkbox.js";
|
|
3
3
|
import { PaperclipIcon, TrashIcon } from "lucide-react";
|
|
4
4
|
import { useRef } from "react";
|
|
5
5
|
import { humanFileSize } from "../../../../util/humanFileSize.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Button } from "@
|
|
1
|
+
import { Button } from "@mehdad67/apitogo/ui/Button.js";
|
|
2
2
|
import { DownloadIcon } from "lucide-react";
|
|
3
3
|
import { useEffect, useState } from "react";
|
|
4
4
|
import { humanFileSize } from "../../../../util/humanFileSize.js";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { Button } from "@
|
|
1
|
+
import { Button } from "@mehdad67/apitogo/ui/Button.js";
|
|
2
2
|
import {
|
|
3
3
|
Collapsible,
|
|
4
4
|
CollapsibleContent,
|
|
5
5
|
CollapsibleTrigger,
|
|
6
|
-
} from "@
|
|
7
|
-
import { SecretText } from "@
|
|
6
|
+
} from "@mehdad67/apitogo/ui/Collapsible.js";
|
|
7
|
+
import { SecretText } from "@mehdad67/apitogo/ui/Secret.js";
|
|
8
8
|
import {
|
|
9
9
|
Select,
|
|
10
10
|
SelectContent,
|
|
11
11
|
SelectItem,
|
|
12
12
|
SelectTrigger,
|
|
13
13
|
SelectValue,
|
|
14
|
-
} from "@
|
|
15
|
-
import { SyntaxHighlight } from "@
|
|
14
|
+
} from "@mehdad67/apitogo/ui/Select.js";
|
|
15
|
+
import { SyntaxHighlight } from "@mehdad67/apitogo/ui/SyntaxHighlight.js";
|
|
16
16
|
import { useQuery } from "@tanstack/react-query";
|
|
17
17
|
import {
|
|
18
18
|
CornerDownLeftIcon,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Spinner } from "@
|
|
1
|
+
import { Spinner } from "@mehdad67/apitogo/components";
|
|
2
2
|
import {
|
|
3
3
|
Alert,
|
|
4
4
|
AlertDescription,
|
|
5
5
|
AlertTitle,
|
|
6
|
-
} from "@
|
|
6
|
+
} from "@mehdad67/apitogo/ui/Alert.js";
|
|
7
7
|
import type { UseMutationResult } from "@tanstack/react-query";
|
|
8
8
|
import { SendIcon, UnplugIcon } from "lucide-react";
|
|
9
9
|
import { Button } from "../../../../ui/Button.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
ItemActions,
|
|
4
4
|
ItemContent,
|
|
5
5
|
ItemTitle,
|
|
6
|
-
} from "@
|
|
6
|
+
} from "@mehdad67/apitogo/ui/Item.js";
|
|
7
7
|
import * as Collapsible from "@radix-ui/react-collapsible";
|
|
8
8
|
import { MinusIcon, PlusIcon, RefreshCcwDotIcon } from "lucide-react";
|
|
9
9
|
import { useState } from "react";
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
FrameFooter,
|
|
5
5
|
FrameHeader,
|
|
6
6
|
FramePanel,
|
|
7
|
-
} from "@
|
|
8
|
-
import { ItemGroup, ItemSeparator } from "@
|
|
7
|
+
} from "@mehdad67/apitogo/ui/Frame.js";
|
|
8
|
+
import { ItemGroup, ItemSeparator } from "@mehdad67/apitogo/ui/Item.js";
|
|
9
9
|
import { EyeIcon, EyeOffIcon, InfoIcon } from "lucide-react";
|
|
10
10
|
import { Fragment, useId, useLayoutEffect, useRef, useState } from "react";
|
|
11
11
|
import { Markdown } from "../../../components/Markdown.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Button } from "@
|
|
1
|
+
import { Button } from "@mehdad67/apitogo/ui/Button.js";
|
|
2
2
|
import {
|
|
3
3
|
Dialog,
|
|
4
4
|
DialogContent,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
DialogFooter,
|
|
7
7
|
DialogHeader,
|
|
8
8
|
DialogTitle,
|
|
9
|
-
} from "@
|
|
9
|
+
} from "@mehdad67/apitogo/ui/Dialog.js";
|
|
10
10
|
import { DialogTrigger } from "@radix-ui/react-dialog";
|
|
11
11
|
import {
|
|
12
12
|
type PropsWithChildren,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Button } from "@
|
|
1
|
+
import { Button } from "@mehdad67/apitogo/ui/Button.js";
|
|
2
2
|
import {
|
|
3
3
|
CommandDialog,
|
|
4
4
|
CommandEmpty,
|
|
5
5
|
CommandInput,
|
|
6
|
-
} from "@
|
|
7
|
-
import { DialogTitle } from "@
|
|
8
|
-
import { Kbd, KbdGroup } from "@
|
|
6
|
+
} from "@mehdad67/apitogo/ui/Command.js";
|
|
7
|
+
import { DialogTitle } from "@mehdad67/apitogo/ui/Dialog.js";
|
|
8
|
+
import { Kbd, KbdGroup } from "@mehdad67/apitogo/ui/Kbd.js";
|
|
9
9
|
import { VisuallyHidden } from "@radix-ui/react-visually-hidden";
|
|
10
10
|
import { keepPreviousData, useQuery } from "@tanstack/react-query";
|
|
11
11
|
import { ListPlusIcon } from "lucide-react";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
CommandGroup,
|
|
3
3
|
CommandItem,
|
|
4
4
|
CommandList,
|
|
5
|
-
} from "@
|
|
5
|
+
} from "@mehdad67/apitogo/ui/Command.js";
|
|
6
6
|
import { BracketsIcon, FileTextIcon } from "lucide-react";
|
|
7
7
|
import { useLayoutEffect, useRef } from "react";
|
|
8
8
|
import { Link, useNavigate } from "react-router";
|
package/src/lib/ui/Command.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dialog, DialogContent } from "@
|
|
1
|
+
import { Dialog, DialogContent } from "@mehdad67/apitogo/ui/Dialog.js";
|
|
2
2
|
import type { DialogProps } from "@radix-ui/react-dialog";
|
|
3
3
|
import { Command as CommandPrimitive } from "cmdk";
|
|
4
4
|
import { SearchIcon } from "lucide-react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Link } from "@
|
|
2
|
-
import { Alert } from "@
|
|
1
|
+
import { Link } from "@mehdad67/apitogo/components";
|
|
2
|
+
import { Alert } from "@mehdad67/apitogo/ui/Alert.js";
|
|
3
3
|
import type { MDXComponents } from "mdx/types.js";
|
|
4
4
|
import { lazy, Suspense } from "react";
|
|
5
5
|
import { AnchorLink } from "../components/AnchorLink.js";
|