@pdfme/ui 5.3.8-dev.9 → 5.3.9

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.
Files changed (94) hide show
  1. package/__mocks__/lucide-react.js +19 -0
  2. package/dist/index.es.js +110013 -107261
  3. package/dist/index.umd.js +585 -556
  4. package/dist/types/__tests__/assets/helper.d.ts +3 -0
  5. package/dist/types/__tests__/components/Designer.test.d.ts +1 -0
  6. package/dist/types/__tests__/components/Preview.test.d.ts +1 -0
  7. package/dist/types/__tests__/helper.test.d.ts +1 -0
  8. package/dist/types/{Designer.d.ts → src/Designer.d.ts} +1 -1
  9. package/dist/types/{Form.d.ts → src/Form.d.ts} +1 -1
  10. package/dist/types/{Viewer.d.ts → src/Viewer.d.ts} +1 -1
  11. package/dist/types/{class.d.ts → src/class.d.ts} +2 -2
  12. package/dist/types/src/components/Designer/Canvas/Guides.d.ts +15 -0
  13. package/dist/types/{components → src/components}/Designer/Canvas/Moveable.d.ts +48 -1
  14. package/dist/types/src/components/Designer/Canvas/Selecto.d.ts +21 -0
  15. package/dist/types/{components → src/components}/Designer/LeftSidebar.d.ts +1 -1
  16. package/dist/types/{components → src/components}/Designer/PluginIcon.d.ts +1 -1
  17. package/dist/types/{components → src/components}/Designer/RightSidebar/DetailView/index.d.ts +1 -1
  18. package/dist/types/src/components/Designer/RightSidebar/ListView/SelectableSortableContainer.d.ts +4 -0
  19. package/dist/types/src/components/Designer/RightSidebar/ListView/index.d.ts +4 -0
  20. package/dist/types/{components → src/components}/Designer/RightSidebar/index.d.ts +1 -1
  21. package/dist/types/{components → src/components}/Paper.d.ts +1 -1
  22. package/dist/types/{components → src/components}/Preview.d.ts +2 -2
  23. package/dist/types/src/contexts.d.ts +10 -0
  24. package/dist/types/{helper.d.ts → src/helper.d.ts} +2 -4
  25. package/dist/types/src/index.d.ts +4 -0
  26. package/eslint.config.mjs +41 -0
  27. package/package.json +21 -15
  28. package/src/Designer.tsx +7 -7
  29. package/src/Form.tsx +4 -6
  30. package/src/Viewer.tsx +4 -4
  31. package/src/components/AppContextProvider.tsx +4 -4
  32. package/src/components/CtlBar.tsx +4 -2
  33. package/src/components/Designer/Canvas/Guides.tsx +18 -9
  34. package/src/components/Designer/Canvas/Mask.tsx +1 -1
  35. package/src/components/Designer/Canvas/Moveable.tsx +66 -7
  36. package/src/components/Designer/Canvas/Padding.tsx +10 -8
  37. package/src/components/Designer/Canvas/Selecto.tsx +21 -6
  38. package/src/components/Designer/Canvas/index.tsx +95 -28
  39. package/src/components/Designer/LeftSidebar.tsx +60 -52
  40. package/src/components/Designer/PluginIcon.tsx +22 -9
  41. package/src/components/Designer/RightSidebar/DetailView/AlignWidget.tsx +45 -45
  42. package/src/components/Designer/RightSidebar/DetailView/ButtonGroupWidget.tsx +3 -3
  43. package/src/components/Designer/RightSidebar/DetailView/index.tsx +62 -31
  44. package/src/components/Designer/RightSidebar/ListView/Item.tsx +5 -5
  45. package/src/components/Designer/RightSidebar/ListView/SelectableSortableContainer.tsx +60 -51
  46. package/src/components/Designer/RightSidebar/ListView/SelectableSortableItem.tsx +5 -6
  47. package/src/components/Designer/RightSidebar/ListView/index.tsx +15 -8
  48. package/src/components/Designer/RightSidebar/index.tsx +4 -4
  49. package/src/components/Designer/index.tsx +51 -29
  50. package/src/components/ErrorScreen.tsx +2 -2
  51. package/src/components/Paper.tsx +2 -2
  52. package/src/components/Preview.tsx +35 -24
  53. package/src/components/Renderer.tsx +42 -29
  54. package/src/components/Root.tsx +4 -6
  55. package/src/components/Spinner.tsx +1 -1
  56. package/src/components/StaticSchema.tsx +41 -23
  57. package/src/constants.ts +1 -1
  58. package/src/contexts.ts +2 -2
  59. package/src/helper.ts +37 -17
  60. package/src/hooks.ts +16 -8
  61. package/src/index.ts +3 -3
  62. package/src/types/react-guides.d.ts +22 -0
  63. package/src/types/react-selecto.d.ts +35 -0
  64. package/tsconfig.json +10 -12
  65. package/.eslintrc.cjs +0 -16
  66. package/dist/types/components/Designer/Canvas/Guides.d.ts +0 -9
  67. package/dist/types/components/Designer/Canvas/Selecto.d.ts +0 -10
  68. package/dist/types/components/Designer/RightSidebar/ListView/SelectableSortableContainer.d.ts +0 -4
  69. package/dist/types/components/Designer/RightSidebar/ListView/index.d.ts +0 -4
  70. package/dist/types/contexts.d.ts +0 -85
  71. package/dist/types/index.d.ts +0 -4
  72. /package/dist/types/{components → src/components}/AppContextProvider.d.ts +0 -0
  73. /package/dist/types/{components → src/components}/CtlBar.d.ts +0 -0
  74. /package/dist/types/{components → src/components}/Designer/Canvas/Mask.d.ts +0 -0
  75. /package/dist/types/{components → src/components}/Designer/Canvas/Padding.d.ts +0 -0
  76. /package/dist/types/{components → src/components}/Designer/Canvas/index.d.ts +0 -0
  77. /package/dist/types/{components → src/components}/Designer/RightSidebar/DetailView/AlignWidget.d.ts +0 -0
  78. /package/dist/types/{components → src/components}/Designer/RightSidebar/DetailView/ButtonGroupWidget.d.ts +0 -0
  79. /package/dist/types/{components → src/components}/Designer/RightSidebar/DetailView/WidgetRenderer.d.ts +0 -0
  80. /package/dist/types/{components → src/components}/Designer/RightSidebar/ListView/Item.d.ts +0 -0
  81. /package/dist/types/{components → src/components}/Designer/RightSidebar/ListView/SelectableSortableItem.d.ts +0 -0
  82. /package/dist/types/{components → src/components}/Designer/index.d.ts +0 -0
  83. /package/dist/types/{components → src/components}/ErrorScreen.d.ts +0 -0
  84. /package/dist/types/{components → src/components}/Renderer.d.ts +0 -0
  85. /package/dist/types/{components → src/components}/Root.d.ts +0 -0
  86. /package/dist/types/{components → src/components}/Spinner.d.ts +0 -0
  87. /package/dist/types/{components → src/components}/StaticSchema.d.ts +0 -0
  88. /package/dist/types/{components → src/components}/UnitPager.d.ts +0 -0
  89. /package/dist/types/{constants.d.ts → src/constants.d.ts} +0 -0
  90. /package/dist/types/{hooks.d.ts → src/hooks.d.ts} +0 -0
  91. /package/dist/types/{i18n.d.ts → src/i18n.d.ts} +0 -0
  92. /package/dist/types/{theme.d.ts → src/theme.d.ts} +0 -0
  93. /package/dist/types/{types.d.ts → src/types.d.ts} +0 -0
  94. /package/{vite.config.ts → vite.config.mts} +0 -0
