infinity-forge 5.4.0 → 5.4.3
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/presentation/context/container.d.ts +2 -1
- package/dist/system/presentation/context/container.js +4 -1
- package/dist/system/presentation/context/container.js.map +1 -1
- package/dist/ui/utils/_app_utils/get-pathname-ref.js +3 -0
- package/dist/ui/utils/_app_utils/get-pathname-ref.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ import { AuthAdminProviderProps } from './auth/index.js';
|
|
|
5
5
|
import { DefaultThemeInfinityForge } from './theme/index.js';
|
|
6
6
|
import { InfraInjectionContextType } from './infra-injection/index.js';
|
|
7
7
|
export type InfinityForgeProvidersProps = {
|
|
8
|
+
shortly?: boolean;
|
|
8
9
|
children: React.ReactNode;
|
|
9
10
|
theme: DefaultThemeInfinityForge;
|
|
10
11
|
} & InfraInjectionContextType & {
|
|
@@ -14,4 +15,4 @@ export type InfinityForgeProvidersProps = {
|
|
|
14
15
|
} & ISiteConfigurationProviderProps & {
|
|
15
16
|
loaderOnRouteChange?: LoaderOnRouteChangeProps;
|
|
16
17
|
};
|
|
17
|
-
export declare function InfinityForgeProviders({ auth, i18n, theme, children, InjectedRemotes, Configurations, siteConfigurations, loaderOnRouteChange, }: InfinityForgeProvidersProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare function InfinityForgeProviders({ auth, i18n, theme, shortly, children, InjectedRemotes, Configurations, siteConfigurations, loaderOnRouteChange, }: InfinityForgeProvidersProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -20,7 +20,10 @@ var auth_1 = require("./auth/index.js");
|
|
|
20
20
|
var theme_1 = require("./theme/index.js");
|
|
21
21
|
var infra_injection_1 = require("./infra-injection/index.js");
|
|
22
22
|
function InfinityForgeProviders(_a) {
|
|
23
|
-
var auth = _a.auth, i18n = _a.i18n, theme = _a.theme, children = _a.children, InjectedRemotes = _a.InjectedRemotes, Configurations = _a.Configurations, siteConfigurations = _a.siteConfigurations, loaderOnRouteChange = _a.loaderOnRouteChange;
|
|
23
|
+
var auth = _a.auth, i18n = _a.i18n, theme = _a.theme, shortly = _a.shortly, children = _a.children, InjectedRemotes = _a.InjectedRemotes, Configurations = _a.Configurations, siteConfigurations = _a.siteConfigurations, loaderOnRouteChange = _a.loaderOnRouteChange;
|
|
24
|
+
if (shortly) {
|
|
25
|
+
return (0, jsx_runtime_1.jsx)(ui_1.NextImage, { src: '/images/em-breve.jpg' });
|
|
26
|
+
}
|
|
24
27
|
var i18nProps = i18n || {
|
|
25
28
|
words: {},
|
|
26
29
|
language: 'pt-BR',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container.js","sourceRoot":"","sources":["../../../../src/system/presentation/context/container.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"container.js","sourceRoot":"","sources":["../../../../src/system/presentation/context/container.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2BAQa;AACb,iCAAuE;AAEvE,+BAA4C;AAC5C,+BAAkE;AAClE,iCAAkE;AAClE,qDAAqF;AAUrF,SAAgB,sBAAsB,CAAC,EAUT;QAT5B,IAAI,UAAA,EACJ,IAAI,UAAA,EACJ,KAAK,WAAA,EACL,OAAO,aAAA,EACP,QAAQ,cAAA,EACR,eAAe,qBAAA,EACf,cAAc,oBAAA,EACd,kBAAkB,wBAAA,EAClB,mBAAmB,yBAAA;IAEnB,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO,uBAAC,cAAS,IAAC,GAAG,EAAC,sBAAsB,GAAG,CAAA;IACjD,CAAC;IAED,IAAM,SAAS,GAAG,IAAI,IAAI;QACxB,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,EAAE,CAAC,OAAO,CAAC;QACxB,kBAAkB,EAAE,EAAE;QACtB,eAAe,EAAE,KAAK;KACvB,CAAA;IAED,IAAM,OAAO,GAAG,CACd,uBAAC,iBAAY,eAAK,SAAS,cACzB,uBAAC,oBAAY,IAAC,kBAAkB,EAAE,kBAAkB,YAClD,uBAAC,qBAAa,IAAC,KAAK,EAAE,KAAK,YACzB,uBAAC,kBAAa,cACZ,uBAAC,0BAAmB,eAAK,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,IAAI,cAC3C,uBAAC,wBAAmB,eAAK,mBAAmB,cAAG,QAAQ,IAAuB,IAC1D,GACR,GACF,GACH,IACF,CAChB,CAAA;IAED,OAAO,CACL,uBAAC,sCAAiC,cAChC,uBAAC,wCAAsB,IAAC,eAAe,EAAE,eAAe,EAAE,cAAc,EAAE,cAAc,YACrF,IAAI,CAAC,CAAC,CAAC,uBAAC,wBAAiB,eAAK,IAAI,cAAG,OAAO,IAAqB,CAAC,CAAC,CAAC,OAAO,GACrD,GACS,CACrC,CAAA;AACH,CAAC;AA7CD,wDA6CC"}
|
|
@@ -5,6 +5,9 @@ var generate_ref_1 = require("./generate_ref.js");
|
|
|
5
5
|
function getPathnameRef(props) {
|
|
6
6
|
var _a, _b, _c;
|
|
7
7
|
var pathname = ((_a = props === null || props === void 0 ? void 0 : props.router) === null || _a === void 0 ? void 0 : _a.asPath) || ((_c = (_b = props === null || props === void 0 ? void 0 : props.context) === null || _b === void 0 ? void 0 : _b.router) === null || _c === void 0 ? void 0 : _c.asPath) || (props === null || props === void 0 ? void 0 : props.pageUrl);
|
|
8
|
+
if (pathname === null || pathname === void 0 ? void 0 : pathname.includes('#')) {
|
|
9
|
+
pathname = pathname.split('#')[0];
|
|
10
|
+
}
|
|
8
11
|
if (pathname === null || pathname === void 0 ? void 0 : pathname.includes("?")) {
|
|
9
12
|
pathname = pathname.split("?")[0];
|
|
10
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-pathname-ref.js","sourceRoot":"","sources":["../../../../src/ui/utils/_app_utils/get-pathname-ref.ts"],"names":[],"mappings":";;;AAGA,+CAAgD;AAEhD,SAAgB,cAAc,CAAC,KAAoE;;IACjG,IAAI,QAAQ,GAAG,CAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,0CAAE,MAAM,MAAI,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,0CAAE,MAAM,0CAAE,MAAM,CAAA,KAAI,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,CAAA,CAAA;IAExF,IAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QAC3B,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAA;IACnC,CAAC;IAED,IAAI,QAAQ,KAAK,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;QAClC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAC,CAAA;IACxB,CAAC;IAED,IAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QAC7B,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAA;IACtC,CAAC;IAED,IAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IAEjC,OAAO,EAAE,IAAI,EAAE,IAAA,8BAAe,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAG,CAAA;AAC7C,CAAC;
|
|
1
|
+
{"version":3,"file":"get-pathname-ref.js","sourceRoot":"","sources":["../../../../src/ui/utils/_app_utils/get-pathname-ref.ts"],"names":[],"mappings":";;;AAGA,+CAAgD;AAEhD,SAAgB,cAAc,CAAC,KAAoE;;IACjG,IAAI,QAAQ,GAAG,C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