@mongoosejs/studio 0.2.5 → 0.2.6
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/backend/actions/ChatMessage/executeScript.js +2 -1
- package/backend/integrations/callLLM.js +1 -1
- package/backend/integrations/streamLLM.js +1 -1
- package/docs/user_stories.md +13 -0
- package/frontend/public/app.js +1142 -7
- package/frontend/public/tw.css +72 -0
- package/frontend/src/chat/chat.js +6 -2
- package/frontend/src/detail-default/detail-default.html +15 -2
- package/frontend/src/detail-default/detail-default.js +1066 -2
- package/frontend/src/document-details/document-property/document-property.html +71 -3
- package/frontend/src/document-details/document-property/document-property.js +67 -1
- package/package.json +1 -1
package/frontend/public/tw.css
CHANGED
|
@@ -594,6 +594,10 @@ video {
|
|
|
594
594
|
pointer-events: none;
|
|
595
595
|
}
|
|
596
596
|
|
|
597
|
+
.visible {
|
|
598
|
+
visibility: visible;
|
|
599
|
+
}
|
|
600
|
+
|
|
597
601
|
.invisible {
|
|
598
602
|
visibility: hidden;
|
|
599
603
|
}
|
|
@@ -631,6 +635,10 @@ video {
|
|
|
631
635
|
bottom: 0px;
|
|
632
636
|
}
|
|
633
637
|
|
|
638
|
+
.-left-1 {
|
|
639
|
+
left: -0.25rem;
|
|
640
|
+
}
|
|
641
|
+
|
|
634
642
|
.-left-2 {
|
|
635
643
|
left: -0.5rem;
|
|
636
644
|
}
|
|
@@ -643,6 +651,10 @@ video {
|
|
|
643
651
|
left: 0px;
|
|
644
652
|
}
|
|
645
653
|
|
|
654
|
+
.left-full {
|
|
655
|
+
left: 100%;
|
|
656
|
+
}
|
|
657
|
+
|
|
646
658
|
.right-0 {
|
|
647
659
|
right: 0px;
|
|
648
660
|
}
|
|
@@ -934,6 +946,10 @@ video {
|
|
|
934
946
|
height: 90vh !important;
|
|
935
947
|
}
|
|
936
948
|
|
|
949
|
+
.h-0 {
|
|
950
|
+
height: 0px;
|
|
951
|
+
}
|
|
952
|
+
|
|
937
953
|
.h-10 {
|
|
938
954
|
height: 2.5rem;
|
|
939
955
|
}
|
|
@@ -966,6 +982,10 @@ video {
|
|
|
966
982
|
height: 1.5rem;
|
|
967
983
|
}
|
|
968
984
|
|
|
985
|
+
.h-64 {
|
|
986
|
+
height: 16rem;
|
|
987
|
+
}
|
|
988
|
+
|
|
969
989
|
.h-8 {
|
|
970
990
|
height: 2rem;
|
|
971
991
|
}
|
|
@@ -1206,6 +1226,10 @@ video {
|
|
|
1206
1226
|
cursor: auto;
|
|
1207
1227
|
}
|
|
1208
1228
|
|
|
1229
|
+
.cursor-help {
|
|
1230
|
+
cursor: help;
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1209
1233
|
.cursor-not-allowed {
|
|
1210
1234
|
cursor: not-allowed;
|
|
1211
1235
|
}
|
|
@@ -1497,6 +1521,10 @@ video {
|
|
|
1497
1521
|
border-bottom-width: 2px;
|
|
1498
1522
|
}
|
|
1499
1523
|
|
|
1524
|
+
.border-b-4 {
|
|
1525
|
+
border-bottom-width: 4px;
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1500
1528
|
.border-l-\[3px\] {
|
|
1501
1529
|
border-left-width: 3px;
|
|
1502
1530
|
}
|
|
@@ -1509,10 +1537,18 @@ video {
|
|
|
1509
1537
|
border-right-width: 0px;
|
|
1510
1538
|
}
|
|
1511
1539
|
|
|
1540
|
+
.border-r-4 {
|
|
1541
|
+
border-right-width: 4px;
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1512
1544
|
.border-t {
|
|
1513
1545
|
border-top-width: 1px;
|
|
1514
1546
|
}
|
|
1515
1547
|
|
|
1548
|
+
.border-t-4 {
|
|
1549
|
+
border-top-width: 4px;
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1516
1552
|
.border-none {
|
|
1517
1553
|
border-style: none;
|
|
1518
1554
|
}
|
|
@@ -1566,6 +1602,11 @@ video {
|
|
|
1566
1602
|
border-left-color: rgb(59 130 246 / var(--tw-border-opacity));
|
|
1567
1603
|
}
|
|
1568
1604
|
|
|
1605
|
+
.border-r-gray-900 {
|
|
1606
|
+
--tw-border-opacity: 1;
|
|
1607
|
+
border-right-color: rgb(17 24 39 / var(--tw-border-opacity));
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1569
1610
|
.\!bg-zinc-50 {
|
|
1570
1611
|
--tw-bg-opacity: 1 !important;
|
|
1571
1612
|
background-color: rgb(250 250 250 / var(--tw-bg-opacity)) !important;
|
|
@@ -1772,6 +1813,10 @@ video {
|
|
|
1772
1813
|
padding: 0px;
|
|
1773
1814
|
}
|
|
1774
1815
|
|
|
1816
|
+
.p-0\.5 {
|
|
1817
|
+
padding: 0.125rem;
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1775
1820
|
.p-1 {
|
|
1776
1821
|
padding: 0.25rem;
|
|
1777
1822
|
}
|
|
@@ -2244,6 +2289,12 @@ video {
|
|
|
2244
2289
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
2245
2290
|
}
|
|
2246
2291
|
|
|
2292
|
+
.shadow-xl {
|
|
2293
|
+
--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
|
|
2294
|
+
--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
|
|
2295
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
2296
|
+
}
|
|
2297
|
+
|
|
2247
2298
|
.outline-none {
|
|
2248
2299
|
outline: 2px solid transparent;
|
|
2249
2300
|
outline-offset: 2px;
|
|
@@ -2269,6 +2320,12 @@ video {
|
|
|
2269
2320
|
outline-color: #d1d5db;
|
|
2270
2321
|
}
|
|
2271
2322
|
|
|
2323
|
+
.ring {
|
|
2324
|
+
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
2325
|
+
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2326
|
+
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
2327
|
+
}
|
|
2328
|
+
|
|
2272
2329
|
.ring-1 {
|
|
2273
2330
|
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
2274
2331
|
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
@@ -2486,6 +2543,11 @@ video {
|
|
|
2486
2543
|
background-color: rgb(75 85 99 / var(--tw-bg-opacity));
|
|
2487
2544
|
}
|
|
2488
2545
|
|
|
2546
|
+
.hover\:bg-gray-700:hover {
|
|
2547
|
+
--tw-bg-opacity: 1;
|
|
2548
|
+
background-color: rgb(55 65 81 / var(--tw-bg-opacity));
|
|
2549
|
+
}
|
|
2550
|
+
|
|
2489
2551
|
.hover\:bg-green-100:hover {
|
|
2490
2552
|
--tw-bg-opacity: 1;
|
|
2491
2553
|
background-color: rgb(220 252 231 / var(--tw-bg-opacity));
|
|
@@ -2576,6 +2638,11 @@ video {
|
|
|
2576
2638
|
color: rgb(30 64 175 / var(--tw-text-opacity));
|
|
2577
2639
|
}
|
|
2578
2640
|
|
|
2641
|
+
.hover\:text-gray-600:hover {
|
|
2642
|
+
--tw-text-opacity: 1;
|
|
2643
|
+
color: rgb(75 85 99 / var(--tw-text-opacity));
|
|
2644
|
+
}
|
|
2645
|
+
|
|
2579
2646
|
.hover\:text-gray-700:hover {
|
|
2580
2647
|
--tw-text-opacity: 1;
|
|
2581
2648
|
color: rgb(55 65 81 / var(--tw-text-opacity));
|
|
@@ -2586,6 +2653,11 @@ video {
|
|
|
2586
2653
|
color: rgb(31 41 55 / var(--tw-text-opacity));
|
|
2587
2654
|
}
|
|
2588
2655
|
|
|
2656
|
+
.hover\:text-gray-900:hover {
|
|
2657
|
+
--tw-text-opacity: 1;
|
|
2658
|
+
color: rgb(17 24 39 / var(--tw-text-opacity));
|
|
2659
|
+
}
|
|
2660
|
+
|
|
2589
2661
|
.hover\:text-slate-700:hover {
|
|
2590
2662
|
--tw-text-opacity: 1;
|
|
2591
2663
|
color: rgb(51 65 85 / var(--tw-text-opacity));
|
|
@@ -30,7 +30,9 @@ module.exports = {
|
|
|
30
30
|
this.$toast.success('Chat thread created!');
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
const userChatMessageIndex = this.chatMessages.length;
|
|
33
34
|
this.chatMessages.push({
|
|
35
|
+
_id: Math.random().toString(36).substr(2, 9),
|
|
34
36
|
content,
|
|
35
37
|
role: 'user'
|
|
36
38
|
});
|
|
@@ -48,11 +50,12 @@ module.exports = {
|
|
|
48
50
|
if (event.chatMessage) {
|
|
49
51
|
if (!userChatMessage) {
|
|
50
52
|
userChatMessage = event.chatMessage;
|
|
51
|
-
|
|
53
|
+
this.chatMessages.splice(userChatMessageIndex, 1, userChatMessage);
|
|
54
|
+
} else {
|
|
52
55
|
const assistantChatMessageIndex = this.chatMessages.indexOf(assistantChatMessage);
|
|
53
56
|
assistantChatMessage = event.chatMessage;
|
|
54
57
|
if (assistantChatMessageIndex !== -1) {
|
|
55
|
-
this.chatMessages
|
|
58
|
+
this.chatMessages.splice(assistantChatMessageIndex, 1, assistantChatMessage);
|
|
56
59
|
} else {
|
|
57
60
|
this.chatMessages.push(assistantChatMessage);
|
|
58
61
|
}
|
|
@@ -66,6 +69,7 @@ module.exports = {
|
|
|
66
69
|
} else if (event.textPart) {
|
|
67
70
|
if (!assistantChatMessage) {
|
|
68
71
|
assistantChatMessage = {
|
|
72
|
+
_id: Math.random().toString(36).substr(2, 9),
|
|
69
73
|
content: event.textPart,
|
|
70
74
|
role: 'assistant'
|
|
71
75
|
};
|
|
@@ -1,3 +1,16 @@
|
|
|
1
1
|
<div class="w-full">
|
|
2
|
-
<pre class="w-full whitespace-pre-wrap break-words font-mono text-sm text-gray-700 m-0">{{displayValue}}</pre>
|
|
3
|
-
|
|
2
|
+
<pre v-if="!isGeoJsonGeometry || !mapVisible" class="w-full whitespace-pre-wrap break-words font-mono text-sm text-gray-700 m-0">{{displayValue}}</pre>
|
|
3
|
+
<div v-show="isGeoJsonGeometry && mapVisible" class="mt-2 border border-gray-200 rounded relative">
|
|
4
|
+
<div ref="map" class="h-64 w-full" style="min-height: 256px; height: 256px;"></div>
|
|
5
|
+
<!-- Undo button below map -->
|
|
6
|
+
<div v-if="isEditable && canUndo" class="mt-2 flex justify-end">
|
|
7
|
+
<button
|
|
8
|
+
@click="undoDelete"
|
|
9
|
+
class="text-xs px-3 py-1.5 bg-gray-600 text-white rounded hover:bg-gray-700 transition-colors"
|
|
10
|
+
title="Undo all changes"
|
|
11
|
+
>
|
|
12
|
+
Undo
|
|
13
|
+
</button>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|