@citolab/tspci-qbci 2.0.9 → 2.3.0-alpha-5

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/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
  };