@citolab/tspci 2.5.30-beta.8 → 2.5.30-beta.9

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,14 @@
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.5.30-beta.9](/compare/v2.5.30-beta.8...v2.5.30-beta.9) (2025-02-04)
7
+
8
+ **Note:** Version bump only for package @citolab/tspci
9
+
10
+
11
+
12
+
13
+
6
14
  ## [2.5.30-beta.8](/compare/v2.5.30-beta.7...v2.5.30-beta.8) (2025-02-04)
7
15
 
8
16
  **Note:** Version bump only for package @citolab/tspci
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citolab/tspci",
3
- "version": "2.5.30-beta.8",
3
+ "version": "2.5.30-beta.9",
4
4
  "description": "an opiniated typescript ims-pci builder with tao integration",
5
5
  "author": "patrick <patrick.deklein@cito.nl>",
6
6
  "repository": "@citolab/tspci",
@@ -51,5 +51,5 @@
51
51
  "resolutions": {
52
52
  "chokidar": "^4.0.0"
53
53
  },
54
- "gitHead": "26a9950585cd816d7a7027cf4f0f8efb5cdedb1a"
54
+ "gitHead": "faee45dd64a32b879dfbe94906a4e921102e03a9"
55
55
  }
@@ -1,7 +1,10 @@
1
- @tailwind components;
2
- @tailwind utilities;
3
- @tailwind base;
4
-
5
- .pci-container { @apply container flex flex-col justify-center items-center; }
6
- h1 { @apply text-2xl text-red-500 m-4; }
7
- input { @apply border border-gray-400 rounded p-2 m-1; }
1
+ @import "tailwindcss";
2
+ .pci-container {
3
+ @apply container flex flex-col justify-center items-center;
4
+ }
5
+ h1 {
6
+ @apply text-2xl text-red-500 m-4;
7
+ }
8
+ input {
9
+ @apply border border-gray-400 rounded p-2 m-1;
10
+ }
package/readme.md CHANGED
@@ -97,7 +97,7 @@ Add the following PCI in the src folder `index.ts`
97
97
 
98
98
  ```ts
99
99
  // src/index.ts
100
- import { Configuration, IMSpci } from "@citolab/tspci";
100
+ import { ConfigProperties, IMSpci } from "@citolab/tspci";
101
101
  import * as ctx from "qtiCustomInteractionContext";
102
102
 
103
103
  class Pci implements IMSpci<{}> {
@@ -108,7 +108,7 @@ class Pci implements IMSpci<{}> {
108
108
  ctx && ctx.register(this);
109
109
  }
110
110
 
111
- getInstance = (dom: HTMLElement, config: Configuration<any>, state: string) => {
111
+ getInstance = (dom: HTMLElement, config: ConfigProperties<any>, state: string) => {
112
112
  this.shadowdom = dom.attachShadow({ mode: "closed" });
113
113
  this.render();
114
114
  config.onready(this);
@@ -337,9 +337,9 @@ Also used in the TAO export for configuring PCIs in TAO
337
337
  + type PropTypes = typeof configProps;
338
338
 
339
339
  // add to types
340
- + private config: Configuration<PropTypes>;
340
+ + private config: ConfigProperties<PropTypes>;
341
341
 
342
- getInstance = (dom: HTMLElement, config: Configuration<PropTypes>, stateString: string) => {
342
+ getInstance = (dom: HTMLElement, config: ConfigProperties<PropTypes>, stateString: string) => {
343
343
  + config.properties = { ...configProps, ...config.properties }; // merge our props with players
344
344
  + this.config = config;
345
345