lightnet 3.8.0 → 3.8.1

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # lightnet
2
2
 
3
+ ## 3.8.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#305](https://github.com/LightNetDev/LightNet/pull/305) [`0b61c57`](https://github.com/LightNetDev/LightNet/commit/0b61c578d8813cb05d8b91d78dc84755d77e8f1a) Thanks [@smn-cds](https://github.com/smn-cds)! - MediaGallerySection passes all properties to its section component.
8
+
3
9
  ## 3.8.0
4
10
 
5
11
  ### Minor Changes
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "lightnet",
3
3
  "type": "module",
4
4
  "license": "MIT",
5
- "version": "3.8.0",
5
+ "version": "3.8.1",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/LightNetDev/lightnet",
@@ -2,7 +2,7 @@
2
2
  import type { ImageMetadata } from "astro"
3
3
 
4
4
  import MediaGallery from "./MediaGallery.astro"
5
- import Section from "./Section.astro"
5
+ import Section, { type Props as SectionProps } from "./Section.astro"
6
6
 
7
7
  type MediaItem = {
8
8
  id: string
@@ -13,15 +13,14 @@ type MediaItem = {
13
13
  }
14
14
  }
15
15
 
16
- interface Props {
17
- title?: string
16
+ type Props = SectionProps & {
18
17
  items: (MediaItem | undefined)[]
19
18
  layout: "book" | "video" | "portrait" | "landscape"
20
19
  }
21
20
 
22
- const { title, items, layout } = Astro.props
21
+ const { items, layout, ...sectionProps } = Astro.props
23
22
  ---
24
23
 
25
- <Section title={title}>
24
+ <Section {...sectionProps}>
26
25
  <MediaGallery items={items} layout={layout} />
27
26
  </Section>