@yudaocode/univer-boards-ui 1.6.218 → 1.6.219

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/index.css CHANGED
@@ -56,34 +56,41 @@
56
56
  /* Top Collaboration & Presentation Bar */
57
57
  .yudao-boards-top-bar {
58
58
  position: absolute;
59
- top: 12px;
59
+ top: 10px;
60
60
  left: 50%;
61
61
  transform: translateX(-50%);
62
62
  z-index: 30;
63
63
  display: flex;
64
64
  align-items: center;
65
- gap: 12px;
66
- padding: 6px 12px;
67
- background: rgba(255, 255, 255, 0.94);
65
+ gap: 8px;
66
+ padding: 5px 10px;
67
+ max-width: calc(100% - 24px);
68
+ white-space: nowrap;
69
+ background: rgba(255, 255, 255, 0.95);
68
70
  backdrop-filter: blur(8px);
69
71
  border: 1px solid #e2e8f0;
70
- border-radius: 12px;
72
+ border-radius: 11px;
71
73
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
72
- font-size: 12px;
74
+ font-size: 11.5px;
73
75
  color: #1e293b;
74
76
  }
75
77
 
76
78
  .yudao-boards-tour-group,
79
+ .yudao-boards-workshop-group,
80
+ .yudao-boards-presence-group,
77
81
  .yudao-boards-timer-group,
78
82
  .yudao-boards-export-group {
79
83
  display: flex;
80
84
  align-items: center;
81
- gap: 5px;
85
+ gap: 4px;
86
+ flex-shrink: 0;
82
87
  }
83
88
 
89
+ .yudao-boards-workshop-group,
90
+ .yudao-boards-presence-group,
84
91
  .yudao-boards-timer-group,
85
92
  .yudao-boards-export-group {
86
- padding-left: 10px;
93
+ padding-left: 8px;
87
94
  border-left: 1px solid #e2e8f0;
88
95
  }
89
96
 
@@ -93,13 +100,15 @@
93
100
  display: inline-flex;
94
101
  align-items: center;
95
102
  gap: 4px;
96
- padding: 4px 8px;
103
+ padding: 3px 7px;
97
104
  border: 1px solid #e2e8f0;
98
- border-radius: 7px;
105
+ border-radius: 6px;
99
106
  background: #ffffff;
100
107
  color: #334155;
101
- font-size: 11.5px;
108
+ font-size: 11px;
102
109
  font-weight: 500;
110
+ white-space: nowrap;
111
+ flex-shrink: 0;
103
112
  cursor: pointer;
104
113
  transition: all 0.14s ease;
105
114
  }
@@ -1042,3 +1051,415 @@
1042
1051
  font-size: 12px;
1043
1052
  cursor: pointer;
1044
1053
  }
