@bambamboole/pdf-ua-template-builder 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +100 -0
- package/dist/api/pdfUaApi.d.ts +10 -0
- package/dist/builder/TemplateBuilder.d.ts +29 -0
- package/dist/builder/blocks/BlockPalette.d.ts +5 -0
- package/dist/builder/blocks/blockChrome.d.ts +7 -0
- package/dist/builder/canvas/BlockCardPreview.d.ts +6 -0
- package/dist/builder/canvas/BuilderCanvas.d.ts +17 -0
- package/dist/builder/canvas/ColumnResizer.d.ts +9 -0
- package/dist/builder/canvas/PageSheet.d.ts +8 -0
- package/dist/builder/canvas/SortableBlock.d.ts +14 -0
- package/dist/builder/canvas/columns.d.ts +4 -0
- package/dist/builder/forms/InlineBlockForm.d.ts +9 -0
- package/dist/builder/lib/displayScale.d.ts +1 -0
- package/dist/builder/lib/pageSizes.d.ts +3 -0
- package/dist/builder/pdf/PdfPane.d.ts +8 -0
- package/dist/builder/schema/invoiceExample.d.ts +8 -0
- package/dist/builder/schema/schemaAdapter.d.ts +13 -0
- package/dist/builder/state/editorModel.d.ts +36 -0
- package/dist/builder/topbar/BuilderTopbar.d.ts +17 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +5272 -0
- package/dist/index.js.map +1 -0
- package/dist/style.css +1 -0
- package/dist/types/template.d.ts +33 -0
- package/package.json +89 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Manuel Christlieb
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# @bambamboole/pdf-ua-template-builder
|
|
2
|
+
|
|
3
|
+
An embeddable React template builder for the
|
|
4
|
+
[pdf-ua-api](https://github.com/bambamboole/pdf-ua-api) PDF/UA renderer.
|
|
5
|
+
|
|
6
|
+
- Hybrid block cards that expand inline for editing
|
|
7
|
+
- Page-format aware canvas (A3/A4/A5/A6/Letter/Legal/Tabloid + orientation)
|
|
8
|
+
- Repeated footer area and page-number controls
|
|
9
|
+
- Animated drag-and-drop with full keyboard accessibility (powered by dnd-kit)
|
|
10
|
+
- Lightweight neutral UI built around CSS custom properties
|
|
11
|
+
|
|
12
|
+
## Install
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm install @bambamboole/pdf-ua-template-builder
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
React 18 or 19 is required as a peer dependency:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npm install react react-dom
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Usage
|
|
25
|
+
|
|
26
|
+
```tsx
|
|
27
|
+
import { TemplateBuilder, createInvoiceExample } from "@bambamboole/pdf-ua-template-builder";
|
|
28
|
+
import "@bambamboole/pdf-ua-template-builder/style.css";
|
|
29
|
+
|
|
30
|
+
const example = createInvoiceExample();
|
|
31
|
+
|
|
32
|
+
export default function App() {
|
|
33
|
+
return (
|
|
34
|
+
<TemplateBuilder
|
|
35
|
+
apiUrl="http://localhost:8080"
|
|
36
|
+
initialTemplate={example.template}
|
|
37
|
+
initialData={example.data}
|
|
38
|
+
onChange={(template, data) => console.log("changed", template, data)}
|
|
39
|
+
onRendered={(pdf) => console.log("rendered pdf blob", pdf)}
|
|
40
|
+
/>
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Props
|
|
46
|
+
|
|
47
|
+
| Prop | Type | Description |
|
|
48
|
+
| ----------------- | ------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
|
|
49
|
+
| `apiUrl` | `string` | Base URL of a running `pdf-ua-api`. Defaults to `""` (relative URL / proxy). |
|
|
50
|
+
| `initialTemplate` | `Template` | Template loaded on first render. |
|
|
51
|
+
| `initialData` | `Record<string, unknown>` | Runtime data keyed by block id (table rows, dynamic key-value overrides). |
|
|
52
|
+
| `onChange` | `(template: Template, data: Record<string, unknown>) => void` | Fires on every edit. |
|
|
53
|
+
| `onRendered` | `(pdf: Blob) => void` | Fires after a successful render. |
|
|
54
|
+
| `className` | `string` | Class appended to the root element. |
|
|
55
|
+
|
|
56
|
+
## Backend
|
|
57
|
+
|
|
58
|
+
The component talks to a `pdf-ua-api` instance via:
|
|
59
|
+
|
|
60
|
+
- `GET {apiUrl}/schema` — for block metadata used by the palette and forms.
|
|
61
|
+
- `POST {apiUrl}/render/template` — to render the current template + data into a PDF blob.
|
|
62
|
+
|
|
63
|
+
See the [pdf-ua-api](https://github.com/bambamboole/pdf-ua-api) repository for
|
|
64
|
+
installation and configuration. The component does **not** render PDFs in the
|
|
65
|
+
browser — the backend owns the PDF/UA-accurate rendering pipeline.
|
|
66
|
+
|
|
67
|
+
## Helpers
|
|
68
|
+
|
|
69
|
+
The package also exports framework-agnostic utilities:
|
|
70
|
+
|
|
71
|
+
```ts
|
|
72
|
+
import {
|
|
73
|
+
pageSizeForFormat, // [widthMm, heightMm] for a PageFormat + Orientation
|
|
74
|
+
mmToPx, // mm → CSS px at 96 DPI
|
|
75
|
+
createEditorModel, // ingest a Template into an editor model
|
|
76
|
+
serializeTemplate, // emit a Template from an editor model
|
|
77
|
+
getPageSize, setPageSize,
|
|
78
|
+
getFooterRepeat, setFooterRepeat,
|
|
79
|
+
getPageNumbers, setPageNumbers,
|
|
80
|
+
} from "@bambamboole/pdf-ua-template-builder";
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Local development
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
npm install
|
|
87
|
+
npm run dev # runs the playground app on http://localhost:5174
|
|
88
|
+
npm run build # produces the npm package in dist/
|
|
89
|
+
npm run build:app # produces the playground build
|
|
90
|
+
npm run test # vitest
|
|
91
|
+
npm run typecheck # tsc --noEmit
|
|
92
|
+
npm run lint # oxlint
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
`npm run dev` proxies `/schema` and `/render/*` to a local `pdf-ua-api`
|
|
96
|
+
(default: `http://localhost:8080`, override with `PDF_UA_API_PROXY_URL`).
|
|
97
|
+
|
|
98
|
+
## License
|
|
99
|
+
|
|
100
|
+
MIT
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { RenderOptions, Template, TemplateData, TemplateSchemaResponse } from '../types/template';
|
|
2
|
+
interface RenderTemplateRequest {
|
|
3
|
+
template: Template;
|
|
4
|
+
data?: TemplateData;
|
|
5
|
+
options?: RenderOptions;
|
|
6
|
+
}
|
|
7
|
+
export declare function resolveDefaultApiUrl(configuredApiUrl?: string): string;
|
|
8
|
+
export declare function fetchTemplateSchema(baseUrl: string): Promise<TemplateSchemaResponse>;
|
|
9
|
+
export declare function renderTemplatePdf(baseUrl: string, request: RenderTemplateRequest): Promise<Blob>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { UniqueIdentifier } from '@dnd-kit/core';
|
|
2
|
+
import { Template } from '../types/generated/template';
|
|
3
|
+
import { TemplateData } from '../types/template';
|
|
4
|
+
import { EditorArea, EditorModel } from './state/editorModel';
|
|
5
|
+
export interface TemplateBuilderProps {
|
|
6
|
+
/** Base URL of a running pdf-ua-api instance. Defaults to "" (relative URLs / proxy). */
|
|
7
|
+
apiUrl?: string;
|
|
8
|
+
/** Template loaded into the editor on first render. */
|
|
9
|
+
initialTemplate?: Template;
|
|
10
|
+
/** Runtime data keyed by block id (table rows, dynamic key-value overrides). */
|
|
11
|
+
initialData?: TemplateData;
|
|
12
|
+
/** Fires whenever the user edits the template or its runtime data. */
|
|
13
|
+
onChange?: (template: Template, data: TemplateData) => void;
|
|
14
|
+
/** Fires after a successful render with the produced PDF blob. */
|
|
15
|
+
onRendered?: (pdf: Blob) => void;
|
|
16
|
+
/** Optional className appended to the root element. */
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
interface DragData {
|
|
20
|
+
source?: string;
|
|
21
|
+
type?: string;
|
|
22
|
+
rowUid?: string;
|
|
23
|
+
blockUid?: string;
|
|
24
|
+
area?: EditorArea;
|
|
25
|
+
}
|
|
26
|
+
export declare function TemplateBuilder({ apiUrl: initialApiUrlProp, initialTemplate, initialData, onChange, onRendered, className, }?: TemplateBuilderProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare function getRowIndex(model: EditorModel, overId: UniqueIdentifier | undefined, overData: DragData): number | null;
|
|
28
|
+
export declare function createNextBlockId(model: EditorModel, blockType: string): string;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Block, Orientation, PageFormat } from '../../types/generated/template';
|
|
2
|
+
import { TemplateSchemaResponse } from '../../types/template';
|
|
3
|
+
import { EditorModel, PageNumbersValue } from '../state/editorModel';
|
|
4
|
+
export interface BuilderCanvasProps {
|
|
5
|
+
schema: TemplateSchemaResponse;
|
|
6
|
+
model: EditorModel;
|
|
7
|
+
format: PageFormat;
|
|
8
|
+
orientation: Orientation;
|
|
9
|
+
footerRepeat: boolean;
|
|
10
|
+
pageNumbers: PageNumbersValue;
|
|
11
|
+
onChangeBlock: (blockUid: string, block: Block) => void;
|
|
12
|
+
onRemoveBlock: (blockUid: string) => void;
|
|
13
|
+
onSetRowWidths: (rowUid: string, widths: string[]) => void;
|
|
14
|
+
onToggleFooterRepeat: (repeat: boolean) => void;
|
|
15
|
+
onChangePageNumbers: (value: PageNumbersValue) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare function BuilderCanvas({ schema, model, format, orientation, footerRepeat, pageNumbers, onChangeBlock, onRemoveBlock, onSetRowWidths, onToggleFooterRepeat, onChangePageNumbers, }: BuilderCanvasProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
export interface ColumnResizerProps {
|
|
3
|
+
widths: readonly string[] | null;
|
|
4
|
+
count: number;
|
|
5
|
+
leftIndex: number;
|
|
6
|
+
containerRef: RefObject<HTMLElement | null>;
|
|
7
|
+
onResize: (widths: string[]) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function ColumnResizer({ widths, count, leftIndex, containerRef, onResize, }: ColumnResizerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Orientation, PageFormat } from '../../types/generated/template';
|
|
3
|
+
export interface PageSheetProps {
|
|
4
|
+
format: PageFormat;
|
|
5
|
+
orientation: Orientation;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare function PageSheet({ format, orientation, children }: PageSheetProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { EditorArea, EditorBlock } from '../state/editorModel';
|
|
3
|
+
import { Block } from '../../types/generated/template';
|
|
4
|
+
import { TemplateSchemaResponse } from '../../types/template';
|
|
5
|
+
export interface SortableBlockProps {
|
|
6
|
+
rowUid: string;
|
|
7
|
+
area: EditorArea;
|
|
8
|
+
editorBlock: EditorBlock;
|
|
9
|
+
schema: TemplateSchemaResponse;
|
|
10
|
+
onChangeBlock: (blockUid: string, block: Block) => void;
|
|
11
|
+
onRemoveBlock: (blockUid: string) => void;
|
|
12
|
+
style?: CSSProperties;
|
|
13
|
+
}
|
|
14
|
+
export declare function SortableBlock({ rowUid, area, editorBlock, schema, onChangeBlock, onRemoveBlock, style: layoutStyle, }: SortableBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function parseWidths(widths: readonly (number | string)[] | null | undefined, count: number): number[];
|
|
2
|
+
export declare function formatWidths(widths: readonly number[]): string[];
|
|
3
|
+
export declare function gridTemplateForWidths(widths: readonly string[] | null | undefined, count: number): string | null;
|
|
4
|
+
export declare function setBoundary(widths: readonly number[], leftIndex: number, leftPercent: number): number[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Block } from '../../types/generated/template';
|
|
2
|
+
import { JsonSchemaObject } from '../schema/schemaAdapter';
|
|
3
|
+
export interface InlineBlockFormProps {
|
|
4
|
+
block: Block;
|
|
5
|
+
fieldSchema: JsonSchemaObject;
|
|
6
|
+
configSchema?: JsonSchemaObject;
|
|
7
|
+
onChange: (block: Block) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function InlineBlockForm({ block, fieldSchema, configSchema, onChange, }: InlineBlockFormProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function mmToPx(mm: number): number;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Orientation, PageFormat } from '../../types/generated/template';
|
|
2
|
+
export declare const PAGE_SIZES_MM: Record<PageFormat, [number, number]>;
|
|
3
|
+
export declare function pageSizeForFormat(format: PageFormat | string | undefined, orientation?: Orientation | string | undefined): [number, number];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface PdfPaneProps {
|
|
2
|
+
pdfUrl: string | null;
|
|
3
|
+
error: string | null;
|
|
4
|
+
loading: boolean;
|
|
5
|
+
onRender?: () => void;
|
|
6
|
+
renderDisabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function PdfPane({ pdfUrl, error, loading, onRender, renderDisabled }: PdfPaneProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Template } from '../../types/generated/template';
|
|
2
|
+
export type TableRow = Record<string, string>;
|
|
3
|
+
export type InvoiceData = Record<string, TableRow[]>;
|
|
4
|
+
export interface InvoiceExample {
|
|
5
|
+
template: Template;
|
|
6
|
+
data: InvoiceData;
|
|
7
|
+
}
|
|
8
|
+
export declare function createInvoiceExample(): InvoiceExample;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Block } from '../../types/generated/template';
|
|
2
|
+
import { TemplateSchemaMetadata } from '../../types/template';
|
|
3
|
+
export type JsonSchemaValue = string | number | boolean | null | JsonSchemaObject | JsonSchemaValue[];
|
|
4
|
+
export interface JsonSchemaObject {
|
|
5
|
+
[key: string]: unknown;
|
|
6
|
+
}
|
|
7
|
+
export declare function getSchemaMetadata(schema: JsonSchemaObject): TemplateSchemaMetadata;
|
|
8
|
+
export declare function resolveRef(schema: JsonSchemaObject, ref: string): JsonSchemaObject;
|
|
9
|
+
export declare function getBlockTypes(schema: JsonSchemaObject): string[];
|
|
10
|
+
export declare function getBlockDefinition(schema: JsonSchemaObject, blockType: string): JsonSchemaObject | undefined;
|
|
11
|
+
export declare function getBlockFieldSchema(schema: JsonSchemaObject, blockType: string): JsonSchemaObject;
|
|
12
|
+
export declare function getBlockConfigSchema(schema: JsonSchemaObject, blockType: string): JsonSchemaObject | undefined;
|
|
13
|
+
export declare function createDefaultBlock(schema: JsonSchemaObject, blockType: string, id: string): Block;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Align, Block, CustomPageSize, Orientation, PageFormat, Template } from '../../types/generated/template';
|
|
2
|
+
export type EditorArea = "body" | "footer";
|
|
3
|
+
export type PageNumbersValue = "disabled" | Align;
|
|
4
|
+
export interface ResolvedPageSize {
|
|
5
|
+
format: PageFormat;
|
|
6
|
+
orientation: Orientation;
|
|
7
|
+
custom: CustomPageSize | null;
|
|
8
|
+
}
|
|
9
|
+
export interface EditorBlock {
|
|
10
|
+
uid: string;
|
|
11
|
+
block: Block;
|
|
12
|
+
}
|
|
13
|
+
export interface EditorRow {
|
|
14
|
+
uid: string;
|
|
15
|
+
blocks: EditorBlock[];
|
|
16
|
+
}
|
|
17
|
+
export interface EditorModel {
|
|
18
|
+
template: Omit<Template, "rows">;
|
|
19
|
+
rows: EditorRow[];
|
|
20
|
+
footerRows: EditorRow[];
|
|
21
|
+
}
|
|
22
|
+
export declare function createEditorModel(template: Template): EditorModel;
|
|
23
|
+
export declare function serializeTemplate(model: EditorModel): Template;
|
|
24
|
+
export declare function addBlockToNewRow(model: EditorModel, block: Block, area?: EditorArea): EditorModel;
|
|
25
|
+
export declare function addBlockToRow(model: EditorModel, rowUid: string, block: Block, index: number): EditorModel;
|
|
26
|
+
export declare function removeBlock(model: EditorModel, blockUid: string): EditorModel;
|
|
27
|
+
export declare function moveBlock(model: EditorModel, blockUid: string, rowUid: string | null, index: number, area?: EditorArea): EditorModel;
|
|
28
|
+
export declare function moveRow(model: EditorModel, rowUid: string, index: number): EditorModel;
|
|
29
|
+
export declare function updateBlock(model: EditorModel, blockUid: string, block: Block): EditorModel;
|
|
30
|
+
export declare function getPageSize(model: EditorModel): ResolvedPageSize;
|
|
31
|
+
export declare function setPageSize(model: EditorModel, format: PageFormat, orientation: Orientation): EditorModel;
|
|
32
|
+
export declare function setRowWidths(model: EditorModel, rowUid: string, widths: string[]): EditorModel;
|
|
33
|
+
export declare function getFooterRepeat(model: EditorModel): boolean;
|
|
34
|
+
export declare function setFooterRepeat(model: EditorModel, repeat: boolean): EditorModel;
|
|
35
|
+
export declare function getPageNumbers(model: EditorModel): PageNumbersValue;
|
|
36
|
+
export declare function setPageNumbers(model: EditorModel, value: PageNumbersValue): EditorModel;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Orientation, PageFormat } from '../../types/generated/template';
|
|
2
|
+
export interface BuilderTopbarProps {
|
|
3
|
+
format: PageFormat;
|
|
4
|
+
orientation: Orientation;
|
|
5
|
+
onChangeFormat: (format: PageFormat) => void;
|
|
6
|
+
onChangeOrientation: (orientation: Orientation) => void;
|
|
7
|
+
apiUrl: string;
|
|
8
|
+
onApiUrlChange: (value: string) => void;
|
|
9
|
+
onLoadSchema: () => void;
|
|
10
|
+
schemaLoading: boolean;
|
|
11
|
+
onLoadExample: () => void;
|
|
12
|
+
exampleDisabled: boolean;
|
|
13
|
+
onRender: () => void;
|
|
14
|
+
renderDisabled: boolean;
|
|
15
|
+
rendering: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare function BuilderTopbar({ format, orientation, onChangeFormat, onChangeOrientation, apiUrl, onApiUrlChange, onLoadSchema, schemaLoading, onLoadExample, exampleDisabled, onRender, renderDisabled, rendering, }: BuilderTopbarProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { TemplateBuilder } from './builder/TemplateBuilder';
|
|
2
|
+
export type { TemplateBuilderProps } from './builder/TemplateBuilder';
|
|
3
|
+
export { createInvoiceExample } from './builder/schema/invoiceExample';
|
|
4
|
+
export type { InvoiceExample, InvoiceData, TableRow } from './builder/schema/invoiceExample';
|
|
5
|
+
export { PAGE_SIZES_MM, pageSizeForFormat } from './builder/lib/pageSizes';
|
|
6
|
+
export { mmToPx } from './builder/lib/displayScale';
|
|
7
|
+
export { createEditorModel, serializeTemplate, getPageSize, setPageSize, getFooterRepeat, setFooterRepeat, getPageNumbers, setPageNumbers, } from './builder/state/editorModel';
|
|
8
|
+
export type { EditorArea, EditorBlock, EditorModel, EditorRow, PageNumbersValue, ResolvedPageSize, } from './builder/state/editorModel';
|
|
9
|
+
export { fetchTemplateSchema, renderTemplatePdf, resolveDefaultApiUrl } from './api/pdfUaApi';
|
|
10
|
+
export type { TemplateData, TemplateSchemaResponse } from './types/template';
|
|
11
|
+
export type { Align, Block, HeadingBlock, ImageBlock, KeyValueBlock, Orientation, PageConfig, PageFormat, PageSize, Row, SpacerBlock, TableBlock, Template, TextBlock, } from './types/generated/template';
|