@tramvai/storybook-addon 2.28.0 → 2.29.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.
@@ -4,8 +4,6 @@ exports.TramvaiCoreDecorator = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const state_1 = require("@tramvai/state");
6
6
  const react_1 = require("@tramvai/react");
7
- const tokens_common_1 = require("@tramvai/tokens-common");
8
- const core_1 = require("@tramvai/core");
9
7
  const test_mocks_1 = require("@tramvai/test-mocks");
10
8
  const TramvaiCoreDecorator = (Story, { parameters }) => {
11
9
  var _a, _b, _c, _d, _e, _f, _g;
@@ -14,30 +12,8 @@ const TramvaiCoreDecorator = (Story, { parameters }) => {
14
12
  initialState: (_b = parameters.tramvai) === null || _b === void 0 ? void 0 : _b.initialState,
15
13
  });
16
14
  const diMock = (0, test_mocks_1.createMockDi)({
17
- modules: [...((_d = (_c = parameters.tramvai) === null || _c === void 0 ? void 0 : _c.modules) !== null && _d !== void 0 ? _d : [])],
18
- providers: [
19
- {
20
- provide: tokens_common_1.LOGGER_TOKEN,
21
- useValue: (0, test_mocks_1.createMockLogger)(),
22
- },
23
- {
24
- provide: tokens_common_1.ENV_MANAGER_TOKEN,
25
- useValue: (0, test_mocks_1.createMockEnvManager)(),
26
- },
27
- {
28
- provide: core_1.APP_INFO_TOKEN,
29
- useValue: (0, test_mocks_1.createMockAppInfo)(),
30
- },
31
- {
32
- provide: tokens_common_1.REQUEST_MANAGER_TOKEN,
33
- useValue: (0, test_mocks_1.createMockRequestManager)(),
34
- },
35
- {
36
- provide: tokens_common_1.CREATE_CACHE_TOKEN,
37
- useValue: () => (0, test_mocks_1.createMockCache)(),
38
- },
39
- ...((_f = (_e = parameters.tramvai) === null || _e === void 0 ? void 0 : _e.providers) !== null && _f !== void 0 ? _f : []),
40
- ],
15
+ modules: [test_mocks_1.CommonTestModule, ...((_d = (_c = parameters.tramvai) === null || _c === void 0 ? void 0 : _c.modules) !== null && _d !== void 0 ? _d : [])],
16
+ providers: [...((_f = (_e = parameters.tramvai) === null || _e === void 0 ? void 0 : _e.providers) !== null && _f !== void 0 ? _f : [])],
41
17
  });
42
18
  const contextMock = (0, test_mocks_1.createMockContext)({
43
19
  di: diMock,
@@ -1 +1 @@
1
- {"version":3,"file":"tramvaiCoreDecorator.js","sourceRoot":"","sources":["../../src/decorators/tramvaiCoreDecorator.tsx"],"names":[],"mappings":";;;;AAAA,0CAA0C;AAE1C,0CAA2C;AAC3C,0DAKgC;AAEhC,wCAA+C;AAE/C,oDAS6B;AAWtB,MAAM,oBAAoB,GAAG,CAClC,KAAK,EACL,EAAE,UAAU,EAAkD,EAC9D,EAAE;;IACF,MAAM,SAAS,GAAG,IAAA,4BAAe,EAAC;QAChC,MAAM,EAAE,MAAA,UAAU,CAAC,OAAO,0CAAE,MAAM;QAClC,YAAY,EAAE,MAAA,UAAU,CAAC,OAAO,0CAAE,YAAY;KAC/C,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,IAAA,yBAAY,EAAC;QAC1B,OAAO,EAAE,CAAC,GAAG,CAAC,MAAA,MAAA,UAAU,CAAC,OAAO,0CAAE,OAAO,mCAAI,EAAE,CAAC,CAAC;QACjD,SAAS,EAAE;YACT;gBACE,OAAO,EAAE,4BAAY;gBACrB,QAAQ,EAAE,IAAA,6BAAgB,GAAE;aAC7B;YACD;gBACE,OAAO,EAAE,iCAAiB;gBAC1B,QAAQ,EAAE,IAAA,iCAAoB,GAAE;aACjC;YACD;gBACE,OAAO,EAAE,qBAAc;gBACvB,QAAQ,EAAE,IAAA,8BAAiB,GAAE;aAC9B;YACD;gBACE,OAAO,EAAE,qCAAqB;gBAC9B,QAAQ,EAAE,IAAA,qCAAwB,GAAE;aACrC;YACD;gBACE,OAAO,EAAE,kCAAkB;gBAC3B,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAA,4BAAe,GAAE;aAClC;YACD,GAAG,CAAC,MAAA,MAAA,UAAU,CAAC,O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AE,SAAS;QAChB,6BAA6B,EAAE,IAAI;KACpC,CAAC,CAAC;IAEH,OAAO,CACL,uBAAC,gBAAQ,kBAAC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAA,UAAU,CAAC,OAAO,0CAAE,YAAY,gBAC3E,uBAAC,iBAAS,CAAC,QAAQ,kBAAC,KAAK,EAAE,MAAM,gBAC/B,uBAAC,KAAK,KAAG,IACU,IACZ,CACZ,CAAC;AACJ,CAAC,CAAC;AAzBW,QAAA,oBAAoB,wBAyB/B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/storybook-addon",
3
- "version": "2.28.0",
3
+ "version": "2.29.0",
4
4
  "description": "",
5
5
  "main": "lib/preset.js",
6
6
  "typings": "lib/preset.d.ts",
@@ -20,7 +20,7 @@
20
20
  "registry": "https://registry.npmjs.org/"
21
21
  },
22
22
  "dependencies": {
23
- "@tramvai/test-mocks": "2.28.0",
23
+ "@tramvai/test-mocks": "2.29.0",
24
24
  "webpack-chain": "^6.5.1",
25
25
  "webpack-merge": "^5.8.0",
26
26
  "react-query": "^3.35.0"
@@ -31,11 +31,11 @@
31
31
  "webpack": "5.74.0"
32
32
  },
33
33
  "peerDependencies": {
34
- "@tramvai/cli": "2.28.0",
35
- "@tramvai/core": "2.28.0",
36
- "@tramvai/state": "2.28.0",
37
- "@tramvai/react": "2.28.0",
38
- "@tramvai/tokens-common": "2.28.0",
34
+ "@tramvai/cli": "2.29.0",
35
+ "@tramvai/core": "2.29.0",
36
+ "@tramvai/state": "2.29.0",
37
+ "@tramvai/react": "2.29.0",
38
+ "@tramvai/tokens-common": "2.29.0",
39
39
  "@tinkoff/dippy": "0.8.6",
40
40
  "@tinkoff/router": "0.2.3",
41
41
  "@tinkoff/url": "0.8.3",