tiptap-markdown-react 0.12.0 → 0.12.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/dist/style.css CHANGED
@@ -587,7 +587,7 @@
587
587
  }
588
588
  /* 查找替换浮动条。配色走 --tmr-* 变量(与工具栏/评论同一套),宿主可覆盖。 */
589
589
 
590
- ._bar_1lvby_3 {
590
+ ._bar_1h61e_3 {
591
591
  --fb-accent: var(--tmr-accent, #ff6719);
592
592
  --fb-text: var(--tmr-text, #363737);
593
593
  --fb-muted: var(--tmr-toolbar-muted, #6b6b6b);
@@ -609,22 +609,25 @@
609
609
  line-height: 1.3;
610
610
  }
611
611
 
612
- ._row_1lvby_25 {
612
+ ._row_1h61e_25 {
613
613
  display: flex;
614
614
  align-items: center;
615
- gap: 4px;
615
+ /* 行内不留统一 gap:按钮的内边距各不相同(chip 有边框、图标按钮 4px、文字按钮更宽),
616
+ 同一个盒子间距看起来并不一致。间距一律由下面 .toggle / .iconGroup / .textBtn 的
617
+ margin 补足,目标都是「视觉上看过去 8px」。 */
618
+ gap: 0;
616
619
  /* 窄屏(手机)允许折行,浮动条不会横向溢出 */
617
620
  flex-wrap: wrap;
618
621
  }
619
622
 
620
623
  /* 第二行起(替换 / 只读提示)与查找行之间用细线分开 */
621
- ._row_1lvby_25 + ._row_1lvby_25 {
624
+ ._row_1h61e_25 + ._row_1h61e_25 {
622
625
  margin-top: 2px;
623
626
  padding-top: 8px;
624
627
  border-top: 1px solid var(--fb-border);
625
628
  }
626
629
 
627
- ._field_1lvby_40 {
630
+ ._field_1h61e_43 {
628
631
  display: inline-flex;
629
632
  align-items: center;
630
633
  gap: 6px;
@@ -639,16 +642,16 @@
639
642
  background: #fff;
640
643
  }
641
644
 
642
- ._field_1lvby_40:focus-within {
645
+ ._field_1h61e_43:focus-within {
643
646
  border-color: var(--fb-accent);
644
647
  }
645
648
 
646
- ._fieldIcon_1lvby_59 {
649
+ ._fieldIcon_1h61e_62 {
647
650
  flex: none;
648
651
  color: var(--fb-muted);
649
652
  }
650
653
 
651
- ._input_1lvby_64 {
654
+ ._input_1h61e_67 {
652
655
  width: 100%;
653
656
  min-width: 0;
654
657
  border: none;
@@ -658,28 +661,30 @@
658
661
  font: inherit;
659
662
  }
660
663
 
661
- /* 计数:等宽数字,避免 1 / 9 → 1 / 10 时宽度跳动 */
662
- ._counter_1lvby_75 {
664
+ /* 计数:在输入框内右侧,等宽数字避免 1 / 9 → 1 / 10 时跳动;
665
+ 圈到 12px 是为了不跟输入文字抢宽度(长文案时靠 input 的 min-width:0 让位) */
666
+ ._counter_1h61e_79 {
663
667
  flex: none;
664
- min-width: 46px;
665
- padding: 0 2px;
668
+ margin-left: auto;
669
+ padding-left: 6px;
666
670
  color: var(--fb-muted);
671
+ font-size: 12px;
672
+ white-space: nowrap;
667
673
  font-variant-numeric: tabular-nums;
668
- text-align: right;
669
674
  }
670
675
 
671
- ._counterInvalid_1lvby_84 {
676
+ ._counterInvalid_1h61e_89 {
672
677
  color: var(--tmr-danger, #d4380d);
673
678
  }
674
679
 
675
- ._btn_1lvby_88 {
680
+ ._btn_1h61e_93 {
676
681
  display: inline-flex;
677
682
  align-items: center;
678
683
  justify-content: center;
679
684
  flex: none;
680
685
  height: 30px;
681
- min-width: 30px;
682
- padding: 0 8px;
686
+ min-width: 24px;
687
+ padding: 0 4px;
683
688
  border: none;
684
689
  border-radius: 6px;
685
690
  background: transparent;
@@ -689,52 +694,52 @@
689
694
  transition: background 0.15s, color 0.15s;
690
695
  }
691
696
 
692
- ._btn_1lvby_88:hover:not(:disabled) {
697
+ ._btn_1h61e_93:hover:not(:disabled) {
693
698
  background: #f3f3f3;
694
699
  color: var(--fb-text);
695
700
  }
696
701
 
697
- ._btn_1lvby_88:disabled {
702
+ ._btn_1h61e_93:disabled {
698
703
  opacity: 0.3;
699
704
  cursor: not-allowed;
700
705
  }
701
706
 
702
- /* 三个查找开关用短标记(Aa / ab / .*),省宽度且不依赖文案;带边框才读得出是控件 */
703
- ._toggle_1lvby_116 {
704
- min-width: 32px;
705
- padding: 0 7px;
707
+ /* 查找开关用短标记(Aa / ab),省宽度且不依赖文案;带边框才读得出是控件。
708
+ 有边框 → 边框就是视觉边缘,与前面控件(输入框边框 / 另一个 chip)留 8px 即视觉 8px。 */
709
+ ._toggle_1h61e_29 {
710
+ min-width: 28px;
711
+ margin-left: 8px;
712
+ padding: 0 6px;
706
713
  border: 1px solid var(--fb-border);
707
714
  font-family: var(--tmr-mono-font, ui-monospace, SFMono-Regular, Menlo, monospace);
708
715
  font-size: 13px;
709
716
  }
710
717
 
711
- ._toggle_1lvby_116:hover:not(:disabled) {
718
+ ._toggle_1h61e_29:hover:not(:disabled) {
712
719
  border-color: var(--fb-muted);
713
720
  }
714
721
 
715
- ._toggleOn_1lvby_128,
716
- ._toggleOn_1lvby_128:hover:not(:disabled) {
722
+ ._toggleOn_1h61e_135,
723
+ ._toggleOn_1h61e_135:hover:not(:disabled) {
717
724
  color: var(--fb-accent);
718
725
  border-color: var(--fb-accent);
719
726
  background: #fff3ec;
720
727
  }
721
728
 
722
- /* 关闭与上/下一条拉开一点:它不是「第三个导航」 */
723
- ._closeBtn_1lvby_136 {
729
+ /* 上一条 / 下一条 / 关闭 是一组图标按钮:组内零间距,字形之间只隔各自 4px 内边距(=8px);
730
+ 组与左侧 chip 之间补 4px margin,加上图标自身的 4px,视觉同为 8px。 */
731
+ ._iconGroup_1h61e_29 {
732
+ display: inline-flex;
733
+ gap: 0;
724
734
  margin-left: 4px;
725
735
  }
726
736
 
727
- ._textBtn_1lvby_140 {
728
- padding: 0 10px;
729
- color: var(--fb-text);
730
- }
731
-
732
- ._spacer_1lvby_145 {
737
+ ._spacer_1h61e_150 {
733
738
  flex: 1 1 auto;
734
739
  min-width: 0;
735
740
  }
736
741
 
737
- ._readOnly_1lvby_150 {
742
+ ._readOnly_1h61e_155 {
738
743
  color: var(--fb-muted);
739
744
  font-size: 13px;
740
745
  white-space: nowrap;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tiptap-markdown-react",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
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",