@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.
@@ -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<import("@tinkoff/dippy/lib/modules/module.h").ModuleClass>;
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<import("@tinkoff/dippy/lib/modules/module.h").ModuleClass>;
4
+ [x: string]: (...args: any[]) => import("@tramvai/core").ModuleType;
5
5
  };
6
+ //# sourceMappingURL=browser.d.ts.map
package/lib/error.d.ts CHANGED
@@ -5,3 +5,4 @@ export declare class StopCommandLineRunnerError extends SilentError {
5
5
  constructor();
6
6
  }
7
7
  export declare const isStopCommandLineRunnerError: (error: Error) => error is StopCommandLineRunnerError;
8
+ //# sourceMappingURL=error.d.ts.map
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<import("@tinkoff/dippy/lib/modules/module.h").ModuleClass>;
4
+ [x: string]: (...args: any[]) => import("@tramvai/core").ModuleType;
5
5
  };
6
+ //# sourceMappingURL=server.d.ts.map
package/lib/shared.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  import { Provider } from '@tinkoff/dippy';
2
2
  export declare const sharedProviders: Provider[];
3
+ //# sourceMappingURL=shared.d.ts.map
@@ -27,3 +27,4 @@ export declare class BackgroundFetchService {
27
27
  }>;
28
28
  }
29
29
  export {};
30
+ //# sourceMappingURL=backgroundFetchService.d.ts.map
@@ -53,3 +53,4 @@ export declare class StaticPagesService {
53
53
  private cacheOutdated;
54
54
  }
55
55
  export {};
56
+ //# sourceMappingURL=staticPagesService.d.ts.map
@@ -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<any, any>> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithDeps<{
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<any, any>> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithoutDeps<import("@tramvai/papi").Papi<any, any>> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithDeps<{
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<any, any>> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithoutDeps<import("@tramvai/papi").Papi<any, any>>)[];
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
@@ -84,3 +84,4 @@ export declare const STATIC_PAGES_MODIFY_CACHE: ((entry: StaticPagesCacheEntry)
84
84
  export declare const STATIC_PAGES_CACHE_5xx_RESPONSE: (() => boolean) & {
85
85
  __type?: "base token";
86
86
  };
87
+ //# sourceMappingURL=tokens.d.ts.map
package/lib/typings.d.ts CHANGED
@@ -9,3 +9,4 @@ declare module '@tramvai/react' {
9
9
  renderMode?: TramvaiRenderMode;
10
10
  }
11
11
  }
12
+ //# sourceMappingURL=typings.d.ts.map
@@ -6,3 +6,4 @@ export declare const getCacheKey: ({ method, host, path, deviceType, modern, }:
6
6
  modern: boolean;
7
7
  }) => string;
8
8
  export declare const parseCacheKey: (key: string) => string[];
9
+ //# sourceMappingURL=cacheKey.d.ts.map
@@ -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.0",
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.0",
34
- "@tramvai/react": "2.150.0",
35
- "@tramvai/papi": "2.150.0",
36
- "@tramvai/module-router": "2.150.0",
37
- "@tramvai/module-client-hints": "2.150.0",
38
- "@tramvai/tokens-common": "2.150.0",
39
- "@tramvai/tokens-core": "2.150.0",
40
- "@tramvai/tokens-render": "2.150.0",
41
- "@tramvai/tokens-router": "2.150.0",
42
- "@tramvai/tokens-server": "2.150.0",
43
- "@tramvai/tokens-server-private": "2.150.0",
44
- "@tramvai/tokens-metrics": "2.150.0",
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"