svelte-legos
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -64,2 +64,3 @@ export { counterStore } from "./stores/counterStore"; | ||
export { screenOrientation } from "./utilities/screenOrientation"; | ||
export { startViewTransition } from "./utilities/startViewTransition"; | ||
export { swirl } from "./transitions/swirl"; | ||
@@ -66,0 +67,0 @@ export { slide } from "./transitions/slide"; |
@@ -66,2 +66,3 @@ export { counterStore } from "./stores/counterStore"; | ||
export { screenOrientation } from "./utilities/screenOrientation"; | ||
export { startViewTransition } from "./utilities/startViewTransition" | ||
@@ -68,0 +69,0 @@ export { swirl } from "./transitions/swirl"; |
@@ -8,4 +8,5 @@ /// <reference types="svelte" /> | ||
subscribe: (this: void, run: import("svelte/store").Subscriber<string>, invalidate?: import("svelte/store").Invalidator<string> | undefined) => import("svelte/store").Unsubscriber; | ||
update: (this: void, updater: import("svelte/store").Updater<string>) => void; | ||
set: (value: string) => void; | ||
}; | ||
export {}; |
@@ -18,4 +18,5 @@ import { defaultDocument } from "../../shared"; | ||
subscribe: store.subscribe, | ||
update: store.update, | ||
set, | ||
}; | ||
} |
/// <reference types="svelte" /> | ||
/** | ||
* Gets the current date in a Svelte readable store. The date is updated every 10ms. | ||
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date | ||
* | ||
* | ||
* @example | ||
* ```ts | ||
* import { dateStore } from 'svelte-legos'; | ||
* | ||
* $: console.log($dateStore); // Fri Sep 15 2023 11:43:12 GMT+0100 (British Summer Time) | ||
* ``` | ||
*/ | ||
export declare const dateStore: import("svelte/store").Readable<Date>; |
import { readable } from "svelte/store"; | ||
/** | ||
* Gets the current date in a Svelte readable store. The date is updated every 10ms. | ||
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date | ||
* | ||
* | ||
* @example | ||
* ```ts | ||
* import { dateStore } from 'svelte-legos'; | ||
* | ||
* $: console.log($dateStore); // Fri Sep 15 2023 11:43:12 GMT+0100 (British Summer Time) | ||
* ``` | ||
*/ | ||
export const dateStore = readable(new Date(), (set) => { | ||
@@ -3,0 +15,0 @@ const interval = setInterval(() => { |
<script lang="ts"> | ||
import { dateStore } from 'svelte-legos'; | ||
// $dateStore gives you the current date formatted | ||
// $dateStore gives you the current date | ||
</script> |
{ | ||
"name": "svelte-legos", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "A framework for Svelte Utilities", | ||
@@ -15,3 +15,3 @@ "author": "Ankur Singhal", | ||
}, | ||
"homepage": "https://svelte-legos.singhalankur.com/", | ||
"homepage": "https://svelte-legos.surge.sh", | ||
"scripts": { | ||
@@ -18,0 +18,0 @@ "dev": "vite dev", |
@@ -9,3 +9,3 @@ # Svelte Legos | ||
- 🎪 [**Interactive docs & demos**](https://sveltelegos.com) | ||
- 🎪 [**Interactive docs & demos**](https://svelte-legos.surge.sh) | ||
- ⚡ **Fully tree shakeable**: Only take what you want, [bundle size] | ||
@@ -47,3 +47,3 @@ - 🦾 **Type Strong**: Written in [TypeScript](https://www.typescriptlang.org/), with [TS Docs](https://github.com/microsoft/tsdoc) | ||
Refer to [functions list](https://sveltelegos.com/guides) or [documentations](https://sveltelegos.com) for more details. | ||
Refer to [functions list](https://svelte-legos.surge.sh/guides) or [documentations](https://svelte-legos.surge.sh) for more details. | ||
@@ -50,0 +50,0 @@ ## 📦 Install |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
327765
561
6778
1