@gen-epix/ui-client-common 4.4.1 → 4.4.2

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/README.md CHANGED
@@ -42,14 +42,19 @@ The example below shows the minimal bootstrap for a host application that uses `
42
42
  import { createRoot } from 'react-dom/client';
43
43
  import { I18nService } from '@gen-epix/ui-client-common/classes/services/I18nService';
44
44
  import { App } from '@gen-epix/ui-client-common/components/app/App';
45
- import { createUiClientCommonContainer } from '@gen-epix/ui-client-common/classes/containers/UiClientCommonContainer';
45
+ import { DependencyContainerUtil } from '@gen-epix/ui-client-common/utils/DependencyContainerUtil';
46
46
  import { setupUi } from '@gen-epix/ui-client-common/setup/setup';
47
47
  import { WindowService } from '@gen-epix/ui-core/classes/services/WindowService';
48
48
 
49
49
  const LOCAL_STORAGE_KEY_PREFERRED_LANGUAGE = 'GenEpix-preferred-language';
50
50
 
51
51
  const init = async () => {
52
- await I18nService.getInstance().init({
52
+ const config = {
53
+ // provide a ConfigBase implementation here
54
+ };
55
+ const container = DependencyContainerUtil.createUiClientCommonContainer(config);
56
+
57
+ await container.resolve(I18nService).init({
53
58
  getCurrentLanguageCode: async () => {
54
59
  return Promise.resolve(
55
60
  WindowService.getInstance().window.localStorage.getItem(LOCAL_STORAGE_KEY_PREFERRED_LANGUAGE)
@@ -68,11 +73,6 @@ const init = async () => {
68
73
  },
69
74
  });
70
75
 
71
- const config = {
72
- // add your config here
73
- };
74
- const container = createUiClientCommonContainer(config);
75
-
76
76
  setupUi();
77
77
 
78
78
  createRoot(document.getElementById('root')!).render(<App container={container} />);
@@ -1,6 +1,6 @@
1
1
  import * as e from "react";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
- //#region ../../node_modules/.pnpm/@tanstack+react-query@5.104.2_react@19.3.0/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
3
+ //#region ../../node_modules/.pnpm/@tanstack+react-query@5.104.2_react@19.3.1/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
4
4
  var n = e.createContext(void 0), r = (t) => {
5
5
  let r = e.useContext(n);
6
6
  if (t) return t;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryClientProvider.js","names":["React","React$1","QueryClientContext","useQueryClient","client","queryClient","QueryClientProvider"],"sources":["../../../../node_modules/.pnpm/@tanstack+react-query@5.104.2_react@19.3.0/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n//#region src/QueryClientProvider.tsx\n/**\n* The context that `useQueryClient` reads from. `QueryClientProvider` is the normal way to set it.\n*/\nconst QueryClientContext = React.createContext(void 0);\n/**\n* The `useQueryClient` hook returns the current `QueryClient` instance.\n* @param queryClient - Use this to use a custom `QueryClient`. Otherwise, the one from the nearest context will\n* be used.\n* @returns The current `QueryClient` instance.\n* @throws {Error} If no `queryClient` argument is passed and no `QueryClientProvider` is found in the\n* component tree.\n*/\nconst useQueryClient = (queryClient) => {\n\tconst client = React.useContext(QueryClientContext);\n\tif (queryClient) return queryClient;\n\tif (!client) throw new Error(\"No QueryClient set, use QueryClientProvider to set one\");\n\treturn client;\n};\n/**\n* Use the `QueryClientProvider` component to connect and provide a `QueryClient` to your application. Also\n* calls `client.mount()`/`client.unmount()` as this component mounts/unmounts, which subscribes the client to\n* focus/online events (resuming any paused mutations and refetching as needed when the app regains focus or\n* comes back online).\n* @param props - The `client` to provide, and the `children` that get access to it.\n* @returns The provided `children`, wrapped so they can read the `QueryClient` via `useQueryClient`.\n* @example\n* ```tsx\n* import { QueryClient, QueryClientProvider } from '@tanstack/react-query'\n*\n* const queryClient = new QueryClient()\n*\n* function App() {\n* return <QueryClientProvider client={queryClient}>...</QueryClientProvider>\n* }\n* ```\n*/\nconst QueryClientProvider = ({ client, children }) => {\n\tReact.useEffect(() => {\n\t\tclient.mount();\n\t\treturn () => {\n\t\t\tclient.unmount();\n\t\t};\n\t}, [client]);\n\treturn /* @__PURE__ */ jsx(QueryClientContext.Provider, {\n\t\tvalue: client,\n\t\tchildren\n\t});\n};\n//#endregion\nexport { QueryClientContext, QueryClientProvider, useQueryClient };\n\n//# sourceMappingURL=QueryClientProvider.js.map"],"ignoreList":[0],"mappings":";;;AAOA,IAAME,IAAqBF,EAAM,cAAc,KAAK,CAAC,GAS/CG,KAAkB,MAAgB;CACvC,IAAMC,IAASJ,EAAM,WAAWE,CAAkB;CAClD,IAAIG,GAAa,OAAOA;CACxB,IAAI,CAACD,GAAQ,MAAU,MAAM,wDAAwD;CACrF,OAAOA;AACR,GAmBME,KAAuB,EAAE,WAAQ,mBACtCL,EAAM,iBACLG,EAAO,MAAM,SACA;CACZ,EAAO,QAAQ;AAChB,IACE,CAACA,CAAM,CAAC,GACY,kBAAIF,EAAmB,UAAU;CACvD,OAAOE;CACP;AACD,CAAC"}
1
+ {"version":3,"file":"QueryClientProvider.js","names":["React","React$1","QueryClientContext","useQueryClient","client","queryClient","QueryClientProvider"],"sources":["../../../../node_modules/.pnpm/@tanstack+react-query@5.104.2_react@19.3.1/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n//#region src/QueryClientProvider.tsx\n/**\n* The context that `useQueryClient` reads from. `QueryClientProvider` is the normal way to set it.\n*/\nconst QueryClientContext = React.createContext(void 0);\n/**\n* The `useQueryClient` hook returns the current `QueryClient` instance.\n* @param queryClient - Use this to use a custom `QueryClient`. Otherwise, the one from the nearest context will\n* be used.\n* @returns The current `QueryClient` instance.\n* @throws {Error} If no `queryClient` argument is passed and no `QueryClientProvider` is found in the\n* component tree.\n*/\nconst useQueryClient = (queryClient) => {\n\tconst client = React.useContext(QueryClientContext);\n\tif (queryClient) return queryClient;\n\tif (!client) throw new Error(\"No QueryClient set, use QueryClientProvider to set one\");\n\treturn client;\n};\n/**\n* Use the `QueryClientProvider` component to connect and provide a `QueryClient` to your application. Also\n* calls `client.mount()`/`client.unmount()` as this component mounts/unmounts, which subscribes the client to\n* focus/online events (resuming any paused mutations and refetching as needed when the app regains focus or\n* comes back online).\n* @param props - The `client` to provide, and the `children` that get access to it.\n* @returns The provided `children`, wrapped so they can read the `QueryClient` via `useQueryClient`.\n* @example\n* ```tsx\n* import { QueryClient, QueryClientProvider } from '@tanstack/react-query'\n*\n* const queryClient = new QueryClient()\n*\n* function App() {\n* return <QueryClientProvider client={queryClient}>...</QueryClientProvider>\n* }\n* ```\n*/\nconst QueryClientProvider = ({ client, children }) => {\n\tReact.useEffect(() => {\n\t\tclient.mount();\n\t\treturn () => {\n\t\t\tclient.unmount();\n\t\t};\n\t}, [client]);\n\treturn /* @__PURE__ */ jsx(QueryClientContext.Provider, {\n\t\tvalue: client,\n\t\tchildren\n\t});\n};\n//#endregion\nexport { QueryClientContext, QueryClientProvider, useQueryClient };\n\n//# sourceMappingURL=QueryClientProvider.js.map"],"ignoreList":[0],"mappings":";;;AAOA,IAAME,IAAqBF,EAAM,cAAc,KAAK,CAAC,GAS/CG,KAAkB,MAAgB;CACvC,IAAMC,IAASJ,EAAM,WAAWE,CAAkB;CAClD,IAAIG,GAAa,OAAOA;CACxB,IAAI,CAACD,GAAQ,MAAU,MAAM,wDAAwD;CACrF,OAAOA;AACR,GAmBME,KAAuB,EAAE,WAAQ,mBACtCL,EAAM,iBACLG,EAAO,MAAM,SACA;CACZ,EAAO,QAAQ;AAChB,IACE,CAACA,CAAM,CAAC,GACY,kBAAIF,EAAmB,UAAU;CACvD,OAAOE;CACP;AACD,CAAC"}
@@ -44,7 +44,7 @@ import Ge from "@mui/icons-material/Check";
44
44
  import Ke from "@mui/icons-material/RestartAlt";
45
45
  import qe from "@mui/icons-material/Close";
46
46
  import { NestedDropdown as Je } from "@gen-epix/ui-core-components/components/NestedMenu";
47
- //#region ../../node_modules/.pnpm/use-debounce@10.1.1_react@19.3.0/node_modules/use-debounce/dist/index.module.js
47
+ //#region ../../node_modules/.pnpm/use-debounce@10.1.1_react@19.3.1/node_modules/use-debounce/dist/index.module.js
48
48
  var Ye = /* @__PURE__ */ e(c(), 1), Xe = /* @__PURE__ */ e(n(), 1), Ze = /* @__PURE__ */ e(p(), 1), Qe = /* @__PURE__ */ e(v(), 1);
49
49
  function $e(e, t, n, r) {
50
50
  var i = this, a = I(null), o = I(0), s = I(0), c = I(null), l = I([]), u = I(), d = I(), f = I(e), p = I(!0), m = I(), h = I();