infinity-forge 10.3.0 → 10.3.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/dist/system/context/container.d.ts +3 -4
- package/dist/system/context/container.js +2 -2
- package/dist/system/context/container.js.map +1 -1
- package/dist/ui/hooks/use-query/context.d.ts +1 -1
- package/dist/ui/hooks/use-query/context.js +1 -3
- package/dist/ui/hooks/use-query/context.js.map +1 -1
- package/dist/ui/hooks/use-query/interfaces.d.ts +1 -0
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I18nContextProps, LoaderOnRouteChangeProps, ISiteConfigurationProviderProps
|
|
1
|
+
import { I18nContextProps, AtenaProviderProps, LoaderOnRouteChangeProps, ISiteConfigurationProviderProps } from '../../ui/index.js';
|
|
2
2
|
import { AuthAdminProviderProps } from './auth/index.js';
|
|
3
3
|
import { DefaultThemeInfinityForge } from './theme/index.js';
|
|
4
4
|
import { InfraInjectionContextType } from './infra-injection/index.js';
|
|
@@ -7,8 +7,7 @@ export type InfinityForgeProvidersProps = {
|
|
|
7
7
|
shortly?: boolean;
|
|
8
8
|
children: React.ReactNode;
|
|
9
9
|
theme: DefaultThemeInfinityForge;
|
|
10
|
-
|
|
11
|
-
useQuery?: any;
|
|
10
|
+
queryClient?: any;
|
|
12
11
|
} & InfraInjectionContextType & {
|
|
13
12
|
i18n: Partial<I18nContextProps>;
|
|
14
13
|
} & {
|
|
@@ -20,4 +19,4 @@ export type InfinityForgeProvidersProps = {
|
|
|
20
19
|
} & {
|
|
21
20
|
integrations?: ThirdPartyIntegrationContextType;
|
|
22
21
|
};
|
|
23
|
-
export declare function InfinityForgeProviders({ auth, i18n, theme, atena, shortly, children, integrations, Configurations, InjectedRemotes, siteConfigurations, loaderOnRouteChange, }: InfinityForgeProvidersProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare function InfinityForgeProviders({ auth, i18n, theme, atena, shortly, children, queryClient, integrations, Configurations, InjectedRemotes, siteConfigurations, loaderOnRouteChange, }: InfinityForgeProvidersProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -20,7 +20,7 @@ var theme_1 = require("./theme/index.js");
|
|
|
20
20
|
var infra_injection_1 = require("./infra-injection/index.js");
|
|
21
21
|
var third_party_integration_context_1 = require("./third-party-integration-context/index.js");
|
|
22
22
|
function InfinityForgeProviders(_a) {
|
|
23
|
-
var auth = _a.auth, i18n = _a.i18n, theme = _a.theme, atena = _a.atena, shortly = _a.shortly, children = _a.children, integrations = _a.integrations, Configurations = _a.Configurations, InjectedRemotes = _a.InjectedRemotes, siteConfigurations = _a.siteConfigurations, loaderOnRouteChange = _a.loaderOnRouteChange;
|
|
23
|
+
var auth = _a.auth, i18n = _a.i18n, theme = _a.theme, atena = _a.atena, shortly = _a.shortly, children = _a.children, queryClient = _a.queryClient, integrations = _a.integrations, Configurations = _a.Configurations, InjectedRemotes = _a.InjectedRemotes, siteConfigurations = _a.siteConfigurations, loaderOnRouteChange = _a.loaderOnRouteChange;
|
|
24
24
|
if (shortly) {
|
|
25
25
|
return (0, jsx_runtime_1.jsx)(ui_1.NextImage, { src: '/images/em-breve.jpg' });
|
|
26
26
|
}
|
|
@@ -37,6 +37,6 @@ function InfinityForgeProviders(_a) {
|
|
|
37
37
|
var I18N = i18n ? (0, jsx_runtime_1.jsx)(ui_1.I18nProvider, __assign({}, i18nProps, { children: Content })) : Content;
|
|
38
38
|
var Google = integrations ? ((0, jsx_runtime_1.jsx)(third_party_integration_context_1.ThirdPartyIntegrationProvider, __assign({}, integrations, { children: I18N }))) : (I18N);
|
|
39
39
|
var Atena = atena ? (0, jsx_runtime_1.jsx)(ui_1.AtenaProvider, __assign({}, atena, { children: Google })) : Google;
|
|
40
|
-
return ((0, jsx_runtime_1.jsx)(ui_1.QueryClientContextProvider, { children: (0, jsx_runtime_1.jsx)(infra_injection_1.InfraInjectionProvider, { InjectedRemotes: InjectedRemotes, Configurations: Configurations, children: auth ? (0, jsx_runtime_1.jsx)(auth_1.AuthAdminProvider, __assign({}, auth, { children: Atena })) : Atena }) }));
|
|
40
|
+
return ((0, jsx_runtime_1.jsx)(ui_1.QueryClientContextProvider, { queryClient: queryClient, children: (0, jsx_runtime_1.jsx)(infra_injection_1.InfraInjectionProvider, { InjectedRemotes: InjectedRemotes, Configurations: Configurations, children: auth ? (0, jsx_runtime_1.jsx)(auth_1.AuthAdminProvider, __assign({}, auth, { children: Atena })) : Atena }) }));
|
|
41
41
|
}
|
|
42
42
|
//# sourceMappingURL=container.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container.js","sourceRoot":"","sources":["../../../src/system/context/container.tsx"],"names":[],"mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"container.js","sourceRoot":"","sources":["../../../src/system/context/container.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AAiCA,wDA6DC;;AA9FD,2BAYa;AAEb,+BAA4C;AAC5C,+BAAkE;AAClE,iCAAkE;AAClE,qDAAqF;AACrF,qFAAmH;AAenH,SAAgB,sBAAsB,CAAC,EAaT;QAZ5B,IAAI,UAAA,EACJ,IAAI,UAAA,EACJ,KAAK,WAAA,EACL,KAAK,WAAA,EACL,OAAO,aAAA,EACP,QAAQ,cAAA,EACR,WAAW,iBAAA,EACX,YAAY,kBAAA,EACZ,cAAc,oBAAA,EACd,eAAe,qBAAA,EACf,kBAAkB,wBAAA,EAClB,mBAAmB,yBAAA;IAEnB,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO,uBAAC,cAAS,IAAC,GAAG,EAAC,sBAAsB,GAAG,CAAA;IACjD,CAAC;IAED,IAAM,gBAAgB,GAAG;QACvB,KAAK,EAAE,EAAE;QACT,QAAQ,EAAE,OAAO;QACjB,SAAS,EAAE,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;QAChE,aAAa,E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@ -1,5 +1,5 @@
|
|
|
1
1
|
import { QueryStoreProps, QueryStoreState } from './interfaces.js';
|
|
2
2
|
export declare const QueryClientContext: import("react").Context<import("zustand").StoreApi<QueryStoreState<any>>>;
|
|
3
|
-
declare function QueryClientContextProvider({ children }: React.PropsWithChildren<QueryStoreProps>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function QueryClientContextProvider({ children, queryClient }: React.PropsWithChildren<QueryStoreProps>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function useQueryClient<T>(selector: (state: QueryStoreState) => T): T;
|
|
5
5
|
export { QueryClientContextProvider, useQueryClient };
|
|
@@ -6,11 +6,9 @@ exports.useQueryClient = useQueryClient;
|
|
|
6
6
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
7
|
var react_1 = require("react");
|
|
8
8
|
var zustand_1 = require("zustand");
|
|
9
|
-
var store_1 = require("./store.js");
|
|
10
9
|
exports.QueryClientContext = (0, react_1.createContext)(null);
|
|
11
|
-
var queryClient = (0, store_1.queryStore)();
|
|
12
10
|
function QueryClientContextProvider(_a) {
|
|
13
|
-
var children = _a.children;
|
|
11
|
+
var children = _a.children, queryClient = _a.queryClient;
|
|
14
12
|
return ((0, jsx_runtime_1.jsx)(exports.QueryClientContext.Provider, { value: queryClient, children: children }));
|
|
15
13
|
}
|
|
16
14
|
function useQueryClient(selector) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../src/ui/hooks/use-query/context.tsx"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../src/ui/hooks/use-query/context.tsx"],"names":[],"mappings":";;;AAsBS,gEAA0B;AAAE,wCAAc;;AAtBnD,+BAAiD;AAEjD,mCAAkC;AAIrB,QAAA,kBAAkB,GAAG,IAAA,qBAAa,EAAwB,IAAI,CAAC,CAAA;AAE5E,SAAS,0BAA0B,CAAC,EAAoE;QAAlE,QAAQ,cAAA,EAAE,WAAW,iBAAA;IACzD,OAAO,CACL,uBAAC,0BAAkB,CAAC,QAAQ,IAAC,KAAK,EAAE,WAAW,YAC5C,QAAQ,GACmB,CAC/B,CAAA;AACH,CAAC;AAED,SAAS,cAAc,CAAI,QAAuC;IAChE,IAAM,KAAK,GAAG,IAAA,kBAAU,EAAC,0BAAkB,CAAC,CAAA;IAC5C,IAAI,CAAC,KAAK;QAAE,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAA;IAC9E,OAAO,IAAA,kBAAQ,EAAC,KAAK,EAAE,QAAQ,CAAC,CAAA;AAClC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "infinity-forge",
|
|
3
|
-
"version": "10.3.
|
|
3
|
+
"version": "10.3.2",
|
|
4
4
|
"description": "codie Library",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"module": "./dist/index",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"postcss-cli": "^11.0.1",
|
|
51
51
|
"react": "19.1.0",
|
|
52
52
|
"react-dom": "19.1.0",
|
|
53
|
-
"styled-components": "^6.1.
|
|
53
|
+
"styled-components": "^6.1.17",
|
|
54
54
|
"tsc-alias": "^1.8.15",
|
|
55
55
|
"typescript": "^5.8.3",
|
|
56
56
|
"yup": "^1.6.1"
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"next": ">=15.3.1",
|
|
78
78
|
"react": ">=18.0.0",
|
|
79
79
|
"react-dom": ">=18.0.0",
|
|
80
|
-
"styled-components": ">=6.1.
|
|
80
|
+
"styled-components": ">=6.1.17",
|
|
81
81
|
"yup": ">=1.6.1"
|
|
82
82
|
}
|
|
83
83
|
}
|