wendang-react 0.6.2 → 0.6.4

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.
Files changed (119) hide show
  1. package/NOTICE.md +1 -1
  2. package/README.md +105 -0
  3. package/dist/bindings/yjs.js +1 -5
  4. package/dist/chunks/AnchoredPanel-C7jMoPze.js +1 -0
  5. package/dist/chunks/DocumentExportMenu-CUMsgq3w.js +2 -0
  6. package/dist/chunks/Dropdown-D98tXfe0.js +3 -0
  7. package/dist/chunks/MindMapCanvas-CVXQXNOg.js +163 -0
  8. package/dist/chunks/MindMapViewer-BI8zbQM1.js +13 -0
  9. package/dist/chunks/SpreadsheetViewer-CoQ4VIgj.js +23 -0
  10. package/dist/chunks/code-highlight-BmaqTe1m.js +1 -30
  11. package/dist/chunks/code-highlight-engine-BFDzDPzy.js +1 -40
  12. package/dist/chunks/comment-hint-BhUxKjKK.js +14 -0
  13. package/dist/chunks/composition-state-Bl-U1R_2.js +1 -40
  14. package/dist/chunks/extensions-C1fCBnEs.js +14 -0
  15. package/dist/chunks/fuzzy-match-DYQR-4w2.js +1 -89
  16. package/dist/chunks/hooks-C53Dp0pr.js +1 -35
  17. package/dist/chunks/i18n-B0kCsIjc.js +2 -0
  18. package/dist/chunks/index-COeA2QcQ.js +15 -0
  19. package/dist/chunks/katex-WjrodtTU.js +1 -71
  20. package/dist/chunks/locale-DWpIJ_9X.js +1 -0
  21. package/dist/chunks/mind-map-controller-Ce76mETT.js +1 -0
  22. package/dist/chunks/mind-map-delete-CVsxdXfs.js +1 -31
  23. package/dist/chunks/mind-map-input-CEWRz_t6.js +1 -43
  24. package/dist/chunks/mind-topic-text-Bn1waxff.js +31 -0
  25. package/dist/chunks/popover-placement-D3xVYdkt.js +1 -47
  26. package/dist/chunks/worksheet-engine-c84sdD4N.js +1 -0
  27. package/dist/chunks/worksheet-preview-DsDVWxIM.js +1 -129
  28. package/dist/document/viewer.js +30 -289
  29. package/dist/document.js +120 -3622
  30. package/dist/export/json.js +1 -5
  31. package/dist/export/markdown.js +1 -2
  32. package/dist/export/mindmap.js +1 -2
  33. package/dist/export/pdf.js +1 -6
  34. package/dist/export/word.js +1 -2
  35. package/dist/export.js +1 -2
  36. package/dist/i18n.js +1 -0
  37. package/dist/index.js +1 -8
  38. package/dist/locales/en-US.js +1 -0
  39. package/dist/locales/es-ES.js +1 -0
  40. package/dist/locales/ja-JP.js +1 -0
  41. package/dist/locales/ko-KR.js +1 -0
  42. package/dist/locales/zh-CN.js +1 -0
  43. package/dist/locales/zh-TW.js +1 -0
  44. package/dist/mindmap/viewer.js +1 -6
  45. package/dist/mindmap.js +3 -123
  46. package/dist/shared.js +1 -52
  47. package/dist/spreadsheet/viewer.js +1 -5
  48. package/dist/spreadsheet/xlsx.js +1 -299
  49. package/dist/spreadsheet.js +2 -120
  50. package/dist/styles/callout.css +1 -34
  51. package/dist/styles/code-block.css +1 -58
  52. package/dist/styles/content-style.css +1 -619
  53. package/dist/styles/content-tokens.css +1 -29
  54. package/dist/styles/editor-interaction.css +1 -621
  55. package/dist/styles/file-video.css +1 -12
  56. package/dist/styles/image-preview.css +1 -103
  57. package/dist/styles/mind-map-block.css +1 -14
  58. package/dist/styles/mind-map-canvas.css +1 -80
  59. package/dist/styles/mind-map-comments.css +1 -93
  60. package/dist/styles/mind-map-details.css +1 -7
  61. package/dist/styles/mind-map-preview.css +1 -7
  62. package/dist/styles/mind-map-topic.css +1 -112
  63. package/dist/styles/page-picker.css +1 -47
  64. package/dist/styles/renderer.css +1 -45
  65. package/dist/styles/spreadsheet-editor.css +1 -3
  66. package/dist/styles/tokens.css +1 -142
  67. package/dist/styles/video-dialog.css +1 -41
  68. package/dist/styles/video-embed.css +1 -35
  69. package/dist/styles.css +1 -2631
  70. package/dist/types/editor/BlockAffordance.d.ts +5 -2
  71. package/dist/types/editor/CalloutView.d.ts +2 -1
  72. package/dist/types/editor/ImagePreview.d.ts +1 -1
  73. package/dist/types/editor/PagePicker.d.ts +1 -1
  74. package/dist/types/editor/extensions.d.ts +4 -1
  75. package/dist/types/engine/editor/block-commands.d.ts +1 -1
  76. package/dist/types/engine/editor/block-menu-hover.d.ts +16 -0
  77. package/dist/types/engine/editor/extensions/locale.d.ts +3 -0
  78. package/dist/types/engine/editor/nodes/image-nodeview.d.ts +1 -1
  79. package/dist/types/engine/host.d.ts +60 -2
  80. package/dist/types/engine/renderer/attachments.d.ts +3 -3
  81. package/dist/types/engine/shared/video-feedback.d.ts +1 -1
  82. package/dist/types/engine/worksheets/worksheet-engine.d.ts +1 -0
  83. package/dist/types/engine/worksheets/worksheet-xlsx.d.ts +6 -1
  84. package/dist/types/engine/wui/core/overlay-scrollbar.d.ts +4 -0
  85. package/dist/types/host-types.d.ts +2 -60
  86. package/dist/types/host.d.ts +8 -1
  87. package/dist/types/i18n.d.ts +3 -0
  88. package/dist/types/index.d.ts +2 -0
  89. package/dist/types/locales/en-US.d.ts +1 -0
  90. package/dist/types/locales/es-ES.d.ts +1 -0
  91. package/dist/types/locales/ja-JP.d.ts +1 -0
  92. package/dist/types/locales/ko-KR.d.ts +1 -0
  93. package/dist/types/locales/zh-CN.d.ts +1 -0
  94. package/dist/types/locales/zh-TW.d.ts +1 -0
  95. package/dist/types/spreadsheet/xlsx.d.ts +1 -1
  96. package/dist/types/wui/Dropdown.d.ts +2 -1
  97. package/dist/types/wui/index.d.ts +2 -1
  98. package/integrity.json +3135 -0
  99. package/package.json +15 -5
  100. package/verify-integrity.mjs +138 -0
  101. package/dist/chunks/AnchoredPanel-CSXrveAT.js +0 -68
  102. package/dist/chunks/DocumentExportMenu-DgDXDChd.js +0 -75
  103. package/dist/chunks/MindMapCanvas-I5M1SIyX.js +0 -2090
  104. package/dist/chunks/MindMapViewer-Nu3nEVHQ.js +0 -180
  105. package/dist/chunks/SpreadsheetViewer-CLDlnWyM.js +0 -163
  106. package/dist/chunks/comment-hint-Coq1laiR.js +0 -296
  107. package/dist/chunks/extensions-DMQedgOl.js +0 -4210
  108. package/dist/chunks/host-C-V688Rq.js +0 -197
  109. package/dist/chunks/index-CqaMYb3A.js +0 -720
  110. package/dist/chunks/mind-map-controller-B6SxK3GZ.js +0 -479
  111. package/dist/chunks/mind-topic-text-DYQR2Dzf.js +0 -446
  112. package/dist/chunks/nodes-iKqTGr_N.js +0 -291
  113. package/dist/chunks/worksheet-engine-TJ54m0KC.js +0 -125
  114. package/third-party-notices/wendang-export@0.6.0-NOTICE.md.txt +0 -51
  115. package/third-party-notices/wendang-export@0.6.1-LICENSE.txt +0 -21
  116. package/third-party-notices/wendang-export@0.6.2-LICENSE.txt +0 -21
  117. package/third-party-notices/wendang-export@0.6.2-NOTICE.md.txt +0 -70
  118. /package/third-party-notices/{wendang-export@0.6.0-LICENSE.txt → wendang-export@0.6.3-LICENSE.txt} +0 -0
  119. /package/third-party-notices/{wendang-export@0.6.1-NOTICE.md.txt → wendang-export@0.6.3-NOTICE.md.txt} +0 -0
