@yudaocode/univer-docs-ui 1.6.205 → 1.6.207

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/lib/cjs/index.js CHANGED
@@ -305,6 +305,19 @@ function resolveDocsUIFeatures(raw) {
305
305
  controlComputedAndVisibleIf: raw?.controlComputedAndVisibleIf ?? true,
306
306
  controlVisualChrome: raw?.controlVisualChrome ?? true,
307
307
  controlValidator: raw?.controlValidator ?? true,
308
+ controlFormExtras: raw?.controlFormExtras ?? true,
309
+ tocInsert: raw?.tocInsert ?? true,
310
+ headingCollapse: raw?.headingCollapse ?? true,
311
+ headerFooterSdt: raw?.headerFooterSdt ?? true,
312
+ dynamicFields: raw?.dynamicFields ?? true,
313
+ textDirection: raw?.textDirection ?? true,
314
+ footnotes: raw?.footnotes ?? true,
315
+ docAreas: raw?.docAreas ?? true,
316
+ cascadeRules: raw?.cascadeRules ?? true,
317
+ extendedTableBorders: raw?.extendedTableBorders ?? true,
318
+ paragraphAdvancedLayout: raw?.paragraphAdvancedLayout ?? true,
319
+ legacyFormatIo: raw?.legacyFormatIo ?? true,
320
+ bookmarks: raw?.bookmarks ?? true,
308
321
  ...raw?.allowedSdtKinds ? { allowedSdtKinds: [...raw.allowedSdtKinds] } : {}
309
322
  };
310
323
  }
@@ -1077,7 +1090,7 @@ var DocInspectorPanel = () => {
1077
1090
  children: "+ \u7F16\u8F91\u9875\u811A"
1078
1091
  }
1079
1092
  ),
1080
- headerFooterSegments.length > 0 && features.sdtControls && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1093
+ headerFooterSegments.length > 0 && features.sdtControls && features.headerFooterSdt && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1081
1094
  "button",
1082
1095
  {
1083
1096
  type: "button",
@@ -1106,7 +1119,7 @@ var DocInspectorPanel = () => {
1106
1119
  children: "\u8BA1\u7B97\u8868\u5185\u516C\u5F0F (SUM/CNMONEY)"
1107
1120
  }
1108
1121
  ),
1109
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1122
+ features.dynamicFields && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1110
1123
  "button",
1111
1124
  {
1112
1125
  type: "button",
@@ -1132,30 +1145,32 @@ var DocInspectorPanel = () => {
1132
1145
  children: "\u4E00\u952E\u6392\u7248\u6E05\u7406"
1133
1146
  }
1134
1147
  ),
1135
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1136
- "button",
1137
- {
1138
- type: "button",
1139
- className: "yudao-doc-mini-btn",
1140
- onClick: () => commandService.syncExecuteCommand(import_univer_docs2.SetDocTextDirectionCommand.id, {
1141
- unitId: unit.getUnitId(),
1142
- direction: "ltr"
1143
- }),
1144
- children: "LTR"
1145
- }
1146
- ),
1147
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1148
- "button",
1149
- {
1150
- type: "button",
1151
- className: "yudao-doc-mini-btn",
1152
- onClick: () => commandService.syncExecuteCommand(import_univer_docs2.SetDocTextDirectionCommand.id, {
1153
- unitId: unit.getUnitId(),
1154
- direction: "rtl"
1155
- }),
1156
- children: "RTL"
1157
- }
1158
- )
1148
+ features.textDirection && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
1149
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1150
+ "button",
1151
+ {
1152
+ type: "button",
1153
+ className: "yudao-doc-mini-btn",
1154
+ onClick: () => commandService.syncExecuteCommand(import_univer_docs2.SetDocTextDirectionCommand.id, {
1155
+ unitId: unit.getUnitId(),
1156
+ direction: "ltr"
1157
+ }),
1158
+ children: "LTR"
1159
+ }
1160
+ ),
1161
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1162
+ "button",
1163
+ {
1164
+ type: "button",
1165
+ className: "yudao-doc-mini-btn",
1166
+ onClick: () => commandService.syncExecuteCommand(import_univer_docs2.SetDocTextDirectionCommand.id, {
1167
+ unitId: unit.getUnitId(),
1168
+ direction: "rtl"
1169
+ }),
1170
+ children: "RTL"
1171
+ }
1172
+ )
1173
+ ] })
1159
1174
  ] })
