@citolab/tspci-tao 2.6.2 → 2.6.3-beta.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.
- package/CHANGELOG.md +19 -0
- package/package.json +2 -2
- package/src/init.mjs +1 -8
- package/types/index.d.ts +0 -1
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
|
+
## [2.6.3-beta.1](https://github.com/Citolab/tspci/compare/v2.6.3-beta.0...v2.6.3-beta.1) (2025-04-14)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @citolab/tspci-tao
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [2.6.3-beta.0](https://github.com/Citolab/tspci/compare/v2.6.2...v2.6.3-beta.0) (2025-04-14)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* implement setResponse method in PCI ([1e4dffa](https://github.com/Citolab/tspci/commit/1e4dffac9a182096f750c7c57a7b6096270608a7))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [2.6.2](https://github.com/Citolab/tspci/compare/v2.6.1...v2.6.2) (2025-02-04)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @citolab/tspci-tao
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@citolab/tspci-tao",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.3-beta.1",
|
|
4
4
|
"description": "create a zip file that can be imported into TAO",
|
|
5
5
|
"author": "patrick <patrick.deklein@cito.nl>, Marcel Hoekstra <marcel.hoekstra@cito.nl>",
|
|
6
6
|
"repository": "",
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
"inquirer": "11.0.1"
|
|
13
13
|
},
|
|
14
14
|
"scripts": {},
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "86cdeaf19f50955e56c729ea9fe96ab82d1df171"
|
|
16
16
|
}
|
package/src/init.mjs
CHANGED
|
@@ -94,9 +94,6 @@ export const init = async () => {
|
|
|
94
94
|
);
|
|
95
95
|
// add import { TAOpci } from "@citolab/tspci-tao"; to the top of the file
|
|
96
96
|
newSourceFile = `import { TAOpci } from "@citolab/tspci-tao";\r\n${newSourceFile}`;
|
|
97
|
-
if (newSourceFile.indexOf(" QtiVariableJSON ") === -1) {
|
|
98
|
-
newSourceFile = `import { QtiVariableJSON } from "@citolab/tspci";\r\n${newSourceFile}`;
|
|
99
|
-
}
|
|
100
97
|
const defaultImplementation = `
|
|
101
98
|
off = () => {}; // called when setting correct response in tao
|
|
102
99
|
on = (val) => {};
|
|
@@ -108,11 +105,7 @@ export const init = async () => {
|
|
|
108
105
|
// used in tao to reset the response. clean-up and re-render the PCI would be best.
|
|
109
106
|
// this.render();
|
|
110
107
|
};
|
|
111
|
-
|
|
112
|
-
// used to set the response in tao. E.g. when the item author has set a correct response. And you refresh TAO it will call this method to set the response in the PCI in the score-editor.
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
`;
|
|
108
|
+
`;
|
|
116
109
|
const lastBracket = newSourceFile.lastIndexOf("}");
|
|
117
110
|
newSourceFile =
|
|
118
111
|
newSourceFile.substring(0, lastBracket) + defaultImplementation + newSourceFile.substring(lastBracket);
|
package/types/index.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ export interface TAOpci {
|
|
|
3
3
|
off: () => void; // else TAO gave a javascript error
|
|
4
4
|
|
|
5
5
|
resetResponse?: () => void;
|
|
6
|
-
setResponse?: (response) => void;
|
|
7
6
|
trigger?: (event: string, value: any) => void;
|
|
8
7
|
// All below are specific to TAO items, looks like we do not have to use them, keeping for ref
|
|
9
8
|
/*
|