@tramvai/module-child-app 2.103.1 → 2.104.2

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.
@@ -4,7 +4,6 @@ import { memo, Suspense, useContext, useMemo, useState, useEffect } from 'react'
4
4
  import { CHILD_APP_INTERNAL_RENDER_TOKEN } from '@tramvai/tokens-child-app';
5
5
  import { LOGGER_TOKEN } from '@tramvai/tokens-common';
6
6
  import { UniversalErrorBoundary, useDi } from '@tramvai/react';
7
- import { useUrl } from '@tramvai/module-router';
8
7
  import { RenderContext } from './render-context.browser.js';
9
8
 
10
9
  const FailedChildAppFallback = ({ config: { name, version, tag, fallback: Fallback }, }) => {
@@ -93,8 +92,7 @@ const ChildAppWrapper = ({ name, version, tag, props, fallback: Fallback, }) =>
93
92
  };
94
93
  const ChildApp = memo((config) => {
95
94
  const { fallback } = config;
96
- const url = useUrl();
97
- const result = (jsx(UniversalErrorBoundary, { url: url, fallback: fallback, children: jsx(ChildAppWrapper, { ...config }) }));
95
+ const result = (jsx(UniversalErrorBoundary, { fallback: fallback, children: jsx(ChildAppWrapper, { ...config }) }));
98
96
  if (process.env.__TRAMVAI_CONCURRENT_FEATURES) {
99
97
  return jsx(Suspense, { fallback: jsx(FailedChildAppFallback, { config: config }), children: result });
100
98
  }
@@ -4,7 +4,6 @@ import { memo, Suspense, useContext, useMemo, useState, useEffect } from 'react'
4
4
  import { CHILD_APP_INTERNAL_RENDER_TOKEN } from '@tramvai/tokens-child-app';
5
5
  import { LOGGER_TOKEN } from '@tramvai/tokens-common';
6
6
  import { UniversalErrorBoundary, useDi } from '@tramvai/react';
7
- import { useUrl } from '@tramvai/module-router';
8
7
  import { RenderContext } from './render-context.es.js';
9
8
 
10
9
  const FailedChildAppFallback = ({ config: { name, version, tag, fallback: Fallback }, }) => {
@@ -93,8 +92,7 @@ const ChildAppWrapper = ({ name, version, tag, props, fallback: Fallback, }) =>
93
92
  };
94
93
  const ChildApp = memo((config) => {
95
94
  const { fallback } = config;
96
- const url = useUrl();
97
- const result = (jsx(UniversalErrorBoundary, { url: url, fallback: fallback, children: jsx(ChildAppWrapper, { ...config }) }));
95
+ const result = (jsx(UniversalErrorBoundary, { fallback: fallback, children: jsx(ChildAppWrapper, { ...config }) }));
98
96
  if (process.env.__TRAMVAI_CONCURRENT_FEATURES) {
99
97
  return jsx(Suspense, { fallback: jsx(FailedChildAppFallback, { config: config }), children: result });
100
98
  }
@@ -8,7 +8,6 @@ var react = require('react');
8
8
  var tokensChildApp = require('@tramvai/tokens-child-app');
9
9
  var tokensCommon = require('@tramvai/tokens-common');
10
10
  var react$1 = require('@tramvai/react');
11
- var moduleRouter = require('@tramvai/module-router');
12
11
  var renderContext = require('./render-context.js');
13
12
 
14
13
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
@@ -101,8 +100,7 @@ const ChildAppWrapper = ({ name, version, tag, props, fallback: Fallback, }) =>
101
100
  };
102
101
  const ChildApp = react.memo((config) => {
103
102
  const { fallback } = config;
104
- const url = moduleRouter.useUrl();
105
- const result = (jsxRuntime.jsx(react$1.UniversalErrorBoundary, { url: url, fallback: fallback, children: jsxRuntime.jsx(ChildAppWrapper, { ...config }) }));
103
+ const result = (jsxRuntime.jsx(react$1.UniversalErrorBoundary, { fallback: fallback, children: jsxRuntime.jsx(ChildAppWrapper, { ...config }) }));
106
104
  if (process.env.__TRAMVAI_CONCURRENT_FEATURES) {
107
105
  return jsxRuntime.jsx(react.Suspense, { fallback: jsxRuntime.jsx(FailedChildAppFallback, { config: config }), children: result });
108
106
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/module-child-app",
3
- "version": "2.103.1",
3
+ "version": "2.104.2",
4
4
  "description": "Module for child apps",
5
5
  "browser": {
6
6
  "./lib/server.js": "./lib/browser.js",
@@ -31,21 +31,20 @@
31
31
  "@tinkoff/module-loader-client": "0.4.8",
32
32
  "@tinkoff/module-loader-server": "0.5.11",
33
33
  "@tinkoff/url": "0.8.6",
34
- "@tramvai/child-app-core": "2.103.1",
35
- "@tramvai/module-router": "2.103.1",
34
+ "@tramvai/child-app-core": "2.104.2",
36
35
  "@tramvai/safe-strings": "0.5.9",
37
- "@tramvai/tokens-child-app": "2.103.1"
36
+ "@tramvai/tokens-child-app": "2.104.2"
38
37
  },
39
38
  "devDependencies": {},
40
39
  "peerDependencies": {
41
40
  "@tinkoff/dippy": "0.8.15",
42
41
  "@tinkoff/utils": "^2.1.2",
43
- "@tramvai/core": "2.103.1",
44
- "@tramvai/state": "2.103.1",
45
- "@tramvai/react": "2.103.1",
46
- "@tramvai/tokens-common": "2.103.1",
47
- "@tramvai/tokens-render": "2.103.1",
48
- "@tramvai/tokens-router": "2.103.1",
42
+ "@tramvai/core": "2.104.2",
43
+ "@tramvai/state": "2.104.2",
44
+ "@tramvai/react": "2.104.2",
45
+ "@tramvai/tokens-common": "2.104.2",
46
+ "@tramvai/tokens-render": "2.104.2",
47
+ "@tramvai/tokens-router": "2.104.2",
49
48
  "react": ">=16.14.0",
50
49
  "react-dom": ">=16.14.0",
51
50
  "object-assign": "^4.1.1",