@rxdrag/website-studio 0.0.19 → 0.0.20
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/components/ConfigDrawer/FaviconPanel/FaviconPreview.d.ts +7 -0
- package/dist/components/ConfigDrawer/FaviconPanel/ResetButton.d.ts +1 -0
- package/dist/components/ConfigDrawer/FaviconPanel/index.d.ts +3 -0
- package/dist/components/ConfigDrawer/newThemeConfigOptions.d.ts +1 -0
- package/dist/components/ConfigDrawer/types.d.ts +2 -1
- package/dist/components/DocPreview/mock/MockEntify.d.ts +3 -2
- package/dist/components/DocPreview/mock/website.d.ts +2 -0
- package/dist/components/common/ImportComponentModal/index.d.ts +1 -2
- package/dist/components/common/ImportComponentModal/useComponentsImportTask.d.ts +2 -2
- package/dist/generator/hooks/baseFiles.d.ts +1 -20
- package/dist/generator/hooks/bases/src/layouts/Layout.astro.d.ts +1 -1
- package/dist/generator/hooks/useGetFiles.d.ts +1 -20
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/useImportVariables.d.ts +1 -0
- package/dist/index.mjs +2234 -1849
- package/dist/index.mjs.map +1 -1
- package/package.json +13 -13
- package/dist/hooks/useSave.d.ts +0 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type FaviconPreviewProps = {
|
|
2
|
+
value?: string;
|
|
3
|
+
onChange?: (value: string) => void;
|
|
4
|
+
isDark?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare function FaviconPreview(props: FaviconPreviewProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const FaviconPreviewField: (props: import("@rxdrag/fieldy-heroui").FieldProps & FaviconPreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ResetButton(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { IEntify, ListConditions, PostPatinateOptions, PostsOptions, TPost, TPostCategory, TProduct, TProductCategory, TSize, TUser } from "@rxdrag/website-lib-core";
|
|
2
2
|
import { IQueryOptions, ListResult } from "@rxdrag/entify-hooks";
|
|
3
|
-
import { Lang, Theme } from "@rxdrag/rxcms-models";
|
|
3
|
+
import { Lang, Theme, Website } from "@rxdrag/rxcms-models";
|
|
4
4
|
export declare class MockEntify implements IEntify {
|
|
5
5
|
queryEntityList<T, WhereExp = unknown, OrderBy = unknown, DistinctExp = unknown>(options: IQueryOptions<T, WhereExp, OrderBy, DistinctExp>, staticKey?: string): Promise<ListResult<unknown> | undefined>;
|
|
6
|
+
getWebsite(): Promise<Website | undefined>;
|
|
6
7
|
getTheme(): Promise<Theme | undefined>;
|
|
7
8
|
getLangs(): Promise<Lang[] | undefined>;
|
|
8
9
|
getFeaturedProducts(count?: number): Promise<TProduct[] | undefined>;
|
|
@@ -10,7 +11,7 @@ export declare class MockEntify implements IEntify {
|
|
|
10
11
|
getPosts(options: PostsOptions): Promise<TPost[] | undefined>;
|
|
11
12
|
getPostListPaths(options: PostPatinateOptions): Promise<unknown>;
|
|
12
13
|
getPostPaths(): Promise<unknown>;
|
|
13
|
-
getPostBySlug(slug: string, coverSize: TSize | undefined): Promise<
|
|
14
|
+
getPostBySlug(slug: string, coverSize: TSize | undefined): Promise<TPost | undefined>;
|
|
14
15
|
getPostSlugs(): Promise<Array<string | undefined>>;
|
|
15
16
|
getPostCategories(): Promise<TPostCategory[] | undefined>;
|
|
16
17
|
getPostCategoryBySlug(slug: string): Promise<TPostCategory | undefined>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export type ImportComponentModalProps = {
|
|
2
|
-
categoryId?: string | null;
|
|
3
2
|
open: boolean;
|
|
4
3
|
onClose: () => void;
|
|
5
4
|
};
|
|
6
|
-
export declare function ImportComponentModal({
|
|
5
|
+
export declare function ImportComponentModal({ open, onClose, }: ImportComponentModalProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TaskData } from "@rxdrag/ai-tasks";
|
|
2
2
|
export declare const IMPORT_COMPONENTS_KEY = "import-components";
|
|
3
|
-
export declare function useComponentsImportTask(
|
|
3
|
+
export declare function useComponentsImportTask(): {
|
|
4
4
|
taskState: TaskData<unknown> | undefined;
|
|
5
|
-
importComponents: (ids: string[],
|
|
5
|
+
importComponents: (ids: string[], needTranslate: boolean) => void;
|
|
6
6
|
task: import("@rxdrag/ai-tasks").Task | undefined;
|
|
7
7
|
};
|
|
@@ -30,25 +30,6 @@ export declare const createBaseFiles: (theme: Theme) => {
|
|
|
30
30
|
contents: string;
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
-
".vscode": {
|
|
34
|
-
directory: {
|
|
35
|
-
"settings.json": {
|
|
36
|
-
file: {
|
|
37
|
-
contents: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
"extensions.json": {
|
|
41
|
-
file: {
|
|
42
|
-
contents: string;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
"launch.json": {
|
|
46
|
-
file: {
|
|
47
|
-
contents: string;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
33
|
src: {
|
|
53
34
|
directory: {
|
|
54
35
|
layouts: {
|
|
@@ -85,7 +66,7 @@ export declare const createBaseFiles: (theme: Theme) => {
|
|
|
85
66
|
};
|
|
86
67
|
};
|
|
87
68
|
};
|
|
88
|
-
"
|
|
69
|
+
"style.css": {
|
|
89
70
|
file: {
|
|
90
71
|
contents: string;
|
|
91
72
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const layoutCode = "---\nimport \"../
|
|
1
|
+
export declare const layoutCode = "---\nimport \"../style.css\";\nimport { ClientRouter } from \"astro:transitions\";\n---\n\n<!doctype html>\n<html lang=\"zh-CN\">\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n <link rel=\"icon\" type=\"image/svg+xml\" href=\"/favicon.svg\" />\n <meta name=\"generator\" content={Astro.generator} />\n <ClientRouter />\n <slot name=\"meta\" />\n </head>\n <body>\n <slot />\n </body>\n</html>\n\n<style>\n html,\n body {\n margin: 0;\n width: 100%;\n height: 100%;\n }\n</style>\n ";
|
|
@@ -36,7 +36,7 @@ export declare function useGetFiles(): (theme?: Theme) => Promise<{
|
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
|
-
"
|
|
39
|
+
"style.css": {
|
|
40
40
|
file: {
|
|
41
41
|
contents: string;
|
|
42
42
|
};
|
|
@@ -78,25 +78,6 @@ export declare function useGetFiles(): (theme?: Theme) => Promise<{
|
|
|
78
78
|
contents: string;
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
|
-
".vscode": {
|
|
82
|
-
directory: {
|
|
83
|
-
"settings.json": {
|
|
84
|
-
file: {
|
|
85
|
-
contents: string;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
"extensions.json": {
|
|
89
|
-
file: {
|
|
90
|
-
contents: string;
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
"launch.json": {
|
|
94
|
-
file: {
|
|
95
|
-
contents: string;
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
81
|
public: {
|
|
101
82
|
directory: {
|
|
102
83
|
"favicon.svg": {
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -24,4 +24,5 @@ export declare function useImportVariables(): {
|
|
|
24
24
|
productBreadcrumbs: typeof import("../components/DocPreview/mock/MockRxPage").productBreadcrumbs;
|
|
25
25
|
productListBreadcrumbs: typeof import("../components/DocPreview/mock/MockRxPage").productListBreadcrumbs;
|
|
26
26
|
};
|
|
27
|
+
FORM_SALT: string;
|
|
27
28
|
};
|