@doreamonjs/plugin-log 1.2.5 → 1.10.47

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 CHANGED
@@ -3,6 +3,25 @@
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.47](https://github.com/doreamonjs/doreamon/compare/v1.10.46...v1.10.47) (2023-12-08)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * plugin log allow next action in page-creator ([e569ce0](https://github.com/doreamonjs/doreamon/commit/e569ce02162b62b0fb5f3737cea8b86e82c404d5))
12
+
13
+
14
+
15
+
16
+
17
+ ## [1.2.13](https://github.com/doreamonjs/doreamon/compare/v1.2.12...v1.2.13) (2022-11-14)
18
+
19
+ **Note:** Version bump only for package @doreamonjs/plugin-log
20
+
21
+
22
+
23
+
24
+
6
25
  ## [1.2.5](https://github.com/doreamonjs/doreamon/compare/v1.2.4...v1.2.5) (2022-10-17)
7
26
 
8
27
  **Note:** Version bump only for package @doreamonjs/plugin-log
package/lib/model.js CHANGED
@@ -63,11 +63,11 @@ class Model {
63
63
  },
64
64
  });
65
65
  },
66
- *cancel(action, { select, put }) {
66
+ *cancel(action, { select, put, take }) {
67
67
  const { callback } = yield select((state) => state.confirms);
68
- yield put({ type: 'save', payload: { visible: false } });
68
+ yield put({ type: 'close' });
69
+ yield take('close/@@end');
69
70
  callback === null || callback === void 0 ? void 0 : callback(null, 'cancel');
70
- yield put({ type: 'queue/out' });
71
71
  },
72
72
  // data
73
73
  *submit({ payload: { values: updates } }, { select, put, call, take }) {
@@ -103,8 +103,14 @@ class Model {
103
103
  yield put({ type: 'queue/out' });
104
104
  },
105
105
  //
106
- *close(action, { put }) {
106
+ *close(action, { put, select, take }) {
107
+ const { attributes, datasets, callback } = yield select((state) => state[constants_1.NAMESPACE]);
108
+ const { target } = attributes || {};
109
+ const { namespace, effect, props } = target || {};
110
+ const nextEffect = `${namespace}/${effect}`;
107
111
  yield put({ type: 'save', payload: { visible: false } });
112
+ yield put({ ...props, type: nextEffect, payload: datasets });
113
+ yield take(`${nextEffect}/@@end`);
108
114
  yield put({ type: 'queue/out' });
109
115
  },
110
116
  //
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doreamonjs/plugin-log",
3
- "version": "1.2.5",
3
+ "version": "1.10.47",
4
4
  "description": "log plugin for doreamonjs",
5
5
  "keywords": [
6
6
  "doreamonjs",
@@ -66,7 +66,7 @@
66
66
  },
67
67
  "dependencies": {
68
68
  "@doreamonjs/plugin-shared": "^1.1.28",
69
- "@doreamonjs/request": "^1.2.5",
69
+ "@doreamonjs/request": "^1.2.13",
70
70
  "@sentry/browser": "^7.11.1",
71
71
  "@sentry/tracing": "^7.11.1",
72
72
  "@zcorky/delay": "^1.0.1",
@@ -77,5 +77,5 @@
77
77
  "mixpanel-browser": "^2.45.0",
78
78
  "thinkingdata-browser": "^1.6.0"
79
79
  },
80
- "gitHead": "f7067606cb2614f2396dfcf378fd2dce8454b0fe"
80
+ "gitHead": "5e622bf5a9402f1b09bb23a222630c582279f664"
81
81
  }