@univerjs/core 0.8.2 → 0.8.3-nightly.202506271607
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/lib/cjs/index.js +8 -8
- package/lib/es/index.js +10647 -10649
- package/lib/index.js +10647 -10649
- package/lib/types/index.d.ts +23 -23
- package/lib/types/types/enum/locale-type.d.ts +2 -1
- package/lib/umd/index.js +8 -8
- package/package.json +4 -4
- package/LICENSE +0 -176
package/lib/types/index.d.ts
CHANGED
|
@@ -13,20 +13,19 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export { getPlainText } from './docs/data-model/text-x/build-utils/parse';
|
|
17
|
-
export { debounce, get, merge, mergeWith, set } from 'lodash-es';
|
|
18
|
-
export { textDiff } from './shared/text-diff';
|
|
19
16
|
export { dedupe, dedupeBy, groupBy, makeArray, remove, rotate } from './common/array';
|
|
17
|
+
export * from './common/async';
|
|
20
18
|
export { isBooleanString } from './common/boolean';
|
|
21
19
|
export * from './common/const';
|
|
22
20
|
export * from './common/di';
|
|
23
|
-
export * from './common/async';
|
|
24
21
|
export { shallowEqual } from './common/equal';
|
|
25
|
-
export { ParagraphStyleBuilder, ParagraphStyleValue, RichTextBuilder, RichTextValue, TextDecorationBuilder, TextStyleBuilder, TextStyleValue } from './docs/data-model/rich-text-builder';
|
|
26
22
|
export { CanceledError, CustomCommandExecutionError } from './common/error';
|
|
27
23
|
export { throttle } from './common/function';
|
|
28
24
|
export type { IAsyncInterceptor, ICellInterceptor, IComposeInterceptors, IInterceptor, InterceptorHandler } from './common/interceptor';
|
|
29
25
|
export { AsyncInterceptorManager, composeInterceptors, createAsyncInterceptorKey, createInterceptorKey, InterceptorEffectEnum, InterceptorManager } from './common/interceptor';
|
|
26
|
+
export { invertColorByHSL } from './common/invert-color/invert-hsl';
|
|
27
|
+
export { invertColorByMatrix } from './common/invert-color/invert-rgb';
|
|
28
|
+
export type { RGBColorType } from './common/invert-color/utils';
|
|
30
29
|
export type { Serializable } from './common/json';
|
|
31
30
|
export { MemoryCursor } from './common/memory-cursor';
|
|
32
31
|
export { mixinClass } from './common/mixin';
|
|
@@ -40,40 +39,43 @@ export * from './docs/data-model';
|
|
|
40
39
|
export { JSON1, JSONX } from './docs/data-model/json-x/json-x';
|
|
41
40
|
export type { JSONXActions, JSONXPath } from './docs/data-model/json-x/json-x';
|
|
42
41
|
export { replaceInDocumentBody } from './docs/data-model/replacement';
|
|
42
|
+
export { ParagraphStyleBuilder, ParagraphStyleValue, RichTextBuilder, RichTextValue, TextDecorationBuilder, TextStyleBuilder, TextStyleValue } from './docs/data-model/rich-text-builder';
|
|
43
43
|
export { DEFAULT_DOCUMENT_SUB_COMPONENT_ID } from './docs/data-model/subdocument';
|
|
44
44
|
export { ActionIterator } from './docs/data-model/text-x/action-iterator';
|
|
45
45
|
export { type IDeleteAction, type IInsertAction, type IRetainAction, type TextXAction, TextXActionType, } from './docs/data-model/text-x/action-types';
|
|
46
46
|
export { normalizeTextRuns } from './docs/data-model/text-x/apply-utils/common';
|
|
47
47
|
export { updateAttributeByDelete } from './docs/data-model/text-x/apply-utils/delete-apply';
|
|
48
48
|
export { updateAttributeByInsert } from './docs/data-model/text-x/apply-utils/insert-apply';
|
|
49
|
+
export { getPlainText } from './docs/data-model/text-x/build-utils/parse';
|
|
49
50
|
export { TextX } from './docs/data-model/text-x/text-x';
|
|
50
51
|
export type { TPriority } from './docs/data-model/text-x/text-x';
|
|
51
52
|
export { composeBody, getBodySlice, getCustomBlockSlice, getCustomDecorationSlice, getCustomRangeSlice, getParagraphsSlice, getSectionBreakSlice, getTableSlice, getTextRunSlice, normalizeBody, SliceBodyType, } from './docs/data-model/text-x/utils';
|
|
52
53
|
export { EventState, EventSubject, fromEventSubject, type IEventObserver } from './observer/observable';
|
|
53
54
|
export { AuthzIoLocalService } from './services/authz-io/authz-io-local.service';
|
|
54
55
|
export { IAuthzIoService } from './services/authz-io/type';
|
|
55
|
-
export { MentionIOLocalService } from './services/mention-io/mention-io-local.service';
|
|
56
|
-
export { type IListMentionParam, type IListMentionResponse, IMentionIOService, type ITypeMentionList } from './services/mention-io/type';
|
|
57
56
|
export { type CommandListener, CommandService, CommandType, type ICommand, type ICommandInfo, ICommandService, type IExecutionOptions, type IMultiCommand, type IMutation, type IMutationCommonParams, type IMutationInfo, type IOperation, type IOperationInfo, NilCommand, sequenceExecute, sequenceExecuteAsync, } from './services/command/command.service';
|
|
58
57
|
export { IConfigService } from './services/config/config.service';
|
|
59
58
|
export { ConfigService } from './services/config/config.service';
|
|
60
59
|
export * from './services/context/context';
|
|
61
60
|
export { ContextService, IContextService } from './services/context/context.service';
|
|
62
61
|
export { ErrorService, type IError } from './services/error/error.service';
|
|
62
|
+
export { IImageIoService, type IImageIoServiceParam, ImageSourceType, ImageUploadStatusType } from './services/image-io/image-io.service';
|
|
63
63
|
export { type ICreateUnitOptions, IUniverInstanceService, UniverInstanceService } from './services/instance/instance.service';
|
|
64
64
|
export { LifecycleStages } from './services/lifecycle/lifecycle';
|
|
65
65
|
export { LifecycleService, LifecycleUnreachableError } from './services/lifecycle/lifecycle.service';
|
|
66
66
|
export { ILocalStorageService } from './services/local-storage/local-storage.service';
|
|
67
67
|
export { LocaleService } from './services/locale/locale.service';
|
|
68
68
|
export { DesktopLogService, ILogService, LogLevel } from './services/log/log.service';
|
|
69
|
+
export { MentionIOLocalService } from './services/mention-io/mention-io-local.service';
|
|
70
|
+
export { type IListMentionParam, type IListMentionResponse, IMentionIOService, type ITypeMentionList } from './services/mention-io/type';
|
|
69
71
|
export { PermissionService } from './services/permission/permission.service';
|
|
70
|
-
export { IPermissionService, PermissionStatus
|
|
72
|
+
export { IPermissionService, PermissionStatus } from './services/permission/type';
|
|
71
73
|
export type { IPermissionParam } from './services/permission/type';
|
|
72
74
|
export type { IPermissionPoint } from './services/permission/type';
|
|
73
75
|
export type { IPermissionTypes, RangePermissionPointConstructor, WorkbookPermissionPointConstructor, WorkSheetPermissionPointConstructor } from './services/permission/type';
|
|
76
|
+
export { type DependencyOverride, mergeOverrideWithDependencies } from './services/plugin/plugin-override';
|
|
74
77
|
export type { PluginCtor } from './services/plugin/plugin.service';
|
|
75
78
|
export { DependentOn, Plugin, PluginService } from './services/plugin/plugin.service';
|
|
76
|
-
export { type DependencyOverride, mergeOverrideWithDependencies } from './services/plugin/plugin-override';
|
|
77
79
|
export { IResourceLoaderService } from './services/resource-loader/type';
|
|
78
80
|
export { ResourceManagerService } from './services/resource-manager/resource-manager.service';
|
|
79
81
|
export type { IResourceHook, IResources } from './services/resource-manager/type';
|
|
@@ -83,23 +85,30 @@ export { type IUndoRedoCommandInfos, type IUndoRedoCommandInfosByInterceptor, ty
|
|
|
83
85
|
export { createDefaultUser } from './services/user-manager/const';
|
|
84
86
|
export { type IUser, UserManagerService } from './services/user-manager/user-manager.service';
|
|
85
87
|
export * from './shared';
|
|
88
|
+
export { ImageCacheMap } from './shared/cache/image-cache';
|
|
86
89
|
export { isBlackColor, isWhiteColor } from './shared/color/color-kit';
|
|
87
90
|
export { cellToRange } from './shared/common';
|
|
88
|
-
export { getIntersectRange } from './shared/range';
|
|
89
91
|
export { nameCharacterCheck } from './shared/name';
|
|
92
|
+
export { type BBox, type IRTreeItem, RBush, RTree } from './shared/r-tree';
|
|
93
|
+
export { getIntersectRange } from './shared/range';
|
|
90
94
|
export { afterTime, bufferDebounceTime, convertObservableToBehaviorSubject, fromCallback, takeAfter } from './shared/rxjs';
|
|
95
|
+
export { textDiff } from './shared/text-diff';
|
|
91
96
|
export { awaitTime, delayAnimationFrame } from './shared/timer';
|
|
97
|
+
export { isNodeEnv } from './shared/tools';
|
|
92
98
|
export { Range } from './sheets/range';
|
|
99
|
+
export { getCellCoordByIndexSimple, getCellPositionByIndexSimple, getCellWithCoordByIndexCore, SheetSkeleton } from './sheets/sheet-skeleton';
|
|
100
|
+
export type { IGetRowColByPosOptions } from './sheets/sheet-skeleton';
|
|
101
|
+
export * from './sheets/sheet-skeleton';
|
|
93
102
|
export { DEFAULT_WORKSHEET_COLUMN_COUNT, DEFAULT_WORKSHEET_COLUMN_COUNT_KEY, DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT, DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT_KEY, DEFAULT_WORKSHEET_COLUMN_WIDTH, DEFAULT_WORKSHEET_COLUMN_WIDTH_KEY, DEFAULT_WORKSHEET_ROW_COUNT, DEFAULT_WORKSHEET_ROW_COUNT_KEY, DEFAULT_WORKSHEET_ROW_HEIGHT, DEFAULT_WORKSHEET_ROW_HEIGHT_KEY, DEFAULT_WORKSHEET_ROW_TITLE_WIDTH, DEFAULT_WORKSHEET_ROW_TITLE_WIDTH_KEY, mergeWorksheetSnapshotWithDefault, } from './sheets/sheet-snapshot-utils';
|
|
94
103
|
export { Styles } from './sheets/styles';
|
|
95
104
|
export * from './sheets/typedef';
|
|
105
|
+
export type { IPosition } from './sheets/typedef';
|
|
96
106
|
export { addLinkToDocumentModel, isNotNullOrUndefined, isRangesEqual, isUnitRangesEqual } from './sheets/util';
|
|
97
|
-
export { SheetViewModel } from './sheets/view-model';
|
|
98
107
|
export { createDocumentModelWithStyle } from './sheets/util';
|
|
99
|
-
export {
|
|
100
|
-
export { IImageIoService, type IImageIoServiceParam, ImageSourceType, ImageUploadStatusType } from './services/image-io/image-io.service';
|
|
108
|
+
export { SheetViewModel } from './sheets/view-model';
|
|
101
109
|
export { getWorksheetUID, Workbook } from './sheets/workbook';
|
|
102
110
|
export { extractPureTextFromCell, getOriginCellValue, Worksheet } from './sheets/worksheet';
|
|
111
|
+
export { Skeleton } from './skeleton';
|
|
103
112
|
export { SlideDataModel } from './slides/slide-model';
|
|
104
113
|
export * from './types/const';
|
|
105
114
|
export { skipParseTagNames } from './types/const/clipboard';
|
|
@@ -110,17 +119,8 @@ export { DataValidationOperator } from './types/enum/data-validation-operator';
|
|
|
110
119
|
export { DataValidationRenderMode } from './types/enum/data-validation-render-mode';
|
|
111
120
|
export { DataValidationStatus } from './types/enum/data-validation-status';
|
|
112
121
|
export { DataValidationType } from './types/enum/data-validation-type';
|
|
113
|
-
export { getCellCoordByIndexSimple, getCellPositionByIndexSimple, getCellWithCoordByIndexCore, SheetSkeleton } from './sheets/sheet-skeleton';
|
|
114
122
|
export * from './types/interfaces';
|
|
115
123
|
export type { ICellCustomRender, ICellRenderContext } from './types/interfaces/i-cell-custom-render';
|
|
116
124
|
export type { IDataValidationRule, IDataValidationRuleBase, IDataValidationRuleInfo, IDataValidationRuleOptions, ISheetDataValidationRule } from './types/interfaces/i-data-validation';
|
|
117
|
-
export { type BBox, type IRTreeItem, RBush, RTree } from './shared/r-tree';
|
|
118
125
|
export { type IUniverConfig, Univer } from './univer';
|
|
119
|
-
export {
|
|
120
|
-
export { Skeleton } from './skeleton';
|
|
121
|
-
export type { IGetRowColByPosOptions } from './sheets/sheet-skeleton';
|
|
122
|
-
export type { IPosition } from './sheets/typedef';
|
|
123
|
-
export * from './sheets/sheet-skeleton';
|
|
124
|
-
export { invertColorByMatrix } from './common/invert-color/invert-rgb';
|
|
125
|
-
export { invertColorByHSL } from './common/invert-color/invert-hsl';
|
|
126
|
-
export type { RGBColorType } from './common/invert-color/utils';
|
|
126
|
+
export { debounce, get, merge, mergeWith, set } from 'lodash-es';
|