@uniweb/kit 0.5.7 → 0.5.9

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": "@uniweb/kit",
3
- "version": "0.5.7",
3
+ "version": "0.5.9",
4
4
  "description": "Standard component library for Uniweb foundations",
5
5
  "type": "module",
6
6
  "exports": {
@@ -46,7 +46,7 @@
46
46
  "fuse.js": "^7.0.0",
47
47
  "shiki": "^3.0.0",
48
48
  "tailwind-merge": "^2.6.0",
49
- "@uniweb/core": "0.4.6"
49
+ "@uniweb/core": "0.4.7"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "react": "^18.0.0 || ^19.0.0",
@@ -104,12 +104,16 @@ async function loadShiki() {
104
104
 
105
105
  shikiLoadPromise = (async () => {
106
106
  try {
107
- const { createHighlighter } = await import('shiki')
107
+ // Import Shiki and the css-variables theme (not bundled by default in Shiki 3.x)
108
+ const [{ createHighlighter }, cssVariablesTheme] = await Promise.all([
109
+ import('shiki'),
110
+ import('shiki/themes/css-variables.mjs').then(m => m.default)
111
+ ])
108
112
 
109
113
  // Create highlighter with CSS variables theme
110
114
  // Only load common languages initially, others load on-demand
111
115
  shikiInstance = await createHighlighter({
112
- themes: ['css-variables'],
116
+ themes: [cssVariablesTheme],
113
117
  langs: [
114
118
  'javascript',
115
119
  'typescript',