@umbraco-cms/backoffice 1.0.0-next.e8be58ec → 1.0.0-next.ecd0f4ca

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/workspace.d.ts CHANGED
@@ -3,6 +3,7 @@ import { Observable } from 'rxjs';
3
3
  import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
4
4
  import { UmbWorkspaceContextInterface as UmbWorkspaceContextInterface$1 } from '@umbraco-cms/backoffice/workspace';
5
5
  import { UmbEntityBase } from '@umbraco-cms/backoffice/models';
6
+ import { UmbVariantId } from '@umbraco-cms/backoffice/variant';
6
7
 
7
8
  interface UmbWorkspaceContextInterface<DataType = unknown> {
8
9
  host: UmbControllerHostElement;
@@ -55,4 +56,30 @@ declare class UmbSaveWorkspaceAction extends UmbWorkspaceActionBase<UmbWorkspace
55
56
  execute(): Promise<void>;
56
57
  }
57
58
 
58
- export { UmbEntityWorkspaceContextInterface, UmbSaveWorkspaceAction, UmbWorkspaceAction, UmbWorkspaceActionBase, UmbWorkspaceContext, UmbWorkspaceContextInterface };
59
+ type ActiveVariant = {
60
+ index: number;
61
+ culture: string | null;
62
+ segment: string | null;
63
+ };
64
+ /**
65
+ * @export
66
+ * @class UmbWorkspaceSplitViewManager
67
+ * @description - Class managing the split view state for a workspace context.
68
+ */
69
+ declare class UmbWorkspaceSplitViewManager {
70
+ #private;
71
+ readonly activeVariantsInfo: rxjs.Observable<ActiveVariant[]>;
72
+ constructor(host: UmbControllerHostElement);
73
+ private _routeBase?;
74
+ getWorkspaceRoute(): string | undefined;
75
+ setWorkspaceRoute(route: string | undefined): void;
76
+ setActiveVariant(index: number, culture: string | null, segment: string | null): void;
77
+ getActiveVariants(): ActiveVariant[];
78
+ removeActiveVariant(index: number): void;
79
+ activeVariantByIndex(index: number): rxjs.Observable<ActiveVariant>;
80
+ switchVariant(index: number, variantId: UmbVariantId): boolean;
81
+ openSplitView(newVariant: UmbVariantId): boolean;
82
+ closeSplitView(index: number): boolean;
83
+ }
84
+
85
+ export { ActiveVariant, UmbEntityWorkspaceContextInterface, UmbSaveWorkspaceAction, UmbWorkspaceAction, UmbWorkspaceActionBase, UmbWorkspaceContext, UmbWorkspaceContextInterface, UmbWorkspaceSplitViewManager };