notionic 0.0.0-stage → 0.8.3

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.
@@ -0,0 +1,18 @@
1
+ //#region src/utils.ts
2
+ /** Joins class names, skipping empty ones. */
3
+ function cx(...classes) {
4
+ return classes.filter(Boolean).join(" ");
5
+ }
6
+ /** The text of a rich text array, without formatting. */
7
+ function plainText(text) {
8
+ return text.map((item) => item.plain_text).join("");
9
+ }
10
+ /** Logs once per message, in development only. */
11
+ const warned = /* @__PURE__ */ new Set();
12
+ function warnOnce(message) {
13
+ if (typeof process === "undefined" || process.env.NODE_ENV !== "development" || warned.has(message)) return;
14
+ warned.add(message);
15
+ console.warn(`[notionic] ${message}`);
16
+ }
17
+ //#endregion
18
+ export { plainText as n, warnOnce as r, cx as t };
package/package.json CHANGED
@@ -1,6 +1,75 @@
1
1
  {
2
2
  "name": "notionic",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.8.3",
4
+ "description": "Render Notion API blocks as React Server Components, styled with Tailwind CSS and shadcn/ui tokens.",
5
+ "license": "MIT",
6
+ "author": "Nubelson Fernandes",
7
+ "homepage": "https://notionic.dev",
8
+ "bugs": "https://github.com/nublson/notionic/issues",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/nublson/notionic.git",
12
+ "directory": "packages/notionic"
13
+ },
14
+ "keywords": [
15
+ "notion",
16
+ "notion-api",
17
+ "notion-renderer",
18
+ "react",
19
+ "react-server-components",
20
+ "nextjs",
21
+ "tailwindcss",
22
+ "shadcn",
23
+ "cms",
24
+ "blocks",
25
+ "renderer"
26
+ ],
27
+ "type": "module",
28
+ "sideEffects": [
29
+ "*.css"
30
+ ],
31
+ "files": [
32
+ "dist",
33
+ "CHANGELOG.md"
34
+ ],
35
+ "exports": {
36
+ ".": {
37
+ "types": "./dist/index.d.ts",
38
+ "default": "./dist/index.js"
39
+ },
40
+ "./fetch": {
41
+ "types": "./dist/fetch.d.ts",
42
+ "default": "./dist/fetch.js"
43
+ },
44
+ "./markdown": {
45
+ "types": "./dist/markdown.d.ts",
46
+ "default": "./dist/markdown.js"
47
+ },
48
+ "./styles.css": {
49
+ "style": "./dist/styles.css",
50
+ "default": "./dist/styles.css"
51
+ },
52
+ "./package.json": "./package.json"
53
+ },
54
+ "scripts": {
55
+ "build": "tsdown",
56
+ "dev": "tsdown --watch",
57
+ "test": "vitest run",
58
+ "typecheck": "tsc"
59
+ },
60
+ "peerDependencies": {
61
+ "react": "^19.0.0"
62
+ },
63
+ "devDependencies": {
64
+ "@notionhq/client": "^5.27.1",
65
+ "@types/node": "^24.19.2",
66
+ "@types/react": "^19.3.0",
67
+ "@types/react-dom": "^19.3.0",
68
+ "react": "^19.3.1",
69
+ "react-dom": "^19.3.1",
70
+ "tsdown": "^0.23.1",
71
+ "typescript": "^7.0.2",
72
+ "vitest": "^5.0.5"
73
+ },
74
+ "types": "./dist/index.d.ts"
75
+ }