@vuebro/runtime 1.1.33 → 1.1.35

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.html CHANGED
@@ -6,8 +6,8 @@
6
6
  <base href="" />
7
7
  <link rel="preload" crossorigin href="./index.json" as="fetch" />
8
8
  <link rel="preload" crossorigin href="./fonts.json" as="fetch" />
9
- <script type="module" crossorigin src="./assets/index-BqD0k1tK.js"></script>
10
- <link rel="modulepreload" crossorigin href="./assets/unocss-B9TFO0os.js">
9
+ <script type="module" crossorigin src="./assets/index-CsU3N6ga.js"></script>
10
+ <link rel="modulepreload" crossorigin href="./assets/unocss-C_7A3RaX.js">
11
11
  <link rel="modulepreload" crossorigin href="./assets/shared-C5IlS6fE.js">
12
12
  <link rel="stylesheet" crossorigin href="./assets/index-vGiKZPT9.css">
13
13
  </head>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuebro/runtime",
3
- "version": "1.1.33",
3
+ "version": "1.1.35",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "lint": "eslint .",
@@ -10,15 +10,15 @@
10
10
  "dependencies": {
11
11
  "@iconify/vue": "^5.0.0",
12
12
  "@unhead/vue": "^2.0.14",
13
- "@unocss/core": "^66.5.0",
14
- "@unocss/preset-attributify": "^66.5.0",
15
- "@unocss/preset-icons": "^66.5.0",
16
- "@unocss/preset-tagify": "^66.5.0",
17
- "@unocss/preset-typography": "^66.5.0",
18
- "@unocss/preset-web-fonts": "^66.5.0",
19
- "@unocss/preset-wind4": "^66.5.0",
20
- "@unocss/runtime": "^66.5.0",
21
- "@vuebro/loader-sfc": "^1.5.9",
13
+ "@unocss/core": "^66.5.1",
14
+ "@unocss/preset-attributify": "^66.5.1",
15
+ "@unocss/preset-icons": "^66.5.1",
16
+ "@unocss/preset-tagify": "^66.5.1",
17
+ "@unocss/preset-typography": "^66.5.1",
18
+ "@unocss/preset-web-fonts": "^66.5.1",
19
+ "@unocss/preset-wind4": "^66.5.1",
20
+ "@unocss/runtime": "^66.5.1",
21
+ "@vuebro/loader-sfc": "^1.5.10",
22
22
  "@vuebro/shared": "^1.1.10",
23
23
  "@vueuse/core": "^13.9.0",
24
24
  "globals": "^16.3.0",
@@ -41,7 +41,7 @@
41
41
  "prettier": "^3.6.2",
42
42
  "terser": "^5.44.0",
43
43
  "typescript-eslint": "^8.42.0",
44
- "vite": "^7.1.4",
44
+ "vite": "^7.1.5",
45
45
  "vite-plugin-static-copy": "^3.1.2",
46
46
  "vue-eslint-parser": "^10.2.0",
47
47
  "vue-tsc": "^3.0.6"
@@ -1 +0,0 @@
1
- import{defineComponent as e,ref as t,computed as s,watch as a,onUnmounted as r,createElementBlock as o,openBlock as i,Fragment as n,renderList as l,normalizeClass as u,createBlock as d,resolveDynamicComponent as c}from"vue";import{u as p,e as v,h as f,p as m,d as h}from"./shared-C5IlS6fE.js";import{useRoute as g,useRouter as b}from"vue-router";import{t as w,p as _,m as M,r as j,a as S,s as V,_ as k}from"./index-BqD0k1tK.js";import"./unocss-B9TFO0os.js";import"@vuebro/loader-sfc";const x=["id","role"];const E=k(e({__name:"PageView",setup(e,{expose:o}){o();const i=t([]),n=g(),l=b(),u=s(()=>w.value?.siblings??[]),d=[],c=s(()=>u.value.filter(({enabled:e})=>e)),k=()=>{d.forEach(e=>{e()}),d.length=0},x=s(()=>void 0===w.value||w.value.parent?.flat?c.value:[w.value]),E=s(()=>new Map(x.value.map(({id:e=p()})=>[e,!1]))),P=t(new Map(E.value)),$=s(()=>{const[[e,t]=[]]=_;return _.clear(),e&&t&&_.set(e,t),Object.fromEntries(x.value.map(e=>[e.id,M(e)]))});a(i,e=>{k(),setTimeout(()=>{e.forEach(e=>{const{stop:t}=v(e,([{isIntersecting:e,target:{id:t}={}}={}]=[])=>{P.value=new Map(E.value),t&&void 0!==e&&E.value.set(t,e)},{threshold:.1});d.push(t)})})},{deep:!0}),f(window,{behavior:"smooth",onStop:()=>{if(!S.value){const{scrollX:e,scrollY:t}=window,[s]=x.value,[a]=m.value;if(a&&s){const{$children:[{id:r}={}]=[]}=a,o=Math.floor(e)||Math.floor(t)||s.id!==r?[...E.value.entries()].find(([,e])=>e)?.[0]??[...P.value.entries()].find(([,e])=>e)?.[0]??s.id:a.id;o!==n.name&&(V.value=!1,l.push({name:o}).catch(h))}}}}),r(k);const y={refs:i,route:n,router:l,siblings:u,stops:d,$siblings:c,clearStops:k,these:x,intersecting:E,$intersecting:P,templates:$,get uid(){return p},get resolve(){return j},get that(){return w}};return Object.defineProperty(y,"__isScriptSetup",{enumerable:!1,value:!0}),y}}),[["render",function(e,t,s,a,r,p){return i(!0),o(n,null,l(a.these,e=>(i(),o("div",{id:e.id??a.uid(),key:e.id??a.uid(),ref_for:!0,ref:"refs",class:u(e.class),role:e.id===a.that?.id?"main":"section","un-cloak":""},[(i(),d(c(a.templates[e.id]),{guid:e.id,"un-cloak":"",onVnodeMounted:t=>a.resolve(e)},null,8,["guid","onVnodeMounted"]))],10,x))),128)}],["__file","PageView.vue"]]);export{E as default};
@@ -1 +0,0 @@
1
- import{defineComponent as e,computed as t,createBlock as r,openBlock as o,Suspense as u,withCtx as s,createElementBlock as i,createCommentVNode as n,normalizeClass as a,resolveDynamicComponent as d}from"vue";import{p as l,u as p}from"./shared-C5IlS6fE.js";import{m as c,r as m,_ as f}from"./index-BqD0k1tK.js";import"./unocss-B9TFO0os.js";import"vue-router";import"@vuebro/loader-sfc";const v=["id"];const _=f(e({__name:"RootView",setup(e,{expose:r}){r();const[o]=l.value,u=t(()=>o&&c(o)),s={the:o,is:u,get uid(){return p},get resolve(){return m}};return Object.defineProperty(s,"__isScriptSetup",{enumerable:!1,value:!0}),s}}),[["render",function(e,t,l,p,c,m){return o(),r(u,null,{default:s(()=>[p.the?.enabled?(o(),i("div",{key:0,id:p.the?.id??p.uid(),class:a(p.the?.class),"un-cloak":""},[(o(),r(d(p.is),{guid:p.the?.id,"un-cloak":"",onVnodeMounted:t[0]||(t[0]=e=>p.resolve(p.the))},null,8,["guid"]))],10,v)):n("",!0)]),_:1})}],["__file","RootView.vue"]]);export{_ as default};