@pie-element/mc-populated-blank 0.1.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/README.md ADDED
@@ -0,0 +1,31 @@
1
+ # @pie-element/mc-populated-blank
2
+
3
+ Svelte 5 PIE element: the learner picks a **multiple-choice** option and that choice **fills a blank** inside an HTML **template**.
4
+
5
+ ## Authoring model
6
+
7
+ - **`prompt`** (optional) and **`promptEnabled`**
8
+ - **`template`**: HTML string containing exactly one literal `{{blank}}` token
9
+ - **`choiceMode`**: `text` | `image`
10
+ - **`choices`**: `{ id, labelHtml? }` or `{ id, imageUrl, imageAlt }` per mode
11
+ - **`correctChoiceId`**
12
+ - **`hasAudio`**, **`audioUrl`**, **`audioTranscript`** (optional)
13
+
14
+ ## Session
15
+
16
+ - **`choiceId`**: selected choice id
17
+
18
+ ## Builds
19
+
20
+ Same layout as `@pie-element/simple-cloze`: `delivery`, `controller`, `author`, `print`, plus IIFE bundle for script-tag loading.
21
+
22
+ ```bash
23
+ bun run build
24
+ ```
25
+
26
+ ## Demos
27
+
28
+ - **element-demo:** `apps/element-demo` → `/mc-populated-blank/deliver` (sample configs under `src/lib/samples/mc-populated-blank.json`).
29
+ - **pie-players item-demos:** `mc-populated-blank-synthetic-demos.json` (generated from the same models as element-demo).
30
+
31
+ Architecture notes live in the **aces-archdocs** repo: `docs/projects/itembankviewer/learnosity-cqt-to-pie.md` (Star CQT → PIE alignment).
@@ -0,0 +1,11 @@
1
+ declare const SvelteElementClass: any;
2
+ declare class McPopulatedBlankAuthor extends SvelteElementClass {
3
+ private _model;
4
+ private _onChange;
5
+ set model(m: any);
6
+ get model(): any;
7
+ set onChange(fn: (model: any) => void);
8
+ get onChange(): (model: any) => void;
9
+ }
10
+ export default McPopulatedBlankAuthor;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/author/index.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,kBAAkB,KAAmC,CAAC;AAE5D,cAAM,sBAAuB,SAAQ,kBAAkB;IACrD,OAAO,CAAC,MAAM,CAAa;IAC3B,OAAO,CAAC,SAAS,CAAuC;IAExD,IAAI,KAAK,CAAC,CAAC,EAAE,GAAG,EAGf;IAED,IAAI,KAAK,IALI,GAAG,CAOf;IAED,IAAI,QAAQ,CAAC,EAAE,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,EAGpC;IAED,IAAI,QAAQ,IALK,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAOpC;CACF;AAED,eAAe,sBAAsB,CAAC"}