hey-pharmacist-ecommerce 1.0.8 → 1.1.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.
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "hey-pharmacist-ecommerce",
3
- "version": "1.0.8",
3
+ "version": "1.1.0",
4
4
  "description": "Production-ready, multi-tenant e‑commerce UI + API adapter for Next.js with auth, carts, checkout, orders, theming, and pharmacist-focused UX.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",
8
8
  "files": [
9
9
  "dist",
10
- "src"
10
+ "src",
11
+ "styles"
11
12
  ],
12
13
  "scripts": {
13
14
  "dev": "next dev",
package/src/index.ts CHANGED
@@ -5,6 +5,7 @@ export { EcommerceProvider } from './providers/EcommerceProvider';
5
5
  export { ThemeProvider, useTheme } from './providers/ThemeProvider';
6
6
  export { AuthProvider, useAuth } from './providers/AuthProvider';
7
7
  export { CartProvider, useCart } from './providers/CartProvider';
8
+ export { WishlistProvider, useWishlist } from './providers/WishlistProvider';
8
9
 
9
10
  // Screens
10
11
  export { ShopScreen } from './screens/ShopScreen';
@@ -14,9 +14,10 @@ import { QueryClient } from '@tanstack/react-query';
14
14
  interface EcommerceProviderProps {
15
15
  config: EcommerceConfig;
16
16
  children: React.ReactNode;
17
+ withToaster?: boolean;
17
18
  }
18
19
 
19
- export function EcommerceProvider({ config, children }: EcommerceProviderProps) {
20
+ export function EcommerceProvider({ config, children, withToaster = true }: EcommerceProviderProps) {
20
21
  useEffect(() => {
21
22
  // Initialize API adapter with store configuration
22
23
  // This sets up the real backend APIs with proper authentication and store ID
@@ -33,7 +34,7 @@ export function EcommerceProvider({ config, children }: EcommerceProviderProps)
33
34
  <CartProvider>
34
35
  <WishlistProvider>
35
36
  {children}
36
- <Toaster position="top-right" richColors />
37
+ {withToaster && <Toaster position="top-right" richColors />}
37
38
  </WishlistProvider>
38
39
  </CartProvider>
39
40
  </AuthProvider>
@@ -0,0 +1,34 @@
1
+ /* Precompiled package base styles (no Tailwind directives) */
2
+
3
+ /* Neutral border default similar to border-gray-200 */
4
+ * {
5
+ border-color: rgb(229 231 235);
6
+ }
7
+
8
+ /* Base body styles */
9
+ body {
10
+ background-color: rgb(249 250 251);
11
+ color: rgb(17 24 39);
12
+ -webkit-font-smoothing: antialiased;
13
+ -moz-osx-font-smoothing: grayscale;
14
+ }
15
+
16
+ /* Gradient animation utility used by components */
17
+ @keyframes gradient {
18
+ 0% { background-position: 0% 50%; }
19
+ 50% { background-position: 100% 50%; }
20
+ 100% { background-position: 0% 50%; }
21
+ }
22
+
23
+ .animate-gradient {
24
+ animation: gradient 3s ease infinite;
25
+ background-size: 200% 200%;
26
+ }
27
+
28
+ /* Scrollbar styling */
29
+ ::-webkit-scrollbar { width: 8px; height: 8px; }
30
+ ::-webkit-scrollbar-track { background-color: rgb(243 244 246); }
31
+ ::-webkit-scrollbar-thumb { background-color: rgb(209 213 219); border-radius: 9999px; }
32
+ ::-webkit-scrollbar-thumb:hover { background-color: rgb(156 163 175); }
33
+
34
+
@@ -0,0 +1,3 @@
1
+ @import "../src/styles/globals.css";
2
+
3
+