@xyo-network/react-chain-boundwitness 1.0.8 → 1.0.9

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 (41) hide show
  1. package/dist/browser/index.mjs +33 -33
  2. package/dist/browser/index.mjs.map +1 -1
  3. package/dist/types/components/Card/CardContent/CardContent.d.ts +6 -1
  4. package/dist/types/components/Card/CardContent/CardContent.d.ts.map +1 -1
  5. package/dist/types/components/Card/CardContent/SchemaAvatarGroup.d.ts.map +1 -1
  6. package/dist/types/components/Card/CardHeader/CardHeader.d.ts +6 -1
  7. package/dist/types/components/Card/CardHeader/CardHeader.d.ts.map +1 -1
  8. package/dist/types/components/Details/Box/DetailsBox.d.ts.map +1 -1
  9. package/dist/types/components/Details/Card/DetailsCard.d.ts +7 -3
  10. package/dist/types/components/Details/Card/DetailsCard.d.ts.map +1 -1
  11. package/dist/types/components/Details/Card/DetailsCardContent.d.ts +6 -1
  12. package/dist/types/components/Details/Card/DetailsCardContent.d.ts.map +1 -1
  13. package/dist/types/components/Details/Card/DetailsCardInner.d.ts +7 -3
  14. package/dist/types/components/Details/Card/DetailsCardInner.d.ts.map +1 -1
  15. package/dist/types/components/Details/Card/Navigation/BottomNavigation.d.ts +6 -1
  16. package/dist/types/components/Details/Card/Navigation/BottomNavigation.d.ts.map +1 -1
  17. package/dist/types/components/Details/Card/Navigation/NavigationTabs.d.ts.map +1 -1
  18. package/dist/types/components/Details/Details.d.ts +6 -1
  19. package/dist/types/components/Details/Details.d.ts.map +1 -1
  20. package/dist/types/components/_shared/Actions/Verification.d.ts.map +1 -1
  21. package/dist/types/components/_shared/Heading/HashHeadingPaper/HashHeadingPaper.d.ts +6 -1
  22. package/dist/types/components/_shared/Heading/HashHeadingPaper/HashHeadingPaper.d.ts.map +1 -1
  23. package/dist/types/components/_shared/Heading/HeadingPaper/HeadingPaper.d.ts +6 -1
  24. package/dist/types/components/_shared/Heading/HeadingPaper/HeadingPaper.d.ts.map +1 -1
  25. package/dist/types/components/_shared/Signatures/SignatureTableRow.d.ts.map +1 -1
  26. package/package.json +1 -1
  27. package/src/components/Card/CardContent/CardContent.tsx +5 -5
  28. package/src/components/Card/CardContent/SchemaAvatarGroup.tsx +0 -1
  29. package/src/components/Card/CardHeader/CardHeader.tsx +38 -48
  30. package/src/components/Details/Box/DetailsBox.tsx +0 -2
  31. package/src/components/Details/Card/DetailsCard.tsx +5 -3
  32. package/src/components/Details/Card/DetailsCardContent.tsx +5 -5
  33. package/src/components/Details/Card/DetailsCardInner.tsx +35 -38
  34. package/src/components/Details/Card/Navigation/BottomNavigation.tsx +23 -27
  35. package/src/components/Details/Card/Navigation/NavigationTabs.tsx +0 -2
  36. package/src/components/Details/Details.tsx +5 -5
  37. package/src/components/_shared/Actions/Verification.tsx +7 -6
  38. package/src/components/_shared/Heading/HashHeadingPaper/HashHeadingPaper.tsx +5 -5
  39. package/src/components/_shared/Heading/HeadingPaper/HeadingPaper.tsx +3 -3
  40. package/src/components/_shared/Signatures/SignatureTableRow.tsx +0 -1
  41. package/eslint.config.mjs +0 -24
@@ -125,31 +125,31 @@ import { FlexCol } from "@xylabs/react-flexbox";
125
125
  import { usePromise } from "@xylabs/react-promise";
126
126
  import { QuickTipButton as QuickTipButton2 } from "@xylabs/react-quick-tip-button";
127
127
  import { BoundWitnessValidator } from "@xyo-network/boundwitness-validator";
