Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

svelte-legos

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-legos - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

package/actions/alertAction/Alert.d.ts

13

package.json
{
"name": "svelte-legos",
"version": "0.0.2",
"version": "0.0.3",
"main": "./package/index.js",
"repository": {
"type": "git",
"url": "https://github.com/ankurrsinghal/svelte-legos.git"
},
"bugs": {
"url": "https://github.com/ankurrsinghal/svelte-legos/issues"
},
"homepage": "https://svelte-legos.singhalankur.com/",
"scripts": {

@@ -15,3 +23,4 @@ "dev": "vite dev",

"start:dev": "concurrently --kill-others \"npm run watch:docs\" \"npm run dev\"",
"build:docs": "vite build"
"build:docs": "vite build",
"deploy:docs": "npm run build:docs && ./deploy.sh"
},

@@ -18,0 +27,0 @@ "devDependencies": {

50

package/index.d.ts

@@ -1,17 +0,33 @@

export { useCounter } from "./hooks/useCounter";
export { useDocumentVisibility } from "./hooks/useDocumentVisibility";
export { useElementSize } from "./hooks/useElementSize";
export { useElementVisibility } from "./hooks/useElementVisibility";
export { useIntervalFn } from "./hooks/useIntervalFn";
export { useMouse } from "./hooks/useMouse";
export { useResizeObserver } from "./hooks/useResizeObserver";
export { useTimeout } from "./hooks/useTimeout";
export { useTimeoutFn } from "./hooks/useTimeoutFn";
export { useToggle } from "./hooks/useToggle";
export { useWindowFocus } from "./hooks/useWindowFocus";
export { useWindowScroll } from "./hooks/useWindowScroll";
export { useWindowSize } from "./hooks/useWindowSize";
export { useActiveElement } from "./hooks/useActiveElement";
export { useElementBounding } from "./hooks/useElementBounding";
export { useInterval } from "./hooks/useInterval";
export { useRafFn } from "./hooks/useRafFn";
export { counterStore } from "./stores/counterStore";
export { documentVisibilityStore } from "./stores/documentVisibilityStore";
export { elementSizeStore } from "./stores/elementSizeStore";
export { elementVisibilityStore } from "./stores/elementVisibilityStore";
export { intervalFnStore } from "./stores/intervalFnStore";
export { mouseStore } from "./stores/mouseStore";
export { resizeObserverStore } from "./stores/resizeObserverStore";
export { timeoutStore } from "./stores/timeoutStore";
export { timeoutFnStore } from "./stores/timeoutFnStore";
export { toggleStore } from "./stores/toggleStore";
export { windowFocusStore } from "./stores/windowFocusStore";
export { windowScrollStore } from "./stores/windowScrollStore";
export { windowSizeStore } from "./stores/windowSizeStore";
export { activeElementStore } from "./stores/activeElementStore";
export { elementBoundingStore } from "./stores/elementBoundingStore";
export { intervalStore } from "./stores/intervalStore";
export { rafFnStore } from "./stores/rafFnStore";
export { hoverStore } from "./stores/hoverStore";
export { eventListenerStore } from "./stores/eventListenerStore";
export { readableStore } from "./stores/readableStore";
export { clickOutsideAction } from "./actions/clickOutsideAction";
export { longPressAction } from "./actions/longPressAction";
export { hoverAction } from "./actions/hoverAction";
export { textareaAutosizeAction } from "./actions/textareaAutosizeAction";
export { tooltipAction } from "./actions/tooltipAction";
export { sortableTableAction } from "./actions/sortableTableAction";
export { draggableAction } from "./actions/draggableAction";
export { resizableAction } from "./actions/resizableAction";
export { shortcutAction } from "./actions/shortcutAction";
export { notifyAction } from "./actions/notifyAction";
export { loadingAction } from "./actions/loadingAction";
export { messageAction } from "./actions/messageAction";
export { alertAction } from "./actions/alertAction";

@@ -1,17 +0,34 @@

export { useCounter } from "./hooks/useCounter";
export { useDocumentVisibility } from "./hooks/useDocumentVisibility";
export { useElementSize } from "./hooks/useElementSize";
export { useElementVisibility } from "./hooks/useElementVisibility";
export { useIntervalFn } from "./hooks/useIntervalFn";
export { useMouse } from "./hooks/useMouse";
export { useResizeObserver } from "./hooks/useResizeObserver";
export { useTimeout } from "./hooks/useTimeout";
export { useTimeoutFn } from "./hooks/useTimeoutFn";
export { useToggle } from "./hooks/useToggle";
export { useWindowFocus } from "./hooks/useWindowFocus";
export { useWindowScroll } from "./hooks/useWindowScroll";
export { useWindowSize } from "./hooks/useWindowSize";
export { useActiveElement } from "./hooks/useActiveElement";
export { useElementBounding } from "./hooks/useElementBounding";
export { useInterval } from "./hooks/useInterval";
export { useRafFn } from "./hooks/useRafFn";
export { counterStore } from "./stores/counterStore";
export { documentVisibilityStore } from "./stores/documentVisibilityStore";
export { elementSizeStore } from "./stores/elementSizeStore";
export { elementVisibilityStore } from "./stores/elementVisibilityStore";
export { intervalFnStore } from "./stores/intervalFnStore";
export { mouseStore } from "./stores/mouseStore";
export { resizeObserverStore } from "./stores/resizeObserverStore";
export { timeoutStore } from "./stores/timeoutStore";
export { timeoutFnStore } from "./stores/timeoutFnStore";
export { toggleStore } from "./stores/toggleStore";
export { windowFocusStore } from "./stores/windowFocusStore";
export { windowScrollStore } from "./stores/windowScrollStore";
export { windowSizeStore } from "./stores/windowSizeStore";
export { activeElementStore } from "./stores/activeElementStore";
export { elementBoundingStore } from "./stores/elementBoundingStore";
export { intervalStore } from "./stores/intervalStore";
export { rafFnStore } from "./stores/rafFnStore";
export { hoverStore } from "./stores/hoverStore";
export { eventListenerStore } from "./stores/eventListenerStore";
export { readableStore } from "./stores/readableStore";
export { clickOutsideAction } from './actions/clickOutsideAction';
export { longPressAction } from './actions/longPressAction';
export { hoverAction } from './actions/hoverAction';
export { textareaAutosizeAction } from './actions/textareaAutosizeAction';
export { tooltipAction } from './actions/tooltipAction';
export { sortableTableAction } from './actions/sortableTableAction';
export { draggableAction } from './actions/draggableAction';
export { resizableAction } from './actions/resizableAction';
export { shortcutAction } from './actions/shortcutAction';
export { notifyAction } from './actions/notifyAction';
export { loadingAction } from './actions/loadingAction';
export { messageAction } from './actions/messageAction';
export { alertAction } from './actions/alertAction';
{
"name": "svelte-legos",
"version": "0.0.1",
"version": "0.0.2",
"main": "./package/index.js",
"repository": {
"type": "git",
"url": "https://github.com/ankurrsinghal/svelte-legos.git"
},
"bugs": {
"url": "https://github.com/ankurrsinghal/svelte-legos/issues"
},
"homepage": "https://svelte-legos.singhalankur.com/",
"devDependencies": {

@@ -42,70 +50,61 @@ "@sveltejs/adapter-auto": "^1.0.0",

"./.DS_Store": "./.DS_Store",
"./hooks/useActiveElement/demo.svelte": "./hooks/useActiveElement/demo.svelte",
"./hooks/useActiveElement": "./hooks/useActiveElement/index.js",
"./hooks/useActiveElement/meta.json": "./hooks/useActiveElement/meta.json",
"./hooks/useActiveElement/usage.txt": "./hooks/useActiveElement/usage.txt",
"./hooks/useCounter/demo.svelte": "./hooks/useCounter/demo.svelte",
"./hooks/useCounter": "./hooks/useCounter/index.js",
"./hooks/useCounter/meta.json": "./hooks/useCounter/meta.json",
"./hooks/useCounter/usage.txt": "./hooks/useCounter/usage.txt",
"./hooks/useDocumentVisibility/demo.svelte": "./hooks/useDocumentVisibility/demo.svelte",
"./hooks/useDocumentVisibility": "./hooks/useDocumentVisibility/index.js",
"./hooks/useDocumentVisibility/meta.json": "./hooks/useDocumentVisibility/meta.json",
"./hooks/useDocumentVisibility/usage.txt": "./hooks/useDocumentVisibility/usage.txt",
"./hooks/useElementBounding/demo.svelte": "./hooks/useElementBounding/demo.svelte",
"./hooks/useElementBounding": "./hooks/useElementBounding/index.js",
"./hooks/useElementBounding/meta.json": "./hooks/useElementBounding/meta.json",
"./hooks/useElementBounding/usage.txt": "./hooks/useElementBounding/usage.txt",
"./hooks/useElementSize/demo.svelte": "./hooks/useElementSize/demo.svelte",
"./hooks/useElementSize": "./hooks/useElementSize/index.js",
"./hooks/useElementSize/meta.json": "./hooks/useElementSize/meta.json",
"./hooks/useElementSize/usage.txt": "./hooks/useElementSize/usage.txt",
"./hooks/useElementVisibility/demo.svelte": "./hooks/useElementVisibility/demo.svelte",
"./hooks/useElementVisibility": "./hooks/useElementVisibility/index.js",
"./hooks/useElementVisibility/meta.json": "./hooks/useElementVisibility/meta.json",
"./hooks/useElementVisibility/usage.txt": "./hooks/useElementVisibility/usage.txt",
"./hooks/useInterval/demo.svelte": "./hooks/useInterval/demo.svelte",
"./hooks/useInterval": "./hooks/useInterval/index.js",
"./hooks/useInterval/meta.json": "./hooks/useInterval/meta.json",
"./hooks/useInterval/usage.txt": "./hooks/useInterval/usage.txt",
"./hooks/useIntervalFn/demo.svelte": "./hooks/useIntervalFn/demo.svelte",
"./hooks/useIntervalFn": "./hooks/useIntervalFn/index.js",
"./hooks/useIntervalFn/meta.json": "./hooks/useIntervalFn/meta.json",
"./hooks/useIntervalFn/usage.txt": "./hooks/useIntervalFn/usage.txt",
"./hooks/useMouse/demo.svelte": "./hooks/useMouse/demo.svelte",
"./hooks/useMouse": "./hooks/useMouse/index.js",
"./hooks/useMouse/meta.json": "./hooks/useMouse/meta.json",
"./hooks/useMouse/usage.txt": "./hooks/useMouse/usage.txt",
"./hooks/useRafFn/demo.svelte": "./hooks/useRafFn/demo.svelte",
"./hooks/useRafFn": "./hooks/useRafFn/index.js",
"./hooks/useRafFn/meta.json": "./hooks/useRafFn/meta.json",
"./hooks/useRafFn/usage.txt": "./hooks/useRafFn/usage.txt",
"./hooks/useResizeObserver/demo.svelte": "./hooks/useResizeObserver/demo.svelte",
"./hooks/useResizeObserver": "./hooks/useResizeObserver/index.js",
"./hooks/useResizeObserver/meta.json": "./hooks/useResizeObserver/meta.json",
"./hooks/useResizeObserver/usage.txt": "./hooks/useResizeObserver/usage.txt",
"./hooks/useTimeout/demo.svelte": "./hooks/useTimeout/demo.svelte",
"./hooks/useTimeout": "./hooks/useTimeout/index.js",
"./hooks/useTimeout/meta.json": "./hooks/useTimeout/meta.json",
"./hooks/useTimeout/usage.txt": "./hooks/useTimeout/usage.txt",
"./hooks/useTimeoutFn/demo.svelte": "./hooks/useTimeoutFn/demo.svelte",
"./hooks/useTimeoutFn": "./hooks/useTimeoutFn/index.js",
"./hooks/useTimeoutFn/meta.json": "./hooks/useTimeoutFn/meta.json",
"./hooks/useTimeoutFn/usage.txt": "./hooks/useTimeoutFn/usage.txt",
"./hooks/useToggle/demo.svelte": "./hooks/useToggle/demo.svelte",
"./hooks/useToggle": "./hooks/useToggle/index.js",
"./hooks/useToggle/meta.json": "./hooks/useToggle/meta.json",
"./hooks/useToggle/usage.txt": "./hooks/useToggle/usage.txt",
"./hooks/useWindowFocus/demo.svelte": "./hooks/useWindowFocus/demo.svelte",
"./hooks/useWindowFocus": "./hooks/useWindowFocus/index.js",
"./hooks/useWindowFocus/meta.json": "./hooks/useWindowFocus/meta.json",
"./hooks/useWindowFocus/usage.txt": "./hooks/useWindowFocus/usage.txt",
"./hooks/useWindowScroll/demo.svelte": "./hooks/useWindowScroll/demo.svelte",
"./hooks/useWindowScroll": "./hooks/useWindowScroll/index.js",
"./hooks/useWindowScroll/meta.json": "./hooks/useWindowScroll/meta.json",
"./hooks/useWindowScroll/usage.txt": "./hooks/useWindowScroll/usage.txt",
"./hooks/useWindowSize/demo.svelte": "./hooks/useWindowSize/demo.svelte",
"./hooks/useWindowSize": "./hooks/useWindowSize/index.js",
"./hooks/useWindowSize/meta.json": "./hooks/useWindowSize/meta.json",
"./hooks/useWindowSize/usage.txt": "./hooks/useWindowSize/usage.txt",
"./actions/alertAction/Alert": "./actions/alertAction/Alert.js",
"./actions/alertAction/demo.svelte": "./actions/alertAction/demo.svelte",
"./actions/alertAction": "./actions/alertAction/index.js",
"./actions/alertAction/meta.json": "./actions/alertAction/meta.json",
"./actions/alertAction/usage.txt": "./actions/alertAction/usage.txt",
"./actions/clickOutsideAction/demo.svelte": "./actions/clickOutsideAction/demo.svelte",
"./actions/clickOutsideAction": "./actions/clickOutsideAction/index.js",
"./actions/clickOutsideAction/meta.json": "./actions/clickOutsideAction/meta.json",
"./actions/clickOutsideAction/usage.txt": "./actions/clickOutsideAction/usage.txt",
"./actions/draggableAction/demo.svelte": "./actions/draggableAction/demo.svelte",
"./actions/draggableAction": "./actions/draggableAction/index.js",
"./actions/draggableAction/meta.json": "./actions/draggableAction/meta.json",
"./actions/draggableAction/usage.txt": "./actions/draggableAction/usage.txt",
"./actions/hoverAction/demo.svelte": "./actions/hoverAction/demo.svelte",
"./actions/hoverAction": "./actions/hoverAction/index.js",
"./actions/hoverAction/meta.json": "./actions/hoverAction/meta.json",
"./actions/hoverAction/usage.txt": "./actions/hoverAction/usage.txt",
"./actions/loadingAction/Loader": "./actions/loadingAction/Loader.js",
"./actions/loadingAction/demo.svelte": "./actions/loadingAction/demo.svelte",
"./actions/loadingAction": "./actions/loadingAction/index.js",
"./actions/loadingAction/meta.json": "./actions/loadingAction/meta.json",
"./actions/loadingAction/usage.txt": "./actions/loadingAction/usage.txt",
"./actions/longPressAction/demo.svelte": "./actions/longPressAction/demo.svelte",
"./actions/longPressAction": "./actions/longPressAction/index.js",
"./actions/longPressAction/meta.json": "./actions/longPressAction/meta.json",
"./actions/longPressAction/usage.txt": "./actions/longPressAction/usage.txt",
"./actions/messageAction/Message": "./actions/messageAction/Message.js",
"./actions/messageAction/MessageManager": "./actions/messageAction/MessageManager.js",
"./actions/messageAction/demo.svelte": "./actions/messageAction/demo.svelte",
"./actions/messageAction": "./actions/messageAction/index.js",
"./actions/messageAction/meta.json": "./actions/messageAction/meta.json",
"./actions/messageAction/usage.txt": "./actions/messageAction/usage.txt",
"./actions/notifyAction/Notification": "./actions/notifyAction/Notification.js",
"./actions/notifyAction/NotificationManager": "./actions/notifyAction/NotificationManager.js",
"./actions/notifyAction/demo.svelte": "./actions/notifyAction/demo.svelte",
"./actions/notifyAction": "./actions/notifyAction/index.js",
"./actions/notifyAction/meta.json": "./actions/notifyAction/meta.json",
"./actions/notifyAction/usage.txt": "./actions/notifyAction/usage.txt",
"./actions/resizableAction/demo.svelte": "./actions/resizableAction/demo.svelte",
"./actions/resizableAction": "./actions/resizableAction/index.js",
"./actions/resizableAction/meta.json": "./actions/resizableAction/meta.json",
"./actions/resizableAction/usage.txt": "./actions/resizableAction/usage.txt",
"./actions/shortcutAction/demo.svelte": "./actions/shortcutAction/demo.svelte",
"./actions/shortcutAction": "./actions/shortcutAction/index.js",
"./actions/shortcutAction/meta.json": "./actions/shortcutAction/meta.json",
"./actions/shortcutAction/usage.txt": "./actions/shortcutAction/usage.txt",
"./actions/sortableTableAction/demo.svelte": "./actions/sortableTableAction/demo.svelte",
"./actions/sortableTableAction": "./actions/sortableTableAction/index.js",
"./actions/sortableTableAction/meta.json": "./actions/sortableTableAction/meta.json",
"./actions/sortableTableAction/usage.txt": "./actions/sortableTableAction/usage.txt",
"./actions/textareaAutosizeAction/core": "./actions/textareaAutosizeAction/core.js",
"./actions/textareaAutosizeAction/demo.svelte": "./actions/textareaAutosizeAction/demo.svelte",
"./actions/textareaAutosizeAction": "./actions/textareaAutosizeAction/index.js",
"./actions/textareaAutosizeAction/meta.json": "./actions/textareaAutosizeAction/meta.json",
"./actions/textareaAutosizeAction/usage.txt": "./actions/textareaAutosizeAction/usage.txt",
"./actions/tooltipAction/demo.svelte": "./actions/tooltipAction/demo.svelte",
"./actions/tooltipAction": "./actions/tooltipAction/index.js",
"./actions/tooltipAction/meta.json": "./actions/tooltipAction/meta.json",
"./actions/tooltipAction/usage.txt": "./actions/tooltipAction/usage.txt",
"./shared/components/DemoContainer.svelte": "./shared/components/DemoContainer.svelte",

@@ -115,3 +114,85 @@ "./shared/components/PrimaryButton.svelte": "./shared/components/PrimaryButton.svelte",

"./shared": "./shared/index.js",
"./shared/utils/types": "./shared/utils/types.js"
"./shared/tailwind": "./shared/tailwind.js",
"./shared/utils/types": "./shared/utils/types.js",
"./shared/utils/utils": "./shared/utils/utils.js",
"./stores/activeElementStore/demo.svelte": "./stores/activeElementStore/demo.svelte",
"./stores/activeElementStore": "./stores/activeElementStore/index.js",
"./stores/activeElementStore/meta.json": "./stores/activeElementStore/meta.json",
"./stores/activeElementStore/usage.txt": "./stores/activeElementStore/usage.txt",
"./stores/counterStore/demo.svelte": "./stores/counterStore/demo.svelte",
"./stores/counterStore": "./stores/counterStore/index.js",
"./stores/counterStore/meta.json": "./stores/counterStore/meta.json",
"./stores/counterStore/usage.txt": "./stores/counterStore/usage.txt",
"./stores/documentVisibilityStore/demo.svelte": "./stores/documentVisibilityStore/demo.svelte",
"./stores/documentVisibilityStore": "./stores/documentVisibilityStore/index.js",
"./stores/documentVisibilityStore/meta.json": "./stores/documentVisibilityStore/meta.json",
"./stores/documentVisibilityStore/usage.txt": "./stores/documentVisibilityStore/usage.txt",
"./stores/elementBoundingStore/demo.svelte": "./stores/elementBoundingStore/demo.svelte",
"./stores/elementBoundingStore": "./stores/elementBoundingStore/index.js",
"./stores/elementBoundingStore/meta.json": "./stores/elementBoundingStore/meta.json",
"./stores/elementBoundingStore/usage.txt": "./stores/elementBoundingStore/usage.txt",
"./stores/elementSizeStore/demo.svelte": "./stores/elementSizeStore/demo.svelte",
"./stores/elementSizeStore": "./stores/elementSizeStore/index.js",
"./stores/elementSizeStore/meta.json": "./stores/elementSizeStore/meta.json",
"./stores/elementSizeStore/usage.txt": "./stores/elementSizeStore/usage.txt",
"./stores/elementVisibilityStore/demo.svelte": "./stores/elementVisibilityStore/demo.svelte",
"./stores/elementVisibilityStore": "./stores/elementVisibilityStore/index.js",
"./stores/elementVisibilityStore/meta.json": "./stores/elementVisibilityStore/meta.json",
"./stores/elementVisibilityStore/usage.txt": "./stores/elementVisibilityStore/usage.txt",
"./stores/eventListenerStore/demo.svelte": "./stores/eventListenerStore/demo.svelte",
"./stores/eventListenerStore": "./stores/eventListenerStore/index.js",
"./stores/eventListenerStore/meta.json": "./stores/eventListenerStore/meta.json",
"./stores/eventListenerStore/usage.txt": "./stores/eventListenerStore/usage.txt",
"./stores/hoverStore/demo.svelte": "./stores/hoverStore/demo.svelte",
"./stores/hoverStore": "./stores/hoverStore/index.js",
"./stores/hoverStore/meta.json": "./stores/hoverStore/meta.json",
"./stores/hoverStore/usage.txt": "./stores/hoverStore/usage.txt",
"./stores/intervalFnStore/demo.svelte": "./stores/intervalFnStore/demo.svelte",
"./stores/intervalFnStore": "./stores/intervalFnStore/index.js",
"./stores/intervalFnStore/meta.json": "./stores/intervalFnStore/meta.json",
"./stores/intervalFnStore/usage.txt": "./stores/intervalFnStore/usage.txt",
"./stores/intervalStore/demo.svelte": "./stores/intervalStore/demo.svelte",
"./stores/intervalStore": "./stores/intervalStore/index.js",
"./stores/intervalStore/meta.json": "./stores/intervalStore/meta.json",
"./stores/intervalStore/usage.txt": "./stores/intervalStore/usage.txt",
"./stores/mouseStore/demo.svelte": "./stores/mouseStore/demo.svelte",
"./stores/mouseStore": "./stores/mouseStore/index.js",
"./stores/mouseStore/meta.json": "./stores/mouseStore/meta.json",
"./stores/mouseStore/usage.txt": "./stores/mouseStore/usage.txt",
"./stores/rafFnStore/demo.svelte": "./stores/rafFnStore/demo.svelte",
"./stores/rafFnStore": "./stores/rafFnStore/index.js",
"./stores/rafFnStore/meta.json": "./stores/rafFnStore/meta.json",
"./stores/rafFnStore/usage.txt": "./stores/rafFnStore/usage.txt",
"./stores/readableStore/demo.svelte": "./stores/readableStore/demo.svelte",
"./stores/readableStore": "./stores/readableStore/index.js",
"./stores/readableStore/meta.json": "./stores/readableStore/meta.json",
"./stores/readableStore/usage.txt": "./stores/readableStore/usage.txt",
"./stores/resizeObserverStore/demo.svelte": "./stores/resizeObserverStore/demo.svelte",
"./stores/resizeObserverStore": "./stores/resizeObserverStore/index.js",
"./stores/resizeObserverStore/meta.json": "./stores/resizeObserverStore/meta.json",
"./stores/resizeObserverStore/usage.txt": "./stores/resizeObserverStore/usage.txt",
"./stores/timeoutFnStore/demo.svelte": "./stores/timeoutFnStore/demo.svelte",
"./stores/timeoutFnStore": "./stores/timeoutFnStore/index.js",
"./stores/timeoutFnStore/meta.json": "./stores/timeoutFnStore/meta.json",
"./stores/timeoutFnStore/usage.txt": "./stores/timeoutFnStore/usage.txt",
"./stores/timeoutStore/demo.svelte": "./stores/timeoutStore/demo.svelte",
"./stores/timeoutStore": "./stores/timeoutStore/index.js",
"./stores/timeoutStore/meta.json": "./stores/timeoutStore/meta.json",
"./stores/timeoutStore/usage.txt": "./stores/timeoutStore/usage.txt",
"./stores/toggleStore/demo.svelte": "./stores/toggleStore/demo.svelte",
"./stores/toggleStore": "./stores/toggleStore/index.js",
"./stores/toggleStore/meta.json": "./stores/toggleStore/meta.json",
"./stores/toggleStore/usage.txt": "./stores/toggleStore/usage.txt",
"./stores/windowFocusStore/demo.svelte": "./stores/windowFocusStore/demo.svelte",
"./stores/windowFocusStore": "./stores/windowFocusStore/index.js",
"./stores/windowFocusStore/meta.json": "./stores/windowFocusStore/meta.json",
"./stores/windowFocusStore/usage.txt": "./stores/windowFocusStore/usage.txt",
"./stores/windowScrollStore/demo.svelte": "./stores/windowScrollStore/demo.svelte",
"./stores/windowScrollStore": "./stores/windowScrollStore/index.js",
"./stores/windowScrollStore/meta.json": "./stores/windowScrollStore/meta.json",
"./stores/windowScrollStore/usage.txt": "./stores/windowScrollStore/usage.txt",
"./stores/windowSizeStore/demo.svelte": "./stores/windowSizeStore/demo.svelte",
"./stores/windowSizeStore": "./stores/windowSizeStore/index.js",
"./stores/windowSizeStore/meta.json": "./stores/windowSizeStore/meta.json",
"./stores/windowSizeStore/usage.txt": "./stores/windowSizeStore/usage.txt"
},

@@ -118,0 +199,0 @@ "files": [

@@ -19,5 +19,5 @@ # Svelte Legos

<script lang="ts">
import { useCounter } from "$lib";
import { counterStore } from "svelte-legos";
const { counter, inc, dec, set, reset } = useCounter();
const { counter, inc, dec, set, reset } = counterStore();
</script>

@@ -34,9 +34,16 @@

<script lang="ts">
import { useWindowSize } from "$lib";
import { clickOutsideAction } from "svelte-legos";
const size = useWindowSize();
let hidden = false;
function handleClickOutside() {
hidden = !hidden;
}
</script>
<div>{$size.width}</div>
<div>{$size.height}</div>
<div
class="modal"
use:clickOutsideAction
on:clickoutside={handleClickOutside}
/>
```

@@ -43,0 +50,0 @@

import { SvelteComponentTyped } from "svelte";
declare const __propDef: {
props: {
disabled?: boolean | undefined;
disabled?: boolean | null | undefined;
form?: string | null | undefined;
formaction?: string | null | undefined;
formenctype?: string | null | undefined;
formmethod?: string | null | undefined;
formnovalidate?: boolean | null | undefined;
formtarget?: string | null | undefined;
name?: string | null | undefined;
type?: "reset" | "submit" | "button" | null | undefined;
value?: string | number | string[] | null | undefined;
accesskey?: string | null | undefined;
autofocus?: boolean | null | undefined;
class?: string | null | undefined;
contenteditable?: import("svelte/elements").Booleanish | "inherit" | null | undefined;
contextmenu?: string | null | undefined;
dir?: string | null | undefined;
draggable?: import("svelte/elements").Booleanish | null | undefined;
enterkeyhint?: "search" | "enter" | "done" | "go" | "next" | "previous" | "send" | null | undefined;
hidden?: boolean | null | undefined;
id?: string | null | undefined;
lang?: string | null | undefined;
part?: string | null | undefined;
placeholder?: string | null | undefined;
slot?: string | null | undefined;
spellcheck?: import("svelte/elements").Booleanish | null | undefined;
style?: string | null | undefined;
tabindex?: number | null | undefined;
title?: string | null | undefined;
translate?: "" | "yes" | "no" | null | undefined;
inert?: boolean | null | undefined;
radiogroup?: string | null | undefined;
role?: import("svelte/elements").AriaRole | null | undefined;
about?: string | null | undefined;
datatype?: string | null | undefined;
inlist?: any;
prefix?: string | null | undefined;
property?: string | null | undefined;
resource?: string | null | undefined;
typeof?: string | null | undefined;
vocab?: string | null | undefined;
autocapitalize?: string | null | undefined;
autocorrect?: string | null | undefined;
autosave?: string | null | undefined;
color?: string | null | undefined;
itemprop?: string | null | undefined;
itemscope?: boolean | null | undefined;
itemtype?: string | null | undefined;
itemid?: string | null | undefined;
itemref?: string | null | undefined;
results?: number | null | undefined;
security?: string | null | undefined;
unselectable?: "on" | "off" | null | undefined;
inputmode?: "text" | "search" | "numeric" | "none" | "tel" | "url" | "email" | "decimal" | null | undefined;
is?: string | null | undefined;
'bind:innerHTML'?: string | null | undefined;
'bind:textContent'?: string | null | undefined;
'data-sveltekit-noscroll'?: true | "" | "off" | null | undefined;
'data-sveltekit-preload-code'?: true | "" | "hover" | "off" | "eager" | "viewport" | "tap" | null | undefined;
'data-sveltekit-preload-data'?: true | "" | "hover" | "off" | "tap" | null | undefined;
'data-sveltekit-reload'?: true | "" | "off" | null | undefined;
'aria-activedescendant'?: string | null | undefined;
'aria-atomic'?: import("svelte/elements").Booleanish | null | undefined;
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | null | undefined;
'aria-busy'?: import("svelte/elements").Booleanish | null | undefined;
'aria-checked'?: boolean | "true" | "false" | "mixed" | null | undefined;
'aria-colcount'?: number | null | undefined;
'aria-colindex'?: number | null | undefined;
'aria-colspan'?: number | null | undefined;
'aria-controls'?: string | null | undefined;
'aria-current'?: "time" | "location" | import("svelte/elements").Booleanish | "page" | "step" | "date" | null | undefined;
'aria-describedby'?: string | null | undefined;
'aria-details'?: string | null | undefined;
'aria-disabled'?: import("svelte/elements").Booleanish | null | undefined;
'aria-dropeffect'?: "copy" | "link" | "move" | "none" | "execute" | "popup" | null | undefined;
'aria-errormessage'?: string | null | undefined;
'aria-expanded'?: import("svelte/elements").Booleanish | null | undefined;
'aria-flowto'?: string | null | undefined;
'aria-grabbed'?: import("svelte/elements").Booleanish | null | undefined;
'aria-haspopup'?: "dialog" | "menu" | import("svelte/elements").Booleanish | "grid" | "listbox" | "tree" | null | undefined;
'aria-hidden'?: import("svelte/elements").Booleanish | null | undefined;
'aria-invalid'?: import("svelte/elements").Booleanish | "grammar" | "spelling" | null | undefined;
'aria-keyshortcuts'?: string | null | undefined;
'aria-label'?: string | null | undefined;
'aria-labelledby'?: string | null | undefined;
'aria-level'?: number | null | undefined;
'aria-live'?: "off" | "assertive" | "polite" | null | undefined;
'aria-modal'?: import("svelte/elements").Booleanish | null | undefined;
'aria-multiline'?: import("svelte/elements").Booleanish | null | undefined;
'aria-multiselectable'?: import("svelte/elements").Booleanish | null | undefined;
'aria-orientation'?: "horizontal" | "vertical" | null | undefined;
'aria-owns'?: string | null | undefined;
'aria-placeholder'?: string | null | undefined;
'aria-posinset'?: number | null | undefined;
'aria-pressed'?: boolean | "true" | "false" | "mixed" | null | undefined;
'aria-readonly'?: import("svelte/elements").Booleanish | null | undefined;
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | null | undefined;
'aria-required'?: import("svelte/elements").Booleanish | null | undefined;
'aria-roledescription'?: string | null | undefined;
'aria-rowcount'?: number | null | undefined;
'aria-rowindex'?: number | null | undefined;
'aria-rowspan'?: number | null | undefined;
'aria-selected'?: import("svelte/elements").Booleanish | null | undefined;
'aria-setsize'?: number | null | undefined;
'aria-sort'?: "none" | "ascending" | "descending" | "other" | null | undefined;
'aria-valuemax'?: number | null | undefined;
'aria-valuemin'?: number | null | undefined;
'aria-valuenow'?: number | null | undefined;
'aria-valuetext'?: string | null | undefined;
'on:copy'?: import("svelte/elements").ClipboardEventHandler<HTMLButtonElement> | null | undefined;
'on:cut'?: import("svelte/elements").ClipboardEventHandler<HTMLButtonElement> | null | undefined;
'on:paste'?: import("svelte/elements").ClipboardEventHandler<HTMLButtonElement> | null | undefined;
'on:compositionend'?: import("svelte/elements").CompositionEventHandler<HTMLButtonElement> | null | undefined;
'on:compositionstart'?: import("svelte/elements").CompositionEventHandler<HTMLButtonElement> | null | undefined;
'on:compositionupdate'?: import("svelte/elements").CompositionEventHandler<HTMLButtonElement> | null | undefined;
'on:focus'?: import("svelte/elements").FocusEventHandler<HTMLButtonElement> | null | undefined;
'on:focusin'?: import("svelte/elements").FocusEventHandler<HTMLButtonElement> | null | undefined;
'on:focusout'?: import("svelte/elements").FocusEventHandler<HTMLButtonElement> | null | undefined;
'on:blur'?: import("svelte/elements").FocusEventHandler<HTMLButtonElement> | null | undefined;
'on:change'?: import("svelte/elements").FormEventHandler<HTMLButtonElement> | null | undefined;
'on:beforeinput'?: import("svelte/elements").EventHandler<InputEvent, HTMLButtonElement> | null | undefined;
'on:input'?: import("svelte/elements").FormEventHandler<HTMLButtonElement> | null | undefined;
'on:reset'?: import("svelte/elements").FormEventHandler<HTMLButtonElement> | null | undefined;
'on:submit'?: import("svelte/elements").EventHandler<Event & {
readonly submitter: HTMLElement | null;
}, HTMLButtonElement> | null | undefined;
'on:invalid'?: import("svelte/elements").EventHandler<Event, HTMLButtonElement> | null | undefined;
'on:formdata'?: import("svelte/elements").EventHandler<Event & {
readonly formData: FormData;
}, HTMLButtonElement> | null | undefined;
'on:load'?: import("svelte/elements").EventHandler<Event, Element> | null | undefined;
'on:error'?: import("svelte/elements").EventHandler<Event, Element> | null | undefined;
'on:toggle'?: import("svelte/elements").EventHandler<Event, HTMLButtonElement> | null | undefined;
'on:keydown'?: import("svelte/elements").KeyboardEventHandler<HTMLButtonElement> | null | undefined;
'on:keypress'?: import("svelte/elements").KeyboardEventHandler<HTMLButtonElement> | null | undefined;
'on:keyup'?: import("svelte/elements").KeyboardEventHandler<HTMLButtonElement> | null | undefined;
'on:abort'?: import("svelte/elements").EventHandler<Event, HTMLButtonElement> | null | undefined;
'on:canplay'?: import("svelte/elements").EventHandler<Event, HTMLButtonElement> | null | undefined;
'on:canplaythrough'?: import("svelte/elements").EventHandler<Event, HTMLButtonElement> | null | undefined;
'on:cuechange'?: import("svelte/elements").EventHandler<Event, HTMLButtonElement> | null | undefined;
'on:durationchange'?: import("svelte/elements").EventHandler<Event, HTMLButtonElement> | null | undefined;
'on:emptied'?: import("svelte/elements").EventHandler<Event, HTMLButtonElement> | null | undefined;
'on:encrypted'?: import("svelte/elements").EventHandler<Event, HTMLButtonElement> | null | undefined;
'on:ended'?: import("svelte/elements").EventHandler<Event, HTMLButtonElement> | null | undefined;
'on:loadeddata'?: import("svelte/elements").EventHandler<Event, HTMLButtonElement> | null | undefined;
'on:loadedmetadata'?: import("svelte/elements").EventHandler<Event, HTMLButtonElement> | null | undefined;
'on:loadstart'?: import("svelte/elements").EventHandler<Event, HTMLButtonElement> | null | undefined;
'on:pause'?: import("svelte/elements").EventHandler<Event, HTMLButtonElement> | null | undefined;
'on:play'?: import("svelte/elements").EventHandler<Event, HTMLButtonElement> | null | undefined;
'on:playing'?: import("svelte/elements").EventHandler<Event, HTMLButtonElement> | null | undefined;
'on:progress'?: import("svelte/elements").EventHandler<Event, HTMLButtonElement> | null | undefined;
'on:ratechange'?: import("svelte/elements").EventHandler<Event, HTMLButtonElement> | null | undefined;
'on:seeked'?: import("svelte/elements").EventHandler<Event, HTMLButtonElement> | null | undefined;
'on:seeking'?: import("svelte/elements").EventHandler<Event, HTMLButtonElement> | null | undefined;
'on:stalled'?: import("svelte/elements").EventHandler<Event, HTMLButtonElement> | null | undefined;
'on:suspend'?: import("svelte/elements").EventHandler<Event, HTMLButtonElement> | null | undefined;
'on:timeupdate'?: import("svelte/elements").EventHandler<Event, HTMLButtonElement> | null | undefined;
'on:volumechange'?: import("svelte/elements").EventHandler<Event, HTMLButtonElement> | null | undefined;
'on:waiting'?: import("svelte/elements").EventHandler<Event, HTMLButtonElement> | null | undefined;
'on:auxclick'?: import("svelte/elements").MouseEventHandler<HTMLButtonElement> | null | undefined;
'on:click'?: import("svelte/elements").MouseEventHandler<HTMLButtonElement> | null | undefined;
'on:contextmenu'?: import("svelte/elements").MouseEventHandler<HTMLButtonElement> | null | undefined;
'on:dblclick'?: import("svelte/elements").MouseEventHandler<HTMLButtonElement> | null | undefined;
'on:drag'?: import("svelte/elements").DragEventHandler<HTMLButtonElement> | null | undefined;
'on:dragend'?: import("svelte/elements").DragEventHandler<HTMLButtonElement> | null | undefined;
'on:dragenter'?: import("svelte/elements").DragEventHandler<HTMLButtonElement> | null | undefined;
'on:dragexit'?: import("svelte/elements").DragEventHandler<HTMLButtonElement> | null | undefined;
'on:dragleave'?: import("svelte/elements").DragEventHandler<HTMLButtonElement> | null | undefined;
'on:dragover'?: import("svelte/elements").DragEventHandler<HTMLButtonElement> | null | undefined;
'on:dragstart'?: import("svelte/elements").DragEventHandler<HTMLButtonElement> | null | undefined;
'on:drop'?: import("svelte/elements").DragEventHandler<HTMLButtonElement> | null | undefined;
'on:mousedown'?: import("svelte/elements").MouseEventHandler<HTMLButtonElement> | null | undefined;
'on:mouseenter'?: import("svelte/elements").MouseEventHandler<HTMLButtonElement> | null | undefined;
'on:mouseleave'?: import("svelte/elements").MouseEventHandler<HTMLButtonElement> | null | undefined;
'on:mousemove'?: import("svelte/elements").MouseEventHandler<HTMLButtonElement> | null | undefined;
'on:mouseout'?: import("svelte/elements").MouseEventHandler<HTMLButtonElement> | null | undefined;
'on:mouseover'?: import("svelte/elements").MouseEventHandler<HTMLButtonElement> | null | undefined;
'on:mouseup'?: import("svelte/elements").MouseEventHandler<HTMLButtonElement> | null | undefined;
'on:select'?: import("svelte/elements").EventHandler<Event, HTMLButtonElement> | null | undefined;
'on:selectionchange'?: import("svelte/elements").EventHandler<Event, HTMLButtonElement> | null | undefined;
'on:selectstart'?: import("svelte/elements").EventHandler<Event, HTMLButtonElement> | null | undefined;
'on:touchcancel'?: import("svelte/elements").TouchEventHandler<HTMLButtonElement> | null | undefined;
'on:touchend'?: import("svelte/elements").TouchEventHandler<HTMLButtonElement> | null | undefined;
'on:touchmove'?: import("svelte/elements").TouchEventHandler<HTMLButtonElement> | null | undefined;
'on:touchstart'?: import("svelte/elements").TouchEventHandler<HTMLButtonElement> | null | undefined;
'on:gotpointercapture'?: import("svelte/elements").PointerEventHandler<HTMLButtonElement> | null | undefined;
'on:pointercancel'?: import("svelte/elements").PointerEventHandler<HTMLButtonElement> | null | undefined;
'on:pointerdown'?: import("svelte/elements").PointerEventHandler<HTMLButtonElement> | null | undefined;
'on:pointerenter'?: import("svelte/elements").PointerEventHandler<HTMLButtonElement> | null | undefined;
'on:pointerleave'?: import("svelte/elements").PointerEventHandler<HTMLButtonElement> | null | undefined;
'on:pointermove'?: import("svelte/elements").PointerEventHandler<HTMLButtonElement> | null | undefined;
'on:pointerout'?: import("svelte/elements").PointerEventHandler<HTMLButtonElement> | null | undefined;
'on:pointerover'?: import("svelte/elements").PointerEventHandler<HTMLButtonElement> | null | undefined;
'on:pointerup'?: import("svelte/elements").PointerEventHandler<HTMLButtonElement> | null | undefined;
'on:lostpointercapture'?: import("svelte/elements").PointerEventHandler<HTMLButtonElement> | null | undefined;
'on:scroll'?: import("svelte/elements").UIEventHandler<HTMLButtonElement> | null | undefined;
'on:resize'?: import("svelte/elements").UIEventHandler<HTMLButtonElement> | null | undefined;
'on:wheel'?: import("svelte/elements").WheelEventHandler<HTMLButtonElement> | null | undefined;
'on:animationstart'?: import("svelte/elements").AnimationEventHandler<HTMLButtonElement> | null | undefined;
'on:animationend'?: import("svelte/elements").AnimationEventHandler<HTMLButtonElement> | null | undefined;
'on:animationiteration'?: import("svelte/elements").AnimationEventHandler<HTMLButtonElement> | null | undefined;
'on:transitionstart'?: import("svelte/elements").TransitionEventHandler<HTMLButtonElement> | null | undefined;
'on:transitionrun'?: import("svelte/elements").TransitionEventHandler<HTMLButtonElement> | null | undefined;
'on:transitionend'?: import("svelte/elements").TransitionEventHandler<HTMLButtonElement> | null | undefined;
'on:transitioncancel'?: import("svelte/elements").TransitionEventHandler<HTMLButtonElement> | null | undefined;
'on:outrostart'?: import("svelte/elements").EventHandler<CustomEvent<null>, HTMLButtonElement> | null | undefined;
'on:outroend'?: import("svelte/elements").EventHandler<CustomEvent<null>, HTMLButtonElement> | null | undefined;
'on:introstart'?: import("svelte/elements").EventHandler<CustomEvent<null>, HTMLButtonElement> | null | undefined;
'on:introend'?: import("svelte/elements").EventHandler<CustomEvent<null>, HTMLButtonElement> | null | undefined;
'on:message'?: import("svelte/elements").MessageEventHandler<HTMLButtonElement> | null | undefined;
'on:messageerror'?: import("svelte/elements").MessageEventHandler<HTMLButtonElement> | null | undefined;
'on:cancel'?: import("svelte/elements").EventHandler<Event, HTMLButtonElement> | null | undefined;
'on:close'?: import("svelte/elements").EventHandler<Event, HTMLButtonElement> | null | undefined;
'on:fullscreenchange'?: import("svelte/elements").EventHandler<Event, HTMLButtonElement> | null | undefined;
'on:fullscreenerror'?: import("svelte/elements").EventHandler<Event, HTMLButtonElement> | null | undefined;
};

@@ -6,0 +219,0 @@ events: {

@@ -19,5 +19,5 @@ # Svelte Legos

<script lang="ts">
import { useCounter } from "$lib";
import { counterStore } from "svelte-legos";
const { counter, inc, dec, set, reset } = useCounter();
const { counter, inc, dec, set, reset } = counterStore();
</script>

@@ -34,9 +34,16 @@

<script lang="ts">
import { useWindowSize } from "$lib";
import { clickOutsideAction } from "svelte-legos";
const size = useWindowSize();
let hidden = false;
function handleClickOutside() {
hidden = !hidden;
}
</script>
<div>{$size.width}</div>
<div>{$size.height}</div>
<div
class="modal"
use:clickOutsideAction
on:clickoutside={handleClickOutside}
/>
```

@@ -43,0 +50,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc