playlight-sdk 0.1.7 → 0.1.8
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/playlight-sdk.es.js
CHANGED
|
@@ -3572,7 +3572,7 @@ async function toggleLike(e2, t2, n2, o2) {
|
|
|
3572
3572
|
i2 ? localStorage.setItem(`playlight_${t2.currentGame.id}_liked`, "true") : localStorage.removeItem(`playlight_${t2.currentGame.id}_liked`);
|
|
3573
3573
|
await Qe.toggleLike(t2.currentGame.id, i2) || set(o2, get$1(o2) + (i2 ? -1 : 1));
|
|
3574
3574
|
}
|
|
3575
|
-
var at = /* @__PURE__ */ template('<div class="bg-background/85 fixed bottom-4 left-4 z-2 flex touch-none flex-wrap items-center gap-1 border-1 p-4 text-start shadow-lg backdrop-blur-lg max-sm:right-4 sm:w-72" role="button" tabindex="0"
|
|
3575
|
+
var at = /* @__PURE__ */ template('<div class="bg-background/85 fixed bottom-4 left-4 z-2 flex touch-none flex-wrap items-center gap-1 border-1 p-4 text-start shadow-lg backdrop-blur-lg max-sm:right-4 sm:w-72" role="button" tabindex="0"><div class="w-full"><p class="text-muted-foreground text-sm select-none">Currently playing</p></div> <div class="flex w-full items-center gap-2"><img alt="current game logo"> <p class="text-foreground max-w-2/3 truncate text-lg font-bold"> </p> <div class="mt-0.5 ml-auto flex items-center gap-2"><p class="text-muted-foreground text-sm"> </p> <button class="text-muted-foreground cursor-pointer transition hover:text-white"><!></button></div></div></div>'), lt = /* @__PURE__ */ template('<div class="fixed bottom-0 z-3 max-sm:right-4 max-sm:left-4 sm:left-4"><button class="bg-background/85 hover:bg-background/95 rounded-t-md border px-4 py-1.5 shadow-md backdrop-blur-sm transition sm:w-72" aria-label="Show game display"><div class="bg-muted-foreground mx-auto h-px w-16"></div></button></div>'), ct = /* @__PURE__ */ template("<!> <!>", 1);
|
|
3576
3576
|
function CurrentGameDisplay(e2, t2) {
|
|
3577
3577
|
var _a2;
|
|
3578
3578
|
push(t2, true);
|
|
@@ -3654,8 +3654,8 @@ function CurrentGameDisplay(e2, t2) {
|
|
|
3654
3654
|
t2.currentGame && get$1(o2) && e3(consequent);
|
|
3655
3655
|
});
|
|
3656
3656
|
var _2 = sibling(p2, 2), consequent_1 = (e3) => {
|
|
3657
|
-
var t3 = lt();
|
|
3658
|
-
|
|
3657
|
+
var t3 = lt(), n3 = child(t3);
|
|
3658
|
+
n3.__mousedown = [restore, i2, o2, s2, a2, animate2], n3.__touchstart = [restore, i2, o2, s2, a2, animate2], transition(3, n3, () => fly, () => ({
|
|
3659
3659
|
delay: 150,
|
|
3660
3660
|
y: 30
|
|
3661
3661
|
})), append(e3, t3);
|
|
@@ -3670,7 +3670,7 @@ function closeDiscoveryOnEmptyClick(e2, t2) {
|
|
|
3670
3670
|
delegate(["mousedown", "mousemove", "mouseup", "touchstart", "touchmove", "touchend", "click"]);
|
|
3671
3671
|
var on_click = (e2, t2) => {
|
|
3672
3672
|
localStorage.getItem("playlight_exit_intent_disabled_by_user") ? localStorage.removeItem("playlight_exit_intent_disabled_by_user") : localStorage.setItem("playlight_exit_intent_disabled_by_user", true), set(t2, !get$1(t2));
|
|
3673
|
-
}, ut = /* @__PURE__ */ template('<button class="cursor-pointer truncate text-sm text-nowrap opacity-50 transition hover:opacity-25 max-md:hidden"><p class="bg-background/50 text-primary p-1 px-2 text-sm"> </p></button>'), on_click_1 = (e2, t2) => store_set(Ve, false), dt = /* @__PURE__ */ template('<div class="flex h-4/5 items-center justify-center gap-4"><!></div>'), ft = /* @__PURE__ */ template('<div class="text-muted-foreground flex h-4/5 items-center justify-center gap-4"><p>No games found that match the filter.</p></div>'), pt = /* @__PURE__ */ template("<!> <!>", 1), _t = /* @__PURE__ */ template('<div class="mx-auto flex h-full flex-wrap content-start justify-center gap-10 lg:max-w-4/5"><!> <div class="flex h-10 w-full justify-center"><!></div></div>'), gt = /* @__PURE__ */ template('<div class="bg-background/75 fixed inset-0 top-0 right-0 bottom-0 left-0 z-99999 flex flex-col justify-center text-white backdrop-blur-md" id="playlight-discovery"><div class="pointer-events-none ml-2 flex items-center justify-between p-4"><a href="https://playlight.dev" target="_blank"><img alt="logo" class="w-50"></a> <div class="mt-4 mr-2 flex items-center justify-evenly gap-8 overflow-hidden md:mr-4"><!> <button class="cursor-pointer text-white transition hover:opacity-50"
|
|
3673
|
+
}, ut = /* @__PURE__ */ template('<button class="cursor-pointer truncate text-sm text-nowrap opacity-50 transition hover:opacity-25 max-md:hidden"><p class="bg-background/50 text-primary p-1 px-2 text-sm"> </p></button>'), on_click_1 = (e2, t2) => store_set(Ve, false), dt = /* @__PURE__ */ template('<div class="flex h-4/5 items-center justify-center gap-4"><!></div>'), ft = /* @__PURE__ */ template('<div class="text-muted-foreground flex h-4/5 items-center justify-center gap-4"><p>No games found that match the filter.</p></div>'), pt = /* @__PURE__ */ template("<!> <!>", 1), _t = /* @__PURE__ */ template('<div class="mx-auto flex h-full flex-wrap content-start justify-center gap-10 lg:max-w-4/5"><!> <div class="flex h-10 w-full justify-center"><!></div></div>'), gt = /* @__PURE__ */ template('<div class="bg-background/75 fixed inset-0 top-0 right-0 bottom-0 left-0 z-99999 flex flex-col justify-center text-white backdrop-blur-md" id="playlight-discovery"><div class="pointer-events-none ml-2 flex items-center justify-between p-4"><a href="https://playlight.dev" target="_blank"><img alt="logo" class="w-50"></a> <div class="mt-4 mr-2 flex items-center justify-evenly gap-8 overflow-hidden md:mr-4"><!> <button class="cursor-pointer text-white transition hover:opacity-50"><!></button></div></div> <div class="mx-auto p-2 px-5"><!></div> <!> <div class="mask-fade no-scrollbar relative h-full w-full overflow-y-auto p-4 svelte-12skmk8"><!></div> <a href="https://playlight.dev" target="_blank" class="text-muted-foreground fixed right-4 bottom-4 flex items-center gap-1 text-sm transition hover:text-white">Join Playlight <!></a></div>');
|
|
3674
3674
|
function DiscoveryOverlay(e2, t2) {
|
|
3675
3675
|
push(t2, true);
|
|
3676
3676
|
const [n2, o2] = setup_stores(), $discoveryOpen = () => store_get(Ve, "$discoveryOpen", n2);
|
|
@@ -3816,7 +3816,7 @@ function DiscoveryOverlay(e2, t2) {
|
|
|
3816
3816
|
if_block(M2, (e3) => {
|
|
3817
3817
|
get$1(c2) && 0 === get$1(f2).length ? e3(consequent_1) : e3(alternate, false);
|
|
3818
3818
|
});
|
|
3819
|
-
var I2 =
|
|
3819
|
+
var I2 = sibling(S2, 2);
|
|
3820
3820
|
!function External_link(e3, t3) {
|
|
3821
3821
|
const n3 = legacy_rest_props(t3, ["children", "$$slots", "$$events", "$$legacy"]);
|
|
3822
3822
|
Icon$1(e3, spread_props({
|