1160
1175
  ] }),
1161
1176
  /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "yudao-doc-section", children: [
@@ -1234,7 +1249,7 @@ var DocInspectorPanel = () => {
1234
1249
  ] })
1235
1250
  ] }),
1236
1251
  features.coSigningRoles && renderRoleSwitcherCard(),
1237
- /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "yudao-doc-section", children: [
1252
+ features.footnotes && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "yudao-doc-section", children: [
1238
1253
  /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "yudao-doc-section-title", children: [
1239
1254
  /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { children: [
1240
1255
  "\u811A\u6CE8\u4E0E\u5C3E\u6CE8\u7BA1\u7406 (",
@@ -1378,7 +1393,7 @@ var DocInspectorPanel = () => {
1378
1393
  nt.id
1379
1394
  ))
1380
1395
  ] }),
1381
- /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "yudao-doc-section", children: [
1396
+ features.docAreas && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "yudao-doc-section", children: [
1382
1397
  /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "yudao-doc-section-title", children: [
1383
1398
  /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { children: [
1384
1399
  "\u547D\u540D\u5B50\u533A\u57DF (Area / Zone) (",
@@ -1514,7 +1529,7 @@ var DocInspectorPanel = () => {
1514
1529
  area.id
1515
1530
  )) })
1516
1531
  ] }),
