@linkdesk/ui 0.2.38 → 0.2.39

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/index.js CHANGED
@@ -3111,14 +3111,14 @@ function oc(e, t, n) {
3111
3111
  return A === 45 ? (e.consume(A), _) : Y(A);
3112
3112
  }
3113
3113
  function j(A) {
3114
- return A === 47 ? (e.consume(A), a = "", Z) : Y(A);
3114
+ return A === 47 ? (e.consume(A), a = "", J) : Y(A);
3115
3115
  }
3116
- function Z(A) {
3116
+ function J(A) {
3117
3117
  if (A === 62) {
3118
3118
  const Re = a.toLowerCase();
3119
3119
  return Li.includes(Re) ? (e.consume(A), me) : Y(A);
3120
3120
  }
3121
- return Ce(A) && a.length < 8 ? (e.consume(A), a += String.fromCharCode(A), Z) : Y(A);
3121
+ return Ce(A) && a.length < 8 ? (e.consume(A), a += String.fromCharCode(A), J) : Y(A);
3122
3122
  }
3123
3123
  function G(A) {
3124
3124
  return A === 93 ? (e.consume(A), _) : Y(A);
@@ -3237,9 +3237,9 @@ function fc(e, t, n) {
3237
3237
  return _ === 62 ? (e.consume(_), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(_);
3238
3238
  }
3239
3239
  function j(_) {
3240
- return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(_), e.exit("lineEnding"), Z;
3240
+ return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(_), e.exit("lineEnding"), J;
3241
3241
  }
3242
- function Z(_) {
3242
+ function J(_) {
3243
3243
  return ee(_) ? ne(e, G, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(_) : G(_);
3244
3244
  }
3245
3245
  function G(_) {
@@ -3864,7 +3864,7 @@ function Zc(e, t, n) {
3864
3864
  function z(O, Y) {
3865
3865
  return X;
3866
3866
  function X(M, D, W) {
3867
- let j, Z, G, _;
3867
+ let j, J, G, _;
3868
3868
  return Array.isArray(M) ? (
3869
3869
  /* c8 ignore next 1 */
3870
3870
  ge(M)
@@ -3888,7 +3888,7 @@ function Zc(e, t, n) {
3888
3888
  }
3889
3889
  }
3890
3890
  function ge(be) {
3891
- return j = be, Z = 0, be.length === 0 ? W : A(be[Z]);
3891
+ return j = be, J = 0, be.length === 0 ? W : A(be[J]);
3892
3892
  }
3893
3893
  function A(be) {
3894
3894
  return Rt;
@@ -3908,7 +3908,7 @@ function Zc(e, t, n) {
3908
3908
  return O(G, _), D;
3909
3909
  }
3910
3910
  function nt(be) {
3911
- return _.restore(), ++Z < j.length ? A(j[Z]) : W;
3911
+ return _.restore(), ++J < j.length ? A(j[J]) : W;
3912
3912
  }
3913
3913
  }
3914
3914
  }
@@ -4144,7 +4144,7 @@ function l0(e) {
4144
4144
  htmlTextData: g,
4145
4145
  image: l(j),
4146
4146
  label: G,
4147
- labelText: Z,
4147
+ labelText: J,
4148
4148
  lineEnding: O,
4149
4149
  link: l(W),
4150
4150
  listItem: l(),
@@ -4414,7 +4414,7 @@ function l0(e) {
4414
4414
  delete R.identifier, delete R.label;
4415
4415
  this.data.referenceType = void 0;
4416
4416
  }
4417
- function Z(R) {
4417
+ function J(R) {
4418
4418
  const q = this.sliceSerialize(R), K = this.stack[this.stack.length - 2];
4419
4419
  K.label = a0(q), K.identifier = Pe(q).toLowerCase();
4420
4420
  }
@@ -9368,10 +9368,10 @@ class Am {
9368
9368
  this.isEol = !1;
9369
9369
  }
9370
9370
  }
9371
- var J;
9371
+ var Z;
9372
9372
  (function(e) {
9373
9373
  e[e.CHARACTER = 0] = "CHARACTER", e[e.NULL_CHARACTER = 1] = "NULL_CHARACTER", e[e.WHITESPACE_CHARACTER = 2] = "WHITESPACE_CHARACTER", e[e.START_TAG = 3] = "START_TAG", e[e.END_TAG = 4] = "END_TAG", e[e.COMMENT = 5] = "COMMENT", e[e.DOCTYPE = 6] = "DOCTYPE", e[e.EOF = 7] = "EOF", e[e.HIBERNATION = 8] = "HIBERNATION";
9374
- })(J || (J = {}));
9374
+ })(Z || (Z = {}));
9375
9375
  function Qa(e, t) {
9376
9376
  for (let n = e.attrs.length - 1; n >= 0; n--)
9377
9377
  if (e.attrs[n].name === t)
@@ -10009,7 +10009,7 @@ class Fm {
10009
10009
  //Token creation
10010
10010
  _createStartTagToken() {
10011
10011
  this.currentToken = {
10012
- type: J.START_TAG,
10012
+ type: Z.START_TAG,
10013
10013
  tagName: "",
10014
10014
  tagID: s.UNKNOWN,
10015
10015
  selfClosing: !1,
@@ -10020,7 +10020,7 @@ class Fm {
10020
10020
  }
10021
10021
  _createEndTagToken() {
10022
10022
  this.currentToken = {
10023
- type: J.END_TAG,
10023
+ type: Z.END_TAG,
10024
10024
  tagName: "",
10025
10025
  tagID: s.UNKNOWN,
10026
10026
  selfClosing: !1,
@@ -10031,14 +10031,14 @@ class Fm {
10031
10031
  }
10032
10032
  _createCommentToken(t) {
10033
10033
  this.currentToken = {
10034
- type: J.COMMENT,
10034
+ type: Z.COMMENT,
10035
10035
  data: "",
10036
10036
  location: this.getCurrentLocation(t)
10037
10037
  };
10038
10038
  }
10039
10039
  _createDoctypeToken(t) {
10040
10040
  this.currentToken = {
10041
- type: J.DOCTYPE,
10041
+ type: Z.DOCTYPE,
10042
10042
  name: t,
10043
10043
  forceQuirks: !1,
10044
10044
  publicId: null,
@@ -10080,7 +10080,7 @@ class Fm {
10080
10080
  }
10081
10081
  emitCurrentTagToken() {
10082
10082
  const t = this.currentToken;
10083
- this.prepareToken(t), t.tagID = Ot(t.tagName), t.type === J.START_TAG ? (this.lastStartTagName = t.tagName, this.handler.onStartTag(t)) : (t.attrs.length > 0 && this._err(S.endTagWithAttributes), t.selfClosing && this._err(S.endTagWithTrailingSolidus), this.handler.onEndTag(t)), this.preprocessor.dropParsedChunk();
10083
+ this.prepareToken(t), t.tagID = Ot(t.tagName), t.type === Z.START_TAG ? (this.lastStartTagName = t.tagName, this.handler.onStartTag(t)) : (t.attrs.length > 0 && this._err(S.endTagWithAttributes), t.selfClosing && this._err(S.endTagWithTrailingSolidus), this.handler.onEndTag(t)), this.preprocessor.dropParsedChunk();
10084
10084
  }
10085
10085
  emitCurrentComment(t) {
10086
10086
  this.prepareToken(t), this.handler.onComment(t), this.preprocessor.dropParsedChunk();
@@ -10091,15 +10091,15 @@ class Fm {
10091
10091
  _emitCurrentCharacterToken(t) {
10092
10092
  if (this.currentCharacterToken) {
10093
10093
  switch (t && this.currentCharacterToken.location && (this.currentCharacterToken.location.endLine = t.startLine, this.currentCharacterToken.location.endCol = t.startCol, this.currentCharacterToken.location.endOffset = t.startOffset), this.currentCharacterToken.type) {
10094
- case J.CHARACTER: {
10094
+ case Z.CHARACTER: {
10095
10095
  this.handler.onCharacter(this.currentCharacterToken);
10096
10096
  break;
10097
10097
  }
10098
- case J.NULL_CHARACTER: {
10098
+ case Z.NULL_CHARACTER: {
10099
10099
  this.handler.onNullCharacter(this.currentCharacterToken);
10100
10100
  break;
10101
10101
  }
10102
- case J.WHITESPACE_CHARACTER: {
10102
+ case Z.WHITESPACE_CHARACTER: {
10103
10103
  this.handler.onWhitespaceCharacter(this.currentCharacterToken);
10104
10104
  break;
10105
10105
  }
@@ -10109,7 +10109,7 @@ class Fm {
10109
10109
  }
10110
10110
  _emitEOFToken() {
10111
10111
  const t = this.getCurrentLocation(0);
10112
- t && (t.endLine = t.startLine, t.endCol = t.startCol, t.endOffset = t.startOffset), this._emitCurrentCharacterToken(t), this.handler.onEof({ type: J.EOF, location: t }), this.active = !1;
10112
+ t && (t.endLine = t.startLine, t.endCol = t.startCol, t.endOffset = t.startOffset), this._emitCurrentCharacterToken(t), this.handler.onEof({ type: Z.EOF, location: t }), this.active = !1;
10113
10113
  }
10114
10114
  //Characters emission
10115
10115
  //OPTIMIZATION: The specification uses only one type of character token (one token per character).
@@ -10130,13 +10130,13 @@ class Fm {
10130
10130
  this._createCharacterToken(t, n);
10131
10131
  }
10132
10132
  _emitCodePoint(t) {
10133
- const n = Ka(t) ? J.WHITESPACE_CHARACTER : t === p.NULL ? J.NULL_CHARACTER : J.CHARACTER;
10133
+ const n = Ka(t) ? Z.WHITESPACE_CHARACTER : t === p.NULL ? Z.NULL_CHARACTER : Z.CHARACTER;
10134
10134
  this._appendCharToCurrentCharacterToken(n, String.fromCodePoint(t));
10135
10135
  }
10136
10136
  //NOTE: used when we emit characters explicitly.
10137
10137
  //This is always for non-whitespace and non-null characters, which allows us to avoid additional checks.
10138
10138
  _emitChars(t) {
10139
- this._appendCharToCurrentCharacterToken(J.CHARACTER, t);
10139
+ this._appendCharToCurrentCharacterToken(Z.CHARACTER, t);
10140
10140
  }
10141
10141
  // Character reference helpers
10142
10142
  _startCharacterReference() {
@@ -12798,7 +12798,7 @@ class pu {
12798
12798
  const r = n.location, i = this.treeAdapter.getTagName(t), u = (
12799
12799
  // NOTE: For cases like <p> <p> </p> - First 'p' closes without a closing
12800
12800
  // tag and for cases like <td> <p> </td> - 'p' closes without a closing tag.
12801
- n.type === J.END_TAG && i === n.tagName ? {
12801
+ n.type === Z.END_TAG && i === n.tagName ? {
12802
12802
  endTag: { ...r },
12803
12803
  endLine: r.endLine,
12804
12804
  endCol: r.endCol,
@@ -12827,35 +12827,35 @@ class pu {
12827
12827
  /** @protected */
12828
12828
  _processToken(t) {
12829
12829
  switch (t.type) {
12830
- case J.CHARACTER: {
12830
+ case Z.CHARACTER: {
12831
12831
  this.onCharacter(t);
12832
12832
  break;
12833
12833
  }
12834
- case J.NULL_CHARACTER: {
12834
+ case Z.NULL_CHARACTER: {
12835
12835
  this.onNullCharacter(t);
12836
12836
  break;
12837
12837
  }
12838
- case J.COMMENT: {
12838
+ case Z.COMMENT: {
12839
12839
  this.onComment(t);
12840
12840
  break;
12841
12841
  }
12842
- case J.DOCTYPE: {
12842
+ case Z.DOCTYPE: {
12843
12843
  this.onDoctype(t);
12844
12844
  break;
12845
12845
  }
12846
- case J.START_TAG: {
12846
+ case Z.START_TAG: {
12847
12847
  this._processStartTag(t);
12848
12848
  break;
12849
12849
  }
12850
- case J.END_TAG: {
12850
+ case Z.END_TAG: {
12851
12851
  this.onEndTag(t);
12852
12852
  break;
12853
12853
  }
12854
- case J.EOF: {
12854
+ case Z.EOF: {
12855
12855
  this.onEof(t);
12856
12856
  break;
12857
12857
  }
12858
- case J.WHITESPACE_CHARACTER: {
12858
+ case Z.WHITESPACE_CHARACTER: {
12859
12859
  this.onWhitespaceCharacter(t);
12860
12860
  break;
12861
12861
  }
@@ -13730,7 +13730,7 @@ function S1(e, t) {
13730
13730
  }
13731
13731
  }
13732
13732
  function Gt(e, t) {
13733
- const n = t.type === J.EOF ? S.openElementsLeftAfterEof : S.disallowedContentInNoscriptInHead;
13733
+ const n = t.type === Z.EOF ? S.openElementsLeftAfterEof : S.disallowedContentInNoscriptInHead;
13734
13734
  e._err(t, n), e.openElements.pop(), e.insertionMode = b.IN_HEAD, e._processToken(t);
13735
13735
  }
13736
13736
  function L1(e, t) {
@@ -13789,27 +13789,27 @@ function Qt(e, t) {
13789
13789
  }
13790
13790
  function Un(e, t) {
13791
13791
  switch (t.type) {
13792
- case J.CHARACTER: {
13792
+ case Z.CHARACTER: {
13793
13793
  us(e, t);
13794
13794
  break;
13795
13795
  }
13796
- case J.WHITESPACE_CHARACTER: {
13796
+ case Z.WHITESPACE_CHARACTER: {
13797
13797
  is(e, t);
13798
13798
  break;
13799
13799
  }
13800
- case J.COMMENT: {
13800
+ case Z.COMMENT: {
13801
13801
  Lr(e, t);
13802
13802
  break;
13803
13803
  }
13804
- case J.START_TAG: {
13804
+ case Z.START_TAG: {
13805
13805
  ke(e, t);
13806
13806
  break;
13807
13807
  }
13808
- case J.END_TAG: {
13808
+ case Z.END_TAG: {
13809
13809
  zn(e, t);
13810
13810
  break;
13811
13811
  }
13812
- case J.EOF: {
13812
+ case Z.EOF: {
13813
13813
  ls(e, t);
13814
13814
  break;
13815
13815
  }
@@ -14306,11 +14306,11 @@ function Ep(e, t) {
14306
14306
  function lr(e, t) {
14307
14307
  if (e.openElements.currentTagId !== void 0 && rs.has(e.openElements.currentTagId))
14308
14308
  switch (e.pendingCharacterTokens.length = 0, e.hasNonWhitespacePendingCharacterToken = !1, e.originalInsertionMode = e.insertionMode, e.insertionMode = b.IN_TABLE_TEXT, t.type) {
14309
- case J.CHARACTER: {
14309
+ case Z.CHARACTER: {
14310
14310
  ds(e, t);
14311
14311
  break;
14312
14312
  }
14313
- case J.WHITESPACE_CHARACTER: {
14313
+ case Z.WHITESPACE_CHARACTER: {
14314
14314
  cs(e, t);
14315
14315
  break;
14316
14316
  }
@@ -14899,7 +14899,7 @@ function Gp(e, t) {
14899
14899
  function Qp(e, t) {
14900
14900
  t.parser.tokenizer.state > 4 && (t.parser.tokenizer.state = 0);
14901
14901
  const n = {
14902
- type: J.CHARACTER,
14902
+ type: Z.CHARACTER,
14903
14903
  chars: e.value,
14904
14904
  location: sn(e)
14905
14905
  };
@@ -14907,7 +14907,7 @@ function Qp(e, t) {
14907
14907
  }
14908
14908
  function Kp(e, t) {
14909
14909
  const n = {
14910
- type: J.DOCTYPE,
14910
+ type: Z.DOCTYPE,
14911
14911
  name: "html",
14912
14912
  forceQuirks: !1,
14913
14913
  publicId: "",
@@ -14930,7 +14930,7 @@ function Xp(e, t) {
14930
14930
  }
14931
14931
  function As(e, t) {
14932
14932
  const n = e.value, r = {
14933
- type: J.COMMENT,
14933
+ type: Z.COMMENT,
14934
14934
  data: n,
14935
14935
  location: sn(e)
14936
14936
  };
@@ -14989,7 +14989,7 @@ function eE(e, t) {
14989
14989
  { ...e, children: [] },
14990
14990
  { space: i === ot.svg ? "svg" : "html" }
14991
14991
  ), a = {
14992
- type: J.START_TAG,
14992
+ type: Z.START_TAG,
14993
14993
  tagName: n,
14994
14994
  tagID: Ot(n),
14995
14995
  // We always send start and end tags.
@@ -15007,7 +15007,7 @@ function tE(e, t) {
15007
15007
  if (!t.parser.tokenizer.inForeignNode && Em.includes(n) || t.parser.tokenizer.state === fe.PLAINTEXT) return;
15008
15008
  Dt(t, wn(e));
15009
15009
  const r = {
15010
- type: J.END_TAG,
15010
+ type: Z.END_TAG,
15011
15011
  tagName: n,
15012
15012
  tagID: Ot(n),
15013
15013
  selfClosing: !1,
@@ -16043,14 +16043,14 @@ function WT({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
16043
16043
  const h = He(() => {
16044
16044
  const M = /* @__PURE__ */ new Map(), D = [];
16045
16045
  for (const j of f) {
16046
- const Z = j.children;
16047
- if (!j.command && !Z) continue;
16046
+ const J = j.children;
16047
+ if (!j.command && !J) continue;
16048
16048
  const G = j.group ?? "__default";
16049
16049
  M.has(G) || (M.set(G, []), D.push(G));
16050
16050
  let _;
16051
- if (Z && Z.length > 0)
16052
- _ = Ls(Z, G);
16053
- else if (Z && Z.length === 0 && i) {
16051
+ if (J && J.length > 0)
16052
+ _ = Ls(J, G);
16053
+ else if (J && J.length === 0 && i) {
16054
16054
  const me = i(j.command, n ?? {});
16055
16055
  me && me.length > 0 && (_ = me.map((ge) => ({ id: ge.id, label: ge.label, group: G, checked: ge.checked, onSelect: ge.onSelect })));
16056
16056
  }
@@ -16077,16 +16077,16 @@ function WT({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
16077
16077
  c.current && (clearTimeout(c.current), c.current = null), c.current = setTimeout(() => I((D) => D.slice(0, M)), 150);
16078
16078
  }, []), L = le((M, D, W) => {
16079
16079
  N();
16080
- const j = M.getBoundingClientRect(), Z = 160, G = j.right + Z > window.innerWidth ? j.left - Z - 4 : j.right + 4;
16080
+ const j = M.getBoundingClientRect(), J = 160, G = j.right + J > window.innerWidth ? j.left - J - 4 : j.right + 4;
16081
16081
  I((_) => [..._.slice(0, W), { x: G, y: j.top, items: D }]);
16082
16082
  }, [N]), [x, P] = ae({ left: t.x, top: t.y }), [v, C] = ae(!1), z = v;
16083
16083
  ie(() => {
16084
16084
  if (!z) return;
16085
- const M = (Z) => {
16086
- Z.key === "Escape" && kE(o.current) && (E.length > 0 ? I((G) => G.slice(0, G.length - 1)) : r());
16087
- }, D = () => r(), W = () => r(), j = (Z) => {
16085
+ const M = (J) => {
16086
+ J.key === "Escape" && kE(o.current) && (E.length > 0 ? I((G) => G.slice(0, G.length - 1)) : r());
16087
+ }, D = () => r(), W = () => r(), j = (J) => {
16088
16088
  var me;
16089
- const G = Z.target;
16089
+ const G = J.target;
16090
16090
  (((me = o.current) == null ? void 0 : me.contains(G)) ?? !1) || [...l.current.values()].some((ge) => ge.contains(G)) || r();
16091
16091
  };
16092
16092
  return window.addEventListener("keydown", M), window.addEventListener("blur", D), window.addEventListener("wheel", W, !0), a !== "embedded" && window.addEventListener("mousedown", j, !0), () => {
@@ -16097,7 +16097,7 @@ function WT({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
16097
16097
  ie(() => {
16098
16098
  if (!z) return;
16099
16099
  const M = (D) => {
16100
- var W, j, Z;
16100
+ var W, j, J;
16101
16101
  if (D.key === "ArrowDown")
16102
16102
  D.preventDefault(), U((G) => Math.min(G + 1, O.length - 1));
16103
16103
  else if (D.key === "ArrowUp")
@@ -16114,7 +16114,7 @@ function WT({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
16114
16114
  else if (D.key === "Enter" && V >= 0) {
16115
16115
  D.preventDefault();
16116
16116
  const G = O[V];
16117
- G && (G.onSelect ? G.onSelect() : (Z = (j = fr().commands) == null ? void 0 : j.executeCommand) == null || Z.call(j, G.id, void 0, ...G.commandArgs ?? [], n), r());
16117
+ G && (G.onSelect ? G.onSelect() : (J = (j = fr().commands) == null ? void 0 : j.executeCommand) == null || J.call(j, G.id, void 0, ...G.commandArgs ?? [], n), r());
16118
16118
  }
16119
16119
  };
16120
16120
  return window.addEventListener("keydown", M), () => window.removeEventListener("keydown", M);
@@ -16135,13 +16135,13 @@ function WT({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
16135
16135
  }, [t.x, t.y, h.length]), ie(() => {
16136
16136
  const M = o.current;
16137
16137
  if (!M) return;
16138
- const D = M.getBoundingClientRect();
16139
- let W = t.x, j = Math.max(30, t.y);
16140
- W + D.width > window.innerWidth && (W = Math.max(0, window.innerWidth - D.width - 4)), j + D.height > window.innerHeight && (j = Math.max(30, window.innerHeight - D.height - 4)), P({ left: W, top: j });
16141
- const Z = requestAnimationFrame(() => {
16138
+ const D = M.offsetWidth, W = M.offsetHeight;
16139
+ let j = t.x, J = Math.max(30, t.y);
16140
+ j + D > window.innerWidth && (j = Math.max(0, window.innerWidth - D - 4)), J + W > window.innerHeight && (J = Math.max(30, window.innerHeight - W - 4)), P({ left: j, top: J });
16141
+ const G = requestAnimationFrame(() => {
16142
16142
  C(!0), M.classList.add("show");
16143
16143
  });
16144
- return () => cancelAnimationFrame(Z);
16144
+ return () => cancelAnimationFrame(G);
16145
16145
  }, [t.x, t.y, h.length]), ie(() => {
16146
16146
  var M;
16147
16147
  v && ((M = o.current) == null || M.focus());
@@ -16175,7 +16175,7 @@ function WT({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
16175
16175
  },
16176
16176
  children: h.map((M, D) => {
16177
16177
  if ("type" in M) return /* @__PURE__ */ w("div", { className: "ldk-ctx-divider" }, `div-${D}`);
16178
- const W = X++, j = !!(M.children && M.children.length > 0), Z = W === V, G = M.group === "delete";
16178
+ const W = X++, j = !!(M.children && M.children.length > 0), J = W === V, G = M.group === "delete";
16179
16179
  return (
16180
16180
  // E5.8#37.7.1:复合 key——共享命令 id 的动态项(面板视图清单全用同一 toggle 命令)会撞 key;
16181
16181
  // 并入数组索引消歧(菜单项在菜单生命周期内静态,索引稳定)。
@@ -16185,7 +16185,7 @@ function WT({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
16185
16185
  ref: (_) => {
16186
16186
  _ ? g.current.set(W, _) : g.current.delete(W);
16187
16187
  },
16188
- className: `ldk-ctx-item${Z ? " focused" : ""}${G ? " ldk-ctx-item-danger" : ""}`,
16188
+ className: `ldk-ctx-item${J ? " focused" : ""}${G ? " ldk-ctx-item-danger" : ""}`,
16189
16189
  onClick: (_) => {
16190
16190
  _.stopPropagation(), j || Y(M);
16191
16191
  },
@@ -16219,24 +16219,24 @@ function WT({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
16219
16219
  onMouseEnter: N,
16220
16220
  onMouseLeave: () => k(D + 1),
16221
16221
  children: M.items.map((W, j) => {
16222
- const Z = !!(W.children && W.children.length > 0);
16222
+ const J = !!(W.children && W.children.length > 0);
16223
16223
  return /* @__PURE__ */ re(
16224
16224
  "div",
16225
16225
  {
16226
16226
  className: "ldk-ctx-item",
16227
16227
  onClick: (G) => {
16228
- G.stopPropagation(), Z || Y(W);
16228
+ G.stopPropagation(), J || Y(W);
16229
16229
  },
16230
16230
  onMouseEnter: (G) => {
16231
- Z ? L(G.currentTarget, W.children, D + 1) : I((_) => _.slice(0, D + 1));
16231
+ J ? L(G.currentTarget, W.children, D + 1) : I((_) => _.slice(0, D + 1));
16232
16232
  },
16233
16233
  onMouseLeave: () => {
16234
- Z && k(D + 2);
16234
+ J && k(D + 2);
16235
16235
  },
16236
16236
  children: [
16237
16237
  /* @__PURE__ */ w("span", { className: "ldk-ctx-item-check", "aria-hidden": "true", children: W.checked ? "✓" : "" }),
16238
16238
  /* @__PURE__ */ w("span", { className: "ldk-ctx-item-label", children: W.label }),
16239
- Z && /* @__PURE__ */ w("span", { className: "ctx-item-chevron", children: "›" }),
16239
+ J && /* @__PURE__ */ w("span", { className: "ctx-item-chevron", children: "›" }),
16240
16240
  W.shortcut && /* @__PURE__ */ w(Nu, { label: W.shortcut, className: "ldk-ctx-item-shortcut" })
16241
16241
  ]
16242
16242
  },
@@ -1,5 +1,5 @@
1
1
  {
2
- "shellVersion": "0.2.39",
3
- "commit": "eef2300c4",
2
+ "shellVersion": "0.2.40",
3
+ "commit": "9ba2e32e6",
4
4
  "cutAt": "2026-10-03"
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linkdesk/ui",
3
- "version": "0.2.38",
3
+ "version": "0.2.39",
4
4
  "description": "@linkdesk/ui——LinkDesk 共享 UI 组件的类型契约 + dev 解析体。L9 集中供给:组件代码与样式在运行时由壳池 vendor 单实例供给(壳改一处全生态跟随);npm i 装的是类型与本地解析体,插件源码不 import 本包 css(lint 腿 check-ui-css-import 判红)。版本号自走(E6#166 对货不对号:2026-10-01 起与壳脱钩,壳发版只查作者面货不落后)。",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",