@descope/web-components-ui 1.0.374 → 1.0.376
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 +9 -2
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +12 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/2773.js +148 -0
- package/dist/umd/4978.js +1 -1
- package/dist/umd/63.js +1 -1
- package/dist/umd/9423.js +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/phone-fields-descope-phone-field-descope-phone-field-internal-index-js.js +1 -1
- package/dist/umd/phone-fields-descope-phone-field-index-js.js +1 -1
- package/package.json +2 -1
- package/src/components/phone-fields/descope-phone-field/descope-phone-field-internal/PhoneFieldInternal.js +4 -1
- package/src/mixins/externalInputHelpers.js +8 -2
- package/dist/umd/7164.js +0 -148
- /package/dist/umd/{7164.js.LICENSE.txt → 2773.js.LICENSE.txt} +0 -0
package/dist/cjs/index.cjs.js
CHANGED
@@ -5,6 +5,7 @@ var Color = require('color');
|
|
5
5
|
var DOMPurify = require('dompurify');
|
6
6
|
var MarkdownIt = require('markdown-it');
|
7
7
|
require('lodash.debounce');
|
8
|
+
require('libphonenumber-js/min');
|
8
9
|
var hljs = require('highlight.js');
|
9
10
|
|
10
11
|
const DESCOPE_PREFIX = 'descope';
|
@@ -2624,13 +2625,19 @@ const inputEventsDispatchingMixin = (superclass) =>
|
|
2624
2625
|
// since on load we can only sample the color of the placeholder,
|
2625
2626
|
// we need to temporarily populate the input in order to sample the value color
|
2626
2627
|
const getValueColor = (ele, computedStyle) => {
|
2628
|
+
// to support setting dynamic values, we have to store the existing value
|
2629
|
+
// and re-set it if we are returning from this hack
|
2630
|
+
const origVal = ele.value;
|
2631
|
+
|
2627
2632
|
// eslint-disable-next-line no-param-reassign
|
2628
2633
|
ele.value = '_';
|
2629
2634
|
|
2630
2635
|
const valueColor = computedStyle.getPropertyValue('color');
|
2631
2636
|
|
2632
|
-
|
2633
|
-
|
2637
|
+
if (ele.value === '_') {
|
2638
|
+
// eslint-disable-next-line no-param-reassign
|
2639
|
+
ele.value = origVal;
|
2640
|
+
}
|
2634
2641
|
|
2635
2642
|
return valueColor;
|
2636
2643
|
};
|