1517
- /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "yudao-doc-section", children: [
1532
+ features.cascadeRules && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "yudao-doc-section", children: [
1518
1533
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "yudao-doc-section-title", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { children: [
1519
1534
  "\u63A7\u4EF6\u7EA7\u8054\u89C4\u5219\u5F15\u64CE (Cascade) (",
1520
1535
  cascadeRules.length,
@@ -1827,77 +1842,79 @@ var DocInspectorPanel = () => {
1827
1842
  children: (tables[Math.min(sortTableIdx, tables.length - 1)]?.headerRowCount ?? 0) > 0 ? "\u5DF2\u5F00\u542F\u8DE8\u9875\u8868\u5934" : "\u8BBE\u4E3A\u8DE8\u9875\u91CD\u590D\u8868\u5934"
1828
1843
  }
1829
1844
  ),
1830
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1831
- "button",
1832
- {
1833
- type: "button",
1834
- className: "yudao-doc-mini-btn",
1835
- onClick: () => commandService.syncExecuteCommand(import_univer_docs2.SetDocTableBorderPresetCommand.id, {
1836
- unitId: unit.getUnitId(),
1837
- tableIndexOrId: Math.min(sortTableIdx, tables.length - 1),
1838
- preset: "all"
1839
- }),
1840
- children: "\u5168\u6846\u7EBF"
1841
- }
1842
- ),
1843
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1844
- "button",
1845
- {
1846
- type: "button",
1847
- className: "yudao-doc-mini-btn",
1848
- onClick: () => commandService.syncExecuteCommand(import_univer_docs2.SetDocTableBorderPresetCommand.id, {
1849
- unitId: unit.getUnitId(),
1850
- tableIndexOrId: Math.min(sortTableIdx, tables.length - 1),
1851
- preset: "external"
1852
- }),
1853
- children: "\u5916\u6846\u7EBF"
1854
- }
1855
- ),
1856
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1857
- "button",
1858
- {
1859
- type: "button",
1860
- className: "yudao-doc-mini-btn",
1861
- onClick: () => commandService.syncExecuteCommand(import_univer_docs2.SetDocTableBorderPresetCommand.id, {
1862
- unitId: unit.getUnitId(),
1863
- tableIndexOrId: Math.min(sortTableIdx, tables.length - 1),
1864
- preset: "empty"
1865
- }),
1866
- children: "\u65E0\u6846\u7EBF"
1867
- }
1868
- ),
1869
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1870
- "button",
1871
- {
1872
- type: "button",
1873
- className: "yudao-doc-mini-btn",
1874
- onClick: () => commandService.syncExecuteCommand(import_univer_docs2.SetDocTableCellPropertiesCommand.id, {
1875
- unitId: unit.getUnitId(),
1876
- tableIndexOrId: Math.min(sortTableIdx, tables.length - 1),
1877
- rowIndex: 0,
1878
- colIndex: 0,
1879
- properties: { slashType: "forward" }
1880
- }),
1881
- children: "\u9996\u683C\u659C\u7EBF"
1882
- }
1883
- ),
1884
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1885
- "button",
1886
- {
1887
- type: "button",
1888
- className: "yudao-doc-mini-btn",
1889
- onClick: () => commandService.syncExecuteCommand(import_univer_docs2.AutoFitDocTableCommand.id, {
1890
- unitId: unit.getUnitId(),
1891
- tableIndexOrId: Math.min(sortTableIdx, tables.length - 1),
1892
- mode: "window"
1893
- }),
1894
- children: "\u81EA\u9002\u5E94\u9875\u5BBD"
1895
- }
1896
- )
1845
+ features.extendedTableBorders && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
1846
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1847
+ "button",
1848
+ {
1849
+ type: "button",
1850
+ className: "yudao-doc-mini-btn",
1851
+ onClick: () => commandService.syncExecuteCommand(import_univer_docs2.SetDocTableBorderPresetCommand.id, {
1852
+ unitId: unit.getUnitId(),
1853
+ tableIndexOrId: Math.min(sortTableIdx, tables.length - 1),
1854
+ preset: "all"
1855
+ }),
1856
+ children: "\u5168\u6846\u7EBF"
1857
+ }
1858
+ ),
1859
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1860
+ "button",
1861
+ {
1862
+ type: "button",
1863
+ className: "yudao-doc-mini-btn",
1864
+ onClick: () => commandService.syncExecuteCommand(import_univer_docs2.SetDocTableBorderPresetCommand.id, {
1865
+ unitId: unit.getUnitId(),
1866
+ tableIndexOrId: Math.min(sortTableIdx, tables.length - 1),
1867
+ preset: "external"
1868
+ }),
1869
+ children: "\u5916\u6846\u7EBF"
1870
+ }
1871
+ ),
1872
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1873
+ "button",
1874
+ {
1875
+ type: "button",
1876
+ className: "yudao-doc-mini-btn",
1877
+ onClick: () => commandService.syncExecuteCommand(import_univer_docs2.SetDocTableBorderPresetCommand.id, {
1878
+ unitId: unit.getUnitId(),
1879
+ tableIndexOrId: Math.min(sortTableIdx, tables.length - 1),
1880
+ preset: "empty"
1881
+ }),
1882
+ children: "\u65E0\u6846\u7EBF"
1883
+ }
1884
+ ),
1885
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1886
+ "button",
1887
+ {
1888
+ type: "button",
1889
+ className: "yudao-doc-mini-btn",
1890
+ onClick: () => commandService.syncExecuteCommand(import_univer_docs2.SetDocTableCellPropertiesCommand.id, {
1891
+ unitId: unit.getUnitId(),
1892
+ tableIndexOrId: Math.min(sortTableIdx, tables.length - 1),
1893
+ rowIndex: 0,
1894
+ colIndex: 0,
1895
+ properties: { slashType: "forward" }
1896
+ }),
1897
+ children: "\u9996\u683C\u659C\u7EBF"
1898
+ }
1899
+ ),
1900
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1901
+ "button",
1902
+ {
1903
+ type: "button",
1904
+ className: "yudao-doc-mini-btn",
1905
+ onClick: () => commandService.syncExecuteCommand(import_univer_docs2.AutoFitDocTableCommand.id, {
1906
+ unitId: unit.getUnitId(),
1907
+ tableIndexOrId: Math.min(sortTableIdx, tables.length - 1),
1908
+ mode: "window"
1909
+ }),
1910
+ children: "\u81EA\u9002\u5E94\u9875\u5BBD"
1911
+ }
1912
+ )
1913
+ ] })
1897
1914
  ] })
1898
1915
  ] })
1899
1916
  ] }),
1900
- /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "yudao-doc-section", children: [
1917
+ features.paragraphAdvancedLayout && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "yudao-doc-section", children: [
1901
1918
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "yudao-doc-section-title", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { children: "\u6BB5\u843D\u5206\u9875\u63A7\u5236\u4E0E\u5236\u8868\u4F4D\u524D\u5BFC\u7B26" }) }),
1902
1919
  /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { style: { display: "flex", gap: 6, alignItems: "center" }, children: [
1903
1920
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { style: { fontSize: 11, color: "#4e5565" }, children: "\u76EE\u6807\u6BB5\u843D\uFF1A" }),
@@ -1994,7 +2011,7 @@ var DocInspectorPanel = () => {
1994
2011
  )
1995
2012
  ] })
1996
2013
  ] }),
1997
- /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "yudao-doc-section", children: [
2014
+ features.legacyFormatIo && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "yudao-doc-section", children: [
1998
2015
  /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "yudao-doc-section-title", children: [
1999
2016
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { children: "\u90AE\u4EF6\u5408\u5E76\u4E0E\u591A\u683C\u5F0F\u517C\u5BB9 (.doc/.rtf/.odt)" }),
2000
2017
  wave2IoTip && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { style: { fontSize: 10.5, color: "#2c53f1", fontWeight: 500 }, children: wave2IoTip })
@@ -2148,7 +2165,7 @@ var DocInspectorPanel = () => {
2148
2165
  fml.id
2149
2166
  ))
2150
2167
  ] }),
2151
- /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "yudao-doc-section", children: [
2168
+ features.bookmarks && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "yudao-doc-section", children: [
2152
2169
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "yudao-doc-section-title", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { children: [
2153
2170
  "\u6587\u6863\u4E66\u7B7E\u7BA1\u7406 (",
2154
2171
  bookmarks.length,
@@ -2889,7 +2906,7 @@ var DocInspectorPanel = () => {
2889
2906
  }
2890
2907
  )
2891
2908
  ] }),
2892
- /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("label", { className: "yudao-doc-field-row", children: [
2909
+ features.cascadeRules && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("label", { className: "yudao-doc-field-row", children: [
2893
2910
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { children: "\u8054\u52A8\u6982\u5FF5\u7EC4\u6807\u8BC6 (conceptId)" }),
2894
2911
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
2895
2912
  "input",
@@ -2901,7 +2918,7 @@ var DocInspectorPanel = () => {
2901
2918
  }
2902
2919
  )
2903
2920
  ] }),
2904
- /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("label", { className: "yudao-doc-field-row", children: [
2921
+ features.controlFormExtras && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("label", { className: "yudao-doc-field-row", children: [
2905
2922
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { children: "\u586B\u5199\u8F85\u52A9\u63D0\u793A (hint)" }),
2906
2923
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
2907
2924
  "input",
@@ -3139,27 +3156,29 @@ var DocInspectorPanel = () => {
3139
3156
  ),
3140
3157
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { children: "\u8BBE\u4E3A\u8868\u5355\u5FC5\u586B\u9879\uFF08\u672A\u586B\u65F6\u6821\u9A8C\u62E6\u622A\uFF09" })
3141
3158
  ] }),
3142
- /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("label", { style: { display: "flex", alignItems: "center", gap: 6, cursor: "pointer" }, children: [
3143
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
3144
- "input",
3145
- {
3146
- type: "checkbox",
3147
- checked: Boolean(activeCtrl.pasteDisabled),
3148
- onChange: (e) => updateProps({ pasteDisabled: e.target.checked })
3149
- }
3150
- ),
3151
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { children: "\u7981\u6B62\u7C98\u8D34\u8F93\u5165 (pasteDisabled)" })
3152
- ] }),
3153
- (activeCtrl.kind === "number" || activeCtrl.kind === "text") && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("label", { style: { display: "flex", alignItems: "center", gap: 6, cursor: "pointer" }, children: [
3154
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
3155
- "input",
3156
- {
3157
- type: "checkbox",
3158
- checked: Boolean(activeCtrl.calculatorEnabled),
3159
- onChange: (e) => updateProps({ calculatorEnabled: e.target.checked })
3160
- }
3161
- ),
3162
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { children: "\u5F39\u7A97\u542F\u7528\u5185\u8054\u56DB\u5219\u8BA1\u7B97\u5668 (Calculator)" })
3159
+ features.controlFormExtras && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
3160
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("label", { style: { display: "flex", alignItems: "center", gap: 6, cursor: "pointer" }, children: [
3161
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
3162
+ "input",
3163
+ {
3164
+ type: "checkbox",
3165
+ checked: Boolean(activeCtrl.pasteDisabled),
3166
+ onChange: (e) => updateProps({ pasteDisabled: e.target.checked })
3167
+ }
3168
+ ),
3169
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { children: "\u7981\u6B62\u7C98\u8D34\u8F93\u5165 (pasteDisabled)" })
3170
+ ] }),
3171
+ (activeCtrl.kind === "number" || activeCtrl.kind === "text") && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("label", { style: { display: "flex", alignItems: "center", gap: 6, cursor: "pointer" }, children: [
3172
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
3173
+ "input",
3174
+ {
3175
+ type: "checkbox",
3176
+ checked: Boolean(activeCtrl.calculatorEnabled),
3177
+ onChange: (e) => updateProps({ calculatorEnabled: e.target.checked })
3178
+ }
3179
+ ),
3180
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { children: "\u5F39\u7A97\u542F\u7528\u5185\u8054\u56DB\u5219\u8BA1\u7B97\u5668 (Calculator)" })
3181
+ ] })
3163
3182
  ] })
