tiptap-markdown-react 0.10.2 → 0.10.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.
- package/dist/anchorRange.d.ts +6 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/style.css +19 -0
- package/package.json +1 -1
package/dist/style.css
CHANGED
|
@@ -547,6 +547,25 @@
|
|
|
547
547
|
background: #fff3ec;
|
|
548
548
|
border-radius: 4px;
|
|
549
549
|
}
|
|
550
|
+
/* 「这段正在被 AI 改写」的高亮(decoration,只存在于编辑会话里、不进 markdown)。
|
|
551
|
+
普通 CSS(不是 *.module.css):模块写法在这种「只做副作用的 import」下会被库构建丢掉
|
|
552
|
+
—— 与 chart.css 同一种写法,保证能进 dist/style.css。色值走 --tmr-* 变量,宿主可覆盖。 */
|
|
553
|
+
|
|
554
|
+
/* 默认态:淡淡一层底 + 左缘一条竖线,表示「这段正在处理」。 */
|
|
555
|
+
.tmr-pending-anchor {
|
|
556
|
+
background: var(--tmr-pending-bg, rgba(22, 119, 255, 0.08));
|
|
557
|
+
border-radius: 3px;
|
|
558
|
+
box-decoration-break: clone;
|
|
559
|
+
-webkit-box-decoration-break: clone;
|
|
560
|
+
transition: background 0.2s ease;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
/* 加一点左缘标记,让「整块被圈中」在块级节点(表格 / 图表)上也看得出来。 */
|
|
564
|
+
:not(.tmr-pending-anchor) > .tmr-pending-anchor,
|
|
565
|
+
li.tmr-pending-anchor,
|
|
566
|
+
table.tmr-pending-anchor {
|
|
567
|
+
box-shadow: inset 3px 0 0 0 var(--tmr-pending-bar, rgba(22, 119, 255, 0.45));
|
|
568
|
+
}
|
|
550
569
|
/* 代码块 NodeView:白底、细边框、顶部 header 放语言选择(Radix 下拉)+ 删除。 */
|
|
551
570
|
._wrapper_5i2vi_2 {
|
|
552
571
|
position: relative;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tiptap-markdown-react",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.3",
|
|
4
4
|
"description": "A batteries-included, self-styled Markdown WYSIWYG editor and reader suite built on Tiptap v3. Markdown in/out, SSR/static rendering, table of contents, themeable via CSS variables, zero Ant Design.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|