@tulip-systems/core 0.5.3 → 0.5.5
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/auth/client.d.mts +3 -3
- package/dist/auth/client.mjs +2 -2
- package/dist/components/client.d.mts +2 -2
- package/dist/components/common/icons.d.mts +52 -52
- package/dist/components/common/icons.d.mts.map +1 -1
- package/dist/components/common/status.d.mts +3 -3
- package/dist/components/common/status.d.mts.map +1 -1
- package/dist/components/editor/components/content.client.d.mts +2 -2
- package/dist/components/editor/components/content.client.d.mts.map +1 -1
- package/dist/components/editor/components/editor.client.d.mts +6 -6
- package/dist/components/editor/components/editor.client.d.mts.map +1 -1
- package/dist/components/editor/components/menu.client.d.mts +3 -3
- package/dist/components/editor/components/menu.client.d.mts.map +1 -1
- package/dist/components/editor/extensions/file-handler/utils.mjs +1 -1
- package/dist/components/editor/extensions/file-handler/utils.mjs.map +1 -1
- package/dist/components/editor/extensions/image/extension.mjs +0 -1
- package/dist/components/editor/extensions/image/extension.mjs.map +1 -1
- package/dist/components/editor/extensions/skeleton/extension.mjs +1 -1
- package/dist/components/editor/lib/constants.d.mts +29 -29
- package/dist/components/editor/lib/constants.mjs +3 -3
- package/dist/components/editor/lib/extensions.d.mts +3 -3
- package/dist/components/editor/lib/helpers.d.mts.map +1 -1
- package/dist/components/editor/lib/helpers.mjs +38 -3
- package/dist/components/editor/lib/helpers.mjs.map +1 -1
- package/dist/components/header/back-button.client.d.mts +2 -2
- package/dist/components/header/back-button.client.d.mts.map +1 -1
- package/dist/components/header/bottom-bar.client.d.mts +3 -3
- package/dist/components/header/bottom-bar.client.d.mts.map +1 -1
- package/dist/components/header/breadcrumbs.client.d.mts +7 -7
- package/dist/components/header/breadcrumbs.client.d.mts.map +1 -1
- package/dist/components/header/header.client.d.mts +2 -2
- package/dist/components/header/header.client.d.mts.map +1 -1
- package/dist/components/header/mobile-nav-switcher.client.d.mts +2 -2
- package/dist/components/header/mobile-nav-switcher.client.d.mts.map +1 -1
- package/dist/components/header/top-bar.client.d.mts +4 -4
- package/dist/components/header/top-bar.client.d.mts.map +1 -1
- package/dist/components/layouts/admin-content.client.d.mts +2 -2
- package/dist/components/layouts/admin-content.client.d.mts.map +1 -1
- package/dist/components/layouts/admin-layout.d.mts +2 -2
- package/dist/components/layouts/admin-layout.d.mts.map +1 -1
- package/dist/components/layouts/admin-loading.d.mts +2 -2
- package/dist/components/layouts/admin-loading.d.mts.map +1 -1
- package/dist/components/layouts/empty-page.d.mts +4 -4
- package/dist/components/layouts/empty-page.d.mts.map +1 -1
- package/dist/components/layouts/error-page.d.mts +23 -0
- package/dist/components/layouts/error-page.d.mts.map +1 -0
- package/dist/components/layouts/error-page.mjs +58 -0
- package/dist/components/layouts/error-page.mjs.map +1 -0
- package/dist/components/layouts/list-layout.d.mts +2 -2
- package/dist/components/layouts/list-layout.d.mts.map +1 -1
- package/dist/components/layouts/not-allowed-page.d.mts +22 -0
- package/dist/components/layouts/not-allowed-page.d.mts.map +1 -0
- package/dist/components/layouts/not-allowed-page.mjs +25 -0
- package/dist/components/layouts/not-allowed-page.mjs.map +1 -0
- package/dist/components/layouts/not-found-page.d.mts +3 -3
- package/dist/components/layouts/not-found-page.d.mts.map +1 -1
- package/dist/components/layouts/providers.client.d.mts +2 -2
- package/dist/components/layouts/providers.client.d.mts.map +1 -1
- package/dist/components/layouts/root-layout.server.d.mts +2 -2
- package/dist/components/layouts/root-layout.server.d.mts.map +1 -1
- package/dist/components/layouts/root-loading.d.mts +2 -2
- package/dist/components/layouts/root-loading.d.mts.map +1 -1
- package/dist/components/layouts/tab-layout.d.mts +2 -2
- package/dist/components/layouts/tab-layout.d.mts.map +1 -1
- package/dist/components/lists/data-list.d.mts +5 -5
- package/dist/components/lists/data-list.d.mts.map +1 -1
- package/dist/components/lists/data-stack.d.mts +8 -8
- package/dist/components/navigation/admin-sidebar-paths.client.d.mts +21 -11
- package/dist/components/navigation/admin-sidebar-paths.client.d.mts.map +1 -1
- package/dist/components/navigation/admin-sidebar-paths.client.mjs +7 -5
- package/dist/components/navigation/admin-sidebar-paths.client.mjs.map +1 -1
- package/dist/components/ui/accordion.d.mts +5 -5
- package/dist/components/ui/alert-dialog.d.mts +12 -12
- package/dist/components/ui/alert.d.mts +6 -6
- package/dist/components/ui/aspect-ratio.d.mts +2 -2
- package/dist/components/ui/avatar.client.d.mts +4 -4
- package/dist/components/ui/avatar.client.d.mts.map +1 -1
- package/dist/components/ui/badge.d.mts +4 -4
- package/dist/components/ui/breadcrumb.d.mts +8 -8
- package/dist/components/ui/button.d.mts +4 -4
- package/dist/components/ui/calendar.d.mts +3 -3
- package/dist/components/ui/card.d.mts +7 -7
- package/dist/components/ui/carousel.d.mts +6 -6
- package/dist/components/ui/chart.client.d.mts +5 -5
- package/dist/components/ui/chart.client.d.mts.map +1 -1
- package/dist/components/ui/checkbox.d.mts +2 -2
- package/dist/components/ui/collapsible.client.d.mts +4 -4
- package/dist/components/ui/collapsible.client.d.mts.map +1 -1
- package/dist/components/ui/color-picker.client.d.mts +2 -2
- package/dist/components/ui/color-picker.client.d.mts.map +1 -1
- package/dist/components/ui/combobox-dropdown.client.d.mts +2 -2
- package/dist/components/ui/combobox-dropdown.client.d.mts.map +1 -1
- package/dist/components/ui/combobox.client.d.mts +2 -2
- package/dist/components/ui/combobox.client.d.mts.map +1 -1
- package/dist/components/ui/command.d.mts +10 -10
- package/dist/components/ui/context-menu.d.mts +16 -16
- package/dist/components/ui/date-picker.client.d.mts +2 -2
- package/dist/components/ui/date-picker.client.d.mts.map +1 -1
- package/dist/components/ui/dialog.client.d.mts +11 -11
- package/dist/components/ui/dialog.client.d.mts.map +1 -1
- package/dist/components/ui/drawer.client.d.mts +11 -11
- package/dist/components/ui/dropdown-menu.d.mts +16 -16
- package/dist/components/ui/form.client.d.mts +7 -7
- package/dist/components/ui/hover-card.client.d.mts +4 -4
- package/dist/components/ui/input-recipient.d.mts +2 -2
- package/dist/components/ui/input.d.mts +2 -2
- package/dist/components/ui/label.d.mts +2 -2
- package/dist/components/ui/navigation-menu.d.mts +11 -11
- package/dist/components/ui/pagination.d.mts +8 -8
- package/dist/components/ui/popover.d.mts +5 -5
- package/dist/components/ui/popover.d.mts.map +1 -1
- package/dist/components/ui/progress.client.d.mts +2 -2
- package/dist/components/ui/radio-group.d.mts +3 -3
- package/dist/components/ui/resizable.client.d.mts +4 -4
- package/dist/components/ui/scroll-area.d.mts +3 -3
- package/dist/components/ui/select.client.d.mts +11 -11
- package/dist/components/ui/separator.d.mts +2 -2
- package/dist/components/ui/sheet.client.d.mts +9 -9
- package/dist/components/ui/sidebar.client.d.mts +26 -26
- package/dist/components/ui/skeleton.d.mts +2 -2
- package/dist/components/ui/slider.d.mts +2 -2
- package/dist/components/ui/sonner.client.d.mts +2 -2
- package/dist/components/ui/switch.d.mts +2 -2
- package/dist/components/ui/tabs.d.mts +5 -5
- package/dist/components/ui/textarea.d.mts +2 -2
- package/dist/components/ui/time-input.client.d.mts +2 -2
- package/dist/components/ui/toggle-group.client.d.mts +3 -3
- package/dist/components/ui/toggle.d.mts +2 -2
- package/dist/components/ui/tooltip.client.d.mts +5 -5
- package/dist/components/ui/tooltip.client.d.mts.map +1 -1
- package/dist/components/ui/tooltip.client.mjs +1 -1
- package/dist/components/ui/tooltip.client.mjs.map +1 -1
- package/dist/components.d.mts +3 -1
- package/dist/components.mjs +5 -3
- package/dist/lib/hooks/use-action.d.mts +2 -2
- package/dist/lib/hooks/use-indicator.d.mts +2 -2
- package/dist/modules/auth/components/allowed.client.d.mts +21 -7
- package/dist/modules/auth/components/allowed.client.d.mts.map +1 -1
- package/dist/modules/auth/components/allowed.client.mjs +8 -2
- package/dist/modules/auth/components/allowed.client.mjs.map +1 -1
- package/dist/modules/auth/components/auth-layout.server.d.mts +2 -2
- package/dist/modules/auth/components/auth-layout.server.d.mts.map +1 -1
- package/dist/modules/auth/components/auth-loading.d.mts +2 -2
- package/dist/modules/auth/components/create-first-user-page.client.d.mts +2 -2
- package/dist/modules/auth/components/create-first-user-page.client.d.mts.map +1 -1
- package/dist/modules/auth/components/create-first-user-page.client.mjs +1 -0
- package/dist/modules/auth/components/create-first-user-page.client.mjs.map +1 -1
- package/dist/modules/auth/components/forget-password-page.client.d.mts +2 -2
- package/dist/modules/auth/components/forget-password-page.client.d.mts.map +1 -1
- package/dist/modules/auth/components/guard-first-user.server.d.mts +2 -2
- package/dist/modules/auth/components/guard-first-user.server.d.mts.map +1 -1
- package/dist/modules/auth/components/guard.server.d.mts +2 -2
- package/dist/modules/auth/components/guard.server.d.mts.map +1 -1
- package/dist/modules/auth/components/login-page.client.d.mts +2 -2
- package/dist/modules/auth/components/login-page.client.d.mts.map +1 -1
- package/dist/modules/auth/components/reset-password-page.client.d.mts +2 -2
- package/dist/modules/auth/components/reset-password-page.client.d.mts.map +1 -1
- package/dist/modules/auth/components/update-password-command.d.mts +2 -2
- package/dist/modules/auth/components/update-password-command.d.mts.map +1 -1
- package/dist/modules/auth/db/schema.d.mts +73 -73
- package/dist/modules/auth/db/schema.d.mts.map +1 -1
- package/dist/modules/auth/handler/client.client.d.mts +143 -143
- package/dist/modules/auth/handler/client.client.d.mts.map +1 -1
- package/dist/modules/auth/handler/init.d.mts +131 -131
- package/dist/modules/auth/handler/init.d.mts.map +1 -1
- package/dist/modules/auth/hooks/use-permission.d.mts +48 -4
- package/dist/modules/auth/hooks/use-permission.d.mts.map +1 -1
- package/dist/modules/auth/hooks/use-permission.mjs +51 -4
- package/dist/modules/auth/hooks/use-permission.mjs.map +1 -1
- package/dist/modules/auth/hooks/use-session.d.mts +4 -4
- package/dist/modules/auth/lib/helpers.server.d.mts +2 -2
- package/dist/modules/auth/lib/helpers.server.mjs +1 -1
- package/dist/modules/auth/lib/validators.d.mts +3 -3
- package/dist/modules/auth/lib/validators.d.mts.map +1 -1
- package/dist/modules/auth/lib/validators.mjs +1 -1
- package/dist/modules/auth/lib/validators.mjs.map +1 -1
- package/dist/modules/commands/components/alert-dialog-command.client.d.mts +10 -10
- package/dist/modules/commands/components/alert-dialog-command.client.d.mts.map +1 -1
- package/dist/modules/commands/components/click-command.client.d.mts +2 -2
- package/dist/modules/commands/components/click-command.client.d.mts.map +1 -1
- package/dist/modules/commands/components/command-trigger.client.d.mts +6 -6
- package/dist/modules/commands/components/command-trigger.client.d.mts.map +1 -1
- package/dist/modules/commands/components/dialog-command.client.d.mts +8 -8
- package/dist/modules/commands/components/dialog-command.client.d.mts.map +1 -1
- package/dist/modules/commands/components/dropdown-command.client.d.mts +5 -5
- package/dist/modules/commands/components/dropdown-command.client.d.mts.map +1 -1
- package/dist/modules/commands/components/empty-command.client.d.mts +2 -2
- package/dist/modules/commands/components/empty-command.client.d.mts.map +1 -1
- package/dist/modules/commands/components/form-dialog-command.client.d.mts +11 -11
- package/dist/modules/commands/components/form-dialog-command.client.d.mts.map +1 -1
- package/dist/modules/commands/hooks/use-command-menu.client.d.mts.map +1 -1
- package/dist/modules/commands/hooks/use-command-menu.client.mjs +0 -5
- package/dist/modules/commands/hooks/use-command-menu.client.mjs.map +1 -1
- package/dist/modules/commands/hooks/use-command-mutation.client.d.mts +2 -2
- package/dist/modules/commands/menus/context-menu.client.d.mts +2 -2
- package/dist/modules/commands/menus/context-menu.client.d.mts.map +1 -1
- package/dist/modules/commands/menus/dropdown-menu.client.d.mts +3 -3
- package/dist/modules/commands/menus/dropdown-menu.client.d.mts.map +1 -1
- package/dist/modules/commands/menus/inline-menu.client.d.mts +3 -3
- package/dist/modules/commands/menus/inline-menu.client.d.mts.map +1 -1
- package/dist/modules/commands/menus/responsive-menu.client.d.mts +3 -3
- package/dist/modules/commands/menus/responsive-menu.client.d.mts.map +1 -1
- package/dist/modules/commands/utils/archive-command.client.d.mts +3 -3
- package/dist/modules/commands/utils/archive-command.client.d.mts.map +1 -1
- package/dist/modules/commands/utils/delete-command.client.d.mts +3 -3
- package/dist/modules/commands/utils/delete-command.client.d.mts.map +1 -1
- package/dist/modules/config/db/helpers.d.mts +5 -5
- package/dist/modules/config/db/helpers.d.mts.map +1 -1
- package/dist/modules/data-tables/components/cell/common.client.d.mts +5 -5
- package/dist/modules/data-tables/components/column-header.d.mts +2 -2
- package/dist/modules/data-tables/components/filters/combobox.client.d.mts +2 -2
- package/dist/modules/data-tables/components/filters/slider.client.d.mts +2 -2
- package/dist/modules/data-tables/components/header.d.mts +4 -4
- package/dist/modules/data-tables/components/layout.d.mts +2 -2
- package/dist/modules/data-tables/components/search-input.client.d.mts +2 -2
- package/dist/modules/data-tables/components/skeleton.d.mts +2 -2
- package/dist/modules/data-tables/components/table.d.mts +7 -7
- package/dist/modules/data-tables/components/toolbar.d.mts +3 -3
- package/dist/modules/data-tables/hooks/use-context.client.d.mts +2 -2
- package/dist/modules/data-tables/tables/data-table/components/table.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/inputs/advanced-select.client.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/inputs/combobox.client.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/inputs/input.client.d.mts +3 -3
- package/dist/modules/data-tables/tables/inline-table/components/inputs/read-only.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/inputs/select.client.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/table.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/combobox.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/combobox.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/date-input.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/date-input.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/date-picker.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/date-picker.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/editor.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/editor.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/input-recipient.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/input-recipient.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/input-toggle.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/input-toggle.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/input.client.d.mts +4 -4
- package/dist/modules/inline-edit/components/input.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/select.client.d.mts +6 -6
- package/dist/modules/inline-edit/components/switch.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/toggle.client.d.mts +2 -2
- package/dist/modules/inline-edit/lib/variants.d.mts +1 -1
- package/dist/modules/router/handler/init.server.d.mts +6 -6
- package/dist/modules/router/handler/init.server.d.mts.map +1 -1
- package/dist/modules/router/handler/init.server.mjs +1 -1
- package/dist/modules/storage/components/dropzone-context.client.d.mts +2 -2
- package/dist/modules/storage/components/dropzone-context.client.d.mts.map +1 -1
- package/dist/modules/storage/components/dropzone.client.d.mts +5 -5
- package/dist/modules/storage/components/dropzone.client.d.mts.map +1 -1
- package/dist/modules/storage/components/dropzone.client.mjs +1 -1
- package/dist/modules/storage/components/image-grid.client.d.mts +3 -3
- package/dist/modules/storage/components/image-grid.client.d.mts.map +1 -1
- package/dist/modules/storage/components/image-grid.client.mjs +1 -1
- package/dist/modules/storage/components/upload-zone.client.d.mts +2 -2
- package/dist/modules/storage/components/upload-zone.client.d.mts.map +1 -1
- package/dist/modules/storage/lib/create-upload.client.d.mts.map +1 -1
- package/dist/modules/storage/lib/router.server.d.mts +2346 -2346
- package/dist/modules/storage/lib/router.server.d.mts.map +1 -1
- package/dist/modules/storage/lib/router.server.mjs +1 -1
- package/dist/modules/storage/lib/schema.d.mts +92 -92
- package/dist/modules/storage/lib/schema.d.mts.map +1 -1
- package/dist/modules/storage/lib/schema.mjs +1 -1
- package/dist/modules/storage/lib/service.server.d.mts +21 -21
- package/dist/modules/storage/lib/service.server.mjs +2 -2
- package/dist/modules/storage/lib/validators.d.mts +91 -91
- package/dist/modules/storage/lib/validators.d.mts.map +1 -1
- package/dist/router/server.mjs +1 -1
- package/package.json +1 -1
- package/src/components/editor/extensions/file-handler/utils.ts +1 -1
- package/src/components/editor/extensions/image/extension.ts +0 -2
- package/src/components/editor/lib/helpers.ts +39 -3
- package/src/components/entry.ts +2 -0
- package/src/components/layouts/error-page.tsx +61 -0
- package/src/components/layouts/not-allowed-page.tsx +1 -1
- package/src/components/navigation/admin-sidebar-paths.client.tsx +18 -2
- package/src/components/ui/tooltip.client.tsx +1 -1
- package/src/modules/auth/components/allowed.client.tsx +35 -7
- package/src/modules/auth/components/create-first-user-page.client.tsx +4 -0
- package/src/modules/auth/hooks/use-permission.ts +88 -2
- package/src/modules/auth/lib/validators.ts +1 -1
- package/src/modules/commands/hooks/use-command-menu.client.tsx +4 -7
- package/dist/modules/auth/lib/utils.mjs +0 -21
- package/dist/modules/auth/lib/utils.mjs.map +0 -1
- package/src/modules/inline-edit/hooks/use-inline.client copy.tsx +0 -97
package/dist/auth/client.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UsePermissionProps, usePermission, usePermissions } from "../modules/auth/hooks/use-permission.mjs";
|
|
2
|
+
import { Allowed, AllowedProps, AllowedStrategy } from "../modules/auth/components/allowed.client.mjs";
|
|
2
3
|
import { CreateFirstUserPage } from "../modules/auth/components/create-first-user-page.client.mjs";
|
|
3
4
|
import { ForgetPasswordPage } from "../modules/auth/components/forget-password-page.client.mjs";
|
|
4
5
|
import { LoginPage } from "../modules/auth/components/login-page.client.mjs";
|
|
5
6
|
import { ResetPasswordPage } from "../modules/auth/components/reset-password-page.client.mjs";
|
|
6
7
|
import { UpdatePasswordCommand, UpdatePasswordCommandProps, UpdatePasswordCommandTrigger } from "../modules/auth/components/update-password-command.mjs";
|
|
7
8
|
import { ClientAuth, ClientSession, authClient } from "../modules/auth/handler/client.client.mjs";
|
|
8
|
-
import { usePermission } from "../modules/auth/hooks/use-permission.mjs";
|
|
9
9
|
import { sessionQueryOptions, useSession } from "../modules/auth/hooks/use-session.mjs";
|
|
10
|
-
export { Allowed, ClientAuth, ClientSession, CreateFirstUserPage, ForgetPasswordPage, LoginPage, ResetPasswordPage, UpdatePasswordCommand, UpdatePasswordCommandProps, UpdatePasswordCommandTrigger, authClient, sessionQueryOptions, usePermission, useSession };
|
|
10
|
+
export { Allowed, AllowedProps, AllowedStrategy, ClientAuth, ClientSession, CreateFirstUserPage, ForgetPasswordPage, LoginPage, ResetPasswordPage, UpdatePasswordCommand, UpdatePasswordCommandProps, UpdatePasswordCommandTrigger, UsePermissionProps, authClient, sessionQueryOptions, usePermission, usePermissions, useSession };
|
package/dist/auth/client.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { LoginPage } from "../modules/auth/components/login-page.client.mjs";
|
|
|
5
5
|
import { ResetPasswordPage } from "../modules/auth/components/reset-password-page.client.mjs";
|
|
6
6
|
import { UpdatePasswordCommand, UpdatePasswordCommandTrigger } from "../modules/auth/components/update-password-command.mjs";
|
|
7
7
|
import { sessionQueryOptions, useSession } from "../modules/auth/hooks/use-session.mjs";
|
|
8
|
-
import { usePermission } from "../modules/auth/hooks/use-permission.mjs";
|
|
8
|
+
import { usePermission, usePermissions } from "../modules/auth/hooks/use-permission.mjs";
|
|
9
9
|
import { Allowed } from "../modules/auth/components/allowed.client.mjs";
|
|
10
10
|
|
|
11
|
-
export { Allowed, CreateFirstUserPage, ForgetPasswordPage, LoginPage, ResetPasswordPage, UpdatePasswordCommand, UpdatePasswordCommandTrigger, authClient, sessionQueryOptions, usePermission, useSession };
|
|
11
|
+
export { Allowed, CreateFirstUserPage, ForgetPasswordPage, LoginPage, ResetPasswordPage, UpdatePasswordCommand, UpdatePasswordCommandTrigger, authClient, sessionQueryOptions, usePermission, usePermissions, useSession };
|
|
@@ -11,7 +11,7 @@ import { AdminContent } from "./layouts/admin-content.client.mjs";
|
|
|
11
11
|
import { Providers } from "./layouts/providers.client.mjs";
|
|
12
12
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./ui/tooltip.client.mjs";
|
|
13
13
|
import { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar } from "./ui/sidebar.client.mjs";
|
|
14
|
-
import { Path, PathGroup, PathGroupItems, PathGroupTitle, PathItems, PathLink, PathSubItem, PathSubItemLink, Paths } from "./navigation/admin-sidebar-paths.client.mjs";
|
|
14
|
+
import { Path, PathGroup, PathGroupItems, PathGroupProps, PathGroupTitle, PathItems, PathLink, PathSubItem, PathSubItemLink, Paths } from "./navigation/admin-sidebar-paths.client.mjs";
|
|
15
15
|
import { Avatar, AvatarFallback, AvatarImage } from "./ui/avatar.client.mjs";
|
|
16
16
|
import { ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent } from "./ui/chart.client.mjs";
|
|
17
17
|
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "./ui/collapsible.client.mjs";
|
|
@@ -31,4 +31,4 @@ import { Toaster, toast } from "./ui/sonner.client.mjs";
|
|
|
31
31
|
import { TimeInput } from "./ui/time-input.client.mjs";
|
|
32
32
|
import { TimePickerInput, TimePickerInputProps } from "./ui/time-picker-input.client.mjs";
|
|
33
33
|
import { ToggleGroup, ToggleGroupItem } from "./ui/toggle-group.client.mjs";
|
|
34
|
-
export { AdminContent, Avatar, AvatarFallback, AvatarImage, BottomBar, BottomBarLink, BottomBarLinks, BottomBarLinksProps, BottomBarProps, ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Collapsible, CollapsibleContent, CollapsibleTrigger, ColorPicker, Combobox, ComboboxDropdown, ComboboxDropdownItem, ComboboxDropdownProps, ComboboxItem, ComboboxProps, DatePicker, DatePickerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Editor, EditorContent, EditorContext, EditorMenuBubble, EditorMenuFixed, EditorProps, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Header, HeaderBreadcrumb, HeaderBreadcrumbProps, HeaderBreadcrumbSeparator, HeaderBreadcrumbs, HeaderBreadcrumbsDesktopList, HeaderBreadcrumbsDropdownMenu, HeaderBreadcrumbsDropdownMenuItem, HeaderBreadcrumbsLink, HeaderBreadcrumbsMobileList, HeaderTopbarBackButton, HeaderTopbarMobileNavSwitcher, HoverCard, HoverCardContent, HoverCardTrigger, Path, PathGroup, PathGroupItems, PathGroupTitle, PathItems, PathLink, PathSubItem, PathSubItemLink, Paths, Progress, Providers, ResizableHandle, ResizablePanel, ResizablePanelGroup, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, TimeInput, TimePickerInput, TimePickerInputProps, Toaster, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Topbar, TopbarProps, TopbarTitle, TopbarTitleProps, TopbarTools, TopbarToolsProps, editorVariants, toast, useFormField, useSidebar };
|
|
34
|
+
export { AdminContent, Avatar, AvatarFallback, AvatarImage, BottomBar, BottomBarLink, BottomBarLinks, BottomBarLinksProps, BottomBarProps, ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Collapsible, CollapsibleContent, CollapsibleTrigger, ColorPicker, Combobox, ComboboxDropdown, ComboboxDropdownItem, ComboboxDropdownProps, ComboboxItem, ComboboxProps, DatePicker, DatePickerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Editor, EditorContent, EditorContext, EditorMenuBubble, EditorMenuFixed, EditorProps, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Header, HeaderBreadcrumb, HeaderBreadcrumbProps, HeaderBreadcrumbSeparator, HeaderBreadcrumbs, HeaderBreadcrumbsDesktopList, HeaderBreadcrumbsDropdownMenu, HeaderBreadcrumbsDropdownMenuItem, HeaderBreadcrumbsLink, HeaderBreadcrumbsMobileList, HeaderTopbarBackButton, HeaderTopbarMobileNavSwitcher, HoverCard, HoverCardContent, HoverCardTrigger, Path, PathGroup, PathGroupItems, PathGroupProps, PathGroupTitle, PathItems, PathLink, PathSubItem, PathSubItemLink, Paths, Progress, Providers, ResizableHandle, ResizablePanel, ResizablePanelGroup, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, TimeInput, TimePickerInput, TimePickerInputProps, Toaster, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Topbar, TopbarProps, TopbarTitle, TopbarTitleProps, TopbarTools, TopbarToolsProps, editorVariants, toast, useFormField, useSidebar };
|
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
import { LucideIcon, LucideProps } from "lucide-react";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime176 from "react/jsx-runtime";
|
|
3
|
+
import * as react7 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/common/icons.d.ts
|
|
6
6
|
type Icon = LucideIcon;
|
|
7
7
|
declare const Icons: {
|
|
8
|
-
close:
|
|
9
|
-
save:
|
|
10
|
-
spinner:
|
|
11
|
-
chevronLeft:
|
|
12
|
-
chevronRight:
|
|
13
|
-
chevronDown:
|
|
14
|
-
chevronUp:
|
|
15
|
-
trash:
|
|
16
|
-
post:
|
|
17
|
-
page:
|
|
18
|
-
media:
|
|
19
|
-
download:
|
|
20
|
-
settings:
|
|
21
|
-
billing:
|
|
22
|
-
ellipsis:
|
|
23
|
-
add:
|
|
24
|
-
edit:
|
|
25
|
-
warning:
|
|
26
|
-
user:
|
|
27
|
-
users:
|
|
28
|
-
arrowUp:
|
|
29
|
-
arrowDown:
|
|
30
|
-
arrowRight:
|
|
31
|
-
arrowLeft:
|
|
32
|
-
moveLeft:
|
|
33
|
-
moveRight:
|
|
34
|
-
help:
|
|
35
|
-
pizza:
|
|
36
|
-
check:
|
|
37
|
-
copy:
|
|
38
|
-
copyDone:
|
|
39
|
-
refresh:
|
|
40
|
-
preview:
|
|
41
|
-
externalLink:
|
|
42
|
-
sun:
|
|
43
|
-
lock:
|
|
44
|
-
unLock:
|
|
45
|
-
moon:
|
|
46
|
-
search:
|
|
47
|
-
laptop:
|
|
48
|
-
active:
|
|
49
|
-
draft:
|
|
50
|
-
archive:
|
|
51
|
-
restore:
|
|
52
|
-
dashboard:
|
|
53
|
-
regulations:
|
|
54
|
-
home:
|
|
55
|
-
mail:
|
|
56
|
-
building:
|
|
57
|
-
logo: (props: LucideProps) =>
|
|
8
|
+
close: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
9
|
+
save: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
10
|
+
spinner: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
11
|
+
chevronLeft: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
12
|
+
chevronRight: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
13
|
+
chevronDown: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
14
|
+
chevronUp: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
15
|
+
trash: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
16
|
+
post: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
17
|
+
page: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
18
|
+
media: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
19
|
+
download: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
20
|
+
settings: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
21
|
+
billing: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
22
|
+
ellipsis: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
23
|
+
add: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
24
|
+
edit: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
25
|
+
warning: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
26
|
+
user: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
27
|
+
users: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
28
|
+
arrowUp: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
29
|
+
arrowDown: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
30
|
+
arrowRight: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
31
|
+
arrowLeft: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
32
|
+
moveLeft: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
33
|
+
moveRight: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
34
|
+
help: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
35
|
+
pizza: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
36
|
+
check: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
37
|
+
copy: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
38
|
+
copyDone: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
39
|
+
refresh: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
40
|
+
preview: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
41
|
+
externalLink: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
42
|
+
sun: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
43
|
+
lock: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
44
|
+
unLock: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
45
|
+
moon: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
46
|
+
search: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
47
|
+
laptop: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
48
|
+
active: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
49
|
+
draft: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
50
|
+
archive: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
51
|
+
restore: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
52
|
+
dashboard: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
53
|
+
regulations: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
54
|
+
home: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
55
|
+
mail: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
56
|
+
building: react7.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react7.RefAttributes<SVGSVGElement>>;
|
|
57
|
+
logo: (props: LucideProps) => react_jsx_runtime176.JSX.Element;
|
|
58
58
|
};
|
|
59
59
|
//#endregion
|
|
60
60
|
export { Icon, Icons };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.d.mts","names":[],"sources":["../../../src/components/common/icons.tsx"],"sourcesContent":[],"mappings":";;;;;KAsDY,IAAA,GAAO;cAEN;;;EAFD,OAAI,kCAAa,KAAA,YAAA,EAAA,KAAA,CAAA,uBAAA,cAAA,CAAA,CAAA;EAEhB,WA8GZ,kCAAA,KAAA,YAAA,EAAA,KAAA,CAAA,uBAAA,cAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA5De,gBAAW,
|
|
1
|
+
{"version":3,"file":"icons.d.mts","names":[],"sources":["../../../src/components/common/icons.tsx"],"sourcesContent":[],"mappings":";;;;;KAsDY,IAAA,GAAO;cAEN;;;EAFD,OAAI,kCAAa,KAAA,YAAA,EAAA,KAAA,CAAA,uBAAA,cAAA,CAAA,CAAA;EAEhB,WA8GZ,kCAAA,KAAA,YAAA,EAAA,KAAA,CAAA,uBAAA,cAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA5De,gBAAW,oBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConfigWithIcon } from "../../lib/types/config.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime177 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/common/status.d.ts
|
|
5
5
|
/**
|
|
@@ -43,11 +43,11 @@ type StatusComponentProps<TStatus extends string> = {
|
|
|
43
43
|
/**
|
|
44
44
|
* Status column
|
|
45
45
|
*/
|
|
46
|
-
declare function StatusField<TStatus extends string>(props: StatusComponentProps<TStatus>):
|
|
46
|
+
declare function StatusField<TStatus extends string>(props: StatusComponentProps<TStatus>): react_jsx_runtime177.JSX.Element;
|
|
47
47
|
/**
|
|
48
48
|
* Status badge
|
|
49
49
|
*/
|
|
50
|
-
declare function StatusBadge<TStatus extends string>(props: StatusComponentProps<TStatus>):
|
|
50
|
+
declare function StatusBadge<TStatus extends string>(props: StatusComponentProps<TStatus>): react_jsx_runtime177.JSX.Element;
|
|
51
51
|
//#endregion
|
|
52
52
|
export { CreateStatusComponentProps, StatusBadge, StatusField, createStatusConfig, createStatusVariants, findStatus };
|
|
53
53
|
//# sourceMappingURL=status.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.mts","names":[],"sources":["../../../src/components/common/status.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAOa,cAAA,kBACL,EAAA,CAAA,gBAAA,MAAA,CAAA,CAAA,MAAA,EAD2D,cAC3D,CAD0E,OAC1E,CAAA,EAAA,EAAA,GADoF,cACpF,CADoF,OACpF,CAAA,EAAA;;;;;;AAQR;AAYgB,iBAZA,UAYoB,CAAA,gBAAA;EACjB,KAAA,EAAA,MAAA;CACT,CAAA,CAAA,MAAA,EAbA,OAaA,EAAA,EAAA,MAAA,EAAA,MAAA,CAAA,EAXP,OAWO,GAAA,SAAA;;;AAaV;AAEE;;AAMQ,iBAvBM,oBAuBN,CAAA,gBAAA,MAAA,CAAA,CAAA,MAAA,EAAA;EACoB,KAAA,EAvBX,OAuBW;EACpB,SAAA,EAAA,MAAA;CAAO,EAAA,CAAA,EAvBd,MAuBc,CAvBP,OAuBO,EAAA,MAAA,CAAA;AAMjB;;;AAAwF,KAhB5E,0BAgB4E,CAAA,gBAAA,MAAA,CAAA,GAAA;EAAA,MAAA,EAf9E,OAe8E,GAAA,IAAA;AAexF,CAAA;;;;KAxBK,oBAwBmF,CAAA,gBAAA,MAAA,CAAA,GAAA;UAvB9E,eAAe;;YACK;;UACpB;;;;;iBAMM,2CAA2C,qBAAqB,WAAQ,
|
|
1
|
+
{"version":3,"file":"status.d.mts","names":[],"sources":["../../../src/components/common/status.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAOa,cAAA,kBACL,EAAA,CAAA,gBAAA,MAAA,CAAA,CAAA,MAAA,EAD2D,cAC3D,CAD0E,OAC1E,CAAA,EAAA,EAAA,GADoF,cACpF,CADoF,OACpF,CAAA,EAAA;;;;;;AAQR;AAYgB,iBAZA,UAYoB,CAAA,gBAAA;EACjB,KAAA,EAAA,MAAA;CACT,CAAA,CAAA,MAAA,EAbA,OAaA,EAAA,EAAA,MAAA,EAAA,MAAA,CAAA,EAXP,OAWO,GAAA,SAAA;;;AAaV;AAEE;;AAMQ,iBAvBM,oBAuBN,CAAA,gBAAA,MAAA,CAAA,CAAA,MAAA,EAAA;EACoB,KAAA,EAvBX,OAuBW;EACpB,SAAA,EAAA,MAAA;CAAO,EAAA,CAAA,EAvBd,MAuBc,CAvBP,OAuBO,EAAA,MAAA,CAAA;AAMjB;;;AAAwF,KAhB5E,0BAgB4E,CAAA,gBAAA,MAAA,CAAA,GAAA;EAAA,MAAA,EAf9E,OAe8E,GAAA,IAAA;AAexF,CAAA;;;;KAxBK,oBAwBmF,CAAA,gBAAA,MAAA,CAAA,GAAA;UAvB9E,eAAe;;YACK;;UACpB;;;;;iBAMM,2CAA2C,qBAAqB,WAAQ,oBAAA,CAAA,GAAA,CAAA;;;;iBAexE,2CAA2C,qBAAqB,WAAQ,oBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime55 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/editor/components/content.client.d.ts
|
|
4
|
-
declare function EditorContent():
|
|
4
|
+
declare function EditorContent(): react_jsx_runtime55.JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { EditorContent };
|
|
7
7
|
//# sourceMappingURL=content.client.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.client.d.mts","names":[],"sources":["../../../../src/components/editor/components/content.client.tsx"],"sourcesContent":[],"mappings":";;;iBAOgB,aAAA,CAAA,GAAa,
|
|
1
|
+
{"version":3,"file":"content.client.d.mts","names":[],"sources":["../../../../src/components/editor/components/content.client.tsx"],"sourcesContent":[],"mappings":";;;iBAOgB,aAAA,CAAA,GAAa,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { EditorExtensionsConfig, EditorExtensionsConfigResult } from "../lib/extensions.mjs";
|
|
2
2
|
import { EditorJSONContent } from "../lib/types.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime56 from "react/jsx-runtime";
|
|
4
4
|
import { VariantProps } from "class-variance-authority";
|
|
5
|
-
import * as
|
|
5
|
+
import * as react6 from "react";
|
|
6
6
|
import { PropsWithChildren } from "react";
|
|
7
7
|
import { Content, Editor } from "@tiptap/react";
|
|
8
|
-
import * as
|
|
8
|
+
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
9
9
|
|
|
10
10
|
//#region src/components/editor/components/editor.client.d.ts
|
|
11
11
|
/**
|
|
@@ -15,13 +15,13 @@ type EditorContextValue = {
|
|
|
15
15
|
editor: Editor;
|
|
16
16
|
extensions: EditorExtensionsConfigResult;
|
|
17
17
|
};
|
|
18
|
-
declare const EditorContext:
|
|
18
|
+
declare const EditorContext: react6.Context<EditorContextValue>;
|
|
19
19
|
/**
|
|
20
20
|
* Editor variants
|
|
21
21
|
*/
|
|
22
22
|
declare const editorVariants: (props?: ({
|
|
23
23
|
variant?: "default" | "table" | "preview" | null | undefined;
|
|
24
|
-
} &
|
|
24
|
+
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
25
25
|
/**
|
|
26
26
|
* Editor context provider
|
|
27
27
|
*/
|
|
@@ -42,7 +42,7 @@ declare function Editor$1({
|
|
|
42
42
|
variant,
|
|
43
43
|
className,
|
|
44
44
|
children
|
|
45
|
-
}: EditorProps):
|
|
45
|
+
}: EditorProps): react_jsx_runtime56.JSX.Element | null;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { Editor$1 as Editor, EditorContext, EditorProps, editorVariants };
|
|
48
48
|
//# sourceMappingURL=editor.client.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.client.d.mts","names":[],"sources":["../../../../src/components/editor/components/editor.client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;KAkBK,kBAAA;UACK;EADL,UAAA,EAES,4BADJ;AAIV,CAAA;AAKa,cALA,aAkBX,EAlBwB,
|
|
1
|
+
{"version":3,"file":"editor.client.d.mts","names":[],"sources":["../../../../src/components/editor/components/editor.client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;KAkBK,kBAAA;UACK;EADL,UAAA,EAES,4BADJ;AAIV,CAAA;AAKa,cALA,aAkBX,EAlBwB,MAAA,CAAA,OAkBxB,CAlBwB,kBAkBxB,CAAA;AAKF;;;AAEY,cApBC,cAoBD,EAAA,CAAA,KACK,CADL,EAAA,CAAA;EACa,OAAA,CAAA,EAAA,SAAA,GAAA,OAAA,GAAA,SAAA,GAAA,IAAA,GAAA,SAAA;CAAR,GARf,+BAAA,CAAA,SAQe,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;;;;AAFE,KADP,WAAA,GAAc,YACP,CAAA,OAD2B,cAC3B,CAAA,GAAjB,iBAAiB,CAAA;EASH,KAAA,CAAA,EARJ,OAQU;EACpB,UAAA,CAAA,EARe,OAQf,CARuB,sBAQvB,CAAA;EACA,QAAA,CAAA,EAAA,CAAA,KAAA,EARqB,iBAQrB,EAAA,GAAA,IAAA;EACA,MAAA,CAAA,EAAA,CAAA,KAAA,EARmB,iBAQnB,EAAA,GAAA,IAAA;EACA,QAAA,CAAA,EAAA,OAAA;EACA,SAAA,CAAA,EAAA,MAAA;CACA,CAAA;AACA,iBAPc,QAAA,CAOd;EAAA,KAAA;EAAA,UAAA;EAAA,QAAA;EAAA,MAAA;EAAA,QAAA;EAAA,OAAA;EAAA,SAAA;EAAA;AAAA,CAAA,EAEC,WAFD,CAAA,EAEY,mBAAA,CAAA,GAAA,CAAA,OAAA,GAFZ,IAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime57 from "react/jsx-runtime";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
3
|
import { BubbleMenu } from "@tiptap/react/menus";
|
|
4
4
|
|
|
5
5
|
//#region src/components/editor/components/menu.client.d.ts
|
|
6
|
-
declare function EditorMenuFixed(props: React.ComponentProps<"div">):
|
|
7
|
-
declare function EditorMenuBubble(props: ComponentProps<typeof BubbleMenu>):
|
|
6
|
+
declare function EditorMenuFixed(props: React.ComponentProps<"div">): react_jsx_runtime57.JSX.Element;
|
|
7
|
+
declare function EditorMenuBubble(props: ComponentProps<typeof BubbleMenu>): react_jsx_runtime57.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { EditorMenuBubble, EditorMenuFixed };
|
|
10
10
|
//# sourceMappingURL=menu.client.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.client.d.mts","names":[],"sources":["../../../../src/components/editor/components/menu.client.tsx"],"sourcesContent":[],"mappings":";;;;;iBAoBgB,eAAA,QAAuB,KAAA,CAAM,wBAAqB,
|
|
1
|
+
{"version":3,"file":"menu.client.d.mts","names":[],"sources":["../../../../src/components/editor/components/menu.client.tsx"],"sourcesContent":[],"mappings":";;;;;iBAoBgB,eAAA,QAAuB,KAAA,CAAM,wBAAqB,mBAAA,CAAA,GAAA,CAAA;iBAgBlD,gBAAA,QAAwB,sBAAsB,cAAW,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @example
|
|
9
9
|
* const imageCounts = collectImageIds(editorDoc);
|
|
10
10
|
* imageCounts.forEach((count, imageId) => {
|
|
11
|
-
* console.
|
|
11
|
+
* console.info(`Image ${imageId} appears ${count} times`);
|
|
12
12
|
* });
|
|
13
13
|
*/
|
|
14
14
|
function collectImageIds(doc) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.mjs","names":["removed: string[]","added: string[]"],"sources":["../../../../../src/components/editor/extensions/file-handler/utils.ts"],"sourcesContent":["/**\n * Collects and counts all image node IDs from a document.\n *\n * @param doc - The document node to traverse and analyze\n * @returns A Map where keys are image node IDs and values are their occurrence counts\n *\n * @example\n * const imageCounts = collectImageIds(editorDoc);\n * imageCounts.forEach((count, imageId) => {\n * console.
|
|
1
|
+
{"version":3,"file":"utils.mjs","names":["removed: string[]","added: string[]"],"sources":["../../../../../src/components/editor/extensions/file-handler/utils.ts"],"sourcesContent":["/**\n * Collects and counts all image node IDs from a document.\n *\n * @param doc - The document node to traverse and analyze\n * @returns A Map where keys are image node IDs and values are their occurrence counts\n *\n * @example\n * const imageCounts = collectImageIds(editorDoc);\n * imageCounts.forEach((count, imageId) => {\n * console.info(`Image ${imageId} appears ${count} times`);\n * });\n */\nexport function collectImageIds(doc: any): Map<string, number> {\n const counts = new Map<string, number>();\n\n doc.descendants((node: any) => {\n if (node.type.name !== \"image\") return;\n\n const id = node.attrs?.nodeId;\n if (!id) return;\n\n counts.set(id, (counts.get(id) ?? 0) + 1);\n });\n\n return counts;\n}\n\n/**\n * Compares two maps of string keys to numeric values and identifies which keys have been removed or restored.\n * @param before - A Map containing the previous state of string keys with their associated numeric values\n * @param after - A Map containing the current state of string keys with their associated numeric values\n * @returns An object containing two arrays:\n * - `removed`: Array of keys where the numeric value decreased (or was deleted)\n * - `restored`: Array of keys where the numeric value increased\n */\nexport function diffIds(before: Map<string, number>, after: Map<string, number>) {\n const removed: string[] = [];\n const added: string[] = [];\n\n const keys = new Set([...before.keys(), ...after.keys()]);\n\n for (const key of keys) {\n const b = before.get(key) ?? 0;\n const a = after.get(key) ?? 0;\n\n if (a < b) removed.push(key);\n if (a > b) added.push(key);\n }\n\n return { removed, added };\n}\n"],"mappings":";;;;;;;;;;;;;AAYA,SAAgB,gBAAgB,KAA+B;CAC7D,MAAM,yBAAS,IAAI,KAAqB;AAExC,KAAI,aAAa,SAAc;AAC7B,MAAI,KAAK,KAAK,SAAS,QAAS;EAEhC,MAAM,KAAK,KAAK,OAAO;AACvB,MAAI,CAAC,GAAI;AAET,SAAO,IAAI,KAAK,OAAO,IAAI,GAAG,IAAI,KAAK,EAAE;GACzC;AAEF,QAAO;;;;;;;;;;AAWT,SAAgB,QAAQ,QAA6B,OAA4B;CAC/E,MAAMA,UAAoB,EAAE;CAC5B,MAAMC,QAAkB,EAAE;CAE1B,MAAM,OAAO,IAAI,IAAI,CAAC,GAAG,OAAO,MAAM,EAAE,GAAG,MAAM,MAAM,CAAC,CAAC;AAEzD,MAAK,MAAM,OAAO,MAAM;EACtB,MAAM,IAAI,OAAO,IAAI,IAAI,IAAI;EAC7B,MAAM,IAAI,MAAM,IAAI,IAAI,IAAI;AAE5B,MAAI,IAAI,EAAG,SAAQ,KAAK,IAAI;AAC5B,MAAI,IAAI,EAAG,OAAM,KAAK,IAAI;;AAG5B,QAAO;EAAE;EAAS;EAAO"}
|
|
@@ -36,7 +36,6 @@ const Image$1 = Image.extend({
|
|
|
36
36
|
},
|
|
37
37
|
renderHTML({ HTMLAttributes }) {
|
|
38
38
|
const { src: _, ...attrs } = HTMLAttributes;
|
|
39
|
-
console.log("attrs", attrs);
|
|
40
39
|
const nodeId = attrs.nodeId;
|
|
41
40
|
const isPending = Boolean(attrs.isPending);
|
|
42
41
|
const src = nodeId && !isPending ? getFileUrl(nodeId) : null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension.mjs","names":["Image","TiptapImage"],"sources":["../../../../../src/components/editor/extensions/image/extension.ts"],"sourcesContent":["\"use client\";\n\nimport { getFileUrl } from \"@/modules/storage/lib/helpers\";\nimport { Image as TiptapImage, ImageOptions as TiptapImageOptions } from \"@tiptap/extension-image\";\n\nexport interface ImageOptions extends TiptapImageOptions {}\n\nexport const Image = TiptapImage.extend<ImageOptions>({\n atom: true,\n addAttributes() {\n return {\n ...this.parent?.(),\n // node id\n nodeId: {\n default: null,\n parseHTML: (el) => el.getAttribute(\"data-node-id\"),\n renderHTML: (attrs) => {\n if (!attrs.nodeId) return {};\n return {\n \"data-node-id\": attrs.nodeId,\n ...(attrs.nodeId && !attrs.isPending ? { src: getFileUrl(attrs.nodeId) } : {}),\n };\n },\n },\n\n // semantics\n alt: { default: null },\n title: { default: null },\n\n // layout stability\n width: { default: null },\n height: { default: null },\n\n // upload UX\n isPending: {\n default: false,\n renderHTML: (attrs) => (attrs.isPending ? { \"data-pending\": \"true\" } : {}),\n },\n fileName: { default: null },\n };\n },\n parseHTML() {\n return [{ tag: \"img[data-node-id]\" }];\n },\n renderHTML({ HTMLAttributes }) {\n const { src: _, ...attrs } = HTMLAttributes;\n\n
|
|
1
|
+
{"version":3,"file":"extension.mjs","names":["Image","TiptapImage"],"sources":["../../../../../src/components/editor/extensions/image/extension.ts"],"sourcesContent":["\"use client\";\n\nimport { getFileUrl } from \"@/modules/storage/lib/helpers\";\nimport { Image as TiptapImage, ImageOptions as TiptapImageOptions } from \"@tiptap/extension-image\";\n\nexport interface ImageOptions extends TiptapImageOptions {}\n\nexport const Image = TiptapImage.extend<ImageOptions>({\n atom: true,\n addAttributes() {\n return {\n ...this.parent?.(),\n // node id\n nodeId: {\n default: null,\n parseHTML: (el) => el.getAttribute(\"data-node-id\"),\n renderHTML: (attrs) => {\n if (!attrs.nodeId) return {};\n return {\n \"data-node-id\": attrs.nodeId,\n ...(attrs.nodeId && !attrs.isPending ? { src: getFileUrl(attrs.nodeId) } : {}),\n };\n },\n },\n\n // semantics\n alt: { default: null },\n title: { default: null },\n\n // layout stability\n width: { default: null },\n height: { default: null },\n\n // upload UX\n isPending: {\n default: false,\n renderHTML: (attrs) => (attrs.isPending ? { \"data-pending\": \"true\" } : {}),\n },\n fileName: { default: null },\n };\n },\n parseHTML() {\n return [{ tag: \"img[data-node-id]\" }];\n },\n renderHTML({ HTMLAttributes }) {\n const { src: _, ...attrs } = HTMLAttributes;\n\n const nodeId = attrs.nodeId as string | null;\n const isPending = Boolean(attrs.isPending);\n\n const src = nodeId && !isPending ? getFileUrl(nodeId) : null;\n\n return [\"img\", { ...attrs, ...(src ? { src } : {}) }];\n },\n});\n"],"mappings":";;;;;;AAOA,MAAaA,UAAQC,MAAY,OAAqB;CACpD,MAAM;CACN,gBAAgB;AACd,SAAO;GACL,GAAG,KAAK,UAAU;GAElB,QAAQ;IACN,SAAS;IACT,YAAY,OAAO,GAAG,aAAa,eAAe;IAClD,aAAa,UAAU;AACrB,SAAI,CAAC,MAAM,OAAQ,QAAO,EAAE;AAC5B,YAAO;MACL,gBAAgB,MAAM;MACtB,GAAI,MAAM,UAAU,CAAC,MAAM,YAAY,EAAE,KAAK,WAAW,MAAM,OAAO,EAAE,GAAG,EAAE;MAC9E;;IAEJ;GAGD,KAAK,EAAE,SAAS,MAAM;GACtB,OAAO,EAAE,SAAS,MAAM;GAGxB,OAAO,EAAE,SAAS,MAAM;GACxB,QAAQ,EAAE,SAAS,MAAM;GAGzB,WAAW;IACT,SAAS;IACT,aAAa,UAAW,MAAM,YAAY,EAAE,gBAAgB,QAAQ,GAAG,EAAE;IAC1E;GACD,UAAU,EAAE,SAAS,MAAM;GAC5B;;CAEH,YAAY;AACV,SAAO,CAAC,EAAE,KAAK,qBAAqB,CAAC;;CAEvC,WAAW,EAAE,kBAAkB;EAC7B,MAAM,EAAE,KAAK,GAAG,GAAG,UAAU;EAE7B,MAAM,SAAS,MAAM;EACrB,MAAM,YAAY,QAAQ,MAAM,UAAU;EAE1C,MAAM,MAAM,UAAU,CAAC,YAAY,WAAW,OAAO,GAAG;AAExD,SAAO,CAAC,OAAO;GAAE,GAAG;GAAO,GAAI,MAAM,EAAE,KAAK,GAAG,EAAE;GAAG,CAAC;;CAExD,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import { SkeletonNodeRenderer } from "./renderer.mjs";
|
|
4
|
-
import { Node } from "@tiptap/core";
|
|
5
4
|
import { ReactNodeViewRenderer } from "@tiptap/react";
|
|
5
|
+
import { Node } from "@tiptap/core";
|
|
6
6
|
|
|
7
7
|
//#region src/components/editor/extensions/skeleton/extension.ts
|
|
8
8
|
const Skeleton = Node.create({
|
|
@@ -4,17 +4,17 @@ import * as _tiptap_extension_blockquote0 from "@tiptap/extension-blockquote";
|
|
|
4
4
|
import * as _tiptap_extension_bold0 from "@tiptap/extension-bold";
|
|
5
5
|
import * as _tiptap_extension_hard_break0 from "@tiptap/extension-hard-break";
|
|
6
6
|
import * as _tiptap_extension_heading0 from "@tiptap/extension-heading";
|
|
7
|
-
import * as _tiptap_extension_highlight0 from "@tiptap/extension-highlight";
|
|
8
7
|
import * as _tiptap_extension_horizontal_rule0 from "@tiptap/extension-horizontal-rule";
|
|
9
8
|
import * as _tiptap_extension_italic0 from "@tiptap/extension-italic";
|
|
10
9
|
import * as _tiptap_extension_link0 from "@tiptap/extension-link";
|
|
11
10
|
import * as _tiptap_extension_list0 from "@tiptap/extension-list";
|
|
12
11
|
import * as _tiptap_extension_paragraph0 from "@tiptap/extension-paragraph";
|
|
13
12
|
import * as _tiptap_extension_strike0 from "@tiptap/extension-strike";
|
|
14
|
-
import * as _tiptap_extension_text_style0 from "@tiptap/extension-text-style";
|
|
15
13
|
import * as _tiptap_extension_underline0 from "@tiptap/extension-underline";
|
|
16
14
|
import * as _tiptap_extensions0 from "@tiptap/extensions";
|
|
17
|
-
import * as
|
|
15
|
+
import * as _tiptap_extension_highlight0 from "@tiptap/extension-highlight";
|
|
16
|
+
import * as _tiptap_extension_text_style0 from "@tiptap/extension-text-style";
|
|
17
|
+
import * as _tiptap_core11 from "@tiptap/core";
|
|
18
18
|
|
|
19
19
|
//#region src/components/editor/lib/constants.d.ts
|
|
20
20
|
/**
|
|
@@ -24,38 +24,38 @@ declare const EDITOR_EXTENSIONS: {
|
|
|
24
24
|
/**
|
|
25
25
|
* Nodes
|
|
26
26
|
*/
|
|
27
|
-
blockquote:
|
|
28
|
-
document:
|
|
29
|
-
hardBreak:
|
|
30
|
-
heading:
|
|
31
|
-
horizontalRule:
|
|
32
|
-
listItem:
|
|
33
|
-
orderedList:
|
|
34
|
-
bulletList:
|
|
35
|
-
paragraph:
|
|
36
|
-
text:
|
|
37
|
-
image:
|
|
38
|
-
fileHandler:
|
|
39
|
-
skeleton:
|
|
27
|
+
blockquote: _tiptap_core11.Node<_tiptap_extension_blockquote0.BlockquoteOptions, any>;
|
|
28
|
+
document: _tiptap_core11.Node<any, any>;
|
|
29
|
+
hardBreak: _tiptap_core11.Node<_tiptap_extension_hard_break0.HardBreakOptions, any>;
|
|
30
|
+
heading: _tiptap_core11.Node<_tiptap_extension_heading0.HeadingOptions, any>;
|
|
31
|
+
horizontalRule: _tiptap_core11.Node<_tiptap_extension_horizontal_rule0.HorizontalRuleOptions, any>;
|
|
32
|
+
listItem: _tiptap_core11.Node<_tiptap_extension_list0.ListItemOptions, any>;
|
|
33
|
+
orderedList: _tiptap_core11.Node<_tiptap_extension_list0.OrderedListOptions, any>;
|
|
34
|
+
bulletList: _tiptap_core11.Node<_tiptap_extension_list0.BulletListOptions, any>;
|
|
35
|
+
paragraph: _tiptap_core11.Node<_tiptap_extension_paragraph0.ParagraphOptions, any>;
|
|
36
|
+
text: _tiptap_core11.Node<any, any>;
|
|
37
|
+
image: _tiptap_core11.Node<ImageOptions, any>;
|
|
38
|
+
fileHandler: _tiptap_core11.Extension<FileHandlerOptions, any>;
|
|
39
|
+
skeleton: _tiptap_core11.Node<any, any>;
|
|
40
40
|
/**
|
|
41
41
|
* Marks
|
|
42
42
|
*/
|
|
43
|
-
bold:
|
|
44
|
-
italic:
|
|
45
|
-
link:
|
|
46
|
-
strike:
|
|
47
|
-
underline:
|
|
48
|
-
highlight:
|
|
43
|
+
bold: _tiptap_core11.Mark<_tiptap_extension_bold0.BoldOptions, any>;
|
|
44
|
+
italic: _tiptap_core11.Mark<_tiptap_extension_italic0.ItalicOptions, any>;
|
|
45
|
+
link: _tiptap_core11.Mark<_tiptap_extension_link0.LinkOptions, any>;
|
|
46
|
+
strike: _tiptap_core11.Mark<_tiptap_extension_strike0.StrikeOptions, any>;
|
|
47
|
+
underline: _tiptap_core11.Mark<_tiptap_extension_underline0.UnderlineOptions, any>;
|
|
48
|
+
highlight: _tiptap_core11.Mark<_tiptap_extension_highlight0.HighlightOptions, any>;
|
|
49
49
|
/**
|
|
50
50
|
* Extensions
|
|
51
51
|
*/
|
|
52
|
-
dropcursor:
|
|
53
|
-
gapcursor:
|
|
54
|
-
undoRedo:
|
|
55
|
-
listKeymap:
|
|
56
|
-
trailingNode:
|
|
57
|
-
textStyle:
|
|
58
|
-
color:
|
|
52
|
+
dropcursor: _tiptap_core11.Extension<_tiptap_extensions0.DropcursorOptions, any>;
|
|
53
|
+
gapcursor: _tiptap_core11.Extension<any, any>;
|
|
54
|
+
undoRedo: _tiptap_core11.Extension<_tiptap_extensions0.UndoRedoOptions, any>;
|
|
55
|
+
listKeymap: _tiptap_core11.Extension<_tiptap_extension_list0.ListKeymapOptions, any>;
|
|
56
|
+
trailingNode: _tiptap_core11.Extension<_tiptap_extensions0.TrailingNodeOptions, any>;
|
|
57
|
+
textStyle: _tiptap_core11.Mark<_tiptap_extension_text_style0.TextStyleOptions, any>;
|
|
58
|
+
color: _tiptap_core11.Extension<_tiptap_extension_text_style0.ColorOptions, any>;
|
|
59
59
|
};
|
|
60
60
|
type EditorExtensions = typeof EDITOR_EXTENSIONS;
|
|
61
61
|
//#endregion
|
|
@@ -7,7 +7,6 @@ import Bold from "@tiptap/extension-bold";
|
|
|
7
7
|
import Document from "@tiptap/extension-document";
|
|
8
8
|
import HardBreak from "@tiptap/extension-hard-break";
|
|
9
9
|
import Heading from "@tiptap/extension-heading";
|
|
10
|
-
import Highlight from "@tiptap/extension-highlight";
|
|
11
10
|
import HorizontalRule from "@tiptap/extension-horizontal-rule";
|
|
12
11
|
import Italic from "@tiptap/extension-italic";
|
|
13
12
|
import Link from "@tiptap/extension-link";
|
|
@@ -15,9 +14,10 @@ import { BulletList, ListItem, ListKeymap, OrderedList } from "@tiptap/extension
|
|
|
15
14
|
import Paragraph from "@tiptap/extension-paragraph";
|
|
16
15
|
import Strike from "@tiptap/extension-strike";
|
|
17
16
|
import Text from "@tiptap/extension-text";
|
|
18
|
-
import { Color, TextStyle } from "@tiptap/extension-text-style";
|
|
19
17
|
import Underline from "@tiptap/extension-underline";
|
|
20
18
|
import { Dropcursor, Gapcursor, TrailingNode, UndoRedo } from "@tiptap/extensions";
|
|
19
|
+
import Highlight from "@tiptap/extension-highlight";
|
|
20
|
+
import { Color, TextStyle } from "@tiptap/extension-text-style";
|
|
21
21
|
|
|
22
22
|
//#region src/components/editor/lib/constants.ts
|
|
23
23
|
/**
|
|
@@ -98,5 +98,5 @@ const EDITOR_EXTENSIONS_CONFIG = [
|
|
|
98
98
|
];
|
|
99
99
|
|
|
100
100
|
//#endregion
|
|
101
|
-
export { EDITOR_EXTENSIONS, EDITOR_EXTENSIONS_CONFIG, EDITOR_EXTENSIONS_KEYS
|
|
101
|
+
export { EDITOR_EXTENSIONS, EDITOR_EXTENSIONS_CONFIG, EDITOR_EXTENSIONS_KEYS };
|
|
102
102
|
//# sourceMappingURL=constants.mjs.map
|
|
@@ -5,18 +5,18 @@ import { BlockquoteOptions } from "@tiptap/extension-blockquote";
|
|
|
5
5
|
import { BoldOptions } from "@tiptap/extension-bold";
|
|
6
6
|
import { HardBreakOptions } from "@tiptap/extension-hard-break";
|
|
7
7
|
import { HeadingOptions } from "@tiptap/extension-heading";
|
|
8
|
-
import { HighlightOptions } from "@tiptap/extension-highlight";
|
|
9
8
|
import { HorizontalRuleOptions } from "@tiptap/extension-horizontal-rule";
|
|
10
9
|
import { ItalicOptions } from "@tiptap/extension-italic";
|
|
11
10
|
import { LinkOptions } from "@tiptap/extension-link";
|
|
12
11
|
import { BulletListOptions, ListItemOptions, ListKeymapOptions, OrderedListOptions } from "@tiptap/extension-list";
|
|
13
12
|
import { ParagraphOptions } from "@tiptap/extension-paragraph";
|
|
14
13
|
import { StrikeOptions } from "@tiptap/extension-strike";
|
|
15
|
-
import { ColorOptions, TextStyleOptions } from "@tiptap/extension-text-style";
|
|
16
14
|
import { UnderlineOptions } from "@tiptap/extension-underline";
|
|
17
15
|
import { DropcursorOptions, TrailingNodeOptions, UndoRedoOptions } from "@tiptap/extensions";
|
|
18
|
-
import "@tiptap/core";
|
|
19
16
|
import "@tiptap/react";
|
|
17
|
+
import { HighlightOptions } from "@tiptap/extension-highlight";
|
|
18
|
+
import { ColorOptions, TextStyleOptions } from "@tiptap/extension-text-style";
|
|
19
|
+
import "@tiptap/core";
|
|
20
20
|
|
|
21
21
|
//#region src/components/editor/lib/extensions.d.ts
|
|
22
22
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.mts","names":[],"sources":["../../../../src/components/editor/lib/helpers.ts"],"sourcesContent":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"helpers.d.mts","names":[],"sources":["../../../../src/components/editor/lib/helpers.ts"],"sourcesContent":[],"mappings":";;;;;;AA2CA;AAOgB,iBAPA,0BAAA,CAOoC,IAAA,EAAA,MAAA,CAAiB,EAPX,iBAOW;;;;iBAArD,0BAAA,UAAoC"}
|
|
@@ -1,18 +1,53 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Blockquote from "@tiptap/extension-blockquote";
|
|
2
|
+
import Bold from "@tiptap/extension-bold";
|
|
3
|
+
import Document from "@tiptap/extension-document";
|
|
4
|
+
import HardBreak from "@tiptap/extension-hard-break";
|
|
5
|
+
import Heading from "@tiptap/extension-heading";
|
|
6
|
+
import HorizontalRule from "@tiptap/extension-horizontal-rule";
|
|
7
|
+
import Italic from "@tiptap/extension-italic";
|
|
8
|
+
import Link from "@tiptap/extension-link";
|
|
9
|
+
import { BulletList, ListItem, ListKeymap, OrderedList } from "@tiptap/extension-list";
|
|
10
|
+
import Paragraph from "@tiptap/extension-paragraph";
|
|
11
|
+
import Strike from "@tiptap/extension-strike";
|
|
12
|
+
import Text from "@tiptap/extension-text";
|
|
13
|
+
import Underline from "@tiptap/extension-underline";
|
|
14
|
+
import { Dropcursor, Gapcursor, TrailingNode, UndoRedo } from "@tiptap/extensions";
|
|
2
15
|
import { generateHTML, generateJSON } from "@tiptap/html";
|
|
3
16
|
|
|
4
17
|
//#region src/components/editor/lib/helpers.ts
|
|
18
|
+
const EXTENSIONS_FOR_GENERATION = [
|
|
19
|
+
Blockquote,
|
|
20
|
+
BulletList,
|
|
21
|
+
Document,
|
|
22
|
+
HardBreak,
|
|
23
|
+
Heading,
|
|
24
|
+
HorizontalRule,
|
|
25
|
+
ListItem,
|
|
26
|
+
OrderedList,
|
|
27
|
+
Paragraph,
|
|
28
|
+
Text,
|
|
29
|
+
Bold,
|
|
30
|
+
Italic,
|
|
31
|
+
Link,
|
|
32
|
+
Strike,
|
|
33
|
+
Underline,
|
|
34
|
+
Dropcursor,
|
|
35
|
+
Gapcursor,
|
|
36
|
+
UndoRedo,
|
|
37
|
+
ListKeymap,
|
|
38
|
+
TrailingNode
|
|
39
|
+
];
|
|
5
40
|
/**
|
|
6
41
|
* Convert text to editor content
|
|
7
42
|
*/
|
|
8
43
|
function convertHTMLToEditorContent(html) {
|
|
9
|
-
return generateJSON(html,
|
|
44
|
+
return generateJSON(html, EXTENSIONS_FOR_GENERATION);
|
|
10
45
|
}
|
|
11
46
|
/**
|
|
12
47
|
* Convert editor content to text
|
|
13
48
|
*/
|
|
14
49
|
function convertEditorContentToHTML(content) {
|
|
15
|
-
return generateHTML(content,
|
|
50
|
+
return generateHTML(content, EXTENSIONS_FOR_GENERATION);
|
|
16
51
|
}
|
|
17
52
|
|
|
18
53
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.mjs","names":[],"sources":["../../../../src/components/editor/lib/helpers.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"helpers.mjs","names":[],"sources":["../../../../src/components/editor/lib/helpers.ts"],"sourcesContent":["import Blockquote from \"@tiptap/extension-blockquote\";\nimport Bold from \"@tiptap/extension-bold\";\nimport Document from \"@tiptap/extension-document\";\nimport HardBreak from \"@tiptap/extension-hard-break\";\nimport Heading from \"@tiptap/extension-heading\";\nimport HorizontalRule from \"@tiptap/extension-horizontal-rule\";\nimport Italic from \"@tiptap/extension-italic\";\nimport Link from \"@tiptap/extension-link\";\nimport { BulletList, ListItem, ListKeymap, OrderedList } from \"@tiptap/extension-list\";\nimport Paragraph from \"@tiptap/extension-paragraph\";\nimport Strike from \"@tiptap/extension-strike\";\nimport Text from \"@tiptap/extension-text\";\nimport Underline from \"@tiptap/extension-underline\";\nimport { Dropcursor, Gapcursor, TrailingNode, UndoRedo } from \"@tiptap/extensions\";\nimport { generateHTML, generateJSON } from \"@tiptap/html\";\nimport { EditorJSONContent } from \"./types\";\n\nconst EXTENSIONS_FOR_GENERATION = [\n Blockquote,\n BulletList,\n Document,\n HardBreak,\n Heading,\n HorizontalRule,\n ListItem,\n OrderedList,\n Paragraph,\n Text,\n Bold,\n Italic,\n Link,\n Strike,\n Underline,\n Dropcursor,\n Gapcursor,\n UndoRedo,\n ListKeymap,\n TrailingNode,\n];\n\n/**\n * Convert text to editor content\n */\nexport function convertHTMLToEditorContent(html: string): EditorJSONContent {\n return generateJSON(html, EXTENSIONS_FOR_GENERATION);\n}\n\n/**\n * Convert editor content to text\n */\nexport function convertEditorContentToHTML(content: EditorJSONContent): string {\n return generateHTML(content, EXTENSIONS_FOR_GENERATION);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAiBA,MAAM,4BAA4B;CAChC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;;;;AAKD,SAAgB,2BAA2B,MAAiC;AAC1E,QAAO,aAAa,MAAM,0BAA0B;;;;;AAMtD,SAAgB,2BAA2B,SAAoC;AAC7E,QAAO,aAAa,SAAS,0BAA0B"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime59 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/header/back-button.client.d.ts
|
|
4
4
|
declare function HeaderTopbarBackButton({
|
|
5
5
|
className,
|
|
6
6
|
...props
|
|
7
|
-
}: React.HtmlHTMLAttributes<HTMLButtonElement>):
|
|
7
|
+
}: React.HtmlHTMLAttributes<HTMLButtonElement>): react_jsx_runtime59.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { HeaderTopbarBackButton };
|
|
10
10
|
//# sourceMappingURL=back-button.client.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"back-button.client.d.mts","names":[],"sources":["../../../src/components/header/back-button.client.tsx"],"sourcesContent":[],"mappings":";;;iBAagB,sBAAA;;;GAGb,KAAA,CAAM,mBAAmB,qBAAkB,
|
|
1
|
+
{"version":3,"file":"back-button.client.d.mts","names":[],"sources":["../../../src/components/header/back-button.client.tsx"],"sourcesContent":[],"mappings":";;;iBAagB,sBAAA;;;GAGb,KAAA,CAAM,mBAAmB,qBAAkB,mBAAA,CAAA,GAAA,CAAA"}
|