@rxdrag/website-studio 0.0.50 → 0.0.51
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/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-a282f3f6.js} +2 -2
- package/dist/{cssMode-3b37fb1f.js.map → cssMode-a282f3f6.js.map} +1 -1
- package/dist/{freemarker2-1fbc5bf0.js → freemarker2-f83d1246.js} +2 -2
- package/dist/{freemarker2-1fbc5bf0.js.map → freemarker2-f83d1246.js.map} +1 -1
- package/dist/{handlebars-0d2d8087.js → handlebars-0a80f575.js} +2 -2
- package/dist/{handlebars-0d2d8087.js.map → handlebars-0a80f575.js.map} +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useStopTask.d.ts +3 -0
- package/dist/hooks/useTranlateComponents.d.ts +1 -0
- package/dist/hooks/useTranslateRequest.d.ts +13 -0
- package/dist/{html-1f416956.js → html-6a9d914d.js} +2 -2
- package/dist/{html-1f416956.js.map → html-6a9d914d.js.map} +1 -1
- package/dist/{htmlMode-f8f5f503.js → htmlMode-9f16f56b.js} +2 -2
- package/dist/{htmlMode-f8f5f503.js.map → htmlMode-9f16f56b.js.map} +1 -1
- package/dist/{index-525006cd.js → index-310e120c.js} +445 -156
- package/dist/{index-525006cd.js.map → index-310e120c.js.map} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{javascript-fa1a44fb.js → javascript-85b04aa6.js} +3 -3
- package/dist/{javascript-fa1a44fb.js.map → javascript-85b04aa6.js.map} +1 -1
- package/dist/{jsonMode-c7e6869c.js → jsonMode-61089a60.js} +2 -2
- package/dist/{jsonMode-c7e6869c.js.map → jsonMode-61089a60.js.map} +1 -1
- package/dist/{liquid-f59e1243.js → liquid-a45e3197.js} +2 -2
- package/dist/{liquid-f59e1243.js.map → liquid-a45e3197.js.map} +1 -1
- package/dist/{mdx-831aab9e.js → mdx-701cd16d.js} +2 -2
- package/dist/{mdx-831aab9e.js.map → mdx-701cd16d.js.map} +1 -1
- package/dist/{python-c08d64d5.js → python-9e486ae7.js} +2 -2
- package/dist/{python-c08d64d5.js.map → python-9e486ae7.js.map} +1 -1
- package/dist/{razor-c37a2ffd.js → razor-6bc3c261.js} +2 -2
- package/dist/{razor-c37a2ffd.js.map → razor-6bc3c261.js.map} +1 -1
- package/dist/{tsMode-fe874300.js → tsMode-f84b3afc.js} +2 -2
- package/dist/{tsMode-fe874300.js.map → tsMode-f84b3afc.js.map} +1 -1
- package/dist/{typescript-37e16b75.js → typescript-d99b2a48.js} +2 -2
- package/dist/{typescript-37e16b75.js.map → typescript-d99b2a48.js.map} +1 -1
- package/dist/{xml-68f06860.js → xml-a116de23.js} +2 -2
- package/dist/{xml-68f06860.js.map → xml-a116de23.js.map} +1 -1
- package/dist/{yaml-11d37d04.js → yaml-331a88a9.js} +2 -2
- package/dist/{yaml-11d37d04.js.map → yaml-331a88a9.js.map} +1 -1
- package/package.json +16 -16
|
@@ -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-310e120c.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "@rxdrag/rxcms-models";
|
|
4
4
|
import "@rxdrag/rxcms-models-ui";
|
|
@@ -2074,4 +2074,4 @@ export {
|
|
|
2074
2074
|
toRange,
|
|
2075
2075
|
toTextEdit
|
|
2076
2076
|
};
|
|
2077
|
-
//# sourceMappingURL=cssMode-
|
|
2077
|
+
//# sourceMappingURL=cssMode-a282f3f6.js.map
|