@citolab/tspci-qbci 2.0.9 → 2.3.0-alpha.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/LICENSE +674 -674
- package/package.json +2 -2
- package/public/index.html +141 -140
- package/questify-default/metadata.json +6 -6
- package/questify-default/ref/json/manifest.json +4 -4
- package/readme.md +16 -16
- package/release-notes.md +3 -3
- package/src/createPackage.mjs +114 -114
- package/types/index.d.ts +53 -53
package/types/index.d.ts
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
export interface CES {
|
|
2
|
-
/** @access public
|
|
3
|
-
* Sets the candidate response ‘as is’ (the format of the response and its state is the responsibility of the implementation).
|
|
4
|
-
* @method setResponse
|
|
5
|
-
* @arg data
|
|
6
|
-
*/
|
|
7
|
-
setResponse: (data: string) => void;
|
|
8
|
-
|
|
9
|
-
/** @access public
|
|
10
|
-
* Gets the previously saved candidate response (if any).
|
|
11
|
-
* @method getResponse
|
|
12
|
-
* @return {String}
|
|
13
|
-
*/
|
|
14
|
-
getResponse: () => string;
|
|
15
|
-
|
|
16
|
-
// /** @access public
|
|
17
|
-
// * Gets an array of resolved manifest media URLs.
|
|
18
|
-
// * @method getMedia
|
|
19
|
-
// * @deprecated not really deprecated, but bundled ci does not contain media ever again
|
|
20
|
-
// */
|
|
21
|
-
// getMedia: () => [];
|
|
22
|
-
|
|
23
|
-
// /**
|
|
24
|
-
// * @access public
|
|
25
|
-
// * @deprecated not really deprecated, but bundled ci does not contain media ever again
|
|
26
|
-
// * Convenience function to adjust the height of the generated iframe
|
|
27
|
-
// * to the current height of the custom interaction’s content height;
|
|
28
|
-
// * if that content’s visual size exceeds its layout box (e.g. by using box-shadow),
|
|
29
|
-
// * an optional vertical margin can be specified.
|
|
30
|
-
// * @method setStageHeight
|
|
31
|
-
// * @arg NumberverticalMargin
|
|
32
|
-
// * @return void
|
|
33
|
-
// */
|
|
34
|
-
// setStageHeight: ([NumberverticalMargin]) => void;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export interface CI<ConfigProperties> {
|
|
38
|
-
typeIdentifier: string;
|
|
39
|
-
|
|
40
|
-
/** @access public
|
|
41
|
-
* @method getInstance Create a new instance of this portable custom interaction
|
|
42
|
-
* Will be called by the qtiCustomInteractionContext
|
|
43
|
-
* @param {DOM Element} dom - the DOM Element this PCI is being added to
|
|
44
|
-
* @param {Object} configuration - the configuration to apply to this PCI
|
|
45
|
-
* @param {String} state - a previous saved state to apply to this instance.
|
|
46
|
-
* This must have been obtained from a prior call to getState on an
|
|
47
|
-
* instance of this type (same typeIdentifier)
|
|
48
|
-
*/
|
|
49
|
-
getInstance: (dom: HTMLElement, configuration: Configuration<ConfigProperties>, state: string) => void;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export declare type Configuration<T> = {
|
|
53
|
-
properties: T;
|
|
1
|
+
export interface CES {
|
|
2
|
+
/** @access public
|
|
3
|
+
* Sets the candidate response ‘as is’ (the format of the response and its state is the responsibility of the implementation).
|
|
4
|
+
* @method setResponse
|
|
5
|
+
* @arg data
|
|
6
|
+
*/
|
|
7
|
+
setResponse: (data: string) => void;
|
|
8
|
+
|
|
9
|
+
/** @access public
|
|
10
|
+
* Gets the previously saved candidate response (if any).
|
|
11
|
+
* @method getResponse
|
|
12
|
+
* @return {String}
|
|
13
|
+
*/
|
|
14
|
+
getResponse: () => string;
|
|
15
|
+
|
|
16
|
+
// /** @access public
|
|
17
|
+
// * Gets an array of resolved manifest media URLs.
|
|
18
|
+
// * @method getMedia
|
|
19
|
+
// * @deprecated not really deprecated, but bundled ci does not contain media ever again
|
|
20
|
+
// */
|
|
21
|
+
// getMedia: () => [];
|
|
22
|
+
|
|
23
|
+
// /**
|
|
24
|
+
// * @access public
|
|
25
|
+
// * @deprecated not really deprecated, but bundled ci does not contain media ever again
|
|
26
|
+
// * Convenience function to adjust the height of the generated iframe
|
|
27
|
+
// * to the current height of the custom interaction’s content height;
|
|
28
|
+
// * if that content’s visual size exceeds its layout box (e.g. by using box-shadow),
|
|
29
|
+
// * an optional vertical margin can be specified.
|
|
30
|
+
// * @method setStageHeight
|
|
31
|
+
// * @arg NumberverticalMargin
|
|
32
|
+
// * @return void
|
|
33
|
+
// */
|
|
34
|
+
// setStageHeight: ([NumberverticalMargin]) => void;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface CI<ConfigProperties> {
|
|
38
|
+
typeIdentifier: string;
|
|
39
|
+
|
|
40
|
+
/** @access public
|
|
41
|
+
* @method getInstance Create a new instance of this portable custom interaction
|
|
42
|
+
* Will be called by the qtiCustomInteractionContext
|
|
43
|
+
* @param {DOM Element} dom - the DOM Element this PCI is being added to
|
|
44
|
+
* @param {Object} configuration - the configuration to apply to this PCI
|
|
45
|
+
* @param {String} state - a previous saved state to apply to this instance.
|
|
46
|
+
* This must have been obtained from a prior call to getState on an
|
|
47
|
+
* instance of this type (same typeIdentifier)
|
|
48
|
+
*/
|
|
49
|
+
getInstance: (dom: HTMLElement, configuration: Configuration<ConfigProperties>, state: string) => void;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export declare type Configuration<T> = {
|
|
53
|
+
properties: T;
|
|
54
54
|
};
|