@k34a/blog 0.0.5 → 0.0.6

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,15 +1,15 @@
1
1
  "use client";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
- import { Box as r, Image as a } from "@mantine/core";
4
- import { getImageForArticle as o } from "../utils.js";
5
- const s = (e) => {
6
- const i = o(
3
+ import { Box as r, Image as o } from "@mantine/core";
4
+ import { resolveImageForArticle as a } from "../utils.js";
5
+ const c = (e) => {
6
+ const i = a(
7
7
  e.config.supabaseHost,
8
8
  e.id,
9
9
  e.src
10
10
  );
11
11
  return /* @__PURE__ */ t(r, { pos: "relative", h: { base: 260, lg: "100%" }, children: /* @__PURE__ */ t(
12
- a,
12
+ o,
13
13
  {
14
14
  src: i,
15
15
  alt: e.title,
@@ -23,5 +23,5 @@ const s = (e) => {
23
23
  ) });
24
24
  };
25
25
  export {
26
- s as BannerImage
26
+ c as BannerImage
27
27
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { jsx as e } from "react/jsx-runtime";
3
- import { Typography as i } from "@mantine/core";
4
- import { applyImageFullPaths as l, getImageForArticle as n } from "../utils.js";
3
+ import { Typography as l } from "@mantine/core";
4
+ import { applyImageFullPaths as i, resolveImageForArticle as n } from "../utils.js";
5
5
  function s(t) {
6
- const r = l(
6
+ const r = i(
7
7
  t.html,
8
8
  (o) => n(
9
9
  t.config.supabaseHost,
@@ -11,7 +11,7 @@ function s(t) {
11
11
  `content/${o}`
12
12
  )
13
13
  );
14
- return /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e("div", { dangerouslySetInnerHTML: { __html: r } }) });
14
+ return /* @__PURE__ */ e(l, { children: /* @__PURE__ */ e("div", { dangerouslySetInnerHTML: { __html: r } }) });
15
15
  }
16
16
  export {
17
17
  s as default
@@ -1,2 +1,2 @@
1
1
  export declare function applyImageFullPaths(html: string, getImageFullPath: (src: string) => string): string;
2
- export declare function getImageForArticle(hostname: string, id: string, imageName: string): string;
2
+ export declare function resolveImageForArticle(hostname: string, id: string, imageName: string): string;
@@ -1556,5 +1556,5 @@ function Ku(e, u, t) {
1556
1556
  }
1557
1557
  export {
1558
1558
  Yu as applyImageFullPaths,
1559
- Ku as getImageForArticle
1559
+ Ku as resolveImageForArticle
1560
1560
  };
package/dist/main.d.ts CHANGED
@@ -2,5 +2,6 @@ import { ArticleService, ArticleDetailsForListing } from './services/articles';
2
2
  import { articleQuerySchema } from './services/search-params';
3
3
  import { default as FilterSearchSortArticles, Props as FilterSearchSortArticlesProps } from './components/filter-search-sort';
4
4
  import { default as Article } from './components/articles';
5
- export { ArticleService, articleQuerySchema, FilterSearchSortArticles, Article, };
5
+ import { resolveImageForArticle } from './components/utils';
6
+ export { ArticleService, articleQuerySchema, FilterSearchSortArticles, Article, resolveImageForArticle, };
6
7
  export type { ArticleDetailsForListing, FilterSearchSortArticlesProps };
package/dist/main.js CHANGED
@@ -1,10 +1,12 @@
1
1
  import { ArticleService as t } from "./services/articles.js";
2
- import { articleQuerySchema as a } from "./services/search-params.js";
3
- import { default as l } from "./components/filter-search-sort.js";
2
+ import { articleQuerySchema as l } from "./services/search-params.js";
3
+ import { default as c } from "./components/filter-search-sort.js";
4
4
  import { default as i } from "./components/articles/index.js";
5
+ import { resolveImageForArticle as p } from "./components/utils.js";
5
6
  export {
6
7
  i as Article,
7
8
  t as ArticleService,
8
- l as FilterSearchSortArticles,
9
- a as articleQuerySchema
9
+ c as FilterSearchSortArticles,
10
+ l as articleQuerySchema,
11
+ p as resolveImageForArticle
10
12
  };
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.5",
5
+ "version": "0.0.6",
6
6
  "type": "module",
7
7
  "exports": {
8
8
  ".": {