Skip to content

Commit

Permalink
Merge pull request #14 from acrolinx/DEV-29518
Browse files Browse the repository at this point in the history
Dev 29518
  • Loading branch information
pcdeshmukh authored May 10, 2022
2 parents b7125dc + 378cb2b commit abaa58c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@acrolinx/sidebar-interface",
"description": "The interface of the Acrolinx Sidebar",
"version": "15.1.0",
"version": "15.2.0",
"license": "Apache-2.0",
"author": "Acrolinx",
"url": "https://www.acrolinx.com",
Expand Down
23 changes: 22 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,12 @@ export interface ExternalContent {
entities?: ExternalContentField[];
ditaReferences?: ExternalContentField[];
xincludeReferences? : ExternalContentField[];
references?: AugmentedExternalContent[];
}

export interface AugmentedExternalContent {
type: string,
value: ExternalContentField[],
}

/**
Expand Down Expand Up @@ -393,8 +399,9 @@ export interface CheckedDocumentPart {
* A range are two numbers: A start offset and an end offset.
*/
range: [number, number];
}

externalContent?: ExternalContentMatch[];
}

export type InvalidDocumentPart = CheckedDocumentPart;
export type CheckedDocumentRange = CheckedDocumentPart;
Expand All @@ -417,8 +424,22 @@ export interface Match {
* Available since the 5.2.1 server.
*/
locations?: MatchLocation[];

/**
* Available since the 2022.05 server.
*/
externalContentMatches?: ExternalContentMatch[];
}

export interface ExternalContentMatch {
id: string;
type: string;
originalBegin: number;
originalEnd: number;
externalContentMatches?: ExternalContentMatch[]
}


export interface MatchLocation {
type: string;
title?: string;
Expand Down

0 comments on commit abaa58c

Please sign in to comment.