@rxdrag/website-studio 0.0.49 → 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.
Files changed (41) hide show
  1. package/dist/components/StatusBar/StopButton.d.ts +1 -1
  2. package/dist/components/common/ImportComponentModal/ImportComponentsTask.d.ts +23 -0
  3. package/dist/components/common/ImportComponentModal/useComponentsImportTask.d.ts +2 -4
  4. package/dist/{cssMode-b245dcc4.js → cssMode-a282f3f6.js} +2 -2
  5. package/dist/{cssMode-b245dcc4.js.map → cssMode-a282f3f6.js.map} +1 -1
  6. package/dist/{freemarker2-530ef1c5.js → freemarker2-f83d1246.js} +2 -2
  7. package/dist/{freemarker2-530ef1c5.js.map → freemarker2-f83d1246.js.map} +1 -1
  8. package/dist/{handlebars-bcc85b9a.js → handlebars-0a80f575.js} +2 -2
  9. package/dist/{handlebars-bcc85b9a.js.map → handlebars-0a80f575.js.map} +1 -1
  10. package/dist/hooks/index.d.ts +1 -0
  11. package/dist/hooks/useStopTask.d.ts +3 -0
  12. package/dist/hooks/useTranlateComponents.d.ts +1 -0
  13. package/dist/hooks/useTranslateRequest.d.ts +13 -0
  14. package/dist/{html-d6634f22.js → html-6a9d914d.js} +2 -2
  15. package/dist/{html-d6634f22.js.map → html-6a9d914d.js.map} +1 -1
  16. package/dist/{htmlMode-ba8f0a0a.js → htmlMode-9f16f56b.js} +2 -2
  17. package/dist/{htmlMode-ba8f0a0a.js.map → htmlMode-9f16f56b.js.map} +1 -1
  18. package/dist/{index-b7a393f5.js → index-310e120c.js} +447 -158
  19. package/dist/{index-b7a393f5.js.map → index-310e120c.js.map} +1 -1
  20. package/dist/index.mjs +1 -1
  21. package/dist/{javascript-f4cdea9d.js → javascript-85b04aa6.js} +3 -3
  22. package/dist/{javascript-f4cdea9d.js.map → javascript-85b04aa6.js.map} +1 -1
  23. package/dist/{jsonMode-d1ffc4d7.js → jsonMode-61089a60.js} +2 -2
  24. package/dist/{jsonMode-d1ffc4d7.js.map → jsonMode-61089a60.js.map} +1 -1
  25. package/dist/{liquid-61fde33b.js → liquid-a45e3197.js} +2 -2
  26. package/dist/{liquid-61fde33b.js.map → liquid-a45e3197.js.map} +1 -1
  27. package/dist/{mdx-da1aa872.js → mdx-701cd16d.js} +2 -2
  28. package/dist/{mdx-da1aa872.js.map → mdx-701cd16d.js.map} +1 -1
  29. package/dist/{python-ac19bfb8.js → python-9e486ae7.js} +2 -2
  30. package/dist/{python-ac19bfb8.js.map → python-9e486ae7.js.map} +1 -1
  31. package/dist/{razor-31e1398a.js → razor-6bc3c261.js} +2 -2
  32. package/dist/{razor-31e1398a.js.map → razor-6bc3c261.js.map} +1 -1
  33. package/dist/{tsMode-1dd13bfc.js → tsMode-f84b3afc.js} +2 -2
  34. package/dist/{tsMode-1dd13bfc.js.map → tsMode-f84b3afc.js.map} +1 -1
  35. package/dist/{typescript-6541a5f9.js → typescript-d99b2a48.js} +2 -2
  36. package/dist/{typescript-6541a5f9.js.map → typescript-d99b2a48.js.map} +1 -1
  37. package/dist/{xml-c8d528af.js → xml-a116de23.js} +2 -2
  38. package/dist/{xml-c8d528af.js.map → xml-a116de23.js.map} +1 -1
  39. package/dist/{yaml-9d155394.js → yaml-331a88a9.js} +2 -2
  40. package/dist/{yaml-9d155394.js.map → yaml-331a88a9.js.map} +1 -1
  41. package/package.json +14 -14
@@ -2,6 +2,6 @@
2
2
  import { ButtonProps } from "@heroui/react";
3
3
  export type StopButtonProps = ButtonProps & {
4
4
  confirm?: string | boolean;
5
- onStop?: () => void;
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
- taskState: TaskData<unknown> | undefined;
5
- importComponents: (ids: string[], needTranslate: boolean) => void;
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-b7a393f5.js";
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-b245dcc4.js.map
2077
+ //# sourceMappingURL=cssMode-a282f3f6.js.map