@rxdrag/website-studio 0.0.50 → 0.0.52
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/LeftDrawer/PagesPanel/ImportPageModal/usePagesImport.d.ts +2 -0
- package/dist/components/LeftDrawer/PagesPanel/useResetPage.d.ts +2 -0
- package/dist/components/StatusBar/StopButton.d.ts +1 -1
- package/dist/components/common/ImportComponentModal/ImportComponentsTask.d.ts +23 -0
- package/dist/components/common/ImportComponentModal/useComponentsImportTask.d.ts +2 -4
- package/dist/{cssMode-3b37fb1f.js → cssMode-8bdd5502.js} +2 -3
- package/dist/{cssMode-3b37fb1f.js.map → cssMode-8bdd5502.js.map} +1 -1
- package/dist/{freemarker2-1fbc5bf0.js → freemarker2-24b36fc1.js} +2 -3
- package/dist/{freemarker2-1fbc5bf0.js.map → freemarker2-24b36fc1.js.map} +1 -1
- package/dist/{handlebars-0d2d8087.js → handlebars-53295c7b.js} +2 -3
- package/dist/{handlebars-0d2d8087.js.map → handlebars-53295c7b.js.map} +1 -1
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useStopTask.d.ts +3 -0
- package/dist/hooks/useTranlateComponents.d.ts +1 -0
- package/dist/hooks/useTranslateBuiltinPage.d.ts +1 -0
- package/dist/hooks/useTranslateCustomizedPages.d.ts +1 -0
- package/dist/hooks/useTranslateRequest.d.ts +5 -0
- package/dist/{html-1f416956.js → html-70d8042e.js} +2 -3
- package/dist/{html-1f416956.js.map → html-70d8042e.js.map} +1 -1
- package/dist/{htmlMode-f8f5f503.js → htmlMode-fabb16ce.js} +2 -3
- package/dist/{htmlMode-f8f5f503.js.map → htmlMode-fabb16ce.js.map} +1 -1
- package/dist/{index-525006cd.js → index-a0e7f111.js} +593 -299
- package/dist/{index-525006cd.js.map → index-a0e7f111.js.map} +1 -1
- package/dist/index.mjs +1 -2
- package/dist/index.mjs.map +1 -1
- package/dist/{javascript-fa1a44fb.js → javascript-d190129b.js} +3 -4
- package/dist/{javascript-fa1a44fb.js.map → javascript-d190129b.js.map} +1 -1
- package/dist/{jsonMode-c7e6869c.js → jsonMode-04d036a7.js} +2 -3
- package/dist/{jsonMode-c7e6869c.js.map → jsonMode-04d036a7.js.map} +1 -1
- package/dist/{liquid-f59e1243.js → liquid-9ba71888.js} +2 -3
- package/dist/{liquid-f59e1243.js.map → liquid-9ba71888.js.map} +1 -1
- package/dist/{mdx-831aab9e.js → mdx-a1e1cc3f.js} +2 -3
- package/dist/{mdx-831aab9e.js.map → mdx-a1e1cc3f.js.map} +1 -1
- package/dist/{python-c08d64d5.js → python-e2f4ad56.js} +2 -3
- package/dist/{python-c08d64d5.js.map → python-e2f4ad56.js.map} +1 -1
- package/dist/{razor-c37a2ffd.js → razor-e8f995b7.js} +2 -3
- package/dist/{razor-c37a2ffd.js.map → razor-e8f995b7.js.map} +1 -1
- package/dist/{tsMode-fe874300.js → tsMode-dff5ab28.js} +2 -3
- package/dist/{tsMode-fe874300.js.map → tsMode-dff5ab28.js.map} +1 -1
- package/dist/{typescript-37e16b75.js → typescript-44b6e68e.js} +2 -3
- package/dist/{typescript-37e16b75.js.map → typescript-44b6e68e.js.map} +1 -1
- package/dist/{xml-68f06860.js → xml-3f4949e5.js} +2 -3
- package/dist/{xml-68f06860.js.map → xml-3f4949e5.js.map} +1 -1
- package/dist/{yaml-11d37d04.js → yaml-c6242439.js} +2 -3
- package/dist/{yaml-11d37d04.js.map → yaml-c6242439.js.map} +1 -1
- package/package.json +18 -18
- package/dist/components/LeftDrawer/PagesPanel/ImportPageModal/usePagesImportTask.d.ts +0 -7
- package/dist/components/LeftDrawer/PagesPanel/useResetPageTask.d.ts +0 -7
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
import { ButtonProps } from "@heroui/react";
|
|
3
3
|
export type StopButtonProps = ButtonProps & {
|
|
4
4
|
confirm?: string | boolean;
|
|
5
|
-
|
|
5
|
+
taskId?: string | null;
|
|
6
6
|
};
|
|
7
7
|
export declare const StopButton: import("react").ForwardRefExoticComponent<Omit<StopButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { EntifyClient } from "@rxdrag/entify-lib";
|
|
2
|
+
import { ComponentCategory, FrontComponent, Lang } from "@rxdrag/rxcms-models";
|
|
3
|
+
export type ImportComponentsData = {
|
|
4
|
+
ids: string[];
|
|
5
|
+
themeId: string;
|
|
6
|
+
lang?: Lang;
|
|
7
|
+
};
|
|
8
|
+
export type ImportComponentsOptions = ImportComponentsData & {
|
|
9
|
+
entifyClient: EntifyClient;
|
|
10
|
+
};
|
|
11
|
+
export declare class ImportComponentsTask {
|
|
12
|
+
protected components: FrontComponent[];
|
|
13
|
+
protected categories: ComponentCategory[];
|
|
14
|
+
private entifyClient;
|
|
15
|
+
private taskData;
|
|
16
|
+
constructor(options: ImportComponentsOptions, components: FrontComponent[], categories: ComponentCategory[]);
|
|
17
|
+
/**
|
|
18
|
+
* 实际执行导入页面的逻辑
|
|
19
|
+
* @returns Promise
|
|
20
|
+
*/
|
|
21
|
+
importComponents(): Promise<void>;
|
|
22
|
+
importOneComponent: (component: FrontComponent, overrideId?: string | null, existCategory?: ComponentCategory) => Promise<void>;
|
|
23
|
+
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { TaskData } from "@rxdrag/ai-tasks";
|
|
2
1
|
export declare const IMPORT_COMPONENTS_KEY = "import-components";
|
|
3
2
|
export declare function useComponentsImportTask(): {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
task: import("@rxdrag/ai-tasks").Task | undefined;
|
|
3
|
+
importComponents: (ids: string[]) => Promise<void>;
|
|
4
|
+
isImporting: boolean;
|
|
7
5
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as monaco_editor_core_star } from "./index-
|
|
1
|
+
import { m as monaco_editor_core_star } from "./index-a0e7f111.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "@rxdrag/rxcms-models";
|
|
4
4
|
import "@rxdrag/rxcms-models-ui";
|
|
@@ -32,7 +32,6 @@ import "react-dom";
|
|
|
32
32
|
import "@rxdrag/code-generator";
|
|
33
33
|
import "@rxdrag/react-runner-pro";
|
|
34
34
|
import "tinycolor2";
|
|
35
|
-
import "@rxdrag/ai-tasks";
|
|
36
35
|
/*!-----------------------------------------------------------------------------
|
|
37
36
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
38
37
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
@@ -2074,4 +2073,4 @@ export {
|
|
|
2074
2073
|
toRange,
|
|
2075
2074
|
toTextEdit
|
|
2076
2075
|
};
|
|
2077
|
-
//# sourceMappingURL=cssMode-
|
|
2076
|
+
//# sourceMappingURL=cssMode-8bdd5502.js.map
|