postfolio 1.0.2 → 1.0.4

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/dist/index.d.ts CHANGED
@@ -1,3 +1,35 @@
1
- export { Slugs, Post, allPosts, MDXPost, generateSlug, generateTOC, setContentDirectory, } from "./src/main.js";
2
- export type { BlogFrontmatter, BlogPostSource } from "./src/main.js";
3
- //# sourceMappingURL=index.d.ts.map
1
+ declare function setContentDirectory(newPath: string): void;
2
+ type BlogFrontmatter = {
3
+ title?: string;
4
+ description?: string;
5
+ date?: string;
6
+ tags?: string[];
7
+ author?: string;
8
+ draft?: boolean;
9
+ [key: string]: string | string[] | boolean | undefined;
10
+ };
11
+ type BlogPostSource = {
12
+ slug: string;
13
+ filename: string;
14
+ filePath: string;
15
+ mdx: string;
16
+ frontmatter?: any;
17
+ };
18
+ type TOCItem = {
19
+ level: number;
20
+ text: string;
21
+ slug: string;
22
+ };
23
+ declare function generateSlug(text: string): string;
24
+ declare function generateTOC(content: string): TOCItem[];
25
+ declare function Slugs(): string[];
26
+ declare function Post(slug: string): BlogPostSource | undefined;
27
+ declare function allPosts(): Promise<BlogPostSource[]>;
28
+ declare function MDXPost(slug: string): Promise<{
29
+ slug: string;
30
+ code: string;
31
+ frontmatter: any;
32
+ raw: string;
33
+ } | undefined>;
34
+
35
+ export { type BlogFrontmatter, type BlogPostSource, MDXPost, Post, Slugs, allPosts, generateSlug, generateTOC, setContentDirectory };
package/dist/index.js CHANGED
@@ -1,3 +1,90 @@
1
- // index.ts
2
- export { Slugs, Post, allPosts, MDXPost, generateSlug, generateTOC, setContentDirectory, } from "./src/main.js";
3
- //# sourceMappingURL=index.js.map
1
+ // src/main.ts
2
+ import fs from "fs";
3
+ import path from "path";
4
+ import { bundleMDX } from "mdx-bundler";
5
+ var BLOG_DIR_PATH = path.join(process.cwd(), "content", "blogs");
6
+ function setContentDirectory(newPath) {
7
+ BLOG_DIR_PATH = newPath;
8
+ }
9
+ function transformFilenameToSlug(filename) {
10
+ return filename.replace(/\.mdx$/, "").toLowerCase().trim().replace(/[^a-z0-9\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-+|-+$/g, "");
11
+ }
12
+ function getMdxFileNames() {
13
+ if (!fs.existsSync(BLOG_DIR_PATH)) {
14
+ return [];
15
+ }
16
+ return fs.readdirSync(BLOG_DIR_PATH).filter((file) => file.endsWith(".mdx"));
17
+ }
18
+ function getPostSourceBySlug(slug) {
19
+ const filename = getMdxFileNames().find(
20
+ (file) => transformFilenameToSlug(file) === slug
21
+ );
22
+ if (!filename) {
23
+ return void 0;
24
+ }
25
+ const filePath = path.join(BLOG_DIR_PATH, filename);
26
+ return {
27
+ slug,
28
+ filename,
29
+ filePath,
30
+ mdx: fs.readFileSync(filePath, "utf8")
31
+ };
32
+ }
33
+ function generateSlug(text) {
34
+ return text.toLowerCase().replace(/[^\w\s-]/g, "").replace(/\s+/g, "-");
35
+ }
36
+ function generateTOC(content) {
37
+ const headingRegex = /^(#{1,6})\s+(.+)$/gm;
38
+ return [...content.matchAll(headingRegex)].map((match) => {
39
+ const level = match[1].length;
40
+ const text = match[2].trim();
41
+ return {
42
+ level,
43
+ text,
44
+ slug: text.toLowerCase().replace(/[^\w\s-]/g, "").replace(/\s+/g, "-")
45
+ };
46
+ });
47
+ }
48
+ function Slugs() {
49
+ return getMdxFileNames().map(transformFilenameToSlug);
50
+ }
51
+ function Post(slug) {
52
+ return getPostSourceBySlug(slug);
53
+ }
54
+ async function allPosts() {
55
+ const posts = Slugs().map(getPostSourceBySlug).filter((post) => Boolean(post));
56
+ return Promise.all(
57
+ posts.map(async (post) => {
58
+ const { frontmatter } = await bundleMDX({
59
+ file: post.filePath,
60
+ cwd: BLOG_DIR_PATH
61
+ });
62
+ return { ...post, frontmatter };
63
+ })
64
+ );
65
+ }
66
+ async function MDXPost(slug) {
67
+ const post = Post(slug);
68
+ if (!post) {
69
+ return void 0;
70
+ }
71
+ const { code, frontmatter } = await bundleMDX({
72
+ file: post.filePath,
73
+ cwd: BLOG_DIR_PATH
74
+ });
75
+ return {
76
+ slug: post.slug,
77
+ code,
78
+ frontmatter,
79
+ raw: post.mdx
80
+ };
81
+ }
82
+ export {
83
+ MDXPost,
84
+ Post,
85
+ Slugs,
86
+ allPosts,
87
+ generateSlug,
88
+ generateTOC,
89
+ setContentDirectory
90
+ };
@@ -1,4 +1,6 @@
1
- import type { ReactNode } from "react";
2
- export declare function generateSlug(text: string | ReactNode | undefined): string;
3
- export declare function useActiveHeading(): string;
4
- //# sourceMappingURL=client.d.ts.map
1
+ import { ReactNode } from 'react';
2
+
3
+ declare function generateSlug(text: string | ReactNode | undefined): string;
4
+ declare function useActiveHeading(): string;
5
+
6
+ export { generateSlug, useActiveHeading };
@@ -1,35 +1,42 @@
1
1
  "use client";
2
+
3
+ // src/client.ts
2
4
  import { useEffect, useState } from "react";
3
- export function generateSlug(text) {
4
- if (text === undefined) {
5
- return "";
6
- }
7
- const textString = typeof text === "string"
8
- ? text
9
- : String(text);
10
- return textString
11
- .toLowerCase()
12
- .replace(/[^\w\s-]/g, "")
13
- .replace(/\s+/g, "-");
5
+ function generateSlug(text) {
6
+ if (text === void 0) {
7
+ return "";
8
+ }
9
+ const textString = typeof text === "string" ? text : String(text);
10
+ return textString.toLowerCase().replace(/[^\w\s-]/g, "").replace(/\s+/g, "-");
14
11
  }
15
- export function useActiveHeading() {
16
- const [activeId, setActiveId] = useState("");
17
- useEffect(() => {
18
- const headings = document.querySelectorAll("h1[id], h2[id], h3[id], h4[id]");
19
- const observer = new IntersectionObserver((entries) => {
20
- const visible = entries
21
- .filter((entry) => entry.isIntersecting)
22
- .sort((a, b) => a.boundingClientRect.top - b.boundingClientRect.top);
23
- if (visible.length > 0) {
24
- setActiveId(visible[0].target.getAttribute("id") || "");
25
- }
26
- }, {
27
- rootMargin: "0px 0px -70% 0px",
28
- threshold: 0,
29
- });
30
- headings.forEach((heading) => observer.observe(heading));
31
- return () => observer.disconnect();
32
- }, []);
33
- return activeId;
12
+ function useActiveHeading() {
13
+ const [activeId, setActiveId] = useState("");
14
+ useEffect(() => {
15
+ const headings = document.querySelectorAll(
16
+ "h1[id], h2[id], h3[id], h4[id]"
17
+ );
18
+ const observer = new IntersectionObserver(
19
+ (entries) => {
20
+ const visible = entries.filter((entry) => entry.isIntersecting).sort(
21
+ (a, b) => a.boundingClientRect.top - b.boundingClientRect.top
22
+ );
23
+ if (visible.length > 0) {
24
+ setActiveId(
25
+ visible[0].target.getAttribute("id") || ""
26
+ );
27
+ }
28
+ },
29
+ {
30
+ rootMargin: "0px 0px -70% 0px",
31
+ threshold: 0
32
+ }
33
+ );
34
+ headings.forEach((heading) => observer.observe(heading));
35
+ return () => observer.disconnect();
36
+ }, []);
37
+ return activeId;
34
38
  }
35
- //# sourceMappingURL=client.js.map
39
+ export {
40
+ generateSlug,
41
+ useActiveHeading
42
+ };
@@ -1,7 +1,9 @@
1
- import * as React from "react";
2
- import { getMDXComponent } from "mdx-bundler/client";
3
- export declare function Content({ code, components, }: {
1
+ import * as React from 'react';
2
+ import { getMDXComponent } from 'mdx-bundler/client/index.js';
3
+
4
+ declare function Content({ code, components, }: {
4
5
  code: string;
5
6
  components?: React.ComponentProps<ReturnType<typeof getMDXComponent>>["components"];
6
7
  }): React.JSX.Element;
7
- //# sourceMappingURL=renderer.d.ts.map
8
+
9
+ export { Content };
@@ -1,10 +1,16 @@
1
1
  "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
2
+
3
+ // src/renderer.tsx
3
4
  import * as React from "react";
4
- import { getMDXComponent } from "mdx-bundler/client";
5
- export function Content({ code, components, }) {
6
- const Render = React.useMemo(() => getMDXComponent(code), [code]);
7
- // eslint-disable-next-line react-hooks/static-components -- mdx-bundler creates a component from compiled MDX at runtime.
8
- return _jsx(Render, { components: components });
5
+ import { getMDXComponent } from "mdx-bundler/client/index.js";
6
+ import { jsx } from "react/jsx-runtime";
7
+ function Content({
8
+ code,
9
+ components
10
+ }) {
11
+ const Render = React.useMemo(() => getMDXComponent(code), [code]);
12
+ return /* @__PURE__ */ jsx(Render, { components });
9
13
  }
10
- //# sourceMappingURL=renderer.js.map
14
+ export {
15
+ Content
16
+ };
package/package.json CHANGED
@@ -1,42 +1,45 @@
1
- {
2
- "name": "postfolio",
3
- "version": "1.0.2",
4
- "type": "module",
5
- "main": "./dist/index.js",
6
- "types": "./dist/index.d.ts",
7
- "exports": {
8
- ".": {
9
- "types": "./dist/index.d.ts",
10
- "import": "./dist/index.js"
11
- },
12
- "./renderer": {
13
- "types": "./dist/src/renderer.d.ts",
14
- "import": "./dist/src/renderer.js"
15
- },
16
- "./client": {
17
- "types": "./dist/src/client.d.ts",
18
- "import": "./dist/src/client.js"
19
- }
20
- },
21
- "files": [
22
- "dist"
23
- ],
24
- "scripts": {
25
- "build": "tsc -p tsconfig.json"
26
- },
27
- "dependencies": {
28
- "gray-matter": "^4.0.3",
29
- "mdx-bundler": "^10.1.1"
30
- },
31
- "peerDependencies": {
32
- "react": ">=19"
33
- },
34
- "devDependencies": {
35
- "@types/node": "^20",
36
- "@types/react": "^19",
37
- "typescript": "^5"
38
- },
39
- "allowScripts": {
40
- "esbuild@0.27.7": true
41
- }
42
- }
1
+ {
2
+ "name": "postfolio",
3
+ "version": "1.0.4",
4
+ "type": "module",
5
+ "main": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "import": "./dist/index.js"
11
+ },
12
+ "./renderer": {
13
+ "types": "./dist/src/renderer.d.ts",
14
+ "import": "./dist/src/renderer.js"
15
+ },
16
+ "./client": {
17
+ "types": "./dist/src/client.d.ts",
18
+ "import": "./dist/src/client.js"
19
+ }
20
+ },
21
+ "files": [
22
+ "dist"
23
+ ],
24
+ "scripts": {
25
+ "build": "tsup",
26
+ "dev": "tsup --watch"
27
+ },
28
+ "dependencies": {
29
+ "esbuild": "^0.28.0",
30
+ "gray-matter": "^4.0.3",
31
+ "mdx-bundler": "^10.1.1"
32
+ },
33
+ "peerDependencies": {
34
+ "react": ">=19"
35
+ },
36
+ "devDependencies": {
37
+ "@types/node": "^20",
38
+ "@types/react": "^19",
39
+ "tsup": "^8.5.1",
40
+ "typescript": "^5"
41
+ },
42
+ "allowScripts": {
43
+ "esbuild@0.27.7": true
44
+ }
45
+ }
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,YAAY,EACZ,WAAW,EACX,mBAAmB,GACpB,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC"}
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,WAAW;AACX,OAAO,EACL,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,YAAY,EACZ,WAAW,EACX,mBAAmB,GACpB,MAAM,eAAe,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,CAYzE;AAGD,wBAAgB,gBAAgB,WAmC/B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,UAAU,YAAY,CAAC,IAAoC;IAC/D,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACvB,OAAO,EAAE,CAAC;IACZ,C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EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,QAAQ,CAAC;AAClB,CAAC"}
@@ -1,35 +0,0 @@
1
- export declare function setContentDirectory(newPath: string): void;
2
- export type BlogFrontmatter = {
3
- title?: string;
4
- description?: string;
5
- date?: string;
6
- tags?: string[];
7
- author?: string;
8
- draft?: boolean;
9
- [key: string]: string | string[] | boolean | undefined;
10
- };
11
- export type BlogPostSource = {
12
- slug: string;
13
- filename: string;
14
- filePath: string;
15
- mdx: string;
16
- frontmatter?: any;
17
- };
18
- type TOCItem = {
19
- level: number;
20
- text: string;
21
- slug: string;
22
- };
23
- export declare function generateSlug(text: string): string;
24
- export declare function generateTOC(content: string): TOCItem[];
25
- export declare function Slugs(): string[];
26
- export declare function Post(slug: string): BlogPostSource | undefined;
27
- export declare function allPosts(): Promise<BlogPostSource[]>;
28
- export declare function MDXPost(slug: string): Promise<{
29
- slug: string;
30
- code: string;
31
- frontmatter: any;
32
- raw: string;
33
- } | undefined>;
34
- export {};
35
- //# sourceMappingURL=main.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAOA,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,QAElD;AAMD,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,OAAO,GAAG,SAAS,CAAC;CACxD,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,GAAG,CAAC;CACnB,CAAC;AAgDF,KAAK,OAAO,GAAG;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAGF,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,UAKxC;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,EAAE,CAgBtD;AAED,wBAAgB,KAAK,IAAI,MAAM,EAAE,CAEhC;AAED,wBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS,CAE7D;AAED,wBAAsB,QAAQ,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC,CAgB1D;AAED,wBAAsB,OAAO,CAAC,IAAI,EAAE,MAAM;;;;;eAoBzC"}
package/dist/src/main.js DELETED
@@ -1,104 +0,0 @@
1
- import fs from "node:fs";
2
- import path from "node:path";
3
- import { bundleMDX } from "mdx-bundler";
4
- let BLOG_DIR_PATH = path.join(process.cwd(), "content", "blogs");
5
- export function setContentDirectory(newPath) {
6
- BLOG_DIR_PATH = newPath;
7
- }
8
- const ESBUILD_BINARY_PATH = process.platform === "win32"
9
- ? path.join(process.cwd(), "node_modules", "esbuild", "esbuild.exe")
10
- : path.join(process.cwd(), "node_modules", "esbuild", "bin", "esbuild");
11
- function ensureEsbuildBinaryPath() {
12
- if (!process.env.ESBUILD_BINARY_PATH) {
13
- process.env.ESBUILD_BINARY_PATH = ESBUILD_BINARY_PATH;
14
- }
15
- }
16
- function transformFilenameToSlug(filename) {
17
- return filename
18
- .replace(/\.mdx$/, "")
19
- .toLowerCase()
20
- .trim()
21
- .replace(/[^a-z0-9\s-]/g, "")
22
- .replace(/\s+/g, "-")
23
- .replace(/-+/g, "-")
24
- .replace(/^-+|-+$/g, "");
25
- }
26
- function getMdxFileNames() {
27
- if (!fs.existsSync(BLOG_DIR_PATH)) {
28
- return [];
29
- }
30
- return fs
31
- .readdirSync(BLOG_DIR_PATH)
32
- .filter((file) => file.endsWith(".mdx"));
33
- }
34
- function getPostSourceBySlug(slug) {
35
- const filename = getMdxFileNames().find((file) => transformFilenameToSlug(file) === slug);
36
- if (!filename) {
37
- return undefined;
38
- }
39
- const filePath = path.join(BLOG_DIR_PATH, filename);
40
- return {
41
- slug,
42
- filename,
43
- filePath,
44
- mdx: fs.readFileSync(filePath, "utf8"),
45
- };
46
- }
47
- export function generateSlug(text) {
48
- return text
49
- .toLowerCase()
50
- .replace(/[^\w\s-]/g, "")
51
- .replace(/\s+/g, "-");
52
- }
53
- export function generateTOC(content) {
54
- const headingRegex = /^(#{1,6})\s+(.+)$/gm;
55
- return [...content.matchAll(headingRegex)].map((match) => {
56
- const level = match[1].length;
57
- const text = match[2].trim();
58
- return {
59
- level,
60
- text,
61
- slug: text
62
- .toLowerCase()
63
- .replace(/[^\w\s-]/g, "")
64
- .replace(/\s+/g, "-"),
65
- };
66
- });
67
- }
68
- export function Slugs() {
69
- return getMdxFileNames().map(transformFilenameToSlug);
70
- }
71
- export function Post(slug) {
72
- return getPostSourceBySlug(slug);
73
- }
74
- export async function allPosts() {
75
- ensureEsbuildBinaryPath();
76
- const posts = Slugs()
77
- .map(getPostSourceBySlug)
78
- .filter((post) => Boolean(post));
79
- return Promise.all(posts.map(async (post) => {
80
- const { frontmatter } = await bundleMDX({
81
- file: post.filePath,
82
- cwd: BLOG_DIR_PATH,
83
- });
84
- return { ...post, frontmatter };
85
- }));
86
- }
87
- export async function MDXPost(slug) {
88
- const post = Post(slug);
89
- if (!post) {
90
- return undefined;
91
- }
92
- ensureEsbuildBinaryPath();
93
- const { code, frontmatter } = await bundleMDX({
94
- file: post.filePath,
95
- cwd: BLOG_DIR_PATH,
96
- });
97
- return {
98
- slug: post.slug,
99
- code,
100
- frontmatter,
101
- raw: post.mdx
102
- };
103
- }
104
- //# sourceMappingUR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;IAEH,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,IAAI;QACJ,WAAW;QACX,GAAG,EAAE,IAAI,CAAC,GAAG;KACd,CAAC;AACJ,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../src/renderer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,wBAAgB,OAAO,CAAC,EACtB,IAAI,EACJ,UAAU,GACX,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,KAAK,CAAC,cAAc,CAC/B,UAAU,CAAC,OAAO,eAAe,CAAC,CACnC,CAAC,YAAY,CAAC,CAAC;CACjB,qBAKA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"renderer.js","sourceRoot":"","sources":["../../src/renderer.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,UAAU,OAAO,CAAC,EACtB,IAAI,EACJ,UAAU,GAMX;IACC,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAElE,0HAA0H;IAC1H,OAAO,KAAC,MAAM,IAAC,UAAU,EAAE,UAAU,GAAI,CAAC;AAC5C,CAAC"}