@luxfi/core 4.5.1 → 4.5.3

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@luxfi/core",
3
- "version": "4.5.1",
3
+ "version": "4.5.3",
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,9 @@
36
36
  "./conf": "./conf/index.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@hanzo/auth": "2.4.5",
40
- "@hanzo/commerce": "6.4.6",
41
- "@hanzo/ui": "3.6.4",
39
+ "@hanzo/auth": "2.4.6",
40
+ "@hanzo/commerce": "6.4.7",
41
+ "@hanzo/ui": "3.6.5",
42
42
  "@next/third-parties": "^14.1.0",
43
43
  "cookies-next": "^4.1.1",
44
44
  "date-fns": "^3.6.0",
@@ -53,16 +53,16 @@ const RootLayout: React.FC<PropsWithChildren & {
53
53
  }) => {
54
54
 
55
55
  const currentUser = await getUserServerSide()
56
- const usingCommerce = siteDef.ext.commerce && siteDef.ext.commerce.rootNode && siteDef.ext.commerce.families
56
+ const usingCommerce = siteDef?.ext?.commerce && siteDef.ext.commerce.rootNode && siteDef.ext.commerce.families
57
57
 
58
58
  const Guts: React.FC = () => (<>
59
59
  {showHeader && <Header siteDef={siteDef}/>}
60
60
  {children}
61
- {chatbot && (
62
- <ChatWidget
63
- title='LUX'
64
- subtitle='AI'
65
- chatbotUrl='https://lux.chat/iframe'
61
+ {chatbot && (
62
+ <ChatWidget
63
+ title='LUX'
64
+ subtitle='AI'
65
+ chatbotUrl='https://lux.chat/iframe'
66
66
  suggestedQuestions={siteDef.ext?.chatBot?.suggestedQuestions ?? []}
67
67
  />
68
68
  )}
@@ -88,15 +88,15 @@ const RootLayout: React.FC<PropsWithChildren & {
88
88
  <Scripts/>
89
89
  <AuthServiceProvider user={currentUser} conf={{} as AuthServiceConf}>
90
90
  {usingCommerce ? (
91
- <CommerceProvider
92
- rootNode={siteDef.ext.commerce.rootNode}
91
+ <CommerceProvider
92
+ rootNode={siteDef.ext.commerce.rootNode}
93
93
  families={siteDef.ext.commerce.families}
94
94
  options={siteDef.ext.commerce.options}
95
95
  uiSpecs={selectionUISpecifiers}
96
96
  >
97
97
  <Guts />
98
98
  </CommerceProvider>
99
- ) : (
99
+ ) : (
100
100
  <Guts />
101
101
  )}
102
102
  <AuthListener/>