intl-tel-input 19.2.12 → 19.2.13
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/Gruntfile.js +2 -0
- package/README.md +3 -3
- package/build/js/data.js +1 -1
- package/build/js/data.min.js +1 -1
- package/build/js/intlTelInput-jquery.js +2 -2
- package/build/js/intlTelInput-jquery.min.js +2 -2
- package/build/js/intlTelInput.js +2 -2
- package/build/js/intlTelInput.min.js +2 -2
- package/composer.json +1 -1
- package/grunt/replace.js +21 -3
- package/package.json +2 -2
- package/react/build/IntlTelInput.cjs.js +1 -1
- package/react/build/IntlTelInput.cjs.js.map +1 -1
- package/react/build/IntlTelInput.esm.js +1 -1
- package/react/build/IntlTelInput.esm.js.map +1 -1
- package/react/demo/SimpleApp.js +5 -2
- package/react/demo/simple-bundle.js +7 -6
- package/react/demo/validation-bundle.js +1 -1
package/react/demo/SimpleApp.js
CHANGED
|
@@ -5,12 +5,15 @@ import React from 'react';
|
|
|
5
5
|
import { createRoot } from 'react-dom/client';
|
|
6
6
|
import IntlTelInput from '../build/IntlTelInput.cjs';
|
|
7
7
|
|
|
8
|
+
// defined in package.json scripts section
|
|
9
|
+
const version = process.env.VERSION;
|
|
10
|
+
|
|
8
11
|
const App = () => (
|
|
9
12
|
<IntlTelInput
|
|
10
13
|
initOptions={{
|
|
11
14
|
initialCountry: "us",
|
|
12
|
-
// use a CDN so it works on intl-tel-input.com
|
|
13
|
-
utilsScript:
|
|
15
|
+
// use a CDN so it also works on intl-tel-input.com
|
|
16
|
+
utilsScript: `https://cdn.jsdelivr.net/npm/intl-tel-input@${version}/build/js/utils.js`,
|
|
14
17
|
}}
|
|
15
18
|
/>
|
|
16
19
|
);
|
|
@@ -13947,11 +13947,11 @@ var require_react_dom_development = __commonJS({
|
|
|
13947
13947
|
}
|
|
13948
13948
|
function registerMutableSourceForHydration(root3, mutableSource) {
|
|
13949
13949
|
var getVersion = mutableSource._getVersion;
|
|
13950
|
-
var
|
|
13950
|
+
var version2 = getVersion(mutableSource._source);
|
|
13951
13951
|
if (root3.mutableSourceEagerHydrationData == null) {
|
|
13952
|
-
root3.mutableSourceEagerHydrationData = [mutableSource,
|
|
13952
|
+
root3.mutableSourceEagerHydrationData = [mutableSource, version2];
|
|
13953
13953
|
} else {
|
|
13954
|
-
root3.mutableSourceEagerHydrationData.push(mutableSource,
|
|
13954
|
+
root3.mutableSourceEagerHydrationData.push(mutableSource, version2);
|
|
13955
13955
|
}
|
|
13956
13956
|
}
|
|
13957
13957
|
var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher, ReactCurrentBatchConfig$2 = ReactSharedInternals.ReactCurrentBatchConfig;
|
|
@@ -24893,7 +24893,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24893
24893
|
R(s);
|
|
24894
24894
|
}
|
|
24895
24895
|
return null;
|
|
24896
|
-
}, k.defaults = G, k.version = "19.2.
|
|
24896
|
+
}, k.defaults = G, k.version = "19.2.13", function(s, n) {
|
|
24897
24897
|
var t = new Y(s, n);
|
|
24898
24898
|
return t._init(), s.setAttribute("data-intl-tel-input-id", t.id), window.intlTelInputGlobals.instances[t.id] = t, t;
|
|
24899
24899
|
};
|
|
@@ -24939,13 +24939,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24939
24939
|
var import_react = __toESM(require_react());
|
|
24940
24940
|
var import_client = __toESM(require_client());
|
|
24941
24941
|
var import_IntlTelInput = __toESM(require_IntlTelInput_cjs());
|
|
24942
|
+
var version = "19.2.13";
|
|
24942
24943
|
var App = () => /* @__PURE__ */ import_react.default.createElement(
|
|
24943
24944
|
import_IntlTelInput.default,
|
|
24944
24945
|
{
|
|
24945
24946
|
initOptions: {
|
|
24946
24947
|
initialCountry: "us",
|
|
24947
|
-
// use a CDN so it works on intl-tel-input.com
|
|
24948
|
-
utilsScript:
|
|
24948
|
+
// use a CDN so it also works on intl-tel-input.com
|
|
24949
|
+
utilsScript: `https://cdn.jsdelivr.net/npm/intl-tel-input@${version}/build/js/utils.js`
|
|
24949
24950
|
}
|
|
24950
24951
|
}
|
|
24951
24952
|
);
|
|
@@ -24893,7 +24893,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24893
24893
|
R(s);
|
|
24894
24894
|
}
|
|
24895
24895
|
return null;
|
|
24896
|
-
}, k.defaults = G, k.version = "19.2.
|
|
24896
|
+
}, k.defaults = G, k.version = "19.2.13", function(s, n) {
|
|
24897
24897
|
var t = new Y(s, n);
|
|
24898
24898
|
return t._init(), s.setAttribute("data-intl-tel-input-id", t.id), window.intlTelInputGlobals.instances[t.id] = t, t;
|
|
24899
24899
|
};
|