@overmap-ai/core 1.0.36-misc-improvements.1 → 1.0.36-misc-improvements.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.
@@ -8851,10 +8851,10 @@ var __publicField = (obj, key, value) => {
8851
8851
  };
8852
8852
  const _StringField = class _StringField extends StringOrTextField {
8853
8853
  constructor(options) {
8854
- const { inputType = "text", ...rest } = options;
8854
+ const { inputType = "text", placeholder = "Enter a short description", ...rest } = options;
8855
8855
  const maxLength = options.maxLength ? Math.min(500, options.maxLength) : 500;
8856
8856
  const minLength = options.minLength ? Math.min(options.minLength, maxLength) : void 0;
8857
- super({ ...rest, maxLength, minLength, type: "string" });
8857
+ super({ ...rest, maxLength, minLength, placeholder, type: "string" });
8858
8858
  __publicField(this, "inputType");
8859
8859
  this.inputType = inputType;
8860
8860
  }
@@ -8912,9 +8912,10 @@ var __publicField = (obj, key, value) => {
8912
8912
  };
8913
8913
  const _TextField = class _TextField extends StringOrTextField {
8914
8914
  constructor(options) {
8915
+ const { placeholder = "Enter a description", ...rest } = options;
8915
8916
  const maxLength = options.maxLength ? Math.min(5e3, options.maxLength) : 5e3;
8916
8917
  const minLength = options.minLength ? Math.min(options.minLength, maxLength) : void 0;
8917
- super({ ...options, maxLength, minLength, type: "text" });
8918
+ super({ ...rest, maxLength, minLength, placeholder, type: "text" });
8918
8919
  }
8919
8920
  serialize() {
8920
8921
  return super._serialize();