zova-vite 1.1.50 → 1.1.52

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/dist/index.js CHANGED
@@ -442,6 +442,11 @@ function collectTeleports(html, teleports) {
442
442
  function renderTeleports(teleports) {
443
443
  if (!teleports) return '';
444
444
  return Object.entries(teleports).reduce((all, [key, value]) => {
445
+ // This serializer creates dedicated containers, not arbitrary CSS selector targets.
446
+ const target = /^#[a-z_][\w-]*/i.exec(key);
447
+ if (!target || target[0] !== key) {
448
+ throw new Error(`Unsupported SSR Teleport target ${JSON.stringify(key)}. Only simple #id targets are supported (ASCII letter or underscore first, then letters, digits, underscores, or hyphens). Use a dedicated Teleport container, not body.`);
449
+ }
445
450
  return `${all}<div id="${key.slice(1)}">${value}</div>`;
446
451
  }, '');
447
452
  }
@@ -483,7 +488,7 @@ async function generateEntryFiles(configMeta, configOptions, modulesMeta, env) {
483
488
  for (let index = 1; index < parts.length - 1; index++) {
484
489
  constName += parts[index].charAt(0).toUpperCase() + parts[index].substring(1);
485
490
  }
486
- imports.push(`import ${constName} from '../src/front/config/config/${filename.replace('.ts', '.js')}';`);
491
+ imports.push(`import ${constName} from '../src/front/config/config/${filename}';`);
487
492
  constNames.push(constName);
488
493
  }
489
494
  const contentDest = `${imports.join('\n')}\nexport default [${constNames.join(', ')}];`;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zova-vite",
3
- "version": "1.1.50",
4
- "gitHead": "ac1ffe7f3effb85c5d4896bb26c2c4e8751aa089",
3
+ "version": "1.1.52",
4
+ "gitHead": "d7aa87b8ca78e173f19522bac0e80ad02fea255f",
5
5
  "description": "zova vite",
6
6
  "keywords": [
7
7
  "framework",
@@ -1,6 +1,6 @@
1
1
  import { App, getCurrentInstance } from 'vue';
2
2
  import { BeanControllerPageBase, PluginZova, ZovaApplication } from 'zova';
3
- import { getPluginZovaOptions } from './utils.js';
3
+ import { getPluginZovaOptions } from './utils.ts';
4
4
 
5
5
  export class ControllerPageApp extends BeanControllerPageBase {
6
6
  protected async __init__() {
@@ -1,9 +1,9 @@
1
- import { locales } from '../../src/front/config/locales.js';
2
- <%=sysMonkey?"import { SysMonkey } from '../../src/front/config/monkeySys.js';":''%>
3
- <%=appMonkey?"import { AppMonkey } from '../../src/front/config/monkey.js';":''%>
4
- import config from '../config.js';
5
- import { env } from '../env.js';
6
- import { modulesMeta } from '../modules-meta.js';
1
+ import { locales } from '../../src/front/config/locales.ts';
2
+ <%=sysMonkey?"import { SysMonkey } from '../../src/front/config/monkeySys.ts';":''%>
3
+ <%=appMonkey?"import { AppMonkey } from '../../src/front/config/monkey.ts';":''%>
4
+ import config from '../config.ts';
5
+ import { env } from '../env.ts';
6
+ import { modulesMeta } from '../modules-meta.ts';
7
7
 
8
8
  const options = {
9
9
  modulesMeta,