yy-forms 1.0.0

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 (62) hide show
  1. package/.fatherrc.js +37 -0
  2. package/CHANGELOG.md +254 -0
  3. package/LICENSE +21 -0
  4. package/README.md +99 -0
  5. package/dist/index.d.ts +145 -0
  6. package/dist/index.esm.js +4006 -0
  7. package/dist/index.js +4041 -0
  8. package/es/Provider.js +248 -0
  9. package/es/index.d.ts +145 -0
  10. package/es/index.js +44 -0
  11. package/es/settings/index.js +975 -0
  12. package/es/styles/atom.less +1134 -0
  13. package/es/styles/index.less +358 -0
  14. package/es/transformer/form-render.js +75 -0
  15. package/es/utils/context.js +3 -0
  16. package/es/utils/hooks.js +48 -0
  17. package/es/utils/index.js +706 -0
  18. package/es/utils/mapping.js +31 -0
  19. package/es/utils/serialize.js +276 -0
  20. package/es/widgets/htmlInput.js +20 -0
  21. package/es/widgets/idInput.js +23 -0
  22. package/es/widgets/index.js +5 -0
  23. package/es/widgets/jsonInput.js +24 -0
  24. package/es/widgets/list.js +24 -0
  25. package/es/widgets/percentSlider.js +89 -0
  26. package/package.json +53 -0
  27. package/src/Provider.jsx +239 -0
  28. package/src/components/Canvas/core/RenderChildren.jsx +18 -0
  29. package/src/components/Canvas/core/RenderField.jsx +129 -0
  30. package/src/components/Canvas/core/Wrapper.jsx +298 -0
  31. package/src/components/Canvas/core/Wrapper.less +57 -0
  32. package/src/components/Canvas/core/index.jsx +171 -0
  33. package/src/components/Canvas/index.jsx +178 -0
  34. package/src/components/Settings/GlobalSettings.jsx +48 -0
  35. package/src/components/Settings/ItemSettings.jsx +143 -0
  36. package/src/components/Settings/index.jsx +75 -0
  37. package/src/components/Settings/index.less +25 -0
  38. package/src/components/Sidebar/Element.jsx +80 -0
  39. package/src/components/Sidebar/Element.less +18 -0
  40. package/src/components/Sidebar/index.jsx +47 -0
  41. package/src/components/Sidebar/index.less +23 -0
  42. package/src/i18next/index.ts +14 -0
  43. package/src/i18next/locales/enUS.json +60 -0
  44. package/src/i18next/locales/resources.ts +7 -0
  45. package/src/i18next/locales/zhCN.json +3 -0
  46. package/src/index.d.ts +145 -0
  47. package/src/index.js +45 -0
  48. package/src/settings/index.js +1058 -0
  49. package/src/styles/atom.less +1134 -0
  50. package/src/styles/index.less +358 -0
  51. package/src/transformer/form-render.js +65 -0
  52. package/src/utils/context.js +4 -0
  53. package/src/utils/hooks.js +35 -0
  54. package/src/utils/index.js +678 -0
  55. package/src/utils/mapping.js +29 -0
  56. package/src/utils/serialize.js +368 -0
  57. package/src/widgets/htmlInput.jsx +24 -0
  58. package/src/widgets/idInput.jsx +27 -0
  59. package/src/widgets/index.js +6 -0
  60. package/src/widgets/jsonInput.jsx +29 -0
  61. package/src/widgets/list.jsx +28 -0
  62. package/src/widgets/percentSlider.jsx +74 -0
