@k34a/blog 0.0.5 → 0.0.7
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
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
6
|
-
const i =
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
4
|
-
import { applyImageFullPaths as
|
|
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 =
|
|
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(
|
|
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
|
|
2
|
+
export declare function resolveImageForArticle(hostname: string, id: string, imageName: string): string;
|
package/dist/components/utils.js
CHANGED
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
|
-
|
|
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
|
|
3
|
-
import { default as
|
|
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
|
-
|
|
9
|
-
|
|
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
|
+
"version": "0.0.7",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
@@ -22,9 +22,6 @@
|
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"@mantine/core": ">=8.0.0",
|
|
25
|
-
"@mantine/dates": ">=8.0.0",
|
|
26
|
-
"@mantine/dropzone": ">=8.0.0",
|
|
27
|
-
"@mantine/notifications": ">=8.0.0",
|
|
28
25
|
"@supabase/supabase-js": ">=2.52.0",
|
|
29
26
|
"@tabler/icons-react": ">=3.0.0",
|
|
30
27
|
"react": ">=19.1.0",
|
|
@@ -33,9 +30,6 @@
|
|
|
33
30
|
"devDependencies": {
|
|
34
31
|
"@eslint/js": "^9.36.0",
|
|
35
32
|
"@mantine/core": "^8.1.3",
|
|
36
|
-
"@mantine/dates": "^8.3.5",
|
|
37
|
-
"@mantine/dropzone": "^8.3.5",
|
|
38
|
-
"@mantine/notifications": "^8.3.5",
|
|
39
33
|
"@supabase/supabase-js": "^2.76.1",
|
|
40
34
|
"@tabler/icons-react": "^3.35.0",
|
|
41
35
|
"@types/node": "^24.6.0",
|