@mcp-consultant-tools/azure-devops 30.0.0-beta.4 → 30.0.0-beta.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"design-system-prompt.d.ts","sourceRoot":"","sources":["../../src/genui/design-system-prompt.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"design-system-prompt.d.ts","sourceRoot":"","sources":["../../src/genui/design-system-prompt.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,oBAAoB,QAkNzB,CAAC"}
|
|
@@ -120,30 +120,11 @@ For summary metrics, use KPI cards at the top:
|
|
|
120
120
|
This HTML renders inside a sandboxed iframe. **Links cannot open new tabs** and **file downloads are blocked**.
|
|
121
121
|
You MUST use clipboard-based alternatives for all interactive features.
|
|
122
122
|
|
|
123
|
-
####
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
} catch(e) {
|
|
129
|
-
var ta = document.createElement('textarea');
|
|
130
|
-
ta.value = text;
|
|
131
|
-
ta.style.cssText = 'position:fixed;left:-9999px';
|
|
132
|
-
document.body.appendChild(ta);
|
|
133
|
-
ta.select();
|
|
134
|
-
document.execCommand('copy');
|
|
135
|
-
document.body.removeChild(ta);
|
|
136
|
-
showCopied(btnEl);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
function showCopied(el) {
|
|
140
|
-
if (!el) return;
|
|
141
|
-
var orig = el.textContent;
|
|
142
|
-
el.textContent = 'Copied!';
|
|
143
|
-
el.style.background = '#009900';
|
|
144
|
-
setTimeout(function() { el.textContent = orig; el.style.background = ''; }, 1500);
|
|
145
|
-
}
|
|
146
|
-
\`\`\`
|
|
123
|
+
#### Pre-defined Functions (DO NOT redefine these)
|
|
124
|
+
The following functions are pre-defined by the MCP App shell. Just call them:
|
|
125
|
+
- \`copyText(text, buttonElement)\` — copies text to clipboard with visual "Copied!" feedback
|
|
126
|
+
- \`showCopied(element)\` — shows brief "Copied!" indicator on an element
|
|
127
|
+
**Do NOT define copyText or showCopied in your \`<script>\` tags.** They already exist on \`window\`.
|
|
147
128
|
|
|
148
129
|
#### Work Item ID Links — Click to Copy URL
|
|
149
130
|
Do NOT use \`<a href="..." target="_blank">\`. Links cannot open in the sandbox.
|
|
@@ -155,22 +136,20 @@ Instead, display the ID as a clickable element that copies the ADO URL to clipbo
|
|
|
155
136
|
\`\`\`
|
|
156
137
|
|
|
157
138
|
#### Copy CSV Button
|
|
158
|
-
Replace download with copy-to-clipboard:
|
|
159
139
|
\`\`\`html
|
|
160
140
|
<button id="csvBtn" onclick="copyCsv()" style="padding:6px 14px; background:var(--link); color:white;
|
|
161
141
|
border:none; border-radius:4px; cursor:pointer; font-size:13px">Copy CSV</button>
|
|
162
142
|
\`\`\`
|
|
163
|
-
|
|
143
|
+
Define \`copyCsv()\` in a \`<script>\` tag — build the CSV string, then call \`copyText(csvString, document.getElementById('csvBtn'))\`.
|
|
164
144
|
|
|
165
145
|
#### Copy as Image Button
|
|
166
|
-
|
|
167
|
-
Load html2canvas from CDN (same loading pattern as Chart.js):
|
|
146
|
+
Load html2canvas from CDN and capture the root element as PNG:
|
|
168
147
|
\`\`\`html
|
|
169
148
|
<script src="https://cdn.jsdelivr.net/npm/html2canvas@1.4.1/dist/html2canvas.min.js"></script>
|
|
170
149
|
<button id="imgBtn" onclick="copyImage()" style="padding:6px 14px; background:var(--link); color:white;
|
|
171
150
|
border:none; border-radius:4px; cursor:pointer; font-size:13px">Copy as Image</button>
|
|
172
151
|
\`\`\`
|
|
173
|
-
|
|
152
|
+
Define \`copyImage()\` in a \`<script>\` tag:
|
|
174
153
|
\`\`\`javascript
|
|
175
154
|
function copyImage() {
|
|
176
155
|
var btn = document.getElementById('imgBtn');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"design-system-prompt.js","sourceRoot":"","sources":["../../src/genui/design-system-prompt.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG
|
|
1
|
+
{"version":3,"file":"design-system-prompt.js","sourceRoot":"","sources":["../../src/genui/design-system-prompt.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkNnC,CAAC,IAAI,EAAE,CAAC"}
|