@marimo-team/islands 0.15.3 → 0.15.5
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/{ConnectedDataExplorerComponent-DfvW3rBn.js → ConnectedDataExplorerComponent-CBeIYi8p.js} +2 -2
- package/dist/{ImageComparisonComponent-XaJshw7d.js → ImageComparisonComponent-Bk0a0xBq.js} +1 -1
- package/dist/{_baseUniq-dN9WKF9m.js → _baseUniq-utU5_Vu-.js} +1 -1
- package/dist/{any-language-editor-CpFniVi-.js → any-language-editor-PrUUh2lr.js} +1 -1
- package/dist/{architectureDiagram-W76B3OCA-Bpg85ZKv.js → architectureDiagram-W76B3OCA-D-vOp0UU.js} +4 -4
- package/dist/assets/{worker-Y-Q4G-N2.js → worker-BcG8m3h5.js} +3 -3
- package/dist/{blockDiagram-QIGZ2CNN-DS1kOHlW.js → blockDiagram-QIGZ2CNN-IG-z8q8A.js} +5 -5
- package/dist/{c4Diagram-FPNF74CW-CyRVKssw.js → c4Diagram-FPNF74CW-5AEXIX3t.js} +2 -2
- package/dist/{channel-BilGXox7.js → channel-ECVsTGGL.js} +1 -1
- package/dist/{chunk-4BX2VUAB-CZR39zCO.js → chunk-4BX2VUAB-DfJcd9e-.js} +1 -1
- package/dist/{chunk-55IACEB6-BIH-MYov.js → chunk-55IACEB6-BwT8MejR.js} +1 -1
- package/dist/{chunk-FMBD7UC4-4PZXFZE8.js → chunk-FMBD7UC4-DW7uxNR6.js} +1 -1
- package/dist/{chunk-K7UQS3LO-CEvWKznk.js → chunk-K7UQS3LO-BGn2ZPDQ.js} +4 -4
- package/dist/{chunk-QN33PNHL-D5LO5Jq_.js → chunk-QN33PNHL-BcIbOumv.js} +1 -1
- package/dist/{chunk-QZHKN3VN-6gwUonWI.js → chunk-QZHKN3VN-CMSnhk6x.js} +1 -1
- package/dist/{chunk-TVAH2DTR-3gm06QdU.js → chunk-TVAH2DTR-CZF2JRya.js} +3 -3
- package/dist/{chunk-TZMSLE5B-Cm8Iy9bO.js → chunk-TZMSLE5B-BHzN_BY6.js} +1 -1
- package/dist/{classDiagram-v2-RKCZMP56-DC529O_z.js → classDiagram-KNZD7YFC-2H7MseyB.js} +2 -2
- package/dist/{classDiagram-KNZD7YFC-DC529O_z.js → classDiagram-v2-RKCZMP56-2H7MseyB.js} +2 -2
- package/dist/{clone-CLoRX3j6.js → clone-DKQcSK7N.js} +1 -1
- package/dist/{cose-bilkent-S5V4N54A-qf5DlS6Y.js → cose-bilkent-S5V4N54A-CgvKFxTr.js} +2 -2
- package/dist/{dagre-5GWH7T2D-Ceocls0m.js → dagre-5GWH7T2D-VNFIipzt.js} +6 -6
- package/dist/{data-grid-overlay-editor-AqDS_UKe.js → data-grid-overlay-editor-XdqkKCVx.js} +2 -2
- package/dist/{diagram-N5W7TBWH-CP66oSiv.js → diagram-N5W7TBWH-D1s8h-eH.js} +5 -5
- package/dist/{diagram-QEK2KX5R-_YD4kxxi.js → diagram-QEK2KX5R-DOa-AstT.js} +3 -3
- package/dist/{diagram-S2PKOQOG-Cnj8T-OP.js → diagram-S2PKOQOG-CFZ-Y2zi.js} +3 -3
- package/dist/{dockerfile-Cm8cRYCN.js → dockerfile-zE-2DWBS.js} +1 -1
- package/dist/{erDiagram-AWTI2OKA-CGnvoHx6.js → erDiagram-AWTI2OKA-WxUYJfbS.js} +4 -4
- package/dist/{flowDiagram-PVAE7QVJ-DG-pr9R9.js → flowDiagram-PVAE7QVJ-dDZH2O1W.js} +5 -5
- package/dist/{ganttDiagram-OWAHRB6G-JmChtxvn.js → ganttDiagram-OWAHRB6G-D3CCqPQq.js} +4 -4
- package/dist/{gitGraphDiagram-NY62KEGX-D8wLfOPd.js → gitGraphDiagram-NY62KEGX-BHFylEwc.js} +4 -4
- package/dist/{glide-data-editor-9nC3iCIZ.js → glide-data-editor-D0aJSGV_.js} +3 -3
- package/dist/{graph-CoRe7vAN.js → graph-BPGEu6c8.js} +3 -3
- package/dist/{index-6qYeHHjQ.js → index-Bx2b23rX.js} +3 -3
- package/dist/{index-BthgsgYX.js → index-DotQhzoN.js} +1 -1
- package/dist/{index-jkm77Jrz.js → index-HtOEKQ3O.js} +1 -1
- package/dist/{index-BpzLh4Qe.js → index-eDB61tLS.js} +1 -1
- package/dist/{infoDiagram-STP46IZ2-BlXxvOrR.js → infoDiagram-STP46IZ2-DWhhqGPi.js} +2 -2
- package/dist/{journeyDiagram-BIP6EPQ6-CNRYs_Fc.js → journeyDiagram-BIP6EPQ6-CU8FpryL.js} +3 -3
- package/dist/{kanban-definition-6OIFK2YF-B9HeMAuP.js → kanban-definition-6OIFK2YF-CWhF_a4g.js} +2 -2
- package/dist/{layout-m2vOUiW1.js → layout-DGonEvAZ.js} +4 -4
- package/dist/{linear-DU6Q5CX3.js → linear-Cww2a6nQ.js} +1 -1
- package/dist/{main-BD2KGFpU.js → main-Bc0LY9fB.js} +20636 -20608
- package/dist/main.js +1 -1
- package/dist/{mermaid-HVCtvbyx.js → mermaid-DpJuOhRr.js} +30 -30
- package/dist/{min-DcGMA4e_.js → min-CFQjsG4L.js} +2 -2
- package/dist/{mindmap-definition-Q6HEUPPD-BW8UmIDQ.js → mindmap-definition-Q6HEUPPD-K513Ef1t.js} +3 -3
- package/dist/{number-overlay-editor-D8Hl0Syo.js → number-overlay-editor-DuSchUfE.js} +2 -2
- package/dist/{pieDiagram-ADFJNKIX-Bg-3zg5U.js → pieDiagram-ADFJNKIX-DAIIUJJO.js} +3 -3
- package/dist/{quadrantDiagram-LMRXKWRM-BO4IG6Yz.js → quadrantDiagram-LMRXKWRM-yuf-j7Os.js} +2 -2
- package/dist/{react-plotly-dkvHVuRb.js → react-plotly-B378DZ9U.js} +1 -1
- package/dist/{requirementDiagram-4UW4RH46-5sdTguSM.js → requirementDiagram-4UW4RH46-BBWvEl6q.js} +3 -3
- package/dist/{sankeyDiagram-GR3RE2ED-Buhlv9OI.js → sankeyDiagram-GR3RE2ED-B_TwV-dS.js} +1 -1
- package/dist/{sequenceDiagram-C3RYC4MD-C3qsM2UP.js → sequenceDiagram-C3RYC4MD-BVC6lltp.js} +3 -3
- package/dist/{slides-component-D209A0-s.js → slides-component-CPX3S0Y9.js} +1 -1
- package/dist/{stateDiagram-KXAO66HF-CopJ7G6P.js → stateDiagram-KXAO66HF-BCU1tYTD.js} +4 -4
- package/dist/{stateDiagram-v2-UMBNRL4Z-CejL8AKf.js → stateDiagram-v2-UMBNRL4Z-BdvN6wTu.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{time-BwSBitlN.js → time-CSIip6fV.js} +2 -2
- package/dist/{timeline-definition-XQNQX7LJ-DzMNTX-C.js → timeline-definition-XQNQX7LJ-CCxCPNQI.js} +1 -1
- package/dist/{treemap-75Q7IDZK-zeJG07dk.js → treemap-75Q7IDZK-Du6v0BzD.js} +5 -5
- package/dist/{vega-component-CUkiTayd.js → vega-component-Da93sTnp.js} +2 -2
- package/dist/{xychartDiagram-6GGTOJPD-DiENNXMS.js → xychartDiagram-6GGTOJPD-Oq6xaZKR.js} +2 -2
- package/package.json +6 -3
- package/src/components/ai/ai-provider-icon.tsx +5 -1
- package/src/components/chat/acp/__tests__/__snapshots__/prompt.test.ts.snap +304 -0
- package/src/components/chat/acp/__tests__/atoms.test.ts +56 -0
- package/src/components/chat/acp/__tests__/prompt.test.ts +12 -0
- package/src/components/chat/acp/__tests__/state.test.ts +621 -0
- package/src/components/chat/acp/agent-docs.tsx +78 -0
- package/src/components/chat/acp/agent-panel.css +23 -0
- package/src/components/chat/acp/agent-panel.tsx +715 -0
- package/src/components/chat/acp/agent-selector.tsx +138 -0
- package/src/components/chat/acp/blocks.tsx +664 -0
- package/src/components/chat/acp/common.tsx +198 -0
- package/src/components/chat/acp/prompt.ts +284 -0
- package/src/components/chat/acp/scroll-to-bottom-button.tsx +50 -0
- package/src/components/chat/acp/session-tabs.tsx +138 -0
- package/src/components/chat/acp/state.ts +263 -0
- package/src/components/chat/acp/thread.tsx +121 -0
- package/src/components/chat/acp/types.ts +63 -0
- package/src/components/chat/acp/utils.ts +45 -0
- package/src/components/chat/tool-call-accordion.tsx +1 -1
- package/src/components/editor/chrome/types.ts +10 -0
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +17 -3
- package/src/core/config/feature-flag.tsx +2 -0
- package/src/plugins/impl/vega/vega.css +121 -0
- package/src/utils/Logger.ts +5 -6
|
@@ -29,3 +29,124 @@
|
|
|
29
29
|
right: 2px;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Due to a bug when defining our own VegaPlugin where these styles are not applied,
|
|
35
|
+
* we provide the default styles for vega-actions.
|
|
36
|
+
* https://github.com/vega/vega-embed/blob/8f4ec8e136951a7e34b358e4e9b6037582a6ccdd/vega-embed.scss
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
.vega-embed.has-actions {
|
|
40
|
+
padding-right: 38px;
|
|
41
|
+
}
|
|
42
|
+
.vega-embed details:not([open]) > :not(summary) {
|
|
43
|
+
display: none !important;
|
|
44
|
+
}
|
|
45
|
+
.vega-embed summary {
|
|
46
|
+
list-style: none;
|
|
47
|
+
position: absolute;
|
|
48
|
+
top: 0;
|
|
49
|
+
right: 0;
|
|
50
|
+
padding: 6px;
|
|
51
|
+
z-index: 1000;
|
|
52
|
+
background: white;
|
|
53
|
+
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
|
|
54
|
+
color: #1b1e23;
|
|
55
|
+
border: 1px solid #aaa;
|
|
56
|
+
border-radius: 999px;
|
|
57
|
+
opacity: 0.2;
|
|
58
|
+
transition: opacity 0.4s ease-in;
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
line-height: 0px;
|
|
61
|
+
}
|
|
62
|
+
.vega-embed summary::-webkit-details-marker {
|
|
63
|
+
display: none;
|
|
64
|
+
}
|
|
65
|
+
.vega-embed summary:active {
|
|
66
|
+
box-shadow: #aaa 0px 0px 0px 1px inset;
|
|
67
|
+
}
|
|
68
|
+
.vega-embed summary svg {
|
|
69
|
+
width: 14px;
|
|
70
|
+
height: 14px;
|
|
71
|
+
}
|
|
72
|
+
.vega-embed details[open] summary {
|
|
73
|
+
opacity: 0.7;
|
|
74
|
+
}
|
|
75
|
+
.vega-embed:hover summary,
|
|
76
|
+
.vega-embed:focus-within summary {
|
|
77
|
+
opacity: 1 !important;
|
|
78
|
+
transition: opacity 0.2s ease;
|
|
79
|
+
}
|
|
80
|
+
.vega-embed .vega-actions {
|
|
81
|
+
position: absolute;
|
|
82
|
+
z-index: 1001;
|
|
83
|
+
top: 35px;
|
|
84
|
+
/* right: -9px; Remove right for our own styles */
|
|
85
|
+
display: flex;
|
|
86
|
+
flex-direction: column;
|
|
87
|
+
padding-bottom: 8px;
|
|
88
|
+
padding-top: 8px;
|
|
89
|
+
border-radius: 4px;
|
|
90
|
+
box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2);
|
|
91
|
+
border: 1px solid #d9d9d9;
|
|
92
|
+
background: white;
|
|
93
|
+
animation-duration: 0.15s;
|
|
94
|
+
animation-name: scale-in;
|
|
95
|
+
animation-timing-function: cubic-bezier(0.2, 0, 0.13, 1.5);
|
|
96
|
+
text-align: left;
|
|
97
|
+
}
|
|
98
|
+
.vega-embed .vega-actions a {
|
|
99
|
+
padding: 8px 16px;
|
|
100
|
+
font-family: sans-serif;
|
|
101
|
+
font-size: 14px;
|
|
102
|
+
font-weight: 600;
|
|
103
|
+
white-space: nowrap;
|
|
104
|
+
color: #434a56;
|
|
105
|
+
text-decoration: none;
|
|
106
|
+
}
|
|
107
|
+
.vega-embed .vega-actions a:hover,
|
|
108
|
+
.vega-embed .vega-actions a:focus {
|
|
109
|
+
background-color: #f7f7f9;
|
|
110
|
+
color: black;
|
|
111
|
+
}
|
|
112
|
+
.vega-embed .vega-actions::before,
|
|
113
|
+
.vega-embed .vega-actions::after {
|
|
114
|
+
content: "";
|
|
115
|
+
display: inline-block;
|
|
116
|
+
position: absolute;
|
|
117
|
+
}
|
|
118
|
+
.vega-embed .vega-actions::before {
|
|
119
|
+
left: auto;
|
|
120
|
+
/* right: 14px; */
|
|
121
|
+
top: -16px;
|
|
122
|
+
border: 8px solid #000 0;
|
|
123
|
+
border-bottom-color: #d9d9d9;
|
|
124
|
+
}
|
|
125
|
+
.vega-embed .vega-actions::after {
|
|
126
|
+
left: auto;
|
|
127
|
+
/* right: 15px; */
|
|
128
|
+
top: -14px;
|
|
129
|
+
border: 7px solid #000 0;
|
|
130
|
+
border-bottom-color: #fff;
|
|
131
|
+
}
|
|
132
|
+
.vega-embed .chart-wrapper.fit-x {
|
|
133
|
+
width: 100%;
|
|
134
|
+
}
|
|
135
|
+
.vega-embed .chart-wrapper.fit-y {
|
|
136
|
+
height: 100%;
|
|
137
|
+
}
|
|
138
|
+
.vega-embed-wrapper {
|
|
139
|
+
max-width: 100%;
|
|
140
|
+
overflow: auto;
|
|
141
|
+
padding-right: 14px;
|
|
142
|
+
}
|
|
143
|
+
@keyframes scale-in {
|
|
144
|
+
from {
|
|
145
|
+
opacity: 0;
|
|
146
|
+
transform: scale(0.6);
|
|
147
|
+
}
|
|
148
|
+
to {
|
|
149
|
+
opacity: 1;
|
|
150
|
+
transform: scale(1);
|
|
151
|
+
}
|
|
152
|
+
}
|
package/src/utils/Logger.ts
CHANGED
|
@@ -25,13 +25,13 @@ const createNamespacedLogger = (
|
|
|
25
25
|
): ILogger => {
|
|
26
26
|
const prefix = `[${namespace}]`;
|
|
27
27
|
return {
|
|
28
|
-
debug: (...args) =>
|
|
28
|
+
debug: (...args) => console.debug(prefix, ...args),
|
|
29
29
|
log: (...args) => baseLogger.log(prefix, ...args),
|
|
30
30
|
warn: (...args) => baseLogger.warn(prefix, ...args),
|
|
31
31
|
error: (...args) => baseLogger.error(prefix, ...args),
|
|
32
32
|
trace: (...args) => baseLogger.trace(prefix, ...args),
|
|
33
33
|
get: (subNamespace: string) =>
|
|
34
|
-
createNamespacedLogger(`${namespace}
|
|
34
|
+
createNamespacedLogger(`${namespace}:${subNamespace}`, baseLogger),
|
|
35
35
|
disabled: (disabled = true) => {
|
|
36
36
|
if (disabled) {
|
|
37
37
|
return DisabledLogger;
|
|
@@ -46,9 +46,7 @@ const createNamespacedLogger = (
|
|
|
46
46
|
*/
|
|
47
47
|
const ConsoleLogger: ILogger = {
|
|
48
48
|
debug: (...args) => {
|
|
49
|
-
|
|
50
|
-
console.debug(...args);
|
|
51
|
-
}
|
|
49
|
+
console.debug(...args);
|
|
52
50
|
},
|
|
53
51
|
log: (...args) => {
|
|
54
52
|
console.log(...args);
|
|
@@ -62,7 +60,8 @@ const ConsoleLogger: ILogger = {
|
|
|
62
60
|
trace: (...args) => {
|
|
63
61
|
console.trace(...args);
|
|
64
62
|
},
|
|
65
|
-
get: (namespace: string) =>
|
|
63
|
+
get: (namespace: string) =>
|
|
64
|
+
createNamespacedLogger(`marimo:${namespace}`, ConsoleLogger),
|
|
66
65
|
disabled: (disabled = true) => {
|
|
67
66
|
if (disabled) {
|
|
68
67
|
return DisabledLogger;
|