@pdfme/ui 5.3.2-dev.4 → 5.3.2
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/index.es.js +59 -94
- package/dist/index.umd.js +9 -9
- package/package.json +1 -1
- package/src/components/Renderer.tsx +3 -9
package/package.json
CHANGED
@@ -94,26 +94,20 @@ const Renderer = (props: RendererProps) => {
|
|
94
94
|
const i18n = useContext(I18nContext) as (key: keyof Dict | string) => string;
|
95
95
|
const { token: theme } = antdTheme.useToken();
|
96
96
|
|
97
|
-
|
97
|
+
|
98
98
|
const ref = useRef<HTMLDivElement>(null);
|
99
99
|
const _cache = useRef<Map<any, any>>(new Map());
|
100
100
|
const plugin = Object.values(pluginsRegistry).find(
|
101
101
|
(plugin) => plugin?.propPanel.defaultSchema.type === schema.type
|
102
102
|
) as Plugin<any>;
|
103
103
|
|
104
|
+
const reRenderDependencies = useRerenderDependencies({ plugin, value, mode, scale, schema, options });
|
105
|
+
|
104
106
|
if (!plugin || !plugin.ui) {
|
105
107
|
console.error(`[@pdfme/ui] Renderer for type ${schema.type} not found.
|
106
108
|
Check this document: https://pdfme.com/docs/custom-schemas`);
|
107
109
|
return <></>;
|
108
110
|
}
|
109
|
-
const reRenderDependencies = useRerenderDependencies({
|
110
|
-
plugin,
|
111
|
-
value,
|
112
|
-
mode,
|
113
|
-
scale,
|
114
|
-
schema,
|
115
|
-
options,
|
116
|
-
});
|
117
111
|
|
118
112
|
useEffect(() => {
|
119
113
|
if (ref.current && schema.type) {
|