128
- import React5, { forwardRef } from "react";
129
- var InvalidIcon = /* @__PURE__ */ forwardRef((props, ref) => /* @__PURE__ */ React5.createElement(CancelRoundedIcon, {
128
+ import React5 from "react";
129
+ var InvalidIcon = /* @__PURE__ */ __name(({ ref, ...props }) => /* @__PURE__ */ React5.createElement(CancelRoundedIcon, {
130
130
  color: "error",
131
131
  ref,
132
132
  ...props
133
- }));
133
+ }), "InvalidIcon");
134
134
  InvalidIcon.displayName = "InvalidIcon";
135
135
  var BWVerification = /* @__PURE__ */ __name(({ boundwitness, iconColors }) => {
136
136
  const [errors = []] = usePromise(async () => await (boundwitness ? new BoundWitnessValidator(boundwitness) : void 0)?.validate(), [
137
137
  boundwitness
138
138
  ]);
139
139
  return /* @__PURE__ */ React5.createElement(QuickTipButton2, {
140
- Icon: errors.length > 0 ? /* @__PURE__ */ forwardRef((props, ref) => {
140
+ Icon: errors.length > 0 ? ({ ref, ...props }) => {
141
141
  return /* @__PURE__ */ React5.createElement(InvalidIcon, {
142
142
  color: iconColors ? "error" : void 0,
143
143
  ref,
144
144
  ...props
145
145
  });
146
- }) : /* @__PURE__ */ forwardRef((props, ref) => {
146
+ } : ({ ref, ...props }) => {
147
147
  return /* @__PURE__ */ React5.createElement(CheckCircleOutlineRoundedIcon, {
148
148
  color: iconColors ? "success" : void 0,
149
149
  ref,
150
150
  ...props
151
151
  });
152
- }),
152
+ },
153
153
  hoverText: errors.length > 0 ? "Invalid Bound Witness" : "Valid"
154
154
  }, errors.length > 0 ? /* @__PURE__ */ React5.createElement(FlexCol, {
155
155
  flexWrap: "wrap",
@@ -217,11 +217,11 @@ var BWJsonMenuItem = /* @__PURE__ */ __name(({ boundwitness, onClick, onDialogCl
217
217
  // src/components/_shared/Heading/HashHeadingPaper/HashHeadingPaper.tsx
218
218
  import { useTheme } from "@mui/material";
219
219
  import { Identicon } from "@xylabs/react-identicon";
220
- import React10, { forwardRef as forwardRef3 } from "react";
220
+ import React10 from "react";
221
221
 
222
222
  // src/components/_shared/Heading/HeadingPaper/HeadingPaper.tsx
223
223
  import { Paper, styled } from "@mui/material";
224
- import React9, { forwardRef as forwardRef2 } from "react";
224
+ import React9 from "react";
225
225
 
226
226
  // src/components/_shared/Heading/Heading.tsx
227
227
  import { FlexGrowRow as FlexGrowRow2 } from "@xylabs/react-flexbox";
@@ -257,7 +257,7 @@ var BWHeading = /* @__PURE__ */ __name(({ AdornmentEnd, AdornmentStart, heading,
257
257
  }, "BWHeading");
258
258
 
259
259
  // src/components/_shared/Heading/HeadingPaper/HeadingPaper.tsx
260
- var HeadingPaper = /* @__PURE__ */ forwardRef2((props, ref) => {
260
+ var HeadingPaper = /* @__PURE__ */ __name(({ ref, ...props }) => {
261
261
  const { AdornmentStart, AdornmentEnd, paperProps } = props;
262
262
  const { paperProps: excludedPaperProps, ...bwHeadingProps } = props;
263
263
  return /* @__PURE__ */ React9.createElement(StyledHeadingPaper, {
@@ -267,7 +267,7 @@ var HeadingPaper = /* @__PURE__ */ forwardRef2((props, ref) => {
267
267
  ref,
268
268
  ...paperProps
269
269
  }, /* @__PURE__ */ React9.createElement(BWHeading, bwHeadingProps));
270
- });
270
+ }, "HeadingPaper");
271
271
  HeadingPaper.displayName = "HeadingPaper";
272
272
  var StyledHeadingPaper = styled(Paper, {
273
273
  name: "StyledHeadingPaper",
@@ -297,7 +297,7 @@ var StyledHeadingPaper = styled(Paper, {
297
297
  }));
298
298
 
299
299
  // src/components/_shared/Heading/HashHeadingPaper/HashHeadingPaper.tsx
300
- var HashHeadingPaper = /* @__PURE__ */ forwardRef3(({ hash, identiconProps, ...props }, ref) => {
300
+ var HashHeadingPaper = /* @__PURE__ */ __name(({ ref, hash, identiconProps, ...props }) => {
301
301
  const theme = useTheme();
302
302
  return /* @__PURE__ */ React10.createElement(HeadingPaper, {
303
303
  heading: hash,
@@ -317,7 +317,7 @@ var HashHeadingPaper = /* @__PURE__ */ forwardRef3(({ hash, identiconProps, ...p
317
317
  },
318
318
  ...props
319
319
  });
320
- });
320
+ }, "HashHeadingPaper");
321
321
  HashHeadingPaper.displayName = "HashHeadingPaper";
322
322
 
323
323
  // src/components/_shared/Payloads/PayloadsPropertyGroup.tsx
@@ -650,7 +650,7 @@ import { Card } from "@mui/material";
650
650
  import React24 from "react";
651
651
 
652
652
  // src/components/Card/CardContent/CardContent.tsx
653
- import React22, { forwardRef as forwardRef4 } from "react";
653
+ import React22 from "react";
654
654
 
655
655
  // src/components/Card/CardContent/AddressAvatarGroup.tsx
656
656
  import { Avatar, AvatarGroup } from "@mui/material";
@@ -758,7 +758,7 @@ var SchemaAvatarGroup = /* @__PURE__ */ __name(({ schemas, maxAvatars = 4, ...pr
758
758
  }, "SchemaAvatarGroup");
759
759
 
760
760
  // src/components/Card/CardContent/CardContent.tsx
761
- var BoundWitnessCardContent = /* @__PURE__ */ forwardRef4(({ payload, active, ...props }, ref) => {
761
+ var BoundWitnessCardContent = /* @__PURE__ */ __name(({ ref, payload, active, ...props }) => {
762
762
  const boundwitness = payload;
763
763
  return /* @__PURE__ */ React22.createElement(CardContentFlex, {
764
764
  ref,
@@ -769,15 +769,15 @@ var BoundWitnessCardContent = /* @__PURE__ */ forwardRef4(({ payload, active, ..
769
769
  })), /* @__PURE__ */ React22.createElement(CardColumnsFlex, null, /* @__PURE__ */ React22.createElement(CardColumnTitleH2, null, "Signers"), /* @__PURE__ */ React22.createElement(AddressAvatarGroup, {
770
770
  addresses: boundwitness?.addresses
771
771
  })));
772
- });
772
+ }, "BoundWitnessCardContent");
773
773
  BoundWitnessCardContent.displayName = "BoundWitnessCardContent";
774
774
 
775
775
  // src/components/Card/CardHeader/CardHeader.tsx
776
776
  import { CardHeader, styled as styled6, useTheme as useTheme2 } from "@mui/material";
777
777
  import { Identicon as Identicon3 } from "@xylabs/react-identicon";
778
778
  import { usePayloadHash as usePayloadHash5 } from "@xyo-network/react-shared";
779
- import React23, { forwardRef as forwardRef5 } from "react";
780
- var BoundWitnessCardHeader = /* @__PURE__ */ forwardRef5(({ active = false, activeBgColor = true, additionalActions, hideJSONButton, hidePreviousHash, hideValidation, payload, ...props }, ref) => {
779
+ import React23 from "react";
780
+ var BoundWitnessCardHeader = /* @__PURE__ */ __name(({ ref, active = false, activeBgColor = true, additionalActions, hideJSONButton, hidePreviousHash, hideValidation, payload, ...props }) => {
781
781
  const boundwitness = payload;
782
782
  const theme = useTheme2();
783
783
  const hash = usePayloadHash5(boundwitness);
@@ -805,7 +805,7 @@ var BoundWitnessCardHeader = /* @__PURE__ */ forwardRef5(({ active = false, acti
805
805
  }),
806
806
  ...props
807
807
  });
808
- });
808
+ }, "BoundWitnessCardHeader");
809
809
  BoundWitnessCardHeader.displayName = "BoundWitnessCardHeader";
810
810
  var CardHeaderHash = styled6(CardHeader, {
811
811
  name: "CardHeaderHash",
@@ -923,28 +923,28 @@ BoundWitnessDetailsBoxInner.displayName = "BoundWitnessDetailsBoxInner";
923
923
 
924
924
  // src/components/Details/Card/DetailsCard.tsx
925
925
  import { TableHeightProvider as TableHeightProvider2 } from "@xyo-network/react-table";
926
- import React30, { forwardRef as forwardRef9 } from "react";
926
+ import React30 from "react";
927
927
 
928
928
  // src/components/Details/Card/DetailsCardInner.tsx
929
929
  import { ExpandLessRounded as ExpandLessRoundedIcon, ExpandMoreRounded as ExpandMoreRoundedIcon } from "@mui/icons-material";
930
930
  import { Card as Card2, Divider as Divider2, IconButton } from "@mui/material";
931
931
  import { useResetState } from "@xylabs/react-hooks";
932
- import React29, { forwardRef as forwardRef8 } from "react";
932
+ import React29 from "react";
933
933
 
934
934
  // src/components/Details/Card/DetailsCardContent.tsx
935
935
  import { Collapse as Collapse2 } from "@mui/material";
936
936
  import { FlexGrowCol, FlexRow as FlexRow3 } from "@xylabs/react-flexbox";
937
937
  import { CardContentEx } from "@xyo-network/react-card";
938
938
  import { useTableHeight as useTableHeight2 } from "@xyo-network/react-table";
939
- import React28, { forwardRef as forwardRef7, useState as useState5 } from "react";
939
+ import React28, { useState as useState5 } from "react";
940
940
 
941
941
  // src/components/Details/Card/Navigation/BottomNavigation.tsx
942
942
  import { BottomNavigation, BottomNavigationAction, styled as styled7 } from "@mui/material";
943
943
  import { BoundWitnessSchema as BoundWitnessSchema4 } from "@xyo-network/boundwitness-model";
944
- import React26, { forwardRef as forwardRef6 } from "react";
944
+ import React26 from "react";
945
945
  import { FaSignature as FaSignature2 } from "react-icons/fa";
946
946
  import { VscSymbolMethod as VscSymbolMethod3, VscSymbolNamespace as VscSymbolNamespace3 } from "react-icons/vsc";
947
- var BoundWitnessBottomNavigation = /* @__PURE__ */ forwardRef6(({ activeTab = 0, setActiveTab, boundWitness, ...props }, ref) => {
947
+ var BoundWitnessBottomNavigation = /* @__PURE__ */ __name(({ ref, activeTab = 0, setActiveTab, boundWitness, ...props }) => {
948
948
  const payloadCount = boundWitness?.payload_schemas.filter((schema) => schema !== BoundWitnessSchema4).length ?? 0;
949
949
  const boundWitnessCount = boundWitness?.payload_schemas.filter((schema) => schema === BoundWitnessSchema4).length ?? 0;
950
950
  const signers = boundWitness?.addresses.length ?? 0;
@@ -966,7 +966,7 @@ var BoundWitnessBottomNavigation = /* @__PURE__ */ forwardRef6(({ activeTab = 0,
966
966
  label: `Signatures - ${signers}`,
967
967
  icon: /* @__PURE__ */ React26.createElement(FaSignature2, null)
968
968
  }));
969
- });
969
+ }, "BoundWitnessBottomNavigation");
970
970
  BoundWitnessBottomNavigation.displayName = "BoundWitnessBottomNavigation";
971
971
  var StyledBottomNavigation = styled7(BottomNavigation, {
972
972
  name: "StyledBottomNavigation"
@@ -1027,7 +1027,7 @@ var BWNavigationTabs = /* @__PURE__ */ __name(({ setValue, value, boundWitness,
1027
1027
  }, "BWNavigationTabs");
1028
1028
 
1029
1029
  // src/components/Details/Card/DetailsCardContent.tsx
1030
- var DetailsCardContent = /* @__PURE__ */ forwardRef7(({ collapsed, boundwitness, setCollapsed, ...props }, ref) => {
1030
+ var DetailsCardContent = /* @__PURE__ */ __name(({ ref, collapsed, boundwitness, setCollapsed, ...props }) => {
1031
1031
  const { height } = useTableHeight2();
1032
1032
  const [activeTab, setActiveTab] = useState5(0);
1033
1033
  return /* @__PURE__ */ React28.createElement(CardContentEx, {
@@ -1072,11 +1072,11 @@ var DetailsCardContent = /* @__PURE__ */ forwardRef7(({ collapsed, boundwitness,
1072
1072
  setActiveTab,
1073
1073
  boundWitness: boundwitness
1074
1074
  })));
1075
- });
1075
+ }, "DetailsCardContent");
1076
1076
  DetailsCardContent.displayName = "DetailsCardContent";
1077
1077
 
1078
1078
  // src/components/Details/Card/DetailsCardInner.tsx
1079
- var BoundWitnessDetailsCardInner = /* @__PURE__ */ forwardRef8(({ payload, active, ...props }, ref) => {
1079
+ var BoundWitnessDetailsCardInner = /* @__PURE__ */ __name(({ ref, payload, active, ...props }) => {
1080
1080
  const boundwitness = payload;
1081
1081
  const [collapsed, setCollapsed] = useResetState(!active);
1082
1082
  return /* @__PURE__ */ React29.createElement(Card2, {
@@ -1108,11 +1108,11 @@ var BoundWitnessDetailsCardInner = /* @__PURE__ */ forwardRef8(({ payload, activ
1108
1108
  setCollapsed,
1109
1109
  ref
1110
1110
  }));
1111
- });
1111
+ }, "BoundWitnessDetailsCardInner");
1112
1112
  BoundWitnessDetailsCardInner.displayName = "BoundWitnessDetailsCardInner";
1113
1113
 
1114
1114
  // src/components/Details/Card/DetailsCard.tsx
1115
- var BoundWitnessDetailsCard = /* @__PURE__ */ forwardRef9(({ visibleRows, ...props }, ref) => {
1115
+ var BoundWitnessDetailsCard = /* @__PURE__ */ __name(({ ref, visibleRows, ...props }) => {
1116
1116
  return /* @__PURE__ */ React30.createElement(TableHeightProvider2, {
1117
1117
  defaultVisibleRows: visibleRows,
1118
1118
  additionalRows: 1
@@ -1120,13 +1120,13 @@ var BoundWitnessDetailsCard = /* @__PURE__ */ forwardRef9(({ visibleRows, ...pro
1120
1120
  ref,
1121
1121
  ...props
1122
1122
  }));
1123
- });
1123
+ }, "BoundWitnessDetailsCard");
1124
1124
  BoundWitnessDetailsCard.displayName = "BoundWitnessDetailsCard";
1125
1125
 
1126
1126
  // src/components/Details/Details.tsx
1127
1127
  import { FlexCol as FlexCol5 } from "@xylabs/react-flexbox";
1128
1128
  import { PayloadDataDetails, PayloadJsonDetails } from "@xyo-network/react-payload-details";
1129
- import React32, { forwardRef as forwardRef10 } from "react";
1129
+ import React32 from "react";
1130
1130
 
1131
1131
  // src/components/Details/ValidationDetails.tsx
1132
1132
  import { Typography as Typography6 } from "@mui/material";
@@ -1168,7 +1168,7 @@ var BoundWitnessValidationDetails = /* @__PURE__ */ __name(({ value, ...props })
1168
1168
  }, "BoundWitnessValidationDetails");
1169
1169
 
1170
1170
  // src/components/Details/Details.tsx
1171
- var BoundWitnessDetails = /* @__PURE__ */ forwardRef10(({ paper, payload, children, ...props }, ref) => {
1171
+ var BoundWitnessDetails = /* @__PURE__ */ __name(({ ref, paper, payload, children, ...props }) => {
1172
1172
  const boundwitness = payload;
1173
1173
  return /* @__PURE__ */ React32.createElement(FlexCol5, {
1174
1174
  justifyContent: "flex-start",
@@ -1194,7 +1194,7 @@ var BoundWitnessDetails = /* @__PURE__ */ forwardRef10(({ paper, payload, childr
1194
1194
  paper,
1195
1195
  payload: boundwitness
1196
1196
  }), children);
1197
- });
1197
+ }, "BoundWitnessDetails");
1198
1198
  BoundWitnessDetails.displayName = "BoundWitnessDetails [XYO]";
1199
1199
 
1200
1200
  // src/Plugin.ts