mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-06-29 14:31:38 +02:00
46 lines
921 B
TypeScript
46 lines
921 B
TypeScript
import { Position } from 'vscode';
|
|
import { NavigationType } from '../dashboardWebView/models';
|
|
import { BlockFieldData } from './BlockFieldData';
|
|
import { ContentType } from '.';
|
|
|
|
export interface DashboardData {
|
|
type: NavigationType;
|
|
data?: ViewData;
|
|
}
|
|
|
|
export interface ViewData {
|
|
filePath?: string;
|
|
fieldName?: string;
|
|
position?: Position;
|
|
fileTitle?: string;
|
|
contentType?: ContentType;
|
|
selection?: string;
|
|
range?: SnippetRange;
|
|
snippetInfo?: SnippetInfo;
|
|
pageBundle?: boolean;
|
|
metadataInsert?: boolean;
|
|
blockData?: BlockFieldData;
|
|
parents?: string[];
|
|
multiple?: string[];
|
|
value?: string;
|
|
|
|
// File fields
|
|
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;
|
|
}
|