superdoc 2.6.0-next.3 → 2.6.0-next.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.
@@ -984,14 +984,14 @@ img[data-v-c95b2073] {
984
984
  height: 16px;
985
985
  }
986
986
 
987
- .comment-entry[data-v-cc54b489] {
987
+ .comment-entry[data-v-e281414b] {
988
988
  box-sizing: border-box;
989
989
  border-radius: 8px;
990
990
  width: 100%;
991
991
  max-width: 100%;
992
992
  transition: all 250ms ease;
993
993
  }
994
- .superdoc-field[data-v-cc54b489] {
994
+ .superdoc-field[data-v-e281414b] {
995
995
  display: block;
996
996
  box-sizing: border-box;
997
997
  width: 100%;
@@ -1008,13 +1008,13 @@ img[data-v-c95b2073] {
1008
1008
  line-height: 1.4;
1009
1009
  overflow-y: hidden;
1010
1010
  }
1011
- .superdoc-field[data-v-cc54b489]:focus {
1011
+ .superdoc-field[data-v-e281414b]:focus {
1012
1012
  outline: none;
1013
1013
  border-color: #4f7cff;
1014
1014
  box-shadow: 0 0 0 2px rgba(79, 124, 255, 0.16);
1015
1015
  }
1016
1016
 
1017
- .comments-dialog[data-v-fd214e1f] {
1017
+ .comments-dialog[data-v-969c9a8f] {
1018
1018
  display: flex;
1019
1019
  flex-direction: column;
1020
1020
  padding: var(--sd-ui-comments-card-padding, 16px);
@@ -1033,73 +1033,73 @@ img[data-v-c95b2073] {
1033
1033
  overflow-wrap: break-word;
1034
1034
  word-break: break-word;
1035
1035
  }
1036
- .comments-dialog[data-v-fd214e1f]:not(.is-active) {
1036
+ .comments-dialog[data-v-969c9a8f]:not(.is-active) {
1037
1037
  cursor: pointer;
1038
1038
  }
1039
- .comments-dialog[data-v-fd214e1f]:not(.is-active):not(.is-resolved):hover {
1039
+ .comments-dialog[data-v-969c9a8f]:not(.is-active):not(.is-resolved):hover {
1040
1040
  background-color: var(--sd-ui-comments-card-hover-bg, #f3f6fd);
1041
1041
  }
1042
- .comments-dialog[data-v-fd214e1f]:not(.is-resolved):hover .overflow-menu {
1042
+ .comments-dialog[data-v-969c9a8f]:not(.is-resolved):hover .overflow-menu {
1043
1043
  opacity: 1;
1044
1044
  pointer-events: auto;
1045
1045
  }
1046
- .comments-dialog.is-active[data-v-fd214e1f] {
1046
+ .comments-dialog.is-active[data-v-969c9a8f] {
1047
1047
  background-color: var(--sd-ui-comments-card-active-bg, #ffffff);
1048
1048
  border-color: var(--sd-ui-comments-card-active-border, #e0e0e0);
1049
1049
  box-shadow: var(--sd-ui-comments-card-shadow, 0px 4px 12px 0px rgba(50, 50, 50, 0.15));
1050
1050
  z-index: 10;
1051
1051
  }
1052
- .comments-dialog.is-resolved[data-v-fd214e1f] {
1052
+ .comments-dialog.is-resolved[data-v-969c9a8f] {
1053
1053
  background-color: var(--sd-ui-comments-card-resolved-bg, #f0f0f0);
1054
1054
  }
1055
- .comment-separator[data-v-fd214e1f] {
1055
+ .comment-separator[data-v-969c9a8f] {
1056
1056
  background-color: var(--sd-ui-comments-separator, #e0e0e0);
1057
1057
  height: 1px;
1058
1058
  width: 100%;
1059
1059
  margin: 10px 0;
1060
1060
  }
1061
- .comment[data-v-fd214e1f] {
1061
+ .comment[data-v-969c9a8f] {
1062
1062
  font-size: var(--sd-ui-comments-body-size, 14px);
1063
1063
  line-height: 1.5;
1064
1064
  color: var(--sd-ui-comments-body-text, #212121);
1065
1065
  margin: 4px 0 0 0;
1066
1066
  }
1067
- .comment[data-v-fd214e1f] p {
1067
+ .comment[data-v-969c9a8f] p {
1068
1068
  margin: 0;
1069
1069
  }
1070
- .tracked-change[data-v-fd214e1f] {
1070
+ .tracked-change[data-v-969c9a8f] {
1071
1071
  font-size: var(--sd-ui-comments-body-size, 14px);
1072
1072
  line-height: 1.5;
1073
1073
  color: var(--sd-ui-comments-body-text, #212121);
1074
1074
  margin: 4px 0 0 0;
1075
1075
  }
1076
- .change-type[data-v-fd214e1f] {
1076
+ .change-type[data-v-969c9a8f] {
1077
1077
  color: var(--sd-ui-comments-body-text, #212121);
1078
1078
  }
1079
- .tracked-change-text[data-v-fd214e1f] {
1079
+ .tracked-change-text[data-v-969c9a8f] {
1080
1080
  color: var(--sd-ui-comments-body-text, #212121);
1081
1081
  }
1082
- .tracked-change-text.is-deleted[data-v-fd214e1f] {
1082
+ .tracked-change-text.is-deleted[data-v-969c9a8f] {
1083
1083
  color: var(--sd-ui-comments-delete-text, #cb0e47);
1084
1084
  }
1085
- .tracked-change-text.is-inserted[data-v-fd214e1f] {
1085
+ .tracked-change-text.is-inserted[data-v-969c9a8f] {
1086
1086
  color: var(--sd-ui-comments-insert-text, #1f6feb);
1087
1087
  font-weight: 500;
1088
1088
  }
1089
- .tracked-change[data-track-change-semantic-color-key='move-from'] .tracked-change-text.is-deleted[data-v-fd214e1f] {
1089
+ .tracked-change[data-track-change-semantic-color-key='move-from'] .tracked-change-text.is-deleted[data-v-969c9a8f] {
1090
1090
  color: var(--sd-ui-comments-move-from-text, #00853d);
1091
1091
  }
1092
- .tracked-change[data-track-change-semantic-color-key='move-to'] .tracked-change-text.is-inserted[data-v-fd214e1f] {
1092
+ .tracked-change[data-track-change-semantic-color-key='move-to'] .tracked-change-text.is-inserted[data-v-969c9a8f] {
1093
1093
  color: var(--sd-ui-comments-move-to-text, #00853d);
1094
1094
  }
1095
- .tracked-change-detail-lines[data-v-fd214e1f] {
1095
+ .tracked-change-detail-lines[data-v-969c9a8f] {
1096
1096
  margin-top: 4px;
1097
1097
  }
1098
- .tracked-change-detail-line[data-v-fd214e1f] {
1098
+ .tracked-change-detail-line[data-v-969c9a8f] {
1099
1099
  font-size: 12px;
1100
1100
  line-height: 1.4;
1101
1101
  }
1102
- .tracked-change-image-preview[data-v-fd214e1f] {
1102
+ .tracked-change-image-preview[data-v-969c9a8f] {
1103
1103
  display: inline-flex;
1104
1104
  align-items: center;
1105
1105
  justify-content: center;
@@ -1110,7 +1110,7 @@ img[data-v-c95b2073] {
1110
1110
  max-width: 96px;
1111
1111
  max-height: 96px;
1112
1112
  }
1113
- .tracked-change-image-preview__image[data-v-fd214e1f] {
1113
+ .tracked-change-image-preview__image[data-v-969c9a8f] {
1114
1114
  display: block;
1115
1115
  width: auto;
1116
1116
  height: auto;
@@ -1120,7 +1120,7 @@ img[data-v-c95b2073] {
1120
1120
  }
1121
1121
 
1122
1122
  /* ── Failed tracked-change decision alert (SD-3772 §6) ── */
1123
- .tracked-change-decision-alert[data-v-fd214e1f] {
1123
+ .tracked-change-decision-alert[data-v-969c9a8f] {
1124
1124
  display: flex;
1125
1125
  align-items: center;
1126
1126
  justify-content: space-between;
@@ -1134,12 +1134,12 @@ img[data-v-c95b2073] {
1134
1134
  font-size: var(--sd-ui-comments-body-size, 14px);
1135
1135
  line-height: 1.4;
1136
1136
  }
1137
- .tracked-change-decision-alert__retry[data-v-fd214e1f] {
1137
+ .tracked-change-decision-alert__retry[data-v-969c9a8f] {
1138
1138
  flex-shrink: 0;
1139
1139
  }
1140
1140
 
1141
1141
  /* ── Resolved badge ── */
1142
- .resolved-badge[data-v-fd214e1f] {
1142
+ .resolved-badge[data-v-969c9a8f] {
1143
1143
  display: inline-flex;
1144
1144
  align-items: center;
1145
1145
  gap: 4px;
@@ -1148,33 +1148,33 @@ img[data-v-c95b2073] {
1148
1148
  color: var(--sd-ui-comments-resolved-text, #00853d);
1149
1149
  margin-bottom: 4px;
1150
1150
  }
1151
- .resolved-badge__icon[data-v-fd214e1f] {
1151
+ .resolved-badge__icon[data-v-969c9a8f] {
1152
1152
  display: inline-flex;
1153
1153
  width: 12px;
1154
1154
  height: 12px;
1155
1155
  }
1156
- .resolved-badge__icon[data-v-fd214e1f] svg {
1156
+ .resolved-badge__icon[data-v-969c9a8f] svg {
1157
1157
  width: 100%;
1158
1158
  height: 100%;
1159
1159
  fill: currentColor;
1160
1160
  }
1161
1161
 
1162
1162
  /* ── Text truncation ── */
1163
- .comment.is-truncated[data-v-fd214e1f],
1164
- .tracked-change.is-truncated[data-v-fd214e1f] {
1163
+ .comment.is-truncated[data-v-969c9a8f],
1164
+ .tracked-change.is-truncated[data-v-969c9a8f] {
1165
1165
  display: -webkit-box;
1166
1166
  -webkit-line-clamp: 3;
1167
1167
  -webkit-box-orient: vertical;
1168
1168
  max-height: 4.5em;
1169
1169
  overflow: hidden;
1170
1170
  }
1171
- .comment.is-scrollable[data-v-fd214e1f],
1172
- .tracked-change.is-scrollable[data-v-fd214e1f] {
1171
+ .comment.is-scrollable[data-v-969c9a8f],
1172
+ .tracked-change.is-scrollable[data-v-969c9a8f] {
1173
1173
  max-height: 220px;
1174
1174
  overflow-y: auto;
1175
1175
  padding-right: 4px;
1176
1176
  }
1177
- .show-more-toggle[data-v-fd214e1f] {
1177
+ .show-more-toggle[data-v-969c9a8f] {
1178
1178
  font-size: 12px;
1179
1179
  color: var(--sd-ui-action, #1355ff);
1180
1180
  cursor: pointer;
@@ -1182,12 +1182,12 @@ img[data-v-c95b2073] {
1182
1182
  margin-top: 4px;
1183
1183
  user-select: none;
1184
1184
  }
1185
- .show-more-toggle[data-v-fd214e1f]:hover {
1185
+ .show-more-toggle[data-v-969c9a8f]:hover {
1186
1186
  text-decoration: underline;
1187
1187
  }
1188
1188
 
1189
1189
  /* ── Thread collapse ── */
1190
- .collapsed-replies[data-v-fd214e1f] {
1190
+ .collapsed-replies[data-v-969c9a8f] {
1191
1191
  display: flex;
1192
1192
  align-items: center;
1193
1193
  gap: 6px;
@@ -1198,24 +1198,24 @@ img[data-v-c95b2073] {
1198
1198
  cursor: pointer;
1199
1199
  user-select: none;
1200
1200
  }
1201
- .collapsed-replies[data-v-fd214e1f]:hover {
1201
+ .collapsed-replies[data-v-969c9a8f]:hover {
1202
1202
  text-decoration: underline;
1203
1203
  }
1204
- .collapsed-avatars[data-v-fd214e1f] {
1204
+ .collapsed-avatars[data-v-969c9a8f] {
1205
1205
  display: flex;
1206
1206
  }
1207
- .collapsed-avatars .mini-avatar[data-v-fd214e1f] {
1207
+ .collapsed-avatars .mini-avatar[data-v-969c9a8f] {
1208
1208
  --sd-comment-avatar-size: 20px;
1209
1209
  --sd-comment-avatar-font-size: 8px;
1210
1210
  margin-left: -4px;
1211
1211
  border: 2px solid var(--sd-ui-comments-card-active-bg, #ffffff);
1212
1212
  }
1213
- .collapsed-avatars .mini-avatar[data-v-fd214e1f]:first-child {
1213
+ .collapsed-avatars .mini-avatar[data-v-969c9a8f]:first-child {
1214
1214
  margin-left: 0;
1215
1215
  }
1216
1216
 
1217
1217
  /* ── New comment input ── */
1218
- .new-comment-input-wrapper[data-v-fd214e1f] {
1218
+ .new-comment-input-wrapper[data-v-969c9a8f] {
1219
1219
  border: 1.5px solid var(--sd-ui-comments-input-border, #dbdbdb);
1220
1220
  border-radius: 12px;
1221
1221
  padding: 8.5px 10.5px;
@@ -1224,17 +1224,17 @@ img[data-v-c95b2073] {
1224
1224
  max-height: 150px;
1225
1225
  overflow-y: auto;
1226
1226
  }
1227
- .new-comment-input-wrapper[data-v-fd214e1f]:focus-within {
1227
+ .new-comment-input-wrapper[data-v-969c9a8f]:focus-within {
1228
1228
  border-color: var(--sd-ui-comments-input-focus-border, #4f7cff);
1229
1229
  box-shadow: 0 0 0 2px rgba(79, 124, 255, 0.16);
1230
1230
  }
1231
- .new-comment-input-wrapper[data-v-fd214e1f] .comment-entry {
1231
+ .new-comment-input-wrapper[data-v-969c9a8f] .comment-entry {
1232
1232
  border-radius: 0;
1233
1233
  }
1234
- .new-comment-input-wrapper[data-v-fd214e1f] .input-section {
1234
+ .new-comment-input-wrapper[data-v-969c9a8f] .input-section {
1235
1235
  margin: 0;
1236
1236
  }
1237
- .new-comment-input-wrapper[data-v-fd214e1f] .superdoc-field {
1237
+ .new-comment-input-wrapper[data-v-969c9a8f] .superdoc-field {
1238
1238
  font-size: 14px;
1239
1239
  line-height: 20px;
1240
1240
  border: none;
@@ -1245,18 +1245,18 @@ img[data-v-c95b2073] {
1245
1245
  max-height: 132px;
1246
1246
  resize: none;
1247
1247
  }
1248
- .new-comment-input-wrapper[data-v-fd214e1f] .superdoc-field:focus,
1249
- .new-comment-input-wrapper[data-v-fd214e1f] .superdoc-field:active {
1248
+ .new-comment-input-wrapper[data-v-969c9a8f] .superdoc-field:focus,
1249
+ .new-comment-input-wrapper[data-v-969c9a8f] .superdoc-field:active {
1250
1250
  border: none;
1251
1251
  box-shadow: none;
1252
1252
  outline: none;
1253
1253
  }
1254
- .new-comment-input-wrapper[data-v-fd214e1f] .sd-editor-placeholder::before {
1254
+ .new-comment-input-wrapper[data-v-969c9a8f] .sd-editor-placeholder::before {
1255
1255
  content: 'Comment or add others with @';
1256
1256
  }
1257
1257
 
1258
1258
  /* ── Reply pill & expanded input ── */
1259
- .reply-pill[data-v-fd214e1f] {
1259
+ .reply-pill[data-v-969c9a8f] {
1260
1260
  width: 100%;
1261
1261
  padding: 8.5px 10.5px;
1262
1262
  border: 1.5px solid transparent;
@@ -1270,16 +1270,16 @@ img[data-v-c95b2073] {
1270
1270
  cursor: text;
1271
1271
  transition: background 150ms ease;
1272
1272
  }
1273
- .reply-pill[data-v-fd214e1f]:hover {
1273
+ .reply-pill[data-v-969c9a8f]:hover {
1274
1274
  background: var(--sd-color-gray-200, #f2f2f2);
1275
1275
  }
1276
- .reply-pill[data-v-fd214e1f]:disabled {
1276
+ .reply-pill[data-v-969c9a8f]:disabled {
1277
1277
  cursor: not-allowed;
1278
1278
  }
1279
- .reply-expanded[data-v-fd214e1f] {
1279
+ .reply-expanded[data-v-969c9a8f] {
1280
1280
  margin-top: 10px;
1281
1281
  }
1282
- .reply-input-wrapper[data-v-fd214e1f] {
1282
+ .reply-input-wrapper[data-v-969c9a8f] {
1283
1283
  border: 1.5px solid var(--sd-ui-comments-input-border, #dbdbdb);
1284
1284
  border-radius: 12px;
1285
1285
  padding: 8.5px 10.5px;
@@ -1287,17 +1287,17 @@ img[data-v-c95b2073] {
1287
1287
  max-height: 150px;
1288
1288
  overflow-y: auto;
1289
1289
  }
1290
- .reply-input-wrapper[data-v-fd214e1f]:focus-within {
1290
+ .reply-input-wrapper[data-v-969c9a8f]:focus-within {
1291
1291
  border-color: var(--sd-ui-comments-input-focus-border, #4f7cff);
1292
1292
  box-shadow: 0 0 0 2px rgba(79, 124, 255, 0.16);
1293
1293
  }
1294
- .reply-input-wrapper[data-v-fd214e1f] .comment-entry {
1294
+ .reply-input-wrapper[data-v-969c9a8f] .comment-entry {
1295
1295
  border-radius: 0;
1296
1296
  }
1297
- .reply-input-wrapper[data-v-fd214e1f] .input-section {
1297
+ .reply-input-wrapper[data-v-969c9a8f] .input-section {
1298
1298
  margin: 0;
1299
1299
  }
1300
- .reply-input-wrapper[data-v-fd214e1f] .superdoc-field {
1300
+ .reply-input-wrapper[data-v-969c9a8f] .superdoc-field {
1301
1301
  font-size: 14px;
1302
1302
  line-height: 20px;
1303
1303
  border: none;
@@ -1308,23 +1308,23 @@ img[data-v-c95b2073] {
1308
1308
  max-height: 132px;
1309
1309
  resize: none;
1310
1310
  }
1311
- .reply-input-wrapper[data-v-fd214e1f] .superdoc-field:focus,
1312
- .reply-input-wrapper[data-v-fd214e1f] .superdoc-field:active {
1311
+ .reply-input-wrapper[data-v-969c9a8f] .superdoc-field:focus,
1312
+ .reply-input-wrapper[data-v-969c9a8f] .superdoc-field:active {
1313
1313
  border: none;
1314
1314
  box-shadow: none;
1315
1315
  outline: none;
1316
1316
  }
1317
- .reply-input-wrapper[data-v-fd214e1f] .sd-editor-placeholder::before {
1317
+ .reply-input-wrapper[data-v-969c9a8f] .sd-editor-placeholder::before {
1318
1318
  content: 'Reply or add others with @';
1319
1319
  }
1320
- .reply-actions[data-v-fd214e1f] {
1320
+ .reply-actions[data-v-969c9a8f] {
1321
1321
  display: flex;
1322
1322
  justify-content: flex-end;
1323
1323
  align-items: center;
1324
1324
  gap: 16px;
1325
1325
  margin-top: 8px;
1326
1326
  }
1327
- .reply-btn-cancel[data-v-fd214e1f] {
1327
+ .reply-btn-cancel[data-v-969c9a8f] {
1328
1328
  background: none;
1329
1329
  border: none;
1330
1330
  font-size: 13px;
@@ -1335,10 +1335,10 @@ img[data-v-c95b2073] {
1335
1335
  font-family: inherit;
1336
1336
  transition: color 150ms;
1337
1337
  }
1338
- .reply-btn-cancel[data-v-fd214e1f]:hover {
1338
+ .reply-btn-cancel[data-v-969c9a8f]:hover {
1339
1339
  color: var(--sd-ui-text, #212121);
1340
1340
  }
1341
- .reply-btn-primary[data-v-fd214e1f] {
1341
+ .reply-btn-primary[data-v-969c9a8f] {
1342
1342
  background: var(--sd-ui-action, #1355ff);
1343
1343
  border: none;
1344
1344
  font-size: 13px;
@@ -1350,19 +1350,19 @@ img[data-v-c95b2073] {
1350
1350
  font-family: inherit;
1351
1351
  transition: background 150ms;
1352
1352
  }
1353
- .reply-btn-primary[data-v-fd214e1f]:hover {
1353
+ .reply-btn-primary[data-v-969c9a8f]:hover {
1354
1354
  background: var(--sd-ui-action-hover, #0f44cc);
1355
1355
  }
1356
- .reply-btn-primary.sd-is-disabled[data-v-fd214e1f] {
1356
+ .reply-btn-primary.sd-is-disabled[data-v-969c9a8f] {
1357
1357
  background: var(--sd-color-gray-400, #dbdbdb);
1358
1358
  color: var(--sd-color-gray-600, #888888);
1359
1359
  cursor: default;
1360
1360
  pointer-events: none;
1361
1361
  }
1362
- .existing-internal-input[data-v-fd214e1f] {
1362
+ .existing-internal-input[data-v-969c9a8f] {
1363
1363
  margin-bottom: 10px;
1364
1364
  }
1365
- .sd-internal-dropdown[data-v-fd214e1f] {
1365
+ .sd-internal-dropdown[data-v-969c9a8f] {
1366
1366
  display: inline-block;
1367
1367
  }
1368
1368
 
@@ -21,7 +21,7 @@ declare const _default: import('vue').DefineComponent<{}, {
21
21
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
22
22
  commentDialogElement: HTMLDivElement;
23
23
  commentInput: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
24
- focus: () => void;
24
+ focus: (options: any) => void;
25
25
  $emit: (event: "focus", ...args: any[]) => void;
26
26
  config: Record<string, any>;
27
27
  users: unknown[];
@@ -45,7 +45,7 @@ declare const _default: import('vue').DefineComponent<{}, {
45
45
  M: {};
46
46
  Defaults: {};
47
47
  }, Readonly<{}> & Readonly<{}>, {
48
- focus: () => void;
48
+ focus: (options: any) => void;
49
49
  $emit: (event: "focus", ...args: any[]) => void;
50
50
  config: Record<string, any>;
51
51
  users: unknown[];
@@ -1,5 +1,5 @@
1
1
  declare const _default: import('vue').DefineComponent<{}, {
2
- focus: () => void;
2
+ focus: (options: any) => void;
3
3
  $emit: (event: "focus", ...args: any[]) => void;
4
4
  config: Record<string, any>;
5
5
  users: unknown[];
package/dist/superdoc.cjs CHANGED
@@ -12042,8 +12042,8 @@ var _sfc_main$34 = {
12042
12042
  const { currentCommentText } = storeToRefs(useCommentsStore());
12043
12043
  const inputRef = (0, vue.ref)(null);
12044
12044
  const handleFocusChange = (focused) => emit("focus", focused);
12045
- const focus = () => {
12046
- inputRef.value?.focus?.();
12045
+ const focus = (options) => {
12046
+ inputRef.value?.focus?.(options);
12047
12047
  };
12048
12048
  const syncInputHeight = () => {
12049
12049
  const input = inputRef.value;
@@ -12100,7 +12100,7 @@ var _sfc_main$34 = {
12100
12100
  };
12101
12101
  }
12102
12102
  };
12103
- var CommentInput_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_vue_export_helper_default(_sfc_main$34, [["__scopeId", "data-v-cc54b489"]]);
12103
+ var CommentInput_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_vue_export_helper_default(_sfc_main$34, [["__scopeId", "data-v-e281414b"]]);
12104
12104
  //#endregion
12105
12105
  //#region src/components/CommentsLayer/CommentDialog.vue
12106
12106
  var _hoisted_1$26 = [
@@ -13023,7 +13023,7 @@ var _sfc_main$33 = {
13023
13023
  (0, vue.onMounted)(() => {
13024
13024
  if (props.autoFocus) (0, vue.nextTick)(() => setFocus());
13025
13025
  if (isPendingNewComment.value) (0, vue.nextTick)(() => {
13026
- commentInput.value?.focus?.();
13026
+ commentInput.value?.focus?.({ preventScroll: true });
13027
13027
  });
13028
13028
  (0, vue.nextTick)(() => {
13029
13029
  const commentId = props.floatingInstanceId ?? (props.comment.importedId !== void 0 ? props.comment.importedId : props.comment.commentId);
@@ -13037,7 +13037,7 @@ var _sfc_main$33 = {
13037
13037
  (0, vue.watch)(showInputSection, (isVisible) => {
13038
13038
  if (!isVisible) return;
13039
13039
  (0, vue.nextTick)(() => {
13040
- commentInput.value?.focus?.();
13040
+ commentInput.value?.focus?.(isPendingNewComment.value ? { preventScroll: true } : void 0);
13041
13041
  });
13042
13042
  }, { immediate: true });
13043
13043
  (0, vue.watch)(editingCommentId, (commentId) => {
@@ -13285,7 +13285,7 @@ var _sfc_main$33 = {
13285
13285
  };
13286
13286
  }
13287
13287
  };
13288
- var CommentDialog_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_vue_export_helper_default(_sfc_main$33, [["__scopeId", "data-v-fd214e1f"]]);
13288
+ var CommentDialog_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_vue_export_helper_default(_sfc_main$33, [["__scopeId", "data-v-969c9a8f"]]);
13289
13289
  //#endregion
13290
13290
  //#region src/components/CommentsLayer/commentsList/ReviewDirectoryListItem.vue
13291
13291
  var _hoisted_1$25 = [
@@ -43283,7 +43283,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
43283
43283
  this.config.colors = shuffleArray(this.config.colors);
43284
43284
  this.userColorMap = /* @__PURE__ */ new Map();
43285
43285
  this.colorIndex = 0;
43286
- this.version = "2.6.0-next.3";
43286
+ this.version = "2.6.0-next.4";
43287
43287
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
43288
43288
  this.superdocId = config.superdocId || require_uuid.v4();
43289
43289
  this.colors = this.config.colors ?? [];
@@ -12037,8 +12037,8 @@ var CommentInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
12037
12037
  const { currentCommentText } = storeToRefs(useCommentsStore());
12038
12038
  const inputRef = ref(null);
12039
12039
  const handleFocusChange = (focused) => emit("focus", focused);
12040
- const focus = () => {
12041
- inputRef.value?.focus?.();
12040
+ const focus = (options) => {
12041
+ inputRef.value?.focus?.(options);
12042
12042
  };
12043
12043
  const syncInputHeight = () => {
12044
12044
  const input = inputRef.value;
@@ -12094,7 +12094,7 @@ var CommentInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
12094
12094
  }, null, 544), [[vModelText, commentDraft.value]])], 2)]);
12095
12095
  };
12096
12096
  }
12097
- }, [["__scopeId", "data-v-cc54b489"]]);
12097
+ }, [["__scopeId", "data-v-e281414b"]]);
12098
12098
  //#endregion
12099
12099
  //#region src/components/CommentsLayer/CommentDialog.vue
12100
12100
  var _hoisted_1$26 = [
@@ -13017,7 +13017,7 @@ var CommentDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
13017
13017
  onMounted(() => {
13018
13018
  if (props.autoFocus) nextTick(() => setFocus());
13019
13019
  if (isPendingNewComment.value) nextTick(() => {
13020
- commentInput.value?.focus?.();
13020
+ commentInput.value?.focus?.({ preventScroll: true });
13021
13021
  });
13022
13022
  nextTick(() => {
13023
13023
  const commentId = props.floatingInstanceId ?? (props.comment.importedId !== void 0 ? props.comment.importedId : props.comment.commentId);
@@ -13031,7 +13031,7 @@ var CommentDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
13031
13031
  watch(showInputSection, (isVisible) => {
13032
13032
  if (!isVisible) return;
13033
13033
  nextTick(() => {
13034
- commentInput.value?.focus?.();
13034
+ commentInput.value?.focus?.(isPendingNewComment.value ? { preventScroll: true } : void 0);
13035
13035
  });
13036
13036
  }, { immediate: true });
13037
13037
  watch(editingCommentId, (commentId) => {
@@ -13278,7 +13278,7 @@ var CommentDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
13278
13278
  ], 64))], 14, _hoisted_1$26)), [[_directive_click_outside, handleClickOutside]]);
13279
13279
  };
13280
13280
  }
13281
- }, [["__scopeId", "data-v-fd214e1f"]]);
13281
+ }, [["__scopeId", "data-v-969c9a8f"]]);
13282
13282
  //#endregion
13283
13283
  //#region src/components/CommentsLayer/commentsList/ReviewDirectoryListItem.vue
13284
13284
  var _hoisted_1$25 = [
@@ -43216,7 +43216,7 @@ var SuperDoc = class extends import_eventemitter3.default {
43216
43216
  this.config.colors = shuffleArray(this.config.colors);
43217
43217
  this.userColorMap = /* @__PURE__ */ new Map();
43218
43218
  this.colorIndex = 0;
43219
- this.version = "2.6.0-next.3";
43219
+ this.version = "2.6.0-next.4";
43220
43220
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
43221
43221
  this.superdocId = config.superdocId || v4();
43222
43222
  this.colors = this.config.colors ?? [];