@vue-skuilder/courseware 0.1.11-9 → 0.1.11
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/backend.cjs.js +2 -0
- package/dist/backend.cjs.js.map +1 -0
- package/dist/backend.d.ts +19 -0
- package/dist/backend.d.ts.map +1 -0
- package/dist/backend.mjs +22 -0
- package/dist/backend.mjs.map +1 -0
- package/dist/default/questions/fillIn/index.d.ts +8 -9
- package/dist/default/questions/fillIn/index.d.ts.map +1 -1
- package/dist/default/questions/fillIn/shapes.d.ts +3 -0
- package/dist/default/questions/fillIn/shapes.d.ts.map +1 -0
- package/dist/index.cjs.js +65 -65
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.mjs +11 -54
- package/dist/index.mjs.map +1 -1
- package/dist/math/questions/addition/index.d.ts +3 -9
- package/dist/math/questions/addition/index.d.ts.map +1 -1
- package/dist/math/questions/addition/shapes.d.ts +3 -0
- package/dist/math/questions/addition/shapes.d.ts.map +1 -0
- package/dist/math/questions/equalityTest/index.d.ts +3 -9
- package/dist/math/questions/equalityTest/index.d.ts.map +1 -1
- package/dist/math/questions/equalityTest/shapes.d.ts +3 -0
- package/dist/math/questions/equalityTest/shapes.d.ts.map +1 -0
- package/dist/math/shapes.d.ts +3 -0
- package/dist/math/shapes.d.ts.map +1 -0
- package/dist/shapes-CSAUKU5h.js +36 -0
- package/dist/shapes-CSAUKU5h.js.map +1 -0
- package/dist/shapes-CkScEONr.cjs +2 -0
- package/dist/shapes-CkScEONr.cjs.map +1 -0
- package/dist/shapes.d.ts +5 -0
- package/dist/shapes.d.ts.map +1 -0
- package/dist/typing/questions/single-letter/index.d.ts.map +1 -1
- package/package.json +10 -5
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./shapes-CkScEONr.cjs"),a=[e.SingleDigitAdditionDataShape,e.EqualityTestDataShape,...e.BlanksCardDataShapes];exports.getAllDataShapeNames=function(){return a.map((e=>e.name))},exports.getAllDataShapesRaw=function(){return a},exports.getDataShapeByName=function(e){return a.find((a=>a.name===e))};
|
|
2
|
+
//# sourceMappingURL=backend.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backend.cjs.js","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}"],"names":["ALL_DATA_SHAPES","SingleDigitAdditionDataShape","EqualityTestDataShape","BlanksCardDataShapes","map","ds","name","find"],"mappings":"yHAMMA,EAA+B,CACnCC,EAAAA,6BACAC,EAAAA,yBACGC,EAAAA,mDA0BE,WACL,OAAOH,EAAgBI,KAAUC,GAAAA,EAAGC,MACtC,8BAlBO,WACE,OAAAN,CACT,6BAMO,SAA4BM,GACjC,OAAON,EAAgBO,MAAWF,GAAAA,EAAGC,OAASA,GAChD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DataShape } from '../../common/dist/index.mjs';
|
|
2
|
+
/**
|
|
3
|
+
* Backend-only DataShape registry compatible with Node.js
|
|
4
|
+
* Uses single-source-of-truth shapes co-located with their views (SFC-style)
|
|
5
|
+
* Provides the same functionality as AllCourseWare.allDataShapesRaw()
|
|
6
|
+
* without importing Vue components or CSS dependencies
|
|
7
|
+
*/
|
|
8
|
+
export declare function getAllDataShapesRaw(): DataShape[];
|
|
9
|
+
/**
|
|
10
|
+
* Find a specific DataShape by name
|
|
11
|
+
* Equivalent to allCourseWare.allDataShapesRaw().find(ds => ds.name === name)
|
|
12
|
+
*/
|
|
13
|
+
export declare function getDataShapeByName(name: string): DataShape | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Get all DataShape names
|
|
16
|
+
* Useful for validation and debugging
|
|
17
|
+
*/
|
|
18
|
+
export declare function getAllDataShapeNames(): string[];
|
|
19
|
+
//# sourceMappingURL=backend.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backend.d.ts","sourceRoot":"","sources":["../src/backend.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAYjD;;;;;GAKG;AACH,wBAAgB,mBAAmB,IAAI,SAAS,EAAE,CAEjD;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAEtE;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,EAAE,CAE/C"}
|
package/dist/backend.mjs
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { S as SingleDigitAdditionDataShape, E as EqualityTestDataShape, B as BlanksCardDataShapes } from "./shapes-CSAUKU5h.js";
|
|
2
|
+
const ALL_DATA_SHAPES = [
|
|
3
|
+
SingleDigitAdditionDataShape,
|
|
4
|
+
EqualityTestDataShape,
|
|
5
|
+
...BlanksCardDataShapes
|
|
6
|
+
// TODO: Add other course shapes as they are refactored
|
|
7
|
+
];
|
|
8
|
+
function getAllDataShapesRaw() {
|
|
9
|
+
return ALL_DATA_SHAPES;
|
|
10
|
+
}
|
|
11
|
+
function getDataShapeByName(name) {
|
|
12
|
+
return ALL_DATA_SHAPES.find((ds) => ds.name === name);
|
|
13
|
+
}
|
|
14
|
+
function getAllDataShapeNames() {
|
|
15
|
+
return ALL_DATA_SHAPES.map((ds) => ds.name);
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
getAllDataShapeNames,
|
|
19
|
+
getAllDataShapesRaw,
|
|
20
|
+
getDataShapeByName
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=backend.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backend.mjs","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}"],"names":[],"mappings":";AAMA,MAAM,kBAA+B;AAAA,EACnC;AAAA,EACA;AAAA,EACA,GAAG;AAAA;AAEL;AAQO,SAAS,sBAAmC;AAC1C,SAAA;AACT;AAMO,SAAS,mBAAmB,MAAqC;AACtE,SAAO,gBAAgB,KAAK,CAAM,OAAA,GAAG,SAAS,IAAI;AACpD;AAMO,SAAS,uBAAiC;AAC/C,SAAO,gBAAgB,IAAI,CAAM,OAAA,GAAG,IAAI;AAC1C;"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Question } from '../../../../../common-ui/dist/common-ui.es.js';
|
|
2
|
-
import { Answer,
|
|
2
|
+
import { Answer, ViewData } from '../../../../../common/dist/index.mjs';
|
|
3
3
|
import { Tokens } from 'marked';
|
|
4
|
-
export
|
|
4
|
+
export { BlanksCardDataShapes } from './shapes.js';
|
|
5
5
|
type fillInSectionType = 'text' | 'blank';
|
|
6
6
|
export interface FillInSection {
|
|
7
7
|
type: fillInSectionType;
|
|
8
8
|
text: string;
|
|
9
9
|
}
|
|
10
10
|
export declare class BlanksCard extends Question {
|
|
11
|
-
static dataShapes: DataShape[];
|
|
11
|
+
static dataShapes: import('../../../../../common/dist/index.mjs').DataShape[];
|
|
12
12
|
static views: import('vue').DefineComponent<{
|
|
13
13
|
data: ViewData[];
|
|
14
14
|
modifyDifficulty: number;
|
|
@@ -29,13 +29,13 @@ export declare class BlanksCard extends Question {
|
|
|
29
29
|
priorAnswers: import('vue').Ref<[Answer, string][]>;
|
|
30
30
|
maxAttemptsPerView: import('vue').Ref<number>;
|
|
31
31
|
maxSessionViews: import('vue').Ref<number>;
|
|
32
|
-
submitAnswer: (answer: Answer, submittingClass?: string) => import('packages/db/dist').
|
|
32
|
+
submitAnswer: (answer: Answer, submittingClass?: string) => import('packages/db/dist/types-legacy-B8ahaCbj.js').i;
|
|
33
33
|
startTime: import('vue').Ref<moment.Moment>;
|
|
34
34
|
hotKeys: import('vue').Ref<import('../../../../../common-ui/dist/common-ui.es.js').HotKey[]>;
|
|
35
35
|
timeSpent: import('vue').ComputedRef<number>;
|
|
36
36
|
logger: import('../../../../../common-ui/dist/common-ui.es.js').ViewableLogger;
|
|
37
37
|
getURL: (item: string, dataShapeIndex?: number) => string;
|
|
38
|
-
emitResponse: (record: import('packages/db/dist').
|
|
38
|
+
emitResponse: (record: import('packages/db/dist/types-legacy-B8ahaCbj.js').C) => void;
|
|
39
39
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
40
40
|
data: ViewData[];
|
|
41
41
|
modifyDifficulty: number;
|
|
@@ -61,7 +61,7 @@ export declare class BlanksCard extends Question {
|
|
|
61
61
|
private optionsFromString;
|
|
62
62
|
constructor(data: ViewData[]);
|
|
63
63
|
isCorrect(answer: Answer): boolean;
|
|
64
|
-
dataShapes(): DataShape[];
|
|
64
|
+
dataShapes(): import('../../../../../common/dist/index.mjs').DataShape[];
|
|
65
65
|
views(): import('vue').DefineComponent<{
|
|
66
66
|
data: ViewData[];
|
|
67
67
|
modifyDifficulty: number;
|
|
@@ -82,13 +82,13 @@ export declare class BlanksCard extends Question {
|
|
|
82
82
|
priorAnswers: import('vue').Ref<[Answer, string][]>;
|
|
83
83
|
maxAttemptsPerView: import('vue').Ref<number>;
|
|
84
84
|
maxSessionViews: import('vue').Ref<number>;
|
|
85
|
-
submitAnswer: (answer: Answer, submittingClass?: string) => import('packages/db/dist').
|
|
85
|
+
submitAnswer: (answer: Answer, submittingClass?: string) => import('packages/db/dist/types-legacy-B8ahaCbj.js').i;
|
|
86
86
|
startTime: import('vue').Ref<moment.Moment>;
|
|
87
87
|
hotKeys: import('vue').Ref<import('../../../../../common-ui/dist/common-ui.es.js').HotKey[]>;
|
|
88
88
|
timeSpent: import('vue').ComputedRef<number>;
|
|
89
89
|
logger: import('../../../../../common-ui/dist/common-ui.es.js').ViewableLogger;
|
|
90
90
|
getURL: (item: string, dataShapeIndex?: number) => string;
|
|
91
|
-
emitResponse: (record: import('packages/db/dist').
|
|
91
|
+
emitResponse: (record: import('packages/db/dist/types-legacy-B8ahaCbj.js').C) => void;
|
|
92
92
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
93
93
|
data: ViewData[];
|
|
94
94
|
modifyDifficulty: number;
|
|
@@ -101,5 +101,4 @@ export declare class BlanksCard extends Question {
|
|
|
101
101
|
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>[];
|
|
102
102
|
private isCorrectRadio;
|
|
103
103
|
}
|
|
104
|
-
export {};
|
|
105
104
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/default/questions/fillIn/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAwC,MAAM,yBAAyB,CAAC;AACzF,OAAO,EAAE,MAAM,EAA6B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/default/questions/fillIn/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAwC,MAAM,yBAAyB,CAAC;AACzF,OAAO,EAAE,MAAM,EAA6B,MAAM,sBAAsB,CAAC;AACzE,OAAO,EAAa,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAI3D,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAKhC,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AA6BnD,KAAK,iBAAiB,GAAG,MAAM,GAAG,OAAO,CAAC;AAE1C,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,iBAAiB,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;CACd;AAqBD,qBAAa,UAAW,SAAQ,QAAQ;IACtC,OAAc,UAAU,6CAAwB;IAChD,OAAc,KAAK;;;;;;;;;;;;;;;;;;;;sDAnCV,CAAC;qCA5BH,OAAM,MAAM;;;;6CAKb,CAAC;;;;;;;;;;;2EA0D4B;IAC5B,MAAM,EAAE,MAAM,CAAM;IAEpB,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,CAAQ;IAChC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,CAAQ;IAEhC,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,EAAE;IAmCxD;;;;;;;OAOG;IACH,OAAO,CAAC,iBAAiB;gBA6Bb,IAAI,EAAE,QAAQ,EAAE;IA0BrB,SAAS,CAAC,MAAM,EAAE,MAAM;IA0BxB,UAAU;IAGV,KAAK;;;;;;;;;;;;;;;;;;;;sDAxKH,CAAC;qCA5BH,OAAM,MAAM;;;;6CAKb,CAAC;;;;;;;;;;;;IAmMP,OAAO,CAAC,cAAc;CAOvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shapes.d.ts","sourceRoot":"","sources":["../../../../src/default/questions/fillIn/shapes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA4B,MAAM,sBAAsB,CAAC;AAE3E,eAAO,MAAM,oBAAoB,EAAE,SAAS,EAc3C,CAAC"}
|