mtxuilib 0.1.12 → 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.
Files changed (284) hide show
  1. package/dist/common/DeleteComfirm.d.ts +20 -0
  2. package/dist/common/FullCenter.d.ts +2 -0
  3. package/dist/common/GlobalSearch.d.ts +11 -0
  4. package/dist/common/MtImage.d.ts +5 -0
  5. package/dist/common/MtProgressBar.d.ts +1 -0
  6. package/dist/common/NotFoundGoBack.d.ts +1 -0
  7. package/dist/common/SlntTree/Slnt.z.d.ts +28 -0
  8. package/dist/common/SlntTree/SlntChildrenTabs.d.ts +1 -0
  9. package/dist/common/SlntTree/SlntTreeNode.d.ts +19 -0
  10. package/dist/common/TrpcQuery.d.ts +0 -0
  11. package/dist/common/devtools/DebugValue.d.ts +5 -0
  12. package/dist/common/devtools/DevTools.d.ts +2 -0
  13. package/dist/common/mtlink.d.ts +14 -0
  14. package/dist/common/pip/PipExamplePage.d.ts +1 -0
  15. package/dist/common/pip/ReactDocumentPictureInPicture.d.ts +28 -0
  16. package/dist/common/react-markdown/Code.d.ts +6 -0
  17. package/dist/common/react-markdown/MarkdownToolbar.d.ts +4 -0
  18. package/dist/common/react-markdown/ReactMarkdownExample.d.ts +1 -0
  19. package/dist/common/schema-form/SchemaFormFieldsRender.d.ts +4 -0
  20. package/dist/common/schema-form/SchemaFormView.d.ts +12 -0
  21. package/dist/common/schema-form/schema-form.z.d.ts +90 -0
  22. package/dist/common/table/SimpleTable.d.ts +4 -0
  23. package/dist/common/table/cells/ExpenderCell.d.ts +2 -0
  24. package/dist/common/table/cells/SelectCell.d.ts +12 -0
  25. package/dist/common/table/cells/Text.d.ts +8 -0
  26. package/dist/common/table/cells/ViewLink.d.ts +12 -0
  27. package/dist/common/table/cells/container/cellWrapper.d.ts +6 -0
  28. package/dist/common/table/cells/number.d.ts +2 -0
  29. package/dist/common/table/cells/string.d.ts +2 -0
  30. package/dist/common/table/data-table-pagination.d.ts +6 -0
  31. package/dist/common/table/data-table-view-options.d.ts +6 -0
  32. package/dist/common/table/datatable-view-options.d.ts +12 -0
  33. package/dist/common/table/example/ExampleTable.d.ts +1 -0
  34. package/dist/common/table/header/SimpleHeader.d.ts +4 -0
  35. package/dist/common/table/header/header.d.ts +5 -0
  36. package/dist/common/table/table.z.d.ts +189 -0
  37. package/dist/common/tailwind-indicator.d.ts +1 -0
  38. package/dist/common/theme/mode-toggle.d.ts +1 -0
  39. package/dist/common/theme/theme-toggle.d.ts +1 -0
  40. package/dist/common/tiptap/MenuBar.d.ts +1 -0
  41. package/dist/common/tiptap/TiptapEditor.d.ts +5 -0
  42. package/dist/common/tiptap/examples/Demo-Default.d.ts +1 -0
  43. package/dist/common/tiptap/examples/Demo-Tiptap.d.ts +1 -0
  44. package/dist/demos/bigcode/BigCode.d.ts +4 -0
  45. package/dist/demos/condition-type/serialize.d.ts +3 -0
  46. package/dist/demos/demo-react-use.d.ts +1 -0
  47. package/dist/demos/lib.d.ts +3 -0
  48. package/dist/demos/scrollarea/LongListDemo.d.ts +1 -0
  49. package/dist/demos/scrollarea/ScrollAreaDemo.d.ts +1 -0
  50. package/dist/demos/suspense-ssr/ExampleOg.d.ts +4 -0
  51. package/dist/demos/suspense-ssr/ExamplePage.d.ts +3 -0
  52. package/dist/demos/suspense-ssr/ExampleProviderProviders.d.ts +4 -0
  53. package/dist/demos/suspense-ssr/ReadMe.d.ts +1 -0
  54. package/dist/demos/suspense-ssr/examplesPostDetail.d.ts +3 -0
  55. package/dist/demos/suspense-ssr/examplesPosts.d.ts +1 -0
  56. package/dist/form/EditFormToolbar.d.ts +13 -0
  57. package/dist/form/ZodForm.d.ts +14 -0
  58. package/dist/form/deleteConform.d.ts +8 -0
  59. package/dist/hooks/use-config.d.ts +5 -0
  60. package/dist/hooks/use-local-storage.d.ts +2 -0
  61. package/dist/hooks/use-lock-body.d.ts +1 -0
  62. package/dist/hooks/use-media-query.d.ts +7 -0
  63. package/dist/hooks/use-mutation-observer.d.ts +7 -0
  64. package/dist/hooks/use-router.d.ts +18 -0
  65. package/dist/hooks/useIsIntersecting.d.ts +2 -0
  66. package/dist/hooks/useLayoutPath.d.ts +2 -0
  67. package/dist/hooks/useMounted.d.ts +1 -0
  68. package/dist/hooks/useScript.d.ts +3 -0
  69. package/dist/icons/Cross2Icon.d.ts +1 -0
  70. package/dist/icons/DotsHorizontalIcon.d.ts +1 -0
  71. package/dist/icons/MixerHorizontal.d.ts +1 -0
  72. package/dist/icons/crazy-spinner.d.ts +2 -0
  73. package/dist/icons/font-default.d.ts +3 -0
  74. package/dist/icons/font-mono.d.ts +3 -0
  75. package/dist/icons/font-serif.d.ts +3 -0
  76. package/dist/icons/github.d.ts +3 -0
  77. package/dist/icons/icons.d.ts +133 -0
  78. package/dist/icons/index.d.ts +4 -0
  79. package/dist/icons/loading-circle.d.ts +3 -0
  80. package/dist/icons/magic.d.ts +3 -0
  81. package/dist/index.d.ts +1 -0
  82. package/dist/lib/111.test.d.ts +1 -0
  83. package/dist/lib/clientlib/clientlib.d.ts +6 -0
  84. package/dist/lib/clientlib/domutils.d.ts +2 -0
  85. package/dist/lib/clientlib/selectPath.d.ts +4 -0
  86. package/dist/lib/componentHelper.d.ts +7 -0
  87. package/dist/lib/errors.d.ts +4 -0
  88. package/dist/lib/fetch-proxy/fetch-proxy.d.ts +1 -0
  89. package/dist/lib/highlight-code.d.ts +1 -0
  90. package/dist/lib/htmlparse/components/ItemActionButton.d.ts +2 -0
  91. package/dist/lib/htmlparse/htmlParse.d.ts +2 -0
  92. package/dist/lib/react-query/ReactQueryProvider.d.ts +4 -0
  93. package/dist/lib/render.d.ts +4 -0
  94. package/dist/lib/service-worker/ServiceWorkerMain.d.ts +1 -0
  95. package/dist/lib/service-worker/lib.d.ts +1 -0
  96. package/dist/lib/service-worker/worker.d.ts +1 -0
  97. package/dist/lib/service-worker.d.ts +5 -0
  98. package/dist/lib/trpc/types.d.ts +6 -0
  99. package/dist/lib/trpc-query/TrpcComponents/TrpcDehydrate.d.ts +5 -0
  100. package/dist/lib/url.d.ts +2 -0
  101. package/dist/lib/useScript.d.ts +3 -0
  102. package/dist/lib/utils.d.ts +27 -0
  103. package/dist/lib/zod/common.z.d.ts +71 -0
  104. package/dist/lib/zod/demo.z.d.ts +1 -0
  105. package/dist/lib/zod/listView.z.d.ts +7688 -0
  106. package/dist/lib/zod/meta.d.ts +51 -0
  107. package/dist/lib/zod/msg.z.d.ts +9 -0
  108. package/dist/lib/zod/taskStatus.z.d.ts +17 -0
  109. package/dist/lib/zustand.d.ts +5 -0
  110. package/dist/misc/CustomErrorRetry.d.ts +4 -0
  111. package/dist/misc/ExampleErrorDemo.d.ts +4 -0
  112. package/dist/misc/MtErrorBoundary.d.ts +16 -0
  113. package/dist/misc/MtErrorBoundary.stories.d.ts +15 -0
  114. package/dist/misc/MtErrorBoundaryV2.d.ts +2 -0
  115. package/dist/misc/MtErrorBoundaryV2.stories.d.ts +17 -0
  116. package/dist/mtapp/History.d.ts +24 -0
  117. package/dist/mtapp/MtAppProvider.d.ts +58 -0
  118. package/dist/mtedtior/AiButtons.d.ts +10 -0
  119. package/dist/mtedtior/MtEditor.d.ts +29 -0
  120. package/dist/mtedtior/components/editor-bubble-item.d.ts +9 -0
  121. package/dist/mtedtior/components/editor-bubble.d.ts +7 -0
  122. package/dist/mtedtior/components/editor-command-item.d.ts +20 -0
  123. package/dist/mtedtior/components/editor-command.d.ts +29 -0
  124. package/dist/mtedtior/components/editor.d.ts +21 -0
  125. package/dist/mtedtior/components/index.d.ts +8 -0
  126. package/dist/mtedtior/content.d.ts +132 -0
  127. package/dist/mtedtior/extensions/ai-highlight.d.ts +22 -0
  128. package/dist/mtedtior/extensions/custom-keymap.d.ts +10 -0
  129. package/dist/mtedtior/extensions/drag-and-drop.d.ts +6 -0
  130. package/dist/mtedtior/extensions/image-resizer.d.ts +2 -0
  131. package/dist/mtedtior/extensions/index.d.ts +12 -0
  132. package/dist/mtedtior/extensions/slash-command.d.ts +33 -0
  133. package/dist/mtedtior/extensions/updated-image.d.ts +2 -0
  134. package/dist/mtedtior/generative/ai-completion-command.d.ts +5 -0
  135. package/dist/mtedtior/generative/ai-selector-commands.d.ts +5 -0
  136. package/dist/mtedtior/generative/ai-selector.d.ts +6 -0
  137. package/dist/mtedtior/generative/generative-menu-switch.d.ts +8 -0
  138. package/dist/mtedtior/mtextesions/DemoComponent.d.ts +2 -0
  139. package/dist/mtedtior/plugins/index.d.ts +1 -0
  140. package/dist/mtedtior/plugins/upload-images.d.ts +13 -0
  141. package/dist/mtedtior/selectors/color-selector.d.ts +8 -0
  142. package/dist/mtedtior/selectors/link-selector.d.ts +8 -0
  143. package/dist/mtedtior/selectors/node-selector.d.ts +14 -0
  144. package/dist/mtedtior/selectors/text-buttons.d.ts +1 -0
  145. package/dist/mtedtior/tw_extensions.d.ts +1 -0
  146. package/dist/mtedtior/utils/summary.d.ts +1 -0
  147. package/dist/mtedtior/utils/utils.d.ts +9 -0
  148. package/dist/mtedtior/utils.d.ts +9 -0
  149. package/dist/scripts/build-registry.d.ts +3 -0
  150. package/dist/service-worker/ServiceWorkerMain.d.ts +1 -0
  151. package/dist/service-worker/lib.d.ts +1 -0
  152. package/dist/service-worker/sw.d.ts +1 -0
  153. package/dist/styled-system/css/conditions.d.mts +3 -0
  154. package/dist/styled-system/css/css.d.mts +6 -0
  155. package/dist/styled-system/css/cva.d.mts +14 -0
  156. package/dist/styled-system/css/cx.d.mts +1 -0
  157. package/dist/styled-system/css/index.d.mts +4 -0
  158. package/dist/styled-system/css/sva.d.mts +10 -0
  159. package/dist/styled-system/helpers.d.mts +39 -0
  160. package/dist/styled-system/patterns/aspect-ratio.d.mts +5 -0
  161. package/dist/styled-system/patterns/bleed.d.mts +5 -0
  162. package/dist/styled-system/patterns/box.d.mts +5 -0
  163. package/dist/styled-system/patterns/center.d.mts +5 -0
  164. package/dist/styled-system/patterns/circle.d.mts +5 -0
  165. package/dist/styled-system/patterns/container.d.mts +5 -0
  166. package/dist/styled-system/patterns/cq.d.mts +5 -0
  167. package/dist/styled-system/patterns/divider.d.mts +5 -0
  168. package/dist/styled-system/patterns/flex.d.mts +5 -0
  169. package/dist/styled-system/patterns/float.d.mts +5 -0
  170. package/dist/styled-system/patterns/grid-item.d.mts +5 -0
  171. package/dist/styled-system/patterns/grid.d.mts +5 -0
  172. package/dist/styled-system/patterns/hstack.d.mts +5 -0
  173. package/dist/styled-system/patterns/index.d.mts +20 -0
  174. package/dist/styled-system/patterns/link-overlay.d.mts +5 -0
  175. package/dist/styled-system/patterns/spacer.d.mts +5 -0
  176. package/dist/styled-system/patterns/square.d.mts +5 -0
  177. package/dist/styled-system/patterns/stack.d.mts +5 -0
  178. package/dist/styled-system/patterns/visually-hidden.d.mts +5 -0
  179. package/dist/styled-system/patterns/vstack.d.mts +5 -0
  180. package/dist/styled-system/patterns/wrap.d.mts +5 -0
  181. package/dist/styled-system/tokens/index.d.mts +6 -0
  182. package/dist/tailwind copy.d.cts +2 -0
  183. package/dist/tailwind.d.ts +3 -0
  184. package/dist/types/common.d.ts +16 -0
  185. package/dist/ui/accordion.d.ts +7 -0
  186. package/dist/ui/alert-dialog.d.ts +20 -0
  187. package/dist/ui/alert.d.ts +8 -0
  188. package/dist/ui/aspect-ratio.d.ts +4 -0
  189. package/dist/ui/avatar.d.ts +6 -0
  190. package/dist/ui/badge.d.ts +9 -0
  191. package/dist/ui/breadcrumb.d.ts +19 -0
  192. package/dist/ui/button.d.ts +11 -0
  193. package/dist/ui/calendar.d.ts +8 -0
  194. package/dist/ui/card.d.ts +8 -0
  195. package/dist/ui/checkbox.d.ts +4 -0
  196. package/dist/ui/collapsible.d.ts +6 -0
  197. package/dist/ui/command.d.ts +50 -0
  198. package/dist/ui/context-menu.d.ts +27 -0
  199. package/dist/ui/dialog.d.ts +19 -0
  200. package/dist/ui/drawer.d.ts +24 -0
  201. package/dist/ui/dropdown-menu.d.ts +27 -0
  202. package/dist/ui/form.d.ts +23 -0
  203. package/dist/ui/hover-card.d.ts +6 -0
  204. package/dist/ui/input.d.ts +5 -0
  205. package/dist/ui/label.d.ts +5 -0
  206. package/dist/ui/menubar.d.ts +31 -0
  207. package/dist/ui/navigation-menu.d.ts +12 -0
  208. package/dist/ui/pagination.d.ts +28 -0
  209. package/dist/ui/popover.d.ts +6 -0
  210. package/dist/ui/progress.d.ts +4 -0
  211. package/dist/ui/radio-group.d.ts +5 -0
  212. package/dist/ui/resizable.d.ts +24 -0
  213. package/dist/ui/scroll-area.d.ts +5 -0
  214. package/dist/ui/select.d.ts +11 -0
  215. package/dist/ui/separator.d.ts +4 -0
  216. package/dist/ui/sheet.d.ts +25 -0
  217. package/dist/ui/skeleton.d.ts +2 -0
  218. package/dist/ui/slider.d.ts +4 -0
  219. package/dist/ui/sonner.d.ts +5 -0
  220. package/dist/ui/switch.d.ts +4 -0
  221. package/dist/ui/table.d.ts +10 -0
  222. package/dist/ui/tabs.d.ts +7 -0
  223. package/dist/ui/textarea.d.ts +5 -0
  224. package/dist/ui/toast.d.ts +15 -0
  225. package/dist/ui/toaster.d.ts +1 -0
  226. package/dist/ui/toggle.d.ts +12 -0
  227. package/dist/ui/tooltip.d.ts +7 -0
  228. package/dist/ui/use-toast.d.ts +44 -0
  229. package/dist/ui-mt/Boundary.d.ts +9 -0
  230. package/dist/ui-mt/Button.d.ts +2 -0
  231. package/dist/ui-mt/DropdownMenuItemLink.d.ts +7 -0
  232. package/dist/ui-mt/ErrorMessage.d.ts +2 -0
  233. package/dist/ui-mt/ExampleTree.d.ts +1 -0
  234. package/dist/ui-mt/MtDialog.d.ts +19 -0
  235. package/dist/ui-mt/MtForm.d.ts +2 -0
  236. package/dist/ui-mt/NavTag.d.ts +10 -0
  237. package/dist/ui-mt/ScreenPanel.d.ts +4 -0
  238. package/dist/ui-mt/Separator.d.ts +2 -0
  239. package/dist/ui-mt/SimpleModel.d.ts +4 -0
  240. package/dist/ui-mt/SimpleTag.d.ts +5 -0
  241. package/dist/ui-mt/Slot.d.ts +1 -0
  242. package/dist/ui-mt/Tree.d.ts +14 -0
  243. package/dist/ui-mt/WithLinkIf.d.ts +4 -0
  244. package/dist/ui-mt/headline.d.ts +8 -0
  245. package/dist/ui-mt/input-field/InputField.d.ts +4 -0
  246. package/dist/ui-mt/input-field/RichEditorInput.d.ts +6 -0
  247. package/dist/ui-mt/input-field/SingleUploadForm.d.ts +2 -0
  248. package/dist/ui-mt/input-field/TextArea.d.ts +4 -0
  249. package/dist/ui-mt/input-field/TextFileInput.d.ts +8 -0
  250. package/dist/ui-mt/input-field/select/InputSelect.d.ts +8 -0
  251. package/dist/ui-mt/inputs/SearchInput.d.ts +2 -0
  252. package/dist/ui-mt/inputs/TaskStatusInput.d.ts +2 -0
  253. package/dist/ui-mt/inputs/UrlsInput.d.ts +2 -0
  254. package/dist/ui-mt/inputs/input.d.ts +2 -0
  255. package/dist/ui-mt/modal/MtModal.d.ts +30 -0
  256. package/dist/ui-mt/mt-tree-view/MtTreeViewExample.d.ts +1 -0
  257. package/dist/ui-mt/mt-tree-view/mt-tree-view-api.d.ts +38 -0
  258. package/dist/ui-mt/mt-tree-view/mt-treeview.d.ts +24 -0
  259. package/dist/ui-mt/pagination.d.ts +7 -0
  260. package/dist/ui-mt/skeleton/NewLoading.d.ts +1 -0
  261. package/dist/ui-mt/skeleton/SkeletonDashboardShell.d.ts +0 -0
  262. package/dist/ui-mt/skeleton/SkeletonInput.d.ts +1 -0
  263. package/dist/ui-mt/skeleton/SkeletonLayout.d.ts +1 -0
  264. package/dist/ui-mt/skeleton/SkeletonLoading.d.ts +3 -0
  265. package/dist/ui-mt/skeleton/skeleton-card.d.ts +3 -0
  266. package/dist/ui-mt/skeleton/skeleton2.d.ts +1 -0
  267. package/dist/ui-mt/skeleton/skeletons.d.ts +6 -0
  268. package/dist/ui-mt/skeleton.d.ts +5 -0
  269. package/dist/ui-mt/types.d.ts +5 -0
  270. package/dist/ui-vamp/alert.d.ts +17 -0
  271. package/dist/ui-vamp/button.d.ts +13 -0
  272. package/dist/ui-vamp/card.d.ts +23 -0
  273. package/dist/ui-vamp/chip.d.ts +11 -0
  274. package/dist/ui-vamp/dropdown.d.ts +12 -0
  275. package/dist/ui-vamp/external-link.d.ts +7 -0
  276. package/dist/ui-vamp/input.d.ts +13 -0
  277. package/dist/ui-vamp/keyvalue.d.ts +7 -0
  278. package/dist/ui-vamp/mobile-nav-button.d.ts +1 -0
  279. package/dist/ui-vamp/modal.d.ts +11 -0
  280. package/dist/ui-vamp/textarea.d.ts +12 -0
  281. package/dist/ui-vamp/toggle-group.d.ts +8 -0
  282. package/dist/video-player/mt-video-player.d.ts +6 -0
  283. package/dist/video-player/video-player2/modal-video-player.d.ts +12 -0
  284. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ import { ReactNode } from 'react';
