ebt-vue3 2.55.39 → 2.56.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ebt-vue3",
3
- "version": "2.55.39",
3
+ "version": "2.56.1",
4
4
  "description": "Vue3 Library for SuttaCentral Voice EBT-Sites",
5
5
  "author": "Karl Lew",
6
6
  "scripts": {
@@ -46,10 +46,9 @@
46
46
  "merkle-json": "^2.15.0",
47
47
  "pinia": "^2.0.16",
48
48
  "roboto-fontface": "*",
49
- "scv-esm": "^1.136.95",
49
+ "scv-esm": "^1.136.96",
50
50
  "serve-favicon": "^2.5.0",
51
51
  "uuid": "^14.0.0",
52
- "vite-plugin-vuetify": "^2.0.3",
53
52
  "vue": "^3.4.21",
54
53
  "vue-i18n": "^9.10.2",
55
54
  "vue-router": "^4.1.5",
@@ -79,8 +78,9 @@
79
78
  "supertest": "^7.0.0",
80
79
  "typescript": "^5.9.3",
81
80
  "vite": "^6.3.5",
81
+ "vite-plugin-vuetify": "^2.0.3",
82
82
  "vitest": "^4.1.5",
83
- "vue-cli-plugin-vuetify": "^2.0.6",
83
+ "vue-cli-plugin-vuetify": "^2.5.1",
84
84
  "vue-tsc": "^2.1.10"
85
85
  },
86
86
  "bin": {},
@@ -149,21 +149,21 @@ export default class CardFactory {
149
149
  path='/', cards=settings.cards, addCard, defaultLang, isOpen,
150
150
  playlist,
151
151
  } = args;
