@betterstore/react 0.3.25 → 0.3.27

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,5 +1,17 @@
1
1
  # @betterstore/sdk
2
2
 
3
+ ## 0.3.27
4
+
5
+ ### Patch Changes
6
+
7
+ - bug fixes
8
+
9
+ ## 0.3.26
10
+
11
+ ### Patch Changes
12
+
13
+ - bug fix
14
+
3
15
  ## 0.3.25
4
16
 
5
17
  ### Patch Changes
@@ -10,12 +10,12 @@ type LineItemOptionalParams = {
10
10
  }[];
11
11
  metadata?: RecursiveRecord;
12
12
  };
13
- interface LineItem extends Pick<SDKLineItemCreate, "metadata" | "quantity" | "variantOptions" | "productId" | "product"> {
13
+ export interface CartLineItem extends Pick<SDKLineItemCreate, "metadata" | "quantity" | "variantOptions" | "productId" | "product"> {
14
14
  id: string;
15
15
  selectedVariant: Product["productVariants"][number] | null;
16
16
  }
17
17
  export interface Cart {
18
- lineItems: LineItem[];
18
+ lineItems: CartLineItem[];
19
19
  addItem: (product: Omit<Product, "productVariants"> & {
20
20
  productVariants?: Product["productVariants"];
21
21
  }, additionalParams?: LineItemOptionalParams) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/react",
3
- "version": "0.3.25",
3
+ "version": "0.3.27",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -19,27 +19,27 @@
19
19
  "author": "Better Store",
20
20
  "license": "MIT",
21
21
  "devDependencies": {
22
- "@betterstore/sdk": "^0.3.75",
23
- "@changesets/cli": "^2.28.1",
22
+ "@betterstore/sdk": "^0.3.77",
23
+ "@changesets/cli": "^2.29.4",
24
24
  "@rollup/plugin-commonjs": "^28.0.3",
25
25
  "@rollup/plugin-json": "^6.1.0",
26
- "@rollup/plugin-node-resolve": "^16.0.0",
26
+ "@rollup/plugin-node-resolve": "^16.0.1",
27
27
  "@rollup/plugin-typescript": "^12.1.2",
28
- "@tailwindcss/postcss": "^4.0.12",
29
- "@types/node": "^22.13.10",
30
- "@types/react": "^18.3.18",
31
- "@types/react-dom": "^18.3.5",
32
- "@vitejs/plugin-react": "^4.3.4",
33
- "autoprefixer": "^10.4.20",
34
- "next": "^15.2.1",
28
+ "@tailwindcss/postcss": "^4.1.7",
29
+ "@types/node": "^22.15.22",
30
+ "@types/react": "^18.3.23",
31
+ "@types/react-dom": "^18.3.7",
32
+ "@vitejs/plugin-react": "^4.5.0",
33
+ "autoprefixer": "^10.4.21",
34
+ "next": "^15.3.2",
35
35
  "postcss": "^8.5.3",
36
36
  "prettier": "^3.5.3",
37
- "rollup": "^4.35.0",
38
- "tailwindcss": "^4.0.12",
37
+ "rollup": "^4.41.1",
38
+ "tailwindcss": "^4.1.7",
39
39
  "tslib": "^2.8.1",
40
- "tsup": "^8.4.0",
41
- "typescript": "^5.8.2",
42
- "vite": "^6.2.1"
40
+ "tsup": "^8.5.0",
41
+ "typescript": "^5.8.3",
42
+ "vite": "^6.3.5"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "react": "^18.0.0",
@@ -47,38 +47,38 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@hookform/resolvers": "^4.1.3",
50
- "@radix-ui/react-checkbox": "^1.1.4",
51
- "@radix-ui/react-dialog": "^1.1.6",
52
- "@radix-ui/react-dropdown-menu": "^2.1.6",
53
- "@radix-ui/react-label": "^2.1.2",
54
- "@radix-ui/react-popover": "^1.1.6",
55
- "@radix-ui/react-radio-group": "^1.2.3",
56
- "@radix-ui/react-select": "^2.1.6",
57
- "@radix-ui/react-separator": "^1.1.2",
58
- "@radix-ui/react-slot": "^1.1.2",
59
- "@stripe/react-stripe-js": "^3.3.0",
50
+ "@radix-ui/react-checkbox": "^1.3.2",
51
+ "@radix-ui/react-dialog": "^1.1.14",
52
+ "@radix-ui/react-dropdown-menu": "^2.1.15",
53
+ "@radix-ui/react-label": "^2.1.7",
54
+ "@radix-ui/react-popover": "^1.1.14",
55
+ "@radix-ui/react-radio-group": "^1.3.7",
56
+ "@radix-ui/react-select": "^2.2.5",
57
+ "@radix-ui/react-separator": "^1.1.7",
58
+ "@radix-ui/react-slot": "^1.2.3",
59
+ "@stripe/react-stripe-js": "^3.7.0",
60
60
  "@stripe/stripe-js": "^5.10.0",
61
- "axios": "^1.8.2",
61
+ "axios": "^1.9.0",
62
62
  "class-variance-authority": "^0.7.1",
63
63
  "clsx": "^2.1.1",
64
64
  "cmdk": "1.0.0",
65
- "country-data-list": "^1.4.0",
65
+ "country-data-list": "^1.4.1",
66
66
  "i18next": "^24.2.3",
67
- "i18next-browser-languagedetector": "^8.0.4",
67
+ "i18next-browser-languagedetector": "^8.1.0",
68
68
  "i18next-http-backend": "^3.0.2",
69
69
  "lucide-react": "^0.479.0",
70
- "motion": "^12.5.0",
70
+ "motion": "^12.15.0",
71
71
  "next-themes": "^0.4.6",
72
72
  "react-circle-flags": "^0.0.23",
73
- "react-hook-form": "^7.54.2",
74
- "react-i18next": "^15.4.1",
73
+ "react-hook-form": "^7.56.4",
74
+ "react-i18next": "^15.5.2",
75
75
  "rollup-plugin-postcss": "^4.0.2",
76
76
  "sonner": "^2.0.3",
77
77
  "tailwind": "^4.0.0",
78
- "tailwind-merge": "^3.0.2",
78
+ "tailwind-merge": "^3.3.0",
79
79
  "tailwindcss-animate": "^1.0.7",
80
- "zod": "^3.24.2",
81
- "zustand": "^5.0.3"
80
+ "zod": "^3.25.30",
81
+ "zustand": "^5.0.5"
82
82
  },
83
83
  "scripts": {
84
84
  "dev": "vite",
@@ -1,23 +1,9 @@
1
1
  /** @type {import('tailwindcss').Config} */
2
2
  module.exports = {
3
- prefix: "betterstore-",
4
3
  content: ["./src/**/*.{js,jsx,ts,tsx}"],
5
- corePlugins: {
6
- preflight: false, // Disable Tailwind's base styles to prevent conflicts
7
- },
8
4
  important: true, // This ensures your styles take precedence
9
5
  theme: {
10
6
  extend: {},
11
7
  },
12
8
  plugins: [],
13
- // Prefix all CSS variables to prevent leakage
14
- future: {
15
- hoverOnlyWhenSupported: true,
16
- },
17
- // This ensures all CSS variables are prefixed
18
- darkMode: "class",
19
- // Custom prefix for CSS variables
20
- cssVariables: {
21
- prefix: "betterstore-",
22
- },
23
9
  };