New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@univerjs/sheets

Package Overview
Dependencies
Maintainers
0
Versions
264
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@univerjs/sheets - npm Package Compare versions

Comparing version 0.2.8 to 0.2.9

3

lib/types/commands/commands/remove-row-col.command.d.ts

@@ -5,2 +5,5 @@ import { ICommand, IRange } from '@univerjs/core';

}
export interface IRemoveRowColCommandInterceptParams extends IRemoveRowColCommandParams {
ranges?: IRange[];
}
export declare const RemoveRowCommandId = "sheet.command.remove-row";

@@ -7,0 +10,0 @@ /**

2

lib/types/commands/mutations/add-range-protection.mutation.d.ts

@@ -8,3 +8,3 @@ import { IMutation, IMutationInfo } from '@univerjs/core';

subUnitId: string;
name: string;
name?: string;
description?: string;

@@ -11,0 +11,0 @@ }

@@ -44,4 +44,4 @@ /**

export { DefinedNameDataController } from './controllers/defined-name-data.controller';
export { handleBaseInsertRange, handleBaseMoveRowsCols, handleBaseRemoveRange, handleDeleteRangeMoveLeft, handleDeleteRangeMoveUp, handleInsertCol, handleInsertRangeMoveDown, handleInsertRangeMoveRight, handleInsertRow, handleIRemoveCol, handleIRemoveRow, handleMoveCols, handleMoveRange, handleMoveRows, rotateRange, runRefRangeMutations, handleCommonDefaultRangeChangeWithEffectRefCommands, handleDefaultRangeChangeWithEffectRefCommands, handleDefaultRangeChangeWithEffectRefCommandsSkipNoInterests, } from './services/ref-range/util';
export { INTERCEPTOR_POINT } from './services/sheet-interceptor/interceptor-const';
export { handleBaseInsertRange, handleBaseMoveRowsCols, handleBaseRemoveRange, handleDeleteRangeMoveLeft, handleDeleteRangeMoveUp, handleInsertCol, handleInsertRangeMoveDown, handleInsertRangeMoveRight, handleInsertRow, handleIRemoveCol, handleIRemoveRow, handleMoveCols, handleMoveRange, handleMoveRows, rotateRange, runRefRangeMutations, handleCommonDefaultRangeChangeWithEffectRefCommands, handleDefaultRangeChangeWithEffectRefCommands, handleDefaultRangeChangeWithEffectRefCommandsSkipNoInterests, handleCommonRangeChangeWithEffectRefCommandsSkipNoInterests, } from './services/ref-range/util';
export { INTERCEPTOR_POINT, InterceptCellContentPriority } from './services/sheet-interceptor/interceptor-const';
export { SheetInterceptorService } from './services/sheet-interceptor/sheet-interceptor.service';

@@ -58,2 +58,3 @@ export type { ISheetLocation, ISheetLocationBase, ISheetRowLocation } from './services/sheet-interceptor/utils/interceptor';

export { WorksheetCopyPermission, WorksheetSelectProtectedCellsPermission, WorksheetSelectUnProtectedCellsPermission, WorksheetSetCellStylePermission, WorksheetSetCellValuePermission, WorksheetViewPermission, WorksheetSetRowStylePermission, WorksheetSetColumnStylePermission, WorksheetInsertRowPermission, WorksheetInsertColumnPermission, WorksheetInsertHyperlinkPermission, WorksheetDeleteRowPermission, WorksheetDeleteColumnPermission, WorksheetSortPermission, WorksheetFilterPermission, WorksheetPivotTablePermission, WorksheetEditExtraObjectPermission, WorksheetManageCollaboratorPermission, WorksheetEditPermission, WorkbookCommentPermission, WorkbookEditablePermission, WorkbookDuplicatePermission, WorkbookPrintPermission, WorkbookExportPermission, WorkbookMoveSheetPermission, WorkbookDeleteSheetPermission, WorkbookHideSheetPermission, WorkbookRenameSheetPermission, WorkbookCreateSheetPermission, WorkbookHistoryPermission, WorkbookViewPermission, WorkbookSharePermission, WorkbookCopyPermission, WorkbookManageCollaboratorPermission, WorkbookViewHistoryPermission, WorkbookRecoverHistoryPermission, } from './services/permission/permission-point';
export { UnitObject } from '@univerjs/protocol';
export { checkRangesEditablePermission } from './services/permission/util';

@@ -86,3 +87,3 @@ export { RangeProtectionRenderModel, type ICellPermission } from './model/range-protection-render.model';

export { RemoveDefinedNameCommand } from './commands/commands/remove-defined-name.command';
export { RemoveRowCommand, RemoveColCommand, type IRemoveRowColCommandParams } from './commands/commands/remove-row-col.command';
export { RemoveRowCommand, RemoveColCommand, type IRemoveRowColCommandParams, type IRemoveRowColCommandInterceptParams } from './commands/commands/remove-row-col.command';
export { RemoveSheetCommand, type IRemoveSheetCommandParams } from './commands/commands/remove-sheet.command';

@@ -89,0 +90,0 @@ export { RemoveWorksheetMergeCommand } from './commands/commands/remove-worksheet-merge.command';

@@ -46,3 +46,4 @@ import { IRange } from '@univerjs/core';

createRuleId(unitId: string, subUnitId: string): string;
getTargetByPermissionId(unitId: string, permissionId: string): string[] | null;
}
export {};

@@ -1,2 +0,2 @@

import { Disposable, DisposableCollection, ICommandService, IUniverInstanceService } from '@univerjs/core';
import { Disposable, DisposableCollection, ICommandService, IUniverInstanceService, IMutationInfo } from '@univerjs/core';
import { RangeProtectionRuleModel } from '../../../model/range-protection-rule.model';

@@ -7,2 +7,4 @@ import { RangeProtectionRenderModel } from '../../../model/range-protection-render.model';

import { RefRangeService } from '../../../services/ref-range/ref-range.service';
import { IDeleteSelectionProtectionMutationParams } from '../../../commands/mutations/delete-range-protection.mutation';
import { IAddRangeProtectionMutationParams } from '../../../commands/mutations/add-range-protection.mutation';
export declare class RangeProtectionRefRangeService extends Disposable {

@@ -26,2 +28,5 @@ private _selectionProtectionRuleModel;

}[];
} | {
redos: IMutationInfo<IDeleteSelectionProtectionMutationParams | IAddRangeProtectionMutationParams | ISetRangeProtectionMutationParams>[];
undos: IMutationInfo<IDeleteSelectionProtectionMutationParams | IAddRangeProtectionMutationParams | ISetRangeProtectionMutationParams>[];
};

@@ -28,0 +33,0 @@ private _getRefRangeMutationsByDeleteCols;

import { UnitObject } from '@univerjs/protocol';
export interface IWorksheetProtectionRule {
permissionId: string;
name: string;
name?: string;
description?: string;

@@ -6,0 +6,0 @@ unitType: UnitObject;

@@ -17,2 +17,3 @@ import { IObjectPointModel, IWorksheetProtectionPointRule } from '../type';

private _ensureSubUnitMap;
getTargetByPermissionId(unitId: string, permissionId: string): string[] | null | undefined;
}

@@ -6,3 +6,3 @@ import { IObjectModel, IWorksheetProtectionRule } from '../type';

*
* Map<unitId, Map<subUnitId, Map<ruleId, IWorksheetProtectionRule>>>
* Map<unitId, Map<subUnitId, Map<subUnitId, IWorksheetProtectionRule>>>
*/

