@vue-skuilder/standalone-ui 0.2.14 → 0.2.16

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.
@@ -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: DocTypePrefixes.SCHEDULED_CARD + c.time.format(REVIEW_TIME_FORMAT),
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 c = hooks.utc().add(t, "days");
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();
@@ -31291,7 +31299,10 @@ ${c.id}:`), logger.info(JSON.stringify(c.doc, null, 2));
31291
31299
  S.length > 0 && (logger.debug(`[CardHydrationService] Prefetching ${S.length} audio files for card ${t.cardID}`), await Promise.allSettled(S.map(prefetchAudio)));
31292
31300
  let C = g.map(displayableDataToViewData).reverse();
31293
31301
  this.hydratedCards.set(t.cardID, {
31294
- item: t,
31302
+ item: {
31303
+ ...t,
31304
+ elo: toCourseElo(u.elo).global.score
31305
+ },
31295
31306
  view: m,
31296
31307
  data: C,
31297
31308
  tags: d.get(t.cardID) ?? []
@@ -32518,7 +32529,7 @@ ${c.id}:`), logger.info(JSON.stringify(c.doc, null, 2));
32518
32529
  let d = (/* @__PURE__ */ new Date()).toISOString(), m = new Date(this.startTime).toISOString();
32519
32530
  await recordUserOutcome(c, m, d, t, u);
32520
32531
  }
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();
32532
+ }, _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
32533
  }));
32523
32534
  //#endregion
32524
32535
  //#region ../../node_modules/vue-router/dist/vue-router.mjs
@@ -40718,7 +40729,7 @@ function _sfc_render$18(t, c, u, d, m, g) {
40718
40729
  color: t.timerColor,
40719
40730
  "model-value": t.percentageRemaining
40720
40731
  }, {
40721
- default: withCtx(() => [t.timeRemaining > 0 && t.hovered ? (openBlock(), createBlock(S, {
40732
+ default: withCtx(() => [t.allowAddTime && t.timeRemaining > 0 && t.hovered ? (openBlock(), createBlock(S, {
40722
40733
  key: 0,
40723
40734
  icon: "",
40724
40735
  color: "transparent",
@@ -40881,7 +40892,10 @@ function _sfc_render$15(t, c, u, d, m, g) {
40881
40892
  c[1] || (c[1] = createBaseVNode("p", null, "Study session finished! Great job!", -1)),
40882
40893
  t.sessionController ? (openBlock(), createElementBlock("p", Jt, toDisplayString(t.sessionController.report), 1)) : createCommentVNode("", !0),
40883
40894
  createVNode(T, { "activity-records-getter": () => t.user.getActivityRecords() }, null, 8, ["activity-records-getter"])
40884
- ])], !0)])) : (openBlock(), createElementBlock("div", Yt, [createVNode(Transition, { name: t.transitionName }, {
40895
+ ])], !0)])) : (openBlock(), createElementBlock("div", Yt, [createVNode(Transition, {
40896
+ name: t.transitionName,
40897
+ mode: t.resolvedTransitionMode
40898
+ }, {
40885
40899
  default: withCtx(() => [t.view ? (openBlock(), createBlock(E, {
40886
40900
  ref: "cardViewer",
40887
40901
  key: t.cardID,
@@ -40911,7 +40925,7 @@ function _sfc_render$15(t, c, u, d, m, g) {
40911
40925
  "onReadyToAdvance"
40912
40926
  ])) : createCommentVNode("", !0)]),
40913
40927
  _: 1
40914
- }, 8, ["name"])], 512)),
40928
+ }, 8, ["name", "mode"])], 512)),
40915
40929
  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
40930
  key: t,
40917
40931
  class: "text-h5"
@@ -42737,6 +42751,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
42751
  type: Number,
42738
42752
  required: !0,
42739
42753
  default: 5
42754
+ },
42755
+ allowAddTime: {
42756
+ type: Boolean,
42757
+ default: !0
42740
42758
  }
42741
42759
  },
42742
42760
  emits: ["add-time"],
@@ -42757,7 +42775,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
42775
  addSessionTime
42758
42776
  };
42759
42777
  }
42760
- }), __name(_sfc_render$18, "_sfc_render"), st$1 = /* @__PURE__ */ F$3(ot$1, [["render", _sfc_render$18], ["__scopeId", "data-v-5960940a"]]), ct$1 = /* @__PURE__ */ defineComponent({
42778
+ }), __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
42779
  name: "CardViewer",
42762
42780
  ref: {},
42763
42781
  props: {
@@ -43345,9 +43363,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
43363
  debugMode: window.debugMode === !0
43346
43364
  };
43347
43365
  },
43348
- computed: { currentCard() {
43349
- return this.sessionRecord[this.sessionRecord.length - 1];
43350
- } },
43366
+ computed: {
43367
+ currentCard() {
43368
+ return this.sessionRecord[this.sessionRecord.length - 1];
43369
+ },
43370
+ resolvedTransitionMode() {
43371
+ return this.transitionMode === "default" ? void 0 : this.transitionMode;
43372
+ }
43373
+ },
43351
43374
  async created() {
43352
43375
  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
43376
  },
@@ -43517,7 +43540,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
43540
  key: 4,
43518
43541
  ref: "shadowWrapper",
43519
43542
  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-1f4b2d6a"]]), Qt = /* @__PURE__ */ defineComponent({
43543
+ }, 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
43544
  name: "MultipleChoiceOption",
43522
43545
  components: { MarkdownRenderer: /* @__PURE__ */ defineAsyncComponent(() => Promise.resolve().then(() => (init_MarkdownRenderer_kStoDRNE(), MarkdownRenderer_kStoDRNE_exports)).then((t) => t.n)) },
43523
43546
  props: {