@luxfi/core 5.0.0 → 5.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -105,10 +105,8 @@ const CommerceUIComponent: React.FC = observer(() => {
|
|
105
105
|
}
|
106
106
|
}, [])
|
107
107
|
|
108
|
-
|
109
|
-
|
110
108
|
const handleCheckout = () => {
|
111
|
-
|
109
|
+
router.push('/checkout')
|
112
110
|
}
|
113
111
|
|
114
112
|
// Should only ever be called internally to close
|
@@ -138,7 +136,7 @@ const CommerceUIComponent: React.FC = observer(() => {
|
|
138
136
|
{globalThis?.document?.body && createPortal(
|
139
137
|
<div
|
140
138
|
className={cn(
|
141
|
-
'min-w-[160px] sm:max-w-[320px] w-[calc(100%-
|
139
|
+
'min-w-[160px] sm:max-w-[320px] w-[calc(100%-72px)] ml-2 !h-10',
|
142
140
|
'z-below-modal-2 fixed bottom-[20px] left-0 right-0',
|
143
141
|
'rounded-lg bg-background',
|
144
142
|
'flex',
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@luxfi/core",
|
3
|
-
"version": "5.0.
|
3
|
+
"version": "5.0.2",
|
4
4
|
"description": "Library that contains shared UI primitives, support for a common design system, and other boilerplate support.",
|
5
5
|
"publishConfig": {
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
@@ -36,9 +36,6 @@
|
|
36
36
|
"./conf": "./conf/index.ts"
|
37
37
|
},
|
38
38
|
"dependencies": {
|
39
|
-
"@hanzo/auth": "2.4.6",
|
40
|
-
"@hanzo/commerce": "7.0.0",
|
41
|
-
"@hanzo/ui": "3.7.0",
|
42
39
|
"@next/third-parties": "^14.1.0",
|
43
40
|
"cookies-next": "^4.1.1",
|
44
41
|
"date-fns": "^3.6.0",
|
@@ -48,15 +45,15 @@
|
|
48
45
|
},
|
49
46
|
"peerDependencies": {
|
50
47
|
"@hanzo/auth": "2.4.6",
|
51
|
-
"@hanzo/commerce": "
|
52
|
-
"@hanzo/ui": "3.
|
48
|
+
"@hanzo/commerce": "7.0.0",
|
49
|
+
"@hanzo/ui": "3.7.0",
|
53
50
|
"@hookform/resolvers": "^3.3.2",
|
54
51
|
"lucide-react": "^0.344.0",
|
55
52
|
"next": "14.1.3",
|
56
53
|
"next-themes": "^0.2.1",
|
57
54
|
"react": "^18.2.0",
|
58
55
|
"react-dom": "^18.2.0",
|
59
|
-
"react-hook-form": "^7.
|
56
|
+
"react-hook-form": "^7.51.3",
|
60
57
|
"validator": "^13.11.0",
|
61
58
|
"zod": "3.21.4"
|
62
59
|
},
|
package/root-layout/index.tsx
CHANGED
@@ -11,10 +11,15 @@ import getAppRouterBodyFontClasses from '../next/font/get-app-router-font-classe
|
|
11
11
|
import { FacebookPixelHead } from '../next/analytics/pixel-analytics'
|
12
12
|
|
13
13
|
import { AuthListener, ChatWidget, Header, Scripts } from '../components'
|
14
|
+
import BuyDrawer from '../components/commerce/buy-drawer'
|
14
15
|
|
15
16
|
import { selectionUISpecifiers } from '../conf'
|
16
17
|
import type SiteDef from '../site-def/site-def'
|
17
18
|
|
19
|
+
import '../style/lux-global.css'
|
20
|
+
import '../style/cart-animation.css'
|
21
|
+
import '../style/checkout-animation.css'
|
22
|
+
|
18
23
|
|
19
24
|
// Next 14: https://nextjs.org/docs/app/building-your-application/upgrading/codemods#use-viewport-export
|
20
25
|
const viewport = {
|
@@ -95,6 +100,7 @@ const RootLayout: React.FC<PropsWithChildren & {
|
|
95
100
|
uiSpecs={selectionUISpecifiers}
|
96
101
|
>
|
97
102
|
<Guts />
|
103
|
+
<BuyDrawer />
|
98
104
|
</CommerceProvider>
|
99
105
|
) : (
|
100
106
|
<Guts />
|