2
+ export declare function ExampleOg({ children }: {
3
+ children?: ReactNode;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import type { PropsWithChildren } from "react";
2
+ export declare const ExamplePage: () => import("react/jsx-runtime").JSX.Element;
3
+ export declare function RqErrorBoundary(props: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare function ExampleProviderProviders({ children }: {
3
+ children: React.ReactNode;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const ReadMe: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare const ExamplePostDetail: (props: {
2
+ postId: string;
3
+ }) => import("react/jsx-runtime").JSX.Element | null;
@@ -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,5 @@
1
+ type Config = {
2
+ radius: number;
3
+ };
4
+ export declare function useConfig(): [Config, (args_0: Config | typeof import("jotai/utils").RESET | ((prev: Config) => Config | typeof import("jotai/utils").RESET)) => void];
5
+ export {};
@@ -0,0 +1,2 @@
1
+ declare const useLocalStorage: <T>(key: string, initialValue: T) => [T, (value: T) => void];
2
+ export default useLocalStorage;
@@ -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,2 @@
1
+ import React from "react";
2
+ export declare function useIsIntersecting<TElement extends HTMLElement>(): readonly [boolean, React.RefObject<TElement>];
@@ -0,0 +1,2 @@
1
+ export declare const useLayoutPath: () => string;
2
+ export declare const useLayoutSegmentsPath: () => string;
@@ -0,0 +1 @@
1
+ export declare function useMounted(): boolean;
@@ -0,0 +1,3 @@
1
+ export type UseScriptStatus = "idle" | "loading" | "ready" | "error";
2
+ declare function useScript(src: string): UseScriptStatus;
3
+ export default useScript;
@@ -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,2 @@
1
+ declare const CrazySpinner: () => import("react/jsx-runtime").JSX.Element;
2
+ export default CrazySpinner;
@@ -0,0 +1,3 @@
1
+ export default function FontDefault({ className }: {
2
+ className?: string;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export default function FontMono({ className }: {
2
+ className?: string;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export default function FontSerif({ className }: {
2
+ className?: string;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export default function Github({ className }: {
2
+ className?: string;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -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 {};
@@ -0,0 +1,4 @@
1
+ export { default as FontDefault } from "./font-default";
2
+ export { default as FontSerif } from "./font-serif";
3
+ export { default as FontMono } from "./font-mono";
4
+ export { default as Github } from "./github";
@@ -0,0 +1,3 @@
1
+ export default function LoadingCircle({ dimensions }: {
2
+ dimensions?: string;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export default function Magic({ className }: {
2
+ className: string;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -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,2 @@
1
+ export declare const isElementVisible: (element: HTMLElement, container: HTMLElement, rightPadding: number) => boolean;
2
+ export declare const htmlToDom: (htmlMark: string) => void;
@@ -0,0 +1,4 @@
1
+ export declare function getSelectorPath(e: any): {
2
+ text: string;
3
+ path: any[];
4
+ };
@@ -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,4 @@
1
+ export declare class RequiresProPlanError extends Error {
2
+ constructor(message?: string);
3
+ }
4
+ export declare const MakeErrorString: (e: Error) => string;
@@ -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,2 @@
1
+ import * as React from "react";
2
+ export declare function MtComboboxDropdownMenu(props: {} & React.PropsWithChildren): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { type HTMLReactParserOptions } from "html-react-parser";
2
+ export declare const newToolbarParseOptions: () => HTMLReactParserOptions;
@@ -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,5 @@
1
+ declare function installEvent(): void;
2
+ declare function activateEvent(): void;
3
+ declare const cacheName: "v2";
4
+ declare function cacheClone(e: any): Promise<Response>;
5
+ declare function fetchEvent(): void;
@@ -0,0 +1,6 @@
1
+ export type ResolverDef = {
2
+ input: any;
3
+ output: any;
4
+ transformer: boolean;
5
+ errorShape: any;
6
+ };
@@ -0,0 +1,5 @@
1
+ import { DehydratedState } from "@tanstack/react-query";
2
+ import { PropsWithChildren } from "react";
3
+ export declare function TrpcDehydrate(props: {
4
+ callback: () => Promise<DehydratedState>;
5
+ } & PropsWithChildren): Promise<import("react/jsx-runtime").JSX.Element>;
@@ -0,0 +1,2 @@
1
+ export declare const isAbsoluteUrl: (url: string) => boolean;
2
+ export declare function urlJoin(...args: any): string;
@@ -0,0 +1,3 @@
1
+ export type UseScriptStatus = "idle" | "loading" | "ready" | "error";
2
+ declare function useScript(src: string): UseScriptStatus;
3
+ export default useScript;
@@ -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 {};