@getsoren/shared-module 2.44.0 → 2.46.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/dist/ar-DxWKHrrW.js +84 -0
- package/dist/chunk-D8eiyYIV.js +16 -0
- package/dist/components/Utils/AutoReloadOnNewVersion.d.ts +34 -0
- package/dist/components/Utils/InitializeDaysJSConfig.d.ts +6 -2
- package/dist/components/Utils/tests/AutoReloadOnNewVersion.test.d.ts +1 -0
- package/dist/de-B9uAlw43.js +67 -0
- package/dist/es-Czh059B4.js +49 -0
- package/dist/it-BMMOnRzo.js +49 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.js +260 -213
- package/dist/orval.js +1 -1
- package/dist/pt-cqbtpCpu.js +50 -0
- package/package.json +1 -1
- /package/dist/{orval-Bf_zcxLE.js → orval-D6vce7Ml.js} +0 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { n as e, t } from "./chunk-D8eiyYIV.js";
|
|
2
|
+
//#region node_modules/dayjs/locale/ar.js
|
|
3
|
+
var n = /* @__PURE__ */ t(((t, n) => {
|
|
4
|
+
(function(r, i) {
|
|
5
|
+
typeof t == "object" && n !== void 0 ? n.exports = i(e("dayjs")) : typeof define == "function" && define.amd ? define(["dayjs"], i) : (r = typeof globalThis < "u" ? globalThis : r || self).dayjs_locale_ar = i(r.dayjs);
|
|
6
|
+
})(t, (function(e) {
|
|
7
|
+
function t(e) {
|
|
8
|
+
return e && typeof e == "object" && "default" in e ? e : { default: e };
|
|
9
|
+
}
|
|
10
|
+
var n = t(e), r = "يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"), i = {
|
|
11
|
+
1: "١",
|
|
12
|
+
2: "٢",
|
|
13
|
+
3: "٣",
|
|
14
|
+
4: "٤",
|
|
15
|
+
5: "٥",
|
|
16
|
+
6: "٦",
|
|
17
|
+
7: "٧",
|
|
18
|
+
8: "٨",
|
|
19
|
+
9: "٩",
|
|
20
|
+
0: "٠"
|
|
21
|
+
}, a = {
|
|
22
|
+
"١": "1",
|
|
23
|
+
"٢": "2",
|
|
24
|
+
"٣": "3",
|
|
25
|
+
"٤": "4",
|
|
26
|
+
"٥": "5",
|
|
27
|
+
"٦": "6",
|
|
28
|
+
"٧": "7",
|
|
29
|
+
"٨": "8",
|
|
30
|
+
"٩": "9",
|
|
31
|
+
"٠": "0"
|
|
32
|
+
}, o = /[١٢٣٤٥٦٧٨٩٠]/g, s = /،/g, c = /\d/g, l = /,/g, u = {
|
|
33
|
+
name: "ar",
|
|
34
|
+
weekdays: "الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),
|
|
35
|
+
weekdaysShort: "أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),
|
|
36
|
+
weekdaysMin: "ح_ن_ث_ر_خ_ج_س".split("_"),
|
|
37
|
+
months: r,
|
|
38
|
+
monthsShort: r,
|
|
39
|
+
weekStart: 6,
|
|
40
|
+
meridiem: function(e) {
|
|
41
|
+
return e > 12 ? "م" : "ص";
|
|
42
|
+
},
|
|
43
|
+
relativeTime: {
|
|
44
|
+
future: "بعد %s",
|
|
45
|
+
past: "منذ %s",
|
|
46
|
+
s: "ثانية واحدة",
|
|
47
|
+
m: "دقيقة واحدة",
|
|
48
|
+
mm: "%d دقائق",
|
|
49
|
+
h: "ساعة واحدة",
|
|
50
|
+
hh: "%d ساعات",
|
|
51
|
+
d: "يوم واحد",
|
|
52
|
+
dd: "%d أيام",
|
|
53
|
+
M: "شهر واحد",
|
|
54
|
+
MM: "%d أشهر",
|
|
55
|
+
y: "عام واحد",
|
|
56
|
+
yy: "%d أعوام"
|
|
57
|
+
},
|
|
58
|
+
preparse: function(e) {
|
|
59
|
+
return e.replace(o, (function(e) {
|
|
60
|
+
return a[e];
|
|
61
|
+
})).replace(s, ",");
|
|
62
|
+
},
|
|
63
|
+
postformat: function(e) {
|
|
64
|
+
return e.replace(c, (function(e) {
|
|
65
|
+
return i[e];
|
|
66
|
+
})).replace(l, "،");
|
|
67
|
+
},
|
|
68
|
+
ordinal: function(e) {
|
|
69
|
+
return e;
|
|
70
|
+
},
|
|
71
|
+
formats: {
|
|
72
|
+
LT: "HH:mm",
|
|
73
|
+
LTS: "HH:mm:ss",
|
|
74
|
+
L: "D/M/YYYY",
|
|
75
|
+
LL: "D MMMM YYYY",
|
|
76
|
+
LLL: "D MMMM YYYY HH:mm",
|
|
77
|
+
LLLL: "dddd D MMMM YYYY HH:mm"
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
return n.default.locale(u, null, !0), u;
|
|
81
|
+
}));
|
|
82
|
+
}));
|
|
83
|
+
//#endregion
|
|
84
|
+
export default n();
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, i, o, s) => {
|
|
3
|
+
if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
|
|
4
|
+
get: ((e) => i[e]).bind(null, d),
|
|
5
|
+
enumerable: !(s = n(i, d)) || s.enumerable
|
|
6
|
+
});
|
|
7
|
+
return e;
|
|
8
|
+
}, c = (n, r, a) => (a = n == null ? {} : e(i(n)), s(r || !n || !n.__esModule ? t(a, "default", {
|
|
9
|
+
value: n,
|
|
10
|
+
enumerable: !0
|
|
11
|
+
}) : a, n)), l = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
|
|
12
|
+
if (typeof require < "u") return require.apply(this, arguments);
|
|
13
|
+
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
14
|
+
});
|
|
15
|
+
//#endregion
|
|
16
|
+
export { l as n, c as r, o as t };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
import { InjectDependenciesContextProps } from '../../context/InjectDependenciesProvider';
|
|
3
|
+
export interface AutoReloadOnNewVersionProps extends PropsWithChildren {
|
|
4
|
+
/**
|
|
5
|
+
* Version of the currently running bundle, usually imported from the app's package.json.
|
|
6
|
+
* Compared against the meta[name="version"] tag of the remote index.html.
|
|
7
|
+
*/
|
|
8
|
+
version: string;
|
|
9
|
+
/**
|
|
10
|
+
* React Router library
|
|
11
|
+
*/
|
|
12
|
+
reactRouter?: NonNullable<InjectDependenciesContextProps["libraries"]>["reactRouter"];
|
|
13
|
+
/**
|
|
14
|
+
* Interval in ms between version checks (also checked when the tab regains visibility)
|
|
15
|
+
*/
|
|
16
|
+
checkInterval?: number;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Silently reloads the app when a new version has been deployed.
|
|
20
|
+
*
|
|
21
|
+
* Fetches the remote index.html (bypassing caches) when the tab regains visibility
|
|
22
|
+
* and on a fixed interval, then compares its meta[name="version"] with the running
|
|
23
|
+
* bundle version. When they differ, the page is reloaded on the NEXT route change:
|
|
24
|
+
* the user is navigating anyway, so no in-progress work (forms, dialogs) can be lost,
|
|
25
|
+
* and the reload is indistinguishable from a regular page load.
|
|
26
|
+
*
|
|
27
|
+
* Use it as a layout route element (like GTMSendPageView) or wrap an existing one:
|
|
28
|
+
* ```tsx
|
|
29
|
+
* <Route element={<AutoReloadOnNewVersion version={version}><GTMSendPageView /></AutoReloadOnNewVersion>}>
|
|
30
|
+
* ```
|
|
31
|
+
* @constructor
|
|
32
|
+
*/
|
|
33
|
+
declare const AutoReloadOnNewVersion: ({ version, checkInterval, children, ...props }: AutoReloadOnNewVersionProps) => string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element;
|
|
34
|
+
export default AutoReloadOnNewVersion;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { InjectDependenciesContextProps } from '../../context/InjectDependenciesProvider';
|
|
2
|
+
export declare const SUPPORTED_LANGUAGE: readonly ["ar", "de", "en", "es", "fr", "it", "pt"];
|
|
3
|
+
export type SupportedLanguage = (typeof SUPPORTED_LANGUAGE)[number];
|
|
2
4
|
interface InitializeDaysJSConfigProps {
|
|
3
5
|
/**
|
|
4
6
|
* Dayjs library
|
|
@@ -13,9 +15,11 @@ interface InitializeDaysJSConfigProps {
|
|
|
13
15
|
*/
|
|
14
16
|
plugin?: NonNullable<InjectDependenciesContextProps["libraries"]>["dayjsPlugin"];
|
|
15
17
|
/**
|
|
16
|
-
* Language
|
|
18
|
+
* Language (short code). Autocompletes the supported languages but accepts any
|
|
19
|
+
* string (browser-detected values) — anything outside SUPPORTED_LANGUAGE falls
|
|
20
|
+
* back to "en".
|
|
17
21
|
*/
|
|
18
|
-
language?: string;
|
|
22
|
+
language?: SupportedLanguage | (string & {});
|
|
19
23
|
}
|
|
20
24
|
/**
|
|
21
25
|
* Initialize dayjs
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { n as e, t } from "./chunk-D8eiyYIV.js";
|
|
2
|
+
//#region node_modules/dayjs/locale/de.js
|
|
3
|
+
var n = /* @__PURE__ */ t(((t, n) => {
|
|
4
|
+
(function(r, i) {
|
|
5
|
+
typeof t == "object" && n !== void 0 ? n.exports = i(e("dayjs")) : typeof define == "function" && define.amd ? define(["dayjs"], i) : (r = typeof globalThis < "u" ? globalThis : r || self).dayjs_locale_de = i(r.dayjs);
|
|
6
|
+
})(t, (function(e) {
|
|
7
|
+
function t(e) {
|
|
8
|
+
return e && typeof e == "object" && "default" in e ? e : { default: e };
|
|
9
|
+
}
|
|
10
|
+
var n = t(e), r = {
|
|
11
|
+
s: "ein paar Sekunden",
|
|
12
|
+
m: ["eine Minute", "einer Minute"],
|
|
13
|
+
mm: "%d Minuten",
|
|
14
|
+
h: ["eine Stunde", "einer Stunde"],
|
|
15
|
+
hh: "%d Stunden",
|
|
16
|
+
d: ["ein Tag", "einem Tag"],
|
|
17
|
+
dd: ["%d Tage", "%d Tagen"],
|
|
18
|
+
M: ["ein Monat", "einem Monat"],
|
|
19
|
+
MM: ["%d Monate", "%d Monaten"],
|
|
20
|
+
y: ["ein Jahr", "einem Jahr"],
|
|
21
|
+
yy: ["%d Jahre", "%d Jahren"]
|
|
22
|
+
};
|
|
23
|
+
function i(e, t, n) {
|
|
24
|
+
var i = r[n];
|
|
25
|
+
return Array.isArray(i) && (i = i[+!t]), i.replace("%d", e);
|
|
26
|
+
}
|
|
27
|
+
var a = {
|
|
28
|
+
name: "de",
|
|
29
|
+
weekdays: "Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),
|
|
30
|
+
weekdaysShort: "So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),
|
|
31
|
+
weekdaysMin: "So_Mo_Di_Mi_Do_Fr_Sa".split("_"),
|
|
32
|
+
months: "Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),
|
|
33
|
+
monthsShort: "Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),
|
|
34
|
+
ordinal: function(e) {
|
|
35
|
+
return e + ".";
|
|
36
|
+
},
|
|
37
|
+
weekStart: 1,
|
|
38
|
+
yearStart: 4,
|
|
39
|
+
formats: {
|
|
40
|
+
LTS: "HH:mm:ss",
|
|
41
|
+
LT: "HH:mm",
|
|
42
|
+
L: "DD.MM.YYYY",
|
|
43
|
+
LL: "D. MMMM YYYY",
|
|
44
|
+
LLL: "D. MMMM YYYY HH:mm",
|
|
45
|
+
LLLL: "dddd, D. MMMM YYYY HH:mm"
|
|
46
|
+
},
|
|
47
|
+
relativeTime: {
|
|
48
|
+
future: "in %s",
|
|
49
|
+
past: "vor %s",
|
|
50
|
+
s: i,
|
|
51
|
+
m: i,
|
|
52
|
+
mm: i,
|
|
53
|
+
h: i,
|
|
54
|
+
hh: i,
|
|
55
|
+
d: i,
|
|
56
|
+
dd: i,
|
|
57
|
+
M: i,
|
|
58
|
+
MM: i,
|
|
59
|
+
y: i,
|
|
60
|
+
yy: i
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
return n.default.locale(a, null, !0), a;
|
|
64
|
+
}));
|
|
65
|
+
}));
|
|
66
|
+
//#endregion
|
|
67
|
+
export default n();
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { n as e, t } from "./chunk-D8eiyYIV.js";
|
|
2
|
+
//#region node_modules/dayjs/locale/es.js
|
|
3
|
+
var n = /* @__PURE__ */ t(((t, n) => {
|
|
4
|
+
(function(r, i) {
|
|
5
|
+
typeof t == "object" && n !== void 0 ? n.exports = i(e("dayjs")) : typeof define == "function" && define.amd ? define(["dayjs"], i) : (r = typeof globalThis < "u" ? globalThis : r || self).dayjs_locale_es = i(r.dayjs);
|
|
6
|
+
})(t, (function(e) {
|
|
7
|
+
function t(e) {
|
|
8
|
+
return e && typeof e == "object" && "default" in e ? e : { default: e };
|
|
9
|
+
}
|
|
10
|
+
var n = t(e), r = {
|
|
11
|
+
name: "es",
|
|
12
|
+
monthsShort: "ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),
|
|
13
|
+
weekdays: "domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),
|
|
14
|
+
weekdaysShort: "dom._lun._mar._mié._jue._vie._sáb.".split("_"),
|
|
15
|
+
weekdaysMin: "do_lu_ma_mi_ju_vi_sá".split("_"),
|
|
16
|
+
months: "enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),
|
|
17
|
+
weekStart: 1,
|
|
18
|
+
formats: {
|
|
19
|
+
LT: "H:mm",
|
|
20
|
+
LTS: "H:mm:ss",
|
|
21
|
+
L: "DD/MM/YYYY",
|
|
22
|
+
LL: "D [de] MMMM [de] YYYY",
|
|
23
|
+
LLL: "D [de] MMMM [de] YYYY H:mm",
|
|
24
|
+
LLLL: "dddd, D [de] MMMM [de] YYYY H:mm"
|
|
25
|
+
},
|
|
26
|
+
relativeTime: {
|
|
27
|
+
future: "en %s",
|
|
28
|
+
past: "hace %s",
|
|
29
|
+
s: "unos segundos",
|
|
30
|
+
m: "un minuto",
|
|
31
|
+
mm: "%d minutos",
|
|
32
|
+
h: "una hora",
|
|
33
|
+
hh: "%d horas",
|
|
34
|
+
d: "un día",
|
|
35
|
+
dd: "%d días",
|
|
36
|
+
M: "un mes",
|
|
37
|
+
MM: "%d meses",
|
|
38
|
+
y: "un año",
|
|
39
|
+
yy: "%d años"
|
|
40
|
+
},
|
|
41
|
+
ordinal: function(e) {
|
|
42
|
+
return e + "º";
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
return n.default.locale(r, null, !0), r;
|
|
46
|
+
}));
|
|
47
|
+
}));
|
|
48
|
+
//#endregion
|
|
49
|
+
export default n();
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { n as e, t } from "./chunk-D8eiyYIV.js";
|
|
2
|
+
//#region node_modules/dayjs/locale/it.js
|
|
3
|
+
var n = /* @__PURE__ */ t(((t, n) => {
|
|
4
|
+
(function(r, i) {
|
|
5
|
+
typeof t == "object" && n !== void 0 ? n.exports = i(e("dayjs")) : typeof define == "function" && define.amd ? define(["dayjs"], i) : (r = typeof globalThis < "u" ? globalThis : r || self).dayjs_locale_it = i(r.dayjs);
|
|
6
|
+
})(t, (function(e) {
|
|
7
|
+
function t(e) {
|
|
8
|
+
return e && typeof e == "object" && "default" in e ? e : { default: e };
|
|
9
|
+
}
|
|
10
|
+
var n = t(e), r = {
|
|
11
|
+
name: "it",
|
|
12
|
+
weekdays: "domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),
|
|
13
|
+
weekdaysShort: "dom_lun_mar_mer_gio_ven_sab".split("_"),
|
|
14
|
+
weekdaysMin: "do_lu_ma_me_gi_ve_sa".split("_"),
|
|
15
|
+
months: "gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),
|
|
16
|
+
weekStart: 1,
|
|
17
|
+
monthsShort: "gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),
|
|
18
|
+
formats: {
|
|
19
|
+
LT: "HH:mm",
|
|
20
|
+
LTS: "HH:mm:ss",
|
|
21
|
+
L: "DD/MM/YYYY",
|
|
22
|
+
LL: "D MMMM YYYY",
|
|
23
|
+
LLL: "D MMMM YYYY HH:mm",
|
|
24
|
+
LLLL: "dddd D MMMM YYYY HH:mm"
|
|
25
|
+
},
|
|
26
|
+
relativeTime: {
|
|
27
|
+
future: "tra %s",
|
|
28
|
+
past: "%s fa",
|
|
29
|
+
s: "qualche secondo",
|
|
30
|
+
m: "un minuto",
|
|
31
|
+
mm: "%d minuti",
|
|
32
|
+
h: "un'ora",
|
|
33
|
+
hh: "%d ore",
|
|
34
|
+
d: "un giorno",
|
|
35
|
+
dd: "%d giorni",
|
|
36
|
+
M: "un mese",
|
|
37
|
+
MM: "%d mesi",
|
|
38
|
+
y: "un anno",
|
|
39
|
+
yy: "%d anni"
|
|
40
|
+
},
|
|
41
|
+
ordinal: function(e) {
|
|
42
|
+
return e + "º";
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
return n.default.locale(r, null, !0), r;
|
|
46
|
+
}));
|
|
47
|
+
}));
|
|
48
|
+
//#endregion
|
|
49
|
+
export default n();
|
package/dist/main.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ export { default as ChatClient } from './chat/ChatClient';
|
|
|
2
2
|
export * from './chat/types';
|
|
3
3
|
export * from './components/Inputs/MaskTextField';
|
|
4
4
|
export { default as MaskTextField } from './components/Inputs/MaskTextField';
|
|
5
|
+
export * from './components/Utils/AutoReloadOnNewVersion';
|
|
6
|
+
export { default as AutoReloadOnNewVersion } from './components/Utils/AutoReloadOnNewVersion';
|
|
5
7
|
export * from './components/Utils/GTMSendPageView';
|
|
6
8
|
export { default as GTMSendPageView } from './components/Utils/GTMSendPageView';
|
|
7
9
|
export * from './components/Utils/InitializeAmplitude';
|