@dickpy/dsh-imagegen 1.5.5 → 1.5.7
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/README.md +3 -1
- package/lib/client.js +1032 -464
- package/lib/client.js.map +1 -1
- package/lib/index.js +260 -54
- package/package.json +81 -81
- package/src/canvas-store.ts +375 -376
- package/src/client/CanvasWorkspace.tsx +273 -30
- package/src/client/ImageGenPanel.tsx +160 -86
- package/src/client/SettingsCard.tsx +1128 -1114
- package/src/client/canvas-workspace.module.css +144 -8
- package/src/client/locales.ts +1515 -1455
- package/src/client/panel.module.css +27 -26
- package/src/engine.ts +998 -828
- package/src/gallery-store.ts +311 -311
- package/src/generation-runtime.ts +2 -2
- package/src/history-store.ts +275 -275
- package/src/image-storage-path.ts +12 -0
- package/src/index.ts +430 -424
- package/src/model-catalog.ts +149 -124
- package/src/presets.ts +95 -86
- package/src/prompt-enhancer.ts +151 -137
- package/src/protocol.ts +580 -574
- package/src/routes.ts +3 -0
- package/src/task-queue.ts +4 -5
|
@@ -488,26 +488,26 @@ html[data-dsh-imagegen-active] .sidebarHistoryHost {
|
|
|
488
488
|
flex: 1;
|
|
489
489
|
}
|
|
490
490
|
|
|
491
|
-
.generation {
|
|
492
|
-
display: flex;
|
|
493
|
-
width: 100%;
|
|
494
|
-
gap: 14px;
|
|
495
|
-
min-width: 0;
|
|
496
|
-
min-height: 0;
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
/* The canvas workspace owns the full generation surface. Keep the classic
|
|
500
|
-
config/result DOM mounted so switching tabs remains instantaneous, but hide
|
|
501
|
-
those siblings while the scene graph is active. */
|
|
502
|
-
.generation[data-workspace='canvas'] {
|
|
503
|
-
display: flex;
|
|
504
|
-
height: 100%;
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
.generation[data-workspace='canvas'] > .config,
|
|
508
|
-
.generation[data-workspace='canvas'] > .canvas {
|
|
509
|
-
display: none !important;
|
|
510
|
-
}
|
|
491
|
+
.generation {
|
|
492
|
+
display: flex;
|
|
493
|
+
width: 100%;
|
|
494
|
+
gap: 14px;
|
|
495
|
+
min-width: 0;
|
|
496
|
+
min-height: 0;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
/* The canvas workspace owns the full generation surface. Keep the classic
|
|
500
|
+
config/result DOM mounted so switching tabs remains instantaneous, but hide
|
|
501
|
+
those siblings while the scene graph is active. */
|
|
502
|
+
.generation[data-workspace='canvas'] {
|
|
503
|
+
display: flex;
|
|
504
|
+
height: 100%;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
.generation[data-workspace='canvas'] > .config,
|
|
508
|
+
.generation[data-workspace='canvas'] > .canvas {
|
|
509
|
+
display: none !important;
|
|
510
|
+
}
|
|
511
511
|
|
|
512
512
|
.config {
|
|
513
513
|
display: flex;
|
|
@@ -1763,6 +1763,13 @@ html[data-dsh-imagegen-chat-collapsed] [data-dsh-imagegen-chat-resizer] {
|
|
|
1763
1763
|
font-variant-numeric: tabular-nums;
|
|
1764
1764
|
}
|
|
1765
1765
|
|
|
1766
|
+
/* Over the model's documented prompt limit: red + bold so the locked generate
|
|
1767
|
+
button is self-explanatory (the tooltip repeats the exact limit). */
|
|
1768
|
+
.promptCount[data-over] {
|
|
1769
|
+
color: var(--dsw-alias-status-danger, #e5484d);
|
|
1770
|
+
font-weight: 600;
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1766
1773
|
/* --- parameter groups ----------------------------------------------------------- */
|
|
1767
1774
|
|
|
1768
1775
|
.paramGroup {
|
|
@@ -2534,12 +2541,6 @@ html[data-dsh-imagegen-chat-collapsed] [data-dsh-imagegen-chat-resizer] {
|
|
|
2534
2541
|
}
|
|
2535
2542
|
|
|
2536
2543
|
/* --- gallery workspace -------------------------------------------------------- */
|
|
2537
|
-
.config[data-gallery='true'] .configScroll > *:not(:first-child),
|
|
2538
|
-
.config[data-gallery='true'] .footer,
|
|
2539
|
-
.canvas[data-gallery='true'] > .canvasState,
|
|
2540
|
-
.canvas[data-gallery='true'] > .canvasError,
|
|
2541
|
-
.canvas[data-gallery='true'] > .canvasBody,
|
|
2542
|
-
.studio:has(.config[data-gallery='true']) > .history { display: none; }
|
|
2543
2544
|
.config[data-gallery='true'] .configScroll { display: flex; flex: none; overflow: visible; order: 1; }
|
|
2544
2545
|
.config[data-gallery='true'] .galleryFilters { order: 2; flex: 1; min-height: 0; }
|
|
2545
2546
|
.galleryFilters { padding: 18px 14px; overflow-y: auto; overflow-x: hidden; }
|