@vuebro/runtime 1.0.5 → 1.1.3

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-CXz5Q8Vp.js"></script>
10
- <link rel="modulepreload" crossorigin href="./assets/sucrase-BkhxaZVA.js">
9
+ <script type="module" crossorigin src="./assets/index-aXkIjkVP.js"></script>
10
+ <link rel="modulepreload" crossorigin href="./assets/sucrase-B167QcXN.js">
11
11
  <link rel="modulepreload" crossorigin href="./assets/compiler-sfc-CHbDt8t7.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.0.5",
3
+ "version": "1.1.3",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "lint": "eslint .",
@@ -9,18 +9,18 @@
9
9
  },
10
10
  "dependencies": {
11
11
  "@iconify/vue": "^5.0.0",
12
- "@unhead/vue": "^2.0.11",
13
- "@unocss/core": "^66.3.2",
14
- "@unocss/preset-attributify": "^66.3.2",
15
- "@unocss/preset-icons": "^66.3.2",
16
- "@unocss/preset-tagify": "^66.3.2",
17
- "@unocss/preset-typography": "^66.3.2",
18
- "@unocss/preset-web-fonts": "^66.3.2",
19
- "@unocss/preset-wind4": "^66.3.2",
20
- "@unocss/runtime": "^66.3.2",
21
- "@vuebro/sfc-loader": "^1.2.20",
22
- "@vuebro/shared": "^0.6.2",
23
- "@vueuse/core": "^13.4.0",
12
+ "@unhead/vue": "^2.0.12",
13
+ "@unocss/core": "^66.3.3",
14
+ "@unocss/preset-attributify": "^66.3.3",
15
+ "@unocss/preset-icons": "^66.3.3",
16
+ "@unocss/preset-tagify": "^66.3.3",
17
+ "@unocss/preset-typography": "^66.3.3",
18
+ "@unocss/preset-web-fonts": "^66.3.3",
19
+ "@unocss/preset-wind4": "^66.3.3",
20
+ "@unocss/runtime": "^66.3.3",
21
+ "@vuebro/sfc-loader": "^1.2.21",
22
+ "@vuebro/shared": "^0.6.12",
23
+ "@vueuse/core": "^13.5.0",
24
24
  "globals": "^16.3.0",
25
25
  "uuid": "^11.1.0",
26
26
  "vue": "^3.5.17",
@@ -28,22 +28,22 @@
28
28
  },
29
29
  "devDependencies": {
30
30
  "@eslint/eslintrc": "^3.3.1",
31
- "@eslint/js": "^9.30.0",
32
- "@types/node": "^24.0.8",
31
+ "@eslint/js": "^9.30.1",
32
+ "@types/node": "^24.0.10",
33
33
  "@vitejs/plugin-vue": "^6.0.0",
34
34
  "eslint-config-prettier": "^10.1.5",
35
35
  "eslint-import-resolver-typescript": "^4.4.4",
36
36
  "eslint-plugin-import-x": "^4.16.1",
37
37
  "eslint-plugin-perfectionist": "^4.15.0",
38
38
  "eslint-plugin-prettier": "^5.5.1",
39
- "eslint-plugin-vue": "^10.2.0",
39
+ "eslint-plugin-vue": "^10.3.0",
40
40
  "jiti": "^2.4.2",
41
41
  "prettier": "^3.6.2",
42
- "typescript-eslint": "^8.35.1",
43
- "vite": "^7.0.0",
42
+ "typescript-eslint": "^8.36.0",
43
+ "vite": "^7.0.3",
44
44
  "vite-plugin-static-copy": "^3.1.0",
45
45
  "vue-eslint-parser": "^10.2.0",
46
- "vue-tsc": "^2.2.10"
46
+ "vue-tsc": "^3.0.1"
47
47
  },
48
48
  "repository": {
49
49
  "type": "git",
@@ -1 +0,0 @@
1
- import{defineComponent as y,ref as k,computed as i,watch as P,onUnmounted as B,createElementBlock as M,openBlock as h,Fragment as C,renderList as O,normalizeClass as j,createBlock as $,resolveDynamicComponent as z}from"vue";import{t as c,v as E,p as g,m as D,u as F,a as L,r as R,b as T,c as U,s as X,d as Y,_ as q}from"./index-CXz5Q8Vp.js";import{useRouter as A}from"vue-router";import"./sucrase-BkhxaZVA.js";import"./compiler-sfc-CHbDt8t7.js";const G=y({__name:"PageView",setup(S,{expose:w}){w();const f=k([]),t=A(),p=i(()=>c.value?.siblings??[]),n=[],o=i(()=>p.value.filter(({enabled:e})=>e)),u=()=>{n.forEach(e=>{e()}),n.length=0},d=i(()=>c.value===void 0||c.value.parent?.flat?o.value:[c.value]),l=i(()=>new Map(d.value.map(({id:e=E()})=>[e,!1]))),m=k(new Map(l.value)),V=i(()=>{const[[e,s]=[]]=g;return g.clear(),e&&s&&g.set(e,s),Object.fromEntries(d.value.map(r=>[r.id,D(r)]))});P(f,e=>{u(),setTimeout(()=>{e.forEach(s=>{const{stop:r}=F(s,([{isIntersecting:a,target:{id:v}={}}={}]=[])=>{m.value=new Map(l.value),v&&a!==void 0&&l.value.set(v,a)},{threshold:.1});n.push(r)})})},{deep:!0}),L(window,{behavior:"smooth",onStop:()=>{if(!T.value){const{scrollX:e,scrollY:s}=window,[r]=d.value,[a]=U.value;if(a&&r){const{$children:[{id:v}={}]=[]}=a,x=!Math.floor(e)&&!Math.floor(s)&&r.id===v?a.id:[...l.value.entries()].find(([,_])=>_)?.[0]??[...m.value.entries()].find(([,_])=>_)?.[0]??r.id;X.value=!1,t.push({name:x}).catch(Y)}}}}),B(u);const b={refs:f,router:t,siblings:p,stops:n,$siblings:o,clearStops:u,these:d,intersecting:l,$intersecting:m,templates:V,get v4(){return E},get resolve(){return R},get that(){return c}};return Object.defineProperty(b,"__isScriptSetup",{enumerable:!1,value:!0}),b}}),H=["id","role"];function I(S,w,f,t,p,n){return h(!0),M(C,null,O(t.these,o=>(h(),M("div",{id:o.id??t.v4(),key:o.id??t.v4(),ref_for:!0,ref:"refs",class:j(o.class),role:o.id===t.that?.id?"main":"section","un-cloak":""},[(h(),$(z(t.templates[o.id]),{id:o.id,"un-cloak":"",onVnodeMounted:u=>t.resolve(o)},null,8,["id","onVnodeMounted"]))],10,H))),128)}const Z=q(G,[["render",I],["__file","PageView.vue"]]);export{Z as default};