@spotpatch/runtime 1.15.4 → 1.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/{chunk-ELCIEQGT.js → chunk-HVI76KFV.js} +10 -10
- package/dist/chunk-HVI76KFV.js.map +1 -0
- package/dist/chunk-N4TPX3YF.js +224 -0
- package/dist/chunk-N4TPX3YF.js.map +1 -0
- package/dist/contextual-ask-panel.cjs +153 -71
- package/dist/contextual-ask-panel.cjs.map +1 -1
- package/dist/contextual-ask-panel.js +145 -63
- package/dist/contextual-ask-panel.js.map +1 -1
- package/dist/data-flow-panel.cjs +20 -19
- package/dist/data-flow-panel.cjs.map +1 -1
- package/dist/data-flow-panel.js +20 -19
- package/dist/data-flow-panel.js.map +1 -1
- package/dist/external-handoff-panel.cjs +45 -41
- package/dist/external-handoff-panel.cjs.map +1 -1
- package/dist/external-handoff-panel.js +37 -33
- package/dist/external-handoff-panel.js.map +1 -1
- package/dist/index.cjs +563 -422
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +458 -423
- package/dist/index.js.map +1 -1
- package/dist/motion.cjs +113 -187
- package/dist/motion.cjs.map +1 -1
- package/dist/motion.js +107 -188
- package/dist/motion.js.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-ELCIEQGT.js.map +0 -1
- package/dist/chunk-P7W3F4UA.js +0 -115
- package/dist/chunk-P7W3F4UA.js.map +0 -1
|
@@ -1036,18 +1036,18 @@ function createButton(document, label, className = "") {
|
|
|
1036
1036
|
// src/ui/ask-picker.ts
|
|
1037
1037
|
var SELECT_PICKER_STYLES = `
|
|
1038
1038
|
.spotpatch-select-picker { position: relative; display: grid; gap: 5px; min-width: 0; }
|
|
1039
|
-
.spotpatch-select-trigger { box-sizing: border-box; display: flex; width: 100%; min-height: 38px; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--spotpatch-border); border-radius:
|
|
1039
|
+
.spotpatch-select-trigger { box-sizing: border-box; display: flex; width: 100%; min-height: 38px; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--spotpatch-border); border-radius: var(--spotpatch-radius-md); padding: 0 12px; overflow: hidden; color: var(--spotpatch-text); background: var(--spotpatch-bg-input); cursor: pointer; font: inherit; outline: none; text-align: left; transition: border-color var(--spotpatch-duration-fast) ease, box-shadow var(--spotpatch-duration-fast) ease; }
|
|
1040
|
+
.spotpatch-select-trigger:hover:not(:disabled) { border-color: var(--spotpatch-border-strong); }
|
|
1040
1041
|
.spotpatch-select-trigger > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1041
|
-
.spotpatch-select-trigger[data-expandable="true"]::after { width: 7px; height: 7px; flex: 0 0 auto; border-right: 1.5px solid
|
|
1042
|
+
.spotpatch-select-trigger[data-expandable="true"]::after { width: 7px; height: 7px; flex: 0 0 auto; border-right: 1.5px solid var(--spotpatch-text-muted); border-bottom: 1.5px solid var(--spotpatch-text-muted); content: ""; transform: translateY(-2px) rotate(45deg); transition: transform var(--spotpatch-duration-base) var(--spotpatch-ease-out); }
|
|
1042
1043
|
.spotpatch-select-trigger[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
|
|
1043
|
-
.spotpatch-select-trigger:focus-visible { border-color:
|
|
1044
|
-
.spotpatch-select-trigger:disabled { color: var(--spotpatch-text); background:
|
|
1044
|
+
.spotpatch-select-trigger:focus-visible { border-color: var(--spotpatch-accent-line); box-shadow: 0 0 0 3px var(--spotpatch-accent-tint); }
|
|
1045
|
+
.spotpatch-select-trigger:disabled { color: var(--spotpatch-text); background: var(--spotpatch-hover); cursor: default; opacity: 1; }
|
|
1045
1046
|
.spotpatch-select-trigger[data-empty="true"]:disabled { color: var(--spotpatch-text-muted); }
|
|
1046
|
-
.spotpatch-select-menu { position: relative; z-index: 1; display: grid; gap:
|
|
1047
|
-
.spotpatch-select-
|
|
1048
|
-
.spotpatch-select-option
|
|
1049
|
-
.spotpatch-select-option[
|
|
1050
|
-
.spotpatch-select-option[aria-selected="true"] { color: #f4f1ff; background: rgb(139 123 255 / 20%); }
|
|
1047
|
+
.spotpatch-select-menu { position: relative; z-index: 1; display: grid; gap: 2px; max-height: 224px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--spotpatch-border); border-radius: var(--spotpatch-radius-md); padding: 4px; background: var(--spotpatch-bg-raised); box-shadow: var(--spotpatch-shadow-panel); animation: spotpatch-enter var(--spotpatch-duration-base) var(--spotpatch-ease-out) both; }
|
|
1048
|
+
.spotpatch-select-option { box-sizing: border-box; min-height: 34px; border: 0; border-radius: var(--spotpatch-radius-xs); padding: 7px 10px; overflow-wrap: anywhere; color: var(--spotpatch-text-secondary); background: transparent; cursor: pointer; font: inherit; text-align: left; }
|
|
1049
|
+
.spotpatch-select-option[data-active="true"], .spotpatch-select-option:hover { color: var(--spotpatch-text); background: var(--spotpatch-hover); outline: none; }
|
|
1050
|
+
.spotpatch-select-option[aria-selected="true"] { color: var(--spotpatch-text); background: var(--spotpatch-accent-tint); }
|
|
1051
1051
|
.spotpatch-select-native { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; border: 0; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
|
|
1052
1052
|
`;
|
|
1053
1053
|
function createSelectPicker(document, onViewChange) {
|
|
@@ -1395,41 +1395,45 @@ function createStyles(document) {
|
|
|
1395
1395
|
const styles = document.createElement("style");
|
|
1396
1396
|
styles.textContent = `
|
|
1397
1397
|
${SELECT_PICKER_STYLES}
|
|
1398
|
-
.spotpatch-external-handoff { margin-top:
|
|
1399
|
-
.spotpatch-external-handoff[hidden] { display: none; }
|
|
1398
|
+
.spotpatch-external-handoff { margin-top: 10px; padding: 12px; border: 1px solid var(--spotpatch-cyan-line); border-radius: var(--spotpatch-radius-card); background: var(--spotpatch-cyan-tint); }
|
|
1400
1399
|
.spotpatch-external-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
|
1401
|
-
.spotpatch-external-heading strong { font-size:
|
|
1402
|
-
.spotpatch-external-description, .spotpatch-external-status, .spotpatch-external-settings p { margin: 6px 0 0; font-size:
|
|
1403
|
-
.spotpatch-external-status {
|
|
1404
|
-
.spotpatch-external-status[data-state="error"] { border-color: var(--spotpatch-danger); color:
|
|
1405
|
-
.spotpatch-external-status[data-state="picked-up"] { border-color: var(--spotpatch-success); color:
|
|
1406
|
-
.spotpatch-external-control { margin-top:
|
|
1400
|
+
.spotpatch-external-heading strong { font-size: 13px; font-weight: 620; }
|
|
1401
|
+
.spotpatch-external-description, .spotpatch-external-status, .spotpatch-external-settings p { margin: 6px 0 0; color: var(--spotpatch-text-secondary); font-size: 12px; line-height: 1.5; }
|
|
1402
|
+
.spotpatch-external-status { border-left: 2px solid var(--spotpatch-accent-cyan); padding-left: 10px; color: var(--spotpatch-text); }
|
|
1403
|
+
.spotpatch-external-status[data-state="error"] { border-color: var(--spotpatch-danger); color: var(--spotpatch-danger-text); }
|
|
1404
|
+
.spotpatch-external-status[data-state="picked-up"] { border-color: var(--spotpatch-success); color: var(--spotpatch-success-text); }
|
|
1405
|
+
.spotpatch-external-control { margin-top: 10px; padding: 10px; border: 1px solid var(--spotpatch-border-subtle); border-radius: var(--spotpatch-radius-md); background: var(--spotpatch-bg-input); }
|
|
1407
1406
|
.spotpatch-external-control-field { display: grid; gap: 5px; min-width: 0; }
|
|
1408
|
-
.spotpatch-external-control-field + .spotpatch-external-control-field { margin-top:
|
|
1409
|
-
.spotpatch-external-control-field > label { color: var(--spotpatch-text-secondary); font-size:
|
|
1410
|
-
.spotpatch-external-agent-value { box-sizing: border-box; display: flex; width: 100%; min-height: 38px; align-items: center; border: 1px solid var(--spotpatch-border); border-radius:
|
|
1411
|
-
.spotpatch-external-control-status { margin:
|
|
1407
|
+
.spotpatch-external-control-field + .spotpatch-external-control-field { margin-top: 10px; }
|
|
1408
|
+
.spotpatch-external-control-field > label { color: var(--spotpatch-text-secondary); font-size: 11px; }
|
|
1409
|
+
.spotpatch-external-agent-value { box-sizing: border-box; display: flex; width: 100%; min-height: 38px; align-items: center; overflow: hidden; border: 1px solid var(--spotpatch-border); border-radius: var(--spotpatch-radius-md); padding: 0 12px; color: var(--spotpatch-text); background: var(--spotpatch-hover); font: inherit; text-overflow: ellipsis; white-space: nowrap; }
|
|
1410
|
+
.spotpatch-external-control-status { margin: 8px 0 0; color: var(--spotpatch-text-secondary); font-size: 11.5px; line-height: 1.5; white-space: pre-wrap; }
|
|
1412
1411
|
.spotpatch-external-control-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
|
|
1413
|
-
.spotpatch-external-control-actions button
|
|
1414
|
-
.spotpatch-external-
|
|
1415
|
-
.spotpatch-external-
|
|
1416
|
-
.spotpatch-external-
|
|
1417
|
-
.spotpatch-external-
|
|
1418
|
-
.spotpatch-external-
|
|
1419
|
-
.spotpatch-external-refresh
|
|
1420
|
-
.spotpatch-external-
|
|
1421
|
-
.spotpatch-external-
|
|
1422
|
-
.spotpatch-external-
|
|
1423
|
-
.spotpatch-external-resolve:disabled { cursor: default; opacity: .
|
|
1424
|
-
.spotpatch-external-
|
|
1425
|
-
.spotpatch-external-
|
|
1426
|
-
.spotpatch-external-
|
|
1427
|
-
.spotpatch-external-
|
|
1428
|
-
.spotpatch-external-
|
|
1429
|
-
.spotpatch-external-
|
|
1430
|
-
.spotpatch-external-disclosure-
|
|
1431
|
-
.spotpatch-external-disclosure-
|
|
1432
|
-
.spotpatch-external-disclosure-
|
|
1412
|
+
.spotpatch-external-control-actions button,
|
|
1413
|
+
.spotpatch-external-refresh,
|
|
1414
|
+
.spotpatch-external-disclosure-actions button { border: 1px solid var(--spotpatch-border); border-radius: var(--spotpatch-radius-sm); color: var(--spotpatch-text); background: var(--spotpatch-bg-raised); cursor: pointer; font: inherit; transition: border-color var(--spotpatch-duration-fast) ease, background var(--spotpatch-duration-fast) ease; }
|
|
1415
|
+
.spotpatch-external-control-actions button { padding: 5px 10px; font-size: 11.5px; }
|
|
1416
|
+
.spotpatch-external-refresh { padding: 3px 8px; color: var(--spotpatch-text-secondary); background: transparent; font-size: 11px; }
|
|
1417
|
+
.spotpatch-external-control-actions button:hover:not(:disabled),
|
|
1418
|
+
.spotpatch-external-refresh:hover:not(:disabled),
|
|
1419
|
+
.spotpatch-external-disclosure-actions button:hover:not(:disabled) { border-color: var(--spotpatch-border-strong); background: var(--spotpatch-bg-active); }
|
|
1420
|
+
.spotpatch-external-control-actions button:disabled,
|
|
1421
|
+
.spotpatch-external-refresh:disabled,
|
|
1422
|
+
.spotpatch-external-resolve:disabled { cursor: default; opacity: .4; }
|
|
1423
|
+
.spotpatch-external-result { margin-top: 8px; color: var(--spotpatch-text-secondary); font-size: 11px; }
|
|
1424
|
+
.spotpatch-external-result pre { max-height: 180px; overflow: auto; margin: 6px 0 0; border-radius: var(--spotpatch-radius-xs); padding: 8px; color: var(--spotpatch-text); background: var(--spotpatch-bg); font: 10.5px/1.5 var(--spotpatch-font-mono); white-space: pre; }
|
|
1425
|
+
.spotpatch-external-settings { margin-top: 10px; }
|
|
1426
|
+
.spotpatch-external-settings summary { color: var(--spotpatch-accent-soft); cursor: pointer; font-size: 12px; }
|
|
1427
|
+
.spotpatch-external-resolve { margin-top: 8px; border: 1px solid var(--spotpatch-warning-line); border-radius: var(--spotpatch-radius-sm); padding: 6px 10px; color: var(--spotpatch-warning-text); background: var(--spotpatch-warning-tint); cursor: pointer; font: inherit; font-size: 11.5px; }
|
|
1428
|
+
.spotpatch-external-disclosure { position: fixed; inset: 0; z-index: 4; display: grid; place-items: center; padding: 20px; background: var(--spotpatch-scrim); backdrop-filter: blur(4px); }
|
|
1429
|
+
.spotpatch-external-disclosure-card { width: min(420px, calc(100vw - 40px)); max-height: calc(100vh - 40px); overflow: auto; border: 1px solid var(--spotpatch-border); border-radius: var(--spotpatch-radius-panel); padding: 20px; background: var(--spotpatch-surface-fill); box-shadow: var(--spotpatch-shadow-panel), var(--spotpatch-shadow-inset); animation: spotpatch-pop var(--spotpatch-duration-base) var(--spotpatch-ease-spring) both; }
|
|
1430
|
+
.spotpatch-external-disclosure-card h3 { margin: 0; font-size: 15px; font-weight: 650; }
|
|
1431
|
+
.spotpatch-external-disclosure-card p { margin: 9px 0 0; color: var(--spotpatch-text-secondary); font-size: 12px; line-height: 1.55; }
|
|
1432
|
+
.spotpatch-external-files { max-height: 96px; overflow: auto; color: var(--spotpatch-accent-soft); font: 11px/1.5 var(--spotpatch-font-mono); white-space: pre-wrap; }
|
|
1433
|
+
.spotpatch-external-disclosure-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
|
|
1434
|
+
.spotpatch-external-disclosure-actions button { min-height: 34px; padding: 0 12px; font-size: 12.5px; font-weight: 600; }
|
|
1435
|
+
.spotpatch-external-disclosure-actions .spotpatch-primary { border-color: transparent; color: var(--spotpatch-text-on-accent); background: var(--spotpatch-primary-fill); }
|
|
1436
|
+
.spotpatch-external-disclosure-actions .spotpatch-primary:hover:not(:disabled) { border-color: transparent; background: var(--spotpatch-primary-fill); filter: brightness(1.1); }
|
|
1433
1437
|
`;
|
|
1434
1438
|
return styles;
|
|
1435
1439
|
}
|