1054
+
1055
+ /* Private Brainstorming Privacy Mask, Presence Pills, Voting Leaderboard & Document Tiler */
1056
+ .yudao-boards-top-bar {
1057
+ overflow-x: auto;
1058
+ scrollbar-width: none;
1059
+ }
1060
+
1061
+ .yudao-boards-top-bar::-webkit-scrollbar {
1062
+ display: none;
1063
+ }
1064
+
1065
+ .yudao-boards-collab-pill {
1066
+ display: inline-flex;
1067
+ align-items: center;
1068
+ gap: 4px;
1069
+ padding: 2px 7px 2px 3px;
1070
+ border: 1px solid #cbd5e1;
1071
+ border-radius: 999px;
1072
+ background: #ffffff;
1073
+ color: #1e293b;
1074
+ font-size: 11px;
1075
+ font-weight: 500;
1076
+ white-space: nowrap;
1077
+ flex-shrink: 0;
1078
+ cursor: pointer;
1079
+ transition: all 0.14s ease;
1080
+ }
1081
+
1082
+ .yudao-boards-collab-pill:hover,
1083
+ .yudao-boards-collab-pill.is-following {
1084
+ background: #eff6ff;
1085
+ border-color: #2563eb;
1086
+ color: #1d4ed8;
1087
+ }
1088
+
1089
+ .yudao-boards-collab-avatar {
1090
+ width: 17px;
1091
+ height: 17px;
1092
+ border-radius: 50%;
1093
+ color: #ffffff;
1094
+ font-size: 10px;
1095
+ font-weight: 700;
1096
+ display: inline-flex;
1097
+ align-items: center;
1098
+ justify-content: center;
1099
+ }
1100
+
1101
+ .yudao-boards-collab-follow-tag {
1102
+ font-size: 10px;
1103
+ opacity: 0.85;
1104
+ }
1105
+
1106
+ .yudao-boards-sticky-card.is-masked {
1107
+ position: relative;
1108
+ overflow: hidden;
1109
+ }
1110
+
1111
+ .yudao-boards-sticky-privacy-mask {
1112
+ width: 100%;
1113
+ height: 100%;
1114
+ display: flex;
1115
+ flex-direction: column;
1116
+ align-items: center;
1117
+ justify-content: center;
1118
+ gap: 12px;
1119
+ border-radius: 6px;
1120
+ background: rgba(255, 255, 255, 0.52);
1121
+ backdrop-filter: blur(8px);
1122
+ padding: 8px;
1123
+ box-sizing: border-box;
1124
+ }
1125
+
1126
+ .yudao-boards-sticky-blur-bars {
1127
+ width: 84%;
1128
+ display: flex;
1129
+ flex-direction: column;
1130
+ gap: 6px;
1131
+ }
1132
+
1133
+ .yudao-boards-sticky-blur-bars span {
1134
+ display: block;
1135
+ height: 8px;
1136
+ border-radius: 4px;
1137
+ background: rgba(15, 23, 42, 0.14);
1138
+ filter: blur(1.5px);
1139
+ }
1140
+
1141
+ .yudao-boards-sticky-blur-bars span:last-child {
1142
+ width: 62%;
1143
+ }
1144
+
1145
+ .yudao-boards-sticky-mask-badge {
1146
+ display: inline-flex;
1147
+ align-items: center;
1148
+ gap: 5px;
1149
+ padding: 4px 9px;
1150
+ border-radius: 999px;
1151
+ background: rgba(15, 23, 42, 0.78);
1152
+ color: #ffffff;
1153
+ font-size: 11px;
1154
+ font-weight: 600;
1155
+ white-space: nowrap;
1156
+ }
1157
+
1158
+ .yudao-boards-remote-cursor {
1159
+ position: absolute;
1160
+ z-index: 15;
1161
+ pointer-events: none;
1162
+ display: inline-flex;
1163
+ align-items: flex-start;
1164
+ gap: 3px;
1165
+ }
1166
+
1167
+ .yudao-boards-remote-cursor-tag {
1168
+ padding: 1px 6px;
1169
+ border-radius: 4px;
1170
+ color: #ffffff;
1171
+ font-size: 10.5px;
1172
+ font-weight: 600;
1173
+ white-space: nowrap;
1174
+ box-shadow: 0 2px 6px rgba(15, 23, 42, 0.16);
1175
+ }
1176
+
1177
+ .yudao-boards-voting-dialog {
1178
+ width: min(860px, 94vw);
1179
+ max-height: min(680px, 88vh);
1180
+ background: #ffffff;
1181
+ border-radius: 14px;
1182
+ box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
1183
+ display: flex;
1184
+ flex-direction: column;
1185
+ overflow: hidden;
1186
+ }
1187
+
1188
+ .yudao-boards-voting-config-bar {
1189
+ padding: 12px 18px;
1190
+ background: #f8fafc;
1191
+ border-bottom: 1px solid #e2e8f0;
1192
+ }
1193
+
1194
+ .yudao-boards-voting-setup-row {
1195
+ display: flex;
1196
+ align-items: flex-end;
1197
+ flex-wrap: wrap;
1198
+ gap: 12px;
1199
+ }
1200
+
1201
+ .yudao-boards-voting-field {
1202
+ display: flex;
1203
+ flex-direction: column;
1204
+ gap: 5px;
1205
+ font-size: 11.5px;
1206
+ font-weight: 600;
1207
+ color: #475569;
1208
+ }
1209
+
1210
+ .yudao-boards-voting-field input,
1211
+ .yudao-boards-voting-field select {
1212
+ padding: 6px 9px;
1213
+ border: 1px solid #cbd5e1;
1214
+ border-radius: 7px;
1215
+ font-size: 12px;
1216
+ background: #ffffff;
1217
+ color: #0f172a;
1218
+ }
1219
+
1220
+ .yudao-boards-quota-pills {
1221
+ display: flex;
1222
+ gap: 5px;
1223
+ }
1224
+
1225
+ .yudao-boards-preset-pill.is-selected {
1226
+ background: #2563eb;
1227
+ border-color: #2563eb;
1228
+ color: #ffffff;
1229
+ font-weight: 600;
1230
+ }
1231
+
1232
+ .yudao-boards-voting-active-banner {
1233
+ display: flex;
1234
+ align-items: center;
1235
+ justify-content: space-between;
1236
+ gap: 12px;
1237
+ padding: 8px 12px;
1238
+ border-radius: 9px;
1239
+ background: #eff6ff;
1240
+ border: 1px solid #93c5fd;
1241
+ }
1242
+
1243
+ .yudao-boards-voting-active-info {
1244
+ display: flex;
1245
+ align-items: center;
1246
+ flex-wrap: wrap;
1247
+ gap: 8px;
1248
+ font-size: 12.5px;
1249
+ color: #1e3a8a;
1250
+ }
1251
+
1252
+ .yudao-boards-quota-badge {
1253
+ padding: 2px 9px;
1254
+ border-radius: 999px;
1255
+ background: #2563eb;
1256
+ color: #ffffff;
1257
+ font-size: 11.5px;
1258
+ font-weight: 700;
1259
+ }
1260
+
1261
+ .yudao-boards-voting-leaderboard {
1262
+ flex: 1;
1263
+ display: flex;
1264
+ flex-direction: column;
1265
+ min-height: 0;
1266
+ overflow-y: auto;
1267
+ }
1268
+
1269
+ .yudao-boards-rank-list {
1270
+ padding: 12px 18px 18px;
1271
+ display: flex;
1272
+ flex-direction: column;
1273
+ gap: 8px;
1274
+ }
1275
+
1276
+ .yudao-boards-rank-row {
1277
+ display: flex;
1278
+ align-items: center;
1279
+ gap: 10px;
1280
+ padding: 10px 12px;
1281
+ border: 1px solid #e2e8f0;
1282
+ border-radius: 10px;
1283
+ background: #ffffff;
1284
+ }
1285
+
1286
+ .yudao-boards-rank-row.is-top-rank {
1287
+ border-color: #bfdbfe;
1288
+ background: #f8fbff;
1289
+ }
1290
+
1291
+ .yudao-boards-rank-num {
1292
+ min-width: 28px;
1293
+ font-size: 12.5px;
1294
+ font-weight: 800;
1295
+ color: #64748b;
1296
+ }
1297
+
1298
+ .yudao-boards-rank-num.is-rank-1 {
1299
+ color: #d97706;
1300
+ }
1301
+
1302
+ .yudao-boards-rank-num.is-rank-2 {
1303
+ color: #2563eb;
1304
+ }
1305
+
1306
+ .yudao-boards-rank-num.is-rank-3 {
1307
+ color: #059669;
1308
+ }
1309
+
1310
+ .yudao-boards-rank-swatch {
1311
+ width: 14px;
1312
+ height: 14px;
1313
+ border-radius: 4px;
1314
+ border: 1.5px solid;
1315
+ flex-shrink: 0;
1316
+ }
1317
+
1318
+ .yudao-boards-rank-main {
1319
+ flex: 1;
1320
+ min-width: 0;
1321
+ }
1322
+
1323
+ .yudao-boards-rank-title-line {
1324
+ display: flex;
1325
+ align-items: center;
1326
+ gap: 8px;
1327
+ margin-bottom: 5px;
1328
+ }
1329
+
1330
+ .yudao-boards-rank-text {
1331
+ font-size: 12.5px;
1332
+ font-weight: 600;
1333
+ color: #0f172a;
1334
+ overflow: hidden;
1335
+ text-overflow: ellipsis;
1336
+ white-space: nowrap;
1337
+ }
1338
+
1339
+ .yudao-boards-rank-frame-tag {
1340
+ padding: 1px 6px;
1341
+ border-radius: 5px;
1342
+ background: #f1f5f9;
1343
+ color: #475569;
1344
+ font-size: 10.5px;
1345
+ white-space: nowrap;
1346
+ }
1347
+
1348
+ .yudao-boards-rank-bar-track {
1349
+ height: 7px;
1350
+ border-radius: 999px;
1351
+ background: #f1f5f9;
1352
+ overflow: hidden;
1353
+ }
1354
+
1355
+ .yudao-boards-rank-bar-fill {
1356
+ height: 100%;
1357
+ border-radius: 999px;
1358
+ background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
1359
+ transition: width 0.2s ease;
1360
+ }
1361
+
1362
+ .yudao-boards-rank-score {
1363
+ display: flex;
1364
+ align-items: baseline;
1365
+ gap: 2px;
1366
+ min-width: 44px;
1367
+ justify-content: flex-end;
1368
+ color: #1d4ed8;
1369
+ }
1370
+
1371
+ .yudao-boards-rank-score strong {
1372
+ font-size: 15px;
1373
+ font-weight: 800;
1374
+ }
1375
+
1376
+ .yudao-boards-rank-score span {
1377
+ font-size: 11px;
1378
+ color: #64748b;
1379
+ }
1380
+
1381
+ .yudao-boards-rank-actions {
1382
+ display: flex;
1383
+ align-items: center;
1384
+ gap: 6px;
1385
+ flex-shrink: 0;
1386
+ }
1387
+
1388
+ .yudao-boards-mini-btn {
1389
+ display: inline-flex;
1390
+ align-items: center;
1391
+ gap: 4px;
1392
+ padding: 4px 8px;
1393
+ border: 1px solid #cbd5e1;
1394
+ border-radius: 6px;
1395
+ background: #ffffff;
1396
+ color: #334155;
1397
+ font-size: 11.5px;
1398
+ cursor: pointer;
1399
+ }
1400
+
1401
+ .yudao-boards-mini-btn.is-primary {
1402
+ background: #2563eb;
1403
+ border-color: #2563eb;
1404
+ color: #ffffff;
1405
+ }
1406
+
1407
+ .yudao-boards-mini-btn:disabled {
1408
+ opacity: 0.45;
1409
+ cursor: not-allowed;
1410
+ }
1411
+
1412
+ .yudao-boards-doc-import-dialog {
1413
+ width: min(560px, 92vw);
1414
+ background: #ffffff;
1415
+ border-radius: 14px;
1416
+ box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
1417
+ overflow: hidden;
1418
+ }
1419
+
1420
+ .yudao-boards-doc-import-body {
1421
+ padding: 16px 20px 22px;
1422
+ display: flex;
1423
+ flex-direction: column;
1424
+ gap: 14px;
1425
+ }
1426
+
1427
+ .yudao-boards-doc-desc {
1428
+ margin: 0;
1429
+ font-size: 12.5px;
1430
+ line-height: 1.55;
1431
+ color: #475569;
1432
+ }
1433
+
1434
+ .yudao-boards-doc-options {
1435
+ display: flex;
1436
+ align-items: flex-end;
1437
+ justify-content: space-between;
1438
+ flex-wrap: wrap;
1439
+ gap: 12px;
1440
+ }
1441
+
1442
+ .yudao-boards-upload-dropzone {
1443
+ padding: 26px 18px;
1444
+ border: 1.8px dashed #93c5fd;
1445
+ border-radius: 12px;
1446
+ background: #f8fbff;
1447
+ display: flex;
1448
+ flex-direction: column;
1449
+ align-items: center;
1450
+ gap: 8px;
1451
+ text-align: center;
1452
+ color: #1d4ed8;
1453
+ cursor: pointer;
1454
+ transition: all 0.15s ease;
1455
+ }
1456
+
1457
+ .yudao-boards-upload-dropzone:hover {
1458
+ background: #eff6ff;
1459
+ border-color: #2563eb;
1460
+ }
1461
+
1462
+ .yudao-boards-upload-dropzone span {
1463
+ font-size: 11.5px;
1464
+ color: #64748b;
1465
+ }
@@ -40,6 +40,12 @@ declare const ToggleBoardInspectorOperation: IOperation;
40
40
  declare const OpenBoardMermaidModalOperation: IOperation<{
41
41
  open?: boolean;
42
42
  }>;
43
+ declare const OpenBoardVotingModalOperation: IOperation<{
44
+ open?: boolean;
45
+ }>;
46
+ declare const OpenBoardDocImportModalOperation: IOperation<{
47
+ open?: boolean;
48
+ }>;
43
49
  declare const SetBoardToolOperation: IOperation<{
44
50
  tool: BoardActiveTool;
45
51
  }>;
@@ -77,6 +83,11 @@ declare const BoardsInspectorPanel: React.FC;
77
83
  type BoardsLeftTab = 'frames' | 'elements' | 'templates';
78
84
  declare const BoardsLeftSidebar: React.FC;
79
85
 
86
+ interface IBoardsDocImportModalProps {
87
+ forceOpen?: boolean;
88
+ }
89
+ declare const BoardsDocImportModal: React.FC<IBoardsDocImportModalProps>;
90
+
80
91
  interface IBoardsMermaidModalProps {
81
92
  forceOpen?: boolean;
82
93
  }
@@ -84,6 +95,11 @@ declare const BoardsMermaidModal: React.FC<IBoardsMermaidModalProps>;
84
95
 
85
96
  declare const BoardsModalsHost: React.FC;
86
97
 
87
- declare const VERSION = "1.6.218";
98
+ interface IBoardsVotingModalProps {
99
+ forceOpen?: boolean;
100
+ }
101
+ declare const BoardsVotingModal: React.FC<IBoardsVotingModalProps>;
102
+
103
+ declare const VERSION = "1.6.219";
88
104
 
