@univerjs/core 0.1.11 → 0.1.12

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.
@@ -115,15 +115,17 @@ export declare const ICommandService: import('@wendellhu/redi').IdentifierDecora
115
115
  */
116
116
  export declare class CommandRegistry {
117
117
  private readonly _commands;
118
+ private readonly _commandTypes;
118
119
  registerCommand(command: ICommand): IDisposable;
119
120
  hasCommand(id: string): boolean;
120
121
  getCommand(id: string): [ICommand] | null;
122
+ getCommandType(id: string): CommandType | undefined;
121
123
  }
122
124
  export declare const NilCommand: ICommand;
123
125
  export declare class CommandService implements ICommandService {
124
126
  private readonly _injector;
125
127
  private readonly _logService;
126
- private readonly _commandRegistry;
128
+ protected readonly _commandRegistry: CommandRegistry;
127
129
  private readonly _beforeCommandExecutionListeners;
128
130
  private readonly _commandExecutedListeners;
129
131
  private _multiCommandDisposables;
@@ -7,7 +7,9 @@ import { LocaleType } from '../../types/enum/locale-type';
7
7
  * This service provides i18n and timezone / location features to other modules.
8
8
  */
9
9
  export declare class LocaleService extends Disposable {
10
- private _currentLocale;
10
+ private _currentLocale$;
11
+ readonly currentLocale$: import('rxjs').Observable<LocaleType>;
12
+ private get _currentLocale();
11
13
  private _locales;
12
14
  localeChanged$: Subject<void>;
13
15
  constructor();
@@ -9,6 +9,11 @@ export declare class UserManagerService {
9
9
  } | {
10
10
  type: 'clear';
11
11
  }>;
12
+ private _currentUser;
13
+ private _currentUser$;
14
+ currentUser$: import('rxjs').Observable<IUser | null>;
15
+ getCurrentUser(): IUser | null;
16
+ setCurrentUser(user: IUser): void;
12
17
  addUser(user: IUser): void;
13
18
  getUser(userId: string, callBack?: () => void): IUser | undefined;
14
19
  delete(userId: string): void;
@@ -206,7 +206,8 @@ export declare enum CustomRangeType {
206
206
  SDT = 2,// 17.5.2 Structured Document Tags
207
207
  BOOKMARK = 3,
208
208
  COMMENT = 4,
209
- CUSTOM = 5
209
+ CUSTOM = 5,
210
+ MENTION = 6
210
211
  }
211
212
  /**
212
213
  * Custom Block