@mica-js/editor 0.12.0 → 0.13.0

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
@@ -1272,6 +1272,32 @@
1272
1272
  min-width: 0;
1273
1273
  width: 100%;
1274
1274
  }
1275
+ .mica-wb-property-fields.is-file-drag .mica-wb-resource-field {
1276
+ outline: 1px dashed color-mix(in srgb, var(--mica-focus) 55%, transparent);
1277
+ outline-offset: -2px;
1278
+ }
1279
+ .mica-wb-resource-field {
1280
+ position: relative;
1281
+ border-radius: 4px;
1282
+ }
1283
+ .mica-wb-resource-field.is-drop-target {
1284
+ outline: 2px dashed var(--mica-focus);
1285
+ outline-offset: -2px;
1286
+ background: color-mix(in srgb, var(--mica-focus) 8%, transparent);
1287
+ }
1288
+ .mica-wb-resource-drop {
1289
+ position: absolute;
1290
+ inset: 0;
1291
+ z-index: 1;
1292
+ display: flex;
1293
+ align-items: center;
1294
+ justify-content: center;
1295
+ border-radius: 4px;
1296
+ background: color-mix(in srgb, var(--mica-bg) 82%, transparent);
1297
+ color: var(--mica-text);
1298
+ font-size: 11px;
1299
+ pointer-events: none;
1300
+ }
1275
1301
  .mica-wb-program-control {
1276
1302
  display: grid;
1277
1303
  gap: 5px;
@@ -1366,10 +1392,19 @@
1366
1392
  .mica-wb-view-mount {
1367
1393
  min-height: 40px;
1368
1394
  }
1369
- .mica-wb-status {
1395
+ .mica-wb-canvas-status {
1370
1396
  position: absolute;
1371
1397
  left: 12px;
1372
1398
  bottom: 12px;
1399
+ /* 器件浮动视图在 z-index 8;状态只占据左下角且不接收指针,保持在它们之上才不会读数被挡住。 */
1400
+ z-index: 9;
1401
+ display: flex;
1402
+ flex-direction: column;
1403
+ align-items: flex-start;
1404
+ gap: 8px;
1405
+ pointer-events: none;
1406
+ }
1407
+ .mica-wb-status {
1373
1408
  padding: 6px 10px;
1374
1409
  border: 1px solid var(--mica-border);
1375
1410
  border-radius: 6px;
@@ -1377,6 +1412,20 @@
1377
1412
  color: var(--mica-muted);
1378
1413
  pointer-events: none;
1379
1414
  }
1415
+ .mica-wb-simulation-speed {
1416
+ display: flex;
1417
+ align-items: center;
1418
+ gap: 5px;
1419
+ padding: 4px 9px;
1420
+ border: 1px solid var(--mica-border);
1421
+ border-radius: 6px;
1422
+ background: var(--mica-bg);
1423
+ color: var(--mica-muted);
1424
+ font-size: 11px;
1425
+ font-variant-numeric: tabular-nums;
1426
+ pointer-events: none;
1427
+ user-select: none;
1428
+ }
1380
1429
  .mica-wb-viewport-controls {
1381
1430
  position: absolute;
1382
1431
  right: 12px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mica-js/editor",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "description": "Mica editors: independent composition roots, commands and scoped services",
5
5
  "license": "MIT",
6
6
  "repository": {