juneau 0.10.2 → 0.11.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
@@ -10128,31 +10128,32 @@ function od({
10128
10128
  className: o,
10129
10129
  style: l,
10130
10130
  onReset: a,
10131
- renderPart: s,
10132
- onEntityClick: u,
10133
- headerActions: f,
10134
- emptyState: c
10131
+ confirmReset: s,
10132
+ renderPart: u,
10133
+ onEntityClick: f,
10134
+ headerActions: c,
10135
+ emptyState: h
10135
10136
  }) {
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();
10137
+ const [p, g] = Re(!1), {
10138
+ messages: C,
10139
+ input: S,
10140
+ setInput: y,
10141
+ sendMessage: I,
10142
+ stop: _,
10143
+ isLoading: L,
10144
+ isConnecting: N,
10145
+ error: b,
10146
+ reset: O,
10147
+ confirmProposal: H,
10148
+ cancelProposal: B
10149
+ } = xl(), k = a ? async () => {
10150
+ s && !await s() || (O(), a());
10150
10151
  } : void 0;
10151
10152
  return /* @__PURE__ */ Y(
10152
10153
  "aside",
10153
10154
  {
10154
- className: [Ir.sidebar, h ? Ir.minimized : "", o].filter(Boolean).join(" "),
10155
- style: { height: h ? void 0 : i, ...l },
10155
+ className: [Ir.sidebar, p ? Ir.minimized : "", o].filter(Boolean).join(" "),
10156
+ style: { height: p ? void 0 : i, ...l },
10156
10157
  "data-juneau": "sidebar",
10157
10158
  children: [
10158
10159
  /* @__PURE__ */ x(
@@ -10160,31 +10161,31 @@ function od({
10160
10161
  {
10161
10162
  title: e,
10162
10163
  icon: n,
10163
- onMinimize: () => p((k) => !k),
10164
- isMinimized: h,
10165
- onReset: B,
10166
- headerActions: f
10164
+ onMinimize: () => g((T) => !T),
10165
+ isMinimized: p,
10166
+ onReset: k,
10167
+ headerActions: c
10167
10168
  }
10168
10169
  ),
10169
- !h && /* @__PURE__ */ x(
10170
+ !p && /* @__PURE__ */ x(
10170
10171
  Ph,
10171
10172
  {
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,
10173
+ messages: C,
10174
+ input: S,
10175
+ isLoading: L,
10176
+ isConnecting: N,
10177
+ error: b,
10178
+ onInputChange: y,
10179
+ onSend: I,
10180
+ onStop: _,
10181
+ onProposalConfirm: H,
10182
+ onProposalCancel: B,
10182
10183
  assistantIcon: n,
10183
10184
  actions: t,
10184
10185
  sendIcon: r,
10185
- renderPart: s,
10186
- onEntityClick: u,
10187
- emptyState: c
10186
+ renderPart: u,
10187
+ onEntityClick: f,
10188
+ emptyState: h
10188
10189
  }
10189
10190
  )
10190
10191
  ]