@nukipa/post-renderer-react 0.1.0 → 0.2.1
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/package.json +5 -4
- package/styles.css +12 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nukipa/post-renderer-react",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "React adapter for @nukipa/post-content — renders Nukipa CMS post bodies and hydrates interactive islands (forms, CTAs, carousels).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Nukipa Labs",
|
|
@@ -22,16 +22,17 @@
|
|
|
22
22
|
"types": "./dist/index.d.ts",
|
|
23
23
|
"import": "./dist/index.js",
|
|
24
24
|
"default":"./dist/index.js"
|
|
25
|
-
}
|
|
25
|
+
},
|
|
26
|
+
"./styles.css": "./styles.css"
|
|
26
27
|
},
|
|
27
|
-
"files": ["dist", "README.md"],
|
|
28
|
+
"files": ["dist", "styles.css", "README.md"],
|
|
28
29
|
"scripts": {
|
|
29
30
|
"build": "tsc -p tsconfig.build.json",
|
|
30
31
|
"clean": "rm -rf dist",
|
|
31
32
|
"prepublishOnly": "npm run clean && npm run build"
|
|
32
33
|
},
|
|
33
34
|
"dependencies": {
|
|
34
|
-
"@nukipa/post-content": "^0.1
|
|
35
|
+
"@nukipa/post-content": "^0.2.1"
|
|
35
36
|
},
|
|
36
37
|
"peerDependencies": {
|
|
37
38
|
"marked": "^17.0.0",
|
package/styles.css
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* React adapter re-export — pulls the canonical stylesheet from
|
|
3
|
+
* @nukipa/post-content. Consumers can import either:
|
|
4
|
+
*
|
|
5
|
+
* import '@nukipa/post-renderer-react/styles.css';
|
|
6
|
+
* import '@nukipa/post-content/styles.css'; // same file
|
|
7
|
+
*
|
|
8
|
+
* Both compile to the same CSS once bundled, so pick whichever reads
|
|
9
|
+
* better in the site layout — the React-side import is the natural
|
|
10
|
+
* default since the rest of the renderer comes from this package.
|
|
11
|
+
*/
|
|
12
|
+
@import "@nukipa/post-content/styles.css";
|