@tramvai/module-page-render-mode 2.150.0 → 2.150.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.
- package/lib/ForceCSRModule.d.ts +2 -1
- package/lib/PageRenderWrapper.d.ts +1 -0
- package/lib/browser.d.ts +2 -1
- package/lib/error.d.ts +1 -0
- package/lib/server.d.ts +2 -1
- package/lib/shared.d.ts +1 -0
- package/lib/staticPages/backgroundFetchService.d.ts +1 -0
- package/lib/staticPages/staticPagesService.d.ts +1 -0
- package/lib/staticPages.d.ts +5 -3
- package/lib/tokens.d.ts +1 -0
- package/lib/typings.d.ts +1 -0
- package/lib/utils/cacheKey.d.ts +1 -0
- package/lib/utils/getPageRenderMode.d.ts +1 -0
- package/package.json +13 -13
package/lib/ForceCSRModule.d.ts
CHANGED
|
@@ -2,5 +2,6 @@
|
|
|
2
2
|
* Module for force CSR mode, only add logic when `TRAMVAI_FORCE_CLIENT_SIDE_RENDERING=true` env variable is set
|
|
3
3
|
*/
|
|
4
4
|
export declare const ForceCSRModule: import("@tinkoff/dippy/lib/modules/module.h").ModuleClass & Partial<import("@tinkoff/dippy/lib/modules/module.h").ModuleSecretParameters> & {
|
|
5
|
-
[x: string]: (...args: any[]) => import("@tramvai/core").ModuleType
|
|
5
|
+
[x: string]: (...args: any[]) => import("@tramvai/core").ModuleType;
|
|
6
6
|
};
|
|
7
|
+
//# sourceMappingURL=ForceCSRModule.d.ts.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { PropsWithChildren } from 'react';
|
|
2
2
|
export declare const PageRenderWrapper: ({ children }: PropsWithChildren<{}>) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export declare const pageRenderHOC: (WrapperPage: any) => (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=PageRenderWrapper.d.ts.map
|
package/lib/browser.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import './typings';
|
|
2
2
|
export * from './tokens';
|
|
3
3
|
export declare const PageRenderModeModule: import("@tinkoff/dippy/lib/modules/module.h").ModuleClass & Partial<import("@tinkoff/dippy/lib/modules/module.h").ModuleSecretParameters> & {
|
|
4
|
-
[x: string]: (...args: any[]) => import("@tramvai/core").ModuleType
|
|
4
|
+
[x: string]: (...args: any[]) => import("@tramvai/core").ModuleType;
|
|
5
5
|
};
|
|
6
|
+
//# sourceMappingURL=browser.d.ts.map
|
package/lib/error.d.ts
CHANGED
package/lib/server.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import './typings';
|
|
2
2
|
export * from './tokens';
|
|
3
3
|
export declare const PageRenderModeModule: import("@tinkoff/dippy/lib/modules/module.h").ModuleClass & Partial<import("@tinkoff/dippy/lib/modules/module.h").ModuleSecretParameters> & {
|
|
4
|
-
[x: string]: (...args: any[]) => import("@tramvai/core").ModuleType
|
|
4
|
+
[x: string]: (...args: any[]) => import("@tramvai/core").ModuleType;
|
|
5
5
|
};
|
|
6
|
+
//# sourceMappingURL=server.d.ts.map
|
package/lib/shared.d.ts
CHANGED
package/lib/staticPages.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
import type { Counter } from 'prom-client';
|
|
2
3
|
import { BackgroundFetchService } from './staticPages/backgroundFetchService';
|
|
3
4
|
import { StaticPagesService } from './staticPages/staticPagesService';
|
|
@@ -287,12 +288,13 @@ export declare const staticPagesProviders: (import("@tinkoff/dippy/lib/Provider"
|
|
|
287
288
|
}) | ((() => import("@tramvai/tokens-render").TramvaiRenderMode) & {
|
|
288
289
|
__type?: "base token";
|
|
289
290
|
});
|
|
290
|
-
}, () => void> | import("@tinkoff/dippy/lib/Provider").ValueProvider<import("@tramvai/papi").Papi
|
|
291
|
+
}, () => void> | import("@tinkoff/dippy/lib/Provider").ValueProvider<import("@tramvai/papi").Papi> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithDeps<{
|
|
291
292
|
staticPagesCache: import("@tramvai/tokens-common").Cache<Map<string, import("./tokens").StaticPagesCacheEntry>> & {
|
|
292
293
|
__type?: "base token";
|
|
293
294
|
};
|
|
294
|
-
}, import("@tramvai/papi").Papi
|
|
295
|
+
}, import("@tramvai/papi").Papi> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithoutDeps<import("@tramvai/papi").Papi> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithDeps<{
|
|
295
296
|
staticPagesCache: import("@tramvai/tokens-common").Cache<Map<string, import("./tokens").StaticPagesCacheEntry>> & {
|
|
296
297
|
__type?: "base token";
|
|
297
298
|
};
|
|
298
|
-
}, import("@tramvai/papi").Papi
|
|
299
|
+
}, import("@tramvai/papi").Papi> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithoutDeps<import("@tramvai/papi").Papi>)[];
|
|
300
|
+
//# sourceMappingURL=staticPages.d.ts.map
|
package/lib/tokens.d.ts
CHANGED
package/lib/typings.d.ts
CHANGED
package/lib/utils/cacheKey.d.ts
CHANGED
|
@@ -6,3 +6,4 @@ export declare const getPageRenderMode: ({ pageService, defaultRenderMode, }: {
|
|
|
6
6
|
pageService: ExtractDependencyType<typeof PAGE_SERVICE_TOKEN>;
|
|
7
7
|
defaultRenderMode: ExtractDependencyType<typeof PAGE_RENDER_DEFAULT_MODE>;
|
|
8
8
|
}) => TramvaiRenderMode;
|
|
9
|
+
//# sourceMappingURL=getPageRenderMode.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/module-page-render-mode",
|
|
3
|
-
"version": "2.150.
|
|
3
|
+
"version": "2.150.1",
|
|
4
4
|
"description": "Enable different rendering modes for pages",
|
|
5
5
|
"main": "./lib/server.js",
|
|
6
6
|
"module": "./lib/server.es.js",
|
|
@@ -30,18 +30,18 @@
|
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"@tinkoff/utils": "^2.1.2",
|
|
32
32
|
"@tinkoff/dippy": "0.8.16",
|
|
33
|
-
"@tramvai/core": "2.150.
|
|
34
|
-
"@tramvai/react": "2.150.
|
|
35
|
-
"@tramvai/papi": "2.150.
|
|
36
|
-
"@tramvai/module-router": "2.150.
|
|
37
|
-
"@tramvai/module-client-hints": "2.150.
|
|
38
|
-
"@tramvai/tokens-common": "2.150.
|
|
39
|
-
"@tramvai/tokens-core": "2.150.
|
|
40
|
-
"@tramvai/tokens-render": "2.150.
|
|
41
|
-
"@tramvai/tokens-router": "2.150.
|
|
42
|
-
"@tramvai/tokens-server": "2.150.
|
|
43
|
-
"@tramvai/tokens-server-private": "2.150.
|
|
44
|
-
"@tramvai/tokens-metrics": "2.150.
|
|
33
|
+
"@tramvai/core": "2.150.1",
|
|
34
|
+
"@tramvai/react": "2.150.1",
|
|
35
|
+
"@tramvai/papi": "2.150.1",
|
|
36
|
+
"@tramvai/module-router": "2.150.1",
|
|
37
|
+
"@tramvai/module-client-hints": "2.150.1",
|
|
38
|
+
"@tramvai/tokens-common": "2.150.1",
|
|
39
|
+
"@tramvai/tokens-core": "2.150.1",
|
|
40
|
+
"@tramvai/tokens-render": "2.150.1",
|
|
41
|
+
"@tramvai/tokens-router": "2.150.1",
|
|
42
|
+
"@tramvai/tokens-server": "2.150.1",
|
|
43
|
+
"@tramvai/tokens-server-private": "2.150.1",
|
|
44
|
+
"@tramvai/tokens-metrics": "2.150.1",
|
|
45
45
|
"prom-client": "^14.2.0",
|
|
46
46
|
"react": ">=16.14.0",
|
|
47
47
|
"tslib": "^2.4.0"
|