@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/presentation.d.ts
CHANGED
|
@@ -2510,18 +2510,47 @@ export declare interface EditorSocket {
|
|
|
2510
2510
|
connected: boolean;
|
|
2511
2511
|
}
|
|
2512
2512
|
|
|
2513
|
+
export declare interface EditorSpellCheckDictionaryFileConfig {
|
|
2514
|
+
/** 词典文件的 aff 文件路径 */
|
|
2515
|
+
aff: string;
|
|
2516
|
+
/** 词典文件的 dic 文件路径 */
|
|
2517
|
+
dic: string;
|
|
2518
|
+
}
|
|
2519
|
+
|
|
2513
2520
|
/**
|
|
2514
2521
|
* 拼写检查相关配置
|
|
2515
2522
|
*/
|
|
2516
2523
|
export declare interface EditorSpellCheckOptions extends EditorFeatureConfig {
|
|
2517
2524
|
/**
|
|
2518
|
-
*
|
|
2525
|
+
* 拼写检查功能配置
|
|
2519
2526
|
*/
|
|
2520
|
-
|
|
2527
|
+
spellCheck?: {
|
|
2528
|
+
/**
|
|
2529
|
+
* 拼写检查功能是否被禁用
|
|
2530
|
+
*/
|
|
2531
|
+
disabled?: boolean;
|
|
2532
|
+
/**
|
|
2533
|
+
* 拼写检查所需要的字典文件 CDN 域名
|
|
2534
|
+
*/
|
|
2535
|
+
dictionaryCDNHost?: string;
|
|
2536
|
+
/**
|
|
2537
|
+
* 自定义拼写检查词典, 用于覆盖内置的默认词典
|
|
2538
|
+
*/
|
|
2539
|
+
customDictionary?: Partial<Record<EditorLanguage, EditorSpellCheckDictionaryFileConfig>>;
|
|
2540
|
+
};
|
|
2521
2541
|
/**
|
|
2522
|
-
*
|
|
2542
|
+
* 语法检查功能配置
|
|
2523
2543
|
*/
|
|
2524
|
-
|
|
2544
|
+
grammarCheck?: {
|
|
2545
|
+
/**
|
|
2546
|
+
* 语法检查功能是否被禁用
|
|
2547
|
+
*/
|
|
2548
|
+
disabled?: boolean;
|
|
2549
|
+
/**
|
|
2550
|
+
* 拼写检查API的URL,必须使用绝对路径
|
|
2551
|
+
*/
|
|
2552
|
+
url?: string;
|
|
2553
|
+
};
|
|
2525
2554
|
}
|
|
2526
2555
|
|
|
2527
2556
|
/**
|
|
@@ -3583,8 +3612,6 @@ export declare interface MenuItemConfig {
|
|
|
3583
3612
|
};
|
|
3584
3613
|
/** 边框 */
|
|
3585
3614
|
border: BorderConfig;
|
|
3586
|
-
/** 圆角 */
|
|
3587
|
-
borderRadius: string;
|
|
3588
3615
|
/** 布局 */
|
|
3589
3616
|
layout: {
|
|
3590
3617
|
/** 内边距 */
|
|
@@ -3943,7 +3970,7 @@ export declare interface PresentationSDKOptions extends EditorOptions {
|
|
|
3943
3970
|
/**
|
|
3944
3971
|
* UI主题相关设置
|
|
3945
3972
|
*/
|
|
3946
|
-
theme
|
|
3973
|
+
theme?: PresentationThemeOptions;
|
|
3947
3974
|
/**
|
|
3948
3975
|
* 幻灯片主题相关设置
|
|
3949
3976
|
*/
|
package/types/shared.d.ts
CHANGED
|
@@ -2466,18 +2466,47 @@ export declare interface EditorSocket {
|
|
|
2466
2466
|
connected: boolean;
|
|
2467
2467
|
}
|
|
2468
2468
|
|
|
2469
|
+
export declare interface EditorSpellCheckDictionaryFileConfig {
|
|
2470
|
+
/** 词典文件的 aff 文件路径 */
|
|
2471
|
+
aff: string;
|
|
2472
|
+
/** 词典文件的 dic 文件路径 */
|
|
2473
|
+
dic: string;
|
|
2474
|
+
}
|
|
2475
|
+
|
|
2469
2476
|
/**
|
|
2470
2477
|
* 拼写检查相关配置
|
|
2471
2478
|
*/
|
|
2472
2479
|
export declare interface EditorSpellCheckOptions extends EditorFeatureConfig {
|
|
2473
2480
|
/**
|
|
2474
|
-
*
|
|
2481
|
+
* 拼写检查功能配置
|
|
2475
2482
|
*/
|
|
2476
|
-
|
|
2483
|
+
spellCheck?: {
|
|
2484
|
+
/**
|
|
2485
|
+
* 拼写检查功能是否被禁用
|
|
2486
|
+
*/
|
|
2487
|
+
disabled?: boolean;
|
|
2488
|
+
/**
|
|
2489
|
+
* 拼写检查所需要的字典文件 CDN 域名
|
|
2490
|
+
*/
|
|
2491
|
+
dictionaryCDNHost?: string;
|
|
2492
|
+
/**
|
|
2493
|
+
* 自定义拼写检查词典, 用于覆盖内置的默认词典
|
|
2494
|
+
*/
|
|
2495
|
+
customDictionary?: Partial<Record<EditorLanguage, EditorSpellCheckDictionaryFileConfig>>;
|
|
2496
|
+
};
|
|
2477
2497
|
/**
|
|
2478
|
-
*
|
|
2498
|
+
* 语法检查功能配置
|
|
2479
2499
|
*/
|
|
2480
|
-
|
|
2500
|
+
grammarCheck?: {
|
|
2501
|
+
/**
|
|
2502
|
+
* 语法检查功能是否被禁用
|
|
2503
|
+
*/
|
|
2504
|
+
disabled?: boolean;
|
|
2505
|
+
/**
|
|
2506
|
+
* 拼写检查API的URL,必须使用绝对路径
|
|
2507
|
+
*/
|
|
2508
|
+
url?: string;
|
|
2509
|
+
};
|
|
2481
2510
|
}
|
|
2482
2511
|
|
|
2483
2512
|
/**
|
|
@@ -3539,8 +3568,6 @@ export declare interface MenuItemConfig {
|
|
|
3539
3568
|
};
|
|
3540
3569
|
/** 边框 */
|
|
3541
3570
|
border: BorderConfig;
|
|
3542
|
-
/** 圆角 */
|
|
3543
|
-
borderRadius: string;
|
|
3544
3571
|
/** 布局 */
|
|
3545
3572
|
layout: {
|
|
3546
3573
|
/** 内边距 */
|
package/types/sheet.d.ts
CHANGED
|
@@ -2607,18 +2607,47 @@ export declare interface EditorSocket {
|
|
|
2607
2607
|
connected: boolean;
|
|
2608
2608
|
}
|
|
2609
2609
|
|
|
2610
|
+
export declare interface EditorSpellCheckDictionaryFileConfig {
|
|
2611
|
+
/** 词典文件的 aff 文件路径 */
|
|
2612
|
+
aff: string;
|
|
2613
|
+
/** 词典文件的 dic 文件路径 */
|
|
2614
|
+
dic: string;
|
|
2615
|
+
}
|
|
2616
|
+
|
|
2610
2617
|
/**
|
|
2611
2618
|
* 拼写检查相关配置
|
|
2612
2619
|
*/
|
|
2613
2620
|
export declare interface EditorSpellCheckOptions extends EditorFeatureConfig {
|
|
2614
2621
|
/**
|
|
2615
|
-
*
|
|
2622
|
+
* 拼写检查功能配置
|
|
2616
2623
|
*/
|
|
2617
|
-
|
|
2624
|
+
spellCheck?: {
|
|
2625
|
+
/**
|
|
2626
|
+
* 拼写检查功能是否被禁用
|
|
2627
|
+
*/
|
|
2628
|
+
disabled?: boolean;
|
|
2629
|
+
/**
|
|
2630
|
+
* 拼写检查所需要的字典文件 CDN 域名
|
|
2631
|
+
*/
|
|
2632
|
+
dictionaryCDNHost?: string;
|
|
2633
|
+
/**
|
|
2634
|
+
* 自定义拼写检查词典, 用于覆盖内置的默认词典
|
|
2635
|
+
*/
|
|
2636
|
+
customDictionary?: Partial<Record<EditorLanguage, EditorSpellCheckDictionaryFileConfig>>;
|
|
2637
|
+
};
|
|
2618
2638
|
/**
|
|
2619
|
-
*
|
|
2639
|
+
* 语法检查功能配置
|
|
2620
2640
|
*/
|
|
2621
|
-
|
|
2641
|
+
grammarCheck?: {
|
|
2642
|
+
/**
|
|
2643
|
+
* 语法检查功能是否被禁用
|
|
2644
|
+
*/
|
|
2645
|
+
disabled?: boolean;
|
|
2646
|
+
/**
|
|
2647
|
+
* 拼写检查API的URL,必须使用绝对路径
|
|
2648
|
+
*/
|
|
2649
|
+
url?: string;
|
|
2650
|
+
};
|
|
2622
2651
|
}
|
|
2623
2652
|
|
|
2624
2653
|
/**
|
|
@@ -3757,8 +3786,6 @@ export declare interface MenuItemConfig {
|
|
|
3757
3786
|
};
|
|
3758
3787
|
/** 边框 */
|
|
3759
3788
|
border: BorderConfig;
|
|
3760
|
-
/** 圆角 */
|
|
3761
|
-
borderRadius: string;
|
|
3762
3789
|
/** 布局 */
|
|
3763
3790
|
layout: {
|
|
3764
3791
|
/** 内边距 */
|
|
@@ -4255,6 +4282,7 @@ export declare interface SheetFormOptions extends EditorFeatureConfig {
|
|
|
4255
4282
|
}) => Promise<{
|
|
4256
4283
|
guid: string;
|
|
4257
4284
|
id: number;
|
|
4285
|
+
fullUrl?: string;
|
|
4258
4286
|
}>;
|
|
4259
4287
|
/**
|
|
4260
4288
|
* 获取表单文件的父级文件
|
package/types/table.d.ts
CHANGED
|
@@ -2586,18 +2586,47 @@ export declare interface EditorSocket {
|
|
|
2586
2586
|
connected: boolean;
|
|
2587
2587
|
}
|
|
2588
2588
|
|
|
2589
|
+
export declare interface EditorSpellCheckDictionaryFileConfig {
|
|
2590
|
+
/** 词典文件的 aff 文件路径 */
|
|
2591
|
+
aff: string;
|
|
2592
|
+
/** 词典文件的 dic 文件路径 */
|
|
2593
|
+
dic: string;
|
|
2594
|
+
}
|
|
2595
|
+
|
|
2589
2596
|
/**
|
|
2590
2597
|
* 拼写检查相关配置
|
|
2591
2598
|
*/
|
|
2592
2599
|
export declare interface EditorSpellCheckOptions extends EditorFeatureConfig {
|
|
2593
2600
|
/**
|
|
2594
|
-
*
|
|
2601
|
+
* 拼写检查功能配置
|
|
2595
2602
|
*/
|
|
2596
|
-
|
|
2603
|
+
spellCheck?: {
|
|
2604
|
+
/**
|
|
2605
|
+
* 拼写检查功能是否被禁用
|
|
2606
|
+
*/
|
|
2607
|
+
disabled?: boolean;
|
|
2608
|
+
/**
|
|
2609
|
+
* 拼写检查所需要的字典文件 CDN 域名
|
|
2610
|
+
*/
|
|
2611
|
+
dictionaryCDNHost?: string;
|
|
2612
|
+
/**
|
|
2613
|
+
* 自定义拼写检查词典, 用于覆盖内置的默认词典
|
|
2614
|
+
*/
|
|
2615
|
+
customDictionary?: Partial<Record<EditorLanguage, EditorSpellCheckDictionaryFileConfig>>;
|
|
2616
|
+
};
|
|
2597
2617
|
/**
|
|
2598
|
-
*
|
|
2618
|
+
* 语法检查功能配置
|
|
2599
2619
|
*/
|
|
2600
|
-
|
|
2620
|
+
grammarCheck?: {
|
|
2621
|
+
/**
|
|
2622
|
+
* 语法检查功能是否被禁用
|
|
2623
|
+
*/
|
|
2624
|
+
disabled?: boolean;
|
|
2625
|
+
/**
|
|
2626
|
+
* 拼写检查API的URL,必须使用绝对路径
|
|
2627
|
+
*/
|
|
2628
|
+
url?: string;
|
|
2629
|
+
};
|
|
2601
2630
|
}
|
|
2602
2631
|
|
|
2603
2632
|
/**
|
|
@@ -3748,8 +3777,6 @@ export declare interface MenuItemConfig {
|
|
|
3748
3777
|
};
|
|
3749
3778
|
/** 边框 */
|
|
3750
3779
|
border: BorderConfig;
|
|
3751
|
-
/** 圆角 */
|
|
3752
|
-
borderRadius: string;
|
|
3753
3780
|
/** 布局 */
|
|
3754
3781
|
layout: {
|
|
3755
3782
|
/** 内边距 */
|