@codesocietyou/contentedge-cms-sdk 1.0.6 → 1.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.
- package/dist/styles.css +32 -0
- package/package.json +6 -4
package/dist/styles.css
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* TipTap rich-text display styles.
|
|
2
|
+
These classes are emitted by ContentEdge's TipTap editor extensions
|
|
3
|
+
(BulletList, OrderedList, Link). Import this file once in your app
|
|
4
|
+
entry point wherever stored HTML is rendered via dangerouslySetInnerHTML
|
|
5
|
+
or equivalent. Without these rules, CSS frameworks that reset list
|
|
6
|
+
styles (e.g. Tailwind Preflight) will strip bullets and indentation. */
|
|
7
|
+
|
|
8
|
+
.tiptap-bullet-list {
|
|
9
|
+
list-style-type: disc;
|
|
10
|
+
padding-left: 1.5em;
|
|
11
|
+
margin: 0.5em 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.tiptap-ordered-list {
|
|
15
|
+
list-style-type: decimal;
|
|
16
|
+
padding-left: 1.5em;
|
|
17
|
+
margin: 0.5em 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.tiptap-bullet-list li,
|
|
21
|
+
.tiptap-ordered-list li {
|
|
22
|
+
display: list-item;
|
|
23
|
+
margin-bottom: 0.25em;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.tiptap-link {
|
|
27
|
+
text-decoration: underline;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.tiptap-link:hover {
|
|
31
|
+
opacity: 0.8;
|
|
32
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codesocietyou/contentedge-cms-sdk",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.7",
|
|
5
5
|
"description": "A lightweight, framework-agnostic TypeScript client for the ContentEdge headless CMS with API key authentication and optional React Query integration.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.cjs",
|
|
@@ -17,17 +17,19 @@
|
|
|
17
17
|
"types": "./dist/index.d.cts",
|
|
18
18
|
"default": "./dist/index.cjs"
|
|
19
19
|
}
|
|
20
|
-
}
|
|
20
|
+
},
|
|
21
|
+
"./styles.css": "./dist/styles.css"
|
|
21
22
|
},
|
|
22
23
|
"files": [
|
|
23
24
|
"dist"
|
|
24
25
|
],
|
|
25
|
-
"sideEffects":
|
|
26
|
+
"sideEffects": ["./dist/styles.css"],
|
|
26
27
|
"scripts": {
|
|
27
28
|
"dev": "vite",
|
|
28
29
|
"preview": "vite preview",
|
|
29
30
|
"lint": "eslint .",
|
|
30
|
-
"build": "tsdown",
|
|
31
|
+
"build": "tsdown && npm run copy-css",
|
|
32
|
+
"copy-css": "node -e \"require('fs').cpSync('src/styles/richText.css','dist/styles.css')\"",
|
|
31
33
|
"prepublishOnly": "npm run build",
|
|
32
34
|
"test": "vitest run",
|
|
33
35
|
"test:coverage": "vitest run --coverage",
|