@univerjs-pro/sheets-history-ui 1.0.2 → 1.0.4

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.
Files changed (93) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ar-SA.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/de-DE.js +1 -1
  5. package/lib/cjs/locale/en-US.js +1 -1
  6. package/lib/cjs/locale/es-ES.js +1 -1
  7. package/lib/cjs/locale/fa-IR.js +1 -1
  8. package/lib/cjs/locale/fr-FR.js +1 -1
  9. package/lib/cjs/locale/id-ID.js +1 -1
  10. package/lib/cjs/locale/it-IT.js +1 -1
  11. package/lib/cjs/locale/ja-JP.js +1 -1
  12. package/lib/cjs/locale/ko-KR.js +1 -1
  13. package/lib/cjs/locale/pl-PL.js +1 -1
  14. package/lib/cjs/locale/pt-BR.js +1 -1
  15. package/lib/cjs/locale/ru-RU.js +1 -1
  16. package/lib/cjs/locale/sk-SK.js +1 -1
  17. package/lib/cjs/locale/vi-VN.js +1 -1
  18. package/lib/cjs/locale/zh-CN.js +1 -1
  19. package/lib/cjs/locale/zh-HK.js +1 -1
  20. package/lib/cjs/locale/zh-TW.js +1 -1
  21. package/lib/es/index.js +1 -1
  22. package/lib/es/locale/ar-SA.js +1 -1
  23. package/lib/es/locale/ca-ES.js +1 -1
  24. package/lib/es/locale/de-DE.js +1 -1
  25. package/lib/es/locale/en-US.js +1 -1
  26. package/lib/es/locale/es-ES.js +1 -1
  27. package/lib/es/locale/fa-IR.js +1 -1
  28. package/lib/es/locale/fr-FR.js +1 -1
  29. package/lib/es/locale/id-ID.js +1 -1
  30. package/lib/es/locale/it-IT.js +1 -1
  31. package/lib/es/locale/ja-JP.js +1 -1
  32. package/lib/es/locale/ko-KR.js +1 -1
  33. package/lib/es/locale/pl-PL.js +1 -1
  34. package/lib/es/locale/pt-BR.js +1 -1
  35. package/lib/es/locale/ru-RU.js +1 -1
  36. package/lib/es/locale/sk-SK.js +1 -1
  37. package/lib/es/locale/vi-VN.js +1 -1
  38. package/lib/es/locale/zh-CN.js +1 -1
  39. package/lib/es/locale/zh-HK.js +1 -1
  40. package/lib/es/locale/zh-TW.js +1 -1
  41. package/lib/index.js +1 -1
  42. package/lib/locale/ar-SA.js +1 -1
  43. package/lib/locale/ca-ES.js +1 -1
  44. package/lib/locale/de-DE.js +1 -1
  45. package/lib/locale/en-US.js +1 -1
  46. package/lib/locale/es-ES.js +1 -1
  47. package/lib/locale/fa-IR.js +1 -1
  48. package/lib/locale/fr-FR.js +1 -1
  49. package/lib/locale/id-ID.js +1 -1
  50. package/lib/locale/it-IT.js +1 -1
  51. package/lib/locale/ja-JP.js +1 -1
  52. package/lib/locale/ko-KR.js +1 -1
  53. package/lib/locale/pl-PL.js +1 -1
  54. package/lib/locale/pt-BR.js +1 -1
  55. package/lib/locale/ru-RU.js +1 -1
  56. package/lib/locale/sk-SK.js +1 -1
  57. package/lib/locale/vi-VN.js +1 -1
  58. package/lib/locale/zh-CN.js +1 -1
  59. package/lib/locale/zh-HK.js +1 -1
  60. package/lib/locale/zh-TW.js +1 -1
  61. package/lib/types/loader/commands/history.operate.d.ts +3 -0
  62. package/lib/types/loader/controllers/history-loader.controller.d.ts +26 -0
  63. package/lib/types/loader/controllers/history-menu.d.ts +4 -0
  64. package/lib/types/loader/controllers/mobile-history-loader.controller.d.ts +26 -0
  65. package/lib/types/loader/controllers/revert-acknowledgement.d.ts +3 -0
  66. package/lib/types/loader/menu/schema.d.ts +2 -0
  67. package/lib/types/loader/mobile-plugin.d.ts +14 -0
  68. package/lib/types/loader/plugin.d.ts +14 -0
  69. package/lib/types/loader/services/history-loader.service.d.ts +39 -0
  70. package/lib/types/loader/services/history-locale.d.ts +5 -0
  71. package/lib/types/loader/services/history-version-param.d.ts +3 -0
  72. package/lib/types/loader/services/mobile-history-loader.service.d.ts +38 -0
  73. package/lib/umd/index.js +1 -1
  74. package/lib/umd/locale/ar-SA.js +1 -1
  75. package/lib/umd/locale/ca-ES.js +1 -1
  76. package/lib/umd/locale/de-DE.js +1 -1
  77. package/lib/umd/locale/en-US.js +1 -1
  78. package/lib/umd/locale/es-ES.js +1 -1
  79. package/lib/umd/locale/fa-IR.js +1 -1
  80. package/lib/umd/locale/fr-FR.js +1 -1
  81. package/lib/umd/locale/id-ID.js +1 -1
  82. package/lib/umd/locale/it-IT.js +1 -1
  83. package/lib/umd/locale/ja-JP.js +1 -1
  84. package/lib/umd/locale/ko-KR.js +1 -1
  85. package/lib/umd/locale/pl-PL.js +1 -1
  86. package/lib/umd/locale/pt-BR.js +1 -1
  87. package/lib/umd/locale/ru-RU.js +1 -1
  88. package/lib/umd/locale/sk-SK.js +1 -1
  89. package/lib/umd/locale/vi-VN.js +1 -1
  90. package/lib/umd/locale/zh-CN.js +1 -1
  91. package/lib/umd/locale/zh-HK.js +1 -1
  92. package/lib/umd/locale/zh-TW.js +1 -1
  93. package/package.json +44 -44
