@officesdk/editor-sdk-core 0.0.0-alpha.18 → 0.0.0-alpha.19
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/cjs/docs/index.js +1 -1
- package/cjs/docs/sdk.js +1 -1
- package/cjs/docs/theme.js +3 -0
- package/cjs/docx/sdk.js +1 -1
- package/cjs/form/sdk.js +1 -1
- package/cjs/presentation/sdk.js +1 -1
- package/cjs/shared/index.js +1 -1
- package/cjs/shared/spell-check.js +1 -1
- package/cjs/shared/theme/components/menu.js +1 -1
- package/cjs/sheet/form.js +1 -1
- package/esm/docs/index.js +1 -1
- package/esm/docs/sdk.js +1 -1
- package/esm/docs/theme.js +2 -0
- package/esm/docx/sdk.js +1 -1
- package/esm/form/sdk.js +1 -1
- package/esm/presentation/sdk.js +1 -1
- package/esm/shared/index.js +1 -1
- package/esm/shared/spell-check.js +1 -1
- package/esm/shared/theme/components/menu.js +1 -1
- package/esm/sheet/form.js +1 -1
- package/package.json +1 -1
- package/types/combine.d.ts +100 -8
- package/types/diagram.d.ts +33 -6
- package/types/docs.d.ts +97 -6
- package/types/docx.d.ts +34 -7
- package/types/form.d.ts +36 -7
- package/types/mindmap.d.ts +33 -6
- package/types/pdf.d.ts +33 -6
- package/types/presentation.d.ts +34 -7
- package/types/shared.d.ts +33 -6
- package/types/sheet.d.ts +34 -6
- package/types/table.d.ts +33 -6
package/types/combine.d.ts
CHANGED
|
@@ -960,6 +960,24 @@ export declare interface DiagramSDKOptions extends EditorOptions {
|
|
|
960
960
|
socket?: EditorSocket;
|
|
961
961
|
}
|
|
962
962
|
|
|
963
|
+
/**
|
|
964
|
+
* Docs(轻文档)套件的卡点/权限检查结果最小形态。
|
|
965
|
+
*
|
|
966
|
+
* @remarks
|
|
967
|
+
* - 用于宿主(如 lizard-service-iframe-sdk)向 DocsSDK 透传 checkpoint 结果。
|
|
968
|
+
* - 当前粘贴长度限制仅需要 `authorized/noCheck/max`。
|
|
969
|
+
*/
|
|
970
|
+
export declare interface DocsAttachLimitType {
|
|
971
|
+
authorized: boolean;
|
|
972
|
+
noCheck: boolean;
|
|
973
|
+
max?: number;
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
/**
|
|
977
|
+
* Docs(轻文档)套件的卡点/权限检查函数。
|
|
978
|
+
*/
|
|
979
|
+
export declare type DocsCheckPermission = (key: string) => DocsAttachLimitType | null;
|
|
980
|
+
|
|
963
981
|
/**
|
|
964
982
|
* 文档信息配置项,用于显示在文档信息弹窗中的内容
|
|
965
983
|
*/
|
|
@@ -1110,14 +1128,31 @@ export declare interface DocsSDKOptions extends EditorOptions {
|
|
|
1110
1128
|
linespacing: string;
|
|
1111
1129
|
size: string;
|
|
1112
1130
|
};
|
|
1131
|
+
fonts?: EditorFontsOptions;
|
|
1113
1132
|
footer?: {
|
|
1114
1133
|
logo?: string;
|
|
1115
1134
|
viewsText?: string;
|
|
1116
1135
|
};
|
|
1136
|
+
/**
|
|
1137
|
+
* UI主题相关设置
|
|
1138
|
+
*/
|
|
1139
|
+
theme: DocsThemeOptions;
|
|
1117
1140
|
/**
|
|
1118
1141
|
* 错误处理回调
|
|
1119
1142
|
*/
|
|
1120
1143
|
errorHandler?: (context: string, err: Error, extra?: Record<string, string>) => void;
|
|
1144
|
+
/**
|
|
1145
|
+
* 是否启用拼写和语法检查功能,默认 false
|
|
1146
|
+
*/
|
|
1147
|
+
enableSpellChecker?: boolean;
|
|
1148
|
+
/**
|
|
1149
|
+
* Docs 套件的卡点/权限检查函数(可选)。
|
|
1150
|
+
*
|
|
1151
|
+
* @remarks
|
|
1152
|
+
* - 由宿主环境提供(如 lizard-service-iframe-sdk 的 `createCheckPermission`)。
|
|
1153
|
+
* - 用于实现 `paste_limit_rdoc` 等卡点能力(例如粘贴前长度限制)。
|
|
1154
|
+
*/
|
|
1155
|
+
checkPermission?: DocsCheckPermission;
|
|
1121
1156
|
}
|
|
1122
1157
|
|
|
1123
1158
|
/**
|
|
@@ -1168,6 +1203,35 @@ export declare interface DocsSelection {
|
|
|
1168
1203
|
insertHtml: (html: string) => DocsRangeValue;
|
|
1169
1204
|
}
|
|
1170
1205
|
|
|
1206
|
+
export declare interface DocsThemeExtensions {
|
|
1207
|
+
/** 编辑器容器 */
|
|
1208
|
+
container: {
|
|
1209
|
+
background: string;
|
|
1210
|
+
shadow: string;
|
|
1211
|
+
};
|
|
1212
|
+
/** 工具栏 */
|
|
1213
|
+
toolbar: {
|
|
1214
|
+
background: string;
|
|
1215
|
+
shadow: string;
|
|
1216
|
+
};
|
|
1217
|
+
/** 面板背景色(历史面板、讨论面板等) */
|
|
1218
|
+
drawer: {
|
|
1219
|
+
background: string;
|
|
1220
|
+
};
|
|
1221
|
+
/** 预览组件背景色 */
|
|
1222
|
+
previewer: {
|
|
1223
|
+
background: string;
|
|
1224
|
+
};
|
|
1225
|
+
dropdown: {
|
|
1226
|
+
align: 'left' | 'center' | 'right';
|
|
1227
|
+
};
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
/**
|
|
1231
|
+
* Docs 完整主题配置
|
|
1232
|
+
*/
|
|
1233
|
+
export declare type DocsThemeOptions = EditorThemeOptions<DocsThemeExtensions>;
|
|
1234
|
+
|
|
1171
1235
|
/**
|
|
1172
1236
|
* 传统文档右键菜单功能按钮
|
|
1173
1237
|
*/
|
|
@@ -1669,7 +1733,7 @@ export declare interface DocxSDKOptions extends EditorOptions {
|
|
|
1669
1733
|
/**
|
|
1670
1734
|
* 主题字体相关配置
|
|
1671
1735
|
*/
|
|
1672
|
-
theme
|
|
1736
|
+
theme?: DocxThemeOptions;
|
|
1673
1737
|
/**
|
|
1674
1738
|
* 工具栏设置
|
|
1675
1739
|
*/
|
|
@@ -4550,18 +4614,47 @@ export declare interface EditorSocket {
|
|
|
4550
4614
|
connected: boolean;
|
|
4551
4615
|
}
|
|
4552
4616
|
|
|
4617
|
+
export declare interface EditorSpellCheckDictionaryFileConfig {
|
|
4618
|
+
/** 词典文件的 aff 文件路径 */
|
|
4619
|
+
aff: string;
|
|
4620
|
+
/** 词典文件的 dic 文件路径 */
|
|
4621
|
+
dic: string;
|
|
4622
|
+
}
|
|
4623
|
+
|
|
4553
4624
|
/**
|
|
4554
4625
|
* 拼写检查相关配置
|
|
4555
4626
|
*/
|
|
4556
4627
|
export declare interface EditorSpellCheckOptions extends EditorFeatureConfig {
|
|
4557
4628
|
/**
|
|
4558
|
-
*
|
|
4629
|
+
* 拼写检查功能配置
|
|
4559
4630
|
*/
|
|
4560
|
-
|
|
4631
|
+
spellCheck?: {
|
|
4632
|
+
/**
|
|
4633
|
+
* 拼写检查功能是否被禁用
|
|
4634
|
+
*/
|
|
4635
|
+
disabled?: boolean;
|
|
4636
|
+
/**
|
|
4637
|
+
* 拼写检查所需要的字典文件 CDN 域名
|
|
4638
|
+
*/
|
|
4639
|
+
dictionaryCDNHost?: string;
|
|
4640
|
+
/**
|
|
4641
|
+
* 自定义拼写检查词典, 用于覆盖内置的默认词典
|
|
4642
|
+
*/
|
|
4643
|
+
customDictionary?: Partial<Record<EditorLanguage, EditorSpellCheckDictionaryFileConfig>>;
|
|
4644
|
+
};
|
|
4561
4645
|
/**
|
|
4562
|
-
*
|
|
4646
|
+
* 语法检查功能配置
|
|
4563
4647
|
*/
|
|
4564
|
-
|
|
4648
|
+
grammarCheck?: {
|
|
4649
|
+
/**
|
|
4650
|
+
* 语法检查功能是否被禁用
|
|
4651
|
+
*/
|
|
4652
|
+
disabled?: boolean;
|
|
4653
|
+
/**
|
|
4654
|
+
* 拼写检查API的URL,必须使用绝对路径
|
|
4655
|
+
*/
|
|
4656
|
+
url?: string;
|
|
4657
|
+
};
|
|
4565
4658
|
}
|
|
4566
4659
|
|
|
4567
4660
|
/**
|
|
@@ -5789,8 +5882,6 @@ export declare interface MenuItemConfig {
|
|
|
5789
5882
|
};
|
|
5790
5883
|
/** 边框 */
|
|
5791
5884
|
border: BorderConfig;
|
|
5792
|
-
/** 圆角 */
|
|
5793
|
-
borderRadius: string;
|
|
5794
5885
|
/** 布局 */
|
|
5795
5886
|
layout: {
|
|
5796
5887
|
/** 内边距 */
|
|
@@ -6415,7 +6506,7 @@ export declare interface PresentationSDKOptions extends EditorOptions {
|
|
|
6415
6506
|
/**
|
|
6416
6507
|
* UI主题相关设置
|
|
6417
6508
|
*/
|
|
6418
|
-
theme
|
|
6509
|
+
theme?: PresentationThemeOptions;
|
|
6419
6510
|
/**
|
|
6420
6511
|
* 幻灯片主题相关设置
|
|
6421
6512
|
*/
|
|
@@ -7303,6 +7394,7 @@ export declare interface SheetFormOptions extends EditorFeatureConfig {
|
|
|
7303
7394
|
}) => Promise<{
|
|
7304
7395
|
guid: string;
|
|
7305
7396
|
id: number;
|
|
7397
|
+
fullUrl?: string;
|
|
7306
7398
|
}>;
|
|
7307
7399
|
/**
|
|
7308
7400
|
* 获取表单文件的父级文件
|
package/types/diagram.d.ts
CHANGED
|
@@ -2555,18 +2555,47 @@ export declare interface EditorSocket {
|
|
|
2555
2555
|
connected: boolean;
|
|
2556
2556
|
}
|
|
2557
2557
|
|
|
2558
|
+
export declare interface EditorSpellCheckDictionaryFileConfig {
|
|
2559
|
+
/** 词典文件的 aff 文件路径 */
|
|
2560
|
+
aff: string;
|
|
2561
|
+
/** 词典文件的 dic 文件路径 */
|
|
2562
|
+
dic: string;
|
|
2563
|
+
}
|
|
2564
|
+
|
|
2558
2565
|
/**
|
|
2559
2566
|
* 拼写检查相关配置
|
|
2560
2567
|
*/
|
|
2561
2568
|
export declare interface EditorSpellCheckOptions extends EditorFeatureConfig {
|
|
2562
2569
|
/**
|
|
2563
|
-
*
|
|
2570
|
+
* 拼写检查功能配置
|
|
2564
2571
|
*/
|
|
2565
|
-
|
|
2572
|
+
spellCheck?: {
|
|
2573
|
+
/**
|
|
2574
|
+
* 拼写检查功能是否被禁用
|
|
2575
|
+
*/
|
|
2576
|
+
disabled?: boolean;
|
|
2577
|
+
/**
|
|
2578
|
+
* 拼写检查所需要的字典文件 CDN 域名
|
|
2579
|
+
*/
|
|
2580
|
+
dictionaryCDNHost?: string;
|
|
2581
|
+
/**
|
|
2582
|
+
* 自定义拼写检查词典, 用于覆盖内置的默认词典
|
|
2583
|
+
*/
|
|
2584
|
+
customDictionary?: Partial<Record<EditorLanguage, EditorSpellCheckDictionaryFileConfig>>;
|
|
2585
|
+
};
|
|
2566
2586
|
/**
|
|
2567
|
-
*
|
|
2587
|
+
* 语法检查功能配置
|
|
2568
2588
|
*/
|
|
2569
|
-
|
|
2589
|
+
grammarCheck?: {
|
|
2590
|
+
/**
|
|
2591
|
+
* 语法检查功能是否被禁用
|
|
2592
|
+
*/
|
|
2593
|
+
disabled?: boolean;
|
|
2594
|
+
/**
|
|
2595
|
+
* 拼写检查API的URL,必须使用绝对路径
|
|
2596
|
+
*/
|
|
2597
|
+
url?: string;
|
|
2598
|
+
};
|
|
2570
2599
|
}
|
|
2571
2600
|
|
|
2572
2601
|
/**
|
|
@@ -3628,8 +3657,6 @@ export declare interface MenuItemConfig {
|
|
|
3628
3657
|
};
|
|
3629
3658
|
/** 边框 */
|
|
3630
3659
|
border: BorderConfig;
|
|
3631
|
-
/** 圆角 */
|
|
3632
|
-
borderRadius: string;
|
|
3633
3660
|
/** 布局 */
|
|
3634
3661
|
layout: {
|
|
3635
3662
|
/** 内边距 */
|
package/types/docs.d.ts
CHANGED
|
@@ -432,6 +432,24 @@ export declare interface DecorateColors {
|
|
|
432
432
|
april: string;
|
|
433
433
|
}
|
|
434
434
|
|
|
435
|
+
/**
|
|
436
|
+
* Docs(轻文档)套件的卡点/权限检查结果最小形态。
|
|
437
|
+
*
|
|
438
|
+
* @remarks
|
|
439
|
+
* - 用于宿主(如 lizard-service-iframe-sdk)向 DocsSDK 透传 checkpoint 结果。
|
|
440
|
+
* - 当前粘贴长度限制仅需要 `authorized/noCheck/max`。
|
|
441
|
+
*/
|
|
442
|
+
export declare interface DocsAttachLimitType {
|
|
443
|
+
authorized: boolean;
|
|
444
|
+
noCheck: boolean;
|
|
445
|
+
max?: number;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* Docs(轻文档)套件的卡点/权限检查函数。
|
|
450
|
+
*/
|
|
451
|
+
export declare type DocsCheckPermission = (key: string) => DocsAttachLimitType | null;
|
|
452
|
+
|
|
435
453
|
/**
|
|
436
454
|
* 文档信息配置项,用于显示在文档信息弹窗中的内容
|
|
437
455
|
*/
|
|
@@ -582,14 +600,31 @@ export declare interface DocsSDKOptions extends EditorOptions {
|
|
|
582
600
|
linespacing: string;
|
|
583
601
|
size: string;
|
|
584
602
|
};
|
|
603
|
+
fonts?: EditorFontsOptions;
|
|
585
604
|
footer?: {
|
|
586
605
|
logo?: string;
|
|
587
606
|
viewsText?: string;
|
|
588
607
|
};
|
|
608
|
+
/**
|
|
609
|
+
* UI主题相关设置
|
|
610
|
+
*/
|
|
611
|
+
theme: DocsThemeOptions;
|
|
589
612
|
/**
|
|
590
613
|
* 错误处理回调
|
|
591
614
|
*/
|
|
592
615
|
errorHandler?: (context: string, err: Error, extra?: Record<string, string>) => void;
|
|
616
|
+
/**
|
|
617
|
+
* 是否启用拼写和语法检查功能,默认 false
|
|
618
|
+
*/
|
|
619
|
+
enableSpellChecker?: boolean;
|
|
620
|
+
/**
|
|
621
|
+
* Docs 套件的卡点/权限检查函数(可选)。
|
|
622
|
+
*
|
|
623
|
+
* @remarks
|
|
624
|
+
* - 由宿主环境提供(如 lizard-service-iframe-sdk 的 `createCheckPermission`)。
|
|
625
|
+
* - 用于实现 `paste_limit_rdoc` 等卡点能力(例如粘贴前长度限制)。
|
|
626
|
+
*/
|
|
627
|
+
checkPermission?: DocsCheckPermission;
|
|
593
628
|
}
|
|
594
629
|
|
|
595
630
|
/**
|
|
@@ -640,6 +675,35 @@ export declare interface DocsSelection {
|
|
|
640
675
|
insertHtml: (html: string) => DocsRangeValue;
|
|
641
676
|
}
|
|
642
677
|
|
|
678
|
+
export declare interface DocsThemeExtensions {
|
|
679
|
+
/** 编辑器容器 */
|
|
680
|
+
container: {
|
|
681
|
+
background: string;
|
|
682
|
+
shadow: string;
|
|
683
|
+
};
|
|
684
|
+
/** 工具栏 */
|
|
685
|
+
toolbar: {
|
|
686
|
+
background: string;
|
|
687
|
+
shadow: string;
|
|
688
|
+
};
|
|
689
|
+
/** 面板背景色(历史面板、讨论面板等) */
|
|
690
|
+
drawer: {
|
|
691
|
+
background: string;
|
|
692
|
+
};
|
|
693
|
+
/** 预览组件背景色 */
|
|
694
|
+
previewer: {
|
|
695
|
+
background: string;
|
|
696
|
+
};
|
|
697
|
+
dropdown: {
|
|
698
|
+
align: 'left' | 'center' | 'right';
|
|
699
|
+
};
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* Docs 完整主题配置
|
|
704
|
+
*/
|
|
705
|
+
export declare type DocsThemeOptions = EditorThemeOptions<DocsThemeExtensions>;
|
|
706
|
+
|
|
643
707
|
/** Dropdown 按钮配置 */
|
|
644
708
|
export declare interface DropdownButtonConfig {
|
|
645
709
|
/** 颜色 */
|
|
@@ -2685,18 +2749,47 @@ export declare interface EditorSocket {
|
|
|
2685
2749
|
connected: boolean;
|
|
2686
2750
|
}
|
|
2687
2751
|
|
|
2752
|
+
export declare interface EditorSpellCheckDictionaryFileConfig {
|
|
2753
|
+
/** 词典文件的 aff 文件路径 */
|
|
2754
|
+
aff: string;
|
|
2755
|
+
/** 词典文件的 dic 文件路径 */
|
|
2756
|
+
dic: string;
|
|
2757
|
+
}
|
|
2758
|
+
|
|
2688
2759
|
/**
|
|
2689
2760
|
* 拼写检查相关配置
|
|
2690
2761
|
*/
|
|
2691
2762
|
export declare interface EditorSpellCheckOptions extends EditorFeatureConfig {
|
|
2692
2763
|
/**
|
|
2693
|
-
*
|
|
2764
|
+
* 拼写检查功能配置
|
|
2694
2765
|
*/
|
|
2695
|
-
|
|
2766
|
+
spellCheck?: {
|
|
2767
|
+
/**
|
|
2768
|
+
* 拼写检查功能是否被禁用
|
|
2769
|
+
*/
|
|
2770
|
+
disabled?: boolean;
|
|
2771
|
+
/**
|
|
2772
|
+
* 拼写检查所需要的字典文件 CDN 域名
|
|
2773
|
+
*/
|
|
2774
|
+
dictionaryCDNHost?: string;
|
|
2775
|
+
/**
|
|
2776
|
+
* 自定义拼写检查词典, 用于覆盖内置的默认词典
|
|
2777
|
+
*/
|
|
2778
|
+
customDictionary?: Partial<Record<EditorLanguage, EditorSpellCheckDictionaryFileConfig>>;
|
|
2779
|
+
};
|
|
2696
2780
|
/**
|
|
2697
|
-
*
|
|
2781
|
+
* 语法检查功能配置
|
|
2698
2782
|
*/
|
|
2699
|
-
|
|
2783
|
+
grammarCheck?: {
|
|
2784
|
+
/**
|
|
2785
|
+
* 语法检查功能是否被禁用
|
|
2786
|
+
*/
|
|
2787
|
+
disabled?: boolean;
|
|
2788
|
+
/**
|
|
2789
|
+
* 拼写检查API的URL,必须使用绝对路径
|
|
2790
|
+
*/
|
|
2791
|
+
url?: string;
|
|
2792
|
+
};
|
|
2700
2793
|
}
|
|
2701
2794
|
|
|
2702
2795
|
/**
|
|
@@ -3758,8 +3851,6 @@ export declare interface MenuItemConfig {
|
|
|
3758
3851
|
};
|
|
3759
3852
|
/** 边框 */
|
|
3760
3853
|
border: BorderConfig;
|
|
3761
|
-
/** 圆角 */
|
|
3762
|
-
borderRadius: string;
|
|
3763
3854
|
/** 布局 */
|
|
3764
3855
|
layout: {
|
|
3765
3856
|
/** 内边距 */
|
package/types/docx.d.ts
CHANGED
|
@@ -978,7 +978,7 @@ export declare interface DocxSDKOptions extends EditorOptions {
|
|
|
978
978
|
/**
|
|
979
979
|
* 主题字体相关配置
|
|
980
980
|
*/
|
|
981
|
-
theme
|
|
981
|
+
theme?: DocxThemeOptions;
|
|
982
982
|
/**
|
|
983
983
|
* 工具栏设置
|
|
984
984
|
*/
|
|
@@ -3859,18 +3859,47 @@ export declare interface EditorSocket {
|
|
|
3859
3859
|
connected: boolean;
|
|
3860
3860
|
}
|
|
3861
3861
|
|
|
3862
|
+
export declare interface EditorSpellCheckDictionaryFileConfig {
|
|
3863
|
+
/** 词典文件的 aff 文件路径 */
|
|
3864
|
+
aff: string;
|
|
3865
|
+
/** 词典文件的 dic 文件路径 */
|
|
3866
|
+
dic: string;
|
|
3867
|
+
}
|
|
3868
|
+
|
|
3862
3869
|
/**
|
|
3863
3870
|
* 拼写检查相关配置
|
|
3864
3871
|
*/
|
|
3865
3872
|
export declare interface EditorSpellCheckOptions extends EditorFeatureConfig {
|
|
3866
3873
|
/**
|
|
3867
|
-
*
|
|
3874
|
+
* 拼写检查功能配置
|
|
3868
3875
|
*/
|
|
3869
|
-
|
|
3876
|
+
spellCheck?: {
|
|
3877
|
+
/**
|
|
3878
|
+
* 拼写检查功能是否被禁用
|
|
3879
|
+
*/
|
|
3880
|
+
disabled?: boolean;
|
|
3881
|
+
/**
|
|
3882
|
+
* 拼写检查所需要的字典文件 CDN 域名
|
|
3883
|
+
*/
|
|
3884
|
+
dictionaryCDNHost?: string;
|
|
3885
|
+
/**
|
|
3886
|
+
* 自定义拼写检查词典, 用于覆盖内置的默认词典
|
|
3887
|
+
*/
|
|
3888
|
+
customDictionary?: Partial<Record<EditorLanguage, EditorSpellCheckDictionaryFileConfig>>;
|
|
3889
|
+
};
|
|
3870
3890
|
/**
|
|
3871
|
-
*
|
|
3891
|
+
* 语法检查功能配置
|
|
3872
3892
|
*/
|
|
3873
|
-
|
|
3893
|
+
grammarCheck?: {
|
|
3894
|
+
/**
|
|
3895
|
+
* 语法检查功能是否被禁用
|
|
3896
|
+
*/
|
|
3897
|
+
disabled?: boolean;
|
|
3898
|
+
/**
|
|
3899
|
+
* 拼写检查API的URL,必须使用绝对路径
|
|
3900
|
+
*/
|
|
3901
|
+
url?: string;
|
|
3902
|
+
};
|
|
3874
3903
|
}
|
|
3875
3904
|
|
|
3876
3905
|
/**
|
|
@@ -4932,8 +4961,6 @@ export declare interface MenuItemConfig {
|
|
|
4932
4961
|
};
|
|
4933
4962
|
/** 边框 */
|
|
4934
4963
|
border: BorderConfig;
|
|
4935
|
-
/** 圆角 */
|
|
4936
|
-
borderRadius: string;
|
|
4937
4964
|
/** 布局 */
|
|
4938
4965
|
layout: {
|
|
4939
4966
|
/** 内边距 */
|
package/types/form.d.ts
CHANGED
|
@@ -2491,18 +2491,47 @@ export declare interface EditorSocket {
|
|
|
2491
2491
|
connected: boolean;
|
|
2492
2492
|
}
|
|
2493
2493
|
|
|
2494
|
+
export declare interface EditorSpellCheckDictionaryFileConfig {
|
|
2495
|
+
/** 词典文件的 aff 文件路径 */
|
|
2496
|
+
aff: string;
|
|
2497
|
+
/** 词典文件的 dic 文件路径 */
|
|
2498
|
+
dic: string;
|
|
2499
|
+
}
|
|
2500
|
+
|
|
2494
2501
|
/**
|
|
2495
2502
|
* 拼写检查相关配置
|
|
2496
2503
|
*/
|
|
2497
2504
|
export declare interface EditorSpellCheckOptions extends EditorFeatureConfig {
|
|
2498
2505
|
/**
|
|
2499
|
-
*
|
|
2506
|
+
* 拼写检查功能配置
|
|
2500
2507
|
*/
|
|
2501
|
-
|
|
2508
|
+
spellCheck?: {
|
|
2509
|
+
/**
|
|
2510
|
+
* 拼写检查功能是否被禁用
|
|
2511
|
+
*/
|
|
2512
|
+
disabled?: boolean;
|
|
2513
|
+
/**
|
|
2514
|
+
* 拼写检查所需要的字典文件 CDN 域名
|
|
2515
|
+
*/
|
|
2516
|
+
dictionaryCDNHost?: string;
|
|
2517
|
+
/**
|
|
2518
|
+
* 自定义拼写检查词典, 用于覆盖内置的默认词典
|
|
2519
|
+
*/
|
|
2520
|
+
customDictionary?: Partial<Record<EditorLanguage, EditorSpellCheckDictionaryFileConfig>>;
|
|
2521
|
+
};
|
|
2502
2522
|
/**
|
|
2503
|
-
*
|
|
2523
|
+
* 语法检查功能配置
|
|
2504
2524
|
*/
|
|
2505
|
-
|
|
2525
|
+
grammarCheck?: {
|
|
2526
|
+
/**
|
|
2527
|
+
* 语法检查功能是否被禁用
|
|
2528
|
+
*/
|
|
2529
|
+
disabled?: boolean;
|
|
2530
|
+
/**
|
|
2531
|
+
* 拼写检查API的URL,必须使用绝对路径
|
|
2532
|
+
*/
|
|
2533
|
+
url?: string;
|
|
2534
|
+
};
|
|
2506
2535
|
}
|
|
2507
2536
|
|
|
2508
2537
|
/**
|
|
@@ -3713,8 +3742,6 @@ export declare interface MenuItemConfig {
|
|
|
3713
3742
|
};
|
|
3714
3743
|
/** 边框 */
|
|
3715
3744
|
border: BorderConfig;
|
|
3716
|
-
/** 圆角 */
|
|
3717
|
-
borderRadius: string;
|
|
3718
3745
|
/** 布局 */
|
|
3719
3746
|
layout: {
|
|
3720
3747
|
/** 内边距 */
|
|
@@ -4645,7 +4672,9 @@ export declare interface UnauthedFormSDK {
|
|
|
4645
4672
|
export declare interface UnauthedFormSDKOption {
|
|
4646
4673
|
container: HTMLElement;
|
|
4647
4674
|
/** 主题相关设置 */
|
|
4648
|
-
theme
|
|
4675
|
+
theme?: EditorThemeOptions;
|
|
4676
|
+
/** i18n 相关设置 */
|
|
4677
|
+
i18n?: EditorI18nOptions;
|
|
4649
4678
|
filePicker?: EditorAttachmentOptions['picker'];
|
|
4650
4679
|
fileUploader?: EditorAttachmentOptions['uploader'];
|
|
4651
4680
|
/** 填写页无图片/附件的预览、下载等操作,也不存在权限判断,仅有对文件类型的限制,故简化配置项 */
|
package/types/mindmap.d.ts
CHANGED
|
@@ -2506,18 +2506,47 @@ export declare interface EditorSocket {
|
|
|
2506
2506
|
connected: boolean;
|
|
2507
2507
|
}
|
|
2508
2508
|
|
|
2509
|
+
export declare interface EditorSpellCheckDictionaryFileConfig {
|
|
2510
|
+
/** 词典文件的 aff 文件路径 */
|
|
2511
|
+
aff: string;
|
|
2512
|
+
/** 词典文件的 dic 文件路径 */
|
|
2513
|
+
dic: string;
|
|
2514
|
+
}
|
|
2515
|
+
|
|
2509
2516
|
/**
|
|
2510
2517
|
* 拼写检查相关配置
|
|
2511
2518
|
*/
|
|
2512
2519
|
export declare interface EditorSpellCheckOptions extends EditorFeatureConfig {
|
|
2513
2520
|
/**
|
|
2514
|
-
*
|
|
2521
|
+
* 拼写检查功能配置
|
|
2515
2522
|
*/
|
|
2516
|
-
|
|
2523
|
+
spellCheck?: {
|
|
2524
|
+
/**
|
|
2525
|
+
* 拼写检查功能是否被禁用
|
|
2526
|
+
*/
|
|
2527
|
+
disabled?: boolean;
|
|
2528
|
+
/**
|
|
2529
|
+
* 拼写检查所需要的字典文件 CDN 域名
|
|
2530
|
+
*/
|
|
2531
|
+
dictionaryCDNHost?: string;
|
|
2532
|
+
/**
|
|
2533
|
+
* 自定义拼写检查词典, 用于覆盖内置的默认词典
|
|
2534
|
+
*/
|
|
2535
|
+
customDictionary?: Partial<Record<EditorLanguage, EditorSpellCheckDictionaryFileConfig>>;
|
|
2536
|
+
};
|
|
2517
2537
|
/**
|
|
2518
|
-
*
|
|
2538
|
+
* 语法检查功能配置
|
|
2519
2539
|
*/
|
|
2520
|
-
|
|
2540
|
+
grammarCheck?: {
|
|
2541
|
+
/**
|
|
2542
|
+
* 语法检查功能是否被禁用
|
|
2543
|
+
*/
|
|
2544
|
+
disabled?: boolean;
|
|
2545
|
+
/**
|
|
2546
|
+
* 拼写检查API的URL,必须使用绝对路径
|
|
2547
|
+
*/
|
|
2548
|
+
url?: string;
|
|
2549
|
+
};
|
|
2521
2550
|
}
|
|
2522
2551
|
|
|
2523
2552
|
/**
|
|
@@ -3579,8 +3608,6 @@ export declare interface MenuItemConfig {
|
|
|
3579
3608
|
};
|
|
3580
3609
|
/** 边框 */
|
|
3581
3610
|
border: BorderConfig;
|
|
3582
|
-
/** 圆角 */
|
|
3583
|
-
borderRadius: string;
|
|
3584
3611
|
/** 布局 */
|
|
3585
3612
|
layout: {
|
|
3586
3613
|
/** 内边距 */
|
package/types/pdf.d.ts
CHANGED
|
@@ -2504,18 +2504,47 @@ export declare interface EditorSocket {
|
|
|
2504
2504
|
connected: boolean;
|
|
2505
2505
|
}
|
|
2506
2506
|
|
|
2507
|
+
export declare interface EditorSpellCheckDictionaryFileConfig {
|
|
2508
|
+
/** 词典文件的 aff 文件路径 */
|
|
2509
|
+
aff: string;
|
|
2510
|
+
/** 词典文件的 dic 文件路径 */
|
|
2511
|
+
dic: string;
|
|
2512
|
+
}
|
|
2513
|
+
|
|
2507
2514
|
/**
|
|
2508
2515
|
* 拼写检查相关配置
|
|
2509
2516
|
*/
|
|
2510
2517
|
export declare interface EditorSpellCheckOptions extends EditorFeatureConfig {
|
|
2511
2518
|
/**
|
|
2512
|
-
*
|
|
2519
|
+
* 拼写检查功能配置
|
|
2513
2520
|
*/
|
|
2514
|
-
|
|
2521
|
+
spellCheck?: {
|
|
2522
|
+
/**
|
|
2523
|
+
* 拼写检查功能是否被禁用
|
|
2524
|
+
*/
|
|
2525
|
+
disabled?: boolean;
|
|
2526
|
+
/**
|
|
2527
|
+
* 拼写检查所需要的字典文件 CDN 域名
|
|
2528
|
+
*/
|
|
2529
|
+
dictionaryCDNHost?: string;
|
|
2530
|
+
/**
|
|
2531
|
+
* 自定义拼写检查词典, 用于覆盖内置的默认词典
|
|
2532
|
+
*/
|
|
2533
|
+
customDictionary?: Partial<Record<EditorLanguage, EditorSpellCheckDictionaryFileConfig>>;
|
|
2534
|
+
};
|
|
2515
2535
|
/**
|
|
2516
|
-
*
|
|
2536
|
+
* 语法检查功能配置
|
|
2517
2537
|
*/
|
|
2518
|
-
|
|
2538
|
+
grammarCheck?: {
|
|
2539
|
+
/**
|
|
2540
|
+
* 语法检查功能是否被禁用
|
|
2541
|
+
*/
|
|
2542
|
+
disabled?: boolean;
|
|
2543
|
+
/**
|
|
2544
|
+
* 拼写检查API的URL,必须使用绝对路径
|
|
2545
|
+
*/
|
|
2546
|
+
url?: string;
|
|
2547
|
+
};
|
|
2519
2548
|
}
|
|
2520
2549
|
|
|
2521
2550
|
/**
|
|
@@ -3577,8 +3606,6 @@ export declare interface MenuItemConfig {
|
|
|
3577
3606
|
};
|
|
3578
3607
|
/** 边框 */
|
|
3579
3608
|
border: BorderConfig;
|
|
3580
|
-
/** 圆角 */
|
|
3581
|
-
borderRadius: string;
|
|
3582
3609
|
/** 布局 */
|
|
3583
3610
|
layout: {
|
|
3584
3611
|
/** 内边距 */
|