@yimingliao/cms 0.0.142 → 0.0.143
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/ckeditor-editor.css +172 -0
- package/dist/export/client/index.js +3 -0
- package/dist/src/client/interfaces/components/resources/file/file-card.js +87 -0
- package/dist/src/client/interfaces/components/resources/file/file-list.js +159 -0
- package/dist/src/client/interfaces/components/resources/file/is-locked-buttons.js +71 -0
- package/dist/src/client/interfaces/components/resources/file/type-buttons.js +62 -0
- package/dist/src/client/interfaces/components/ui/blocks/list-cards-container/list-cards-container.js +11 -0
- package/dist/src/client/interfaces/components/ui/blocks/list-cards-container/page-size-selector.js +12 -1
- package/dist/src/client/interfaces/components/ui/cards/action-buttons-card.js +2 -2
- package/dist/src/client/interfaces/components/ui/form/control-fields/control-fields-display.js +0 -17
- package/dist/src/client/interfaces/components/ui/form/control-fields/control-fields-input.js +0 -17
- package/dist/src/client/interfaces/components/ui/form/index-field.js +0 -14
- package/dist/src/client/interfaces/components/ui/form/slug-field.js +1 -15
- package/dist/src/client/interfaces/components/ui/inputs/editor/base/base-editor.js +143 -0
- package/dist/src/client/interfaces/components/ui/inputs/editor/base/built-in-plugins.js +71 -0
- package/dist/src/client/interfaces/components/ui/inputs/editor/base/configs/heading.config.js +41 -0
- package/dist/src/client/interfaces/components/ui/inputs/editor/base/configs/image.config.js +32 -0
- package/dist/src/client/interfaces/components/ui/inputs/editor/base/configs/table.config.js +15 -0
- package/dist/src/client/interfaces/components/ui/inputs/editor/editor.js +112 -0
- package/dist/src/client/interfaces/components/ui/inputs/editor/plugins/asset-manager/asset-manager.js +24 -0
- package/dist/src/client/interfaces/components/ui/inputs/editor/plugins/asset-manager/use-control-asset-mamager.js +26 -0
- package/dist/src/client/interfaces/components/ui/inputs/editor/plugins/word-count-display/icons.js +17 -0
- package/dist/src/client/interfaces/components/ui/inputs/editor/plugins/word-count-display/word-count-display.js +81 -0
- package/dist/src/client/interfaces/components/ui/inputs/editor/use-init-editor/use-init-editor.js +50 -0
- package/dist/src/client/interfaces/pages/auth/change-password/page.js +5 -2
- package/dist/src/client/interfaces/pages/auth/email-unverified/page.js +3 -0
- package/dist/src/client/interfaces/pages/auth/forgot-password/page.js +5 -2
- package/dist/src/client/interfaces/pages/auth/layout.js +3 -0
- package/dist/src/client/interfaces/pages/auth/reset-password/page.js +5 -2
- package/dist/src/client/interfaces/pages/auth/sign-in/page.js +5 -2
- package/dist/src/client/interfaces/pages/dashboard/layout.js +3 -0
- package/dist/src/shared/list-items.js +3 -0
- package/dist/src/shared/utils/debounce.js +14 -0
- package/dist/types/export/client/index.d.ts +1 -1
- package/dist/types/export/client/index.d.ts.map +1 -1
- package/dist/types/src/client/index.d.ts +1 -1
- package/dist/types/src/client/index.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/index.d.ts +2 -1
- package/dist/types/src/client/interfaces/components/index.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/resources/file/file-card.d.ts +16 -0
- package/dist/types/src/client/interfaces/components/resources/file/file-card.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/file/file-list.d.ts +23 -0
- package/dist/types/src/client/interfaces/components/resources/file/file-list.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/file/index.d.ts +3 -0
- package/dist/types/src/client/interfaces/components/resources/file/index.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/file/is-locked-buttons.d.ts +8 -0
- package/dist/types/src/client/interfaces/components/resources/file/is-locked-buttons.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/file/type-buttons.d.ts +9 -0
- package/dist/types/src/client/interfaces/components/resources/file/type-buttons.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/resources/index.d.ts +2 -0
- package/dist/types/src/client/interfaces/components/resources/index.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/ui/cards/resource-card/resource-card.d.ts +1 -1
- package/dist/types/src/client/interfaces/components/ui/cards/resource-card/resource-card.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/ui/form/index-field.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/ui/form/slug-field.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/ui/index.d.ts +1 -1
- package/dist/types/src/client/interfaces/components/ui/index.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/base/base-editor.d.ts +7 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/base/base-editor.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/base/built-in-plugins.d.ts +26 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/base/built-in-plugins.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/base/configs/heading.config.d.ts +34 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/base/configs/heading.config.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/base/configs/image.config.d.ts +16 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/base/configs/image.config.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/base/configs/index.d.ts +4 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/base/configs/index.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/base/configs/table.config.d.ts +4 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/base/configs/table.config.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/base/index.d.ts +2 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/base/index.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/editor.d.ts +26 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/editor.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/index.d.ts +2 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/index.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/plugins/asset-manager/asset-manager.d.ts +8 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/plugins/asset-manager/asset-manager.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/plugins/asset-manager/index.d.ts +3 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/plugins/asset-manager/index.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/plugins/asset-manager/use-control-asset-mamager.d.ts +14 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/plugins/asset-manager/use-control-asset-mamager.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/plugins/file-repository/index.d.ts +2 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/plugins/file-repository/index.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/plugins/file-repository/upload-adapter.d.ts +28 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/plugins/file-repository/upload-adapter.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/plugins/word-count-display/icons.d.ts +4 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/plugins/word-count-display/icons.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/plugins/word-count-display/index.d.ts +2 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/plugins/word-count-display/index.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/plugins/word-count-display/word-count-display.d.ts +11 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/plugins/word-count-display/word-count-display.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/use-init-editor/index.d.ts +3 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/use-init-editor/index.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/use-init-editor/types.d.ts +14 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/use-init-editor/types.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/use-init-editor/use-init-editor.d.ts +4 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/editor/use-init-editor/use-init-editor.d.ts.map +1 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/index.d.ts +1 -0
- package/dist/types/src/client/interfaces/components/ui/inputs/index.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/index.d.ts +1 -1
- package/dist/types/src/client/interfaces/index.d.ts.map +1 -1
- package/dist/types/src/shared/index.d.ts +1 -1
- package/dist/types/src/shared/index.d.ts.map +1 -1
- package/dist/types/src/shared/utils/debounce.d.ts +7 -0
- package/dist/types/src/shared/utils/debounce.d.ts.map +1 -0
- package/dist/types/src/shared/utils/index.d.ts +1 -0
- package/dist/types/src/shared/utils/index.d.ts.map +1 -1
- package/package.json +8 -2
package/dist/src/client/interfaces/components/ui/inputs/editor/use-init-editor/use-init-editor.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { FileRepository } from 'ckeditor5';
|
|
2
|
+
import { useRef, useEffect } from 'react';
|
|
3
|
+
import 'mime-types';
|
|
4
|
+
import { debounce } from '../../../../../../../shared/utils/debounce.js';
|
|
5
|
+
import { BaseEditor } from '../base/base-editor.js';
|
|
6
|
+
import { OPEN_ASSET_MANAGER_KEY } from '../plugins/asset-manager/asset-manager.js';
|
|
7
|
+
import 'intor/react';
|
|
8
|
+
|
|
9
|
+
const DOCUMENT_EVENTS = {
|
|
10
|
+
CHANGE: "change"};
|
|
11
|
+
const useInitEditor = ({
|
|
12
|
+
enabled = true,
|
|
13
|
+
containerRef,
|
|
14
|
+
locale,
|
|
15
|
+
value,
|
|
16
|
+
onEditorChange,
|
|
17
|
+
createUploadAdapter,
|
|
18
|
+
openAssetManager
|
|
19
|
+
}) => {
|
|
20
|
+
const editorRef = useRef(null);
|
|
21
|
+
useEffect(() => {
|
|
22
|
+
if (!enabled || !containerRef.current) return;
|
|
23
|
+
BaseEditor.create(containerRef.current, {
|
|
24
|
+
...BaseEditor.defaultConfig,
|
|
25
|
+
language: locale,
|
|
26
|
+
initialData: value
|
|
27
|
+
}).then((editor) => {
|
|
28
|
+
editorRef.current = editor;
|
|
29
|
+
const debouncedChange = debounce(
|
|
30
|
+
() => onEditorChange?.(editor.getData())
|
|
31
|
+
);
|
|
32
|
+
editor.model.document.on(DOCUMENT_EVENTS.CHANGE, debouncedChange);
|
|
33
|
+
editor.plugins.get(FileRepository.pluginName).createUploadAdapter = createUploadAdapter;
|
|
34
|
+
editor.config.set(OPEN_ASSET_MANAGER_KEY, openAssetManager);
|
|
35
|
+
return () => {
|
|
36
|
+
editor.model.document.off(DOCUMENT_EVENTS.CHANGE, debouncedChange);
|
|
37
|
+
debouncedChange.clear();
|
|
38
|
+
};
|
|
39
|
+
}).catch((error) => {
|
|
40
|
+
console.error("CKEditor init error:", error);
|
|
41
|
+
});
|
|
42
|
+
return () => {
|
|
43
|
+
void editorRef.current?.destroy();
|
|
44
|
+
editorRef.current = null;
|
|
45
|
+
};
|
|
46
|
+
}, [enabled, containerRef]);
|
|
47
|
+
return editorRef;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export { useInitEditor };
|
|
@@ -23,12 +23,15 @@ import '@radix-ui/react-separator';
|
|
|
23
23
|
import '../../../components/shadcn/sidebar.js';
|
|
24
24
|
import '@radix-ui/react-tooltip';
|
|
25
25
|
import { Button } from '../../../components/ui/buttons/button.js';
|
|
26
|
-
import
|
|
26
|
+
import 'mime-types';
|
|
27
27
|
import { Form } from '../../../components/ui/form/form.js';
|
|
28
28
|
import { Field } from '../../../components/ui/form/field.js';
|
|
29
|
-
import 'mime-types';
|
|
30
29
|
import '../../../../../domain/resources/admin/constants.js';
|
|
31
30
|
import 'next/image';
|
|
31
|
+
import 'ckeditor5';
|
|
32
|
+
import 'ckeditor5/translations/en.js';
|
|
33
|
+
import 'ckeditor5/translations/zh.js';
|
|
34
|
+
import { PasswordInput } from '../../../components/ui/inputs/password-input.js';
|
|
32
35
|
import '../../../../infrastructure/contexts/admin.js';
|
|
33
36
|
import 'next-themes';
|
|
34
37
|
import '@tanstack/react-query';
|
|
@@ -33,6 +33,9 @@ import 'next/link';
|
|
|
33
33
|
import { Form } from '../../../components/ui/form/form.js';
|
|
34
34
|
import '../../../../../domain/resources/admin/constants.js';
|
|
35
35
|
import 'next/image';
|
|
36
|
+
import 'ckeditor5';
|
|
37
|
+
import 'ckeditor5/translations/en.js';
|
|
38
|
+
import 'ckeditor5/translations/zh.js';
|
|
36
39
|
import 'intor/next';
|
|
37
40
|
|
|
38
41
|
function createEmailUnverifiedPage({
|
|
@@ -24,12 +24,15 @@ import '@radix-ui/react-separator';
|
|
|
24
24
|
import '../../../components/shadcn/sidebar.js';
|
|
25
25
|
import '@radix-ui/react-tooltip';
|
|
26
26
|
import { Button } from '../../../components/ui/buttons/button.js';
|
|
27
|
-
import
|
|
27
|
+
import 'mime-types';
|
|
28
28
|
import { Form } from '../../../components/ui/form/form.js';
|
|
29
29
|
import { Field } from '../../../components/ui/form/field.js';
|
|
30
|
-
import '
|
|
30
|
+
import { Input } from '../../../components/ui/inputs/input.js';
|
|
31
31
|
import '../../../../../domain/resources/admin/constants.js';
|
|
32
32
|
import 'next/image';
|
|
33
|
+
import 'ckeditor5';
|
|
34
|
+
import 'ckeditor5/translations/en.js';
|
|
35
|
+
import 'ckeditor5/translations/zh.js';
|
|
33
36
|
import '../../../../infrastructure/contexts/admin.js';
|
|
34
37
|
import 'next-themes';
|
|
35
38
|
import '@tanstack/react-query';
|
|
@@ -29,6 +29,9 @@ import '@radix-ui/react-tooltip';
|
|
|
29
29
|
import 'next/link';
|
|
30
30
|
import '../../../../domain/resources/admin/constants.js';
|
|
31
31
|
import 'next/image';
|
|
32
|
+
import 'ckeditor5';
|
|
33
|
+
import 'ckeditor5/translations/en.js';
|
|
34
|
+
import 'ckeditor5/translations/zh.js';
|
|
32
35
|
import { AuthSkeleton } from '../../components/ui/layouts/auth-skeleton.js';
|
|
33
36
|
import 'intor/next';
|
|
34
37
|
|
|
@@ -23,12 +23,15 @@ import '@radix-ui/react-separator';
|
|
|
23
23
|
import '../../../components/shadcn/sidebar.js';
|
|
24
24
|
import '@radix-ui/react-tooltip';
|
|
25
25
|
import { Button } from '../../../components/ui/buttons/button.js';
|
|
26
|
-
import
|
|
26
|
+
import 'mime-types';
|
|
27
27
|
import { Form } from '../../../components/ui/form/form.js';
|
|
28
28
|
import { Field } from '../../../components/ui/form/field.js';
|
|
29
|
-
import 'mime-types';
|
|
30
29
|
import '../../../../../domain/resources/admin/constants.js';
|
|
31
30
|
import 'next/image';
|
|
31
|
+
import 'ckeditor5';
|
|
32
|
+
import 'ckeditor5/translations/en.js';
|
|
33
|
+
import 'ckeditor5/translations/zh.js';
|
|
34
|
+
import { PasswordInput } from '../../../components/ui/inputs/password-input.js';
|
|
32
35
|
import '../../../../infrastructure/contexts/admin.js';
|
|
33
36
|
import 'next-themes';
|
|
34
37
|
import '@tanstack/react-query';
|
|
@@ -28,12 +28,15 @@ import '@radix-ui/react-separator';
|
|
|
28
28
|
import '../../../components/shadcn/sidebar.js';
|
|
29
29
|
import '@radix-ui/react-tooltip';
|
|
30
30
|
import { Button } from '../../../components/ui/buttons/button.js';
|
|
31
|
-
import { Input } from '../../../components/ui/inputs/input.js';
|
|
32
|
-
import { PasswordInput } from '../../../components/ui/inputs/password-input.js';
|
|
33
31
|
import { Form } from '../../../components/ui/form/form.js';
|
|
34
32
|
import { Field } from '../../../components/ui/form/field.js';
|
|
33
|
+
import { Input } from '../../../components/ui/inputs/input.js';
|
|
35
34
|
import '../../../../../domain/resources/admin/constants.js';
|
|
36
35
|
import 'next/image';
|
|
36
|
+
import 'ckeditor5';
|
|
37
|
+
import 'ckeditor5/translations/en.js';
|
|
38
|
+
import 'ckeditor5/translations/zh.js';
|
|
39
|
+
import { PasswordInput } from '../../../components/ui/inputs/password-input.js';
|
|
37
40
|
import 'intor/next';
|
|
38
41
|
|
|
39
42
|
function createSignInPage({
|
|
@@ -30,6 +30,9 @@ import '@radix-ui/react-tooltip';
|
|
|
30
30
|
import 'next/link';
|
|
31
31
|
import '../../../../domain/resources/admin/constants.js';
|
|
32
32
|
import 'next/image';
|
|
33
|
+
import 'ckeditor5';
|
|
34
|
+
import 'ckeditor5/translations/en.js';
|
|
35
|
+
import 'ckeditor5/translations/zh.js';
|
|
33
36
|
import { DashboardSkeleton } from '../../components/ui/layouts/dashboard-skeleton.js';
|
|
34
37
|
import 'intor/next';
|
|
35
38
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const debounce = (fn, delay = 100) => {
|
|
2
|
+
let timer;
|
|
3
|
+
const debouncedFn = (...args) => {
|
|
4
|
+
if (timer) clearTimeout(timer);
|
|
5
|
+
timer = setTimeout(() => fn(...args), delay);
|
|
6
|
+
};
|
|
7
|
+
debouncedFn.clear = () => {
|
|
8
|
+
if (timer) clearTimeout(timer);
|
|
9
|
+
timer = void 0;
|
|
10
|
+
};
|
|
11
|
+
return debouncedFn;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { debounce };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { AdminProvider, useAdmin, ThemeProvider, createSmartFetch, createRequestInterceptor, createResponseInterceptor, createFileUploadApi, createMultiFilesUploadApi, createUseCommand, createUseQuery, handleToast, type ShowToastOption, createAdminInitializer, PageHeader, ListCardsContainer, Button, type ButtonProps, ReturnButton, ActionButtonsCard, ResourceCard, ArrayList, Badge, HtmlDisplay, ObjectArrayList, Accordion, AccordionContainer, ExpandableList, createFileInfo, createFilePicker, createFilePreview, createFilePreviewList, createUploader, ExternalLink, PickModal, createSmartImage, Tick, Form, Field, FieldBody, FieldsContainer, MainFields, SideFields, IndexField, SlugField, ControlFields, type ControlMeta, ArrayInput, Checkbox, Input, type InputProps, PasswordInput, SearchInput, Select, Option, Textarea, ContentContainer, DashboardSkeleton, AuthSkeleton, type NavItem, NavMain, SidebarProvider, Sidebar, SidebarInset, SidebarContent, useSidebar, createNavbar, createI18nSelector, createSignOutButton, createSignInPage, createVerifyEmailPage, createEmailUnverifiedPage, createForgotPasswordPage, createResetPasswordPage, createChangePasswordPage, createAuthLayout, createDashboardLayout, NAVBAR_HEIGHT, SIDEBAR_WIDTH, PAGE_HEADER_HEIGHT, cn, useDeviceInfo, getControlMeta, usePickItems, isConfirm, } from "../../src/client";
|
|
1
|
+
export { AdminProvider, useAdmin, ThemeProvider, createSmartFetch, createRequestInterceptor, createResponseInterceptor, createFileUploadApi, createMultiFilesUploadApi, createUseCommand, createUseQuery, handleToast, type ShowToastOption, createAdminInitializer, PageHeader, ListCardsContainer, Button, type ButtonProps, ReturnButton, ActionButtonsCard, ResourceCard, ArrayList, Badge, HtmlDisplay, ObjectArrayList, Accordion, AccordionContainer, ExpandableList, createFileInfo, createFilePicker, createFilePreview, createFilePreviewList, createUploader, ExternalLink, PickModal, createSmartImage, Tick, Form, Field, FieldBody, FieldsContainer, MainFields, SideFields, IndexField, SlugField, ControlFields, type ControlMeta, createEditor, ArrayInput, Checkbox, Input, type InputProps, PasswordInput, SearchInput, Select, Option, Textarea, ContentContainer, DashboardSkeleton, AuthSkeleton, type NavItem, NavMain, SidebarProvider, Sidebar, SidebarInset, SidebarContent, useSidebar, createNavbar, createI18nSelector, createSignOutButton, createFileCard, createFileList, createSignInPage, createVerifyEmailPage, createEmailUnverifiedPage, createForgotPasswordPage, createResetPasswordPage, createChangePasswordPage, createAuthLayout, createDashboardLayout, NAVBAR_HEIGHT, SIDEBAR_WIDTH, PAGE_HEADER_HEIGHT, cn, useDeviceInfo, getControlMeta, usePickItems, isConfirm, } from "../../src/client";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../export/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,aAAa,EACb,QAAQ,EACR,aAAa,EAEb,gBAAgB,EAChB,wBAAwB,EACxB,yBAAyB,EAEzB,mBAAmB,EACnB,yBAAyB,EAEzB,gBAAgB,EAChB,cAAc,EAEd,WAAW,EACX,KAAK,eAAe,EAMpB,sBAAsB,EAEtB,UAAU,EACV,kBAAkB,EAElB,MAAM,EACN,KAAK,WAAW,EAChB,YAAY,EAEZ,iBAAiB,EACjB,YAAY,EAEZ,SAAS,EACT,KAAK,EACL,WAAW,EACX,eAAe,EAEf,SAAS,EACT,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,IAAI,EAEJ,IAAI,EACJ,KAAK,EACL,SAAS,EACT,eAAe,EACf,UAAU,EACV,UAAU,EACV,UAAU,EACV,SAAS,EACT,aAAa,EACb,KAAK,WAAW,EAEhB,UAAU,EACV,QAAQ,EACR,KAAK,EACL,KAAK,UAAU,EACf,aAAa,EACb,WAAW,EACX,MAAM,EACN,MAAM,EACN,QAAQ,EAER,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,KAAK,OAAO,EACZ,OAAO,EACP,eAAe,EACf,OAAO,EACP,YAAY,EACZ,cAAc,EACd,UAAU,EACV,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EAEnB,gBAAgB,EAChB,qBAAqB,EACrB,yBAAyB,EACzB,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,gBAAgB,EAChB,qBAAqB,EAErB,aAAa,EACb,aAAa,EACb,kBAAkB,EAKlB,EAAE,EACF,aAAa,EACb,cAAc,EACd,YAAY,EACZ,SAAS,GACV,MAAM,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../export/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,aAAa,EACb,QAAQ,EACR,aAAa,EAEb,gBAAgB,EAChB,wBAAwB,EACxB,yBAAyB,EAEzB,mBAAmB,EACnB,yBAAyB,EAEzB,gBAAgB,EAChB,cAAc,EAEd,WAAW,EACX,KAAK,eAAe,EAMpB,sBAAsB,EAEtB,UAAU,EACV,kBAAkB,EAElB,MAAM,EACN,KAAK,WAAW,EAChB,YAAY,EAEZ,iBAAiB,EACjB,YAAY,EAEZ,SAAS,EACT,KAAK,EACL,WAAW,EACX,eAAe,EAEf,SAAS,EACT,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,IAAI,EAEJ,IAAI,EACJ,KAAK,EACL,SAAS,EACT,eAAe,EACf,UAAU,EACV,UAAU,EACV,UAAU,EACV,SAAS,EACT,aAAa,EACb,KAAK,WAAW,EAEhB,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,KAAK,EACL,KAAK,UAAU,EACf,aAAa,EACb,WAAW,EACX,MAAM,EACN,MAAM,EACN,QAAQ,EAER,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,KAAK,OAAO,EACZ,OAAO,EACP,eAAe,EACf,OAAO,EACP,YAAY,EACZ,cAAc,EACd,UAAU,EACV,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EAEnB,cAAc,EACd,cAAc,EAEd,gBAAgB,EAChB,qBAAqB,EACrB,yBAAyB,EACzB,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,gBAAgB,EAChB,qBAAqB,EAErB,aAAa,EACb,aAAa,EACb,kBAAkB,EAKlB,EAAE,EACF,aAAa,EACb,cAAc,EACd,YAAY,EACZ,SAAS,GACV,MAAM,kBAAkB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { AdminProvider, useAdmin, ThemeProvider, createSmartFetch, createRequestInterceptor, createResponseInterceptor, createFileUploadApi, createMultiFilesUploadApi, createUseCommand, createUseQuery, handleToast, type ShowToastOption, } from "./infrastructure";
|
|
2
|
-
export { createAdminInitializer, PageHeader, ListCardsContainer, Button, type ButtonProps, ReturnButton, ActionButtonsCard, ResourceCard, ArrayList, Badge, HtmlDisplay, ObjectArrayList, Accordion, AccordionContainer, ExpandableList, createFileInfo, createFilePicker, createFilePreview, createFilePreviewList, createUploader, ExternalLink, PickModal, createSmartImage, Tick, Form, Field, FieldBody, FieldsContainer, MainFields, SideFields, IndexField, SlugField, ControlFields, type ControlMeta, ArrayInput, Checkbox, Input, type InputProps, PasswordInput, SearchInput, Select, Option, Textarea, ContentContainer, DashboardSkeleton, AuthSkeleton, type NavItem, NavMain, SidebarProvider, Sidebar, SidebarInset, SidebarContent, useSidebar, createNavbar, createI18nSelector, createSignOutButton, createSignInPage, createVerifyEmailPage, createEmailUnverifiedPage, createForgotPasswordPage, createResetPasswordPage, createChangePasswordPage, createAuthLayout, createDashboardLayout, NAVBAR_HEIGHT, SIDEBAR_WIDTH, PAGE_HEADER_HEIGHT, } from "./interfaces";
|
|
2
|
+
export { createAdminInitializer, PageHeader, ListCardsContainer, Button, type ButtonProps, ReturnButton, ActionButtonsCard, ResourceCard, ArrayList, Badge, HtmlDisplay, ObjectArrayList, Accordion, AccordionContainer, ExpandableList, createFileInfo, createFilePicker, createFilePreview, createFilePreviewList, createUploader, ExternalLink, PickModal, createSmartImage, Tick, Form, Field, FieldBody, FieldsContainer, MainFields, SideFields, IndexField, SlugField, ControlFields, type ControlMeta, createEditor, ArrayInput, Checkbox, Input, type InputProps, PasswordInput, SearchInput, Select, Option, Textarea, ContentContainer, DashboardSkeleton, AuthSkeleton, type NavItem, NavMain, SidebarProvider, Sidebar, SidebarInset, SidebarContent, useSidebar, createNavbar, createI18nSelector, createSignOutButton, createFileCard, createFileList, createSignInPage, createVerifyEmailPage, createEmailUnverifiedPage, createForgotPasswordPage, createResetPasswordPage, createChangePasswordPage, createAuthLayout, createDashboardLayout, NAVBAR_HEIGHT, SIDEBAR_WIDTH, PAGE_HEADER_HEIGHT, } from "./interfaces";
|
|
3
3
|
export { cn, useDeviceInfo, getControlMeta, usePickItems, isConfirm, } from "./applications";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/client/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,aAAa,EACb,QAAQ,EACR,aAAa,EAEb,gBAAgB,EAChB,wBAAwB,EACxB,yBAAyB,EAEzB,mBAAmB,EACnB,yBAAyB,EAEzB,gBAAgB,EAChB,cAAc,EAEd,WAAW,EACX,KAAK,eAAe,GACrB,MAAM,kBAAkB,CAAC;AAK1B,OAAO,EAEL,sBAAsB,EAEtB,UAAU,EACV,kBAAkB,EAElB,MAAM,EACN,KAAK,WAAW,EAChB,YAAY,EAEZ,iBAAiB,EACjB,YAAY,EAEZ,SAAS,EACT,KAAK,EACL,WAAW,EACX,eAAe,EAEf,SAAS,EACT,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,IAAI,EAEJ,IAAI,EACJ,KAAK,EACL,SAAS,EACT,eAAe,EACf,UAAU,EACV,UAAU,EACV,UAAU,EACV,SAAS,EACT,aAAa,EACb,KAAK,WAAW,EAEhB,UAAU,EACV,QAAQ,EACR,KAAK,EACL,KAAK,UAAU,EACf,aAAa,EACb,WAAW,EACX,MAAM,EACN,MAAM,EACN,QAAQ,EAER,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,KAAK,OAAO,EACZ,OAAO,EACP,eAAe,EACf,OAAO,EACP,YAAY,EACZ,cAAc,EACd,UAAU,EACV,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/client/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,aAAa,EACb,QAAQ,EACR,aAAa,EAEb,gBAAgB,EAChB,wBAAwB,EACxB,yBAAyB,EAEzB,mBAAmB,EACnB,yBAAyB,EAEzB,gBAAgB,EAChB,cAAc,EAEd,WAAW,EACX,KAAK,eAAe,GACrB,MAAM,kBAAkB,CAAC;AAK1B,OAAO,EAEL,sBAAsB,EAEtB,UAAU,EACV,kBAAkB,EAElB,MAAM,EACN,KAAK,WAAW,EAChB,YAAY,EAEZ,iBAAiB,EACjB,YAAY,EAEZ,SAAS,EACT,KAAK,EACL,WAAW,EACX,eAAe,EAEf,SAAS,EACT,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,IAAI,EAEJ,IAAI,EACJ,KAAK,EACL,SAAS,EACT,eAAe,EACf,UAAU,EACV,UAAU,EACV,UAAU,EACV,SAAS,EACT,aAAa,EACb,KAAK,WAAW,EAEhB,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,KAAK,EACL,KAAK,UAAU,EACf,aAAa,EACb,WAAW,EACX,MAAM,EACN,MAAM,EACN,QAAQ,EAER,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,KAAK,OAAO,EACZ,OAAO,EACP,eAAe,EACf,OAAO,EACP,YAAY,EACZ,cAAc,EACd,UAAU,EACV,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EAEnB,cAAc,EACd,cAAc,EAGd,gBAAgB,EAChB,qBAAqB,EACrB,yBAAyB,EACzB,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,gBAAgB,EAChB,qBAAqB,EAGrB,aAAa,EACb,aAAa,EACb,kBAAkB,GACnB,MAAM,cAAc,CAAC;AAKtB,OAAO,EACL,EAAE,EACF,aAAa,EACb,cAAc,EACd,YAAY,EACZ,SAAS,GACV,MAAM,gBAAgB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { createAdminInitializer } from "./admin-initializer";
|
|
2
|
-
export { PageHeader, ListCardsContainer, Button, type ButtonProps, ReturnButton, ActionButtonsCard, ResourceCard, ArrayList, Badge, HtmlDisplay, ObjectArrayList, Accordion, AccordionContainer, ExpandableList, createFileInfo, createFilePicker, createFilePreview, createFilePreviewList, createUploader, ExternalLink, PickModal, createSmartImage, Tick, Form, Field, FieldBody, FieldsContainer, MainFields, SideFields, IndexField, SlugField, ControlFields, type ControlMeta, ArrayInput, Checkbox, Input, type InputProps, PasswordInput, SearchInput, Select, Option, Textarea, ContentContainer, DashboardSkeleton, AuthSkeleton, type NavItem, NavMain, SidebarProvider, Sidebar, SidebarInset, SidebarContent, useSidebar, createNavbar, createI18nSelector, createSignOutButton, } from "./ui";
|
|
2
|
+
export { PageHeader, ListCardsContainer, Button, type ButtonProps, ReturnButton, ActionButtonsCard, ResourceCard, ArrayList, Badge, HtmlDisplay, ObjectArrayList, Accordion, AccordionContainer, ExpandableList, createFileInfo, createFilePicker, createFilePreview, createFilePreviewList, createUploader, ExternalLink, PickModal, createSmartImage, Tick, Form, Field, FieldBody, FieldsContainer, MainFields, SideFields, IndexField, SlugField, ControlFields, type ControlMeta, createEditor, ArrayInput, Checkbox, Input, type InputProps, PasswordInput, SearchInput, Select, Option, Textarea, ContentContainer, DashboardSkeleton, AuthSkeleton, type NavItem, NavMain, SidebarProvider, Sidebar, SidebarInset, SidebarContent, useSidebar, createNavbar, createI18nSelector, createSignOutButton, } from "./ui";
|
|
3
|
+
export { createFileCard, createFileList } from "./resources";
|
|
3
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/client/interfaces/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,OAAO,EAEL,UAAU,EACV,kBAAkB,EAElB,MAAM,EACN,KAAK,WAAW,EAChB,YAAY,EAEZ,iBAAiB,EACjB,YAAY,EAEZ,SAAS,EACT,KAAK,EACL,WAAW,EACX,eAAe,EAEf,SAAS,EACT,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,IAAI,EAEJ,IAAI,EACJ,KAAK,EACL,SAAS,EACT,eAAe,EACf,UAAU,EACV,UAAU,EACV,UAAU,EACV,SAAS,EACT,aAAa,EACb,KAAK,WAAW,EAEhB,UAAU,EACV,QAAQ,EACR,KAAK,EACL,KAAK,UAAU,EACf,aAAa,EACb,WAAW,EACX,MAAM,EACN,MAAM,EACN,QAAQ,EAER,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,KAAK,OAAO,EACZ,OAAO,EACP,eAAe,EACf,OAAO,EACP,YAAY,EACZ,cAAc,EACd,UAAU,EACV,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,MAAM,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/client/interfaces/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,OAAO,EAEL,UAAU,EACV,kBAAkB,EAElB,MAAM,EACN,KAAK,WAAW,EAChB,YAAY,EAEZ,iBAAiB,EACjB,YAAY,EAEZ,SAAS,EACT,KAAK,EACL,WAAW,EACX,eAAe,EAEf,SAAS,EACT,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,IAAI,EAEJ,IAAI,EACJ,KAAK,EACL,SAAS,EACT,eAAe,EACf,UAAU,EACV,UAAU,EACV,UAAU,EACV,SAAS,EACT,aAAa,EACb,KAAK,WAAW,EAEhB,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,KAAK,EACL,KAAK,UAAU,EACf,aAAa,EACb,WAAW,EACX,MAAM,EACN,MAAM,EACN,QAAQ,EAER,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,KAAK,OAAO,EACZ,OAAO,EACP,eAAe,EACf,OAAO,EACP,YAAY,EACZ,cAAc,EACd,UAAU,EACV,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,MAAM,CAAC;AAEd,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { FileFull } from "../../../../../domain/resources/file/full";
|
|
2
|
+
import type { createSmartImage } from "../../ui";
|
|
3
|
+
import type { ComponentProps } from "react";
|
|
4
|
+
import { type FileCard } from "../../../../../domain";
|
|
5
|
+
interface FileCardProps {
|
|
6
|
+
file: FileFull | FileCard | null;
|
|
7
|
+
openNewTab?: boolean;
|
|
8
|
+
anchorProps?: ComponentProps<"a"> | undefined;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function createFileCard({ SmartImage, storageUrl, }: {
|
|
12
|
+
SmartImage: ReturnType<typeof createSmartImage>;
|
|
13
|
+
storageUrl: string;
|
|
14
|
+
}): ({ file, openNewTab, anchorProps, className, }: FileCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=file-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-card.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/file/file-card.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,OAAO,EAAgB,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAKpE,UAAU,aAAa;IACrB,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,IAAI,CAAC;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,cAAc,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAKD,wBAAgB,cAAc,CAAC,EAC7B,UAAU,EACV,UAAU,GACX,EAAE;IACD,UAAU,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;IAChD,UAAU,EAAE,MAAM,CAAC;CACpB,IAC0B,+CAOtB,aAAa,6CAyCjB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { createFileCard } from "./file-card";
|
|
2
|
+
import type { MultiItems, SingleItem } from "../../../../../domain";
|
|
3
|
+
import type { FileFull } from "../../../../../domain/resources/file/full";
|
|
4
|
+
import type { createFileFindListCardsAction } from "../../../../../server";
|
|
5
|
+
import type { createUseQuery } from "../../../../infrastructure";
|
|
6
|
+
import type { Dispatch, SetStateAction } from "react";
|
|
7
|
+
import { type ListItemsState } from "../../../../../shared";
|
|
8
|
+
interface FileListProps {
|
|
9
|
+
setItemStates?: Dispatch<SetStateAction<ListItemsState<FileFull>>>;
|
|
10
|
+
folderId?: string;
|
|
11
|
+
isDeleted?: boolean;
|
|
12
|
+
fileIds?: string[];
|
|
13
|
+
openNewTab?: boolean;
|
|
14
|
+
pickedItems?: MultiItems;
|
|
15
|
+
handleClick?: (file: SingleItem) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare function createFileList({ useQuery, fileFindListCardsAction, FileCard, }: {
|
|
18
|
+
useQuery: ReturnType<typeof createUseQuery>;
|
|
19
|
+
fileFindListCardsAction: ReturnType<typeof createFileFindListCardsAction>;
|
|
20
|
+
FileCard: ReturnType<typeof createFileCard>;
|
|
21
|
+
}): ({ setItemStates, folderId, isDeleted, fileIds, openNewTab, pickedItems, handleClick, }: FileListProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=file-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-list.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/file/file-list.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAY,UAAU,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAGtD,OAAO,EAIL,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AAO/B,UAAU,aAAa;IACrB,aAAa,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IACnE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;CAC1C;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,uBAAuB,EACvB,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;IAC5C,uBAAuB,EAAE,UAAU,CAAC,OAAO,6BAA6B,CAAC,CAAC;IAC1E,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;CAC7C,IAC0B,wFAWtB,aAAa,6CAgHjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/file/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Dispatch, SetStateAction } from "react";
|
|
2
|
+
interface IsLockedButtonsProps {
|
|
3
|
+
isLocked: boolean | null;
|
|
4
|
+
setIsLocked: Dispatch<SetStateAction<boolean | null>>;
|
|
5
|
+
}
|
|
6
|
+
export declare function IsLockedButtons({ isLocked, setIsLocked, }: IsLockedButtonsProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=is-locked-buttons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-locked-buttons.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/file/is-locked-buttons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAKtD,UAAU,oBAAoB;IAC5B,QAAQ,EAAE,OAAO,GAAG,IAAI,CAAC;IACzB,WAAW,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC;CACvD;AAED,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,WAAW,GACZ,EAAE,oBAAoB,2CA2BtB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Dispatch, SetStateAction } from "react";
|
|
2
|
+
import { type FileType } from "../../../../../domain";
|
|
3
|
+
interface TypeButtonsProps {
|
|
4
|
+
type: FileType | null;
|
|
5
|
+
setType: Dispatch<SetStateAction<FileType | null>>;
|
|
6
|
+
}
|
|
7
|
+
export declare function TypeButtons({ type, setType }: TypeButtonsProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=type-buttons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-buttons.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/file/type-buttons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAIlE,UAAU,gBAAgB;IACxB,IAAI,EAAE,QAAQ,GAAG,IAAI,CAAC;IACtB,OAAO,EAAE,QAAQ,CAAC,cAAc,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC,CAAC;CACpD;AAED,wBAAgB,WAAW,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,gBAAgB,2CA2B9D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/client/interfaces/components/resources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC"}
|
package/dist/types/src/client/interfaces/components/ui/cards/resource-card/resource-card.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { ComponentProps, ReactNode } from "react";
|
|
|
4
4
|
interface ResourceCardProps extends ComponentProps<"div"> {
|
|
5
5
|
href?: string;
|
|
6
6
|
openNewTab?: boolean;
|
|
7
|
-
anchorProps?: ComponentProps<"a"
|
|
7
|
+
anchorProps?: ComponentProps<"a"> | undefined;
|
|
8
8
|
cardStatusBarProps?: CardStatusBarProps;
|
|
9
9
|
cardTextContentProps?: CardTextContentProps;
|
|
10
10
|
className?: string;
|
package/dist/types/src/client/interfaces/components/ui/cards/resource-card/resource-card.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-card.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/client/interfaces/components/ui/cards/resource-card/resource-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQvD,UAAU,iBAAkB,SAAQ,cAAc,CAAC,KAAK,CAAC;IACvD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"resource-card.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/client/interfaces/components/ui/cards/resource-card/resource-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQvD,UAAU,iBAAkB,SAAQ,cAAc,CAAC,KAAK,CAAC;IACvD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,cAAc,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC;IAC9C,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,wBAAgB,YAAY,CAAC,EAE3B,IAAS,EACT,UAAkB,EAClB,WAAW,EAEX,kBAAkB,EAClB,oBAAoB,EAEpB,SAAc,EACd,KAAK,EACL,QAAQ,GACT,EAAE,iBAAiB,2CA+BnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-field.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/form/index-field.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,QAAQ,EACb,KAAK,mBAAmB,EACzB,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"index-field.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/form/index-field.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,QAAQ,EACb,KAAK,mBAAmB,EACzB,MAAM,uBAAuB,CAAC;AAO/B,UAAU,eAAe,CAAC,CAAC,SAAS,QAAQ,CAAE,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAC1E,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,wBAAgB,UAAU,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,EACxD,eAAe,EACf,cAAkB,EAAE,sBAAsB;AAE1C,QAAQ,EACR,WAAW,EAEX,SAAiB,EACjB,UAAkB,EAClB,OAAe,EACf,SAAiB,EAEjB,EAAE,GACH,EAAE,eAAe,CAAC,CAAC,CAAC,2CAgEpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slug-field.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/form/slug-field.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,QAAQ,EACb,KAAK,mBAAmB,EACzB,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"slug-field.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/form/slug-field.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,QAAQ,EACb,KAAK,mBAAmB,EACzB,MAAM,uBAAuB,CAAC;AAO/B,UAAU,cAAc,CAAC,CAAC,SAAS,QAAQ,CAAE,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IACzE,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,wBAAgB,SAAS,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAAE,EACvD,aAAa,EAEb,QAAQ,EACR,WAAW,EAEX,SAAiB,EACjB,UAAkB,EAClB,OAAe,EACf,SAAiB,EAEjB,EAAE,GACH,EAAE,cAAc,CAAC,CAAC,CAAC,2CAiEnB"}
|
|
@@ -4,6 +4,6 @@ export { ActionButtonsCard, ResourceCard } from "./cards";
|
|
|
4
4
|
export { ArrayList, Badge, HtmlDisplay, ObjectArrayList } from "./display";
|
|
5
5
|
export { Accordion, AccordionContainer, ExpandableList, createFileInfo, createFilePicker, createFilePreview, createFilePreviewList, createUploader, ExternalLink, PickModal, createSmartImage, Tick, } from "./features";
|
|
6
6
|
export { Form, Field, FieldBody, FieldsContainer, MainFields, SideFields, IndexField, SlugField, ControlFields, type ControlMeta, } from "./form";
|
|
7
|
-
export { ArrayInput, Checkbox, Input, type InputProps, PasswordInput, SearchInput, Select, Option, Textarea, } from "./inputs";
|
|
7
|
+
export { createEditor, ArrayInput, Checkbox, Input, type InputProps, PasswordInput, SearchInput, Select, Option, Textarea, } from "./inputs";
|
|
8
8
|
export { ContentContainer, DashboardSkeleton, AuthSkeleton, type NavItem, NavMain, SidebarProvider, Sidebar, SidebarInset, SidebarContent, useSidebar, createNavbar, createI18nSelector, createSignOutButton, } from "./layouts";
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/client/interfaces/components/ui/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC3E,OAAO,EACL,SAAS,EACT,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,IAAI,GACL,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,IAAI,EACJ,KAAK,EACL,SAAS,EACT,eAAe,EACf,UAAU,EACV,UAAU,EACV,UAAU,EACV,SAAS,EACT,aAAa,EACb,KAAK,WAAW,GACjB,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,UAAU,EACV,QAAQ,EACR,KAAK,EACL,KAAK,UAAU,EACf,aAAa,EACb,WAAW,EACX,MAAM,EACN,MAAM,EACN,QAAQ,GACT,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EAEZ,KAAK,OAAO,EACZ,OAAO,EACP,eAAe,EACf,OAAO,EACP,YAAY,EACZ,cAAc,EACd,UAAU,EAEV,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/client/interfaces/components/ui/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC3E,OAAO,EACL,SAAS,EACT,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,IAAI,GACL,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,IAAI,EACJ,KAAK,EACL,SAAS,EACT,eAAe,EACf,UAAU,EACV,UAAU,EACV,UAAU,EACV,SAAS,EACT,aAAa,EACb,KAAK,WAAW,GACjB,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,KAAK,EACL,KAAK,UAAU,EACf,aAAa,EACb,WAAW,EACX,MAAM,EACN,MAAM,EACN,QAAQ,GACT,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EAEZ,KAAK,OAAO,EACZ,OAAO,EACP,eAAe,EACf,OAAO,EACP,YAAY,EACZ,cAAc,EACd,UAAU,EAEV,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { EditorConfig } from "ckeditor5";
|
|
2
|
+
import { ClassicEditor } from "ckeditor5";
|
|
3
|
+
export declare class BaseEditor extends ClassicEditor {
|
|
4
|
+
static builtinPlugins: (typeof import("../plugins/asset-manager").AssetManager | typeof import("ckeditor5").Alignment | typeof import("ckeditor5").Autoformat | typeof import("ckeditor5").Superscript | typeof import("ckeditor5").Subscript | typeof import("ckeditor5").Bold | typeof import("ckeditor5").Code | typeof import("ckeditor5").Italic | typeof import("ckeditor5").Strikethrough | typeof import("ckeditor5").Underline | typeof import("ckeditor5").BlockQuote | typeof import("ckeditor5").CodeBlock | typeof import("ckeditor5").Emoji | typeof import("ckeditor5").Essentials | typeof import("ckeditor5").Font | typeof import("ckeditor5").Heading | typeof import("ckeditor5").Highlight | typeof import("ckeditor5").HorizontalLine | typeof import("ckeditor5").HtmlEmbed | typeof import("ckeditor5").Image | typeof import("ckeditor5").ImageCaption | typeof import("ckeditor5").ImageInsert | typeof import("ckeditor5").ImageResize | typeof import("ckeditor5").ImageStyle | typeof import("ckeditor5").ImageToolbar | typeof import("ckeditor5").ImageUpload | typeof import("ckeditor5").Indent | typeof import("ckeditor5").Link | typeof import("ckeditor5").LinkImage | typeof import("ckeditor5").List | typeof import("ckeditor5").TodoList | typeof import("ckeditor5").MediaEmbed | typeof import("ckeditor5").Mention | typeof import("ckeditor5").PageBreak | typeof import("ckeditor5").RemoveFormat | typeof import("ckeditor5").ShowBlocks | typeof import("ckeditor5").SpecialCharactersEssentials | typeof import("ckeditor5").Table | typeof import("ckeditor5").TableCaption | typeof import("ckeditor5").TableCellProperties | typeof import("ckeditor5").TableColumnResize | typeof import("ckeditor5").TableLayout | typeof import("ckeditor5").TableProperties | typeof import("ckeditor5").TableToolbar)[];
|
|
5
|
+
static defaultConfig: EditorConfig;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=base-editor.d.ts.map
|
package/dist/types/src/client/interfaces/components/ui/inputs/editor/base/base-editor.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-editor.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/client/interfaces/components/ui/inputs/editor/base/base-editor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAQ1C,qBAAa,UAAW,SAAQ,aAAa;IAC3C,OAAgB,cAAc,4uDAAkB;IAChD,OAAgB,aAAa,EAAE,YAAY,CAuFzC;CACH"}
|
package/dist/types/src/client/interfaces/components/ui/inputs/editor/base/built-in-plugins.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Essentials } from "ckeditor5";
|
|
2
|
+
import { Autoformat } from "ckeditor5";
|
|
3
|
+
import { Bold, Code, Italic, Strikethrough, Subscript, Superscript, Underline } from "ckeditor5";
|
|
4
|
+
import { Indent } from "ckeditor5";
|
|
5
|
+
import { BlockQuote } from "ckeditor5";
|
|
6
|
+
import { CodeBlock } from "ckeditor5";
|
|
7
|
+
import { Emoji, Mention } from "ckeditor5";
|
|
8
|
+
import { Font } from "ckeditor5";
|
|
9
|
+
import { Heading } from "ckeditor5";
|
|
10
|
+
import { Highlight } from "ckeditor5";
|
|
11
|
+
import { HorizontalLine } from "ckeditor5";
|
|
12
|
+
import { HtmlEmbed } from "ckeditor5";
|
|
13
|
+
import { Image, ImageToolbar, ImageCaption, ImageStyle, ImageResize, LinkImage, ImageInsert } from "ckeditor5";
|
|
14
|
+
import { ImageUpload } from "ckeditor5";
|
|
15
|
+
import { Link } from "ckeditor5";
|
|
16
|
+
import { List, TodoList } from "ckeditor5";
|
|
17
|
+
import { MediaEmbed } from "ckeditor5";
|
|
18
|
+
import { PageBreak } from "ckeditor5";
|
|
19
|
+
import { RemoveFormat } from "ckeditor5";
|
|
20
|
+
import { ShowBlocks } from "ckeditor5";
|
|
21
|
+
import { SpecialCharactersEssentials } from "ckeditor5";
|
|
22
|
+
import { Table, TableToolbar, TableProperties, TableCellProperties, TableColumnResize, TableCaption, TableLayout } from "ckeditor5";
|
|
23
|
+
import { Alignment } from "ckeditor5";
|
|
24
|
+
import { AssetManager } from "../plugins/asset-manager";
|
|
25
|
+
export declare const builtinPlugins: (typeof AssetManager | typeof Alignment | typeof Autoformat | typeof Superscript | typeof Subscript | typeof Bold | typeof Code | typeof Italic | typeof Strikethrough | typeof Underline | typeof BlockQuote | typeof CodeBlock | typeof Emoji | typeof Essentials | typeof Font | typeof Heading | typeof Highlight | typeof HorizontalLine | typeof HtmlEmbed | typeof Image | typeof ImageCaption | typeof ImageInsert | typeof ImageResize | typeof ImageStyle | typeof ImageToolbar | typeof ImageUpload | typeof Indent | typeof Link | typeof LinkImage | typeof List | typeof TodoList | typeof MediaEmbed | typeof Mention | typeof PageBreak | typeof RemoveFormat | typeof ShowBlocks | typeof SpecialCharactersEssentials | typeof Table | typeof TableCaption | typeof TableCellProperties | typeof TableColumnResize | typeof TableLayout | typeof TableProperties | typeof TableToolbar)[];
|
|
26
|
+
//# sourceMappingURL=built-in-plugins.d.ts.map
|
package/dist/types/src/client/interfaces/components/ui/inputs/editor/base/built-in-plugins.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"built-in-plugins.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/client/interfaces/components/ui/inputs/editor/base/built-in-plugins.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAa,MAAM,WAAW,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,OAAO,EACL,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,aAAa,EACb,SAAS,EACT,WAAW,EACX,SAAS,EACV,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,MAAM,EAAe,MAAM,WAAW,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAmC,SAAS,EAAE,MAAM,WAAW,CAAC;AACvE,OAAO,EACL,KAAK,EACL,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,WAAW,EACX,SAAS,EACT,WAAW,EAEZ,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,IAAI,EAAY,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,OAAO,EAAqB,2BAA2B,EAAE,MAAM,WAAW,CAAC;AAC3E,OAAO,EACL,KAAK,EACL,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,YAAY,EACZ,WAAW,EACZ,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAItC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGxD,eAAO,MAAM,cAAc,42BA4D1B,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const headingConfig: {
|
|
2
|
+
options: ({
|
|
3
|
+
model: "paragraph";
|
|
4
|
+
title: string;
|
|
5
|
+
class: string;
|
|
6
|
+
view?: never;
|
|
7
|
+
} | {
|
|
8
|
+
model: "heading2";
|
|
9
|
+
view: string;
|
|
10
|
+
title: string;
|
|
11
|
+
class: string;
|
|
12
|
+
} | {
|
|
13
|
+
model: "heading3";
|
|
14
|
+
view: string;
|
|
15
|
+
title: string;
|
|
16
|
+
class: string;
|
|
17
|
+
} | {
|
|
18
|
+
model: "heading4";
|
|
19
|
+
view: string;
|
|
20
|
+
title: string;
|
|
21
|
+
class: string;
|
|
22
|
+
} | {
|
|
23
|
+
model: "heading5";
|
|
24
|
+
view: string;
|
|
25
|
+
title: string;
|
|
26
|
+
class: string;
|
|
27
|
+
} | {
|
|
28
|
+
model: "heading6";
|
|
29
|
+
view: string;
|
|
30
|
+
title: string;
|
|
31
|
+
class: string;
|
|
32
|
+
})[];
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=heading.config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"heading.config.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/client/interfaces/components/ui/inputs/editor/base/configs/heading.config.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCS,CAAC"}
|
package/dist/types/src/client/interfaces/components/ui/inputs/editor/base/configs/image.config.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const imageConfig: {
|
|
2
|
+
toolbar: string[];
|
|
3
|
+
resizeOptions: ({
|
|
4
|
+
name: string;
|
|
5
|
+
label: string;
|
|
6
|
+
value: null;
|
|
7
|
+
} | {
|
|
8
|
+
name: string;
|
|
9
|
+
label: string;
|
|
10
|
+
value: string;
|
|
11
|
+
})[];
|
|
12
|
+
insert: {
|
|
13
|
+
integrations: string[];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=image.config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image.config.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/client/interfaces/components/ui/inputs/editor/base/configs/image.config.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;CA6BS,CAAC"}
|
package/dist/types/src/client/interfaces/components/ui/inputs/editor/base/configs/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/client/interfaces/components/ui/inputs/editor/base/configs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.config.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/client/interfaces/components/ui/inputs/editor/base/configs/table.config.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW;;CAYS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/client/interfaces/components/ui/inputs/editor/base/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { createUploadAdapter } from "./plugins/file-repository";
|
|
2
|
+
import type { createFileCreateAction } from "../../../../../../server";
|
|
3
|
+
import type { FormFieldController } from "../../../../../../shared";
|
|
4
|
+
import type { createUseCommand } from "../../../../../infrastructure";
|
|
5
|
+
import type { createFileList } from "../../../resources";
|
|
6
|
+
import type { QueryClient } from "@tanstack/react-query";
|
|
7
|
+
import type { HTMLAttributes } from "react";
|
|
8
|
+
import { type createUploader } from "../../features";
|
|
9
|
+
import { type OnEditorChange } from "./use-init-editor";
|
|
10
|
+
interface EditorProps extends HTMLAttributes<HTMLDivElement>, FormFieldController {
|
|
11
|
+
locale: string;
|
|
12
|
+
value?: string;
|
|
13
|
+
onEditorChange: OnEditorChange;
|
|
14
|
+
}
|
|
15
|
+
export declare function createEditor({ Uploader, useCommand, fileCreateAction, UploadAdapter, FileList, storageUrl, maxWidth, queryClient, }: {
|
|
16
|
+
Uploader: ReturnType<typeof createUploader>;
|
|
17
|
+
useCommand: ReturnType<typeof createUseCommand>;
|
|
18
|
+
fileCreateAction: ReturnType<typeof createFileCreateAction>;
|
|
19
|
+
UploadAdapter: ReturnType<typeof createUploadAdapter>;
|
|
20
|
+
FileList: ReturnType<typeof createFileList>;
|
|
21
|
+
storageUrl: string;
|
|
22
|
+
maxWidth: number;
|
|
23
|
+
queryClient: QueryClient;
|
|
24
|
+
}): ({ locale, value, onEditorChange, isLoading, isDisabled, isError, className, ...props }: EditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/client/interfaces/components/ui/inputs/editor/editor.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,EACV,sBAAsB,EAEvB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhE,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEvE,UAAU,WACR,SAAQ,cAAc,CAAC,cAAc,CAAC,EAAE,mBAAmB;IAC3D,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,cAAc,CAAC;CAChC;AAED,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,WAAW,GACZ,EAAE;IACD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;IAC5C,UAAU,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;IAChD,gBAAgB,EAAE,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;IAC5D,aAAa,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;IACtD,QAAQ,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;IAC5C,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,WAAW,CAAC;CAC1B,IACwB,wFAYpB,WAAW,6CA+Df"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/client/interfaces/components/ui/inputs/editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Plugin } from "ckeditor5";
|
|
2
|
+
export declare const ASSET_MANAGER_PLUGIN_NAME = "asset-manager";
|
|
3
|
+
export declare const OPEN_ASSET_MANAGER_KEY = "open-asset-manager";
|
|
4
|
+
export type OpenAssetManager = () => void;
|
|
5
|
+
export declare class AssetManager extends Plugin {
|
|
6
|
+
init(): void;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=asset-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset-manager.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/client/interfaces/components/ui/inputs/editor/plugins/asset-manager/asset-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,WAAW,CAAC;AAE/C,eAAO,MAAM,yBAAyB,kBAAkB,CAAC;AACzD,eAAO,MAAM,sBAAsB,uBAAuB,CAAC;AAC3D,MAAM,MAAM,gBAAgB,GAAG,MAAM,IAAI,CAAC;AAE1C,qBAAa,YAAa,SAAQ,MAAM;IACtC,IAAI;CAyBL"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/client/interfaces/components/ui/inputs/editor/plugins/asset-manager/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,yBAAyB,EACzB,sBAAsB,EACtB,KAAK,gBAAgB,GACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC"}
|