@deot/docs-client 1.1.2 → 1.1.4

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.
Files changed (55) hide show
  1. package/README.md +2 -3
  2. package/dist/chunks/browser-Cmwcvs-d.js +505 -0
  3. package/dist/chunks/cdn-DEvdGJu2-bmlgKy4E.js +38 -0
  4. package/dist/chunks/chunk-rhk8Qtmk-CUgXtmq_.js +14 -0
  5. package/dist/chunks/compile-Bw7v7QE--Dd1-R95H.js +79920 -0
  6. package/dist/chunks/compiler-sfc.esm-browser-B4_kBkG5.js +24975 -0
  7. package/dist/chunks/dayjs.min-B3g34Qcz.js +300 -0
  8. package/dist/chunks/dist-0ySyXNpo.js +415 -0
  9. package/dist/chunks/dist-BUw25nXJ.js +65 -0
  10. package/dist/chunks/dist-BeOE8qTX.js +345 -0
  11. package/dist/chunks/dist-Bm7SK-km.js +24517 -0
  12. package/dist/chunks/dist-C3V7reR4.js +197 -0
  13. package/dist/chunks/dist-C8z9l0mA.js +58 -0
  14. package/dist/chunks/dist-CI9Lp9Cj.js +247 -0
  15. package/dist/chunks/dist-COjpr4FU.js +426 -0
  16. package/dist/chunks/dist-CQir6D4y.js +244 -0
  17. package/dist/chunks/dist-CuJyl-ef.js +17 -0
  18. package/dist/chunks/dist-Cxf7_ocf.js +44 -0
  19. package/dist/chunks/dist-DF4kisl2.js +43 -0
  20. package/dist/chunks/dist-DLj8yJdm.js +38 -0
  21. package/dist/chunks/dist-DN0sqx7H.js +39 -0
  22. package/dist/chunks/dist-DWqBe2Ah.js +132 -0
  23. package/dist/chunks/dist-D_Uqh6m9.js +80 -0
  24. package/dist/chunks/dist-DcIU51zW.js +166 -0
  25. package/dist/chunks/dist-DlmO7OlF.js +22 -0
  26. package/dist/chunks/dist-kiZUqqzR.js +27 -0
  27. package/dist/chunks/dist-oZ12SGqg.js +6 -0
  28. package/dist/chunks/dist-uXnwGrO3.js +76 -0
  29. package/dist/chunks/dist-va7FmnW4.js +156 -0
  30. package/dist/chunks/{echarts-I1Rk_oCV.js → echarts-Dk-pu7GM.js} +450 -398
  31. package/dist/chunks/files-C5UMzYxA-q9oJ4PrI.js +110 -0
  32. package/dist/chunks/html2canvas-Deo0mM5K.js +4022 -0
  33. package/dist/chunks/index.es-UlJ0gfdF.js +5757 -0
  34. package/dist/chunks/jspdf.es.min-CJc40v7q.js +17873 -0
  35. package/dist/chunks/jsx-CwMPlI4_-CAiik-V7.js +128454 -0
  36. package/dist/chunks/jszip.min-BbVwZKYP.js +3044 -0
  37. package/dist/chunks/linker-JHdz37DK-CWgUtxZ5.js +118 -0
  38. package/dist/chunks/local-sandbox-B8IJ5jWb-BgfU3iQ4.js +300 -0
  39. package/dist/chunks/lodash-Cxf6dD_I.js +5161 -0
  40. package/dist/chunks/modules-DlLJF_vd-DcNdL6sc.js +153 -0
  41. package/dist/chunks/{photoswipe.esm-CT37djgx.js → photoswipe.esm-B0V-xGTB.js} +36 -31
  42. package/dist/chunks/pinia-pDJilYOg.js +326 -0
  43. package/dist/chunks/purify.es-BiqY1C6m.js +867 -0
  44. package/dist/chunks/remote-DfXAsO9n-C_MtPVYr.js +75 -0
  45. package/dist/chunks/script-xKUjE8pf-oF69rg-w.js +14941 -0
  46. package/dist/chunks/store-D8vwi-HV-RFStijWr.js +16936 -0
  47. package/dist/chunks/vue-router-C0mj8Ot5.js +1196 -0
  48. package/dist/chunks/vue.runtime.esm-bundler-XxHGOLq2.js +4879 -0
  49. package/dist/index.cjs +17 -17
  50. package/dist/index.d.ts +1 -1
  51. package/dist/index.js +41759 -103263
  52. package/dist/index.style.css +3 -4
  53. package/package.json +9 -9
  54. package/dist/chunks/_commonjsHelpers-BFTU3MAI-D_7z5o6A.js +0 -8
  55. package/dist/chunks/jsx-H2PmTOgp-C0GVSSMR.js +0 -128281