@@ -35,3 +35,4 @@ private _model;

resetOrder(): void;
getTargetByPermissionId(unitId: string, permissionId: string): string[] | null | undefined;
}
export {};

@@ -7,2 +7,3 @@ import { ICommandInfo, IMutationInfo, IRange, Nullable, RANGE_TYPE } from '@univerjs/core';

import { SheetsSelectionsService } from '../selections/selection-manager.service';
import { IRemoveRowColCommandInterceptParams } from '../../commands/commands/remove-row-col.command';
import { EffectRefRangeParams, IDeleteRangeMoveLeftCommand, IDeleteRangeMoveUpCommand, IInsertColCommand, IInsertRangeMoveDownCommand, IInsertRangeMoveRightCommand, IInsertRowCommand, IMoveColsCommand, IMoveRangeCommand, IMoveRowsCommand, IOperator, IRemoveRowColCommand, IReorderRangeCommand } from './type';

@@ -71,2 +72,3 @@ export declare const handleRangeTypeInput: (range: IRange) => {

export declare const handleDeleteRangeMoveUpCommon: (param: IDeleteRangeMoveUpCommand, targetRange: IRange) => IRange[];
export declare const handleRemoveRowCommon: (param: IRemoveRowColCommandInterceptParams, targetRange: IRange) => IRange[];
export declare const runRefRangeMutations: (operators: IOperator[], range: IRange) => IRange | null;

@@ -79,2 +81,5 @@ export declare const handleDefaultRangeChangeWithEffectRefCommands: (range: IRange, commandInfo: ICommandInfo) => IRange | null;

export declare const handleCommonDefaultRangeChangeWithEffectRefCommands: (range: IRange, commandInfo: ICommandInfo) => IRange | IRange[] | null;
export declare const handleCommonRangeChangeWithEffectRefCommandsSkipNoInterests: (range: IRange, commandInfo: ICommandInfo, deps: {
selectionManagerService: SheetsSelectionsService;
}) => IRange | IRange[] | null;
/**

@@ -81,0 +86,0 @@ * This function should work as a pure function.

@@ -21,3 +21,6 @@ import { ISelectionCell, Nullable, Workbook, Disposable, IUniverInstanceService, RxDisposable } from '@univerjs/core';

protected _init(): void;
/** Clear all selections in all workbooks. */
/**
* Clear all selections in all workbooks.
* invoked by prompt.controller
*/
clear(): void;

@@ -64,3 +67,4 @@ getCurrentSelections(): Readonly<ISelectionWithStyle[]>;

/**
*
* Set selectionDatas to _worksheetSelections, and emit selectionDatas by type.
* If type is not specfied, this method would clear all existing selections.
* @param sheetId

@@ -79,3 +83,3 @@ * @param selectionDatas

/**
* same as _getCurrentSelections, but would set [] if no selection.
* Same as _getCurrentSelections(which return this._worksheetSelections), but this method would set [] if no selection.
* @param sheetId

@@ -82,0 +86,0 @@ * @returns this._worksheetSelections

@@ -7,1 +7,5 @@ import { ICellDataForSheetInterceptor } from '@univerjs/core';

};
export declare enum InterceptCellContentPriority {
DATA_VALIDATION = 9,
NUMFMT = 10
}

@@ -1,2 +0,2 @@

import { ICommandInfo, IDisposable, IInterceptor, IRange, IUndoRedoCommandInfosByInterceptor, Disposable, IUniverInstanceService } from '@univerjs/core';
import { ICommandInfo, IDisposable, IInterceptor, IRange, IUndoRedoCommandInfosByInterceptor, Nullable, Disposable, IUniverInstanceService } from '@univerjs/core';
export interface IBeforeCommandInterceptor {

@@ -56,3 +56,3 @@ priority?: number;

intercept<T extends IInterceptor<any, any>>(name: T, interceptor: T): IDisposable;
fetchThroughInterceptors<T, C>(name: IInterceptor<T, C>): (initValue: import('@univerjs/core/common/type-util.js').Nullable<T>, initContext: C) => import('@univerjs/core/common/type-util.js').Nullable<T>;
fetchThroughInterceptors<T, C>(name: IInterceptor<T, C>): (initValue: Nullable<T>, initContext: C) => Nullable<T>;
private _interceptWorkbook;

@@ -59,0 +59,0 @@ private _disposeWorkbookInterceptor;

{
"name": "@univerjs/sheets",
"version": "0.2.8",
"version": "0.2.9",
"private": false,

@@ -51,10 +51,10 @@ "description": "UniverSheet normal base-sheets",

"rxjs": ">=7.0.0",
"@univerjs/core": "0.2.8",
"@univerjs/rpc": "0.2.8",
"@univerjs/engine-formula": "0.2.8",
"@univerjs/sheets": "0.2.8",
"@univerjs/engine-numfmt": "0.2.8"
"@univerjs/core": "0.2.9",
"@univerjs/engine-formula": "0.2.9",
"@univerjs/engine-numfmt": "0.2.9",
"@univerjs/rpc": "0.2.9",
"@univerjs/sheets": "0.2.9"
},
"dependencies": {
"@univerjs/protocol": "0.1.39-alpha.3"
"@univerjs/protocol": "0.1.39-alpha.9"
},

@@ -66,7 +66,7 @@ "devDependencies": {

"vitest": "^2.0.5",
"@univerjs/engine-formula": "0.2.8",
"@univerjs/rpc": "0.2.8",
"@univerjs/shared": "0.2.8",
"@univerjs/engine-numfmt": "0.2.8",
"@univerjs/core": "0.2.8"
"@univerjs/core": "0.2.9",
"@univerjs/engine-formula": "0.2.9",
"@univerjs/rpc": "0.2.9",
"@univerjs/engine-numfmt": "0.2.9",
"@univerjs/shared": "0.2.9"
},

@@ -73,0 +73,0 @@ "univerSpace": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc