@useavalon/avalon 0.1.89 → 0.1.90

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.
Files changed (107) hide show
  1. package/dist/src/build/integration-bundler-plugin.d.ts +1 -1
  2. package/dist/src/build/integration-detection-plugin.d.ts +1 -1
  3. package/dist/src/build/integration-detection-plugin.js +1 -1
  4. package/dist/src/build/integration-resolver-plugin.d.ts +1 -1
  5. package/dist/src/build/island-code-splitting.d.ts +1 -1
  6. package/dist/src/build/island-manifest.d.ts +2 -2
  7. package/dist/src/build/island-manifest.js +1 -1
  8. package/dist/src/build/island-types-generator.js +4 -4
  9. package/dist/src/build/mdx-island-transform.js +1 -1
  10. package/dist/src/build/mdx-plugin.d.ts +2 -2
  11. package/dist/src/build/prop-extractors/index.d.ts +3 -3
  12. package/dist/src/build/prop-extractors/index.js +1 -1
  13. package/dist/src/build/prop-extractors/lit.js +1 -1
  14. package/dist/src/build/prop-extractors/svelte.js +1 -1
  15. package/dist/src/build/sidecar-file-manager.js +1 -1
  16. package/dist/src/client/adapters/index.d.ts +1 -1
  17. package/dist/src/client/adapters/index.js +1 -1
  18. package/dist/src/client/css-hmr-handler.d.ts +2 -2
  19. package/dist/src/client/framework-adapter.d.ts +2 -2
  20. package/dist/src/client/hmr-coordinator.d.ts +6 -6
  21. package/dist/src/client/types/framework-runtime.d.ts +54 -55
  22. package/dist/src/client/types/vite-hmr.d.ts +35 -35
  23. package/dist/src/client/types/vite-virtual-modules.d.ts +56 -28
  24. package/dist/src/core/components/component-analyzer.d.ts +3 -3
  25. package/dist/src/core/components/component-analyzer.js +1 -1
  26. package/dist/src/core/components/component-detection.d.ts +8 -8
  27. package/dist/src/core/components/component-detection.js +1 -1
  28. package/dist/src/core/components/enhanced-framework-detector.d.ts +2 -2
  29. package/dist/src/core/components/enhanced-framework-detector.js +1 -1
  30. package/dist/src/core/components/framework-registry.d.ts +1 -1
  31. package/dist/src/core/integrations/index.d.ts +1 -1
  32. package/dist/src/core/integrations/index.js +1 -1
  33. package/dist/src/core/integrations/registry.js +1 -1
  34. package/dist/src/core/layout/enhanced-layout-resolver.d.ts +8 -8
  35. package/dist/src/core/layout/enhanced-layout-resolver.js +1 -1
  36. package/dist/src/core/layout/layout-cache-manager.d.ts +1 -1
  37. package/dist/src/core/layout/layout-composer.d.ts +2 -2
  38. package/dist/src/core/layout/layout-composer.js +1 -1
  39. package/dist/src/core/layout/layout-data-loader.d.ts +2 -2
  40. package/dist/src/core/layout/layout-discovery.d.ts +2 -2
  41. package/dist/src/core/layout/layout-discovery.js +1 -1
  42. package/dist/src/core/layout/layout-matcher.d.ts +1 -1
  43. package/dist/src/core/layout/layout-matcher.js +1 -1
  44. package/dist/src/core/layout/layout-types.d.ts +3 -3
  45. package/dist/src/islands/component-analysis.d.ts +4 -4
  46. package/dist/src/islands/component-analysis.js +1 -1
  47. package/dist/src/islands/css-utils.js +1 -1
  48. package/dist/src/islands/discovery/index.d.ts +9 -9
  49. package/dist/src/islands/discovery/index.js +1 -1
  50. package/dist/src/islands/discovery/registry.d.ts +1 -1
  51. package/dist/src/islands/discovery/resolver.d.ts +1 -1
  52. package/dist/src/islands/discovery/resolver.js +2 -2
  53. package/dist/src/islands/discovery/scanner.d.ts +1 -1
  54. package/dist/src/islands/discovery/scanner.js +1 -1
  55. package/dist/src/islands/discovery/validator.d.ts +1 -1
  56. package/dist/src/islands/discovery/validator.js +9 -9
  57. package/dist/src/islands/discovery/watcher.d.ts +1 -1
  58. package/dist/src/islands/discovery/watcher.js +1 -1
  59. package/dist/src/islands/framework-detection.d.ts +3 -3
  60. package/dist/src/islands/framework-detection.js +1 -1
  61. package/dist/src/islands/island.js +1 -1
  62. package/dist/src/islands/universal-head-collector.d.ts +2 -2
  63. package/dist/src/middleware/discovery.d.ts +1 -1
  64. package/dist/src/middleware/discovery.js +1 -1
  65. package/dist/src/middleware/executor.d.ts +2 -2
  66. package/dist/src/middleware/index.d.ts +3 -3
  67. package/dist/src/middleware/index.js +1 -1
  68. package/dist/src/middleware/types.d.ts +2 -2
  69. package/dist/src/nitro/error-handler.d.ts +2 -2
  70. package/dist/src/nitro/error-handler.js +2 -2
  71. package/dist/src/nitro/index.d.ts +8 -8
  72. package/dist/src/nitro/index.js +1 -1
  73. package/dist/src/nitro/island-manifest.d.ts +1 -1
  74. package/dist/src/nitro/island-manifest.js +1 -1
  75. package/dist/src/nitro/middleware-adapter.d.ts +2 -2
  76. package/dist/src/nitro/types.d.ts +4 -4
  77. package/dist/src/render/isolated-ssr-renderer.d.ts +2 -2
  78. package/dist/src/render/isolated-ssr-renderer.js +1 -1
  79. package/dist/src/render/ssr.d.ts +5 -5
  80. package/dist/src/render/ssr.js +4 -4
  81. package/dist/src/schemas/api.d.ts +1 -1
  82. package/dist/src/schemas/core.d.ts +1 -1
  83. package/dist/src/schemas/index.d.ts +8 -8
  84. package/dist/src/schemas/index.js +1 -1
  85. package/dist/src/schemas/routing/index.d.ts +1 -1
  86. package/dist/src/schemas/routing/index.js +1 -1
  87. package/dist/src/schemas/routing.d.ts +4 -4
  88. package/dist/src/schemas/routing.js +1 -1
  89. package/dist/src/types/image.d.ts +38 -38
  90. package/dist/src/types/island-jsx.d.ts +16 -16
  91. package/dist/src/types/mdx.d.ts +2 -2
  92. package/dist/src/types/routing.d.ts +7 -7
  93. package/dist/src/types/routing.js +1 -1
  94. package/dist/src/types/virtual-modules.d.ts +1 -1
  95. package/dist/src/types/vite-env.d.ts +1 -1
  96. package/dist/src/vite-plugin/auto-discover.js +1 -1
  97. package/dist/src/vite-plugin/config.d.ts +1 -1
  98. package/dist/src/vite-plugin/image-optimization.d.ts +2 -2
  99. package/dist/src/vite-plugin/image-optimization.js +1 -1
  100. package/dist/src/vite-plugin/island-sidecar-plugin.js +1 -1
  101. package/dist/src/vite-plugin/module-discovery.js +1 -1
  102. package/dist/src/vite-plugin/plugin.d.ts +2 -2
  103. package/dist/src/vite-plugin/plugin.js +1 -1
  104. package/dist/src/vite-plugin/types.d.ts +1 -2
  105. package/package.json +3 -2
  106. package/dist/src/client/main-slim.js +0 -1
  107. package/dist/src/client/strategies.js +0 -1
