@k34a/blog 0.0.10 → 0.0.12

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/README.md CHANGED
@@ -315,7 +315,6 @@ export default async function ArticlePage({ params }: PageProps) {
315
315
  <Article
316
316
  config={{
317
317
  supabaseHost: process.env.NEXT_PUBLIC_SUPABASE_HOSTNAME!,
318
- listingPage: '/articles',
319
318
  }}
320
319
  description={description}
321
320
  tags={article.tags}
@@ -5,7 +5,10 @@ type Props = {
5
5
  banner_image?: string;
6
6
  id: string;
7
7
  description: string;
8
- tags: string[];
8
+ tags: {
9
+ name: string;
10
+ href: string;
11
+ }[];
9
12
  };
10
13
  export default function Article(props: Props): import("react/jsx-runtime").JSX.Element;
11
14
  export {};
@@ -1,47 +1,40 @@
1
1
  "use client";
2
- import { jsx as e, jsxs as n } from "react/jsx-runtime";
3
- import { Box as r, Stack as a, Title as c, Flex as l, Badge as m } from "@mantine/core";
2
+ import { jsx as i, jsxs as r } from "react/jsx-runtime";
3
+ import { Box as t, Stack as a, Title as c, Flex as l, Badge as m } from "@mantine/core";
4
4
  import { IconHash as o } from "@tabler/icons-react";
5
- import { BannerImage as g } from "./banner-image.js";
6
- import d from "./description.js";
7
- function b(i) {
8
- return /* @__PURE__ */ e(r, { maw: 800, mx: "auto", px: "sm", py: "lg", children: /* @__PURE__ */ n(a, { gap: "md", children: [
9
- /* @__PURE__ */ e(c, { order: 1, children: i.title }),
10
- i.banner_image && /* @__PURE__ */ e(
11
- g,
5
+ import { BannerImage as d } from "./banner-image.js";
6
+ import f from "./description.js";
7
+ function b(e) {
8
+ return /* @__PURE__ */ i(t, { maw: 800, mx: "auto", px: "sm", py: "lg", children: /* @__PURE__ */ r(a, { gap: "md", children: [
9
+ /* @__PURE__ */ i(c, { order: 1, children: e.title }),
10
+ e.banner_image && /* @__PURE__ */ i(
11
+ d,
12
12
  {
13
- id: i.id,
14
- src: i.banner_image,
15
- title: i.title,
16
- config: i.config
13
+ id: e.id,
14
+ src: e.banner_image,
15
+ title: e.title,
16
+ config: e.config
17
17
  }
18
18
  ),
19
- /* @__PURE__ */ e(
20
- d,
19
+ /* @__PURE__ */ i(
20
+ f,
21
21
  {
22
- articleId: i.id,
23
- html: i.description,
24
- config: i.config
22
+ articleId: e.id,
23
+ html: e.description,
24
+ config: e.config
25
25
  }
26
26
  ),
27
- /* @__PURE__ */ e(l, { wrap: "wrap", gap: "md", align: "center", mb: "lg", children: i.tags.map((t) => /* @__PURE__ */ e(
28
- "a",
27
+ /* @__PURE__ */ i(l, { wrap: "wrap", gap: "md", align: "center", mb: "lg", children: e.tags.map((n) => /* @__PURE__ */ i("a", { href: n.href, children: /* @__PURE__ */ i(
28
+ m,
29
29
  {
30
- href: `${i.config.listingPage}?tags=${t}`,
31
- children: /* @__PURE__ */ e(
32
- m,
33
- {
34
- size: "md",
35
- color: "sky.5",
36
- variant: "outline",
37
- leftSection: /* @__PURE__ */ e(o, { size: 14 }),
38
- style: { cursor: "pointer" },
39
- children: t
40
- }
41
- )
42
- },
43
- t
44
- )) })
30
+ size: "md",
31
+ color: "sky.5",
32
+ variant: "outline",
33
+ leftSection: /* @__PURE__ */ i(o, { size: 14 }),
34
+ style: { cursor: "pointer" },
35
+ children: n.name
36
+ }
37
+ ) }, n.name)) })
45
38
  ] }) });
46
39
  }
47
40
  export {
@@ -1,4 +1,3 @@
1
1
  export interface ComponentsConfig {
2
2
  supabaseHost: string;
3
- listingPage: string;
4
3
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@k34a/blog",
3
3
  "description": "Create and share articles with your audience.",
4
4
  "private": false,
5
- "version": "0.0.10",
5
+ "version": "0.0.12",
6
6
  "type": "module",
7
7
  "exports": {
8
8
  ".": {