Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

feat: add multi instance demo (#772)

Wenzhao Hu4beb74493449
diff --git a/examples/esbuild.config.mjs b/examples/esbuild.config.mjs
index d82fb7a3fb..c9cc5728f9 100644
--- a/examples/esbuild.config.mjs
+++ b/examples/esbuild.config.mjs
@@ -60,13 +60,20 @@ const ctx = await esbuild[args.watch ? 'context' : 'build']({
}),
],
entryPoints: [
+ // homepage
'./src/main.tsx',
+ // sheets
'./src/sheets/main.ts',
'./src/sheets/worker.ts',
+ // sheets-multi
+ './src/sheets-multi/main.tsx',
+
+ // docs
'./src/docs/main.ts',
+ // slides
'./src/slides/main.ts',
],
outdir: './local',
diff --git a/examples/package.json b/examples/package.json
index 76832c5d62..13b1f7f330 100644
--- a/examples/package.json
+++ b/examples/package.json
@@ -29,6 +29,7 @@
"monaco-editor": "0.45.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
+ "react-mosaic-component": "^6.1.0",
"rxjs": "^7.8.1"
},
"devDependencies": {
diff --git a/examples/public/sheets-multi/index.html b/examples/public/sheets-multi/index.html
new file mode 100644
index 0000000000..e16a3eed63
--- /dev/null
+++ b/examples/public/sheets-multi/index.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8" />
+ <meta content="width=device-width, initial-scale=1" name="viewport" />
+ <title>Univer Sheet</title>
+
+ <link rel="icon" type="image/x-icon" href="../favicon.svg">
+ <link rel="stylesheet" href="./main.css" />
+ <style>
+ html,
+ body {
+ height: 100%;
+ margin: 0;
+ }
+ </style>
+
+ <script>
+ new EventSource('/esbuild').addEventListener('change', () => {
+ console.info('reload--');
+ location.reload();
+ });
+ </script>
+ </head>
+
+ <body style="overflow: hidden; display: flex; flex-direction: row;">
+ <div id="container" style="flex: 1 1 0%;"></div>
+ <script src="./main.js"></script>
+ </body>
+</html>
diff --git a/examples/src/main.tsx b/examples/src/main.tsx
index a07b80d084..acd0045d52 100644
--- a/examples/src/main.tsx
+++ b/examples/src/main.tsx
@@ -42,6 +42,10 @@ function Examples() {
<span> Univer Slides</span>
<div className={styles.btnBg}>→</div>{' '}
</a>
+ <a className={styles.btn} href="./sheets-multi/">
+ <span> Univer Multi Instance</span>
+ <div className={styles.btnBg}>→</div>{' '}
+ </a>
</section>
);
}
diff --git a/examples/src/sheets-multi/index.css b/examples/src/sheets-multi/index.css
new file mode 100644
index 0000000000..cd0fefcbb9
--- /dev/null
+++ b/examples/src/sheets-multi/index.css
@@ -0,0 +1,3 @@
+#app {
+ height: 100%;
+}
\ No newline at end of file
diff --git a/examples/src/sheets-multi/main.tsx b/examples/src/sheets-multi/main.tsx
new file mode 100644
index 0000000000..60a48823aa
--- /dev/null
+++ b/examples/src/sheets-multi/main.tsx
@@ -0,0 +1,105 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import 'react-mosaic-component/react-mosaic-component.css';
+import './index.css';
+
+import { LocaleType, LogLevel, Tools, Univer } from '@univerjs/core';
+import { defaultTheme } from '@univerjs/design';
+import { UniverDocsPlugin } from '@univerjs/docs';
+import { UniverFormulaEnginePlugin } from '@univerjs/engine-formula';
+import { UniverRenderEnginePlugin } from '@univerjs/engine-render';
+import { UniverSheetsPlugin } from '@univerjs/sheets';
+import { UniverSheetsFormulaPlugin } from '@univerjs/sheets-formula';
+import { UniverSheetsNumfmtPlugin } from '@univerjs/sheets-numfmt';
+import { UniverSheetsUIPlugin } from '@univerjs/sheets-ui';
+import { UniverUIPlugin } from '@univerjs/ui';
+import React from 'react';
+import ReactDOM from 'react-dom';
+import { Mosaic, MosaicWindow } from 'react-mosaic-component';
+
+import { DEFAULT_WORKBOOK_DATA_DEMO } from '../data';
+
+const univers: Univer[] = [];
+
+function factory(id: string) {
+ return function createUniverOnContainer() {
+ const univer = new Univer({
+ theme: defaultTheme,
+ locale: LocaleType.ZH_CN,
+ logLevel: LogLevel.VERBOSE,
+ });
+
+ univer.registerPlugin(UniverDocsPlugin, {
+ hasScroll: false,
+ });
+ univer.registerPlugin(UniverRenderEnginePlugin);
+ univer.registerPlugin(UniverUIPlugin, {
+ container: id,
+ header: true,
+ toolbar: true,
+ footer: false,
+ });
+
+ // sheets plugin
+ univer.registerPlugin(UniverSheetsPlugin);
+ univer.registerPlugin(UniverSheetsUIPlugin);
+
+ // sheet feature plugins
+ univer.registerPlugin(UniverSheetsNumfmtPlugin);
+ univer.registerPlugin(UniverFormulaEnginePlugin);
+ univer.registerPlugin(UniverSheetsFormulaPlugin);
+
+ // create univer sheet instance
+ univer.createUniverSheet(Tools.deepClone(DEFAULT_WORKBOOK_DATA_DEMO));
+
+ univers.push(univer);
+ };
+}
+
+const TITLE_MAP: Record<ViewId, string> = {
+ a: 'Sheet 1',
+ b: 'Sheet 2',
+ c: 'Sheet 3',
+};
+
+export type ViewId = 'a' | 'b' | 'c';
+
+export const App = (
+ <Mosaic<ViewId>
+ renderTile={(id, path) => (
+ <MosaicWindow<ViewId> path={path} title={TITLE_MAP[id]} toolbarControls={<div />}>
+ <div id={`app-${id}`} style={{ height: '100%' }}>
+ {TITLE_MAP[id]}
+ </div>
+ </MosaicWindow>
+ )}
+ initialValue={{
+ direction: 'row',
+ first: 'a',
+ second: {
+ direction: 'column',
+ first: 'b',
+ second: 'c',
+ },
+ }}
+ />
+);
+
+ReactDOM.render(App, document.getElementById('container'));
+factory('app-a')();
+factory('app-b')();
+factory('app-c')();
diff --git a/packages/core/src/services/permission/permission.service.ts b/packages/core/src/services/permission/permission.service.ts
index 691884ce96..764362c15d 100644
--- a/packages/core/src/services/permission/permission.service.ts
+++ b/packages/core/src/services/permission/permission.service.ts
@@ -34,8 +34,10 @@ export interface IPermissionService {
composePermission$(unitID: string, permissionIdList: string[]): Observable<PermissionPoint[]>;
composePermission(unitID: string, permissionIdList: string[]): PermissionPoint[];
}
+
export const IPermissionService = createIdentifier<IPermissionService>('univer.permission-service');
const resourceKey = 'PERMISSION';
+
@OnLifecycle(LifecycleStages.Starting, PermissionService)
export class PermissionService extends Disposable implements IPermissionService {
private _permissionPointMap: Map<string, Map<string, BehaviorSubject<PermissionPoint>>> = new Map();
diff --git a/packages/docs/src/controllers/text-selection.controller.ts b/packages/docs/src/controllers/text-selection.controller.ts
index 23b7a046b6..a4044d0d2a 100644
--- a/packages/docs/src/controllers/text-selection.controller.ts
+++ b/packages/docs/src/controllers/text-selection.controller.ts
@@ -18,7 +18,8 @@ import type { ICommandInfo, Nullable, Observer } from '@univerjs/core';
import { Disposable, ICommandService, IUniverInstanceService, LifecycleStages, OnLifecycle } from '@univerjs/core';
import type { Documents, IMouseEvent, IPointerEvent } from '@univerjs/engine-render';
import { CURSOR_TYPE, IRenderManagerService, ITextSelectionRenderManager } from '@univerjs/engine-render';
-import { Inject } from '@wendellhu/redi';
+import { LayoutService } from '@univerjs/ui';
+import { Inject, Optional } from '@wendellhu/redi';
import { getDocObjectById } from '../basics/component-tools';
import { VIEWPORT_KEY } from '../basics/docs-view-key';
@@ -48,7 +49,8 @@ export class TextSelectionController extends Disposable {
@IRenderManagerService private readonly _renderManagerService: IRenderManagerService,
@ITextSelectionRenderManager
private readonly _textSelectionRenderManager: ITextSelectionRenderManager,
- @Inject(TextSelectionManagerService) private readonly _textSelectionManagerService: TextSelectionManagerService
+ @Inject(TextSelectionManagerService) private readonly _textSelectionManagerService: TextSelectionManagerService,
+ @Optional(LayoutService) private readonly _layoutService?: LayoutService
) {
super();
@@ -72,8 +74,13 @@ export class TextSelectionController extends Disposable {
private _initialize() {
this._skeletonListener();
-
this._commandExecutedListener();
+
+ if (this._layoutService) {
+ this.disposeWithMe(
+ this._layoutService.registerContainer(this._textSelectionRenderManager.__getEditorContainer())
+ );
+ }
}
override dispose(): void {
diff --git a/packages/docs/src/doc-plugin.ts b/packages/docs/src/doc-plugin.ts
index f5e1c08615..abd5acf3b7 100644
--- a/packages/docs/src/doc-plugin.ts
+++ b/packages/docs/src/doc-plugin.ts
@@ -203,6 +203,7 @@ export class UniverDocsPlugin extends Plugin {
},
],
[TextSelectionManagerService],
+
// controllers
[DocRenderController],
[PageRenderController],
diff --git a/packages/engine-render/src/components/docs/text-selection-render-manager.ts b/packages/engine-render/src/components/docs/text-selection-render-manager.ts
index db7309c795..9704e8b24e 100644
--- a/packages/engine-render/src/components/docs/text-selection-render-manager.ts
+++ b/packages/engine-render/src/components/docs/text-selection-render-manager.ts
@@ -134,6 +134,8 @@ export interface ITextSelectionRenderManager {
readonly onPaste$: Observable<Nullable<IEditorInputConfig>>;
readonly textSelectionInner$: Observable<Nullable<ITextSelectionInnerParam>>;
+ __getEditorContainer(): HTMLElement;
+
getViewPort(): Viewport;
enableSelection(): void;
@@ -305,6 +307,10 @@ export class TextSelectionRenderManager extends RxDisposable implements ITextSel
}
}
+ __getEditorContainer(): HTMLElement {
+ return this._container;
+ }
+
getViewPort() {
return this._activeViewport;
}
diff --git a/packages/sheets-ui/src/controllers/editor/initialize-editor.controller.ts b/packages/sheets-ui/src/controllers/editor/initialize-editor.controller.ts
index 0c7aeb2e69..27472243a6 100644
--- a/packages/sheets-ui/src/controllers/editor/initialize-editor.controller.ts
+++ b/packages/sheets-ui/src/controllers/editor/initialize-editor.controller.ts
@@ -14,7 +14,6 @@
* limitations under the License.
*/
-import type { Nullable } from '@univerjs/core';
import {
DEFAULT_EMPTY_DOCUMENT_VALUE,
Disposable,
@@ -27,30 +26,16 @@ import {
VerticalAlign,
WrapStrategy,
} from '@univerjs/core';
-import { getDocObject } from '@univerjs/docs';
-import { IRenderManagerService } from '@univerjs/engine-render';
-import type { Subscription } from 'rxjs';
@OnLifecycle(LifecycleStages.Rendered, InitializeEditorController)
export class InitializeEditorController extends Disposable {
- private _onInputSubscription: Nullable<Subscription>;
-
- constructor(
- @IUniverInstanceService private readonly _currentUniverService: IUniverInstanceService,
- @IRenderManagerService private readonly _renderManagerService: IRenderManagerService
- ) {
+ constructor(@IUniverInstanceService private readonly _currentUniverService: IUniverInstanceService) {
super();
// TODO: @JOCS, remove use setTimeout.
setTimeout(() => {
this._initialize();
}, 0);
-
- this._commandExecutedListener();
- }
-
- override dispose(): void {
- this._onInputSubscription?.unsubscribe();
}
private _initialize() {
@@ -103,10 +88,4 @@ export class InitializeEditorController extends Disposable {
this._currentUniverService.createDoc(INITIAL_SNAPSHOT);
}
-
- private _commandExecutedListener() {}
-
- private _getDocObject() {
- return getDocObject(this._currentUniverService, this._renderManagerService);
- }
}
diff --git a/packages/sheets-ui/src/views/editor-container/EditorContainer.tsx b/packages/sheets-ui/src/views/editor-container/EditorContainer.tsx
index 1905477a45..c1dfb9454d 100644
--- a/packages/sheets-ui/src/views/editor-container/EditorContainer.tsx
+++ b/packages/sheets-ui/src/views/editor-container/EditorContainer.tsx
@@ -46,13 +46,11 @@ export const EditorContainer: React.FC<ICellIEditorProps> = () => {
const editorRef = useRef<HTMLDivElement>(null);
const renderManagerService: IRenderManagerService = useDependency(IRenderManagerService);
-
const cellEditorManagerService: ICellEditorManagerService = useDependency(ICellEditorManagerService);
useEffect(() => {
const editor = editorRef.current;
-
- if (editor == null) {
+ if (!editor) {
return;
}
@@ -99,7 +97,6 @@ export const EditorContainer: React.FC<ICellIEditorProps> = () => {
}
});
- // Clean up on unmount
return () => {
renderSubscription.unsubscribe();
};
diff --git a/packages/ui/src/controllers/ui/ui-desktop.controller.tsx b/packages/ui/src/controllers/ui/ui-desktop.controller.tsx
index 160b86b71a..e07b95a43a 100644
--- a/packages/ui/src/controllers/ui/ui-desktop.controller.tsx
+++ b/packages/ui/src/controllers/ui/ui-desktop.controller.tsx
@@ -17,7 +17,7 @@
import { Disposable, LifecycleService, LifecycleStages, toDisposable } from '@univerjs/core';
import { IRenderManagerService } from '@univerjs/engine-render';
import type { IDisposable } from '@wendellhu/redi';
-import { Inject, Injector } from '@wendellhu/redi';
+import { Inject, Injector, Optional } from '@wendellhu/redi';
import { connectInjector } from '@wendellhu/redi/react-bindings';
import { render as createRoot, unmount } from 'rc-util/lib/React/render';
import type { ComponentType } from 'react';
@@ -26,6 +26,7 @@ import type { Observable } from 'rxjs';
import { Subject } from 'rxjs';
import { IFocusService } from '../../services/focus/focus.service';
+import { LayoutService } from '../../services/layout/layout.service';
import { App } from '../../views/App';
import type { IWorkbenchOptions } from './ui.controller';
import { IUIController } from './ui.controller';
@@ -82,7 +83,8 @@ export class DesktopUIController extends Disposable implements IDesktopUIControl
@Inject(Injector) private readonly _injector: Injector,
@Inject(LifecycleService) private readonly _lifecycleService: LifecycleService,
@IRenderManagerService private readonly _renderManagerService: IRenderManagerService,
- @IFocusService private readonly _focusService: IFocusService
+ @IFocusService private readonly _focusService: IFocusService,
+ @Optional(LayoutService) private readonly _layoutService?: LayoutService
) {
super();
}
@@ -94,6 +96,10 @@ export class DesktopUIController extends Disposable implements IDesktopUIControl
this._lifecycleService.stage = LifecycleStages.Rendered;
this._focusService.setContainerElement(containerElement);
+ if (this._layoutService) {
+ this.disposeWithMe(this._layoutService.registerContainer(containerElement));
+ }
+
setTimeout(() => (this._lifecycleService.stage = LifecycleStages.Steady), STEADY_TIMEOUT);
})
);
diff --git a/packages/ui/src/index.ts b/packages/ui/src/index.ts
index 6e74d1bcd0..c655a42d65 100644
--- a/packages/ui/src/index.ts
+++ b/packages/ui/src/index.ts
@@ -46,6 +46,7 @@ export {
} from './services/contextmenu/contextmenu.service';
export { DesktopDialogService } from './services/dialog/desktop-dialog.service';
export { IDialogService } from './services/dialog/dialog.service';
+export { LayoutService } from './services/layout/layout.service';
export {
type ICustomComponentProps,
type IDisplayMenuItem,
diff --git a/packages/ui/src/services/layout/layout.service.ts b/packages/ui/src/services/layout/layout.service.ts
new file mode 100644
index 0000000000..6dcd15f576
--- /dev/null
+++ b/packages/ui/src/services/layout/layout.service.ts
@@ -0,0 +1,39 @@
+/**
+ * Copyright 2023-present DreamNum Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { remove, toDisposable } from '@univerjs/core';
+import { type IDisposable } from '@wendellhu/redi';
+
+/**
+ * This service is responsible for storing layout information of the current
+ * Univer application instance
+ */
+export class LayoutService {
+ private _containers: HTMLElement[] = [];
+
+ registerContainer(container: HTMLElement): IDisposable {
+ if (this._containers.indexOf(container) === -1) {
+ this._containers.push(container);
+ return toDisposable(() => remove(this._containers, container));
+ }
+
+ throw new Error('[LayoutService]: container already registered!');
+ }
+
+ checkElementInCurrentApplicationScope(element: HTMLElement): boolean {
+ return this._containers.some((container) => container.contains(element));
+ }
+}
diff --git a/packages/ui/src/services/shortcut/shortcut.service.ts b/packages/ui/src/services/shortcut/shortcut.service.ts
index 9080fd324c..5803a17647 100644
--- a/packages/ui/src/services/shortcut/shortcut.service.ts
+++ b/packages/ui/src/services/shortcut/shortcut.service.ts
@@ -16,11 +16,12 @@
import { Disposable, ICommandService, IContextService, toDisposable } from '@univerjs/core';
import type { IDisposable } from '@wendellhu/redi';
-import { createIdentifier } from '@wendellhu/redi';
+import { createIdentifier, Optional } from '@wendellhu/redi';
import type { Observable } from 'rxjs';
import { Subject } from 'rxjs';
import { fromDocumentEvent } from '../../common/lifecycle';
+import { LayoutService } from '../layout/layout.service';
import { IPlatformService } from '../platform/platform.service';
import { KeyCodeToChar, MetaKeys } from './keycode';
@@ -79,7 +80,8 @@ export class DesktopShortcutService extends Disposable implements IShortcutServi
constructor(
@ICommandService private readonly _commandService: ICommandService,
@IPlatformService private readonly _platformService: IPlatformService,
- @IContextService private readonly _contextService: IContextService
+ @IContextService private readonly _contextService: IContextService,
+ @Optional(LayoutService) private readonly _layoutService?: LayoutService
) {
super();
@@ -182,6 +184,13 @@ export class DesktopShortcutService extends Disposable implements IShortcutServi
return;
}
+ if (
+ this._layoutService &&
+ !this._layoutService.checkElementInCurrentApplicationScope(e.target as HTMLElement)
+ ) {
+ return;
+ }
+
const shouldPreventDefault = this._dispatch(e);
if (shouldPreventDefault) {
e.preventDefault();
diff --git a/packages/ui/src/ui-plugin.ts b/packages/ui/src/ui-plugin.ts
index 04bebe8549..32a06cfbed 100644
--- a/packages/ui/src/ui-plugin.ts
+++ b/packages/ui/src/ui-plugin.ts
@@ -35,6 +35,7 @@ import { DesktopContextMenuService, IContextMenuService } from './services/conte
import { DesktopDialogService } from './services/dialog/desktop-dialog.service';
import { IDialogService } from './services/dialog/dialog.service';
import { DesktopFocusService, IFocusService } from './services/focus/focus.service';
+import { LayoutService } from './services/layout/layout.service';
import { DesktopLocalStorageService } from './services/local-storage/local-storage.service';
import { DesktopMenuService, IMenuService } from './services/menu/menu.service';
import { DesktopMessageService } from './services/message/desktop-message.service';
@@ -69,7 +70,7 @@ export class UniverUIPlugin extends Plugin {
) {
super(PLUGIN_NAME);
- this._config = Object.assign(DEFAULT_SLIDE_PLUGIN_DATA, config);
+ this._config = { ...DEFAULT_SLIDE_PLUGIN_DATA, ...config };
this._localeService.load({
zhCN,
@@ -93,6 +94,7 @@ export class UniverUIPlugin extends Plugin {
// services
[ShortcutExperienceService],
[ShortcutPanelService],
+ [LayoutService],
[IShortcutService, { useClass: DesktopShortcutService }],
[IPlatformService, { useClass: DesktopPlatformService }],
[IMenuService, { useClass: DesktopMenuService }],
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 4965680de2..7a97358e42 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -255,6 +255,9 @@ importers:
react-dom:
specifier: ^18.2.0
version: 18.2.0([email protected])
+ react-mosaic-component:
+ specifier: ^6.1.0
rxjs:
specifier: ^7.8.1
version: 7.8.1
@@ -6347,6 +6350,18 @@ packages:
react-dom: 18.2.0([email protected])
dev: false
+ /@react-dnd/[email protected]:
+ resolution: {integrity: sha512-WLyfoHvxhs0V9U+GTsGilGgf2QsPl6ZZ44fnv0/b8T3nQyvzxidxsg/ZltbWssbsRDlYW8UKSQMTGotuTotZ6A==}
+ dev: false
+
+ /@react-dnd/[email protected]:
+ resolution: {integrity: sha512-xKCTqAK/FFauOM9Ta2pswIyT3D8AQlfrYdOi/toTPEhqCuAs1v5tcJ3Y08Izh1cJ5Jchwy9SeAXmMg6zrKs2iw==}
+ dev: false
+
+ /@react-dnd/[email protected]:
+ resolution: {integrity: sha512-/RVXdLvJxLg4QKvMoM5WlwNR9ViO9z8B/qPcc+C0Sa/teJY7QG7kJ441DwzOjMYEY7GmU4dj5EcGHIkKZiQZCA==}
+ dev: false
+
resolution: {integrity: sha512-6aEYR910NyP73oHiJglti74iRyOwgFU4x3meH/H8OJx6Ry0j6cOVZ5X/wTvub7G7Ao6qaHBEaNsV3GLJkSsF+Q==}
engines: {node: '>=14.0.0'}
@@ -10099,6 +10114,22 @@ packages:
dependencies:
path-type: 4.0.0
+ resolution: {integrity: sha512-HK294sl7tbw6F6IeuK16YSBUoorvHpY8RHO+9yFfaJyCDVb6n7PRcezrOEOa2SBCqiYpemh5Jx20ZcjKdFAVng==}
+ dependencies:
+ '@react-dnd/asap': 5.0.2
+ '@react-dnd/invariant': 4.0.2
+ redux: 4.2.1
+ dev: false
+
+ resolution: {integrity: sha512-yFFARotr+OEJk787Fsj+V52pi6j7+Pt/CRp3IR2Ai3fnxA/z6J54T7+gxkXzXu4cvxTNE7NiBzzAaJ2f7JjFTw==}
+ peerDependencies:
+ dnd-core: ^16.0.1
+ dependencies:
+ dnd-core: 16.0.1
+ dev: false
+
resolution: {integrity: sha512-z+paD6YUQsk+AbGCEM4PrOXSss5gd66QfcVBFTKR/HpFL9jCqikS94HYwKww6fQyO7IxrIIyUu+g0Ka9tUS2Cg==}
@@ -12212,6 +12243,10 @@ packages:
resolution: {integrity: sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==}
+ resolution: {integrity: sha512-Q0QaXjPjwIju/28TsugCHNEASwoCcJSyJV3uO1sOIQGI0jKgm9f41Lvz0DZj3n46cNCyAZTsEYoY4C2bVRUzyQ==}
+ dev: false
+
resolution: {integrity: sha512-fsXeu4J4i6WNWSikpI88v/PcVflZz+6kMhUfIwc5SY+poQRPnaf5V7qds6SUyUN3cVxEzuCab7QIoLOQ+DQ1wA==}
dev: true
@@ -15781,6 +15816,16 @@ packages:
minimist: 1.2.8
strip-json-comments: 2.0.1
+ resolution: {integrity: sha512-VfIbLjlL9NAnZzc2M5fGPCNkDyK12+ahgILGO5RjS7jkgUlxwB0c/XvxVQNfY/2ocg7isTY/G7tqxJk5fSTZAA==}
+ dependencies:
+ dnd-multi-backend: 8.0.3([email protected])
+ react-dnd-html5-backend: 16.0.1
+ react-dnd-touch-backend: 16.0.1
+ transitivePeerDependencies:
+ - dnd-core
+ dev: false
+
resolution: {integrity: sha512-1exovf0uGTGyq5mXQT0zgQ80uvj2PCwvF8zY1RN9/vbJVSjSo3fsB/4L3ObbF7u70NduSiK4xu4Y6q1MHoUGEw==}
peerDependencies:
@@ -15832,6 +15877,70 @@ packages:
- supports-color
- vue-template-compiler
+ resolution: {integrity: sha512-Wu3dw5aDJmOGw8WjH1I1/yTH+vlXEL4vmjk5p+MHxP8HuHJS1lAGeIdG/hze1AvNeXWo/JgULV87LyQOr+r5jw==}
+ dependencies:
+ dnd-core: 16.0.1
+ dev: false
+
+ resolution: {integrity: sha512-IwH7Mf6R05KIFohX0hHMTluoAvuUD8SO15KCD+9fY0nJ4nc1FGCMCSyMZw8R1XNStKp+JnNg3ZMtiaf5DebSUg==}
+ peerDependencies:
+ dnd-core: ^16.0.1
+ react: ^16.14.0 || ^17.0.2 || ^18.0.0
+ react-dnd: ^16.0.1
+ react-dom: ^16.14.0 || ^17.0.2 || ^18.0.0
+ dependencies:
+ dnd-core: 16.0.1
+ dnd-multi-backend: 8.0.3([email protected])
+ react: 18.2.0
+ react-dnd: 16.0.1(@types/[email protected])(@types/[email protected])([email protected])
+ react-dnd-preview: 8.0.3([email protected])([email protected])
+ react-dom: 18.2.0([email protected])
+ dev: false
+
+ resolution: {integrity: sha512-s69Ro47QYDthDhj73iQ0VioMCjtlZ1AytKBDkQaHKm5DTjA8D2bIaFKCBQd330QEW0SIzqLJrZGCSlIY2xraJg==}
+ peerDependencies:
+ react: ^16.14.0 || ^17.0.2 || ^18.0.0
+ react-dnd: ^16.0.1
+ dependencies:
+ react: 18.2.0
+ react-dnd: 16.0.1(@types/[email protected])(@types/[email protected])([email protected])
+ dev: false
+
+ resolution: {integrity: sha512-NonoCABzzjyWGZuDxSG77dbgMZ2Wad7eQiCd/ECtsR2/NBLTjGksPUx9UPezZ1nQ/L7iD130Tz3RUshL/ClKLA==}
+ dependencies:
+ '@react-dnd/invariant': 4.0.2
+ dnd-core: 16.0.1
+ dev: false
+
+ resolution: {integrity: sha512-QeoM/i73HHu2XF9aKksIUuamHPDvRglEwdHL4jsp784BgUuWcg6mzfxT0QDdQz8Wj0qyRKx2eMg8iZtWvU4E2Q==}
+ peerDependencies:
+ '@types/hoist-non-react-statics': '>= 3.3.1'
+ '@types/node': '>= 12'
+ '@types/react': '>= 16'
+ react: '>= 16.14'
+ peerDependenciesMeta:
+ '@types/hoist-non-react-statics':
+ optional: true
+ '@types/node':
+ optional: true
+ '@types/react':
+ optional: true
+ dependencies:
+ '@react-dnd/invariant': 4.0.2
+ '@react-dnd/shallowequal': 4.0.2
+ '@types/node': 20.10.4
+ '@types/react': 18.2.45
+ dnd-core: 16.0.1
+ fast-deep-equal: 3.1.3
+ hoist-non-react-statics: 3.3.2
+ react: 18.2.0
+ dev: false
+
resolution: {integrity: sha512-tvg2ZtOpOi6QDwsb3GZhOjDkkX0h8Z2gipvTg6OVMUyoYoURhEiRNePT8NZItTVCDh39JJHnLdfCOkzoLbFnTg==}
peerDependencies:
@@ -15958,6 +16067,30 @@ packages:
react-loadable: /@docusaurus/[email protected]([email protected])
webpack: 5.89.0([email protected])
+ resolution: {integrity: sha512-iWrNUSdW6HK9SB6kaj7/auvIGZWlyEFR8ulQKC9lskY047uluo5ur4fiuZTNroUTZvGqL02AiLzBBj1+et8RZA==}
+ peerDependencies:
+ react: 16 - 18
+ dependencies:
+ classnames: 2.3.2
+ immutability-helper: 3.1.1
+ lodash: 4.17.21
+ prop-types: 15.8.1
+ rdndmb-html5-to-touch: 8.0.3([email protected])
+ react: 18.2.0
+ react-dnd: 16.0.1(@types/[email protected])(@types/[email protected])([email protected])
+ react-dnd-html5-backend: 16.0.1
+ react-dnd-touch-backend: 16.0.1
+ uuid: 9.0.1
+ transitivePeerDependencies:
+ - '@types/hoist-non-react-statics'
+ - '@types/node'
+ - '@types/react'
+ - dnd-core
+ - react-dom
+ dev: false
+
resolution: {integrity: sha512-wViHqhAd8OHeLS/IRMJjTSDHF3U9eWi62F/MledQGPdJGDhodXJ9PBLNGr6WWL7qlH12Mt3TyTpbS+hGXMjCzQ==}
engines: {node: '>=0.10.0'}
@@ -16190,6 +16323,12 @@ packages:
strip-indent: 4.0.0
dev: true
+ resolution: {integrity: sha512-LAUYz4lc+Do8/g7aeRa8JkyDErK6ekstQaqWQrNRW//MY1TvCEpMtpTWvlQ+FPbWCx+Xixu/6SHt5N0HR+SB4w==}
+ dependencies:
+ '@babel/runtime': 7.23.4
+ dev: false
+
resolution: {integrity: sha512-ECkTw8TmJwW60lOTR+ZkODISW6RQ8+2CL3COqtiJKLd6MmB45hN51HprHFziKLGkAuTGQhBb91V8cy+KHlaCjw==}
engines: {node: '>= 0.4'}
@@ -18242,7 +18381,6 @@ packages:
resolution: {integrity: sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==}
hasBin: true
- dev: true
resolution: {integrity: sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==}