@univerjs-pro/embed-ui 1.0.0-alpha.6 → 1.0.0-alpha.8
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 +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.css +0 -49
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/common/embed-float-interaction-policy.d.ts +0 -2
- package/lib/types/common/embed-overlay-layers.d.ts +4 -0
- package/lib/types/components/EmbedFloatDomRenderer.d.ts +8 -1
- package/lib/types/components/EmbedRuntimeProviders.d.ts +1 -0
- package/lib/types/products/bases/EmbedChildView.d.ts +5 -2
- package/lib/types/products/docs/EmbedDocsCustomBlockRenderer.d.ts +0 -6
- package/lib/types/products/docs/docs-custom-block-layout.d.ts +5 -0
- package/lib/types/products/sheets/EmbedBlock.d.ts +4 -1
- package/lib/types/products/sheets/register.d.ts +1 -1
- package/lib/types/products/slides/EmbedChildView.d.ts +5 -1
- package/lib/types/services/embed-activation.service.d.ts +4 -5
- package/lib/types/services/embed-display-target-sync.d.ts +6 -0
- package/lib/types/services/embed-floating-menu-root.d.ts +5 -1
- package/lib/types/services/embed-runtime-focus-coordinator.service.d.ts +1 -0
- package/lib/types/services/embed-runtime-scope-dom.d.ts +2 -1
- package/lib/types/types/embed-ui.d.ts +1 -0
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +36 -34
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import type { EmbedFloatingStage, EmbedInteractionFlow } from '../types/embed-ui';
|
|
2
2
|
export interface IEmbedFloatInteractionPolicy {
|
|
3
3
|
allowHostBodyDrag: boolean;
|
|
4
|
-
allowHostDragHandle: boolean;
|
|
5
4
|
disableLiveHostPointerEvents: boolean;
|
|
6
5
|
passThroughInteractionGate: boolean;
|
|
7
6
|
runtimeOwnsInteraction: boolean;
|
|
8
|
-
showHostDragHandle: boolean;
|
|
9
7
|
}
|
|
10
8
|
export declare function resolveEmbedFloatInteractionPolicy(params: {
|
|
11
9
|
stage: EmbedFloatingStage;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Embed chrome sits above the embedded block while remaining below product overlays. */
|
|
2
|
+
export declare const EMBED_CHROME_Z_INDEX = 800;
|
|
3
|
+
/** Fullscreen covers other embed chrome while remaining below product overlays. */
|
|
4
|
+
export declare const EMBED_FULLSCREEN_Z_INDEX = 810;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import type { IDisposable } from '@univerjs/core';
|
|
1
2
|
import type { Observable } from 'rxjs';
|
|
2
3
|
import type { EmbedFloatingStage, EmbedInteractionFlow, IEmbedChildContainerContext } from '../types/embed-ui';
|
|
3
4
|
import { UniverInstanceType } from '@univerjs/core';
|
|
5
|
+
import { ILayoutService } from '@univerjs/ui';
|
|
6
|
+
import { EmbedRuntimeFocusCoordinator } from '../services/embed-runtime-focus-coordinator.service';
|
|
4
7
|
export declare const EMBED_FLOAT_DRAG_HANDLE_POINTER_DOWN_EVENT = "univer:embed-float-drag-handle:pointerdown";
|
|
5
8
|
export interface IEmbedFloatDragHandlePointerDownDetail {
|
|
6
9
|
embedId: string;
|
|
@@ -52,10 +55,14 @@ export declare function EmbedFloatDomRenderer(props: {
|
|
|
52
55
|
resolveHostWheelGestureRoot?: (container: HTMLElement) => HTMLElement | null | undefined;
|
|
53
56
|
isExternalHostInteraction?: (event: PointerEvent) => boolean;
|
|
54
57
|
}): import("react").JSX.Element;
|
|
58
|
+
export declare function resetEmbedChromeLayoutStyles(chrome: HTMLElement): void;
|
|
59
|
+
export declare function isPointInsideFloatBlock(container: HTMLElement, event: MouseEvent): boolean;
|
|
55
60
|
export declare function syncRuntimeInteractionVisibility(container: HTMLElement, chrome: HTMLElement | undefined, visible: boolean, _stage: 'inactive' | 'stage1' | 'stage2'): void;
|
|
56
|
-
export declare function syncChromeControlsVisibility(container: HTMLElement, chrome: HTMLElement | undefined, visible: boolean,
|
|
61
|
+
export declare function syncChromeControlsVisibility(container: HTMLElement, chrome: HTMLElement | undefined, visible: boolean, stage: 'inactive' | 'stage1' | 'stage2'): void;
|
|
57
62
|
export declare function syncDocsSheetLikeChromePageArea(chrome: HTMLElement, chromeRect: DOMRect, pageRect: DOMRect): void;
|
|
58
63
|
export declare function resolveChromeAnchorRect(container: HTMLElement): DOMRect;
|
|
64
|
+
export declare function shouldRouteUnhandledWheelToHost(event: WheelEvent): boolean;
|
|
65
|
+
export declare function registerEmbedStage2LayoutContainers(layoutService: Pick<ILayoutService, 'checkElementInCurrentContainers' | 'registerContainerElement'>, focusCoordinator: Pick<EmbedRuntimeFocusCoordinator, 'listElements' | 'runtimeFocusChanged$'>, embedId: string | undefined, container: HTMLElement | null, stage: EmbedFloatingStage): IDisposable | undefined;
|
|
59
66
|
export declare function shouldAcquireOwnedInteractionPointerLease(options: {
|
|
60
67
|
stage: EmbedFloatingStage;
|
|
61
68
|
target: EventTarget | null;
|
|
@@ -7,3 +7,4 @@ export interface IEmbedRuntimeProvidersProps {
|
|
|
7
7
|
embedId?: string;
|
|
8
8
|
}
|
|
9
9
|
export declare function EmbedRuntimeProviders(props: IEmbedRuntimeProvidersProps): import("react").JSX.Element;
|
|
10
|
+
export declare function focusEmbedRuntimePointerTarget(embedId: string, runtimeProvider: HTMLElement, target: EventTarget | null): void;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import type { IUniverBaseUIConfig } from '@univerjs-pro/bases-ui';
|
|
2
|
+
import type { EmbedDisplayTarget, IEmbedBaseDisplayTarget } from '@univerjs-pro/embed';
|
|
2
3
|
import type { BaseDataModel, Injector } from '@univerjs/core';
|
|
3
4
|
import type { IEmbedChildContainerContext, IEmbedChildViewContribution } from '../../types/embed-ui';
|
|
4
5
|
import { BaseEditorService, BaseUIPopupService, BaseUIStateService, IBaseUIPopupService, IBaseViewWheelScrollService } from '@univerjs-pro/bases-ui';
|
|
6
|
+
import { ICommandService } from '@univerjs/core';
|
|
5
7
|
export type BaseEmbedChromeMode = 'workbench' | 'content-only' | 'fullscreen';
|
|
6
|
-
export declare function createBasesEmbedChildViewContribution(): IEmbedChildViewContribution;
|
|
8
|
+
export declare function createBasesEmbedChildViewContribution(commandService: ICommandService): IEmbedChildViewContribution;
|
|
7
9
|
export declare function isBaseCanvasRootReady(canvasRoot: HTMLElement | null): canvasRoot is HTMLElement;
|
|
8
10
|
export declare function shouldActivateBasesEmbedRender(_context: Pick<IEmbedChildContainerContext, 'renderScope'>): boolean;
|
|
9
11
|
export declare function createBasesEmbedChildUnitScopedInjector(context: IEmbedChildContainerContext, baseStateService: BaseUIStateService, basePopupService: IBaseUIPopupService, baseEditorService: BaseEditorService): Injector | undefined;
|
|
10
|
-
export declare function initializeBasesEmbedState(stateService: BaseUIStateService, childUnit: BaseDataModel, chromeMode?: BaseEmbedChromeMode): void;
|
|
12
|
+
export declare function initializeBasesEmbedState(stateService: BaseUIStateService, childUnit: BaseDataModel, chromeMode?: BaseEmbedChromeMode, displayTarget?: EmbedDisplayTarget): void;
|
|
13
|
+
export declare function resolveBasesDisplayTarget(childUnit: BaseDataModel, displayTarget?: EmbedDisplayTarget): IEmbedBaseDisplayTarget;
|
|
11
14
|
export declare function resolveBasesEmbedChromeMode(context: Pick<IEmbedChildContainerContext, 'renderScope'>): BaseEmbedChromeMode;
|
|
12
15
|
export declare function createBasesEmbedScopedInjector(rootInjector: Injector, childScopedInjector: Injector, baseStateService: BaseUIStateService, basePopupService?: BaseUIPopupService, baseEditorService?: BaseEditorService, chromeMode?: BaseEmbedChromeMode, baseWheelScrollService?: IBaseViewWheelScrollService, readOnly?: boolean, globalPortalContainer?: HTMLElement | null): Injector;
|
|
13
16
|
export declare function resolveEmbeddedBaseUIConfig(baseConfig: IUniverBaseUIConfig, chromeMode?: BaseEmbedChromeMode): IUniverBaseUIConfig;
|
|
@@ -26,13 +26,7 @@ export declare function createDocsTableLikeCustomBlockStage2WheelHandler(options
|
|
|
26
26
|
export declare function resolveDocsTableLikeCustomBlockRuntimeContentHeight(authoritativeContentHeight: number | undefined): number;
|
|
27
27
|
export declare function resolveDocsCustomBlockRuntimeViewportHeight(params: {
|
|
28
28
|
contentHeight: number;
|
|
29
|
-
sheetLike: boolean;
|
|
30
29
|
viewportHeight?: number;
|
|
31
30
|
}): number;
|
|
32
|
-
export declare function resolveDocsCustomBlockRuntimeOuterHeight(params: {
|
|
33
|
-
contentHeight: number;
|
|
34
|
-
menuInsetTop: number;
|
|
35
|
-
sheetLike: boolean;
|
|
36
|
-
}): number;
|
|
37
31
|
export declare function resolveDocsTableLikeCustomBlockRuntimeContentWidth(authoritativeContentWidth: number | undefined, measureFallback: () => number): number;
|
|
38
32
|
export declare function shouldSyncDocsTableLikeCustomBlockBleedOnScroll(root: HTMLElement, target: EventTarget | null): boolean;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import type { EmbedDisplayTarget } from '@univerjs-pro/embed';
|
|
2
|
+
import type { ICommandService, Workbook } from '@univerjs/core';
|
|
1
3
|
import type { IEmbedBlockContribution, IEmbedChildContainerContext, IEmbedChildViewContribution } from '../../types/embed-ui';
|
|
2
4
|
export declare function createSheetsEmbedBlockContribution(): IEmbedBlockContribution;
|
|
3
|
-
export declare function createSheetsEmbedChildViewContribution(): IEmbedChildViewContribution;
|
|
5
|
+
export declare function createSheetsEmbedChildViewContribution(commandService: ICommandService): IEmbedChildViewContribution;
|
|
6
|
+
export declare function applySheetDisplayTarget(workbook: Workbook, target: EmbedDisplayTarget | undefined): void;
|
|
4
7
|
export declare function shouldShowEmbeddedSheetChrome(context: Pick<IEmbedChildContainerContext, 'renderScope'>): boolean;
|
|
5
8
|
export declare function applyEmbeddedSheetChromeInset(canvasRoot: HTMLElement, chrome: {
|
|
6
9
|
formulaBar: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Injector } from '@univerjs/core';
|
|
2
1
|
import { EmbedModelService } from '@univerjs-pro/embed';
|
|
2
|
+
import { type Injector } from '@univerjs/core';
|
|
3
3
|
import { ISheetEmbedRuntimeService } from '@univerjs/sheets-ui';
|
|
4
4
|
import { CanvasFloatDomPreviewService } from '@univerjs/ui';
|
|
5
5
|
import { Subscription } from 'rxjs';
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import type { EmbedDisplayTarget } from '@univerjs-pro/embed';
|
|
2
|
+
import type { SlideModel } from '@univerjs-pro/slides';
|
|
1
3
|
import type { IEmbedChildContainerContext, IEmbedChildViewContribution } from '../../types/embed-ui';
|
|
2
|
-
|
|
4
|
+
import { type ICommandService } from '@univerjs/core';
|
|
5
|
+
export declare function createSlidesEmbedChildViewContribution(commandService: ICommandService): IEmbedChildViewContribution;
|
|
6
|
+
export declare function applySlideDisplayTarget(slide: SlideModel, target: EmbedDisplayTarget | undefined): void;
|
|
3
7
|
export declare function shouldUseSlideEmbedFloatingPreview(context: Pick<IEmbedChildContainerContext, 'layout' | 'renderScope'>): boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IEmbedDescriptor } from '@univerjs-pro/embed';
|
|
2
2
|
import type { IEmbedHostMenuOverride } from '../types/embed-ui';
|
|
3
3
|
import { EmbedFocusOwnerService, EmbedHostAdapterRegistryService } from '@univerjs-pro/embed';
|
|
4
|
-
import { IContextService, IUniverInstanceService } from '@univerjs/core';
|
|
4
|
+
import { Disposable, IContextService, IUniverInstanceService } from '@univerjs/core';
|
|
5
5
|
import { ILayoutService } from '@univerjs/ui';
|
|
6
6
|
import { EmbedBlockRegistryService } from './embed-block-registry.service';
|
|
7
7
|
import { EmbedFloatingActiveService } from './embed-floating-active.service';
|
|
@@ -10,7 +10,7 @@ import { EmbedMountService } from './embed-mount.service';
|
|
|
10
10
|
export interface IEmbedFloatingActivationOptions {
|
|
11
11
|
portalContainer?: HTMLElement | null;
|
|
12
12
|
}
|
|
13
|
-
export declare class EmbedActivationService {
|
|
13
|
+
export declare class EmbedActivationService extends Disposable {
|
|
14
14
|
private readonly _univerInstanceService;
|
|
15
15
|
private readonly _focusOwnerService;
|
|
16
16
|
private readonly _hostAdapterRegistry;
|
|
@@ -21,7 +21,6 @@ export declare class EmbedActivationService {
|
|
|
21
21
|
private readonly _contextService;
|
|
22
22
|
private readonly _layoutService;
|
|
23
23
|
private readonly _previousChildCurrentUnits;
|
|
24
|
-
private readonly _floatingHostFocusRestorers;
|
|
25
24
|
constructor(_univerInstanceService: IUniverInstanceService, _focusOwnerService: EmbedFocusOwnerService, _hostAdapterRegistry: EmbedHostAdapterRegistryService, _menuOverrideService: EmbedHostMenuOverrideService, _mountService: EmbedMountService, _blockRegistry: EmbedBlockRegistryService, _floatingActiveService: EmbedFloatingActiveService, _contextService: IContextService, _layoutService: ILayoutService);
|
|
26
25
|
activateTab(descriptor: IEmbedDescriptor): IEmbedHostMenuOverride | null;
|
|
27
26
|
activateFloating(descriptor: IEmbedDescriptor, stage?: 'stage1' | 'stage2', _options?: IEmbedFloatingActivationOptions): void;
|
|
@@ -36,9 +35,9 @@ export declare class EmbedActivationService {
|
|
|
36
35
|
private _hasUnit;
|
|
37
36
|
private _findFallbackUnitId;
|
|
38
37
|
private _focusUnit;
|
|
38
|
+
private _restoreStage2ChildFocusWhenHostRefocuses;
|
|
39
|
+
private _scheduleFloatingChildFocus;
|
|
39
40
|
private _setCurrentUnitForType;
|
|
40
41
|
private _focusLayout;
|
|
41
|
-
private _preserveHostGlobalFocusForFloating;
|
|
42
|
-
private _releaseFloatingHostFocusRestorers;
|
|
43
42
|
private _assertResolvedChild;
|
|
44
43
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { IEmbedChildContainerContext } from '../types/embed-ui';
|
|
2
|
+
import { type EmbedDisplayTarget } from '@univerjs-pro/embed';
|
|
3
|
+
import { type ICommandService, type IDisposable } from '@univerjs/core';
|
|
4
|
+
type ApplyEmbedDisplayTarget = (target: EmbedDisplayTarget | undefined) => void;
|
|
5
|
+
export declare function registerEmbedDisplayTargetSync(context: Pick<IEmbedChildContainerContext, 'descriptor' | 'embedId' | 'hostUnitId'>, commandService: ICommandService, applyTarget: ApplyEmbedDisplayTarget): IDisposable;
|
|
6
|
+
export {};
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import type { IEmbedFloatingMenuMountContext } from '../types/embed-ui';
|
|
2
|
-
export declare function resolveEmbedFloatingMenuRoot(context: Pick<IEmbedFloatingMenuMountContext, 'renderScope' | 'runtimeScope'>): HTMLElement;
|
|
2
|
+
export declare function resolveEmbedFloatingMenuRoot(context: Pick<IEmbedFloatingMenuMountContext, 'embedId' | 'renderScope' | 'runtimeScope'>): HTMLElement;
|
|
3
|
+
export declare function createEmbedFloatingMenuContainer(context: IEmbedFloatingMenuMountContext): {
|
|
4
|
+
root: HTMLElement;
|
|
5
|
+
menu: HTMLDivElement;
|
|
6
|
+
};
|
|
@@ -50,6 +50,7 @@ export declare class EmbedRuntimeFocusCoordinator {
|
|
|
50
50
|
isChildUnitRuntimeEvent(unitId: string | undefined, target: EventTarget | null | undefined, event?: Event): boolean;
|
|
51
51
|
shouldSuppressHostInteraction(unitId: string | undefined, target?: EventTarget | null, event?: Event, options?: IEmbedRuntimeFocusLeaseQueryOptions): boolean;
|
|
52
52
|
registerElement(options: IEmbedRuntimeFocusElementRegistration): IDisposable;
|
|
53
|
+
listElements(embedId: string | undefined): HTMLElement[];
|
|
53
54
|
containsElement(embedId: string | undefined, target: EventTarget | null | undefined, event?: Event): boolean;
|
|
54
55
|
private _containsRegisteredElement;
|
|
55
56
|
private _isBlockingLease;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { UniverInstanceType } from '@univerjs/core';
|
|
2
|
+
import { EMBED_CHILD_UNIT_ID_ATTRIBUTE } from '@univerjs/ui';
|
|
2
3
|
export declare const EMBED_FLOAT_DOM_ATTRIBUTE = "data-embed-float-dom";
|
|
3
4
|
export declare const EMBED_ID_ATTRIBUTE = "data-embed-id";
|
|
4
5
|
export declare const EMBED_HOST_UNIT_ID_ATTRIBUTE = "data-embed-host-unit-id";
|
|
5
|
-
export declare const EMBED_CHILD_UNIT_ID_ATTRIBUTE = "data-embed-child-unit-id";
|
|
6
6
|
export declare const EMBED_CHILD_TYPE_ATTRIBUTE = "data-embed-child-type";
|
|
7
|
+
export { EMBED_CHILD_UNIT_ID_ATTRIBUTE };
|
|
7
8
|
export interface IEmbedRuntimeDomScope {
|
|
8
9
|
embedId: string;
|
|
9
10
|
hostUnitId?: string;
|
|
@@ -92,6 +92,7 @@ export interface IEmbedHostContainerContribution {
|
|
|
92
92
|
export interface IEmbedChildViewContribution {
|
|
93
93
|
childType: UniverInstanceType;
|
|
94
94
|
supportedLayouts: EmbedLayout[];
|
|
95
|
+
canvasRootClassName?: string;
|
|
95
96
|
beforeDeactivate?: (context: IEmbedChildContainerContext) => void;
|
|
96
97
|
mount?: (context: IEmbedChildContainerContext) => IDisposable | void;
|
|
97
98
|
}
|