@pdfme/ui 6.1.12-dev.7 → 6.1.13
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/dist/class.d.ts +3 -3
- package/dist/components/Designer/RightSidebar/DetailView/index.d.ts +2 -1
- package/dist/components/Designer/RightSidebar/ListView/SelectableSortableContainer.d.ts +1 -1
- package/dist/components/Designer/RightSidebar/ListView/index.d.ts +1 -1
- package/dist/components/Designer/index.d.ts +1 -1
- package/dist/components/Preview.d.ts +1 -1
- package/dist/contexts.d.ts +2 -1
- package/dist/helper.d.ts +5 -5
- package/dist/index.js +1244 -2997
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/class.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare abstract class BaseUIClass {
|
|
|
12
12
|
private readonly setSize;
|
|
13
13
|
resizeObserver: ResizeObserver;
|
|
14
14
|
constructor(props: UIProps);
|
|
15
|
-
protected getLang(): "
|
|
15
|
+
protected getLang(): "ar" | "de" | "en" | "es" | "fr" | "it" | "ja" | "ko" | "pl" | "th" | "zh" | "zh-TW";
|
|
16
16
|
protected getFont(): Record<string, {
|
|
17
17
|
data: string | ArrayBuffer | Uint8Array<ArrayBuffer>;
|
|
18
18
|
fallback?: boolean | undefined;
|
|
@@ -26,13 +26,13 @@ export declare abstract class BaseUIClass {
|
|
|
26
26
|
[x: string]: unknown;
|
|
27
27
|
name: string;
|
|
28
28
|
type: string;
|
|
29
|
+
content?: string | undefined;
|
|
29
30
|
position: {
|
|
30
31
|
x: number;
|
|
31
32
|
y: number;
|
|
32
33
|
};
|
|
33
34
|
width: number;
|
|
34
35
|
height: number;
|
|
35
|
-
content?: string | undefined;
|
|
36
36
|
rotate?: number | undefined;
|
|
37
37
|
opacity?: number | undefined;
|
|
38
38
|
readOnly?: boolean | undefined;
|
|
@@ -52,13 +52,13 @@ export declare abstract class BaseUIClass {
|
|
|
52
52
|
[x: string]: unknown;
|
|
53
53
|
name: string;
|
|
54
54
|
type: string;
|
|
55
|
+
content?: string | undefined;
|
|
55
56
|
position: {
|
|
56
57
|
x: number;
|
|
57
58
|
y: number;
|
|
58
59
|
};
|
|
59
60
|
width: number;
|
|
60
61
|
height: number;
|
|
61
|
-
content?: string | undefined;
|
|
62
62
|
rotate?: number | undefined;
|
|
63
63
|
opacity?: number | undefined;
|
|
64
64
|
readOnly?: boolean | undefined;
|
|
@@ -4,5 +4,6 @@ import type { SidebarProps } from '../../../../types.js';
|
|
|
4
4
|
type DetailViewProps = Pick<SidebarProps, 'size' | 'schemas' | 'schemasList' | 'pageSize' | 'basePdf' | 'changeSchemas' | 'activeElements' | 'deselectSchema'> & {
|
|
5
5
|
activeSchema: SchemaForUI;
|
|
6
6
|
};
|
|
7
|
-
declare const
|
|
7
|
+
declare const DetailView: (props: DetailViewProps) => React.JSX.Element;
|
|
8
|
+
declare const _default: React.MemoExoticComponent<typeof DetailView>;
|
|
8
9
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { SidebarProps } from '../../../../types.js';
|
|
3
|
-
declare const SelectableSortableContainer: (props: Pick<SidebarProps,
|
|
3
|
+
declare const SelectableSortableContainer: (props: Pick<SidebarProps, 'schemas' | 'onEdit' | 'onSortEnd' | 'hoveringSchemaId' | 'onChangeHoveringSchemaId'>) => React.JSX.Element;
|
|
4
4
|
export default SelectableSortableContainer;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { SidebarProps } from '../../../../types.js';
|
|
3
|
-
declare const ListView: (props: Pick<SidebarProps,
|
|
3
|
+
declare const ListView: (props: Pick<SidebarProps, 'schemas' | 'onSortEnd' | 'onEdit' | 'hoveringSchemaId' | 'onChangeHoveringSchemaId' | 'changeSchemas'>) => React.JSX.Element;
|
|
4
4
|
export default ListView;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Template, DesignerProps, Size } from '@pdfme/common';
|
|
3
3
|
import { type DesignerSelectSchemas, type DesignerSelection } from '../../designerSelection.js';
|
|
4
|
-
declare const TemplateEditor: ({ template, size, onSaveTemplate, onChangeTemplate, onPageCursorChange, onChangeSelection, onRegisterSchemaSelectionHandler, }: Omit<DesignerProps,
|
|
4
|
+
declare const TemplateEditor: ({ template, size, onSaveTemplate, onChangeTemplate, onPageCursorChange, onChangeSelection, onRegisterSchemaSelectionHandler, }: Omit<DesignerProps, 'domContainer'> & {
|
|
5
5
|
size: Size;
|
|
6
6
|
onSaveTemplate: (t: Template) => void;
|
|
7
7
|
onChangeTemplate: (t: Template) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PreviewProps, Size } from '@pdfme/common';
|
|
3
|
-
declare const Preview: ({ template, inputs, size, onChangeInput, onPageChange, }: Omit<PreviewProps,
|
|
3
|
+
declare const Preview: ({ template, inputs, size, onChangeInput, onPageChange, }: Omit<PreviewProps, 'domContainer'> & {
|
|
4
4
|
onChangeInput?: (args: {
|
|
5
5
|
index: number;
|
|
6
6
|
value: string;
|
package/dist/contexts.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { i18n } from './i18n.js';
|
|
1
2
|
import { PluginRegistry, UIOptions } from '@pdfme/common';
|
|
2
|
-
export declare const I18nContext: import("react").Context<
|
|
3
|
+
export declare const I18nContext: import("react").Context<typeof i18n>;
|
|
3
4
|
export declare const FontContext: import("react").Context<Record<string, {
|
|
4
5
|
data: string | ArrayBuffer | Uint8Array<ArrayBuffer>;
|
|
5
6
|
fallback?: boolean | undefined;
|
package/dist/helper.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export declare const debounce: <T extends (...args: unknown[]) => unknown>(cb: T
|
|
|
4
4
|
export declare const round: (number: number, precision: number) => number;
|
|
5
5
|
export declare const flatten: <T>(arr: T[][]) => T[];
|
|
6
6
|
export declare const initShortCuts: (arg: {
|
|
7
|
-
move: (command:
|
|
7
|
+
move: (command: 'up' | 'down' | 'left' | 'right', isShift: boolean) => void;
|
|
8
8
|
remove: () => void;
|
|
9
9
|
esc: () => void;
|
|
10
10
|
copy: () => void;
|
|
@@ -19,14 +19,13 @@ export declare const arrayBufferToBase64: (arrayBuffer: ArrayBuffer) => string;
|
|
|
19
19
|
export declare const template2SchemasList: (_template: Template) => Promise<{
|
|
20
20
|
name: string;
|
|
21
21
|
type: string;
|
|
22
|
+
content?: string | undefined;
|
|
22
23
|
position: {
|
|
23
24
|
x: number;
|
|
24
25
|
y: number;
|
|
25
26
|
};
|
|
26
27
|
width: number;
|
|
27
28
|
height: number;
|
|
28
|
-
id: string;
|
|
29
|
-
content?: string | undefined;
|
|
30
29
|
rotate?: number | undefined;
|
|
31
30
|
opacity?: number | undefined;
|
|
32
31
|
readOnly?: boolean | undefined;
|
|
@@ -37,6 +36,7 @@ export declare const template2SchemasList: (_template: Template) => Promise<{
|
|
|
37
36
|
end?: number | undefined;
|
|
38
37
|
} | undefined;
|
|
39
38
|
__isSplit?: boolean | undefined;
|
|
39
|
+
id: string;
|
|
40
40
|
}[][]>;
|
|
41
41
|
export declare const schemasList2template: (schemasList: SchemaForUI[][], basePdf: BasePdf) => Template;
|
|
42
42
|
export declare const getUniqueSchemaName: (arg: {
|
|
@@ -45,7 +45,7 @@ export declare const getUniqueSchemaName: (arg: {
|
|
|
45
45
|
stackUniqueSchemaNames: string[];
|
|
46
46
|
}) => string;
|
|
47
47
|
export declare const moveCommandToChangeSchemasArg: (props: {
|
|
48
|
-
command:
|
|
48
|
+
command: 'up' | 'down' | 'left' | 'right';
|
|
49
49
|
activeSchemas: SchemaForUI[];
|
|
50
50
|
isShift: boolean;
|
|
51
51
|
pageSize: Size;
|
|
@@ -66,7 +66,7 @@ export type ZoomAnchor = {
|
|
|
66
66
|
export declare const MIN_ZOOM = 0.25;
|
|
67
67
|
export declare const clampZoomLevel: (zoomLevel: number, maxZoom: number, minZoom?: number) => number;
|
|
68
68
|
export declare const getFitZoomLevel: ({ mode, pageSize, container, baseScale, maxZoom, hasRulers, }: {
|
|
69
|
-
mode: Exclude<ZoomMode,
|
|
69
|
+
mode: Exclude<ZoomMode, 'manual'>;
|
|
70
70
|
pageSize: Size | undefined;
|
|
71
71
|
container: HTMLElement | null;
|
|
72
72
|
baseScale: number;
|