@@ -277,5 +277,4 @@ export interface ResolvedAvalonConfig {
277
277
  /**
278
278
  * Re-export Nitro configuration types for convenience
279
279
  */
280
- export type { AvalonNitroConfig } from "../nitro/config.ts";
281
- export type { CacheOptions, RouteRule, NitroConfigOutput, AvalonRuntimeConfig, StaticAssetsConfig, } from "../nitro/config.ts";
280
+ export type { AvalonNitroConfig, AvalonRuntimeConfig, CacheOptions, NitroConfigOutput, RouteRule, StaticAssetsConfig, } from "../nitro/config.ts";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useavalon/avalon",
3
- "version": "0.1.89",
3
+ "version": "0.1.90",
4
4
  "description": "Multi-framework islands architecture for the modern web",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -144,7 +144,7 @@
144
144
  }
145
145
  },
146
146
  "dependencies": {
147
- "@useavalon/core": "^0.1.7",
147
+ "@useavalon/core": "^0.1.8",
148
148
  "@mdx-js/rollup": "^3.0.0",
149
149
  "h3": "^2.0.1-rc.16",
150
150
  "marked": "^17.0.4",
@@ -155,6 +155,7 @@
155
155
  "remark-gfm": "^4.0.0",
156
156
  "remark-mdx-frontmatter": "^5.0.0",
157
157
  "unified": "^11.0.0",
158
+ "urlpattern-polyfill": "^10.1.0",
158
159
  "zod": "^4.3.6"
159
160
  }
