playable-lessons 0.6.2 → 0.6.4
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/out/shared/aiTaskExport.js +2 -0
- package/out/shared/caseStudyExport.js +2 -0
- package/out/shared/favicon.js +8 -0
- package/out/shared/flashcardExport.js +2 -0
- package/out/shared/planExport.js +2 -0
- package/out/shared/quizExport.js +2 -0
- package/out/shared/storyExport.js +2 -0
- package/out/shared/summaryExport.js +2 -0
- package/out/shared/version.generated.js +1 -1
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.toPlainText = toPlainText;
|
|
11
11
|
exports.toStandaloneHTML = toStandaloneHTML;
|
|
12
|
+
const favicon_js_1 = require("./favicon.js");
|
|
12
13
|
/**
|
|
13
14
|
* A printable task sheet: for each task, the scenario, student brief,
|
|
14
15
|
* deliverable, load-bearing specifics (with why a generic answer misses them),
|
|
@@ -54,6 +55,7 @@ function toStandaloneHTML(result, title) {
|
|
|
54
55
|
<head>
|
|
55
56
|
<meta charset="UTF-8">
|
|
56
57
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
58
|
+
${favicon_js_1.FAVICON_LINK}
|
|
57
59
|
<title>${safeTitle} — AI-Collaboration Tasks</title>
|
|
58
60
|
<style>
|
|
59
61
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.toPlainText = toPlainText;
|
|
11
11
|
exports.toStandaloneHTML = toStandaloneHTML;
|
|
12
|
+
const favicon_js_1 = require("./favicon.js");
|
|
12
13
|
/** A printable case study: narrative (if present) then the structured fields. */
|
|
13
14
|
function toPlainText(result, title) {
|
|
14
15
|
const cs = result.caseStudy;
|
|
@@ -57,6 +58,7 @@ function toStandaloneHTML(result, title) {
|
|
|
57
58
|
<head>
|
|
58
59
|
<meta charset="UTF-8">
|
|
59
60
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
61
|
+
${favicon_js_1.FAVICON_LINK}
|
|
60
62
|
<title>${safeTitle} — Case Study</title>
|
|
61
63
|
<style>
|
|
62
64
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FAVICON_LINK = void 0;
|
|
4
|
+
// App icon as an inline SVG, embedded as a data-URI favicon link for every
|
|
5
|
+
// standalone HTML export — so downloaded story/quiz/deck files show the app
|
|
6
|
+
// icon in the browser tab even when opened offline from disk.
|
|
7
|
+
const FAVICON_SVG = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><defs><linearGradient id="bg" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#2b2b52"/><stop offset="1" stop-color="#17172b"/></linearGradient><linearGradient id="pg" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#f2f0ff"/><stop offset="1" stop-color="#c9c2f2"/></linearGradient></defs><rect width="512" height="512" rx="116" fill="url(#bg)"/><path d="M256 148 C 214 116 150 108 104 122 L 104 372 C 150 358 214 366 256 398 Z" fill="url(#pg)"/><path d="M256 148 C 298 116 362 108 408 122 L 408 372 C 362 358 298 366 256 398 Z" fill="url(#pg)" opacity="0.92"/><rect x="249" y="140" width="14" height="264" rx="7" fill="#7c6ef0"/><path d="M219 210 L219 338 L331 274 Z" fill="#7c6ef0" stroke="#17172b" stroke-width="10" stroke-linejoin="round" paint-order="stroke"/></svg>`;
|
|
8
|
+
exports.FAVICON_LINK = `<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,${encodeURIComponent(FAVICON_SVG)}">`;
|
|
@@ -10,6 +10,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
exports.toCSV = toCSV;
|
|
11
11
|
exports.toAnkiTSV = toAnkiTSV;
|
|
12
12
|
exports.toStandaloneHTML = toStandaloneHTML;
|
|
13
|
+
const favicon_js_1 = require("./favicon.js");
|
|
13
14
|
/** Quote a CSV field per RFC 4180 when it contains a comma, quote, or newline. */
|
|
14
15
|
function csvField(value) {
|
|
15
16
|
const needsQuote = /[",\n\r]/.test(value);
|
|
@@ -54,6 +55,7 @@ function toStandaloneHTML(result, title) {
|
|
|
54
55
|
<head>
|
|
55
56
|
<meta charset="UTF-8">
|
|
56
57
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
58
|
+
${favicon_js_1.FAVICON_LINK}
|
|
57
59
|
<title>${safeTitle} \u2014 Flashcards</title>
|
|
58
60
|
<style>
|
|
59
61
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
package/out/shared/planExport.js
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.toPlainText = toPlainText;
|
|
9
9
|
exports.toStandaloneHTML = toStandaloneHTML;
|
|
10
|
+
const favicon_js_1 = require("./favicon.js");
|
|
10
11
|
const TARGET_LABEL = {
|
|
11
12
|
story: 'Story (interactive fiction)',
|
|
12
13
|
flashcards: 'Flashcards',
|
|
@@ -50,6 +51,7 @@ function toStandaloneHTML(result, title) {
|
|
|
50
51
|
<head>
|
|
51
52
|
<meta charset="UTF-8">
|
|
52
53
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
54
|
+
${favicon_js_1.FAVICON_LINK}
|
|
53
55
|
<title>${safeTitle} — Recommended Outputs</title>
|
|
54
56
|
<style>
|
|
55
57
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
package/out/shared/quizExport.js
CHANGED
|
@@ -10,6 +10,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
exports.toPlainText = toPlainText;
|
|
11
11
|
exports.toStandaloneHTML = toStandaloneHTML;
|
|
12
12
|
const generate_js_1 = require("./generate.js");
|
|
13
|
+
const favicon_js_1 = require("./favicon.js");
|
|
13
14
|
/**
|
|
14
15
|
* A printable quiz with a separate answer key — for handouts or offline review.
|
|
15
16
|
* Questions are numbered; options are lettered A, B, C, …
|
|
@@ -52,6 +53,7 @@ function toStandaloneHTML(result, title) {
|
|
|
52
53
|
<head>
|
|
53
54
|
<meta charset="UTF-8">
|
|
54
55
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
56
|
+
${favicon_js_1.FAVICON_LINK}
|
|
55
57
|
<title>${safeTitle} — Quiz</title>
|
|
56
58
|
<style>
|
|
57
59
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
@@ -13,6 +13,7 @@ exports.ensureStartDivert = ensureStartDivert;
|
|
|
13
13
|
exports.compileInk = compileInk;
|
|
14
14
|
exports.exportStandaloneHTML = exportStandaloneHTML;
|
|
15
15
|
const inkRuntime_generated_js_1 = require("./inkRuntime.generated.js");
|
|
16
|
+
const favicon_js_1 = require("./favicon.js");
|
|
16
17
|
/**
|
|
17
18
|
* Escape a string for safe interpolation into HTML text or double-quoted
|
|
18
19
|
* attribute values. Escapes &, <, >, ", and ' (the single quote matters for
|
|
@@ -111,6 +112,7 @@ async function exportStandaloneHTML(inkSource, title, sceneImages) {
|
|
|
111
112
|
<head>
|
|
112
113
|
<meta charset="UTF-8">
|
|
113
114
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
115
|
+
${favicon_js_1.FAVICON_LINK}
|
|
114
116
|
<title>${safeTitle} — Playable Lessons</title>
|
|
115
117
|
<style>
|
|
116
118
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.toPlainText = toPlainText;
|
|
11
11
|
exports.toStandaloneHTML = toStandaloneHTML;
|
|
12
|
+
const favicon_js_1 = require("./favicon.js");
|
|
12
13
|
/** A printable study summary: overview, numbered key points, glossary. */
|
|
13
14
|
function toPlainText(result, title) {
|
|
14
15
|
const heading = result.title || title || 'Summary';
|
|
@@ -48,6 +49,7 @@ function toStandaloneHTML(result, title) {
|
|
|
48
49
|
<head>
|
|
49
50
|
<meta charset="UTF-8">
|
|
50
51
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
52
|
+
${favicon_js_1.FAVICON_LINK}
|
|
51
53
|
<title>${safeTitle} — Summary</title>
|
|
52
54
|
<style>
|
|
53
55
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|