@univerjs/core 0.14.0 → 0.15.0

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.
@@ -9,6 +9,7 @@ export declare class AuthzIoLocalService implements IAuthzIoService {
9
9
  private _resourceManagerService;
10
10
  private _userManagerService;
11
11
  private _permissionMap;
12
+ private _permissionOverrides;
12
13
  constructor(_resourceManagerService: IResourceManagerService, _userManagerService: UserManagerService);
13
14
  private _initDefaultUser;
14
15
  private _getRole;
@@ -24,6 +25,25 @@ export declare class AuthzIoLocalService implements IAuthzIoService {
24
25
  }>;
25
26
  deleteCollaborator(): Promise<void>;
26
27
  update(config: IUpdatePermPointRequest): Promise<void>;
28
+ /**
29
+ * Set an explicit permission override for a specific action on an object.
30
+ * This override takes precedence over strategies.
31
+ * @param objectID - The permission object ID
32
+ * @param action - The action number
33
+ * @param allowed - Whether the action is allowed
34
+ */
35
+ setPermissionOverride(objectID: string, action: number, allowed: boolean): void;
36
+ /**
37
+ * Clear a specific permission override.
38
+ * @param objectID - The permission object ID
39
+ * @param action - The action number
40
+ */
41
+ clearPermissionOverride(objectID: string, action: number): void;
42
+ /**
43
+ * Clear all permission overrides for an object.
44
+ * @param objectID - The permission object ID
45
+ */
46
+ clearAllOverrides(objectID: string): void;
27
47
  updateCollaborator(): Promise<void>;
28
48
  createCollaborator(): Promise<void>;
29
49
  putCollaborators(config: IPutCollaboratorsRequest): Promise<void>;
@@ -82,7 +82,12 @@ export interface IRotationSkewFlipTransform {
82
82
  flipX?: boolean;
83
83
  flipY?: boolean;
84
84
  }
85
- export interface ITransformState extends IAbsoluteTransform, IRotationSkewFlipTransform {
85
+ export interface ITransformStateDisableOption {
86
+ rotateEnabled?: boolean;
87
+ resizeEnabled?: boolean;
88
+ borderEnabled?: boolean;
89
+ }
90
+ export interface ITransformState extends IAbsoluteTransform, IRotationSkewFlipTransform, ITransformStateDisableOption {
86
91
  }
87
92
  export interface IDrawingParam extends IDrawingSearch {
88
93
  drawingType: DrawingType;