@univerjs-pro/dev-changesets-replay 0.5.0-nightly.202411161605

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/index.css ADDED
@@ -0,0 +1 @@
1
+ .univer-panel{padding-top:20px;font-size:var(--font-size-sm)}.univer-options-section{margin-top:10px;padding-bottom:10px;display:flex;align-items:center}.univer-options-label{font-size:14px;font-weight:500}.univer-options-input{width:100px;margin-top:5px;margin-left:8px}.univer-options-change-label{font-size:14px;font-weight:500;margin:10px 0}
@@ -0,0 +1,10 @@
1
+ import { ICommand, UniverInstanceType } from '@univerjs/core';
2
+ interface IOpenChangesetsReplayPanelParams {
3
+ }
4
+ export declare const OpenChangesetsReplayPanelCommand: ICommand<IOpenChangesetsReplayPanelParams>;
5
+ interface IReplayToCommandParams {
6
+ revision: number;
7
+ type: UniverInstanceType;
8
+ }
9
+ export declare const ReplayToCommand: ICommand<IReplayToCommandParams>;
10
+ export {};
@@ -0,0 +1,5 @@
1
+ import { ICommand } from '@univerjs/core';
2
+ export interface IUIComponentCommandParams {
3
+ value: string;
4
+ }
5
+ export declare const SidebarReplayPanelOperation: ICommand;
@@ -0,0 +1 @@
1
+ export declare const UniverDevChangesetsReplay: "UNIVER_DEV_CHANGESETS_REPLAY";
@@ -0,0 +1,11 @@
1
+ import { Disposable, ICommandService } from '@univerjs/core';
2
+ import { ComponentManager, IMenuManagerService } from '@univerjs/ui';
3
+ export declare class ChangesetsReplayUIController extends Disposable {
4
+ protected readonly _componentManager: ComponentManager;
5
+ protected readonly _commandService: ICommandService;
6
+ protected readonly _menuManagerService: IMenuManagerService;
7
+ constructor(_componentManager: ComponentManager, _commandService: ICommandService, _menuManagerService: IMenuManagerService);
8
+ private _initMenus;
9
+ private _initCommands;
10
+ private _initCustomComponents;
11
+ }
@@ -0,0 +1,12 @@
1
+ import { Disposable, ICommandService, IConfigService } from '@univerjs/core';
2
+ import { ComponentManager, IMenuManagerService } from '@univerjs/ui';
3
+ import { ChangesetsReplayService } from '../services/changesets-replay.service';
4
+ export declare class ChangesetsReplayController extends Disposable {
5
+ private readonly _changesetsReplayService;
6
+ private readonly _configService;
7
+ protected readonly _componentManager: ComponentManager;
8
+ protected readonly _commandService: ICommandService;
9
+ protected readonly _menuManagerService: IMenuManagerService;
10
+ constructor(_changesetsReplayService: ChangesetsReplayService, _configService: IConfigService, _componentManager: ComponentManager, _commandService: ICommandService, _menuManagerService: IMenuManagerService);
11
+ private _init;
12
+ }
@@ -0,0 +1,8 @@
1
+ import { UniverInstanceType } from '@univerjs/core';
2
+ export declare const PLUGIN_CONFIG_KEY = "dev-changesets-replay.config";
3
+ export declare const configSymbol: unique symbol;
4
+ export interface IUniverDevChangesetsReplayConfig {
5
+ unitID: string;
6
+ type: UniverInstanceType;
7
+ }
8
+ export declare const defaultPluginConfig: IUniverDevChangesetsReplayConfig;
@@ -0,0 +1,4 @@
1
+ import { IAccessor } from '@univerjs/core';
2
+ import { IMenuButtonItem } from '@univerjs/ui';
3
+ export declare const REPLAY_ICON = "RoundnessSingle";
4
+ export declare function ChangesetsReplayMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
@@ -0,0 +1,2 @@
1
+ import { MenuSchemaType } from '@univerjs/ui';
2
+ export declare const menuSchema: MenuSchemaType;
@@ -0,0 +1,2 @@
1
+ export { UniverDevChangesetsReplayPlugin } from './plugin';
2
+ export { UniverDevChangesetsReplay } from './constants';
@@ -0,0 +1,13 @@
1
+ import { IUniverDevChangesetsReplayConfig } from './controllers/config.schema';
2
+ import { IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
3
+ export declare class UniverDevChangesetsReplayPlugin extends Plugin {
4
+ private readonly _config;
5
+ protected _injector: Injector;
6
+ private readonly _configService;
7
+ static pluginName: "UNIVER_DEV_CHANGESETS_REPLAY";
8
+ static type: UniverInstanceType;
9
+ constructor(_config: IUniverDevChangesetsReplayConfig | undefined, _injector: Injector, _configService: IConfigService);
10
+ onStarting(): void;
11
+ onReady(): void;
12
+ onSteady(): void;
13
+ }
@@ -0,0 +1,20 @@
1
+ import { DocumentDataModel, Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
2
+ import { IChangeset } from '@univerjs/protocol';
3
+ import { ISnapshotServerService } from '@univerjs-pro/collaboration';
4
+ export declare class ChangesetsReplayService extends Disposable {
5
+ private readonly _univerInstanceService;
6
+ private readonly _snapshotServerService;
7
+ private readonly _commandService;
8
+ private _docSnapshot;
9
+ private _changesets;
10
+ private _curRevision;
11
+ private _unitID;
12
+ private _loadState$;
13
+ readonly loadState$: import('rxjs').Observable<string>;
14
+ constructor(_univerInstanceService: IUniverInstanceService, _snapshotServerService: ISnapshotServerService, _commandService: ICommandService);
15
+ getChangesets(): IChangeset[];
16
+ getCurRevision(): number;
17
+ loadDoc(unitID: string): Promise<DocumentDataModel>;
18
+ rollDocBackTo(revision: number): boolean;
19
+ loadWorkbook(): void;
20
+ }
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const ChangeSetsReplayOptions: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const ChangeSetsReplayPanel: () => React.JSX.Element;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export declare const COMPONENT_DEV_CHANGESETS_REPLAY = "COMPONENT_DEV_CHANGESETS_REPLAY";