@backmatter/studio 0.0.2 → 0.0.4

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 (36) hide show
  1. package/dist/chunks/EmbedPublishPage-hx1xoAhI.js +149 -0
  2. package/dist/chunks/{UiKitPage-CTZtLwJ0.js → UiKitPage-BOunq6mr.js} +12 -11
  3. package/dist/chunks/WorkspaceRoutes-CTFTWu3L.js +57731 -0
  4. package/dist/chunks/{dashboard-nvFBzpZv.js → dashboard-upmiawx5.js} +216 -215
  5. package/dist/chunks/{index-Cr-IOgdC.js → index-CBvevwfT.js} +9 -8
  6. package/dist/chunks/status-bar-action-DiXhfcj3.js +30254 -0
  7. package/dist/dashboard.js +2 -2
  8. package/dist/index.js +139 -228
  9. package/dist/site-widget.js +292 -0
  10. package/dist/studio.css +46 -6
  11. package/package.json +7 -2
  12. package/src/api.ts +4 -0
  13. package/src/chat/ChangeCard.tsx +11 -6
  14. package/src/chat/ChatMessage.tsx +27 -2
  15. package/src/chat/ChatPanel.tsx +12 -2
  16. package/src/chat/ChatProvider.tsx +40 -3
  17. package/src/chat/Composer.tsx +92 -6
  18. package/src/chat/DocLink.tsx +31 -0
  19. package/src/chat/DocListCard.tsx +3 -3
  20. package/src/chat/PointerChip.tsx +139 -0
  21. package/src/chat/chat-context.ts +80 -1
  22. package/src/chat/icons.tsx +20 -0
  23. package/src/chat/session-expiry.ts +13 -5
  24. package/src/chrome/OpenSiteButton.tsx +33 -25
  25. package/src/index.css +9 -1
  26. package/src/pages/EmbedChatPage.tsx +25 -1
  27. package/src/pages/EmbedPublishPage.tsx +279 -84
  28. package/src/pages/GithubConnectPage.tsx +44 -19
  29. package/src/pages/SelectRepositoriesLink.tsx +30 -0
  30. package/src/pages/SettingsGeneralPage.tsx +2 -0
  31. package/src/pages/SettingsGithubPage.tsx +8 -3
  32. package/src/pages/host-env.ts +7 -2
  33. package/src/site-pointer.ts +271 -0
  34. package/src/site-widget.tsx +391 -0
  35. package/src/site.tsx +11 -7
  36. package/dist/chunks/WorkspaceRoutes-DyRVES9t.js +0 -87308
@@ -1,7 +1,8 @@
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 { ao as Bt, ap as Bs, aq as a0, ar as ct, as as xt, at as ea, au as Gn, av as Is, aw as Ls, ax as Ds, ay as La, az as Ps, aA as Os, aB as Le, aC as qs } from "./WorkspaceRoutes-DyRVES9t.js";
4
+ import { a1 as Bt, a2 as a0, a3 as ct, a4 as ea, a5 as Gn, a6 as Bs, a7 as Is, a8 as Ls, a9 as Ds, aa as Le } from "./status-bar-action-DiXhfcj3.js";
5
+ import { z as Ps, A as xt, C as La, D as Os, E as qs } from "./WorkspaceRoutes-CTFTWu3L.js";
5
6
  function Fs() {
6
7
  return {
7
8
  enter: {
@@ -96,7 +97,7 @@ function Gs(r) {
96
97
  handlers: { math: t, inlineMath: a }
97
98
  };
98
99
  function t(i, s, l, o) {
99
- const h = i.value || "", d = l.createTracker(o), p = "$".repeat(Math.max(Bs(h, "$") + 1, 2)), g = l.enter("mathFlow");
100
+ const h = i.value || "", d = l.createTracker(o), p = "$".repeat(Math.max(Ps(h, "$") + 1, 2)), g = l.enter("mathFlow");
100
101
  let v = d.move(p);
101
102
  if (i.meta) {
102
103
  const w = l.enter("mathFlowMeta");
@@ -14368,7 +14369,7 @@ function cu(r, e) {
14368
14369
  return t.join("");
14369
14370
  }
14370
14371
  function hu(r, e, t) {
14371
- const a = Is(r.schema, e), n = r.settings.allowParseErrors && r.schema.space === "html" ? 0 : 1, i = r.settings.allowDangerousCharacters ? 0 : 1;
14372
+ const a = Bs(r.schema, e), n = r.settings.allowParseErrors && r.schema.space === "html" ? 0 : 1, i = r.settings.allowDangerousCharacters ? 0 : 1;
14372
14373
  let s = r.quote, l;
14373
14374
  if (a.overloadedBoolean && (t === a.attribute || t === "") ? t = !0 : (a.boolean || a.overloadedBoolean) && (typeof t != "string" || t === a.attribute || t === "") && (t = !!t), t == null || t === !1 || typeof t == "number" && Number.isNaN(t))
14374
14375
  return "";
@@ -14379,7 +14380,7 @@ function hu(r, e, t) {
14379
14380
  subset: d0.name[n][i]
14380
14381
  })
14381
14382
  );
14382
- return t === !0 || (t = Array.isArray(t) ? (a.commaSeparated ? Ls : Ds)(t, {
14383
+ return t === !0 || (t = Array.isArray(t) ? (a.commaSeparated ? Is : Ls)(t, {
14383
14384
  padLeft: !r.settings.tightCommaSeparatedLists
14384
14385
  }) : String(t), r.settings.collapseEmptyAttributes && !t) ? o : (r.settings.preferUnquoted && (l = xt(
14385
14386
  t,
@@ -14411,7 +14412,7 @@ function du(r, e, t, a) {
14411
14412
  function pu(r, e, t, a) {
14412
14413
  return a.all(r);
14413
14414
  }
14414
- const fu = Ps("type", {
14415
+ const fu = Os("type", {
14415
14416
  invalid: gu,
14416
14417
  unknown: vu,
14417
14418
  handlers: { comment: G1, doctype: H1, element: uu, raw: du, root: pu, text: is }
@@ -14453,7 +14454,7 @@ function xu(r, e) {
14453
14454
  closeSelfClosing: t.closeSelfClosing || !1,
14454
14455
  closeEmptyElements: t.closeEmptyElements || !1
14455
14456
  },
14456
- schema: t.space === "svg" ? Gn : Os,
14457
+ schema: t.space === "svg" ? Gn : Ds,
14457
14458
  quote: a,
14458
14459
  alternative: n
14459
14460
  }.one(
@@ -18905,7 +18906,7 @@ const Qc = /^https?:\/\//, qn = (r) => (r == null ? void 0 : r.type) === "paragr
18905
18906
  };
18906
18907
  pt(n, a, d);
18907
18908
  }
18908
- }, dh = (r = {}) => [
18909
+ }, ph = (r = {}) => [
18909
18910
  qs,
18910
18911
  Vc,
18911
18912
  Jc,
@@ -18920,5 +18921,5 @@ const Qc = /^https?:\/\//, qn = (r) => (r == null ? void 0 : r.type) === "paragr
18920
18921
  ];
18921
18922
  export {
18922
18923
  bs as highlightCode,
18923
- dh as remarkPlugins
18924
+ ph as remarkPlugins
18924
18925
  };