@tramvai/module-render 2.150.0 → 2.151.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.
Files changed (34) hide show
  1. package/lib/browser.d.ts +1 -0
  2. package/lib/client/index.d.ts +1 -0
  3. package/lib/client/renderer.d.ts +1 -0
  4. package/lib/client/types.d.ts +1 -0
  5. package/lib/react/index.d.ts +1 -0
  6. package/lib/react/pageErrorBoundary.d.ts +1 -0
  7. package/lib/react/root.d.ts +1 -0
  8. package/lib/resourcesInliner/externalFilesHelper.d.ts +1 -0
  9. package/lib/resourcesInliner/fileProcessor.d.ts +1 -0
  10. package/lib/resourcesInliner/index.d.ts +1 -0
  11. package/lib/resourcesInliner/resourcesInliner.d.ts +1 -0
  12. package/lib/resourcesInliner/tokens.d.ts +1 -0
  13. package/lib/resourcesRegistry/index.d.ts +1 -0
  14. package/lib/server/PageBuilder.d.ts +1 -0
  15. package/lib/server/ReactRenderServer.d.ts +1 -0
  16. package/lib/server/blocks/bundleResource/bundleResource.d.ts +1 -0
  17. package/lib/server/blocks/polyfill.d.ts +1 -0
  18. package/lib/server/blocks/preload/onload.inline.d.ts +1 -0
  19. package/lib/server/blocks/preload/preloadBlock.d.ts +1 -0
  20. package/lib/server/blocks/utils/fetchWebpackStats.d.ts +1 -0
  21. package/lib/server/blocks/utils/flushFiles.d.ts +1 -0
  22. package/lib/server/blocks/utils/requireFunc.d.ts +1 -0
  23. package/lib/server/constants/performance.d.ts +1 -0
  24. package/lib/server/constants/slots.d.ts +1 -0
  25. package/lib/server/htmlPageSchema.d.ts +1 -0
  26. package/lib/server/utils.d.ts +1 -0
  27. package/lib/server.d.ts +1 -0
  28. package/lib/shared/LayoutModule.d.ts +1 -0
  29. package/lib/shared/providers.d.ts +1 -0
  30. package/lib/shared/types.d.ts +1 -0
  31. package/lib/test/index.d.ts +1 -0
  32. package/lib/test/unit/resources.d.ts +1 -0
  33. package/package.json +15 -15
  34. package/tests.d.ts +1 -0
package/lib/browser.d.ts CHANGED
@@ -9,3 +9,4 @@ export declare class RenderModule {
9
9
  providers: any[];
10
10
  };
11
11
  }
12
+ //# sourceMappingURL=browser.d.ts.map
@@ -10,3 +10,4 @@ export declare function rendering({ logger, consumerContext, customRender, exten
10
10
  rendererCallback?: ExtractDependencyType<typeof RENDERER_CALLBACK>;
11
11
  renderMode?: ExtractDependencyType<typeof REACT_SERVER_RENDER_MODE>;
12
12
  }): Promise<void>;
13
+ //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,4 @@
1
1
  import type { Renderer } from './types';
2
2
  declare const renderer: Renderer;
3
3
  export { renderer };
4
+ //# sourceMappingURL=renderer.d.ts.map
@@ -8,3 +8,4 @@ type Renderer = (params: {
8
8
  renderMode?: ExtractDependencyType<typeof REACT_SERVER_RENDER_MODE>;
9
9
  }) => any;
10
10
  export { Renderer };
11
+ //# sourceMappingURL=types.d.ts.map
@@ -2,3 +2,4 @@ import type { DI_TOKEN } from '@tinkoff/dippy';
2
2
  export declare function renderReact({ di }: {
3
3
  di: typeof DI_TOKEN;
4
4
  }, context: any): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import type { PropsWithChildren } from 'react';
