@pdfme/ui 6.1.2-dev.20 → 6.1.2-dev.22

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
@@ -213910,7 +213910,7 @@ withProvider(FormCore, { Html: html });
213910
213910
  //#region ../../node_modules/form-render/es/index.js
213911
213911
  var es_default = withProvider(FormCore, widgets_exports);
213912
213912
  //#endregion
213913
- //#region ../schemas/dist/helper-CEme39Uo.js
213913
+ //#region ../schemas/dist/helper-Doen9Okh.js
213914
213914
  var substituteVariables = (text, variablesIn, valueMapper = (value) => value) => {
213915
213915
  if (!text) return "";
213916
213916
  let substitutedText = text;
@@ -213939,14 +213939,14 @@ var validateVariables = (value, schema) => {
213939
213939
  } catch {
213940
213940
  throw new SyntaxError(`[@pdfme/generator] invalid JSON string '${value}' for variables in field ${schema.name}`);
213941
213941
  }
213942
- for (const variable of schema.variables) if (!values[variable]) {
213942
+ for (const variable of schema.variables) if (!Object.prototype.hasOwnProperty.call(values, variable) || values[variable] === null || values[variable] === void 0) {
213943
213943
  if (schema.required) throw new Error(`[@pdfme/generator] variable ${variable} is missing for field ${schema.name}`);
213944
213944
  return false;
213945
213945
  }
213946
213946
  return true;
213947
213947
  };
213948
213948
  //#endregion
213949
- //#region ../schemas/dist/dynamicTemplate-C7MdZxPm.js
213949
+ //#region ../schemas/dist/dynamicTemplate-CRjx4Mjc.js
213950
213950
  var getDynamicLayoutForMultiVariableText = async (value, args) => {
213951
213951
  if (args.schema.type !== "multiVariableText") return { heights: [args.schema.height] };
213952
213952
  const schema = args.schema;