package/.fatherrc.js ADDED
@@ -0,0 +1,37 @@
1
+ import commonjs from 'rollup-plugin-commonjs';
2
+ import copy from 'rollup-plugin-copy';
3
+
4
+ export default {
5
+ esm: 'rollup',
6
+ cjs: 'rollup',
7
+ lessInBabelMode: true,
8
+ lessInRollupMode: {},
9
+ extraRollupPlugins: [
10
+ commonjs({
11
+ include: '../../node_modules/**',
12
+ }),
13
+ copy({
14
+ targets: [{ src: 'src/index.d.ts', dest: 'dist/' }],
15
+ }),
16
+ ],
17
+ extraBabelPlugins: [
18
+ [
19
+ 'import',
20
+ {
21
+ libraryName: 'antd',
22
+ libraryDirectory: 'es',
23
+ style: true,
24
+ },
25
+ 'antd',
26
+ ],
27
+ [
28
+ 'import',
29
+ {
30
+ libraryName: '@ant-design/icons',
31
+ libraryDirectory: 'lib/icons',
32
+ camel2DashComponentName: false,
33
+ },
34
+ '@ant-design/icons',
35
+ ],
36
+ ],
37
+ };
package/CHANGELOG.md ADDED
@@ -0,0 +1,254 @@
1
+ # Change Log
2
+
3
+ ### 2.8.5
4
+ - [!] 修复schema 默认有 labelWidth时,配置项重新设置 lableWidth,预览区没有效果
5
+
6
+ ### 2.8.1
7
+
8
+ - [!] 支持 React18
9
+
10
+ ### 2.8.0
11
+
12
+ - [+] 新增`locale`参数,支持国际化配置,默认为`cn`,可选值为`cn`或`en`
13
+
14
+ ### 2.7.9
15
+
16
+ - [+] `globalSettings` 为空,隐藏 `设计器` 的表单配置模块
17
+ - [+] 添加`preview`参数,用于在外部控制`预览/编辑态`
18
+
19
+ ### 2.7.0
20
+
21
+ - [+] 新增 `fieldRender` 及 `fieldWrapperRender`,支持自定义组件渲染
22
+ - [+] 新增校验错误项获取方法 `getErrorFields`
23
+ - [!] 配置项校验逻辑
24
+
25
+ ### 2.6.2
26
+
27
+ - [+] 新增 `getId` 属性,支持自定义 id 生成逻辑
28
+ - [+] `canDelete` 属性支持异步逻辑
29
+ - [+] `settings` 配置合并顺序优化
30
+ - [!] 配置面板数据更新
31
+ - [!] 时间选择组件配置
32
+
33
+ ### 2.6.1
34
+
35
+ - [!] 预览态表单数据同步
36
+
37
+ ### 2.6.0
38
+
39
+ - [+] 组件面板支持自定义 Icon
40
+ - [+] 选中项添加类名 `selected-field-wrapper`
41
+ - [!] 更正部分类型定义
42
+
43
+ ### 2.5.8
44
+
45
+ - [!] 修复全局配置默认值
46
+
47
+ ### 2.5.7
48
+
49
+ - [!] 配置逻辑兼容新版 FormRender
50
+
51
+ ### 2.5.6
52
+
53
+ - [!] 修复复制操作配置校验
54
+
55
+ ### 2.5.5
56
+
57
+ - [+] 新增配置项校验支持
58
+
59
+ ### 2.5.4
60
+
61
+ - [+] 新增标题展示模式配置
62
+ - [+] 新增组件隐藏及重复提示
63
+ - [!] 修复配置复制功能
64
+
65
+ ### 2.5.3
66
+
67
+ - [!] 修复类型定义错误
68
+ - [!] 修复 fixedName 属性对拖拽新增组件不生效的问题
69
+
70
+ ### 2.5.2
71
+
72
+ - [+] 新增导入及清除 schema 事件
73
+ - [+] 新增 canDrag 及 canDelete 属性
74
+ - [+] 增强操作按钮自定义能力
75
+ - [!] 修复 HTML 组件配置
76
+
77
+ ### 2.5.1
78
+
79
+ - [!] 修复类型定义错误
80
+
81
+ ### 2.5.0
82
+
83
+ - [+] 新增组件选择事件
84
+
85
+ ### 2.4.5
86
+
87
+ - [+] 优化枚举编辑组件,新增 `transformer.toSetting` 及 `transformer.fromSetting`
88
+ - [!] 修复懒加载组件渲染异常的问题
89
+ - [!] 修复编辑模式 `className` 属性支持
90
+
91
+ ### 2.4.4
92
+
93
+ - [!] 修复构建配置,解决样式丢失问题
94
+
95
+ ### 2.4.3
96
+
97
+ - [!] 更正类型定义
98
+
99
+ ### 2.4.2
100
+
101
+ - [!] 修复 forward ref
102
+ - [!] 修复 antd 样式污染
103
+ - [+] 更新类型定义
104
+
105
+ ### 2.4.1
106
+
107
+ - [+] Sidebar 组件新增 `fixedName` 属性
108
+
109
+ ### 2.4.0
110
+
111
+ - [+] 支持自定义编辑器布局
112
+
113
+ ### 2.1.2
114
+
115
+ - [!] 数组类型兼容新版 FromRender
116
+
117
+ ### 2.1.1
118
+
119
+ - [!] 兼容新版 FromRender
120
+ - [!] 修复编辑模式 `format` 属性支持
121
+ - [!] 修复自定义组件配置默认值
122
+
123
+ ### 2.1.0
124
+
125
+ - [+] 新增 `hideId` 及 `controlButtons` 属性
126
+ - [!] 修复全局配置循环更新的问题
127
+ - [!] 修复 `labelWidth` 配置
128
+ - [!] 修复自定义全局配置
129
+
130
+ ### 2.0.3
131
+
132
+ - [+] 新增 `mapping` 属性
133
+ - [+] 简化侧栏配置格式
134
+ - [!] 修复选择项切换异常的问题
135
+
136
+ ### 2.0.2
137
+
138
+ - [+] 更新内部 schema
139
+ - [!] 修复 `setValue` 方法
140
+
141
+ ### 2.0.1
142
+
143
+ - [!] 修复选择对象层级会清空画布的问题
144
+
145
+ ### 2.0.0
146
+
147
+ - [+] 更新适配 FormRender 1.x
148
+
149
+ ### 1.1.0
150
+
151
+ - [+] 元素添加“必填”的设置功能
152
+ - [+] 写了.d.ts 文件,以便支持 typescript 项目的正常引入
153
+ - [+] 暴露新 api `onChange` 和 `onSchemaChange` 用于 data 和 schema 的变化事件
154
+ - [!] 样式从 css -> less,做好封装避免样式污染
155
+ - [!] 修复了“是否带清除”按钮点击无效的问题
156
+ - [!] 文档排版等小幅调整
157
+
158
+ ### 1.0.1
159
+
160
+ - [!] 最外层容器增加 relative 定位,避免右侧展开按钮消失
161
+ - [!] 判断嵌套属性正则不正确
162
+
163
+ ### 1.0.0
164
+
165
+ - [!] 字段 propsSchema 和 schema 的兼容
166
+ - [+] settings & commonSettings & globalSettings 可以自定义
167
+ - [!] 内部优化 context 结构,优化 props 传输
168
+ - [+] widgets 入参(和 `form-render` 一样),提供自定义组件入口
169
+
170
+ ### 0.5.7
171
+
172
+ - [!] 样式修复,desc 的气泡不被遮住
173
+
174
+ ### 0.5.6
175
+
176
+ - [!] 打个补丁,将 ui 相关 props 放到 schema 中, 是对 FR 0.8.11 版本的兼容
177
+
178
+ ### 0.5.5
179
+
180
+ - [!] 解决了一个内部方法替换后导致右侧栏数据失效的问题
181
+
182
+ ### 0.5.3
183
+
184
+ - [+] `extraButtons` 这个数组的 item 的值可以是 true/false,用于去掉默认按钮,例如
185
+
186
+ ```js
187
+ extraButtons: [false, false, false, true, { text: '测试' }];
188
+ ```
189
+
190
+ 只会展示默认展示的 4 个按钮中的最后一个(导出 schema),以及一个新按钮“测试”
191
+
192
+ - [!] `extraButtons` 现在支持配置各种 antd button 的 props
193
+ - [!] 修复了 propsSchema 和 schema 兼容在各个入口和出口处理上的不一致导致的 bug,现在统一收口
194
+ - [!] fix 了 id 展示的样式丢失的 bug
195
+
196
+ ### 0.5.2
197
+
198
+ - [!] 解决了乱输入 schema 的时候会 crash 页面的问题
199
+
200
+ ### 0.5.1
201
+
202
+ - [!] propsSchema 和 schema 字段兼容
203
+ - [!] 非常长的 description 在 tooltip 模式下正常展示
204
+ - [!] 解决样式入侵问题 ([#8](https://github.com/form-render/schema-generator/issues/8))
205
+ - [!] 解决了 switch 组件展示丑的问题
206
+ - [!] 官网大幅翻新,demo 可直接跳转到 form-render 的 playground 方便验证
207
+
208
+ ### 0.5.0
209
+
210
+ - [+] 添加 `setValue` (注入 schema) 和 `copyValue`(拷贝到剪切板) 方法,可以通过 ref 调用
211
+ - [+] 新增 props `extraButtons` 用于添加更多定制按钮到顶栏
212
+
213
+ ### 0.4.0
214
+
215
+ - [+] 添加 transformer 参数
216
+ - [!] 大幅升级文档,添加 formily 的支持 demo
217
+
218
+ ### 0.3.4
219
+
220
+ - [!] 左栏统一到 rem,确保展示正确
221
+
222
+ ### 0.3.3
223
+
224
+ - [!] 导入的 schema 可以不一定是 json 格式,也可以是 js object(就是 key 可以没有引号)
225
+
226
+ ### 0.3.2
227
+
228
+ - [!] 提供 `getValue` 方法,可以通过 ref 调用,在外部获取 schema
229
+ - [!]  组件适配外层大小
230
+ - [!]  根据宽度做了一定的展示自适应
231
+ - [!] 修复不能识别的`ui:widget`时,会报错,现在渲染默认兜底组件
232
+
233
+ ### 0.3.1
234
+
235
+ - [!] 文档修改、删除“保存”按钮
236
+
237
+ ### 0.3.0
238
+
239
+ - [+] 添加 submit 入参,作为“保存”按钮的回调函数,入参是导出的 schema
240
+ - [!] 模板(templates)代替存档(saves)概念
241
+
242
+ ### 0.2.2
243
+
244
+ - [!] fix dependencies bug
245
+
246
+ ### 0.2.1
247
+
248
+ - [!] 更新文档配置
249
+ - [!] 安卓 moment 的 dependencies,而不隐式引入
250
+
251
+ ### 0.2.0
252
+
253
+ - [+] 项目组件化,添加 saves 和 defaultValue 两个 props
254
+ - [+] 切换到 dumi,添加官方文档
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2019-present XRender Team
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,99 @@
1
+ ## 如何使用
2
+
3
+ ### 安装
4
+
5
+ ```bash
6
+ npm i yy-fr-generator
7
+ ```
8
+
9
+ ### 代码演示
10
+
11
+ ```jsx
12
+ /**
13
+ * transform: true
14
+ * defaultShowCode: true
15
+ */
16
+ import React from 'react';
17
+ import Generator from 'fr-generator';
18
+
19
+ const defaultValue = {
20
+ type: 'object',
21
+ properties: {
22
+ inputName: {
23
+ title: '简单输入框',
24
+ type: 'string',
25
+ },
26
+ },
27
+ };
28
+
29
+ const Demo = () => {
30
+ return (
31
+ <div style={{ height: '80vh' }}>
32
+ <Generator defaultValue={defaultValue} />
33
+ </div>
34
+ );
35
+ };
36
+
37
+ export default Demo;
38
+ ```
39
+
40
+ ## API
41
+
42
+ ### Props
43
+
44
+ | 参数 | 说明 | 类型 | 默认值 |
45
+ | -------------- | ------------------------ | --------- | ------------------------------------------------------------------------------------------------------------------------------- |
46
+ | hideId | 隐藏组件 ID | `boolean` | `false` |
47
+ | defaultValue | 默认表单 schema | `object` | `DEFAULT_SCHEMA` |
48
+ | transformer | schema 双向转换 | `object` | `{ fromFormRender, toFormRender }` |
49
+ | extraButtons | 操作栏按钮 | `array` | `extraButton[]` |
50
+ | controlButtons | 选中项操作按钮 | `array` | `controlButton[]` |
51
+ | settings | 左右侧栏配置 | `array` | [`defaultSettings`](https://github.com/alibaba/form-render/blob/master/tools/schema-generator/src/settings/index.js#L651) |
52
+ | commonSettings | 通用配置 | `object` | [`defaultCommonSettings`](https://github.com/alibaba/form-render/blob/master/tools/schema-generator/src/settings/index.js#L20) |
53
+ | globalSettings | 全局配置 | `object` | [`defaultGlobalSettings`](https://github.com/alibaba/form-render/blob/master/tools/schema-generator/src/settings/index.js#L831) |
54
+ | widgets | 自定义组件 | `object` | `{}` |
55
+ | mapping | 组件和 schema 的映射规则 | `object` | `{}` |
56
+
57
+ #### extraButton
58
+
59
+ | 属性 | 说明 | 类型 |
60
+ | ------- | ---------------- | ----------------- |
61
+ | text | 按钮文案 | `string` |
62
+ | onClick | 按钮点击回调函数 | `(event) => void` |
63
+
64
+ 数组前四项为布尔值,决定默认按钮是否展示。
65
+ 支持 antd 按钮组件的所有其他属性 https://ant.design/components/button-cn/#API
66
+
67
+ #### controlButton
68
+
69
+ | 属性 | 说明 | 类型 |
70
+ | ------- | ---------------- | ------------------------- |
71
+ | text | 按钮文案 | `string` |
72
+ | onClick | 按钮点击回调函数 | `(event, schema) => void` |
73
+
74
+ 数组前两项为布尔值或函数,决定默认按钮是否展示,函数入参为选中项 schema。
75
+
76
+ ### Events
77
+
78
+ | 事件名 | 说明 | 回调参数 |
79
+ | -------------- | -------------------- | ------------- |
80
+ | onChange | 表单 data 变化回调 | 表单的 data |
81
+ | onSchemaChange | 表单 schema 变化回调 | 导出的 schema |
82
+
83
+ ### Methods
84
+
85
+ | 事件名 | 说明 | 入参 |
86
+ | --------- | -------------------------- | -------- |
87
+ | getValue | 获取导出的 schema 值 | - |
88
+ | setValue | 从外部强制修改 schema | `schema` |
89
+ | copyValue | 将现有 schema 拷贝到剪贴板 | - |
90
+
91
+ ## 案例演示
92
+
93
+ https://xrender.fun/generator/demo
94
+
95
+ ## 常见问题
96
+
97
+ **1、如何控制编辑器高度**
98
+
99
+ 给组件外层要包裹的 div 设置高度即可,否则为默认值 min-height: 30vh
@@ -0,0 +1,145 @@
1
+ import { FC, ForwardRefExoticComponent, ReactNode, RefAttributes } from 'react';
2
+
3
+ export interface Transformer {
4
+ /** 正向的转换函数 */
5
+ from?: (schema: any) => any;
6
+ /** 反向的转换函数 */
7
+ to?: (schema: any) => any;
8
+ /** 反向的转换函数 */
9
+ fromSetting?: (schema: any) => any;
10
+ /** 反向的转换函数 */
11
+ toSetting?: (schema: any) => any;
12
+ }
13
+
14
+ export interface ExtraButton {
15
+ /** 按钮文案 */
16
+ text: string;
17
+ /** 点击回调 */
18
+ onClick?: (event: any) => void;
19
+ [key: string]: any;
20
+ }
21
+
22
+ export interface ControlButton {
23
+ /** 按钮文案 */
24
+ text?: string;
25
+ /** 点击回调 */
26
+ onClick?: (event: any, schema: any) => void;
27
+ }
28
+
29
+ export interface SettingWidget {
30
+ /** 按钮生成的 schema 的 key 值 */
31
+ name: string;
32
+ /** 在左侧栏按钮展示文案 */
33
+ text: string;
34
+ /** 在左侧栏按钮展示图标 */
35
+ icon?: string | ReactNode;
36
+ /** 如果是基本组件,这个字段注明它对应的 widgets */
37
+ widget?: string;
38
+ /** 组件对应的 schema 片段 */
39
+ schema?: any;
40
+ /** 组件的配置信息,使用 form-render 的 schema 来描述 */
41
+ setting?: any;
42
+ }
43
+
44
+ export interface Setting {
45
+ /** 最外层的分组名称 */
46
+ title: string;
47
+ /** 每个组件的配置,在左侧栏是一个按钮 */
48
+ widgets: SettingWidget[];
49
+ show?: boolean;
50
+ useCommon?: boolean;
51
+ }
52
+
53
+ export interface FRGeneratorProps {
54
+ getId?: (name: string) => string;
55
+ /** 国际化配置 */
56
+ locale?: 'cn' | 'en';
57
+ /** 隐藏组件 ID */
58
+ hideId?: boolean;
59
+ /** 固定 id */
60
+ fixedName?: boolean;
61
+ /** 组件删除控制 */
62
+ canDelete?: boolean | Function;
63
+ /** 默认一进入编辑器展示的表单对应的 schema */
64
+ defaultValue?: any;
65
+ /** 自定义 schema 到 form-render 的 schema 的双向转换函数 */
66
+ transformer?: Transformer;
67
+ /** 编辑区顶部的自定义按钮 */
68
+ extraButtons?: (ExtraButton | boolean | string)[];
69
+ /** 选中项操作按钮 */
70
+ controlButtons?: (ControlButton | boolean | Function)[];
71
+ /** 预览态控制 */
72
+ preview?: boolean;
73
+ /** 左右侧栏配置 */
74
+ settings?: Setting[];
75
+ /** 通用配置 */
76
+ commonSettings?: any;
77
+ /** 全局配置 */
78
+ globalSettings?: any;
79
+ /** 自定义组件 */
80
+ widgets?: any;
81
+ /** 配置栏自定义组件 */
82
+ settingsWidgets?: any;
83
+ /** 组件和 schema 的映射规则 */
84
+ mapping?: any;
85
+ /** 配置表单校验 */
86
+ validation?: boolean;
87
+ fieldRender?: (
88
+ schema?: any,
89
+ widgetProps?: any,
90
+ children?: ReactNode,
91
+ originNode?: ReactNode
92
+ ) => ReactNode;
93
+ fieldWrapperRender?: (
94
+ schema?: any,
95
+ isSelected?: boolean,
96
+ children?: ReactNode,
97
+ originNode?: ReactNode
98
+ ) => ReactNode;
99
+ elementRender?: (
100
+ schema?: any,
101
+ widgetProps?: SettingWidget,
102
+ originNode?: ReactNode
103
+ ) => ReactNode;
104
+ /** 表单 data 变化回调 */
105
+ onChange?: (data: any) => void;
106
+ /** 表单 schema 变化回调 */
107
+ onSchemaChange?: (schema: any) => void;
108
+ /** 画布组件选择回调 */
109
+ onCanvasSelect?: (schema: any) => void;
110
+ }
111
+
112
+ export interface SettingsProps {
113
+ /** 自定义组件 */
114
+ widgets?: any;
115
+ }
116
+ export interface CanvasProps {
117
+ /** 画布组件选择回调 */
118
+ onCanvasSelect?: (schema: any) => void;
119
+ }
120
+
121
+ export interface SidebarProps {
122
+ /** 固定 id */
123
+ fixedName?: boolean;
124
+ }
125
+
126
+ export interface Generator
127
+ extends ForwardRefExoticComponent<
128
+ FRGeneratorProps & RefAttributes<HTMLElement>
129
+ > {
130
+ Provider: FC<FRGeneratorProps>;
131
+ Settings: FC<SettingsProps>;
132
+ Canvas: FC<CanvasProps>;
133
+ Sidebar: FC<SidebarProps>;
134
+ }
135
+
136
+ declare const FRGenerator: Generator;
137
+ declare const defaultSettings: Setting[];
138
+ declare const defaultCommonSettings: any;
139
+ declare const defaultGlobalSettings: any;
140
+ declare const fromSetting: (schema: any) => any;
141
+ declare const toSetting: (schema: any) => any;
142
+
143
+ export { defaultSettings, defaultCommonSettings, defaultGlobalSettings };
144
+ export { fromSetting, toSetting };
145
+ export default FRGenerator;