@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.
- package/lib/cjs/index.js +9 -9
- package/lib/es/index.js +167 -150
- package/lib/types/services/command/command.service.d.ts +3 -1
- package/lib/types/services/locale/locale.service.d.ts +3 -1
- package/lib/types/services/user-manager/user-manager.service.d.ts +5 -0
- package/lib/types/types/interfaces/i-document-data.d.ts +2 -1
- package/lib/umd/index.js +9 -9
- package/package.json +5 -5
|
@@ -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
|
-
|
|
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;
|