@taruvi/navkit 0.0.42 → 0.0.43

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": "@taruvi/navkit",
3
- "version": "0.0.42",
3
+ "version": "0.0.43",
4
4
  "main": "src/App.tsx",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,3 +1,4 @@
1
+ import { version } from '../package.json' with { type: 'json' }
1
2
  import { createContext, startTransition, useCallback, useContext, useEffect, useLayoutEffect, useRef, useState } from 'react'
2
3
  import type { AppData, AppSettings, NavigationContextType, NavkitProviderProps, SiteSettings, UserData } from './types'
3
4
  import type { ThemeMode } from './styles/variables'
@@ -134,6 +135,7 @@ export const NavkitProvider = ({ children, client, onThemeChange, appName }: Nav
134
135
  }, [appName, client])
135
136
 
136
137
  useLayoutEffect(() => {
138
+ console.log(`Taruvi Navkit v${version} initialized`)
137
139
  const init = async () => {
138
140
  library.add(fas, far)
139
141
  await authenticateUser()
package/tsconfig.app.json CHANGED
@@ -9,6 +9,7 @@
9
9
  "skipLibCheck": true,
10
10
 
11
11
  /* Bundler mode */
12
+ "resolveJsonModule": true,
12
13
  "moduleResolution": "bundler",
13
14
  "allowImportingTsExtensions": true,
14
15
  "verbatimModuleSyntax": true,
@@ -24,6 +25,6 @@
24
25
  "noFallthroughCasesInSwitch": true,
25
26
  "noUncheckedSideEffectImports": true
26
27
  },
27
- "include": ["src"],
28
+ "include": ["src", "package.json"],
28
29
  "exclude": ["node_modules"]
29
30
  }