@ssgoi/vue 2.2.0 → 2.5.2
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/core/dist/types.cjs +1 -0
- package/dist/core/dist/types.js +10 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +10 -7
- package/dist/types.cjs +1 -1
- package/dist/types.js +5 -1
- package/dist/{ssgoi-transition.vue.cjs → vue/src/lib/ssgoi-transition.vue.cjs} +1 -1
- package/dist/{ssgoi-transition.vue.js → vue/src/lib/ssgoi-transition.vue.js} +13 -13
- package/package.json +2 -2
- /package/dist/{context.cjs → vue/src/lib/context.cjs} +0 -0
- /package/dist/{context.js → vue/src/lib/context.js} +0 -0
- /package/dist/{ssgoi-transition.vue2.cjs → vue/src/lib/ssgoi-transition.vue2.cjs} +0 -0
- /package/dist/{ssgoi-transition.vue2.js → vue/src/lib/ssgoi-transition.vue2.js} +0 -0
- /package/dist/{ssgoi.vue.cjs → vue/src/lib/ssgoi.vue.cjs} +0 -0
- /package/dist/{ssgoi.vue.js → vue/src/lib/ssgoi.vue.js} +0 -0
- /package/dist/{ssgoi.vue2.cjs → vue/src/lib/ssgoi.vue2.cjs} +0 -0
- /package/dist/{ssgoi.vue2.js → vue/src/lib/ssgoi.vue2.js} +0 -0
- /package/dist/{transition.cjs → vue/src/lib/transition.cjs} +0 -0
- /package/dist/{transition.js → vue/src/lib/transition.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function i(n){return"tick"in n&&!("springs"in n)}function r(n){return"springs"in n}exports.isMultiSpring=r;exports.isSingleSpring=i;
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./vue/src/lib/transition.cjs"),t=require("./core/dist/types.cjs"),e=require("./vue/src/lib/ssgoi.vue.cjs"),n=require("./vue/src/lib/ssgoi-transition.vue.cjs");exports.transition=i.transition;exports.vTransition=i.vTransition;exports.isMultiSpring=t.isMultiSpring;exports.isSingleSpring=t.isSingleSpring;exports.Ssgoi=e.default;exports.SsgoiTransition=n.default;
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { transition as
|
|
2
|
-
import {
|
|
3
|
-
import { default as
|
|
1
|
+
import { transition as r, vTransition as t } from "./vue/src/lib/transition.js";
|
|
2
|
+
import { isMultiSpring as s, isSingleSpring as a } from "./core/dist/types.js";
|
|
3
|
+
import { default as f } from "./vue/src/lib/ssgoi.vue.js";
|
|
4
|
+
import { default as g } from "./vue/src/lib/ssgoi-transition.vue.js";
|
|
4
5
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
f as Ssgoi,
|
|
7
|
+
g as SsgoiTransition,
|
|
8
|
+
s as isMultiSpring,
|
|
9
|
+
a as isSingleSpring,
|
|
10
|
+
r as transition,
|
|
11
|
+
t as vTransition
|
|
9
12
|
};
|
package/dist/types.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./core/dist/types.cjs");exports.isMultiSpring=i.isMultiSpring;exports.isSingleSpring=i.isSingleSpring;
|
package/dist/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),a=require("./transition.cjs"),r=require("./context.cjs"),c=t.defineComponent({__name:"ssgoi-transition",props:{id:{},as:{default:"div"},class:{}},setup(e){const s=e,i=r.useSsgoi(),o=t.computed(()=>({...i(s.id),key:s.id}));return(n,u)=>t.withDirectives((t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"data-ssgoi-transition":e.id,class:t.normalizeClass(s.class)},{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},8,["data-ssgoi-transition","class"])),[[t.unref(a.vTransition),o.value]])}});exports.default=c;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { defineComponent as a, computed as e, withDirectives as r, createBlock as c, openBlock as l, resolveDynamicComponent as d, normalizeClass as m, withCtx as
|
|
1
|
+
import { defineComponent as a, computed as e, withDirectives as r, createBlock as c, openBlock as l, resolveDynamicComponent as d, normalizeClass as m, withCtx as u, renderSlot as f, unref as p } from "vue";
|
|
2
2
|
import { vTransition as g } from "./transition.js";
|
|
3
3
|
import { useSsgoi as v } from "./context.js";
|
|
4
|
-
const
|
|
4
|
+
const x = /* @__PURE__ */ a({
|
|
5
5
|
__name: "ssgoi-transition",
|
|
6
6
|
props: {
|
|
7
7
|
id: {},
|
|
8
8
|
as: { default: "div" },
|
|
9
9
|
class: {}
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
13
|
-
...
|
|
14
|
-
key:
|
|
11
|
+
setup(t) {
|
|
12
|
+
const s = t, n = v(), o = e(() => ({
|
|
13
|
+
...n(s.id),
|
|
14
|
+
key: s.id
|
|
15
15
|
}));
|
|
16
|
-
return (
|
|
17
|
-
"data-ssgoi-transition":
|
|
18
|
-
class: m(
|
|
16
|
+
return (i, C) => r((l(), c(d(t.as), {
|
|
17
|
+
"data-ssgoi-transition": t.id,
|
|
18
|
+
class: m(s.class)
|
|
19
19
|
}, {
|
|
20
|
-
default:
|
|
21
|
-
|
|
20
|
+
default: u(() => [
|
|
21
|
+
f(i.$slots, "default")
|
|
22
22
|
]),
|
|
23
23
|
_: 3
|
|
24
24
|
}, 8, ["data-ssgoi-transition", "class"])), [
|
|
25
|
-
[
|
|
25
|
+
[p(g), o.value]
|
|
26
26
|
]);
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
export {
|
|
30
|
-
|
|
30
|
+
x as default
|
|
31
31
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ssgoi/vue",
|
|
3
|
-
"version": "2.2
|
|
3
|
+
"version": "2.5.2",
|
|
4
4
|
"description": "Vue bindings for SSGOI - Native app-like page transitions for Vue applications",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@ssgoi/core": "2.2
|
|
48
|
+
"@ssgoi/core": "2.5.2"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"vue": "^3.5.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|