playlight-sdk 0.1.5 → 0.1.6
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
|
@@ -3666,11 +3666,13 @@ function CurrentGameDisplay(e2, t2) {
|
|
|
3666
3666
|
}
|
|
3667
3667
|
delegate(["mousedown", "mousemove", "mouseup", "touchstart", "touchmove", "touchend", "click"]);
|
|
3668
3668
|
var on_click = (e2, t2) => {
|
|
3669
|
+
e2.target === e2.currentTarget && store_set(Ve, false);
|
|
3670
|
+
}, on_click_1 = (e2, t2) => {
|
|
3669
3671
|
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));
|
|
3670
|
-
}, 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>'),
|
|
3672
|
+
}, 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_2 = (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" role="menu" tabindex="0"><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" aria-label="Close"><!></button></div></div> <div class="mx-auto p-2 px-5"><!></div> <!> <div class="mask-fade no-scrollbar pointer-events-none relative h-full w-full overflow-y-auto p-4 svelte-12skmk8"><!></div> <div class="fixed right-4 bottom-4 flex items-center justify-between"><a href="https://playlight.dev" target="_blank" class="text-muted-foreground flex items-center gap-1 text-sm transition hover:text-white">Join Playlight <!></a></div></div>');
|
|
3671
3673
|
function DiscoveryOverlay(e2, t2) {
|
|
3672
3674
|
push(t2, true);
|
|
3673
|
-
const [n2, o2] = setup_stores();
|
|
3675
|
+
const [n2, o2] = setup_stores(), $discoveryOpen = () => store_get(Ve, "$discoveryOpen", n2);
|
|
3674
3676
|
let i2, s2 = prop(t2, "showIntentToggle", 3, true), a2 = state(true), l2 = state(void 0), c2 = state(true), u2 = state(false), d2 = state(void 0), f2 = state(proxy([])), p2 = state(proxy([])), _2 = state(1), g2 = state(true), v2 = state(void 0), h2 = state(false);
|
|
3675
3677
|
async function fetchGames() {
|
|
3676
3678
|
if (!(get$1(c2) && get$1(_2) > 1 || get$1(u2))) try {
|
|
@@ -3713,18 +3715,18 @@ function DiscoveryOverlay(e2, t2) {
|
|
|
3713
3715
|
var m2 = gt();
|
|
3714
3716
|
event("keydown", q, (e3) => {
|
|
3715
3717
|
"Escape" == e3.key && store_set(Ve, false);
|
|
3716
|
-
});
|
|
3718
|
+
}), m2.__click = [on_click, $discoveryOpen];
|
|
3717
3719
|
var b2 = child(m2), y2 = child(b2), $2 = child(y2), w2 = child(sibling(y2, 2)), consequent = (e3) => {
|
|
3718
3720
|
var t3 = ut();
|
|
3719
|
-
t3.__click = [
|
|
3721
|
+
t3.__click = [on_click_1, a2];
|
|
3720
3722
|
var n3 = child(t3), o3 = child(n3);
|
|
3721
|
-
template_effect(() => set_text(o3, get$1(a2) ? "
|
|
3723
|
+
template_effect(() => set_text(o3, get$1(a2) ? "Don't show on exit" : "Do show on exit")), append(e3, t3);
|
|
3722
3724
|
};
|
|
3723
3725
|
if_block(w2, (e3) => {
|
|
3724
3726
|
s2() && e3(consequent);
|
|
3725
3727
|
});
|
|
3726
3728
|
var x2 = sibling(w2, 2);
|
|
3727
|
-
x2.__click = [
|
|
3729
|
+
x2.__click = [on_click_2, $discoveryOpen], function X(e3, t3) {
|
|
3728
3730
|
const n3 = legacy_rest_props(t3, ["children", "$$slots", "$$events", "$$legacy"]);
|
|
3729
3731
|
Icon$1(e3, spread_props({
|
|
3730
3732
|
name: "x"
|