@rxdrag/website-studio 0.0.2
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/README.md +1 -0
- package/dist/WebsiteStudio.d.ts +4 -0
- package/dist/components/CanvasPanel/BgColorButton.d.ts +4 -0
- package/dist/components/CanvasPanel/CanvasDrawer.d.ts +11 -0
- package/dist/components/CanvasPanel/CanvasNavbar.d.ts +2 -0
- package/dist/components/CanvasPanel/CanvasToolbar.d.ts +5 -0
- package/dist/components/CanvasPanel/CanvasToolbarButton.d.ts +5 -0
- package/dist/components/CanvasPanel/CanvasTools.d.ts +1 -0
- package/dist/components/CanvasPanel/ResizableWrapper.d.ts +4 -0
- package/dist/components/CanvasPanel/ResizeHandler.d.ts +2 -0
- package/dist/components/CanvasPanel/Viewport.d.ts +6 -0
- package/dist/components/CanvasPanel/index.d.ts +6 -0
- package/dist/components/DocCanvas/DocCanvas.d.ts +10 -0
- package/dist/components/DocCanvas/DocFrame.d.ts +12 -0
- package/dist/components/DocCanvas/DocTreeView.d.ts +6 -0
- package/dist/components/DocCanvas/FrameRoutePage.d.ts +1 -0
- package/dist/components/DocCanvas/colors.d.ts +292 -0
- package/dist/components/DocCanvas/index.d.ts +5 -0
- package/dist/components/DocCanvas/useFrameInitialHTML.d.ts +5 -0
- package/dist/components/DocCanvas/useSetIFrameClasses.d.ts +1 -0
- package/dist/components/DocPreview/SchemaPreview.d.ts +8 -0
- package/dist/components/DocPreview/index.d.ts +5 -0
- package/dist/components/EditorScope/index.d.ts +11 -0
- package/dist/components/LeftDrawer/ComponentSchemaPanel/PropsConfig.d.ts +11 -0
- package/dist/components/LeftDrawer/ComponentSchemaPanel/index.d.ts +6 -0
- package/dist/components/LeftDrawer/ComponentTestPanel/PropsTest.d.ts +5 -0
- package/dist/components/LeftDrawer/ComponentTestPanel/index.d.ts +6 -0
- package/dist/components/LeftDrawer/InsertPanel/ComponentsRootNode.d.ts +7 -0
- package/dist/components/LeftDrawer/InsertPanel/SectionsNode.d.ts +8 -0
- package/dist/components/LeftDrawer/InsertPanel/index.d.ts +3 -0
- package/dist/components/LeftDrawer/LayersPanel/index.d.ts +3 -0
- package/dist/components/LeftDrawer/LeftPanel.d.ts +6 -0
- package/dist/components/LeftDrawer/SEMPanel/index.d.ts +3 -0
- package/dist/components/LeftDrawer/SEOPanel/index.d.ts +3 -0
- package/dist/components/LeftDrawer/SNSPanel/index.d.ts +3 -0
- package/dist/components/LeftDrawer/index.d.ts +7 -0
- package/dist/components/Leftbar/LeftbarButtion.d.ts +9 -0
- package/dist/components/Leftbar/ThemeSettingsDrawer/CssPanel.d.ts +2 -0
- package/dist/components/Leftbar/ThemeSettingsDrawer/ExtendsPanel.d.ts +1 -0
- package/dist/components/Leftbar/ThemeSettingsDrawer/ExtendsTable.d.ts +11 -0
- package/dist/components/Leftbar/ThemeSettingsDrawer/PostPanel.d.ts +5 -0
- package/dist/components/Leftbar/ThemeSettingsDrawer/ProductPanel.d.ts +5 -0
- package/dist/components/Leftbar/ThemeSettingsDrawer/RatioSelect.d.ts +2 -0
- package/dist/components/Leftbar/ThemeSettingsDrawer/TailwindPanel.d.ts +2 -0
- package/dist/components/Leftbar/ThemeSettingsDrawer/index.d.ts +1 -0
- package/dist/components/Leftbar/index.d.ts +17 -0
- package/dist/components/NodeNavs/NodeTag.d.ts +8 -0
- package/dist/components/NodeNavs/index.d.ts +6 -0
- package/dist/components/NodeNavs/useNodesOnPath.d.ts +2 -0
- package/dist/components/OutlineTree/OutlineNode.d.ts +5 -0
- package/dist/components/OutlineTree/index.d.ts +2 -0
- package/dist/components/PropsPanel/PromptInput.d.ts +4 -0
- package/dist/components/PropsPanel/index.d.ts +3 -0
- package/dist/components/SettingsForm/SettingsForm.d.ts +2 -0
- package/dist/components/SettingsForm/index.d.ts +2 -0
- package/dist/components/SettingsForm/locales.d.ts +188 -0
- package/dist/components/Sheet.d.ts +3 -0
- package/dist/components/StudioCore/ThemeSetup.d.ts +1 -0
- package/dist/components/StudioCore/Welcome.d.ts +1 -0
- package/dist/components/StudioCore/index.d.ts +6 -0
- package/dist/components/StudioCore/useMetaFilters.d.ts +2 -0
- package/dist/components/StudioRoot/StudioRoot.d.ts +5 -0
- package/dist/components/StudioRoot/contexts.d.ts +19 -0
- package/dist/components/StudioRoot/index.d.ts +2 -0
- package/dist/components/Toolbar/MenuContent/PagesNode.d.ts +6 -0
- package/dist/components/Toolbar/MenuContent/PredefinedPageNode.d.ts +11 -0
- package/dist/components/Toolbar/MenuContent/PredefinedPages.d.ts +6 -0
- package/dist/components/Toolbar/MenuContent/index.d.ts +6 -0
- package/dist/components/Toolbar/index.d.ts +2 -0
- package/dist/components/actions/CollectComponentButton.d.ts +1 -0
- package/dist/components/actions/CollectTemplateIconButton.d.ts +3 -0
- package/dist/components/actions/ComponentSaveButton.d.ts +1 -0
- package/dist/components/actions/FrameSaveButton.d.ts +1 -0
- package/dist/components/actions/PageSaveButton.d.ts +1 -0
- package/dist/components/actions/SaveAlertDialog.d.ts +6 -0
- package/dist/components/actions/SlotSettingButton.d.ts +1 -0
- package/dist/components/actions/TemplateSaveButton.d.ts +1 -0
- package/dist/components/common/ComponentCategoryList/ComponentCategoryModal.d.ts +4 -0
- package/dist/components/common/ComponentCategoryList/ComponentCategoryNode.d.ts +9 -0
- package/dist/components/common/ComponentCategoryList/ComponentList.d.ts +13 -0
- package/dist/components/common/ComponentCategoryList/ComponentModal.d.ts +9 -0
- package/dist/components/common/ComponentCategoryList/ComponentNode.d.ts +8 -0
- package/dist/components/common/ComponentCategoryList/index.d.ts +5 -0
- package/dist/components/common/ComponentCategoryListScope/index.d.ts +5 -0
- package/dist/components/common/MaterialNodeView.d.ts +4 -0
- package/dist/components/common/PageList/PageModal.d.ts +7 -0
- package/dist/components/common/PageList/PageNode.d.ts +7 -0
- package/dist/components/common/PageList/index.d.ts +6 -0
- package/dist/components/common/PageScope/index.d.ts +5 -0
- package/dist/components/common/TemplateCategoryList/TemplateCategoryModal.d.ts +6 -0
- package/dist/components/common/TemplateCategoryList/TemplateCategoryNode.d.ts +10 -0
- package/dist/components/common/TemplateCategoryList/TemplateList.d.ts +14 -0
- package/dist/components/common/TemplateCategoryList/TemplateModal.d.ts +10 -0
- package/dist/components/common/TemplateCategoryList/TemplateNode.d.ts +9 -0
- package/dist/components/common/TemplateCategoryList/index.d.ts +6 -0
- package/dist/components/common/TemplateCategoryListScope/index.d.ts +6 -0
- package/dist/components/common/WebComponents/index.d.ts +1 -0
- package/dist/components/common/WebComponents/useOrRegisterRecouceNode.d.ts +3 -0
- package/dist/components/common/index.d.ts +8 -0
- package/dist/components/common/utils.d.ts +5 -0
- package/dist/components/views/CodeViewport/consts.d.ts +1 -0
- package/dist/components/views/CodeViewport/index.d.ts +2 -0
- package/dist/components/views/CodeViewport/useTransCodeToJson.d.ts +4 -0
- package/dist/components/views/CodeViewport/useTransJsonToCode.d.ts +4 -0
- package/dist/components/views/DesignViewport.d.ts +7 -0
- package/dist/components/views/PreviewViewport.d.ts +4 -0
- package/dist/customize/consts.d.ts +2 -0
- package/dist/customize/designer/index.d.ts +7 -0
- package/dist/customize/funcs.d.ts +6 -0
- package/dist/customize/hooks/index.d.ts +2 -0
- package/dist/customize/hooks/useCustomizedMaterials.d.ts +2 -0
- package/dist/customize/hooks/useFrontComponent.d.ts +1 -0
- package/dist/customize/index.d.ts +1 -0
- package/dist/customize/preview.d.ts +7 -0
- package/dist/customize/setter/CustomizedComponentPropsSetter/InputControl.d.ts +7 -0
- package/dist/customize/setter/CustomizedComponentPropsSetter/index.d.ts +6 -0
- package/dist/customize/setter/index.d.ts +1 -0
- package/dist/decorators/SlotDecorator.d.ts +8 -0
- package/dist/hooks/useCheckSlotName.d.ts +1 -0
- package/dist/hooks/useFrameSchema.d.ts +16 -0
- package/dist/hooks/useIsSlotable.d.ts +1 -0
- package/dist/hooks/useMergeComponentSchema.d.ts +3 -0
- package/dist/hooks/useSchema.d.ts +19 -0
- package/dist/hooks/useSplitComponentSchema.d.ts +5 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +15544 -0
- package/dist/index.mjs.map +1 -0
- package/dist/plugins/ContentEditor/controls/AbstractMiniButton.d.ts +10 -0
- package/dist/plugins/ContentEditor/controls/MarkButton.d.ts +15 -0
- package/dist/plugins/ContentEditor/getClildrenNodes.d.ts +3 -0
- package/dist/plugins/ContentEditor/index.d.ts +30 -0
- package/dist/plugins/index.d.ts +1 -0
- package/dist/preview/ComponentView.d.ts +19 -0
- package/dist/preview/PreviewRender.d.ts +10 -0
- package/dist/preview/contexts.d.ts +3 -0
- package/dist/preview/hooks/defualtProductRichText.d.ts +82 -0
- package/dist/preview/hooks/index.d.ts +2 -0
- package/dist/preview/hooks/useMotionProps.d.ts +3 -0
- package/dist/preview/hooks/usePreviewComponent.d.ts +45 -0
- package/dist/preview/hooks/usePreviewComponents.d.ts +1 -0
- package/dist/preview/hooks/useValue.d.ts +10 -0
- package/dist/preview/index.d.ts +5 -0
- package/dist/preview/transform.d.ts +4 -0
- package/dist/recoil/atoms.d.ts +21 -0
- package/dist/recoil/selectors.d.ts +1 -0
- package/dist/resources/data/fields.d.ts +8 -0
- package/dist/resources/data/index.d.ts +2 -0
- package/dist/resources/data/roots.d.ts +4 -0
- package/dist/resources/index.d.ts +2 -0
- package/dist/resources/resourceTreeNodes.d.ts +2 -0
- package/dist/resources/types.d.ts +7 -0
- package/dist/setters/index.d.ts +2 -0
- package/dist/style.css +21 -0
- package/dist/types.d.ts +31 -0
- package/package.json +76 -0
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
export declare const settingLocales: {
|
|
2
|
+
"zh-CN": {
|
|
3
|
+
setters: {
|
|
4
|
+
edit: string;
|
|
5
|
+
delete: string;
|
|
6
|
+
font: string;
|
|
7
|
+
fontWeight: string;
|
|
8
|
+
fontStyle: string;
|
|
9
|
+
fontColor: string;
|
|
10
|
+
fontSize: string;
|
|
11
|
+
fontLineHeight: string;
|
|
12
|
+
textAlign: string;
|
|
13
|
+
fontDecoration: string;
|
|
14
|
+
margin: string;
|
|
15
|
+
marginTop: string;
|
|
16
|
+
marginRight: string;
|
|
17
|
+
marginBottom: string;
|
|
18
|
+
marginLeft: string;
|
|
19
|
+
padding: string;
|
|
20
|
+
paddingTop: string;
|
|
21
|
+
paddingRight: string;
|
|
22
|
+
paddingBottom: string;
|
|
23
|
+
paddingLeft: string;
|
|
24
|
+
borderRadius: string;
|
|
25
|
+
borderTopLeftRadius: string;
|
|
26
|
+
borderTopRightRadius: string;
|
|
27
|
+
borderBottomRightRadius: string;
|
|
28
|
+
borderBottomLeftRadius: string;
|
|
29
|
+
border: string;
|
|
30
|
+
opacity: string;
|
|
31
|
+
height: string;
|
|
32
|
+
width: string;
|
|
33
|
+
background: string;
|
|
34
|
+
shadow: string;
|
|
35
|
+
style: string;
|
|
36
|
+
display: string;
|
|
37
|
+
confirm: string;
|
|
38
|
+
cancel: string;
|
|
39
|
+
image: string;
|
|
40
|
+
imageSize: string;
|
|
41
|
+
repeat: string;
|
|
42
|
+
position: string;
|
|
43
|
+
selectImage: string;
|
|
44
|
+
fieldName: string;
|
|
45
|
+
validation: string;
|
|
46
|
+
validateRules: string;
|
|
47
|
+
defaultValue: string;
|
|
48
|
+
value: string;
|
|
49
|
+
fieldDefine: string;
|
|
50
|
+
fieldBind: string;
|
|
51
|
+
fieldSettings: string;
|
|
52
|
+
valuePropName: string;
|
|
53
|
+
trigger: string;
|
|
54
|
+
withBind: string;
|
|
55
|
+
controller: string;
|
|
56
|
+
config: string;
|
|
57
|
+
script: string;
|
|
58
|
+
reactions: string;
|
|
59
|
+
configController: string;
|
|
60
|
+
configScript: string;
|
|
61
|
+
controllerName: string;
|
|
62
|
+
global: string;
|
|
63
|
+
init: string;
|
|
64
|
+
destroy: string;
|
|
65
|
+
onClick: string;
|
|
66
|
+
onChange: string;
|
|
67
|
+
boolean: string;
|
|
68
|
+
number: string;
|
|
69
|
+
string: string;
|
|
70
|
+
editJson: string;
|
|
71
|
+
formatError: string;
|
|
72
|
+
pattern: string;
|
|
73
|
+
editable: string;
|
|
74
|
+
visible: string;
|
|
75
|
+
hidden: string;
|
|
76
|
+
disabled: string;
|
|
77
|
+
readOnly: string;
|
|
78
|
+
readPretty: string;
|
|
79
|
+
IconInput: {
|
|
80
|
+
DialogTitle: string;
|
|
81
|
+
Outlined: string;
|
|
82
|
+
Filled: string;
|
|
83
|
+
TwoTone: string;
|
|
84
|
+
Directional: string;
|
|
85
|
+
Suggested: string;
|
|
86
|
+
Editor: string;
|
|
87
|
+
IconLib: string;
|
|
88
|
+
Customized: string;
|
|
89
|
+
};
|
|
90
|
+
ExpressionInput: {
|
|
91
|
+
DialogTitle: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
'en-US': {
|
|
96
|
+
setters: {
|
|
97
|
+
edit: string;
|
|
98
|
+
delete: string;
|
|
99
|
+
font: string;
|
|
100
|
+
fontWeight: string;
|
|
101
|
+
fontStyle: string;
|
|
102
|
+
fontColor: string;
|
|
103
|
+
fontSize: string;
|
|
104
|
+
fontLineHeight: string;
|
|
105
|
+
textAlign: string;
|
|
106
|
+
fontDecoration: string;
|
|
107
|
+
margin: string;
|
|
108
|
+
marginTop: string;
|
|
109
|
+
marginRight: string;
|
|
110
|
+
marginBottom: string;
|
|
111
|
+
marginLeft: string;
|
|
112
|
+
padding: string;
|
|
113
|
+
paddingTop: string;
|
|
114
|
+
paddingRight: string;
|
|
115
|
+
paddingBottom: string;
|
|
116
|
+
paddingLeft: string;
|
|
117
|
+
borderRadius: string;
|
|
118
|
+
borderTopLeftRadius: string;
|
|
119
|
+
borderTopRightRadius: string;
|
|
120
|
+
borderBottomRightRadius: string;
|
|
121
|
+
borderBottomLeftRadius: string;
|
|
122
|
+
border: string;
|
|
123
|
+
opacity: string;
|
|
124
|
+
height: string;
|
|
125
|
+
width: string;
|
|
126
|
+
background: string;
|
|
127
|
+
shadow: string;
|
|
128
|
+
style: string;
|
|
129
|
+
display: string;
|
|
130
|
+
confirm: string;
|
|
131
|
+
cancel: string;
|
|
132
|
+
image: string;
|
|
133
|
+
imageSize: string;
|
|
134
|
+
repeat: string;
|
|
135
|
+
position: string;
|
|
136
|
+
selectImage: string;
|
|
137
|
+
fieldName: string;
|
|
138
|
+
validation: string;
|
|
139
|
+
validateRules: string;
|
|
140
|
+
defaultValue: string;
|
|
141
|
+
value: string;
|
|
142
|
+
fieldDefine: string;
|
|
143
|
+
fieldBind: string;
|
|
144
|
+
fieldSettings: string;
|
|
145
|
+
valuePropName: string;
|
|
146
|
+
trigger: string;
|
|
147
|
+
withBind: string;
|
|
148
|
+
controller: string;
|
|
149
|
+
config: string;
|
|
150
|
+
script: string;
|
|
151
|
+
reactions: string;
|
|
152
|
+
configController: string;
|
|
153
|
+
configScript: string;
|
|
154
|
+
controllerName: string;
|
|
155
|
+
global: string;
|
|
156
|
+
init: string;
|
|
157
|
+
destroy: string;
|
|
158
|
+
onClick: string;
|
|
159
|
+
onChange: string;
|
|
160
|
+
boolean: string;
|
|
161
|
+
number: string;
|
|
162
|
+
string: string;
|
|
163
|
+
editJson: string;
|
|
164
|
+
formatError: string;
|
|
165
|
+
pattern: string;
|
|
166
|
+
editable: string;
|
|
167
|
+
visible: string;
|
|
168
|
+
hidden: string;
|
|
169
|
+
disabled: string;
|
|
170
|
+
readOnly: string;
|
|
171
|
+
readPretty: string;
|
|
172
|
+
IconInput: {
|
|
173
|
+
DialogTitle: string;
|
|
174
|
+
Outlined: string;
|
|
175
|
+
Filled: string;
|
|
176
|
+
TwoTone: string;
|
|
177
|
+
Directional: string;
|
|
178
|
+
Suggested: string;
|
|
179
|
+
Editor: string;
|
|
180
|
+
IconLib: string;
|
|
181
|
+
Customized: string;
|
|
182
|
+
};
|
|
183
|
+
ExpressionInput: {
|
|
184
|
+
DialogTitle: string;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ThemeSetup(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function Welcome(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { ExtendField } from "@rxdrag/rxcms-models";
|
|
2
|
+
export declare function useMetaFilters(componentProps: object | undefined, fields: ExtendField[] | undefined): ((meta?: import("@rxdrag/schema-pro").INodeMeta<unknown, object, unknown> | undefined) => import("@rxdrag/schema-pro").INodeMeta<unknown, object, unknown> | undefined)[];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ListResult } from "@rxdrag/entify-hooks";
|
|
2
|
+
import { FrontComponent, Page, Template, Theme } from "@rxdrag/rxcms-models";
|
|
3
|
+
import React from "react";
|
|
4
|
+
export type StudioContextType = {
|
|
5
|
+
websiteId?: string;
|
|
6
|
+
templates?: Template[];
|
|
7
|
+
components?: FrontComponent[];
|
|
8
|
+
pages?: ListResult<Page>;
|
|
9
|
+
theme?: Theme;
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare const StudioContext: React.Context<StudioContextType>;
|
|
13
|
+
export declare function useTemplates(): Template[] | undefined;
|
|
14
|
+
export declare function useFrontComponents(): FrontComponent[] | undefined;
|
|
15
|
+
export declare function useWebsiteTheme(): Theme | undefined;
|
|
16
|
+
export declare function useThemeTailwindConfig(): string | undefined;
|
|
17
|
+
export declare function useThemeSettings(): import("@rxdrag/rxcms-models").ThemeSettings | undefined;
|
|
18
|
+
export declare function usePages(): ListResult<Page> | undefined;
|
|
19
|
+
export declare function useStudioLoading(): boolean | undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PageType } from "@rxdrag/rxcms-models";
|
|
2
|
+
import { SelectedContent } from "../../../types";
|
|
3
|
+
export type PredefinedTemplateNodeProps = {
|
|
4
|
+
websiteId: string;
|
|
5
|
+
title: string;
|
|
6
|
+
pageType: PageType;
|
|
7
|
+
selectedContent?: SelectedContent;
|
|
8
|
+
onSelect?: (id: string | undefined | null, title: string, pageType: PageType) => void;
|
|
9
|
+
showThumbnail?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare function PredefinedPageNode(props: PredefinedTemplateNodeProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SelectedContent } from "../../../types";
|
|
3
|
+
export declare const MenuContent: import("react").MemoExoticComponent<(props: {
|
|
4
|
+
selectedContent?: SelectedContent | undefined;
|
|
5
|
+
onSelectContent?: ((content?: SelectedContent) => void) | undefined;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function CollectComponentButton(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ComponentSaveButton(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function FrameSaveButton(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function PageSaveButton(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function SlotSettingButton(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function TemplateSaveButton(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentCategory } from "@rxdrag/rxcms-models";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export declare const ComponentCategoryNode: React.MemoExoticComponent<(props: {
|
|
4
|
+
category: ComponentCategory;
|
|
5
|
+
themeId: string;
|
|
6
|
+
readonly?: boolean | undefined;
|
|
7
|
+
selectedId?: string | null | undefined;
|
|
8
|
+
onSelect?: ((id: string | null) => void) | undefined;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ComponentCategory, FrontComponent } from "@rxdrag/rxcms-models";
|
|
2
|
+
import { ListResult } from "@rxdrag/entify-hooks";
|
|
3
|
+
export declare function ComponentList(props: {
|
|
4
|
+
themeId: string;
|
|
5
|
+
readonly?: boolean;
|
|
6
|
+
list?: ListResult<FrontComponent>;
|
|
7
|
+
category?: ComponentCategory;
|
|
8
|
+
newComponent?: FrontComponent;
|
|
9
|
+
noCagegory?: boolean;
|
|
10
|
+
selectedId?: string | null;
|
|
11
|
+
onSelect?: (id: string | null) => void;
|
|
12
|
+
onClearNewComponent?: () => void;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FrontComponent } from '@rxdrag/rxcms-models';
|
|
2
|
+
export declare function ComponentModal(props: {
|
|
3
|
+
themeId: string;
|
|
4
|
+
value?: FrontComponent;
|
|
5
|
+
noCagegory?: boolean;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
categoryId: string | undefined | null;
|
|
8
|
+
onFilter?: (value: FrontComponent) => FrontComponent;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FrontComponent } from "@rxdrag/rxcms-models";
|
|
2
|
+
export declare function ComponentNode(props: {
|
|
3
|
+
component: FrontComponent;
|
|
4
|
+
readonly?: boolean;
|
|
5
|
+
categoryId: string | undefined | null;
|
|
6
|
+
selectedId?: string | null;
|
|
7
|
+
onSelect?: (id: string | null) => void;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TemplateCategory } from "@rxdrag/rxcms-models";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export declare const TemplateCategoryNode: React.MemoExoticComponent<(props: {
|
|
4
|
+
category: TemplateCategory;
|
|
5
|
+
themeId: string;
|
|
6
|
+
websiteId: string;
|
|
7
|
+
readonly?: boolean | undefined;
|
|
8
|
+
selectedId?: string | null | undefined;
|
|
9
|
+
onSelect?: ((id: string | null, breadcrumbs: string[]) => void) | undefined;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Template, TemplateCategory } from "@rxdrag/rxcms-models";
|
|
2
|
+
import { ListResult } from "@rxdrag/entify-hooks";
|
|
3
|
+
export declare function TemplateList(props: {
|
|
4
|
+
themeId: string;
|
|
5
|
+
websiteId: string;
|
|
6
|
+
readonly?: boolean;
|
|
7
|
+
list?: ListResult<Template>;
|
|
8
|
+
category?: TemplateCategory;
|
|
9
|
+
newTemplate?: Template;
|
|
10
|
+
noCagegory?: boolean;
|
|
11
|
+
onClearNewTemplate?: () => void;
|
|
12
|
+
selectedId?: string | null;
|
|
13
|
+
onSelect?: (id: string | null) => void;
|
|
14
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Template } from '@rxdrag/rxcms-models';
|
|
2
|
+
export declare function TemplateModal(props: {
|
|
3
|
+
themeId: string;
|
|
4
|
+
websiteId: string;
|
|
5
|
+
value?: Template;
|
|
6
|
+
noCagegory?: boolean;
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
categoryId: string | undefined | null;
|
|
9
|
+
onFilter?: (value: Template) => Template;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Template } from "@rxdrag/rxcms-models";
|
|
2
|
+
export declare function TemplateNode(props: {
|
|
3
|
+
template: Template;
|
|
4
|
+
readonly?: boolean;
|
|
5
|
+
categoryId: string | undefined | null;
|
|
6
|
+
selectedId?: string | null;
|
|
7
|
+
onSelect?: (id: string | null) => void;
|
|
8
|
+
showThumbnail?: boolean;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function WebComponents(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./ComponentCategoryList";
|
|
2
|
+
export * from "./ComponentCategoryListScope";
|
|
3
|
+
export * from "./WebComponents";
|
|
4
|
+
export * from "./PageList";
|
|
5
|
+
export * from "./PageScope";
|
|
6
|
+
export * from "./TemplateCategoryList";
|
|
7
|
+
export * from "./TemplateCategoryListScope";
|
|
8
|
+
export * from "./utils";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PREFIX_JSON = "$json$:";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { INodeSchema } from "@rxdrag/schema-pro";
|
|
2
|
+
export declare function kebabToCamel(kebabStr: string): string;
|
|
3
|
+
export declare function kebabToCamelAll(kebabStr: string): string;
|
|
4
|
+
export declare function useTransCodeToJson(): (code: string) => INodeSchema<unknown, unknown, unknown>[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { INodeSchema } from "@rxdrag/schema-pro";
|
|
2
|
+
export declare function camelToKebab(camelStr?: string): string | undefined;
|
|
3
|
+
export declare function startsWithLowerCase(str: string): boolean;
|
|
4
|
+
export declare function useTransJsonToCode(): (json?: INodeSchema<unknown, unknown> | null) => string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MetaFilter, RxPropsFilter } from "@rxdrag/react-core-pro";
|
|
2
|
+
import { IDecorator } from "@rxdrag/core-pro";
|
|
3
|
+
export declare function DesignViewport(props: {
|
|
4
|
+
rxPropsFilter?: RxPropsFilter;
|
|
5
|
+
metaFilters?: MetaFilter[];
|
|
6
|
+
decorators?: IDecorator[];
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RXID_ATTR_NAME } from "@rxdrag/core-pro";
|
|
2
|
+
import { XComponentProps } from "../preview";
|
|
3
|
+
export declare const XComponentDesigner: (props: XComponentProps & {
|
|
4
|
+
[RXID_ATTR_NAME]: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ExtendField } from "@rxdrag/rxcms-models";
|
|
2
|
+
import { INodeMeta, INodeSchema } from "@rxdrag/schema-pro";
|
|
3
|
+
export declare function getCustomizedComponentName(name: string): string;
|
|
4
|
+
export declare const getCode: (text?: string) => string | undefined;
|
|
5
|
+
export declare const codeRunFilter: (componentProps: object | undefined, fields: ExtendField[] | undefined) => (meta?: INodeMeta) => INodeMeta<unknown, object, unknown> | undefined;
|
|
6
|
+
export declare const filterSchema: (nodeSchema: INodeSchema, componentProps: object | undefined, fields: ExtendField[] | undefined) => INodeSchema;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useFrontComponent(name: string | undefined): import("@rxdrag/rxcms-models").FrontComponent | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./hooks";
|