@codesocietyou/contentedge-cms-sdk 1.0.6 → 1.0.8
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 +37 -0
- package/package.json +6 -4
package/dist/styles.css
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
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.
|
|
6
|
+
|
|
7
|
+
!important is required on all list properties: CSS frameworks that
|
|
8
|
+
ship a Preflight/reset (Tailwind, normalize.css, MUI CssBaseline) set
|
|
9
|
+
`ul, ol { list-style: none; margin: 0; padding: 0 }` — even when those
|
|
10
|
+
rules are inside @layer base, consumer apps may have unlayered resets
|
|
11
|
+
that would otherwise win on specificity. */
|
|
12
|
+
|
|
13
|
+
.tiptap-bullet-list {
|
|
14
|
+
list-style-type: disc !important;
|
|
15
|
+
padding-left: 1.5em !important;
|
|
16
|
+
margin: 0.5em 0 !important;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.tiptap-ordered-list {
|
|
20
|
+
list-style-type: decimal !important;
|
|
21
|
+
padding-left: 1.5em !important;
|
|
22
|
+
margin: 0.5em 0 !important;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.tiptap-bullet-list li,
|
|
26
|
+
.tiptap-ordered-list li {
|
|
27
|
+
display: list-item !important;
|
|
28
|
+
margin-bottom: 0.25em;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.tiptap-link {
|
|
32
|
+
text-decoration: underline;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.tiptap-link:hover {
|
|
36
|
+
opacity: 0.8;
|
|
37
|
+
}
|
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.8",
|
|
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",
|