@xyo-network/react-shared 4.1.6 → 4.1.7

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.
@@ -1,6 +1,8 @@
1
1
  import type { PropsWithChildren } from 'react';
2
2
  export interface LoadResultProps<T> {
3
+ /** @deprecated - use error prop */
3
4
  apiError?: Error;
5
+ /** Defer error handling to the children and load them */
4
6
  error?: boolean;
5
7
  notFound: boolean;
6
8
  searchResult: T | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"LoadResult.d.ts","sourceRoot":"","sources":["../../../src/components/LoadResult.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAK9C,MAAM,WAAW,eAAe,CAAC,CAAC;IAEhC,QAAQ,CAAC,EAAE,KAAK,CAAA;IAEhB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,QAAQ,EAAE,OAAO,CAAA;IACjB,YAAY,EAAE,CAAC,GAAG,SAAS,CAAA;CAC5B;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,iBAAiB,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,2CAWzE"}
1
+ {"version":3,"file":"LoadResult.d.ts","sourceRoot":"","sources":["../../../src/components/LoadResult.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAK9C,MAAM,WAAW,eAAe,CAAC,CAAC;IAChC,mCAAmC;IACnC,QAAQ,CAAC,EAAE,KAAK,CAAA;IAChB,yDAAyD;IACzD,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,QAAQ,EAAE,OAAO,CAAA;IACjB,YAAY,EAAE,CAAC,GAAG,SAAS,CAAA;CAC5B;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,iBAAiB,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,2CAWzE"}
@@ -1,7 +1,9 @@
1
1
  import React from 'react';
2
2
  import type { EllipsisTableCellProps } from './EllipsisTableCell.tsx';
3
3
  export interface AddressTableCellProps extends Omit<EllipsisTableCellProps, 'ref'> {
4
+ /** @deprecated - archives are no longer supported */
4
5
  archive?: string;
6
+ /** @deprecated - use events instead */
5
7
  exploreDomain?: string;
6
8
  link?: boolean;
7
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AddressTableCell.d.ts","sourceRoot":"","sources":["../../../../src/components/TableCell/AddressTableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AAGrE,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,sBAAsB,EAAE,KAAK,CAAC;IAEhF,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;AAED,QAAA,MAAM,gBAAgB,2FAOpB,CAAA;AAGF,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
1
+ {"version":3,"file":"AddressTableCell.d.ts","sourceRoot":"","sources":["../../../../src/components/TableCell/AddressTableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AAGrE,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,sBAAsB,EAAE,KAAK,CAAC;IAChF,qDAAqD;IACrD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,uCAAuC;IACvC,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;AAED,QAAA,MAAM,gBAAgB,2FAOpB,CAAA;AAGF,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
@@ -6,6 +6,12 @@ export interface EllipsisTableCellProps extends Omit<TableCellProps, 'ref'> {
6
6
  link?: boolean;
7
7
  to?: To;
8
8
  value?: string;
9
+ /**
10
+ * Width of the table cell.
11
+ *
12
+ * Note: When using percentages, this value can be different than what you expect
13
+ * if used on a cell that is not the first cell in the first row.
14
+ */
9
15
  width?: string | number;
10
16
  }
11
17
  export declare const EllipsisTableCellWithRef: React.ForwardRefExoticComponent<EllipsisTableCellProps & React.RefAttributes<HTMLElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"EllipsisTableCell.d.ts","sourceRoot":"","sources":["../../../../src/components/TableCell/EllipsisTableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAGnD,OAAO,KAA8B,MAAM,OAAO,CAAA;AAClD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AAU1C,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,cAAc,EAAE,KAAK,CAAC;IACzE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,EAAE,CAAC,EAAE,EAAE,CAAA;IACP,KAAK,CAAC,EAAE,MAAM,CAAA;IAOd,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CACxB;AAED,eAAO,MAAM,wBAAwB,4FAuBpC,CAAA;AAGD,eAAO,MAAM,iBAAiB,4FAA2B,CAAA"}
1
+ {"version":3,"file":"EllipsisTableCell.d.ts","sourceRoot":"","sources":["../../../../src/components/TableCell/EllipsisTableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAGnD,OAAO,KAA8B,MAAM,OAAO,CAAA;AAClD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AAU1C,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,cAAc,EAAE,KAAK,CAAC;IACzE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,EAAE,CAAC,EAAE,EAAE,CAAA;IACP,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CACxB;AAED,eAAO,MAAM,wBAAwB,4FAuBpC,CAAA;AAGD,eAAO,MAAM,iBAAiB,4FAA2B,CAAA"}
@@ -1,2 +1,3 @@
1
+ /** @description This is the width of all the cells (except the one passed) in the row combined and the spacing of the main cell */
1
2
  export declare const getRemainingRowWidth: (row: HTMLElement, forCell?: number) => number;
2
3
  //# sourceMappingURL=getRemainingRowWidth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getRemainingRowWidth.d.ts","sourceRoot":"","sources":["../../../../src/components/TableCell/getRemainingRowWidth.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,oBAAoB,QAAS,WAAW,6BAUpD,CAAA"}
1
+ {"version":3,"file":"getRemainingRowWidth.d.ts","sourceRoot":"","sources":["../../../../src/components/TableCell/getRemainingRowWidth.ts"],"names":[],"mappings":"AAAA,mIAAmI;AACnI,eAAO,MAAM,oBAAoB,QAAS,WAAW,6BAUpD,CAAA"}
@@ -6,5 +6,6 @@ export interface DivinerProviderProps<D> extends ContextExProviderProps, WithChi
6
6
  context: Context<ResolvedDivinerState<D>>;
7
7
  diviner?: D;
8
8
  }
9
+ /** Exposes a resolved diviner */
9
10
  export declare const ResolvedDivinerProvider: <D>({ diviner: divinerProp, required, children, context, }: DivinerProviderProps<D>) => import("react/jsx-runtime").JSX.Element;
10
11
  //# sourceMappingURL=Provider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/contexts/diviner/Provider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAGpC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAA;AACnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAEtD,MAAM,WAAW,oBAAoB,CAAC,CAAC,CAAE,SAAQ,sBAAsB,EAAE,YAAY;IACnF,OAAO,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAA;IACzC,OAAO,CAAC,EAAE,CAAC,CAAA;CACZ;AAGD,eAAO,MAAM,uBAAuB,GAAI,CAAC,0DAEtC,oBAAoB,CAAC,CAAC,CAAC,4CA8BzB,CAAA"}
1
+ {"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/contexts/diviner/Provider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAGpC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAA;AACnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAEtD,MAAM,WAAW,oBAAoB,CAAC,CAAC,CAAE,SAAQ,sBAAsB,EAAE,YAAY;IACnF,OAAO,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAA;IACzC,OAAO,CAAC,EAAE,CAAC,CAAA;CACZ;AAED,iCAAiC;AACjC,eAAO,MAAM,uBAAuB,GAAI,CAAC,0DAEtC,oBAAoB,CAAC,CAAC,CAAC,4CA8BzB,CAAA"}
@@ -1,3 +1,4 @@
1
+ /** @deprecated use useIsSmall instead */
1
2
  export declare const useIsMobile: () => boolean;
2
3
  export declare const useIsSmall: () => boolean;
3
4
  //# sourceMappingURL=useIsMobile.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useIsMobile.d.ts","sourceRoot":"","sources":["../../../src/hooks/useIsMobile.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,WAAW,eAGvB,CAAA;AAED,eAAO,MAAM,UAAU,eAGtB,CAAA"}
1
+ {"version":3,"file":"useIsMobile.d.ts","sourceRoot":"","sources":["../../../src/hooks/useIsMobile.ts"],"names":[],"mappings":"AAIA,yCAAyC;AACzC,eAAO,MAAM,WAAW,eAGvB,CAAA;AAED,eAAO,MAAM,UAAU,eAGtB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/react-shared",
3
- "version": "4.1.6",
3
+ "version": "4.1.7",
4
4
  "description": "Common React library for all XYO projects that use React",
5
5
  "keywords": [
6
6
  "xyo",
@@ -43,7 +43,7 @@
43
43
  "lint-pkg": "npmPkgJsonLint ."
44
44
  },
45
45
  "dependencies": {
46
- "@xylabs/hex": "^4.2.2",
46
+ "@xylabs/hex": "^4.3.2",
47
47
  "@xylabs/react-appbar": "^5.2.2",
48
48
  "@xylabs/react-button": "^5.2.2",
49
49
  "@xylabs/react-flexbox": "^5.2.2",
@@ -53,17 +53,17 @@
53
53
  "@xylabs/react-shared": "^5.2.2",
54
54
  "@xyo-network/payload-builder": "^3.3.0",
55
55
  "@xyo-network/payload-model": "^3.3.0",
56
- "@xyo-network/react-event": "^4.1.6",
56
+ "@xyo-network/react-event": "^4.1.7",
57
57
  "react-router-dom": "^6.27.0"
58
58
  },
59
59
  "devDependencies": {
60
- "@mui/icons-material": "^6.1.4",
61
- "@mui/material": "^6.1.4",
62
- "@mui/styles": "^6.1.4",
60
+ "@mui/icons-material": "^6.1.5",
61
+ "@mui/material": "^6.1.5",
62
+ "@mui/styles": "^6.1.5",
63
63
  "@storybook/react": "^8.3.6",
64
64
  "@xylabs/react-quick-tip-button": "^5.2.2",
65
- "@xylabs/ts-scripts-yarn3": "^4.2.1",
66
- "@xylabs/tsconfig-react": "^4.2.1",
65
+ "@xylabs/ts-scripts-yarn3": "^4.2.3",
66
+ "@xylabs/tsconfig-react": "^4.2.3",
67
67
  "react": "^18.3.1",
68
68
  "react-dom": "^18.3.1",
69
69
  "storybook": "^8.3.6",