@innertia-solutions/innertia-nuxt 0.1.49 → 0.1.50

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.
@@ -60,10 +60,13 @@ const viewerType = computed(() => {
60
60
  if (mime === 'text/markdown' || ['md', 'markdown'].includes(ext)) return 'markdown'
61
61
  if (mime === 'text/csv' || ['csv', 'tsv'].includes(ext)) return 'csv'
62
62
 
63
- if (mime.startsWith('text/') || ['log','yml','yaml','env','sh','js','ts','tsx','jsx','css','html','xml','php','py','rb','go','rs','java','sql','toml','ini'].includes(ext)) return 'text'
63
+ // Office por EXTENSIÓN antes del check de text/*: un .xls/.xlsx/.doc/.docx
64
+ // suele llegar con mime mal detectado (p.ej. text/plain u octet-stream) y aun
65
+ // así debe usar el renderer rico (Excel con pestañas / docx), no el de texto.
66
+ if (['xlsx', 'xls'].includes(ext) || mime.includes('spreadsheet') || mime.includes('excel')) return 'xlsx'
67
+ if (['docx', 'doc'].includes(ext) || mime.includes('wordprocessing') || mime.includes('msword')) return 'docx'
64
68
 
65
- if (['xlsx','xls'].includes(ext) || mime.includes('spreadsheet') || mime.includes('excel')) return 'xlsx'
66
- if (['docx','doc'].includes(ext) || mime.includes('wordprocessing') || mime.includes('msword')) return 'docx'
69
+ if (mime.startsWith('text/') || ['log','yml','yaml','env','sh','js','ts','tsx','jsx','css','html','xml','php','py','rb','go','rs','java','sql','toml','ini'].includes(ext)) return 'text'
67
70
 
68
71
  return 'unknown'
69
72
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innertia-solutions/innertia-nuxt",
3
- "version": "0.1.49",
3
+ "version": "0.1.50",
4
4
  "description": "Innertia Solutions — Nuxt layer unificada: core, auth, multitenancy, theme y app contexts",
5
5
  "keywords": [
6
6
  "nuxt",