@officesdk/editor-sdk-core 0.0.0-alpha.1 → 0.0.0-alpha.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/types/docs.d.ts CHANGED
@@ -99,7 +99,7 @@ export declare interface BorderRadiusConfig {
99
99
  /** 超超大圆角 */
100
100
  xxl: string;
101
101
  /** 完全圆角 */
102
- full: '50%';
102
+ full: '1000px';
103
103
  }
104
104
 
105
105
  /** 通用边框状态样式 */
@@ -252,6 +252,10 @@ export declare interface CollaboratorInfo {
252
252
  export declare interface ColorConfig {
253
253
  /** 基础颜色配置 */
254
254
  base: BaseColors;
255
+ /** 文本颜色配置 */
256
+ text: TextColors;
257
+ /** 装饰色配置 */
258
+ decorate: DecorateColors;
255
259
  /** 边框颜色配置 */
256
260
  border: BorderColors;
257
261
  /** 背景色配置 */
@@ -373,6 +377,40 @@ export declare interface ConfirmButtonConfig {
373
377
  */
374
378
  export declare type Content<Delta = EditorDelta> = string | ArrayBuffer | Delta;
375
379
 
380
+ /**
381
+ * 装饰色
382
+ */
383
+ export declare interface DecorateColors {
384
+ /**
385
+ * 装饰色 june
386
+ */
387
+ june: string;
388
+ /**
389
+ * 装饰色 july
390
+ */
391
+ july: string;
392
+ /**
393
+ * 装饰色 october
394
+ */
395
+ october: string;
396
+ /**
397
+ * 装饰色 february
398
+ */
399
+ february: string;
400
+ /**
401
+ * 装饰色 november
402
+ */
403
+ november: string;
404
+ /**
405
+ * 装饰色 december
406
+ */
407
+ december: string;
408
+ /**
409
+ * 装饰色 april
410
+ */
411
+ april: string;
412
+ }
413
+
376
414
  /**
377
415
  * 文档信息配置项,用于显示在文档信息弹窗中的内容
378
416
  */
@@ -3785,18 +3823,61 @@ export declare interface SwitchConfig {
3785
3823
 
3786
3824
  /** Switch 尺寸配置 */
3787
3825
  export declare interface SwitchSizeStyles {
3788
- /** 宽度 */
3789
- width: string;
3790
- /** 高度 */
3791
- height: string;
3792
- /** 圆角 */
3793
- borderRadius: string;
3794
- /** 阴影 */
3795
- boxShadow: string;
3796
- /** 滑块尺寸 */
3797
- thumbSize: string;
3798
- /** 滑块偏移(距离边缘的间距) */
3799
- thumbOffset: string;
3826
+ /**
3827
+ * 容器样式
3828
+ */
3829
+ container: {
3830
+ /**
3831
+ * 容器宽度
3832
+ */
3833
+ width: string;
3834
+ /**
3835
+ * 容器高度
3836
+ */
3837
+ height: string;
3838
+ };
3839
+ /**
3840
+ * 轨道样式
3841
+ */
3842
+ track: {
3843
+ /**
3844
+ * 轨道宽度
3845
+ */
3846
+ width: string;
3847
+ /**
3848
+ * 轨道高度
3849
+ */
3850
+ height: string;
3851
+ /**
3852
+ * 轨道圆角
3853
+ */
3854
+ borderRadius: string;
3855
+ /**
3856
+ * 轨道阴影
3857
+ */
3858
+ boxShadow: string;
3859
+ };
3860
+ /**
3861
+ * 滑块样式
3862
+ */
3863
+ thumb: {
3864
+ /**
3865
+ * 滑块尺寸
3866
+ */
3867
+ size: string;
3868
+ /**
3869
+ * 滑块圆角
3870
+ */
3871
+ borderRadius: string;
3872
+ /**
3873
+ * 滑块边框宽度
3874
+ */
3875
+ borderWidth: string;
3876
+ /**
3877
+ * 滑块偏移(距离边缘的间距)
3878
+ */
3879
+ offset: string;
3880
+ };
3800
3881
  }
3801
3882
 
3802
3883
  /** Switch 状态样式(关闭/开启状态) */
@@ -3812,7 +3893,8 @@ export declare interface SwitchThumbStateStyles extends Omit<BackgroundStateStyl
3812
3893
  }
3813
3894
 
3814
3895
  /** switch轨道样式 */
3815
- export declare type SwitchTrackStateStyles = Omit<BackgroundStateStyles, 'backgroundActive'>;
3896
+ export declare interface SwitchTrackStateStyles extends Omit<BackgroundStateStyles, 'backgroundActive'>, Omit<ShadowStateStyles, 'boxShadowActive'> {
3897
+ }
3816
3898
 
3817
3899
  export declare interface SyncContext {
3818
3900
  clientId: string;
@@ -3873,6 +3955,36 @@ export declare interface TextButtonVariantStyles extends ButtonVariantStyles {
3873
3955
  status: ButtonStateStyles;
3874
3956
  }
3875
3957
 
3958
+ /**
3959
+ * 文本颜色
3960
+ */
3961
+ export declare interface TextColors {
3962
+ /**
3963
+ *文本内容
3964
+ */
3965
+ content: string;
3966
+ /**
3967
+ * 默认文本
3968
+ */
3969
+ default: string;
3970
+ /**
3971
+ * 中强文本
3972
+ */
3973
+ medium: string;
3974
+ /**
3975
+ * 次要文本
3976
+ */
3977
+ secondary: string;
3978
+ /**
3979
+ * 禁用文本
3980
+ */
3981
+ disabled: string;
3982
+ /**
3983
+ * 白色文本
3984
+ */
3985
+ white: string;
3986
+ }
3987
+
3876
3988
  /** 主题模式类型 */
3877
3989
  export declare enum ThemeMode {
3878
3990
  /** 明亮模式 */
package/types/docx.d.ts CHANGED
@@ -144,7 +144,7 @@ export declare interface BorderRadiusConfig {
144
144
  /** 超超大圆角 */
145
145
  xxl: string;
146
146
  /** 完全圆角 */
147
- full: '50%';
147
+ full: '1000px';
148
148
  }
149
149
 
150
150
  /** 通用边框状态样式 */
@@ -297,6 +297,10 @@ export declare interface CollaboratorInfo {
297
297
  export declare interface ColorConfig {
298
298
  /** 基础颜色配置 */
299
299
  base: BaseColors;
300
+ /** 文本颜色配置 */
301
+ text: TextColors;
302
+ /** 装饰色配置 */
303
+ decorate: DecorateColors;
300
304
  /** 边框颜色配置 */
301
305
  border: BorderColors;
302
306
  /** 背景色配置 */
@@ -418,6 +422,40 @@ export declare interface ConfirmButtonConfig {
418
422
  */
419
423
  export declare type Content<Delta = EditorDelta> = string | ArrayBuffer | Delta;
420
424
 
425
+ /**
426
+ * 装饰色
427
+ */
428
+ export declare interface DecorateColors {
429
+ /**
430
+ * 装饰色 june
431
+ */
432
+ june: string;
433
+ /**
434
+ * 装饰色 july
435
+ */
436
+ july: string;
437
+ /**
438
+ * 装饰色 october
439
+ */
440
+ october: string;
441
+ /**
442
+ * 装饰色 february
443
+ */
444
+ february: string;
445
+ /**
446
+ * 装饰色 november
447
+ */
448
+ november: string;
449
+ /**
450
+ * 装饰色 december
451
+ */
452
+ december: string;
453
+ /**
454
+ * 装饰色 april
455
+ */
456
+ april: string;
457
+ }
458
+
421
459
  /**
422
460
  * 传统文档右键菜单功能按钮
423
461
  */
@@ -4959,18 +4997,61 @@ export declare interface SwitchConfig {
4959
4997
 
4960
4998
  /** Switch 尺寸配置 */
4961
4999
  export declare interface SwitchSizeStyles {
4962
- /** 宽度 */
4963
- width: string;
4964
- /** 高度 */
4965
- height: string;
4966
- /** 圆角 */
4967
- borderRadius: string;
4968
- /** 阴影 */
4969
- boxShadow: string;
4970
- /** 滑块尺寸 */
4971
- thumbSize: string;
4972
- /** 滑块偏移(距离边缘的间距) */
4973
- thumbOffset: string;
5000
+ /**
5001
+ * 容器样式
5002
+ */
5003
+ container: {
5004
+ /**
5005
+ * 容器宽度
5006
+ */
5007
+ width: string;
5008
+ /**
5009
+ * 容器高度
5010
+ */
5011
+ height: string;
5012
+ };
5013
+ /**
5014
+ * 轨道样式
5015
+ */
5016
+ track: {
5017
+ /**
5018
+ * 轨道宽度
5019
+ */
5020
+ width: string;
5021
+ /**
5022
+ * 轨道高度
5023
+ */
5024
+ height: string;
5025
+ /**
5026
+ * 轨道圆角
5027
+ */
5028
+ borderRadius: string;
5029
+ /**
5030
+ * 轨道阴影
5031
+ */
5032
+ boxShadow: string;
5033
+ };
5034
+ /**
5035
+ * 滑块样式
5036
+ */
5037
+ thumb: {
5038
+ /**
5039
+ * 滑块尺寸
5040
+ */
5041
+ size: string;
5042
+ /**
5043
+ * 滑块圆角
5044
+ */
5045
+ borderRadius: string;
5046
+ /**
5047
+ * 滑块边框宽度
5048
+ */
5049
+ borderWidth: string;
5050
+ /**
5051
+ * 滑块偏移(距离边缘的间距)
5052
+ */
5053
+ offset: string;
5054
+ };
4974
5055
  }
4975
5056
 
4976
5057
  /** Switch 状态样式(关闭/开启状态) */
@@ -4986,7 +5067,8 @@ export declare interface SwitchThumbStateStyles extends Omit<BackgroundStateStyl
4986
5067
  }
4987
5068
 
4988
5069
  /** switch轨道样式 */
4989
- export declare type SwitchTrackStateStyles = Omit<BackgroundStateStyles, 'backgroundActive'>;
5070
+ export declare interface SwitchTrackStateStyles extends Omit<BackgroundStateStyles, 'backgroundActive'>, Omit<ShadowStateStyles, 'boxShadowActive'> {
5071
+ }
4990
5072
 
4991
5073
  export declare interface SyncContext {
4992
5074
  clientId: string;
@@ -5047,6 +5129,36 @@ export declare interface TextButtonVariantStyles extends ButtonVariantStyles {
5047
5129
  status: ButtonStateStyles;
5048
5130
  }
5049
5131
 
5132
+ /**
5133
+ * 文本颜色
5134
+ */
5135
+ export declare interface TextColors {
5136
+ /**
5137
+ *文本内容
5138
+ */
5139
+ content: string;
5140
+ /**
5141
+ * 默认文本
5142
+ */
5143
+ default: string;
5144
+ /**
5145
+ * 中强文本
5146
+ */
5147
+ medium: string;
5148
+ /**
5149
+ * 次要文本
5150
+ */
5151
+ secondary: string;
5152
+ /**
5153
+ * 禁用文本
5154
+ */
5155
+ disabled: string;
5156
+ /**
5157
+ * 白色文本
5158
+ */
5159
+ white: string;
5160
+ }
5161
+
5050
5162
  /** 主题模式类型 */
5051
5163
  export declare enum ThemeMode {
5052
5164
  /** 明亮模式 */
package/types/form.d.ts CHANGED
@@ -113,7 +113,7 @@ export declare interface BorderRadiusConfig {
113
113
  /** 超超大圆角 */
114
114
  xxl: string;
115
115
  /** 完全圆角 */
116
- full: '50%';
116
+ full: '1000px';
117
117
  }
118
118
 
119
119
  /** 通用边框状态样式 */
@@ -266,6 +266,10 @@ export declare interface CollaboratorInfo {
266
266
  export declare interface ColorConfig {
267
267
  /** 基础颜色配置 */
268
268
  base: BaseColors;
269
+ /** 文本颜色配置 */
270
+ text: TextColors;
271
+ /** 装饰色配置 */
272
+ decorate: DecorateColors;
269
273
  /** 边框颜色配置 */
270
274
  border: BorderColors;
271
275
  /** 背景色配置 */
@@ -387,6 +391,40 @@ export declare interface ConfirmButtonConfig {
387
391
  */
388
392
  export declare type Content<Delta = EditorDelta> = string | ArrayBuffer | Delta;
389
393
 
394
+ /**
395
+ * 装饰色
396
+ */
397
+ export declare interface DecorateColors {
398
+ /**
399
+ * 装饰色 june
400
+ */
401
+ june: string;
402
+ /**
403
+ * 装饰色 july
404
+ */
405
+ july: string;
406
+ /**
407
+ * 装饰色 october
408
+ */
409
+ october: string;
410
+ /**
411
+ * 装饰色 february
412
+ */
413
+ february: string;
414
+ /**
415
+ * 装饰色 november
416
+ */
417
+ november: string;
418
+ /**
419
+ * 装饰色 december
420
+ */
421
+ december: string;
422
+ /**
423
+ * 装饰色 april
424
+ */
425
+ april: string;
426
+ }
427
+
390
428
  /** Dropdown 箭头图标配置 */
391
429
  export declare interface DropdownArrowIconConfig extends IconConfig {
392
430
  /** 展开状态旋转角度 */
@@ -3754,18 +3792,61 @@ export declare interface SwitchConfig {
3754
3792
 
3755
3793
  /** Switch 尺寸配置 */
3756
3794
  export declare interface SwitchSizeStyles {
3757
- /** 宽度 */
3758
- width: string;
3759
- /** 高度 */
3760
- height: string;
3761
- /** 圆角 */
3762
- borderRadius: string;
3763
- /** 阴影 */
3764
- boxShadow: string;
3765
- /** 滑块尺寸 */
3766
- thumbSize: string;
3767
- /** 滑块偏移(距离边缘的间距) */
3768
- thumbOffset: string;
3795
+ /**
3796
+ * 容器样式
3797
+ */
3798
+ container: {
3799
+ /**
3800
+ * 容器宽度
3801
+ */
3802
+ width: string;
3803
+ /**
3804
+ * 容器高度
3805
+ */
3806
+ height: string;
3807
+ };
3808
+ /**
3809
+ * 轨道样式
3810
+ */
3811
+ track: {
3812
+ /**
3813
+ * 轨道宽度
3814
+ */
3815
+ width: string;
3816
+ /**
3817
+ * 轨道高度
3818
+ */
3819
+ height: string;
3820
+ /**
3821
+ * 轨道圆角
3822
+ */
3823
+ borderRadius: string;
3824
+ /**
3825
+ * 轨道阴影
3826
+ */
3827
+ boxShadow: string;
3828
+ };
3829
+ /**
3830
+ * 滑块样式
3831
+ */
3832
+ thumb: {
3833
+ /**
3834
+ * 滑块尺寸
3835
+ */
3836
+ size: string;
3837
+ /**
3838
+ * 滑块圆角
3839
+ */
3840
+ borderRadius: string;
3841
+ /**
3842
+ * 滑块边框宽度
3843
+ */
3844
+ borderWidth: string;
3845
+ /**
3846
+ * 滑块偏移(距离边缘的间距)
3847
+ */
3848
+ offset: string;
3849
+ };
3769
3850
  }
3770
3851
 
3771
3852
  /** Switch 状态样式(关闭/开启状态) */
@@ -3781,7 +3862,8 @@ export declare interface SwitchThumbStateStyles extends Omit<BackgroundStateStyl
3781
3862
  }
3782
3863
 
3783
3864
  /** switch轨道样式 */
3784
- export declare type SwitchTrackStateStyles = Omit<BackgroundStateStyles, 'backgroundActive'>;
3865
+ export declare interface SwitchTrackStateStyles extends Omit<BackgroundStateStyles, 'backgroundActive'>, Omit<ShadowStateStyles, 'boxShadowActive'> {
3866
+ }
3785
3867
 
3786
3868
  export declare interface SyncContext {
3787
3869
  clientId: string;
@@ -3842,6 +3924,36 @@ export declare interface TextButtonVariantStyles extends ButtonVariantStyles {
3842
3924
  status: ButtonStateStyles;
3843
3925
  }
3844
3926
 
3927
+ /**
3928
+ * 文本颜色
3929
+ */
3930
+ export declare interface TextColors {
3931
+ /**
3932
+ *文本内容
3933
+ */
3934
+ content: string;
3935
+ /**
3936
+ * 默认文本
3937
+ */
3938
+ default: string;
3939
+ /**
3940
+ * 中强文本
3941
+ */
3942
+ medium: string;
3943
+ /**
3944
+ * 次要文本
3945
+ */
3946
+ secondary: string;
3947
+ /**
3948
+ * 禁用文本
3949
+ */
3950
+ disabled: string;
3951
+ /**
3952
+ * 白色文本
3953
+ */
3954
+ white: string;
3955
+ }
3956
+
3845
3957
  /** 主题模式类型 */
3846
3958
  export declare enum ThemeMode {
3847
3959
  /** 明亮模式 */
@@ -128,7 +128,7 @@ export declare interface BorderRadiusConfig {
128
128
  /** 超超大圆角 */
129
129
  xxl: string;
130
130
  /** 完全圆角 */
131
- full: '50%';
131
+ full: '1000px';
132
132
  }
133
133
 
134
134
  /** 通用边框状态样式 */
@@ -281,6 +281,10 @@ export declare interface CollaboratorInfo {
281
281
  export declare interface ColorConfig {
282
282
  /** 基础颜色配置 */
283
283
  base: BaseColors;
284
+ /** 文本颜色配置 */
285
+ text: TextColors;
286
+ /** 装饰色配置 */
287
+ decorate: DecorateColors;
284
288
  /** 边框颜色配置 */
285
289
  border: BorderColors;
286
290
  /** 背景色配置 */
@@ -402,6 +406,40 @@ export declare interface ConfirmButtonConfig {
402
406
  */
403
407
  export declare type Content<Delta = EditorDelta> = string | ArrayBuffer | Delta;
404
408
 
409
+ /**
410
+ * 装饰色
411
+ */
412
+ export declare interface DecorateColors {
413
+ /**
414
+ * 装饰色 june
415
+ */
416
+ june: string;
417
+ /**
418
+ * 装饰色 july
419
+ */
420
+ july: string;
421
+ /**
422
+ * 装饰色 october
423
+ */
424
+ october: string;
425
+ /**
426
+ * 装饰色 february
427
+ */
428
+ february: string;
429
+ /**
430
+ * 装饰色 november
431
+ */
432
+ november: string;
433
+ /**
434
+ * 装饰色 december
435
+ */
436
+ december: string;
437
+ /**
438
+ * 装饰色 april
439
+ */
440
+ april: string;
441
+ }
442
+
405
443
  /** Dropdown 箭头图标配置 */
406
444
  export declare interface DropdownArrowIconConfig extends IconConfig {
407
445
  /** 展开状态旋转角度 */
@@ -3616,18 +3654,61 @@ export declare interface SwitchConfig {
3616
3654
 
3617
3655
  /** Switch 尺寸配置 */
3618
3656
  export declare interface SwitchSizeStyles {
3619
- /** 宽度 */
3620
- width: string;
3621
- /** 高度 */
3622
- height: string;
3623
- /** 圆角 */
3624
- borderRadius: string;
3625
- /** 阴影 */
3626
- boxShadow: string;
3627
- /** 滑块尺寸 */
3628
- thumbSize: string;
3629
- /** 滑块偏移(距离边缘的间距) */
3630
- thumbOffset: string;
3657
+ /**
3658
+ * 容器样式
3659
+ */
3660
+ container: {
3661
+ /**
3662
+ * 容器宽度
3663
+ */
3664
+ width: string;
3665
+ /**
3666
+ * 容器高度
3667
+ */
3668
+ height: string;
3669
+ };
3670
+ /**
3671
+ * 轨道样式
3672
+ */
3673
+ track: {
3674
+ /**
3675
+ * 轨道宽度
3676
+ */
3677
+ width: string;
3678
+ /**
3679
+ * 轨道高度
3680
+ */
3681
+ height: string;
3682
+ /**
3683
+ * 轨道圆角
3684
+ */
3685
+ borderRadius: string;
3686
+ /**
3687
+ * 轨道阴影
3688
+ */
3689
+ boxShadow: string;
3690
+ };
3691
+ /**
3692
+ * 滑块样式
3693
+ */
3694
+ thumb: {
3695
+ /**
3696
+ * 滑块尺寸
3697
+ */
3698
+ size: string;
3699
+ /**
3700
+ * 滑块圆角
3701
+ */
3702
+ borderRadius: string;
3703
+ /**
3704
+ * 滑块边框宽度
3705
+ */
3706
+ borderWidth: string;
3707
+ /**
3708
+ * 滑块偏移(距离边缘的间距)
3709
+ */
3710
+ offset: string;
3711
+ };
3631
3712
  }
3632
3713
 
3633
3714
  /** Switch 状态样式(关闭/开启状态) */
@@ -3643,7 +3724,8 @@ export declare interface SwitchThumbStateStyles extends Omit<BackgroundStateStyl
3643
3724
  }
3644
3725
 
3645
3726
  /** switch轨道样式 */
3646
- export declare type SwitchTrackStateStyles = Omit<BackgroundStateStyles, 'backgroundActive'>;
3727
+ export declare interface SwitchTrackStateStyles extends Omit<BackgroundStateStyles, 'backgroundActive'>, Omit<ShadowStateStyles, 'boxShadowActive'> {
3728
+ }
3647
3729
 
3648
3730
  export declare interface SyncContext {
3649
3731
  clientId: string;
@@ -3704,6 +3786,36 @@ export declare interface TextButtonVariantStyles extends ButtonVariantStyles {
3704
3786
  status: ButtonStateStyles;
3705
3787
  }
3706
3788
 
3789
+ /**
3790
+ * 文本颜色
3791
+ */
3792
+ export declare interface TextColors {
3793
+ /**
3794
+ *文本内容
3795
+ */
3796
+ content: string;
3797
+ /**
3798
+ * 默认文本
3799
+ */
3800
+ default: string;
3801
+ /**
3802
+ * 中强文本
3803
+ */
3804
+ medium: string;
3805
+ /**
3806
+ * 次要文本
3807
+ */
3808
+ secondary: string;
3809
+ /**
3810
+ * 禁用文本
3811
+ */
3812
+ disabled: string;
3813
+ /**
3814
+ * 白色文本
3815
+ */
3816
+ white: string;
3817
+ }
3818
+
3707
3819
  /** 主题模式类型 */
3708
3820
  export declare enum ThemeMode {
3709
3821
  /** 明亮模式 */