@sequent-org/moodboard 1.4.44 → 1.4.47
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/package.json +1 -1
- package/src/core/events/Events.js +1 -0
- package/src/core/flows/ClipboardFlow.js +29 -1
- package/src/core/flows/Model3dFlow.js +15 -0
- package/src/core/index.js +4 -2
- package/src/moodboard/bootstrap/MoodBoardUiFactory.js +2 -0
- package/src/objects/Model3dScreenshotImageObject.js +8 -0
- package/src/objects/ObjectFactory.js +2 -0
- package/src/services/ai/AiClient.js +130 -2
- package/src/services/ai/Model3dSessionController.js +238 -0
- package/src/ui/ImagePropertiesPanel.js +8 -0
- package/src/ui/chat/ChatComposer.js +50 -3
- package/src/ui/chat/ChatWindow.js +483 -8
- package/src/ui/chat/Model3dBoardSkeleton.js +93 -0
- package/src/ui/chat/Model3dProgressOverlay.js +114 -0
- package/src/ui/chat/icons.js +1 -0
- package/src/ui/handles/HandlesDomRenderer.js +30 -0
- package/src/ui/styles/chat.css +178 -3
- package/src/ui/styles/panels.css +264 -0
package/src/ui/styles/panels.css
CHANGED
|
@@ -340,3 +340,267 @@
|
|
|
340
340
|
flex-shrink: 0;
|
|
341
341
|
}
|
|
342
342
|
|
|
343
|
+
/* Image properties toolbar */
|
|
344
|
+
.image-properties-panel {
|
|
345
|
+
position: absolute;
|
|
346
|
+
pointer-events: auto;
|
|
347
|
+
display: flex;
|
|
348
|
+
flex-direction: row;
|
|
349
|
+
align-items: center;
|
|
350
|
+
gap: 2px;
|
|
351
|
+
padding: 4px 8px;
|
|
352
|
+
background: #ffffff;
|
|
353
|
+
border: 1px solid #E5E7EB;
|
|
354
|
+
border-radius: 8px;
|
|
355
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
|
|
356
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
357
|
+
font-size: 13px;
|
|
358
|
+
z-index: 1000;
|
|
359
|
+
user-select: none;
|
|
360
|
+
white-space: nowrap;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.ipp-filename {
|
|
364
|
+
padding: 0 6px;
|
|
365
|
+
font-size: 13px;
|
|
366
|
+
color: #374151;
|
|
367
|
+
font-weight: 400;
|
|
368
|
+
max-width: 140px;
|
|
369
|
+
overflow: hidden;
|
|
370
|
+
text-overflow: ellipsis;
|
|
371
|
+
white-space: nowrap;
|
|
372
|
+
cursor: text;
|
|
373
|
+
border-radius: 4px;
|
|
374
|
+
outline: none;
|
|
375
|
+
transition: background 0.15s;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.ipp-filename:hover,
|
|
379
|
+
.ipp-filename:focus {
|
|
380
|
+
background: #F3F4F6;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.ipp-filename:focus {
|
|
384
|
+
text-overflow: clip;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.ipp-divider {
|
|
388
|
+
width: 1px;
|
|
389
|
+
height: 18px;
|
|
390
|
+
background: #E5E7EB;
|
|
391
|
+
margin: 0 4px;
|
|
392
|
+
flex-shrink: 0;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.ipp-btn {
|
|
396
|
+
display: inline-flex;
|
|
397
|
+
align-items: center;
|
|
398
|
+
justify-content: center;
|
|
399
|
+
width: 28px;
|
|
400
|
+
height: 28px;
|
|
401
|
+
padding: 0;
|
|
402
|
+
border: none;
|
|
403
|
+
border-radius: 6px;
|
|
404
|
+
background: none;
|
|
405
|
+
color: #6B7280;
|
|
406
|
+
cursor: pointer;
|
|
407
|
+
flex-shrink: 0;
|
|
408
|
+
transition: background 0.15s, color 0.15s;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.ipp-btn:hover {
|
|
412
|
+
background: #F3F4F6;
|
|
413
|
+
color: #111827;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.ipp-btn:active,
|
|
417
|
+
.ipp-btn.is-active {
|
|
418
|
+
background: #E5E7EB;
|
|
419
|
+
color: #111827;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.ipp-icon-frame-wrap {
|
|
423
|
+
position: relative;
|
|
424
|
+
display: inline-block;
|
|
425
|
+
width: 20px;
|
|
426
|
+
height: 20px;
|
|
427
|
+
border-radius: 50%;
|
|
428
|
+
overflow: hidden;
|
|
429
|
+
transition: transform 100ms ease-in-out;
|
|
430
|
+
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAySURBVHgB3Y2xDQAwDMJIr+D/5+CLtAewVMoUjyDLJakRIJlmHHyyQah+pMM2RgobhAuV0grHtNJqlwAAAABJRU5ErkJggg==);
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.ipp-icon-frame {
|
|
434
|
+
position: relative;
|
|
435
|
+
display: inline-block;
|
|
436
|
+
width: inherit;
|
|
437
|
+
height: inherit;
|
|
438
|
+
border-radius: 50%;
|
|
439
|
+
box-shadow: rgba(0, 0, 0, 0.25) 0 0 0 1px inset;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.ipp-icon-frame::after {
|
|
443
|
+
content: "";
|
|
444
|
+
position: absolute;
|
|
445
|
+
left: 50%;
|
|
446
|
+
top: 50%;
|
|
447
|
+
transform: translate(-50%, -50%);
|
|
448
|
+
width: 50%;
|
|
449
|
+
height: 50%;
|
|
450
|
+
background-color: rgb(250, 250, 250);
|
|
451
|
+
box-shadow: rgba(0, 0, 0, 0.25) 0 0 0 1px;
|
|
452
|
+
border-radius: 50%;
|
|
453
|
+
pointer-events: none;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
/* Split Button (Crop) */
|
|
457
|
+
.ipp-btn-split-wrapper {
|
|
458
|
+
position: relative;
|
|
459
|
+
display: inline-flex;
|
|
460
|
+
align-items: center;
|
|
461
|
+
border-radius: 6px;
|
|
462
|
+
background: transparent;
|
|
463
|
+
transition: background 0.15s;
|
|
464
|
+
flex-shrink: 0;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.ipp-btn-split-wrapper:hover {
|
|
468
|
+
background: #F3F4F6;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.ipp-btn-split-main {
|
|
472
|
+
display: inline-flex;
|
|
473
|
+
align-items: center;
|
|
474
|
+
justify-content: center;
|
|
475
|
+
width: 28px;
|
|
476
|
+
height: 28px;
|
|
477
|
+
padding: 0;
|
|
478
|
+
border: none;
|
|
479
|
+
border-radius: 6px 0 0 6px;
|
|
480
|
+
background: transparent;
|
|
481
|
+
color: #6B7280;
|
|
482
|
+
cursor: pointer;
|
|
483
|
+
transition: color 0.15s;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.ipp-btn-split-expand {
|
|
487
|
+
display: inline-flex;
|
|
488
|
+
align-items: center;
|
|
489
|
+
justify-content: center;
|
|
490
|
+
width: 18px;
|
|
491
|
+
height: 28px;
|
|
492
|
+
padding: 0;
|
|
493
|
+
border: none;
|
|
494
|
+
border-radius: 0 6px 6px 0;
|
|
495
|
+
background: transparent;
|
|
496
|
+
color: #6B7280;
|
|
497
|
+
cursor: pointer;
|
|
498
|
+
transition: color 0.15s;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
.ipp-btn-split-main:hover,
|
|
502
|
+
.ipp-btn-split-expand:hover {
|
|
503
|
+
color: #111827;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.ipp-btn-split-wrapper:active {
|
|
507
|
+
background: #E5E7EB;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
.ipp-btn-split-expand svg {
|
|
511
|
+
transition: transform 0.2s ease;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
.ipp-btn-split-expand.is-expanded svg {
|
|
515
|
+
transform: rotate(180deg);
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
/* Crop Dropdown */
|
|
519
|
+
.ipp-crop-dropdown {
|
|
520
|
+
position: absolute;
|
|
521
|
+
top: calc(100% + 6px);
|
|
522
|
+
left: 50%;
|
|
523
|
+
transform: translateX(-50%);
|
|
524
|
+
background: #ffffff;
|
|
525
|
+
border: 1px solid #E5E7EB;
|
|
526
|
+
border-radius: 8px;
|
|
527
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05);
|
|
528
|
+
padding: 6px;
|
|
529
|
+
display: none;
|
|
530
|
+
flex-direction: column;
|
|
531
|
+
min-width: 170px;
|
|
532
|
+
z-index: 1001;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
.ipp-crop-dropdown.is-open {
|
|
536
|
+
display: flex;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
/* More Dropdown */
|
|
540
|
+
.ipp-more-dropdown {
|
|
541
|
+
position: absolute;
|
|
542
|
+
top: calc(100% + 6px);
|
|
543
|
+
right: 0;
|
|
544
|
+
background: #ffffff;
|
|
545
|
+
border: 1px solid #E5E7EB;
|
|
546
|
+
border-radius: 8px;
|
|
547
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05);
|
|
548
|
+
padding: 6px;
|
|
549
|
+
display: none;
|
|
550
|
+
flex-direction: column;
|
|
551
|
+
min-width: 220px;
|
|
552
|
+
z-index: 1001;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
.ipp-more-dropdown.is-open {
|
|
556
|
+
display: flex;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
.ipp-dropdown-item {
|
|
560
|
+
display: flex;
|
|
561
|
+
align-items: center;
|
|
562
|
+
padding: 6px 8px;
|
|
563
|
+
border: none;
|
|
564
|
+
background: transparent;
|
|
565
|
+
border-radius: 6px;
|
|
566
|
+
cursor: pointer;
|
|
567
|
+
color: #374151;
|
|
568
|
+
gap: 10px;
|
|
569
|
+
font-size: 13px;
|
|
570
|
+
font-family: inherit;
|
|
571
|
+
text-align: left;
|
|
572
|
+
transition: background 0.15s;
|
|
573
|
+
width: 100%;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
.ipp-dropdown-item:hover {
|
|
577
|
+
background: #F3F4F6;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
.ipp-dropdown-item-ratio {
|
|
581
|
+
margin-left: auto;
|
|
582
|
+
color: #9CA3AF;
|
|
583
|
+
font-size: 12px;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
.ipp-dropdown-item-shortcut {
|
|
587
|
+
margin-left: auto;
|
|
588
|
+
color: #9CA3AF;
|
|
589
|
+
font-size: 12px;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
.ipp-dropdown-divider {
|
|
593
|
+
height: 1px;
|
|
594
|
+
background: #E5E7EB;
|
|
595
|
+
margin: 4px 2px;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
.ipp-dropdown-icon {
|
|
599
|
+
width: 16px;
|
|
600
|
+
height: 16px;
|
|
601
|
+
display: inline-flex;
|
|
602
|
+
align-items: center;
|
|
603
|
+
justify-content: center;
|
|
604
|
+
color: #6B7280;
|
|
605
|
+
}
|
|
606
|
+
|