tiptap-markdown-react 0.14.1 → 0.14.2

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
@@ -782,7 +782,7 @@ table.tmr-pending-anchor {
782
782
  box-shadow: 0 0 0 1px var(--tmr-find-active-ring, rgba(230, 122, 0, 0.7));
783
783
  }
784
784
  /* 代码块 NodeView:白底、细边框、顶部 header 放语言选择(Radix 下拉)+ 删除。 */
785
- ._wrapper_16490_2 {
785
+ ._wrapper_k8th1_2 {
786
786
  position: relative;
787
787
  margin: 0.9em 0;
788
788
  border: 1px solid #e8e8e8;
@@ -792,13 +792,13 @@ table.tmr-pending-anchor {
792
792
  }
793
793
 
794
794
  /* 选中整个代码块时(NodeSelection):accent 边框高亮,作为删除前的二次确认提示 */
795
- ._wrapper_16490_2.ProseMirror-selectednode,
796
- .ProseMirror-selectednode > ._wrapper_16490_2 {
795
+ ._wrapper_k8th1_2.ProseMirror-selectednode,
796
+ .ProseMirror-selectednode > ._wrapper_k8th1_2 {
797
797
  border-color: var(--tmr-accent, #ff6719);
798
798
  box-shadow: 0 0 0 1px var(--tmr-accent, #ff6719);
799
799
  }
800
800
 
801
- ._header_16490_18 {
801
+ ._header_k8th1_18 {
802
802
  display: flex;
803
803
  align-items: center;
804
804
  justify-content: flex-end;
@@ -808,7 +808,7 @@ table.tmr-pending-anchor {
808
808
  }
809
809
 
810
810
  /* 语言选择触发按钮:无边框胶囊,hover 出灰底,右侧箭头图标 */
811
- ._langTrigger_16490_28 {
811
+ ._langTrigger_k8th1_28 {
812
812
  display: inline-flex;
813
813
  align-items: center;
814
814
  gap: 4px;
@@ -825,18 +825,18 @@ table.tmr-pending-anchor {
825
825
  transition: background 0.15s;
826
826
  }
827
827
 
828
- ._langTrigger_16490_28:hover,
829
- ._langTrigger_16490_28[data-state='open'] {
828
+ ._langTrigger_k8th1_28:hover,
829
+ ._langTrigger_k8th1_28[data-state='open'] {
830
830
  background-color: #f0f0f0;
831
831
  }
832
832
 
833
- ._langChevron_16490_50 {
833
+ ._langChevron_k8th1_50 {
834
834
  color: #8a8a8a;
835
835
  flex-shrink: 0;
836
836
  }
837
837
 
838
838
  /* 只读态语言徽标:无下拉 / 删除交互,样式对齐 langTrigger 但不可点 */
839
- ._readonlyHeader_16490_56 {
839
+ ._readonlyHeader_k8th1_56 {
840
840
  display: flex;
841
841
  align-items: center;
842
842
  justify-content: space-between;
@@ -844,7 +844,7 @@ table.tmr-pending-anchor {
844
844
  border-bottom: 1px solid #efefef;
845
845
  }
846
846
 
847
- ._langBadge_16490_64 {
847
+ ._langBadge_k8th1_64 {
848
848
  display: inline-flex;
849
849
  align-items: center;
850
850
  padding: 3px 10px;
@@ -858,7 +858,7 @@ table.tmr-pending-anchor {
858
858
  }
859
859
 
860
860
  /* 下拉菜单气泡:白底圆角、细边框、轻阴影,最大高度可滚动 */
861
- ._langMenu_16490_78 {
861
+ ._langMenu_k8th1_78 {
862
862
  z-index: 50;
863
863
  min-width: 160px;
864
864
  max-height: 280px;
@@ -871,7 +871,7 @@ table.tmr-pending-anchor {
871
871
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
872
872
  }
873
873
 
874
- ._langItem_16490_91 {
874
+ ._langItem_k8th1_91 {
875
875
  display: flex;
876
876
  align-items: center;
877
877
  gap: 6px;
@@ -886,16 +886,16 @@ table.tmr-pending-anchor {
886
886
  }
887
887
 
888
888
  /* 键盘方向键 / 鼠标 hover 高亮态(Radix 用 data-highlighted 标记) */
889
- ._langItem_16490_91[data-highlighted] {
889
+ ._langItem_k8th1_91[data-highlighted] {
890
890
  background-color: #f0f0f0;
891
891
  }
892
892
 
893
- ._langItemSelected_16490_110 {
893
+ ._langItemSelected_k8th1_110 {
894
894
  color: var(--tmr-accent, #ff6719);
895
895
  font-weight: 600;
896
896
  }
897
897
 
898
- ._langItemCheck_16490_115 {
898
+ ._langItemCheck_k8th1_115 {
899
899
  display: inline-flex;
900
900
  align-items: center;
901
901
  justify-content: center;
@@ -903,7 +903,7 @@ table.tmr-pending-anchor {
903
903
  flex-shrink: 0;
904
904
  }
905
905
 
906
- ._deleteBtn_16490_123 {
906
+ ._deleteBtn_k8th1_123 {
907
907
  display: inline-flex;
908
908
  align-items: center;
909
909
  justify-content: center;
@@ -918,12 +918,12 @@ table.tmr-pending-anchor {
918
918
  transition: background 0.15s, color 0.15s;
919
919
  }
920
920
 
921
- ._deleteBtn_16490_123:hover {
921
+ ._deleteBtn_k8th1_123:hover {
922
922
  background: #f4f4f4;
923
923
  color: #d4380d;
924
924
  }
925
925
 
926
- ._pre_16490_143 {
926
+ ._pre_k8th1_143 {
927
927
  margin: 0;
928
928
  padding: 16px 18px;
929
929
  background: transparent;
@@ -934,21 +934,20 @@ table.tmr-pending-anchor {
934
934
  line-height: 1.65;
935
935
  }
936
936
 
937
- /* 只读展示(MarkdownPreview / 只读编辑器):默认限高块内滚动,
938
- 头部展开按钮可切换为不限高;编辑态不封顶(写长代码不应被折断) */
939
- ._readonly_16490_56 ._pre_16490_143 {
937
+ /* 只读展示(MarkdownPreview / 只读编辑器):默认完整显示不封顶;
938
+ 头部按钮可把整个代码块折叠成只剩头部一行(编辑态同样不封顶) */
939
+ ._readonly_k8th1_56 ._pre_k8th1_143 {
940
940
  display: flex;
941
941
  align-items: flex-start;
942
- max-height: var(--tmr-code-max-height, 480px);
943
942
  }
944
943
 
945
- ._readonly_16490_56._expanded_16490_162 ._pre_16490_143 {
946
- max-height: none;
944
+ ._readonly_k8th1_56._folded_k8th1_161 ._pre_k8th1_143 {
945
+ display: none;
947
946
  }
948
947
 
949
948
  /* 行号槽:sticky-left 保证横向滚动时行号可见;code 不折行(white-space: pre),
950
949
  逻辑行与视觉行一一对应,行高继承 pre,格子无需逐行测高 */
951
- ._gutter_16490_168 {
950
+ ._gutter_k8th1_167 {
952
951
  display: block;
953
952
  flex: none;
954
953
  position: sticky;
@@ -965,17 +964,17 @@ table.tmr-pending-anchor {
965
964
  font-variant-numeric: tabular-nums;
966
965
  }
967
966
 
968
- ._gutterLine_16490_185 {
967
+ ._gutterLine_k8th1_184 {
969
968
  display: block;
970
969
  }
971
970
 
972
- ._readonlyActions_16490_189 {
971
+ ._readonlyActions_k8th1_188 {
973
972
  display: inline-flex;
974
973
  align-items: center;
975
974
  gap: 4px;
976
975
  }
977
976
 
978
- ._actionBtn_16490_195 {
977
+ ._actionBtn_k8th1_194 {
979
978
  display: inline-flex;
980
979
  align-items: center;
981
980
  justify-content: center;
@@ -989,19 +988,19 @@ table.tmr-pending-anchor {
989
988
  transition: background 0.15s, color 0.15s;
990
989
  }
991
990
 
992
- ._actionBtn_16490_195:hover {
991
+ ._actionBtn_k8th1_194:hover {
993
992
  background: #f0f0f0;
994
993
  color: #1f2937;
995
994
  }
996
995
 
997
- ._langBraces_16490_214 {
996
+ ._langBraces_k8th1_213 {
998
997
  margin-right: 6px;
999
998
  color: var(--tmr-accent, #ff6719);
1000
999
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
1001
1000
  font-weight: 700;
1002
1001
  }
1003
1002
 
1004
- ._pre_16490_143 code {
1003
+ ._pre_k8th1_143 code {
1005
1004
  display: block;
1006
1005
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
1007
1006
  color: #24292e;
@@ -1013,49 +1012,49 @@ table.tmr-pending-anchor {
1013
1012
  }
1014
1013
 
1015
1014
  /* 语法高亮配色(lowlight / highlight.js token,GitHub 浅色主题) */
1016
- ._pre_16490_143 .hljs-comment,
1017
- ._pre_16490_143 .hljs-quote {
1015
+ ._pre_k8th1_143 .hljs-comment,
1016
+ ._pre_k8th1_143 .hljs-quote {
1018
1017
  color: #6a737d;
1019
1018
  font-style: italic;
1020
1019
  }
1021
1020
 
1022
- ._pre_16490_143 .hljs-keyword,
1023
- ._pre_16490_143 .hljs-selector-tag,
1024
- ._pre_16490_143 .hljs-literal,
1025
- ._pre_16490_143 .hljs-type {
1021
+ ._pre_k8th1_143 .hljs-keyword,
1022
+ ._pre_k8th1_143 .hljs-selector-tag,
1023
+ ._pre_k8th1_143 .hljs-literal,
1024
+ ._pre_k8th1_143 .hljs-type {
1026
1025
  color: #d73a49;
1027
1026
  }
1028
1027
 
1029
- ._pre_16490_143 .hljs-string,
1030
- ._pre_16490_143 .hljs-meta .hljs-string,
1031
- ._pre_16490_143 .hljs-regexp {
1028
+ ._pre_k8th1_143 .hljs-string,
1029
+ ._pre_k8th1_143 .hljs-meta .hljs-string,
1030
+ ._pre_k8th1_143 .hljs-regexp {
1032
1031
  color: #c0392b;
1033
1032
  }
1034
1033
 
1035
- ._pre_16490_143 .hljs-number,
1036
- ._pre_16490_143 .hljs-built_in,
1037
- ._pre_16490_143 .hljs-builtin-name {
1034
+ ._pre_k8th1_143 .hljs-number,
1035
+ ._pre_k8th1_143 .hljs-built_in,
1036
+ ._pre_k8th1_143 .hljs-builtin-name {
1038
1037
  color: #005cc5;
1039
1038
  }
1040
1039
 
1041
- ._pre_16490_143 .hljs-title,
1042
- ._pre_16490_143 .hljs-function .hljs-title,
1043
- ._pre_16490_143 .hljs-section {
1040
+ ._pre_k8th1_143 .hljs-title,
1041
+ ._pre_k8th1_143 .hljs-function .hljs-title,
1042
+ ._pre_k8th1_143 .hljs-section {
1044
1043
  color: #6f42c1;
1045
1044
  }
1046
1045
 
1047
- ._pre_16490_143 .hljs-attr,
1048
- ._pre_16490_143 .hljs-attribute,
1049
- ._pre_16490_143 .hljs-variable,
1050
- ._pre_16490_143 .hljs-template-variable {
1046
+ ._pre_k8th1_143 .hljs-attr,
1047
+ ._pre_k8th1_143 .hljs-attribute,
1048
+ ._pre_k8th1_143 .hljs-variable,
1049
+ ._pre_k8th1_143 .hljs-template-variable {
1051
1050
  color: #24292e;
1052
1051
  }
1053
1052
 
1054
- ._pre_16490_143 .hljs-punctuation {
1053
+ ._pre_k8th1_143 .hljs-punctuation {
1055
1054
  color: #57606a;
1056
1055
  }
1057
1056
 
1058
- ._pre_16490_143 .hljs-tag {
1057
+ ._pre_k8th1_143 .hljs-tag {
1059
1058
  color: #22863a;
1060
1059
  }
1061
1060
  /* 顶部操作栏:横跨宽度、内容居中、细线灰图标。配色映射到可覆盖的 --tmr-* 变量。 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tiptap-markdown-react",
3
- "version": "0.14.1",
3
+ "version": "0.14.2",
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",