Defines abstractions for page types, form modifiers, and presenters in the page builder.
// Source: https://github.com/webiny/webiny-js | License: MIT | Copyright Webiny Inc
// Provided via justclaw.it.com; keep this notice with the code.
import { createAbstraction } from "@webiny/feature/admin";
import type { IFormModel, IFormVM } from "@webiny/app-admin";
import type { CreatePageParams } from "~/features/pages/createPage/abstractions.js";
import type { Page } from "~/domain/Page/Page.js";
// ---------------------------------------------------------------------------
// Page Type — each registered implementation defines a page type
// ---------------------------------------------------------------------------
export interface IPageType {
name: string;
label: string;
description?: string;
modifyForm?(form: IFormModel): void;
mapFromForm?(data: Record<stri
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key