@nocobase/plugin-block-template
Version:
Create and manage block templates for reuse on pages.
17 lines (16 loc) • 887 B
TypeScript
/**
* 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 { ISchema } from '@nocobase/client';
import React from 'react';
export declare function convertTplBlock(tpl: any, virtual?: boolean, isRoot?: boolean, newRootId?: string, templateKey?: string, options?: any): any;
export declare const blockKeepProps: string[];
export declare function formSchemaPatch(currentSchema: ISchema, options?: any): void;
export declare function correctIdReferences(schemas: any): void;
export declare function convertTemplateToBlock(data: any, templateKey?: string, options?: any): any[];
export declare const TemplateBlockInitializer: () => React.JSX.Element;