@marimo-team/islands 0.26.1-dev63 → 0.26.1-dev65

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.
@@ -148,7 +148,7 @@ function L(e) {
148
148
  }
149
149
  //#endregion
150
150
  //#region src/components/editor/boundary/ErrorBoundary.tsx
151
- var R = (0, T.lazy)(() => import("./feedback-button-CNGAX_j2.js").then((e) => ({ default: e.FeedbackModal }))), z = (e) => {
151
+ var R = (0, T.lazy)(() => import("./feedback-button-gX5Asc71.js").then((e) => ({ default: e.FeedbackModal }))), z = (e) => {
152
152
  let t = (0, w.c)(2), n;
153
153
  return t[0] === e.children ? n = t[1] : (n = /* @__PURE__ */ (0, N.jsx)(O, {
154
154
  FallbackComponent: B,
@@ -14,7 +14,7 @@ function y() {
14
14
  return e.warn("Failed to get version from mount config"), null;
15
15
  }
16
16
  }
17
- var b = y() || "0.26.1-dev63", x = o(b), S = o(!0);
17
+ var b = y() || "0.26.1-dev65", x = o(b), S = o(!0);
18
18
  o(null);
19
19
  //#endregion
20
20
  //#region src/core/wasm/state.ts
@@ -33,7 +33,7 @@ import { a as ba, i as xa, n as Sa, o as Ca, r as wa, t as Ta } from "./dialog-C
33
33
  import { o as Ea } from "./dist-BG-7Qpaj.js";
34
34
  import { t as Da } from "./useAsyncData-P5-Oovhq.js";
35
35
  import { n as W, t as G } from "./objectWithoutPropertiesLoose-BRDcTsfB.js";
36
- import { n as Oa, t as ka } from "./ErrorBoundary-C8u5sThm.js";
36
+ import { n as Oa, t as ka } from "./ErrorBoundary-C20rwp3L.js";
37
37
  import { W as Aa, n as ja } from "./vega-loader.browser-Co9gYE8Z.js";
38
38
  import { a as Ma, n as Na, r as Pa, t as Fa } from "./loader-qPmiRXZd.js";
39
39
  import { t as Ia } from "./useIframeCapabilities-_0KX0nu_.js";
@@ -2,7 +2,7 @@ import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
2
2
  import { t } from "./react-Bgs_wQh3.js";
3
3
  import { t as n } from "./react-dom-DdqGVp5N.js";
4
4
  import { c as r, l as i, u as a } from "./data-grid-types-DBNnjiYJ.js";
5
- import { a as o, i as s, n as c, r as l } from "./glide-data-editor-ypeYeUi3.js";
5
+ import { a as o, i as s, n as c, r as l } from "./glide-data-editor-DilZw3QC.js";
6
6
  //#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.18.1_marked@15.0.12_react-dom@19.3.1__a94b4518d090e84da26f3a68e82f2953/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid-overlay-editor/data-grid-overlay-editor-style.js
7
7
  var u = /* @__PURE__ */ e(t(), 1), d = /* @__PURE__ */ e(n(), 1), f = /*#__PURE__*/ o("div")({
8
8
  name: "DataGridOverlayEditorStyle",
@@ -4,13 +4,13 @@ import { t as r } from "./react-Bgs_wQh3.js";
4
4
  import { t as i } from "./compiler-runtime-C5KHtL5D.js";
5
5
  import { t as a } from "./copy-icon-DuxRkh7T.js";
6
6
  import { A as o, L as s, Y as c, i as l, j as u, n as d, on as f, tn as p, z as m } from "./error-entries-P6Qpq6wP.js";
7
- import { n as h, t as ee } from "./globals-xlVwTZGh.js";
7
+ import { n as h, t as ee } from "./globals-CZpZGlLB.js";
8
8
  import { r as g } from "./assertNever-473SFxLt.js";
9
9
  import { t as _ } from "./jsx-runtime-D8btoEHk.js";
10
10
  import { Ct as te, Vt as v, m as y } from "./use-restore-focus-DT1TZACX.js";
11
11
  import { a as ne, i as re, n as ie, r as ae } from "./dialog-CvyFEwby.js";
12
12
  import { t as oe } from "./useAsyncData-P5-Oovhq.js";
13
- import { t as se } from "./code-visibility-CcTwk6HN.js";
13
+ import { t as se } from "./code-visibility-B_souXnU.js";
14
14
  //#region src/components/ui/skeleton.tsx
15
15
  var b = /* @__PURE__ */ e(r(), 1), x = i(), S = _(), ce = (e) => {
16
16
  let n = (0, x.c)(8), r, i;
@@ -14,7 +14,7 @@ import { t as F } from "./jsx-runtime-D8btoEHk.js";
14
14
  import { d as ae, r as I } from "./use-restore-focus-DT1TZACX.js";
15
15
  import { t as oe } from "./useEvent-BoN7U38T.js";
16
16
  import { n as L, t as se } from "./objectWithoutPropertiesLoose-BRDcTsfB.js";
17
- import { t as ce } from "./ErrorBoundary-C8u5sThm.js";
17
+ import { t as ce } from "./ErrorBoundary-C20rwp3L.js";
18
18
  import { A as le, C as ue, D as de, E as fe, F as pe, I as me, L as he, M as ge, N as R, O as z, P as _e, R as ve, S as ye, T as be, _ as xe, a as Se, b as B, c as Ce, d as we, f as V, g as Te, h as Ee, i as De, j as H, k as Oe, l as ke, m as Ae, n as je, o as Me, p as Ne, r as U, s as Pe, t as Fe, u as Ie, v as Le, w as Re, x as ze, y as Be, z as Ve } from "./data-grid-types-DBNnjiYJ.js";
19
19
  //#region ../node_modules/.pnpm/@emotion+memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
20
20
  function He(e) {
@@ -7061,7 +7061,7 @@ function ds(e, t, n, r, i) {
7061
7061
  }
7062
7062
  //#endregion
7063
7063
  //#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.18.1_marked@15.0.12_react-dom@19.3.1__a94b4518d090e84da26f3a68e82f2953/node_modules/@glideapps/glide-data-grid/dist/esm/data-editor/data-editor.js
7064
- var fs = /* @__PURE__ */ e(Tr(), 1), ps = /* @__PURE__ */ e(kr(), 1), ms = W.lazy(async () => await import("./data-grid-overlay-editor-DoVGjNtu.js")), hs = 0;
7064
+ var fs = /* @__PURE__ */ e(Tr(), 1), ps = /* @__PURE__ */ e(kr(), 1), ms = W.lazy(async () => await import("./data-grid-overlay-editor-B0M5GFBB.js")), hs = 0;
7065
7065
  function gs(e) {
7066
7066
  return (0, fs.default)((0, ps.default)((0, ps.default)(e).filter((e) => e.span !== void 0).map((e) => (0, ao.default)((e.span?.[0] ?? 0) + 1, (e.span?.[1] ?? 0) + 1))));
7067
7067
  }
@@ -9284,7 +9284,7 @@ function Ys(e, t, n, r, i) {
9284
9284
  }
9285
9285
  //#endregion
9286
9286
  //#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.18.1_marked@15.0.12_react-dom@19.3.1__a94b4518d090e84da26f3a68e82f2953/node_modules/@glideapps/glide-data-grid/dist/esm/cells/number-cell.js
9287
- var Xs = W.lazy(async () => await import("./number-overlay-editor-B22CYxeY.js")), Zs = {
9287
+ var Xs = W.lazy(async () => await import("./number-overlay-editor-CDTEJSD0.js")), Zs = {
9288
9288
  getAccessibilityString: (e) => e.data?.toString() ?? "",
9289
9289
  kind: U.Number,
9290
9290
  needsHover: (e) => e.hoverEffect === !0,
@@ -1,6 +1,6 @@
1
1
  import { h as e } from "./tooltip-BQZ-Bm6h.js";
2
2
  import { Ct as t } from "./use-restore-focus-DT1TZACX.js";
3
- import { r as n } from "./code-visibility-CcTwk6HN.js";
3
+ import { r as n } from "./code-visibility-B_souXnU.js";
4
4
  var r = e("triangle-alert", [
5
5
  ["path", {
6
6
  d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
package/dist/main.js CHANGED
@@ -6,7 +6,7 @@ import { i as x, n as S, r as C, t as w } from "./copy-icon-DuxRkh7T.js";
6
6
  import { B as T, Bt as E, Ct as D, E as O, F as k, Ft as A, I as j, It as M, J as N, L as P, Lt as F, M as I, Mt as L, O as R, Ot as z, P as B, R as ee, Rt as te, St as ne, Ut as re, Vt as ie, Wt as ae, Y as oe, _ as se, a as ce, at as le, b as ue, bt as de, c as fe, ct as pe, ft as me, ht as he, i as ge, it as _e, j as ve, kt as ye, lt as be, mt as xe, n as Se, nt as Ce, o as we, ot as Te, pt as Ee, tt as De, ut as Oe, vt as ke, z as Ae, zt as je } from "./html-to-image-DhrFZL7t.js";
7
7
  import { a as Me, f as Ne, h as Pe, i as Fe, m as Ie, n as Le, o as Re, r as ze, t as Be } from "./tooltip-BQZ-Bm6h.js";
8
8
  import { D as Ve, E as He, S as Ue, T as We, _ as Ge, a as Ke, c as qe, d as Je, f as Ye, g as Xe, h as Ze, i as Qe, l as $e, m as et, n as tt, o as nt, p as rt, r as it, s as at, t as ot, u as st, v as ct, w as lt, x as ut, y as dt } from "./spec-CRfw-lOm.js";
9
- import { $ as ft, $t as pt, A as mt, An as ht, At as gt, B as _t, Bt as vt, C as yt, D as bt, Dn as xt, Dt as St, E as Ct, En as wt, Et as Tt, F as Et, Ft as Dt, G as Ot, Gt as kt, H as At, Ht as jt, I as Mt, It as Nt, J as Pt, Jt as Ft, K as It, Kt as Lt, L as Rt, Lt as zt, M as Bt, Mn as Vt, Mt as Ht, N as Ut, Nt as Wt, O as Gt, On as Kt, Ot as qt, P as Jt, Pt as Yt, Q as Xt, Qt as Zt, R as Qt, Rt as $t, S as en, Sn as tn, St as nn, T as rn, Tn as an, Tt as on, U as sn, Ut as cn, V as ln, Vt as un, W as dn, Wt as fn, X as pn, Xt as mn, Y as hn, Yt as gn, Z as _n, Zt as vn, _ as yn, _n as bn, _t as xn, an as Sn, at as Cn, b as wn, bn as Tn, bt as En, c as Dn, cn as On, ct as kn, d as An, dn as jn, dt as Mn, en as Nn, f as Pn, fn as Fn, ft as In, g as Ln, gn as Rn, gt as zn, h as Bn, hn as Vn, ht as Hn, in as Un, it as Wn, j as Gn, jn as Kn, jt as qn, k as Jn, kn as Yn, kt as Xn, ln as Zn, lt as Qn, m as $n, mn as er, mt as tr, nn as nr, on as rr, ot as ir, p as ar, pn as or, pt as sr, q as cr, qt as lr, r as ur, rn as dr, rt as fr, sn as pr, st as mr, t as hr, tn as gr, u as _r, un as vr, ut as yr, v as br, vn as xr, vt as Sr, w as Cr, wn as wr, x as Tr, xn as Er, xt as Dr, y as Or, yn as kr, yt as Ar, z as jr, zt as Mr } from "./common-CNlBjhzm.js";
9
+ import { $ as ft, $t as pt, A as mt, An as ht, At as gt, B as _t, Bt as vt, C as yt, D as bt, Dn as xt, Dt as St, E as Ct, En as wt, Et as Tt, F as Et, Ft as Dt, G as Ot, Gt as kt, H as At, Ht as jt, I as Mt, It as Nt, J as Pt, Jt as Ft, K as It, Kt as Lt, L as Rt, Lt as zt, M as Bt, Mn as Vt, Mt as Ht, N as Ut, Nt as Wt, O as Gt, On as Kt, Ot as qt, P as Jt, Pt as Yt, Q as Xt, Qt as Zt, R as Qt, Rt as $t, S as en, Sn as tn, St as nn, T as rn, Tn as an, Tt as on, U as sn, Ut as cn, V as ln, Vt as un, W as dn, Wt as fn, X as pn, Xt as mn, Y as hn, Yt as gn, Z as _n, Zt as vn, _ as yn, _n as bn, _t as xn, an as Sn, at as Cn, b as wn, bn as Tn, bt as En, c as Dn, cn as On, ct as kn, d as An, dn as jn, dt as Mn, en as Nn, f as Pn, fn as Fn, ft as In, g as Ln, gn as Rn, gt as zn, h as Bn, hn as Vn, ht as Hn, in as Un, it as Wn, j as Gn, jn as Kn, jt as qn, k as Jn, kn as Yn, kt as Xn, ln as Zn, lt as Qn, m as $n, mn as er, mt as tr, nn as nr, on as rr, ot as ir, p as ar, pn as or, pt as sr, q as cr, qt as lr, r as ur, rn as dr, rt as fr, sn as pr, st as mr, t as hr, tn as gr, u as _r, un as vr, ut as yr, v as br, vn as xr, vt as Sr, w as Cr, wn as wr, x as Tr, xn as Er, xt as Dr, y as Or, yn as kr, yt as Ar, z as jr, zt as Mr } from "./common-BBT879kl.js";
10
10
  import { a as Nr, n as Pr, s as Fr, t as Ir } from "./useLifecycle-C9UTzCY8.js";
11
11
  import { t as Lr } from "./check-DmTIavbZ.js";
12
12
  import { A as Rr, C as zr, D as Br, M as Vr, O as Hr, a as Ur, c as Wr, d as Gr, i as Kr, k as qr, l as Jr, n as Yr, o as Xr, r as Zr, s as Qr, t as $r, w as ei, x as ti } from "./select-BszV-bbI.js";
@@ -16,7 +16,7 @@ import { $t as Ui, A as Wi, At as Gi, Bt as Ki, C as qi, Ct as Ji, Dt as Yi, Ft
16
16
  import { a as Na, d as Pa, i as Fa, n as Ia, o as La, r as Ra, s as za, t as Ba, u as Va } from "./process-output-CBPqVQBu.js";
17
17
  import { t as Ha } from "./pencil-FAv6JUvp.js";
18
18
  import { a as Ua, c as Wa, d as Ga, f as Ka, i as qa, l as Ja, r as Ya } from "./glide-utils-iHKKQPJ8.js";
19
- import { n as Xa, t as Za } from "./globals-xlVwTZGh.js";
19
+ import { n as Xa, t as Za } from "./globals-CZpZGlLB.js";
20
20
  import { a as Qa, i as $a, n as eo, r as to, s as no, t as ro } from "./assertNever-473SFxLt.js";
21
21
  import { t as io } from "./react-dom-DdqGVp5N.js";
22
22
  import { t as ao } from "./jsx-runtime-D8btoEHk.js";
@@ -40,10 +40,10 @@ import { i as ac } from "./dist-BG-7Qpaj.js";
40
40
  import { p as oc } from "./dist-BidYR5m4.js";
41
41
  import { t as sc } from "./useAsyncData-P5-Oovhq.js";
42
42
  import { n as cc, r as lc, t as uc } from "./useDeepCompareMemoize-CO6rO5Mq.js";
43
- import { t as dc } from "./ErrorBoundary-C8u5sThm.js";
43
+ import { t as dc } from "./ErrorBoundary-C20rwp3L.js";
44
44
  import { G as fc, W as pc } from "./vega-loader.browser-Co9gYE8Z.js";
45
45
  import { a as mc, n as hc } from "./loader-qPmiRXZd.js";
46
- import { a as gc, c as _c, i as vc, l as yc, o as bc, s as xc, t as Sc } from "./code-visibility-CcTwk6HN.js";
46
+ import { a as gc, c as _c, i as vc, l as yc, o as bc, s as xc, t as Sc } from "./code-visibility-B_souXnU.js";
47
47
  import { t as Cc } from "./esm-DY8dGAjJ.js";
48
48
  //#region ../node_modules/.pnpm/iconify-icon@2.3.0/node_modules/iconify-icon/dist/iconify-icon.mjs
49
49
  var wc = Object.freeze({
@@ -13109,7 +13109,7 @@ function XO(e, t) {
13109
13109
  }
13110
13110
  //#endregion
13111
13111
  //#region src/plugins/impl/DataEditorPlugin.tsx
13112
- var ZO = J.lazy(() => import("./glide-data-editor-ypeYeUi3.js").then((e) => e.t)), QO = MD("marimo-data-editor", { cssStyles: [tO, nO] }).withData(G({
13112
+ var ZO = J.lazy(() => import("./glide-data-editor-DilZw3QC.js").then((e) => e.t)), QO = MD("marimo-data-editor", { cssStyles: [tO, nO] }).withData(G({
13113
13113
  initialValue: G({ edits: V(G({
13114
13114
  rowIdx: W(),
13115
13115
  columnId: K(),
@@ -32833,7 +32833,7 @@ function $U(e) {
32833
32833
  }
32834
32834
  //#endregion
32835
32835
  //#region src/components/editor/renderers/slides-layout/slides-layout.tsx
32836
- var eW = J.lazy(() => import("./reveal-component-Dp_LMmWy.js")), tW = (e) => {
32836
+ var eW = J.lazy(() => import("./reveal-component-BDKZxwfC.js")), tW = (e) => {
32837
32837
  let t = (0, X.c)(33), { layout: n, setLayout: r, cells: i, mode: a } = e, o = Io(Ys), s = a === "read" || o, c = Io(Ca) > 1, [l, u] = (0, J.useState)(null), d;
32838
32838
  t[0] !== i || t[1] !== n ? (d = Zz(i, n), t[0] = i, t[1] = n, t[2] = d) : d = t[2];
32839
32839
  let { slideCells: f, skippedIds: p, noOutputIds: m, slideTypes: h, startCellIndex: g } = d, _;
@@ -1,6 +1,6 @@
1
1
  import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
2
2
  import { t } from "./react-Bgs_wQh3.js";
3
- import { a as n } from "./glide-data-editor-ypeYeUi3.js";
3
+ import { a as n } from "./glide-data-editor-DilZw3QC.js";
4
4
  //#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.18.1_marked@15.0.12_react-dom@19.3.1__a94b4518d090e84da26f3a68e82f2953/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid-overlay-editor/private/number-overlay-editor-style.js
5
5
  var r = /* @__PURE__ */ e(t()), i = /*#__PURE__*/ n("div")({
6
6
  name: "NumberOverlayEditorStyle",
@@ -3,14 +3,14 @@ import { g as t, h as n, m as r, r as i, t as a } from "./button-Z2R2272J.js";
3
3
  import { t as o } from "./react-Bgs_wQh3.js";
4
4
  import { t as s } from "./compiler-runtime-C5KHtL5D.js";
5
5
  import { h as c, t as l } from "./tooltip-BQZ-Bm6h.js";
6
- import { Cn as u, En as d, Sn as f, dn as p, et as m, f as h, i as g, l as _, n as v, nt as y, r as b, t as x, tt as S, u as C } from "./common-CNlBjhzm.js";
6
+ import { Cn as u, En as d, Sn as f, dn as p, et as m, f as h, i as g, l as _, n as v, nt as y, r as b, t as x, tt as S, u as C } from "./common-BBT879kl.js";
7
7
  import { M as w } from "./select-BszV-bbI.js";
8
8
  import { X as T } from "./dropdown-menu-BiXHfje7.js";
9
9
  import { t as E } from "./jsx-runtime-D8btoEHk.js";
10
10
  import { Vt as D, Wt as O, f as k, i as ee } from "./use-restore-focus-DT1TZACX.js";
11
11
  import { t as A } from "./useEvent-BoN7U38T.js";
12
12
  import { o as te } from "./static-state-BtDNJuc2.js";
13
- import { n as ne, t as re } from "./code-visibility-CcTwk6HN.js";
13
+ import { n as ne, t as re } from "./code-visibility-B_souXnU.js";
14
14
  /* empty css */
15
15
  var j = c("sticky-note", [["path", {
16
16
  d: "M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marimo-team/islands",
3
- "version": "0.26.1-dev63",
3
+ "version": "0.26.1-dev65",
4
4
  "main": "dist/main.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -93,6 +93,36 @@ function ModelForm({
93
93
  }
94
94
 
95
95
  describe("AddModelForm discovery", () => {
96
+ it("cancels the confirmation timer when the form unmounts", async ({
97
+ onTestFinished,
98
+ }) => {
99
+ const { unmount } = render(
100
+ <Provider store={createStore()}>
101
+ <ModelForm
102
+ providerName="gateway"
103
+ savedConfig={defaultUserConfig()}
104
+ onSubmit={vi.fn()}
105
+ />
106
+ </Provider>,
107
+ );
108
+ await openAddModel("Anthropic");
109
+ fireEvent.change(screen.getByLabelText("Model"), {
110
+ target: { value: "custom-model" },
111
+ });
112
+
113
+ vi.useFakeTimers();
114
+ onTestFinished(() => {
115
+ vi.useRealTimers();
116
+ });
117
+ fireEvent.click(screen.getByRole("button", { name: /^Add$/ }));
118
+ act(() => vi.advanceTimersByTime(1999));
119
+ expect(screen.getByText("✓ Model added")).toBeInTheDocument();
120
+ expect(vi.getTimerCount()).toBe(1);
121
+
122
+ unmount();
123
+ expect(vi.getTimerCount()).toBe(0);
124
+ });
125
+
96
126
  it.each(["gateway", "openrouter"])(
97
127
  "waits for %s changes to be saved and only saves a selected model on Add",
98
128
  async (providerName) => {
@@ -10,7 +10,7 @@ import {
10
10
  PlusIcon,
11
11
  Trash2Icon,
12
12
  } from "lucide-react";
13
- import React, { useId, useMemo, useState } from "react";
13
+ import React, { useEffect, useId, useMemo, useState } from "react";
14
14
  import {
15
15
  Button as AriaButton,
16
16
  Tree,
@@ -47,6 +47,7 @@ import { CopilotConfig } from "@/core/codemirror/copilot/copilot-config";
47
47
  import { resolvedMarimoConfigAtom } from "@/core/config/config";
48
48
  import { DEFAULT_AI_MODEL, type UserConfig } from "@/core/config/config-schema";
49
49
  import { isWasm } from "@/core/wasm/utils";
50
+ import { useDebouncedCallback } from "@/hooks/useDebounce";
50
51
  import { cn } from "@/utils/cn";
51
52
  import { Events } from "@/utils/events";
52
53
  import { Objects } from "@/utils/objects";
@@ -1680,6 +1681,8 @@ export const AddModelForm: React.FC<{
1680
1681
  const [provider, setProvider] = useState<ProviderId | "custom" | null>(null);
1681
1682
  const [customProviderName, setCustomProviderName] = useState("");
1682
1683
  const [modelName, setModelName] = useState("");
1684
+ const hideModelAdded = useDebouncedCallback(() => setModelAdded(false), 2000);
1685
+ useEffect(() => () => hideModelAdded.cancel(), [hideModelAdded]);
1683
1686
 
1684
1687
  const providerSelectId = useId();
1685
1688
  const customProviderInputId = useId();
@@ -1724,9 +1727,8 @@ export const AddModelForm: React.FC<{
1724
1727
  onSubmit(form.getValues());
1725
1728
  resetForm();
1726
1729
 
1727
- // Show model added message for 2 seconds
1728
1730
  setModelAdded(true);
1729
- setTimeout(() => setModelAdded(false), 2000);
1731
+ hideModelAdded();
1730
1732
  };
1731
1733
 
1732
1734
  const providerClassName = "w-40 truncate";