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,51 @@
1
+ import { z } from "zod";
2
+ export type TRPCMeta = Record<string, unknown>;
3
+ export type Meta<TMeta = TRPCMeta> = TMeta & {
4
+ authRequired?: boolean;
5
+ role?: 'user' | 'admin';
6
+ curdTitle?: string;
7
+ curdView?: z.infer<typeof curdViewSchema>;
8
+ listView?: z.infer<typeof metaListViewSchema>;
9
+ };
10
+ export declare const metaListViewSchema: z.ZodObject<{
11
+ viewType: z.ZodOptional<z.ZodDefault<z.ZodEnum<["default", "grid", "table"]>>>;
12
+ titleFormat: z.ZodOptional<z.ZodString>;
13
+ listPaginateType: z.ZodOptional<z.ZodDefault<z.ZodEnum<["default", "infinite"]>>>;
14
+ listDefaultPageSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
15
+ initQueryParams: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ viewType?: "table" | "default" | "grid" | undefined;
18
+ titleFormat?: string | undefined;
19
+ listPaginateType?: "default" | "infinite" | undefined;
20
+ listDefaultPageSize?: number | undefined;
21
+ initQueryParams?: any;
22
+ }, {
23
+ viewType?: "table" | "default" | "grid" | undefined;
24
+ titleFormat?: string | undefined;
25
+ listPaginateType?: "default" | "infinite" | undefined;
26
+ listDefaultPageSize?: number | undefined;
27
+ initQueryParams?: any;
28
+ }>;
29
+ declare const curdViewSchema: z.ZodObject<{
30
+ viewHome: z.ZodDefault<z.ZodString>;
31
+ viewLayout: z.ZodDefault<z.ZodEnum<["default", "mail", "table"]>>;
32
+ routeShow: z.ZodDefault<z.ZodString>;
33
+ routeEdit: z.ZodDefault<z.ZodString>;
34
+ routeDelete: z.ZodDefault<z.ZodString>;
35
+ routeList: z.ZodDefault<z.ZodString>;
36
+ }, "strip", z.ZodTypeAny, {
37
+ viewHome: string;
38
+ viewLayout: "table" | "default" | "mail";
39
+ routeShow: string;
40
+ routeEdit: string;
41
+ routeDelete: string;
42
+ routeList: string;
43
+ }, {
44
+ viewHome?: string | undefined;
45
+ viewLayout?: "table" | "default" | "mail" | undefined;
46
+ routeShow?: string | undefined;
47
+ routeEdit?: string | undefined;
48
+ routeDelete?: string | undefined;
49
+ routeList?: string | undefined;
50
+ }>;
51
+ export {};
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+ export declare const msgOpenBrowser: z.ZodObject<{
3
+ url: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ url: string;
6
+ }, {
7
+ url: string;
8
+ }>;
9
+ export type MsgOpenBrowser = z.infer<typeof msgOpenBrowser>;
@@ -0,0 +1,17 @@
1
+ import { z } from "zod";
2
+ export declare enum TASK_STATUS {
3
+ Init = 0,
4
+ Padding = 1,
5
+ Running = 2,
6
+ Paused = 3,
7
+ Terminated = 4
8
+ }
9
+ export declare const taskStatusSchema: z.ZodEffects<z.ZodEffects<z.ZodType<TASK_STATUS, z.ZodTypeDef, TASK_STATUS>, TASK_STATUS, TASK_STATUS>, number, TASK_STATUS>;
10
+ export type TaskStatusSchema = z.infer<typeof taskStatusSchema>;
11
+ export declare enum TASK_STATUS_V2 {
12
+ Init = 0,
13
+ Padding = 1,
14
+ fulfill = 2
15
+ }
16
+ export declare const taskStatusV2Schema: z.ZodEffects<z.ZodEffects<z.ZodType<TASK_STATUS, z.ZodTypeDef, TASK_STATUS>, TASK_STATUS, TASK_STATUS>, number, TASK_STATUS>;
17
+ export type TaskStatusV2 = z.infer<typeof taskStatusV2Schema>;
@@ -0,0 +1,5 @@
1
+ import { StateStorage } from 'zustand/middleware';
2
+ import { StateCreator, StoreMutatorIdentifier } from 'zustand/vanilla';
3
+ export declare const customCookieStorage: StateStorage;
4
+ export declare const hashStorage: StateStorage;
5
+ export type ImmerStateCreator<T, Mps extends [StoreMutatorIdentifier, unknown][] = [], Mcs extends [StoreMutatorIdentifier, unknown][] = [], U = T> = StateCreator<T, [...Mps, ['zustand/immer', never], ["zustand/devtools", never]], Mcs, U>;
@@ -0,0 +1,4 @@
1
+ export declare const CustomErrorRetry: (props: {
2
+ message?: string;
3
+ onRetry: () => void;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const ExampleError2: () => import("react/jsx-runtime").JSX.Element;
3
+ export declare const ExampleError1: () => never;
4
+ export declare const WiehErrorExample: import("react").ForwardRefExoticComponent<object & import("react").RefAttributes<any>>;
@@ -0,0 +1,16 @@
1
+ import { Component, ErrorInfo, ReactNode } from "react";
2
+ interface Props {
3
+ children: ReactNode;
4
+ title?: string;
5
+ }
6
+ interface State {
7
+ hasError: boolean;
8
+ errorMessage: string | null;
9
+ }
10
+ export declare class MtErrorBoundary extends Component<Props, State> {
11
+ state: State;
12
+ static getDerivedStateFromError(error: Error): State;
13
+ componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
14
+ render(): string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<ReactNode> | Promise<import("react").AwaitedReactNode> | null | undefined;
15
+ }
16
+ export default MtErrorBoundary;
@@ -0,0 +1,15 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import MtErrorBoundary from './MtErrorBoundary';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof MtErrorBoundary;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ tags: string[];
10
+ argTypes: {};
11
+ };
12
+ export default meta;
13
+ type Story = StoryObj<typeof meta>;
14
+ export declare const Primary: Story;
15
+ export declare const Secondary: Story;
@@ -0,0 +1,2 @@
1
+ import type { PropsWithChildren } from "react";
2
+ export declare const MtErrorBoundaryV2: (props: {} & PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ import type { StoryObj } from '@storybook/react';
3
+ declare const meta: {
4
+ title: string;
5
+ component: (props: {
6
+ children?: import("react").ReactNode;
7
+ }) => import("react/jsx-runtime").JSX.Element;
8
+ parameters: {
9
+ layout: string;
10
+ };
11
+ tags: string[];
12
+ argTypes: {};
13
+ };
14
+ export default meta;
15
+ type Story = StoryObj<typeof meta>;
16
+ export declare const Primary: Story;
17
+ export declare const Secondary: Story;
@@ -0,0 +1,24 @@
1
+ /// <reference types="react" />
2
+ import { type StateCreator } from "zustand/vanilla";
3
+ export type HisSliceProps = {};
4
+ export interface HisSliceState extends HisSliceProps {
5
+ _hasHydrated?: boolean;
6
+ setHasHydrated: (_hasHydrated: boolean) => void;
7
+ histories: any[];
8
+ canGoback: () => boolean;
9
+ setHist: (his: any) => void;
10
+ }
11
+ export declare const createHisSlice: StateCreator<HisSliceState, [
12
+ ], [
13
+ ], HisSliceState>;
14
+ type MainState = HisSliceState;
15
+ export declare const hisContext: import("react").Context<(Omit<import("zustand").StoreApi<HisSliceState>, "setState"> & {
16
+ setState(nextStateOrUpdater: HisSliceState | Partial<HisSliceState> | ((state: import("immer").WritableDraft<HisSliceState>) => void), shouldReplace?: boolean | undefined): void;
17
+ }) | null>;
18
+ type ModalProviderProps = React.PropsWithChildren<HisSliceProps>;
19
+ export declare const HisProvider: (props: ModalProviderProps) => import("react/jsx-runtime").JSX.Element;
20
+ export declare const DEFAULT_USE_SHALLOW = true;
21
+ export declare function useHisStore(): MainState;
22
+ export declare function useHisStore<T>(selector: (state: MainState) => T): T;
23
+ export declare const useCanGoBack: () => boolean;
24
+ export {};
@@ -0,0 +1,58 @@
1
+ /// <reference types="react" />
2
+ import { type StateCreator } from "zustand";
3
+ export interface AppSliceProps {
4
+ debug?: boolean;
5
+ listviewLayout?: string;
6
+ cacheEnabled?: boolean;
7
+ layout?: string;
8
+ theme?: string;
9
+ params?: any;
10
+ globalSearchParams?: any;
11
+ openDebug?: boolean;
12
+ openFab?: boolean;
13
+ url?: string;
14
+ hostname: string;
15
+ }
16
+ export interface AppSliceState extends AppSliceProps {
17
+ _hasHydrated?: boolean;
18
+ setHasHydrated: (_hasHydrated: boolean) => void;
19
+ setDebug: (debug: boolean) => void;
20
+ setLayout: (layout: string) => void;
21
+ setGlobalSearchParams: (globalSearchParams: any) => void;
22
+ setOpenDebug: (openDebug: boolean) => void;
23
+ setCacheEnabled: (cacheEnabled: boolean) => void;
24
+ setOpenFab: (openFab: boolean) => void;
25
+ cmdHandler: (name: string, params?: any) => boolean;
26
+ }
27
+ export declare const createAppSlice: StateCreator<AppSliceState, [
28
+ ], [
29
+ ], AppSliceState>;
30
+ type mtappState = AppSliceState;
31
+ export declare const gomtmContext: import("react").Context<(Omit<Omit<Omit<import("zustand").StoreApi<AppSliceState>, "persist"> & {
32
+ persist: {
33
+ setOptions: (options: Partial<import("zustand/middleware").PersistOptions<AppSliceState, {
34
+ [k: string]: unknown;
35
+ }>>) => void;
36
+ clearStorage: () => void;
37
+ rehydrate: () => void | Promise<void>;
38
+ hasHydrated: () => boolean;
39
+ onHydrate: (fn: (state: AppSliceState) => void) => () => void;
40
+ onFinishHydration: (fn: (state: AppSliceState) => void) => () => void;
41
+ getOptions: () => Partial<import("zustand/middleware").PersistOptions<AppSliceState, {
42
+ [k: string]: unknown;
43
+ }>>;
44
+ };
45
+ }, "setState"> & {
46
+ setState<A extends string | {
47
+ type: string;
48
+ }>(partial: AppSliceState | Partial<AppSliceState> | ((state: AppSliceState) => AppSliceState | Partial<AppSliceState>), replace?: boolean | undefined, action?: A | undefined): void;
49
+ }, "setState"> & {
50
+ setState(nextStateOrUpdater: AppSliceState | Partial<AppSliceState> | ((state: import("immer").WritableDraft<AppSliceState>) => void), shouldReplace?: boolean | undefined, action?: string | {
51
+ type: string;
52
+ } | undefined): void;
53
+ }) | null>;
54
+ type AppProviderProps = React.PropsWithChildren<AppSliceProps>;
55
+ export declare const MtAppProvider: (props: AppProviderProps) => import("react/jsx-runtime").JSX.Element;
56
+ export declare function useMtapp(): mtappState;
57
+ export declare function useMtapp<T>(selector: (state: mtappState) => T): T;
58
+ export {};
@@ -0,0 +1,10 @@
1
+ export default function DemoAiButtons(props: {
2
+ open: boolean;
3
+ setOpen: (open: boolean) => void;
4
+ openNode: boolean;
5
+ setOpenNode: (open: boolean) => void;
6
+ openLink: boolean;
7
+ setOpenLink: (open: boolean) => void;
8
+ openColor: boolean;
9
+ setOpenColor: (open: boolean) => void;
10
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,29 @@
1
+ import type { Range } from "@tiptap/core";
2
+ import { type ComponentProps, type PropsWithChildren } from "react";
3
+ import { type StateCreator } from "zustand";
4
+ import { type JSONContent } from "./components";
5
+ export interface MtEditorProps {
6
+ open?: boolean;
7
+ }
8
+ interface MtEditorState extends MtEditorProps {
9
+ _hasHydrated?: boolean;
10
+ setHasHydrated: (_hasHydrated: boolean) => void;
11
+ setOpen: (open: boolean) => void;
12
+ setQuery: (query: string) => void;
13
+ range: Range | null;
14
+ query: string;
15
+ setRange: (range: Range | null) => void;
16
+ }
17
+ export declare const createMtEditorSlice: StateCreator<MtEditorState, [
18
+ ], [
19
+ ], MtEditorState>;
20
+ export declare const MtEditorProvider: (props: PropsWithChildren<MtEditorProps>) => import("react/jsx-runtime").JSX.Element;
21
+ export declare function useMtEditorStore<T>(selector: (state: MtEditorState) => T): T;
22
+ export declare function MtEditor(props: {
23
+ content?: string | JSONContent;
24
+ } & MtEditorProps & ComponentProps<typeof TailwindAdvancedEditor>): import("react/jsx-runtime").JSX.Element;
25
+ export default function TailwindAdvancedEditor(props: {
26
+ onValueChange?: (content: any) => void;
27
+ content?: JSONContent | null;
28
+ }): import("react/jsx-runtime").JSX.Element | null;
29
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { Editor } from "@tiptap/react";
2
+ import type { ReactNode } from "react";
3
+ interface EditorBubbleItemProps {
4
+ readonly children: ReactNode;
5
+ readonly asChild?: boolean;
6
+ readonly onSelect?: (editor: Editor) => void;
7
+ }
8
+ export declare const EditorBubbleItem: import("react").ForwardRefExoticComponent<EditorBubbleItemProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "onSelect"> & import("react").RefAttributes<HTMLDivElement>>;
9
+ export default EditorBubbleItem;
@@ -0,0 +1,7 @@
1
+ import type { BubbleMenuProps } from "@tiptap/react";
2
+ import type { ReactNode } from "react";
3
+ export interface EditorBubbleProps extends Omit<BubbleMenuProps, "editor"> {
4
+ readonly children: ReactNode;
5
+ }
6
+ export declare const EditorBubble: import("react").ForwardRefExoticComponent<EditorBubbleProps & import("react").RefAttributes<HTMLDivElement>>;
7
+ export default EditorBubble;
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ import type { Editor, Range } from "@tiptap/core";
3
+ interface EditorCommandItemProps {
4
+ readonly onCommand: ({ editor, range, }: {
5
+ editor: Editor;
6
+ range: Range;
7
+ }) => void;
8
+ }
9
+ export declare const EditorCommandItem: import("react").ForwardRefExoticComponent<EditorCommandItemProps & Omit<Omit<{
10
+ children?: import("react").ReactNode;
11
+ } & Omit<import("react").HTMLAttributes<HTMLDivElement>, "disabled" | "value" | "onSelect"> & {
12
+ disabled?: boolean | undefined;
13
+ onSelect?: ((value: string) => void) | undefined;
14
+ value?: string | undefined;
15
+ forceMount?: boolean | undefined;
16
+ } & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
17
+ export declare const EditorCommandEmpty: import("react").ForwardRefExoticComponent<Omit<{
18
+ children?: import("react").ReactNode;
19
+ } & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
20
+ export default EditorCommandItem;
@@ -0,0 +1,29 @@
1
+ import type { Range } from "@tiptap/core";
2
+ import type { FC } from "react";
3
+ export declare const EditorCommandTunnelContext: import("react").Context<{
4
+ In: ({ children }: {
5
+ children: import("react").ReactNode;
6
+ }) => null;
7
+ Out: () => JSX.Element;
8
+ }>;
9
+ interface EditorCommandOutProps {
10
+ readonly query: string;
11
+ readonly range: Range;
12
+ }
13
+ export declare const EditorCommandOut: FC<EditorCommandOutProps>;
14
+ export declare const EditorCommand: import("react").ForwardRefExoticComponent<Omit<{
15
+ children?: import("react").ReactNode;
16
+ } & import("react").HTMLAttributes<HTMLDivElement> & {
17
+ label?: string | undefined;
18
+ shouldFilter?: boolean | undefined;
19
+ filter?: ((value: string, search: string) => number) | undefined;
20
+ defaultValue?: string | undefined;
21
+ value?: string | undefined;
22
+ onValueChange?: ((value: string) => void) | undefined;
23
+ loop?: boolean | undefined;
24
+ vimBindings?: boolean | undefined;
25
+ } & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
26
+ export declare const EditorCommandList: import("react").ForwardRefExoticComponent<{
27
+ children?: import("react").ReactNode;
28
+ } & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
29
+ export {};
@@ -0,0 +1,21 @@
1
+ import type { EditorProviderProps, JSONContent } from "@tiptap/react";
2
+ import type { FC, ReactNode } from "react";
3
+ export interface EditorProps {
4
+ readonly children: ReactNode;
5
+ readonly className?: string;
6
+ }
7
+ interface EditorRootProps {
8
+ readonly children: ReactNode;
9
+ }
10
+ export declare const EditorRoot: FC<EditorRootProps>;
11
+ export type EditorContentProps = Omit<EditorProviderProps, "content"> & {
12
+ readonly children?: ReactNode;
13
+ readonly className?: string;
14
+ readonly initialContent?: JSONContent;
15
+ };
16
+ export declare const EditorContent: import("react").ForwardRefExoticComponent<Omit<EditorProviderProps, "content"> & {
17
+ readonly children?: ReactNode;
18
+ readonly className?: string | undefined;
19
+ readonly initialContent?: JSONContent | undefined;
20
+ } & import("react").RefAttributes<HTMLDivElement>>;
21
+ export {};
@@ -0,0 +1,8 @@
1
+ export { useCurrentEditor as useEditor } from "@tiptap/react";
2
+ export { type Editor as EditorInstance } from "@tiptap/core";
3
+ export type { JSONContent } from "@tiptap/react";
4
+ export { EditorRoot, EditorContent, type EditorContentProps } from "./editor";
5
+ export { EditorBubble } from "./editor-bubble";
6
+ export { EditorBubbleItem } from "./editor-bubble-item";
7
+ export { EditorCommand, EditorCommandList } from "./editor-command";
8
+ export { EditorCommandItem, EditorCommandEmpty } from "./editor-command-item";
@@ -0,0 +1,132 @@
1
+ export declare const exampleHtml = "\n<h1>exampleHtml</h1>\n<p>\nThis is still the text editor you\u2019re used to, but enriched with node views.\n</p>\n<react-component>\n<p>This is editable. You can create a new component by pressing Mod+Enter.</p>\n</react-component>\n<p>\nDid you see that? That\u2019s a React component. We are really living in the future.\n</p>\n";
2
+ export declare const defaultEditorContent: {
3
+ type: string;
4
+ content: ({
5
+ type: string;
6
+ attrs: {
7
+ level: number;
8
+ language?: undefined;
9
+ tight?: undefined;
10
+ start?: undefined;
11
+ src?: undefined;
12
+ alt?: undefined;
13
+ title?: undefined;
14
+ width?: undefined;
15
+ height?: undefined;
16
+ };
17
+ content: {
18
+ type: string;
19
+ text: string;
20
+ }[];
21
+ } | {
22
+ type: string;
23
+ content: ({
24
+ type: string;
25
+ marks: {
26
+ type: string;
27
+ attrs: {
28
+ href: string;
29
+ target: string;
30
+ };
31
+ }[];
32
+ text: string;
33
+ } | {
34
+ type: string;
35
+ text: string;
36
+ marks?: undefined;
37
+ })[];
38
+ attrs?: undefined;
39
+ } | {
40
+ type: string;
41
+ attrs: {
42
+ language: null;
43
+ level?: undefined;
44
+ tight?: undefined;
45
+ start?: undefined;
46
+ src?: undefined;
47
+ alt?: undefined;
48
+ title?: undefined;
49
+ width?: undefined;
50
+ height?: undefined;
51
+ };
52
+ content: {
53
+ type: string;
54
+ text: string;
55
+ }[];
56
+ } | {
57
+ type: string;
58
+ attrs: {
59
+ tight: boolean;
60
+ start: number;
61
+ level?: undefined;
62
+ language?: undefined;
63
+ src?: undefined;
64
+ alt?: undefined;
65
+ title?: undefined;
66
+ width?: undefined;
67
+ height?: undefined;
68
+ };
69
+ content: {
70
+ type: string;
71
+ content: {
72
+ type: string;
73
+ content: ({
74
+ type: string;
75
+ text: string;
76
+ marks?: undefined;
77
+ } | {
78
+ type: string;
79
+ marks: {
80
+ type: string;
81
+ }[];
82
+ text: string;
83
+ })[];
84
+ }[];
85
+ }[];
86
+ } | {
87
+ type: string;
88
+ attrs: {
89
+ src: string;
90
+ alt: string;
91
+ title: string;
92
+ width: null;
93
+ height: null;
94
+ level?: undefined;
95
+ language?: undefined;
96
+ tight?: undefined;
97
+ start?: undefined;
98
+ };
99
+ content?: undefined;
100
+ } | {
101
+ type: string;
102
+ attrs?: undefined;
103
+ content?: undefined;
104
+ } | {
105
+ type: string;
106
+ content: {
107
+ type: string;
108
+ attrs: {
109
+ checked: boolean;
110
+ };
111
+ content: {
112
+ type: string;
113
+ content: ({
114
+ type: string;
115
+ text: string;
116
+ marks?: undefined;
117
+ } | {
118
+ type: string;
119
+ marks: {
120
+ type: string;
121
+ attrs: {
122
+ href: string;
123
+ target: string;
124
+ };
125
+ }[];
126
+ text: string;
127
+ })[];
128
+ }[];
129
+ }[];
130
+ attrs?: undefined;
131
+ })[];
132
+ };
@@ -0,0 +1,22 @@
1
+ import { Mark, type Editor } from "@tiptap/core";
2
+ export interface AIHighlightOptions {
3
+ HTMLAttributes: Record<string, any>;
4
+ }
5
+ declare module "@tiptap/core" {
6
+ interface Commands<ReturnType> {
7
+ AIHighlight: {
8
+ setAIHighlight: (attributes?: {
9
+ color: string;
10
+ }) => ReturnType;
11
+ toggleAIHighlight: (attributes?: {
12
+ color: string;
13
+ }) => ReturnType;
14
+ unsetAIHighlight: () => ReturnType;
15
+ };
16
+ }
17
+ }
18
+ export declare const inputRegex: RegExp;
19
+ export declare const pasteRegex: RegExp;
20
+ export declare const AIHighlight: Mark<AIHighlightOptions, any>;
21
+ export declare const removeAIHighlight: (editor: Editor) => void;
22
+ export declare const addAIHighlight: (editor: Editor, color?: string) => void;
@@ -0,0 +1,10 @@
1
+ import { Extension } from "@tiptap/core";
2
+ declare module "@tiptap/core" {
3
+ interface Commands<ReturnType> {
4
+ customkeymap: {
5
+ selectTextWithinNodeBoundaries: () => ReturnType;
6
+ };
7
+ }
8
+ }
9
+ declare const CustomKeymap: Extension<any, any>;
10
+ export default CustomKeymap;
@@ -0,0 +1,6 @@
1
+ import { Extension } from "@tiptap/core";
2
+ export interface DragHandleOptions {
3
+ dragHandleWidth: number;
4
+ }
5
+ declare const DragAndDrop: Extension<any, any>;
6
+ export default DragAndDrop;
@@ -0,0 +1,2 @@
1
+ import type { FC } from "react";
2
+ export declare const ImageResizer: FC;
@@ -0,0 +1,12 @@
1
+ import { InputRule } from "@tiptap/core";
2
+ import TiptapImage from "@tiptap/extension-image";
3
+ import TiptapLink from "@tiptap/extension-link";
4
+ import { TaskItem } from "@tiptap/extension-task-item";
5
+ import { TaskList } from "@tiptap/extension-task-list";
6
+ import StarterKit from "@tiptap/starter-kit";
7
+ import { ImageResizer } from "./image-resizer";
8
+ import UpdatedImage from "./updated-image";
9
+ declare const PlaceholderExtension: import("@tiptap/core").Extension<import("@tiptap/extension-placeholder").PlaceholderOptions, any>;
10
+ declare const simpleExtensions: readonly [import("@tiptap/core").Mark<import("@tiptap/extension-underline").UnderlineOptions, any>, import("@tiptap/core").Mark<import("@tiptap/extension-text-style").TextStyleOptions, any>, import("@tiptap/core").Extension<import("@tiptap/extension-color").ColorOptions, any>, import("@tiptap/core").Mark<import("@tiptap/extension-highlight").HighlightOptions, any>, import("@tiptap/core").Extension<import("tiptap-markdown").MarkdownOptions, import("tiptap-markdown").MarkdownStorage>, import("@tiptap/core").Extension<any, any>, import("@tiptap/core").Extension<any, any>, import("@tiptap/core").Node<any, any>];
11
+ declare const Horizontal: import("@tiptap/core").Node<import("@tiptap/extension-horizontal-rule").HorizontalRuleOptions, any>;
12
+ export { Horizontal as HorizontalRule, ImageResizer, InputRule, PlaceholderExtension as Placeholder, StarterKit, TaskItem, TaskList, TiptapImage, TiptapLink, UpdatedImage, simpleExtensions, };
@@ -0,0 +1,33 @@
1
+ import type { Editor, Range } from "@tiptap/core";
2
+ import { Extension } from "@tiptap/core";
3
+ import type { ReactNode } from "react";
4
+ declare const Command: Extension<any, any>;
5
+ declare const renderItems: () => {
6
+ onStart: (props: {
7
+ editor: Editor;
8
+ clientRect: DOMRect;
9
+ }) => false | undefined;
10
+ onUpdate: (props: {
11
+ editor: Editor;
12
+ clientRect: DOMRect;
13
+ }) => void;
14
+ onKeyDown: (props: {
15
+ event: KeyboardEvent;
16
+ }) => any;
17
+ onExit: () => void;
18
+ };
19
+ export interface SuggestionItem {
20
+ title: string;
21
+ description: string;
22
+ icon: ReactNode;
23
+ searchTerms?: string[];
24
+ command?: (props: {
25
+ editor: Editor;
26
+ range: Range;
27
+ }) => void;
28
+ }
29
+ export declare const createSuggestionItems: (items: SuggestionItem[]) => SuggestionItem[];
30
+ export declare const handleCommandNavigation: (event: KeyboardEvent) => true | undefined;
31
+ export { Command, renderItems };
32
+ export declare const suggestionItems: SuggestionItem[];
33
+ export declare const slashCommand: Extension<any, any>;
@@ -0,0 +1,2 @@
1
+ declare const UpdatedImage: import("@tiptap/core").Node<import("@tiptap/extension-image").ImageOptions, any>;
2
+ export default UpdatedImage;
@@ -0,0 +1,5 @@
1
+ declare const AICompletionCommands: ({ completion, onDiscard, }: {
2
+ completion: string;
3
+ onDiscard: () => void;
4
+ }) => import("react/jsx-runtime").JSX.Element | null;
5
+ export default AICompletionCommands;
@@ -0,0 +1,5 @@
1
+ interface AISelectorCommandsProps {
2
+ onSelect: (value: string, option: string) => void;
3
+ }
4
+ declare const AISelectorCommands: ({ onSelect }: AISelectorCommandsProps) => import("react/jsx-runtime").JSX.Element | null;
5
+ export default AISelectorCommands;
@@ -0,0 +1,6 @@
1
+ interface AISelectorProps {
2
+ open: boolean;
3
+ onOpenChange: (open: boolean) => void;
4
+ }
5
+ export declare function AISelector({ onOpenChange }: AISelectorProps): import("react/jsx-runtime").JSX.Element | null;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ import { type ReactNode } from "react";
2
+ interface GenerativeMenuSwitchProps {
3
+ children: ReactNode;
4
+ open: boolean;
5
+ onOpenChange: (open: boolean) => void;
6
+ }
7
+ declare const GenerativeMenuSwitch: ({ children, open, onOpenChange, }: GenerativeMenuSwitchProps) => import("react/jsx-runtime").JSX.Element | undefined;
8
+ export default GenerativeMenuSwitch;
@@ -0,0 +1,2 @@
1
+ import { Node } from '@tiptap/core';
2
+ export declare const DemoComponentExtesion: Node<any, any>;