@xyo-network/react-chain-boundwitness 1.0.7 → 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 +4 -4
  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
@@ -7,9 +7,10 @@ import type { QuickTipButtonProps } from '@xylabs/react-quick-tip-button'
7
7
  import { QuickTipButton } from '@xylabs/react-quick-tip-button'
8
8
  import type { BoundWitness } from '@xyo-network/boundwitness-model'
9
9
  import { BoundWitnessValidator } from '@xyo-network/boundwitness-validator'
10
- import React, { forwardRef } from 'react'
10
+ import React from 'react'
11
11
 
12
- const InvalidIcon = forwardRef<SVGSVGElement, SvgIconProps>((props, ref) => <CancelRoundedIcon color="error" ref={ref} {...props} />)
12
+ const InvalidIcon = ({ ref, ...props }: SvgIconProps &
13
+ { ref?: React.Ref<SVGSVGElement | null> }) => <CancelRoundedIcon color="error" ref={ref} {...props} />
13
14
  InvalidIcon.displayName = 'InvalidIcon'
14
15
 
15
16
  export interface BWVerification extends QuickTipButtonProps {
@@ -23,12 +24,12 @@ export const BWVerification: React.FC<BWVerification> = ({ boundwitness, iconCol
23
24
  return (
24
25
  <QuickTipButton
25
26
  Icon={errors.length > 0
26
- ? forwardRef((props, ref) => {
27
+ ? ({ ref, ...props }) => {
27
28
  return <InvalidIcon color={iconColors ? 'error' : undefined} ref={ref} {...props} />
28
- })
29
- : forwardRef((props, ref) => {
29
+ }
30
+ : ({ ref, ...props }) => {
30
31
  return <CheckCircleOutlineRoundedIcon color={iconColors ? 'success' : undefined} ref={ref} {...props} />
31
- })}
32
+ }}
32
33
  hoverText={errors.length > 0 ? 'Invalid Bound Witness' : 'Valid'}
33
34
  >
34
35
  {errors.length > 0
@@ -1,7 +1,7 @@
1
1
  import { useTheme } from '@mui/material'
2
2
  import type { IdenticonProps } from '@xylabs/react-identicon'
3
3
  import { Identicon } from '@xylabs/react-identicon'
4
- import React, { forwardRef } from 'react'
4
+ import React from 'react'
5
5
 
6
6
  import type { HeadingPaperProps } from '../HeadingPaper/index.ts'
7
7
  import { HeadingPaper } from '../HeadingPaper/index.ts'
@@ -11,9 +11,9 @@ export interface HashHeadingPaperProps extends HeadingPaperProps {
11
11
  identiconProps?: IdenticonProps
12
12
  }
13
13
 
14
- const HashHeadingPaper = forwardRef<HTMLDivElement, HashHeadingPaperProps>(({
15
- hash, identiconProps, ...props
16
- }, ref) => {
14
+ const HashHeadingPaper = ({
15
+ ref, hash, identiconProps, ...props
16
+ }: HashHeadingPaperProps & { ref?: React.Ref<HTMLDivElement | null> }) => {
17
17
  const theme = useTheme()
18
18
 
19
19
  return (
@@ -38,7 +38,7 @@ const HashHeadingPaper = forwardRef<HTMLDivElement, HashHeadingPaperProps>(({
38
38
  {...props}
39
39
  />
40
40
  )
41
- })
41
+ }
42
42
 
43
43
  HashHeadingPaper.displayName = 'HashHeadingPaper'
44
44
 
@@ -1,6 +1,6 @@
1
1
  import type { PaperProps } from '@mui/material'
2
2
  import { Paper, styled } from '@mui/material'
3
- import React, { forwardRef } from 'react'
3
+ import React from 'react'
4
4
 
5
5
  import { BWHeading } from '../Heading.tsx'
6
6
  import type { BWHeadingProps } from '../HeadingProps.tsx'
@@ -9,7 +9,7 @@ export interface HeadingPaperProps extends BWHeadingProps {
9
9
  paperProps?: PaperProps
10
10
  }
11
11
 
12
- const HeadingPaper = forwardRef<HTMLDivElement, HeadingPaperProps>((props, ref) => {
12
+ const HeadingPaper = ({ ref, ...props }: HeadingPaperProps & { ref?: React.Ref<HTMLDivElement | null> }) => {
13
13
  const {
14
14
  AdornmentStart, AdornmentEnd, paperProps,
15
15
  } = props
@@ -21,7 +21,7 @@ const HeadingPaper = forwardRef<HTMLDivElement, HeadingPaperProps>((props, ref)
21
21
  <BWHeading {...bwHeadingProps} />
22
22
  </StyledHeadingPaper>
23
23
  )
24
- })
24
+ }
25
25
 
26
26
  HeadingPaper.displayName = 'HeadingPaper'
27
27
 
@@ -10,7 +10,6 @@ import { BoundWitnessValidator } from '@xyo-network/boundwitness-validator'
10
10
  import { useEvent } from '@xyo-network/react-event'
11
11
  import { AddressTableCell } from '@xyo-network/react-shared'
12
12
  import React from 'react'
13
- // eslint-disable-next-line import-x/no-internal-modules
14
13
  import { MdClear, MdDone } from 'react-icons/md'
15
14
 
16
15
  type clickableFields = 'address' | 'signature'
package/eslint.config.mjs DELETED
@@ -1,24 +0,0 @@
1
- import {
2
- typescriptConfig,
3
- unicornConfig,
4
- workspacesConfig,
5
- rulesConfig,
6
- sonarConfig,
7
- importConfig,
8
- } from '@xylabs/eslint-config-flat'
9
-
10
- export default [
11
- { ignores: ['.yarn', 'dist', '**/dist/**', 'build', '**/build/**', 'node_modules/**', 'public', '**/storybook-static', '**/.storybook'] },
12
- unicornConfig,
13
- workspacesConfig,
14
- rulesConfig,
15
- typescriptConfig,
16
- importConfig,
17
- sonarConfig,
18
- {
19
- rules: {
20
- 'sonarjs/prefer-single-boolean-return': ['off'],
21
- 'import-x/no-unresolved': ['off'],
22
- },
23
- },
24
- ]