likec4 1.24.1 → 1.25.1

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.mts CHANGED
@@ -15857,7 +15857,7 @@ declare class LikeC4DocumentSymbolProvider implements DocumentSymbolProvider {
15857
15857
  protected readonly parser: LikeC4ModelParser;
15858
15858
  protected readonly locator: LikeC4ModelLocator;
15859
15859
  constructor(services: LikeC4Services);
15860
- getSymbols({ parseResult: { value: { specifications, models, deployments, views, likec4lib }, }, }: LikeC4LangiumDocument): MaybePromise<DocumentSymbol[]>;
15860
+ getSymbols(doc: LangiumDocument, _params: DocumentSymbolParams, cancelToken?: CancellationToken): Promise<DocumentSymbol[]>;
15861
15861
  protected getLikec4LibSymbol(astLib: LikeC4Lib): DocumentSymbol[];
15862
15862
  protected getSpecSymbol(astSpec: SpecificationRule): DocumentSymbol[];
15863
15863
  protected getModelSymbol(astModel: Model): DocumentSymbol[];
@@ -15889,17 +15889,22 @@ declare class LikeC4SemanticTokenProvider extends AbstractSemanticTokenProvider
15889
15889
  private highlightView;
15890
15890
  }
15891
15891
 
15892
- interface ChangeViewRequestParams {
15893
- viewId: ViewId;
15894
- change: ViewChange;
15892
+ declare namespace ChangeView {
15893
+ type Params = {
15894
+ viewId: ViewId;
15895
+ change: ViewChange;
15896
+ };
15897
+ type Res = Location | null;
15898
+ const Req: RequestType<Params, Res, void>;
15899
+ type Req = typeof Req;
15895
15900
  }
15896
15901
 
15897
15902
  declare class LikeC4ModelChanges {
15898
15903
  private services;
15899
15904
  private locator;
15900
15905
  constructor(services: LikeC4Services);
15901
- applyChange(changeView: ChangeViewRequestParams): Promise<Location | null>;
15902
- protected convertToTextEdit({ viewId, change }: ChangeViewRequestParams): {
15906
+ applyChange(changeView: ChangeView.Params): Promise<Location | null>;
15907
+ protected convertToTextEdit({ viewId, change }: ChangeView.Params): {
15903
15908
  doc: ParsedLikeC4LangiumDocument;
15904
15909
  modifiedRange: Range$1;
15905
15910
  edits: TextEdit$1[];
package/dist/index.d.ts CHANGED
@@ -15857,7 +15857,7 @@ declare class LikeC4DocumentSymbolProvider implements DocumentSymbolProvider {
15857
15857
  protected readonly parser: LikeC4ModelParser;
15858
15858
  protected readonly locator: LikeC4ModelLocator;
15859
15859
  constructor(services: LikeC4Services);
15860
- getSymbols({ parseResult: { value: { specifications, models, deployments, views, likec4lib }, }, }: LikeC4LangiumDocument): MaybePromise<DocumentSymbol[]>;
15860
+ getSymbols(doc: LangiumDocument, _params: DocumentSymbolParams, cancelToken?: CancellationToken): Promise<DocumentSymbol[]>;
15861
15861
  protected getLikec4LibSymbol(astLib: LikeC4Lib): DocumentSymbol[];
15862
15862
  protected getSpecSymbol(astSpec: SpecificationRule): DocumentSymbol[];
15863
15863
  protected getModelSymbol(astModel: Model): DocumentSymbol[];
@@ -15889,17 +15889,22 @@ declare class LikeC4SemanticTokenProvider extends AbstractSemanticTokenProvider
15889
15889
  private highlightView;
15890
15890
  }
15891
15891
 
15892
- interface ChangeViewRequestParams {
15893
- viewId: ViewId;
15894
- change: ViewChange;
15892
+ declare namespace ChangeView {
15893
+ type Params = {
15894
+ viewId: ViewId;
15895
+ change: ViewChange;
15896
+ };
15897
+ type Res = Location | null;
15898
+ const Req: RequestType<Params, Res, void>;
15899
+ type Req = typeof Req;
15895
15900
  }
15896
15901
 
15897
15902
  declare class LikeC4ModelChanges {
15898
15903
  private services;
15899
15904
  private locator;
15900
15905
  constructor(services: LikeC4Services);
15901
- applyChange(changeView: ChangeViewRequestParams): Promise<Location | null>;
15902
- protected convertToTextEdit({ viewId, change }: ChangeViewRequestParams): {
15906
+ applyChange(changeView: ChangeView.Params): Promise<Location | null>;
15907
+ protected convertToTextEdit({ viewId, change }: ChangeView.Params): {
15903
15908
  doc: ParsedLikeC4LangiumDocument;
15904
15909
  modifiedRange: Range$1;
15905
15910
  edits: TextEdit$1[];
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import"@likec4/core";export{LikeC4DeploymentModel,LikeC4Model,LikeC4ViewModel}from"@likec4/core/model";export{L as LikeC4}from"./shared/likec4.D4N3up-s.mjs";import"node:fs";import"node:path";import"node:url";import"tty";import"node:util";import"util";import"path";import"os";import"crypto";import"net";import"url";import"fs";import"child_process";import"@likec4/core/types";import"events";import"buffer";import"@hpcc-js/wasm-graphviz";import"@likec4/core/compute-view";import"@likec4/core/utils";import"node:process";
1
+ import"@likec4/core";export{LikeC4DeploymentModel,LikeC4Model,LikeC4ViewModel}from"@likec4/core/model";export{L as LikeC4}from"./shared/likec4.8R_NjvKs.mjs";import"node:fs";import"node:path";import"node:url";import"tty";import"node:util";import"util";import"path";import"os";import"crypto";import"net";import"url";import"fs";import"child_process";import"@likec4/core/types";import"events";import"buffer";import"@hpcc-js/wasm-graphviz";import"@likec4/core/compute-view";import"@likec4/core/utils";import"node:process";
2
2
  import"boxen";import"node:child_process";import"node:events";import"node:fs/promises";import"node:stream/promises";import"node:os";import"fs/promises";