mtxuilib 0.1.11 → 0.1.13
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/common/DeleteComfirm.d.ts +20 -0
- package/dist/common/FullCenter.d.ts +2 -0
- package/dist/common/GlobalSearch.d.ts +11 -0
- package/dist/common/MtImage.d.ts +5 -0
- package/dist/common/MtProgressBar.d.ts +1 -0
- package/dist/common/NotFoundGoBack.d.ts +1 -0
- package/dist/common/SlntTree/Slnt.z.d.ts +28 -0
- package/dist/common/SlntTree/SlntChildrenTabs.d.ts +1 -0
- package/dist/common/SlntTree/SlntTreeNode.d.ts +19 -0
- package/dist/common/TrpcQuery.d.ts +0 -0
- package/dist/common/devtools/DebugValue.d.ts +5 -0
- package/dist/common/devtools/DevTools.d.ts +2 -0
- package/dist/common/mtlink.d.ts +14 -0
- package/dist/common/pip/PipExamplePage.d.ts +1 -0
- package/dist/common/pip/ReactDocumentPictureInPicture.d.ts +28 -0
- package/dist/common/react-markdown/Code.d.ts +6 -0
- package/dist/common/react-markdown/MarkdownToolbar.d.ts +4 -0
- package/dist/common/react-markdown/ReactMarkdownExample.d.ts +1 -0
- package/dist/common/schema-form/SchemaFormFieldsRender.d.ts +4 -0
- package/dist/common/schema-form/SchemaFormView.d.ts +12 -0
- package/dist/common/schema-form/schema-form.z.d.ts +90 -0
- package/dist/common/table/SimpleTable.d.ts +4 -0
- package/dist/common/table/cells/ExpenderCell.d.ts +2 -0
- package/dist/common/table/cells/SelectCell.d.ts +12 -0
- package/dist/common/table/cells/Text.d.ts +8 -0
- package/dist/common/table/cells/ViewLink.d.ts +12 -0
- package/dist/common/table/cells/container/cellWrapper.d.ts +6 -0
- package/dist/common/table/cells/number.d.ts +2 -0
- package/dist/common/table/cells/string.d.ts +2 -0
- package/dist/common/table/data-table-pagination.d.ts +6 -0
- package/dist/common/table/data-table-view-options.d.ts +6 -0
- package/dist/common/table/datatable-view-options.d.ts +12 -0
- package/dist/common/table/example/ExampleTable.d.ts +1 -0
- package/dist/common/table/header/SimpleHeader.d.ts +4 -0
- package/dist/common/table/header/header.d.ts +5 -0
- package/dist/common/table/table.z.d.ts +189 -0
- package/dist/common/tailwind-indicator.d.ts +1 -0
- package/dist/common/theme/mode-toggle.d.ts +1 -0
- package/dist/common/theme/theme-toggle.d.ts +1 -0
- package/dist/common/tiptap/MenuBar.d.ts +1 -0
- package/dist/common/tiptap/TiptapEditor.d.ts +5 -0
- package/dist/common/tiptap/examples/Demo-Default.d.ts +1 -0
- package/dist/common/tiptap/examples/Demo-Tiptap.d.ts +1 -0
- package/dist/demos/bigcode/BigCode.d.ts +4 -0
- package/dist/demos/condition-type/serialize.d.ts +3 -0
- package/dist/demos/demo-react-use.d.ts +1 -0
- package/dist/demos/lib.d.ts +3 -0
- package/dist/demos/scrollarea/LongListDemo.d.ts +1 -0
- package/dist/demos/scrollarea/ScrollAreaDemo.d.ts +1 -0
- package/dist/demos/suspense-ssr/ExampleOg.d.ts +4 -0
- package/dist/demos/suspense-ssr/ExamplePage.d.ts +3 -0
- package/dist/demos/suspense-ssr/ExampleProviderProviders.d.ts +4 -0
- package/dist/demos/suspense-ssr/ReadMe.d.ts +1 -0
- package/dist/demos/suspense-ssr/examplesPostDetail.d.ts +3 -0
- package/dist/demos/suspense-ssr/examplesPosts.d.ts +1 -0
- package/dist/form/EditFormToolbar.d.ts +13 -0
- package/dist/form/ZodForm.d.ts +14 -0
- package/dist/form/deleteConform.d.ts +8 -0
- package/dist/hooks/use-config.d.ts +5 -0
- package/dist/hooks/use-local-storage.d.ts +2 -0
- package/dist/hooks/use-lock-body.d.ts +1 -0
- package/dist/hooks/use-media-query.d.ts +7 -0
- package/dist/hooks/use-mutation-observer.d.ts +7 -0
- package/dist/hooks/use-router.d.ts +18 -0
- package/dist/hooks/useIsIntersecting.d.ts +2 -0
- package/dist/hooks/useLayoutPath.d.ts +2 -0
- package/dist/hooks/useMounted.d.ts +1 -0
- package/dist/hooks/useScript.d.ts +3 -0
- package/dist/icons/Cross2Icon.d.ts +1 -0
- package/dist/icons/DotsHorizontalIcon.d.ts +1 -0
- package/dist/icons/MixerHorizontal.d.ts +1 -0
- package/dist/icons/crazy-spinner.d.ts +2 -0
- package/dist/icons/font-default.d.ts +3 -0
- package/dist/icons/font-mono.d.ts +3 -0
- package/dist/icons/font-serif.d.ts +3 -0
- package/dist/icons/github.d.ts +3 -0
- package/dist/icons/icons.d.ts +133 -0
- package/dist/icons/index.d.ts +4 -0
- package/dist/icons/loading-circle.d.ts +3 -0
- package/dist/icons/magic.d.ts +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/lib/111.test.d.ts +1 -0
- package/dist/lib/clientlib/clientlib.d.ts +6 -0
- package/dist/lib/clientlib/domutils.d.ts +2 -0
- package/dist/lib/clientlib/selectPath.d.ts +4 -0
- package/dist/lib/componentHelper.d.ts +7 -0
- package/dist/lib/errors.d.ts +4 -0
- package/dist/lib/fetch-proxy/fetch-proxy.d.ts +1 -0
- package/dist/lib/highlight-code.d.ts +1 -0
- package/dist/lib/htmlparse/components/ItemActionButton.d.ts +2 -0
- package/dist/lib/htmlparse/htmlParse.d.ts +2 -0
- package/dist/lib/react-query/ReactQueryProvider.d.ts +4 -0
- package/dist/lib/render.d.ts +4 -0
- package/dist/lib/service-worker/ServiceWorkerMain.d.ts +1 -0
- package/dist/lib/service-worker/lib.d.ts +1 -0
- package/dist/lib/service-worker/worker.d.ts +1 -0
- package/dist/lib/service-worker.d.ts +5 -0
- package/dist/lib/trpc/types.d.ts +6 -0
- package/dist/lib/trpc-query/TrpcComponents/TrpcDehydrate.d.ts +5 -0
- package/dist/lib/url.d.ts +2 -0
- package/dist/lib/useScript.d.ts +3 -0
- package/dist/lib/utils.d.ts +27 -0
- package/dist/lib/zod/common.z.d.ts +71 -0
- package/dist/lib/zod/demo.z.d.ts +1 -0
- package/dist/lib/zod/listView.z.d.ts +7688 -0
- package/dist/lib/zod/meta.d.ts +51 -0
- package/dist/lib/zod/msg.z.d.ts +9 -0
- package/dist/lib/zod/taskStatus.z.d.ts +17 -0
- package/dist/lib/zustand.d.ts +5 -0
- package/dist/misc/CustomErrorRetry.d.ts +4 -0
- package/dist/misc/ExampleErrorDemo.d.ts +4 -0
- package/dist/misc/MtErrorBoundary.d.ts +16 -0
- package/dist/misc/MtErrorBoundary.stories.d.ts +15 -0
- package/dist/misc/MtErrorBoundaryV2.d.ts +2 -0
- package/dist/misc/MtErrorBoundaryV2.stories.d.ts +17 -0
- package/dist/mtapp/History.d.ts +24 -0
- package/dist/mtapp/MtAppProvider.d.ts +58 -0
- package/dist/mtedtior/AiButtons.d.ts +10 -0
- package/dist/mtedtior/MtEditor.d.ts +29 -0
- package/dist/mtedtior/components/editor-bubble-item.d.ts +9 -0
- package/dist/mtedtior/components/editor-bubble.d.ts +7 -0
- package/dist/mtedtior/components/editor-command-item.d.ts +20 -0
- package/dist/mtedtior/components/editor-command.d.ts +29 -0
- package/dist/mtedtior/components/editor.d.ts +21 -0
- package/dist/mtedtior/components/index.d.ts +8 -0
- package/dist/mtedtior/content.d.ts +132 -0
- package/dist/mtedtior/extensions/ai-highlight.d.ts +22 -0
- package/dist/mtedtior/extensions/custom-keymap.d.ts +10 -0
- package/dist/mtedtior/extensions/drag-and-drop.d.ts +6 -0
- package/dist/mtedtior/extensions/image-resizer.d.ts +2 -0
- package/dist/mtedtior/extensions/index.d.ts +12 -0
- package/dist/mtedtior/extensions/slash-command.d.ts +33 -0
- package/dist/mtedtior/extensions/updated-image.d.ts +2 -0
- package/dist/mtedtior/generative/ai-completion-command.d.ts +5 -0
- package/dist/mtedtior/generative/ai-selector-commands.d.ts +5 -0
- package/dist/mtedtior/generative/ai-selector.d.ts +6 -0
- package/dist/mtedtior/generative/generative-menu-switch.d.ts +8 -0
- package/dist/mtedtior/mtextesions/DemoComponent.d.ts +2 -0
- package/dist/mtedtior/plugins/index.d.ts +1 -0
- package/dist/mtedtior/plugins/upload-images.d.ts +13 -0
- package/dist/mtedtior/selectors/color-selector.d.ts +8 -0
- package/dist/mtedtior/selectors/link-selector.d.ts +8 -0
- package/dist/mtedtior/selectors/node-selector.d.ts +14 -0
- package/dist/mtedtior/selectors/text-buttons.d.ts +1 -0
- package/dist/mtedtior/tw_extensions.d.ts +1 -0
- package/dist/mtedtior/utils/summary.d.ts +1 -0
- package/dist/mtedtior/utils/utils.d.ts +9 -0
- package/dist/mtedtior/utils.d.ts +9 -0
- package/dist/scripts/build-registry.d.ts +3 -0
- package/dist/service-worker/ServiceWorkerMain.d.ts +1 -0
- package/dist/service-worker/lib.d.ts +1 -0
- package/dist/service-worker/sw.d.ts +1 -0
- package/dist/styled-system/css/conditions.d.mts +3 -0
- package/dist/styled-system/css/css.d.mts +6 -0
- package/dist/styled-system/css/cva.d.mts +14 -0
- package/dist/styled-system/css/cx.d.mts +1 -0
- package/dist/styled-system/css/index.d.mts +4 -0
- package/dist/styled-system/css/sva.d.mts +10 -0
- package/dist/styled-system/helpers.d.mts +39 -0
- package/dist/styled-system/patterns/aspect-ratio.d.mts +5 -0
- package/dist/styled-system/patterns/bleed.d.mts +5 -0
- package/dist/styled-system/patterns/box.d.mts +5 -0
- package/dist/styled-system/patterns/center.d.mts +5 -0
- package/dist/styled-system/patterns/circle.d.mts +5 -0
- package/dist/styled-system/patterns/container.d.mts +5 -0
- package/dist/styled-system/patterns/cq.d.mts +5 -0
- package/dist/styled-system/patterns/divider.d.mts +5 -0
- package/dist/styled-system/patterns/flex.d.mts +5 -0
- package/dist/styled-system/patterns/float.d.mts +5 -0
- package/dist/styled-system/patterns/grid-item.d.mts +5 -0
- package/dist/styled-system/patterns/grid.d.mts +5 -0
- package/dist/styled-system/patterns/hstack.d.mts +5 -0
- package/dist/styled-system/patterns/index.d.mts +20 -0
- package/dist/styled-system/patterns/link-overlay.d.mts +5 -0
- package/dist/styled-system/patterns/spacer.d.mts +5 -0
- package/dist/styled-system/patterns/square.d.mts +5 -0
- package/dist/styled-system/patterns/stack.d.mts +5 -0
- package/dist/styled-system/patterns/visually-hidden.d.mts +5 -0
- package/dist/styled-system/patterns/vstack.d.mts +5 -0
- package/dist/styled-system/patterns/wrap.d.mts +5 -0
- package/dist/styled-system/tokens/index.d.mts +6 -0
- package/dist/tailwind copy.d.cts +2 -0
- package/dist/tailwind.d.ts +3 -0
- package/dist/types/common.d.ts +16 -0
- package/dist/ui/accordion.d.ts +7 -0
- package/dist/ui/alert-dialog.d.ts +20 -0
- package/dist/ui/alert.d.ts +8 -0
- package/dist/ui/aspect-ratio.d.ts +4 -0
- package/dist/ui/avatar.d.ts +6 -0
- package/dist/ui/badge.d.ts +9 -0
- package/dist/ui/breadcrumb.d.ts +19 -0
- package/dist/ui/button.d.ts +11 -0
- package/dist/ui/calendar.d.ts +8 -0
- package/dist/ui/card.d.ts +8 -0
- package/dist/ui/checkbox.d.ts +4 -0
- package/dist/ui/collapsible.d.ts +6 -0
- package/dist/ui/command.d.ts +50 -0
- package/dist/ui/context-menu.d.ts +27 -0
- package/dist/ui/dialog.d.ts +19 -0
- package/dist/ui/drawer.d.ts +24 -0
- package/dist/ui/dropdown-menu.d.ts +27 -0
- package/dist/ui/form.d.ts +23 -0
- package/dist/ui/hover-card.d.ts +6 -0
- package/dist/ui/input.d.ts +5 -0
- package/dist/ui/label.d.ts +5 -0
- package/dist/ui/menubar.d.ts +31 -0
- package/dist/ui/navigation-menu.d.ts +12 -0
- package/dist/ui/pagination.d.ts +28 -0
- package/dist/ui/popover.d.ts +6 -0
- package/dist/ui/progress.d.ts +4 -0
- package/dist/ui/radio-group.d.ts +5 -0
- package/dist/ui/resizable.d.ts +24 -0
- package/dist/ui/scroll-area.d.ts +5 -0
- package/dist/ui/select.d.ts +11 -0
- package/dist/ui/separator.d.ts +4 -0
- package/dist/ui/sheet.d.ts +25 -0
- package/dist/ui/skeleton.d.ts +2 -0
- package/dist/ui/slider.d.ts +4 -0
- package/dist/ui/sonner.d.ts +5 -0
- package/dist/ui/switch.d.ts +4 -0
- package/dist/ui/table.d.ts +10 -0
- package/dist/ui/tabs.d.ts +7 -0
- package/dist/ui/textarea.d.ts +5 -0
- package/dist/ui/toast.d.ts +15 -0
- package/dist/ui/toaster.d.ts +1 -0
- package/dist/ui/toggle.d.ts +12 -0
- package/dist/ui/tooltip.d.ts +7 -0
- package/dist/ui/use-toast.d.ts +44 -0
- package/dist/ui-mt/Boundary.d.ts +9 -0
- package/dist/ui-mt/Button.d.ts +2 -0
- package/dist/ui-mt/DropdownMenuItemLink.d.ts +7 -0
- package/dist/ui-mt/ErrorMessage.d.ts +2 -0
- package/dist/ui-mt/ExampleTree.d.ts +1 -0
- package/dist/ui-mt/MtDialog.d.ts +19 -0
- package/dist/ui-mt/MtForm.d.ts +2 -0
- package/dist/ui-mt/NavTag.d.ts +10 -0
- package/dist/ui-mt/ScreenPanel.d.ts +4 -0
- package/dist/ui-mt/Separator.d.ts +2 -0
- package/dist/ui-mt/SimpleModel.d.ts +4 -0
- package/dist/ui-mt/SimpleTag.d.ts +5 -0
- package/dist/ui-mt/Slot.d.ts +1 -0
- package/dist/ui-mt/Tree.d.ts +14 -0
- package/dist/ui-mt/WithLinkIf.d.ts +4 -0
- package/dist/ui-mt/headline.d.ts +8 -0
- package/dist/ui-mt/input-field/InputField.d.ts +4 -0
- package/dist/ui-mt/input-field/RichEditorInput.d.ts +6 -0
- package/dist/ui-mt/input-field/SingleUploadForm.d.ts +2 -0
- package/dist/ui-mt/input-field/TextArea.d.ts +4 -0
- package/dist/ui-mt/input-field/TextFileInput.d.ts +8 -0
- package/dist/ui-mt/input-field/select/InputSelect.d.ts +8 -0
- package/dist/ui-mt/inputs/SearchInput.d.ts +2 -0
- package/dist/ui-mt/inputs/TaskStatusInput.d.ts +2 -0
- package/dist/ui-mt/inputs/UrlsInput.d.ts +2 -0
- package/dist/ui-mt/inputs/input.d.ts +2 -0
- package/dist/ui-mt/modal/MtModal.d.ts +30 -0
- package/dist/ui-mt/mt-tree-view/MtTreeViewExample.d.ts +1 -0
- package/dist/ui-mt/mt-tree-view/mt-tree-view-api.d.ts +38 -0
- package/dist/ui-mt/mt-tree-view/mt-treeview.d.ts +24 -0
- package/dist/ui-mt/pagination.d.ts +7 -0
- package/dist/ui-mt/skeleton/NewLoading.d.ts +1 -0
- package/dist/ui-mt/skeleton/SkeletonDashboardShell.d.ts +0 -0
- package/dist/ui-mt/skeleton/SkeletonInput.d.ts +1 -0
- package/dist/ui-mt/skeleton/SkeletonLayout.d.ts +1 -0
- package/dist/ui-mt/skeleton/SkeletonLoading.d.ts +3 -0
- package/dist/ui-mt/skeleton/skeleton-card.d.ts +3 -0
- package/dist/ui-mt/skeleton/skeleton2.d.ts +1 -0
- package/dist/ui-mt/skeleton/skeletons.d.ts +6 -0
- package/dist/ui-mt/skeleton.d.ts +5 -0
- package/dist/ui-mt/types.d.ts +5 -0
- package/dist/ui-vamp/alert.d.ts +17 -0
- package/dist/ui-vamp/button.d.ts +13 -0
- package/dist/ui-vamp/card.d.ts +23 -0
- package/dist/ui-vamp/chip.d.ts +11 -0
- package/dist/ui-vamp/dropdown.d.ts +12 -0
- package/dist/ui-vamp/external-link.d.ts +7 -0
- package/dist/ui-vamp/input.d.ts +13 -0
- package/dist/ui-vamp/keyvalue.d.ts +7 -0
- package/dist/ui-vamp/mobile-nav-button.d.ts +1 -0
- package/dist/ui-vamp/modal.d.ts +11 -0
- package/dist/ui-vamp/textarea.d.ts +12 -0
- package/dist/ui-vamp/toggle-group.d.ts +8 -0
- package/dist/video-player/mt-video-player.d.ts +6 -0
- package/dist/video-player/video-player2/modal-video-player.d.ts +12 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ReadMe: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ExamplePosts: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { AnyZodForm } from "./ZodForm";
|
|
3
|
+
export declare const EditFormToolbar: React.ForwardRefExoticComponent<{
|
|
4
|
+
onCancel?: (() => void) | undefined;
|
|
5
|
+
form?: AnyZodForm | undefined;
|
|
6
|
+
submitText?: string | undefined;
|
|
7
|
+
enableCancelConform?: boolean | undefined;
|
|
8
|
+
enableDeleteButton?: boolean | undefined;
|
|
9
|
+
onDelete?: (() => void) | undefined;
|
|
10
|
+
onSubmit?: ((values: any) => void) | undefined;
|
|
11
|
+
} & {
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type FieldValues, type SubmitHandler, type UseFormProps, type UseFormReturn } from "react-hook-form";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
export type UseZodForm<TInput extends FieldValues> = UseFormReturn<TInput> & {
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function useZodForm<TSchema extends z.ZodType>(props: Omit<UseFormProps<TSchema["_input"]>, "resolver"> & {
|
|
8
|
+
schema?: TSchema;
|
|
9
|
+
}): UseZodForm<TSchema["_input"]>;
|
|
10
|
+
export type AnyZodForm = UseZodForm<any>;
|
|
11
|
+
export declare function ZForm<TInput extends FieldValues>(props: Omit<React.ComponentProps<"form">, "onSubmit" | "id"> & {
|
|
12
|
+
handleSubmit: SubmitHandler<TInput>;
|
|
13
|
+
form: UseZodForm<TInput>;
|
|
14
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type ButtonProps } from "../ui/button";
|
|
3
|
+
export declare const DeleteConformDlg: (props: {
|
|
4
|
+
handleOk: () => void;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const ConformDeleteBtn: React.ForwardRefExoticComponent<{
|
|
7
|
+
callback: () => Promise<void>;
|
|
8
|
+
} & ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useLockBody(): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function useMediaQuery(query: string): boolean;
|
|
2
|
+
export declare const useIsDesktop: () => boolean;
|
|
3
|
+
export declare const useIsTwBreakpointSm: () => boolean;
|
|
4
|
+
export declare const useIsTwBreakpointMd: () => boolean;
|
|
5
|
+
export declare const useIsTwBreakpointLg: () => boolean;
|
|
6
|
+
export declare const useIsTwBreakpointXl: () => boolean;
|
|
7
|
+
export declare const useIsTwBreakpoint2XL: () => boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export declare const useMutationObserver: (ref: React.MutableRefObject<HTMLElement | null>, callback: MutationCallback, options?: {
|
|
3
|
+
attributes: boolean;
|
|
4
|
+
characterData: boolean;
|
|
5
|
+
childList: boolean;
|
|
6
|
+
subtree: boolean;
|
|
7
|
+
}) => void;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const useMtRouter: () => {
|
|
2
|
+
push: (href: string, options?: import("next/dist/shared/lib/app-router-context.shared-runtime").NavigateOptions | undefined, NProgressOptions?: import("next-nprogress-bar").RouterNProgressOptions | undefined) => void;
|
|
3
|
+
replace: (href: string, options?: import("next/dist/shared/lib/app-router-context.shared-runtime").NavigateOptions | undefined, NProgressOptions?: import("next-nprogress-bar").RouterNProgressOptions | undefined) => void;
|
|
4
|
+
back: (NProgressOptions?: import("next-nprogress-bar").RouterNProgressOptions | undefined) => void;
|
|
5
|
+
forward(): void;
|
|
6
|
+
refresh(): void;
|
|
7
|
+
prefetch(href: string, options?: import("next/dist/shared/lib/app-router-context.shared-runtime").PrefetchOptions | undefined): void;
|
|
8
|
+
};
|
|
9
|
+
export declare const useGo: () => {
|
|
10
|
+
goParent: () => void;
|
|
11
|
+
};
|
|
12
|
+
export declare const useMtSearchParams: () => {
|
|
13
|
+
params: {
|
|
14
|
+
[k: string]: string;
|
|
15
|
+
};
|
|
16
|
+
get: (name: string) => string;
|
|
17
|
+
patchSearchs: (values: Record<string, string>) => void;
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useMounted(): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Cross2Icon } from "@radix-ui/react-icons";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DotsHorizontalIcon } from "@radix-ui/react-icons";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MixerHorizontalIcon } from "@radix-ui/react-icons";
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type IconProps = React.HTMLAttributes<SVGElement>;
|
|
3
|
+
import { LucideProps } from "lucide-react";
|
|
4
|
+
import type { LucideIcon } from "lucide-react";
|
|
5
|
+
export type Icon = LucideIcon;
|
|
6
|
+
export declare const iconVariants: (props?: ({
|
|
7
|
+
variant?: "toolbar" | "menuItem" | null | undefined;
|
|
8
|
+
size?: "md" | "sm" | null | undefined;
|
|
9
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
|
+
export declare const Icons: {
|
|
11
|
+
x: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
12
|
+
add: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
13
|
+
alignCenter: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
14
|
+
alignJustify: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
15
|
+
alignLeft: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
16
|
+
alignRight: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
17
|
+
arrowDown: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
18
|
+
bg: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
19
|
+
blockquote: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
20
|
+
bold: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
21
|
+
borderAll: (props: LucideProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
borderBottom: (props: LucideProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
borderLeft: (props: LucideProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
borderNone: (props: LucideProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
borderRight: (props: LucideProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
borderTop: (props: LucideProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
check: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
28
|
+
chevronRight: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
29
|
+
spinner: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
30
|
+
chevronsUpDown: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
31
|
+
clear: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
32
|
+
close: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
33
|
+
code: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
34
|
+
codeblock: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
35
|
+
color: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
36
|
+
column: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
37
|
+
comment: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
38
|
+
commentAdd: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
39
|
+
delete: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
40
|
+
dragHandle: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
41
|
+
editing: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
42
|
+
emoji: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
43
|
+
externalLink: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
44
|
+
h1: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
45
|
+
h2: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
46
|
+
h3: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
47
|
+
h4: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
48
|
+
h5: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
49
|
+
h6: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
50
|
+
image: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
51
|
+
indent: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
52
|
+
italic: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
53
|
+
kbd: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
54
|
+
lineHeight: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
55
|
+
link: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
56
|
+
minus: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
57
|
+
more: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
58
|
+
ol: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
59
|
+
outdent: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
60
|
+
paragraph: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
61
|
+
refresh: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
62
|
+
row: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
63
|
+
search: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
64
|
+
settings: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
65
|
+
strikethrough: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
66
|
+
subscript: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
67
|
+
superscript: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
68
|
+
table: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
69
|
+
text: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
70
|
+
trash: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
71
|
+
ul: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
72
|
+
underline: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
73
|
+
unlink: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
74
|
+
viewing: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
75
|
+
bell: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
76
|
+
bug: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
77
|
+
chevronLeft: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
78
|
+
post: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
79
|
+
page: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
80
|
+
media: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
81
|
+
billing: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
82
|
+
ellipsis: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
83
|
+
warning: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
84
|
+
user: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
85
|
+
arrowRight: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
86
|
+
help: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
87
|
+
pizza: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
88
|
+
copy: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
89
|
+
copyDone: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
90
|
+
sun: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
91
|
+
moon: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
92
|
+
laptop: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
93
|
+
arrowLeft: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
94
|
+
eye: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
95
|
+
wrapText: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
96
|
+
separator: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
97
|
+
quote: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
98
|
+
orderedList: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
99
|
+
list: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
100
|
+
strikeThrough: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
101
|
+
edit2: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
102
|
+
chevronDown: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
103
|
+
mailX: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
104
|
+
star: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
105
|
+
menu: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
106
|
+
verified: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
107
|
+
attachment: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
108
|
+
combine: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
109
|
+
ungroup: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
110
|
+
hr: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
111
|
+
downloadCloud: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
112
|
+
excalidraw: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
113
|
+
embed: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
114
|
+
highlight: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
115
|
+
suggesting: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
116
|
+
google: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
117
|
+
logo: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
118
|
+
twitter: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
119
|
+
gitHub: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
120
|
+
radix: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
121
|
+
aria: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
122
|
+
npm: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
123
|
+
yarn: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
124
|
+
pnpm: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
125
|
+
react: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
126
|
+
tailwind: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
127
|
+
apple: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
128
|
+
paypal: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
129
|
+
};
|
|
130
|
+
export declare const IconX: (props: {
|
|
131
|
+
name?: string;
|
|
132
|
+
} & IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
133
|
+
export {};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LajiComp: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare function mergeRefs<T = any>(refs: Array<React.MutableRefObject<T> | React.LegacyRef<T>>): React.RefCallback<T>;
|
|
3
|
+
export declare function getCookie(name: string): string | undefined;
|
|
4
|
+
export declare function deleteCookie(name: string): void;
|
|
5
|
+
export declare function deleteAllCookies(): void;
|
|
6
|
+
export declare function setCookie(name: string, value: any): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentType } from "react";
|
|
2
|
+
export declare const RegisterView: (Component: ComponentType<any>, name: string | null) => void;
|
|
3
|
+
export declare const getComponentProps: (comp: any) => any;
|
|
4
|
+
export declare const getRenderableComponent: (comp: any) => any;
|
|
5
|
+
export declare const getBlockEditorComponent: (comp: any) => any;
|
|
6
|
+
export declare function getDynComponent(name: string): ComponentType<any>;
|
|
7
|
+
export declare const blocks: Record<string, ComponentType<any>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function simpleUrlProxy(url: string): Promise<Response>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function highlightCode(code: string): Promise<string>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type PropsWithChildren } from "react";
|
|
2
|
+
export declare const MtReactQueryProvider: (props: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function RqErrorBoundary(props: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function RqErrorBoundaryUseHook(props: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type Renderable<TProps> = React.ReactNode | React.ComponentType<TProps>;
|
|
3
|
+
export declare function flexRender<TProps extends object>(Comp: Renderable<TProps>, props: TProps): React.ReactNode | JSX.Element;
|
|
4
|
+
export declare function isReactComponent<TProps>(component: unknown): component is React.ComponentType<TProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ServiceWorkerMain: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function pi(n: number): number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type ClassValue } from "clsx";
|
|
2
|
+
export declare function cn(...inputs: ClassValue[]): string;
|
|
3
|
+
export declare function formatDate(input: string | number): string;
|
|
4
|
+
export declare const randomString: (length: number) => string;
|
|
5
|
+
export declare function absoluteUrl(path: string): string;
|
|
6
|
+
export declare function formatDollars(input: number): string;
|
|
7
|
+
export declare function capitalize(input: string): string;
|
|
8
|
+
export declare function cleanSearchParams(urlSearchParams: URLSearchParams): URLSearchParams;
|
|
9
|
+
export declare function searchString(page: string, search: string, sort: string): string;
|
|
10
|
+
export declare const sleep: (ms: number) => Promise<unknown>;
|
|
11
|
+
export declare const delay: (ms: number) => Promise<unknown>;
|
|
12
|
+
export declare function browserDownload(content: Blob | string, filename: string): HTMLAnchorElement;
|
|
13
|
+
export declare function ReadFileBase64Str(file: Blob): Promise<unknown>;
|
|
14
|
+
export declare function ReadFileStr(file: Blob): Promise<string>;
|
|
15
|
+
export declare const DataFormat: (date: number) => string;
|
|
16
|
+
export declare const DataFormatWithSeconds: (date: number) => string;
|
|
17
|
+
export declare function stringify(obj: any): string;
|
|
18
|
+
export declare function stringifyV2(obj: any): string;
|
|
19
|
+
export declare const isEdgeRuntime: () => boolean;
|
|
20
|
+
export declare function isWebWorker(): boolean;
|
|
21
|
+
export declare const convertToArray: <T>(maybeArray: T | T[]) => T[];
|
|
22
|
+
export declare const ConvertToSearchParams: (value: any) => URLSearchParams;
|
|
23
|
+
export declare const splitMethodsParts: (methodName: string) => string[];
|
|
24
|
+
export declare function transUrlLink(url: string): string;
|
|
25
|
+
export declare const isJsonResponse: (res: Response) => boolean;
|
|
26
|
+
export declare function humanize(input: string): string;
|
|
27
|
+
export declare function stringsRemovePrefix(inputString: string, prefix: string): string;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const numStringSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodType<string | number, z.ZodTypeDef, string | number>, string | number, string | number>, string | number, string | number>, number, string | number>;
|
|
3
|
+
export type NumString = z.infer<typeof numStringSchema>;
|
|
4
|
+
export type Literal = boolean | number | string;
|
|
5
|
+
export type Json = Literal | {
|
|
6
|
+
[key: string]: Json;
|
|
7
|
+
} | Json[];
|
|
8
|
+
export declare const literalSchema: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
9
|
+
export declare const jsonSchema: z.ZodSchema<Json>;
|
|
10
|
+
export declare const deleteByIdSchema: z.ZodObject<{
|
|
11
|
+
id: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodType<string | number, z.ZodTypeDef, string | number>, string | number, string | number>, string | number, string | number>, number, string | number>>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
id?: number | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
id?: string | number | undefined;
|
|
16
|
+
}>;
|
|
17
|
+
export declare const PaginateQuery: z.ZodObject<{
|
|
18
|
+
cursor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
19
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
cursor?: string | null | undefined;
|
|
22
|
+
limit?: number | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
cursor?: string | null | undefined;
|
|
25
|
+
limit?: number | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
export declare const curdViewTypeSchema: z.ZodDefault<z.ZodEnum<["simple", "table", "card", "grid"]>>;
|
|
28
|
+
export type CurdViewType = z.infer<typeof curdViewTypeSchema>;
|
|
29
|
+
export declare const mutationCreateOutSchema: z.ZodObject<{
|
|
30
|
+
code: z.ZodOptional<z.ZodString>;
|
|
31
|
+
description: z.ZodOptional<z.ZodString>;
|
|
32
|
+
message: z.ZodOptional<z.ZodString>;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
code?: string | undefined;
|
|
35
|
+
message?: string | undefined;
|
|
36
|
+
description?: string | undefined;
|
|
37
|
+
}, {
|
|
38
|
+
code?: string | undefined;
|
|
39
|
+
message?: string | undefined;
|
|
40
|
+
description?: string | undefined;
|
|
41
|
+
}>;
|
|
42
|
+
export declare const env: z.SafeParseReturnType<{
|
|
43
|
+
DATABASE_URL: string;
|
|
44
|
+
NODE_ENV: "production" | "test" | "development";
|
|
45
|
+
}, {
|
|
46
|
+
DATABASE_URL: string;
|
|
47
|
+
NODE_ENV: "production" | "test" | "development";
|
|
48
|
+
}>;
|
|
49
|
+
export declare const commonDeleteInput: z.ZodObject<{
|
|
50
|
+
id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
id: string | number;
|
|
53
|
+
}, {
|
|
54
|
+
id: string | number;
|
|
55
|
+
}>;
|
|
56
|
+
export declare const ogImageSchema: z.ZodObject<{
|
|
57
|
+
heading: z.ZodString;
|
|
58
|
+
type: z.ZodString;
|
|
59
|
+
mode: z.ZodDefault<z.ZodEnum<["light", "dark"]>>;
|
|
60
|
+
bountyPrice: z.ZodString;
|
|
61
|
+
}, "strip", z.ZodTypeAny, {
|
|
62
|
+
type: string;
|
|
63
|
+
heading: string;
|
|
64
|
+
mode: "light" | "dark";
|
|
65
|
+
bountyPrice: string;
|
|
66
|
+
}, {
|
|
67
|
+
type: string;
|
|
68
|
+
heading: string;
|
|
69
|
+
bountyPrice: string;
|
|
70
|
+
mode?: "light" | "dark" | undefined;
|
|
71
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|