@haus-storefront-react/shared-types 0.0.7-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,11 @@
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
+
5
+ ## 0.0.7-7 (2025-07-03)
6
+
7
+ This was a version bump only for shared/types to align it with other projects, there were no code changes.
8
+
1
9
  ## 0.0.7-6 (2025-07-03)
2
10
 
3
11
  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;
@@ -521,6 +521,7 @@ export interface ShippingMethod {
521
521
  name: string;
522
522
  }
523
523
  export interface ShippingLine {
524
+ id: string;
524
525
  priceWithTax: Price;
525
526
  price: Price;
526
527
  shippingMethod: ShippingMethod;
@@ -1341,11 +1342,11 @@ export declare enum ErrorCode {
1341
1342
  VerificationTokenExpiredError = "VERIFICATION_TOKEN_EXPIRED_ERROR",
1342
1343
  VerificationTokenInvalidError = "VERIFICATION_TOKEN_INVALID_ERROR"
1343
1344
  }
1344
- export interface AsChildProps {
1345
+ export interface AsChildProps<T = ReactNode> {
1345
1346
  asChild?: boolean;
1346
1347
  className?: string;
1347
1348
  style?: CSSProperties;
1348
- children?: ReactNode;
1349
+ children?: T;
1349
1350
  }
1350
1351
  export interface PersistOptions {
1351
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-7",
3
+ "version": "0.0.8",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {