@backmatter/studio 0.0.15 → 0.0.16

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.
Files changed (61) hide show
  1. package/dist/chunks/{UiKitApp-BDsrXN12.js → UiKitApp-_EDqWID3.js} +2 -2
  2. package/dist/chunks/{WorkspaceRoutes-BTZ1Ah4F.js → WorkspaceRoutes-B2PrFgpz.js} +28979 -27418
  3. package/dist/chunks/{dashboard-FT7dm5wi.js → dashboard-BnlnMnnr.js} +55 -54
  4. package/dist/chunks/{index-DHJvh5Uy.js → index-D_BHF_8q.js} +1 -1
  5. package/dist/dashboard.js +2 -2
  6. package/dist/index.js +2 -2
  7. package/dist/site-widget.css +4 -0
  8. package/dist/site-widget.js +8304 -8029
  9. package/dist/studio.css +186 -12
  10. package/package.json +2 -2
  11. package/src/WorkspaceRoutes.tsx +5 -2
  12. package/src/api.ts +63 -7
  13. package/src/chat/ChangeCard.tsx +8 -2
  14. package/src/chat/ChatMessage.tsx +171 -102
  15. package/src/chat/ChatPanel.tsx +54 -34
  16. package/src/chat/ChatProvider.tsx +116 -20
  17. package/src/chat/Composer.tsx +48 -7
  18. package/src/chat/PointerChip.tsx +9 -5
  19. package/src/chat/ThreadHistory.tsx +3 -3
  20. package/src/chat/chat-context.ts +67 -3
  21. package/src/chat/chat-helpers.ts +12 -0
  22. package/src/chat/chat-state.ts +11 -0
  23. package/src/chrome/AppShell.tsx +16 -5
  24. package/src/chrome/CommandPalette.tsx +12 -0
  25. package/src/chrome/ContentExplorerSidebar.tsx +23 -3
  26. package/src/chrome/UserMenu.tsx +34 -3
  27. package/src/chrome/WorkspaceStatusBar.tsx +209 -27
  28. package/src/chrome/content-api-url.ts +0 -78
  29. package/src/chrome/content-tree-visibility.ts +13 -3
  30. package/src/chrome/explorer-icons.tsx +5 -0
  31. package/src/code-session-entry.ts +9 -0
  32. package/src/components/WorkspaceSwitcher.tsx +2 -2
  33. package/src/element-origin.ts +149 -0
  34. package/src/host-pointer-bootstrap.ts +11 -0
  35. package/src/host-pointer.ts +147 -0
  36. package/src/install-preview-pointer.ts +19 -3
  37. package/src/pages/CodeSessionFiles.tsx +221 -0
  38. package/src/pages/CodeSessionPage.tsx +1188 -0
  39. package/src/pages/DocEditorPage.tsx +33 -15
  40. package/src/pages/PreviewSize.tsx +181 -0
  41. package/src/pages/SettingsGeneralPage.tsx +67 -2
  42. package/src/pages/WorkspaceHomePage.tsx +313 -0
  43. package/src/pages/WorkspaceLayout.tsx +10 -1
  44. package/src/pages/code-session-boot.ts +43 -0
  45. package/src/pages/code-session-context.tsx +51 -0
  46. package/src/pages/code-session-files.ts +42 -0
  47. package/src/pages/code-session-frame.ts +52 -0
  48. package/src/pages/code-session-routes.ts +42 -0
  49. package/src/pages/home-rows.ts +140 -0
  50. package/src/pages/preview-size.ts +33 -0
  51. package/src/pages/session-preview.ts +109 -0
  52. package/src/pages/use-session-preview.ts +70 -0
  53. package/src/replica/store.ts +11 -0
  54. package/src/replica/types.ts +6 -0
  55. package/src/site-pointer.ts +24 -5
  56. package/src/studio-config.ts +1 -1
  57. package/src/ui/ListRow.tsx +12 -3
  58. package/src/ui/Page.tsx +12 -1
  59. package/src/workspace-path.ts +35 -3
  60. package/src/chrome/ContentApiPopover.tsx +0 -215
  61. package/src/pages/WorkspaceHomeRedirect.tsx +0 -17
@@ -1,9 +1,9 @@
1
1
  var Ke = Object.defineProperty;
