jazz-tools 0.18.21 → 0.18.22

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.
@@ -32515,10 +32515,33 @@ var isCoId = (coId) => typeof coId === "string" && coId.startsWith("co_") && !co
32515
32515
  var import_react8 = __toESM(require_react(), 1);
32516
32516
  import { styled as styled9 } from "goober";
32517
32517
 
32518
- // src/inspector/ui/icons/chevron-down-icon.tsx
32518
+ // src/inspector/ui/icons/caution.tsx
32519
32519
  var import_jsx_runtime10 = __toESM(require_jsx_runtime(), 1);
32520
+ function CautionIcon(props) {
32521
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
32522
+ "svg",
32523
+ {
32524
+ ...props,
32525
+ xmlns: "http://www.w3.org/2000/svg",
32526
+ width: "24",
32527
+ height: "24",
32528
+ viewBox: "0 0 24 24",
32529
+ fill: "none",
32530
+ stroke: "currentColor",
32531
+ strokeLinejoin: "round",
32532
+ children: [
32533
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("circle", { cx: "12", cy: "12", r: "12", fill: "currentColor" }),
32534
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("rect", { x: "10.5", y: "6", width: "3", height: "7.5", rx: "1.5", fill: "#fff" }),
32535
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("rect", { x: "10.5", y: "16.5", width: "3", height: "3", rx: "1.5", fill: "#fff" })
32536
+ ]
32537
+ }
32538
+ );
32539
+ }
32540
+
32541
+ // src/inspector/ui/icons/chevron-down-icon.tsx
32542
+ var import_jsx_runtime11 = __toESM(require_jsx_runtime(), 1);
32520
32543
  function ChevronDownIcon(props) {
32521
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
32544
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
32522
32545
  "svg",
32523
32546
  {
32524
32547
  ...props,
@@ -32529,15 +32552,15 @@ function ChevronDownIcon(props) {
32529
32552
  fill: "none",
32530
32553
  stroke: "currentColor",
32531
32554
  strokeLinejoin: "round",
32532
- children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("path", { d: "m6 9 6 6 6-6" })
32555
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("path", { d: "m6 9 6 6 6-6" })
32533
32556
  }
32534
32557
  );
32535
32558
  }
32536
32559
 
32537
32560
  // src/inspector/ui/icons/delete-icon.tsx
32538
- var import_jsx_runtime11 = __toESM(require_jsx_runtime(), 1);
32561
+ var import_jsx_runtime12 = __toESM(require_jsx_runtime(), 1);
32539
32562
  function DeleteIcon(props) {
32540
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
32563
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
32541
32564
  "svg",
32542
32565
  {
32543
32566
  ...props,
@@ -32550,18 +32573,18 @@ function DeleteIcon(props) {
32550
32573
  strokeLinejoin: "round",
32551
32574
  className: "lucide lucide-trash-icon lucide-trash",
32552
32575
  children: [
32553
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("path", { d: "M3 6h18" }),
32554
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6" }),
32555
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2" })
32576
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("path", { d: "M3 6h18" }),
32577
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6" }),
32578
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2" })
32556
32579
  ]
32557
32580
  }
32558
32581
  );
32559
32582
  }
32560
32583
 
32561
32584
  // src/inspector/ui/icons/link-icon.tsx
