@tramvai/module-render 2.4.0 → 2.7.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.
package/README.md CHANGED
@@ -244,6 +244,14 @@ createBundle({
244
244
  myCustomLayout: CustomLayout,
245
245
  },
246
246
  });
247
+
248
+ const route = {
249
+ name: 'main',
250
+ path: '/',
251
+ config: {
252
+ layoutComponent: 'myCustomLayout',
253
+ },
254
+ };
247
255
  ```
248
256
 
249
257
  ##### Replace layoutDefault
package/lib/server.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { RenderModuleConfig } from './shared/types';
2
2
  export * from './shared/pageErrorStore';
3
3
  export * from '@tramvai/tokens-render';
4
- export declare const DEFAULT_POLYFILL_CONDITION = "!window.Promise.prototype.finally || !window.URL || !window.URLSearchParams || !window.AbortController || !window.IntersectionObserver || !Object.fromEntries";
4
+ export declare const DEFAULT_POLYFILL_CONDITION = "!window.Promise.prototype.finally || !window.URL || !window.URLSearchParams || !window.AbortController || !window.IntersectionObserver || !Object.fromEntries || !window.ResizeObserver";
5
5
  export declare class RenderModule {
6
6
  static forRoot({ polyfillCondition }: RenderModuleConfig): {
7
7
  mainModule: typeof RenderModule;
package/lib/server.es.js CHANGED
@@ -736,7 +736,7 @@ const providers = [
736
736
  ];
737
737
 
738
738
  var RenderModule_1;
739
- const DEFAULT_POLYFILL_CONDITION = '!window.Promise.prototype.finally || !window.URL || !window.URLSearchParams || !window.AbortController || !window.IntersectionObserver || !Object.fromEntries';
739
+ const DEFAULT_POLYFILL_CONDITION = '!window.Promise.prototype.finally || !window.URL || !window.URLSearchParams || !window.AbortController || !window.IntersectionObserver || !Object.fromEntries || !window.ResizeObserver';
740
740
  let RenderModule = RenderModule_1 = class RenderModule {
741
741
  static forRoot({ polyfillCondition }) {
742
742
  const providers = [];
package/lib/server.js CHANGED
@@ -772,7 +772,7 @@ const providers = [
772
772
  ];
773
773
 
774
774
  var RenderModule_1;
775
- const DEFAULT_POLYFILL_CONDITION = '!window.Promise.prototype.finally || !window.URL || !window.URLSearchParams || !window.AbortController || !window.IntersectionObserver || !Object.fromEntries';
775
+ const DEFAULT_POLYFILL_CONDITION = '!window.Promise.prototype.finally || !window.URL || !window.URLSearchParams || !window.AbortController || !window.IntersectionObserver || !Object.fromEntries || !window.ResizeObserver';
776
776
  exports.RenderModule = RenderModule_1 = class RenderModule {
777
777
  static forRoot({ polyfillCondition }) {
778
778
  const providers = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/module-render",
3
- "version": "2.4.0",
3
+ "version": "2.7.0",
4
4
  "description": "",
5
5
  "browser": "lib/browser.js",
6
6
  "main": "lib/server.js",
@@ -24,28 +24,28 @@
24
24
  "@tinkoff/htmlpagebuilder": "0.4.24",
25
25
  "@tinkoff/layout-factory": "0.2.31",
26
26
  "@tinkoff/url": "0.7.39",
27
- "@tinkoff/user-agent": "0.4.17",
28
- "@tramvai/module-client-hints": "2.4.0",
29
- "@tramvai/module-router": "2.4.0",
30
- "@tramvai/react": "2.4.0",
27
+ "@tinkoff/user-agent": "0.4.23",
28
+ "@tramvai/module-client-hints": "2.7.0",
29
+ "@tramvai/module-router": "2.7.0",
30
+ "@tramvai/react": "2.7.0",
31
31
  "@tramvai/safe-strings": "0.4.5",
32
- "@tramvai/tokens-render": "2.4.0",
33
- "@tramvai/experiments": "2.4.0",
32
+ "@tramvai/tokens-render": "2.7.0",
33
+ "@tramvai/experiments": "2.7.0",
34
34
  "@types/loadable__server": "^5.12.6",
35
35
  "node-fetch": "^2.6.1"
36
36
  },
37
37
  "peerDependencies": {
38
- "@tinkoff/dippy": "0.7.43",
38
+ "@tinkoff/dippy": "0.7.44",
39
39
  "@tinkoff/utils": "^2.1.2",
40
40
  "@tinkoff/react-hooks": "0.0.27",
41
- "@tramvai/cli": "2.4.0",
42
- "@tramvai/core": "2.4.0",
43
- "@tramvai/module-common": "2.4.0",
44
- "@tramvai/state": "2.4.0",
45
- "@tramvai/test-helpers": "2.4.0",
46
- "@tramvai/tokens-common": "2.4.0",
47
- "@tramvai/tokens-router": "2.4.0",
48
- "@tramvai/tokens-server-private": "2.4.0",
41
+ "@tramvai/cli": "2.7.0",
42
+ "@tramvai/core": "2.7.0",
43
+ "@tramvai/module-common": "2.7.0",
44
+ "@tramvai/state": "2.7.0",
45
+ "@tramvai/test-helpers": "2.7.0",
46
+ "@tramvai/tokens-common": "2.7.0",
47
+ "@tramvai/tokens-router": "2.7.0",
48
+ "@tramvai/tokens-server-private": "2.7.0",
49
49
  "express": "^4.17.1",
50
50
  "prop-types": "^15.6.2",
51
51
  "react": ">=16.14.0",