@hackersheet/next-document-content-components 0.1.0-alpha.11 → 0.1.0-alpha.13
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/cjs/components/code-block/directory-tree.js +1 -1
- package/dist/cjs/index.js +48 -5
- package/dist/esm/components/code-block/directory-tree.mjs +1 -1
- package/dist/esm/index.mjs +22 -1
- package/package.json +17 -18
- package/dist/cjs/components/index.d.ts +0 -12
- package/dist/cjs/components/index.js +0 -65
- package/dist/esm/components/index.d.mts +0 -12
- package/dist/esm/components/index.mjs +0 -22
package/dist/cjs/index.js
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
6
12
|
var __copyProps = (to, from, except, desc) => {
|
|
7
13
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
14
|
for (let key of __getOwnPropNames(from))
|
|
@@ -11,12 +17,49 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
11
17
|
}
|
|
12
18
|
return to;
|
|
13
19
|
};
|
|
14
|
-
var
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
15
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
|
|
29
|
+
var index_exports = {};
|
|
30
|
+
__export(index_exports, {
|
|
31
|
+
CodeBlock: () => import_code_block.default,
|
|
32
|
+
DirectoryTree: () => import_directory_tree.default,
|
|
33
|
+
Gist: () => import_gist.default,
|
|
34
|
+
Heading: () => import_heading.default,
|
|
35
|
+
Image: () => import_image.default,
|
|
36
|
+
Link: () => import_link.default,
|
|
37
|
+
LinkCard: () => import_link_card.default,
|
|
38
|
+
Mermaid: () => import_mermaid.default,
|
|
39
|
+
XPost: () => import_x_post.default,
|
|
40
|
+
Youtube: () => import_youtube.default
|
|
41
|
+
});
|
|
42
|
+
module.exports = __toCommonJS(index_exports);
|
|
43
|
+
var import_code_block = __toESM(require("./components/code-block/code-block"));
|
|
44
|
+
var import_directory_tree = __toESM(require("./components/code-block/directory-tree"));
|
|
45
|
+
var import_gist = __toESM(require("./components/gist/gist"));
|
|
46
|
+
var import_heading = __toESM(require("./components/heading/heading"));
|
|
47
|
+
var import_image = __toESM(require("./components/image/image"));
|
|
48
|
+
var import_link = __toESM(require("./components/link/link"));
|
|
49
|
+
var import_link_card = __toESM(require("./components/link-card/link-card"));
|
|
50
|
+
var import_mermaid = __toESM(require("./components/mermaid/mermaid"));
|
|
51
|
+
var import_x_post = __toESM(require("./components/x-post/x-post"));
|
|
52
|
+
var import_youtube = __toESM(require("./components/youtube/youtube"));
|
|
19
53
|
// Annotate the CommonJS export names for ESM import in node:
|
|
20
54
|
0 && (module.exports = {
|
|
21
|
-
|
|
55
|
+
CodeBlock,
|
|
56
|
+
DirectoryTree,
|
|
57
|
+
Gist,
|
|
58
|
+
Heading,
|
|
59
|
+
Image,
|
|
60
|
+
Link,
|
|
61
|
+
LinkCard,
|
|
62
|
+
Mermaid,
|
|
63
|
+
XPost,
|
|
64
|
+
Youtube
|
|
22
65
|
});
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
import CodeBlock from "./components/code-block/code-block";
|
|
2
|
+
import DirectoryTree from "./components/code-block/directory-tree";
|
|
3
|
+
import Gist from "./components/gist/gist";
|
|
4
|
+
import Heading from "./components/heading/heading";
|
|
5
|
+
import Image from "./components/image/image";
|
|
6
|
+
import Link from "./components/link/link";
|
|
7
|
+
import LinkCard from "./components/link-card/link-card";
|
|
8
|
+
import Mermaid from "./components/mermaid/mermaid";
|
|
9
|
+
import XPost from "./components/x-post/x-post";
|
|
10
|
+
import Youtube from "./components/youtube/youtube";
|
|
11
|
+
export {
|
|
12
|
+
CodeBlock,
|
|
13
|
+
DirectoryTree,
|
|
14
|
+
Gist,
|
|
15
|
+
Heading,
|
|
16
|
+
Image,
|
|
17
|
+
Link,
|
|
18
|
+
LinkCard,
|
|
19
|
+
Mermaid,
|
|
20
|
+
XPost,
|
|
21
|
+
Youtube
|
|
22
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hackersheet/next-document-content-components",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.13",
|
|
4
4
|
"description": "Hacker Sheet document content components for Next.js",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"repository": {
|
|
@@ -24,28 +24,27 @@
|
|
|
24
24
|
"dist"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@next/third-parties": "^
|
|
28
|
-
"@shikijs/transformers": "^
|
|
27
|
+
"@next/third-parties": "^15.5.4",
|
|
28
|
+
"@shikijs/transformers": "^3.13.0",
|
|
29
29
|
"mermaid": "^10.9.1",
|
|
30
|
-
"next-themes": "^0.
|
|
31
|
-
"react-icons": "^5.
|
|
32
|
-
"react-tweet": "^3.2.
|
|
33
|
-
"shiki": "^
|
|
34
|
-
"@hackersheet/core": "0.1.0-alpha.
|
|
35
|
-
"@hackersheet/react-document-content": "0.1.0-alpha.
|
|
30
|
+
"next-themes": "^0.4.6",
|
|
31
|
+
"react-icons": "^5.5.0",
|
|
32
|
+
"react-tweet": "^3.2.2",
|
|
33
|
+
"shiki": "^3.13.0",
|
|
34
|
+
"@hackersheet/core": "0.1.0-alpha.11",
|
|
35
|
+
"@hackersheet/react-document-content": "0.1.0-alpha.12"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@types/react": "^
|
|
39
|
-
"@types/react-dom": "^
|
|
40
|
-
"next": "
|
|
41
|
-
"react": "^
|
|
42
|
-
"react-dom": "^
|
|
43
|
-
"@hackersheet/eslint-config-custom": "0.0.0"
|
|
38
|
+
"@types/react": "^19.2.0",
|
|
39
|
+
"@types/react-dom": "^19.2.0",
|
|
40
|
+
"next": "15.5.4",
|
|
41
|
+
"react": "^19.2.0",
|
|
42
|
+
"react-dom": "^19.2.0"
|
|
44
43
|
},
|
|
45
44
|
"peerDependencies": {
|
|
46
|
-
"next": "^
|
|
47
|
-
"react": "^
|
|
48
|
-
"react-dom": "^
|
|
45
|
+
"next": "^15.0.0",
|
|
46
|
+
"react": "^19.0.0",
|
|
47
|
+
"react-dom": "^19.0.0"
|
|
49
48
|
},
|
|
50
49
|
"scripts": {
|
|
51
50
|
"build": "rm -rf ./dist && pnpm tsup",
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export { default as CodeBlock } from './code-block/code-block.js';
|
|
2
|
-
export { default as DirectoryTree } from './code-block/directory-tree.js';
|
|
3
|
-
export { default as Gist } from './gist/gist.js';
|
|
4
|
-
export { default as Heading } from './heading/heading.js';
|
|
5
|
-
export { default as Image } from './image/image.js';
|
|
6
|
-
export { default as Link } from './link/link.js';
|
|
7
|
-
export { default as LinkCard } from './link-card/link-card.js';
|
|
8
|
-
export { default as Mermaid } from './mermaid/mermaid.js';
|
|
9
|
-
export { default as XPost } from './x-post/x-post.js';
|
|
10
|
-
export { default as Youtube } from './youtube/youtube.js';
|
|
11
|
-
import 'react';
|
|
12
|
-
import '@hackersheet/react-document-content';
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var components_exports = {};
|
|
30
|
-
__export(components_exports, {
|
|
31
|
-
CodeBlock: () => import_code_block.default,
|
|
32
|
-
DirectoryTree: () => import_directory_tree.default,
|
|
33
|
-
Gist: () => import_gist.default,
|
|
34
|
-
Heading: () => import_heading.default,
|
|
35
|
-
Image: () => import_image.default,
|
|
36
|
-
Link: () => import_link.default,
|
|
37
|
-
LinkCard: () => import_link_card.default,
|
|
38
|
-
Mermaid: () => import_mermaid.default,
|
|
39
|
-
XPost: () => import_x_post.default,
|
|
40
|
-
Youtube: () => import_youtube.default
|
|
41
|
-
});
|
|
42
|
-
module.exports = __toCommonJS(components_exports);
|
|
43
|
-
var import_code_block = __toESM(require("./code-block/code-block"));
|
|
44
|
-
var import_directory_tree = __toESM(require("./code-block/directory-tree"));
|
|
45
|
-
var import_gist = __toESM(require("./gist/gist"));
|
|
46
|
-
var import_heading = __toESM(require("./heading/heading"));
|
|
47
|
-
var import_image = __toESM(require("./image/image"));
|
|
48
|
-
var import_link = __toESM(require("./link/link"));
|
|
49
|
-
var import_link_card = __toESM(require("./link-card/link-card"));
|
|
50
|
-
var import_mermaid = __toESM(require("./mermaid/mermaid"));
|
|
51
|
-
var import_x_post = __toESM(require("./x-post/x-post"));
|
|
52
|
-
var import_youtube = __toESM(require("./youtube/youtube"));
|
|
53
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
54
|
-
0 && (module.exports = {
|
|
55
|
-
CodeBlock,
|
|
56
|
-
DirectoryTree,
|
|
57
|
-
Gist,
|
|
58
|
-
Heading,
|
|
59
|
-
Image,
|
|
60
|
-
Link,
|
|
61
|
-
LinkCard,
|
|
62
|
-
Mermaid,
|
|
63
|
-
XPost,
|
|
64
|
-
Youtube
|
|
65
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export { default as CodeBlock } from './code-block/code-block.mjs';
|
|
2
|
-
export { default as DirectoryTree } from './code-block/directory-tree.mjs';
|
|
3
|
-
export { default as Gist } from './gist/gist.mjs';
|
|
4
|
-
export { default as Heading } from './heading/heading.mjs';
|
|
5
|
-
export { default as Image } from './image/image.mjs';
|
|
6
|
-
export { default as Link } from './link/link.mjs';
|
|
7
|
-
export { default as LinkCard } from './link-card/link-card.mjs';
|
|
8
|
-
export { default as Mermaid } from './mermaid/mermaid.mjs';
|
|
9
|
-
export { default as XPost } from './x-post/x-post.mjs';
|
|
10
|
-
export { default as Youtube } from './youtube/youtube.mjs';
|
|
11
|
-
import 'react';
|
|
12
|
-
import '@hackersheet/react-document-content';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import CodeBlock from "./code-block/code-block";
|
|
2
|
-
import DirectoryTree from "./code-block/directory-tree";
|
|
3
|
-
import Gist from "./gist/gist";
|
|
4
|
-
import Heading from "./heading/heading";
|
|
5
|
-
import Image from "./image/image";
|
|
6
|
-
import Link from "./link/link";
|
|
7
|
-
import LinkCard from "./link-card/link-card";
|
|
8
|
-
import Mermaid from "./mermaid/mermaid";
|
|
9
|
-
import XPost from "./x-post/x-post";
|
|
10
|
-
import Youtube from "./youtube/youtube";
|
|
11
|
-
export {
|
|
12
|
-
CodeBlock,
|
|
13
|
-
DirectoryTree,
|
|
14
|
-
Gist,
|
|
15
|
-
Heading,
|
|
16
|
-
Image,
|
|
17
|
-
Link,
|
|
18
|
-
LinkCard,
|
|
19
|
-
Mermaid,
|
|
20
|
-
XPost,
|
|
21
|
-
Youtube
|
|
22
|
-
};
|