32562
- var import_jsx_runtime12 = __toESM(require_jsx_runtime(), 1);
32585
+ var import_jsx_runtime13 = __toESM(require_jsx_runtime(), 1);
32563
32586
  function LinkIcon(props) {
32564
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
32587
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
32565
32588
  "svg",
32566
32589
  {
32567
32590
  xmlns: "http://www.w3.org/2000/svg",
@@ -32570,7 +32593,7 @@ function LinkIcon(props) {
32570
32593
  strokeWidth: 1.5,
32571
32594
  stroke: "currentColor",
32572
32595
  ...props,
32573
- children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
32596
+ children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
32574
32597
  "path",
32575
32598
  {
32576
32599
  strokeLinecap: "round",
@@ -32583,8 +32606,9 @@ function LinkIcon(props) {
32583
32606
  }
32584
32607
 
32585
32608
  // src/inspector/ui/icon.tsx
32586
- var import_jsx_runtime13 = __toESM(require_jsx_runtime(), 1);
32609
+ var import_jsx_runtime14 = __toESM(require_jsx_runtime(), 1);
32587
32610
  var icons = {
32611
+ caution: CautionIcon,
32588
32612
  chevronDown: ChevronDownIcon,
32589
32613
  delete: DeleteIcon,
32590
32614
  link: LinkIcon
@@ -32631,7 +32655,7 @@ function Icon({
32631
32655
  throw new Error(`Icon not found: ${name}`);
32632
32656
  }
32633
32657
  const IconComponent = icons?.hasOwnProperty(name) ? icons[name] : icon;
32634
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
32658
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
32635
32659
  IconComponent,
32636
32660
  {
32637
32661
  "aria-hidden": "true",
@@ -32644,7 +32668,7 @@ function Icon({
32644
32668
  }
32645
32669
 
32646
32670
  // src/inspector/viewer/value-renderer.tsx
32647
- var import_jsx_runtime14 = __toESM(require_jsx_runtime(), 1);
32671
+ var import_jsx_runtime15 = __toESM(require_jsx_runtime(), 1);
32648
32672
  var LinkContainer = styled9("span")`
32649
32673
  display: inline-flex;
32650
32674
  gap: 0.25rem;
@@ -32708,18 +32732,18 @@ function ValueRenderer({
32708
32732
  }) {
32709
32733
  const [isExpanded, setIsExpanded] = (0, import_react8.useState)(false);
32710
32734
  if (typeof json === "undefined" || json === void 0) {
32711
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Text, { muted: true, children: "undefined" });
32735
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Text, { muted: true, children: "undefined" });
32712
32736
  }
32713
32737
  if (json === null) {
32714
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Text, { muted: true, children: "null" });
32738
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Text, { muted: true, children: "null" });
32715
32739
  }
32716
32740
  if (typeof json === "string" && isCoId(json)) {
32717
- const content = /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, { children: [
32741
+ const content = /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_jsx_runtime15.Fragment, { children: [
32718
32742
  json,
32719
- onCoIDClick && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Icon, { name: "link" })
32743
+ onCoIDClick && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Icon, { name: "link" })
32720
32744
  ] });
32721
32745
  if (onCoIDClick) {
32722
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
32746
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
32723
32747
  Button,
32724
32748
  {
32725
32749
  variant: "link",
@@ -32730,35 +32754,35 @@ function ValueRenderer({
32730
32754
  }
32731
32755
  );
32732
32756
  }
32733
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(LinkContainer, { children: content });
32757
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(LinkContainer, { children: content });
32734
32758
  }
32735
32759
  if (typeof json === "string") {
32736
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Text, { children: json });
32760
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Text, { children: json });
32737
32761
  }
32738
32762
  if (typeof json === "number") {
32739
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Text, { mono: true, children: json });
32763
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Text, { mono: true, children: json });
32740
32764
  }
32741
32765
  if (typeof json === "boolean") {
32742
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(BooleanText, { value: json, children: json.toString() });
32766
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(BooleanText, { value: json, children: json.toString() });
32743
32767
  }
32744
32768
  const longJson = JSON.stringify(json, null, 2);
32745
32769
  const shortJson = longJson.split("\n").slice(0, compact ? 3 : 8).join("\n");
32746
32770
  const hasDifference = longJson !== shortJson;
32747
32771
  if (typeof json === "object") {
32748
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, { children: [
32749
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { children: Array.isArray(json) ? /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_jsx_runtime14.Fragment, { children: [
32772
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_jsx_runtime15.Fragment, { children: [
32773
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("p", { children: Array.isArray(json) ? /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_jsx_runtime15.Fragment, { children: [
32750
32774
  "Array (",
32751
32775
  json.length,
32752
32776
  ")"
32753
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_jsx_runtime14.Fragment, { children: "Object" }) }),
32754
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(ObjectContent, { children: [
32777
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_jsx_runtime15.Fragment, { children: "Object" }) }),
32778
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(ObjectContent, { children: [
32755
32779
  isExpanded ? longJson : shortJson,
32756
32780
  hasDifference && !isExpanded ? "\n ..." : null
32757
32781
  ] }),
32758
- !compact && hasDifference ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Button, { variant: "link", onClick: () => setIsExpanded(!isExpanded), children: isExpanded ? "Show less" : "Show more" }) : null
32782
+ !compact && hasDifference ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Button, { variant: "link", onClick: () => setIsExpanded(!isExpanded), children: isExpanded ? "Show less" : "Show more" }) : null
32759
32783
  ] });
32760
32784
  }
32761
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { children: String(json) });
32785
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { children: String(json) });
32762
32786
  }
32763
32787
  var CoMapPreview = ({
32764
32788
  coId,
@@ -32770,7 +32794,7 @@ var CoMapPreview = ({
32770
32794
  node
32771
32795
  );
32772
32796
  if (!snapshot) {
32773
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
32797
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
32774
32798
  "div",
32775
32799
  {
32776
32800
  style: {
@@ -32785,15 +32809,15 @@ var CoMapPreview = ({
32785
32809
  );
32786
32810
  }
32787
32811
  if (snapshot === "unavailable" && !value) {
32788
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Text, { inline: true, muted: true, children: "Unavailable" });
32812
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Text, { inline: true, muted: true, children: "Unavailable" });
32789
32813
  }
32790
32814
  if (type === "coplaintext") {
32791
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_jsx_runtime14.Fragment, { children: value.toString() });
32815
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_jsx_runtime15.Fragment, { children: value.toString() });
32792
32816
  }
32793
32817
  if (extendedType === "image" && isBrowserImage(snapshot)) {
32794
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(ImagePreviewContainer2, { children: [
32795
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(PreviewImage, { src: snapshot.placeholderDataURL }),
32796
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(Text, { inline: true, small: true, muted: true, children: [
32818
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(ImagePreviewContainer2, { children: [
32819
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(PreviewImage, { src: snapshot.placeholderDataURL }),
32820
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(Text, { inline: true, small: true, muted: true, children: [
32797
32821
  snapshot.originalSize[0],
32798
32822
  " x ",
32799
32823
  snapshot.originalSize[1]
@@ -32801,10 +32825,10 @@ var CoMapPreview = ({
32801
32825
  ] });
32802
32826
  }
32803
32827
  if (extendedType === "record") {
32804
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(RecordText, { children: [
32828
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(RecordText, { children: [
32805
32829
  "Record",
32806
32830
  " ",
32807
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(Text, { inline: true, muted: true, children: [
32831
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(Text, { inline: true, muted: true, children: [
32808
32832
  "(",
32809
32833
  Object.keys(snapshot).length,
32810
32834
  ")"
@@ -32812,10 +32836,10 @@ var CoMapPreview = ({
32812
32836
  ] });
32813
32837
  }
32814
32838
  if (type === "colist") {
32815
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(ListText, { children: [
32839
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(ListText, { children: [
32816
32840
  "List",
32817
32841
  " ",
32818
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(Text, { inline: true, muted: true, children: [
32842
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(Text, { inline: true, muted: true, children: [
32819
32843
  "(",
32820
32844
  snapshot.length,
32821
32845
  ")"
@@ -32826,15 +32850,15 @@ var CoMapPreview = ({
32826
32850
  const limitedProperties = extendedType === "account" ? properties.filter(
32827
32851
  ([key]) => !key.startsWith("key_z") && !key.startsWith("sealer_z") && key !== "readKey"
32828
32852
  ).slice(0, limit) : properties.slice(0, limit);
32829
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(PreviewContainer, { children: [
32830
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(PreviewGrid, { children: limitedProperties.map(([key, value2]) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_react8.default.Fragment, { children: [
32831
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(Text, { strong: true, children: [
32853
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(PreviewContainer, { children: [
32854
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(PreviewGrid, { children: limitedProperties.map(([key, value2]) => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_react8.default.Fragment, { children: [
32855
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(Text, { strong: true, children: [
32832
32856
  key,
32833
32857
  ": "
32834
32858
  ] }),
32835
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ValueRenderer, { compact: true, json: value2 })
32859
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ValueRenderer, { compact: true, json: value2 })
32836
32860
  ] }, key)) }),
32837
- properties.length > limit && /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(PreviewMoreText, { muted: true, small: true, children: [
32861
+ properties.length > limit && /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(PreviewMoreText, { muted: true, small: true, children: [
32838
32862
  properties.length - limit,
32839
32863
  " more"
32840
32864
  ] })
@@ -32865,7 +32889,7 @@ var CardBody = styled10("div")`
32865
32889
  `;
32866
32890
 
32867
32891
  // src/inspector/ui/grid.tsx
32868
- var import_jsx_runtime15 = __toESM(require_jsx_runtime(), 1);
32892
+ var import_jsx_runtime16 = __toESM(require_jsx_runtime(), 1);
32869
32893
  import { styled as styled11 } from "goober";
32870
32894
  var GridThreeColumns = styled11("div")`
32871
32895
  display: grid;
@@ -32898,18 +32922,18 @@ function Grid(props) {
32898
32922
  const { cols, children, ...rest } = props;
32899
32923
  switch (cols) {
32900
32924
  case 1:
32901
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(GridOneColumn, { ...rest, children });
32925
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(GridOneColumn, { ...rest, children });
32902
32926
  case 2:
32903
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(GridTwoColumns, { ...rest, children });
32927
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(GridTwoColumns, { ...rest, children });
32904
32928
  case 3:
32905
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(GridThreeColumns, { ...rest, children });
32929
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(GridThreeColumns, { ...rest, children });
32906
32930
  default:
32907
32931
  throw new Error(`Invalid number of columns: ${cols}`);
32908
32932
  }
32909
32933
  }
32910
32934
 
32911
32935
  // src/inspector/viewer/grid-view.tsx
32912
- var import_jsx_runtime16 = __toESM(require_jsx_runtime(), 1);
32936
+ var import_jsx_runtime17 = __toESM(require_jsx_runtime(), 1);
32913
32937
  function GridItem({
32914
32938
  entry,
32915
32939
  onNavigate,
@@ -32926,12 +32950,12 @@ function GridItem({
32926
32950
  borderColor: "var(--j-foreground)"
32927
32951
  }
32928
32952
  };
32929
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Card, { ...props, children: [
32930
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CardHeader, { children: isCoValue ? /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, { children: [
32931
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Text, { strong: true, children: key }),
32932
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Badge, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ResolveIcon, { coId: value, node }) })
32933
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Text, { strong: true, children: key }) }),
32934
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CardBody, { style: { wordBreak: "break-word" }, children: isCoValue ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CoMapPreview, { coId: value, node }) : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
32953
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Card, { ...props, children: [
32954
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(CardHeader, { children: isCoValue ? /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, { children: [
32955
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Text, { strong: true, children: key }),
32956
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Badge, { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(ResolveIcon, { coId: value, node }) })
32957
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Text, { strong: true, children: key }) }),
32958
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(CardBody, { style: { wordBreak: "break-word" }, children: isCoValue ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(CoMapPreview, { coId: value, node }) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
32935
32959
  ValueRenderer,
32936
32960
  {
32937
32961
  json: value,
@@ -32948,7 +32972,7 @@ function GridView({
32948
32972
  node
32949
32973
  }) {
32950
32974
  const entries = Object.entries(data);
32951
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Grid, { cols: entries.length === 1 ? 1 : 3, children: entries.map((entry, childIndex) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
32975
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Grid, { cols: entries.length === 1 ? 1 : 3, children: entries.map((entry, childIndex) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
32952
32976
  GridItem,
32953
32977
  {
32954
32978
  entry,
@@ -32961,7 +32985,7 @@ function GridView({
32961
32985
 
32962
32986
  // src/inspector/viewer/raw-data-card.tsx
32963
32987
  var import_react9 = __toESM(require_react(), 1);
32964
- var import_jsx_runtime17 = __toESM(require_jsx_runtime(), 1);
32988
+ var import_jsx_runtime18 = __toESM(require_jsx_runtime(), 1);
32965
32989
  function CopyButton({ data }) {
32966
32990
  const [copyCount, setCopyCount] = (0, import_react9.useState)(0);
32967
32991
  const copied = copyCount > 0;
@@ -32974,7 +32998,7 @@ function CopyButton({ data }) {
32974
32998
  };
32975
32999
  }
32976
33000
  }, [copyCount]);
32977
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
33001
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
32978
33002
  Button,
32979
33003
  {
32980
33004
  style: {
@@ -32993,17 +33017,17 @@ function CopyButton({ data }) {
32993
33017
  );
32994
33018
  }
32995
33019
  function RawDataCard({ data }) {
32996
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Card, { style: { position: "relative" }, children: [
32997
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(CardHeader, { children: [
32998
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Text, { strong: true, children: "Raw data" }),
32999
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(CopyButton, { data })
33020
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(Card, { style: { position: "relative" }, children: [
33021
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(CardHeader, { children: [
33022
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Text, { strong: true, children: "Raw data" }),
33023
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(CopyButton, { data })
33000
33024
  ] }),
33001
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(CardBody, { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(ValueRenderer, { json: data }) })
33025
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(CardBody, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(ValueRenderer, { json: data }) })
33002
33026
  ] });
33003
33027
  }
33004
33028
 
33005
33029
  // src/inspector/viewer/account-view.tsx
33006
- var import_jsx_runtime18 = __toESM(require_jsx_runtime(), 1);
33030
+ var import_jsx_runtime19 = __toESM(require_jsx_runtime(), 1);
33007
33031
  function AccountView({
33008
33032
  data,
33009
33033
  onNavigate,
@@ -33015,25 +33039,25 @@ function AccountView({
33015
33039
  delete readableData[key];
33016
33040
  }
33017
33041
  }
33018
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
33019
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(GridView, { data: readableData, onNavigate, node }),
33020
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(RawDataCard, { data })
33042
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
33043
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(GridView, { data: readableData, onNavigate, node }),
33044
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(RawDataCard, { data })
33021
33045
  ] });
33022
33046
  }
33023
33047
 
33024
33048
  // src/inspector/viewer/co-plain-text-view.tsx
33025
- var import_jsx_runtime19 = __toESM(require_jsx_runtime(), 1);
33049
+ var import_jsx_runtime20 = __toESM(require_jsx_runtime(), 1);
33026
33050
  function CoPlainTextView({ data }) {
33027
33051
  if (!data) return;
33028
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
33029
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { children: Object.values(data).join("") }),
33030
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(RawDataCard, { data })
33052
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
33053
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { children: Object.values(data).join("") }),
33054
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(RawDataCard, { data })
33031
33055
  ] });
33032
33056
  }
33033
33057
 
33034
33058
  // src/inspector/ui/table.tsx
33035
33059
  var import_react10 = __toESM(require_react(), 1);
33036
- var import_jsx_runtime20 = __toESM(require_jsx_runtime(), 1);
33060
+ var import_jsx_runtime21 = __toESM(require_jsx_runtime(), 1);
33037
33061
  import { styled as styled12 } from "goober";
33038
33062
  var StyledTable = styled12("table")`
33039
33063
  width: 100%;
@@ -33064,35 +33088,35 @@ var StyledTh = styled12("th")`
33064
33088
  var StyledTd = styled12("td")`
33065
33089
  padding: 0.5rem 0.75rem;
33066
33090
  `;
33067
- var Table = import_react10.default.forwardRef(({ children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(StyledTable, { ref, ...props, children }));
33068
- var TableHead = import_react10.default.forwardRef(({ children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(StyledThead, { ref, ...props, children }));
33069
- var TableBody = import_react10.default.forwardRef(({ children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(StyledTbody, { ref, ...props, children }));
33070
- var TableRow = import_react10.default.forwardRef(({ children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("tr", { ref, ...props, children }));
33071
- var TableHeader = import_react10.default.forwardRef(({ children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(StyledTh, { ref, ...props, children }));
33072
- var TableCell = import_react10.default.forwardRef(({ children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(StyledTd, { ref, ...props, children }));
33091
+ var Table = import_react10.default.forwardRef(({ children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(StyledTable, { ref, ...props, children }));
33092
+ var TableHead = import_react10.default.forwardRef(({ children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(StyledThead, { ref, ...props, children }));
33093
+ var TableBody = import_react10.default.forwardRef(({ children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(StyledTbody, { ref, ...props, children }));
33094
+ var TableRow = import_react10.default.forwardRef(({ children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("tr", { ref, ...props, children }));
33095
+ var TableHeader = import_react10.default.forwardRef(({ children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(StyledTh, { ref, ...props, children }));
33096
+ var TableCell = import_react10.default.forwardRef(({ children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(StyledTd, { ref, ...props, children }));
33073
33097
 
33074
33098
  // src/inspector/viewer/group-view.tsx
33075
- var import_jsx_runtime21 = __toESM(require_jsx_runtime(), 1);
33099
+ var import_jsx_runtime22 = __toESM(require_jsx_runtime(), 1);
33076
33100
  function GroupView({
33077
33101
  data,
33078
33102
  onNavigate,
33079
33103
  node
33080
33104
  }) {
33081
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_jsx_runtime21.Fragment, { children: [
33082
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Text, { strong: true, children: "Members" }),
33083
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(Table, { children: [
33084
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(TableRow, { children: [
33085
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(TableHeader, { children: "Account" }),
33086
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(TableHeader, { children: "Permission" })
33105
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
33106
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Text, { strong: true, children: "Members" }),
33107
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(Table, { children: [
33108
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(TableRow, { children: [
33109
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(TableHeader, { children: "Account" }),
33110
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(TableHeader, { children: "Permission" })
33087
33111
  ] }) }),
33088
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(TableBody, { children: [
33089
- "everyone" in data && typeof data.everyone === "string" ? /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(TableRow, { children: [
33090
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(TableCell, { children: "everyone" }),
33091
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(TableCell, { children: data.everyone })
33112
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(TableBody, { children: [
33113
+ "everyone" in data && typeof data.everyone === "string" ? /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(TableRow, { children: [
33114
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(TableCell, { children: "everyone" }),
33115
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(TableCell, { children: data.everyone })
33092
33116
  ] }) : null,
33093
33117
  Object.entries(data).map(
33094
- ([key, value]) => isCoId(key) ? /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(TableRow, { children: [
33095
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
33118
+ ([key, value]) => isCoId(key) ? /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(TableRow, { children: [
33119
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
33096
33120
  AccountOrGroupText,
33097
33121
  {
33098
33122
  coId: key,
@@ -33103,17 +33127,17 @@ function GroupView({
33103
33127
  }
33104
33128
  }
33105
33129
  ) }),
33106
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(TableCell, { children: value })
33130
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(TableCell, { children: value })
33107
33131
  ] }, key) : null
33108
33132
  )
33109
33133
  ] })
33110
33134
  ] }),
33111
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(RawDataCard, { data })
33135
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(RawDataCard, { data })
33112
33136
  ] });
33113
33137
  }
33114
33138
 
33115
33139
  // src/inspector/viewer/role-display.tsx
33116
- var import_jsx_runtime22 = __toESM(require_jsx_runtime(), 1);
33140
+ var import_jsx_runtime23 = __toESM(require_jsx_runtime(), 1);
33117
33141
  function RoleDisplay({
33118
33142
  node,
33119
33143
  value
@@ -33132,7 +33156,7 @@ function RoleDisplay({
33132
33156
  } else {
33133
33157
  role = "unauthorized";
33134
33158
  }
33135
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(Text, { children: [
33159
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Text, { children: [
33136
33160
  "Role: ",
33137
33161
  role
33138
33162
  ] });
@@ -33141,7 +33165,7 @@ function RoleDisplay({
33141
33165
  // src/inspector/viewer/table-viewer.tsx
33142
33166
  var import_react11 = __toESM(require_react(), 1);
33143
33167
  import { styled as styled13 } from "goober";
33144
- var import_jsx_runtime23 = __toESM(require_jsx_runtime(), 1);
33168
+ var import_jsx_runtime24 = __toESM(require_jsx_runtime(), 1);
33145
33169
  var PaginationContainer = styled13("div")`
33146
33170
  padding: 1rem 0;
33147
33171
  display: flex;
@@ -33149,6 +33173,37 @@ var PaginationContainer = styled13("div")`
33149
33173
  justify-content: space-between;
33150
33174
  gap: 0.5rem;
33151
33175
  `;
33176
+ var RedTooltip = styled13("span")`
33177
+ position:relative; /* making the .tooltip span a container for the tooltip text */
33178
+ border-bottom:1px dashed #000; /* little indicater to indicate it's hoverable */
33179
+
33180
+ &:before {
33181
+ content: attr(data-text);
33182
+ background-color: red;
33183
+ position:absolute;
33184
+
33185
+ /* vertically center */
33186
+ top:50%;
33187
+ transform:translateY(-50%);
33188
+
33189
+ /* move to right */
33190
+ left:100%;
33191
+ margin-left:15px; /* and add a small left margin */
33192
+
33193
+ /* basic styles */
33194
+ width:200px;
33195
+ padding:10px;
33196
+ border-radius:10px;
33197
+ color: #fff;
33198
+ text-align:center;
33199
+
33200
+ display:none; /* hide by default */
33201
+ }
33202
+
33203
+ &:hover:before {
33204
+ display:block;
33205
+ }
33206
+ `;
33152
33207
  function CoValuesTableView({
33153
33208
  data,
33154
33209
  node,
@@ -33164,25 +33219,41 @@ function CoValuesTableView({
33164
33219
  const resolvedRows = useResolvedCoValues(visibleRows, node);
33165
33220
  const hasMore = visibleRowsCount < coIdArray.length;
33166
33221
  if (!coIdArray.length) {
33167
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { children: "No data to display" });
33222
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { children: "No data to display" });
33168
33223
  }
33169
33224
  if (resolvedRows.length === 0) {
33170
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { children: "Loading..." });
33225
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { children: "Loading..." });
33171
33226
  }
33172
33227
  const keys = Array.from(
33173
- new Set(resolvedRows.flatMap((item) => Object.keys(item.snapshot || {})))
33228
+ new Set(
33229
+ resolvedRows.filter((item) => item.snapshot !== "unavailable").flatMap((item) => Object.keys(item.snapshot || {}))
33230
+ )
33174
33231
  );
33175
33232
  const loadMore = () => {
33176
33233
  setVisibleRowsCount((prevVisibleRows) => prevVisibleRows + 10);
33177
33234
  };
33178
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
33179
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Table, { children: [
33180
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(TableRow, { children: [
33181
- [...keys, "Action"].map((key) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TableHeader, { children: key }, key)),
33182
- onRemove && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TableHeader, {})
33235
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
33236
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Table, { children: [
33237
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(TableRow, { children: [
33238
+ ["ID", ...keys, "Action"].map((key) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableHeader, { children: key }, key)),
33239
+ onRemove && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableHeader, {})
33183
33240
  ] }) }),
33184
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TableBody, { children: resolvedRows.slice(0, visibleRowsCount).map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(TableRow, { children: [
33185
- keys.map((key) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
33241
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableBody, { children: resolvedRows.slice(0, visibleRowsCount).map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(TableRow, { children: [
33242
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text, { mono: true, children: item.snapshot === "unavailable" ? /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(RedTooltip, { "data-text": "Unavailable", children: [
33243
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
33244
+ Icon,
33245
+ {
33246
+ name: "caution",
33247
+ color: "red",
33248
+ style: {
33249
+ display: "inline-block",
33250
+ marginRight: "0.5rem"
33251
+ }
33252
+ }
33253
+ ),
33254
+ visibleRows[index]
33255
+ ] }) : visibleRows[index] }) }),
33256
+ keys.map((key) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableCell, { children: item.snapshot !== "unavailable" && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
33186
33257
  ValueRenderer,
33187
33258
  {
33188
33259
  json: item.snapshot[key],
@@ -33203,7 +33274,7 @@ function CoValuesTableView({
33203
33274
  }
33204
33275
  }
33205
33276
  ) }, key)),
33206
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
33277
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
33207
33278
  Button,
33208
33279
  {
33209
33280
  variant: "secondary",
@@ -33216,18 +33287,18 @@ function CoValuesTableView({
33216
33287
  children: "View"
33217
33288
  }
33218
33289
  ) }),
33219
- onRemove && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Button, { variant: "secondary", onClick: () => onRemove(index), children: "Remove" }) })
33290
+ onRemove && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Button, { variant: "secondary", onClick: () => onRemove(index), children: "Remove" }) })
33220
33291
  ] }, index)) })
33221
33292
  ] }),
33222
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(PaginationContainer, { children: [
33223
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Text, { muted: true, small: true, children: [
33293
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(PaginationContainer, { children: [
33294
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Text, { muted: true, small: true, children: [
33224
33295
  "Showing ",
33225
33296
  Math.min(visibleRowsCount, coIdArray.length),
33226
33297
  " of",
33227
33298
  " ",
33228
33299
  coIdArray.length
33229
33300
  ] }),
33230
- hasMore && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Button, { variant: "secondary", onClick: loadMore, children: "Load more" })
33301
+ hasMore && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Button, { variant: "secondary", onClick: loadMore, children: "Load more" })
33231
33302
  ] })
33232
33303
  ] });
33233
33304
  }
@@ -33241,7 +33312,7 @@ function TableView({
33241
33312
  return Array.isArray(data) && data.every((k) => isCoId(k));
33242
33313
  }, [data]);
33243
33314
  if (isListOfCoValues) {
33244
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
33315
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
33245
33316
  CoValuesTableView,
33246
33317
  {
33247
33318
  data,
@@ -33251,24 +33322,24 @@ function TableView({
33251
33322
  }
33252
33323
  );
33253
33324
  }
33254
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Table, { children: [
33255
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(TableRow, { children: [
33256
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TableHeader, { style: { width: "5rem" }, children: "Index" }),
33257
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TableHeader, { children: "Value" }),
33258
- onRemove && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TableHeader, { children: "Action" })
33325
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Table, { children: [
33326
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(TableRow, { children: [
33327
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableHeader, { style: { width: "5rem" }, children: "Index" }),
33328
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableHeader, { children: "Value" }),
33329
+ onRemove && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableHeader, { children: "Action" })
33259
33330
  ] }) }),
33260
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TableBody, { children: Array.isArray(data) && data?.map((value, index) => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(TableRow, { children: [
33261
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Text, { mono: true, children: index }) }),
33262
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ValueRenderer, { json: value }) }),
33263
- onRemove && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Button, { variant: "secondary", onClick: () => onRemove(index), children: "Remove" }) })
33331
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableBody, { children: Array.isArray(data) && data?.map((value, index) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(TableRow, { children: [
33332
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text, { mono: true, children: index }) }),
33333
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(ValueRenderer, { json: value }) }),
33334
+ onRemove && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Button, { variant: "secondary", onClick: () => onRemove(index), children: "Remove" }) })
33264
33335
  ] }, index)) })
33265
33336
  ] });
33266
33337
  }
33267
33338
 
33268
33339
  // src/inspector/viewer/page.tsx
33269
- var import_jsx_runtime24 = __toESM(require_jsx_runtime(), 1);
33340
+ var import_jsx_runtime25 = __toESM(require_jsx_runtime(), 1);
33270
33341
  var BasePageContainer = import_react12.default.forwardRef(
33271
- ({ isTopLevel, ...rest }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { ref, ...rest })
33342
+ ({ isTopLevel, ...rest }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { ref, ...rest })
33272
33343
  );
33273
33344
  var PageContainer = styled14(BasePageContainer)`
33274
33345
  position: absolute;
@@ -33328,7 +33399,7 @@ function View(props) {
33328
33399
  const { node, onNavigate } = props;
33329
33400
  if (!snapshot || snapshot === "unavailable") return;
33330
33401
  if (type === "costream") {
33331
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
33402
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
33332
33403
  CoStreamView,
33333
33404
  {
33334
33405
  data: snapshot,
@@ -33339,13 +33410,13 @@ function View(props) {
33339
33410
  );
33340
33411
  }
33341
33412
  if (extendedType === "group") {
33342
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(GroupView, { data: snapshot, node, onNavigate });
33413
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(GroupView, { data: snapshot, node, onNavigate });
33343
33414
  }
33344
33415
  if (extendedType === "account") {
33345
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(AccountView, { data: snapshot, node, onNavigate });
33416
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(AccountView, { data: snapshot, node, onNavigate });
33346
33417
  }
33347
33418
  if (type === "coplaintext") {
33348
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CoPlainTextView, { data: snapshot });
33419
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CoPlainTextView, { data: snapshot });
33349
33420
  }
33350
33421
  if (type === "colist") {
33351
33422
  const handleRemove = (index) => {
@@ -33354,7 +33425,7 @@ function View(props) {
33354
33425
  list.delete(index);
33355
33426
  }
33356
33427
  };
33357
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
33428
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
33358
33429
  TableView,
33359
33430
  {
33360
33431
  data: snapshot,
@@ -33365,9 +33436,9 @@ function View(props) {
33365
33436
  );
33366
33437
  }
33367
33438
  if (extendedType === "record") {
33368
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TableView, { data: snapshot, node, onNavigate });
33439
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(TableView, { data: snapshot, node, onNavigate });
33369
33440
  }
33370
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(GridView, { data: snapshot, onNavigate, node });
33441
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(GridView, { data: snapshot, onNavigate, node });
33371
33442
  }
33372
33443
  function Page(props) {
33373
33444
  const {
@@ -33383,13 +33454,13 @@ function Page(props) {
33383
33454
  const coValue = useResolvedCoValue(coId, node);
33384
33455
  const { value, snapshot, type, extendedType } = coValue;
33385
33456
  if (snapshot === "unavailable") {
33386
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { style, children: "Data unavailable" });
33457
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { style, children: "Data unavailable" });
33387
33458
  }
33388
33459
  if (!snapshot) {
33389
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { style });
33460
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { style });
33390
33461
  }
33391
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(PageContainer, { style, className, isTopLevel, children: [
33392
- !isTopLevel && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
33462
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(PageContainer, { style, className, isTopLevel, children: [
33463
+ !isTopLevel && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
33393
33464
  BackButton,
33394
33465
  {
33395
33466
  "aria-label": "Back",
@@ -33399,27 +33470,27 @@ function Page(props) {
33399
33470
  "aria-hidden": "true"
33400
33471
  }
33401
33472
  ),
33402
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(HeaderContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(TitleContainer, { children: [
33403
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Title, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("span", { children: [
33473
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(HeaderContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(TitleContainer, { children: [
33474
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Title, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("span", { children: [
33404
33475
  name,
33405
- typeof snapshot === "object" && "name" in snapshot ? /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("span", { style: { color: "#57534e", fontWeight: 500 }, children: [
33476
+ typeof snapshot === "object" && "name" in snapshot ? /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("span", { style: { color: "#57534e", fontWeight: 500 }, children: [
33406
33477
  " ",
33407
33478
  snapshot.name
33408
33479
  ] }) : null
33409
33480
  ] }) }),
33410
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(BadgeContainer, { children: [
33411
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Badge, { children: type && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(TypeIcon, { type, extendedType }) }),
33412
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Badge, { children: coId })
33481
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(BadgeContainer, { children: [
33482
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Badge, { children: type && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(TypeIcon, { type, extendedType }) }),
33483
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Badge, { children: coId })
33413
33484
  ] })
33414
33485
  ] }) }),
33415
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(ContentContainer, { children: [
33416
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(View, { ...props, coValue }),
33417
- extendedType !== "account" && extendedType !== "group" && /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
33418
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(RoleDisplay, { node, value }),
33419
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Text, { muted: true, children: [
33486
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(ContentContainer, { children: [
33487
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(View, { ...props, coValue }),
33488
+ extendedType !== "account" && extendedType !== "group" && /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
33489
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(RoleDisplay, { node, value }),
33490
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(Text, { muted: true, children: [
33420
33491
  "Owned by",
33421
33492
  " ",
33422
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
33493
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
33423
33494
  AccountOrGroupText,
33424
33495
  {
33425
33496
  coId: value.group.id,
@@ -33437,7 +33508,7 @@ function Page(props) {
33437
33508
  }
33438
33509
 
33439
33510
  // src/inspector/viewer/page-stack.tsx
33440
- var import_jsx_runtime25 = __toESM(require_jsx_runtime(), 1);
33511
+ var import_jsx_runtime26 = __toESM(require_jsx_runtime(), 1);
33441
33512
  var PageStackContainer = styled15("div")`
33442
33513
  position: relative;
33443
33514
  padding: 0 0.75rem;
@@ -33455,9 +33526,9 @@ function PageStack({
33455
33526
  }) {
33456
33527
  const page = path[path.length - 1];
33457
33528
  const index = path.length - 1;
33458
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jsx_runtime25.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(PageStackContainer, { children: [
33529
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_jsx_runtime26.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(PageStackContainer, { children: [
33459
33530
  children,
33460
- node && page && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
33531
+ node && page && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
33461
33532
  Page,
33462
33533
  {
33463
33534
  coId: page.coId,
@@ -33603,7 +33674,7 @@ var GlobalStyles = styled16("div")`
33603
33674
  `;
33604
33675
 
33605
33676
  // src/inspector/viewer/inspector-button.tsx
33606
- var import_jsx_runtime26 = __toESM(require_jsx_runtime(), 1);
33677
+ var import_jsx_runtime27 = __toESM(require_jsx_runtime(), 1);
33607
33678
  import { styled as styled17 } from "goober";
33608
33679
  var StyledInspectorButton = styled17("button")`
33609
33680
  position: fixed;
@@ -33647,8 +33718,8 @@ function InspectorButton({
33647
33718
  position = "right",
33648
33719
  ...buttonProps
33649
33720
  }) {
33650
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(StyledInspectorButton, { position, ...buttonProps, children: [
33651
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
33721
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(StyledInspectorButton, { position, ...buttonProps, children: [
33722
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
33652
33723
  JazzIcon,
33653
33724
  {
33654
33725
  xmlns: "http://www.w3.org/2000/svg",
@@ -33656,7 +33727,7 @@ function InspectorButton({
33656
33727
  height: "115",
33657
33728
  viewBox: "0 0 119 115",
33658
33729
  fill: "none",
33659
- children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
33730
+ children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
33660
33731
  "path",
33661
33732
  {
33662
33733
  fillRule: "evenodd",
@@ -33667,7 +33738,7 @@ function InspectorButton({
33667
33738
  )
33668
33739
  }
33669
33740
  ),
33670
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
33741
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
33671
33742
  "span",
33672
33743
  {
33673
33744
  style: {
@@ -33704,7 +33775,7 @@ function useOpenInspector() {
33704
33775
  // src/inspector/ui/modal.tsx
33705
33776
  var import_react15 = __toESM(require_react(), 1);
33706
33777
  import { styled as styled18 } from "goober";
33707
- var import_jsx_runtime27 = __toESM(require_jsx_runtime(), 1);
33778
+ var import_jsx_runtime28 = __toESM(require_jsx_runtime(), 1);
33708
33779
  var ModalContent = styled18("dialog")`
33709
33780
  background-color: var(--j-background);
33710
33781
  border-radius: var(--j-radius-lg);
@@ -33791,7 +33862,7 @@ var Modal = (0, import_react15.forwardRef)(
33791
33862
  onClose();
33792
33863
  };
33793
33864
  if (!isOpen) return null;
33794
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
33865
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
33795
33866
  ModalContent,
33796
33867
  {
33797
33868
  ref: ref || modalRef,
@@ -33800,17 +33871,17 @@ var Modal = (0, import_react15.forwardRef)(
33800
33871
  "aria-labelledby": "modal-heading",
33801
33872
  onClose,
33802
33873
  children: [
33803
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(ModalHeader, { children: [
33804
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Heading, { id: "modal-heading", children: heading }),
33805
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(CloseButton, { onClick: onClose, "aria-label": "Close modal", type: "button", children: "\xD7" })
33874
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(ModalHeader, { children: [
33875
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Heading, { id: "modal-heading", children: heading }),
33876
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(CloseButton, { onClick: onClose, "aria-label": "Close modal", type: "button", children: "\xD7" })
33806
33877
  ] }),
33807
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(ModalBody, { children: [
33808
- text && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { style: { margin: "0 0 1rem 0", color: "var(--j-text-color)" }, children: text }),
33878
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(ModalBody, { children: [
33879
+ text && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { style: { margin: "0 0 1rem 0", color: "var(--j-text-color)" }, children: text }),
33809
33880
  children
33810
33881
  ] }),
33811
- showButtons && /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(ModalFooter, { children: [
33812
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Button, { variant: "secondary", onClick: handleCancel, children: cancelText }),
33813
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Button, { variant: "primary", onClick: handleConfirm, children: confirmText })
33882
+ showButtons && /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(ModalFooter, { children: [
33883
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Button, { variant: "secondary", onClick: handleCancel, children: cancelText }),
33884
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Button, { variant: "primary", onClick: handleConfirm, children: confirmText })
33814
33885
  ] })
33815
33886
  ]
33816
33887
  }
@@ -33821,14 +33892,14 @@ Modal.displayName = "Modal";
33821
33892
 
33822
33893
  // src/inspector/viewer/delete-local-data.tsx
33823
33894
  var import_react16 = __toESM(require_react(), 1);
33824
- var import_jsx_runtime28 = __toESM(require_jsx_runtime(), 1);
33895
+ var import_jsx_runtime29 = __toESM(require_jsx_runtime(), 1);
33825
33896
  var DELETE_LOCAL_DATA_STRING = "delete my local data";
33826
33897
  function DeleteLocalData() {
33827
33898
  const [showDeleteModal, setShowDeleteModal] = (0, import_react16.useState)(false);
33828
33899
  const [confirmDeleteString, setConfirmDeleteString] = (0, import_react16.useState)("");
33829
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
33830
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Button, { variant: "destructive", onClick: () => setShowDeleteModal(true), children: "Delete my local data" }),
33831
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
33900
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_jsx_runtime29.Fragment, { children: [
33901
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Button, { variant: "destructive", onClick: () => setShowDeleteModal(true), children: "Delete my local data" }),
33902
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
33832
33903
  Modal,
33833
33904
  {
33834
33905
  isOpen: showDeleteModal,
@@ -33836,7 +33907,7 @@ function DeleteLocalData() {
33836
33907
  heading: "Delete Local Data",
33837
33908
  showButtons: false,
33838
33909
  children: [
33839
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
33910
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
33840
33911
  "div",
33841
33912
  {
33842
33913
  style: {
@@ -33847,33 +33918,33 @@ function DeleteLocalData() {
33847
33918
  gap: "0.5rem"
33848
33919
  },
33849
33920
  children: [
33850
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("p", { children: [
33921
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("p", { children: [
33851
33922
  "This action ",
33852
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("strong", { children: "cannot" }),
33923
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("strong", { children: "cannot" }),
33853
33924
  " be undone."
33854
33925
  ] }),
33855
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("p", { children: [
33926
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("p", { children: [
33856
33927
  "Be aware that the following data will be",
33857
33928
  " ",
33858
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("strong", { children: "permanently" }),
33929
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("strong", { children: "permanently" }),
33859
33930
  " deleted:"
33860
33931
  ] }),
33861
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("ul", { style: { listStyleType: "disc", paddingLeft: "1rem" }, children: [
33862
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("li", { children: [
33932
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("ul", { style: { listStyleType: "disc", paddingLeft: "1rem" }, children: [
33933
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("li", { children: [
33863
33934
  "Unsynced data for ",
33864
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("strong", { children: "all apps" }),
33935
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("strong", { children: "all apps" }),
33865
33936
  " on",
33866
33937
  " ",
33867
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("code", { children: window.location.origin })
33938
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("code", { children: window.location.origin })
33868
33939
  ] }),
33869
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("li", { children: "Accounts" }),
33870
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("li", { children: "Logged in sessions" })
33940
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("li", { children: "Accounts" }),
33941
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("li", { children: "Logged in sessions" })
33871
33942
  ] }),
33872
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", {})
33943
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", {})
33873
33944
  ]
33874
33945
  }
33875
33946
  ),
33876
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
33947
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
33877
33948
  Input,
33878
33949
  {
33879
33950
  label: `Type "${DELETE_LOCAL_DATA_STRING}" to confirm`,
@@ -33884,7 +33955,7 @@ function DeleteLocalData() {
33884
33955
  }
33885
33956
  }
33886
33957
  ),
33887
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
33958
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
33888
33959
  "p",
33889
33960
  {
33890
33961
  style: {
@@ -33894,14 +33965,14 @@ function DeleteLocalData() {
33894
33965
  flexDirection: "column",
33895
33966
  gap: "0.5rem"
33896
33967
  },
33897
- children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("small", { children: [
33968
+ children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("small", { children: [
33898
33969
  "Data synced to a sync server will ",
33899
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("strong", { children: "not" }),
33970
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("strong", { children: "not" }),
33900
33971
  " be deleted, and will be synced when you log in again."
33901
33972
  ] })
33902
33973
  }
33903
33974
  ),
33904
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
33975
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
33905
33976
  "div",
33906
33977
  {
33907
33978
  style: {
@@ -33911,8 +33982,8 @@ function DeleteLocalData() {
33911
33982
  gap: "0.5rem"
33912
33983
  },
33913
33984
  children: [
33914
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Button, { variant: "secondary", onClick: () => setShowDeleteModal(false), children: "Cancel" }),
33915
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
33985
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Button, { variant: "secondary", onClick: () => setShowDeleteModal(false), children: "Cancel" }),
33986
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
33916
33987
  Button,
33917
33988
  {
33918
33989
  variant: "destructive",
@@ -33939,7 +34010,7 @@ function DeleteLocalData() {
33939
34010
  }
33940
34011
 
33941
34012
  // src/inspector/viewer/new-app.tsx
33942
- var import_jsx_runtime29 = __toESM(require_jsx_runtime(), 1);
34013
+ var import_jsx_runtime30 = __toESM(require_jsx_runtime(), 1);
33943
34014
  var InspectorContainer = styled19("div")`
33944
34015
  position: fixed;
33945
34016
  height: 50vh;
@@ -33998,12 +34069,12 @@ function JazzInspectorInternal({
33998
34069
  setCoValueId("");
33999
34070
  };
34000
34071
  if (!open) {
34001
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(InspectorButton, { position, onClick: () => setOpen(true) });
34072
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(InspectorButton, { position, onClick: () => setOpen(true) });
34002
34073
  }
34003
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(InspectorContainer, { as: GlobalStyles, style: { zIndex: 999 }, children: [
34004
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(HeaderContainer2, { children: [
34005
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Breadcrumbs, { path, onBreadcrumbClick: goToIndex }),
34006
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Form, { onSubmit: handleCoValueIdSubmit, children: path.length !== 0 && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
34074
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(InspectorContainer, { as: GlobalStyles, style: { zIndex: 999 }, children: [
34075
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(HeaderContainer2, { children: [
34076
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Breadcrumbs, { path, onBreadcrumbClick: goToIndex }),
34077
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Form, { onSubmit: handleCoValueIdSubmit, children: path.length !== 0 && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
34007
34078
  Input,
34008
34079
  {
34009
34080
  label: "CoValue ID",
@@ -34014,24 +34085,24 @@ function JazzInspectorInternal({
34014
34085
  onChange: (e) => setCoValueId(e.target.value)
34015
34086
  }
34016
34087
  ) }),
34017
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(DeleteLocalData, {}),
34018
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Button, { variant: "plain", type: "button", onClick: () => setOpen(false), children: "Close" })
34088
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(DeleteLocalData, {}),
34089
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Button, { variant: "plain", type: "button", onClick: () => setOpen(false), children: "Close" })
34019
34090
  ] }),
34020
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
34091
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
34021
34092
  PageStack,
34022
34093
  {
34023
34094
  path,
34024
34095
  node: localNode,
34025
34096
  goBack,
34026
34097
  addPages,
34027
- children: path.length <= 0 && /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
34098
+ children: path.length <= 0 && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
34028
34099
  InitialForm,
34029
34100
  {
34030
34101
  onSubmit: handleCoValueIdSubmit,
34031
34102
  "aria-hidden": path.length !== 0,
34032
34103
  children: [
34033
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Heading, { children: "Jazz CoValue Inspector" }),
34034
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
34104
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Heading, { children: "Jazz CoValue Inspector" }),
34105
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
34035
34106
  Input,
34036
34107
  {
34037
34108
  label: "CoValue ID",
@@ -34042,10 +34113,10 @@ function JazzInspectorInternal({
34042
34113
  onChange: (e) => setCoValueId(e.target.value)
34043
34114
  }
34044
34115
  ),
34045
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Button, { type: "submit", variant: "primary", children: "Inspect CoValue" }),
34046
- accountId && /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_jsx_runtime29.Fragment, { children: [
34047
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(OrText, { children: "or" }),
34048
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
34116
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Button, { type: "submit", variant: "primary", children: "Inspect CoValue" }),
34117
+ accountId && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
34118
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(OrText, { children: "or" }),
34119
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
34049
34120
  Button,
34050
34121
  {
34051
34122
  variant: "secondary",
@@ -34066,7 +34137,7 @@ function JazzInspectorInternal({
34066
34137
  }
34067
34138
 
34068
34139
  // src/inspector/custom-element.tsx
34069
- var import_jsx_runtime30 = __toESM(require_jsx_runtime(), 1);
34140
+ var import_jsx_runtime31 = __toESM(require_jsx_runtime(), 1);
34070
34141
  var JazzInspectorElement = class extends HTMLElement {
34071
34142
  constructor() {
34072
34143
  super(...arguments);
@@ -34108,7 +34179,7 @@ var JazzInspectorElement = class extends HTMLElement {
34108
34179
  return;
34109
34180
  }
34110
34181
  this.root?.render(
34111
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
34182
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
34112
34183
  JazzInspectorInternal,
34113
34184
  {
34114
34185
  localNode: this.account.$jazz.localNode,
@@ -34234,4 +34305,4 @@ react/cjs/react-jsx-runtime.development.js:
34234
34305
  * LICENSE file in the root directory of this source tree.
34235
34306
  *)
34236
34307
  */
34237
- //# sourceMappingURL=custom-element-G6SPZEBR.js.map
34308
+ //# sourceMappingURL=custom-element-XDJT5T57.js.map