@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.
- package/dist/cjs/index.cjs.js +8 -3
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +8 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/4619.js +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/descope-email-field-index-js.js +4 -4
- package/dist/umd/descope-new-password-descope-new-password-internal-index-js.js +1 -1
- package/dist/umd/descope-new-password-index-js.js +1 -1
- package/dist/umd/descope-password-index-js.js +1 -1
- package/dist/umd/index.js +1 -1
- package/package.json +2 -2
- package/src/components/descope-email-field/EmailFieldClass.js +1 -0
- package/src/components/descope-new-password/NewPasswordClass.js +1 -0
- package/src/components/descope-password/PasswordClass.js +1 -0
- package/src/mixins/externalInputHelpers.js +2 -1
- package/src/mixins/externalInputMixin.js +3 -2
package/dist/index.esm.js
CHANGED
@@ -1474,11 +1474,12 @@ const createExternalInputSlot = (slotName, targetSlotName) => {
|
|
1474
1474
|
return slotEle;
|
1475
1475
|
};
|
1476
1476
|
|
1477
|
-
const createExternalInputEle = (targetSlotName, type, autocompleteType) => {
|
1477
|
+
const createExternalInputEle = (targetSlotName, type, autocompleteType, inputName) => {
|
1478
1478
|
const inputEle = document.createElement('input');
|
1479
1479
|
|
1480
1480
|
inputEle.setAttribute('slot', targetSlotName);
|
1481
1481
|
inputEle.setAttribute('type', type);
|
1482
|
+
inputEle.setAttribute('name', inputName);
|
1482
1483
|
inputEle.setAttribute('data-hidden-input', 'true');
|
1483
1484
|
inputEle.setAttribute('autocomplete', autocompleteType);
|
1484
1485
|
|
@@ -1539,7 +1540,7 @@ const applyExternalInputStyles = (sourceInputEle, targetInputEle, labelType) =>
|
|
1539
1540
|
};
|
1540
1541
|
|
1541
1542
|
const externalInputMixin =
|
1542
|
-
({ inputType, autocompleteType, includeAttrs = [], noBlurDispatch = false }) =>
|
1543
|
+
({ inputType, inputName, autocompleteType, includeAttrs = [], noBlurDispatch = false }) =>
|
1543
1544
|
(superclass) =>
|
1544
1545
|
class ExternalInputMixinClass extends superclass {
|
1545
1546
|
#timers = [];
|
@@ -1570,7 +1571,8 @@ const externalInputMixin =
|
|
1570
1571
|
this.externalInput = createExternalInputEle(
|
1571
1572
|
'external-input',
|
1572
1573
|
inputType,
|
1573
|
-
this.getAutocompleteType()
|
1574
|
+
this.getAutocompleteType(),
|
1575
|
+
inputName
|
1574
1576
|
);
|
1575
1577
|
|
1576
1578
|
// apply original input's styles to external input
|
@@ -5405,6 +5407,7 @@ const EmailFieldClass = compose(
|
|
5405
5407
|
draggableMixin,
|
5406
5408
|
externalInputMixin({
|
5407
5409
|
inputType: 'email',
|
5410
|
+
inputName: 'email',
|
5408
5411
|
autocompleteType: 'username',
|
5409
5412
|
includeAttrs: ['disabled', 'readonly', 'pattern'],
|
5410
5413
|
}),
|
@@ -6337,6 +6340,7 @@ const PasswordClass = compose(
|
|
6337
6340
|
draggableMixin,
|
6338
6341
|
externalInputMixin({
|
6339
6342
|
inputType: 'password',
|
6343
|
+
inputName: 'password',
|
6340
6344
|
includeAttrs: ['disabled', 'readonly', 'pattern', 'type', 'autocomplete'],
|
6341
6345
|
noBlurDispatch: true,
|
6342
6346
|
}),
|
@@ -9180,6 +9184,7 @@ const customMixin$6 = (superclass) =>
|
|
9180
9184
|
|
9181
9185
|
// move external input
|
9182
9186
|
externalInput.setAttribute('slot', slotName);
|
9187
|
+
externalInput.setAttribute('name', this.getAttribute('name'));
|
9183
9188
|
externalInput.setAttribute('data-hidden-input', 'true');
|
9184
9189
|
|
9185
9190
|
this.appendChild(externalInput);
|