juneau 0.10.2 → 0.12.0

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
@@ -605,7 +605,7 @@ const Lr = {
605
605
  function Te() {
606
606
  return sn(Dr);
607
607
  }
608
- const gl = "_root_1etc2_1", yl = {
608
+ const gl = "_root_14q8g_1", yl = {
609
609
  root: gl
610
610
  };
611
611
  function nd({ children: e, theme: n, labels: t, defaultTitle: r, className: i, style: o }) {
@@ -9606,7 +9606,7 @@ function tp(e) {
9606
9606
  ), t = e || ep, r = n.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), o = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), l = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
9607
9607
  i.push(Zf(t)), o.push(bf()), l.push(wf(t));
9608
9608
  }
9609
- const np = "_wrapper_izvjy_1", rp = "_table_izvjy_15", ip = "_th_izvjy_27", lp = "_tr_izvjy_47", op = "_td_izvjy_63", nt = {
9609
+ const np = "_wrapper_v5oy7_1", rp = "_table_v5oy7_8", ip = "_th_v5oy7_14", lp = "_tr_v5oy7_24", op = "_td_v5oy7_32", nt = {
9610
9610
  wrapper: np,
9611
9611
  table: rp,
9612
9612
  th: ip,
@@ -9619,7 +9619,7 @@ function ap({ part: e }) {
9619
9619
  /* @__PURE__ */ x("tbody", { children: e.rows.map((n, t) => /* @__PURE__ */ x("tr", { className: nt.tr, children: e.columns.map((r) => /* @__PURE__ */ x("td", { className: nt.td, children: String(n[r] ?? "") }, r)) }, t)) })
9620
9620
  ] }) });
9621
9621
  }
9622
- const sp = "_card_1gzm6_1", up = "_header_1gzm6_17", cp = "_icon_1gzm6_31", fp = "_title_1gzm6_45", pp = "_description_1gzm6_57", hp = "_cardResolved_1gzm6_71", dp = "_resolvedBadge_1gzm6_79", mp = "_actions_1gzm6_101", gp = "_confirm_1gzm6_111", yp = "_cancel_1gzm6_143", ye = {
9622
+ const sp = "_card_83cdc_1", up = "_header_83cdc_9", cp = "_icon_83cdc_16", fp = "_title_83cdc_23", pp = "_description_83cdc_29", hp = "_cardResolved_83cdc_36", dp = "_resolvedBadge_83cdc_40", mp = "_actions_83cdc_51", gp = "_confirm_83cdc_56", yp = "_cancel_83cdc_72", ye = {
9623
9623
  card: sp,
9624
9624
  header: up,
9625
9625
  icon: cp,
@@ -9666,7 +9666,7 @@ function kp({ part: e, onConfirm: n, onCancel: t }) {
9666
9666
  }
9667
9667
  );
9668
9668
  }
9669
- const xp = "_activity_1661l_1", bp = "_indicator_1661l_25", wp = "_content_1661l_71", Cp = "_title_1661l_79", Sp = "_description_1661l_89", rt = {
9669
+ const xp = "_activity_2jjfs_1", bp = "_indicator_2jjfs_13", wp = "_content_2jjfs_36", Cp = "_title_2jjfs_40", Sp = "_description_2jjfs_45", rt = {
9670
9670
  activity: xp,
9671
9671
  indicator: bp,
9672
9672
  content: wp,
@@ -9742,7 +9742,7 @@ function Hp({ part: e, onEntityClick: n }) {
9742
9742
  ))
9743
9743
  ] });
9744
9744
  }
9745
- const Vp = "_markdown_sznoh_1", qp = "_unknownPart_sznoh_167", Up = "_errorText_sznoh_195", Wp = "_errorIcon_sznoh_211", xt = {
9745
+ const Vp = "_markdown_1yi3y_1", qp = "_unknownPart_1yi3y_84", Up = "_errorText_1yi3y_98", Wp = "_errorIcon_1yi3y_106", xt = {
9746
9746
  markdown: Vp,
9747
9747
  unknownPart: qp,
9748
9748
  errorText: Up,
@@ -9851,7 +9851,7 @@ function ih({ message: e, onProposalConfirm: n, onProposalCancel: t, onEntityCli
9851
9851
  }
9852
9852
  );
9853
9853
  }
9854
- const lh = "_wrapper_1oco7_1", oh = "_dot_1oco7_15", ah = "_connectingLabel_1oco7_37", it = {
9854
+ const lh = "_wrapper_1dvvu_1", oh = "_dot_1dvvu_8", ah = "_connectingLabel_1dvvu_19", it = {
9855
9855
  wrapper: lh,
9856
9856
  dot: oh,
9857
9857
  connectingLabel: ah
@@ -9873,7 +9873,7 @@ function sh({ connecting: e = !1 }) {
9873
9873
  }
9874
9874
  );
9875
9875
  }
9876
- const uh = "_list_ixto8_1", ch = "_empty_ixto8_21", fh = "_hint_ixto8_47", ph = "_typing_ixto8_61", bt = {
9876
+ const uh = "_list_1f8gn_1", ch = "_empty_1f8gn_11", fh = "_hint_1f8gn_24", ph = "_typing_1f8gn_31", bt = {
9877
9877
  list: uh,
9878
9878
  empty: ch,
9879
9879
  hint: fh,
@@ -9904,7 +9904,7 @@ function hh({ messages: e, isLoading: n, isConnecting: t, onProposalConfirm: r,
9904
9904
  /* @__PURE__ */ x("div", { ref: f })
9905
9905
  ] });
9906
9906
  }
9907
- const dh = "_wrapper_ehrkb_1", mh = "_textarea_ehrkb_21", gh = "_toolbar_ehrkb_69", yh = "_actions_ehrkb_89", kh = "_actionBtn_ehrkb_103", xh = "_sendBtn_ehrkb_169", bh = "_spinnerIcon_ehrkb_231", wh = "_stopBtn_ehrkb_251", Ch = "_stopIcon_ehrkb_297", ve = {
9907
+ const dh = "_wrapper_v8iyr_1", mh = "_textarea_v8iyr_11", gh = "_toolbar_v8iyr_35", yh = "_actions_v8iyr_45", kh = "_actionBtn_v8iyr_52", xh = "_sendBtn_v8iyr_85", bh = "_spinnerIcon_v8iyr_116", wh = "_stopBtn_v8iyr_126", Ch = "_stopIcon_v8iyr_149", ve = {
9908
9908
  wrapper: dh,
9909
9909
  textarea: mh,
9910
9910
  toolbar: gh,
@@ -9989,7 +9989,7 @@ function Sh({ value: e, onChange: n, onSend: t, onStop: r, isLoading: i, placeho
9989
9989
  ] })
9990
9990
  ] });
9991
9991
  }
9992
- const vh = "_wrapper_1e3w5_1", _h = "_icon_1e3w5_27", Eh = "_message_1e3w5_39", Ih = "_dismiss_1e3w5_47", wt = {
9992
+ const vh = "_wrapper_1kefv_1", _h = "_icon_1kefv_14", Eh = "_message_1kefv_20", Ih = "_dismiss_1kefv_24", wt = {
9993
9993
  wrapper: vh,
9994
9994
  icon: _h,
9995
9995
  message: Eh,
@@ -10003,7 +10003,7 @@ function Ah({ message: e, onDismiss: n }) {
10003
10003
  n && /* @__PURE__ */ x("button", { className: wt.dismiss, onClick: n, "aria-label": t.errorDismiss, children: /* @__PURE__ */ x("svg", { viewBox: "0 0 16 16", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ x("path", { d: "M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z" }) }) })
10004
10004
  ] });
10005
10005
  }
10006
- const Th = "_chat_13051_1", zh = {
10006
+ const Th = "_chat_1acbe_1", zh = {
10007
10007
  chat: Th
10008
10008
  };
10009
10009
  function Ph({
@@ -10066,7 +10066,7 @@ function Ph({
10066
10066
  }
10067
10067
  );
10068
10068
  }
10069
- const Lh = "_header_1saak_1", Dh = "_left_1saak_23", Nh = "_icon_1saak_35", Mh = "_title_1saak_45", Rh = "_resetBtn_1saak_57", Fh = "_actions_1saak_99", Ne = {
10069
+ const Lh = "_header_f9hy1_1", Dh = "_left_f9hy1_12", Nh = "_icon_f9hy1_18", Mh = "_title_f9hy1_23", Rh = "_resetBtn_f9hy1_29", Fh = "_actions_f9hy1_50", Ne = {
10070
10070
  header: Lh,
10071
10071
  left: Dh,
10072
10072
  icon: Nh,
@@ -10115,44 +10115,46 @@ function Oh({
10115
10115
  ] })
10116
10116
  ] });
10117
10117
  }
10118
- const jh = "_sidebar_u9ybt_1", Bh = "_minimized_u9ybt_39", Ir = {
10118
+ const jh = "_sidebar_17ski_1", Bh = "_minimized_17ski_20", Ir = {
10119
10119
  sidebar: jh,
10120
10120
  minimized: Bh
10121
10121
  };
10122
10122
  function od({
10123
10123
  title: e,
10124
10124
  icon: n,
10125
- actions: t,
10126
- sendIcon: r,
10127
- height: i = "60vh",
10128
- className: o,
10129
- style: l,
10130
- onReset: a,
10131
- renderPart: s,
10132
- onEntityClick: u,
10133
- headerActions: f,
10134
- emptyState: c
10125
+ assistantIcon: t,
10126
+ actions: r,
10127
+ sendIcon: i,
10128
+ height: o = "60vh",
10129
+ className: l,
10130
+ style: a,
10131
+ onReset: s,
10132
+ confirmReset: u,
10133
+ renderPart: f,
10134
+ onEntityClick: c,
10135
+ headerActions: h,
10136
+ emptyState: p
10135
10137
  }) {
10136
- const [h, p] = Re(!1), {
10137
- messages: g,
10138
- input: C,
10139
- setInput: S,
10140
- sendMessage: y,
10141
- stop: I,
10142
- isLoading: _,
10143
- isConnecting: L,
10144
- error: N,
10145
- reset: b,
10146
- confirmProposal: O,
10147
- cancelProposal: H
10148
- } = xl(), B = a ? () => {
10149
- b(), a();
10138
+ const [g, C] = Re(!1), {
10139
+ messages: S,
10140
+ input: y,
10141
+ setInput: I,
10142
+ sendMessage: _,
10143
+ stop: L,
10144
+ isLoading: N,
10145
+ isConnecting: b,
10146
+ error: O,
10147
+ reset: H,
10148
+ confirmProposal: B,
10149
+ cancelProposal: k
10150
+ } = xl(), T = s ? async () => {
10151
+ u && !await u() || (H(), s());
10150
10152
  } : void 0;
10151
10153
  return /* @__PURE__ */ Y(
10152
10154
  "aside",
10153
10155
  {
10154
- className: [Ir.sidebar, h ? Ir.minimized : "", o].filter(Boolean).join(" "),
10155
- style: { height: h ? void 0 : i, ...l },
10156
+ className: [Ir.sidebar, g ? Ir.minimized : "", l].filter(Boolean).join(" "),
10157
+ style: { height: g ? void 0 : o, ...a },
10156
10158
  "data-juneau": "sidebar",
10157
10159
  children: [
10158
10160
  /* @__PURE__ */ x(
@@ -10160,45 +10162,45 @@ function od({
10160
10162
  {
10161
10163
  title: e,
10162
10164
  icon: n,
10163
- onMinimize: () => p((k) => !k),
10164
- isMinimized: h,
10165
- onReset: B,
10166
- headerActions: f
10165
+ onMinimize: () => C((z) => !z),
10166
+ isMinimized: g,
10167
+ onReset: T,
10168
+ headerActions: h
10167
10169
  }
10168
10170
  ),
10169
- !h && /* @__PURE__ */ x(
10171
+ !g && /* @__PURE__ */ x(
10170
10172
  Ph,
10171
10173
  {
10172
- messages: g,
10173
- input: C,
10174
- isLoading: _,
10175
- isConnecting: L,
10176
- error: N,
10177
- onInputChange: S,
10178
- onSend: y,
10179
- onStop: I,
10180
- onProposalConfirm: O,
10181
- onProposalCancel: H,
10182
- assistantIcon: n,
10183
- actions: t,
10184
- sendIcon: r,
10185
- renderPart: s,
10186
- onEntityClick: u,
10187
- emptyState: c
10174
+ messages: S,
10175
+ input: y,
10176
+ isLoading: N,
10177
+ isConnecting: b,
10178
+ error: O,
10179
+ onInputChange: I,
10180
+ onSend: _,
10181
+ onStop: L,
10182
+ onProposalConfirm: B,
10183
+ onProposalCancel: k,
10184
+ assistantIcon: t ?? n,
10185
+ actions: r,
10186
+ sendIcon: i,
10187
+ renderPart: f,
10188
+ onEntityClick: c,
10189
+ emptyState: p
10188
10190
  }
10189
10191
  )
10190
10192
  ]
10191
10193
  }
10192
10194
  );
10193
10195
  }
10194
- const $h = "_list_j7fvh_1", Hh = "_item_j7fvh_19", Vh = "_chat_j7fvh_31", qh = "_chatActive_j7fvh_71", Uh = "_title_j7fvh_79", Wh = "_date_j7fvh_99", Yh = "_empty_j7fvh_163", _e = {
10196
+ const $h = "_list_180ms_1", Hh = "_item_180ms_10", Vh = "_chat_180ms_16", qh = "_chatActive_180ms_36", Uh = "_title_180ms_40", Wh = "_date_180ms_50", Yh = "_empty_180ms_82", _e = {
10195
10197
  list: $h,
10196
10198
  item: Hh,
10197
10199
  chat: Vh,
10198
10200
  chatActive: qh,
10199
10201
  title: Uh,
10200
10202
  date: Wh,
10201
- delete: "_delete_j7fvh_111",
10203
+ delete: "_delete_180ms_56",
10202
10204
  empty: Yh
10203
10205
  };
10204
10206
  function ad({ chats: e, onSelect: n, activeChatId: t, onDelete: r }) {