@vue-skuilder/standalone-ui 0.2.14 → 0.2.15
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/assets/{TagViewer-B9lUMa1N.js → TagViewer-Czt6W7JQ.js} +2 -2
- package/dist/assets/{TagViewer-B9lUMa1N.js.map → TagViewer-Czt6W7JQ.js.map} +1 -1
- package/dist/assets/{common-ui.es-CS663iWK.js → common-ui.es-ibXGK5ti.js} +7 -7
- package/dist/assets/common-ui.es-ibXGK5ti.js.map +1 -0
- package/dist/assets/common-ui.es-xI0w3GT-.js +1 -0
- package/dist/assets/{dist-DHtsWAkb.js → dist-DlSLFgY8.js} +5 -5
- package/dist/assets/dist-DlSLFgY8.js.map +1 -0
- package/dist/assets/{index-Cib2NGQ_.js → index-CKXq4U_A.js} +5 -5
- package/dist/assets/{index-Cib2NGQ_.js.map → index-CKXq4U_A.js.map} +1 -1
- package/dist/assets/{index-yhC6an4B.css → index-DtCW3YSO.css} +1 -1
- package/dist/index.html +4 -4
- package/dist-lib/questions.cjs.js +8 -8
- package/dist-lib/questions.cjs.js.map +1 -1
- package/dist-lib/questions.mjs +33 -13
- package/dist-lib/questions.mjs.map +1 -1
- package/package.json +6 -6
- package/dist/assets/common-ui.es-CS663iWK.js.map +0 -1
- package/dist/assets/common-ui.es-D92yaKLw.js +0 -1
- package/dist/assets/dist-DHtsWAkb.js.map +0 -1
package/dist-lib/questions.mjs
CHANGED
|
@@ -24645,6 +24645,7 @@ var init_v4 = __esmMin((() => {
|
|
|
24645
24645
|
NavigatorRoles: () => NavigatorRoles,
|
|
24646
24646
|
Navigators: () => Navigators,
|
|
24647
24647
|
QuotaRoundRobinMixer: () => QuotaRoundRobinMixer,
|
|
24648
|
+
REVIEW_TIME_FORMAT: () => REVIEW_TIME_FORMAT,
|
|
24648
24649
|
SessionController: () => SessionController,
|
|
24649
24650
|
StaticToCouchDBMigrator: () => StaticToCouchDBMigrator,
|
|
24650
24651
|
TagFilteredContentSource: () => TagFilteredContentSource,
|
|
@@ -24665,6 +24666,7 @@ var init_v4 = __esmMin((() => {
|
|
|
24665
24666
|
docIsDeleted: () => docIsDeleted,
|
|
24666
24667
|
endSessionTracking: () => endSessionTracking,
|
|
24667
24668
|
ensureAppDataDirectory: () => ensureAppDataDirectory,
|
|
24669
|
+
getActiveController: () => getActiveController,
|
|
24668
24670
|
getActivePipeline: () => getActivePipeline,
|
|
24669
24671
|
getAppDataDirectory: () => getAppDataDirectory,
|
|
24670
24672
|
getCardHistoryID: () => getCardHistoryID,
|
|
@@ -24690,6 +24692,7 @@ var init_v4 = __esmMin((() => {
|
|
|
24690
24692
|
isQuestionTypeRegistered: () => isQuestionTypeRegistered,
|
|
24691
24693
|
isReview: () => isReview,
|
|
24692
24694
|
log: () => log,
|
|
24695
|
+
makeScheduledCardId: () => makeScheduledCardId,
|
|
24693
24696
|
mixerDebugAPI: () => mixerDebugAPI,
|
|
24694
24697
|
mountMixerDebugger: () => mountMixerDebugger,
|
|
24695
24698
|
mountPipelineDebugger: () => mountPipelineDebugger,
|
|
@@ -24701,6 +24704,7 @@ var init_v4 = __esmMin((() => {
|
|
|
24701
24704
|
processCustomQuestionsData: () => processCustomQuestionsData,
|
|
24702
24705
|
recordCardPresentation: () => recordCardPresentation,
|
|
24703
24706
|
recordUserOutcome: () => recordUserOutcome,
|
|
24707
|
+
registerActiveController: () => registerActiveController,
|
|
24704
24708
|
registerBlanksCard: () => registerBlanksCard,
|
|
24705
24709
|
registerCustomQuestionTypes: () => registerCustomQuestionTypes,
|
|
24706
24710
|
registerDataShape: () => registerDataShape,
|
|
@@ -24715,6 +24719,7 @@ var init_v4 = __esmMin((() => {
|
|
|
24715
24719
|
sessionDebugAPI: () => sessionDebugAPI,
|
|
24716
24720
|
snapshotQueues: () => snapshotQueues,
|
|
24717
24721
|
startSessionTracking: () => startSessionTracking,
|
|
24722
|
+
toggleSessionOverlay: () => toggleSessionOverlay,
|
|
24718
24723
|
updateLearningState: () => updateLearningState,
|
|
24719
24724
|
updateStrategyWeight: () => updateStrategyWeight,
|
|
24720
24725
|
userDBDebugAPI: () => userDBDebugAPI,
|
|
@@ -24761,6 +24766,9 @@ function getDbPath(t) {
|
|
|
24761
24766
|
async function initializeDataDirectory() {
|
|
24762
24767
|
await ensureAppDataDirectory(), logger.info(`PouchDB data directory initialized: ${getAppDataDirectory()}`);
|
|
24763
24768
|
}
|
|
24769
|
+
function makeScheduledCardId(t) {
|
|
24770
|
+
return DocTypePrefixes.SCHEDULED_CARD + hooks.utc(t).format(REVIEW_TIME_FORMAT);
|
|
24771
|
+
}
|
|
24764
24772
|
function hexEncode(t) {
|
|
24765
24773
|
let c, u = "";
|
|
24766
24774
|
for (let d = 0; d < t.length; d++) c = t.charCodeAt(d).toString(16), u += ("000" + c).slice(3);
|
|
@@ -24798,7 +24806,7 @@ function getLocalUserDB(t) {
|
|
|
24798
24806
|
function scheduleCardReviewLocal(t, c) {
|
|
24799
24807
|
let u = hooks.utc();
|
|
24800
24808
|
logger.info(`Scheduling for review in: ${c.time.diff(u, "h") / 24} days`), t.put({
|
|
24801
|
-
_id:
|
|
24809
|
+
_id: makeScheduledCardId(c.time),
|
|
24802
24810
|
cardId: c.card_id,
|
|
24803
24811
|
reviewTime: c.time.toISOString(),
|
|
24804
24812
|
courseId: c.course_id,
|
|
@@ -29792,9 +29800,9 @@ Currently logged-in as ${this._username}.`);
|
|
|
29792
29800
|
}
|
|
29793
29801
|
}).map((t) => t.doc);
|
|
29794
29802
|
}
|
|
29795
|
-
async getReviewsForcast(t) {
|
|
29796
|
-
let
|
|
29797
|
-
return this.getReviewstoDate(c);
|
|
29803
|
+
async getReviewsForcast(t, c) {
|
|
29804
|
+
let u = hooks.utc().add(t, "days");
|
|
29805
|
+
return this.getReviewstoDate(u, c);
|
|
29798
29806
|
}
|
|
29799
29807
|
async getPendingReviews(t) {
|
|
29800
29808
|
let c = hooks.utc();
|
|
@@ -32518,7 +32526,7 @@ ${c.id}:`), logger.info(JSON.stringify(c.doc, null, 2));
|
|
|
32518
32526
|
let d = (/* @__PURE__ */ new Date()).toISOString(), m = new Date(this.startTime).toISOString();
|
|
32519
32527
|
await recordUserOutcome(c, m, d, t, u);
|
|
32520
32528
|
}
|
|
32521
|
-
}, _defineProperty$2(_SessionController2, "MIN_WELL_INDICATED", 5), _defineProperty$2(_SessionController2, "WELL_INDICATED_SCORE", .1), _defineProperty$2(_SessionController2, "DEPLETION_PREFETCH_THRESHOLD", 3), _defineProperty$2(_SessionController2, "FAILED_INTERLEAVE_EVERY", 4), _defineProperty$2(_SessionController2, "FAILED_ENDGAME_SLACK_SECONDS", 20), _SessionController2), init_TagFilteredContentSource(), init_factory();
|
|
32529
|
+
}, _defineProperty$2(_SessionController2, "MIN_WELL_INDICATED", 5), _defineProperty$2(_SessionController2, "WELL_INDICATED_SCORE", .1), _defineProperty$2(_SessionController2, "DEPLETION_PREFETCH_THRESHOLD", 3), _defineProperty$2(_SessionController2, "FAILED_INTERLEAVE_EVERY", 4), _defineProperty$2(_SessionController2, "FAILED_ENDGAME_SLACK_SECONDS", 20), _SessionController2), init_TagFilteredContentSource(), init_factory(), init_userDBHelpers();
|
|
32522
32530
|
}));
|
|
32523
32531
|
//#endregion
|
|
32524
32532
|
//#region ../../node_modules/vue-router/dist/vue-router.mjs
|
|
@@ -40718,7 +40726,7 @@ function _sfc_render$18(t, c, u, d, m, g) {
|
|
|
40718
40726
|
color: t.timerColor,
|
|
40719
40727
|
"model-value": t.percentageRemaining
|
|
40720
40728
|
}, {
|
|
40721
|
-
default: withCtx(() => [t.timeRemaining > 0 && t.hovered ? (openBlock(), createBlock(S, {
|
|
40729
|
+
default: withCtx(() => [t.allowAddTime && t.timeRemaining > 0 && t.hovered ? (openBlock(), createBlock(S, {
|
|
40722
40730
|
key: 0,
|
|
40723
40731
|
icon: "",
|
|
40724
40732
|
color: "transparent",
|
|
@@ -40881,7 +40889,10 @@ function _sfc_render$15(t, c, u, d, m, g) {
|
|
|
40881
40889
|
c[1] || (c[1] = createBaseVNode("p", null, "Study session finished! Great job!", -1)),
|
|
40882
40890
|
t.sessionController ? (openBlock(), createElementBlock("p", Jt, toDisplayString(t.sessionController.report), 1)) : createCommentVNode("", !0),
|
|
40883
40891
|
createVNode(T, { "activity-records-getter": () => t.user.getActivityRecords() }, null, 8, ["activity-records-getter"])
|
|
40884
|
-
])], !0)])) : (openBlock(), createElementBlock("div", Yt, [createVNode(Transition, {
|
|
40892
|
+
])], !0)])) : (openBlock(), createElementBlock("div", Yt, [createVNode(Transition, {
|
|
40893
|
+
name: t.transitionName,
|
|
40894
|
+
mode: t.resolvedTransitionMode
|
|
40895
|
+
}, {
|
|
40885
40896
|
default: withCtx(() => [t.view ? (openBlock(), createBlock(E, {
|
|
40886
40897
|
ref: "cardViewer",
|
|
40887
40898
|
key: t.cardID,
|
|
@@ -40911,7 +40922,7 @@ function _sfc_render$15(t, c, u, d, m, g) {
|
|
|
40911
40922
|
"onReadyToAdvance"
|
|
40912
40923
|
])) : createCommentVNode("", !0)]),
|
|
40913
40924
|
_: 1
|
|
40914
|
-
}, 8, ["name"])], 512)),
|
|
40925
|
+
}, 8, ["name", "mode"])], 512)),
|
|
40915
40926
|
t.frameless ? createCommentVNode("", !0) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [c[2] || (c[2] = createBaseVNode("br", null, null, -1)), t.sessionController ? (openBlock(), createElementBlock("div", Xt, [(openBlock(!0), createElementBlock(Fragment, null, renderList(t.sessionController.failedCount, (t) => (openBlock(), createElementBlock("span", {
|
|
40916
40927
|
key: t,
|
|
40917
40928
|
class: "text-h5"
|
|
@@ -42737,6 +42748,10 @@ var Ee$1, De$1, Oe$1, ke$1, Ae$1, je$1, Me$1, Ne$1, Pe$1, Fe$1, Ie$1, Le$1, Z$2,
|
|
|
42737
42748
|
type: Number,
|
|
42738
42749
|
required: !0,
|
|
42739
42750
|
default: 5
|
|
42751
|
+
},
|
|
42752
|
+
allowAddTime: {
|
|
42753
|
+
type: Boolean,
|
|
42754
|
+
default: !0
|
|
42740
42755
|
}
|
|
42741
42756
|
},
|
|
42742
42757
|
emits: ["add-time"],
|
|
@@ -42757,7 +42772,7 @@ var Ee$1, De$1, Oe$1, ke$1, Ae$1, je$1, Me$1, Ne$1, Pe$1, Fe$1, Ie$1, Le$1, Z$2,
|
|
|
42757
42772
|
addSessionTime
|
|
42758
42773
|
};
|
|
42759
42774
|
}
|
|
42760
|
-
}), __name(_sfc_render$18, "_sfc_render"), st$1 = /* @__PURE__ */ F$3(ot$1, [["render", _sfc_render$18], ["__scopeId", "data-v-
|
|
42775
|
+
}), __name(_sfc_render$18, "_sfc_render"), st$1 = /* @__PURE__ */ F$3(ot$1, [["render", _sfc_render$18], ["__scopeId", "data-v-5e104ccc"]]), ct$1 = /* @__PURE__ */ defineComponent({
|
|
42761
42776
|
name: "CardViewer",
|
|
42762
42777
|
ref: {},
|
|
42763
42778
|
props: {
|
|
@@ -43345,9 +43360,14 @@ var Ee$1, De$1, Oe$1, ke$1, Ae$1, je$1, Me$1, Ne$1, Pe$1, Fe$1, Ie$1, Le$1, Z$2,
|
|
|
43345
43360
|
debugMode: window.debugMode === !0
|
|
43346
43361
|
};
|
|
43347
43362
|
},
|
|
43348
|
-
computed: {
|
|
43349
|
-
|
|
43350
|
-
|
|
43363
|
+
computed: {
|
|
43364
|
+
currentCard() {
|
|
43365
|
+
return this.sessionRecord[this.sessionRecord.length - 1];
|
|
43366
|
+
},
|
|
43367
|
+
resolvedTransitionMode() {
|
|
43368
|
+
return this.transitionMode === "default" ? void 0 : this.transitionMode;
|
|
43369
|
+
}
|
|
43370
|
+
},
|
|
43351
43371
|
async created() {
|
|
43352
43372
|
this.userCourseRegDoc = await this.user.getCourseRegistrationsDoc(), console.log("[StudySession] Created lifecycle hook - starting initSession"), await this.initSession(), console.log("[StudySession] InitSession completed in created hook");
|
|
43353
43373
|
},
|
|
@@ -43517,7 +43537,7 @@ var Ee$1, De$1, Oe$1, ke$1, Ae$1, je$1, Me$1, Ne$1, Pe$1, Fe$1, Ie$1, Le$1, Z$2,
|
|
|
43517
43537
|
key: 4,
|
|
43518
43538
|
ref: "shadowWrapper",
|
|
43519
43539
|
class: "card-transition-container"
|
|
43520
|
-
}, Xt = { key: 0 }, __name(_sfc_render$15, "_sfc_render"), Zt = /* @__PURE__ */ F$3(Ut, [["render", _sfc_render$15], ["__scopeId", "data-v-
|
|
43540
|
+
}, Xt = { key: 0 }, __name(_sfc_render$15, "_sfc_render"), Zt = /* @__PURE__ */ F$3(Ut, [["render", _sfc_render$15], ["__scopeId", "data-v-d6d88dad"]]), Qt = /* @__PURE__ */ defineComponent({
|
|
43521
43541
|
name: "MultipleChoiceOption",
|
|
43522
43542
|
components: { MarkdownRenderer: /* @__PURE__ */ defineAsyncComponent(() => Promise.resolve().then(() => (init_MarkdownRenderer_kStoDRNE(), MarkdownRenderer_kStoDRNE_exports)).then((t) => t.n)) },
|
|
43523
43543
|
props: {
|