package/src/helper.ts CHANGED
@@ -1,4 +1,4 @@
1
- import hotkeys from 'hotkeys-js';
1
+ import hotkeysJs from 'hotkeys-js';
2
2
  import { useContext } from 'react';
3
3
  import {
4
4
  cloneDeep,
@@ -14,7 +14,24 @@ import {
14
14
  } from '@pdfme/common';
15
15
  import { pdf2size } from '@pdfme/converter';
16
16
  import { DEFAULT_MAX_ZOOM, RULER_HEIGHT } from './constants.js';
17
- import { OptionsContext } from './contexts';
17
+ import { OptionsContext } from './contexts.js';
18
+
19
+ // Create a simple mock for hotkeys to avoid TypeScript errors
20
+ const hotkeys = function (
21
+ keys: string,
22
+ callback: (e: KeyboardEvent, handler: { shortcut: string }) => void,
23
+ ) {
24
+ return (hotkeysJs as any)(keys, callback);
25
+ };
26
+
27
+ // Add properties to the hotkeys function
28
+ (hotkeys as any).shift = false;
29
+ (hotkeys as any).unbind = function (keys: string) {
30
+ // Do nothing if hotkeysJs doesn't have unbind
31
+ if (typeof (hotkeysJs as any).unbind === 'function') {
32
+ (hotkeysJs as any).unbind(keys);
33
+ }
34
+ };
18
35
 
19
36
  export const uuid = () =>
20
37
  'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {
@@ -125,27 +142,27 @@ export const initShortCuts = (arg: {
125
142
  save: () => void;
126
143
  selectAll: () => void;
127
144
  }) => {
128
- hotkeys(keys.join(), (e, handler) => {
145
+ hotkeys(keys.join(), (e: KeyboardEvent, handler: { shortcut: string }) => {
129
146
  switch (handler.shortcut) {
130
147
  case up:
131
148
  case shiftUp:
132
149
  e.preventDefault();
133
- arg.move('up', hotkeys.shift);
150
+ arg.move('up', (hotkeys as any).shift);
134
151
  break;
135
152
  case down:
136
153
  case shiftDown:
137
154
  e.preventDefault();
138
- arg.move('down', hotkeys.shift);
155
+ arg.move('down', (hotkeys as any).shift);
139
156
  break;
140
157
  case left:
141
158
  case shiftLeft:
142
159
  e.preventDefault();
143
- arg.move('left', hotkeys.shift);
160
+ arg.move('left', (hotkeys as any).shift);
144
161
  break;
145
162
  case right:
146
163
  case shiftRight:
147
164
  e.preventDefault();
148
- arg.move('right', hotkeys.shift);
165
+ arg.move('right', (hotkeys as any).shift);
149
166
  break;
150
167
  case rmWin:
151
168
  case rmMac:
@@ -187,7 +204,7 @@ export const initShortCuts = (arg: {
187
204
  };
188
205
 
189
206
  export const destroyShortCuts = () => {
190
- hotkeys.unbind(keys.join());
207
+ (hotkeys as any).unbind(keys.join());
191
208
  };
192
209
 
193
210
  /**
@@ -242,8 +259,8 @@ export const arrayBufferToBase64 = (arrayBuffer: ArrayBuffer): string => {
242
259
  };
243
260
 
244
261
  const convertSchemasForUI = (template: Template): SchemaForUI[][] => {
245
- template.schemas.forEach((page) => {
246
- page.forEach((schema) => {
262
+ template.schemas.forEach((page: any[]) => {
263
+ page.forEach((schema: any) => {
247
264
  schema.id = uuid();
248
265
  schema.content = schema.content || '';
249
266
  });
@@ -265,7 +282,10 @@ export const template2SchemasList = async (_template: Template) => {
265
282
  }));
266
283
  } else {
267
284
  const b64BasePdf = await getB64BasePdf(basePdf);
268
- pageSizes = await pdf2size(b64toUint8Array(b64BasePdf));
285
+ // @ts-expect-error
286
+ const pdfArrayBuffer = b64toUint8Array(b64BasePdf) as ArrayBuffer;
287
+
288
+ pageSizes = await pdf2size(pdfArrayBuffer);
269
289
  }
270
290
 
271
291
  const ssl = schemasForUI.length;
@@ -300,7 +320,7 @@ export const schemasList2template = (schemasList: SchemaForUI[][], basePdf: Base
300
320
  // @ts-ignore
301
321
  delete schema.id;
302
322
  return schema;
303
- })
323
+ }),
304
324
  ),
305
325
  basePdf,
306
326
  });
@@ -314,7 +334,7 @@ export const getUniqueSchemaName = (arg: {
314
334
  const schemaNames = schema.map((s) => s.name).concat(stackUniqueSchemaNames);
315
335
  const tmp: { [originalName: string]: number } = schemaNames.reduce(
316
336
  (acc, cur) => Object.assign(acc, { originalName: cur, copiedNum: 0 }),
317
- {}
337
+ {},
318
338
  );
319
339
  const extractOriginalName = (name: string) => name.replace(/ copy$| copy [0-9]*$/, '');
320
340
  schemaNames
@@ -402,7 +422,7 @@ const handlePositionSizeChange = (
402
422
  key: string,
403
423
  value: any,
404
424
  basePdf: BasePdf,
405
- pageSize: Size
425
+ pageSize: Size,
406
426
  ) => {
407
427
  const padding = isBlankPdf(basePdf) ? basePdf.padding : [0, 0, 0, 0];
408
428
  const [pt, pr, pb, pl] = padding;
@@ -423,7 +443,7 @@ const handleTypeChange = (
423
443
  schema: SchemaForUI,
424
444
  key: string,
425
445
  value: any,
426
- pluginsRegistry: Plugins
446
+ pluginsRegistry: Plugins,
427
447
  ) => {
428
448
  if (key !== 'type') return;
429
449
  const keysToKeep = ['id', 'name', 'type', 'position', 'required'];
@@ -434,7 +454,7 @@ const handleTypeChange = (
434
454
  });
435
455
  // Apply attributes from new defaultSchema
436
456
  const propPanel = Object.values(pluginsRegistry).find(
437
- (plugin) => plugin?.propPanel.defaultSchema.type === value
457
+ (plugin) => plugin?.propPanel.defaultSchema.type === value,
438
458
  )?.propPanel;
439
459
  Object.keys(propPanel?.defaultSchema || {}).forEach((key) => {
440
460
  if (!schema.hasOwnProperty(key)) {
@@ -476,4 +496,4 @@ export const getMaxZoom = () => {
476
496
  const options = useContext(OptionsContext);
477
497
 
478
498
  return options.maxZoom ? (options.maxZoom as number) / 100 : DEFAULT_MAX_ZOOM;
479
- }
499
+ };
package/src/hooks.ts CHANGED
@@ -19,7 +19,7 @@ import {
19
19
  moveCommandToChangeSchemasArg,
20
20
  arrayBufferToBase64,
21
21
  initShortCuts,
22
- destroyShortCuts
22
+ destroyShortCuts,
23
23
  } from './helper.js';
24
24
  import { RULER_HEIGHT } from './constants.js';
25
25
 
@@ -60,17 +60,21 @@ export const useUIPreProcessor = ({ template, size, zoomLevel, maxZoom }: UIPreP
60
60
  paperHeight = height * ZOOM;
61
61
  _backgrounds = schemas.map(
62
62
  () =>
63
- 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAA1JREFUGFdj+P///38ACfsD/QVDRcoAAAAASUVORK5CYII='
63
+ 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAA1JREFUGFdj+P///38ACfsD/QVDRcoAAAAASUVORK5CYII=',
64
64
  );
65
65
  _pageSizes = schemas.map(() => ({ width, height }));
66
66
  } else {
67
67
  const _basePdf = await getB64BasePdf(basePdf);
68
68
 
69
+ const uint8Array = b64toUint8Array(_basePdf);
70
+ // Create a new ArrayBuffer copy to avoid detachment issues
71
+ const pdfArrayBuffer = new ArrayBuffer(uint8Array.byteLength);
72
+ new Uint8Array(pdfArrayBuffer).set(uint8Array);
73
+
69
74
  const [_pages, imgBuffers] = await Promise.all([
70
- pdf2size(b64toUint8Array(_basePdf)),
71
- pdf2img(b64toUint8Array(_basePdf), { scale: maxZoom }),
75
+ pdf2size(pdfArrayBuffer),
76
+ pdf2img(pdfArrayBuffer.slice(), { scale: maxZoom }),
72
77
  ]);
73
-
74
78
  _pageSizes = _pages;
75
79
  paperWidth = _pageSizes[0].width * ZOOM;
76
80
  paperHeight = _pageSizes[0].height * ZOOM;
@@ -79,7 +83,7 @@ export const useUIPreProcessor = ({ template, size, zoomLevel, maxZoom }: UIPreP
79
83
 
80
84
  const _scale = Math.min(
81
85
  getScale(size.width, paperWidth),
82
- getScale(size.height - RULER_HEIGHT, paperHeight)
86
+ getScale(size.height - RULER_HEIGHT, paperHeight),
83
87
  );
84
88
 
85
89
  return {
@@ -92,7 +96,9 @@ export const useUIPreProcessor = ({ template, size, zoomLevel, maxZoom }: UIPreP
92
96
  useEffect(() => {
93
97
  init({ template, size })
94
98
  .then(({ pageSizes, scale, backgrounds }) => {
95
- setPageSizes(pageSizes), setScale(scale), setBackgrounds(backgrounds);
99
+ setPageSizes(pageSizes);
100
+ setScale(scale);
101
+ setBackgrounds(backgrounds);
96
102
  })
97
103
  .catch((err: Error) => {
98
104
  setError(err);
@@ -107,7 +113,9 @@ export const useUIPreProcessor = ({ template, size, zoomLevel, maxZoom }: UIPreP
107
113
  error,
108
114
  refresh: (template: Template) =>
109
115
  init({ template, size }).then(({ pageSizes, scale, backgrounds }) => {
110
- setPageSizes(pageSizes), setScale(scale), setBackgrounds(backgrounds);
116
+ setPageSizes(pageSizes);
117
+ setScale(scale);
118
+ setBackgrounds(backgrounds);
111
119
  }),
112
120
  };
113
121
  };
package/src/index.ts CHANGED
@@ -1,5 +1,5 @@
1
- import Designer from './Designer';
2
- import Form from './Form';
3
- import Viewer from './Viewer';
1
+ import Designer from './Designer.js';
2
+ import Form from './Form.js';
3
+ import Viewer from './Viewer.js';
4
4
 
5
5
  export { Designer, Viewer, Form };
@@ -0,0 +1,22 @@
1
+ declare module '@scena/react-guides' {
2
+ import { Component, ForwardRefExoticComponent, RefAttributes } from 'react';
3
+
4
+ interface GuidesInterface {
5
+ getGuides(): number[];
6
+ scroll(pos: number): void;
7
+ scrollGuides(pos: number): void;
8
+ loadGuides(guides: number[]): void;
9
+ resize(): void;
10
+ }
11
+
12
+ interface GuidesProps {
13
+ zoom?: number;
14
+ style?: React.CSSProperties;
15
+ type?: 'horizontal' | 'vertical';
16
+ }
17
+
18
+ // Define the component as a ForwardRefExoticComponent to support refs
19
+ const GuidesComponent: ForwardRefExoticComponent<GuidesProps & RefAttributes<GuidesInterface>>;
20
+
21
+ export default GuidesComponent;
22
+ }
@@ -0,0 +1,35 @@
1
+ declare module 'react-selecto' {
2
+ import { ForwardRefExoticComponent, RefAttributes } from 'react';
3
+
4
+ interface OnDragStart {
5
+ inputEvent: MouseEvent;
6
+ stop: () => void;
7
+ isTrusted: boolean;
8
+ }
9
+
10
+ interface OnSelect {
11
+ selected: Element[];
12
+ added: Element[];
13
+ removed: Element[];
14
+ inputEvent: MouseEvent;
15
+ rect: DOMRect;
16
+ }
17
+
18
+ interface SelectoProps {
19
+ className?: string;
20
+ selectFromInside?: boolean;
21
+ selectByClick?: boolean;
22
+ preventDefault?: boolean;
23
+ hitRate?: number;
24
+ selectableTargets?: string[];
25
+ container?: HTMLElement | null;
26
+ continueSelect?: boolean;
27
+ onDragStart?: (e: OnDragStart) => void;
28
+ onSelect?: (e: OnSelect) => void;
29
+ }
30
+
31
+ // Define the component as a ForwardRefExoticComponent
32
+ const SelectoComponent: ForwardRefExoticComponent<SelectoProps & RefAttributes<any>>;
33
+
34
+ export default SelectoComponent;
35
+ }
package/tsconfig.json CHANGED
@@ -7,23 +7,21 @@
7
7
  "isolatedModules": true,
8
8
  "declaration": true,
9
9
  "declarationDir": "dist/types",
10
- "module": "ESNext",
10
+ "module": "NodeNext",
11
11
  "lib": [
12
12
  "ES2020",
13
13
  "DOM",
14
14
  "DOM.Iterable",
15
15
  "ESNext"
16
16
  ],
17
- "moduleResolution": "node16",
17
+ "moduleResolution": "nodenext",
18
18
  "allowSyntheticDefaultImports": true,
19
19
  "strict": true,
20
- "types": [
21
- "node",
22
- "jest",
23
- "@types/jest"
24
- ],
20
+ "types": ["jest"],
25
21
  "typeRoots": [
26
- "../node_modules/@types"
22
+ "../node_modules/@types",
23
+ "./node_modules/@types",
24
+ "../../node_modules/@types"
27
25
  ],
28
26
  "sourceMap": true,
29
27
  "baseUrl": ".",
@@ -39,12 +37,12 @@
39
37
  },
40
38
  "include": [
41
39
  "src/**/*.ts",
42
- "src/**/*.tsx"
40
+ "src/**/*.tsx",
41
+ "__tests__/**/*.ts",
42
+ "__tests__/**/*.tsx"
43
43
  ],
44
44
  "exclude": [
45
45
  "node_modules",
46
- "dist",
47
- "**/*.test.ts",
48
- "**/*.spec.ts",
46
+ "dist"
49
47
  ]
50
48
  }
package/.eslintrc.cjs DELETED
@@ -1,16 +0,0 @@
1
- module.exports = {
2
- extends: ['../../eslint.base.js', "plugin:react/recommended", 'plugin:react-hooks/recommended'],
3
- overrides: [
4
- {
5
- files: ['*.ts', '*.tsx'],
6
- parserOptions: {
7
- project: ['./tsconfig.json'],
8
- },
9
- },
10
- ],
11
- settings: {
12
- react: {
13
- version: 'detect',
14
- },
15
- },
16
- };
@@ -1,9 +0,0 @@
1
- import React, { Ref } from 'react';
2
- import Guides from '@scena/react-guides';
3
- import { Size } from '@pdfme/common';
4
- declare const _Guides: ({ paperSize, horizontalRef, verticalRef, }: {
5
- paperSize: Size;
6
- horizontalRef: Ref<Guides> | undefined;
7
- verticalRef: Ref<Guides> | undefined;
8
- }) => React.JSX.Element;
9
- export default _Guides;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { OnDragStart as _OnDragStart, OnSelect as _OnSelect } from 'react-selecto';
3
- type Props = {
4
- container: HTMLElement | null;
5
- continueSelect: boolean;
6
- onDragStart: (e: _OnDragStart) => void;
7
- onSelect: (e: _OnSelect) => void;
8
- };
9
- declare const _Selecto: (props: Props) => React.JSX.Element;
10
- export default _Selecto;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import type { SidebarProps } from '../../../../types';
3
- declare const SelectableSortableContainer: (props: Pick<SidebarProps, 'schemas' | 'onEdit' | 'onSortEnd' | 'hoveringSchemaId' | 'onChangeHoveringSchemaId'>) => React.JSX.Element;
4
- export default SelectableSortableContainer;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import type { SidebarProps } from '../../../../types';
3
- declare const ListView: (props: Pick<SidebarProps, 'schemas' | 'onSortEnd' | 'onEdit' | 'size' | 'hoveringSchemaId' | 'onChangeHoveringSchemaId' | 'changeSchemas'>) => React.JSX.Element;
4
- export default ListView;
@@ -1,85 +0,0 @@
1
- /// <reference types="react" />
2
- import { Plugins, UIOptions } from '@pdfme/common';
3
- export declare const I18nContext: import("react").Context<(key: "cancel" | "close" | "set" | "clear" | "field" | "fieldName" | "align" | "width" | "opacity" | "height" | "rotate" | "edit" | "required" | "editable" | "plsInputName" | "fieldMustUniq" | "notUniq" | "noKeyName" | "fieldsList" | "editField" | "type" | "errorOccurred" | "errorBulkUpdateFieldName" | "commitBulkUpdateFieldName" | "bulkUpdateFieldName" | "addPageAfter" | "removePage" | "removePageConfirm" | "validation.uniqueName" | "validation.hexColor" | "validation.dateTimeFormat" | "schemas.color" | "schemas.borderWidth" | "schemas.borderColor" | "schemas.backgroundColor" | "schemas.textColor" | "schemas.bgColor" | "schemas.horizontal" | "schemas.vertical" | "schemas.left" | "schemas.center" | "schemas.right" | "schemas.top" | "schemas.middle" | "schemas.bottom" | "schemas.padding" | "schemas.text.fontName" | "schemas.text.size" | "schemas.text.spacing" | "schemas.text.textAlign" | "schemas.text.verticalAlign" | "schemas.text.lineHeight" | "schemas.text.min" | "schemas.text.max" | "schemas.text.fit" | "schemas.text.dynamicFontSize" | "schemas.text.format" | "schemas.mvt.typingInstructions" | "schemas.mvt.sampleField" | "schemas.mvt.variablesSampleData" | "schemas.barcodes.barColor" | "schemas.barcodes.includetext" | "schemas.table.alternateBackgroundColor" | "schemas.table.tableStyle" | "schemas.table.showHead" | "schemas.table.headStyle" | "schemas.table.bodyStyle" | "schemas.table.columnStyle" | "schemas.date.format" | "schemas.date.locale" | "schemas.select.options" | "schemas.select.optionPlaceholder" | "schemas.radioGroup.groupName", dict?: {
4
- cancel: string;
5
- close: string;
6
- set: string;
7
- clear: string;
8
- field: string;
9
- fieldName: string;
10
- align: string;
11
- width: string;
12
- opacity: string;
13
- height: string;
14
- rotate: string;
15
- edit: string;
16
- required: string;
17
- editable: string;
18
- plsInputName: string;
19
- fieldMustUniq: string;
20
- notUniq: string;
21
- noKeyName: string;
22
- fieldsList: string;
23
- editField: string;
24
- type: string;
25
- errorOccurred: string;
26
- errorBulkUpdateFieldName: string;
27
- commitBulkUpdateFieldName: string;
28
- bulkUpdateFieldName: string;
29
- addPageAfter: string;
30
- removePage: string;
31
- removePageConfirm: string;
32
- 'validation.uniqueName': string;
33
- 'validation.hexColor': string;
34
- 'validation.dateTimeFormat': string;
35
- 'schemas.color': string;
36
- 'schemas.borderWidth': string;
37
- 'schemas.borderColor': string;
38
- 'schemas.backgroundColor': string;
39
- 'schemas.textColor': string;
40
- 'schemas.bgColor': string;
41
- 'schemas.horizontal': string;
42
- 'schemas.vertical': string;
43
- 'schemas.left': string;
44
- 'schemas.center': string;
45
- 'schemas.right': string;
46
- 'schemas.top': string;
47
- 'schemas.middle': string;
48
- 'schemas.bottom': string;
49
- 'schemas.padding': string;
50
- 'schemas.text.fontName': string;
51
- 'schemas.text.size': string;
52
- 'schemas.text.spacing': string;
53
- 'schemas.text.textAlign': string;
54
- 'schemas.text.verticalAlign': string;
55
- 'schemas.text.lineHeight': string;
56
- 'schemas.text.min': string;
57
- 'schemas.text.max': string;
58
- 'schemas.text.fit': string;
59
- 'schemas.text.dynamicFontSize': string;
60
- 'schemas.text.format': string;
61
- 'schemas.mvt.typingInstructions': string;
62
- 'schemas.mvt.sampleField': string;
63
- 'schemas.mvt.variablesSampleData': string;
64
- 'schemas.barcodes.barColor': string;
65
- 'schemas.barcodes.includetext': string;
66
- 'schemas.table.alternateBackgroundColor': string;
67
- 'schemas.table.tableStyle': string;
68
- 'schemas.table.showHead': string;
69
- 'schemas.table.headStyle': string;
70
- 'schemas.table.bodyStyle': string;
71
- 'schemas.table.columnStyle': string;
72
- 'schemas.date.format': string;
73
- 'schemas.date.locale': string;
74
- 'schemas.select.options': string;
75
- 'schemas.select.optionPlaceholder': string;
76
- 'schemas.radioGroup.groupName': string;
77
- } | undefined) => string>;
78
- export declare const FontContext: import("react").Context<Record<string, {
79
- data: string | ArrayBuffer | Uint8Array;
80
- fallback?: boolean | undefined;
81
- subset?: boolean | undefined;
82
- }>>;
83
- export declare const PluginsRegistry: import("react").Context<Plugins>;
84
- export declare const OptionsContext: import("react").Context<UIOptions>;
85
- export declare const CacheContext: import("react").Context<Map<any, any>>;
@@ -1,4 +0,0 @@
1
- import Designer from './Designer';
2
- import Form from './Form';
3
- import Viewer from './Viewer';
4
- export { Designer, Viewer, Form };
File without changes
File without changes
File without changes
File without changes
File without changes