🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

svelte-zoo

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-zoo - npm Package Compare versions

Comparing version

to
0.4.5

2

dist/CodeLinks.svelte.d.ts

@@ -8,3 +8,3 @@ import { SvelteComponentTyped } from "svelte";

stackblitz?: string | boolean | null | undefined;
file?: string | null | undefined;
file?: string | undefined;
btn_text?: {

@@ -11,0 +11,0 @@ repl?: string | undefined;

/** @typedef {typeof __propDef.props} AlertProps */
/** @typedef {typeof __propDef.events} AlertEvents */
/** @typedef {typeof __propDef.slots} AlertSlots */
export default class Alert {
export default class Alert extends SvelteComponentTyped<{
[x: string]: any;
}, {
[evt: string]: CustomEvent<any>;
}, {}> {
}

@@ -9,2 +13,3 @@ export type AlertProps = typeof __propDef.props;

export type AlertSlots = typeof __propDef.slots;
import { SvelteComponentTyped } from "svelte";
declare const __propDef: {

@@ -11,0 +16,0 @@ props: {

/** @typedef {typeof __propDef.props} CheckProps */
/** @typedef {typeof __propDef.events} CheckEvents */
/** @typedef {typeof __propDef.slots} CheckSlots */
export default class Check {
export default class Check extends SvelteComponentTyped<{
[x: string]: any;
}, {
[evt: string]: CustomEvent<any>;
}, {}> {
}

@@ -9,2 +13,3 @@ export type CheckProps = typeof __propDef.props;

export type CheckSlots = typeof __propDef.slots;
import { SvelteComponentTyped } from "svelte";
declare const __propDef: {

@@ -11,0 +16,0 @@ props: {

/** @typedef {typeof __propDef.props} CollapseProps */
/** @typedef {typeof __propDef.events} CollapseEvents */
/** @typedef {typeof __propDef.slots} CollapseSlots */
export default class Collapse {
export default class Collapse extends SvelteComponentTyped<{
[x: string]: any;
}, {
click: MouseEvent;
} & {
[evt: string]: CustomEvent<any>;
}, {}> {
}

@@ -9,2 +15,3 @@ export type CollapseProps = typeof __propDef.props;

export type CollapseSlots = typeof __propDef.slots;
import { SvelteComponentTyped } from "svelte";
declare const __propDef: {

@@ -11,0 +18,0 @@ props: {

/** @typedef {typeof __propDef.props} CopyProps */
/** @typedef {typeof __propDef.events} CopyEvents */
/** @typedef {typeof __propDef.slots} CopySlots */
export default class Copy {
export default class Copy extends SvelteComponentTyped<{
[x: string]: any;
}, {
[evt: string]: CustomEvent<any>;
}, {}> {
}

@@ -9,2 +13,3 @@ export type CopyProps = typeof __propDef.props;

export type CopySlots = typeof __propDef.slots;
import { SvelteComponentTyped } from "svelte";
declare const __propDef: {

@@ -11,0 +16,0 @@ props: {

/** @typedef {typeof __propDef.props} CrossProps */
/** @typedef {typeof __propDef.events} CrossEvents */
/** @typedef {typeof __propDef.slots} CrossSlots */
export default class Cross {
export default class Cross extends SvelteComponentTyped<{
[x: string]: any;
}, {
[evt: string]: CustomEvent<any>;
}, {}> {
}

@@ -9,2 +13,3 @@ export type CrossProps = typeof __propDef.props;

export type CrossSlots = typeof __propDef.slots;
import { SvelteComponentTyped } from "svelte";
declare const __propDef: {

@@ -11,0 +16,0 @@ props: {

/** @typedef {typeof __propDef.props} DisabledProps */
/** @typedef {typeof __propDef.events} DisabledEvents */
/** @typedef {typeof __propDef.slots} DisabledSlots */
export default class Disabled {
export default class Disabled extends SvelteComponentTyped<{
[x: string]: any;
}, {
[evt: string]: CustomEvent<any>;
}, {}> {
}

@@ -9,2 +13,3 @@ export type DisabledProps = typeof __propDef.props;

export type DisabledSlots = typeof __propDef.slots;
import { SvelteComponentTyped } from "svelte";
declare const __propDef: {

@@ -11,0 +16,0 @@ props: {

/** @typedef {typeof __propDef.props} ExpandProps */
/** @typedef {typeof __propDef.events} ExpandEvents */
/** @typedef {typeof __propDef.slots} ExpandSlots */
export default class Expand {
export default class Expand extends SvelteComponentTyped<{
[x: string]: any;
}, {
[evt: string]: CustomEvent<any>;
}, {}> {
}

@@ -9,2 +13,3 @@ export type ExpandProps = typeof __propDef.props;

export type ExpandSlots = typeof __propDef.slots;
import { SvelteComponentTyped } from "svelte";
declare const __propDef: {

@@ -11,0 +16,0 @@ props: {

/** @typedef {typeof __propDef.props} GitHubProps */
/** @typedef {typeof __propDef.events} GitHubEvents */
/** @typedef {typeof __propDef.slots} GitHubSlots */
export default class GitHub {
export default class GitHub extends SvelteComponentTyped<{
[x: string]: any;
}, {
[evt: string]: CustomEvent<any>;
}, {}> {
}

@@ -9,2 +13,3 @@ export type GitHubProps = typeof __propDef.props;

export type GitHubSlots = typeof __propDef.slots;
import { SvelteComponentTyped } from "svelte";
declare const __propDef: {

@@ -11,0 +16,0 @@ props: {

/** @typedef {typeof __propDef.props} StackBlitzProps */
/** @typedef {typeof __propDef.events} StackBlitzEvents */
/** @typedef {typeof __propDef.slots} StackBlitzSlots */
export default class StackBlitz {
export default class StackBlitz extends SvelteComponentTyped<{
[x: string]: any;
}, {
[evt: string]: CustomEvent<any>;
}, {}> {
}

@@ -9,2 +13,3 @@ export type StackBlitzProps = typeof __propDef.props;

export type StackBlitzSlots = typeof __propDef.slots;
import { SvelteComponentTyped } from "svelte";
declare const __propDef: {

@@ -11,0 +16,0 @@ props: {

/** @typedef {typeof __propDef.props} SvelteProps */
/** @typedef {typeof __propDef.events} SvelteEvents */
/** @typedef {typeof __propDef.slots} SvelteSlots */
export default class Svelte {
export default class Svelte extends SvelteComponentTyped<{
[x: string]: any;
}, {
[evt: string]: CustomEvent<any>;
}, {}> {
}

@@ -9,2 +13,3 @@ export type SvelteProps = typeof __propDef.props;

export type SvelteSlots = typeof __propDef.slots;
import { SvelteComponentTyped } from "svelte";
declare const __propDef: {

@@ -11,0 +16,0 @@ props: {

@@ -1,2 +0,21 @@

export declare function session_store<T>(name: string, initial: T): any;
export declare function url_param_store(name: string, initial: string | null): any;
export type StorageType = 'localStorage' | 'sessionStorage';
export declare function persisted_store<T>(name: string, initial: T, type?: StorageType): {
set: (val: T) => void;
update: (fn: (val: T) => T) => void;
subscribe(this: void, run: import("svelte/store").Subscriber<T>, invalidate?: ((value?: T | undefined) => void) | undefined): import("svelte/store").Unsubscriber;
};
export declare const local_store: <T>(name: string, initial: T) => {
set: (val: T) => void;
update: (fn: (val: T) => T) => void;
subscribe(this: void, run: import("svelte/store").Subscriber<T>, invalidate?: ((value?: T | undefined) => void) | undefined): import("svelte/store").Unsubscriber;
};
export declare const session_store: <T>(name: string, initial: T) => {
set: (val: T) => void;
update: (fn: (val: T) => T) => void;
subscribe(this: void, run: import("svelte/store").Subscriber<T>, invalidate?: ((value?: T | undefined) => void) | undefined): import("svelte/store").Unsubscriber;
};
export declare function url_param_store(name: string, initial: string | null): {
set: (val: string | null) => void;
update: (fn: (val: string | null) => string | null) => void;
subscribe(this: void, run: import("svelte/store").Subscriber<string | null>, invalidate?: ((value?: string | null | undefined) => void) | undefined): import("svelte/store").Unsubscriber;
};
import { writable } from 'svelte/store';
export function session_store(name, initial) {
function set_session_val(name, val) {
if (typeof sessionStorage !== `undefined`) {
sessionStorage[name] = JSON.stringify(val);
export function persisted_store(name, initial, type = `localStorage`) {
function set_storage_val(name, val, type) {
if (typeof window !== `undefined`) {
window[type][name] = JSON.stringify(val);
}
}
if (typeof sessionStorage !== `undefined`) {
if (sessionStorage[name])
initial = JSON.parse(sessionStorage[name]);
else
set_session_val(name, initial);
// runs during store initialization
if (typeof window !== `undefined`) {
if (window[type][name]) {
// if the value is already in storage, use that
initial = JSON.parse(window[type][name]);
}
else {
// else set it
set_storage_val(name, initial, type);
}
}

@@ -18,3 +23,3 @@ const { set, update, ...store } = writable(initial);

set: (val) => {
set_session_val(name, val);
set_storage_val(name, val, type);
set(val);

@@ -25,3 +30,3 @@ },

const new_val = fn(val);
set_session_val(name, new_val);
set_storage_val(name, new_val, type);
return new_val;

@@ -32,2 +37,4 @@ });

}
export const local_store = (name, initial) => persisted_store(name, initial, `localStorage`);
export const session_store = (name, initial) => persisted_store(name, initial, `sessionStorage`);
export function url_param_store(name, initial) {

@@ -34,0 +41,0 @@ function set_url_param(name, val) {

@@ -8,3 +8,3 @@ {

"license": "MIT",
"version": "0.4.3",
"version": "0.4.5",
"type": "module",

@@ -23,12 +23,12 @@ "svelte": "./dist/index.js",

"dependencies": {
"@sveltejs/kit": "^1.11.0",
"svelte": "^3.56.0"
"@sveltejs/kit": "^1.15.7",
"svelte": "^3.58.0"
},
"devDependencies": {
"@sveltejs/adapter-static": "^2.0.1",
"@sveltejs/adapter-static": "^2.0.2",
"@sveltejs/package": "^2.0.2",
"@typescript-eslint/eslint-plugin": "^5.55.0",
"@typescript-eslint/parser": "^5.55.0",
"@vitest/coverage-c8": "^0.29.2",
"eslint": "^8.36.0",
"@typescript-eslint/eslint-plugin": "^5.59.0",
"@typescript-eslint/parser": "^5.59.0",
"@vitest/coverage-c8": "^0.30.1",
"eslint": "^8.38.0",
"eslint-plugin-svelte3": "^4.0.0",

@@ -39,12 +39,12 @@ "hastscript": "^7.2.0",

"mdsvexamples": "^0.3.3",
"prettier": "^2.8.4",
"prettier-plugin-svelte": "^2.9.0",
"prettier": "^2.8.7",
"prettier-plugin-svelte": "^2.10.0",
"rehype-autolink-headings": "^6.1.1",
"rehype-slug": "^5.1.0",
"svelte-check": "^3.1.4",
"svelte-preprocess": "^5.0.1",
"svelte2tsx": "^0.6.9",
"typescript": "5.0.1-rc",
"vite": "^4.1.4",
"vitest": "^0.29.2"
"svelte-check": "^3.2.0",
"svelte-preprocess": "^5.0.3",
"svelte2tsx": "^0.6.11",
"typescript": "5.0.4",
"vite": "^4.3.0",
"vitest": "^0.30.1"
},

@@ -51,0 +51,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet