@k34a/blog 0.0.11 → 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,43 +1,42 @@
1
1
  "use client";
2
- import { jsx as e, jsxs as l } from "react/jsx-runtime";
3
- import { Box as c, Stack as a, Title as m, Flex as g, Anchor as d, Badge as f } from "@mantine/core";
4
- import { IconHash as s } from "@tabler/icons-react";
5
- import { BannerImage as h } from "./banner-image.js";
6
- import u from "./description.js";
7
- function A(i) {
8
- const t = typeof window < "u" ? window.location.origin : "", r = ((...n) => n.map((o) => o.replace(/^\/+|\/+$/g, "")).filter(Boolean).join("/"))(t, i.config.listingPage);
9
- return /* @__PURE__ */ e(c, { maw: 800, mx: "auto", px: "sm", py: "lg", children: /* @__PURE__ */ l(a, { gap: "md", children: [
10
- /* @__PURE__ */ e(m, { order: 1, children: i.title }),
11
- i.banner_image && /* @__PURE__ */ e(
12
- h,
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
+ import { IconHash as o } from "@tabler/icons-react";
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,
13
12
  {
14
- id: i.id,
15
- src: i.banner_image,
16
- title: i.title,
17
- config: i.config
13
+ id: e.id,
14
+ src: e.banner_image,
15
+ title: e.title,
16
+ config: e.config
18
17
  }
19
18
  ),
20
- /* @__PURE__ */ e(
21
- u,
19
+ /* @__PURE__ */ i(
20
+ f,
22
21
  {
23
- articleId: i.id,
24
- html: i.description,
25
- config: i.config
22
+ articleId: e.id,
23
+ html: e.description,
24
+ config: e.config
26
25
  }
27
26
  ),
28
- /* @__PURE__ */ e(g, { wrap: "wrap", gap: "md", align: "center", mb: "lg", children: i.tags.map((n) => /* @__PURE__ */ e(d, { href: `${r}?tags=${n}`, children: /* @__PURE__ */ e(
29
- f,
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,
30
29
  {
31
30
  size: "md",
32
31
  color: "sky.5",
33
32
  variant: "outline",
34
- leftSection: /* @__PURE__ */ e(s, { size: 14 }),
33
+ leftSection: /* @__PURE__ */ i(o, { size: 14 }),
35
34
  style: { cursor: "pointer" },
36
- children: n
35
+ children: n.name
37
36
  }
38
- ) }, n)) })
37
+ ) }, n.name)) })
39
38
  ] }) });
40
39
  }
41
40
  export {
42
- A as default
41
+ b as default
43
42
  };
@@ -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.11",
5
+ "version": "0.0.12",
6
6
  "type": "module",
7
7
  "exports": {
8
8
  ".": {