@modern-js/plugin-state 1.2.10 → 2.65.5-alpha.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.
Files changed (46) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +14 -18
  3. package/dist/cjs/cli/index.js +70 -0
  4. package/dist/cjs/cli/types.js +16 -0
  5. package/dist/cjs/index.js +43 -0
  6. package/dist/cjs/plugins.js +50 -0
  7. package/dist/cjs/runtime/index.js +42 -0
  8. package/dist/cjs/runtime/plugin.js +95 -0
  9. package/dist/esm/cli/index.js +48 -0
  10. package/dist/esm/cli/types.js +0 -0
  11. package/dist/esm/index.js +7 -0
  12. package/dist/esm/plugins.js +19 -0
  13. package/dist/esm/runtime/index.js +6 -0
  14. package/dist/esm/runtime/plugin.js +92 -0
  15. package/dist/esm-node/cli/index.js +46 -0
  16. package/dist/esm-node/cli/types.js +0 -0
  17. package/dist/esm-node/index.js +7 -0
  18. package/dist/esm-node/plugins.js +13 -0
  19. package/dist/esm-node/runtime/index.js +6 -0
  20. package/dist/esm-node/runtime/plugin.js +68 -0
  21. package/dist/types/cli/index.d.ts +3 -5
  22. package/dist/types/cli/types.d.ts +6 -0
  23. package/dist/types/index.d.ts +3 -0
  24. package/dist/types/plugins.d.ts +1 -1
  25. package/dist/types/runtime/index.d.ts +1 -2
  26. package/dist/types/runtime/plugin.d.ts +13 -17
  27. package/package.json +56 -83
  28. package/types/index.d.ts +27 -0
  29. package/CHANGELOG.md +0 -419
  30. package/dist/js/modern/cli/index.js +0 -110
  31. package/dist/js/modern/plugins.js +0 -7
  32. package/dist/js/modern/runtime/index.js +0 -4
  33. package/dist/js/modern/runtime/plugin.js +0 -70
  34. package/dist/js/modern/types.js +0 -1
  35. package/dist/js/node/cli/index.js +0 -127
  36. package/dist/js/node/plugins.js +0 -35
  37. package/dist/js/node/runtime/index.js +0 -61
  38. package/dist/js/node/runtime/plugin.js +0 -99
  39. package/dist/js/node/types.js +0 -5
  40. package/dist/js/treeshaking/cli/index.js +0 -100
  41. package/dist/js/treeshaking/plugins.js +0 -13
  42. package/dist/js/treeshaking/runtime/index.js +0 -4
  43. package/dist/js/treeshaking/runtime/plugin.js +0 -62
  44. package/dist/js/treeshaking/types.js +0 -1
  45. package/dist/types/types.d.ts +0 -17
  46. package/type.d.ts +0 -4
