@vue-skuilder/courseware 0.1.33 → 0.1.35
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/dist/CourseWare-BTFRjgBR.js +305 -0
- package/dist/CourseWare-BTFRjgBR.js.map +1 -0
- package/dist/CourseWare-DSeyTAtH.cjs +2 -0
- package/dist/CourseWare-DSeyTAtH.cjs.map +1 -0
- package/dist/assets/CourseWare.css +1 -0
- package/dist/assets/chess.css +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/math.css +1 -0
- package/dist/assets/piano.css +1 -0
- package/dist/assets/sightsing.css +1 -0
- package/dist/assets/typing.css +1 -0
- package/dist/backend.cjs.js +1 -1
- package/dist/backend.cjs.js.map +1 -1
- package/dist/backend.mjs +4 -3
- package/dist/backend.mjs.map +1 -1
- package/dist/chess/components/ChessBoard.vue.d.ts.map +1 -1
- package/dist/chess/composables/useChessgroundBounds.d.ts +24 -0
- package/dist/chess/composables/useChessgroundBounds.d.ts.map +1 -0
- package/dist/chess/questions/puzzle/puzzle.vue.d.ts.map +1 -1
- package/dist/chess-BbHATAzk.js +2949 -0
- package/dist/chess-BbHATAzk.js.map +1 -0
- package/dist/chess-BsgVZARV.cjs +7 -0
- package/dist/chess-BsgVZARV.cjs.map +1 -0
- package/dist/chess-C_2RQEuq.cjs +1 -0
- package/dist/chess-X1bmWmh3.js +3 -0
- package/dist/french-Bxet7hJm.cjs +2 -0
- package/dist/french-Bxet7hJm.cjs.map +1 -0
- package/dist/french-Dk7YG8Td.js +140 -0
- package/dist/french-Dk7YG8Td.js.map +1 -0
- package/dist/french-evUMlbbq.js +3 -0
- package/dist/french-x9P8RRn8.cjs +1 -0
- package/dist/index.cjs.js +2 -170
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +23 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +172 -62021
- package/dist/index.mjs.map +1 -1
- package/dist/math-B1oDAkOy.cjs +34 -0
- package/dist/math-B1oDAkOy.cjs.map +1 -0
- package/dist/math-B4HbgYf6.js +13391 -0
- package/dist/math-B4HbgYf6.js.map +1 -0
- package/dist/math-BWlIa6-l.cjs +1 -0
- package/dist/math-DYni7rRl.js +3 -0
- package/dist/piano-BN5Btq91.js +3 -0
- package/dist/piano-Btvkzjfz.cjs +1 -0
- package/dist/piano-CefQUc72.cjs +2 -0
- package/dist/piano-CefQUc72.cjs.map +1 -0
- package/dist/piano-DF1g6yaX.js +3603 -0
- package/dist/piano-DF1g6yaX.js.map +1 -0
- package/dist/pitch-C-lh9ezH.cjs +2 -0
- package/dist/pitch-C-lh9ezH.cjs.map +1 -0
- package/dist/pitch-CgGJFkZ1.js +106 -0
- package/dist/pitch-CgGJFkZ1.js.map +1 -0
- package/dist/pitch-Dn0iNqiS.js +3 -0
- package/dist/pitch-DsopN5IR.cjs +1 -0
- package/dist/{shapes-nszfsx3o.js → shapes-BQUVJdp5.js} +3 -21
- package/dist/shapes-BQUVJdp5.js.map +1 -0
- package/dist/shapes-C_-mvrCc.cjs +2 -0
- package/dist/shapes-C_-mvrCc.cjs.map +1 -0
- package/dist/shapes-DRq8J94A.cjs +2 -0
- package/dist/shapes-DRq8J94A.cjs.map +1 -0
- package/dist/shapes-ICeg46lr.js +25 -0
- package/dist/shapes-ICeg46lr.js.map +1 -0
- package/dist/sightsing-BFQ7HRig.js +41061 -0
- package/dist/sightsing-BFQ7HRig.js.map +1 -0
- package/dist/sightsing-CJX3k0Fd.js +3 -0
- package/dist/sightsing-Cr_SJ5Vc.cjs +133 -0
- package/dist/sightsing-Cr_SJ5Vc.cjs.map +1 -0
- package/dist/sightsing-CtagQ0FJ.cjs +1 -0
- package/dist/typing-BevtfWlp.js +184 -0
- package/dist/typing-BevtfWlp.js.map +1 -0
- package/dist/typing-CBPjtwrg.cjs +1 -0
- package/dist/typing-CK-glKhm.cjs +2 -0
- package/dist/typing-CK-glKhm.cjs.map +1 -0
- package/dist/typing-k-ojjO7G.js +3 -0
- package/dist/word-work-BOnRlZgd.js +108 -0
- package/dist/word-work-BOnRlZgd.js.map +1 -0
- package/dist/word-work-C5MTSapy.cjs +1 -0
- package/dist/word-work-Dd6tIKrt.js +3 -0
- package/dist/word-work-fNbCLNuN.cjs +2 -0
- package/dist/word-work-fNbCLNuN.cjs.map +1 -0
- package/package.json +6 -5
- package/dist/shapes-DJ-ujuDr.cjs +0 -2
- package/dist/shapes-DJ-ujuDr.cjs.map +0 -1
- package/dist/shapes-nszfsx3o.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
svg[data-v-2f79c080]{border:1px}@keyframes progress{0%{width:0%}to{width:100%}}.progressContainer{background-color:#eee;height:5px}#progress{background-color:#00f;width:100%;height:5px;animation-timing-function:linear}.hidden{opacity:0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#abc{width:100%;height:100%}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.letter-display[data-v-4ae4db54]{color:#333;text-transform:uppercase;background-color:#f8f9fa;border:2px solid #dee2e6;border-radius:8px;justify-content:center;align-items:center;width:80px;height:80px;margin:20px auto;font-family:monospace;font-size:48px;font-weight:700;display:flex;box-shadow:0 2px #dee2e6,0 3px 3px #0003}.letter-display.pressed[data-v-4ae4db54]{transform:translateY(2px);box-shadow:0 0 #dee2e6,0 1px 2px #0003}
|
package/dist/backend.cjs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./shapes-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./shapes-C_-mvrCc.cjs`),t=require(`./shapes-DRq8J94A.cjs`);var n=[t.n,t.t,...e.t];function getAllDataShapesRaw(){return n}function getDataShapeByName(e){return n.find(t=>t.name===e)}function getAllDataShapeNames(){return n.map(e=>e.name)}exports.getAllDataShapeNames=getAllDataShapeNames,exports.getAllDataShapesRaw=getAllDataShapesRaw,exports.getDataShapeByName=getDataShapeByName;
|
|
2
2
|
//# sourceMappingURL=backend.cjs.js.map
|
package/dist/backend.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backend.cjs.js","names":[],"sources":["../src/backend.ts"],"sourcesContent":["// Inline imports to avoid code splitting issues\nimport { DataShape } from '@vue-skuilder/common';\nimport { SingleDigitAdditionDataShape, EqualityTestDataShape } from './math/shapes.js';\nimport { BlanksCardDataShapes } from './default/questions/fillIn/shapes.js';\n\n// Inline ALL_DATA_SHAPES to create self-contained backend module\nconst ALL_DATA_SHAPES: DataShape[] = [\n SingleDigitAdditionDataShape,\n EqualityTestDataShape,\n ...BlanksCardDataShapes,\n // TODO: Add other course shapes as they are refactored\n];\n\n/**\n * Backend-only DataShape registry compatible with Node.js\n * Uses single-source-of-truth shapes co-located with their views (SFC-style)\n * Provides the same functionality as AllCourseWare.allDataShapesRaw() \n * without importing Vue components or CSS dependencies\n */\nexport function getAllDataShapesRaw(): DataShape[] {\n return ALL_DATA_SHAPES;\n}\n\n/**\n * Find a specific DataShape by name\n * Equivalent to allCourseWare.allDataShapesRaw().find(ds => ds.name === name)\n */\nexport function getDataShapeByName(name: string): DataShape | undefined {\n return ALL_DATA_SHAPES.find(ds => ds.name === name);\n}\n\n/**\n * Get all DataShape names\n * Useful for validation and debugging\n */\nexport function getAllDataShapeNames(): string[] {\n return ALL_DATA_SHAPES.map(ds => ds.name);\n}"],"mappings":"
|
|
1
|
+
{"version":3,"file":"backend.cjs.js","names":[],"sources":["../src/backend.ts"],"sourcesContent":["// Inline imports to avoid code splitting issues\nimport { DataShape } from '@vue-skuilder/common';\nimport { SingleDigitAdditionDataShape, EqualityTestDataShape } from './math/shapes.js';\nimport { BlanksCardDataShapes } from './default/questions/fillIn/shapes.js';\n\n// Inline ALL_DATA_SHAPES to create self-contained backend module\nconst ALL_DATA_SHAPES: DataShape[] = [\n SingleDigitAdditionDataShape,\n EqualityTestDataShape,\n ...BlanksCardDataShapes,\n // TODO: Add other course shapes as they are refactored\n];\n\n/**\n * Backend-only DataShape registry compatible with Node.js\n * Uses single-source-of-truth shapes co-located with their views (SFC-style)\n * Provides the same functionality as AllCourseWare.allDataShapesRaw() \n * without importing Vue components or CSS dependencies\n */\nexport function getAllDataShapesRaw(): DataShape[] {\n return ALL_DATA_SHAPES;\n}\n\n/**\n * Find a specific DataShape by name\n * Equivalent to allCourseWare.allDataShapesRaw().find(ds => ds.name === name)\n */\nexport function getDataShapeByName(name: string): DataShape | undefined {\n return ALL_DATA_SHAPES.find(ds => ds.name === name);\n}\n\n/**\n * Get all DataShape names\n * Useful for validation and debugging\n */\nexport function getAllDataShapeNames(): string[] {\n return ALL_DATA_SHAPES.map(ds => ds.name);\n}"],"mappings":"+IAMA,IAAM,EAA+B,CACnC,EAAA,EACA,EAAA,EACA,GAAG,EAAA,EAEJ,CAQD,SAAgB,qBAAmC,CACjD,OAAO,EAOT,SAAgB,mBAAmB,EAAqC,CACtE,OAAO,EAAgB,KAAK,GAAM,EAAG,OAAS,EAAK,CAOrD,SAAgB,sBAAiC,CAC/C,OAAO,EAAgB,IAAI,GAAM,EAAG,KAAK"}
|
package/dist/backend.mjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as e } from "./shapes-BQUVJdp5.js";
|
|
2
|
+
import { n as t, t as n } from "./shapes-ICeg46lr.js";
|
|
2
3
|
//#region src/backend.ts
|
|
3
4
|
var r = [
|
|
4
|
-
|
|
5
|
+
t,
|
|
5
6
|
n,
|
|
6
|
-
...
|
|
7
|
+
...e
|
|
7
8
|
];
|
|
8
9
|
function getAllDataShapesRaw() {
|
|
9
10
|
return r;
|
package/dist/backend.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backend.mjs","names":[],"sources":["../src/backend.ts"],"sourcesContent":["// Inline imports to avoid code splitting issues\nimport { DataShape } from '@vue-skuilder/common';\nimport { SingleDigitAdditionDataShape, EqualityTestDataShape } from './math/shapes.js';\nimport { BlanksCardDataShapes } from './default/questions/fillIn/shapes.js';\n\n// Inline ALL_DATA_SHAPES to create self-contained backend module\nconst ALL_DATA_SHAPES: DataShape[] = [\n SingleDigitAdditionDataShape,\n EqualityTestDataShape,\n ...BlanksCardDataShapes,\n // TODO: Add other course shapes as they are refactored\n];\n\n/**\n * Backend-only DataShape registry compatible with Node.js\n * Uses single-source-of-truth shapes co-located with their views (SFC-style)\n * Provides the same functionality as AllCourseWare.allDataShapesRaw() \n * without importing Vue components or CSS dependencies\n */\nexport function getAllDataShapesRaw(): DataShape[] {\n return ALL_DATA_SHAPES;\n}\n\n/**\n * Find a specific DataShape by name\n * Equivalent to allCourseWare.allDataShapesRaw().find(ds => ds.name === name)\n */\nexport function getDataShapeByName(name: string): DataShape | undefined {\n return ALL_DATA_SHAPES.find(ds => ds.name === name);\n}\n\n/**\n * Get all DataShape names\n * Useful for validation and debugging\n */\nexport function getAllDataShapeNames(): string[] {\n return ALL_DATA_SHAPES.map(ds => ds.name);\n}"],"mappings":"
|
|
1
|
+
{"version":3,"file":"backend.mjs","names":[],"sources":["../src/backend.ts"],"sourcesContent":["// Inline imports to avoid code splitting issues\nimport { DataShape } from '@vue-skuilder/common';\nimport { SingleDigitAdditionDataShape, EqualityTestDataShape } from './math/shapes.js';\nimport { BlanksCardDataShapes } from './default/questions/fillIn/shapes.js';\n\n// Inline ALL_DATA_SHAPES to create self-contained backend module\nconst ALL_DATA_SHAPES: DataShape[] = [\n SingleDigitAdditionDataShape,\n EqualityTestDataShape,\n ...BlanksCardDataShapes,\n // TODO: Add other course shapes as they are refactored\n];\n\n/**\n * Backend-only DataShape registry compatible with Node.js\n * Uses single-source-of-truth shapes co-located with their views (SFC-style)\n * Provides the same functionality as AllCourseWare.allDataShapesRaw() \n * without importing Vue components or CSS dependencies\n */\nexport function getAllDataShapesRaw(): DataShape[] {\n return ALL_DATA_SHAPES;\n}\n\n/**\n * Find a specific DataShape by name\n * Equivalent to allCourseWare.allDataShapesRaw().find(ds => ds.name === name)\n */\nexport function getDataShapeByName(name: string): DataShape | undefined {\n return ALL_DATA_SHAPES.find(ds => ds.name === name);\n}\n\n/**\n * Get all DataShape names\n * Useful for validation and debugging\n */\nexport function getAllDataShapeNames(): string[] {\n return ALL_DATA_SHAPES.map(ds => ds.name);\n}"],"mappings":";;;AAMA,IAAM,IAA+B;CACnC;CACA;CACA,GAAG;CAEJ;AAQD,SAAgB,sBAAmC;AACjD,QAAO;;AAOT,SAAgB,mBAAmB,GAAqC;AACtE,QAAO,EAAgB,MAAK,MAAM,EAAG,SAAS,EAAK;;AAOrD,SAAgB,uBAAiC;AAC/C,QAAO,EAAgB,KAAI,MAAM,EAAG,KAAK"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChessBoard.vue.d.ts","sourceRoot":"","sources":["../../../src/chess/components/ChessBoard.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChessBoard.vue.d.ts","sourceRoot":"","sources":["../../../src/chess/components/ChessBoard.vue"],"names":[],"mappings":"AAsQA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,OAAO,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAS,GAAG,EAAc,KAAK,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAChF,OAAO,EAAE,KAAK,IAAI,QAAQ,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIrD,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,GAAG,CAAC;IACV,EAAE,EAAE,GAAG,CAAC;IACR;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IACjC;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,OAAO,GAAG,QAAQ,EAAE,GAAG,CAAC,EAAE,CAAC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC3B,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AA6HD,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,aAAa,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,UAAU,CAAC,EAAE,aAAa,EAAE,CAAC;CAC9B,CAAC;;oBA/HgB,CAAC,KAAK,EAAE,aAAa,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI;eACrD,CAAC,EAAE,EAAE,SAAS,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI;kBACpC,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI;;;;;;;;;;AAyPxC,wBAUG"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { Api as CgAPI } from '../chessground/api';
|
|
3
|
+
/**
|
|
4
|
+
* Keep Chessground's cached board bounds in sync with the actual DOM.
|
|
5
|
+
*
|
|
6
|
+
* Chessground caches `getBoundingClientRect()` on the board element at
|
|
7
|
+
* mount/redraw and uses it to translate pointer coordinates to squares.
|
|
8
|
+
* If the surrounding layout shifts the board after mount — for example,
|
|
9
|
+
* a flex-centered transition container in StudySession, font-load
|
|
10
|
+
* reflow, or a parent that toggles visibility — the cached rect goes
|
|
11
|
+
* stale and clicks land on the wrong squares.
|
|
12
|
+
*
|
|
13
|
+
* This composable:
|
|
14
|
+
* 1. Forces a `redrawAll()` on the next animation frame after the
|
|
15
|
+
* Chessground API becomes available, catching the initial mount
|
|
16
|
+
* race against parent layout settling.
|
|
17
|
+
* 2. Observes the board element with a ResizeObserver and triggers
|
|
18
|
+
* `redrawAll()` on any subsequent size change.
|
|
19
|
+
*
|
|
20
|
+
* Pass a ref to the board element and a ref to the Chessground API.
|
|
21
|
+
* Cleanup is handled via `onUnmounted`.
|
|
22
|
+
*/
|
|
23
|
+
export declare function useChessgroundBounds(boardEl: Ref<HTMLElement | null | undefined>, api: Ref<CgAPI | undefined>): void;
|
|
24
|
+
//# sourceMappingURL=useChessgroundBounds.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useChessgroundBounds.d.ts","sourceRoot":"","sources":["../../../src/chess/composables/useChessgroundBounds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,GAAG,EAAS,MAAM,KAAK,CAAC;AAC9C,OAAO,KAAK,EAAE,GAAG,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC,EAC5C,GAAG,EAAE,GAAG,CAAC,KAAK,GAAG,SAAS,CAAC,GAC1B,IAAI,CAwBN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"puzzle.vue.d.ts","sourceRoot":"","sources":["../../../../src/chess/questions/puzzle/puzzle.vue"],"names":[],"mappings":"AAyBA;
|
|
1
|
+
{"version":3,"file":"puzzle.vue.d.ts","sourceRoot":"","sources":["../../../../src/chess/questions/puzzle/puzzle.vue"],"names":[],"mappings":"AAyBA;AAuXA,OAAO,EAA0D,QAAQ,EAAE,MAAM,KAAK,CAAC;AAKvF,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAIhD,KAAK,cAAc,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAC5C,KAAK,KAAK,GAAG,UAAU,GAAG,UAAU,CAAC;;;cA4ChB,QAAQ,CAAC,QAAQ,EAAE,CAAC;;;;;;;;;;;;;;;kDAxDzC,CApVsD,cAoVtD,CApVqE;;;;;yCAoVrE,CA3WW;;;;;;;;;;;;sCA0ekC,cAAc,GAAG,MAAM;;;cAvE/C,QAAQ,CAAC,QAAQ,EAAE,CAAC;;;;;;;;;;;AALzC,wBAmMG"}
|