2
2
  export declare const PageErrorBoundary: (props: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=pageErrorBoundary.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare const Root: () => import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=root.d.ts.map
@@ -1,2 +1,3 @@
1
1
  export declare const getFileContentLength: (url: string) => Promise<string>;
2
2
  export declare const getFile: (url: string) => Promise<string | undefined>;
3
+ //# sourceMappingURL=externalFilesHelper.d.ts.map
@@ -1,3 +1,4 @@
1
1
  import type { PageResource } from '@tramvai/tokens-render';
2
2
  export declare const URL_OCCURRENCES_RE: RegExp;
3
3
  export declare const processFile: (resource: PageResource, file: string) => string;
4
+ //# sourceMappingURL=fileProcessor.d.ts.map
@@ -1,2 +1,3 @@
1
1
  export { ResourcesInliner } from './resourcesInliner';
2
2
  export { RESOURCE_INLINER, RESOURCES_REGISTRY_CACHE } from './tokens';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -26,3 +26,4 @@ export declare class ResourcesInliner implements ResourcesInlinerType {
26
26
  inlineResource(resource: PageResource): PageResource[];
27
27
  prefetchResource(resource: PageResource): Promise<void>;
28
28
  }
29
+ //# sourceMappingURL=resourcesInliner.d.ts.map
@@ -20,3 +20,4 @@ export type ResourcesRegistryCache = {
20
20
  export declare const RESOURCES_REGISTRY_CACHE: ResourcesRegistryCache & {
21
21
  __type?: "base token";
22
22
  };
23
+ //# sourceMappingURL=tokens.d.ts.map
@@ -12,3 +12,4 @@ export declare class ResourcesRegistry implements ResourceRegistry {
12
12
  prefetchInlinePageResources(): Promise<any>;
13
13
  }
14
14
  export {};
15
+ //# sourceMappingURL=index.d.ts.map
@@ -42,3 +42,4 @@ export declare class PageBuilder {
42
42
  stats: WebpackStats;
43
43
  }): Promise<void>;
44
44
  }
45
+ //# sourceMappingURL=PageBuilder.d.ts.map
@@ -28,3 +28,4 @@ export declare class ReactRenderServer {
28
28
  stats: WebpackStats;
29
29
  }): Promise<string>;
30
30
  }
31
+ //# sourceMappingURL=ReactRenderServer.d.ts.map
@@ -8,3 +8,4 @@ export declare const bundleResource: ({ bundle, modern, extractor, pageComponent
8
8
  fetchWebpackStats: typeof FETCH_WEBPACK_STATS_TOKEN;
9
9
  renderMode: typeof REACT_SERVER_RENDER_MODE | null;
10
10
  }) => Promise<PageResource[]>;
11
+ //# sourceMappingURL=bundleResource.d.ts.map
@@ -4,3 +4,4 @@ export declare const polyfillResources: ({ condition, modern, fetchWebpackStats,
4
4
  modern: boolean;
5
5
  fetchWebpackStats: typeof FETCH_WEBPACK_STATS_TOKEN;
6
6
  }) => Promise<PageResource[]>;
7
+ //# sourceMappingURL=polyfill.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare function onload(next: any): () => void;
2
+ //# sourceMappingURL=onload.inline.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import type { PageResource } from '@tramvai/tokens-render';
2
2
  export declare const addPreloadForCriticalJS: (pageResources: PageResource[]) => PageResource;
3
+ //# sourceMappingURL=preloadBlock.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import type { FETCH_WEBPACK_STATS_TOKEN } from '@tramvai/tokens-render';
2
2
  export declare const fetchWebpackStats: typeof FETCH_WEBPACK_STATS_TOKEN;
3
+ //# sourceMappingURL=fetchWebpackStats.d.ts.map
@@ -7,3 +7,4 @@ export declare const flushFiles: (chunks: string[], webpackStats: WebpackStats,
7
7
  scripts: string[];
8
8
  styles: string[];
9
9
  };
10
+ //# sourceMappingURL=flushFiles.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare const requireFunc: any;
2
+ //# sourceMappingURL=requireFunc.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare const PRELOAD_JS = "__preloadJS";
2
+ //# sourceMappingURL=performance.d.ts.map
@@ -11,3 +11,4 @@ export declare const BODY_START = "body:start";
11
11
  export declare const BODY_END = "body:end";
12
12
  export declare const BODY_TAIL_ANALYTICS = "body:tail:analytics";
13
13
  export declare const BODY_TAIL = "body:tail";
14
+ //# sourceMappingURL=slots.d.ts.map
@@ -2,3 +2,4 @@ import type { StaticDescriptor, DynamicDescriptor } from '@tinkoff/htmlpagebuild
2
2
  export declare const htmlPageSchemaFactory: ({ htmlAttrs, }: {
3
3
  htmlAttrs: any;
4
4
  }) => Array<StaticDescriptor | DynamicDescriptor>;
5
+ //# sourceMappingURL=htmlPageSchema.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import type { HTML_ATTRS } from '@tramvai/tokens-render';
2
2
  export declare const formatAttributes: (htmlAttrs: Array<typeof HTML_ATTRS>, target: 'html' | 'body' | 'app') => string;
