@univerjs/core 1.0.0-beta.1 → 1.0.0-beta.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/lib/cjs/facade.js CHANGED
@@ -1512,9 +1512,9 @@ let FUniver = _FUniver = class FUniver extends _univerjs_core.Disposable {
1512
1512
  * @example
1513
1513
  * ```ts
1514
1514
  * const richText = univerAPI.newRichText()
1515
- * .align({ horizontal: univerAPI.Enum.HorizontalAlign.CENTER })
1516
- * .text('Status: ')
1517
- * .span('Ready', { bold: true, color: '#16a34a' });
1515
+ * .text('Read ')
1516
+ * .link('Univer documentation', 'https://docs.univer.ai')
1517
+ * .text(' for details.');
1518
1518
  * ```
1519
1519
  */
1520
1520
  newRichText() {
package/lib/cjs/index.js CHANGED
@@ -1671,7 +1671,7 @@ let ThemeColors = /* @__PURE__ */ function(ThemeColors) {
1671
1671
  //#endregion
1672
1672
  //#region package.json
1673
1673
  var name = "@univerjs/core";
1674
- var version = "1.0.0-beta.1";
1674
+ var version = "1.0.0-beta.2";
1675
1675
 
1676
1676
  //#endregion
1677
1677
  //#region src/common/array.ts
@@ -13574,14 +13574,12 @@ function splitCustomRangesByIndex(customRanges, currentIndex) {
13574
13574
  const matchedCustomRangeIndex = customRanges.findIndex((c) => c.startIndex < currentIndex && c.endIndex >= currentIndex);
13575
13575
  const matchedCustomRange = customRanges[matchedCustomRangeIndex];
13576
13576
  if (matchedCustomRange) customRanges.splice(matchedCustomRangeIndex, 1, {
13577
- rangeId: matchedCustomRange.rangeId,
13578
- rangeType: matchedCustomRange.rangeType,
13577
+ ...matchedCustomRange,
13579
13578
  startIndex: matchedCustomRange.startIndex,
13580
13579
  endIndex: currentIndex - 1,
13581
13580
  properties: { ...matchedCustomRange.properties }
13582
13581
  }, {
13583
- rangeId: matchedCustomRange.rangeId,
13584
- rangeType: matchedCustomRange.rangeType,
13582
+ ...matchedCustomRange,
13585
13583
  startIndex: currentIndex,
13586
13584
  endIndex: matchedCustomRange.endIndex,
13587
13585
  properties: { ...matchedCustomRange.properties }
@@ -17242,6 +17240,27 @@ function getCustomBlockIdsInSelections(body, selections) {
17242
17240
  }
17243
17241
  return customBlockIds;
17244
17242
  }
17243
+ function removeDrawingReferences(documentData, selections, body = documentData.body) {
17244
+ if (!body) return [];
17245
+ const drawings = documentData.drawings ?? {};
17246
+ const drawingOrder = documentData.drawingsOrder ?? [];
17247
+ const blockIds = [...new Set(getCustomBlockIdsInSelections(body, selections))].sort((left, right) => drawingOrder.indexOf(right) - drawingOrder.indexOf(left));
17248
+ const jsonX = JSONX.getInstance();
17249
+ const actions = [];
17250
+ for (const blockId of blockIds) {
17251
+ const drawing = drawings[blockId];
17252
+ if (drawing != null) {
17253
+ const removeDrawingAction = jsonX.removeOp(["drawings", blockId], drawing);
17254
+ if (removeDrawingAction) actions.push(removeDrawingAction);
17255
+ }
17256
+ const drawingIndex = drawingOrder.indexOf(blockId);
17257
+ if (drawingIndex >= 0) {
17258
+ const removeDrawingOrderAction = jsonX.removeOp(["drawingsOrder", drawingIndex], blockId);
17259
+ if (removeDrawingOrderAction) actions.push(removeDrawingOrderAction);
17260
+ }
17261
+ }
17262
+ return actions;
17263
+ }
17245
17264
  const addDrawing = (param) => {
17246
17265
  var _documentDataModel$ge, _documentDataModel$ge2;
17247
17266
  const { selection, documentDataModel, drawings } = param;
@@ -17456,7 +17475,10 @@ _defineProperty(BuildTextUtils, "paragraph", {
17456
17475
  getParagraphsInRanges
17457
17476
  }
17458
17477
  });
17459
- _defineProperty(BuildTextUtils, "drawing", { add: addDrawing });
17478
+ _defineProperty(BuildTextUtils, "drawing", {
17479
+ add: addDrawing,
17480
+ remove: removeDrawingReferences
17481
+ });
17460
17482
 
17461
17483
  //#endregion
17462
17484
  //#region src/docs/data-model/rich-text-builder.ts
@@ -19399,6 +19421,26 @@ var RichTextBuilder = class RichTextBuilder extends RichTextValue {
19399
19421
  });
19400
19422
  }
19401
19423
  /**
19424
+ * Appends linked text.
19425
+ *
19426
+ * This is the agent-friendly alias of `insertLink(text, url)`. Use `setLink(start, end, url)` only when applying a
19427
+ * link to text that is already present and numeric offsets are unavoidable.
19428
+ *
19429
+ * @param text Visible link text to append. An empty string is ignored.
19430
+ * @param url Link destination.
19431
+ * @returns The current builder for chaining.
19432
+ * @example
19433
+ * ```ts
19434
+ * const richText = univerAPI.newRichText()
19435
+ * .text('Read ')
19436
+ * .link('Univer documentation', 'https://docs.univer.ai')
19437
+ * .text(' for details.');
19438
+ * ```
19439
+ */
19440
+ link(text, url) {
19441
+ return text ? this.insertLink(text, url) : this;
19442
+ }
19443
+ /**
19402
19444
  * Appends one ordered, unordered, or checklist paragraph.
19403
19445
  *
19404
19446
  * Consecutive items with the same `type` automatically share a generated list id. Supply a semantic `listId` when
@@ -19656,6 +19698,30 @@ var RichTextBuilder = class RichTextBuilder extends RichTextValue {
19656
19698
  if (changed) this._invalidateChildHandles();
19657
19699
  return this;
19658
19700
  }
19701
+ /**
19702
+ * Removes a link while preserving its visible text.
19703
+ *
19704
+ * Link ids are available from `getLinks()`. This readable alias avoids exposing text offsets for the common case.
19705
+ * Use `cancelLink(start, end)` only when removing every link in a known text range.
19706
+ *
19707
+ * @param id Link range id returned by `getLinks()`.
19708
+ * @returns The current builder for chaining.
19709
+ * @example
19710
+ * ```ts
19711
+ * const richText = univerAPI.newRichText().link('Univer', 'https://univer.ai');
19712
+ * const [link] = richText.getLinks();
19713
+ * if (link) richText.removeLink(link.rangeId);
19714
+ * ```
19715
+ */
19716
+ removeLink(id) {
19717
+ return this.cancelLink(id);
19718
+ }
19719
+ /**
19720
+ * Updates a link destination while preserving its visible text.
19721
+ * @param id Link range id returned by `getLinks()`.
19722
+ * @param url New link destination.
19723
+ * @returns The current builder for chaining.
19724
+ */
19659
19725
  updateLink(id, url) {
19660
19726
  var _this$_data$body16;
19661
19727
  const current = (_this$_data$body16 = this._data.body) === null || _this$_data$body16 === void 0 || (_this$_data$body16 = _this$_data$body16.customRanges) === null || _this$_data$body16 === void 0 ? void 0 : _this$_data$body16.find((range) => range.rangeId === id);
@@ -20974,6 +21040,8 @@ function createDocumentModelWithStyle(content, textStyle, config = {}) {
20974
21040
  }]
20975
21041
  },
20976
21042
  documentStyle: {
21043
+ textStyle: Tools.deepClone(textStyle),
21044
+ defaultParagraphStyle: { horizontalAlign },
20977
21045
  pageSize: {
20978
21046
  width: Number.POSITIVE_INFINITY,
20979
21047
  height: Number.POSITIVE_INFINITY
@@ -22170,6 +22238,11 @@ function mergeWorksheetSnapshotWithDefault(snapshot) {
22170
22238
  const key = _key;
22171
22239
  if (typeof snapshot[key] === "undefined") snapshot[key] = defaultSnapshot[key];
22172
22240
  });
22241
+ const freeze = snapshot.freeze;
22242
+ freeze.xSplit = freeze.xSplit ?? defaultSnapshot.freeze.xSplit;
22243
+ freeze.ySplit = freeze.ySplit ?? defaultSnapshot.freeze.ySplit;
22244
+ freeze.startRow = freeze.ySplit === 0 ? defaultSnapshot.freeze.startRow : freeze.startRow ?? defaultSnapshot.freeze.startRow;
22245
+ freeze.startColumn = freeze.xSplit === 0 ? defaultSnapshot.freeze.startColumn : freeze.startColumn ?? defaultSnapshot.freeze.startColumn;
22173
22246
  return snapshot;
22174
22247
  }
22175
22248
 
@@ -27436,6 +27509,12 @@ Object.defineProperty(exports, 'setDependencies', {
27436
27509
  return _wendellhu_redi.setDependencies;
27437
27510
  }
27438
27511
  });
27512
+ Object.defineProperty(exports, 'setWith', {
27513
+ enumerable: true,
27514
+ get: function () {
27515
+ return lodash_es.setWith;
27516
+ }
27517
+ });
27439
27518
  exports.shallowEqual = shallowEqual;
27440
27519
  exports.shiftExclusiveRangeOnDelete = shiftExclusiveRangeOnDelete;
27441
27520
  exports.shiftExclusiveRangeOnInsert = shiftExclusiveRangeOnInsert;
package/lib/es/facade.js CHANGED
@@ -1511,9 +1511,9 @@ let FUniver = _FUniver = class FUniver extends Disposable {
1511
1511
  * @example
1512
1512
  * ```ts
1513
1513
  * const richText = univerAPI.newRichText()
1514
- * .align({ horizontal: univerAPI.Enum.HorizontalAlign.CENTER })
1515
- * .text('Status: ')
1516
- * .span('Ready', { bold: true, color: '#16a34a' });
1514
+ * .text('Read ')
1515
+ * .link('Univer documentation', 'https://docs.univer.ai')
1516
+ * .text(' for details.');
1517
1517
  * ```
1518
1518
  */
1519
1519
  newRichText() {
package/lib/es/index.js CHANGED
@@ -2,7 +2,7 @@ import { BehaviorSubject, Observable, ReplaySubject, Subject, Subscription, comb
2
2
  import { ObjectScope, UnitRole, UniverType as UniverInstanceType } from "@univerjs/protocol";
3
3
  import { debounceTime as debounceTime$1, filter as filter$1, first, map as map$1 } from "rxjs/operators";
4
4
  import { Inject, InjectSelf, Injector, LookUp, Many, Optional, Quantity, RediError, Self, SkipSelf, WithNew, createIdentifier, forwardRef, isAsyncDependencyItem, isAsyncHook, isClassDependencyItem, isCtor, isDisposable, isFactoryDependencyItem, isValueDependencyItem, setDependencies } from "@wendellhu/redi";
5
- import { debounce, get, merge, mergeWith, set } from "lodash-es";
5
+ import { debounce, get, merge, mergeWith, set, setWith } from "lodash-es";
6
6
  import RBush, { default as RBush$1 } from "rbush";
7
7
  import AsyncLock from "async-lock";
8
8
  import * as json1 from "ot-json1";
@@ -1642,7 +1642,7 @@ let ThemeColors = /* @__PURE__ */ function(ThemeColors) {
1642
1642
  //#endregion
1643
1643
  //#region package.json
1644
1644
  var name = "@univerjs/core";
1645
- var version = "1.0.0-beta.1";
1645
+ var version = "1.0.0-beta.2";
1646
1646
 
1647
1647
  //#endregion
1648
1648
  //#region src/common/array.ts
@@ -13545,14 +13545,12 @@ function splitCustomRangesByIndex(customRanges, currentIndex) {
13545
13545
  const matchedCustomRangeIndex = customRanges.findIndex((c) => c.startIndex < currentIndex && c.endIndex >= currentIndex);
13546
13546
  const matchedCustomRange = customRanges[matchedCustomRangeIndex];
13547
13547
  if (matchedCustomRange) customRanges.splice(matchedCustomRangeIndex, 1, {
13548
- rangeId: matchedCustomRange.rangeId,
13549
- rangeType: matchedCustomRange.rangeType,
13548
+ ...matchedCustomRange,
13550
13549
  startIndex: matchedCustomRange.startIndex,
13551
13550
  endIndex: currentIndex - 1,
13552
13551
  properties: { ...matchedCustomRange.properties }
13553
13552
  }, {
13554
- rangeId: matchedCustomRange.rangeId,
13555
- rangeType: matchedCustomRange.rangeType,
13553
+ ...matchedCustomRange,
13556
13554
  startIndex: currentIndex,
13557
13555
  endIndex: matchedCustomRange.endIndex,
13558
13556
  properties: { ...matchedCustomRange.properties }
@@ -17213,6 +17211,27 @@ function getCustomBlockIdsInSelections(body, selections) {
17213
17211
  }
17214
17212
  return customBlockIds;
17215
17213
  }
17214
+ function removeDrawingReferences(documentData, selections, body = documentData.body) {
17215
+ if (!body) return [];
17216
+ const drawings = documentData.drawings ?? {};
17217
+ const drawingOrder = documentData.drawingsOrder ?? [];
17218
+ const blockIds = [...new Set(getCustomBlockIdsInSelections(body, selections))].sort((left, right) => drawingOrder.indexOf(right) - drawingOrder.indexOf(left));
17219
+ const jsonX = JSONX.getInstance();
17220
+ const actions = [];
17221
+ for (const blockId of blockIds) {
17222
+ const drawing = drawings[blockId];
17223
+ if (drawing != null) {
17224
+ const removeDrawingAction = jsonX.removeOp(["drawings", blockId], drawing);
17225
+ if (removeDrawingAction) actions.push(removeDrawingAction);
17226
+ }
17227
+ const drawingIndex = drawingOrder.indexOf(blockId);
17228
+ if (drawingIndex >= 0) {
17229
+ const removeDrawingOrderAction = jsonX.removeOp(["drawingsOrder", drawingIndex], blockId);
17230
+ if (removeDrawingOrderAction) actions.push(removeDrawingOrderAction);
17231
+ }
17232
+ }
17233
+ return actions;
17234
+ }
17216
17235
  const addDrawing = (param) => {
17217
17236
  var _documentDataModel$ge, _documentDataModel$ge2;
17218
17237
  const { selection, documentDataModel, drawings } = param;
@@ -17427,7 +17446,10 @@ _defineProperty(BuildTextUtils, "paragraph", {
17427
17446
  getParagraphsInRanges
17428
17447
  }
17429
17448
  });
17430
- _defineProperty(BuildTextUtils, "drawing", { add: addDrawing });
17449
+ _defineProperty(BuildTextUtils, "drawing", {
17450
+ add: addDrawing,
17451
+ remove: removeDrawingReferences
17452
+ });
17431
17453
 
17432
17454
  //#endregion
17433
17455
  //#region src/docs/data-model/rich-text-builder.ts
@@ -19370,6 +19392,26 @@ var RichTextBuilder = class RichTextBuilder extends RichTextValue {
19370
19392
  });
19371
19393
  }
19372
19394
  /**
19395
+ * Appends linked text.
19396
+ *
19397
+ * This is the agent-friendly alias of `insertLink(text, url)`. Use `setLink(start, end, url)` only when applying a
19398
+ * link to text that is already present and numeric offsets are unavoidable.
19399
+ *
19400
+ * @param text Visible link text to append. An empty string is ignored.
19401
+ * @param url Link destination.
19402
+ * @returns The current builder for chaining.
19403
+ * @example
19404
+ * ```ts
19405
+ * const richText = univerAPI.newRichText()
19406
+ * .text('Read ')
19407
+ * .link('Univer documentation', 'https://docs.univer.ai')
19408
+ * .text(' for details.');
19409
+ * ```
19410
+ */
19411
+ link(text, url) {
19412
+ return text ? this.insertLink(text, url) : this;
19413
+ }
19414
+ /**
19373
19415
  * Appends one ordered, unordered, or checklist paragraph.
19374
19416
  *
19375
19417
  * Consecutive items with the same `type` automatically share a generated list id. Supply a semantic `listId` when
@@ -19627,6 +19669,30 @@ var RichTextBuilder = class RichTextBuilder extends RichTextValue {
19627
19669
  if (changed) this._invalidateChildHandles();
19628
19670
  return this;
19629
19671
  }
19672
+ /**
19673
+ * Removes a link while preserving its visible text.
19674
+ *
19675
+ * Link ids are available from `getLinks()`. This readable alias avoids exposing text offsets for the common case.
19676
+ * Use `cancelLink(start, end)` only when removing every link in a known text range.
19677
+ *
19678
+ * @param id Link range id returned by `getLinks()`.
19679
+ * @returns The current builder for chaining.
19680
+ * @example
19681
+ * ```ts
19682
+ * const richText = univerAPI.newRichText().link('Univer', 'https://univer.ai');
19683
+ * const [link] = richText.getLinks();
19684
+ * if (link) richText.removeLink(link.rangeId);
19685
+ * ```
19686
+ */
19687
+ removeLink(id) {
19688
+ return this.cancelLink(id);
19689
+ }
19690
+ /**
19691
+ * Updates a link destination while preserving its visible text.
19692
+ * @param id Link range id returned by `getLinks()`.
19693
+ * @param url New link destination.
19694
+ * @returns The current builder for chaining.
19695
+ */
19630
19696
  updateLink(id, url) {
19631
19697
  var _this$_data$body16;
19632
19698
  const current = (_this$_data$body16 = this._data.body) === null || _this$_data$body16 === void 0 || (_this$_data$body16 = _this$_data$body16.customRanges) === null || _this$_data$body16 === void 0 ? void 0 : _this$_data$body16.find((range) => range.rangeId === id);
@@ -20945,6 +21011,8 @@ function createDocumentModelWithStyle(content, textStyle, config = {}) {
20945
21011
  }]
20946
21012
  },
20947
21013
  documentStyle: {
21014
+ textStyle: Tools.deepClone(textStyle),
21015
+ defaultParagraphStyle: { horizontalAlign },
20948
21016
  pageSize: {
20949
21017
  width: Number.POSITIVE_INFINITY,
20950
21018
  height: Number.POSITIVE_INFINITY
@@ -22141,6 +22209,11 @@ function mergeWorksheetSnapshotWithDefault(snapshot) {
22141
22209
  const key = _key;
22142
22210
  if (typeof snapshot[key] === "undefined") snapshot[key] = defaultSnapshot[key];
22143
22211
  });
22212
+ const freeze = snapshot.freeze;
22213
+ freeze.xSplit = freeze.xSplit ?? defaultSnapshot.freeze.xSplit;
22214
+ freeze.ySplit = freeze.ySplit ?? defaultSnapshot.freeze.ySplit;
22215
+ freeze.startRow = freeze.ySplit === 0 ? defaultSnapshot.freeze.startRow : freeze.startRow ?? defaultSnapshot.freeze.startRow;
22216
+ freeze.startColumn = freeze.xSplit === 0 ? defaultSnapshot.freeze.startColumn : freeze.startColumn ?? defaultSnapshot.freeze.startColumn;
22144
22217
  return snapshot;
22145
22218
  }
22146
22219
 
@@ -26713,4 +26786,4 @@ function createUniverInjector(parentInjector, override) {
26713
26786
  installShims();
26714
26787
 
26715
26788
  //#endregion
26716
- export { ABCToNumber, AUTO_HEIGHT_FOR_MERGED_CELLS, AbsoluteRefType, ActionIterator, AlignTypeH, AlignTypeV, ArrangeTypeEnum, AsyncInterceptorManager, AsyncLock, AuthzIoLocalService, AutoFillSeries, BASE_RECORD_ID_FIELD_ID, BASE_RECORD_ID_FIELD_NAME, BORDER_KEYS, BORDER_STYLE_KEYS, BaseConditionalColorOperator, BaseConditionalColorTarget, BaseConditionalDateMode, BaseDataModel, BaseFieldType, BaseFilterConjunction, BaseFilterOperator, BaseHierarchyInvalidReason, BaseRecordLinkRole, BaseSortDirection, BaseViewType, BaselineOffset, BlockType, BooleanNumber, BorderStyleTypes, BorderType, BuildTextUtils, BulletAlignment, COLORS, COLOR_STYLE_KEYS, COMMAND_LOG_EXECUTION_CONFIG_KEY, CanceledError, CellModeEnum, CellValueType, ColorKit, ColorType, ColumnLayoutType, ColumnResponsiveType, ColumnSeparatorType, CommandService, CommandType, CommonHideTypes, ConfigService, ContextService, CopyPasteType, CustomCommandExecutionError, CustomDecorationType, CustomRangeType, DEFAULT_CELL, DEFAULT_DOC, DEFAULT_DOCUMENT_PARAGRAPH_LINE_SPACING, DEFAULT_DOCUMENT_PARAGRAPH_SPACE_ABOVE, DEFAULT_DOCUMENT_PARAGRAPH_SPACE_BELOW, DEFAULT_DOCUMENT_SUB_COMPONENT_ID, DEFAULT_EMPTY_DOCUMENT_VALUE, DEFAULT_NUMBER_FORMAT, DEFAULT_RANGE, DEFAULT_RANGE_ARRAY, DEFAULT_SELECTION, DEFAULT_STYLES, DEFAULT_TEXT_FORMAT, DEFAULT_TEXT_FORMAT_EXCEL, 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, DOCS_COMMENT_EDITOR_UNIT_ID_KEY, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY, DOCS_NORMAL_EDITOR_UNIT_ID_KEY, DOC_DRAWING_PRINTING_COMPONENT_KEY, DOC_RANGE_TYPE, DashStyleType, DataStreamTreeNodeType, DataStreamTreeTokenType, DataValidationErrorStyle, DataValidationImeMode, DataValidationOperator, DataValidationRenderMode, DataValidationStatus, DataValidationType, DeleteDirection, DependentOn, DesktopLogService, DeveloperMetadataVisibility, Dimension, Direction, Disposable, DisposableCollection, DocStyleType, DocumentBlockRangeType, DocumentBlockType, DocumentDataModel, DocumentFlavor, DocxBreakType, DrawingTypeEnum, EDITOR_ACTIVATED, EXTENSION_NAMES, ErrorService, EventState, EventSubject, FOCUSING_BOARD, FOCUSING_COMMENT_EDITOR, FOCUSING_COMMON_DRAWINGS, FOCUSING_DOC, FOCUSING_EDITOR_INPUT_FORMULA, FOCUSING_EDITOR_STANDALONE, FOCUSING_FX_BAR_EDITOR, FOCUSING_PANEL_EDITOR, FOCUSING_SHAPE_TEXT_EDITOR, FOCUSING_SHEET, FOCUSING_SLIDE, FOCUSING_UNIT, FOCUSING_UNIVER_EDITOR, FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE, FORMULA_EDITOR_ACTIVATED, FollowNumberWithType, FontItalic, FontStyleType, FontWeight, GridType, HorizontalAlign, IAuthzIoService, ICommandService, IConfigService, IConfirmService, IContextService, IImageIoService, ILocalStorageService, ILogService, IMentionIOService, IPermissionService, IResourceLoaderService, IResourceManagerService, IS_ROW_STYLE_PRECEDE_COLUMN_STYLE, IURLImageService, IUndoRedoService, IUniverInstanceService, ImageCacheMap, ImageSourceType, ImageUploadStatusType, Inject, InjectSelf, Injector, InterceptorEffectEnum, InterceptorManager, InterpolationPointType, json1 as JSON1, JSONX, LOCALE_META, LRUHelper, LRUMap, LifecycleService, LifecycleStages, LifecycleUnreachableError, ListGlyphType, LocalUndoRedoService, LocaleService, LocaleType, LogLevel, LookUp, MAX_COLUMN_COUNT, MAX_ROW_COUNT, MODERN_DOCUMENT_DEFAULT_MARGIN, MODERN_DOCUMENT_WIDTH, MOVE_BUFFER_VALUE, Many, MemoryCursor, MentionIOLocalService, MentionType, ModernDocumentWidthMode, NAMED_STYLE_MAP, NAMED_STYLE_SPACE_MAP, NamedStyleType, NilCommand, NumberUnitType, ObjectMatrix, ObjectRelativeFromH, ObjectRelativeFromV, Optional, PADDING_KEYS, PAGE_SIZE, PAPER_TYPES, PARAGRAPH_ID_PREFIX, PRESERVE_INSERTED_PARAGRAPH_IDS, PRESET_LIST_TYPE, PageOrientType, PaperType, ParagraphElementType, ParagraphStyleBuilder, ParagraphStyleValue, PermissionService, PermissionStatus, Plugin, PluginService, PositionedObjectLayoutType, PresetListType, ProtectionType, Quantity, QuickListType, QuickListTypeMap, RANGE_DIRECTION, RANGE_TYPE, RBush, RCDisposable, RESTORE_INSERTED_PARAGRAPH_IDS, RGBA_PAREN, RGB_PAREN, ROTATE_BUFFER_VALUE, RTree, Range, Rectangle, RediError, RedoCommand, RedoCommandId, RefAlias, RegionService, Registry, RegistryAsMap, RelativeDate, ResourceManagerService, RichTextBuilder, RichTextParagraphBuilder, RichTextRunBuilder, RichTextValue, RxDisposable, SECTION_ID_PREFIX, SHEET_EDITOR_UNITS, STYLE_KEYS, SectionType, Self, SheetSkeleton, SheetTypes, SheetViewModel, Skeleton, SkipSelf, SliceBodyType, SpacingRule, Styles, TEXT_DECORATION_KEYS, TEXT_ROTATION_KEYS, THEME_COLORS, TRADITIONAL_DOCUMENT_DEFAULT_MARGIN, TabStopAlignment, TabStopLeader, TableAlignmentType, TableLayoutType, TableRowHeightRule, TableSizeType, TableTextWrapType, TestConfirmService, TextDecoration, TextDecorationBuilder, TextDirection, TextDirectionType, TextStyleBuilder, TextStyleValue, TextX, TextXActionType, ThemeColorType, ThemeColors, ThemeService, Tools, UndoCommand, UndoCommandId, UnitModel, Univer, UniverInstanceService, UniverInstanceType, UpdateDocsAttributeType, UserManagerService, VerticalAlign, VerticalAlignmentType, WithNew, Workbook, Worksheet, WrapStrategy, WrapTextType, addLinkToDocumentModel, afterInitApply, afterTime, allocateBaseFormulaTableName, assertBaseTableRecordIdentity, awaitTime, binSearchFirstGreaterThanTarget, binarySearchArray, bufferDebounceTime, cellToRange, characterSpacingControlType, checkForSubstrings, checkIfMove, checkParagraphHasBullet, checkParagraphHasIndent, checkParagraphHasIndentByStyle, cloneBodyWithFreshParagraphIds, cloneCellData, cloneCellDataMatrix, cloneCellDataWithSpanAndDisplay, cloneParagraphWithId, cloneSectionBreakWithId, cloneValue, cloneWorksheetData, codeToBlob, columnLabelToNumber, composeBody, composeInterceptors, composeStyles, concatMatrixArray, containsInteriorInsertionOffset, containsStreamIndex, convertCellToRange, convertObservableToBehaviorSubject, covertCellValue, covertCellValues, createAsyncInterceptorKey, createBaseFormulaTableNameMap, createBaseFormulaTableReferenceNormalizer, createBaseRecordIdField, createDefaultBaseTableSnapshot, createDefaultUser, createDocumentModelWithStyle, createIdentifier, createInterceptorKey, createInternalEditorID, createParagraphId, createRandomId, createRowColIter, createSectionId, createSheetGapTestConfig, currencySymbols, customNameCharacterCheck, dateKit, debounce, dedupe, dedupeBy, deepCompare, delayAnimationFrame, deleteContent, extractPureTextFromCell, forwardRef, fromCallback, fromEventSubject, generateIntervalsByPoints, generateRandomId, get, getArrayLength, getBaseFormulaTableName, getEmptySnapshot as getBasesEmptySnapshot, getBlockRangeInterval, getBodySlice, getBodySliceForSplitTextXAction, getBodySliceForTextXAction, getBorderStyleType, getCellCoordByIndexSimple, getCellValueType, getCellWithCoordByIndexCore, getColorStyle, getColumnGroupRangeInterval, getCustomBlockIdsInSelections, getCustomBlockInterval, getCustomBlockSlice, getCustomDecorationSlice, getCustomRangeInterval, getCustomRangeSlice, getDisplayValueFromCell, getEmptySnapshot$1 as getDocsEmptySnapshot, getDocsUpdateBody, getDrawingOrderIndex, getEmptyCell, getExclusiveRangeInterval, getInclusiveRangeInterval, getIntersectRange, getNumfmtParseValueFilter, getOriginCellValue, getParagraphContentStartOffset, getParagraphContentStartOffsets, getParagraphFollowingBlockOffset, getParagraphsSlice, getPlainText, getReverseDirection, getRichTextEditPath, getSectionBreakSlice, getSectionHeaderFooterReferenceKey, getEmptySnapshot$2 as getSheetsEmptySnapshot, getSingleDataStreamChange, getTableCellTokenInterval, getTableRangeInterval, getTableRowTokenInterval, getTableSlice, getTextRunSlice, getTransformOffsetX, getTransformOffsetY, getWorksheetUID, groupBy, handleStyleToString, hashAlgorithm, horizontalLineSegmentsSubtraction, insertMatrixArray, insertTextToContent, intersectsOperationalIntervals, invertColorByHSL, invertColorByMatrix, isAsyncDependencyItem, isAsyncHook, isBaseRecordIdFieldName, isBlackColor, isBooleanString, isCellCoverable, isCellV, isClassDependencyItem, isCommentEditorID, isCtor, isDefaultFormat, isDisposable, isEmptyCell, isFactoryDependencyItem, isFormulaId, isFormulaString, isICellData, isInternalEditorID, isNodeEnv, isNotNullOrUndefined, isNullCell, isNumeric, isPatternEqualWithoutDecimal, isRangesEqual, isRealNum, isSafeNumeric, isSafeUrl, isSameStyleTextRun, isTextFormat, isUnitRangesEqual, isValidBaseRecordId, isValidRange, isValueDependencyItem, isWhiteColor, makeArray, makeCellRangeToRangeData, mapObjectMatrix, merge, mergeIntervals, mergeLocales, mergeOverrideWithDependencies, mergeSets, mergeWith, mergeWorksheetSnapshotWithDefault, migrateBaseFormulaTableNames, mixinClass, moveMatrixArray, moveRangeByOffset, nameCharacterCheck, noop, normalizeBaseFormulaTableName, normalizeBaseFormulaTableReferences, normalizeBody, normalizeDrawingOrderIndex, normalizeInsertedSectionIdsForDocument, normalizeTextRuns, normalizeUrl, numberToABC, numberToListABC, api_exports as numfmt, regexp, registerDependencies, remove, repeatStringNumTimes, replaceInDocumentBody, requestImmediateMacroTask, resolveDocumentParagraphStyle, resolveSectionHeaderFooterReference, resolveSectionHeaderFooterReferences, resolveWithBasePath, rotate, searchArray, searchInOrderedArray, selectionToArray, sequence, sequenceAsync, sequenceExecute, sequenceExecuteAsync, set, setDependencies, shallowEqual, shiftExclusiveRangeOnDelete, shiftExclusiveRangeOnInsert, shiftInclusiveRangeOnDelete, shiftInclusiveRangeOnInsert, skipParseTagNames, sliceMatrixArray, sortRules, sortRulesByDesc, sortRulesFactory, spliceArray, splitIntoGrid, takeAfter, throttle, toDisposable, touchDependencies, updateAttributeByDelete, updateAttributeByInsert, validateDocBodyStructure, validateDocumentStructure, willLoseNumericPrecision };
26789
+ export { ABCToNumber, AUTO_HEIGHT_FOR_MERGED_CELLS, AbsoluteRefType, ActionIterator, AlignTypeH, AlignTypeV, ArrangeTypeEnum, AsyncInterceptorManager, AsyncLock, AuthzIoLocalService, AutoFillSeries, BASE_RECORD_ID_FIELD_ID, BASE_RECORD_ID_FIELD_NAME, BORDER_KEYS, BORDER_STYLE_KEYS, BaseConditionalColorOperator, BaseConditionalColorTarget, BaseConditionalDateMode, BaseDataModel, BaseFieldType, BaseFilterConjunction, BaseFilterOperator, BaseHierarchyInvalidReason, BaseRecordLinkRole, BaseSortDirection, BaseViewType, BaselineOffset, BlockType, BooleanNumber, BorderStyleTypes, BorderType, BuildTextUtils, BulletAlignment, COLORS, COLOR_STYLE_KEYS, COMMAND_LOG_EXECUTION_CONFIG_KEY, CanceledError, CellModeEnum, CellValueType, ColorKit, ColorType, ColumnLayoutType, ColumnResponsiveType, ColumnSeparatorType, CommandService, CommandType, CommonHideTypes, ConfigService, ContextService, CopyPasteType, CustomCommandExecutionError, CustomDecorationType, CustomRangeType, DEFAULT_CELL, DEFAULT_DOC, DEFAULT_DOCUMENT_PARAGRAPH_LINE_SPACING, DEFAULT_DOCUMENT_PARAGRAPH_SPACE_ABOVE, DEFAULT_DOCUMENT_PARAGRAPH_SPACE_BELOW, DEFAULT_DOCUMENT_SUB_COMPONENT_ID, DEFAULT_EMPTY_DOCUMENT_VALUE, DEFAULT_NUMBER_FORMAT, DEFAULT_RANGE, DEFAULT_RANGE_ARRAY, DEFAULT_SELECTION, DEFAULT_STYLES, DEFAULT_TEXT_FORMAT, DEFAULT_TEXT_FORMAT_EXCEL, 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, DOCS_COMMENT_EDITOR_UNIT_ID_KEY, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY, DOCS_NORMAL_EDITOR_UNIT_ID_KEY, DOC_DRAWING_PRINTING_COMPONENT_KEY, DOC_RANGE_TYPE, DashStyleType, DataStreamTreeNodeType, DataStreamTreeTokenType, DataValidationErrorStyle, DataValidationImeMode, DataValidationOperator, DataValidationRenderMode, DataValidationStatus, DataValidationType, DeleteDirection, DependentOn, DesktopLogService, DeveloperMetadataVisibility, Dimension, Direction, Disposable, DisposableCollection, DocStyleType, DocumentBlockRangeType, DocumentBlockType, DocumentDataModel, DocumentFlavor, DocxBreakType, DrawingTypeEnum, EDITOR_ACTIVATED, EXTENSION_NAMES, ErrorService, EventState, EventSubject, FOCUSING_BOARD, FOCUSING_COMMENT_EDITOR, FOCUSING_COMMON_DRAWINGS, FOCUSING_DOC, FOCUSING_EDITOR_INPUT_FORMULA, FOCUSING_EDITOR_STANDALONE, FOCUSING_FX_BAR_EDITOR, FOCUSING_PANEL_EDITOR, FOCUSING_SHAPE_TEXT_EDITOR, FOCUSING_SHEET, FOCUSING_SLIDE, FOCUSING_UNIT, FOCUSING_UNIVER_EDITOR, FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE, FORMULA_EDITOR_ACTIVATED, FollowNumberWithType, FontItalic, FontStyleType, FontWeight, GridType, HorizontalAlign, IAuthzIoService, ICommandService, IConfigService, IConfirmService, IContextService, IImageIoService, ILocalStorageService, ILogService, IMentionIOService, IPermissionService, IResourceLoaderService, IResourceManagerService, IS_ROW_STYLE_PRECEDE_COLUMN_STYLE, IURLImageService, IUndoRedoService, IUniverInstanceService, ImageCacheMap, ImageSourceType, ImageUploadStatusType, Inject, InjectSelf, Injector, InterceptorEffectEnum, InterceptorManager, InterpolationPointType, json1 as JSON1, JSONX, LOCALE_META, LRUHelper, LRUMap, LifecycleService, LifecycleStages, LifecycleUnreachableError, ListGlyphType, LocalUndoRedoService, LocaleService, LocaleType, LogLevel, LookUp, MAX_COLUMN_COUNT, MAX_ROW_COUNT, MODERN_DOCUMENT_DEFAULT_MARGIN, MODERN_DOCUMENT_WIDTH, MOVE_BUFFER_VALUE, Many, MemoryCursor, MentionIOLocalService, MentionType, ModernDocumentWidthMode, NAMED_STYLE_MAP, NAMED_STYLE_SPACE_MAP, NamedStyleType, NilCommand, NumberUnitType, ObjectMatrix, ObjectRelativeFromH, ObjectRelativeFromV, Optional, PADDING_KEYS, PAGE_SIZE, PAPER_TYPES, PARAGRAPH_ID_PREFIX, PRESERVE_INSERTED_PARAGRAPH_IDS, PRESET_LIST_TYPE, PageOrientType, PaperType, ParagraphElementType, ParagraphStyleBuilder, ParagraphStyleValue, PermissionService, PermissionStatus, Plugin, PluginService, PositionedObjectLayoutType, PresetListType, ProtectionType, Quantity, QuickListType, QuickListTypeMap, RANGE_DIRECTION, RANGE_TYPE, RBush, RCDisposable, RESTORE_INSERTED_PARAGRAPH_IDS, RGBA_PAREN, RGB_PAREN, ROTATE_BUFFER_VALUE, RTree, Range, Rectangle, RediError, RedoCommand, RedoCommandId, RefAlias, RegionService, Registry, RegistryAsMap, RelativeDate, ResourceManagerService, RichTextBuilder, RichTextParagraphBuilder, RichTextRunBuilder, RichTextValue, RxDisposable, SECTION_ID_PREFIX, SHEET_EDITOR_UNITS, STYLE_KEYS, SectionType, Self, SheetSkeleton, SheetTypes, SheetViewModel, Skeleton, SkipSelf, SliceBodyType, SpacingRule, Styles, TEXT_DECORATION_KEYS, TEXT_ROTATION_KEYS, THEME_COLORS, TRADITIONAL_DOCUMENT_DEFAULT_MARGIN, TabStopAlignment, TabStopLeader, TableAlignmentType, TableLayoutType, TableRowHeightRule, TableSizeType, TableTextWrapType, TestConfirmService, TextDecoration, TextDecorationBuilder, TextDirection, TextDirectionType, TextStyleBuilder, TextStyleValue, TextX, TextXActionType, ThemeColorType, ThemeColors, ThemeService, Tools, UndoCommand, UndoCommandId, UnitModel, Univer, UniverInstanceService, UniverInstanceType, UpdateDocsAttributeType, UserManagerService, VerticalAlign, VerticalAlignmentType, WithNew, Workbook, Worksheet, WrapStrategy, WrapTextType, addLinkToDocumentModel, afterInitApply, afterTime, allocateBaseFormulaTableName, assertBaseTableRecordIdentity, awaitTime, binSearchFirstGreaterThanTarget, binarySearchArray, bufferDebounceTime, cellToRange, characterSpacingControlType, checkForSubstrings, checkIfMove, checkParagraphHasBullet, checkParagraphHasIndent, checkParagraphHasIndentByStyle, cloneBodyWithFreshParagraphIds, cloneCellData, cloneCellDataMatrix, cloneCellDataWithSpanAndDisplay, cloneParagraphWithId, cloneSectionBreakWithId, cloneValue, cloneWorksheetData, codeToBlob, columnLabelToNumber, composeBody, composeInterceptors, composeStyles, concatMatrixArray, containsInteriorInsertionOffset, containsStreamIndex, convertCellToRange, convertObservableToBehaviorSubject, covertCellValue, covertCellValues, createAsyncInterceptorKey, createBaseFormulaTableNameMap, createBaseFormulaTableReferenceNormalizer, createBaseRecordIdField, createDefaultBaseTableSnapshot, createDefaultUser, createDocumentModelWithStyle, createIdentifier, createInterceptorKey, createInternalEditorID, createParagraphId, createRandomId, createRowColIter, createSectionId, createSheetGapTestConfig, currencySymbols, customNameCharacterCheck, dateKit, debounce, dedupe, dedupeBy, deepCompare, delayAnimationFrame, deleteContent, extractPureTextFromCell, forwardRef, fromCallback, fromEventSubject, generateIntervalsByPoints, generateRandomId, get, getArrayLength, getBaseFormulaTableName, getEmptySnapshot as getBasesEmptySnapshot, getBlockRangeInterval, getBodySlice, getBodySliceForSplitTextXAction, getBodySliceForTextXAction, getBorderStyleType, getCellCoordByIndexSimple, getCellValueType, getCellWithCoordByIndexCore, getColorStyle, getColumnGroupRangeInterval, getCustomBlockIdsInSelections, getCustomBlockInterval, getCustomBlockSlice, getCustomDecorationSlice, getCustomRangeInterval, getCustomRangeSlice, getDisplayValueFromCell, getEmptySnapshot$1 as getDocsEmptySnapshot, getDocsUpdateBody, getDrawingOrderIndex, getEmptyCell, getExclusiveRangeInterval, getInclusiveRangeInterval, getIntersectRange, getNumfmtParseValueFilter, getOriginCellValue, getParagraphContentStartOffset, getParagraphContentStartOffsets, getParagraphFollowingBlockOffset, getParagraphsSlice, getPlainText, getReverseDirection, getRichTextEditPath, getSectionBreakSlice, getSectionHeaderFooterReferenceKey, getEmptySnapshot$2 as getSheetsEmptySnapshot, getSingleDataStreamChange, getTableCellTokenInterval, getTableRangeInterval, getTableRowTokenInterval, getTableSlice, getTextRunSlice, getTransformOffsetX, getTransformOffsetY, getWorksheetUID, groupBy, handleStyleToString, hashAlgorithm, horizontalLineSegmentsSubtraction, insertMatrixArray, insertTextToContent, intersectsOperationalIntervals, invertColorByHSL, invertColorByMatrix, isAsyncDependencyItem, isAsyncHook, isBaseRecordIdFieldName, isBlackColor, isBooleanString, isCellCoverable, isCellV, isClassDependencyItem, isCommentEditorID, isCtor, isDefaultFormat, isDisposable, isEmptyCell, isFactoryDependencyItem, isFormulaId, isFormulaString, isICellData, isInternalEditorID, isNodeEnv, isNotNullOrUndefined, isNullCell, isNumeric, isPatternEqualWithoutDecimal, isRangesEqual, isRealNum, isSafeNumeric, isSafeUrl, isSameStyleTextRun, isTextFormat, isUnitRangesEqual, isValidBaseRecordId, isValidRange, isValueDependencyItem, isWhiteColor, makeArray, makeCellRangeToRangeData, mapObjectMatrix, merge, mergeIntervals, mergeLocales, mergeOverrideWithDependencies, mergeSets, mergeWith, mergeWorksheetSnapshotWithDefault, migrateBaseFormulaTableNames, mixinClass, moveMatrixArray, moveRangeByOffset, nameCharacterCheck, noop, normalizeBaseFormulaTableName, normalizeBaseFormulaTableReferences, normalizeBody, normalizeDrawingOrderIndex, normalizeInsertedSectionIdsForDocument, normalizeTextRuns, normalizeUrl, numberToABC, numberToListABC, api_exports as numfmt, regexp, registerDependencies, remove, repeatStringNumTimes, replaceInDocumentBody, requestImmediateMacroTask, resolveDocumentParagraphStyle, resolveSectionHeaderFooterReference, resolveSectionHeaderFooterReferences, resolveWithBasePath, rotate, searchArray, searchInOrderedArray, selectionToArray, sequence, sequenceAsync, sequenceExecute, sequenceExecuteAsync, set, setDependencies, setWith, shallowEqual, shiftExclusiveRangeOnDelete, shiftExclusiveRangeOnInsert, shiftInclusiveRangeOnDelete, shiftInclusiveRangeOnInsert, skipParseTagNames, sliceMatrixArray, sortRules, sortRulesByDesc, sortRulesFactory, spliceArray, splitIntoGrid, takeAfter, throttle, toDisposable, touchDependencies, updateAttributeByDelete, updateAttributeByInsert, validateDocBodyStructure, validateDocumentStructure, willLoseNumericPrecision };
package/lib/facade.js CHANGED
@@ -1511,9 +1511,9 @@ let FUniver = _FUniver = class FUniver extends Disposable {
1511
1511
  * @example
1512
1512
  * ```ts
1513
1513
  * const richText = univerAPI.newRichText()
1514
- * .align({ horizontal: univerAPI.Enum.HorizontalAlign.CENTER })
1515
- * .text('Status: ')
1516
- * .span('Ready', { bold: true, color: '#16a34a' });
1514
+ * .text('Read ')
1515
+ * .link('Univer documentation', 'https://docs.univer.ai')
1516
+ * .text(' for details.');
1517
1517
  * ```
1518
1518
  */
1519
1519
  newRichText() {
package/lib/index.js CHANGED
@@ -2,7 +2,7 @@ import { BehaviorSubject, Observable, ReplaySubject, Subject, Subscription, comb
2
2
  import { ObjectScope, UnitRole, UniverType as UniverInstanceType } from "@univerjs/protocol";
3
3
  import { debounceTime as debounceTime$1, filter as filter$1, first, map as map$1 } from "rxjs/operators";
4
4
  import { Inject, InjectSelf, Injector, LookUp, Many, Optional, Quantity, RediError, Self, SkipSelf, WithNew, createIdentifier, forwardRef, isAsyncDependencyItem, isAsyncHook, isClassDependencyItem, isCtor, isDisposable, isFactoryDependencyItem, isValueDependencyItem, setDependencies } from "@wendellhu/redi";
5
- import { debounce, get, merge, mergeWith, set } from "lodash-es";
5
+ import { debounce, get, merge, mergeWith, set, setWith } from "lodash-es";
6
6
  import RBush, { default as RBush$1 } from "rbush";
7
7
  import AsyncLock from "async-lock";
8
8
  import * as json1 from "ot-json1";
@@ -1642,7 +1642,7 @@ let ThemeColors = /* @__PURE__ */ function(ThemeColors) {
1642
1642
  //#endregion
1643
1643
  //#region package.json
1644
1644
  var name = "@univerjs/core";
1645
- var version = "1.0.0-beta.1";
1645
+ var version = "1.0.0-beta.2";
1646
1646
 
1647
1647
  //#endregion
1648
1648
  //#region src/common/array.ts
@@ -13545,14 +13545,12 @@ function splitCustomRangesByIndex(customRanges, currentIndex) {
13545
13545
  const matchedCustomRangeIndex = customRanges.findIndex((c) => c.startIndex < currentIndex && c.endIndex >= currentIndex);
13546
13546
  const matchedCustomRange = customRanges[matchedCustomRangeIndex];
13547
13547
  if (matchedCustomRange) customRanges.splice(matchedCustomRangeIndex, 1, {
13548
- rangeId: matchedCustomRange.rangeId,
13549
- rangeType: matchedCustomRange.rangeType,
13548
+ ...matchedCustomRange,
13550
13549
  startIndex: matchedCustomRange.startIndex,
13551
13550
  endIndex: currentIndex - 1,
13552
13551
  properties: { ...matchedCustomRange.properties }
13553
13552
  }, {
13554
- rangeId: matchedCustomRange.rangeId,
13555
- rangeType: matchedCustomRange.rangeType,
13553
+ ...matchedCustomRange,
13556
13554
  startIndex: currentIndex,
13557
13555
  endIndex: matchedCustomRange.endIndex,
13558
13556
  properties: { ...matchedCustomRange.properties }
@@ -17213,6 +17211,27 @@ function getCustomBlockIdsInSelections(body, selections) {
17213
17211
  }
17214
17212
  return customBlockIds;
17215
17213
  }
17214
+ function removeDrawingReferences(documentData, selections, body = documentData.body) {
17215
+ if (!body) return [];
17216
+ const drawings = documentData.drawings ?? {};
17217
+ const drawingOrder = documentData.drawingsOrder ?? [];
17218
+ const blockIds = [...new Set(getCustomBlockIdsInSelections(body, selections))].sort((left, right) => drawingOrder.indexOf(right) - drawingOrder.indexOf(left));
17219
+ const jsonX = JSONX.getInstance();
17220
+ const actions = [];
17221
+ for (const blockId of blockIds) {
17222
+ const drawing = drawings[blockId];
17223
+ if (drawing != null) {
17224
+ const removeDrawingAction = jsonX.removeOp(["drawings", blockId], drawing);
17225
+ if (removeDrawingAction) actions.push(removeDrawingAction);
17226
+ }
17227
+ const drawingIndex = drawingOrder.indexOf(blockId);
17228
+ if (drawingIndex >= 0) {
17229
+ const removeDrawingOrderAction = jsonX.removeOp(["drawingsOrder", drawingIndex], blockId);
17230
+ if (removeDrawingOrderAction) actions.push(removeDrawingOrderAction);
17231
+ }
17232
+ }
17233
+ return actions;
17234
+ }
17216
17235
  const addDrawing = (param) => {
17217
17236
  var _documentDataModel$ge, _documentDataModel$ge2;
17218
17237
  const { selection, documentDataModel, drawings } = param;
@@ -17427,7 +17446,10 @@ _defineProperty(BuildTextUtils, "paragraph", {
17427
17446
  getParagraphsInRanges
17428
17447
  }
17429
17448
  });
17430
- _defineProperty(BuildTextUtils, "drawing", { add: addDrawing });
17449
+ _defineProperty(BuildTextUtils, "drawing", {
17450
+ add: addDrawing,
17451
+ remove: removeDrawingReferences
17452
+ });
17431
17453
 
17432
17454
  //#endregion
17433
17455
  //#region src/docs/data-model/rich-text-builder.ts
@@ -19370,6 +19392,26 @@ var RichTextBuilder = class RichTextBuilder extends RichTextValue {
19370
19392
  });
19371
19393
  }
19372
19394
  /**
19395
+ * Appends linked text.
19396
+ *
19397
+ * This is the agent-friendly alias of `insertLink(text, url)`. Use `setLink(start, end, url)` only when applying a
19398
+ * link to text that is already present and numeric offsets are unavoidable.
19399
+ *
19400
+ * @param text Visible link text to append. An empty string is ignored.
19401
+ * @param url Link destination.
19402
+ * @returns The current builder for chaining.
19403
+ * @example
19404
+ * ```ts
19405
+ * const richText = univerAPI.newRichText()
19406
+ * .text('Read ')
19407
+ * .link('Univer documentation', 'https://docs.univer.ai')
19408
+ * .text(' for details.');
19409
+ * ```
19410
+ */
19411
+ link(text, url) {
19412
+ return text ? this.insertLink(text, url) : this;
19413
+ }
19414
+ /**
19373
19415
  * Appends one ordered, unordered, or checklist paragraph.
19374
19416
  *
19375
19417
  * Consecutive items with the same `type` automatically share a generated list id. Supply a semantic `listId` when
@@ -19627,6 +19669,30 @@ var RichTextBuilder = class RichTextBuilder extends RichTextValue {
19627
19669
  if (changed) this._invalidateChildHandles();
19628
19670
  return this;
19629
19671
  }
19672
+ /**
19673
+ * Removes a link while preserving its visible text.
19674
+ *
19675
+ * Link ids are available from `getLinks()`. This readable alias avoids exposing text offsets for the common case.
19676
+ * Use `cancelLink(start, end)` only when removing every link in a known text range.
19677
+ *
19678
+ * @param id Link range id returned by `getLinks()`.
19679
+ * @returns The current builder for chaining.
19680
+ * @example
19681
+ * ```ts
19682
+ * const richText = univerAPI.newRichText().link('Univer', 'https://univer.ai');
19683
+ * const [link] = richText.getLinks();
19684
+ * if (link) richText.removeLink(link.rangeId);
19685
+ * ```
19686
+ */
19687
+ removeLink(id) {
19688
+ return this.cancelLink(id);
19689
+ }
19690
+ /**
19691
+ * Updates a link destination while preserving its visible text.
19692
+ * @param id Link range id returned by `getLinks()`.
19693
+ * @param url New link destination.
19694
+ * @returns The current builder for chaining.
19695
+ */
19630
19696
  updateLink(id, url) {
19631
19697
  var _this$_data$body16;
19632
19698
  const current = (_this$_data$body16 = this._data.body) === null || _this$_data$body16 === void 0 || (_this$_data$body16 = _this$_data$body16.customRanges) === null || _this$_data$body16 === void 0 ? void 0 : _this$_data$body16.find((range) => range.rangeId === id);
@@ -20945,6 +21011,8 @@ function createDocumentModelWithStyle(content, textStyle, config = {}) {
20945
21011
  }]
20946
21012
  },
20947
21013
  documentStyle: {
21014
+ textStyle: Tools.deepClone(textStyle),
21015
+ defaultParagraphStyle: { horizontalAlign },
20948
21016
  pageSize: {
20949
21017
  width: Number.POSITIVE_INFINITY,
20950
21018
  height: Number.POSITIVE_INFINITY
@@ -22141,6 +22209,11 @@ function mergeWorksheetSnapshotWithDefault(snapshot) {
22141
22209
  const key = _key;
22142
22210
  if (typeof snapshot[key] === "undefined") snapshot[key] = defaultSnapshot[key];
22143
22211
  });
22212
+ const freeze = snapshot.freeze;
22213
+ freeze.xSplit = freeze.xSplit ?? defaultSnapshot.freeze.xSplit;
22214
+ freeze.ySplit = freeze.ySplit ?? defaultSnapshot.freeze.ySplit;
22215
+ freeze.startRow = freeze.ySplit === 0 ? defaultSnapshot.freeze.startRow : freeze.startRow ?? defaultSnapshot.freeze.startRow;
22216
+ freeze.startColumn = freeze.xSplit === 0 ? defaultSnapshot.freeze.startColumn : freeze.startColumn ?? defaultSnapshot.freeze.startColumn;
22144
22217
  return snapshot;
22145
22218
  }
22146
22219
 
@@ -26713,4 +26786,4 @@ function createUniverInjector(parentInjector, override) {
26713
26786
  installShims();
26714
26787
 
26715
26788
  //#endregion
26716
- export { ABCToNumber, AUTO_HEIGHT_FOR_MERGED_CELLS, AbsoluteRefType, ActionIterator, AlignTypeH, AlignTypeV, ArrangeTypeEnum, AsyncInterceptorManager, AsyncLock, AuthzIoLocalService, AutoFillSeries, BASE_RECORD_ID_FIELD_ID, BASE_RECORD_ID_FIELD_NAME, BORDER_KEYS, BORDER_STYLE_KEYS, BaseConditionalColorOperator, BaseConditionalColorTarget, BaseConditionalDateMode, BaseDataModel, BaseFieldType, BaseFilterConjunction, BaseFilterOperator, BaseHierarchyInvalidReason, BaseRecordLinkRole, BaseSortDirection, BaseViewType, BaselineOffset, BlockType, BooleanNumber, BorderStyleTypes, BorderType, BuildTextUtils, BulletAlignment, COLORS, COLOR_STYLE_KEYS, COMMAND_LOG_EXECUTION_CONFIG_KEY, CanceledError, CellModeEnum, CellValueType, ColorKit, ColorType, ColumnLayoutType, ColumnResponsiveType, ColumnSeparatorType, CommandService, CommandType, CommonHideTypes, ConfigService, ContextService, CopyPasteType, CustomCommandExecutionError, CustomDecorationType, CustomRangeType, DEFAULT_CELL, DEFAULT_DOC, DEFAULT_DOCUMENT_PARAGRAPH_LINE_SPACING, DEFAULT_DOCUMENT_PARAGRAPH_SPACE_ABOVE, DEFAULT_DOCUMENT_PARAGRAPH_SPACE_BELOW, DEFAULT_DOCUMENT_SUB_COMPONENT_ID, DEFAULT_EMPTY_DOCUMENT_VALUE, DEFAULT_NUMBER_FORMAT, DEFAULT_RANGE, DEFAULT_RANGE_ARRAY, DEFAULT_SELECTION, DEFAULT_STYLES, DEFAULT_TEXT_FORMAT, DEFAULT_TEXT_FORMAT_EXCEL, 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, DOCS_COMMENT_EDITOR_UNIT_ID_KEY, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY, DOCS_NORMAL_EDITOR_UNIT_ID_KEY, DOC_DRAWING_PRINTING_COMPONENT_KEY, DOC_RANGE_TYPE, DashStyleType, DataStreamTreeNodeType, DataStreamTreeTokenType, DataValidationErrorStyle, DataValidationImeMode, DataValidationOperator, DataValidationRenderMode, DataValidationStatus, DataValidationType, DeleteDirection, DependentOn, DesktopLogService, DeveloperMetadataVisibility, Dimension, Direction, Disposable, DisposableCollection, DocStyleType, DocumentBlockRangeType, DocumentBlockType, DocumentDataModel, DocumentFlavor, DocxBreakType, DrawingTypeEnum, EDITOR_ACTIVATED, EXTENSION_NAMES, ErrorService, EventState, EventSubject, FOCUSING_BOARD, FOCUSING_COMMENT_EDITOR, FOCUSING_COMMON_DRAWINGS, FOCUSING_DOC, FOCUSING_EDITOR_INPUT_FORMULA, FOCUSING_EDITOR_STANDALONE, FOCUSING_FX_BAR_EDITOR, FOCUSING_PANEL_EDITOR, FOCUSING_SHAPE_TEXT_EDITOR, FOCUSING_SHEET, FOCUSING_SLIDE, FOCUSING_UNIT, FOCUSING_UNIVER_EDITOR, FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE, FORMULA_EDITOR_ACTIVATED, FollowNumberWithType, FontItalic, FontStyleType, FontWeight, GridType, HorizontalAlign, IAuthzIoService, ICommandService, IConfigService, IConfirmService, IContextService, IImageIoService, ILocalStorageService, ILogService, IMentionIOService, IPermissionService, IResourceLoaderService, IResourceManagerService, IS_ROW_STYLE_PRECEDE_COLUMN_STYLE, IURLImageService, IUndoRedoService, IUniverInstanceService, ImageCacheMap, ImageSourceType, ImageUploadStatusType, Inject, InjectSelf, Injector, InterceptorEffectEnum, InterceptorManager, InterpolationPointType, json1 as JSON1, JSONX, LOCALE_META, LRUHelper, LRUMap, LifecycleService, LifecycleStages, LifecycleUnreachableError, ListGlyphType, LocalUndoRedoService, LocaleService, LocaleType, LogLevel, LookUp, MAX_COLUMN_COUNT, MAX_ROW_COUNT, MODERN_DOCUMENT_DEFAULT_MARGIN, MODERN_DOCUMENT_WIDTH, MOVE_BUFFER_VALUE, Many, MemoryCursor, MentionIOLocalService, MentionType, ModernDocumentWidthMode, NAMED_STYLE_MAP, NAMED_STYLE_SPACE_MAP, NamedStyleType, NilCommand, NumberUnitType, ObjectMatrix, ObjectRelativeFromH, ObjectRelativeFromV, Optional, PADDING_KEYS, PAGE_SIZE, PAPER_TYPES, PARAGRAPH_ID_PREFIX, PRESERVE_INSERTED_PARAGRAPH_IDS, PRESET_LIST_TYPE, PageOrientType, PaperType, ParagraphElementType, ParagraphStyleBuilder, ParagraphStyleValue, PermissionService, PermissionStatus, Plugin, PluginService, PositionedObjectLayoutType, PresetListType, ProtectionType, Quantity, QuickListType, QuickListTypeMap, RANGE_DIRECTION, RANGE_TYPE, RBush, RCDisposable, RESTORE_INSERTED_PARAGRAPH_IDS, RGBA_PAREN, RGB_PAREN, ROTATE_BUFFER_VALUE, RTree, Range, Rectangle, RediError, RedoCommand, RedoCommandId, RefAlias, RegionService, Registry, RegistryAsMap, RelativeDate, ResourceManagerService, RichTextBuilder, RichTextParagraphBuilder, RichTextRunBuilder, RichTextValue, RxDisposable, SECTION_ID_PREFIX, SHEET_EDITOR_UNITS, STYLE_KEYS, SectionType, Self, SheetSkeleton, SheetTypes, SheetViewModel, Skeleton, SkipSelf, SliceBodyType, SpacingRule, Styles, TEXT_DECORATION_KEYS, TEXT_ROTATION_KEYS, THEME_COLORS, TRADITIONAL_DOCUMENT_DEFAULT_MARGIN, TabStopAlignment, TabStopLeader, TableAlignmentType, TableLayoutType, TableRowHeightRule, TableSizeType, TableTextWrapType, TestConfirmService, TextDecoration, TextDecorationBuilder, TextDirection, TextDirectionType, TextStyleBuilder, TextStyleValue, TextX, TextXActionType, ThemeColorType, ThemeColors, ThemeService, Tools, UndoCommand, UndoCommandId, UnitModel, Univer, UniverInstanceService, UniverInstanceType, UpdateDocsAttributeType, UserManagerService, VerticalAlign, VerticalAlignmentType, WithNew, Workbook, Worksheet, WrapStrategy, WrapTextType, addLinkToDocumentModel, afterInitApply, afterTime, allocateBaseFormulaTableName, assertBaseTableRecordIdentity, awaitTime, binSearchFirstGreaterThanTarget, binarySearchArray, bufferDebounceTime, cellToRange, characterSpacingControlType, checkForSubstrings, checkIfMove, checkParagraphHasBullet, checkParagraphHasIndent, checkParagraphHasIndentByStyle, cloneBodyWithFreshParagraphIds, cloneCellData, cloneCellDataMatrix, cloneCellDataWithSpanAndDisplay, cloneParagraphWithId, cloneSectionBreakWithId, cloneValue, cloneWorksheetData, codeToBlob, columnLabelToNumber, composeBody, composeInterceptors, composeStyles, concatMatrixArray, containsInteriorInsertionOffset, containsStreamIndex, convertCellToRange, convertObservableToBehaviorSubject, covertCellValue, covertCellValues, createAsyncInterceptorKey, createBaseFormulaTableNameMap, createBaseFormulaTableReferenceNormalizer, createBaseRecordIdField, createDefaultBaseTableSnapshot, createDefaultUser, createDocumentModelWithStyle, createIdentifier, createInterceptorKey, createInternalEditorID, createParagraphId, createRandomId, createRowColIter, createSectionId, createSheetGapTestConfig, currencySymbols, customNameCharacterCheck, dateKit, debounce, dedupe, dedupeBy, deepCompare, delayAnimationFrame, deleteContent, extractPureTextFromCell, forwardRef, fromCallback, fromEventSubject, generateIntervalsByPoints, generateRandomId, get, getArrayLength, getBaseFormulaTableName, getEmptySnapshot as getBasesEmptySnapshot, getBlockRangeInterval, getBodySlice, getBodySliceForSplitTextXAction, getBodySliceForTextXAction, getBorderStyleType, getCellCoordByIndexSimple, getCellValueType, getCellWithCoordByIndexCore, getColorStyle, getColumnGroupRangeInterval, getCustomBlockIdsInSelections, getCustomBlockInterval, getCustomBlockSlice, getCustomDecorationSlice, getCustomRangeInterval, getCustomRangeSlice, getDisplayValueFromCell, getEmptySnapshot$1 as getDocsEmptySnapshot, getDocsUpdateBody, getDrawingOrderIndex, getEmptyCell, getExclusiveRangeInterval, getInclusiveRangeInterval, getIntersectRange, getNumfmtParseValueFilter, getOriginCellValue, getParagraphContentStartOffset, getParagraphContentStartOffsets, getParagraphFollowingBlockOffset, getParagraphsSlice, getPlainText, getReverseDirection, getRichTextEditPath, getSectionBreakSlice, getSectionHeaderFooterReferenceKey, getEmptySnapshot$2 as getSheetsEmptySnapshot, getSingleDataStreamChange, getTableCellTokenInterval, getTableRangeInterval, getTableRowTokenInterval, getTableSlice, getTextRunSlice, getTransformOffsetX, getTransformOffsetY, getWorksheetUID, groupBy, handleStyleToString, hashAlgorithm, horizontalLineSegmentsSubtraction, insertMatrixArray, insertTextToContent, intersectsOperationalIntervals, invertColorByHSL, invertColorByMatrix, isAsyncDependencyItem, isAsyncHook, isBaseRecordIdFieldName, isBlackColor, isBooleanString, isCellCoverable, isCellV, isClassDependencyItem, isCommentEditorID, isCtor, isDefaultFormat, isDisposable, isEmptyCell, isFactoryDependencyItem, isFormulaId, isFormulaString, isICellData, isInternalEditorID, isNodeEnv, isNotNullOrUndefined, isNullCell, isNumeric, isPatternEqualWithoutDecimal, isRangesEqual, isRealNum, isSafeNumeric, isSafeUrl, isSameStyleTextRun, isTextFormat, isUnitRangesEqual, isValidBaseRecordId, isValidRange, isValueDependencyItem, isWhiteColor, makeArray, makeCellRangeToRangeData, mapObjectMatrix, merge, mergeIntervals, mergeLocales, mergeOverrideWithDependencies, mergeSets, mergeWith, mergeWorksheetSnapshotWithDefault, migrateBaseFormulaTableNames, mixinClass, moveMatrixArray, moveRangeByOffset, nameCharacterCheck, noop, normalizeBaseFormulaTableName, normalizeBaseFormulaTableReferences, normalizeBody, normalizeDrawingOrderIndex, normalizeInsertedSectionIdsForDocument, normalizeTextRuns, normalizeUrl, numberToABC, numberToListABC, api_exports as numfmt, regexp, registerDependencies, remove, repeatStringNumTimes, replaceInDocumentBody, requestImmediateMacroTask, resolveDocumentParagraphStyle, resolveSectionHeaderFooterReference, resolveSectionHeaderFooterReferences, resolveWithBasePath, rotate, searchArray, searchInOrderedArray, selectionToArray, sequence, sequenceAsync, sequenceExecute, sequenceExecuteAsync, set, setDependencies, shallowEqual, shiftExclusiveRangeOnDelete, shiftExclusiveRangeOnInsert, shiftInclusiveRangeOnDelete, shiftInclusiveRangeOnInsert, skipParseTagNames, sliceMatrixArray, sortRules, sortRulesByDesc, sortRulesFactory, spliceArray, splitIntoGrid, takeAfter, throttle, toDisposable, touchDependencies, updateAttributeByDelete, updateAttributeByInsert, validateDocBodyStructure, validateDocumentStructure, willLoseNumericPrecision };
26789
+ export { ABCToNumber, AUTO_HEIGHT_FOR_MERGED_CELLS, AbsoluteRefType, ActionIterator, AlignTypeH, AlignTypeV, ArrangeTypeEnum, AsyncInterceptorManager, AsyncLock, AuthzIoLocalService, AutoFillSeries, BASE_RECORD_ID_FIELD_ID, BASE_RECORD_ID_FIELD_NAME, BORDER_KEYS, BORDER_STYLE_KEYS, BaseConditionalColorOperator, BaseConditionalColorTarget, BaseConditionalDateMode, BaseDataModel, BaseFieldType, BaseFilterConjunction, BaseFilterOperator, BaseHierarchyInvalidReason, BaseRecordLinkRole, BaseSortDirection, BaseViewType, BaselineOffset, BlockType, BooleanNumber, BorderStyleTypes, BorderType, BuildTextUtils, BulletAlignment, COLORS, COLOR_STYLE_KEYS, COMMAND_LOG_EXECUTION_CONFIG_KEY, CanceledError, CellModeEnum, CellValueType, ColorKit, ColorType, ColumnLayoutType, ColumnResponsiveType, ColumnSeparatorType, CommandService, CommandType, CommonHideTypes, ConfigService, ContextService, CopyPasteType, CustomCommandExecutionError, CustomDecorationType, CustomRangeType, DEFAULT_CELL, DEFAULT_DOC, DEFAULT_DOCUMENT_PARAGRAPH_LINE_SPACING, DEFAULT_DOCUMENT_PARAGRAPH_SPACE_ABOVE, DEFAULT_DOCUMENT_PARAGRAPH_SPACE_BELOW, DEFAULT_DOCUMENT_SUB_COMPONENT_ID, DEFAULT_EMPTY_DOCUMENT_VALUE, DEFAULT_NUMBER_FORMAT, DEFAULT_RANGE, DEFAULT_RANGE_ARRAY, DEFAULT_SELECTION, DEFAULT_STYLES, DEFAULT_TEXT_FORMAT, DEFAULT_TEXT_FORMAT_EXCEL, 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, DOCS_COMMENT_EDITOR_UNIT_ID_KEY, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY, DOCS_NORMAL_EDITOR_UNIT_ID_KEY, DOC_DRAWING_PRINTING_COMPONENT_KEY, DOC_RANGE_TYPE, DashStyleType, DataStreamTreeNodeType, DataStreamTreeTokenType, DataValidationErrorStyle, DataValidationImeMode, DataValidationOperator, DataValidationRenderMode, DataValidationStatus, DataValidationType, DeleteDirection, DependentOn, DesktopLogService, DeveloperMetadataVisibility, Dimension, Direction, Disposable, DisposableCollection, DocStyleType, DocumentBlockRangeType, DocumentBlockType, DocumentDataModel, DocumentFlavor, DocxBreakType, DrawingTypeEnum, EDITOR_ACTIVATED, EXTENSION_NAMES, ErrorService, EventState, EventSubject, FOCUSING_BOARD, FOCUSING_COMMENT_EDITOR, FOCUSING_COMMON_DRAWINGS, FOCUSING_DOC, FOCUSING_EDITOR_INPUT_FORMULA, FOCUSING_EDITOR_STANDALONE, FOCUSING_FX_BAR_EDITOR, FOCUSING_PANEL_EDITOR, FOCUSING_SHAPE_TEXT_EDITOR, FOCUSING_SHEET, FOCUSING_SLIDE, FOCUSING_UNIT, FOCUSING_UNIVER_EDITOR, FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE, FORMULA_EDITOR_ACTIVATED, FollowNumberWithType, FontItalic, FontStyleType, FontWeight, GridType, HorizontalAlign, IAuthzIoService, ICommandService, IConfigService, IConfirmService, IContextService, IImageIoService, ILocalStorageService, ILogService, IMentionIOService, IPermissionService, IResourceLoaderService, IResourceManagerService, IS_ROW_STYLE_PRECEDE_COLUMN_STYLE, IURLImageService, IUndoRedoService, IUniverInstanceService, ImageCacheMap, ImageSourceType, ImageUploadStatusType, Inject, InjectSelf, Injector, InterceptorEffectEnum, InterceptorManager, InterpolationPointType, json1 as JSON1, JSONX, LOCALE_META, LRUHelper, LRUMap, LifecycleService, LifecycleStages, LifecycleUnreachableError, ListGlyphType, LocalUndoRedoService, LocaleService, LocaleType, LogLevel, LookUp, MAX_COLUMN_COUNT, MAX_ROW_COUNT, MODERN_DOCUMENT_DEFAULT_MARGIN, MODERN_DOCUMENT_WIDTH, MOVE_BUFFER_VALUE, Many, MemoryCursor, MentionIOLocalService, MentionType, ModernDocumentWidthMode, NAMED_STYLE_MAP, NAMED_STYLE_SPACE_MAP, NamedStyleType, NilCommand, NumberUnitType, ObjectMatrix, ObjectRelativeFromH, ObjectRelativeFromV, Optional, PADDING_KEYS, PAGE_SIZE, PAPER_TYPES, PARAGRAPH_ID_PREFIX, PRESERVE_INSERTED_PARAGRAPH_IDS, PRESET_LIST_TYPE, PageOrientType, PaperType, ParagraphElementType, ParagraphStyleBuilder, ParagraphStyleValue, PermissionService, PermissionStatus, Plugin, PluginService, PositionedObjectLayoutType, PresetListType, ProtectionType, Quantity, QuickListType, QuickListTypeMap, RANGE_DIRECTION, RANGE_TYPE, RBush, RCDisposable, RESTORE_INSERTED_PARAGRAPH_IDS, RGBA_PAREN, RGB_PAREN, ROTATE_BUFFER_VALUE, RTree, Range, Rectangle, RediError, RedoCommand, RedoCommandId, RefAlias, RegionService, Registry, RegistryAsMap, RelativeDate, ResourceManagerService, RichTextBuilder, RichTextParagraphBuilder, RichTextRunBuilder, RichTextValue, RxDisposable, SECTION_ID_PREFIX, SHEET_EDITOR_UNITS, STYLE_KEYS, SectionType, Self, SheetSkeleton, SheetTypes, SheetViewModel, Skeleton, SkipSelf, SliceBodyType, SpacingRule, Styles, TEXT_DECORATION_KEYS, TEXT_ROTATION_KEYS, THEME_COLORS, TRADITIONAL_DOCUMENT_DEFAULT_MARGIN, TabStopAlignment, TabStopLeader, TableAlignmentType, TableLayoutType, TableRowHeightRule, TableSizeType, TableTextWrapType, TestConfirmService, TextDecoration, TextDecorationBuilder, TextDirection, TextDirectionType, TextStyleBuilder, TextStyleValue, TextX, TextXActionType, ThemeColorType, ThemeColors, ThemeService, Tools, UndoCommand, UndoCommandId, UnitModel, Univer, UniverInstanceService, UniverInstanceType, UpdateDocsAttributeType, UserManagerService, VerticalAlign, VerticalAlignmentType, WithNew, Workbook, Worksheet, WrapStrategy, WrapTextType, addLinkToDocumentModel, afterInitApply, afterTime, allocateBaseFormulaTableName, assertBaseTableRecordIdentity, awaitTime, binSearchFirstGreaterThanTarget, binarySearchArray, bufferDebounceTime, cellToRange, characterSpacingControlType, checkForSubstrings, checkIfMove, checkParagraphHasBullet, checkParagraphHasIndent, checkParagraphHasIndentByStyle, cloneBodyWithFreshParagraphIds, cloneCellData, cloneCellDataMatrix, cloneCellDataWithSpanAndDisplay, cloneParagraphWithId, cloneSectionBreakWithId, cloneValue, cloneWorksheetData, codeToBlob, columnLabelToNumber, composeBody, composeInterceptors, composeStyles, concatMatrixArray, containsInteriorInsertionOffset, containsStreamIndex, convertCellToRange, convertObservableToBehaviorSubject, covertCellValue, covertCellValues, createAsyncInterceptorKey, createBaseFormulaTableNameMap, createBaseFormulaTableReferenceNormalizer, createBaseRecordIdField, createDefaultBaseTableSnapshot, createDefaultUser, createDocumentModelWithStyle, createIdentifier, createInterceptorKey, createInternalEditorID, createParagraphId, createRandomId, createRowColIter, createSectionId, createSheetGapTestConfig, currencySymbols, customNameCharacterCheck, dateKit, debounce, dedupe, dedupeBy, deepCompare, delayAnimationFrame, deleteContent, extractPureTextFromCell, forwardRef, fromCallback, fromEventSubject, generateIntervalsByPoints, generateRandomId, get, getArrayLength, getBaseFormulaTableName, getEmptySnapshot as getBasesEmptySnapshot, getBlockRangeInterval, getBodySlice, getBodySliceForSplitTextXAction, getBodySliceForTextXAction, getBorderStyleType, getCellCoordByIndexSimple, getCellValueType, getCellWithCoordByIndexCore, getColorStyle, getColumnGroupRangeInterval, getCustomBlockIdsInSelections, getCustomBlockInterval, getCustomBlockSlice, getCustomDecorationSlice, getCustomRangeInterval, getCustomRangeSlice, getDisplayValueFromCell, getEmptySnapshot$1 as getDocsEmptySnapshot, getDocsUpdateBody, getDrawingOrderIndex, getEmptyCell, getExclusiveRangeInterval, getInclusiveRangeInterval, getIntersectRange, getNumfmtParseValueFilter, getOriginCellValue, getParagraphContentStartOffset, getParagraphContentStartOffsets, getParagraphFollowingBlockOffset, getParagraphsSlice, getPlainText, getReverseDirection, getRichTextEditPath, getSectionBreakSlice, getSectionHeaderFooterReferenceKey, getEmptySnapshot$2 as getSheetsEmptySnapshot, getSingleDataStreamChange, getTableCellTokenInterval, getTableRangeInterval, getTableRowTokenInterval, getTableSlice, getTextRunSlice, getTransformOffsetX, getTransformOffsetY, getWorksheetUID, groupBy, handleStyleToString, hashAlgorithm, horizontalLineSegmentsSubtraction, insertMatrixArray, insertTextToContent, intersectsOperationalIntervals, invertColorByHSL, invertColorByMatrix, isAsyncDependencyItem, isAsyncHook, isBaseRecordIdFieldName, isBlackColor, isBooleanString, isCellCoverable, isCellV, isClassDependencyItem, isCommentEditorID, isCtor, isDefaultFormat, isDisposable, isEmptyCell, isFactoryDependencyItem, isFormulaId, isFormulaString, isICellData, isInternalEditorID, isNodeEnv, isNotNullOrUndefined, isNullCell, isNumeric, isPatternEqualWithoutDecimal, isRangesEqual, isRealNum, isSafeNumeric, isSafeUrl, isSameStyleTextRun, isTextFormat, isUnitRangesEqual, isValidBaseRecordId, isValidRange, isValueDependencyItem, isWhiteColor, makeArray, makeCellRangeToRangeData, mapObjectMatrix, merge, mergeIntervals, mergeLocales, mergeOverrideWithDependencies, mergeSets, mergeWith, mergeWorksheetSnapshotWithDefault, migrateBaseFormulaTableNames, mixinClass, moveMatrixArray, moveRangeByOffset, nameCharacterCheck, noop, normalizeBaseFormulaTableName, normalizeBaseFormulaTableReferences, normalizeBody, normalizeDrawingOrderIndex, normalizeInsertedSectionIdsForDocument, normalizeTextRuns, normalizeUrl, numberToABC, numberToListABC, api_exports as numfmt, regexp, registerDependencies, remove, repeatStringNumTimes, replaceInDocumentBody, requestImmediateMacroTask, resolveDocumentParagraphStyle, resolveSectionHeaderFooterReference, resolveSectionHeaderFooterReferences, resolveWithBasePath, rotate, searchArray, searchInOrderedArray, selectionToArray, sequence, sequenceAsync, sequenceExecute, sequenceExecuteAsync, set, setDependencies, setWith, shallowEqual, shiftExclusiveRangeOnDelete, shiftExclusiveRangeOnInsert, shiftInclusiveRangeOnDelete, shiftInclusiveRangeOnInsert, skipParseTagNames, sliceMatrixArray, sortRules, sortRulesByDesc, sortRulesFactory, spliceArray, splitIntoGrid, takeAfter, throttle, toDisposable, touchDependencies, updateAttributeByDelete, updateAttributeByInsert, validateDocBodyStructure, validateDocumentStructure, willLoseNumericPrecision };
@@ -13,4 +13,4 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export { debounce, get, merge, mergeWith, set } from 'lodash-es';
16
+ export { debounce, get, merge, mergeWith, set, setWith } from 'lodash-es';