2
2
  var Xe = (e, t, n) => t in e ? Ke(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var D = (e, t, n) => Xe(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { jsxs as k, jsx as o, Fragment as be } from "react/jsx-runtime";
4
+ import { jsxs as k, jsx as o, Fragment as ge } from "react/jsx-runtime";
5
5
  import { useRef as Ye, useCallback as Qe, useSyncExternalStore as Ze, useState as w, useEffect as V, lazy as et, Suspense as tt } from "react";
6
- import { U as nt, aj as ye, ak as rt, P as _, al as st, p as it, am as at, an as Ne, ao as Ce, ap as Ie, aq as ot, ar as lt, N as qe, as as ct, at as ie, ad as J, W as ze, au as ut, av as Fe, ae as dt, ag as re, a7 as Q, a8 as Z, V as ae, aw as ft, Q as z, ax as ht, G as ve, ay as ee, af as pt, az as gt, aA as mt, aB as xt, f as yt, aC as vt, a3 as bt, aD as wt, aE as kt, w as St, B as Et, F as Rt, aF as _t, aG as Ot, aH as Tt, H as Pt, aI as Lt, R as jt, I as At, J as Ut, K as Nt, L as F, M as Ct, O as It } from "./WorkspaceRoutes-BTZ1Ah4F.js";
6
+ import { U as nt, aj as ve, ak as rt, P as _, al as st, p as it, am as at, an as Ne, ao as Ce, ap as Ie, aq as ot, ar as lt, N as qe, as as ct, at as ie, ad as J, W as ze, au as ut, av as Fe, ae as dt, ag as re, a7 as Q, a8 as Z, V as ae, aw as ft, Q as z, ax as ht, G as be, ay as ee, af as pt, az as gt, aA as mt, aB as xt, f as yt, aC as vt, a3 as bt, aD as wt, aE as kt, w as St, B as Et, F as Rt, aF as _t, aG as Ot, aH as Tt, H as Pt, aI as jt, R as Lt, I as At, J as Ut, K as Nt, L as F, M as Ct, O as It } from "./WorkspaceRoutes-B2PrFgpz.js";
7
7
  const te = /* @__PURE__ */ Object.create(null), W = (e) => {
8
8
  var t, n;
9
9
  return ((t = globalThis.process) == null ? void 0 : t.env) || ((n = globalThis.Deno) == null ? void 0 : n.env.toObject()) || globalThis.__env__ || (e ? te : globalThis);
@@ -155,11 +155,11 @@ const Xt = {
155
155
  } }
156
156
  };
157
157
  let A = [], $ = 0;
158
- const ge = 4, Yt = globalThis.nanostoresGlobal || (globalThis.nanostoresGlobal = { epoch: 0 });
158
+ const me = 4, Yt = globalThis.nanostoresGlobal || (globalThis.nanostoresGlobal = { epoch: 0 });
159
159
  let Qt = () => {
160
160
  let e, t;
161
161
  for (; $ < A.length; ) {
162
- t = $, $ += ge;
162
+ t = $, $ += me;
163
163
  try {
164
164
  A[t](
165
165
  A[t + 1].value,
@@ -184,7 +184,7 @@ const ke = /* @__NO_SIDE_EFFECTS__ */ (e) => {
184
184
  listen(r) {
185
185
  return n.lc = t.push(r), () => {
186
186
  for (let i = $; i < A.length; )
187
- A[i] === r ? A.splice(i, ge) : i += ge;
187
+ A[i] === r ? A.splice(i, me) : i += me;
188
188
  let s = t.indexOf(r);
189
189
  ~s && (t.splice(s, 1), --n.lc || n.off());
190
190
  };
@@ -614,15 +614,15 @@ function pe(e) {
614
614
  const t = Object.getPrototypeOf(e);
615
615
  return t !== null && t !== Object.prototype && Object.getPrototypeOf(t) !== null || Symbol.iterator in e ? !1 : Symbol.toStringTag in e ? Object.prototype.toString.call(e) === "[object Module]" : !0;
616
616
  }
617
- function me(e, t, n = ".", r) {
617
+ function xe(e, t, n = ".", r) {
618
618
  if (!pe(t))
619
- return me(e, {}, n, r);
619
+ return xe(e, {}, n, r);
620
620
  const s = { ...t };
621
621
  for (const i of Object.keys(e)) {
622
622
  if (i === "__proto__" || i === "constructor")
623
623
  continue;
624
624
  const l = e[i];
625
- l != null && (r && r(s, i, l, n) || (Array.isArray(l) && Array.isArray(s[i]) ? s[i] = [...l, ...s[i]] : pe(l) && pe(s[i]) ? s[i] = me(
625
+ l != null && (r && r(s, i, l, n) || (Array.isArray(l) && Array.isArray(s[i]) ? s[i] = [...l, ...s[i]] : pe(l) && pe(s[i]) ? s[i] = xe(
626
626
  l,
627
627
  s[i],
628
628
  (n ? `${n}.` : "") + i.toString(),
@@ -634,11 +634,11 @@ function me(e, t, n = ".", r) {
634
634
  function vn(e) {
635
635
  return (...t) => (
636
636
  // eslint-disable-next-line unicorn/no-array-reduce
637
- t.reduce((n, r) => me(n, r, "", e), {})
637
+ t.reduce((n, r) => xe(n, r, "", e), {})
638
638
  );
639
639
  }
640
640
  const bn = vn();
641
- var wn = Object.defineProperty, kn = Object.defineProperties, Sn = Object.getOwnPropertyDescriptors, Te = Object.getOwnPropertySymbols, En = Object.prototype.hasOwnProperty, Rn = Object.prototype.propertyIsEnumerable, Pe = (e, t, n) => t in e ? wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, j = (e, t) => {
641
+ var wn = Object.defineProperty, kn = Object.defineProperties, Sn = Object.getOwnPropertyDescriptors, Te = Object.getOwnPropertySymbols, En = Object.prototype.hasOwnProperty, Rn = Object.prototype.propertyIsEnumerable, Pe = (e, t, n) => t in e ? wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, L = (e, t) => {
642
642
  for (var n in t || (t = {}))
643
643
  En.call(t, n) && Pe(e, n, t[n]);
644
644
  if (Te)
@@ -679,7 +679,7 @@ var wn = Object.defineProperty, kn = Object.defineProperties, Sn = Object.getOwn
679
679
  options: a,
680
680
  hooks: u
681
681
  };
682
- }, Le = class {
682
+ }, je = class {
683
683
  constructor(e) {
684
684
  this.options = e;
685
685
  }
@@ -709,21 +709,21 @@ var wn = Object.defineProperty, kn = Object.defineProperties, Sn = Object.getOwn
709
709
  };
710
710
  function Pn(e) {
711
711
  if (typeof e == "number")
712
- return new Le({
712
+ return new je({
713
713
  type: "linear",
714
714
  attempts: e,
715
715
  delay: 1e3
716
716
  });
717
717
  switch (e.type) {
718
718
  case "linear":
719
- return new Le(e);
719
+ return new je(e);
720
720
  case "exponential":
721
721
  return new Tn(e);
722
722
  default:
723
723
  throw new Error("Invalid retry strategy");
724
724
  }
725
725
  }
726
- var Ln = async (e) => {
726
+ var jn = async (e) => {
727
727
  const t = {}, n = async (r) => typeof r == "function" ? await r() : r;
728
728
  if (e != null && e.auth) {
729
729
  if (e.auth.type === "Bearer") {
@@ -750,7 +750,7 @@ var Ln = async (e) => {
750
750
  }
751
751
  }
752
752
  return t;
753
- }, jn = /^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;
753
+ }, Ln = /^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;
754
754
  function An(e) {
755
755
  const t = e.headers.get("content-type"), n = /* @__PURE__ */ new Set([
756
756
  "image/svg",
@@ -761,7 +761,7 @@ function An(e) {
761
761
  if (!t)
762
762
  return "json";
763
763
  const r = t.split(";").shift() || "";
764
- return jn.test(r) ? "json" : n.has(r) || r.startsWith("text/") ? "text" : "blob";
764
+ return Ln.test(r) ? "json" : n.has(r) || r.startsWith("text/") ? "text" : "blob";
765
765
  }
766
766
  function Un(e) {
767
767
  try {
@@ -776,7 +776,7 @@ function We(e) {
776
776
  const t = typeof e;
777
777
  return t === "string" || t === "number" || t === "boolean" || t === null ? !0 : t !== "object" ? !1 : Array.isArray(e) ? !0 : e.buffer ? !1 : e.constructor && e.constructor.name === "Object" || typeof e.toJSON == "function";
778
778
  }
779
- function je(e) {
779
+ function Le(e) {
780
780
  try {
781
781
  return JSON.parse(e);
782
782
  } catch {
@@ -811,7 +811,7 @@ function $e(...e) {
811
811
  return t;
812
812
  }
813
813
  async function Cn(e) {
814
- const t = new Headers($e(e == null ? void 0 : e.headers, await Ln(e)));
814
+ const t = new Headers($e(e == null ? void 0 : e.headers, await jn(e)));
815
815
  if (!t.has("content-type")) {
816
816
  const n = In(e == null ? void 0 : e.body);
817
817
  n && t.set("content-type", n);
@@ -896,12 +896,12 @@ var Je = ["get", "post", "put", "patch", "delete"], Dn = (e) => ({
896
896
  y[v.toLowerCase()] = x;
897
897
  c = y;
898
898
  }
899
- let m = N(j({}, n), {
899
+ let m = N(L({}, n), {
900
900
  method: u.method,
901
901
  output: u.output,
902
902
  headers: c
903
903
  });
904
- return n != null && n.disableValidation || (m = N(j({}, m), {
904
+ return n != null && n.disableValidation || (m = N(L({}, m), {
905
905
  body: u.input ? await G(u.input, n == null ? void 0 : n.body) : n == null ? void 0 : n.body,
906
906
  params: u.params ? await G(u.params, n == null ? void 0 : n.params) : n == null ? void 0 : n.params,
907
907
  query: u.query ? await G(u.query, n == null ? void 0 : n.query) : n == null ? void 0 : n.query
@@ -918,13 +918,13 @@ var Je = ["get", "post", "put", "patch", "delete"], Dn = (e) => ({
918
918
  }
919
919
  }), Hn = (e) => {
920
920
  async function t(n, r) {
921
- const s = N(j(j({}, e), r), {
921
+ const s = N(L(L({}, e), r), {
922
922
  headers: $e(e == null ? void 0 : e.headers, r == null ? void 0 : r.headers),
923
923
  plugins: [...(e == null ? void 0 : e.plugins) || [], Dn(e || {}), ...(r == null ? void 0 : r.plugins) || []]
924
924
  });
925
925
  if (e != null && e.catchAllError)
926
926
  try {
927
- return await xe(n, s);
927
+ return await ye(n, s);
928
928
  } catch (i) {
929
929
  return {
930
930
  data: null,
@@ -936,7 +936,7 @@ var Je = ["get", "post", "put", "patch", "delete"], Dn = (e) => ({
936
936
  }
937
937
  };
938
938
  }
939
- return await xe(n, s);
939
+ return await ye(n, s);
940
940
  }
941
941
  return t;
942
942
  }, Wn = (e) => e === "." || e === "..";
@@ -990,13 +990,13 @@ function Gn(e, t) {
990
990
  let c = a.toString();
991
991
  return c = c.length > 0 ? `?${c}`.replace(/\+/g, "%20") : "", i.startsWith("http") ? new URL(`${l}${c}`, i) : `${i}${l}${c}`;
992
992
  }
993
- var xe = async (e, t) => {
993
+ var ye = async (e, t) => {
994
994
  var n, r, s, i, l, d, a, u;
995
995
  const {
996
996
  hooks: c,
997
997
  url: m,
998
998
  options: p
999
- } = await On(e, t), g = Nn(p), y = new AbortController(), v = (n = p.signal) != null ? n : y.signal, x = Gn(m, p), S = await Cn(p), E = zn(p, S), O = Fn(m, p), b = N(j({}, p), {
999
+ } = await On(e, t), g = Nn(p), y = new AbortController(), v = (n = p.signal) != null ? n : y.signal, x = Gn(m, p), S = await Cn(p), E = zn(p, S), O = Fn(m, p), b = N(L({}, p), {
1000
1000
  url: x,
1001
1001
  headers: S,
1002
1002
  body: E,
@@ -1018,7 +1018,7 @@ var xe = async (e, t) => {
1018
1018
  };
1019
1019
  for (const P of c.onResponse)
1020
1020
  if (P) {
1021
- const h = await P(N(j({}, R), {
1021
+ const h = await P(N(L({}, R), {
1022
1022
  response: (s = t == null ? void 0 : t.hookOptions) != null && s.cloneResponse ? f.clone() : f
1023
1023
  }));
1024
1024
  h instanceof Response ? f = h : typeof h == "object" && h !== null && (f = h.response);
@@ -1029,40 +1029,40 @@ var xe = async (e, t) => {
1029
1029
  data: "",
1030
1030
  error: null
1031
1031
  };
1032
- const h = An(f), L = {
1032
+ const h = An(f), j = {
1033
1033
  data: null,
1034
1034
  response: f,
1035
1035
  request: b
1036
1036
  };
1037
1037
  if (h === "json" || h === "text") {
1038
- const I = await f.text(), Ve = (i = b.jsonParser) != null ? i : je;
1039
- L.data = await Ve(I);
1038
+ const I = await f.text(), Ve = (i = b.jsonParser) != null ? i : Le;
1039
+ j.data = await Ve(I);
1040
1040
  } else
1041
- L.data = await f[h]();
1042
- b != null && b.output && b.output && !b.disableValidation && (L.data = await G(
1041
+ j.data = await f[h]();
1042
+ b != null && b.output && b.output && !b.disableValidation && (j.data = await G(
1043
1043
  b.output,
1044
- L.data
1044
+ j.data
1045
1045
  ));
1046
1046
  for (const I of c.onSuccess)
1047
- I && await I(N(j({}, L), {
1047
+ I && await I(N(L({}, j), {
1048
1048
  response: (l = t == null ? void 0 : t.hookOptions) != null && l.cloneResponse ? f.clone() : f
1049
1049
  }));
1050
- return t != null && t.throw ? L.data : {
1051
- data: L.data,
1050
+ return t != null && t.throw ? j.data : {
1051
+ data: j.data,
1052
1052
  error: null
1053
1053
  };
1054
1054
  }
1055
- const U = (d = t == null ? void 0 : t.jsonParser) != null ? d : je, C = await f.text(), H = Un(C), M = H ? await U(C) : null, K = {
1055
+ const U = (d = t == null ? void 0 : t.jsonParser) != null ? d : Le, C = await f.text(), H = Un(C), M = H ? await U(C) : null, K = {
1056
1056
  response: f,
1057
1057
  responseText: C,
1058
1058
  request: b,
1059
- error: N(j({}, M), {
1059
+ error: N(L({}, M), {
1060
1060
  status: f.status,
1061
1061
  statusText: f.statusText
1062
1062
  })
1063
1063
  };
1064
1064
  for (const P of c.onError)
1065
- P && await P(N(j({}, K), {
1065
+ P && await P(N(L({}, K), {
1066
1066
  response: (a = t == null ? void 0 : t.hookOptions) != null && a.cloneResponse ? f.clone() : f
1067
1067
  }));
1068
1068
  if (t != null && t.retry) {
@@ -1070,8 +1070,8 @@ var xe = async (e, t) => {
1070
1070
  if (await P.shouldAttemptRetry(h, f)) {
1071
1071
  for (const I of c.onRetry)
1072
1072
  I && await I(R);
1073
- const L = P.getDelay(h);
1074
- return await new Promise((I) => setTimeout(I, L)), await xe(e, N(j({}, t), {
1073
+ const j = P.getDelay(h);
1074
+ return await new Promise((I) => setTimeout(I, j)), await ye(e, N(L({}, t), {
1075
1075
  retryAttempt: h + 1
1076
1076
  }));
1077
1077
  }
@@ -1084,7 +1084,7 @@ var xe = async (e, t) => {
1084
1084
  );
1085
1085
  return {
1086
1086
  data: null,
1087
- error: N(j({}, M), {
1087
+ error: N(L({}, M), {
1088
1088
  status: f.status,
1089
1089
  statusText: f.statusText
1090
1090
  })
@@ -1160,8 +1160,8 @@ const Jn = (e) => {
1160
1160
  notify: (h) => {
1161
1161
  O[h].set(!O[h].get());
1162
1162
  },
1163
- listen: (h, L) => {
1164
- O[h].subscribe(L);
1163
+ listen: (h, j) => {
1164
+ O[h].subscribe(j);
1165
1165
  },
1166
1166
  atoms: O
1167
1167
  };
@@ -1285,7 +1285,7 @@ function B() {
1285
1285
  })), Ue;
1286
1286
  }
1287
1287
  function cr() {
1288
- const [e] = ye(), [t, n] = w(null), [r, s] = w(null), [i, l] = w(!1), [d, a] = w(null), u = e.get("token") ? e.get("email") ?? "" : "", [c, m] = w(u || (e.get("email") ?? "")), [p, g] = w(""), [y, v] = w(""), [x, S] = w("signin");
1288
+ const [e] = ve(), [t, n] = w(null), [r, s] = w(null), [i, l] = w(!1), [d, a] = w(null), u = e.get("token") ? e.get("email") ?? "" : "", [c, m] = w(u || (e.get("email") ?? "")), [p, g] = w(""), [y, v] = w(""), [x, S] = w("signin");
1289
1289
  V(() => {
1290
1290
  rt().then((f) => a(f.github)).catch(() => a(!1));
1291
1291
  }, []);
@@ -1419,13 +1419,14 @@ function hr({
1419
1419
  meta: n,
1420
1420
  trailing: r
1421
1421
  }) {
1422
- return /* @__PURE__ */ k(ct, { to: e, className: "x78zum5 x6s0dn4 x1qughib x11cgr9k x21xpn4 x173sf5p x15jjofa x1hl2dhg xqjzbou xso031l x1q0q8m5 x4b2zrn x1t1lzn6 x1xcxyqb", children: [
1422
+ const s = /* @__PURE__ */ k(ge, { children: [
1423
1423
  /* @__PURE__ */ k("span", { className: "x78zum5 xeuugli xdt5ytf x195vfkc", children: [
1424
1424
  /* @__PURE__ */ o("span", { className: "x17tv04q xk50ysn", children: t }),
1425
1425
  n ? /* @__PURE__ */ o("span", { className: "x1vrk1b5 x111yfic", children: n }) : null
1426
1426
  ] }),
1427
1427
  r ? /* @__PURE__ */ o("span", { className: "x2lah0s x1vrk1b5 x111yfic", children: r }) : null
1428
1428
  ] });
1429
+ return e ? /* @__PURE__ */ o(ct, { to: e, className: "x78zum5 x6s0dn4 x1qughib x11cgr9k x21xpn4 x173sf5p x15jjofa x1hl2dhg xqjzbou xso031l x1q0q8m5 x4b2zrn x1t1lzn6 x1xcxyqb", children: s }) : /* @__PURE__ */ o("div", { className: "x78zum5 x6s0dn4 x1qughib x11cgr9k x21xpn4 x173sf5p x15jjofa x1hl2dhg xqjzbou xso031l x1q0q8m5 x4b2zrn x1t1lzn6 x1xcxyqb xt0e3qv", children: s });
1429
1430
  }
1430
1431
  function pr({
1431
1432
  children: e
@@ -1519,7 +1520,7 @@ function xr(e, t) {
1519
1520
  }
1520
1521
  }
1521
1522
  function yr() {
1522
- const [e] = ye(), t = Fe(), n = e.get("token") ?? "", r = e.get("email") ?? "", [s, i] = w(null), [l, d] = w(null), [a, u] = w(!1);
1523
+ const [e] = ve(), t = Fe(), n = e.get("token") ?? "", r = e.get("email") ?? "", [s, i] = w(null), [l, d] = w(null), [a, u] = w(!1);
1523
1524
  V(() => {
1524
1525
  if (!n) {
1525
1526
  i("This invite link is missing a token.");
@@ -1532,7 +1533,7 @@ function yr() {
1532
1533
  if (m) return;
1533
1534
  const g = p && typeof p == "object" && "code" in p ? p.code : void 0;
1534
1535
  if (g === "invite_email_mismatch" || g === "unauthorized") {
1535
- const v = await ve().catch(() => null);
1536
+ const v = await be().catch(() => null);
1536
1537
  if (m) return;
1537
1538
  d((v == null ? void 0 : v.user.email) ?? null), u(!0);
1538
1539
  return;
@@ -1559,7 +1560,7 @@ function yr() {
1559
1560
  function vr() {
1560
1561
  const { email: e, userId: t } = Ne(), [n, r] = w(""), [s, i] = w(null), [l, d] = w(null), [a, u] = w(!1);
1561
1562
  V(() => {
1562
- ve().then((m) => {
1563
+ be().then((m) => {
1563
1564
  m != null && m.user.name && r(m.user.name);
1564
1565
  });
1565
1566
  }, []);
@@ -1624,7 +1625,7 @@ function vr() {
1624
1625
  function br({
1625
1626
  email: e
1626
1627
  }) {
1627
- const [t] = ye(), n = t.get("id") ?? "", [r, s] = w("idle"), [i, l] = w(null);
1628
+ const [t] = ve(), n = t.get("id") ?? "", [r, s] = w("idle"), [i, l] = w(null);
1628
1629
  return /* @__PURE__ */ o("main", { className: "x78zum5 x9f619 xh8yej3 x1ov3xa9 x6s0dn4 xl56j7k x1y5dg2c x86kjsi xqjzbou", children: /* @__PURE__ */ k("div", { className: "x78zum5 xh8yej3 x1va8c73 xdt5ytf x1cy8zhl x11cgr9k x9f619 xmkeg23 x1y0btm7 x1j0qoeq x13oidi x1hb2obb x1y5dg2c x1vrk1b5", children: [
1629
1630
  /* @__PURE__ */ o(_, { as: "h1", size: "xl", weight: "medium", children: "Allow the CLI" }),
1630
1631
  /* @__PURE__ */ k(_, { tone: "muted", children: [
@@ -1687,10 +1688,10 @@ function wr({
1687
1688
  })(), () => {
1688
1689
  s = !0;
1689
1690
  };
1690
- }, [e]), /* @__PURE__ */ o("div", { className: "x1ov3xa9 xrvj5dj x1ku5rj1 x1t7e3gq", children: /* @__PURE__ */ o("div", { className: "x78zum5 xdt5ytf x1ndbd79 x1lr1uin x1t7e3gq x4pepcl x1d0qn7y", children: t.kind === "working" ? /* @__PURE__ */ k(be, { children: [
1691
+ }, [e]), /* @__PURE__ */ o("div", { className: "x1ov3xa9 xrvj5dj x1ku5rj1 x1t7e3gq", children: /* @__PURE__ */ o("div", { className: "x78zum5 xdt5ytf x1ndbd79 x1lr1uin x1t7e3gq x4pepcl x1d0qn7y", children: t.kind === "working" ? /* @__PURE__ */ k(ge, { children: [
1691
1692
  /* @__PURE__ */ o(_, { size: "lg", weight: "medium", children: "Opening your site…" }),
1692
1693
  /* @__PURE__ */ o(_, { tone: "muted", children: "Setting up editing on the site and sending you back." })
1693
- ] }) : /* @__PURE__ */ k(be, { children: [
1694
+ ] }) : /* @__PURE__ */ k(ge, { children: [
1694
1695
  /* @__PURE__ */ o(_, { size: "lg", weight: "medium", children: "Could not open the site" }),
1695
1696
  /* @__PURE__ */ o(_, { tone: "muted", children: t.message }),
1696
1697
  /* @__PURE__ */ o(ze, { to: "/", variant: "secondary", children: "Back to the dashboard" })
@@ -1701,7 +1702,7 @@ function kr(e) {
1701
1702
  const t = e.replace(/\/$/, "") || "/";
1702
1703
  return t === "/__ui" || /^\/__ui\/[^/]+$/.test(t);
1703
1704
  }
1704
- const Sr = et(() => import("./UiKitApp-BDsrXN12.js").then((e) => ({
1705
+ const Sr = et(() => import("./UiKitApp-_EDqWID3.js").then((e) => ({
1705
1706
  default: e.UiKitApp
1706
1707
  })));
1707
1708
  function Pr() {
@@ -1715,7 +1716,7 @@ function Er() {
1715
1716
  } : "loading";
1716
1717
  });
1717
1718
  return V(() => {
1718
- ve().then((r) => {
1719
+ be().then((r) => {
1719
1720
  if (!(r != null && r.user)) {
1720
1721
  ee(), z.wipe(), n(null);
1721
1722
  return;
@@ -1732,7 +1733,7 @@ function Er() {
1732
1733
  }).catch(() => {
1733
1734
  ee(), z.wipe(), n(null);
1734
1735
  });
1735
- }, []), kr(e.pathname) ? /* @__PURE__ */ o(tt, { fallback: /* @__PURE__ */ o("div", { className: "x1y5dg2c", children: /* @__PURE__ */ o(_, { tone: "muted", children: "Loading kit…" }) }), children: /* @__PURE__ */ o(Sr, {}) }) : t === "loading" ? /* @__PURE__ */ o(Pt, {}) : t ? e.pathname.replace(/\/$/, "") === "/enter" ? /* @__PURE__ */ o(wr, { userId: t.user.id }) : Lt(e.pathname) ? /* @__PURE__ */ o(br, { email: t.user.email }) : /* @__PURE__ */ o(jt, { user: t.user, children: /* @__PURE__ */ o(At, { children: /* @__PURE__ */ o(Ut, { userId: t.user.id, email: t.user.email, onLogout: () => {
1736
+ }, []), kr(e.pathname) ? /* @__PURE__ */ o(tt, { fallback: /* @__PURE__ */ o("div", { className: "x1y5dg2c", children: /* @__PURE__ */ o(_, { tone: "muted", children: "Loading kit…" }) }), children: /* @__PURE__ */ o(Sr, {}) }) : t === "loading" ? /* @__PURE__ */ o(Pt, {}) : t ? e.pathname.replace(/\/$/, "") === "/enter" ? /* @__PURE__ */ o(wr, { userId: t.user.id }) : jt(e.pathname) ? /* @__PURE__ */ o(br, { email: t.user.email }) : /* @__PURE__ */ o(Lt, { user: t.user, children: /* @__PURE__ */ o(At, { children: /* @__PURE__ */ o(Ut, { userId: t.user.id, email: t.user.email, onLogout: () => {
1736
1737
  ee(), z.wipe(), B().signOut().then(() => {
1737
1738
  n(null);
1738
1739
  }).catch(() => {
@@ -1,7 +1,7 @@
1
1
  var Rs = Object.defineProperty;
2
2
  var Es = (r, e, t) => e in r ? Rs(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
3
  var M = (r, e, t) => Es(r, typeof e != "symbol" ? e + "" : e, t);
4
- import { aJ as Bt, aK as Bs, aL as a0, aM as ct, aN as xt, aO as ea, aP as Gn, aQ as Is, aR as Ls, aS as Ds, aT as La, aU as Ps, aV as Os, aW as Le, aX as qs } from "./WorkspaceRoutes-BTZ1Ah4F.js";
4
+ import { aJ as Bt, aK as Bs, aL as a0, aM as ct, aN as xt, aO as ea, aP as Gn, aQ as Is, aR as Ls, aS as Ds, aT as La, aU as Ps, aV as Os, aW as Le, aX as qs } from "./WorkspaceRoutes-B2PrFgpz.js";
5
5
  function Fs() {
6
6
  return {
7
7
  enter: {
package/dist/dashboard.js CHANGED
@@ -1,5 +1,5 @@
1
- import { A as a, i as s } from "./chunks/dashboard-FT7dm5wi.js";
2
- import { z as t, A as f } from "./chunks/WorkspaceRoutes-BTZ1Ah4F.js";
1
+ import { A as a, i as s } from "./chunks/dashboard-BnlnMnnr.js";
2
+ import { z as t, A as f } from "./chunks/WorkspaceRoutes-B2PrFgpz.js";
3
3
  export {
4
4
  a as DashboardApp,
5
5
  t as configureStudio,
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx as t, jsxs as u } from "react/jsx-runtime";
2
2
  import { useLayoutEffect as ae, useEffect as f, useRef as Q, useState as h, useMemo as se } from "react";
3
- import { i as X, T as ce, E as le, C as ue, a as de, b as xe, u as me, D as _, c as Y, d as I, e as fe, f as Z, g as G, h as pe, p as E, j as C, k as he, l as ge, m as S, r as we, n as be, s as ye, o as ve, q as ke, t as qe, v as ze, w as Ee, B as Ce, x as Ne, S as Se, y as Re, z as ee, A as U, F as Pe, G as Le, H as Ue, R as je, I as Te, J as Me, K as $e, L as R, N as K, M as De, O as Fe, P as H, Q as Oe } from "./chunks/WorkspaceRoutes-BTZ1Ah4F.js";
4
- import { U as lt } from "./chunks/WorkspaceRoutes-BTZ1Ah4F.js";
3
+ import { i as X, T as ce, E as le, C as ue, a as de, b as xe, u as me, D as _, c as Y, d as I, e as fe, f as Z, g as G, h as pe, p as E, j as C, k as he, l as ge, m as S, r as we, n as be, s as ye, o as ve, q as ke, t as qe, v as ze, w as Ee, B as Ce, x as Ne, S as Se, y as Re, z as ee, A as U, F as Pe, G as Le, H as Ue, R as je, I as Te, J as Me, K as $e, L as R, N as K, M as De, O as Fe, P as H, Q as Oe } from "./chunks/WorkspaceRoutes-B2PrFgpz.js";
4
+ import { U as lt } from "./chunks/WorkspaceRoutes-B2PrFgpz.js";
5
5
  import { u as Ae, S as Be } from "./chunks/define-studio-BYtYDGLX.js";
6
6
  import { d as dt } from "./chunks/define-studio-BYtYDGLX.js";
7
7
  const P = {
@@ -3,6 +3,10 @@
3
3
  @layer reset, priority1;
4
4
 
5
5
  @layer priority2 {
6
+ .xln7xf2 {
7
+ font: inherit;
8
+ }
9
+
6
10
  .x10a8y8t {
7
11
  inset: 0;
8
12
  }