@@ -1,142 +1 @@
1
- @import './content-tokens.css';
2
-
3
- .wendang {
4
- --color-bg: #f6f8fc; --color-surface: #fff; --color-surface-subtle: #f5f7fa;
5
- --color-text: #1f2937; --color-text-muted: #667085; --color-text-faint: #7c8798;
6
- --color-border: #dce2eb; --color-border-strong: #b9c3d2;
7
- --color-accent: var(--wendang-accent, #2f6feb); --color-accent-soft: #eaf1ff;
8
- --color-danger: #cf3d48; --color-success: #21814b; --color-warning: #ad6b12;
9
- /*
10
- * 行内评论标记色:**同一黄色系的三档**,不引入第二种色相。
11
- *
12
- * 早先"有回复"的评论用蓝色区分,用户反馈蓝色与黄色差别太大、容易误读成
13
- * 两类不同的东西("可以搞多色,但是不要影响用户心智")。现在三档都在黄色
14
- * 家族里,靠**深浅**表达强弱:
15
- * - 普通评论:亮黄底 + 深琥珀下划线;
16
- * - 有回复:底色加深一档(表示这里更"热");
17
- * - 当前激活:再深一档。
18
- * 下划线取深琥珀(#d48806)而不是亮黄:底色变亮后,浅色下划线在浅蓝/白
19
- * 背景上都看不清(用户反馈"这个看不清,底部和背景色")。
20
- */
21
- --comment-mark-bg: #ffe58f; --comment-mark-line: #d48806;
22
- --comment-mark-bg-reply: #ffd66688; --comment-mark-line-reply: #ff9900;
23
- --comment-mark-bg-active: #ffc53d; --comment-mark-line-active: #ad6800;
24
- --content-width: 100%; --shadow-pop: 0 10px 32px #14284a20;
25
- /*
26
- * 内容排版 token(表格、标题、间距、媒体)。
27
- *
28
- * 这些变量原先只存在于 YWiki 的 web/src/styles/global.css,抽成 SDK 时
29
- * 消费方(shared/content-style.css)留下了、定义方漏掉了。CSS 变量取到
30
- * 无效值会让整条声明在计算值阶段失效,于是表格边框变成 none、表头背景
31
- * 变透明、段落与标题的间距塌成 0。颜色用绝对值,间距跟随 --content-font-size。
32
- */
33
- --content-scroll-offset: 80px;
34
- /**
35
- * 块间距(段落之间)。
36
- *
37
- * 从 `3/7`(16px 字号下 6.86px)调到 `5/7`(11.43px)。原因有两个:
38
- * 1. 6.86px 对中文正文偏紧,段与段之间读起来粘连(用户反馈"行间距处理下");
39
- * 2. 块选中时会沿块上下各外扩一段做高亮带,而外扩必须给相邻块之间保留
40
- * 可见的白缝——间距太小时这段预算不够,两个块的底色会糊成一整块
41
- * (用户实测:"带了选中背景后上下间距没了")。
42
- */
43
- --color-code-bg: #f1f5fa;
44
- color: var(--color-text); background: var(--color-surface);
45
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
46
- min-width: 0; min-height: 0;
47
- }
48
- .wendang[data-wendang-theme="dark"] {
49
- --color-bg: #17191e; --color-surface: #202329; --color-surface-subtle: #292d35;
50
- --color-text: #e5e9f0; --color-text-muted: #b2bdcd; --color-text-faint: #8f9cb0;
51
- --color-border: #3b4350; --color-border-strong: #606c7e; --color-accent-soft: #243653;
52
- --content-text-color: #e8e8ec;
53
- --content-heading-color: #f0f0f3;
54
- --content-table-header-bg: #2a2e38;
55
- --content-table-grid-color: #424753;
56
- --color-code-bg: #20242c;
57
- /* 深色底上用低明度琥珀底 + 高明度下划线,保持同一黄色系的三档深浅 */
58
- --comment-mark-bg: #4a3a12; --comment-mark-line: #e8b923;
59
- --comment-mark-bg-reply: #5c4813; --comment-mark-line-reply: #ffc53d;
60
- --comment-mark-bg-active: #6b5416; --comment-mark-line-active: #ffc53d;
61
- }
62
- .wendang-root { min-height: 0; min-width: 0; height: 100%; }
63
- /**
64
- * 浮层挂载根。必须建层叠上下文:正文 `.tiptap` 自己是 `position: relative`,
65
- * 若 portal 没有 z-index,它会被正文里的图片等元素盖住——实测拖拽插入线
66
- * 就因此完全看不见(mouse 命中的是图片)。
67
- */
68
- .wendang-portal {
69
- position: relative;
70
- z-index: 1000;
71
- }
72
- /*
73
- * 基础元素样式同时作用于 `.wendang` 正文与 `.wendang-popup-scope` 弹层内容。
74
- *
75
- * 弹层(对话框、右键菜单)teleport 到 body 后不在 `.wendang` 内,只带了一份
76
- * token 副本;如果这些规则只写在 `.wendang` 下,弹层里的 input 会退回浏览器
77
- * 默认样式、`.muted`/`.small`/`.error-banner` 全部失效。用 `:is()` 让两处共用
78
- * 同一组声明,避免再复制一遍。
79
- */
80
- /* Inline topic editors own their font metrics and appearance in both canvas hosts. */
81
- :is(.wendang, .wendang-popup-scope) :where(button, input, textarea):not(:where(.mind-topic-input)) { font: inherit; box-sizing: border-box; }
82
- :is(.wendang, .wendang-popup-scope) :where(a) { color: var(--color-accent); }
83
- :is(.wendang, .wendang-popup-scope) :where(button) { cursor: pointer; }
84
- :is(.wendang, .wendang-popup-scope) .muted { color: var(--color-text-muted); }
85
- :is(.wendang, .wendang-popup-scope) .small { font-size: 12px; }
86
- :is(.wendang, .wendang-popup-scope) :where(input:not([type=checkbox]):not([type=radio]), textarea):not(.worksheet-grid *):not(:where(.mind-topic-input)) {
87
- background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border);
88
- border-radius: 6px; padding: 6px 8px;
89
- }
90
- :is(.wendang, .wendang-popup-scope) :where(.error-banner, .error) { color: var(--color-danger); }
91
- :is(.wendang, .wendang-popup-scope) :where(.notice) { color: var(--color-text-muted); }
92
-
93
- /* 文档调色板:与存储值分开,切换主题不会改写正文或触发保存。 */
94
- .wendang {
95
- --doc-text-gray: #646a73;
96
- --doc-text-red: #d92c2c;
97
- --doc-text-orange: #b95d0b;
98
- --doc-text-yellow: #8a6c0a;
99
- --doc-text-green: #237b35;
100
- --doc-text-blue: #1971c2;
101
- --doc-text-purple: #7048e8;
102
- --doc-highlight-gray-soft: #f1f3f5;
103
- --doc-highlight-red: #ffe3e3;
104
- --doc-highlight-orange: #fff0db;
105
- --doc-highlight-yellow: #fff3bf;
106
- --doc-highlight-green: #d3f9d8;
107
- --doc-highlight-blue: #d0ebff;
108
- --doc-highlight-purple: #e5dbff;
109
- --doc-highlight-gray: #dee2e6;
110
- --doc-highlight-gray-strong: #ced4da;
111
- --doc-highlight-red-strong: #ffc9c9;
112
- --doc-highlight-orange-strong: #ffd8a8;
113
- --doc-highlight-yellow-strong: #ffec99;
114
- --doc-highlight-green-strong: #b2f2bb;
115
- --doc-highlight-blue-strong: #a5d8ff;
116
- --doc-highlight-purple-strong: #d0bfff;
117
- }
118
-
119
- .wendang[data-wendang-theme='dark'] {
120
- --doc-text-gray: #b8beca;
121
- --doc-text-red: #ff9b9b;
122
- --doc-text-orange: #ffc078;
123
- --doc-text-yellow: #f6d37a;
124
- --doc-text-green: #8ce99a;
125
- --doc-text-blue: #91caff;
126
- --doc-text-purple: #d0bfff;
127
- --doc-highlight-gray-soft: #32353d;
128
- --doc-highlight-red: #563138;
129
- --doc-highlight-orange: #523a2a;
130
- --doc-highlight-yellow: #4a4226;
131
- --doc-highlight-green: #294737;
132
- --doc-highlight-blue: #293f5b;
133
- --doc-highlight-purple: #42335b;
134
- --doc-highlight-gray: #424650;
135
- --doc-highlight-gray-strong: #555b66;
136
- --doc-highlight-red-strong: #713f47;
137
- --doc-highlight-orange-strong: #6a4b31;
138
- --doc-highlight-yellow-strong: #635732;
139
- --doc-highlight-green-strong: #355c44;
140
- --doc-highlight-blue-strong: #355476;
141
- --doc-highlight-purple-strong: #554273;
142
- }
1
+ @import"./content-tokens.css";.wendang{--color-bg: #f6f8fc;--color-surface: #fff;--color-surface-subtle: #f5f7fa;--color-text: #1f2937;--color-text-muted: #667085;--color-text-faint: #7c8798;--color-border: #dce2eb;--color-border-strong: #b9c3d2;--color-accent: var(--wendang-accent, #2f6feb);--color-accent-soft: #eaf1ff;--color-danger: #cf3d48;--color-success: #21814b;--color-warning: #ad6b12;--comment-mark-bg: #ffe58f;--comment-mark-line: #d48806;--comment-mark-bg-reply: #ffd66688;--comment-mark-line-reply: #ff9900;--comment-mark-bg-active: #ffc53d;--comment-mark-line-active: #ad6800;--content-width: 100%;--shadow-pop: 0 10px 32px #14284a20;--content-scroll-offset: 80px;--color-code-bg: #f1f5fa;color:var(--color-text);background:var(--color-surface);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,sans-serif;min-width:0;min-height:0}.wendang[data-wendang-theme=dark]{--color-bg: #17191e;--color-surface: #202329;--color-surface-subtle: #292d35;--color-text: #e5e9f0;--color-text-muted: #b2bdcd;--color-text-faint: #8f9cb0;--color-border: #3b4350;--color-border-strong: #606c7e;--color-accent-soft: #243653;--content-text-color: #e8e8ec;--content-heading-color: #f0f0f3;--content-table-header-bg: #2a2e38;--content-table-grid-color: #424753;--color-code-bg: #20242c;--comment-mark-bg: #4a3a12;--comment-mark-line: #e8b923;--comment-mark-bg-reply: #5c4813;--comment-mark-line-reply: #ffc53d;--comment-mark-bg-active: #6b5416;--comment-mark-line-active: #ffc53d}.wendang-root{min-height:0;min-width:0;height:100%}.wendang-portal{position:relative;z-index:1000}:is(.wendang,.wendang-popup-scope) :where(button,input,textarea):not(:where(.mind-topic-input)){font:inherit;box-sizing:border-box}:is(.wendang,.wendang-popup-scope) :where(a){color:var(--color-accent)}:is(.wendang,.wendang-popup-scope) :where(button){cursor:pointer}:is(.wendang,.wendang-popup-scope) .muted{color:var(--color-text-muted)}:is(.wendang,.wendang-popup-scope) .small{font-size:12px}:is(.wendang,.wendang-popup-scope) :where(input:not([type=checkbox]):not([type=radio]),textarea):not(.worksheet-grid *):not(:where(.mind-topic-input)){background:var(--color-surface);color:var(--color-text);border:1px solid var(--color-border);border-radius:6px;padding:6px 8px}:is(.wendang,.wendang-popup-scope) :where(.error-banner,.error){color:var(--color-danger)}:is(.wendang,.wendang-popup-scope) :where(.notice){color:var(--color-text-muted)}.wendang{--doc-text-gray: #646a73;--doc-text-red: #d92c2c;--doc-text-orange: #b95d0b;--doc-text-yellow: #8a6c0a;--doc-text-green: #237b35;--doc-text-blue: #1971c2;--doc-text-purple: #7048e8;--doc-highlight-gray-soft: #f1f3f5;--doc-highlight-red: #ffe3e3;--doc-highlight-orange: #fff0db;--doc-highlight-yellow: #fff3bf;--doc-highlight-green: #d3f9d8;--doc-highlight-blue: #d0ebff;--doc-highlight-purple: #e5dbff;--doc-highlight-gray: #dee2e6;--doc-highlight-gray-strong: #ced4da;--doc-highlight-red-strong: #ffc9c9;--doc-highlight-orange-strong: #ffd8a8;--doc-highlight-yellow-strong: #ffec99;--doc-highlight-green-strong: #b2f2bb;--doc-highlight-blue-strong: #a5d8ff;--doc-highlight-purple-strong: #d0bfff}.wendang[data-wendang-theme=dark]{--doc-text-gray: #b8beca;--doc-text-red: #ff9b9b;--doc-text-orange: #ffc078;--doc-text-yellow: #f6d37a;--doc-text-green: #8ce99a;--doc-text-blue: #91caff;--doc-text-purple: #d0bfff;--doc-highlight-gray-soft: #32353d;--doc-highlight-red: #563138;--doc-highlight-orange: #523a2a;--doc-highlight-yellow: #4a4226;--doc-highlight-green: #294737;--doc-highlight-blue: #293f5b;--doc-highlight-purple: #42335b;--doc-highlight-gray: #424650;--doc-highlight-gray-strong: #555b66;--doc-highlight-red-strong: #713f47;--doc-highlight-orange-strong: #6a4b31;--doc-highlight-yellow-strong: #635732;--doc-highlight-green-strong: #355c44;--doc-highlight-blue-strong: #355476;--doc-highlight-purple-strong: #554273}
@@ -1,41 +1 @@
1
- /*
2
- * 垂直节奏:字段内部 8px,字段之间 16px,最后一段之外留出 dialog body 的
3
- * 底部内边距。之前的提示文字紧贴输入框、又贴着按钮行,看起来像被截断。
4
- */
5
- .video-form { display: flex; flex-direction: column; gap: 16px; }
6
- .video-field { display: flex; flex-direction: column; gap: 8px; }
7
- .video-field label { font-size: 13px; font-weight: 600; color: var(--color-text); }
8
- .video-field input { width: 100%; }
9
- .video-hint {
10
- margin: 0;
11
- font-size: 12px;
12
- line-height: 1.7;
13
- color: var(--color-text-muted);
14
- }
15
- .video-status {
16
- margin: 0;
17
- padding: 8px 10px;
18
- border-radius: 6px;
19
- font-size: 12px;
20
- line-height: 1.7;
21
- }
22
- .video-status--ok {
23
- color: var(--color-text);
24
- background: var(--color-accent-soft);
25
- }
26
- .video-status--error {
27
- color: var(--color-danger);
28
- background: color-mix(in srgb, var(--color-danger) 8%, transparent);
29
- }
30
- .video-status-meta {
31
- margin-left: 4px;
32
- font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
33
- color: var(--color-text-muted);
34
- }
35
- .video-source {
36
- margin: 0;
37
- font-size: 12px;
38
- line-height: 1.6;
39
- color: var(--color-text-muted);
40
- overflow-wrap: anywhere;
41
- }
1
+ .video-form{display:flex;flex-direction:column;gap:16px}.video-field{display:flex;flex-direction:column;gap:8px}.video-field label{font-size:13px;font-weight:600;color:var(--color-text)}.video-field input{width:100%}.video-loading-option{display:flex;flex-direction:column;gap:6px}.video-loading-choice{display:inline-flex;align-items:center;gap:8px;cursor:pointer;font-size:13px;color:var(--color-text)}.video-loading-choice input[type=checkbox]{flex:none;width:16px;height:16px;margin:0;accent-color:var(--color-accent)}.video-loading-option .video-hint{padding-left:24px}.video-hint{margin:0;font-size:12px;line-height:1.7;color:var(--color-text-muted)}.video-status{margin:0;padding:8px 10px;border-radius:6px;font-size:12px;line-height:1.7}.video-status--ok{color:var(--color-text);background:var(--color-accent-soft)}.video-status--error{color:var(--color-danger);background:color-mix(in srgb,var(--color-danger) 8%,transparent)}.video-status-meta{margin-left:4px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--color-text-muted)}.video-source{margin:0;font-size:12px;line-height:1.6;color:var(--color-text-muted);overflow-wrap:anywhere}
@@ -1,35 +1 @@
1
- /*
2
- * `--color-hover` 从来没有被定义过:占位区背景整条声明在计算值阶段失效,
3
- * 只剩正文白底,看起来像一块空白矩形。改用确定存在的 `--color-surface-subtle`
4
- * 并给出绝对色兜底,非 SDK 宿主也能正常着色。
5
- */
6
- .doc-video-embed { width: 100%; min-width: 0; border: 1px solid var(--color-border, #dce2eb); border-radius: 8px; overflow: hidden; background: var(--color-surface, #fff); }
7
- .doc-video-embed .video-placeholder {
8
- min-height: 220px; padding: 28px 24px;
9
- display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
10
- background: var(--color-surface-subtle, #f5f7fa);
11
- }
12
- .doc-video-embed .video-play-icon {
13
- display: inline-flex; align-items: center; justify-content: center;
14
- width: 46px; height: 46px; margin-bottom: 2px; border-radius: 50%;
15
- color: var(--color-accent, #2f6feb);
16
- background: var(--color-accent-soft, #eaf1ff);
17
- font-size: 18px; line-height: 1; text-indent: 2px;
18
- }
19
- .doc-video-embed .video-placeholder strong { font-size: 14px; font-weight: 600; color: var(--color-text, #1f2937); }
20
- .doc-video-embed .video-id { font-size: 12px; color: var(--color-text-muted, #667085); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
21
- .doc-video-embed .video-load {
22
- margin-top: 4px; padding: 7px 20px;
23
- color: var(--color-accent, #2f6feb); background: var(--color-accent-soft, #eaf1ff);
24
- border: 0; border-radius: 6px; cursor: pointer; font: inherit; font-size: 13px;
25
- }
26
- .doc-video-embed .video-load:hover { background: color-mix(in srgb, var(--color-accent, #2f6feb) 16%, transparent); }
27
- .doc-video-embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; min-height: 200px; border: 0; background: #111; }
28
- .doc-video-embed .video-footer {
29
- display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
30
- padding: 10px 14px; font-size: 12px;
31
- border-top: 1px solid var(--color-border, #dce2eb);
32
- background: var(--color-surface, #fff);
33
- }
34
- .doc-video-embed .video-footer a { color: var(--color-accent, #2f6feb); }
35
- .doc-video-embed button:focus-visible, .doc-video-embed a:focus-visible { outline: 2px solid var(--color-accent, #2f6feb); outline-offset: 2px; }
1
+ .doc-video-embed{width:100%;min-width:0;border:1px solid var(--color-border, #dce2eb);border-radius:8px;overflow:hidden;background:var(--color-surface, #fff)}.doc-video-embed .video-placeholder{min-height:220px;padding:28px 24px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:var(--color-surface-subtle, #f5f7fa)}.doc-video-embed .video-play-icon{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;margin-bottom:2px;border-radius:50%;color:var(--color-accent, #2f6feb);background:var(--color-accent-soft, #eaf1ff);font-size:18px;line-height:1;text-indent:2px}.doc-video-embed .video-placeholder strong{font-size:14px;font-weight:600;color:var(--color-text, #1f2937)}.doc-video-embed .video-id{font-size:12px;color:var(--color-text-muted, #667085);font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.doc-video-embed .video-load{margin-top:4px;padding:7px 20px;color:var(--color-accent, #2f6feb);background:var(--color-accent-soft, #eaf1ff);border:0;border-radius:6px;cursor:pointer;font:inherit;font-size:13px}.doc-video-embed .video-load:hover{background:color-mix(in srgb,var(--color-accent, #2f6feb) 16%,transparent)}.doc-video-embed iframe{display:block;width:100%;aspect-ratio:16 / 9;min-height:200px;border:0;background:#111}.doc-video-embed .video-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:10px 14px;font-size:12px;border-top:1px solid var(--color-border, #dce2eb);background:var(--color-surface, #fff)}.doc-video-embed .video-footer a{color:var(--color-accent, #2f6feb)}.doc-video-embed button:focus-visible,.doc-video-embed a:focus-visible{outline:2px solid var(--color-accent, #2f6feb);outline-offset:2px}