@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
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { FileFull } from "../../../../../../../../domain/resources/file/full";
|
|
2
|
+
import type { BaseEditor } from "../../base";
|
|
3
|
+
import type { RefObject } from "react";
|
|
4
|
+
export declare const useControlAssetManager: (editorRef: RefObject<BaseEditor | null>, storageUrl: string) => {
|
|
5
|
+
isOpenAssetManager: boolean;
|
|
6
|
+
setIsOpenAssetManager: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
7
|
+
formData: {
|
|
8
|
+
file: FileFull | null;
|
|
9
|
+
};
|
|
10
|
+
setFormData: import("react").Dispatch<import("react").SetStateAction<{
|
|
11
|
+
file: FileFull | null;
|
|
12
|
+
}>>;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=use-control-asset-mamager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-control-asset-mamager.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/client/interfaces/components/ui/inputs/editor/plugins/asset-manager/use-control-asset-mamager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oDAAoD,CAAC;AACnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,eAAO,MAAM,sBAAsB,GACjC,WAAW,SAAS,CAAC,UAAU,GAAG,IAAI,CAAC,EACvC,YAAY,MAAM;;;;cAI+B,QAAQ,GAAG,IAAI;;;cAAf,QAAQ,GAAG,IAAI;;CAkBjE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/client/interfaces/components/ui/inputs/editor/plugins/file-repository/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { FileCreateFormData } from "../../../../../../../../server";
|
|
2
|
+
import type { createFileUploadApi } from "../../../../../../../infrastructure";
|
|
3
|
+
import type { QueryClient } from "@tanstack/react-query";
|
|
4
|
+
import type { FileLoader } from "ckeditor5";
|
|
5
|
+
import type { Logger } from "logry";
|
|
6
|
+
import { type File } from "../../../../../../../../domain";
|
|
7
|
+
import { type createBuildTranslations } from "../../../../../../../../shared";
|
|
8
|
+
export declare function createUploadAdapter({ fileUploadApi, buildTranslations, logger, storageUrl, }: {
|
|
9
|
+
fileUploadApi: ReturnType<typeof createFileUploadApi>;
|
|
10
|
+
buildTranslations: ReturnType<typeof createBuildTranslations>;
|
|
11
|
+
logger: Logger;
|
|
12
|
+
storageUrl: string;
|
|
13
|
+
}): {
|
|
14
|
+
new (loader: FileLoader, execute: (params: FileCreateFormData) => Promise<{
|
|
15
|
+
file: File;
|
|
16
|
+
} | undefined>, queryClient: QueryClient): {
|
|
17
|
+
loader: FileLoader;
|
|
18
|
+
execute: (params: FileCreateFormData) => Promise<{
|
|
19
|
+
file: File;
|
|
20
|
+
} | undefined>;
|
|
21
|
+
queryClient: QueryClient;
|
|
22
|
+
upload(): Promise<{
|
|
23
|
+
default: string;
|
|
24
|
+
}>;
|
|
25
|
+
abort(): void;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=upload-adapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-adapter.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/client/interfaces/components/ui/inputs/editor/plugins/file-repository/upload-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EACV,UAAU,EAEX,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAGpC,OAAO,EAEL,KAAK,IAAI,EACV,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAIL,KAAK,uBAAuB,EAC7B,MAAM,gCAAgC,CAAC;AAExC,wBAAgB,mBAAmB,CAAC,EAClC,aAAa,EACb,iBAAiB,EACjB,MAAM,EACN,UAAU,GACX,EAAE;IACD,aAAa,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;IACtD,iBAAiB,EAAE,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;IAC9D,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACpB;iBAGoB,UAAU,WACT,CACd,MAAM,EAAE,kBAAkB,KACvB,OAAO,CAAC;QAAE,IAAI,EAAE,IAAI,CAAA;KAAE,GAAG,SAAS,CAAC,eACpB,WAAW;gBAJhB,UAAU;iBACT,CACd,MAAM,EAAE,kBAAkB,KACvB,OAAO,CAAC;YAAE,IAAI,EAAE,IAAI,CAAA;SAAE,GAAG,SAAS,CAAC;qBACpB,WAAW;kBAGjB,OAAO,CAAC;YAAE,OAAO,EAAE,MAAM,CAAA;SAAE,CAAC;iBAoEnC,IAAI;;EAIhB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const HTML_ICON = "\n<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\">\n <path d=\"M392.8 65.2C375.8 60.3 358.1 70.2 353.2 87.2L225.2 535.2C220.3 552.2 230.2 569.9 247.2 574.8C264.2 579.7 281.9 569.8 286.8 552.8L414.8 104.8C419.7 87.8 409.8 70.1 392.8 65.2zM457.4 201.3C444.9 213.8 444.9 234.1 457.4 246.6L530.8 320L457.4 393.4C444.9 405.9 444.9 426.2 457.4 438.7C469.9 451.2 490.2 451.2 502.7 438.7L598.7 342.7C611.2 330.2 611.2 309.9 598.7 297.4L502.7 201.4C490.2 188.9 469.9 188.9 457.4 201.4zM182.7 201.3C170.2 188.8 149.9 188.8 137.4 201.3L41.4 297.3C28.9 309.8 28.9 330.1 41.4 342.6L137.4 438.6C149.9 451.1 170.2 451.1 182.7 438.6C195.2 426.1 195.2 405.8 182.7 393.3L109.3 320L182.6 246.6C195.1 234.1 195.1 213.8 182.6 201.3z\"/>\n</svg>\n";
|
|
2
|
+
export declare const CHARACTERS_ICON = "\n<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\">\n <path d=\"M349.1 114.7C343.9 103.3 332.5 96 320 96C307.5 96 296.1 103.3 290.9 114.7L123.5 480L112 480C94.3 480 80 494.3 80 512C80 529.7 94.3 544 112 544L200 544C217.7 544 232 529.7 232 512C232 494.3 217.7 480 200 480L193.9 480L215.9 432L424.2 432L446.2 480L440.1 480C422.4 480 408.1 494.3 408.1 512C408.1 529.7 422.4 544 440.1 544L528.1 544C545.8 544 560.1 529.7 560.1 512C560.1 494.3 545.8 480 528.1 480L516.6 480L349.2 114.7zM394.8 368L245.2 368L320 204.8L394.8 368z\"/>\n</svg>\n";
|
|
3
|
+
export declare const WORDS_ICON = "\n<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 640\">\n <path d=\"M192 112L304 112L304 200C304 239.8 336.2 272 376 272L464 272L464 512C464 520.8 456.8 528 448 528L192 528C183.2 528 176 520.8 176 512L176 128C176 119.2 183.2 112 192 112zM352 131.9L444.1 224L376 224C362.7 224 352 213.3 352 200L352 131.9zM192 64C156.7 64 128 92.7 128 128L128 512C128 547.3 156.7 576 192 576L448 576C483.3 576 512 547.3 512 512L512 250.5C512 233.5 505.3 217.2 493.3 205.2L370.7 82.7C358.7 70.7 342.5 64 325.5 64L192 64zM263.3 338.2C260.1 325.3 247.1 317.5 234.2 320.7C221.3 323.9 213.5 337 216.7 349.8L248.7 477.8C251.2 488 260.1 495.3 270.6 495.9C281.1 496.5 290.7 490.2 294.4 480.4L319.9 412.3L345.4 480.4C349.1 490.2 358.7 496.5 369.2 495.9C379.7 495.3 388.6 488 391.1 477.8L423.1 349.8C426.3 336.9 418.5 323.9 405.6 320.7C392.7 317.5 379.7 325.3 376.5 338.2L363.2 391.4L342.3 335.6C339 326.2 330 320 320 320C310 320 301 326.2 297.5 335.6L276.6 391.4L263.3 338.2z\"/>\n</svg>\n";
|
|
4
|
+
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/client/interfaces/components/ui/inputs/editor/plugins/word-count-display/icons.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,6uBAIrB,CAAC;AAEF,eAAO,MAAM,eAAe,+iBAI3B,CAAC;AAEF,eAAO,MAAM,UAAU,q9BAItB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/client/interfaces/components/ui/inputs/editor/plugins/word-count-display/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Plugin } from "ckeditor5";
|
|
2
|
+
export declare const WORD_COUNT_DISPLAY_PLUGIN_NAME: {
|
|
3
|
+
readonly default: "word-count-display";
|
|
4
|
+
readonly characters: "word-count-display-characters";
|
|
5
|
+
readonly words: "word-count-display-words";
|
|
6
|
+
readonly html: "word-count-display-html";
|
|
7
|
+
};
|
|
8
|
+
export default class WordCountButtons extends Plugin {
|
|
9
|
+
init(): void;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=word-count-display.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"word-count-display.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../src/client/interfaces/components/ui/inputs/editor/plugins/word-count-display/word-count-display.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,WAAW,CAAC;AAM/C,eAAO,MAAM,8BAA8B;;;;;CAKjC,CAAC;AAEX,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,MAAM;IAClD,IAAI;CAqEL"}
|
package/dist/types/src/client/interfaces/components/ui/inputs/editor/use-init-editor/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/client/interfaces/components/ui/inputs/editor/use-init-editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/types/src/client/interfaces/components/ui/inputs/editor/use-init-editor/types.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { OpenAssetManager } from "../plugins/asset-manager";
|
|
2
|
+
import type { FileLoader, UploadAdapter } from "ckeditor5";
|
|
3
|
+
import type { RefObject } from "react";
|
|
4
|
+
export type OnEditorChange = (value: string) => void;
|
|
5
|
+
export interface UseInitEditorParams {
|
|
6
|
+
enabled?: boolean;
|
|
7
|
+
containerRef: RefObject<HTMLDivElement | null>;
|
|
8
|
+
locale: string;
|
|
9
|
+
value: string;
|
|
10
|
+
onEditorChange: OnEditorChange;
|
|
11
|
+
createUploadAdapter: (loader: FileLoader) => UploadAdapter;
|
|
12
|
+
openAssetManager: OpenAssetManager;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=types.d.ts.map
|
package/dist/types/src/client/interfaces/components/ui/inputs/editor/use-init-editor/types.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/client/interfaces/components/ui/inputs/editor/use-init-editor/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,cAAc,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;AAErD,MAAM,WAAW,mBAAmB;IAClC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC/C,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,cAAc,CAAC;IAC/B,mBAAmB,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,aAAa,CAAC;IAC3D,gBAAgB,EAAE,gBAAgB,CAAC;CACpC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { UseInitEditorParams } from "./types";
|
|
2
|
+
import { BaseEditor } from "../base";
|
|
3
|
+
export declare const useInitEditor: ({ enabled, containerRef, locale, value, onEditorChange, createUploadAdapter, openAssetManager, }: UseInitEditorParams) => import("react").RefObject<BaseEditor | null>;
|
|
4
|
+
//# sourceMappingURL=use-init-editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-init-editor.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/client/interfaces/components/ui/inputs/editor/use-init-editor/use-init-editor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAInD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAQrC,eAAO,MAAM,aAAa,GAAI,kGAQ3B,mBAAmB,iDA4CrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/inputs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/ui/inputs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
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, } from "./components";
|
|
1
|
+
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, } from "./components";
|
|
2
2
|
export { createSignInPage, createVerifyEmailPage, createEmailUnverifiedPage, createForgotPasswordPage, createResetPasswordPage, createChangePasswordPage, createAuthLayout, createDashboardLayout, } from "./pages";
|
|
3
3
|
export { NAVBAR_HEIGHT, SIDEBAR_WIDTH, PAGE_HEADER_HEIGHT } from "./styles";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/client/interfaces/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EAGtB,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/interfaces/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EAGtB,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,EAGnB,cAAc,EACd,cAAc,GACf,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EACrB,yBAAyB,EACzB,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,gBAAgB,EAEhB,qBAAqB,GACtB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -3,7 +3,7 @@ export { result, type SuccessResultParams, type ErrorResultParams, type Result,
|
|
|
3
3
|
export { OG_TYPE_ARRAY, type OgType, TWITTER_CARD_ARRAY, type TwitterCard, createBuildWebsiteMetadata, createBuildArticleMetadata, serializeJsonLd, } from "./seo-metadata";
|
|
4
4
|
export { findTranslation, createBuildTranslations } from "./translation";
|
|
5
5
|
export { datetimeToDb, datetimeToUi, jsonArrayToDb, jsonArrayToUi, type UIStates, type FormData, type FormFieldController, } from "./form";
|
|
6
|
-
export { ensureArray, formatDateTime, joinUrl } from "./utils";
|
|
6
|
+
export { debounce, ensureArray, formatDateTime, joinUrl } from "./utils";
|
|
7
7
|
export { type ListItemsState, DO_NOT_FETCH_KEY } from "./list-items";
|
|
8
8
|
export { SIZE, type SizeUnit } from "./units";
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,KAAK,QAAQ,GACd,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,WAAW,GACjB,MAAM,UAAU,CAAC;AAGlB,OAAO,EACL,aAAa,EACb,KAAK,MAAM,EACX,kBAAkB,EAClB,KAAK,WAAW,EAChB,0BAA0B,EAC1B,0BAA0B,EAC1B,eAAe,GAChB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAGzE,OAAO,EAEL,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,aAAa,EAEb,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,mBAAmB,GACzB,MAAM,QAAQ,CAAC;AAGhB,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,KAAK,QAAQ,GACd,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,WAAW,GACjB,MAAM,UAAU,CAAC;AAGlB,OAAO,EACL,aAAa,EACb,KAAK,MAAM,EACX,kBAAkB,EAClB,KAAK,WAAW,EAChB,0BAA0B,EAC1B,0BAA0B,EAC1B,eAAe,GAChB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAGzE,OAAO,EAEL,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,aAAa,EAEb,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,mBAAmB,GACzB,MAAM,QAAQ,CAAC;AAGhB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAGzE,OAAO,EAAE,KAAK,cAAc,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGrE,OAAO,EAAE,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type DebouncedFn<Args extends unknown[]> = {
|
|
2
|
+
(...args: Args): void;
|
|
3
|
+
clear: () => void;
|
|
4
|
+
};
|
|
5
|
+
export declare const debounce: <Args extends unknown[]>(fn: (...args: Args) => void, delay?: number) => DebouncedFn<Args>;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=debounce.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debounce.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/debounce.ts"],"names":[],"mappings":"AAAA,KAAK,WAAW,CAAC,IAAI,SAAS,OAAO,EAAE,IAAI;IACzC,CAAC,GAAG,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IACtB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,IAAI,SAAS,OAAO,EAAE,EAC7C,IAAI,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,IAAI,EAC3B,cAAW,KACV,WAAW,CAAC,IAAI,CAclB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yimingliao/cms",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.143",
|
|
4
4
|
"author": "Yiming Liao",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
|
+
"sideEffects": [
|
|
8
|
+
"**/*.css"
|
|
9
|
+
],
|
|
7
10
|
"exports": {
|
|
8
11
|
".": {
|
|
9
12
|
"types": "./dist/types/export/index.d.ts",
|
|
@@ -34,7 +37,8 @@
|
|
|
34
37
|
"types": "./dist/types/export/server/sftp/index.d.ts",
|
|
35
38
|
"import": "./dist/export/server/sftp/index.js",
|
|
36
39
|
"require": "./dist/export/server/sftp/index.js"
|
|
37
|
-
}
|
|
40
|
+
},
|
|
41
|
+
"./client/editor/css": "./dist/ckeditor-editor.css"
|
|
38
42
|
},
|
|
39
43
|
"files": [
|
|
40
44
|
"dist",
|
|
@@ -62,6 +66,7 @@
|
|
|
62
66
|
"@radix-ui/react-slot": "^1.2.4",
|
|
63
67
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
64
68
|
"argon2": "^0.44.0",
|
|
69
|
+
"ckeditor5": "^47.6.1",
|
|
65
70
|
"class-variance-authority": "^0.7.1",
|
|
66
71
|
"jsonwebtoken": "^9.0.3",
|
|
67
72
|
"keyv": "^5.6.0",
|
|
@@ -107,6 +112,7 @@
|
|
|
107
112
|
"prisma": "6.5.0",
|
|
108
113
|
"react": "^19.2.4",
|
|
109
114
|
"rollup": "^4.59.0",
|
|
115
|
+
"rollup-plugin-copy": "^3.5.0",
|
|
110
116
|
"rollup-plugin-esbuild": "^6.2.1",
|
|
111
117
|
"tailwind-merge": "^3.5.0",
|
|
112
118
|
"tsc-alias": "^1.8.16",
|