@nemigo/layout 2.8.0 → 2.8.2

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.
@@ -0,0 +1,9 @@
1
+ <script lang="ts">const { child } = $props();
2
+ </script>
3
+
4
+ {#if child.type === "snippet"}
5
+ {@render child.func({ props: child.props })}
6
+ {:else}
7
+ {@const Body = child.func}
8
+ <Body props={child.props} />
9
+ {/if}
@@ -0,0 +1,7 @@
1
+ import type { SvelteChild } from "@nemigo/svelte/types";
2
+ type $$ComponentProps = {
3
+ child: SvelteChild<any>;
4
+ };
5
+ declare const Child: import("svelte").Component<$$ComponentProps, {}, "">;
6
+ type Child = ReturnType<typeof Child>;
7
+ export default Child;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nemigo/layout",
3
- "version": "2.8.0",
3
+ "version": "2.8.2",
4
4
  "private": false,
5
5
  "license": "MPL-2.0",
6
6
  "author": {
@@ -18,6 +18,10 @@
18
18
  "format": "bunx --bun prettier --write ./ && bunx --bun biome check --write --linter-enabled=false"
19
19
  },
20
20
  "exports": {
21
+ "./Child": {
22
+ "types": "./dist/Child.svelte.d.ts",
23
+ "svelte": "./dist/Child.svelte"
24
+ },
21
25
  "./Context": {
22
26
  "types": "./dist/Context.svelte.d.ts",
23
27
  "svelte": "./dist/Context.svelte"