xmlui 0.9.82 → 0.9.83

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.
@@ -9469,7 +9469,7 @@ const nd = Te.forwardRef(
9469
9469
  onOpen: i,
9470
9470
  onClose: l
9471
9471
  }, s) => {
9472
- const { root: d } = tt(), u = (d == null ? void 0 : d.getRootNode()) instanceof ShadowRoot, p = ne(null), m = s ? sr(s, p) : p, { isOpen: g, doClose: h, doOpen: b } = p_(r, i, l);
9472
+ const { root: d } = tt(), u = typeof ShadowRoot < "u" && (d == null ? void 0 : d.getRootNode()) instanceof ShadowRoot, p = ne(null), m = s ? sr(s, p) : p, { isOpen: g, doClose: h, doOpen: b } = p_(r, i, l);
9473
9473
  j(() => {
9474
9474
  var y;
9475
9475
  g && ((y = p.current) == null || y.focus());
@@ -18565,7 +18565,7 @@ function qx({
18565
18565
  let h = r == null ? void 0 : r.forceInitialize, b = r == null ? void 0 : r.interceptorWorker;
18566
18566
  j(() => {
18567
18567
  g || e && (async () => {
18568
- const { initMock: y } = await import("./initMock-BPsXM5rg.mjs"), w = await y(e);
18568
+ const { initMock: y } = await import("./initMock-CYGUM37_.mjs"), w = await y(e);
18569
18569
  m(w), i(!0);
18570
18570
  })();
18571
18571
  }, [e, g]), j(() => {
@@ -18576,7 +18576,7 @@ function qx({
18576
18576
  b ? (async () => {
18577
18577
  const [{ createApiInterceptorWorker: y }, { initMock: w }] = await Promise.all([
18578
18578
  import("./apiInterceptorWorker-DH8wqOVq.mjs"),
18579
- import("./initMock-BPsXM5rg.mjs")
18579
+ import("./initMock-CYGUM37_.mjs")
18580
18580
  ]), T = await w(e);
18581
18581
  await y(T, b), setTimeout(() => {
18582
18582
  i(!0);
@@ -18588,7 +18588,7 @@ function qx({
18588
18588
  if (process.env.VITE_MOCK_ENABLED) {
18589
18589
  const [{ createApiInterceptorWorker: w }, { initMock: T }] = await Promise.all([
18590
18590
  g ? import("./apiInterceptorWorker-DH8wqOVq.mjs") : Promise.resolve({ createApiInterceptorWorker: () => null }),
18591
- import("./initMock-BPsXM5rg.mjs")
18591
+ import("./initMock-CYGUM37_.mjs")
18592
18592
  ]);
18593
18593
  if (e || l) {
18594
18594
  const k = await T(e || {});
@@ -23866,19 +23866,30 @@ const Ul = {
23866
23866
  level: t = Ts.level,
23867
23867
  children: r,
23868
23868
  title: o,
23869
- omitFromToc: n = Ts.omitFromToc
23869
+ omitFromToc: n = Ts.omitFromToc,
23870
+ registerComponentApi: a
23870
23871
  }) => {
23871
- const a = ne(null), i = De(ed), l = i == null ? void 0 : i.registerHeading, s = i == null ? void 0 : i.hasTableOfContents;
23872
- return Br(() => {
23873
- var d, u, p;
23874
- if (s && a.current && e && !n)
23875
- return l == null ? void 0 : l({
23872
+ const i = ne(null), l = De(ed), s = l == null ? void 0 : l.registerHeading, d = l == null ? void 0 : l.hasTableOfContents, u = V((p) => {
23873
+ i.current && i.current.scrollIntoView({
23874
+ behavior: "smooth",
23875
+ block: "start",
23876
+ ...p
23877
+ });
23878
+ }, []);
23879
+ return j(() => {
23880
+ a == null || a({
23881
+ scrollIntoView: u
23882
+ });
23883
+ }, [a, u]), Br(() => {
23884
+ var p, m, g;
23885
+ if (d && i.current && e && !n)
23886
+ return s == null ? void 0 : s({
23876
23887
  id: e,
23877
23888
  level: t,
23878
- text: o || ((p = (u = (d = a.current) == null ? void 0 : d.textContent) == null ? void 0 : u.trim()) == null ? void 0 : p.replace(/#$/, "")) || e,
23879
- anchor: a.current
23889
+ text: o || ((g = (m = (p = i.current) == null ? void 0 : p.textContent) == null ? void 0 : m.trim()) == null ? void 0 : g.replace(/#$/, "")) || e,
23890
+ anchor: i.current
23880
23891
  });
23881
- }, [e, s, l, t, o, n]), /* @__PURE__ */ c("span", { ref: a, id: e, "data-anchor": !0, className: CN.anchorRef, children: r });
23892
+ }, [e, d, s, t, o, n]), /* @__PURE__ */ c("span", { ref: i, id: e, "data-anchor": !0, className: CN.anchorRef, children: r });
23882
23893
  }, wN = "Bookmark", y0 = {
23883
23894
  status: "stable",
23884
23895
  description: "As its name suggests, this component places a bookmark into its parent component's view. The component has an `id` that you can use in links to navigate (scroll to) the bookmark's location.",
@@ -23902,6 +23913,11 @@ const Ul = {
23902
23913
  valueType: "boolean",
23903
23914
  defaultValue: Ts.omitFromToc
23904
23915
  }
23916
+ },
23917
+ apis: {
23918
+ scrollIntoView: {
23919
+ description: "Scrolls the bookmark into view."
23920
+ }
23905
23921
  }
23906
23922
  }, kN = R(
23907
23923
  wN,
@@ -34325,7 +34341,7 @@ function Oj({ children: e }) {
34325
34341
  /* @__PURE__ */ c("svg", { style: { display: "none" }, ref: i })
34326
34342
  ] });
34327
34343
  }
34328
- const Aj = "0.9.82", Ej = {
34344
+ const Aj = "0.9.83", Ej = {
34329
34345
  capitalize: t2,
34330
34346
  pluralize: Iw,
34331
34347
  defaultTo: e2,
@@ -37218,7 +37234,7 @@ function aU({
37218
37234
  requestAnimationFrame(() => {
37219
37235
  var qe;
37220
37236
  if (Pe)
37221
- if (Pe instanceof ShadowRoot) {
37237
+ if (typeof ShadowRoot < "u" && Pe instanceof ShadowRoot) {
37222
37238
  const Tr = Pe.getElementById(Ce.current);
37223
37239
  if (!Tr) return;
37224
37240
  lU(Tr, Ee);
@@ -37273,7 +37289,9 @@ function aU({
37273
37289
  mediaSize: ut,
37274
37290
  queryClient: AC,
37275
37291
  standalone: o,
37276
- appIsInShadowDom: (w == null ? void 0 : w.getRootNode()) instanceof ShadowRoot,
37292
+ // String-based type checking: Use constructor.name to identify ShadowRoot
37293
+ // This avoids direct ShadowRoot type dependency while being more explicit than duck typing
37294
+ appIsInShadowDom: typeof ShadowRoot < "u" && (w == null ? void 0 : w.getRootNode()) instanceof ShadowRoot,
37277
37295
  // --- Date-related
37278
37296
  ...Zj,
37279
37297
  // --- Math-related
@@ -1,6 +1,6 @@
1
1
  import { delay as D, HttpResponse as g, matchRequestUrl as E } from "msw";
2
2
  import { isArray as N, isObject as U, mapValues as T } from "lodash-es";
3
- import { r as M, g as $, d as F, m as O, a as B, o as A, T as x } from "./index-z40PVcrw.mjs";
3
+ import { r as M, g as $, d as F, m as O, a as B, o as A, T as x } from "./index-aMRikNoc.mjs";
4
4
  import q from "dexie";
5
5
  var k = /* @__PURE__ */ ((e) => (e[e.Continue = 100] = "Continue", e[e.SwitchingProtocols = 101] = "SwitchingProtocols", e[e.Processing = 102] = "Processing", e[e.EarlyHints = 103] = "EarlyHints", e[e.Ok = 200] = "Ok", e[e.Created = 201] = "Created", e[e.Accepted = 202] = "Accepted", e[e.NonAuthoritativeInformation = 203] = "NonAuthoritativeInformation", e[e.NoContent = 204] = "NoContent", e[e.ResetContent = 205] = "ResetContent", e[e.PartialContent = 206] = "PartialContent", e[e.MultiStatus = 207] = "MultiStatus", e[e.AlreadyReported = 208] = "AlreadyReported", e[e.ImUsed = 226] = "ImUsed", e[e.MultipleChoices = 300] = "MultipleChoices", e[e.MovedPermanently = 301] = "MovedPermanently", e[e.Found = 302] = "Found", e[e.SeeOther = 303] = "SeeOther", e[e.NotModified = 304] = "NotModified", e[e.UseProxy = 305] = "UseProxy", e[e.Unused = 306] = "Unused", e[e.TemporaryRedirect = 307] = "TemporaryRedirect", e[e.PermanentRedirect = 308] = "PermanentRedirect", e[e.BadRequest = 400] = "BadRequest", e[e.Unauthorized = 401] = "Unauthorized", e[e.PaymentRequired = 402] = "PaymentRequired", e[e.Forbidden = 403] = "Forbidden", e[e.NotFound = 404] = "NotFound", e[e.MethodNotAllowed = 405] = "MethodNotAllowed", e[e.NotAcceptable = 406] = "NotAcceptable", e[e.ProxyAuthenticationRequired = 407] = "ProxyAuthenticationRequired", e[e.RequestTimeout = 408] = "RequestTimeout", e[e.Conflict = 409] = "Conflict", e[e.Gone = 410] = "Gone", e[e.LengthRequired = 411] = "LengthRequired", e[e.PreconditionFailed = 412] = "PreconditionFailed", e[e.PayloadTooLarge = 413] = "PayloadTooLarge", e[e.UriTooLong = 414] = "UriTooLong", e[e.UnsupportedMediaType = 415] = "UnsupportedMediaType", e[e.RangeNotSatisfiable = 416] = "RangeNotSatisfiable", e[e.ExpectationFailed = 417] = "ExpectationFailed", e[e.ImATeapot = 418] = "ImATeapot", e[e.MisdirectedRequest = 421] = "MisdirectedRequest", e[e.UnprocessableEntity = 422] = "UnprocessableEntity", e[e.Locked = 423] = "Locked", e[e.FailedDependency = 424] = "FailedDependency", e[e.TooEarly = 425] = "TooEarly", e[e.UpgradeRequired = 426] = "UpgradeRequired", e[e.PreconditionRequired = 428] = "PreconditionRequired", e[e.TooManyRequests = 429] = "TooManyRequests", e[e.RequestHeaderFieldsTooLarge = 431] = "RequestHeaderFieldsTooLarge", e[e.UnavailableForLegalReasons = 451] = "UnavailableForLegalReasons", e[e.InternalServerError = 500] = "InternalServerError", e[e.NotImplemented = 501] = "NotImplemented", e[e.BadGateway = 502] = "BadGateway", e[e.ServiceUnavailable = 503] = "ServiceUnavailable", e[e.GatewayTimeout = 504] = "GatewayTimeout", e[e.HttpVersionNotSupported = 505] = "HttpVersionNotSupported", e[e.VariantAlsoNegotiates = 506] = "VariantAlsoNegotiates", e[e.InsufficientStorage = 507] = "InsufficientStorage", e[e.LoopDetected = 508] = "LoopDetected", e[e.NotExtended = 510] = "NotExtended", e[e.NetworkAuthenticationRequired = 511] = "NetworkAuthenticationRequired", e))(k || {});
6
6
  class m extends Error {
@@ -1,4 +1,4 @@
1
- import { y as e, A as t, B as o, E as r, I as n, L as p, J as u, N as i, z as l, i as m, h as C, S as d, b as x, k as T, l as c, F as S, G as A, H as g, V as h, D as v, c as B, e as I, f as L, w as b, j as k, p as y, s as E, t as M, M as V, n as f, q as H, O as N, v as R, K as D, u as U, C as X, x as j } from "./index-z40PVcrw.mjs";
1
+ import { y as e, A as t, B as o, E as r, I as n, L as p, J as u, N as i, z as l, i as m, h as C, S as d, b as x, k as T, l as c, F as S, G as A, H as g, V as h, D as v, c as B, e as I, f as L, w as b, j as k, p as y, s as E, t as M, M as V, n as f, q as H, O as N, v as R, K as D, u as U, C as X, x as j } from "./index-aMRikNoc.mjs";
2
2
  import { X as w } from "./xmlui-serializer-jEIItW8v.mjs";
3
3
  export {
4
4
  e as ApiInterceptorProvider,
@@ -7402,19 +7402,30 @@ const _6 = "_anchorRef_1d4md_1", $6 = {
7402
7402
  level: t = $s.level,
7403
7403
  children: r,
7404
7404
  title: o,
7405
- omitFromToc: n = $s.omitFromToc
7405
+ omitFromToc: n = $s.omitFromToc,
7406
+ registerComponentApi: a
7406
7407
  }) => {
7407
- const a = se(null), i = Ue(fd), l = i == null ? void 0 : i.registerHeading, s = i == null ? void 0 : i.hasTableOfContents;
7408
- return Pr(() => {
7409
- var d, u, p;
7410
- if (s && a.current && e && !n)
7411
- return l == null ? void 0 : l({
7408
+ const i = se(null), l = Ue(fd), s = l == null ? void 0 : l.registerHeading, d = l == null ? void 0 : l.hasTableOfContents, u = q((p) => {
7409
+ i.current && i.current.scrollIntoView({
7410
+ behavior: "smooth",
7411
+ block: "start",
7412
+ ...p
7413
+ });
7414
+ }, []);
7415
+ return ee(() => {
7416
+ a == null || a({
7417
+ scrollIntoView: u
7418
+ });
7419
+ }, [a, u]), Pr(() => {
7420
+ var p, h, m;
7421
+ if (d && i.current && e && !n)
7422
+ return s == null ? void 0 : s({
7412
7423
  id: e,
7413
7424
  level: t,
7414
- text: o || ((p = (u = (d = a.current) == null ? void 0 : d.textContent) == null ? void 0 : u.trim()) == null ? void 0 : p.replace(/#$/, "")) || e,
7415
- anchor: a.current
7425
+ text: o || ((m = (h = (p = i.current) == null ? void 0 : p.textContent) == null ? void 0 : h.trim()) == null ? void 0 : m.replace(/#$/, "")) || e,
7426
+ anchor: i.current
7416
7427
  });
7417
- }, [e, s, l, t, o, n]), /* @__PURE__ */ c("span", { ref: a, id: e, "data-anchor": !0, className: $6.anchorRef, children: r });
7428
+ }, [e, d, s, t, o, n]), /* @__PURE__ */ c("span", { ref: i, id: e, "data-anchor": !0, className: $6.anchorRef, children: r });
7418
7429
  }, B6 = "Bookmark", Mf = {
7419
7430
  status: "stable",
7420
7431
  description: "As its name suggests, this component places a bookmark into its parent component's view. The component has an `id` that you can use in links to navigate (scroll to) the bookmark's location.",
@@ -7438,6 +7449,11 @@ const _6 = "_anchorRef_1d4md_1", $6 = {
7438
7449
  valueType: "boolean",
7439
7450
  defaultValue: $s.omitFromToc
7440
7451
  }
7452
+ },
7453
+ apis: {
7454
+ scrollIntoView: {
7455
+ description: "Scrolls the bookmark into view."
7456
+ }
7441
7457
  }
7442
7458
  }, L6 = P(
7443
7459
  B6,
@@ -9655,7 +9671,7 @@ const xd = ke.forwardRef(
9655
9671
  onOpen: i,
9656
9672
  onClose: l
9657
9673
  }, s) => {
9658
- const { root: d } = ct(), u = (d == null ? void 0 : d.getRootNode()) instanceof ShadowRoot, p = se(null), h = s ? vr(s, p) : p, { isOpen: m, doClose: g, doOpen: b } = R$(r, i, l);
9674
+ const { root: d } = ct(), u = typeof ShadowRoot < "u" && (d == null ? void 0 : d.getRootNode()) instanceof ShadowRoot, p = se(null), h = s ? vr(s, p) : p, { isOpen: m, doClose: g, doOpen: b } = R$(r, i, l);
9659
9675
  ee(() => {
9660
9676
  var C;
9661
9677
  m && ((C = p.current) == null || C.focus());
@@ -38118,7 +38134,7 @@ function tU({ children: e }) {
38118
38134
  /* @__PURE__ */ c("svg", { style: { display: "none" }, ref: i })
38119
38135
  ] });
38120
38136
  }
38121
- const rU = "0.9.82", oU = {
38137
+ const rU = "0.9.83", oU = {
38122
38138
  capitalize: SC,
38123
38139
  pluralize: uk,
38124
38140
  defaultTo: kC,
@@ -41102,7 +41118,7 @@ function IG({
41102
41118
  requestAnimationFrame(() => {
41103
41119
  var Xe;
41104
41120
  if (je)
41105
- if (je instanceof ShadowRoot) {
41121
+ if (typeof ShadowRoot < "u" && je instanceof ShadowRoot) {
41106
41122
  const Ar = je.getElementById(we.current);
41107
41123
  if (!Ar) return;
41108
41124
  LG(Ar, We);
@@ -41157,7 +41173,9 @@ function IG({
41157
41173
  mediaSize: ft,
41158
41174
  queryClient: sC,
41159
41175
  standalone: o,
41160
- appIsInShadowDom: (S == null ? void 0 : S.getRootNode()) instanceof ShadowRoot,
41176
+ // String-based type checking: Use constructor.name to identify ShadowRoot
41177
+ // This avoids direct ShadowRoot type dependency while being more explicit than duck typing
41178
+ appIsInShadowDom: typeof ShadowRoot < "u" && (S == null ? void 0 : S.getRootNode()) instanceof ShadowRoot,
41161
41179
  // --- Date-related
41162
41180
  ...fU,
41163
41181
  // --- Math-related
@@ -41323,7 +41341,7 @@ function PG({
41323
41341
  let g = r == null ? void 0 : r.forceInitialize, b = r == null ? void 0 : r.interceptorWorker;
41324
41342
  ee(() => {
41325
41343
  m || e && (async () => {
41326
- const { initMock: C } = await import("./initMock-qDOHn1cO.mjs"), S = await C(e);
41344
+ const { initMock: C } = await import("./initMock-CzVkUblk.mjs"), S = await C(e);
41327
41345
  h(S), i(!0);
41328
41346
  })();
41329
41347
  }, [e, m]), ee(() => {
@@ -41334,7 +41352,7 @@ function PG({
41334
41352
  b ? (async () => {
41335
41353
  const [{ createApiInterceptorWorker: C }, { initMock: S }] = await Promise.all([
41336
41354
  import("./apiInterceptorWorker-Bb5-fQup.mjs"),
41337
- import("./initMock-qDOHn1cO.mjs")
41355
+ import("./initMock-CzVkUblk.mjs")
41338
41356
  ]), H = await S(e);
41339
41357
  await C(H, b), setTimeout(() => {
41340
41358
  i(!0);
@@ -41346,7 +41364,7 @@ function PG({
41346
41364
  if (Cc.VITE_MOCK_ENABLED) {
41347
41365
  const [{ createApiInterceptorWorker: S }, { initMock: H }] = await Promise.all([
41348
41366
  m ? import("./apiInterceptorWorker-Bb5-fQup.mjs") : Promise.resolve({ createApiInterceptorWorker: () => null }),
41349
- import("./initMock-qDOHn1cO.mjs")
41367
+ import("./initMock-CzVkUblk.mjs")
41350
41368
  ]);
41351
41369
  if (e || l) {
41352
41370
  const _ = await H(e || {});
@@ -1,6 +1,6 @@
1
1
  import { delay as D, HttpResponse as g, matchRequestUrl as E } from "msw";
2
2
  import { isArray as N, isObject as U, mapValues as T } from "lodash-es";
3
- import { r as M, g as $, d as F, m as O, a as B, o as A, T as x } from "./collectedComponentMetadata-DMqRnWLT.mjs";
3
+ import { r as M, g as $, d as F, m as O, a as B, o as A, T as x } from "./collectedComponentMetadata-BD1Fa8Cz.mjs";
4
4
  import q from "dexie";
5
5
  var k = /* @__PURE__ */ ((e) => (e[e.Continue = 100] = "Continue", e[e.SwitchingProtocols = 101] = "SwitchingProtocols", e[e.Processing = 102] = "Processing", e[e.EarlyHints = 103] = "EarlyHints", e[e.Ok = 200] = "Ok", e[e.Created = 201] = "Created", e[e.Accepted = 202] = "Accepted", e[e.NonAuthoritativeInformation = 203] = "NonAuthoritativeInformation", e[e.NoContent = 204] = "NoContent", e[e.ResetContent = 205] = "ResetContent", e[e.PartialContent = 206] = "PartialContent", e[e.MultiStatus = 207] = "MultiStatus", e[e.AlreadyReported = 208] = "AlreadyReported", e[e.ImUsed = 226] = "ImUsed", e[e.MultipleChoices = 300] = "MultipleChoices", e[e.MovedPermanently = 301] = "MovedPermanently", e[e.Found = 302] = "Found", e[e.SeeOther = 303] = "SeeOther", e[e.NotModified = 304] = "NotModified", e[e.UseProxy = 305] = "UseProxy", e[e.Unused = 306] = "Unused", e[e.TemporaryRedirect = 307] = "TemporaryRedirect", e[e.PermanentRedirect = 308] = "PermanentRedirect", e[e.BadRequest = 400] = "BadRequest", e[e.Unauthorized = 401] = "Unauthorized", e[e.PaymentRequired = 402] = "PaymentRequired", e[e.Forbidden = 403] = "Forbidden", e[e.NotFound = 404] = "NotFound", e[e.MethodNotAllowed = 405] = "MethodNotAllowed", e[e.NotAcceptable = 406] = "NotAcceptable", e[e.ProxyAuthenticationRequired = 407] = "ProxyAuthenticationRequired", e[e.RequestTimeout = 408] = "RequestTimeout", e[e.Conflict = 409] = "Conflict", e[e.Gone = 410] = "Gone", e[e.LengthRequired = 411] = "LengthRequired", e[e.PreconditionFailed = 412] = "PreconditionFailed", e[e.PayloadTooLarge = 413] = "PayloadTooLarge", e[e.UriTooLong = 414] = "UriTooLong", e[e.UnsupportedMediaType = 415] = "UnsupportedMediaType", e[e.RangeNotSatisfiable = 416] = "RangeNotSatisfiable", e[e.ExpectationFailed = 417] = "ExpectationFailed", e[e.ImATeapot = 418] = "ImATeapot", e[e.MisdirectedRequest = 421] = "MisdirectedRequest", e[e.UnprocessableEntity = 422] = "UnprocessableEntity", e[e.Locked = 423] = "Locked", e[e.FailedDependency = 424] = "FailedDependency", e[e.TooEarly = 425] = "TooEarly", e[e.UpgradeRequired = 426] = "UpgradeRequired", e[e.PreconditionRequired = 428] = "PreconditionRequired", e[e.TooManyRequests = 429] = "TooManyRequests", e[e.RequestHeaderFieldsTooLarge = 431] = "RequestHeaderFieldsTooLarge", e[e.UnavailableForLegalReasons = 451] = "UnavailableForLegalReasons", e[e.InternalServerError = 500] = "InternalServerError", e[e.NotImplemented = 501] = "NotImplemented", e[e.BadGateway = 502] = "BadGateway", e[e.ServiceUnavailable = 503] = "ServiceUnavailable", e[e.GatewayTimeout = 504] = "GatewayTimeout", e[e.HttpVersionNotSupported = 505] = "HttpVersionNotSupported", e[e.VariantAlsoNegotiates = 506] = "VariantAlsoNegotiates", e[e.InsufficientStorage = 507] = "InsufficientStorage", e[e.LoopDetected = 508] = "LoopDetected", e[e.NotExtended = 510] = "NotExtended", e[e.NetworkAuthenticationRequired = 511] = "NetworkAuthenticationRequired", e))(k || {});
6
6
  class m extends Error {
@@ -1,4 +1,4 @@
1
- import { c as t, b as a } from "./collectedComponentMetadata-DMqRnWLT.mjs";
1
+ import { c as t, b as a } from "./collectedComponentMetadata-BD1Fa8Cz.mjs";
2
2
  export {
3
3
  t as collectedComponentMetadata,
4
4
  a as collectedThemes