152
- console.log('[URL-DEBUG] CardFactory.pathToCard called', {
153
- path,
154
- cardsCount: cards?.length,
155
- cardContexts: cards?.map(c => c.context),
156
- });
152
+ // console.log('[URL-DEBUG] CardFactory.pathToCard called', {
153
+ // path,
154
+ // cardsCount: cards?.length,
155
+ // cardContexts: cards?.map(c => c.context),
156
+ // });
157
157
  path = path.replace(/^.*\/#/, ''); // ignore non-hash part of path
158
158
  let [ ignored, context, ...location ] = path.split('/');
159
159
  location = location.map(loc => decodeURIComponent(loc));
160
160
  let card = cards.find(card => card.matchPath({path, defaultLang}));
161
- console.log('[URL-DEBUG] CardFactory.pathToCard find result', {
162
- foundCard: !!card,
163
- cardId: card?.id,
164
- context,
165
- location,
166
- });
161
+ // console.log('[URL-DEBUG] CardFactory.pathToCard find result', {
162
+ // foundCard: !!card,
163
+ // cardId: card?.id,
164
+ // context,
165
+ // location,
166
+ // });
167
167
  dbgv && console.log(msg, '[1]find', {card, path});
168
168
  if (card == null) {
169
169
  if (addCard === undefined) {
@@ -196,23 +196,23 @@
196
196
  $route (to, from) {
197
197
  const msg = 'EbtCards.watch.$route';
198
198
  const dbg = DBG.ROUTE || DBG_OPEN_CARD;
199
- console.log('[URL-DEBUG] EbtCards.$route watcher fired', {
200
- from: from?.fullPath,
201
- to: to?.fullPath,
202
- hash: window.location.hash,
203
- });
199
+ // console.log('[URL-DEBUG] EbtCards.$route watcher fired', {
200
+ // from: from?.fullPath,
201
+ // to: to?.fullPath,
202
+ // hash: window.location.hash,
203
+ // });
204
204
  let { cardFactory, volatile, settings, $route } = this;
205
205
  let card = cardFactory.pathToCard({
206
206
  path: to.fullPath,
207
207
  addCard: (opts) => cardFactory.addCard(opts),
208
208
  defaultLang: settings.langTrans,
209
209
  });
210
- console.log('[URL-DEBUG] EbtCards pathToCard result', {
211
- cardId: card?.id,
212
- cardContext: card?.context,
213
- cardLocation: card?.location,
214
- cardIsOpen: card?.isOpen,
215
- });
210
+ // console.log('[URL-DEBUG] EbtCards pathToCard result', {
211
+ // cardId: card?.id,
212
+ // cardContext: card?.context,
213
+ // cardLocation: card?.location,
214
+ // cardIsOpen: card?.isOpen,
215
+ // });
216
216
  let { activeElement } = document;
217
217
 
218
218
  if (card?.isOpen) {
@@ -95,12 +95,12 @@
95
95
  development, langTrans, docLang, docAuthor, refLang, refAuthor
96
96
  } = settings;
97
97
  let { id, location, data } = card;
98
- console.log('[URL-DEBUG] SuttaView.mounted()', {
99
- cardId: id,
100
- location,
101
- routeFullPath: fullPath,
102
- hash: window.location.hash,
103
- });
98
+ // console.log('[URL-DEBUG] SuttaView.mounted()', {
99
+ // cardId: id,
100
+ // location,
101
+ // routeFullPath: fullPath,
102
+ // hash: window.location.hash,
103
+ // });
104
104
  let ref = {
105
105
  sutta_uid:location[0],
106
106
  lang:location[1],
@@ -131,25 +131,25 @@
131
131
  const msg = 'SuttaView.watch.card.location()';
132
132
  const dbg = DBG.MOUNTED;
133
133
 
134
- console.log('[URL-DEBUG] SuttaView watch.card.location fired', {
135
- newLoc,
136
- oldLoc,
137
- hash: window.location.hash,
138
- });
134
+ // console.log('[URL-DEBUG] SuttaView watch.card.location fired', {
135
+ // newLoc,
136
+ // oldLoc,
137
+ // hash: window.location.hash,
138
+ // });
139
139
 
140
140
  // Skip if no previous location (initial mount handles this)
141
141
  if (!oldLoc || !newLoc) {
142
- console.log('[URL-DEBUG] SuttaView watch skipped (no old/new loc)');
142
+ // console.log('[URL-DEBUG] SuttaView watch skipped (no old/new loc)');
143
143
  return;
144
144
  }
145
145
 
146
146
  // Skip if same sutta_uid (just segment change)
147
147
  if (newLoc[0] === oldLoc[0]) {
148
- console.log('[URL-DEBUG] SuttaView watch skipped (same sutta_uid)');
148
+ // console.log('[URL-DEBUG] SuttaView watch skipped (same sutta_uid)');
149
149
  return;
150
150
  }
151
151
 
152
- console.log('[URL-DEBUG] SuttaView watch proceeding to reload');
152
+ // console.log('[URL-DEBUG] SuttaView watch proceeding to reload');
153
153
  dbg && console.log(msg, '[1]location changed', {newLoc, oldLoc});
154
154
 
155
155
  // Reload sutta data for new location
package/src/ebt-card.mjs CHANGED
@@ -444,11 +444,11 @@ export default class EbtCard {
444
444
  let { path, defaultLang } = opts;
445
445
  let loc = location.join('/');
446
446
  let cardLoc = cardLocation.join('/');
447
- console.log('[URL-DEBUG] matchPathSutta', {
448
- pathLocation: loc,
449
- cardLocation: cardLoc,
450
- path,
451
- });
447
+ // console.log('[URL-DEBUG] matchPathSutta', {
448
+ // pathLocation: loc,
449
+ // cardLocation: cardLoc,
450
+ // path,
451
+ // });
452
452
  if (loc === '') {
453
453
  let result = cardLoc === loc;
454
454
  dbg && console.log(msg, `[1]true ${path} => ${result}`,
@@ -462,16 +462,16 @@ export default class EbtCard {
462
462
  let msStart = Date.now();
463
463
  let pathRef = SuttaRef.create(loc, defaultLang);
464
464
  if (pathRef == null) {
465
- console.log('[URL-DEBUG] matchPathSutta: pathRef is null', {loc});
465
+ // console.log('[URL-DEBUG] matchPathSutta: pathRef is null', {loc});
466
466
  dbg && console.log(msg, `[3]false (${path})`, {loc});
467
467
  return false;
468
468
  }
469
469
  let cardRef = SuttaRef.create(cardLoc, defaultLang);
470
- console.log('[URL-DEBUG] matchPathSutta comparing', {
471
- pathSuttaUid: pathRef.sutta_uid,
472
- cardSuttaUid: cardRef.sutta_uid,
473
- match: pathRef.sutta_uid === cardRef.sutta_uid,
474
- });
470
+ // console.log('[URL-DEBUG] matchPathSutta comparing', {
471
+ // pathSuttaUid: pathRef.sutta_uid,
472
+ // cardSuttaUid: cardRef.sutta_uid,
473
+ // match: pathRef.sutta_uid === cardRef.sutta_uid,
474
+ // });
475
475
  if (pathRef.sutta_uid !== cardRef.sutta_uid) {
476
476
  dbg && console.log(msg, `[4]false (${path})`,
477
477
  pathRef.suid, cardRef.suid);
@@ -358,11 +358,11 @@ export const useVolatileStore = defineStore('volatile', {
358
358
  setRoute(cardOrRoute, keepFocus, caller) {
359
359
  const msg = 'volatile.setRoute()';
360
360
  const dbg = DBG.SET_ROUTE;
361
- console.log('[URL-DEBUG] volatile.setRoute() called', {
362
- caller,
363
- cardOrRoute: typeof cardOrRoute === 'string' ? cardOrRoute : cardOrRoute?.debugString,
364
- currentHash: globalThis.window?.location?.hash,
365
- });
361
+ // console.log('[URL-DEBUG] volatile.setRoute() called', {
362
+ // caller,
363
+ // cardOrRoute: typeof cardOrRoute === 'string' ? cardOrRoute : cardOrRoute?.debugString,
364
+ // currentHash: globalThis.window?.location?.hash,
365
+ // });
366
366
  let { config, } = this;
367
367
  let settings = useSettingsStore();
368
368
  if (!cardOrRoute) {
@@ -383,15 +383,15 @@ export const useVolatileStore = defineStore('volatile', {
383
383
  ? cardOrRoute
384
384
  : cardFactory.pathToCard({path:route, addCard});
385
385
  if (card == null) {
386
- console.log('[URL-DEBUG] volatile.setRoute() no card found', {route});
386
+ // console.log('[URL-DEBUG] volatile.setRoute() no card found', {route});
387
387
  dbg && console.log(msg, '[1]no card', {route});
388
388
  return;
389
389
  }
390
- console.log('[URL-DEBUG] volatile.setRoute() card found', {
391
- cardId: card.id,
392
- cardLocation: card.location,
393
- route,
394
- });
390
+ // console.log('[URL-DEBUG] volatile.setRoute() card found', {
391
+ // cardId: card.id,
392
+ // cardLocation: card.location,
393
+ // route,
394
+ // });
395
395
  let { visible } = card;
396
396
 
397
397
  const { window } = globalThis;