@rxdrag/website-studio 0.0.15 → 0.0.17
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/assets/{tailwind.worker-c33e84b9.js → tailwind.worker-97c39410.js} +2 -2
- package/dist/assets/tailwind.worker-97c39410.js.map +1 -0
- package/dist/astro-component/designer/index.d.ts +6 -4
- package/dist/astro-component/hooks/useExecuteClientScript.d.ts +3 -0
- package/dist/astro-component/preview/AstroComponentPreview.d.ts +3 -1
- package/dist/astro-component/preview/PreviewComponentView.d.ts +11 -0
- package/dist/astro-component/preview/useCalcVariables.d.ts +2 -0
- package/dist/components/CanvasPanel/ResizableWrapper.d.ts +1 -1
- package/dist/components/DocCanvas/ComponentTreeWidget/ComDesignerView.d.ts +5 -0
- package/dist/components/DocCanvas/ComponentTreeWidget/ComponentTreeWidget.d.ts +6 -0
- package/dist/components/DocCanvas/ComponentTreeWidget/classListToClassName.d.ts +6 -0
- package/dist/components/DocCanvas/ComponentTreeWidget/index.d.ts +3 -0
- package/dist/components/DocPreview/DocumentPreview.d.ts +4 -0
- package/dist/components/DocPreview/mock/MockEntify.d.ts +35 -0
- package/dist/components/DocPreview/mock/MockRxPage.d.ts +41 -0
- package/dist/components/DocPreview/mock/categories.d.ts +5 -0
- package/dist/components/DocPreview/mock/index.d.ts +1 -0
- package/dist/components/DocPreview/mock/langs.d.ts +2 -0
- package/dist/components/DocPreview/mock/posts.d.ts +2 -0
- package/dist/components/DocPreview/mock/products.d.ts +2 -0
- package/dist/components/DocPreview/mock/theme.d.ts +3 -0
- package/dist/components/DocPreview/mock/user.d.ts +2 -0
- package/dist/components/StatusBar/index.d.ts +4 -1
- package/dist/components/views/CodeViewport.d.ts +1 -1
- package/dist/components/views/PreviewViewport.d.ts +1 -1
- package/dist/generator/hooks/baseFiles.d.ts +109 -0
- package/dist/generator/hooks/bases/astro.config.mjs.d.ts +1 -0
- package/dist/generator/hooks/bases/createEnv.d.ts +2 -0
- package/dist/generator/hooks/bases/favicon.svg.d.ts +1 -0
- package/dist/generator/hooks/bases/package.json.d.ts +1 -0
- package/dist/generator/hooks/bases/src/base.css.d.ts +2 -0
- package/dist/generator/hooks/bases/src/layouts/Layout.astro.d.ts +1 -0
- package/dist/generator/hooks/bases/src/lib/lib.index.d.ts +1 -0
- package/dist/generator/hooks/bases/src/pages/api/ask-for-quote.ts.d.ts +1 -0
- package/dist/generator/hooks/bases/tailwind.config.mjs.d.ts +1 -0
- package/dist/generator/hooks/bases/tsconfig.json.d.ts +1 -0
- package/dist/generator/hooks/index.d.ts +3 -0
- package/dist/generator/hooks/useGetComponentFiles.d.ts +5 -0
- package/dist/generator/hooks/useGetFiles.d.ts +109 -0
- package/dist/generator/hooks/useGetFrontComponents.d.ts +2 -0
- package/dist/generator/hooks/useGetPageFiles.d.ts +13 -0
- package/dist/generator/hooks/useGetPages.d.ts +2 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/useImportVariables.d.ts +28 -0
- package/dist/hooks/usePreviews.d.ts +5 -0
- package/dist/hooks/useVfs.d.ts +2 -0
- package/dist/index-e69a2bfd.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +13553 -14020
- package/dist/index.mjs.map +1 -1
- package/dist/recoil/atoms.d.ts +2 -2
- package/dist/recoil/selectors.d.ts +1 -1
- package/dist/style.css +6 -1
- package/package.json +22 -21
- package/dist/assets/tailwind.worker-c33e84b9.js.map +0 -1
- package/dist/components/views/OutputPanel.d.ts +0 -1
- package/dist/consts.d.ts +0 -11
- package/dist/generator/classes/ComponentCoder.d.ts +0 -12
- package/dist/generator/classes/ComponentsStore.d.ts +0 -11
- package/dist/generator/classes/Page404Coder.d.ts +0 -10
- package/dist/generator/classes/PageErrorCoder.d.ts +0 -10
- package/dist/generator/classes/WebsiteGenerator.d.ts +0 -16
- package/dist/generator/classes/consts.d.ts +0 -1
- package/dist/generator/templates/IFileTemplate.d.ts +0 -4
- package/dist/generator/templates/app/api.product.$id.d.ts +0 -2
- package/dist/generator/templates/app/ask-for-quote.d.ts +0 -2
- package/dist/generator/templates/app/deploy/env.d.ts +0 -2
- package/dist/generator/templates/app/deploy/get-env.d.ts +0 -2
- package/dist/generator/templates/app/deploy/remix-run-node.d.ts +0 -2
- package/dist/generator/templates/app/page404.d.ts +0 -2
- package/dist/generator/templates/app/pageError.d.ts +0 -2
- package/dist/generator/templates/app/slug.d.ts +0 -2
- package/dist/generator/templates/app/tailwind.d.ts +0 -2
- package/dist/generator/templates/app/types.d.ts +0 -2
- package/dist/generator/templates/env.d.ts +0 -2
- package/dist/generator/templates/eslintrc.d.ts +0 -2
- package/dist/generator/templates/gitignore.d.ts +0 -2
- package/dist/generator/templates/package.d.ts +0 -2
- package/dist/generator/templates/postcss.d.ts +0 -2
- package/dist/generator/templates/readme.d.ts +0 -2
- package/dist/generator/templates/remix.config.d.ts +0 -2
- package/dist/generator/templates/remix.env.d.ts +0 -2
- package/dist/generator/templates/tailwind.config.d.ts +0 -2
- package/dist/generator/templates/tsconfig.d.ts +0 -2
- package/dist/generator/templates/vars.d.ts +0 -17
- package/dist/generator/templates/vite.config.d.ts +0 -2
- package/dist/runtime/index.d.ts +0 -2
- package/dist/runtime/recoil.d.ts +0 -9
- package/dist/runtime/webcontainer/WebcontainerProvider.d.ts +0 -11
- package/dist/runtime/webcontainer/baseFiles.d.ts +0 -50
- package/dist/runtime/webcontainer/contexts.d.ts +0 -4
- package/dist/runtime/webcontainer/hooks/index.d.ts +0 -1
- package/dist/runtime/webcontainer/hooks/useWriteFile.d.ts +0 -3
- package/dist/runtime/webcontainer/index.d.ts +0 -2
- package/dist/runtime/webcontainer/useComponentFiles.d.ts +0 -5
- package/dist/runtime/webcontainer/useFiles.d.ts +0 -50
- package/dist/runtime/webcontainer/usePageFiles.d.ts +0 -5
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function OutputPanel(): import("react/jsx-runtime").JSX.Element;
|
package/dist/consts.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const DEFAULT_POST_COVER_WIDTH = 800;
|
|
2
|
-
export declare const DEFAULT_POST_COVER_HEIGHT = 300;
|
|
3
|
-
export declare const DEFAULT_POST_LIST_COVER_WIDTH = 480;
|
|
4
|
-
export declare const DEFAULT_POST_LIST_COVER_HEIGHT = 180;
|
|
5
|
-
export declare const DEFAULT_POST_LIST_PAGE_SIZE = 10;
|
|
6
|
-
export declare const DEFUALT_USER_POST_LIST_PAGE_SIZE = 10;
|
|
7
|
-
export declare const DEFAULT_PRODUCT_MEDIA_WIDTH = 600;
|
|
8
|
-
export declare const DEFAULT_PRODUCT_MEDIA_HEIGHT = 600;
|
|
9
|
-
export declare const DEFAULT_PRODUCT_LIST_MEDIA_WIDTH = 500;
|
|
10
|
-
export declare const DEFAULT_PRODUCT_LIST_MEDIA_HEIGHT = 400;
|
|
11
|
-
export declare const DEFAULT_PRODUCT_LIST_PAGE_SIZE = 20;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FrontComponent } from "@rxdrag/rxcms-models";
|
|
2
|
-
import { Coder } from "./Coder";
|
|
3
|
-
import { TemplatesStore } from "./ComponentsStore";
|
|
4
|
-
export declare class ComponentCoder extends Coder {
|
|
5
|
-
protected comsStore: TemplatesStore;
|
|
6
|
-
protected component: FrontComponent;
|
|
7
|
-
constructor(comsStore: TemplatesStore, component: FrontComponent);
|
|
8
|
-
getFileName(): string;
|
|
9
|
-
getFileCode(): string;
|
|
10
|
-
getPropsTypeCode(): string;
|
|
11
|
-
getComponent(): FrontComponent;
|
|
12
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FrontComponent } from "@rxdrag/rxcms-models";
|
|
2
|
-
import { ComponentCoder } from "./ComponentCoder";
|
|
3
|
-
import { IMaterial } from "@rxdrag/react-core-pro";
|
|
4
|
-
export declare class TemplatesStore {
|
|
5
|
-
protected components: FrontComponent[];
|
|
6
|
-
materials: IMaterial[];
|
|
7
|
-
coders: ComponentCoder[];
|
|
8
|
-
constructor(components: FrontComponent[], materials: IMaterial[]);
|
|
9
|
-
getComponentCoders(): ComponentCoder[];
|
|
10
|
-
getComponentCoder(name: string): ComponentCoder | undefined;
|
|
11
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Page } from "@rxdrag/rxcms-models";
|
|
2
|
-
import { Coder } from "./Coder";
|
|
3
|
-
import { TemplatesStore } from "./ComponentsStore";
|
|
4
|
-
export declare class Page404Coder extends Coder {
|
|
5
|
-
protected comsStore: TemplatesStore;
|
|
6
|
-
protected page?: Page | undefined;
|
|
7
|
-
constructor(comsStore: TemplatesStore, page?: Page | undefined);
|
|
8
|
-
getFileCode(): string;
|
|
9
|
-
getFileName(): string;
|
|
10
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Page } from "@rxdrag/rxcms-models";
|
|
2
|
-
import { Coder } from "./Coder";
|
|
3
|
-
import { TemplatesStore } from "./ComponentsStore";
|
|
4
|
-
export declare class PageErrorCoder extends Coder {
|
|
5
|
-
protected comsStore: TemplatesStore;
|
|
6
|
-
protected page?: Page | undefined;
|
|
7
|
-
constructor(comsStore: TemplatesStore, page?: Page | undefined);
|
|
8
|
-
getFileCode(): string;
|
|
9
|
-
getFileName(): string;
|
|
10
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Page, WebsiteFrame } from "@rxdrag/rxcms-models";
|
|
2
|
-
import JSZip from "jszip";
|
|
3
|
-
import { IMaterial } from "@rxdrag/react-core-pro";
|
|
4
|
-
import { StudioContextProps } from "../../components/StudioRoot";
|
|
5
|
-
export declare class WebsiteGenerator {
|
|
6
|
-
protected studioProps: StudioContextProps;
|
|
7
|
-
protected materials: IMaterial[];
|
|
8
|
-
protected endpoint: string | undefined;
|
|
9
|
-
constructor(studioProps: StudioContextProps, materials: IMaterial[], endpoint: string | undefined);
|
|
10
|
-
getComponents(): import("@rxdrag/rxcms-models").FrontComponent[];
|
|
11
|
-
getPages(): Page[] | undefined;
|
|
12
|
-
get404Page(): Page | undefined;
|
|
13
|
-
getErrorPage(): Page | undefined;
|
|
14
|
-
getFrame(): WebsiteFrame | undefined;
|
|
15
|
-
generate(): Promise<JSZip>;
|
|
16
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const cnRegex: RegExp;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare const TAILWIND_CONFIG = "#tailwindConfig#";
|
|
2
|
-
export declare const FRAME_CONTENT = "#frameContent#";
|
|
3
|
-
export declare const FRAME_IMPORTS = "#frameImports#";
|
|
4
|
-
export declare const TDATAS_TYPES = "#tdatasTypes#";
|
|
5
|
-
export declare const CSS_CONTENT = "#cssContent#";
|
|
6
|
-
export declare const PAGE_CONTENT = "#content#";
|
|
7
|
-
export declare const PAGE_IMPORTS = "#imports#";
|
|
8
|
-
export declare const APP_NAME = "#appName#";
|
|
9
|
-
export declare const APP_VERSION = "#appVersion#";
|
|
10
|
-
export declare const APP_PPACKAGES = "#appPackages#";
|
|
11
|
-
export declare const WEBSITE_ID = "#websiteId#";
|
|
12
|
-
export declare const ENTIFY_SERVER_URL = "#entifyServerUrl#";
|
|
13
|
-
export declare const LOADER_FUNCTION = "#loader#";
|
|
14
|
-
export declare const USE_LOADER_DATA = "#useLoaderData#";
|
|
15
|
-
export declare const rxcmsModelsVersion = "0.3.43";
|
|
16
|
-
export declare const entifyHooksVersion = "0.2.37";
|
|
17
|
-
export declare const modelRemixLibVersion = "0.1.54";
|
package/dist/runtime/index.d.ts
DELETED
package/dist/runtime/recoil.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export interface RuntimeStatus {
|
|
2
|
-
type: "normal" | "warning" | "error" | "ready" | "starting" | "installing" | "building";
|
|
3
|
-
message: string;
|
|
4
|
-
}
|
|
5
|
-
export declare const terminalState: import("recoil").RecoilState<string[]>;
|
|
6
|
-
export declare const runtimeStatusState: import("recoil").RecoilState<RuntimeStatus>;
|
|
7
|
-
export declare const runtimeRootUrlState: import("recoil").RecoilState<string>;
|
|
8
|
-
export declare const cacheEnabledState: import("recoil").RecoilState<boolean>;
|
|
9
|
-
export declare const runtimeLoadingState: import("recoil").RecoilState<boolean>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { WebContainer } from "@webcontainer/api";
|
|
3
|
-
declare global {
|
|
4
|
-
interface Window {
|
|
5
|
-
__WEBCONTAINER_BOOTED: boolean;
|
|
6
|
-
__WEBCONTAINER_INSTANCE: WebContainer | null;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
export declare function WebcontainerProvider({ children, }: {
|
|
10
|
-
children: React.ReactNode;
|
|
11
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export declare const baseFiles: {
|
|
2
|
-
"package.json": {
|
|
3
|
-
file: {
|
|
4
|
-
contents: string;
|
|
5
|
-
};
|
|
6
|
-
};
|
|
7
|
-
"astro.config.mjs": {
|
|
8
|
-
file: {
|
|
9
|
-
contents: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
"tsconfig.json": {
|
|
13
|
-
file: {
|
|
14
|
-
contents: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
src: {
|
|
18
|
-
directory: {
|
|
19
|
-
layouts: {
|
|
20
|
-
directory: {
|
|
21
|
-
"Layout.astro": {
|
|
22
|
-
file: {
|
|
23
|
-
contents: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
pages: {
|
|
29
|
-
directory: {};
|
|
30
|
-
};
|
|
31
|
-
components: {
|
|
32
|
-
directory: {};
|
|
33
|
-
};
|
|
34
|
-
"env.d.ts": {
|
|
35
|
-
file: {
|
|
36
|
-
contents: string;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
public: {
|
|
42
|
-
directory: {
|
|
43
|
-
"favicon.svg": {
|
|
44
|
-
file: {
|
|
45
|
-
contents: string;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./useWriteFile";
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare function useWriteFile(): (filePath: string, content: string) => Promise<boolean>;
|
|
2
|
-
export declare function useWritePage(): (slug: string, code: string) => Promise<boolean>;
|
|
3
|
-
export declare function useWriteComponent(): (name: string, code: string) => Promise<boolean>;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export declare function useFiles(): {
|
|
2
|
-
src: {
|
|
3
|
-
directory: {
|
|
4
|
-
components: {
|
|
5
|
-
directory: {};
|
|
6
|
-
};
|
|
7
|
-
pages: {
|
|
8
|
-
directory: {};
|
|
9
|
-
};
|
|
10
|
-
layouts: {
|
|
11
|
-
directory: {
|
|
12
|
-
"Layout.astro": {
|
|
13
|
-
file: {
|
|
14
|
-
contents: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
"env.d.ts": {
|
|
20
|
-
file: {
|
|
21
|
-
contents: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
"package.json": {
|
|
27
|
-
file: {
|
|
28
|
-
contents: string;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
"astro.config.mjs": {
|
|
32
|
-
file: {
|
|
33
|
-
contents: string;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
"tsconfig.json": {
|
|
37
|
-
file: {
|
|
38
|
-
contents: string;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
public: {
|
|
42
|
-
directory: {
|
|
43
|
-
"favicon.svg": {
|
|
44
|
-
file: {
|
|
45
|
-
contents: string;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
};
|