@descope/web-components-ui 1.0.395 → 1.0.397

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.
@@ -2694,11 +2694,12 @@ const createExternalInputSlot = (slotName, targetSlotName) => {
2694
2694
  return slotEle;
2695
2695
  };
2696
2696
 
2697
- const createExternalInputEle = (targetSlotName, type, autocompleteType) => {
2697
+ const createExternalInputEle = (targetSlotName, type, autocompleteType, inputName) => {
2698
2698
  const inputEle = document.createElement('input');
2699
2699
 
2700
2700
  inputEle.setAttribute('slot', targetSlotName);
2701
2701
  inputEle.setAttribute('type', type);
2702
+ inputEle.setAttribute('name', inputName);
2702
2703
  inputEle.setAttribute('data-hidden-input', 'true');
2703
2704
  inputEle.setAttribute('autocomplete', autocompleteType);
2704
2705
 
@@ -2759,7 +2760,7 @@ const applyExternalInputStyles = (sourceInputEle, targetInputEle, labelType) =>
2759
2760
  };
2760
2761
 
2761
2762
  const externalInputMixin =
2762
- ({ inputType, autocompleteType, includeAttrs = [], noBlurDispatch = false }) =>
2763
+ ({ inputType, inputName, autocompleteType, includeAttrs = [], noBlurDispatch = false }) =>
2763
2764
  (superclass) =>
2764
2765
  class ExternalInputMixinClass extends superclass {
2765
2766
  #timers = [];
@@ -2790,7 +2791,8 @@ const externalInputMixin =
2790
2791
  this.externalInput = createExternalInputEle(
2791
2792
  'external-input',
2792
2793
  inputType,
2793
- this.getAutocompleteType()
2794
+ this.getAutocompleteType(),
2795
+ inputName
2794
2796
  );
2795
2797
 
2796
2798
  // apply original input's styles to external input
@@ -4182,6 +4184,7 @@ const PasswordClass = compose(
4182
4184
  draggableMixin,
4183
4185
  externalInputMixin({
4184
4186
  inputType: 'password',
4187
+ inputName: 'password',
4185
4188
  includeAttrs: ['disabled', 'readonly', 'pattern', 'type', 'autocomplete'],
4186
4189
  noBlurDispatch: true,
4187
4190
  }),
@@ -4416,6 +4419,7 @@ const EmailFieldClass = compose(
4416
4419
  draggableMixin,
4417
4420
  externalInputMixin({
4418
4421
  inputType: 'email',
4422
+ inputName: 'email',
4419
4423
  autocompleteType: 'username',
4420
4424
  includeAttrs: ['disabled', 'readonly', 'pattern'],
4421
4425
  }),
@@ -9093,6 +9097,7 @@ const customMixin$6 = (superclass) =>
9093
9097
 
9094
9098
  // move external input
9095
9099
  externalInput.setAttribute('slot', slotName);
9100
+ externalInput.setAttribute('name', this.getAttribute('name'));
9096
9101
  externalInput.setAttribute('data-hidden-input', 'true');
9097
9102
 
9098
9103
  this.appendChild(externalInput);