lightnet 3.4.2 → 3.4.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # lightnet
2
2
 
3
+ ## 3.4.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#263](https://github.com/LightNetDev/LightNet/pull/263) [`a0d6dc5`](https://github.com/LightNetDev/LightNet/commit/a0d6dc5750284fc26fe3e85497589376b44c3cce) Thanks [@smn-cds](https://github.com/smn-cds)! - Fixes error when all categories are removed through the Admin UI.
8
+
9
+ ## 3.4.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [#259](https://github.com/LightNetDev/LightNet/pull/259) [`7e61913`](https://github.com/LightNetDev/LightNet/commit/7e61913cf49863807c25cfdb379a878e47642b03) Thanks [@smn-cds](https://github.com/smn-cds)! - Change language selector icon from "scripts" to "web" icon.
14
+
15
+ - [#259](https://github.com/LightNetDev/LightNet/pull/259) [`7e61913`](https://github.com/LightNetDev/LightNet/commit/7e61913cf49863807c25cfdb379a878e47642b03) Thanks [@smn-cds](https://github.com/smn-cds)! - Change icon of share button, make it consistent with open button.
16
+
3
17
  ## 3.4.2
4
18
 
5
19
  ### Patch Changes
package/README.md CHANGED
@@ -1,8 +1,10 @@
1
1
  # LightNet
2
2
 
3
- Share the message of Jesus and strengthen believers worldwide. LightNet empowers you to create digital media libraries, making your content accessible on the web — including videos, audio, images, and books.
3
+ Share the message of Jesus and strengthen believers worldwide.
4
4
 
5
- LightNet is built as an integration for the [Astro](https://astro.build) framework, enabling the creation of statically generated sites that can be hosted on any file server. These sites are fast, easily extendable, and fully support internationalization.
5
+ LightNet empowers ministries to run their own digital media libraries. They can easily share content in the heart language of the communities they serve - including videos, audio, images, and documents.
6
+
7
+ It is built as an integration for the [Astro framework](https://astro.build), enabling the creation of statically generated sites that can be hosted on any file server. These sites are fast, easily extendable, and fully support internationalization.
6
8
 
7
9
  ## Documentation
8
10
 
@@ -6,9 +6,9 @@ case `uname` in
6
6
  esac
7
7
 
8
8
  if [ -z "$NODE_PATH" ]; then
9
- export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/astro@5.6.2_@types+node@22.14.1_jiti@2.4.2_lightningcss@1.29.1_rollup@4.40.0_terser@5.39.0_typescript@5.8.3_yaml@2.7.1/node_modules/astro/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/astro@5.6.2_@types+node@22.14.1_jiti@2.4.2_lightningcss@1.29.1_rollup@4.40.0_terser@5.39.0_typescript@5.8.3_yaml@2.7.1/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/node_modules"
9
+ export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/astro@5.7.13_@types+node@22.15.21_jiti@2.4.2_lightningcss@1.29.1_rollup@4.41.0_terser@5.39.0_typescript@5.8.3_yaml@2.8.0/node_modules/astro/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/astro@5.7.13_@types+node@22.15.21_jiti@2.4.2_lightningcss@1.29.1_rollup@4.41.0_terser@5.39.0_typescript@5.8.3_yaml@2.8.0/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/node_modules"
10
10
  else
11
- export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/astro@5.6.2_@types+node@22.14.1_jiti@2.4.2_lightningcss@1.29.1_rollup@4.40.0_terser@5.39.0_typescript@5.8.3_yaml@2.7.1/node_modules/astro/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/astro@5.6.2_@types+node@22.14.1_jiti@2.4.2_lightningcss@1.29.1_rollup@4.40.0_terser@5.39.0_typescript@5.8.3_yaml@2.7.1/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/node_modules:$NODE_PATH"
11
+ export NODE_PATH="/home/runner/work/LightNet/LightNet/node_modules/.pnpm/astro@5.7.13_@types+node@22.15.21_jiti@2.4.2_lightningcss@1.29.1_rollup@4.41.0_terser@5.39.0_typescript@5.8.3_yaml@2.8.0/node_modules/astro/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/astro@5.7.13_@types+node@22.15.21_jiti@2.4.2_lightningcss@1.29.1_rollup@4.41.0_terser@5.39.0_typescript@5.8.3_yaml@2.8.0/node_modules:/home/runner/work/LightNet/LightNet/node_modules/.pnpm/node_modules:$NODE_PATH"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
14
  exec "$basedir/node" "$basedir/../astro/astro.js" "$@"
@@ -4,11 +4,11 @@
4
4
  "version": "0.0.1",
5
5
  "private": "true",
6
6
  "dependencies": {
7
- "@astrojs/react": "^4.2.4",
7
+ "@astrojs/react": "^4.2.7",
8
8
  "@astrojs/tailwind": "^6.0.2",
9
- "@lightnet/decap-admin": "^3.1.0",
10
- "astro": "^5.6.2",
11
- "lightnet": "^3.4.1",
9
+ "@lightnet/decap-admin": "^3.1.1",
10
+ "astro": "^5.7.13",
11
+ "lightnet": "^3.4.3",
12
12
  "react": "^19.1.0",
13
13
  "react-dom": "^19.1.0",
14
14
  "sharp": "^0.33.5",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "lightnet",
3
3
  "type": "module",
4
4
  "license": "MIT",
5
- "version": "3.4.2",
5
+ "version": "3.4.4",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/LightNetDev/lightnet",
@@ -45,17 +45,17 @@
45
45
  "@iconify-json/mdi": "^1.2.3",
46
46
  "@iconify/tailwind": "^1.2.0",
47
47
  "@tailwindcss/typography": "^0.5.16",
48
- "@types/react": "^19.1.2",
48
+ "@types/react": "^19.1.5",
49
49
  "daisyui": "^4.12.24",
50
50
  "fuse.js": "^7.1.0",
51
- "i18next": "^25.0.0",
52
- "marked": "^15.0.8",
53
- "yaml": "^2.7.1"
51
+ "i18next": "^25.2.0",
52
+ "marked": "^15.0.12",
53
+ "yaml": "^2.8.0"
54
54
  },
55
55
  "devDependencies": {
56
- "@playwright/test": "^1.51.1",
57
- "@types/node": "^22.14.1",
58
- "vitest": "^3.1.1"
56
+ "@playwright/test": "^1.52.0",
57
+ "@types/node": "^22.15.21",
58
+ "vitest": "^3.1.4"
59
59
  },
60
60
  "scripts": {
61
61
  "test": "vitest",
@@ -12,7 +12,7 @@ type MediaItem = {
12
12
  data: {
13
13
  title: string
14
14
  language: string
15
- authors?: string[]
15
+ authors?: string[] | null
16
16
  type: { id: string }
17
17
  image: ImageMetadata
18
18
  }
@@ -72,7 +72,7 @@ export const mediaItemSchema = z.object({
72
72
  *
73
73
  * @example ["George Miller", "Timothy Meier"]
74
74
  */
75
- authors: z.array(z.string()).optional(),
75
+ authors: z.array(z.string()).nullish(),
76
76
  /**
77
77
  * Date this media item has been created on this lightnet instance.
78
78
  * Format is YYYY-MM-DD
@@ -85,7 +85,7 @@ export const mediaItemSchema = z.object({
85
85
  *
86
86
  * @example ["family"]
87
87
  */
88
- categories: z.array(reference("categories")).optional(),
88
+ categories: z.array(reference("categories")).nullish(),
89
89
  /**
90
90
  * List of media collections this media item is included.
91
91
  * Collections can be used to group media items into series, playlists...
@@ -105,7 +105,7 @@ export const mediaItemSchema = z.object({
105
105
  index: z.number().optional(),
106
106
  }),
107
107
  )
108
- .optional(),
108
+ .nullish(),
109
109
  /**
110
110
  * BCP-47 name of the language this media item is in.
111
111
  *
@@ -27,7 +27,7 @@ function currentPathWithLocale(locale: string) {
27
27
 
28
28
  {
29
29
  translations.length > 1 && (
30
- <Menu icon="mdi--translate" label="ln.header.select-language">
30
+ <Menu icon="mdi--web" label="ln.header.select-language">
31
31
  {translations.map(({ label, locale, active, href }) => (
32
32
  <MenuItem href={href} hreflang={locale} active={active}>
33
33
  {label}
@@ -2,8 +2,8 @@ export type SearchItem = {
2
2
  title: string
3
3
  id: string
4
4
  type: string
5
- authors?: string[]
6
- categories?: string[]
5
+ authors?: string[] | null
6
+ categories?: string[] | null
7
7
  description?: string
8
8
  language: string
9
9
  image: { src: string; width: number; height: number }
@@ -18,11 +18,6 @@ const content = createContentMetadata(item.data.content[0])
18
18
  target={content.target}
19
19
  hreflang={item.data.language}
20
20
  >
21
- {
22
- content.canBeOpened
23
- ? Astro.locals.i18n.t(openActionLabel)
24
- : Astro.locals.i18n.t("ln.details.download")
25
- }
26
21
  {
27
22
  content.isExternal && (
28
23
  <Icon
@@ -31,4 +26,9 @@ const content = createContentMetadata(item.data.content[0])
31
26
  />
32
27
  )
33
28
  }
29
+ {
30
+ content.canBeOpened
31
+ ? Astro.locals.i18n.t(openActionLabel)
32
+ : Astro.locals.i18n.t("ln.details.download")
33
+ }
34
34
  </a>
@@ -10,7 +10,7 @@ interface Props {
10
10
  class="flex cursor-pointer items-center justify-center gap-2 rounded-2xl bg-gray-200 px-6 py-3 font-bold uppercase text-gray-600 shadow-sm hover:bg-gray-300"
11
11
  class:list={[Astro.props.className]}
12
12
  id="share-btn"
13
- ><Icon className="mdi--share-variant-outline" ariaLabel="" />
13
+ ><Icon className="mdi--share" ariaLabel="" />
14
14
  {Astro.locals.i18n.t("ln.details.share")}</button
15
15
  >
16
16
  <div