@uniweb/kit 0.5.9 → 0.5.11

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.9",
3
+ "version": "0.5.11",
4
4
  "description": "Standard component library for Uniweb foundations",
5
5
  "type": "module",
6
6
  "exports": {
@@ -104,16 +104,13 @@ async function loadShiki() {
104
104
 
105
105
  shikiLoadPromise = (async () => {
106
106
  try {
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
- ])
107
+ // Use shiki/bundle/full for access to all themes
108
+ const { createHighlighter } = await import('shiki/bundle/full')
112
109
 
113
- // Create highlighter with CSS variables theme
110
+ // Create highlighter with github-dark theme (bundled, looks good for code)
114
111
  // Only load common languages initially, others load on-demand
115
112
  shikiInstance = await createHighlighter({
116
- themes: [cssVariablesTheme],
113
+ themes: ['github-dark'],
117
114
  langs: [
118
115
  'javascript',
119
116
  'typescript',
@@ -159,14 +156,14 @@ async function highlightCode(code, language, highlighter) {
159
156
  // Language not available, fall back to plaintext
160
157
  return highlighter.codeToHtml(code, {
161
158
  lang: 'plaintext',
162
- theme: 'css-variables',
159
+ theme: 'github-dark',
163
160
  })
164
161
  }
165
162
  }
166
163
 
167
164
  return highlighter.codeToHtml(code, {
168
165
  lang: lang === 'plaintext' ? 'text' : lang,
169
- theme: 'css-variables',
166
+ theme: 'github-dark',
170
167
  })
171
168
  } catch (error) {
172
169
  console.warn('[Code] Highlighting failed:', error)
@@ -168,11 +168,11 @@ function getBreakpointClasses(breakpoint) {
168
168
  * SidebarLayout main component
169
169
  *
170
170
  * @param {Object} props
171
- * @param {React.ReactNode} props.header - Header content (from @header sections)
171
+ * @param {React.ReactNode} props.header - Header content (from layout/header.md)
172
172
  * @param {React.ReactNode} props.body - Main body content (page sections)
173
- * @param {React.ReactNode} props.footer - Footer content (from @footer sections)
174
- * @param {React.ReactNode} props.left - Left panel content (from @left sections)
175
- * @param {React.ReactNode} props.right - Right panel content (from @right sections)
173
+ * @param {React.ReactNode} props.footer - Footer content (from layout/footer.md)
174
+ * @param {React.ReactNode} props.left - Left panel content (from layout/left.md)
175
+ * @param {React.ReactNode} props.right - Right panel content (from layout/right.md)
176
176
  * @param {React.ReactNode} props.leftPanel - Alias for left (backwards compatibility)
177
177
  * @param {React.ReactNode} props.rightPanel - Alias for right (backwards compatibility)
178
178
  * @param {string} [props.leftWidth='w-64'] - Tailwind width class for left sidebar