89
- export { BOARDS_RIBBON_GROUP, BOARDS_RIBBON_TAB, BOARD_ICON_MAP, BOARD_INSPECTOR_COMPONENT_KEY, BOARD_INSPECTOR_SIDEBAR_ID, BoardsInfiniteCanvas, BoardsInspectorPanel, BoardsLeftSidebar, type BoardsLeftTab, BoardsMermaidModal, BoardsModalsHost, BoardsStatusBar, BoardsUIController, ExportBoardFileOperation, FitBoardToScreenOperation, type IBoardsMermaidModalProps, type IExportBoardFileOperationParams, type IUniverBoardsUIConfig, OpenBoardMermaidModalOperation, SetBoardToolOperation, StartBoardPresentationOperation, ToggleBoardInspectorOperation, UNIVER_BOARDS_UI_PLUGIN_NAME, UniverBoardsUIPlugin, VERSION, boardsMenuSchema, boardsRootMenuExtension, openBoardInspectorSidebar };
105
+ export { BOARDS_RIBBON_GROUP, BOARDS_RIBBON_TAB, BOARD_ICON_MAP, BOARD_INSPECTOR_COMPONENT_KEY, BOARD_INSPECTOR_SIDEBAR_ID, BoardsDocImportModal, BoardsInfiniteCanvas, BoardsInspectorPanel, BoardsLeftSidebar, type BoardsLeftTab, BoardsMermaidModal, BoardsModalsHost, BoardsStatusBar, BoardsUIController, BoardsVotingModal, ExportBoardFileOperation, FitBoardToScreenOperation, type IBoardsDocImportModalProps, type IBoardsMermaidModalProps, type IBoardsVotingModalProps, type IExportBoardFileOperationParams, type IUniverBoardsUIConfig, OpenBoardDocImportModalOperation, OpenBoardMermaidModalOperation, OpenBoardVotingModalOperation, SetBoardToolOperation, StartBoardPresentationOperation, ToggleBoardInspectorOperation, UNIVER_BOARDS_UI_PLUGIN_NAME, UniverBoardsUIPlugin, VERSION, boardsMenuSchema, boardsRootMenuExtension, openBoardInspectorSidebar };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yudaocode/univer-boards-ui",
3
- "version": "1.6.218",
3
+ "version": "1.6.219",
4
4
  "description": "Univer Boards infinite canvas whiteboard unit model, bidirectional Mermaid diagram engine, mindmap layout, frames/swimlanes, and SVG/PDF/PPTX/CSV exporters — React workbench UI plugin",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/yudaocode/yudao-univer#readme",
@@ -62,7 +62,7 @@
62
62
  "react": ">=18.0.0",
63
63
  "react-dom": ">=18.0.0",
64
64
  "rxjs": ">=7.0.0",
65
- "@yudaocode/univer-boards": "^1.6.218"
65
+ "@yudaocode/univer-boards": "^1.6.219"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@univerjs/core": "1.6.2",
@@ -72,7 +72,7 @@
72
72
  "react": "^18.3.1",
73
73
  "react-dom": "^18.3.1",
74
74
  "rxjs": "^7.8.1",
75
- "@yudaocode/univer-boards": "1.6.218"
75
+ "@yudaocode/univer-boards": "1.6.219"
76
76
  },
77
77
  "scripts": {
78
78
  "build": "tsup",