@cyberskill/shared 3.2.0 → 3.3.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/config/commitlint/index.js +8 -9
- package/dist/config/commitlint/index.js.map +1 -1
- package/dist/config/config.type.js +8 -5
- package/dist/config/config.type.js.map +1 -1
- package/dist/config/config.util.js +33 -42
- package/dist/config/config.util.js.map +1 -1
- package/dist/config/env/env.constant.js +6 -5
- package/dist/config/env/env.constant.js.map +1 -1
- package/dist/config/env/env.util.js +26 -27
- package/dist/config/env/env.util.js.map +1 -1
- package/dist/config/env/index.js +2 -7
- package/dist/config/eslint/index.js +23 -19
- package/dist/config/eslint/index.js.map +1 -1
- package/dist/config/graphql-codegen/graphql-codegen.util.js +30 -38
- package/dist/config/graphql-codegen/graphql-codegen.util.js.map +1 -1
- package/dist/config/graphql-codegen/index.js +2 -5
- package/dist/config/index.js +3 -7
- package/dist/config/lint-staged/index.js +8 -7
- package/dist/config/lint-staged/index.js.map +1 -1
- package/dist/config/storybook/index.js +2 -6
- package/dist/config/storybook/storybook.main.js +19 -18
- package/dist/config/storybook/storybook.main.js.map +1 -1
- package/dist/config/storybook/storybook.preview.js +31 -37
- package/dist/config/storybook/storybook.preview.js.map +1 -1
- package/dist/config/vitest/index.js +3 -7
- package/dist/config/vitest/vitest.e2e.js +14 -17
- package/dist/config/vitest/vitest.e2e.js.map +1 -1
- package/dist/config/vitest/vitest.unit.js +31 -32
- package/dist/config/vitest/vitest.unit.js.map +1 -1
- package/dist/constant/common.js +6 -5
- package/dist/constant/common.js.map +1 -1
- package/dist/constant/index.js +3 -7
- package/dist/constant/response-status.d.ts +186 -186
- package/dist/constant/response-status.js +254 -253
- package/dist/constant/response-status.js.map +1 -1
- package/dist/node/apollo-server/apollo-server.util.js +27 -29
- package/dist/node/apollo-server/apollo-server.util.js.map +1 -1
- package/dist/node/apollo-server/index.js +2 -7
- package/dist/node/cli/index.js +112 -113
- package/dist/node/cli/index.js.map +1 -1
- package/dist/node/command/command.type.js +8 -5
- package/dist/node/command/command.type.js.map +1 -1
- package/dist/node/command/command.util.js +136 -149
- package/dist/node/command/command.util.js.map +1 -1
- package/dist/node/command/index.js +3 -12
- package/dist/node/express/express.type.d.ts +11 -0
- package/dist/node/express/express.type.js +2 -0
- package/dist/node/express/express.util.js +74 -65
- package/dist/node/express/express.util.js.map +1 -1
- package/dist/node/express/index.js +3 -14
- package/dist/node/fs/fs.util.js +27 -51
- package/dist/node/fs/fs.util.js.map +1 -1
- package/dist/node/fs/index.js +2 -19
- package/dist/node/log/index.js +2 -8
- package/dist/node/log/log.type.js +8 -5
- package/dist/node/log/log.type.js.map +1 -1
- package/dist/node/log/log.util.js +51 -68
- package/dist/node/log/log.util.js.map +1 -1
- package/dist/node/mongo/index.js +8 -26
- package/dist/node/mongo/mongo.constant.js +6 -6
- package/dist/node/mongo/mongo.constant.js.map +1 -1
- package/dist/node/mongo/mongo.controller.mongoose.d.ts +6 -1
- package/dist/node/mongo/mongo.controller.mongoose.js +333 -467
- package/dist/node/mongo/mongo.controller.mongoose.js.map +1 -1
- package/dist/node/mongo/mongo.controller.native.js +153 -212
- package/dist/node/mongo/mongo.controller.native.js.map +1 -1
- package/dist/node/mongo/mongo.dynamic-populate.js +164 -192
- package/dist/node/mongo/mongo.dynamic-populate.js.map +1 -1
- package/dist/node/mongo/mongo.populate.js +229 -262
- package/dist/node/mongo/mongo.populate.js.map +1 -1
- package/dist/node/mongo/mongo.type.js +8 -17
- package/dist/node/mongo/mongo.type.js.map +1 -1
- package/dist/node/mongo/mongo.util.js +134 -293
- package/dist/node/mongo/mongo.util.js.map +1 -1
- package/dist/node/package/index.js +3 -11
- package/dist/node/package/package.type.js +8 -5
- package/dist/node/package/package.type.js.map +1 -1
- package/dist/node/package/package.util.js +216 -225
- package/dist/node/package/package.util.js.map +1 -1
- package/dist/node/path/index.js +3 -58
- package/dist/node/path/path.constant.js +211 -298
- package/dist/node/path/path.constant.js.map +1 -1
- package/dist/node/path/path.util.js +13 -16
- package/dist/node/path/path.util.js.map +1 -1
- package/dist/node/storage/index.js +3 -10
- package/dist/node/storage/storage.constant.js +6 -8
- package/dist/node/storage/storage.constant.js.map +1 -1
- package/dist/node/storage/storage.util.js +127 -178
- package/dist/node/storage/storage.util.js.map +1 -1
- package/dist/node/upload/index.js +4 -16
- package/dist/node/upload/upload.constant.js +58 -32
- package/dist/node/upload/upload.constant.js.map +1 -1
- package/dist/node/upload/upload.type.js +8 -5
- package/dist/node/upload/upload.type.js.map +1 -1
- package/dist/node/upload/upload.util.js +125 -137
- package/dist/node/upload/upload.util.js.map +1 -1
- package/dist/node/ws/index.js +2 -6
- package/dist/node/ws/ws.type.d.ts +7 -8
- package/dist/node/ws/ws.util.js +46 -44
- package/dist/node/ws/ws.util.js.map +1 -1
- package/dist/node_modules/.pnpm/vitest@4.1.0_@types_node@25.5.0_jsdom@29.0.0_@noble_hashes@1.8.0__vite@8.0.0_@types_nod_53aa4254f295b3c40bb8f17b6ab226b5/node_modules/vitest/dist/config.js +8 -0
- package/dist/node_modules/.pnpm/vitest@4.1.0_@types_node@25.5.0_jsdom@29.0.0_@noble_hashes@1.8.0__vite@8.0.0_@types_nod_53aa4254f295b3c40bb8f17b6ab226b5/node_modules/vitest/dist/config.js.map +1 -0
- package/dist/react/apollo-client/apollo-client.component.js +16 -18
- package/dist/react/apollo-client/apollo-client.component.js.map +1 -1
- package/dist/react/apollo-client/apollo-client.constant.js +6 -5
- package/dist/react/apollo-client/apollo-client.constant.js.map +1 -1
- package/dist/react/apollo-client/apollo-client.context.js +10 -13
- package/dist/react/apollo-client/apollo-client.context.js.map +1 -1
- package/dist/react/apollo-client/apollo-client.module.scss.js +8 -7
- package/dist/react/apollo-client/apollo-client.module.scss.js.map +1 -1
- package/dist/react/apollo-client/apollo-client.util.js +57 -75
- package/dist/react/apollo-client/apollo-client.util.js.map +1 -1
- package/dist/react/apollo-client/index.js +7 -30
- package/dist/react/apollo-client/links/index.js +2 -5
- package/dist/react/apollo-client/links/upload.js +63 -107
- package/dist/react/apollo-client/links/upload.js.map +1 -1
- package/dist/react/apollo-client-nextjs/apollo-client-nextjs.component.js +14 -16
- package/dist/react/apollo-client-nextjs/apollo-client-nextjs.component.js.map +1 -1
- package/dist/react/apollo-client-nextjs/apollo-client-nextjs.rsc.js +8 -7
- package/dist/react/apollo-client-nextjs/apollo-client-nextjs.rsc.js.map +1 -1
- package/dist/react/apollo-client-nextjs/apollo-client-nextjs.util.js +14 -14
- package/dist/react/apollo-client-nextjs/apollo-client-nextjs.util.js.map +1 -1
- package/dist/react/apollo-client-nextjs/index.js +3 -7
- package/dist/react/apollo-error/apollo-error.component.js +57 -69
- package/dist/react/apollo-error/apollo-error.component.js.map +1 -1
- package/dist/react/apollo-error/apollo-error.context.js +7 -6
- package/dist/react/apollo-error/apollo-error.context.js.map +1 -1
- package/dist/react/apollo-error/apollo-error.hook.js +10 -10
- package/dist/react/apollo-error/apollo-error.hook.js.map +1 -1
- package/dist/react/apollo-error/apollo-error.module.scss.js +15 -11
- package/dist/react/apollo-error/apollo-error.module.scss.js.map +1 -1
- package/dist/react/apollo-error/apollo-error.provider.js +31 -25
- package/dist/react/apollo-error/apollo-error.provider.js.map +1 -1
- package/dist/react/apollo-error/apollo-error.util.js +14 -16
- package/dist/react/apollo-error/apollo-error.util.js.map +1 -1
- package/dist/react/apollo-error/index.js +5 -15
- package/dist/react/i18next/i18next.hook.js +7 -6
- package/dist/react/i18next/i18next.hook.js.map +1 -1
- package/dist/react/i18next/i18next.util.js +9 -8
- package/dist/react/i18next/i18next.util.js.map +1 -1
- package/dist/react/i18next/index.js +3 -7
- package/dist/react/loading/index.js +3 -9
- package/dist/react/loading/loading.component.js +47 -48
- package/dist/react/loading/loading.component.js.map +1 -1
- package/dist/react/loading/loading.context.js +7 -6
- package/dist/react/loading/loading.context.js.map +1 -1
- package/dist/react/loading/loading.hook.js +11 -11
- package/dist/react/loading/loading.hook.js.map +1 -1
- package/dist/react/loading/loading.module.scss.js +18 -15
- package/dist/react/loading/loading.module.scss.js.map +1 -1
- package/dist/react/loading/loading.provider.js +26 -18
- package/dist/react/loading/loading.provider.js.map +1 -1
- package/dist/react/log/index.js +2 -6
- package/dist/react/log/log.util.d.ts +8 -0
- package/dist/react/log/log.util.js +33 -29
- package/dist/react/log/log.util.js.map +1 -1
- package/dist/react/next-intl/index.js +6 -14
- package/dist/react/next-intl/next-intl.constant.js +16 -15
- package/dist/react/next-intl/next-intl.constant.js.map +1 -1
- package/dist/react/next-intl/next-intl.context.js +7 -6
- package/dist/react/next-intl/next-intl.context.js.map +1 -1
- package/dist/react/next-intl/next-intl.hoc.js +20 -23
- package/dist/react/next-intl/next-intl.hoc.js.map +1 -1
- package/dist/react/next-intl/next-intl.hook.js +13 -14
- package/dist/react/next-intl/next-intl.hook.js.map +1 -1
- package/dist/react/next-intl/next-intl.provider.js +28 -23
- package/dist/react/next-intl/next-intl.provider.js.map +1 -1
- package/dist/react/storage/index.js +3 -7
- package/dist/react/storage/storage.hook.js +61 -58
- package/dist/react/storage/storage.hook.js.map +1 -1
- package/dist/react/storage/storage.util.js +36 -68
- package/dist/react/storage/storage.util.js.map +1 -1
- package/dist/react/toast/index.js +2 -6
- package/dist/react/userback/index.js +2 -5
- package/dist/react/userback/userback.component.js +27 -27
- package/dist/react/userback/userback.component.js.map +1 -1
- package/dist/style.css +2 -1
- package/dist/typescript/common.type.js +8 -5
- package/dist/typescript/common.type.js.map +1 -1
- package/dist/typescript/index.js +2 -5
- package/dist/util/common/common.util.js +119 -48
- package/dist/util/common/common.util.js.map +1 -1
- package/dist/util/common/index.js +2 -9
- package/dist/util/index.js +6 -27
- package/dist/util/object/index.d.ts +3 -0
- package/dist/util/object/index.js +2 -10
- package/dist/util/object/object.util.js +94 -128
- package/dist/util/object/object.util.js.map +1 -1
- package/dist/util/serializer/index.js +2 -5
- package/dist/util/serializer/serializer.util.js +73 -78
- package/dist/util/serializer/serializer.util.js.map +1 -1
- package/dist/util/string/index.d.ts +3 -0
- package/dist/util/string/index.js +2 -10
- package/dist/util/string/string.util.js +59 -71
- package/dist/util/string/string.util.js.map +1 -1
- package/dist/util/validate/index.d.ts +3 -0
- package/dist/util/validate/index.js +2 -5
- package/dist/util/validate/validate.util.js +13 -39
- package/dist/util/validate/validate.util.js.map +1 -1
- package/package.json +29 -27
- package/dist/config/env/index.js.map +0 -1
- package/dist/config/graphql-codegen/index.js.map +0 -1
- package/dist/config/index.js.map +0 -1
- package/dist/config/storybook/index.js.map +0 -1
- package/dist/config/vitest/index.js.map +0 -1
- package/dist/constant/index.js.map +0 -1
- package/dist/node/apollo-server/index.js.map +0 -1
- package/dist/node/command/index.js.map +0 -1
- package/dist/node/express/index.js.map +0 -1
- package/dist/node/fs/index.js.map +0 -1
- package/dist/node/log/index.js.map +0 -1
- package/dist/node/mongo/index.js.map +0 -1
- package/dist/node/package/index.js.map +0 -1
- package/dist/node/path/index.js.map +0 -1
- package/dist/node/storage/index.js.map +0 -1
- package/dist/node/upload/index.js.map +0 -1
- package/dist/node/ws/index.js.map +0 -1
- package/dist/node_modules/.pnpm/vitest@4.0.18_@types_node@25.3.5_jiti@2.6.1_jsdom@28.1.0_@noble_hashes@1.8.0__sass@1.97.3_tsx@4.21.0_yaml@2.8.2/node_modules/vitest/dist/config.js +0 -7
- package/dist/node_modules/.pnpm/vitest@4.0.18_@types_node@25.3.5_jiti@2.6.1_jsdom@28.1.0_@noble_hashes@1.8.0__sass@1.97.3_tsx@4.21.0_yaml@2.8.2/node_modules/vitest/dist/config.js.map +0 -1
- package/dist/react/apollo-client/index.js.map +0 -1
- package/dist/react/apollo-client/links/index.js.map +0 -1
- package/dist/react/apollo-client-nextjs/index.js.map +0 -1
- package/dist/react/apollo-error/index.js.map +0 -1
- package/dist/react/i18next/index.js.map +0 -1
- package/dist/react/loading/index.js.map +0 -1
- package/dist/react/log/index.js.map +0 -1
- package/dist/react/next-intl/index.js.map +0 -1
- package/dist/react/storage/index.js.map +0 -1
- package/dist/react/toast/index.js.map +0 -1
- package/dist/react/userback/index.js.map +0 -1
- package/dist/typescript/index.js.map +0 -1
- package/dist/util/common/index.js.map +0 -1
- package/dist/util/index.js.map +0 -1
- package/dist/util/object/index.js.map +0 -1
- package/dist/util/serializer/index.js.map +0 -1
- package/dist/util/string/index.js.map +0 -1
- package/dist/util/validate/index.js.map +0 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
|
|
1
|
+
import { getClient as e } from "./apollo-client-nextjs.util.js";
|
|
2
|
+
import { registerApolloClient as t } from "@apollo/client-integration-nextjs";
|
|
3
|
+
//#region src/react/apollo-client-nextjs/apollo-client-nextjs.rsc.ts
|
|
4
|
+
var n = (n = {}) => t(() => e(n));
|
|
5
|
+
//#endregion
|
|
6
|
+
export { n as makeClient };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=apollo-client-nextjs.rsc.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apollo-client-nextjs.rsc.js","sources":["../../../src/react/apollo-client-nextjs/apollo-client-nextjs.rsc.ts"],"sourcesContent":["import { registerApolloClient } from '@apollo/client-integration-nextjs';\n\nimport type { I_ApolloOptions } from '../apollo-client/index.js';\n\nimport { getClient } from './apollo-client-nextjs.util.js';\n\n/**\n * Creates a registered Apollo Client factory for Next.js server components.\n * This function creates a client factory that is registered with Next.js for\n * proper server-side rendering support. The factory function ensures that\n * each request gets its own Apollo Client instance, which is essential for\n * SSR compatibility and preventing client state leakage between requests.\n *\n * @param options - Configuration options for the Apollo Client including URI, WebSocket URL, and custom links.\n * @returns A registered Apollo Client factory function that can be used with Next.js server components.\n */\nexport const makeClient = (options: I_ApolloOptions = {}) => registerApolloClient(() => getClient(options));\n"],"
|
|
1
|
+
{"version":3,"file":"apollo-client-nextjs.rsc.js","names":[],"sources":["../../../src/react/apollo-client-nextjs/apollo-client-nextjs.rsc.ts"],"sourcesContent":["import { registerApolloClient } from '@apollo/client-integration-nextjs';\n\nimport type { I_ApolloOptions } from '../apollo-client/index.js';\n\nimport { getClient } from './apollo-client-nextjs.util.js';\n\n/**\n * Creates a registered Apollo Client factory for Next.js server components.\n * This function creates a client factory that is registered with Next.js for\n * proper server-side rendering support. The factory function ensures that\n * each request gets its own Apollo Client instance, which is essential for\n * SSR compatibility and preventing client state leakage between requests.\n *\n * @param options - Configuration options for the Apollo Client including URI, WebSocket URL, and custom links.\n * @returns A registered Apollo Client factory function that can be used with Next.js server components.\n */\nexport const makeClient = (options: I_ApolloOptions = {}) => registerApolloClient(() => getClient(options));\n"],"mappings":";;;AAgBA,IAAa,KAAc,IAA2B,EAAE,KAAK,QAA2B,EAAU,EAAQ,CAAC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { createApolloLinks as e } from "../apollo-client/apollo-client.util.js";
|
|
2
|
+
import { ApolloClient as t, InMemoryCache as n } from "@apollo/client-integration-nextjs";
|
|
3
|
+
import { ApolloLink as r } from "@apollo/client/link";
|
|
4
|
+
//#region src/react/apollo-client-nextjs/apollo-client-nextjs.util.ts
|
|
5
|
+
function i(i = {}) {
|
|
6
|
+
return new t({
|
|
7
|
+
link: r.from(e(i)),
|
|
8
|
+
cache: new n(),
|
|
9
|
+
...i
|
|
10
|
+
});
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
//# sourceMappingURL=apollo-client-nextjs.util.js.map
|
|
12
|
+
//#endregion
|
|
13
|
+
export { i as getClient };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=apollo-client-nextjs.util.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apollo-client-nextjs.util.js","sources":["../../../src/react/apollo-client-nextjs/apollo-client-nextjs.util.ts"],"sourcesContent":["import { ApolloClient, InMemoryCache } from '@apollo/client-integration-nextjs';\nimport { ApolloLink } from '@apollo/client/link';\n\nimport type { I_ApolloOptions } from '../apollo-client/index.js';\n\nimport { createApolloLinks } from '../apollo-client/apollo-client.util.js';\n\n/**\n * Creates a Next.js optimized Apollo Client instance.\n * This function creates an Apollo Client specifically configured for Next.js applications,\n * using the Next.js integration package for proper server-side rendering support.\n * The client includes all standard Apollo features like error handling, logging,\n * file uploads, and WebSocket subscriptions, but is optimized for Next.js environments.\n *\n * @param options - Configuration options for the Apollo Client including URI, WebSocket URL, and custom links.\n * @returns A Next.js optimized Apollo Client instance ready for use in Next.js applications.\n */\nexport function getClient(options: I_ApolloOptions = {}) {\n const link = ApolloLink.from(createApolloLinks(options));\n\n return new ApolloClient({\n link,\n cache: new InMemoryCache(),\n ...options,\n });\n}\n"],"
|
|
1
|
+
{"version":3,"file":"apollo-client-nextjs.util.js","names":[],"sources":["../../../src/react/apollo-client-nextjs/apollo-client-nextjs.util.ts"],"sourcesContent":["import { ApolloClient, InMemoryCache } from '@apollo/client-integration-nextjs';\nimport { ApolloLink } from '@apollo/client/link';\n\nimport type { I_ApolloOptions } from '../apollo-client/index.js';\n\nimport { createApolloLinks } from '../apollo-client/apollo-client.util.js';\n\n/**\n * Creates a Next.js optimized Apollo Client instance.\n * This function creates an Apollo Client specifically configured for Next.js applications,\n * using the Next.js integration package for proper server-side rendering support.\n * The client includes all standard Apollo features like error handling, logging,\n * file uploads, and WebSocket subscriptions, but is optimized for Next.js environments.\n *\n * @param options - Configuration options for the Apollo Client including URI, WebSocket URL, and custom links.\n * @returns A Next.js optimized Apollo Client instance ready for use in Next.js applications.\n */\nexport function getClient(options: I_ApolloOptions = {}) {\n const link = ApolloLink.from(createApolloLinks(options));\n\n return new ApolloClient({\n link,\n cache: new InMemoryCache(),\n ...options,\n });\n}\n"],"mappings":";;;;AAiBA,SAAgB,EAAU,IAA2B,EAAE,EAAE;AAGrD,QAAO,IAAI,EAAa;EACpB,MAHS,EAAW,KAAK,EAAkB,EAAQ,CAAC;EAIpD,OAAO,IAAI,GAAe;EAC1B,GAAG;EACN,CAAC"}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
4
|
-
e as ApolloProvider,
|
|
5
|
-
l as getClient
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { getClient as e } from "./apollo-client-nextjs.util.js";
|
|
2
|
+
import { ApolloProvider as t } from "./apollo-client-nextjs.component.js";
|
|
3
|
+
export { t as ApolloProvider, e as getClient };
|
|
@@ -1,71 +1,59 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { validate as E } from "../../util/validate/validate.util.js";
|
|
4
|
-
import { ApolloErrorContext as h } from "./apollo-error.context.js";
|
|
1
|
+
import { validate as e } from "../../util/validate/validate.util.js";
|
|
2
|
+
import { ApolloErrorContext as t } from "./apollo-error.context.js";
|
|
5
3
|
import n from "./apollo-error.module.scss.js";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
{
|
|
58
|
-
type: "button",
|
|
59
|
-
className: n["btn-retry"],
|
|
60
|
-
onClick: () => window.location.reload(),
|
|
61
|
-
"aria-label": "Reload page"
|
|
62
|
-
},
|
|
63
|
-
"Reload"
|
|
64
|
-
), " ", !E.isEmpty(e) && m),
|
|
65
|
-
/* @__PURE__ */ t.createElement("div", { className: n["error-details"] }, i && "locations" in e && e.locations && /* @__PURE__ */ t.createElement("pre", { className: "locations" }, /* @__PURE__ */ t.createElement("strong", null, "Locations:"), " ", JSON.stringify(e.locations, null, 4)), i && "path" in e && e.path && /* @__PURE__ */ t.createElement("pre", { className: "path" }, /* @__PURE__ */ t.createElement("strong", null, "Path:"), " ", JSON.stringify(e.path, null, 4)), i && "extensions" in e && e.extensions && /* @__PURE__ */ t.createElement("pre", { className: "extensions" }, /* @__PURE__ */ t.createElement("strong", null, "Extensions:"), " ", JSON.stringify(e.extensions, null, 4)), !i && /* @__PURE__ */ t.createElement("pre", { className: "error-details" }, /* @__PURE__ */ t.createElement("strong", null, "Error Details:"), " ", E.isEmpty(e) ? m : JSON.stringify(e, null, 4)))
|
|
66
|
-
));
|
|
4
|
+
import * as r from "react";
|
|
5
|
+
import { use as i, useEffect as a, useRef as o } from "react";
|
|
6
|
+
//#region src/react/apollo-error/apollo-error.component.tsx
|
|
7
|
+
var s = "button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])";
|
|
8
|
+
function c() {
|
|
9
|
+
let { error: c, hideError: l } = i(t) ?? {}, u = o(null), d = o(null);
|
|
10
|
+
a(() => {
|
|
11
|
+
if (!c || !l) return;
|
|
12
|
+
let e = (e) => {
|
|
13
|
+
e.key === "Escape" && l();
|
|
14
|
+
};
|
|
15
|
+
return window.addEventListener("keydown", e), () => {
|
|
16
|
+
window.removeEventListener("keydown", e);
|
|
17
|
+
};
|
|
18
|
+
}, [c, l]), a(() => {
|
|
19
|
+
c && u.current ? (d.current = document.activeElement, u.current.focus()) : !c && d.current && (d.current.focus(), d.current = null);
|
|
20
|
+
}, [c]);
|
|
21
|
+
let f = (e) => {
|
|
22
|
+
if (e.key !== "Tab" || !u.current) return;
|
|
23
|
+
let t = [...u.current.querySelectorAll(s)].filter((e) => !e.hasAttribute("disabled"));
|
|
24
|
+
if (t.length === 0) return;
|
|
25
|
+
let n = t[0], r = t.at(-1);
|
|
26
|
+
!n || !r || (e.shiftKey ? document.activeElement === n && (e.preventDefault(), r.focus()) : document.activeElement === r && (e.preventDefault(), n.focus()));
|
|
27
|
+
};
|
|
28
|
+
if (!c) return null;
|
|
29
|
+
let p = "locations" in c || "path" in c || "extensions" in c, m = "message" in c ? c.message : "Unknown error occurred";
|
|
30
|
+
return /* @__PURE__ */ r.createElement("div", { className: n["modal-backdrop"] }, /* @__PURE__ */ r.createElement("div", {
|
|
31
|
+
ref: u,
|
|
32
|
+
className: n["modal-content"],
|
|
33
|
+
role: "dialog",
|
|
34
|
+
"aria-modal": "true",
|
|
35
|
+
"aria-labelledby": "apollo-error-title",
|
|
36
|
+
"aria-describedby": "apollo-error-details",
|
|
37
|
+
tabIndex: -1,
|
|
38
|
+
onKeyDown: f
|
|
39
|
+
}, /* @__PURE__ */ r.createElement("button", {
|
|
40
|
+
type: "button",
|
|
41
|
+
className: n["btn-close"],
|
|
42
|
+
onClick: l,
|
|
43
|
+
"aria-label": "Close error details (Esc)",
|
|
44
|
+
"aria-keyshortcuts": "Escape",
|
|
45
|
+
title: "Close error details (Esc)"
|
|
46
|
+
}, "✕"), /* @__PURE__ */ r.createElement("div", { className: n["error-title"] }, /* @__PURE__ */ r.createElement("button", {
|
|
47
|
+
type: "button",
|
|
48
|
+
className: n["btn-retry"],
|
|
49
|
+
onClick: () => window.location.reload(),
|
|
50
|
+
"aria-label": "Reload page"
|
|
51
|
+
}, "Reload"), " ", /* @__PURE__ */ r.createElement("span", { id: "apollo-error-title" }, m || "Error details")), /* @__PURE__ */ r.createElement("div", {
|
|
52
|
+
id: "apollo-error-details",
|
|
53
|
+
className: n["error-details"]
|
|
54
|
+
}, p && "locations" in c && c.locations && /* @__PURE__ */ r.createElement("pre", { className: "locations" }, /* @__PURE__ */ r.createElement("strong", null, "Locations:"), " ", JSON.stringify(c.locations, null, 4)), p && "path" in c && c.path && /* @__PURE__ */ r.createElement("pre", { className: "path" }, /* @__PURE__ */ r.createElement("strong", null, "Path:"), " ", JSON.stringify(c.path, null, 4)), p && "extensions" in c && c.extensions && /* @__PURE__ */ r.createElement("pre", { className: "extensions" }, /* @__PURE__ */ r.createElement("strong", null, "Extensions:"), " ", JSON.stringify(c.extensions, null, 4)), !p && /* @__PURE__ */ r.createElement("pre", { className: "error-details" }, /* @__PURE__ */ r.createElement("strong", null, "Error Details:"), " ", e.isEmpty(c) ? m : JSON.stringify(c, null, 4)))));
|
|
67
55
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
//# sourceMappingURL=apollo-error.component.js.map
|
|
56
|
+
//#endregion
|
|
57
|
+
export { c as ApolloErrorComponent };
|
|
58
|
+
|
|
59
|
+
//# sourceMappingURL=apollo-error.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apollo-error.component.js","sources":["../../../src/react/apollo-error/apollo-error.component.tsx"],"sourcesContent":["import * as React from 'react';\nimport { use, useEffect, useRef } from 'react';\n\nimport { validate } from '#util/validate/validate.util.js';\n\nimport { ApolloErrorContext } from './apollo-error.context.js';\nimport style from './apollo-error.module.scss';\n\nconst FOCUSABLE_SELECTORS = 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])';\n\n/**\n * Apollo Error Component that displays detailed error information in a modal.\n * This component provides a comprehensive error display interface that shows\n * GraphQL errors and other error types with detailed information for debugging purposes.\n *\n * Features:\n * - Modal overlay with backdrop for focus\n * - Detailed error categorization and display\n * - Reload functionality for error recovery\n * - Close button to dismiss the error modal\n * - Structured display of different error types\n * - Extra information display for debugging\n *\n * @returns A modal component displaying Apollo error details, or null if no error is present.\n */\nexport function ApolloErrorComponent() {\n const context = use(ApolloErrorContext);\n const { error, hideError } = context ?? {};\n const dialogRef = useRef<HTMLDivElement>(null);\n const previousFocusRef = useRef<HTMLElement | null>(null);\n\n useEffect(() => {\n if (!error || !hideError)\n return;\n\n const handleKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Escape') {\n hideError();\n }\n };\n\n window.addEventListener('keydown', handleKeyDown);\n\n return () => {\n window.removeEventListener('keydown', handleKeyDown);\n };\n }, [error, hideError]);\n\n useEffect(() => {\n if (error && dialogRef.current) {\n previousFocusRef.current = document.activeElement as HTMLElement;\n dialogRef.current.focus();\n }\n else if (!error && previousFocusRef.current) {\n previousFocusRef.current.focus();\n previousFocusRef.current = null;\n }\n }, [error]);\n\n const handleFocusTrap = (event: React.KeyboardEvent<HTMLDivElement>) => {\n if (event.key !== 'Tab' || !dialogRef.current)\n return;\n\n const focusableElements = [...dialogRef.current.querySelectorAll<HTMLElement>(FOCUSABLE_SELECTORS)].filter(el => !el.hasAttribute('disabled'));\n\n if (focusableElements.length === 0)\n return;\n\n const firstElement = focusableElements[0];\n const lastElement = focusableElements.at(-1);\n\n if (!firstElement || !lastElement)\n return;\n\n if (event.shiftKey) {\n if (document.activeElement === firstElement) {\n event.preventDefault();\n lastElement.focus();\n }\n }\n else if (document.activeElement === lastElement) {\n event.preventDefault();\n firstElement.focus();\n }\n };\n\n if (!error) {\n return null;\n }\n\n const isGraphQLError = 'locations' in error || 'path' in error || 'extensions' in error;\n const errorMessage = 'message' in error ? error.message : 'Unknown error occurred';\n\n return (\n <div className={style['modal-backdrop']}>\n <div\n ref={dialogRef}\n className={style['modal-content']}\n role=\"dialog\"\n aria-modal=\"true\"\n aria-labelledby=\"apollo-error-title\"\n tabIndex={-1}\n onKeyDown={handleFocusTrap}\n >\n <button\n type=\"button\"\n className={style['btn-close']}\n onClick={hideError}\n aria-label=\"Close error details\"\n title=\"Close error details\"\n >\n ✕\n </button>\n <div
|
|
1
|
+
{"version":3,"file":"apollo-error.component.js","names":[],"sources":["../../../src/react/apollo-error/apollo-error.component.tsx"],"sourcesContent":["import * as React from 'react';\nimport { use, useEffect, useRef } from 'react';\n\nimport { validate } from '#util/validate/validate.util.js';\n\nimport { ApolloErrorContext } from './apollo-error.context.js';\nimport style from './apollo-error.module.scss';\n\nconst FOCUSABLE_SELECTORS = 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])';\n\n/**\n * Apollo Error Component that displays detailed error information in a modal.\n * This component provides a comprehensive error display interface that shows\n * GraphQL errors and other error types with detailed information for debugging purposes.\n *\n * Features:\n * - Modal overlay with backdrop for focus\n * - Detailed error categorization and display\n * - Reload functionality for error recovery\n * - Close button to dismiss the error modal\n * - Structured display of different error types\n * - Extra information display for debugging\n *\n * @returns A modal component displaying Apollo error details, or null if no error is present.\n */\nexport function ApolloErrorComponent() {\n const context = use(ApolloErrorContext);\n const { error, hideError } = context ?? {};\n const dialogRef = useRef<HTMLDivElement>(null);\n const previousFocusRef = useRef<HTMLElement | null>(null);\n\n useEffect(() => {\n if (!error || !hideError)\n return;\n\n const handleKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Escape') {\n hideError();\n }\n };\n\n window.addEventListener('keydown', handleKeyDown);\n\n return () => {\n window.removeEventListener('keydown', handleKeyDown);\n };\n }, [error, hideError]);\n\n useEffect(() => {\n if (error && dialogRef.current) {\n previousFocusRef.current = document.activeElement as HTMLElement;\n dialogRef.current.focus();\n }\n else if (!error && previousFocusRef.current) {\n previousFocusRef.current.focus();\n previousFocusRef.current = null;\n }\n }, [error]);\n\n const handleFocusTrap = (event: React.KeyboardEvent<HTMLDivElement>) => {\n if (event.key !== 'Tab' || !dialogRef.current)\n return;\n\n const focusableElements = [...dialogRef.current.querySelectorAll<HTMLElement>(FOCUSABLE_SELECTORS)].filter(el => !el.hasAttribute('disabled'));\n\n if (focusableElements.length === 0)\n return;\n\n const firstElement = focusableElements[0];\n const lastElement = focusableElements.at(-1);\n\n if (!firstElement || !lastElement)\n return;\n\n if (event.shiftKey) {\n if (document.activeElement === firstElement) {\n event.preventDefault();\n lastElement.focus();\n }\n }\n else if (document.activeElement === lastElement) {\n event.preventDefault();\n firstElement.focus();\n }\n };\n\n if (!error) {\n return null;\n }\n\n const isGraphQLError = 'locations' in error || 'path' in error || 'extensions' in error;\n const errorMessage = 'message' in error ? error.message : 'Unknown error occurred';\n\n return (\n <div className={style['modal-backdrop']}>\n <div\n ref={dialogRef}\n className={style['modal-content']}\n role=\"dialog\"\n aria-modal=\"true\"\n aria-labelledby=\"apollo-error-title\"\n aria-describedby=\"apollo-error-details\"\n tabIndex={-1}\n onKeyDown={handleFocusTrap}\n >\n <button\n type=\"button\"\n className={style['btn-close']}\n onClick={hideError}\n aria-label=\"Close error details (Esc)\"\n aria-keyshortcuts=\"Escape\"\n title=\"Close error details (Esc)\"\n >\n ✕\n </button>\n <div className={style['error-title']}>\n <button\n type=\"button\"\n className={style['btn-retry']}\n onClick={() => window.location.reload()}\n aria-label=\"Reload page\"\n >\n Reload\n </button>\n {' '}\n <span id=\"apollo-error-title\">\n {errorMessage || 'Error details'}\n </span>\n </div>\n <div id=\"apollo-error-details\" className={style['error-details']}>\n {isGraphQLError && 'locations' in error && error.locations && (\n <pre className=\"locations\">\n <strong>Locations:</strong>\n {' '}\n {JSON.stringify(error.locations, null, 4)}\n </pre>\n )}\n {isGraphQLError && 'path' in error && error.path && (\n <pre className=\"path\">\n <strong>Path:</strong>\n {' '}\n {JSON.stringify(error.path, null, 4)}\n </pre>\n )}\n {isGraphQLError && 'extensions' in error && error.extensions && (\n <pre className=\"extensions\">\n <strong>Extensions:</strong>\n {' '}\n {JSON.stringify(error.extensions, null, 4)}\n </pre>\n )}\n {!isGraphQLError && (\n <pre className=\"error-details\">\n <strong>Error Details:</strong>\n {' '}\n {validate.isEmpty(error) ? errorMessage : JSON.stringify(error, null, 4)}\n </pre>\n )}\n </div>\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;AAQA,IAAM,IAAsB;AAiB5B,SAAgB,IAAuB;CAEnC,IAAM,EAAE,UAAO,iBADC,EAAI,EAAmB,IACC,EAAE,EACpC,IAAY,EAAuB,KAAK,EACxC,IAAmB,EAA2B,KAAK;AAmBzD,CAjBA,QAAgB;AACZ,MAAI,CAAC,KAAS,CAAC,EACX;EAEJ,IAAM,KAAiB,MAAyB;AAC5C,GAAI,EAAM,QAAQ,YACd,GAAW;;AAMnB,SAFA,OAAO,iBAAiB,WAAW,EAAc,QAEpC;AACT,UAAO,oBAAoB,WAAW,EAAc;;IAEzD,CAAC,GAAO,EAAU,CAAC,EAEtB,QAAgB;AACZ,EAAI,KAAS,EAAU,WACnB,EAAiB,UAAU,SAAS,eACpC,EAAU,QAAQ,OAAO,IAEpB,CAAC,KAAS,EAAiB,YAChC,EAAiB,QAAQ,OAAO,EAChC,EAAiB,UAAU;IAEhC,CAAC,EAAM,CAAC;CAEX,IAAM,KAAmB,MAA+C;AACpE,MAAI,EAAM,QAAQ,SAAS,CAAC,EAAU,QAClC;EAEJ,IAAM,IAAoB,CAAC,GAAG,EAAU,QAAQ,iBAA8B,EAAoB,CAAC,CAAC,QAAO,MAAM,CAAC,EAAG,aAAa,WAAW,CAAC;AAE9I,MAAI,EAAkB,WAAW,EAC7B;EAEJ,IAAM,IAAe,EAAkB,IACjC,IAAc,EAAkB,GAAG,GAAG;AAExC,GAAC,KAAgB,CAAC,MAGlB,EAAM,WACF,SAAS,kBAAkB,MAC3B,EAAM,gBAAgB,EACtB,EAAY,OAAO,IAGlB,SAAS,kBAAkB,MAChC,EAAM,gBAAgB,EACtB,EAAa,OAAO;;AAI5B,KAAI,CAAC,EACD,QAAO;CAGX,IAAM,IAAiB,eAAe,KAAS,UAAU,KAAS,gBAAgB,GAC5E,IAAe,aAAa,IAAQ,EAAM,UAAU;AAE1D,QACI,kBAAA,cAAC,OAAD,EAAK,WAAW,EAAM,mBAkEhB,EAjEF,kBAAA,cAAC,OAAD;EACI,KAAK;EACL,WAAW,EAAM;EACjB,MAAK;EACL,cAAW;EACX,mBAAgB;EAChB,oBAAiB;EACjB,UAAU;EACV,WAAW;EAwDT,EAtDF,kBAAA,cAAC,UAAD;EACI,MAAK;EACL,WAAW,EAAM;EACjB,SAAS;EACT,cAAW;EACX,qBAAkB;EAClB,OAAM;EAGD,EAFR,IAEQ,EACT,kBAAA,cAAC,OAAD,EAAK,WAAW,EAAM,gBAahB,EAZF,kBAAA,cAAC,UAAD;EACI,MAAK;EACL,WAAW,EAAM;EACjB,eAAe,OAAO,SAAS,QAAQ;EACvC,cAAW;EAGN,EAFR,SAEQ,EACR,KACD,kBAAA,cAAC,QAAD,EAAM,IAAG,sBAEF,EADF,KAAgB,gBACd,CACL,EACN,kBAAA,cAAC,OAAD;EAAK,IAAG;EAAuB,WAAW,EAAM;EA6B1C,EA5BD,KAAkB,eAAe,KAAS,EAAM,aAC7C,kBAAA,cAAC,OAAD,EAAK,WAAU,aAIT,EAHF,kBAAA,cAAC,UAAA,MAAO,aAAmB,EAC1B,KACA,KAAK,UAAU,EAAM,WAAW,MAAM,EAAE,CACvC,EAET,KAAkB,UAAU,KAAS,EAAM,QACxC,kBAAA,cAAC,OAAD,EAAK,WAAU,QAIT,EAHF,kBAAA,cAAC,UAAA,MAAO,QAAc,EACrB,KACA,KAAK,UAAU,EAAM,MAAM,MAAM,EAAE,CAClC,EAET,KAAkB,gBAAgB,KAAS,EAAM,cAC9C,kBAAA,cAAC,OAAD,EAAK,WAAU,cAIT,EAHF,kBAAA,cAAC,UAAA,MAAO,cAAoB,EAC3B,KACA,KAAK,UAAU,EAAM,YAAY,MAAM,EAAE,CACxC,EAET,CAAC,KACE,kBAAA,cAAC,OAAD,EAAK,WAAU,iBAIT,EAHF,kBAAA,cAAC,UAAA,MAAO,iBAAuB,EAC9B,KACA,EAAS,QAAQ,EAAM,GAAG,IAAe,KAAK,UAAU,GAAO,MAAM,EAAE,CACtE,CAER,CACJ,CACJ"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { createContext as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
6
|
-
|
|
1
|
+
import { createContext as e } from "react";
|
|
2
|
+
//#region src/react/apollo-error/apollo-error.context.tsx
|
|
3
|
+
var t = e(void 0);
|
|
4
|
+
//#endregion
|
|
5
|
+
export { t as ApolloErrorContext };
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=apollo-error.context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apollo-error.context.js","sources":["../../../src/react/apollo-error/apollo-error.context.tsx"],"sourcesContent":["import { createContext } from 'react';\n\nimport type { I_ApolloErrorContext } from './apollo-error.type.js';\n\nexport const ApolloErrorContext = createContext<I_ApolloErrorContext | undefined>(undefined);\n"],"
|
|
1
|
+
{"version":3,"file":"apollo-error.context.js","names":[],"sources":["../../../src/react/apollo-error/apollo-error.context.tsx"],"sourcesContent":["import { createContext } from 'react';\n\nimport type { I_ApolloErrorContext } from './apollo-error.type.js';\n\nexport const ApolloErrorContext = createContext<I_ApolloErrorContext | undefined>(undefined);\n"],"mappings":";;AAIA,IAAa,IAAqB,EAAgD,KAAA,EAAU"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ApolloErrorContext as e } from "./apollo-error.context.js";
|
|
2
|
+
import { use as t } from "react";
|
|
3
|
+
//#region src/react/apollo-error/apollo-error.hook.tsx
|
|
3
4
|
function n() {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return r;
|
|
5
|
+
let n = t(e);
|
|
6
|
+
if (!n) throw Error("useApolloError must be used within ApolloErrorProvider");
|
|
7
|
+
return n;
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
//# sourceMappingURL=apollo-error.hook.js.map
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as useApolloError };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=apollo-error.hook.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apollo-error.hook.js","sources":["../../../src/react/apollo-error/apollo-error.hook.tsx"],"sourcesContent":["import { use } from 'react';\n\nimport { ApolloErrorContext } from './apollo-error.context.js';\n\n/**\n * React hook that provides access to Apollo error context.\n * This hook retrieves the Apollo error context which contains the current error state\n * and methods to show or hide errors. It provides a convenient way to access error\n * handling functionality within components.\n *\n * The hook will throw an error if used outside of an ApolloErrorProvider,\n * ensuring proper context usage and providing clear error messages for debugging.\n *\n * @returns The Apollo error context containing error state and control methods.\n * @throws {Error} When used outside of an ApolloErrorProvider context.\n */\nexport function useApolloError() {\n const context = use(ApolloErrorContext);\n\n if (!context) {\n throw new Error('useApolloError must be used within ApolloErrorProvider');\n }\n\n return context;\n}\n"],"
|
|
1
|
+
{"version":3,"file":"apollo-error.hook.js","names":[],"sources":["../../../src/react/apollo-error/apollo-error.hook.tsx"],"sourcesContent":["import { use } from 'react';\n\nimport { ApolloErrorContext } from './apollo-error.context.js';\n\n/**\n * React hook that provides access to Apollo error context.\n * This hook retrieves the Apollo error context which contains the current error state\n * and methods to show or hide errors. It provides a convenient way to access error\n * handling functionality within components.\n *\n * The hook will throw an error if used outside of an ApolloErrorProvider,\n * ensuring proper context usage and providing clear error messages for debugging.\n *\n * @returns The Apollo error context containing error state and control methods.\n * @throws {Error} When used outside of an ApolloErrorProvider context.\n */\nexport function useApolloError() {\n const context = use(ApolloErrorContext);\n\n if (!context) {\n throw new Error('useApolloError must be used within ApolloErrorProvider');\n }\n\n return context;\n}\n"],"mappings":";;;AAgBA,SAAgB,IAAiB;CAC7B,IAAM,IAAU,EAAI,EAAmB;AAEvC,KAAI,CAAC,EACD,OAAU,MAAM,yDAAyD;AAG7E,QAAO"}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
//#region src/react/apollo-error/apollo-error.module.scss
|
|
2
|
+
var e = "_main_199u4_80", t = "_network_199u4_83", n = "_extra_199u4_86", r = {
|
|
3
|
+
"modal-backdrop": "_modal-backdrop_199u4_1",
|
|
4
|
+
"modal-content": "_modal-content_199u4_11",
|
|
5
|
+
"btn-close": "_btn-close_199u4_22",
|
|
6
|
+
"error-title": "_error-title_199u4_41",
|
|
7
|
+
"btn-retry": "_btn-retry_199u4_45",
|
|
8
|
+
"error-details": "_error-details_199u4_62",
|
|
9
|
+
main: e,
|
|
10
|
+
network: t,
|
|
11
|
+
extra: n
|
|
8
12
|
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
//# sourceMappingURL=apollo-error.module.scss.js.map
|
|
13
|
+
//#endregion
|
|
14
|
+
export { r as default };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=apollo-error.module.scss.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apollo-error.module.scss.js","
|
|
1
|
+
{"version":3,"file":"apollo-error.module.scss.js","names":[],"sources":["../../../src/react/apollo-error/apollo-error.module.scss"],"sourcesContent":[".modal-backdrop {\n position: fixed;\n inset: 0;\n z-index: 9999999;\n background-color: rgba(0, 0, 0, 0.6);\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 1rem;\n\n .modal-content {\n position: relative;\n background-color: #0f172a;\n color: white;\n max-width: 80vw;\n width: 100%;\n border-radius: 0.75rem;\n box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);\n overflow: hidden;\n padding: 2rem;\n\n .btn-close {\n position: absolute;\n top: 0.75rem;\n right: 1rem;\n font-size: 1.25rem;\n color: white;\n background: none;\n border: none;\n cursor: pointer;\n transition: color 0.2s;\n\n &:hover {\n color: #f87171;\n }\n\n &:focus-visible {\n outline: none;\n box-shadow: 0 0 0 2px #f87171;\n border-radius: 0.125rem;\n }\n }\n\n .error-title {\n font-weight: bold;\n margin-bottom: 1rem;\n\n .btn-retry {\n background: linear-gradient(to right, #3b82f6, #06b6d4);\n color: white;\n font-weight: 600;\n padding: 0.5rem 1.5rem;\n border-radius: 0.75rem;\n transition: background 0.3s ease;\n border: none;\n cursor: pointer;\n\n &:hover {\n background: linear-gradient(to right, #2563eb, #0891b2);\n }\n\n &:focus-visible {\n outline: 2px solid #3b82f6;\n outline-offset: 2px;\n }\n }\n }\n\n .error-details {\n background-color: #1e293b;\n text-align: left;\n font-size: 0.875rem;\n border-radius: 0.5rem;\n padding: 1rem;\n margin-bottom: 1.5rem;\n max-height: 50vh;\n overflow-y: auto;\n border: 1px solid #334155;\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n\n pre {\n white-space: pre-wrap;\n word-break: break-word;\n\n &.main {\n color: #fca5a5;\n }\n\n &.network {\n color: #fde68a;\n }\n\n &.extra {\n color: #67e8f9;\n overflow-x: auto;\n white-space: pre;\n font-family:\n ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',\n monospace;\n background-color: #0f172a;\n padding: 0.5rem;\n border-radius: 0.375rem;\n }\n }\n\n ul {\n padding-left: 1rem;\n color: #fda4af;\n list-style: disc;\n }\n }\n }\n}\n"],"mappings":""}
|
|
@@ -1,26 +1,32 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
import { ApolloErrorContext as e } from "./apollo-error.context.js";
|
|
2
|
+
import { clearGlobalApolloErrorCallback as t, setGlobalApolloErrorCallback as n } from "./apollo-error.util.js";
|
|
3
|
+
import * as r from "react";
|
|
4
|
+
import { useCallback as i, useEffect as a, useMemo as o, useState as s } from "react";
|
|
5
|
+
//#region src/react/apollo-error/apollo-error.provider.tsx
|
|
6
|
+
function c({ children: c, onError: l }) {
|
|
7
|
+
let [u, d] = s(null), f = i((e) => {
|
|
8
|
+
if (l) {
|
|
9
|
+
l(e);
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
d(e);
|
|
13
|
+
}, [l]);
|
|
14
|
+
a(() => (n(f, !!l), () => {
|
|
15
|
+
t();
|
|
16
|
+
}), [f, l]);
|
|
17
|
+
let p = i(() => d(null), []), m = o(() => ({
|
|
18
|
+
error: l ? null : u,
|
|
19
|
+
showError: f,
|
|
20
|
+
hideError: p
|
|
21
|
+
}), [
|
|
22
|
+
u,
|
|
23
|
+
f,
|
|
24
|
+
p,
|
|
25
|
+
l
|
|
26
|
+
]);
|
|
27
|
+
return /* @__PURE__ */ r.createElement(e, { value: m }, c);
|
|
22
28
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
//# sourceMappingURL=apollo-error.provider.js.map
|
|
29
|
+
//#endregion
|
|
30
|
+
export { c as ApolloErrorProvider };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=apollo-error.provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apollo-error.provider.js","sources":["../../../src/react/apollo-error/apollo-error.provider.tsx"],"sourcesContent":["import type { GraphQLError } from 'graphql';\n\nimport * as React from 'react';\nimport { useCallback, useEffect, useMemo, useState } from 'react';\n\nimport type { I_ApolloErrorProviderProps } from './apollo-error.type.js';\n\nimport { ApolloErrorContext } from './apollo-error.context.js';\nimport { clearGlobalApolloErrorCallback, setGlobalApolloErrorCallback } from './apollo-error.util.js';\n\n/**\n * Provider component that manages Apollo error state and provides error context.\n * This component sets up error handling for Apollo Client operations and provides\n * error state management to all child components through React context.\n *\n * Features:\n * - Global Apollo error state management\n * - Error context provision to child components\n * - Automatic error handling and display\n * - Optional custom error handling callbacks\n * - Integration with error boundaries\n *\n * @param props - Component props containing children.\n * @param props.children - React children that will have access to the error context.\n * @param props.onError - Optional callback to override the default error modal/toast flow.\n * @returns A React component that provides Apollo error context to its children.\n */\nexport function ApolloErrorProvider({ children, onError }: I_ApolloErrorProviderProps) {\n const [error, setError] = useState<GraphQLError | Error | null>(null);\n\n const handleGlobalError = useCallback((apolloError: GraphQLError | Error) => {\n if (onError) {\n onError(apolloError);\n\n return;\n }\n\n setError(apolloError);\n }, [onError]);\n\n useEffect(() => {\n setGlobalApolloErrorCallback(handleGlobalError, Boolean(onError));\n\n return () => {\n clearGlobalApolloErrorCallback();\n };\n }, [handleGlobalError, onError]);\n\n const hideError = useCallback(() => setError(null), []);\n\n const contextValue = useMemo(() => ({\n error: onError ? null : error,\n showError: handleGlobalError,\n hideError,\n }), [error, handleGlobalError, hideError, onError]);\n\n return (\n <ApolloErrorContext value={contextValue}>\n {children}\n </ApolloErrorContext>\n );\n}\n"],"
|
|
1
|
+
{"version":3,"file":"apollo-error.provider.js","names":[],"sources":["../../../src/react/apollo-error/apollo-error.provider.tsx"],"sourcesContent":["import type { GraphQLError } from 'graphql';\n\nimport * as React from 'react';\nimport { useCallback, useEffect, useMemo, useState } from 'react';\n\nimport type { I_ApolloErrorProviderProps } from './apollo-error.type.js';\n\nimport { ApolloErrorContext } from './apollo-error.context.js';\nimport { clearGlobalApolloErrorCallback, setGlobalApolloErrorCallback } from './apollo-error.util.js';\n\n/**\n * Provider component that manages Apollo error state and provides error context.\n * This component sets up error handling for Apollo Client operations and provides\n * error state management to all child components through React context.\n *\n * Features:\n * - Global Apollo error state management\n * - Error context provision to child components\n * - Automatic error handling and display\n * - Optional custom error handling callbacks\n * - Integration with error boundaries\n *\n * @param props - Component props containing children.\n * @param props.children - React children that will have access to the error context.\n * @param props.onError - Optional callback to override the default error modal/toast flow.\n * @returns A React component that provides Apollo error context to its children.\n */\nexport function ApolloErrorProvider({ children, onError }: I_ApolloErrorProviderProps) {\n const [error, setError] = useState<GraphQLError | Error | null>(null);\n\n const handleGlobalError = useCallback((apolloError: GraphQLError | Error) => {\n if (onError) {\n onError(apolloError);\n\n return;\n }\n\n setError(apolloError);\n }, [onError]);\n\n useEffect(() => {\n setGlobalApolloErrorCallback(handleGlobalError, Boolean(onError));\n\n return () => {\n clearGlobalApolloErrorCallback();\n };\n }, [handleGlobalError, onError]);\n\n const hideError = useCallback(() => setError(null), []);\n\n const contextValue = useMemo(() => ({\n error: onError ? null : error,\n showError: handleGlobalError,\n hideError,\n }), [error, handleGlobalError, hideError, onError]);\n\n return (\n <ApolloErrorContext value={contextValue}>\n {children}\n </ApolloErrorContext>\n );\n}\n"],"mappings":";;;;;AA2BA,SAAgB,EAAoB,EAAE,aAAU,cAAuC;CACnF,IAAM,CAAC,GAAO,KAAY,EAAsC,KAAK,EAE/D,IAAoB,GAAa,MAAsC;AACzE,MAAI,GAAS;AACT,KAAQ,EAAY;AAEpB;;AAGJ,IAAS,EAAY;IACtB,CAAC,EAAQ,CAAC;AAEb,UACI,EAA6B,GAAmB,EAAQ,EAAS,QAEpD;AACT,KAAgC;KAErC,CAAC,GAAmB,EAAQ,CAAC;CAEhC,IAAM,IAAY,QAAkB,EAAS,KAAK,EAAE,EAAE,CAAC,EAEjD,IAAe,SAAe;EAChC,OAAO,IAAU,OAAO;EACxB,WAAW;EACX;EACH,GAAG;EAAC;EAAO;EAAmB;EAAW;EAAQ,CAAC;AAEnD,QACI,kBAAA,cAAC,GAAD,EAAoB,OAAO,GAEN,EADhB,EACgB"}
|
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
//#region src/react/apollo-error/apollo-error.util.tsx
|
|
2
|
+
var e = null, t = !1;
|
|
3
|
+
function n(n, r = !1) {
|
|
4
|
+
e = n, t = r;
|
|
4
5
|
}
|
|
5
|
-
function
|
|
6
|
-
|
|
6
|
+
function r() {
|
|
7
|
+
e = null, t = !1;
|
|
7
8
|
}
|
|
8
|
-
function
|
|
9
|
-
|
|
9
|
+
function i() {
|
|
10
|
+
return t;
|
|
10
11
|
}
|
|
11
|
-
function
|
|
12
|
-
|
|
12
|
+
function a(t) {
|
|
13
|
+
e?.(t);
|
|
13
14
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
s as showGlobalApolloError
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=apollo-error.util.js.map
|
|
15
|
+
//#endregion
|
|
16
|
+
export { r as clearGlobalApolloErrorCallback, i as hasCustomApolloErrorHandler, n as setGlobalApolloErrorCallback, a as showGlobalApolloError };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=apollo-error.util.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apollo-error.util.js","sources":["../../../src/react/apollo-error/apollo-error.util.tsx"],"sourcesContent":["import type { GraphQLError } from 'graphql';\n\n/**\n * Global callback function for displaying Apollo errors.\n * This variable holds the callback function that will be called when a global\n * Apollo error needs to be displayed. It is set by the ApolloErrorProvider\n * and used throughout the application for consistent error handling.\n */\nlet showErrorCallback: ((err: GraphQLError | Error) => void) | null = null;\nlet hasCustomHandler = false;\n\n/**\n * Sets the global callback function for Apollo error handling.\n * This function registers a callback that will be called whenever a global\n * Apollo error needs to be displayed. The callback is typically set by the\n * ApolloErrorProvider component and used throughout the application for\n * consistent error handling.\n *\n * @param callback - The function to be called when a global Apollo error occurs.\n * @param isCustomHandler - Flag that identifies whether the handler was provided by the consumer.\n */\nexport function setGlobalApolloErrorCallback(\n callback: (err: GraphQLError | Error) => void,\n isCustomHandler = false,\n) {\n showErrorCallback = callback;\n hasCustomHandler = isCustomHandler;\n}\n\n/**\n * Clears the global callback function for Apollo error handling.\n * Useful when the ApolloErrorProvider unmounts to avoid stale references.\n */\nexport function clearGlobalApolloErrorCallback() {\n showErrorCallback = null;\n hasCustomHandler = false;\n}\n\n/**\n * Indicates whether a custom Apollo error handler is registered.\n *\n * @returns True if a custom handler is registered, otherwise false.\n */\nexport function hasCustomApolloErrorHandler() {\n return hasCustomHandler;\n}\n\n/**\n * Displays a global Apollo error using the registered callback.\n * This function triggers the global error display system by calling the\n * registered callback function. If no callback is registered, the function\n * does nothing, providing safe error handling even when the provider is not set up.\n *\n * @param error - The Apollo error to display globally.\n */\nexport function showGlobalApolloError(error: GraphQLError | Error) {\n showErrorCallback?.(error);\n}\n"],"
|
|
1
|
+
{"version":3,"file":"apollo-error.util.js","names":[],"sources":["../../../src/react/apollo-error/apollo-error.util.tsx"],"sourcesContent":["import type { GraphQLError } from 'graphql';\n\n/**\n * Global callback function for displaying Apollo errors.\n * This variable holds the callback function that will be called when a global\n * Apollo error needs to be displayed. It is set by the ApolloErrorProvider\n * and used throughout the application for consistent error handling.\n *\n * @remarks\n * **SSR Warning:** These module-level singletons are shared across all requests\n * in SSR environments. In server contexts, ensure the provider is properly\n * scoped per-request to avoid state leaking between concurrent renders.\n */\nlet showErrorCallback: ((err: GraphQLError | Error) => void) | null = null;\nlet hasCustomHandler = false;\n\n/**\n * Sets the global callback function for Apollo error handling.\n * This function registers a callback that will be called whenever a global\n * Apollo error needs to be displayed. The callback is typically set by the\n * ApolloErrorProvider component and used throughout the application for\n * consistent error handling.\n *\n * @param callback - The function to be called when a global Apollo error occurs.\n * @param isCustomHandler - Flag that identifies whether the handler was provided by the consumer.\n */\nexport function setGlobalApolloErrorCallback(\n callback: (err: GraphQLError | Error) => void,\n isCustomHandler = false,\n) {\n showErrorCallback = callback;\n hasCustomHandler = isCustomHandler;\n}\n\n/**\n * Clears the global callback function for Apollo error handling.\n * Useful when the ApolloErrorProvider unmounts to avoid stale references.\n */\nexport function clearGlobalApolloErrorCallback() {\n showErrorCallback = null;\n hasCustomHandler = false;\n}\n\n/**\n * Indicates whether a custom Apollo error handler is registered.\n *\n * @returns True if a custom handler is registered, otherwise false.\n */\nexport function hasCustomApolloErrorHandler() {\n return hasCustomHandler;\n}\n\n/**\n * Displays a global Apollo error using the registered callback.\n * This function triggers the global error display system by calling the\n * registered callback function. If no callback is registered, the function\n * does nothing, providing safe error handling even when the provider is not set up.\n *\n * @param error - The Apollo error to display globally.\n */\nexport function showGlobalApolloError(error: GraphQLError | Error) {\n showErrorCallback?.(error);\n}\n"],"mappings":";AAaA,IAAI,IAAkE,MAClE,IAAmB;AAYvB,SAAgB,EACZ,GACA,IAAkB,IACpB;AAEE,CADA,IAAoB,GACpB,IAAmB;;AAOvB,SAAgB,IAAiC;AAE7C,CADA,IAAoB,MACpB,IAAmB;;AAQvB,SAAgB,IAA8B;AAC1C,QAAO;;AAWX,SAAgB,EAAsB,GAA6B;AAC/D,KAAoB,EAAM"}
|
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
import { ApolloErrorComponent as l } from "./apollo-error.component.js";
|
|
2
1
|
import { ApolloErrorContext as e } from "./apollo-error.context.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { clearGlobalApolloErrorCallback as
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
e as ApolloErrorContext,
|
|
9
|
-
E as ApolloErrorProvider,
|
|
10
|
-
x as clearGlobalApolloErrorCallback,
|
|
11
|
-
b as hasCustomApolloErrorHandler,
|
|
12
|
-
f as setGlobalApolloErrorCallback,
|
|
13
|
-
s as showGlobalApolloError,
|
|
14
|
-
t as useApolloError
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=index.js.map
|
|
2
|
+
import { ApolloErrorComponent as t } from "./apollo-error.component.js";
|
|
3
|
+
import { useApolloError as n } from "./apollo-error.hook.js";
|
|
4
|
+
import { clearGlobalApolloErrorCallback as r, hasCustomApolloErrorHandler as i, setGlobalApolloErrorCallback as a, showGlobalApolloError as o } from "./apollo-error.util.js";
|
|
5
|
+
import { ApolloErrorProvider as s } from "./apollo-error.provider.js";
|
|
6
|
+
export { t as ApolloErrorComponent, e as ApolloErrorContext, s as ApolloErrorProvider, r as clearGlobalApolloErrorCallback, i as hasCustomApolloErrorHandler, a as setGlobalApolloErrorCallback, o as showGlobalApolloError, n as useApolloError };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { useTranslation as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
6
|
-
|
|
1
|
+
import { useTranslation as e } from "react-i18next";
|
|
2
|
+
//#region src/react/i18next/i18next.hook.ts
|
|
3
|
+
var t = e;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { t as useTranslateI18next };
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=i18next.hook.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18next.hook.js","sources":["../../../src/react/i18next/i18next.hook.ts"],"sourcesContent":["import { useTranslation } from 'react-i18next';\n\n/**\n * React hook that provides i18next translation functionality.\n * This hook is a wrapper around react-i18next's useTranslation hook,\n * providing access to translation functions and current language information.\n * It enables internationalization features including text translation,\n * language switching, and pluralization support.\n *\n * @returns The useTranslation hook result with translation functions and language information.\n */\nexport const useTranslateI18next: typeof useTranslation = useTranslation;\n"],"
|
|
1
|
+
{"version":3,"file":"i18next.hook.js","names":[],"sources":["../../../src/react/i18next/i18next.hook.ts"],"sourcesContent":["import { useTranslation } from 'react-i18next';\n\n/**\n * React hook that provides i18next translation functionality.\n * This hook is a wrapper around react-i18next's useTranslation hook,\n * providing access to translation functions and current language information.\n * It enables internationalization features including text translation,\n * language switching, and pluralization support.\n *\n * @returns The useTranslation hook result with translation functions and language information.\n */\nexport const useTranslateI18next: typeof useTranslation = useTranslation;\n"],"mappings":";;AAWA,IAAa,IAA6C"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { initReactI18next as e } from "react-i18next";
|
|
2
|
+
import t from "i18next";
|
|
3
|
+
//#region src/react/i18next/i18next.util.ts
|
|
4
|
+
function n(n) {
|
|
5
|
+
return t.use(e).init(n);
|
|
5
6
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
//# sourceMappingURL=i18next.util.js.map
|
|
7
|
+
//#endregion
|
|
8
|
+
export { n as initI18next };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=i18next.util.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18next.util.js","sources":["../../../src/react/i18next/i18next.util.ts"],"sourcesContent":["import type { InitOptions } from 'i18next';\n\nimport i18next from 'i18next';\nimport { initReactI18next } from 'react-i18next';\n\n/**\n * Initializes i18next with React integration.\n * This function sets up i18next for use with React applications by configuring\n * the react-i18next plugin and initializing the i18next instance with the provided\n * options. It enables internationalization features including translation,\n * language detection, and pluralization rules.\n *\n * @param options - Configuration options for i18next initialization including languages, namespaces, and plugins.\n * @returns A promise that resolves when i18next initialization is complete.\n */\nexport function initI18next(options: InitOptions) {\n return i18next.use(initReactI18next).init(options);\n}\n"],"
|
|
1
|
+
{"version":3,"file":"i18next.util.js","names":[],"sources":["../../../src/react/i18next/i18next.util.ts"],"sourcesContent":["import type { InitOptions } from 'i18next';\n\nimport i18next from 'i18next';\nimport { initReactI18next } from 'react-i18next';\n\n/**\n * Initializes i18next with React integration.\n * This function sets up i18next for use with React applications by configuring\n * the react-i18next plugin and initializing the i18next instance with the provided\n * options. It enables internationalization features including translation,\n * language detection, and pluralization rules.\n *\n * @param options - Configuration options for i18next initialization including languages, namespaces, and plugins.\n * @returns A promise that resolves when i18next initialization is complete.\n */\nexport function initI18next(options: InitOptions) {\n return i18next.use(initReactI18next).init(options);\n}\n"],"mappings":";;;AAeA,SAAgB,EAAY,GAAsB;AAC9C,QAAO,EAAQ,IAAI,EAAiB,CAAC,KAAK,EAAQ"}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import { useTranslateI18next as
|
|
2
|
-
import { initI18next as
|
|
3
|
-
export {
|
|
4
|
-
o as initI18next,
|
|
5
|
-
r as useTranslateI18next
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { useTranslateI18next as e } from "./i18next.hook.js";
|
|
2
|
+
import { initI18next as t } from "./i18next.util.js";
|
|
3
|
+
export { t as initI18next, e as useTranslateI18next };
|