@pdfme/ui 5.3.11-dev.5 → 5.3.11-dev.6

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.
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Mode, UIRenderProps, SchemaForUI, BasePdf, Schema, Plugin, UIOptions } from '@pdfme/common';
2
+ import { UIRenderProps, SchemaForUI, BasePdf, Schema } from '@pdfme/common';
3
3
  type RendererProps = Omit<UIRenderProps<Schema>, 'schema' | 'rootElement' | 'options' | 'theme' | 'i18n' | '_cache'> & {
4
4
  basePdf: BasePdf;
5
5
  schema: SchemaForUI;
@@ -9,14 +9,5 @@ type RendererProps = Omit<UIRenderProps<Schema>, 'schema' | 'rootElement' | 'opt
9
9
  scale: number;
10
10
  selectable?: boolean;
11
11
  };
12
- type ReRenderCheckProps = {
13
- plugin: Plugin<any>;
14
- value: string;
15
- mode: Mode;
16
- scale: number;
17
- schema: SchemaForUI;
18
- options: UIOptions;
19
- };
20
- export declare const useRerenderDependencies: (arg: ReRenderCheckProps) => (string | number)[];
21
12
  declare const Renderer: (props: RendererProps) => React.JSX.Element;
22
13
  export default Renderer;
@@ -1,6 +1,5 @@
1
1
  import { Template, BasePdf, SchemaForUI, Size, Plugins } from '@pdfme/common';
2
2
  export declare const uuid: () => string;
3
- export declare const set: <T extends object>(obj: T, path: string | string[], value: any) => void;
4
3
  export declare const debounce: <T extends Function>(cb: T, wait?: number) => T;
5
4
  export declare const round: (number: number, precision: number) => number;
6
5
  export declare const flatten: <T>(arr: T[][]) => T[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdfme/ui",
3
- "version": "5.3.11-dev.5",
3
+ "version": "5.3.11-dev.6",
4
4
  "sideEffects": false,
5
5
  "author": "hand-dot",
6
6
  "license": "MIT",
@@ -37,7 +37,7 @@ type ReRenderCheckProps = {
37
37
  options: UIOptions;
38
38
  };
39
39
 
40
- export const useRerenderDependencies = (arg: ReRenderCheckProps) => {
40
+ const useRerenderDependencies = (arg: ReRenderCheckProps) => {
41
41
  const { plugin, value, mode, scale, schema, options } = arg;
42
42
  const _options = cloneDeep(options);
43
43
  if (_options.font) {
package/src/helper.ts CHANGED
@@ -40,7 +40,7 @@ export const uuid = () =>
40
40
  return v.toString(16);
41
41
  });
42
42
 
43
- export const set = <T extends object>(obj: T, path: string | string[], value: any) => {
43
+ const set = <T extends object>(obj: T, path: string | string[], value: any) => {
44
44
  path = Array.isArray(path) ? path : path.replace('[', '.').replace(']', '').split('.');
45
45
  let src: any = obj;
46
46
  path.forEach((key, index, array) => {