@xyo-network/react-shared 2.49.13 → 2.50.0

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,7 +1,10 @@
1
1
  import { BoxProps, TypographyProps } from '@mui/material';
2
2
  import { WithChildren } from '@xylabs/react-shared';
3
3
  import { ElementType } from 'react';
4
- interface TypographyWithComponentProps<Comp extends ElementType = ElementType> extends TypographyProps {
4
+ export interface EllipsizeRootProps extends BoxProps {
5
+ beforeLineHeight?: string | number;
6
+ }
7
+ export interface TypographyWithComponentProps<Comp extends ElementType = ElementType> extends TypographyProps {
5
8
  component?: Comp;
6
9
  ellipsisPosition?: 'start' | 'end';
7
10
  }
@@ -10,5 +13,4 @@ export interface EllipsizeBoxProps extends BoxProps {
10
13
  typographyProps?: TypographyWithComponentProps;
11
14
  }
12
15
  export declare const EllipsizeBox: import("react").ForwardRefExoticComponent<Omit<WithChildren<EllipsizeBoxProps>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
13
- export {};
14
16
  //# sourceMappingURL=Ellipsize.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Ellipsize.d.ts","sourceRoot":"","sources":["../../../src/components/Ellipsize.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,QAAQ,EAAsB,eAAe,EAAE,MAAM,eAAe,CAAA;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,WAAW,EAAqC,MAAM,OAAO,CAAA;AA0EtE,UAAU,4BAA4B,CAAC,IAAI,SAAS,WAAW,GAAG,WAAW,CAAE,SAAQ,eAAe;IACpG,SAAS,CAAC,EAAE,IAAI,CAAA;IAChB,gBAAgB,CAAC,EAAE,OAAO,GAAG,KAAK,CAAA;CACnC;AAED,MAAM,WAAW,iBAAkB,SAAQ,QAAQ;IACjD,gBAAgB,CAAC,EAAE,OAAO,GAAG,KAAK,CAAA;IAClC,eAAe,CAAC,EAAE,4BAA4B,CAAA;CAC/C;AAED,eAAO,MAAM,YAAY,yIAexB,CAAA"}
1
+ {"version":3,"file":"Ellipsize.d.ts","sourceRoot":"","sources":["../../../src/components/Ellipsize.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,QAAQ,EAAsB,eAAe,EAAE,MAAM,eAAe,CAAA;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,WAAW,EAAqC,MAAM,OAAO,CAAA;AAQtE,MAAM,WAAW,kBAAmB,SAAQ,QAAQ;IAClD,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CACnC;AAgED,MAAM,WAAW,4BAA4B,CAAC,IAAI,SAAS,WAAW,GAAG,WAAW,CAAE,SAAQ,eAAe;IAC3G,SAAS,CAAC,EAAE,IAAI,CAAA;IAChB,gBAAgB,CAAC,EAAE,OAAO,GAAG,KAAK,CAAA;CACnC;AAED,MAAM,WAAW,iBAAkB,SAAQ,QAAQ;IACjD,gBAAgB,CAAC,EAAE,OAAO,GAAG,KAAK,CAAA;IAClC,eAAe,CAAC,EAAE,4BAA4B,CAAA;CAC/C;AAED,eAAO,MAAM,YAAY,yIAexB,CAAA"}
@@ -1,8 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { AlertProps } from '@mui/material';
3
- interface PayloadDataMissingProps extends AlertProps {
3
+ export interface PayloadDataMissingProps extends AlertProps {
4
4
  alertBody?: string;
5
5
  }
6
6
  export declare const PayloadDataMissing: React.FC<PayloadDataMissingProps>;
7
- export {};
8
7
  //# sourceMappingURL=DataMissing.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataMissing.d.ts","sourceRoot":"","sources":["../../../../src/components/pluginValidation/DataMissing.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAS,UAAU,EAAc,MAAM,eAAe,CAAA;AAE7D,UAAU,uBAAwB,SAAQ,UAAU;IAClD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAOhE,CAAA"}
1
+ {"version":3,"file":"DataMissing.d.ts","sourceRoot":"","sources":["../../../../src/components/pluginValidation/DataMissing.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAS,UAAU,EAAc,MAAM,eAAe,CAAA;AAE7D,MAAM,WAAW,uBAAwB,SAAQ,UAAU;IACzD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAOhE,CAAA"}
@@ -1,7 +1,6 @@
1
1
  import { WithChildren } from '@xylabs/react-shared';
2
- type EmptyObject = {};
2
+ export type EmptyObject = {};
3
3
  export type ContextExProviderProps<T extends EmptyObject = EmptyObject> = WithChildren<{
4
4
  required?: boolean;
5
5
  } & T>;
6
- export {};
7
6
  //# sourceMappingURL=ContextExProviderProps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContextExProviderProps.d.ts","sourceRoot":"","sources":["../../../../src/contexts/contextEx/ContextExProviderProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGnD,KAAK,WAAW,GAAG,EAAE,CAAA;AAErB,MAAM,MAAM,sBAAsB,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,IAAI,YAAY,CACpF;IACE,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,GAAG,CAAC,CACN,CAAA"}
1
+ {"version":3,"file":"ContextExProviderProps.d.ts","sourceRoot":"","sources":["../../../../src/contexts/contextEx/ContextExProviderProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGnD,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,MAAM,sBAAsB,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,IAAI,YAAY,CACpF;IACE,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,GAAG,CAAC,CACN,CAAA"}
package/package.json CHANGED
@@ -11,17 +11,17 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "@xylabs/pixel": "^1.4.13",
14
- "@xylabs/react-appbar": "^2.17.2",
15
- "@xylabs/react-async-effect": "^2.17.2",
16
- "@xylabs/react-button": "^2.17.2",
17
- "@xylabs/react-flexbox": "^2.17.2",
18
- "@xylabs/react-link": "^2.17.2",
19
- "@xylabs/react-shared": "^2.17.2",
20
- "@xyo-network/react-event": "^2.49.13"
14
+ "@xylabs/react-appbar": "^2.17.3",
15
+ "@xylabs/react-async-effect": "^2.17.3",
16
+ "@xylabs/react-button": "^2.17.3",
17
+ "@xylabs/react-flexbox": "^2.17.3",
18
+ "@xylabs/react-link": "^2.17.3",
19
+ "@xylabs/react-shared": "^2.17.3",
20
+ "@xyo-network/react-event": "^2.50.0"
21
21
  },
22
22
  "devDependencies": {
23
- "@storybook/react": "^7.0.12",
24
- "@xylabs/react-quick-tip-button": "^2.17.2",
23
+ "@storybook/react": "^7.0.17",
24
+ "@xylabs/react-quick-tip-button": "^2.17.3",
25
25
  "@xylabs/ts-scripts-yarn3": "^2.17.13",
26
26
  "@xylabs/tsconfig-react": "^2.17.13",
27
27
  "typescript": "^5.0.4"
@@ -78,5 +78,5 @@
78
78
  },
79
79
  "sideEffects": false,
80
80
  "types": "dist/types/index.d.ts",
81
- "version": "2.49.13"
81
+ "version": "2.50.0"
82
82
  }
@@ -8,7 +8,7 @@ import { ElementType, forwardRef, useCallback, useState } from 'react'
8
8
 
9
9
  const ComponentName = 'Ellipsize'
10
10
 
11
- interface EllipsizeRootProps extends BoxProps {
11
+ export interface EllipsizeRootProps extends BoxProps {
12
12
  beforeLineHeight?: string | number
13
13
  }
14
14
 
@@ -74,7 +74,7 @@ const useClientHeight = () => {
74
74
  }
75
75
 
76
76
  // See - https://mui.com/material-ui/guides/composition/#with-typescript
77
- interface TypographyWithComponentProps<Comp extends ElementType = ElementType> extends TypographyProps {
77
+ export interface TypographyWithComponentProps<Comp extends ElementType = ElementType> extends TypographyProps {
78
78
  component?: Comp
79
79
  ellipsisPosition?: 'start' | 'end'
80
80
  }
@@ -1,6 +1,6 @@
1
1
  import { Alert, AlertProps, AlertTitle } from '@mui/material'
2
2
 
3
- interface PayloadDataMissingProps extends AlertProps {
3
+ export interface PayloadDataMissingProps extends AlertProps {
4
4
  alertBody?: string
5
5
  }
6
6
 
@@ -1,7 +1,7 @@
1
1
  import { WithChildren } from '@xylabs/react-shared'
2
2
 
3
3
  // eslint-disable-next-line @typescript-eslint/ban-types
4
- type EmptyObject = {}
4
+ export type EmptyObject = {}
5
5
 
6
6
  export type ContextExProviderProps<T extends EmptyObject = EmptyObject> = WithChildren<
7
7
  {
package/typedoc.json ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "$schema": "https://typedoc.org/schema.json",
3
+ "entryPoints": ["src/index.ts"],
4
+ "tsconfig": "./tsconfig.typedoc.json"
5
+ }