@dosgato/templating
Advanced tools
Comparing version 0.0.25 to 0.0.26
import { PageRecord, ComponentData, PageData } from './component.js'; | ||
import { LinkDefinition } from './links.js'; | ||
export declare type APITemplateType = 'page' | 'component' | 'data'; | ||
declare enum MessageType { | ||
export declare enum ValidationMessageType { | ||
ERROR = "error", | ||
@@ -9,4 +9,4 @@ WARNING = "warning", | ||
} | ||
interface Feedback { | ||
type: `${MessageType}`; | ||
export interface ValidationFeedback { | ||
type: `${ValidationMessageType}`; | ||
path?: string; | ||
@@ -70,3 +70,3 @@ message: string; | ||
*/ | ||
validate: (data: ComponentData, query: <T>(query: string, variables?: any) => Promise<T>, page: PageData, path: string) => Promise<Feedback[]>; | ||
validate: (data: ComponentData, query: <T>(query: string, variables?: any) => Promise<T>, page: PageData, path: string) => Promise<ValidationFeedback[]>; | ||
/** | ||
@@ -122,2 +122,1 @@ * Hard-coded properties that may be set on page templates to influence the rendering of | ||
}): string[]; | ||
export {}; |
import { stopwords } from './stopwords.js'; | ||
var MessageType; | ||
(function (MessageType) { | ||
MessageType["ERROR"] = "error"; | ||
MessageType["WARNING"] = "warning"; | ||
MessageType["SUCCESS"] = "success"; | ||
})(MessageType || (MessageType = {})); | ||
export var ValidationMessageType; | ||
(function (ValidationMessageType) { | ||
ValidationMessageType["ERROR"] = "error"; | ||
ValidationMessageType["WARNING"] = "warning"; | ||
ValidationMessageType["SUCCESS"] = "success"; | ||
})(ValidationMessageType || (ValidationMessageType = {})); | ||
/** | ||
@@ -9,0 +9,0 @@ * This function is used by API template definitions to help them identify links inside large blocks |
{ | ||
"name": "@dosgato/templating", | ||
"version": "0.0.25", | ||
"version": "0.0.26", | ||
"description": "A library to support building templates for dosgato CMS.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
46491
1070