@haus-storefront-react/shared-types 0.0.7 → 0.0.8

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.0.7 (2025-07-03)
2
+
3
+ This was a version bump only for shared/types to align it with other projects, there were no code changes.
4
+
1
5
  ## 0.0.7-7 (2025-07-03)
2
6
 
3
7
  This was a version bump only for shared/types to align it with other projects, there were no code changes.
package/index.d.ts CHANGED
@@ -207,7 +207,7 @@ export type NumberOperators = {
207
207
  type LoadingKey = string | number | symbol;
208
208
  type LoadingMap = Record<LoadingKey, boolean>;
209
209
  export type Loading<T extends keyof LoadingMap> = Record<T, boolean>;
210
- export type ChildrenProps<ChildProps = object> = ((props: ChildProps) => ReactNode) | ReactNode;
210
+ export type ChildrenProps<ChildProps = object> = ((props: ChildProps) => ReactNode | JSX.Element) | ReactNode | JSX.Element;
211
211
  export type CustomHTMLElement<T = HTMLOrSVGElement, U = object> = Omit<HTMLAttributes<T>, 'children'> & {
212
212
  wrapperTag?: keyof JSX.IntrinsicElements | typeof React.Fragment;
213
213
  } & U;
@@ -1342,11 +1342,11 @@ export declare enum ErrorCode {
1342
1342
  VerificationTokenExpiredError = "VERIFICATION_TOKEN_EXPIRED_ERROR",
1343
1343
  VerificationTokenInvalidError = "VERIFICATION_TOKEN_INVALID_ERROR"
1344
1344
  }
1345
- export interface AsChildProps {
1345
+ export interface AsChildProps<T = ReactNode> {
1346
1346
  asChild?: boolean;
1347
1347
  className?: string;
1348
1348
  style?: CSSProperties;
1349
- children?: ReactNode;
1349
+ children?: T;
1350
1350
  }
1351
1351
  export interface PersistOptions {
1352
1352
  enabled: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haus-storefront-react/shared-types",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {