@ssgoi/solid 6.2.0 → 6.4.0
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.d.ts +1 -0
- package/dist/ssgoi-transition.d.ts +4 -0
- package/dist/ssgoi.cjs +1 -1
- package/dist/ssgoi.js +18 -11
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -5,5 +5,9 @@ type SsgoiTransitionProps<T extends ValidComponent = "div"> = {
|
|
|
5
5
|
as?: T;
|
|
6
6
|
class?: string;
|
|
7
7
|
};
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated Set `data-ssgoi-transition` directly on the page boundary
|
|
10
|
+
* element inside `<Ssgoi>` instead.
|
|
11
|
+
*/
|
|
8
12
|
export declare const SsgoiTransition: <T extends ValidComponent = "div">(props: SsgoiTransitionProps<T>) => JSX.Element;
|
|
9
13
|
export {};
|
package/dist/ssgoi.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 o=require("solid-js/web"),n=require("solid-js"),a=require("./context.cjs"),c=require("@ssgoi/core/internal");var l=o.template("<div data-ssgoi-root style=display:contents>");const u=r=>{let t;const i=n.createMemo(()=>c.createSggoiTransitionContext(r.config,{host:r.host}));return n.createEffect(()=>{if(!t)return;const e=c.observeSsgoiTransitions(t,i());n.onCleanup(e)}),o.createComponent(a.SsgoiProvider,{get value(){return i()},get children(){var e=l(),s=t;return typeof s=="function"?o.use(s,e):t=e,o.insert(e,()=>r.children),e}})};exports.Ssgoi=u;
|
package/dist/ssgoi.js
CHANGED
|
@@ -1,20 +1,27 @@
|
|
|
1
|
-
import { createComponent as
|
|
2
|
-
import { createMemo as
|
|
3
|
-
import { SsgoiProvider as
|
|
4
|
-
import { createSggoiTransitionContext as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { createComponent as i, template as a, insert as s, use as c } from "solid-js/web";
|
|
2
|
+
import { createMemo as l, createEffect as m, onCleanup as f } from "solid-js";
|
|
3
|
+
import { SsgoiProvider as u } from "./context.js";
|
|
4
|
+
import { createSggoiTransitionContext as g, observeSsgoiTransitions as p } from "@ssgoi/core/internal";
|
|
5
|
+
var v = /* @__PURE__ */ a("<div data-ssgoi-root style=display:contents>");
|
|
6
|
+
const y = (o) => {
|
|
7
|
+
let e;
|
|
8
|
+
const r = l(() => g(o.config, {
|
|
9
|
+
host: o.host
|
|
8
10
|
}));
|
|
9
|
-
return
|
|
11
|
+
return m(() => {
|
|
12
|
+
if (!e) return;
|
|
13
|
+
const t = p(e, r());
|
|
14
|
+
f(t);
|
|
15
|
+
}), i(u, {
|
|
10
16
|
get value() {
|
|
11
|
-
return
|
|
17
|
+
return r();
|
|
12
18
|
},
|
|
13
19
|
get children() {
|
|
14
|
-
|
|
20
|
+
var t = v(), n = e;
|
|
21
|
+
return typeof n == "function" ? c(n, t) : e = t, s(t, () => o.children), t;
|
|
15
22
|
}
|
|
16
23
|
});
|
|
17
24
|
};
|
|
18
25
|
export {
|
|
19
|
-
|
|
26
|
+
y as Ssgoi
|
|
20
27
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ssgoi/solid",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.0",
|
|
4
4
|
"description": "Solid.js bindings for SSGOI - Native app-like page transitions for Solid applications",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@ssgoi/core": "^6.
|
|
36
|
+
"@ssgoi/core": "^6.4.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@eslint/js": "^9.30.1",
|