@maz-ui/utils 4.0.0-beta.0
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/LICENSE +21 -0
- package/dist/formatters/camelCase.js +6 -0
- package/dist/formatters/capitalize.js +6 -0
- package/dist/formatters/formatCurrency.js +34 -0
- package/dist/formatters/formatDate.js +21 -0
- package/dist/formatters/formatNumber.js +23 -0
- package/dist/formatters/formatPhoneNumber.js +10 -0
- package/dist/formatters/index.js +14 -0
- package/dist/formatters/pascalCase.js +8 -0
- package/dist/index.js +54 -0
- package/dist/types/formatters/camelCase.d.ts +2 -0
- package/dist/types/formatters/camelCase.d.ts.map +1 -0
- package/dist/types/formatters/capitalize.d.ts +2 -0
- package/dist/types/formatters/capitalize.d.ts.map +1 -0
- package/dist/types/formatters/formatCurrency.d.ts +5 -0
- package/dist/types/formatters/formatCurrency.d.ts.map +1 -0
- package/dist/types/formatters/formatDate.d.ts +2 -0
- package/dist/types/formatters/formatDate.d.ts.map +1 -0
- package/dist/types/formatters/formatNumber.d.ts +2 -0
- package/dist/types/formatters/formatNumber.d.ts.map +1 -0
- package/dist/types/formatters/formatPhoneNumber.d.ts +2 -0
- package/dist/types/formatters/formatPhoneNumber.d.ts.map +1 -0
- package/dist/types/formatters/index.d.ts +7 -0
- package/dist/types/formatters/index.d.ts.map +1 -0
- package/dist/types/formatters/pascalCase.d.ts +2 -0
- package/dist/types/formatters/pascalCase.d.ts.map +1 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/ts-helpers/DeepKeyOf.d.ts +4 -0
- package/dist/types/ts-helpers/DeepKeyOf.d.ts.map +1 -0
- package/dist/types/ts-helpers/DeepPartial.d.ts +4 -0
- package/dist/types/ts-helpers/DeepPartial.d.ts.map +1 -0
- package/dist/types/ts-helpers/FlattenObjectKeys.d.ts +4 -0
- package/dist/types/ts-helpers/FlattenObjectKeys.d.ts.map +1 -0
- package/dist/types/ts-helpers/InferMaybeRef.d.ts +3 -0
- package/dist/types/ts-helpers/InferMaybeRef.d.ts.map +1 -0
- package/dist/types/ts-helpers/index.d.ts +5 -0
- package/dist/types/ts-helpers/index.d.ts.map +1 -0
- package/dist/types/utils/TextareaAutogrow.d.ts +10 -0
- package/dist/types/utils/TextareaAutogrow.d.ts.map +1 -0
- package/dist/types/utils/checkAvailability.d.ts +8 -0
- package/dist/types/utils/checkAvailability.d.ts.map +1 -0
- package/dist/types/utils/countryCodeToUnicodeFlag.d.ts +2 -0
- package/dist/types/utils/countryCodeToUnicodeFlag.d.ts.map +1 -0
- package/dist/types/utils/debounce.d.ts +2 -0
- package/dist/types/utils/debounce.d.ts.map +1 -0
- package/dist/types/utils/debounceCallback.d.ts +2 -0
- package/dist/types/utils/debounceCallback.d.ts.map +1 -0
- package/dist/types/utils/debounceId.d.ts +7 -0
- package/dist/types/utils/debounceId.d.ts.map +1 -0
- package/dist/types/utils/fetchLocaleIp.d.ts +40 -0
- package/dist/types/utils/fetchLocaleIp.d.ts.map +1 -0
- package/dist/types/utils/getBrowserLocale.d.ts +2 -0
- package/dist/types/utils/getBrowserLocale.d.ts.map +1 -0
- package/dist/types/utils/getCountryFlagUrl.d.ts +9 -0
- package/dist/types/utils/getCountryFlagUrl.d.ts.map +1 -0
- package/dist/types/utils/idleTimeout.d.ts +57 -0
- package/dist/types/utils/idleTimeout.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +21 -0
- package/dist/types/utils/index.d.ts.map +1 -0
- package/dist/types/utils/isClient.d.ts +2 -0
- package/dist/types/utils/isClient.d.ts.map +1 -0
- package/dist/types/utils/isEqual.d.ts +2 -0
- package/dist/types/utils/isEqual.d.ts.map +1 -0
- package/dist/types/utils/isServer.d.ts +2 -0
- package/dist/types/utils/isServer.d.ts.map +1 -0
- package/dist/types/utils/isStandaloneMode.d.ts +2 -0
- package/dist/types/utils/isStandaloneMode.d.ts.map +1 -0
- package/dist/types/utils/normalizeString.d.ts +48 -0
- package/dist/types/utils/normalizeString.d.ts.map +1 -0
- package/dist/types/utils/scriptLoader.d.ts +20 -0
- package/dist/types/utils/scriptLoader.d.ts.map +1 -0
- package/dist/types/utils/sleep.d.ts +2 -0
- package/dist/types/utils/sleep.d.ts.map +1 -0
- package/dist/types/utils/swipeHandler.d.ts +103 -0
- package/dist/types/utils/swipeHandler.d.ts.map +1 -0
- package/dist/types/utils/throttle.d.ts +2 -0
- package/dist/types/utils/throttle.d.ts.map +1 -0
- package/dist/types/utils/throttleId.d.ts +7 -0
- package/dist/types/utils/throttleId.d.ts.map +1 -0
- package/dist/types/utils/truthyFilter.d.ts +3 -0
- package/dist/types/utils/truthyFilter.d.ts.map +1 -0
- package/dist/types/utils/userVisibility.d.ts +40 -0
- package/dist/types/utils/userVisibility.d.ts.map +1 -0
- package/dist/utils/TextareaAutogrow.js +25 -0
- package/dist/utils/checkAvailability.js +16 -0
- package/dist/utils/countryCodeToUnicodeFlag.js +10 -0
- package/dist/utils/debounce.js +11 -0
- package/dist/utils/debounceCallback.js +7 -0
- package/dist/utils/debounceId.js +21 -0
- package/dist/utils/fetchLocaleIp.js +12 -0
- package/dist/utils/getBrowserLocale.js +11 -0
- package/dist/utils/getCountryFlagUrl.js +9 -0
- package/dist/utils/idleTimeout.js +111 -0
- package/dist/utils/index.js +42 -0
- package/dist/utils/isClient.js +6 -0
- package/dist/utils/isEqual.js +26 -0
- package/dist/utils/isServer.js +6 -0
- package/dist/utils/isStandaloneMode.js +10 -0
- package/dist/utils/normalizeString.js +69 -0
- package/dist/utils/scriptLoader.js +43 -0
- package/dist/utils/sleep.js +6 -0
- package/dist/utils/swipeHandler.js +80 -0
- package/dist/utils/throttle.js +11 -0
- package/dist/utils/throttleId.js +19 -0
- package/dist/utils/truthyFilter.js +6 -0
- package/dist/utils/userVisibility.js +50 -0
- package/package.json +88 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 LouisMazel
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const u = {
|
|
2
|
+
style: "currency",
|
|
3
|
+
minimumFractionDigits: 2,
|
|
4
|
+
round: !1
|
|
5
|
+
};
|
|
6
|
+
function o(t, r, e) {
|
|
7
|
+
let i = +t;
|
|
8
|
+
return e.round && (i = Math.floor(i), e.minimumFractionDigits = 0), new Intl.NumberFormat(r, e).format(i);
|
|
9
|
+
}
|
|
10
|
+
function c(t, r, e) {
|
|
11
|
+
if (t === void 0)
|
|
12
|
+
throw new TypeError("[maz-ui](FilterCurrency) The `number` attribute is required.");
|
|
13
|
+
if (r === void 0)
|
|
14
|
+
throw new TypeError("[maz-ui](FilterCurrency) The `locale` attribute is required.");
|
|
15
|
+
if (typeof r != "string")
|
|
16
|
+
throw new TypeError("[maz-ui](FilterCurrency) The `locale` attribute must be a string.");
|
|
17
|
+
if (e.currency === void 0)
|
|
18
|
+
throw new TypeError("[maz-ui](FilterCurrency) The `options.currency` attribute is required.");
|
|
19
|
+
}
|
|
20
|
+
function a(t, r, e) {
|
|
21
|
+
const i = {
|
|
22
|
+
...u,
|
|
23
|
+
...e
|
|
24
|
+
};
|
|
25
|
+
c(t, r, i);
|
|
26
|
+
try {
|
|
27
|
+
return o(t, r, i);
|
|
28
|
+
} catch (n) {
|
|
29
|
+
throw new Error(`[maz-ui](FilterCurrency) ${n}`);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
a as formatCurrency
|
|
34
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const a = {
|
|
2
|
+
month: "short",
|
|
3
|
+
day: "numeric",
|
|
4
|
+
year: "numeric"
|
|
5
|
+
};
|
|
6
|
+
function n(t, r, o) {
|
|
7
|
+
if (r === void 0)
|
|
8
|
+
throw new TypeError("[maz-ui](FilterDate) The `locale` attribute is required.");
|
|
9
|
+
if (typeof r != "string")
|
|
10
|
+
throw new TypeError("[maz-ui](FilterDate) The `locale` attribute must be a string.");
|
|
11
|
+
const i = o ?? a;
|
|
12
|
+
try {
|
|
13
|
+
const e = t instanceof Date ? t : new Date(t);
|
|
14
|
+
return new Intl.DateTimeFormat(r, i).format(e);
|
|
15
|
+
} catch (e) {
|
|
16
|
+
throw new Error(`[maz-ui](FilterDate) ${e}`);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
n as formatDate
|
|
21
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const u = {
|
|
2
|
+
minimumFractionDigits: 2
|
|
3
|
+
};
|
|
4
|
+
function m(t, r, e) {
|
|
5
|
+
const i = {
|
|
6
|
+
...u,
|
|
7
|
+
...e
|
|
8
|
+
};
|
|
9
|
+
if (t === void 0)
|
|
10
|
+
throw new TypeError("[maz-ui](FilterNumber) The `number` attribute is required.");
|
|
11
|
+
if (r === void 0)
|
|
12
|
+
throw new TypeError("[maz-ui](FilterNumber) The `locale` attribute is required.");
|
|
13
|
+
if (typeof r != "string")
|
|
14
|
+
throw new TypeError("[maz-ui](FilterNumber) The `locale` attribute must be a string.");
|
|
15
|
+
try {
|
|
16
|
+
return new Intl.NumberFormat(r, i).format(Number(t));
|
|
17
|
+
} catch (o) {
|
|
18
|
+
throw new Error(`[maz-ui](FilterNumber) ${o}`);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
m as formatNumber
|
|
23
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { parsePhoneNumberFromString as o } from "libphonenumber-js";
|
|
2
|
+
function t(r) {
|
|
3
|
+
if (!r)
|
|
4
|
+
throw new TypeError("[maz-ui](formatPhoneNumber) The `phoneNumber` argument is required.");
|
|
5
|
+
const e = o(r);
|
|
6
|
+
return e ? e.formatInternational() : r;
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
t as formatPhoneNumber
|
|
10
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { camelCase as e } from "./camelCase.js";
|
|
2
|
+
import { capitalize as m } from "./capitalize.js";
|
|
3
|
+
import { formatCurrency as f } from "./formatCurrency.js";
|
|
4
|
+
import { formatDate as x } from "./formatDate.js";
|
|
5
|
+
import { formatNumber as l } from "./formatNumber.js";
|
|
6
|
+
import { pascalCase as C } from "./pascalCase.js";
|
|
7
|
+
export {
|
|
8
|
+
e as camelCase,
|
|
9
|
+
m as capitalize,
|
|
10
|
+
f as formatCurrency,
|
|
11
|
+
x as formatDate,
|
|
12
|
+
l as formatNumber,
|
|
13
|
+
C as pascalCase
|
|
14
|
+
};
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { camelCase as e } from "./formatters/camelCase.js";
|
|
2
|
+
import { capitalize as m } from "./formatters/capitalize.js";
|
|
3
|
+
import { formatCurrency as f } from "./formatters/formatCurrency.js";
|
|
4
|
+
import { formatDate as a } from "./formatters/formatDate.js";
|
|
5
|
+
import { formatNumber as l } from "./formatters/formatNumber.js";
|
|
6
|
+
import { pascalCase as n } from "./formatters/pascalCase.js";
|
|
7
|
+
import { checkAvailability as u } from "./utils/checkAvailability.js";
|
|
8
|
+
import { countryCodeToUnicodeFlag as b } from "./utils/countryCodeToUnicodeFlag.js";
|
|
9
|
+
import { debounce as y } from "./utils/debounce.js";
|
|
10
|
+
import { debounceCallback as S } from "./utils/debounceCallback.js";
|
|
11
|
+
import { debounceId as F } from "./utils/debounceId.js";
|
|
12
|
+
import { getCountryFlagUrl as T } from "./utils/getCountryFlagUrl.js";
|
|
13
|
+
import { IdleTimeout as k } from "./utils/idleTimeout.js";
|
|
14
|
+
import { isClient as w } from "./utils/isClient.js";
|
|
15
|
+
import { isEqual as A } from "./utils/isEqual.js";
|
|
16
|
+
import { isServer as D } from "./utils/isServer.js";
|
|
17
|
+
import { isStandaloneMode as L } from "./utils/isStandaloneMode.js";
|
|
18
|
+
import { normalizeString as N } from "./utils/normalizeString.js";
|
|
19
|
+
import { ScriptLoader as j } from "./utils/scriptLoader.js";
|
|
20
|
+
import { sleep as G } from "./utils/sleep.js";
|
|
21
|
+
import { Swipe as J } from "./utils/swipeHandler.js";
|
|
22
|
+
import { TextareaAutogrow as O } from "./utils/TextareaAutogrow.js";
|
|
23
|
+
import { throttle as Q } from "./utils/throttle.js";
|
|
24
|
+
import { throttleId as W } from "./utils/throttleId.js";
|
|
25
|
+
import { truthyFilter as Y } from "./utils/truthyFilter.js";
|
|
26
|
+
import { UserVisibility as _ } from "./utils/userVisibility.js";
|
|
27
|
+
export {
|
|
28
|
+
k as IdleTimeout,
|
|
29
|
+
j as ScriptLoader,
|
|
30
|
+
J as Swipe,
|
|
31
|
+
O as TextareaAutogrow,
|
|
32
|
+
_ as UserVisibility,
|
|
33
|
+
e as camelCase,
|
|
34
|
+
m as capitalize,
|
|
35
|
+
u as checkAvailability,
|
|
36
|
+
b as countryCodeToUnicodeFlag,
|
|
37
|
+
y as debounce,
|
|
38
|
+
S as debounceCallback,
|
|
39
|
+
F as debounceId,
|
|
40
|
+
f as formatCurrency,
|
|
41
|
+
a as formatDate,
|
|
42
|
+
l as formatNumber,
|
|
43
|
+
T as getCountryFlagUrl,
|
|
44
|
+
w as isClient,
|
|
45
|
+
A as isEqual,
|
|
46
|
+
D as isServer,
|
|
47
|
+
L as isStandaloneMode,
|
|
48
|
+
N as normalizeString,
|
|
49
|
+
n as pascalCase,
|
|
50
|
+
G as sleep,
|
|
51
|
+
Q as throttle,
|
|
52
|
+
W as throttleId,
|
|
53
|
+
Y as truthyFilter
|
|
54
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"camelCase.d.ts","sourceRoot":"","sources":["../../../src/formatters/camelCase.ts"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,UAEpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capitalize.d.ts","sourceRoot":"","sources":["../../../src/formatters/capitalize.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKhD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatCurrency.d.ts","sourceRoot":"","sources":["../../../src/formatters/formatCurrency.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,mBAAmB;IACrE,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AA8BD,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB,GAAG,MAAM,CAc9G"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatDate.d.ts","sourceRoot":"","sources":["../../../src/formatters/formatDate.ts"],"names":[],"mappings":"AAMA,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,qBAAqB,GAAG,MAAM,CAkBrH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatNumber.d.ts","sourceRoot":"","sources":["../../../src/formatters/formatNumber.ts"],"names":[],"mappings":"AAIA,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,mBAAmB,GAAG,MAAM,CAsBhH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatPhoneNumber.d.ts","sourceRoot":"","sources":["../../../src/formatters/formatPhoneNumber.ts"],"names":[],"mappings":"AAEA,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAO7D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/formatters/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,cAAc,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pascalCase.d.ts","sourceRoot":"","sources":["../../../src/formatters/pascalCase.ts"],"names":[],"mappings":"AAGA,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,UAErC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeepKeyOf.d.ts","sourceRoot":"","sources":["../../../src/ts-helpers/DeepKeyOf.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GACvC;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,SAAS,MAAM,GAC9B,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GACjB,GAAG,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GACzB,CAAC,GACH,KAAK;CACR,CAAC,MAAM,CAAC,CAAC,GACV,KAAK,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeepPartial.d.ts","sourceRoot":"","sources":["../../../src/ts-helpers/DeepPartial.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GACzC;KACG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACnC,GACD,CAAC,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type FlattenObjectKeys<T extends Record<string, any>, Prefix extends string = ''> = {
|
|
2
|
+
[K in keyof T]: T[K] extends Record<string, any> ? FlattenObjectKeys<T[K], `${Prefix}${K extends string ? K : ''}.`> : `${Prefix}${K extends string ? K : ''}`;
|
|
3
|
+
}[keyof T];
|
|
4
|
+
//# sourceMappingURL=FlattenObjectKeys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlattenObjectKeys.d.ts","sourceRoot":"","sources":["../../../src/ts-helpers/FlattenObjectKeys.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,SAAS,MAAM,GAAG,EAAE,IAAI;KACxF,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAC5C,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,MAAM,GAAG,CAAC,SAAS,MAAM,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,GACjE,GAAG,MAAM,GAAG,CAAC,SAAS,MAAM,GAAG,CAAC,GAAG,EAAE,EAAE;CAC5C,CAAC,MAAM,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InferMaybeRef.d.ts","sourceRoot":"","sources":["../../../src/ts-helpers/InferMaybeRef.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAE9B,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ts-helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA;AACnC,cAAc,iBAAiB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextareaAutogrow.d.ts","sourceRoot":"","sources":["../../../src/utils/TextareaAutogrow.ts"],"names":[],"mappings":"AAEA,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,OAAO,CAAqB;gBAExB,OAAO,EAAE,mBAAmB;IAQxC,OAAO,CAAC,OAAO;IAMR,UAAU;IAKjB,OAAO,CAAC,OAAO;IAOf,OAAO,CAAC,QAAQ;IAIhB,OAAO,CAAC,QAAQ;CAKjB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function checkAvailability<T>(getRef: () => T | null | undefined, callback: (component: NonNullable<T>) => void, options?: {
|
|
2
|
+
maxAttempts?: number;
|
|
3
|
+
interval?: number;
|
|
4
|
+
errorMessage?: string;
|
|
5
|
+
expectedValue?: T;
|
|
6
|
+
onError?: (error: Error) => void;
|
|
7
|
+
}): void;
|
|
8
|
+
//# sourceMappingURL=checkAvailability.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkAvailability.d.ts","sourceRoot":"","sources":["../../../src/utils/checkAvailability.ts"],"names":[],"mappings":"AAAA,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,EAAE,QAAQ,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE,OAAO,CAAC,EAAE;IAAE,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,aAAa,CAAC,EAAE,CAAC,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;CAAE,QAmCxP"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"countryCodeToUnicodeFlag.d.ts","sourceRoot":"","sources":["../../../src/utils/countryCodeToUnicodeFlag.ts"],"names":[],"mappings":"AAEA,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,UAStD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debounce.d.ts","sourceRoot":"","sources":["../../../src/utils/debounce.ts"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,UAAU,CAAC,CAAC,CAAC,EAC1E,EAAE,EAAE,CAAC,EACL,KAAK,EAAE,MAAM,IAII,GAAG,MAAM,UAAU,CAAC,CAAC,CAAC,UAQxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debounceCallback.d.ts","sourceRoot":"","sources":["../../../src/utils/debounceCallback.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,EAAE,MAAM,QAMxF"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type AsyncFunction<T, Args extends unknown[]> = (...args: Args) => T | Promise<T>;
|
|
2
|
+
/**
|
|
3
|
+
* Debounce an async function - called after a delay (only the last call is executed)
|
|
4
|
+
*/
|
|
5
|
+
export declare function debounceId<T, Args extends unknown[]>(identifier: string, func: AsyncFunction<T, Args>, delay: number): (...args: Args) => Promise<T>;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=debounceId.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debounceId.d.ts","sourceRoot":"","sources":["../../../src/utils/debounceId.ts"],"names":[],"mappings":"AAAA,KAAK,aAAa,CAAC,CAAC,EAAE,IAAI,SAAS,OAAO,EAAE,IAAI,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;AASjF;;GAEG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,IAAI,SAAS,OAAO,EAAE,EAClD,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,EAC5B,KAAK,EAAE,MAAM,GACZ,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,CA8B/B"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export interface IpWhoResponse {
|
|
2
|
+
ip: string;
|
|
3
|
+
success: true;
|
|
4
|
+
type?: string;
|
|
5
|
+
continent?: string;
|
|
6
|
+
continent_code?: string;
|
|
7
|
+
country?: string;
|
|
8
|
+
country_code?: string;
|
|
9
|
+
region?: string;
|
|
10
|
+
region_code?: string;
|
|
11
|
+
city?: string;
|
|
12
|
+
latitude?: number;
|
|
13
|
+
longitude?: number;
|
|
14
|
+
is_eu: true;
|
|
15
|
+
postal?: string;
|
|
16
|
+
calling_code?: string;
|
|
17
|
+
capital?: string;
|
|
18
|
+
borders?: string;
|
|
19
|
+
flag: {
|
|
20
|
+
img?: string;
|
|
21
|
+
emoji?: string;
|
|
22
|
+
emoji_unicode?: string;
|
|
23
|
+
};
|
|
24
|
+
connection: {
|
|
25
|
+
asn?: number;
|
|
26
|
+
org?: string;
|
|
27
|
+
isp?: string;
|
|
28
|
+
domain?: string;
|
|
29
|
+
};
|
|
30
|
+
timezone: {
|
|
31
|
+
id?: string;
|
|
32
|
+
abbr?: string;
|
|
33
|
+
is_dst: false;
|
|
34
|
+
offset?: number;
|
|
35
|
+
utc?: string;
|
|
36
|
+
current_time?: string;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export declare function fetchLocaleIp(): Promise<string | undefined>;
|
|
40
|
+
//# sourceMappingURL=fetchLocaleIp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchLocaleIp.d.ts","sourceRoot":"","sources":["../../../src/utils/fetchLocaleIp.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,IAAI,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,IAAI,CAAA;IACX,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE;QACJ,GAAG,CAAC,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,aAAa,CAAC,EAAE,MAAM,CAAA;KACvB,CAAA;IACD,UAAU,EAAE;QACV,GAAG,CAAC,EAAE,MAAM,CAAA;QACZ,GAAG,CAAC,EAAE,MAAM,CAAA;QACZ,GAAG,CAAC,EAAE,MAAM,CAAA;QACZ,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;IACD,QAAQ,EAAE;QACR,EAAE,CAAC,EAAE,MAAM,CAAA;QACX,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,MAAM,EAAE,KAAK,CAAA;QACb,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,GAAG,CAAC,EAAE,MAAM,CAAA;QACZ,YAAY,CAAC,EAAE,MAAM,CAAA;KACtB,CAAA;CACF;AAED,wBAAsB,aAAa,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAYjE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBrowserLocale.d.ts","sourceRoot":"","sources":["../../../src/utils/getBrowserLocale.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,IAAI,MAAM,GAAG,SAAS,CAWrD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type Ratio = '16x12' | '20x15' | '24x18' | '28x21' | '32x24' | '36x27' | '40x30' | '48x36' | '56x42' | '60x45' | '64x48' | '72x54' | '80x60' | '84x63' | '96x72' | '108x81' | '112x84' | '120x90' | '128x96' | '144x108' | '160x120' | '192x144' | '224x168' | '256x192';
|
|
2
|
+
type Height = 'h20' | 'h24' | 'h40' | 'h60' | 'h80' | 'h120' | 'h240';
|
|
3
|
+
type Width = 'w20' | 'w40' | 'w80' | 'w160' | 'w320' | 'w640' | 'w1280' | 'w2560';
|
|
4
|
+
type Size = Ratio | Height | Width;
|
|
5
|
+
declare const _supportedCodes: readonly ["ad", "ae", "af", "ag", "ai", "al", "am", "ao", "aq", "ar", "as", "at", "au", "aw", "ax", "az", "ba", "bb", "bd", "be", "bf", "bg", "bh", "bi", "bj", "bl", "bm", "bn", "bo", "bq", "br", "bs", "bt", "bv", "bw", "by", "bz", "ca", "cc", "cd", "cf", "cg", "ch", "ci", "ck", "cl", "cm", "cn", "co", "cr", "cu", "cv", "cw", "cx", "cy", "cz", "de", "dj", "dk", "dm", "do", "dz", "ec", "ee", "eg", "eh", "er", "es", "et", "eu", "fi", "fj", "fk", "fm", "fo", "fr", "ga", "gb", "gb-eng", "gb-nir", "gb-sct", "gb-wls", "gd", "ge", "gf", "gg", "gh", "gi", "gl", "gm", "gn", "gp", "gq", "gr", "gs", "gt", "gu", "gw", "gy", "hk", "hm", "hn", "hr", "ht", "hu", "id", "ie", "il", "im", "in", "io", "iq", "ir", "is", "it", "je", "jm", "jo", "jp", "ke", "kg", "kh", "ki", "km", "kn", "kp", "kr", "kw", "ky", "kz", "la", "lb", "lc", "li", "lk", "lr", "ls", "lt", "lu", "lv", "ly", "ma", "mc", "md", "me", "mf", "mg", "mh", "mk", "ml", "mm", "mn", "mo", "mp", "mq", "mr", "ms", "mt", "mu", "mv", "mw", "mx", "my", "mz", "na", "nc", "ne", "nf", "ng", "ni", "nl", "no", "np", "nr", "nu", "nz", "om", "pa", "pe", "pf", "pg", "ph", "pk", "pl", "pm", "pn", "pr", "ps", "pt", "pw", "py", "qa", "re", "ro", "rs", "ru", "rw", "sa", "sb", "sc", "sd", "se", "sg", "sh", "si", "sj", "sk", "sl", "sm", "sn", "so", "sr", "ss", "st", "sv", "sx", "sy", "sz", "tc", "td", "tf", "tg", "th", "tj", "tk", "tl", "tm", "tn", "to", "tr", "tt", "tv", "tw", "tz", "ua", "ug", "um", "un", "us", "us-ak", "us-al", "us-ar", "us-az", "us-ca", "us-co", "us-ct", "us-de", "us-fl", "us-ga", "us-hi", "us-ia", "us-id", "us-il", "us-in", "us-ks", "us-ky", "us-la", "us-ma", "us-md", "us-me", "us-mi", "us-mn", "us-mo", "us-ms", "us-mt", "us-nc", "us-nd", "us-ne", "us-nh", "us-nj", "us-nm", "us-nv", "us-ny", "us-oh", "us-ok", "us-or", "us-pa", "us-ri", "us-sc", "us-sd", "us-tn", "us-tx", "us-ut", "us-va", "us-vt", "us-wa", "us-wi", "us-wv", "us-wy", "uy", "uz", "va", "vc", "ve", "vg", "vi", "vn", "vu", "wf", "ws", "xk", "ye", "yt", "za", "zm", "zw"];
|
|
6
|
+
type SupportedCodes = typeof _supportedCodes[number];
|
|
7
|
+
export declare function getCountryFlagUrl(countryIsoCode: SupportedCodes | string, size?: Size): string | undefined;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=getCountryFlagUrl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCountryFlagUrl.d.ts","sourceRoot":"","sources":["../../../src/utils/getCountryFlagUrl.ts"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG,OAAO,GAChB,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,CAAA;AAEb,KAAK,MAAM,GAAG,KAAK,GACf,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,MAAM,GACN,MAAM,CAAA;AAEV,KAAK,KAAK,GAAG,KAAK,GACd,KAAK,GACL,KAAK,GACL,MAAM,GACN,MAAM,GACN,MAAM,GACN,OAAO,GACP,OAAO,CAAA;AAEX,KAAK,IAAI,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,CAAA;AAElC,QAAA,MAAM,eAAe,69DAA89D,CAAA;AAEn/D,KAAK,cAAc,GAAG,OAAO,eAAe,CAAC,MAAM,CAAC,CAAA;AAEpD,wBAAgB,iBAAiB,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,EAAE,IAAI,CAAC,EAAE,IAAI,sBAUrF"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export type IdleTimeoutCallback = ({ isIdle, eventType, instance, }: {
|
|
2
|
+
isIdle: boolean;
|
|
3
|
+
eventType?: string;
|
|
4
|
+
instance: IdleTimeout;
|
|
5
|
+
}) => unknown;
|
|
6
|
+
export interface IdleTimeoutStrictOption {
|
|
7
|
+
/**
|
|
8
|
+
* HTMLElement to spy / watch
|
|
9
|
+
* @default undefined
|
|
10
|
+
*/
|
|
11
|
+
element?: HTMLElement | Document;
|
|
12
|
+
/**
|
|
13
|
+
* Timeout duration in ms
|
|
14
|
+
* @default 60 * 1000 * 5 // 5 min
|
|
15
|
+
*/
|
|
16
|
+
timeout: number;
|
|
17
|
+
/**
|
|
18
|
+
* Watch once
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
21
|
+
once: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Watch immediately on load (make it false is useful for SSR context)
|
|
24
|
+
* @default true
|
|
25
|
+
*/
|
|
26
|
+
immediate: boolean;
|
|
27
|
+
}
|
|
28
|
+
export type IdleTimeoutOptions = Partial<IdleTimeoutStrictOption>;
|
|
29
|
+
export declare class IdleTimeout {
|
|
30
|
+
private readonly callback;
|
|
31
|
+
private readonly defaultOptions;
|
|
32
|
+
private options;
|
|
33
|
+
private timeoutHandler?;
|
|
34
|
+
private isIdle;
|
|
35
|
+
private isDestroy;
|
|
36
|
+
private startTime;
|
|
37
|
+
private remainingTime;
|
|
38
|
+
private lastClientX;
|
|
39
|
+
private lastClientY;
|
|
40
|
+
private eventNames;
|
|
41
|
+
constructor(callback: IdleTimeoutCallback, options?: IdleTimeoutOptions);
|
|
42
|
+
get element(): Document | HTMLElement;
|
|
43
|
+
start(): void;
|
|
44
|
+
pause(): void;
|
|
45
|
+
resume(): void;
|
|
46
|
+
reset(): void;
|
|
47
|
+
destroy(): void;
|
|
48
|
+
private resetTimeout;
|
|
49
|
+
private handleEvent;
|
|
50
|
+
private handleTimeout;
|
|
51
|
+
get destroyed(): boolean;
|
|
52
|
+
get timeout(): number;
|
|
53
|
+
set timeout(value: number);
|
|
54
|
+
get idle(): boolean;
|
|
55
|
+
set idle(value: boolean);
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=idleTimeout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"idleTimeout.d.ts","sourceRoot":"","sources":["../../../src/utils/idleTimeout.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,mBAAmB,GAAG,CAAC,EACjC,MAAM,EACN,SAAS,EACT,QAAQ,GACT,EAAE;IACD,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,WAAW,CAAA;CACtB,KAAK,OAAO,CAAA;AAEb,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,GAAG,QAAQ,CAAA;IAChC;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,IAAI,EAAE,OAAO,CAAA;IACb;;;OAGG;IACH,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAA;AAEjE,qBAAa,WAAW;IAgCpB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IA/B3B,OAAO,CAAC,QAAQ,CAAC,cAAc,CAK9B;IAED,OAAO,CAAC,OAAO,CAAyB;IACxC,OAAO,CAAC,cAAc,CAAC,CAA+B;IACtD,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,SAAS,CAAQ;IACzB,OAAO,CAAC,SAAS,CAAI;IACrB,OAAO,CAAC,aAAa,CAAI;IACzB,OAAO,CAAC,WAAW,CAAK;IACxB,OAAO,CAAC,WAAW,CAAK;IAExB,OAAO,CAAC,UAAU,CAYjB;gBAGkB,QAAQ,EAAE,mBAAmB,EAC9C,OAAO,CAAC,EAAE,kBAAkB;IAY9B,IAAI,OAAO,2BAEV;IAEM,KAAK,IAAI,IAAI;IAiBb,KAAK,IAAI,IAAI;IAcb,MAAM,IAAI,IAAI;IAUd,KAAK,IAAI,IAAI;IAQb,OAAO,IAAI,IAAI;IAiBtB,OAAO,CAAC,YAAY;IAgBpB,OAAO,CAAC,WAAW,CA0BlB;IAED,OAAO,CAAC,aAAa;IASrB,IAAW,SAAS,YAEnB;IAED,IAAW,OAAO,IAIQ,MAAM,CAF/B;IAED,IAAW,OAAO,CAAC,KAAK,EAAE,MAAM,EAE/B;IAED,IAAW,IAAI,IAAI,OAAO,CAEzB;IAED,IAAW,IAAI,CAAC,KAAK,EAAE,OAAO,EAS7B;CACF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from './checkAvailability';
|
|
2
|
+
export * from './countryCodeToUnicodeFlag';
|
|
3
|
+
export * from './debounce';
|
|
4
|
+
export * from './debounceCallback';
|
|
5
|
+
export * from './debounceId';
|
|
6
|
+
export * from './getCountryFlagUrl';
|
|
7
|
+
export * from './idleTimeout';
|
|
8
|
+
export * from './isClient';
|
|
9
|
+
export * from './isEqual';
|
|
10
|
+
export * from './isServer';
|
|
11
|
+
export * from './isStandaloneMode';
|
|
12
|
+
export * from './normalizeString';
|
|
13
|
+
export * from './scriptLoader';
|
|
14
|
+
export * from './sleep';
|
|
15
|
+
export * from './swipeHandler';
|
|
16
|
+
export * from './TextareaAutogrow';
|
|
17
|
+
export * from './throttle';
|
|
18
|
+
export * from './throttleId';
|
|
19
|
+
export * from './truthyFilter';
|
|
20
|
+
export * from './userVisibility';
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAC5B,cAAc,qBAAqB,CAAA;AACnC,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,SAAS,CAAA;AACvB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,oBAAoB,CAAA;AAClC,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isClient.d.ts","sourceRoot":"","sources":["../../../src/utils/isClient.ts"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,YAEvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isEqual.d.ts","sourceRoot":"","sources":["../../../src/utils/isEqual.ts"],"names":[],"mappings":"AAyCA,wBAAgB,OAAO,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CAyBvD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isServer.d.ts","sourceRoot":"","sources":["../../../src/utils/isServer.ts"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,YAEvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isStandaloneMode.d.ts","sourceRoot":"","sources":["../../../src/utils/isStandaloneMode.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,YAS/B"}
|