3164
3183
  ] }),
3165
3184
  features.controlValidator && activeCtrl.kind !== "checkbox" && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
@@ -3235,19 +3254,19 @@ var DocInspectorPanel = () => {
3235
3254
  }
3236
3255
  )
3237
3256
  ] })
3238
- ] }),
3239
- /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("label", { className: "yudao-doc-field-row", children: [
3240
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { children: "\u7A7A\u503C\u5360\u4F4D\u63D0\u793A\u8BED" }),
3241
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
3242
- "input",
3243
- {
3244
- type: "text",
3245
- value: activeCtrl.placeholder || "",
3246
- onChange: (e) => updateProps({ placeholder: e.target.value })
3247
- }
3248
- )
3249
3257
  ] })
3250
3258
  ] }),
3259
+ activeCtrl.kind !== "checkbox" && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("label", { className: "yudao-doc-field-row", children: [
3260
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { children: "\u7A7A\u503C\u5360\u4F4D\u63D0\u793A\u8BED" }),
3261
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
3262
+ "input",
3263
+ {
3264
+ type: "text",
3265
+ value: activeCtrl.placeholder || "",
3266
+ onChange: (e) => updateProps({ placeholder: e.target.value })
3267
+ }
3268
+ )
3269
+ ] }),
3251
3270
  features.coSigningRoles && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "yudao-doc-field-row", children: [
3252
3271
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { children: "\u53EF\u586B\u5199\u89D2\u8272 (editableRoles \xB7 \u591A\u65B9\u534F\u540C\u7B7E\u7F72\u6743\u9650)" }),
3253
3272
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { style: { display: "flex", gap: 5, flexWrap: "wrap", marginTop: 2 }, children: [
@@ -3954,7 +3973,7 @@ var DocLeftSidebar = () => {
3954
3973
  }
3955
3974
  ),
3956
3975
  tab === "toc" ? /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "yudao-doc-left-body", children: [
3957
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { display: "flex", gap: 6 }, children: [
3976
+ features.tocInsert && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { display: "flex", gap: 6 }, children: [
3958
3977
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
3959
3978
  "button",
3960
3979
  {
@@ -4059,7 +4078,7 @@ var DocLeftSidebar = () => {
4059
4078
  children: pageBadgeText
4060
4079
  }
4061
4080
  ),
4062
- paraIdx >= 0 && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
4081
+ features.headingCollapse && paraIdx >= 0 && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
4063
4082
  "button",
4064
4083
  {
4065
4084
  type: "button",