@hortiview/default-components 1.4.4 → 1.5.1

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.
Files changed (51) hide show
  1. package/README.md +51 -0
  2. package/dist/components/DefaultAllowedComponent/DefaultAllowedComponent.d.ts +11 -0
  3. package/dist/components/DefaultAllowedComponent/DefaultAllowedComponent.js +11 -0
  4. package/dist/components/DefaultFormNumber/DefaultFormNumber.js +12 -1496
  5. package/dist/components/DefaultFormSelect/DefaultFormSelect.js +9 -178
  6. package/dist/components/DefaultLoadingSpinner/DefaultLoadingSpinner.js +6 -6
  7. package/dist/components/GenericTable/GenericTable.js +12 -18731
  8. package/dist/components/HealthChecks/DataBaseHealthCheck.js +2 -2
  9. package/dist/components/HealthChecks/DefaultHealthCheck.js +4 -4
  10. package/dist/components/HealthChecks/IotServiceHealthCheck.js +5 -5
  11. package/dist/components/HealthChecks/PlatformHealthCheck.js +4 -4
  12. package/dist/components/ImpatienceLoadingSpinner/ImpatienceLoadingSpinner.js +9 -9
  13. package/dist/components/InternationalizationWrapper/InternationalizationWrapper.js +4 -4
  14. package/dist/components/OfflineView/OfflineView.js +9 -9
  15. package/dist/i18n.js +1696 -5
  16. package/dist/{i18nInstance-D_96ADqd.js → i18nInstance-CYqpK5II.js} +2 -2
  17. package/dist/locales/en-US.js +16 -14
  18. package/dist/locales/en-US.json.d.ts +3 -0
  19. package/dist/locales/es-MX.js +16 -14
  20. package/dist/locales/es-MX.json.d.ts +3 -0
  21. package/dist/locales/tr-TR.js +17 -15
  22. package/dist/locales/tr-TR.json.d.ts +3 -0
  23. package/dist/main.d.ts +1 -0
  24. package/dist/main.js +24 -22
  25. package/dist/useTranslation-DGtUf8nl.js +101 -0
  26. package/package.json +3 -32
  27. package/dist/Iconify-aUog1Oez.js +0 -83
  28. package/dist/InfoCard-BxjAQiFE.js +0 -58
  29. package/dist/LoadingSpinner-DBMjIfY1.js +0 -502
  30. package/dist/OfflineView-NUM9WE0F-BI9rnget.js +0 -46
  31. package/dist/assets/DefaultFormNumber.css +0 -1
  32. package/dist/assets/DefaultFormSelect.css +0 -1
  33. package/dist/assets/GenericTable.css +0 -1
  34. package/dist/assets/Iconify.css +0 -1
  35. package/dist/assets/InfoCard.css +0 -1
  36. package/dist/assets/LoadingSpinner.css +0 -1
  37. package/dist/assets/OfflineView-NUM9WE0F.css +0 -1
  38. package/dist/component-DsB0poTj-DgsYK0_R.js +0 -570
  39. package/dist/correct-is-regexp-logic-BBlm4UpN-CvII841s.js +0 -493
  40. package/dist/i18n-CCQpJsQK.js +0 -1707
  41. package/dist/index.es-B0QNuIUR-Bte5aF5M.js +0 -360
  42. package/dist/index.es-CIsLNz4j-ZEEcPmTs.js +0 -79
  43. package/dist/index.es-CvHDFF6V-CjZvA03R.js +0 -2004
  44. package/dist/index.es-DiONypF4-eT98Y3u_.js +0 -844
  45. package/dist/index.es-DnEIFMjv-DuuORGfo.js +0 -1044
  46. package/dist/index.es-NEYPxnlS-C8xQv2De.js +0 -860
  47. package/dist/index.es-fV9oWpEf-BXuhoGtE.js +0 -14374
  48. package/dist/isTypedArray-Dw_IY7Zq-wj3MphCb.js +0 -210
  49. package/dist/slicedToArray-h0Nnkd_P-C4SkVJMK.js +0 -432
  50. package/dist/useHelperText-B7OMZXvE.js +0 -391
  51. package/dist/useTranslation-B_lNCuLm.js +0 -5343
