#424 - Implementation of the snippet wrapper

This commit is contained in:
Elio Struyf
2023-04-18 09:42:15 +02:00
parent d11c7e8509
commit 89344aef15
9 changed files with 178 additions and 47 deletions
+17
View File
@@ -13,6 +13,8 @@ export interface ViewData {
position?: Position;
fileTitle?: string;
selection?: string;
range?: SnippetRange;
snippetInfo?: SnippetInfo;
pageBundle?: boolean;
metadataInsert?: boolean;
blockData?: BlockFieldData;
@@ -24,3 +26,18 @@ export interface ViewData {
type: 'file' | 'media';
fileExtensions?: string[];
}
export interface SnippetRange {
start: Position;
end: Position;
}
export interface SnippetInfo {
id: string;
fields: SnippetInfoField[];
}
export interface SnippetInfoField {
name: string;
value: string;
}