@@ -0,0 +1,5 @@
1
+ import type { IUniverConfig, LocaleService } from '@univerjs/core';
2
+ type IHistoryLocaleService = Pick<LocaleService, 'getCurrentLocale' | 'getDirection' | 'getLocales'>;
3
+ export declare function getHistoryUniverLocaleConfig(localeService: IHistoryLocaleService): Pick<IUniverConfig, 'direction' | 'locale' | 'locales'>;
4
+ export declare function syncHistoryContainerDirection(container: HTMLElement, localeService: IHistoryLocaleService): void;
5
+ export {};
@@ -0,0 +1,3 @@
1
+ import type { HistoryManagerService } from '../../viewer/services/history-manager.service';
2
+ export type HistoryVersionParam = Parameters<HistoryManagerService['triggerCustomVersions']>[2];
3
+ export declare function isHistoryVersionParam(value: unknown): value is HistoryVersionParam;
@@ -0,0 +1,38 @@
1
+ import type * as RxjsTypes from "rxjs";
2
+ import type { PluginCtor } from '@univerjs/core';
3
+ import { Disposable, ICommandService, IConfigService, IPermissionService, IUniverInstanceService, LocaleService, ThemeService, Univer } from '@univerjs/core';
4
+ import { RangeProtectionRuleModel } from '@univerjs/sheets';
5
+ import { IDialogService, IMessageService, ISidebarService } from '@univerjs/ui';
6
+ export declare const DEFAULT_UNIVER_CONTAINER_ID = "univer-container";
7
+ export declare const UNIVER_CONTAINER_ID_KEY = "UNIVER_CONTAINER_ID";
8
+ export declare const UNIVER_HISTORY_CONTAINER_ID = "univer-history-container-mobile";
9
+ export declare class MobileHistoryLoaderService extends Disposable {
10
+ private readonly _localeService;
11
+ private readonly _univerInstanceService;
12
+ private readonly _configService;
13
+ private readonly _commandService;
14
+ private readonly _messageService;
15
+ private readonly _permissionService;
16
+ private _selectionProtectionRuleModel;
17
+ private readonly _dialogService;
18
+ private readonly _sidebarService;
19
+ private readonly _themeService;
20
+ private _historyUniver$;
21
+ readonly historyUniver$: RxjsTypes.Observable<Univer | null>;
22
+ private readonly _disposableCollection;
23
+ private readonly _pluginMap;
24
+ private _internalWebWorker;
25
+ constructor(_localeService: LocaleService, _univerInstanceService: IUniverInstanceService, _configService: IConfigService, _commandService: ICommandService, _messageService: IMessageService, _permissionService: IPermissionService, _selectionProtectionRuleModel: RangeProtectionRuleModel, _dialogService: IDialogService, _sidebarService: ISidebarService, _themeService: ThemeService);
26
+ get historyUniver(): Univer | null;
27
+ private _init;
28
+ private _initContainer;
29
+ private _initPlugins;
30
+ dispose(): void;
31
+ registerPlugin<T extends PluginCtor>(ctor: T, config?: ConstructorParameters<T>[0], override?: false): void;
32
+ getAllPlugins(): [ctor: PluginCtor, config: object | undefined][];
33
+ mountHistoryContent(unitId: string, param?: unknown): void;
34
+ unMountHistoryContent(): void;
35
+ private _initUniver;
36
+ private _initListener;
37
+ private _checkCanRevert;
38
+ }