@elyx-code/project-logic-tree 0.0.6908 → 0.0.6910

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/dist/index.d.ts CHANGED
@@ -11901,6 +11901,7 @@ export declare enum BaseValueDescriptorIds {
11901
11901
  get logic(): ProjectState | null;
11902
11902
  get lastPublishedProjectState(): ProjectState | null;
11903
11903
  get branchHead(): IActiveBranchHeadResult | null;
11904
+ get branchHeadPromise(): Promise<IActiveBranchHeadResult | null> | null;
11904
11905
  get projectId(): EntityId;
11905
11906
  get sessionId(): string | null;
11906
11907
  get userAuthorId(): string;
@@ -11921,6 +11922,9 @@ export declare enum BaseValueDescriptorIds {
11921
11922
  get activeWorkspace(): IWorkspace;
11922
11923
  get branches(): IBranch[];
11923
11924
  get roles(): IRichProjectRoleDTO[];
11925
+ get READ_ONLY(): boolean;
11926
+ get isViewingNonHead(): boolean;
11927
+ get canEdit(): boolean;
11924
11928
  get PROJECT_NOTIFICATIONS_CHANNEL(): string;
11925
11929
  getAccessToken(): Promise<string | null>;
11926
11930
  getRefreshToken(): Promise<string | null>;
@@ -11944,6 +11948,15 @@ export declare enum BaseValueDescriptorIds {
11944
11948
  setValueTypePreference(valueOwnerId: EntityId, valueTypePreference: DynamicValueTypes.DefaultValue | DynamicValueTypes.Testing | null): void;
11945
11949
  implementFeature(featureId: string): Promise<PersistChangeSetEntityActionRequestPayload>;
11946
11950
  getProjectRoles(): Promise<IRichProjectRoleDTO[]>;
11951
+ getLastPublishedVersionLogic(options: {
11952
+ version: string;
11953
+ branchId: string;
11954
+ }): Promise<ProjectState | null>;
11955
+ initialLoads(options: {
11956
+ mockLogic?: ProjectState | undefined;
11957
+ }): Promise<void>;
11958
+ moveBranchHeadToVersion(versionId: string, actionName: string, overrideReadOnly?: boolean): Promise<IActiveBranchHeadResult | null>;
11959
+ loadInitialBranchHead(): Promise<IActiveBranchHeadResult | null>;
11947
11960
  }
11948
11961
 
11949
11962
  export declare type DefaultExtensionContext = DefaultEditorContext | DefaultProjectLogicContext | DefaultPublicationRunContext;
@@ -22118,6 +22131,7 @@ export declare enum BaseValueDescriptorIds {
22118
22131
  logic: ProjectState | null;
22119
22132
  lastPublishedProjectState: ProjectState | null;
22120
22133
  branchHead: IActiveBranchHeadResult | null;
22134
+ branchHeadPromise: Promise<IActiveBranchHeadResult | null> | null;
22121
22135
  projectId: EntityId;
22122
22136
  id: string;
22123
22137
  sessionId: string | null;
@@ -22138,6 +22152,7 @@ export declare enum BaseValueDescriptorIds {
22138
22152
  activeWorkspace: IWorkspace;
22139
22153
  branches: IBranch[];
22140
22154
  roles: IRichProjectRoleDTO[];
22155
+ READ_ONLY: boolean;
22141
22156
  onProjectHeadLoadedCallback: null | ((projectState: ProjectState) => void);
22142
22157
  onLogicLoadingCompleteCallback: null | ((chunk: any) => void);
22143
22158
  onProjectSetupErrorCallback: null | ((error: any) => void);
@@ -22147,6 +22162,8 @@ export declare enum BaseValueDescriptorIds {
22147
22162
  get undoableStackValueIndex(): number;
22148
22163
  set undoableStackValueIndex(value: number);
22149
22164
  get PROJECT_NOTIFICATIONS_CHANNEL(): string;
22165
+ get isViewingNonHead(): boolean;
22166
+ get canEdit(): boolean;
22150
22167
  getAccessToken(): Promise<string | null>;
22151
22168
  getRefreshToken(): Promise<string | null>;
22152
22169
  onProjectHeadLoaded(callback: (projectState: ProjectState) => void): void;
@@ -22163,11 +22180,19 @@ export declare enum BaseValueDescriptorIds {
22163
22180
  handleReconnectingWebsocket(): void;
22164
22181
  handleChunkedChangeSetMessage(message: PersistChangeSetEntityActionRequestPayload): PersistChangeSetEntityActionRequestPayload | null;
22165
22182
  handlePersistChangeSetMessage(message: PersistChangeSetEntityActionRequestPayload): void;
22183
+ getLastPublishedVersionLogic(options: {
22184
+ version: EntityVersion;
22185
+ branchId: string;
22186
+ }): Promise<ProjectState | null>;
22166
22187
  getLogic(options?: {
22167
22188
  mockLogic?: ProjectState;
22168
22189
  }): Promise<ProjectState | null>;
22190
+ initialLoads(options: {
22191
+ mockLogic?: ProjectState;
22192
+ }): Promise<void>;
22169
22193
  undo(): Promise<void>;
22170
22194
  redo(): Promise<void>;
22195
+ moveBranchHeadToVersion(versionId: EntityVersion, actionName: string, overrideReadOnly?: boolean): Promise<IActiveBranchHeadResult | null>;
22171
22196
  on: Events['on'];
22172
22197
  emit: Events['emit'];
22173
22198
  off: Events['off'];
@@ -22190,7 +22215,10 @@ export declare enum BaseValueDescriptorIds {
22190
22215
  requestExtension<T = any>(moduleId: string): IRegisteredExtension<T>;
22191
22216
  initRegistry(): Promise<ExtensionsRegistry<any>>;
22192
22217
  implementFeature(featureId: string): Promise<PersistChangeSetEntityActionRequestPayload>;
22193
- getProjectRoles(): Promise<IRichProjectRoleDTO[]>;
22218
+ loadInitialBranchHead(): Promise<IActiveBranchHeadResult | null>;
22219
+ getProjectRoles(options?: {
22220
+ accessToken?: string;
22221
+ }): Promise<IRichProjectRoleDTO[]>;
22194
22222
  }
22195
22223
 
22196
22224
  export declare interface IEditorContext extends ExtensionContextBase<ExtensionContextType.Editor>, Omit<IEditor, 'onLogicLoadingComplete' | 'onLogicLoadingCompleteCallback' | 'onProjectHeadLoaded' | 'onProjectHeadLoadedCallback' | 'onProjectSetupError' | 'onProjectSetupErrorCallback' | 'onRenderedCallback' | 'handleIncommingWebsocketMessage' | 'handleNotificationChannelsMessage' | 'handlePersistChangeSetMessage' | 'handleReconnectingWebsocket' | 'handleChunkedChangeSetMessage' | 'getLogic' | 'injectLocalImplementationOfSearchExecution' | 'setup' | 'destroy' | 'requestExtension' | 'socket' | 'events' | 'initRegistry' | 'extensionsRegistry' | 'on' | 'emit' | 'off' | 'contextType' | 'registerNonDefaultLocalImplementationsOfModules'> {