160
161
  }
@@ -1 +0,0 @@
1
- (()=>{var e=document.querySelectorAll(`[data-framework]`);if(!e.length)return;var t=!1;e.forEach(e=>{var r=e.dataset.framework,i=e.dataset.condition||`on:client`;e.dataset.renderStrategy!==`ssr-only`&&(i===`on:client`?(window.requestIdleCallback||requestAnimationFrame)(()=>{n(e,r)}):t=!0)}),t&&import(`./strategies.js`).then(t=>{e.forEach(e=>{var r=e.dataset.condition||`on:client`;r!==`on:client`&&e.dataset.renderStrategy!==`ssr-only`&&!e.dataset.hydrated&&t.setup(e,e.dataset.framework,r,n)})});async function n(e,t){if(!e.dataset.hydrated){var n=e.dataset.src;if(n)try{var r=e.dataset.props?JSON.parse(e.dataset.props):{},i=await import(`virtual:avalon/integration-loader`);t===`lit`&&await i.preLitHydration();var a=await import(n),o=a.default||Object.values(a).find(e=>typeof e==`function`&&e.prototype)||a,s=await i.loadIntegrationModule(t);s.hydrate&&await s.hydrate(e,o,r),e.dataset.hydrated=`true`}catch(e){console.error(`Hydration error for `+t+` island `+n+`:`,e)}}}})();
@@ -1 +0,0 @@
1
- export function setup(e,t,n,r){if(n===`on:visible`)try{var i=new IntersectionObserver(n=>{n[0].isIntersecting&&(r(e,t),i.disconnect())},{rootMargin:`50px`,threshold:0});i.observe(e.firstElementChild||e)}catch{r(e,t)}else if(n===`on:interaction`){var a=[`click`,`touchstart`,`mouseenter`,`focusin`],o=!1,s=e.firstElementChild||e,c=()=>{o||(o=!0,a.forEach(e=>{s.removeEventListener(e,c)}),r(e,t))};a.forEach(e=>{s.addEventListener(e,c,{once:!0,passive:!0})})}else if(n===`on:idle`){var l=()=>{r(e,t)};`requestIdleCallback`in globalThis?globalThis.requestIdleCallback(l,{timeout:5e3}):document.readyState===`complete`?setTimeout(l,200):globalThis.addEventListener(`load`,()=>{setTimeout(l,200)},{once:!0})}else if(n.startsWith(`media:`)){var u=n.slice(6);try{var d=globalThis.matchMedia(u);d.matches?r(e,t):d.addEventListener(`change`,function n(i){i.matches&&(r(e,t),d.removeEventListener(`change`,n))})}catch{r(e,t)}}else e.dataset.customDirective?import(`./custom-directives.js`).then(i=>{i.hasClientDirective&&i.hasClientDirective(n)?i.executeCustomDirective(e,n,()=>{r(e,t)}):r(e,t)}).catch(()=>{r(e,t)}):r(e,t)}