3
+ //# sourceMappingURL=utils.d.ts.map
package/lib/server.d.ts CHANGED
@@ -10,3 +10,4 @@ export declare class RenderModule {
10
10
  };
11
11
  }
12
12
  export { ReactRenderServer } from './server/ReactRenderServer';
13
+ //# sourceMappingURL=server.d.ts.map
@@ -1,2 +1,3 @@
1
1
  export declare class LayoutModule {
2
2
  }
3
+ //# sourceMappingURL=LayoutModule.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare const providers: (import("@tinkoff/dippy/lib/Provider").ValueProvider<any> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithoutDeps<any> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithoutDeps<any> | import("@tinkoff/dippy/lib/Provider").ClassProviderWithDeps<unknown, any> | import("@tinkoff/dippy/lib/Provider").FactoryProviderWithDeps<unknown, any>)[];
2
+ //# sourceMappingURL=providers.d.ts.map
@@ -8,3 +8,4 @@ type RenderModuleConfig = {
8
8
  useStrictMode?: boolean;
9
9
  };
10
10
  export { RenderModuleConfig };
11
+ //# sourceMappingURL=types.d.ts.map
@@ -1 +1,2 @@
1
1
  export { testPageResources } from './unit/resources';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -31,3 +31,4 @@ export declare const testPageResources: (options: Options) => {
31
31
  })) => Promise<any[]>;
32
32
  };
33
33
  export {};
34
+ //# sourceMappingURL=resources.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/module-render",
3
- "version": "2.150.0",
3
+ "version": "2.151.0",
4
4
  "description": "",
5
5
  "browser": "lib/browser.js",
6
6
  "main": "lib/server.js",
@@ -26,13 +26,13 @@
26
26
  "@tinkoff/layout-factory": "0.3.8",
27
27
  "@tinkoff/errors": "0.3.8",
28
28
  "@tinkoff/url": "0.8.6",
29
- "@tinkoff/user-agent": "0.4.434",
30
- "@tramvai/module-client-hints": "2.150.0",
31
- "@tramvai/module-router": "2.150.0",
32
- "@tramvai/react": "2.150.0",
29
+ "@tinkoff/user-agent": "0.4.436",
30
+ "@tramvai/module-client-hints": "2.151.0",
31
+ "@tramvai/module-router": "2.151.0",
32
+ "@tramvai/react": "2.151.0",
33
33
  "@tramvai/safe-strings": "0.5.12",
34
- "@tramvai/tokens-render": "2.150.0",
35
- "@tramvai/experiments": "2.150.0",
34
+ "@tramvai/tokens-render": "2.151.0",
35
+ "@tramvai/experiments": "2.151.0",
36
36
  "@types/loadable__server": "^5.12.6",
37
37
  "node-fetch": "^2.6.1"
38
38
  },
@@ -40,14 +40,14 @@
40
40
  "@tinkoff/dippy": "0.8.16",
41
41
  "@tinkoff/utils": "^2.1.2",
42
42
  "@tinkoff/react-hooks": "0.1.6",
43
- "@tramvai/cli": "2.150.0",
44
- "@tramvai/core": "2.150.0",
45
- "@tramvai/module-common": "2.150.0",
46
- "@tramvai/state": "2.150.0",
47
- "@tramvai/test-helpers": "2.150.0",
48
- "@tramvai/tokens-common": "2.150.0",
49
- "@tramvai/tokens-router": "2.150.0",
50
- "@tramvai/tokens-server-private": "2.150.0",
43
+ "@tramvai/cli": "2.151.0",
44
+ "@tramvai/core": "2.151.0",
45
+ "@tramvai/module-common": "2.151.0",
46
+ "@tramvai/state": "2.151.0",
47
+ "@tramvai/test-helpers": "2.151.0",
48
+ "@tramvai/tokens-common": "2.151.0",
49
+ "@tramvai/tokens-router": "2.151.0",
50
+ "@tramvai/tokens-server-private": "2.151.0",
51
51
  "express": "^4.17.1",
52
52
  "prop-types": "^15.6.2",
53
53
  "react": ">=16.14.0",
package/tests.d.ts CHANGED
@@ -31,3 +31,4 @@ declare const testPageResources: (options: Options) => {
31
31
  })) => Promise<any[]>;
32
32
  };
33
33
  export { testPageResources };
34
+ //# sourceMappingURL=tests.d.ts.map