@doreamonjs/plugin-terminal 1.9.30 → 1.10.41
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.
- package/CHANGELOG.md +11 -0
- package/lib/model.js +10 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.10.41](https://github.com/doreamonjs/doreamon/compare/v1.10.40...v1.10.41) (2023-12-06)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* plugin terminal step into next action when close ([0992c2f](https://github.com/doreamonjs/doreamon/commit/0992c2fcdc6b0aa2de6c958e482df5039b50cc9d))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [1.9.30](https://github.com/doreamonjs/doreamon/compare/v1.9.29...v1.9.30) (2023-09-08)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @doreamonjs/plugin-terminal
|
package/lib/model.js
CHANGED
|
@@ -62,11 +62,11 @@ class Model {
|
|
|
62
62
|
},
|
|
63
63
|
});
|
|
64
64
|
},
|
|
65
|
-
*cancel(action, { select, put }) {
|
|
65
|
+
*cancel(action, { select, put, take }) {
|
|
66
66
|
const { callback } = yield select((state) => state.confirms);
|
|
67
|
-
yield put({ type: '
|
|
67
|
+
yield put({ type: 'close' });
|
|
68
|
+
yield take('close/@@end');
|
|
68
69
|
callback === null || callback === void 0 ? void 0 : callback(null, 'cancel');
|
|
69
|
-
yield put({ type: 'queue/out' });
|
|
70
70
|
},
|
|
71
71
|
// data
|
|
72
72
|
*submit({ payload: { values: updates } }, { select, put, call, take }) {
|
|
@@ -102,8 +102,14 @@ class Model {
|
|
|
102
102
|
yield put({ type: 'queue/out' });
|
|
103
103
|
},
|
|
104
104
|
//
|
|
105
|
-
*close(action, { put }) {
|
|
105
|
+
*close(action, { put, select, take }) {
|
|
106
|
+
const { attributes, datasets, callback } = yield select((state) => state[constants_1.NAMESPACE]);
|
|
107
|
+
const { target } = attributes || {};
|
|
108
|
+
const { namespace, effect, props } = target || {};
|
|
109
|
+
const nextEffect = `${namespace}/${effect}`;
|
|
106
110
|
yield put({ type: 'save', payload: { visible: false } });
|
|
111
|
+
yield put({ ...props, type: nextEffect, payload: datasets });
|
|
112
|
+
yield take(`${nextEffect}/@@end`);
|
|
107
113
|
yield put({ type: 'queue/out' });
|
|
108
114
|
},
|
|
109
115
|
//
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@doreamonjs/plugin-terminal",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.41",
|
|
4
4
|
"description": "log plugin for doreamonjs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"doreamonjs",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"mixpanel-browser": "^2.45.0",
|
|
78
78
|
"thinkingdata-browser": "^1.6.0"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "cf1c87ec8841b99661747077f43c79014a0b1004"
|
|
81
81
|
}
|