@tramvai/child-app-core 4.22.0 → 4.24.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.
@@ -1,5 +1,5 @@
1
1
  import { provide } from '@tramvai/core';
2
- import { CHILD_APP_INTERNAL_RENDER_TOKEN } from '@tramvai/tokens-child-app';
2
+ import { IS_CHILD_APP_CONTRACTS_COMPATIBLE_TOKEN, CHILD_APP_INTERNAL_RENDER_TOKEN } from '@tramvai/tokens-child-app';
3
3
  import { renderWrapper } from './renderWrapper.es.js';
4
4
 
5
5
  const createChildApp = ({ name, modules, actions, providers = [], render, }) => {
@@ -8,6 +8,10 @@ const createChildApp = ({ name, modules, actions, providers = [], render, }) =>
8
8
  modules,
9
9
  actions,
10
10
  providers: [
11
+ provide({
12
+ provide: IS_CHILD_APP_CONTRACTS_COMPATIBLE_TOKEN,
13
+ useValue: true,
14
+ }),
11
15
  ...providers,
12
16
  ...(render
13
17
  ? [
@@ -12,6 +12,10 @@ const createChildApp = ({ name, modules, actions, providers = [], render, }) =>
12
12
  modules,
13
13
  actions,
14
14
  providers: [
15
+ core.provide({
16
+ provide: tokensChildApp.IS_CHILD_APP_CONTRACTS_COMPATIBLE_TOKEN,
17
+ useValue: true,
18
+ }),
15
19
  ...providers,
16
20
  ...(render
17
21
  ? [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/child-app-core",
3
- "version": "4.22.0",
3
+ "version": "4.24.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -21,13 +21,13 @@
21
21
  "registry": "https://registry.npmjs.org/"
22
22
  },
23
23
  "dependencies": {
24
- "@tramvai/core": "4.22.0",
25
- "@tramvai/react": "4.22.0",
26
- "@tramvai/tokens-child-app": "4.22.0",
27
- "@tramvai/tokens-render": "4.22.0"
24
+ "@tramvai/core": "4.24.0",
25
+ "@tramvai/react": "4.24.0",
26
+ "@tramvai/tokens-child-app": "4.24.0",
27
+ "@tramvai/tokens-render": "4.24.0"
28
28
  },
29
29
  "peerDependencies": {
30
- "@tinkoff/dippy": "0.10.7",
30
+ "@tinkoff/dippy": "0.10.8",
31
31
  "react": ">=16.14.0"
32
32
  },
33
33
  "module": "lib/index.es.js"