@flyo/nitro-astro 1.3.3 → 1.3.4

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,16 @@
1
+ ---
2
+ import FlyoNitroBlock from './FlyoNitroBlock.astro';
3
+
4
+ interface Props {
5
+ slot: {
6
+ content?: object[]; // Add the content property with type object[]
7
+ };
8
+ }
9
+
10
+ const { slot } = Astro.props
11
+
12
+ ---
13
+
14
+ {slot?.content?.map((block: object) => (
15
+ <FlyoNitroBlock block={block} />
16
+ ))}
@@ -0,0 +1,2 @@
1
+ import BlockSlot from "./BlockSlot.astro"
2
+ export default BlockSlot
@@ -0,0 +1,2 @@
1
+ import BlockSlot from "./BlockSlot.astro";
2
+ export default BlockSlot;
package/module.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ declare module "virtual:*" {
2
+ const component: any;
3
+ export default component;
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flyo/nitro-astro",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "Astro Framework",
5
5
  "main": "./dist/nitro-astro.js",
6
6
  "module": "./dist/nitro-astro.mjs",
@@ -25,11 +25,17 @@
25
25
  "import": "./components/FlyoNitroPage.ts",
26
26
  "require": "./components/FlyoNitroPage.ts"
27
27
  },
28
+ "./BlockSlot.astro": {
29
+ "types": "./components/BlockSlot.ts",
30
+ "import": "./components/BlockSlot.ts",
31
+ "require": "./components/BlockSlot.ts"
32
+ },
28
33
  "./sitemap.ts": "./sitemap.ts",
29
34
  "./cdn.ts": "./cdn.ts"
30
35
  },
31
36
  "type": "module",
32
37
  "files": [
38
+ "module.d.ts",
33
39
  "dist",
34
40
  "components",
35
41
  "sitemap.ts",