UNPKG

@nocobase/plugin-block-template

Version:

Create and manage block templates for reuse on pages.

14 lines (13 loc) 678 B
/** * This file is part of the NocoBase (R) project. * Copyright (c) 2020-2024 NocoBase Co., Ltd. * Authors: NocoBase Team. * * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. * For more information, please refer to: https://www.nocobase.com/agreement. */ import { Database, Transaction } from '@nocobase/database'; import { Schema } from '@nocobase/utils'; export declare function getNewFullBlock(db: Database, transaction: Transaction, blockUid: string): Promise<any>; export declare function mergeSchema(template: any, schema: any, rootTemplate: any): any; export declare function cleanSchema(schema?: Schema, templateId?: string): void;