package/dist/index.cjs CHANGED
@@ -376,12 +376,12 @@ var isDocsContentWidth = (value) => value === "regular" || value === "wide" || v
376
376
  */
377
377
  var ContentWidthSettingsManager = class {
378
378
  settings;
379
- value = (0, vue.ref)(DEFAULT_CONTENT_WIDTH);
379
+ currentValue = (0, vue.ref)(DEFAULT_CONTENT_WIDTH);
380
380
  namespace = "";
381
381
  session = 0;
382
382
  preferenceVersion = 0;
383
383
  active = false;
384
- current = (0, vue.readonly)(this.value);
384
+ current = (0, vue.readonly)(this.currentValue);
385
385
  constructor(settings) {
386
386
  this.settings = settings;
387
387
  }
@@ -390,7 +390,7 @@ var ContentWidthSettingsManager = class {
390
390
  const preferenceVersion = ++this.preferenceVersion;
391
391
  this.active = true;
392
392
  this.namespace = getDocsNamespace(config);
393
- this.value.value = DEFAULT_CONTENT_WIDTH;
393
+ this.currentValue.value = DEFAULT_CONTENT_WIDTH;
394
394
  this.restore(session, preferenceVersion, this.namespace);
395
395
  return () => this.stop(session);
396
396
  }
@@ -404,12 +404,12 @@ var ContentWidthSettingsManager = class {
404
404
  try {
405
405
  stored = await this.settings.get(namespace, SETTING_KEY$1);
406
406
  } catch {}
407
- if (isDocsContentWidth(stored) && session === this.session && preferenceVersion === this.preferenceVersion) this.value.value = stored;
407
+ if (isDocsContentWidth(stored) && session === this.session && preferenceVersion === this.preferenceVersion) this.currentValue.value = stored;
408
408
  }
409
409
  async set(next) {
410
- if (!isDocsContentWidth(next) || next === this.value.value) return;
410
+ if (!isDocsContentWidth(next) || next === this.currentValue.value) return;
411
411
  this.preferenceVersion++;
412
- this.value.value = next;
412
+ this.currentValue.value = next;
413
413
  if (!this.active) return;
414
414
  try {
415
415
  await this.settings.set(this.namespace, SETTING_KEY$1, next);
@@ -457,7 +457,7 @@ var LanguageSettingsManager = class {
457
457
  */
458
458
  var ThemeSettingsManager = class {
459
459
  settings;
460
- value = (0, vue.ref)("light");
460
+ currentValue = (0, vue.ref)("light");
461
461
  enabledValue = (0, vue.ref)(true);
462
462
  readyValue = (0, vue.ref)(false);
463
463
  active = false;
@@ -472,7 +472,7 @@ var ThemeSettingsManager = class {
472
472
  operation;
473
473
  queued;
474
474
  requested;
475
- current = (0, vue.readonly)(this.value);
475
+ current = (0, vue.readonly)(this.currentValue);
476
476
  enabled = (0, vue.readonly)(this.enabledValue);
477
477
  ready = (0, vue.readonly)(this.readyValue);
478
478
  constructor(settings) {
@@ -511,7 +511,7 @@ var ThemeSettingsManager = class {
511
511
  };
512
512
  }
513
513
  apply(theme) {
514
- this.value.value = theme;
514
+ this.currentValue.value = theme;
515
515
  this.appliedTarget = this.target;
516
516
  this.appliedTheme = theme;
517
517
  const document = this.target?.document;
@@ -634,13 +634,13 @@ var ThemeSettingsManager = class {
634
634
  while (this.queued?.session === session) {
635
635
  const request = this.queued;
636
636
  this.queued = void 0;
637
- if (request.theme !== this.value.value) await this.applyWithTransition(request.theme, request.origin, session);
637
+ if (request.theme !== this.currentValue.value) await this.applyWithTransition(request.theme, request.origin, session);
638
638
  if (session !== this.session) return;
639
639
  try {
640
640
  await this.settings.set(request.namespace, "theme", request.theme);
641
641
  } catch {}
642
642
  }
643
- if (session === this.session) this.requested = this.value.value;
643
+ if (session === this.session) this.requested = this.currentValue.value;
644
644
  }
645
645
  async ensureFlush(session) {
646
646
  while (this.queued?.session === session) {
@@ -660,7 +660,7 @@ var ThemeSettingsManager = class {
660
660
  async set(theme, origin) {
661
661
  if (!this.active || !this.enabledValue.value || !(0, _deot_docs_theme.isDocsTheme)(theme)) return;
662
662
  const session = this.session;
663
- if (theme === (this.requested || this.value.value)) return;
663
+ if (theme === (this.requested || this.currentValue.value)) return;
664
664
  this.preferenceVersion++;
665
665
  this.followingSystem = false;
666
666
  this.detachSystemListener();
@@ -674,7 +674,7 @@ var ThemeSettingsManager = class {
674
674
  await this.ensureFlush(session);
675
675
  }
676
676
  toggle(origin) {
677
- return this.set((this.requested || this.value.value) === "dark" ? "light" : "dark", origin);
677
+ return this.set((this.requested || this.currentValue.value) === "dark" ? "light" : "dark", origin);
678
678
  }
679
679
  };
680
680
  //#endregion
@@ -5841,7 +5841,7 @@ var page_outline_default = /* @__PURE__ */ (0, vue.defineComponent)({
5841
5841
  const followActiveLink = async () => {
5842
5842
  await (0, vue.nextTick)();
5843
5843
  const current = outlineRoot.value?.querySelector("a[aria-current=\"location\"]");
5844
- const wrapper = outlineRoot.value?.querySelector(".vc-scroller__wrapper");
5844
+ const wrapper = outlineRoot.value?.querySelector(".vc-scroller");
5845
5845
  if (!current || !wrapper) return;
5846
5846
  const currentRect = current.getBoundingClientRect();
5847
5847
  const wrapperRect = wrapper.getBoundingClientRect();
@@ -5931,7 +5931,7 @@ var page_outline_default = /* @__PURE__ */ (0, vue.defineComponent)({
5931
5931
  const scrollHeadingIntoView = (id) => {
5932
5932
  const target = headings.value.find((item) => item.id === id)?.element;
5933
5933
  if (!target) return;
5934
- const scroller = target.closest(".docs-layout__main-scroller")?.querySelector(".vc-scroller__wrapper") || target.closest(".vc-scroller__wrapper");
5934
+ const scroller = target.closest(".docs-layout__main-scroller")?.querySelector(".vc-scroller") || target.closest(".vc-scroller");
5935
5935
  if (scroller) {
5936
5936
  scroller.scrollTop += target.getBoundingClientRect().top - scroller.getBoundingClientRect().top;
5937
5937
  return;
@@ -6202,7 +6202,7 @@ var resource_slot_default = /* @__PURE__ */ (0, vue.defineComponent)({
6202
6202
  if (current !== generation) return;
6203
6203
  target = getHashTarget(hash);
6204
6204
  }
6205
- const scroller = target?.closest(".vc-scroller__wrapper");
6205
+ const scroller = target?.closest(".vc-scroller");
6206
6206
  if (target && scroller) {
6207
6207
  scroller.scrollTop += target.getBoundingClientRect().top - scroller.getBoundingClientRect().top;
6208
6208
  return;
@@ -6442,7 +6442,7 @@ var resource_slot_default = /* @__PURE__ */ (0, vue.defineComponent)({
6442
6442
  "playground"
6443
6443
  ]),
6444
6444
  (0, vue.createVNode)(page_footer_default)
6445
- ]), (0, vue.createVNode)(page_outline_default, { target: article.value }, null, 8, ["target"])])) : resourceType.value === "markdown" ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(_deot_docs_markdown.Markdown), {
6445
+ ], 512), (0, vue.createVNode)(page_outline_default, { target: article.value }, null, 8, ["target"])])) : resourceType.value === "markdown" ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(_deot_docs_markdown.Markdown), {
6446
6446
  key: 8,
6447
6447
  value: content.value,
6448
6448
  theme: markdownTheme.value,
package/dist/index.d.ts CHANGED
@@ -476,7 +476,7 @@ export declare const Theme: ThemeSettingsManager;
476
476
 
477
477
  declare class ThemeSettingsManager implements DocsThemeController {
478
478
  private settings;
479
- private value;
479
+ private currentValue;
480
480
  private enabledValue;
481
481
  private readyValue;
482
482
  private active;