package/CHANGELOG.md DELETED
@@ -1,419 +0,0 @@
1
- # @modern-js/plugin-state
2
-
3
- ## 1.2.10
4
-
5
- ### Patch Changes
6
-
7
- - a1198d509: feat: bump babel 7.18.0
8
-
9
- ## 1.2.9
10
-
11
- ### Patch Changes
12
-
13
- - 37250cb8f: feat: supply `AppConfig` types
14
-
15
- ## 1.2.8
16
-
17
- ### Patch Changes
18
-
19
- - f7cbc771: chore(plugin-state): bump @modern-js-reduck/plugin-devtools 1.0.3 to fix the deprecatetion warning
20
-
21
- ## 1.2.7
22
-
23
- ### Patch Changes
24
-
25
- - d32f35134: chore: add modern/jest/eslint/ts config files to .npmignore
26
-
27
- ## 1.2.6
28
-
29
- ### Patch Changes
30
-
31
- - b5943b029: fix: `exports` field in package.json
32
-
33
- ## 1.2.5
34
-
35
- ### Patch Changes
36
-
37
- - 6c1438d2: fix: missing peer deps warnings
38
- - 895fa0ff: chore: using "workspace:\*" in devDependencies
39
-
40
- ## 1.2.4
41
-
42
- ### Patch Changes
43
-
44
- - 6cffe99d: chore:
45
- remove react eslint rules for `modern-js` rule set.
46
- add .eslintrc for each package to speed up linting
47
- - 04ae5262: chore: bump @modern-js/utils to v1.4.1 in dependencies
48
- - 60f7d8bf: feat: add tests dir to npmignore
49
-
50
- ## 1.2.3
51
-
52
- ### Patch Changes
53
-
54
- - bebb39b6: chore: improve devDependencies and peerDependencies
55
-
56
- ## 1.2.2
57
-
58
- ### Patch Changes
59
-
60
- - 94d02b35: feat(plugin-runtime): convert to new plugin
61
- - 681a1ff9: feat: remove unnecessary peerDependencies
62
- - e8bbc315: feat(plugin-state): convert to new plugin
63
-
64
- ## 1.2.1
65
-
66
- ### Patch Changes
67
-
68
- - 83166714: change .npmignore
69
- - Updated dependencies [83166714]
70
- - Updated dependencies [c3de9882]
71
- - Updated dependencies [33ff48af]
72
- - Updated dependencies [c74597bd]
73
- - @modern-js/core@1.3.2
74
- - @modern-js/runtime-core@1.2.1
75
-
76
- ## 1.2.0
77
-
78
- ### Minor Changes
79
-
80
- - cfe11628: Make Modern.js self bootstraping
81
-
82
- ### Patch Changes
83
-
84
- - Updated dependencies [fc71e36f]
85
- - Updated dependencies [a2cb9abc]
86
- - Updated dependencies [cfe11628]
87
- - @modern-js/core@1.3.0
88
- - @modern-js/runtime-core@1.2.0
89
-
90
- ## 1.1.4
91
-
92
- ### Patch Changes
93
-
94
- - 4a281912: fix: app init function not work
95
- - Updated dependencies [4a281912]
96
- - Updated dependencies [4a281912]
97
- - Updated dependencies [eb026119]
98
- - @modern-js/runtime-core@1.1.3
99
-
100
- ## 1.1.3
101
-
102
- ### Patch Changes
103
-
104
- - 4406c2db: fix: avoid fetching data again when ssr succeeds
105
- - Updated dependencies [90eeb72c]
106
- - Updated dependencies [e04914ce]
107
- - Updated dependencies [4406c2db]
108
- - Updated dependencies [5a4c557e]
109
- - Updated dependencies [e04914ce]
110
- - Updated dependencies [ecb344dc]
111
- - @modern-js/core@1.2.0
112
- - @modern-js/runtime-core@1.1.2
113
-
114
- ## 1.1.2
115
-
116
- ### Patch Changes
117
-
118
- - 0fa83663: support more .env files
119
- - f594fbc8: fix apple icon and favicon support
120
- - Updated dependencies [6f7fe574]
121
- - Updated dependencies [0fa83663]
122
- - @modern-js/core@1.1.2
123
- - @modern-js/runtime-core@1.1.1
124
-
125
- ## 1.1.1
126
-
127
- ### Patch Changes
128
-
129
- - 725c4ff0: fix(state): type error when build @modern-js/plugin-state was fixed
130
- - Updated dependencies [687c92c7]
131
- - @modern-js/core@1.1.1
132
-
133
- ## 1.1.0
134
-
135
- ### Minor Changes
136
-
137
- - 96119db2: Relese v1.1.0
138
-
139
- ### Patch Changes
140
-
141
- - Updated dependencies [96119db2]
142
- - @modern-js/core@1.1.0
143
- - @modern-js/runtime-core@1.1.0
144
-
145
- ## 1.0.0
146
-
147
- ### Patch Changes
148
-
149
- - 224f7fe: fix server route match
150
- - 30ac27c: feat: add generator package description
151
- - 0fd196e: feat: fix bugs
152
- - 204c626: feat: initial
153
- - 63be0a5: fix: #118 #104
154
- - Updated dependencies [224f7fe]
155
- - Updated dependencies [30ac27c]
156
- - Updated dependencies [0fd196e]
157
- - Updated dependencies [204c626]
158
- - Updated dependencies [63be0a5]
159
- - @modern-js/core@1.0.0
160
- - @modern-js/runtime-core@1.0.0
161
-
162
- ## 1.0.0-rc.23
163
-
164
- ### Patch Changes
165
-
166
- - 224f7fe: fix server route match
167
- - 30ac27c: feat: add generator package description
168
- - 0fd196e: feat: fix bugs
169
- - 204c626: feat: initial
170
- - 63be0a5: fix: #118 #104
171
- - Updated dependencies [224f7fe]
172
- - Updated dependencies [30ac27c]
173
- - Updated dependencies [0fd196e]
174
- - Updated dependencies [204c626]
175
- - Updated dependencies [63be0a5]
176
- - @modern-js/core@1.0.0-rc.23
177
- - @modern-js/runtime-core@1.0.0-rc.23
178
-
179
- ## 1.0.0-rc.22
180
-
181
- ### Patch Changes
182
-
183
- - 224f7fe: fix server route match
184
- - 30ac27c: feat: add generator package description
185
- - 0fd196e: feat: fix bugs
186
- - 204c626: feat: initial
187
- - 63be0a5: fix: #118 #104
188
- - Updated dependencies [224f7fe]
189
- - Updated dependencies [30ac27c]
190
- - Updated dependencies [0fd196e]
191
- - Updated dependencies [204c626]
192
- - Updated dependencies [63be0a5]
193
- - @modern-js/core@1.0.0-rc.22
194
- - @modern-js/runtime-core@1.0.0-rc.22
195
-
196
- ## 1.0.0-rc.21
197
-
198
- ### Patch Changes
199
-
200
- - 224f7fe: fix server route match
201
- - 30ac27c: feat: add generator package description
202
- - 0fd196e: feat: fix bugs
203
- - 204c626: feat: initial
204
- - 63be0a5: fix: #118 #104
205
- - Updated dependencies [224f7fe]
206
- - Updated dependencies [30ac27c]
207
- - Updated dependencies [0fd196e]
208
- - Updated dependencies [204c626]
209
- - Updated dependencies [63be0a5]
210
- - @modern-js/core@1.0.0-rc.21
211
- - @modern-js/runtime-core@1.0.0-rc.21
212
-
213
- ## 1.0.0-rc.20
214
-
215
- ### Patch Changes
216
-
217
- - 224f7fe: fix server route match
218
- - 30ac27c: feat: add generator package description
219
- - feat: fix bugs
220
- - 204c626: feat: initial
221
- - 63be0a5: fix: #118 #104
222
- - Updated dependencies [224f7fe]
223
- - Updated dependencies [30ac27c]
224
- - Updated dependencies [undefined]
225
- - Updated dependencies [204c626]
226
- - Updated dependencies [63be0a5]
227
- - @modern-js/core@1.0.0-rc.20
228
- - @modern-js/runtime-core@1.0.0-rc.20
229
-
230
- ## 1.0.0-rc.19
231
-
232
- ### Patch Changes
233
-
234
- - 224f7fe: fix server route match
235
- - 30ac27c: feat: add generator package description
236
- - 204c626: feat: initial
237
- - 63be0a5: fix: #118 #104
238
- - Updated dependencies [224f7fe]
239
- - Updated dependencies [30ac27c]
240
- - Updated dependencies [204c626]
241
- - Updated dependencies [63be0a5]
242
- - @modern-js/core@1.0.0-rc.19
243
- - @modern-js/runtime-core@1.0.0-rc.19
244
-
245
- ## 1.0.0-rc.18
246
-
247
- ### Patch Changes
248
-
249
- - 224f7fe: fix server route match
250
- - 30ac27c: feat: add generator package description
251
- - 204c626: feat: initial
252
- - 63be0a5: fix: #118 #104
253
- - Updated dependencies [224f7fe]
254
- - Updated dependencies [30ac27c]
255
- - Updated dependencies [204c626]
256
- - Updated dependencies [63be0a5]
257
- - @modern-js/core@1.0.0-rc.18
258
- - @modern-js/runtime-core@1.0.0-rc.18
259
-
260
- ## 1.0.0-rc.17
261
-
262
- ### Patch Changes
263
-
264
- - 224f7fe: fix server route match
265
- - 30ac27c: feat: add generator package description
266
- - 204c626: feat: initial
267
- - fix: #118 #104
268
- - Updated dependencies [224f7fe]
269
- - Updated dependencies [30ac27c]
270
- - Updated dependencies [204c626]
271
- - Updated dependencies [undefined]
272
- - @modern-js/core@1.0.0-rc.17
273
- - @modern-js/runtime-core@1.0.0-rc.17
274
-
275
- ## 1.0.0-rc.16
276
-
277
- ### Patch Changes
278
-
279
- - 224f7fe: fix server route match
280
- - 30ac27c: feat: add generator package description
281
- - 204c626: feat: initial
282
- - Updated dependencies [224f7fe]
283
- - Updated dependencies [30ac27c]
284
- - Updated dependencies [204c626]
285
- - @modern-js/core@1.0.0-rc.16
286
- - @modern-js/runtime-core@1.0.0-rc.16
287
-
288
- ## 1.0.0-rc.15
289
-
290
- ### Patch Changes
291
-
292
- - 224f7fe: fix server route match
293
- - 30ac27c: feat: add generator package description
294
- - 204c626: feat: initial
295
- - Updated dependencies [224f7fe]
296
- - Updated dependencies [30ac27c]
297
- - Updated dependencies [204c626]
298
- - @modern-js/core@1.0.0-rc.15
299
- - @modern-js/runtime-core@1.0.0-rc.15
300
-
301
- ## 1.0.0-rc.14
302
-
303
- ### Patch Changes
304
-
305
- - 224f7fe: fix server route match
306
- - 204c626: feat: initial
307
- - Updated dependencies [224f7fe]
308
- - Updated dependencies [204c626]
309
- - @modern-js/core@1.0.0-rc.14
310
- - @modern-js/runtime-core@1.0.0-rc.14
311
-
312
- ## 1.0.0-rc.13
313
-
314
- ### Patch Changes
315
-
316
- - 224f7fe: fix server route match
317
- - 204c626: feat: initial
318
- - Updated dependencies [224f7fe]
319
- - Updated dependencies [204c626]
320
- - @modern-js/core@1.0.0-rc.13
321
- - @modern-js/runtime-core@1.0.0-rc.13
322
-
323
- ## 1.0.0-rc.12
324
-
325
- ### Patch Changes
326
-
327
- - 224f7fe: fix server route match
328
- - 204c626: feat: initial
329
- - Updated dependencies [224f7fe]
330
- - Updated dependencies [204c626]
331
- - @modern-js/runtime-core@1.0.0-rc.12
332
-
333
- ## 1.0.0-rc.11
334
-
335
- ### Patch Changes
336
-
337
- - 224f7fe: fix server route match
338
- - 204c626: feat: initial
339
- - Updated dependencies [224f7fe]
340
- - Updated dependencies [204c626]
341
- - @modern-js/runtime-core@1.0.0-rc.11
342
-
343
- ## 1.0.0-rc.10
344
-
345
- ### Patch Changes
346
-
347
- - 224f7fe: fix server route match
348
- - 204c626: feat: initial
349
- - Updated dependencies [224f7fe]
350
- - Updated dependencies [204c626]
351
- - @modern-js/runtime-core@1.0.0-rc.10
352
-
353
- ## 1.0.0-rc.9
354
-
355
- ### Patch Changes
356
-
357
- - 224f7fe: fix server route match
358
- - 204c626: feat: initial
359
- - Updated dependencies [224f7fe]
360
- - Updated dependencies [204c626]
361
- - @modern-js/runtime-core@1.0.0-rc.9
362
-
363
- ## 1.0.0-rc.8
364
-
365
- ### Patch Changes
366
-
367
- - 224f7fe: fix server route match
368
- - 204c626: feat: initial
369
- - Updated dependencies [224f7fe]
370
- - Updated dependencies [204c626]
371
- - @modern-js/runtime-core@1.0.0-rc.8
372
-
373
- ## 1.0.0-rc.7
374
-
375
- ### Patch Changes
376
-
377
- - 224f7fe: fix server route match
378
- - 204c626: feat: initial
379
- - Updated dependencies [224f7fe]
380
- - Updated dependencies [204c626]
381
- - @modern-js/runtime-core@1.0.0-rc.7
382
-
383
- ## 1.0.0-rc.6
384
-
385
- ### Patch Changes
386
-
387
- - 224f7fe: fix server route match
388
- - 204c626: feat: initial
389
- - Updated dependencies [224f7fe]
390
- - Updated dependencies [204c626]
391
- - @modern-js/runtime-core@1.0.0-rc.6
392
-
393
- ## 1.0.0-rc.5
394
-
395
- ### Patch Changes
396
-
397
- - 224f7fe: fix server route match
398
- - 204c626: feat: initial
399
- - Updated dependencies [224f7fe]
400
- - Updated dependencies [204c626]
401
- - @modern-js/runtime-core@1.0.0-rc.5
402
-
403
- ## 1.0.0-rc.4
404
-
405
- ### Patch Changes
406
-
407
- - fix server route match
408
- - 204c626: feat: initial
409
- - Updated dependencies [undefined]
410
- - Updated dependencies [204c626]
411
- - @modern-js/runtime-core@1.0.0-rc.4
412
-
413
- ## 1.0.0-rc.3
414
-
415
- ### Patch Changes
416
-
417
- - feat: initial
418
- - Updated dependencies [undefined]
419
- - @modern-js/runtime-core@1.0.0-rc.3
@@ -1,110 +0,0 @@
1
- import path from 'path';
2
- import { getEntryOptions, createRuntimeExportsUtils, PLUGIN_SCHEMAS } from '@modern-js/utils';
3
- import "../types";
4
- const PLUGIN_IDENTIFIER = 'state';
5
- export default (() => ({
6
- name: '@modern-js/plugin-state',
7
- required: ['@modern-js/runtime'],
8
- setup: api => {
9
- const stateConfigMap = new Map();
10
- let pluginsExportsUtils;
11
- const stateModulePath = path.resolve(__dirname, '../../../../');
12
- return {
13
- config() {
14
- const appContext = api.useAppContext();
15
- pluginsExportsUtils = createRuntimeExportsUtils(appContext.internalDirectory, 'plugins');
16
- return {
17
- source: {
18
- alias: {
19
- '@modern-js/runtime/plugins': pluginsExportsUtils.getPath()
20
- }
21
- }
22
- };
23
- },
24
-
25
- modifyEntryImports({
26
- entrypoint,
27
- imports
28
- }) {
29
- var _getEntryOptions;
30
-
31
- const {
32
- entryName
33
- } = entrypoint;
34
- const userConfig = api.useResolvedConfigContext();
35
- const {
36
- packageName
37
- } = api.useAppContext();
38
- const stateConfig = (_getEntryOptions = getEntryOptions(entryName, userConfig.runtime, userConfig.runtimeByEntries, packageName)) === null || _getEntryOptions === void 0 ? void 0 : _getEntryOptions.state;
39
- stateConfigMap.set(entryName, stateConfig);
40
-
41
- const getEnabledPlugins = () => {
42
- const internalPlugins = ['immer', 'effects', 'autoActions', 'devtools'];
43
- return internalPlugins.filter(name => stateConfig[name] !== false);
44
- };
45
-
46
- if (stateConfig) {
47
- imports.push({
48
- value: '@modern-js/runtime/plugins',
49
- specifiers: [{
50
- imported: PLUGIN_IDENTIFIER
51
- }]
52
- });
53
- imports.push({
54
- value: '@modern-js/runtime/model',
55
- specifiers: getEnabledPlugins().map(imported => ({
56
- imported
57
- })),
58
- initialize: `
59
- const createStatePlugins = (config) => {
60
- const plugins = [];
61
-
62
- ${getEnabledPlugins().map(name => `
63
- plugins.push(${name}(config['${name}']));
64
- `).join('\n')}
65
-
66
- return plugins;
67
- }
68
- `
69
- });
70
- }
71
-
72
- return {
73
- entrypoint,
74
- imports
75
- };
76
- },
77
-
78
- modifyEntryRuntimePlugins({
79
- entrypoint,
80
- plugins
81
- }) {
82
- const stateOptions = stateConfigMap.get(entrypoint.entryName);
83
-
84
- if (stateOptions) {
85
- const isBoolean = typeof stateOptions === 'boolean';
86
- let options = isBoolean ? '{}' : JSON.stringify(stateOptions);
87
- options = `${options.substr(0, options.length - 1)}${isBoolean ? '' : ','}plugins: createStatePlugins(${JSON.stringify(stateConfigMap.get(entrypoint.entryName))})}`;
88
- plugins.push({
89
- name: PLUGIN_IDENTIFIER,
90
- options
91
- });
92
- }
93
-
94
- return {
95
- entrypoint,
96
- plugins
97
- };
98
- },
99
-
100
- validateSchema() {
101
- return PLUGIN_SCHEMAS['@modern-js/plugin-state'];
102
- },
103
-
104
- addRuntimeExports() {
105
- pluginsExportsUtils.addExport(`export { default as state } from '${stateModulePath}'`);
106
- }
107
-
108
- };
109
- }
110
- }));
@@ -1,7 +0,0 @@
1
- import { plugin as effectsPlugin } from '@modern-js-reduck/plugin-effects';
2
- import autoActionsPlugin from '@modern-js-reduck/plugin-auto-actions';
3
- import immerPlugin from '@modern-js-reduck/plugin-immutable';
4
- export { default as devtools } from '@modern-js-reduck/plugin-devtools';
5
- export const effects = () => effectsPlugin;
6
- export const immer = () => immerPlugin;
7
- export const autoActions = () => autoActionsPlugin;
@@ -1,4 +0,0 @@
1
- export * from '@modern-js-reduck/react';
2
- export { model, createStore } from '@modern-js-reduck/store';
3
- export { default } from "./plugin";
4
- export * from "./plugin";
@@ -1,70 +0,0 @@
1
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2
-
3
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
-
5
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
-
7
- import { useContext } from 'react';
8
- import { RuntimeReactContext } from '@modern-js/runtime-core';
9
- import { createStore } from '@modern-js-reduck/store';
10
- import { Provider } from '@modern-js-reduck/react';
11
- import hoistNonReactStatics from 'hoist-non-react-statics';
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
-
14
- const state = config => ({
15
- name: '@modern-js/plugin-state',
16
- setup: () => {
17
- return {
18
- hoc({
19
- App
20
- }, next) {
21
- const getStateApp = props => {
22
- // eslint-disable-next-line react-hooks/rules-of-hooks
23
- const context = useContext(RuntimeReactContext);
24
- return /*#__PURE__*/_jsx(Provider, {
25
- store: context.store,
26
- config: config,
27
- children: /*#__PURE__*/_jsx(App, _objectSpread({}, props))
28
- });
29
- };
30
-
31
- return next({
32
- App: hoistNonReactStatics(getStateApp, App)
33
- });
34
- },
35
-
36
- init({
37
- context
38
- }, next) {
39
- const storeConfig = config || {};
40
-
41
- if (typeof window !== 'undefined') {
42
- var _window, _window$_SSR_DATA, _window$_SSR_DATA$dat;
43
-
44
- storeConfig.initialState = storeConfig.initialState || ((_window = window) === null || _window === void 0 ? void 0 : (_window$_SSR_DATA = _window._SSR_DATA) === null || _window$_SSR_DATA === void 0 ? void 0 : (_window$_SSR_DATA$dat = _window$_SSR_DATA.data) === null || _window$_SSR_DATA$dat === void 0 ? void 0 : _window$_SSR_DATA$dat.storeState) || {};
45
- }
46
-
47
- context.store = createStore(storeConfig);
48
- next({
49
- context
50
- });
51
- },
52
-
53
- pickContext({
54
- context,
55
- pickedContext
56
- }, next) {
57
- return next({
58
- context,
59
- pickedContext: _objectSpread(_objectSpread({}, pickedContext), {}, {
60
- store: context.store
61
- })
62
- });
63
- }
64
-
65
- };
66
- }
67
- });
68
-
69
- export default state;
70
- export * from "../plugins";
@@ -1 +0,0 @@
1
- export {};