@pdfme/ui 6.1.11-dev.2 → 6.1.11-dev.4

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.js CHANGED
@@ -204829,10 +204829,18 @@ var Sidebar = (props) => {
204829
204829
  //#region src/components/Renderer.tsx
204830
204830
  var useRenderKey = (arg) => {
204831
204831
  const { plugin, value, mode, scale, schema, options } = arg;
204832
- const _options = cloneDeep$1(options);
204833
- if (_options.font) Object.values(_options.font).forEach((fontObj) => {
204834
- fontObj.data = "...";
204835
- });
204832
+ const { font: fontOptions, ...optionsWithoutFont } = options;
204833
+ const _options = cloneDeep$1(optionsWithoutFont);
204834
+ if (fontOptions) {
204835
+ const fontForKey = {};
204836
+ Object.entries(fontOptions).forEach(([fontName, fontObj]) => {
204837
+ fontForKey[fontName] = {
204838
+ ...fontObj,
204839
+ data: "..."
204840
+ };
204841
+ });
204842
+ _options.font = fontForKey;
204843
+ }
204836
204844
  const optionStr = JSON.stringify(_options);
204837
204845
  return (0, import_react$9.useMemo)(() => {
204838
204846
  if (plugin?.uninterruptedEditMode && mode === "designer") return mode;