@@ -41,8 +41,8 @@ const r = (t) => {
41
41
  e = t;
42
42
  }, u = () => e;
43
43
  export {
44
- r as a,
45
- c as b,
44
+ c as a,
45
+ r as b,
46
46
  u as g,
47
47
  l as s
48
48
  };
@@ -1,17 +1,19 @@
1
- const e = { separator: "Please use a period as a decimal separator, e.g. 12,345.67" }, t = { filterOptions: "Show only selected options", multiItems: "items selected", noOptions: "No options", selectAll: "Select all" }, a = { pageOfTranslation: "of", pageTranslation: "Page", rowsPerPageTranslation: "Rows per page" }, o = { dataBase: "The data for this module is loading!", dataBaseSubtitle: "Please wait or come back later.", default: "Sorry, something went wrong!", defaultSubtitle: "The problem is being addressed by our technical team. Please come back later.", iotService: "The data of your devices cannot be retrieved currently.", iotServiceSubtitle: "The problem is being addressed by our technical team. Please come back later.", platform: "The platform data used by this module cannot be retrieved currently.", platformSubtitle: "Please wait or come back later." }, l = { baseMessage: "Loading...", impatienceMessage: "This is taking longer than expected. Please be patient." }, s = { subtitle: "This feature is unavailable until you reconnect", title: "You’re currently offline" }, i = {
2
- formNumber: e,
3
- formSelect: t,
4
- genericTable: a,
5
- healthCheck: o,
6
- loadingSpinner: l,
7
- offlineView: s
1
+ const e = { disclaimerText: "You are not allowed to see the content of this section." }, t = { separator: "Please use a period as a decimal separator, e.g. 12,345.67" }, a = { filterOptions: "Show only selected options", multiItems: "items selected", noOptions: "No options", selectAll: "Select all" }, o = { pageOfTranslation: "of", pageTranslation: "Page", rowsPerPageTranslation: "Rows per page" }, l = { dataBase: "The data for this module is loading!", dataBaseSubtitle: "Please wait or come back later.", default: "Sorry, something went wrong!", defaultSubtitle: "The problem is being addressed by our technical team. Please come back later.", iotService: "The data of your devices cannot be retrieved currently.", iotServiceSubtitle: "The problem is being addressed by our technical team. Please come back later.", platform: "The platform data used by this module cannot be retrieved currently.", platformSubtitle: "Please wait or come back later." }, s = { baseMessage: "Loading...", impatienceMessage: "This is taking longer than expected. Please be patient." }, i = { subtitle: "This feature is unavailable until you reconnect", title: "You’re currently offline" }, n = {
2
+ allowedComponent: e,
3
+ formNumber: t,
4
+ formSelect: a,
5
+ genericTable: o,
6
+ healthCheck: l,
7
+ loadingSpinner: s,
8
+ offlineView: i
8
9
  };
9
10
  export {
10
- i as default,
11
- e as formNumber,
12
- t as formSelect,
13
- a as genericTable,
14
- o as healthCheck,
15
- l as loadingSpinner,
16
- s as offlineView
11
+ e as allowedComponent,
12
+ n as default,
13
+ t as formNumber,
14
+ a as formSelect,
15
+ o as genericTable,
16
+ l as healthCheck,
17
+ s as loadingSpinner,
18
+ i as offlineView
17
19
  };
@@ -1,4 +1,7 @@
1
1
  declare const _default: {
2
+ "allowedComponent": {
3
+ "disclaimerText": "You are not allowed to see the content of this section."
4
+ },
2
5
  "formNumber": {
3
6
  "separator": "Please use a period as a decimal separator, e.g. 12,345.67"
4
7
  },
@@ -1,18 +1,20 @@
1
- const e = { separator: "Utilice un período como separador decimal, p. 12,345.67" }, o = { filterOptions: "Mostrar solo opciones seleccionadas", multiItems: "elementos seleccionados", noOptions: "No hay opciones", selectAll: "Seleccionar todo" }, a = { pageOfTranslation: "de", pageTranslation: "Página", rowsPerPageTranslation: "Filas por página" }, s = { dataBase: "¡Los datos para este módulo se están cargando!", dataBaseSubtitle: "Espere o vuelva más tarde.", default: "Lo siento, algo salió mal!", defaultSubtitle: `El problema está siendo abordado por nuestro equipo técnico.
2
- Vuelve más tarde.`, iotService: "Los datos de sus dispositivos no se pueden recuperar actualmente.", iotServiceSubtitle: "El problema está siendo abordado por nuestro equipo técnico. Vuelve más tarde.", platform: "Los datos de la plataforma utilizados por este módulo no se pueden recuperar actualmente.", platformSubtitle: "Espere o vuelva más tarde." }, t = { baseMessage: "Cargando...", impatienceMessage: "Esto está tardando más de lo esperado. Por favor, sea paciente." }, n = { subtitle: "Esta función no está disponible hasta que te vuelvas a conectar.", title: "Actualmente estás sin conexión." }, r = {
3
- formNumber: e,
4
- formSelect: o,
5
- genericTable: a,
6
- healthCheck: s,
7
- loadingSpinner: t,
8
- offlineView: n
1
+ const e = { disclaimerText: "No tienes permiso para ver el contenido de esta sección." }, o = { separator: "Utilice un período como separador decimal, p. 12,345.67" }, a = { filterOptions: "Mostrar solo opciones seleccionadas", multiItems: "elementos seleccionados", noOptions: "No hay opciones", selectAll: "Seleccionar todo" }, s = { pageOfTranslation: "de", pageTranslation: "Página", rowsPerPageTranslation: "Filas por página" }, t = { dataBase: "¡Los datos para este módulo se están cargando!", dataBaseSubtitle: "Espere o vuelva más tarde.", default: "Lo siento, algo salió mal!", defaultSubtitle: `El problema está siendo abordado por nuestro equipo técnico.
2
+ Vuelve más tarde.`, iotService: "Los datos de sus dispositivos no se pueden recuperar actualmente.", iotServiceSubtitle: "El problema está siendo abordado por nuestro equipo técnico. Vuelve más tarde.", platform: "Los datos de la plataforma utilizados por este módulo no se pueden recuperar actualmente.", platformSubtitle: "Espere o vuelva más tarde." }, n = { baseMessage: "Cargando...", impatienceMessage: "Esto está tardando más de lo esperado. Por favor, sea paciente." }, i = { subtitle: "Esta función no está disponible hasta que te vuelvas a conectar.", title: "Actualmente estás sin conexión." }, r = {
3
+ allowedComponent: e,
4
+ formNumber: o,
5
+ formSelect: a,
6
+ genericTable: s,
7
+ healthCheck: t,
8
+ loadingSpinner: n,
9
+ offlineView: i
9
10
  };
10
11
  export {
12
+ e as allowedComponent,
11
13
  r as default,
12
- e as formNumber,
13
- o as formSelect,
14
- a as genericTable,
15
- s as healthCheck,
16
- t as loadingSpinner,
17
- n as offlineView
14
+ o as formNumber,
15
+ a as formSelect,
16
+ s as genericTable,
17
+ t as healthCheck,
18
+ n as loadingSpinner,
19
+ i as offlineView
18
20
  };
@@ -1,4 +1,7 @@
1
1
  declare const _default: {
2
+ "allowedComponent": {
3
+ "disclaimerText": "No tienes permiso para ver el contenido de esta sección."
4
+ },
2
5
  "formNumber": {
3
6
  "separator": "Utilice un período como separador decimal, p. 12,345.67"
4
7
  },
@@ -1,18 +1,20 @@
1
- const e = { separator: "Lütfen ondalık ayırıcı olarak virgül kullanın, ör. 12.345,67" }, a = { filterOptions: "Yalnızca seçilen seçenekleri göster", multiItems: "seçilen öğeler", noOptions: "Seçenek yok", selectAll: "Hepsini seç" }, n = { pageOfTranslation: "ile ilgili", pageTranslation: "Sayfa", rowsPerPageTranslation: "Sayfa başına satırlar" }, l = { dataBase: "Bu modül için veriler yükleniyor!", dataBaseSubtitle: "Lütfen bekleyin veya daha sonra geri dönün.", default: "Üzgünüm, bir şeyler ters gitti!", defaultSubtitle: `Sorun teknik ekibimiz tarafından ele alınmaktadır.
2
- Lütfen daha sonra tekrar gelin.`, iotService: "Cihazlarınızın verileri şu anda alınamaz.", iotServiceSubtitle: "Sorun teknik ekibimiz tarafından ele alınmaktadır. Lütfen daha sonra tekrar gelin.", platform: "Bu modül tarafından kullanılan platform verileri şu anda alınamaz.", platformSubtitle: "Lütfen bekleyin veya daha sonra geri dönün." }, t = { baseMessage: "Yükleme ...", impatienceMessage: "Bu beklenenden daha uzun sürüyor. Lütfen sabırlı olun." }, i = { subtitle: "Bu özellik yeniden bağlanana kadar kullanılamaz", title: "Şu anda çevrimdışısınız" }, r = {
3
- formNumber: e,
4
- formSelect: a,
5
- genericTable: n,
6
- healthCheck: l,
7
- loadingSpinner: t,
8
- offlineView: i
1
+ const e = { disclaimerText: "Bu bölümün içeriğini görmenize izin verilmiyor." }, a = { separator: "Lütfen ondalık ayırıcı olarak virgül kullanın, ör. 12.345,67" }, n = { filterOptions: "Yalnızca seçilen seçenekleri göster", multiItems: "seçilen öğeler", noOptions: "Seçenek yok", selectAll: "Hepsini seç" }, l = { pageOfTranslation: "ile ilgili", pageTranslation: "Sayfa", rowsPerPageTranslation: "Sayfa başına satırlar" }, i = { dataBase: "Bu modül için veriler yükleniyor!", dataBaseSubtitle: "Lütfen bekleyin veya daha sonra geri dönün.", default: "Üzgünüm, bir şeyler ters gitti!", defaultSubtitle: `Sorun teknik ekibimiz tarafından ele alınmaktadır.
2
+ Lütfen daha sonra tekrar gelin.`, iotService: "Cihazlarınızın verileri şu anda alınamaz.", iotServiceSubtitle: "Sorun teknik ekibimiz tarafından ele alınmaktadır. Lütfen daha sonra tekrar gelin.", platform: "Bu modül tarafından kullanılan platform verileri şu anda alınamaz.", platformSubtitle: "Lütfen bekleyin veya daha sonra geri dönün." }, r = { baseMessage: "Yükleme ...", impatienceMessage: "Bu beklenenden daha uzun sürüyor. Lütfen sabırlı olun." }, t = { subtitle: "Bu özellik yeniden bağlanana kadar kullanılamaz", title: "Şu anda çevrimdışısınız" }, o = {
3
+ allowedComponent: e,
4
+ formNumber: a,
5
+ formSelect: n,
6
+ genericTable: l,
7
+ healthCheck: i,
8
+ loadingSpinner: r,
9
+ offlineView: t
9
10
  };
10
11
  export {
11
- r as default,
12
- e as formNumber,
13
- a as formSelect,
14
- n as genericTable,
15
- l as healthCheck,
16
- t as loadingSpinner,
17
- i as offlineView
12
+ e as allowedComponent,
13
+ o as default,
14
+ a as formNumber,
15
+ n as formSelect,
16
+ l as genericTable,
17
+ i as healthCheck,
18
+ r as loadingSpinner,
19
+ t as offlineView
18
20
  };
@@ -1,4 +1,7 @@
1
1
  declare const _default: {
2
+ "allowedComponent": {
3
+ "disclaimerText": "Bu bölümün içeriğini görmenize izin verilmiyor."
4
+ },
2
5
  "formNumber": {
3
6
  "separator": "Lütfen ondalık ayırıcı olarak virgül kullanın, ör. 12.345,67"
4
7
  },
package/dist/main.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export { DefaultAllowedComponent } from './components/DefaultAllowedComponent/DefaultAllowedComponent';
1
2
  export { GenericTable } from './components/GenericTable/GenericTable';
2
3
  export { OfflineView } from './components/OfflineView/OfflineView';
3
4
  /** default loading components */
package/dist/main.js CHANGED
@@ -1,24 +1,26 @@
1
- import { GenericTable as r } from "./components/GenericTable/GenericTable.js";
2
- import { OfflineView as a } from "./components/OfflineView/OfflineView.js";
3
- import { DefaultLoadingSpinner as m } from "./components/DefaultLoadingSpinner/DefaultLoadingSpinner.js";
4
- import { ImpatienceLoadingSpinner as l } from "./components/ImpatienceLoadingSpinner/ImpatienceLoadingSpinner.js";
5
- import { DefaultFormNumber as x } from "./components/DefaultFormNumber/DefaultFormNumber.js";
6
- import { DefaultFormSelect as i } from "./components/DefaultFormSelect/DefaultFormSelect.js";
7
- import { DataBaseHealthCheck as u } from "./components/HealthChecks/DataBaseHealthCheck.js";
8
- import { DefaultHealthCheck as D } from "./components/HealthChecks/DefaultHealthCheck.js";
9
- import { IotServiceHealthCheck as k } from "./components/HealthChecks/IotServiceHealthCheck.js";
10
- import { PlatformHealthCheck as S } from "./components/HealthChecks/PlatformHealthCheck.js";
11
- import { useChangeDefaultComponentsLanguage as L } from "./components/InternationalizationWrapper/InternationalizationWrapper.js";
1
+ import { DefaultAllowedComponent as r } from "./components/DefaultAllowedComponent/DefaultAllowedComponent.js";
2
+ import { GenericTable as a } from "./components/GenericTable/GenericTable.js";
3
+ import { OfflineView as m } from "./components/OfflineView/OfflineView.js";
4
+ import { DefaultLoadingSpinner as l } from "./components/DefaultLoadingSpinner/DefaultLoadingSpinner.js";
5
+ import { ImpatienceLoadingSpinner as x } from "./components/ImpatienceLoadingSpinner/ImpatienceLoadingSpinner.js";
6
+ import { DefaultFormNumber as i } from "./components/DefaultFormNumber/DefaultFormNumber.js";
7
+ import { DefaultFormSelect as c } from "./components/DefaultFormSelect/DefaultFormSelect.js";
8
+ import { DataBaseHealthCheck as D } from "./components/HealthChecks/DataBaseHealthCheck.js";
9
+ import { DefaultHealthCheck as k } from "./components/HealthChecks/DefaultHealthCheck.js";
10
+ import { IotServiceHealthCheck as S } from "./components/HealthChecks/IotServiceHealthCheck.js";
11
+ import { PlatformHealthCheck as s } from "./components/HealthChecks/PlatformHealthCheck.js";
12
+ import { useChangeDefaultComponentsLanguage as b } from "./components/InternationalizationWrapper/InternationalizationWrapper.js";
12
13
  export {
13
- u as DataBaseHealthCheck,
14
- x as DefaultFormNumber,
15
- i as DefaultFormSelect,
16
- D as DefaultHealthCheck,
17
- m as DefaultLoadingSpinner,
18
- r as GenericTable,
19
- l as ImpatienceLoadingSpinner,
20
- k as IotServiceHealthCheck,
21
- a as OfflineView,
22
- S as PlatformHealthCheck,
23
- L as useChangeDefaultComponentsLanguage
14
+ D as DataBaseHealthCheck,
15
+ r as DefaultAllowedComponent,
16
+ i as DefaultFormNumber,
17
+ c as DefaultFormSelect,
18
+ k as DefaultHealthCheck,
19
+ l as DefaultLoadingSpinner,
20
+ a as GenericTable,
21
+ x as ImpatienceLoadingSpinner,
22
+ S as IotServiceHealthCheck,
23
+ m as OfflineView,
24
+ s as PlatformHealthCheck,
25
+ b as useChangeDefaultComponentsLanguage
24
26
  };
@@ -0,0 +1,101 @@
1
+ import { useContext as j, useCallback as k, useState as G, useRef as P, useEffect as x } from "react";
2
+ import { I as $, R as U } from "./context-f4Bcf4Hs.js";
3
+ import { g as J, a as W } from "./i18nInstance-CYqpK5II.js";
4
+ const X = (e, n, s, a) => {
5
+ var t, f, w, m;
6
+ const r = [s, {
7
+ code: n,
8
+ ...a || {}
9
+ }];
10
+ if ((f = (t = e == null ? void 0 : e.services) == null ? void 0 : t.logger) != null && f.forward)
11
+ return e.services.logger.forward(r, "warn", "react-i18next::", !0);
12
+ N(r[0]) && (r[0] = `react-i18next:: ${r[0]}`), (m = (w = e == null ? void 0 : e.services) == null ? void 0 : w.logger) != null && m.warn ? e.services.logger.warn(...r) : console != null && console.warn && console.warn(...r);
13
+ }, O = {}, S = (e, n, s, a) => {
14
+ N(s) && O[s] || (N(s) && (O[s] = /* @__PURE__ */ new Date()), X(e, n, s, a));
15
+ }, F = (e, n) => () => {
16
+ if (e.isInitialized)
17
+ n();
18
+ else {
19
+ const s = () => {
20
+ setTimeout(() => {
21
+ e.off("initialized", s);
22
+ }, 0), n();
23
+ };
24
+ e.on("initialized", s);
25
+ }
26
+ }, C = (e, n, s) => {
27
+ e.loadNamespaces(n, F(e, s));
28
+ }, A = (e, n, s, a) => {
29
+ if (N(s) && (s = [s]), e.options.preload && e.options.preload.indexOf(n) > -1) return C(e, s, a);
30
+ s.forEach((r) => {
31
+ e.options.ns.indexOf(r) < 0 && e.options.ns.push(r);
32
+ }), e.loadLanguages(n, F(e, a));
33
+ }, Y = (e, n, s = {}) => !n.languages || !n.languages.length ? (S(n, "NO_LANGUAGES", "i18n.languages were undefined or empty", {
34
+ languages: n.languages
35
+ }), !0) : n.hasLoadedNamespace(e, {
36
+ lng: s.lng,
37
+ precheck: (a, r) => {
38
+ var t;
39
+ if (((t = s.bindI18n) == null ? void 0 : t.indexOf("languageChanging")) > -1 && a.services.backendConnector.backend && a.isLanguageChangingTo && !r(a.isLanguageChangingTo, e)) return !1;
40
+ }
41
+ }), N = (e) => typeof e == "string", q = (e) => typeof e == "object" && e !== null, B = (e, n) => {
42
+ const s = P();
43
+ return x(() => {
44
+ s.current = e;
45
+ }, [e, n]), s.current;
46
+ }, M = (e, n, s, a) => e.getFixedT(n, s, a), D = (e, n, s, a) => k(M(e, n, s, a), [e, n, s, a]), Z = (e, n = {}) => {
47
+ var R, v, z, L;
48
+ const {
49
+ i18n: s
50
+ } = n, {
51
+ i18n: a,
52
+ defaultNS: r
53
+ } = j($) || {}, t = s || a || J();
54
+ if (t && !t.reportNamespaces && (t.reportNamespaces = new U()), !t) {
55
+ S(t, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
56
+ const i = (l, u) => N(u) ? u : q(u) && N(u.defaultValue) ? u.defaultValue : Array.isArray(l) ? l[l.length - 1] : l, c = [i, {}, !1];
57
+ return c.t = i, c.i18n = {}, c.ready = !1, c;
58
+ }
59
+ (R = t.options.react) != null && R.wait && S(t, "DEPRECATED_OPTION", "useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
60
+ const f = {
61
+ ...W(),
62
+ ...t.options.react,
63
+ ...n
64
+ }, {
65
+ useSuspense: w,
66
+ keyPrefix: m
67
+ } = f;
68
+ let o = r || ((v = t.options) == null ? void 0 : v.defaultNS);
69
+ o = N(o) ? [o] : o || ["translation"], (L = (z = t.reportNamespaces).addUsedNamespaces) == null || L.call(z, o);
70
+ const d = (t.isInitialized || t.initializedStoreOnce) && o.every((i) => Y(i, t, f)), _ = D(t, n.lng || null, f.nsMode === "fallback" ? o : o[0], m), E = () => _, h = () => M(t, n.lng || null, f.nsMode === "fallback" ? o : o[0], m), [b, T] = G(E);
71
+ let p = o.join();
72
+ n.lng && (p = `${n.lng}${p}`);
73
+ const I = B(p), g = P(!0);
74
+ x(() => {
75
+ const {
76
+ bindI18n: i,
77
+ bindI18nStore: c
78
+ } = f;
79
+ g.current = !0, !d && !w && (n.lng ? A(t, n.lng, o, () => {
80
+ g.current && T(h);
81
+ }) : C(t, o, () => {
82
+ g.current && T(h);
83
+ })), d && I && I !== p && g.current && T(h);
84
+ const l = () => {
85
+ g.current && T(h);
86
+ };
87
+ return i && (t == null || t.on(i, l)), c && (t == null || t.store.on(c, l)), () => {
88
+ g.current = !1, t && (i == null || i.split(" ").forEach((u) => t.off(u, l))), c && t && c.split(" ").forEach((u) => t.store.off(u, l));
89
+ };
90
+ }, [t, p]), x(() => {
91
+ g.current && d && T(E);
92
+ }, [t, m, d]);
93
+ const y = [b, t, d];
94
+ if (y.t = b, y.i18n = t, y.ready = d, d || !d && !w) return y;
95
+ throw new Promise((i) => {
96
+ n.lng ? A(t, n.lng, o, () => i()) : C(t, o, () => i());
97
+ });
98
+ };
99
+ export {
100
+ Z as u
101
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hortiview/default-components",
3
3
  "description": "This is a component library that should be used in the HortiView platform and its modules. The components provided here have default translation strings.",
4
- "version": "1.4.4",
4
+ "version": "1.5.1",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -44,37 +44,8 @@
44
44
  "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
45
45
  }
46
46
  },
47
- "release": {
48
- "plugins": [
49
- "@semantic-release/commit-analyzer",
50
- "@semantic-release/release-notes-generator",
51
- "semantic-release-ado",
52
- [
53
- "@semantic-release/npm",
54
- {
55
- "npmPublish": false
56
- }
57
- ],
58
- [
59
- "@semantic-release/changelog",
60
- {
61
- "changelogFile": "CHANGELOG.md"
62
- }
63
- ],
64
- [
65
- "@semantic-release/git",
66
- {
67
- "assets": [
68
- "package.json",
69
- "CHANGELOG.md"
70
- ],
71
- "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
72
- }
73
- ]
74
- ]
75
- },
76
47
  "peerDependencies": {
77
- "@hortiview/shared-components": "^2.5.0",
48
+ "@hortiview/shared-components": "^2.15.0",
78
49
  "react": "^18.3.1",
79
50
  "react-dom": "^18.3.1",
80
51
  "react-hook-form": "^7.51.2",
@@ -86,7 +57,7 @@
86
57
  "@element-public/react-components": "^5.72.2-alpha.1",
87
58
  "@element-public/themes": "^5.72.2-alpha.1",
88
59
  "@eslint/js": "^9.17.0",
89
- "@hortiview/shared-components": "^2.11.2",
60
+ "@hortiview/shared-components": "^2.15.0",
90
61
  "@rollup/plugin-json": "^6.1.0",
91
62
  "@rollup/plugin-node-resolve": "^16.0.0",
92
63
  "@semantic-release/changelog": "^6.0.3",