@k34a/blog 0.0.9 → 0.0.11

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