@pie-element/passage 2.2.1-next.7 → 2.3.1-next.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.
- package/CHANGELOG.md +17 -0
- package/controller/CHANGELOG.json +1 -0
- package/controller/CHANGELOG.md +11 -0
- package/controller/lib/index.js +47 -0
- package/controller/lib/index.js.map +1 -0
- package/controller/package.json +10 -0
- package/module/controller.js +15 -0
- package/module/demo.js +1 -7
- package/module/index.html +1 -1
- package/module/manifest.json +1 -1
- package/module/print.html +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,23 @@
|
|
|
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
|
+
# [2.3.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/passage@2.2.0...@pie-element/passage@2.3.0) (2024-02-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* pie-lib/pie-toolbox with slate updates ([a8f8707](https://github.com/pie-framework/pie-elements/commit/a8f8707b2c197c2b40fb6632cee0ba4c27aa9aa4))
|
|
12
|
+
* update pie-lib/pie-toolbox ([cec328c](https://github.com/pie-framework/pie-elements/commit/cec328caf5b69d9fee00473c502aed62d6e27462))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* add controller for passage PD-3445 ([fb51d3e](https://github.com/pie-framework/pie-elements/commit/fb51d3ef2181009e939a1310f1f7dc4769ef404d))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
6
23
|
# [2.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/passage@2.1.8...@pie-element/passage@2.2.0) (2024-02-09)
|
|
7
24
|
|
|
8
25
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
# 1.1.0 (2024-02-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* add controller for passage PD-3445 ([fb51d3e](https://github.com/pie-framework/pie-elements/commit/fb51d3ef2181009e939a1310f1f7dc4769ef404d))
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.model = model;
|
|
9
|
+
|
|
10
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
|
+
|
|
12
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @param {*} question
|
|
17
|
+
* @param {*} session
|
|
18
|
+
* @param {*} env
|
|
19
|
+
* @param {*} updateSession - optional - a function that will set the properties passed into it on the session.
|
|
20
|
+
*/
|
|
21
|
+
function model(_x, _x2, _x3, _x4) {
|
|
22
|
+
return _model.apply(this, arguments);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function _model() {
|
|
26
|
+
_model = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(question, session, env, updateSession) {
|
|
27
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
28
|
+
while (1) {
|
|
29
|
+
switch (_context.prev = _context.next) {
|
|
30
|
+
case 0:
|
|
31
|
+
// TODO use env to send teacherInstructions
|
|
32
|
+
console.log({
|
|
33
|
+
question: question,
|
|
34
|
+
env: env
|
|
35
|
+
});
|
|
36
|
+
return _context.abrupt("return", question);
|
|
37
|
+
|
|
38
|
+
case 2:
|
|
39
|
+
case "end":
|
|
40
|
+
return _context.stop();
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}, _callee);
|
|
44
|
+
}));
|
|
45
|
+
return _model.apply(this, arguments);
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.js"],"names":["model","question","session","env","updateSession","console","log"],"mappings":";;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;SACsBA,K;;;;;yFAAf,iBAAqBC,QAArB,EAA+BC,OAA/B,EAAwCC,GAAxC,EAA6CC,aAA7C;AAAA;AAAA;AAAA;AAAA;AACL;AACAC,YAAAA,OAAO,CAACC,GAAR,CAAY;AAAEL,cAAAA,QAAQ,EAARA,QAAF;AAAYE,cAAAA,GAAG,EAAHA;AAAZ,aAAZ;AAFK,6CAIEF,QAJF;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,G","sourcesContent":["/**\n *\n * @param {*} question\n * @param {*} session\n * @param {*} env\n * @param {*} updateSession - optional - a function that will set the properties passed into it on the session.\n */\nexport async function model(question, session, env, updateSession) {\n // TODO use env to send teacherInstructions\n console.log({ question, env });\n\n return question;\n}\n"],"file":"index.js"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @param {*} question
|
|
4
|
+
* @param {*} session
|
|
5
|
+
* @param {*} env
|
|
6
|
+
* @param {*} updateSession - optional - a function that will set the properties passed into it on the session.
|
|
7
|
+
*/
|
|
8
|
+
async function model(question, session, env, updateSession) {
|
|
9
|
+
// TODO use env to send teacherInstructions
|
|
10
|
+
console.log({ question, env });
|
|
11
|
+
|
|
12
|
+
return question;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { model };
|
package/module/demo.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import Element from './element.js';
|
|
2
|
+
import * as controller from './controller.js';
|
|
2
3
|
|
|
3
4
|
var generate = {};
|
|
4
5
|
|
|
@@ -44,13 +45,6 @@ var config = {
|
|
|
44
45
|
// configure
|
|
45
46
|
class Configure extends HTMLElement{}
|
|
46
47
|
|
|
47
|
-
|
|
48
|
-
// controller
|
|
49
|
-
const controller = {
|
|
50
|
-
model: (q) => Promise.resolve(q),
|
|
51
|
-
outcome: (q) => Promise.resolve(q)
|
|
52
|
-
};
|
|
53
|
-
|
|
54
48
|
|
|
55
49
|
//Note: demo-el is a custom element loaded in the markup.
|
|
56
50
|
customElements.whenDefined("demo-el").then(() => {
|
package/module/index.html
CHANGED
package/module/manifest.json
CHANGED
package/module/print.html
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/passage",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.1-next.0+4895fc8a9",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@material-ui/core": "^3.9.2",
|
|
13
13
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
14
|
-
"@pie-lib/pie-toolbox": "1.
|
|
14
|
+
"@pie-lib/pie-toolbox": "1.7.1",
|
|
15
15
|
"classnames": "^2.2.5",
|
|
16
16
|
"prop-types": "^15.6.1",
|
|
17
17
|
"react": "^16.8.1",
|
|
18
18
|
"react-dom": "^16.8.1"
|
|
19
19
|
},
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "4895fc8a9ffccb220ff8e29c6b994edacb99e29b",
|
|
21
21
|
"scripts": {
|
|
22
22
|
"postpublish": "../../scripts/postpublish"
|
|
23
23
|
},
|