@pdfme/ui 5.3.2 → 5.3.3-dev.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 +15 -5
- package/dist/index.umd.js +3 -3
- package/package.json +1 -1
- package/src/components/Renderer.tsx +9 -3
package/package.json
CHANGED
@@ -94,20 +94,26 @@ 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
|
-
|
106
104
|
if (!plugin || !plugin.ui) {
|
107
105
|
console.error(`[@pdfme/ui] Renderer for type ${schema.type} not found.
|
108
106
|
Check this document: https://pdfme.com/docs/custom-schemas`);
|
109
107
|
return <></>;
|
110
108
|
}
|
109
|
+
const reRenderDependencies = useRerenderDependencies({
|
110
|
+
plugin,
|
111
|
+
value,
|
112
|
+
mode,
|
113
|
+
scale,
|
114
|
+
schema,
|
115
|
+
options,
|
116
|
+
});
|
111
117
|
|
112
118
|
useEffect(() => {
|
113
119
|
if (ref.current && schema.type) {
|