@tramvai/module-common 2.24.1 → 2.25.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.
|
@@ -19,7 +19,7 @@ export declare class ActionExecution implements Interface {
|
|
|
19
19
|
private di;
|
|
20
20
|
private transformAction;
|
|
21
21
|
constructor({ store, context, di, executionContextManager, actionConditionals, transformAction, }: {
|
|
22
|
-
actionConditionals: ActionCondition
|
|
22
|
+
actionConditionals: (ActionCondition | ActionCondition[])[] | null;
|
|
23
23
|
store: ExtractDependencyType<typeof STORE_TOKEN>;
|
|
24
24
|
context: ExtractDependencyType<typeof CONTEXT_TOKEN>;
|
|
25
25
|
di: ExtractDependencyType<typeof DI_TOKEN>;
|
package/lib/index.browser.js
CHANGED
|
@@ -613,7 +613,7 @@ PubSubModule = __decorate([
|
|
|
613
613
|
const providers$2 = [
|
|
614
614
|
{
|
|
615
615
|
provide: INITIAL_APP_STATE_TOKEN,
|
|
616
|
-
useFactory: () => JSON.parse(
|
|
616
|
+
useFactory: () => JSON.parse(document.getElementById('__TRAMVAI_STATE__').textContent),
|
|
617
617
|
scope: Scope.REQUEST,
|
|
618
618
|
},
|
|
619
619
|
{
|
|
@@ -1144,8 +1144,7 @@ CommonModule = __decorate([
|
|
|
1144
1144
|
provide: BUNDLE_MANAGER_TOKEN,
|
|
1145
1145
|
scope: Scope.SINGLETON,
|
|
1146
1146
|
useFactory: ({ additionalBundleList, ...bundleManagerDeps }) => {
|
|
1147
|
-
|
|
1148
|
-
(_a = additionalBundleList) === null || _a === void 0 ? void 0 : _a.forEach((bundles) => {
|
|
1147
|
+
additionalBundleList === null || additionalBundleList === void 0 ? void 0 : additionalBundleList.forEach((bundles) => {
|
|
1149
1148
|
eachObj((bundle, name) => {
|
|
1150
1149
|
const bundleAlreadyExists = name in bundleManagerDeps.bundleList;
|
|
1151
1150
|
if (!bundleAlreadyExists) {
|
|
@@ -1266,7 +1265,7 @@ CommonChildAppModule = __decorate([
|
|
|
1266
1265
|
useFactory: ({ context }) => {
|
|
1267
1266
|
const serverState = typeof window !== 'undefined' ? context.getState() : undefined;
|
|
1268
1267
|
return (render) => {
|
|
1269
|
-
return (jsx(Provider,
|
|
1268
|
+
return (jsx(Provider, { context: context, serverState: serverState, children: render }));
|
|
1270
1269
|
};
|
|
1271
1270
|
},
|
|
1272
1271
|
deps: {
|
package/lib/index.es.js
CHANGED
|
@@ -1177,8 +1177,7 @@ CommonModule = __decorate([
|
|
|
1177
1177
|
provide: BUNDLE_MANAGER_TOKEN,
|
|
1178
1178
|
scope: Scope.SINGLETON,
|
|
1179
1179
|
useFactory: ({ additionalBundleList, ...bundleManagerDeps }) => {
|
|
1180
|
-
|
|
1181
|
-
(_a = additionalBundleList) === null || _a === void 0 ? void 0 : _a.forEach((bundles) => {
|
|
1180
|
+
additionalBundleList === null || additionalBundleList === void 0 ? void 0 : additionalBundleList.forEach((bundles) => {
|
|
1182
1181
|
eachObj((bundle, name) => {
|
|
1183
1182
|
const bundleAlreadyExists = name in bundleManagerDeps.bundleList;
|
|
1184
1183
|
if (!bundleAlreadyExists) {
|
|
@@ -1288,7 +1287,7 @@ CommonChildAppModule = __decorate([
|
|
|
1288
1287
|
useFactory: ({ context }) => {
|
|
1289
1288
|
const serverState = typeof window !== 'undefined' ? context.getState() : undefined;
|
|
1290
1289
|
return (render) => {
|
|
1291
|
-
return (jsx(Provider,
|
|
1290
|
+
return (jsx(Provider, { context: context, serverState: serverState, children: render }));
|
|
1292
1291
|
};
|
|
1293
1292
|
},
|
|
1294
1293
|
deps: {
|
package/lib/index.js
CHANGED
|
@@ -1194,8 +1194,7 @@ exports.CommonModule = tslib.__decorate([
|
|
|
1194
1194
|
provide: tokensCommon.BUNDLE_MANAGER_TOKEN,
|
|
1195
1195
|
scope: core.Scope.SINGLETON,
|
|
1196
1196
|
useFactory: ({ additionalBundleList, ...bundleManagerDeps }) => {
|
|
1197
|
-
|
|
1198
|
-
(_a = additionalBundleList) === null || _a === void 0 ? void 0 : _a.forEach((bundles) => {
|
|
1197
|
+
additionalBundleList === null || additionalBundleList === void 0 ? void 0 : additionalBundleList.forEach((bundles) => {
|
|
1199
1198
|
eachObj__default["default"]((bundle, name) => {
|
|
1200
1199
|
const bundleAlreadyExists = name in bundleManagerDeps.bundleList;
|
|
1201
1200
|
if (!bundleAlreadyExists) {
|
|
@@ -1305,7 +1304,7 @@ exports.CommonChildAppModule = tslib.__decorate([
|
|
|
1305
1304
|
useFactory: ({ context }) => {
|
|
1306
1305
|
const serverState = typeof window !== 'undefined' ? context.getState() : undefined;
|
|
1307
1306
|
return (render) => {
|
|
1308
|
-
return (jsxRuntime.jsx(state.Provider,
|
|
1307
|
+
return (jsxRuntime.jsx(state.Provider, { context: context, serverState: serverState, children: render }));
|
|
1309
1308
|
};
|
|
1310
1309
|
},
|
|
1311
1310
|
deps: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/module-common",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.25.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -28,33 +28,33 @@
|
|
|
28
28
|
"build-for-publish": "true"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@tinkoff/errors": "0.3.
|
|
32
|
-
"@tinkoff/hook-runner": "0.4.
|
|
31
|
+
"@tinkoff/errors": "0.3.4",
|
|
32
|
+
"@tinkoff/hook-runner": "0.4.3",
|
|
33
33
|
"@tinkoff/lru-cache-nano": "^7.8.1",
|
|
34
|
-
"@tinkoff/pubsub": "0.5.
|
|
35
|
-
"@tinkoff/url": "0.8.
|
|
36
|
-
"@tramvai/experiments": "2.
|
|
37
|
-
"@tramvai/module-cookie": "2.
|
|
38
|
-
"@tramvai/module-environment": "2.
|
|
39
|
-
"@tramvai/module-log": "2.
|
|
40
|
-
"@tramvai/tokens-child-app": "2.
|
|
41
|
-
"@tramvai/tokens-common": "2.
|
|
42
|
-
"@tramvai/tokens-render": "2.
|
|
34
|
+
"@tinkoff/pubsub": "0.5.4",
|
|
35
|
+
"@tinkoff/url": "0.8.3",
|
|
36
|
+
"@tramvai/experiments": "2.25.1",
|
|
37
|
+
"@tramvai/module-cookie": "2.25.1",
|
|
38
|
+
"@tramvai/module-environment": "2.25.1",
|
|
39
|
+
"@tramvai/module-log": "2.25.1",
|
|
40
|
+
"@tramvai/tokens-child-app": "2.25.1",
|
|
41
|
+
"@tramvai/tokens-common": "2.25.1",
|
|
42
|
+
"@tramvai/tokens-render": "2.25.1",
|
|
43
43
|
"hoist-non-react-statics": "^3.3.1",
|
|
44
44
|
"node-abort-controller": "^3.0.1"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@tinkoff/dippy": "0.8.
|
|
47
|
+
"@tinkoff/dippy": "0.8.5",
|
|
48
48
|
"@tinkoff/utils": "^2.1.2",
|
|
49
|
-
"@tramvai/cli": "2.
|
|
50
|
-
"@tramvai/core": "2.
|
|
51
|
-
"@tramvai/papi": "2.
|
|
52
|
-
"@tramvai/react": "2.
|
|
53
|
-
"@tramvai/state": "2.
|
|
54
|
-
"@tramvai/tokens-metrics": "2.
|
|
55
|
-
"@tramvai/tokens-server": "2.
|
|
49
|
+
"@tramvai/cli": "2.25.1",
|
|
50
|
+
"@tramvai/core": "2.25.1",
|
|
51
|
+
"@tramvai/papi": "2.25.1",
|
|
52
|
+
"@tramvai/react": "2.25.1",
|
|
53
|
+
"@tramvai/state": "2.25.1",
|
|
54
|
+
"@tramvai/tokens-metrics": "2.25.1",
|
|
55
|
+
"@tramvai/tokens-server": "2.25.1",
|
|
56
56
|
"react": ">=16.14.0",
|
|
57
|
-
"tslib": "^2.0
|
|
57
|
+
"tslib": "^2.4.0"
|
|
58
58
|
},
|
|
59
59
|
"module": "lib/index.es.js",
|
|
60
60
|
"license": "Apache-2.0"
|