svelte-inline-modal
Advanced tools
Comparing version 2.0.0-next.1 to 2.0.0
import type { Snippet } from 'svelte'; | ||
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> { | ||
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & { | ||
$$bindings?: Bindings; | ||
} & Exports; | ||
(internal: unknown, props: Props & { | ||
$$events?: Events; | ||
$$slots?: Slots; | ||
}): Exports; | ||
z_$$bindings?: Bindings; | ||
} | ||
declare const InlineModal: $$__sveltets_2_IsomorphicComponent<{ | ||
declare const InlineModal: import("svelte").Component<{ | ||
onclose: () => unknown; | ||
button: Snippet<[() => void]>; | ||
menu: Snippet<[() => void]>; | ||
}, { | ||
[evt: string]: CustomEvent<any>; | ||
}, {}, {}, "">; | ||
type InlineModal = InstanceType<typeof InlineModal>; | ||
}, {}, "">; | ||
type InlineModal = ReturnType<typeof InlineModal>; | ||
export default InlineModal; |
{ | ||
"name": "svelte-inline-modal", | ||
"version": "2.0.0-next.1", | ||
"version": "2.0.0", | ||
"description": "🪟 Simple Modal on the Fly", | ||
@@ -28,4 +28,4 @@ "type": "module", | ||
"type": "git", | ||
"url": "https://github.com/jill64/svelte-inline-modal.git", | ||
"image": "https://opengraph.githubassets.com/e0fd71b001b887800c08eaf2f4b441f2068290a773ae650712347928fa57f50f/jill64/svelte-inline-modal" | ||
"url": "git+https://github.com/jill64/svelte-inline-modal.git", | ||
"image": "https://opengraph.githubassets.com/1084f1870fdb8084d352e2304a49d729b3d877fcce20690cac9bd76e19430a53/jill64/svelte-inline-modal" | ||
}, | ||
@@ -44,5 +44,5 @@ "keywords": [ | ||
"prepack": "npm run build", | ||
"package": "svelte-kit sync && npx svelte-package && npx publint", | ||
"package": "svelte-kit sync && svelte-package && npx publint", | ||
"check": "svelte-kit sync && npx svelte-check", | ||
"format": "npx psvx", | ||
"format": "npx prettier -w .", | ||
"lint": "npm run check && npx eslint ." | ||
@@ -54,18 +54,17 @@ }, | ||
"devDependencies": { | ||
"@jill64/eslint-config-svelte": "1.3.4", | ||
"@jill64/npm-demo-layout": "1.0.244", | ||
"@jill64/playwright-config": "2.4.0", | ||
"@jill64/prettier-config": "1.0.0", | ||
"@jill64/universal-sanitizer": "1.3.0", | ||
"@playwright/test": "1.45.3", | ||
"@jill64/eslint-config-svelte": "1.3.10", | ||
"@jill64/npm-demo-layout": "1.0.249", | ||
"prettier-plugin-svelte": "3.3.2", | ||
"@jill64/playwright-config": "2.4.2", | ||
"@jill64/universal-sanitizer": "1.3.4", | ||
"@sveltejs/package": "2.3.7", | ||
"@playwright/test": "1.46.1", | ||
"@jill64/sentry-sveltekit-cloudflare": "1.7.16", | ||
"@sveltejs/adapter-cloudflare": "4.6.1", | ||
"@sveltejs/kit": "2.5.18", | ||
"@sveltejs/package": "2.3.2", | ||
"svelte": "5.0.0-next.197", | ||
"typescript": "5.5.4", | ||
"vite": "5.3.5", | ||
"@sveltejs/vite-plugin-svelte": "3.1.1" | ||
}, | ||
"prettier": "@jill64/prettier-config" | ||
"@sveltejs/adapter-cloudflare": "4.7.2", | ||
"@sveltejs/kit": "2.8.3", | ||
"svelte": "5.12.0", | ||
"typescript": "5.7.2", | ||
"vite": "5.4.11", | ||
"@sveltejs/vite-plugin-svelte": "3.1.2" | ||
} | ||
} |
@@ -38,8 +38,12 @@ <!----- BEGIN GHOST DOCS HEADER -----> | ||
<InlineModal onClose={onCloseModal} let:open> | ||
<button on:click={open}>Open</button> | ||
<div slot="menu" let:close> | ||
<!-- Your Modal Contents --> | ||
<button on:click={close}>Close</button> | ||
</div> | ||
<InlineModal onClose={onCloseModal}> | ||
{#snippet button(open)} | ||
<button onclick={open}>Open</button> | ||
{/snippet} | ||
{#snippet menu(close)} | ||
<div> | ||
<!-- Your Modal Contents --> | ||
<button onclick={close}>Close</button> | ||
</div> | ||
{/snippet} | ||
</InlineModal> | ||
@@ -46,0 +50,0 @@ ``` |
Sorry, the diff of this file is not supported yet
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
58
6377
10
1