@andespindola/brainlink 1.6.7 → 1.6.9
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.
|
@@ -21,11 +21,17 @@ const startAccountMenu = () => {
|
|
|
21
21
|
style.id = 'bl-account-styles'
|
|
22
22
|
style.textContent = [
|
|
23
23
|
'.bl-account {',
|
|
24
|
+
' position: relative;',
|
|
25
|
+
' display: inline-flex;',
|
|
26
|
+
' align-items: center;',
|
|
27
|
+
' margin-left: 8px;',
|
|
28
|
+
' font-family: "Crowquill Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;',
|
|
29
|
+
'}',
|
|
30
|
+
'.bl-account--floating {',
|
|
24
31
|
' position: fixed;',
|
|
25
32
|
' top: 12px;',
|
|
26
33
|
' right: 12px;',
|
|
27
34
|
' z-index: 2147483000;',
|
|
28
|
-
' font-family: "Crowquill Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;',
|
|
29
35
|
'}',
|
|
30
36
|
'.bl-account-button {',
|
|
31
37
|
' display: inline-flex;',
|
|
@@ -51,6 +57,7 @@ const startAccountMenu = () => {
|
|
|
51
57
|
' position: absolute;',
|
|
52
58
|
' top: 40px;',
|
|
53
59
|
' right: 0;',
|
|
60
|
+
' z-index: 2147483000;',
|
|
54
61
|
' min-width: 168px;',
|
|
55
62
|
' padding: 6px;',
|
|
56
63
|
' border: 1px solid rgba(143, 172, 204, 0.18);',
|
|
@@ -164,7 +171,17 @@ const startAccountMenu = () => {
|
|
|
164
171
|
|
|
165
172
|
root.appendChild(button)
|
|
166
173
|
root.appendChild(menu)
|
|
167
|
-
|
|
174
|
+
|
|
175
|
+
// Mount inside the graph header so the control flows with the existing
|
|
176
|
+
// toolbar instead of overlapping it. Fall back to a floating corner only if
|
|
177
|
+
// the header is not present.
|
|
178
|
+
const host = document.querySelector('.header-actions') || document.querySelector('.graph-header')
|
|
179
|
+
if (host) {
|
|
180
|
+
host.appendChild(root)
|
|
181
|
+
} else {
|
|
182
|
+
root.classList.add('bl-account--floating')
|
|
183
|
+
document.body.appendChild(root)
|
|
184
|
+
}
|
|
168
185
|
}
|
|
169
186
|
|
|
170
187
|
fetch('/api/auth-status', { headers: { accept: 'application/json' } })
|
|
@@ -23,6 +23,10 @@ const pollGraphVersion = async () => {
|
|
|
23
23
|
if (version !== state.graphVersion) {
|
|
24
24
|
state.graphVersion = version
|
|
25
25
|
await loadContexts().catch((error) => console.error(error))
|
|
26
|
+
// Clear the request-dedup key so the refetch is not skipped: the viewport
|
|
27
|
+
// has not changed, but the vault has, so we must re-pull the chunk to pick
|
|
28
|
+
// up new nodes/edges (the dedup guard would otherwise short-circuit it).
|
|
29
|
+
state.lastChunkRequestKey = ''
|
|
26
30
|
scheduleChunkFetch()
|
|
27
31
|
}
|
|
28
32
|
} catch (error) {
|
package/package.json
CHANGED