Skip to content

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

merge: qualify embedded reading links on current dev

HengYang33d082ab4c30
diff --cc archify.zip
index 3317381b,d35cb827..5011ee2d
Binary files differ
diff --cc archify/examples/class-payment-processors-rendered.html
index edfa1ea3,f7995190..fa49191e
--- a/archify/examples/class-payment-processors-rendered.html
+++ b/archify/examples/class-payment-processors-rendered.html
@@@ -14078,16 -14078,28 +14079,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc archify/examples/class-payments-rendered.html
index 4c5e3264,6e6ff735..bc587821
--- a/archify/examples/class-payments-rendered.html
+++ b/archify/examples/class-payments-rendered.html
@@@ -13884,16 -13884,28 +13885,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc archify/examples/dataflow-product-analytics.html
index 03974fa7,a03999b6..20e47dcd
--- a/archify/examples/dataflow-product-analytics.html
+++ b/archify/examples/dataflow-product-analytics.html
@@@ -13998,16 -13998,28 +13999,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc archify/examples/erd-orders-rendered.html
index 9ef408f3,c0b891c9..47918433
--- a/archify/examples/erd-orders-rendered.html
+++ b/archify/examples/erd-orders-rendered.html
@@@ -14166,16 -14166,28 +14167,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc archify/examples/lifecycle-agent-run.html
index 62755204,533b6f53..8ecb16ab
--- a/archify/examples/lifecycle-agent-run.html
+++ b/archify/examples/lifecycle-agent-run.html
@@@ -14010,16 -14010,28 +14011,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc archify/examples/sequence-cache-miss-request.html
index 99328ea8,c7d3bf7e..a0b6dde7
--- a/archify/examples/sequence-cache-miss-request.html
+++ b/archify/examples/sequence-cache-miss-request.html
@@@ -14013,16 -14013,28 +14014,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc archify/examples/subscription-billing-rendered.html
index 9eeb82bf,7e1cf233..5565c6cf
--- a/archify/examples/subscription-billing-rendered.html
+++ b/archify/examples/subscription-billing-rendered.html
@@@ -14390,16 -14390,28 +14391,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc archify/examples/timeline-archify-dev-activity-rendered.html
index 00ac5b80,40bacca8..eef3bb4e
--- a/archify/examples/timeline-archify-dev-activity-rendered.html
+++ b/archify/examples/timeline-archify-dev-activity-rendered.html
@@@ -14090,16 -14090,28 +14091,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc archify/examples/timeline-payment-incident-rendered.html
index 7b22aa26,063ba2f7..55b3fd5f
--- a/archify/examples/timeline-payment-incident-rendered.html
+++ b/archify/examples/timeline-payment-incident-rendered.html
@@@ -13875,16 -13875,28 +13876,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc archify/examples/tree-archify-repository-rendered.html
index 06925676,fc61c398..79625c12
--- a/archify/examples/tree-archify-repository-rendered.html
+++ b/archify/examples/tree-archify-repository-rendered.html
@@@ -14109,16 -14109,28 +14110,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc archify/examples/tree-payment-platform-rendered.html
index 2de0cdea,48dc374d..cc32ec90
--- a/archify/examples/tree-payment-platform-rendered.html
+++ b/archify/examples/tree-payment-platform-rendered.html
@@@ -13890,16 -13890,28 +13891,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc archify/examples/waterfall-checkout-request-rendered.html
index 26199d49,f5d9cdd5..cbf9cff5
--- a/archify/examples/waterfall-checkout-request-rendered.html
+++ b/archify/examples/waterfall-checkout-request-rendered.html
@@@ -13872,16 -13872,28 +13873,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc archify/examples/waterfall-example-rebuild-rendered.html
index c072a936,28788147..18740750
--- a/archify/examples/waterfall-example-rebuild-rendered.html
+++ b/archify/examples/waterfall-example-rebuild-rendered.html
@@@ -14058,16 -14058,28 +14059,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc archify/examples/web-app-rendered.html
index 098b319c,409707c5..2d513de9
--- a/archify/examples/web-app-rendered.html
+++ b/archify/examples/web-app-rendered.html
@@@ -13986,16 -13986,28 +13987,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc archify/examples/workflow-agent-tool-call-rendered.html
index 66c9b3cc,20851e0b..ccb2eae0
--- a/archify/examples/workflow-agent-tool-call-rendered.html
+++ b/archify/examples/workflow-agent-tool-call-rendered.html
@@@ -14004,16 -14004,28 +14005,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc docs/assets/archify-live-proof.json
index 38ca96e5,87543658..5459799a
--- a/docs/assets/archify-live-proof.json
+++ b/docs/assets/archify-live-proof.json
@@@ -13,7 -13,7 +13,7 @@@
{
"id": "signal-flow",
"artifact": "docs/gallery/artifacts/agent-tool-call.workflow.html",
- "artifactSha256": "6c808c79ea6acc5757a20c6d448dd915a583afb8448b0b2c97bfd984ec89ee7e",
- "artifactSha256": "67eef44243ec368d337aaf6dbbc2f215f2b2498b37f46c6e5751247b2bbb7bf4",
++ "artifactSha256": "eb3a11e1285ec8c6583c05b4ee2c1c2629ab6b1679600ef15cb3fc2b5f0ee9f7",
"hash": "#focus=planner&reach=downstream",
"eyebrow": "WORKFLOW · SIGNAL FLOW",
"title": "Agent Tool Call",
@@@ -22,7 -22,7 +22,7 @@@
{
"id": "blueprint",
"artifact": "docs/gallery/artifacts/production-deployment.architecture.html",
- "artifactSha256": "2b41b5723467e440e0b6be248b881f5af93e000019faa005bdbc11c55cd61d1a",
- "artifactSha256": "c7b32559c63819b38a51ecdf4daf299535eff18cf051620cb3e11636d255fe06",
++ "artifactSha256": "1548080b0bc70c32e76fe360fc037312096cd1976388579dfe2ce930cab7e7d2",
"hash": "#lens=backend~database",
"eyebrow": "ARCHITECTURE · BLUEPRINT",
"title": "Production Deployment",
@@@ -31,7 -31,7 +31,7 @@@
{
"id": "classic",
"artifact": "docs/gallery/artifacts/cache-miss.sequence.html",
- "artifactSha256": "441085ea28e432a0e501047662677c85907a6ef1a3f963a64c581c3e6a8503a4",
- "artifactSha256": "9b3622681c99480c56f784d2651f24c71abf810dd1ab4764b389f26cae999abf",
++ "artifactSha256": "8ad984c9e30e9447afef71e4ada4f647a88badf3cb862a6b8385cf9ab9d15846",
"hash": "#route=web~db",
"eyebrow": "SEQUENCE · CLASSIC",
"title": "Cache Miss Request",
diff --cc docs/gallery.html
index 686d7edf,98a784a7..fa615f23
--- a/docs/gallery.html
+++ b/docs/gallery.html
@@@ -302,7 -302,7 +302,7 @@@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">12N · 11E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="6c808c79ea6acc5757a20c6d448dd915a583afb8448b0b2c97bfd984ec89ee7e">6c808c79ea6a</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="67eef44243ec368d337aaf6dbbc2f215f2b2498b37f46c6e5751247b2bbb7bf4">67eef44243ec</span></div>
++ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="eb3a11e1285ec8c6583c05b4ee2c1c2629ab6b1679600ef15cb3fc2b5f0ee9f7">eb3a11e1285e</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/agent-tool-call.workflow.html#focus=planner" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>
@@@ -332,7 -332,7 +332,7 @@@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">12N · 12E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="2b41b5723467e440e0b6be248b881f5af93e000019faa005bdbc11c55cd61d1a">2b41b5723467</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="c7b32559c63819b38a51ecdf4daf299535eff18cf051620cb3e11636d255fe06">c7b32559c638</span></div>
++ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="1548080b0bc70c32e76fe360fc037312096cd1976388579dfe2ce930cab7e7d2">1548080b0bc7</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/production-deployment.architecture.html#focus=gateway" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>
@@@ -361,7 -361,7 +361,7 @@@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">7N · 12E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="441085ea28e432a0e501047662677c85907a6ef1a3f963a64c581c3e6a8503a4">441085ea28e4</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="9b3622681c99480c56f784d2651f24c71abf810dd1ab4764b389f26cae999abf">9b3622681c99</span></div>
++ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="8ad984c9e30e9447afef71e4ada4f647a88badf3cb862a6b8385cf9ab9d15846">8ad984c9e30e</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/cache-miss.sequence.html#focus=redis" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>
@@@ -390,7 -390,7 +390,7 @@@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 10E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="233ca764c07a7ab2cd60c1f2552d264d996354bd6b7748d0ebdedb6e459afc4f">233ca764c07a</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="6ce928b54a1a89caa7a423222198c099c9eea101d81cde909d4946fe4a4f412f">6ce928b54a1a</span></div>
++ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="b9e0c6026bce28d7b98db2443aa772b6208671fb411cc1d1dc29023ce9b438e6">b9e0c6026bce</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/release-delivery.workflow.html#focus=approval" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>
@@@ -419,7 -419,7 +419,7 @@@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">11N · 10E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="848b2439dbc386d344b0f64447923fe97cac149ef66f48ffd2d0aa1ad203f086">848b2439dbc3</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="c65abfca395fb799fd145b8d15fa5cfa9a6dd4ab19c5d21945cab893a3f1ec5a">c65abfca395f</span></div>
++ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="cba0864492dae0cd435dac5a8b5af767d568e4e94f91c7ff74895e2a6057b665">cba0864492da</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/incident-response.workflow.html#focus=triage" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>
@@@ -448,7 -448,7 +448,7 @@@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 10E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="6bebcaee3838e2550f64890183e49a9cf3877a07125ee7d08e31c69fb4bc4ba1">6bebcaee3838</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="3afcc73b932faa4c7e214cadb755efc7e4689f9ad3a5b6a2763758fc4953d974">3afcc73b932f</span></div>
++ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="65c05d384bcad503b362ff0c33d956bf34a9ee11f48a91c232f995703ad43351">65c05d384bca</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/product-analytics.dataflow.html#focus=consent" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>
@@@ -477,7 -477,7 +477,7 @@@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">7N · 14E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="3831e8d5ad49e1ff199735ba7644461ffe53334e7b5f26217398cf2e2ac693b7">3831e8d5ad49</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="36f9c84db5db9b6e30d4289d7847b1c00e283fc8393fd46fe609e0c5ac97a162">36f9c84db5db</span></div>
++ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="8b1c35c8551b9695d171d83f31f92365820ee58c90998615d7278f3e946fcdca">8b1c35c8551b</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/async-job-roundtrip.sequence.html#focus=queue" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>
@@@ -506,7 -506,7 +506,7 @@@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">12N · 12E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="29d2dbcee5a8d3b8cbb46505b1809171180438b04e78c550305b3cdd6311ec7c">29d2dbcee5a8</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="92545a6bd84e4353ae950f6bba377ed1dd2d6a65c081e16934039b61a612cfc0">92545a6bd84e</span></div>
++ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="1c23e1d7b1d668f514a2baeff5d0c104d6c3d2964066be8d908f0925720a20dc">1c23e1d7b1d6</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/event-stream.dataflow.html#focus=orders" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>
@@@ -535,7 -535,7 +535,7 @@@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 12E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="ec2b777ee6ef6dcaadeaaab638bab6b921dd69898affb43d366de1b56e20bf64">ec2b777ee6ef</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="0caa35c244227214d4130159bc4a274d6fc23d698a49c6ca982e36e5e5f57bbb">0caa35c24422</span></div>
++ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="133812343d0e491e5e228638062be0f8b1365b6d35e54b7c50b6ae70946d5fde">133812343d0e</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/agent-run.lifecycle.html#focus=approval" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>
@@@ -564,7 -564,7 +564,7 @@@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">12N · 15E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="1067d6d45c26beebdf08570907c1de8e21ec40fced46ef0b7b7372075ed64212">1067d6d45c26</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="1f80641525827df92fe3f6f07c55f5cfd55813f261d9dcba5e07db2cbd055bb7">1f8064152582</span></div>
++ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="1a39d0e565489c82ea03d8fcb2d87cd539e79384ff1ed920b6c2871d3b77d2a4">1a39d0e56548</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/deployment-release.lifecycle.html#focus=live" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>
@@@ -593,7 -593,7 +593,7 @@@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 9E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="577645b31c6df3d11812ba0ea6d7b73b9e28f174512087d2ba5680743c2466f2">577645b31c6d</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="aece9219ce23149b1c7bbe83461cad83cefc9c1bd60f489fecb0860d8853b775">aece9219ce23</span></div>
++ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="1393a633fe50bc266fa10285edc999e65d3646e395fa9846cb08b8bb358dee72">1393a633fe50</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/web-app.architecture.html#focus=api" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>
@@@ -622,7 -622,7 +622,7 @@@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">6N · 5E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="2e62f8717a522ae5c0ae6a35f7e99e44fbe8331dc0efbe9d8944768185bed3ad">2e62f8717a52</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="da41083fadf5ba13ea094c312023413b4aeb19b6955fd39b5034bf6949c843b2">da41083fadf5</span></div>
++ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="050d596c34e1948e7670fc3f222898019e469973d97e7255cd0ddb9d52b2d22e">050d596c34e1</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/orders.erd.html#focus=order" target="_blank" rel="noopener" data-en="Explore focus ↗" data-zh="探索聚焦路径 ↗">Explore focus ↗</a>
@@@ -701,8 -701,8 +701,8 @@@ receipt 108 checks / 12 artifacts / det
"engineeringProfile": null,
"nodeCount": 12,
"edgeCount": 11,
- "artifactBytes": 802205,
- "artifactSha256": "6c808c79ea6acc5757a20c6d448dd915a583afb8448b0b2c97bfd984ec89ee7e",
- "artifactBytes": 802608,
- "artifactSha256": "67eef44243ec368d337aaf6dbbc2f215f2b2498b37f46c6e5751247b2bbb7bf4",
++ "artifactBytes": 802306,
++ "artifactSha256": "eb3a11e1285ec8c6583c05b4ee2c1c2629ab6b1679600ef15cb3fc2b5f0ee9f7",
"sourceBytes": 4939,
"sourceSha256": "d67965d50872c97e4ff3476271e645bf19fab6b3ab44e111bdb44b063e3aa36f",
"checks": [
@@@ -836,8 -836,8 +836,8 @@@
"engineeringProfile": "deployment-ownership",
"nodeCount": 12,
"edgeCount": 12,
- "artifactBytes": 804917,
- "artifactSha256": "2b41b5723467e440e0b6be248b881f5af93e000019faa005bdbc11c55cd61d1a",
- "artifactBytes": 805320,
- "artifactSha256": "c7b32559c63819b38a51ecdf4daf299535eff18cf051620cb3e11636d255fe06",
++ "artifactBytes": 805018,
++ "artifactSha256": "1548080b0bc70c32e76fe360fc037312096cd1976388579dfe2ce930cab7e7d2",
"sourceBytes": 4734,
"sourceSha256": "610a5614667e8f108bdcf1769c9d7af5c3ce0fb62be3ea50550b10eb752e4bda",
"checks": [
@@@ -969,8 -969,8 +969,8 @@@
"engineeringProfile": null,
"nodeCount": 7,
"edgeCount": 12,
- "artifactBytes": 796736,
- "artifactSha256": "441085ea28e432a0e501047662677c85907a6ef1a3f963a64c581c3e6a8503a4",
- "artifactBytes": 797139,
- "artifactSha256": "9b3622681c99480c56f784d2651f24c71abf810dd1ab4764b389f26cae999abf",
++ "artifactBytes": 796837,
++ "artifactSha256": "8ad984c9e30e9447afef71e4ada4f647a88badf3cb862a6b8385cf9ab9d15846",
"sourceBytes": 3805,
"sourceSha256": "f8486daa803fff6c295cecca4604c561fbbf9acb2e83326022b5a87639e8afe6",
"checks": [
@@@ -1103,8 -1103,8 +1103,8 @@@
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 10,
- "artifactBytes": 797713,
- "artifactSha256": "233ca764c07a7ab2cd60c1f2552d264d996354bd6b7748d0ebdedb6e459afc4f",
- "artifactBytes": 798116,
- "artifactSha256": "6ce928b54a1a89caa7a423222198c099c9eea101d81cde909d4946fe4a4f412f",
++ "artifactBytes": 797814,
++ "artifactSha256": "b9e0c6026bce28d7b98db2443aa772b6208671fb411cc1d1dc29023ce9b438e6",
"sourceBytes": 4510,
"sourceSha256": "dbd5c174af66296caec372e7214cf4df7158b50a563508e16826b95ab8d1cd6c",
"checks": [
@@@ -1243,8 -1243,8 +1243,8 @@@
"engineeringProfile": null,
"nodeCount": 11,
"edgeCount": 10,
- "artifactBytes": 795033,
- "artifactSha256": "848b2439dbc386d344b0f64447923fe97cac149ef66f48ffd2d0aa1ad203f086",
- "artifactBytes": 795436,
- "artifactSha256": "c65abfca395fb799fd145b8d15fa5cfa9a6dd4ab19c5d21945cab893a3f1ec5a",
++ "artifactBytes": 795134,
++ "artifactSha256": "cba0864492dae0cd435dac5a8b5af767d568e4e94f91c7ff74895e2a6057b665",
"sourceBytes": 4723,
"sourceSha256": "630be98449925d2716ecb8439f404b2bff5fe65ba905b0ad0baea6d96890c526",
"checks": [
@@@ -1429,8 -1429,8 +1429,8 @@@
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 10,
- "artifactBytes": 799025,
- "artifactSha256": "6bebcaee3838e2550f64890183e49a9cf3877a07125ee7d08e31c69fb4bc4ba1",
- "artifactBytes": 799428,
- "artifactSha256": "3afcc73b932faa4c7e214cadb755efc7e4689f9ad3a5b6a2763758fc4953d974",
++ "artifactBytes": 799126,
++ "artifactSha256": "65c05d384bcad503b362ff0c33d956bf34a9ee11f48a91c232f995703ad43351",
"sourceBytes": 5035,
"sourceSha256": "8a635db9e51a5b1a8d2955b9d66f5b9a450e0a298432ce8f2e2f0be11f372e05",
"checks": [
@@@ -1564,8 -1564,8 +1564,8 @@@
"engineeringProfile": null,
"nodeCount": 7,
"edgeCount": 14,
- "artifactBytes": 797082,
- "artifactSha256": "3831e8d5ad49e1ff199735ba7644461ffe53334e7b5f26217398cf2e2ac693b7",
- "artifactBytes": 797485,
- "artifactSha256": "36f9c84db5db9b6e30d4289d7847b1c00e283fc8393fd46fe609e0c5ac97a162",
++ "artifactBytes": 797183,
++ "artifactSha256": "8b1c35c8551b9695d171d83f31f92365820ee58c90998615d7278f3e946fcdca",
"sourceBytes": 3766,
"sourceSha256": "b8c6c52f1763ede2933c77deb8da59b3e06917bc41d27e66df896136456b859a",
"checks": [
@@@ -1716,8 -1716,8 +1716,8 @@@
"engineeringProfile": null,
"nodeCount": 12,
"edgeCount": 12,
- "artifactBytes": 802945,
- "artifactSha256": "29d2dbcee5a8d3b8cbb46505b1809171180438b04e78c550305b3cdd6311ec7c",
- "artifactBytes": 803348,
- "artifactSha256": "92545a6bd84e4353ae950f6bba377ed1dd2d6a65c081e16934039b61a612cfc0",
++ "artifactBytes": 803046,
++ "artifactSha256": "1c23e1d7b1d668f514a2baeff5d0c104d6c3d2964066be8d908f0925720a20dc",
"sourceBytes": 4769,
"sourceSha256": "3bdd77674282009c7c68d588cf8a3c495bc98a3be1b9c45327fd1801a6f83a23",
"checks": [
@@@ -1868,8 -1868,8 +1868,8 @@@
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 12,
- "artifactBytes": 803091,
- "artifactSha256": "ec2b777ee6ef6dcaadeaaab638bab6b921dd69898affb43d366de1b56e20bf64",
- "artifactBytes": 803494,
- "artifactSha256": "0caa35c244227214d4130159bc4a274d6fc23d698a49c6ca982e36e5e5f57bbb",
++ "artifactBytes": 803192,
++ "artifactSha256": "133812343d0e491e5e228638062be0f8b1365b6d35e54b7c50b6ae70946d5fde",
"sourceBytes": 3260,
"sourceSha256": "5ba36f5ce91ed428cb48b599e275424916d82b619b9a3231cbd1bbc3966fc54b",
"checks": [
@@@ -1990,8 -1990,8 +1990,8 @@@
"engineeringProfile": null,
"nodeCount": 12,
"edgeCount": 15,
- "artifactBytes": 809860,
- "artifactSha256": "1067d6d45c26beebdf08570907c1de8e21ec40fced46ef0b7b7372075ed64212",
- "artifactBytes": 810263,
- "artifactSha256": "1f80641525827df92fe3f6f07c55f5cfd55813f261d9dcba5e07db2cbd055bb7",
++ "artifactBytes": 809961,
++ "artifactSha256": "1a39d0e565489c82ea03d8fcb2d87cd539e79384ff1ed920b6c2871d3b77d2a4",
"sourceBytes": 4155,
"sourceSha256": "e3dc105d03c1c9881160006cdace23cb5d8533803e337caf0ec287c64e775275",
"checks": [
@@@ -2112,8 -2112,8 +2112,8 @@@
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 9,
- "artifactBytes": 797456,
- "artifactSha256": "577645b31c6df3d11812ba0ea6d7b73b9e28f174512087d2ba5680743c2466f2",
- "artifactBytes": 797859,
- "artifactSha256": "aece9219ce23149b1c7bbe83461cad83cefc9c1bd60f489fecb0860d8853b775",
++ "artifactBytes": 797557,
++ "artifactSha256": "1393a633fe50bc266fa10285edc999e65d3646e395fa9846cb08b8bb358dee72",
"sourceBytes": 3197,
"sourceSha256": "95e051b27a9e4a3307e194c0f666fca4af51470be7e2228d400ff48aea5b353b",
"checks": [
@@@ -2258,8 -2258,8 +2258,8 @@@
"engineeringProfile": null,
"nodeCount": 6,
"edgeCount": 5,
- "artifactBytes": 811673,
- "artifactSha256": "2e62f8717a522ae5c0ae6a35f7e99e44fbe8331dc0efbe9d8944768185bed3ad",
- "artifactBytes": 812076,
- "artifactSha256": "da41083fadf5ba13ea094c312023413b4aeb19b6955fd39b5034bf6949c843b2",
++ "artifactBytes": 811774,
++ "artifactSha256": "050d596c34e1948e7670fc3f222898019e469973d97e7255cd0ddb9d52b2d22e",
"sourceBytes": 7321,
"sourceSha256": "1777a374647084466f4d7ce3a968004be6ab70ac9cf82459b96bed7c556cdfdd",
"checks": [
diff --cc docs/gallery/artifacts/agent-run.lifecycle.html
index 62755204,533b6f53..8ecb16ab
--- a/docs/gallery/artifacts/agent-run.lifecycle.html
+++ b/docs/gallery/artifacts/agent-run.lifecycle.html
@@@ -14010,16 -14010,28 +14011,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc docs/gallery/artifacts/agent-tool-call.workflow.html
index 66c9b3cc,20851e0b..ccb2eae0
--- a/docs/gallery/artifacts/agent-tool-call.workflow.html
+++ b/docs/gallery/artifacts/agent-tool-call.workflow.html
@@@ -14004,16 -14004,28 +14005,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc docs/gallery/artifacts/async-job-roundtrip.sequence.html
index de38a06a,1dbd2337..8b457ddf
--- a/docs/gallery/artifacts/async-job-roundtrip.sequence.html
+++ b/docs/gallery/artifacts/async-job-roundtrip.sequence.html
@@@ -14025,16 -14025,28 +14026,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc docs/gallery/artifacts/cache-miss.sequence.html
index 99328ea8,c7d3bf7e..a0b6dde7
--- a/docs/gallery/artifacts/cache-miss.sequence.html
+++ b/docs/gallery/artifacts/cache-miss.sequence.html
@@@ -14013,16 -14013,28 +14014,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc docs/gallery/artifacts/deployment-release.lifecycle.html
index 23b6dfbf,dd84c2cc..0ef71b50
--- a/docs/gallery/artifacts/deployment-release.lifecycle.html
+++ b/docs/gallery/artifacts/deployment-release.lifecycle.html
@@@ -14074,16 -14074,28 +14075,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc docs/gallery/artifacts/event-stream.dataflow.html
index ef58dc73,34d945b9..90fd6c4a
--- a/docs/gallery/artifacts/event-stream.dataflow.html
+++ b/docs/gallery/artifacts/event-stream.dataflow.html
@@@ -14037,16 -14037,28 +14038,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc docs/gallery/artifacts/incident-response.workflow.html
index 23cdeb30,a192b1f4..72f6b28c
--- a/docs/gallery/artifacts/incident-response.workflow.html
+++ b/docs/gallery/artifacts/incident-response.workflow.html
@@@ -13964,16 -13964,28 +13965,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc docs/gallery/artifacts/orders.erd.html
index 9ef408f3,c0b891c9..47918433
--- a/docs/gallery/artifacts/orders.erd.html
+++ b/docs/gallery/artifacts/orders.erd.html
@@@ -14166,16 -14166,28 +14167,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc docs/gallery/artifacts/product-analytics.dataflow.html
index 03974fa7,a03999b6..20e47dcd
--- a/docs/gallery/artifacts/product-analytics.dataflow.html
+++ b/docs/gallery/artifacts/product-analytics.dataflow.html
@@@ -13998,16 -13998,28 +13999,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc docs/gallery/artifacts/production-deployment.architecture.html
index b81fa71a,cfe9337d..d9047ea1
--- a/docs/gallery/artifacts/production-deployment.architecture.html
+++ b/docs/gallery/artifacts/production-deployment.architecture.html
@@@ -14041,16 -14041,28 +14042,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc docs/gallery/artifacts/release-delivery.workflow.html
index 0b9ce201,b62acd10..91feea63
--- a/docs/gallery/artifacts/release-delivery.workflow.html
+++ b/docs/gallery/artifacts/release-delivery.workflow.html
@@@ -13990,16 -13990,28 +13991,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc docs/gallery/artifacts/web-app.architecture.html
index 098b319c,409707c5..2d513de9
--- a/docs/gallery/artifacts/web-app.architecture.html
+++ b/docs/gallery/artifacts/web-app.architecture.html
@@@ -13986,16 -13986,28 +13987,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc docs/gallery/manifest.json
index be28bc82,f66b6d54..a4d85ab1
--- a/docs/gallery/manifest.json
+++ b/docs/gallery/manifest.json
@@@ -19,8 -19,8 +19,8 @@@
"engineeringProfile": null,
"nodeCount": 12,
"edgeCount": 11,
- "artifactBytes": 802205,
- "artifactSha256": "6c808c79ea6acc5757a20c6d448dd915a583afb8448b0b2c97bfd984ec89ee7e",
- "artifactBytes": 802608,
- "artifactSha256": "67eef44243ec368d337aaf6dbbc2f215f2b2498b37f46c6e5751247b2bbb7bf4",
++ "artifactBytes": 802306,
++ "artifactSha256": "eb3a11e1285ec8c6583c05b4ee2c1c2629ab6b1679600ef15cb3fc2b5f0ee9f7",
"sourceBytes": 4939,
"sourceSha256": "d67965d50872c97e4ff3476271e645bf19fab6b3ab44e111bdb44b063e3aa36f",
"checks": [
@@@ -154,8 -154,8 +154,8 @@@
"engineeringProfile": "deployment-ownership",
"nodeCount": 12,
"edgeCount": 12,
- "artifactBytes": 804917,
- "artifactSha256": "2b41b5723467e440e0b6be248b881f5af93e000019faa005bdbc11c55cd61d1a",
- "artifactBytes": 805320,
- "artifactSha256": "c7b32559c63819b38a51ecdf4daf299535eff18cf051620cb3e11636d255fe06",
++ "artifactBytes": 805018,
++ "artifactSha256": "1548080b0bc70c32e76fe360fc037312096cd1976388579dfe2ce930cab7e7d2",
"sourceBytes": 4734,
"sourceSha256": "610a5614667e8f108bdcf1769c9d7af5c3ce0fb62be3ea50550b10eb752e4bda",
"checks": [
@@@ -287,8 -287,8 +287,8 @@@
"engineeringProfile": null,
"nodeCount": 7,
"edgeCount": 12,
- "artifactBytes": 796736,
- "artifactSha256": "441085ea28e432a0e501047662677c85907a6ef1a3f963a64c581c3e6a8503a4",
- "artifactBytes": 797139,
- "artifactSha256": "9b3622681c99480c56f784d2651f24c71abf810dd1ab4764b389f26cae999abf",
++ "artifactBytes": 796837,
++ "artifactSha256": "8ad984c9e30e9447afef71e4ada4f647a88badf3cb862a6b8385cf9ab9d15846",
"sourceBytes": 3805,
"sourceSha256": "f8486daa803fff6c295cecca4604c561fbbf9acb2e83326022b5a87639e8afe6",
"checks": [
@@@ -421,8 -421,8 +421,8 @@@
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 10,
- "artifactBytes": 797713,
- "artifactSha256": "233ca764c07a7ab2cd60c1f2552d264d996354bd6b7748d0ebdedb6e459afc4f",
- "artifactBytes": 798116,
- "artifactSha256": "6ce928b54a1a89caa7a423222198c099c9eea101d81cde909d4946fe4a4f412f",
++ "artifactBytes": 797814,
++ "artifactSha256": "b9e0c6026bce28d7b98db2443aa772b6208671fb411cc1d1dc29023ce9b438e6",
"sourceBytes": 4510,
"sourceSha256": "dbd5c174af66296caec372e7214cf4df7158b50a563508e16826b95ab8d1cd6c",
"checks": [
@@@ -561,8 -561,8 +561,8 @@@
"engineeringProfile": null,
"nodeCount": 11,
"edgeCount": 10,
- "artifactBytes": 795033,
- "artifactSha256": "848b2439dbc386d344b0f64447923fe97cac149ef66f48ffd2d0aa1ad203f086",
- "artifactBytes": 795436,
- "artifactSha256": "c65abfca395fb799fd145b8d15fa5cfa9a6dd4ab19c5d21945cab893a3f1ec5a",
++ "artifactBytes": 795134,
++ "artifactSha256": "cba0864492dae0cd435dac5a8b5af767d568e4e94f91c7ff74895e2a6057b665",
"sourceBytes": 4723,
"sourceSha256": "630be98449925d2716ecb8439f404b2bff5fe65ba905b0ad0baea6d96890c526",
"checks": [
@@@ -747,8 -747,8 +747,8 @@@
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 10,
- "artifactBytes": 799025,
- "artifactSha256": "6bebcaee3838e2550f64890183e49a9cf3877a07125ee7d08e31c69fb4bc4ba1",
- "artifactBytes": 799428,
- "artifactSha256": "3afcc73b932faa4c7e214cadb755efc7e4689f9ad3a5b6a2763758fc4953d974",
++ "artifactBytes": 799126,
++ "artifactSha256": "65c05d384bcad503b362ff0c33d956bf34a9ee11f48a91c232f995703ad43351",
"sourceBytes": 5035,
"sourceSha256": "8a635db9e51a5b1a8d2955b9d66f5b9a450e0a298432ce8f2e2f0be11f372e05",
"checks": [
@@@ -882,8 -882,8 +882,8 @@@
"engineeringProfile": null,
"nodeCount": 7,
"edgeCount": 14,
- "artifactBytes": 797082,
- "artifactSha256": "3831e8d5ad49e1ff199735ba7644461ffe53334e7b5f26217398cf2e2ac693b7",
- "artifactBytes": 797485,
- "artifactSha256": "36f9c84db5db9b6e30d4289d7847b1c00e283fc8393fd46fe609e0c5ac97a162",
++ "artifactBytes": 797183,
++ "artifactSha256": "8b1c35c8551b9695d171d83f31f92365820ee58c90998615d7278f3e946fcdca",
"sourceBytes": 3766,
"sourceSha256": "b8c6c52f1763ede2933c77deb8da59b3e06917bc41d27e66df896136456b859a",
"checks": [
@@@ -1034,8 -1034,8 +1034,8 @@@
"engineeringProfile": null,
"nodeCount": 12,
"edgeCount": 12,
- "artifactBytes": 802945,
- "artifactSha256": "29d2dbcee5a8d3b8cbb46505b1809171180438b04e78c550305b3cdd6311ec7c",
- "artifactBytes": 803348,
- "artifactSha256": "92545a6bd84e4353ae950f6bba377ed1dd2d6a65c081e16934039b61a612cfc0",
++ "artifactBytes": 803046,
++ "artifactSha256": "1c23e1d7b1d668f514a2baeff5d0c104d6c3d2964066be8d908f0925720a20dc",
"sourceBytes": 4769,
"sourceSha256": "3bdd77674282009c7c68d588cf8a3c495bc98a3be1b9c45327fd1801a6f83a23",
"checks": [
@@@ -1186,8 -1186,8 +1186,8 @@@
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 12,
- "artifactBytes": 803091,
- "artifactSha256": "ec2b777ee6ef6dcaadeaaab638bab6b921dd69898affb43d366de1b56e20bf64",
- "artifactBytes": 803494,
- "artifactSha256": "0caa35c244227214d4130159bc4a274d6fc23d698a49c6ca982e36e5e5f57bbb",
++ "artifactBytes": 803192,
++ "artifactSha256": "133812343d0e491e5e228638062be0f8b1365b6d35e54b7c50b6ae70946d5fde",
"sourceBytes": 3260,
"sourceSha256": "5ba36f5ce91ed428cb48b599e275424916d82b619b9a3231cbd1bbc3966fc54b",
"checks": [
@@@ -1308,8 -1308,8 +1308,8 @@@
"engineeringProfile": null,
"nodeCount": 12,
"edgeCount": 15,
- "artifactBytes": 809860,
- "artifactSha256": "1067d6d45c26beebdf08570907c1de8e21ec40fced46ef0b7b7372075ed64212",
- "artifactBytes": 810263,
- "artifactSha256": "1f80641525827df92fe3f6f07c55f5cfd55813f261d9dcba5e07db2cbd055bb7",
++ "artifactBytes": 809961,
++ "artifactSha256": "1a39d0e565489c82ea03d8fcb2d87cd539e79384ff1ed920b6c2871d3b77d2a4",
"sourceBytes": 4155,
"sourceSha256": "e3dc105d03c1c9881160006cdace23cb5d8533803e337caf0ec287c64e775275",
"checks": [
@@@ -1430,8 -1430,8 +1430,8 @@@
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 9,
- "artifactBytes": 797456,
- "artifactSha256": "577645b31c6df3d11812ba0ea6d7b73b9e28f174512087d2ba5680743c2466f2",
- "artifactBytes": 797859,
- "artifactSha256": "aece9219ce23149b1c7bbe83461cad83cefc9c1bd60f489fecb0860d8853b775",
++ "artifactBytes": 797557,
++ "artifactSha256": "1393a633fe50bc266fa10285edc999e65d3646e395fa9846cb08b8bb358dee72",
"sourceBytes": 3197,
"sourceSha256": "95e051b27a9e4a3307e194c0f666fca4af51470be7e2228d400ff48aea5b353b",
"checks": [
@@@ -1576,8 -1576,8 +1576,8 @@@
"engineeringProfile": null,
"nodeCount": 6,
"edgeCount": 5,
- "artifactBytes": 811673,
- "artifactSha256": "2e62f8717a522ae5c0ae6a35f7e99e44fbe8331dc0efbe9d8944768185bed3ad",
- "artifactBytes": 812076,
- "artifactSha256": "da41083fadf5ba13ea094c312023413b4aeb19b6955fd39b5034bf6949c843b2",
++ "artifactBytes": 811774,
++ "artifactSha256": "050d596c34e1948e7670fc3f222898019e469973d97e7255cd0ddb9d52b2d22e",
"sourceBytes": 7321,
"sourceSha256": "1777a374647084466f4d7ce3a968004be6ab70ac9cf82459b96bed7c556cdfdd",
"checks": [
diff --cc examples/archify-repo-grid.html
index 3aa99658,79b77606..3a841498
--- a/examples/archify-repo-grid.html
+++ b/examples/archify-repo-grid.html
@@@ -5139,7 -5139,7 +5139,7 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
<!-- Main Diagram -->
<div class="diagram-container" data-detail-level="read"
data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">
-- <svg viewBox="0 0 1064 356" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="standard" data-quality-gates="advisory" data-reader-fit="intrinsic-height" data-reader-min-text="7.5" data-reader-primary-text="14">
++<svg viewBox="0 0 1064 356" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="standard" data-quality-gates="advisory" data-reader-fit="intrinsic-height" data-reader-min-text="7.5" data-reader-primary-text="14">
<title id="archify-diagram-title">Archify Pipeline</title>
<desc id="archify-diagram-description">Grid placement demo — row/col instead of manual pos</desc>
<!-- Definitions -->
@@@ -5531,8 -5531,8 +5531,7 @@@
<button class="rail-control" id="rail-placement" type="button" hidden aria-label="Move panel below the diagram" title="Move panel below the diagram" data-placement="right"><span class="rail-control-icon placement" aria-hidden="true"></span></button>
<button class="rail-control" id="rail-collapse" type="button" hidden aria-controls="reader-rail" aria-expanded="true" aria-label="Collapse side panel" title="Collapse side panel"><span class="rail-control-icon collapse" aria-hidden="true"></span></button>
</div>
-- <!-- Info Cards -->
-- <div class="cards">
++<div class="cards">
<div class="card">
<div class="card-header">
<div class="card-dot cyan"></div>
@@@ -13930,16 -13930,28 +13930,16 @@@
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc examples/archify-repo.html
index 8ce76f59,87ca96ed..99e309aa
--- a/examples/archify-repo.html
+++ b/examples/archify-repo.html
@@@ -5139,7 -5139,7 +5139,7 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
<!-- Main Diagram -->
<div class="diagram-container" data-detail-level="read"
data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">
-- <svg viewBox="0 0 1340 568" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="standard" data-quality-gates="advisory" data-reader-fit="intrinsic-height" data-reader-min-text="7.5" data-reader-primary-text="14">
++<svg viewBox="0 0 1340 568" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="standard" data-quality-gates="advisory" data-reader-fit="intrinsic-height" data-reader-min-text="7.5" data-reader-primary-text="14">
<title id="archify-diagram-title">Archify</title>
<desc id="archify-diagram-description">Agent skill → JSON IR → typed renderers → standalone HTML</desc>
<!-- Definitions -->
@@@ -5575,8 -5575,8 +5575,7 @@@
<button class="rail-control" id="rail-placement" type="button" hidden aria-label="Move panel below the diagram" title="Move panel below the diagram" data-placement="right"><span class="rail-control-icon placement" aria-hidden="true"></span></button>
<button class="rail-control" id="rail-collapse" type="button" hidden aria-controls="reader-rail" aria-expanded="true" aria-label="Collapse side panel" title="Collapse side panel"><span class="rail-control-icon collapse" aria-hidden="true"></span></button>
</div>
-- <!-- Info Cards -->
-- <div class="cards">
++<div class="cards">
<div class="card">
<div class="card-header">
<div class="card-dot cyan"></div>
@@@ -13998,16 -13998,28 +13998,16 @@@
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc examples/checkout-platform-delta.html
index e0809163,b2917125..489a942a
--- a/examples/checkout-platform-delta.html
+++ b/examples/checkout-platform-delta.html
@@@ -18788,16 -18788,28 +18789,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement(&#39;textarea&#39;);
- field.value = value;
- field.setAttribute(&#39;readonly&#39;, &#39;&#39;);
- field.style.position = &#39;fixed&#39;;
- field.style.opacity = &#39;0&#39;;
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand(&#39;copy&#39;); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, &#39;&#39;) + &#39;#lens=&#39; + selectedKinds.map(encodeURIComponent).join(&#39;~&#39;);
- var copy = navigator.clipboard &amp;&amp; typeof navigator.clipboard.writeText === &#39;function&#39;
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink(&#39;lens=&#39; + selectedKinds.map(encodeURIComponent).join(&#39;~&#39;));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? &#39;viewer.common.copied&#39; : &#39;viewer.common.copyFailed&#39;);
- copyBtn.setAttribute(&#39;aria-label&#39;, viewerText(copied ? &#39;viewer.lens.copy&#39; : &#39;viewer.common.copyFailed&#39;));
- window.setTimeout(function () { copyBtn.textContent = viewerText(&#39;viewer.common.copyLink&#39;); }, 1600);
++ copyBtn.setAttribute(&#39;aria-label&#39;, viewerText(copied ? &#39;viewer.common.copied&#39; : &#39;viewer.common.copyFailed&#39;));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText(&#39;viewer.common.copyLink&#39;);
+ copyBtn.setAttribute(&#39;aria-label&#39;, viewerText(&#39;viewer.lens.copy&#39;));
+ }, 1600);
return copied;
});
}
@@@ -33426,16 -33438,28 +33428,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement(&#39;textarea&#39;);
- field.value = value;
- field.setAttribute(&#39;readonly&#39;, &#39;&#39;);
- field.style.position = &#39;fixed&#39;;
- field.style.opacity = &#39;0&#39;;
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand(&#39;copy&#39;); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, &#39;&#39;) + &#39;#lens=&#39; + selectedKinds.map(encodeURIComponent).join(&#39;~&#39;);
- var copy = navigator.clipboard &amp;&amp; typeof navigator.clipboard.writeText === &#39;function&#39;
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink(&#39;lens=&#39; + selectedKinds.map(encodeURIComponent).join(&#39;~&#39;));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? &#39;viewer.common.copied&#39; : &#39;viewer.common.copyFailed&#39;);
- copyBtn.setAttribute(&#39;aria-label&#39;, viewerText(copied ? &#39;viewer.lens.copy&#39; : &#39;viewer.common.copyFailed&#39;));
- window.setTimeout(function () { copyBtn.textContent = viewerText(&#39;viewer.common.copyLink&#39;); }, 1600);
++ copyBtn.setAttribute(&#39;aria-label&#39;, viewerText(copied ? &#39;viewer.common.copied&#39; : &#39;viewer.common.copyFailed&#39;));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText(&#39;viewer.common.copyLink&#39;);
+ copyBtn.setAttribute(&#39;aria-label&#39;, viewerText(&#39;viewer.lens.copy&#39;));
+ }, 1600);
return copied;
});
}
diff --cc examples/checkout-platform-delta.receipt.json
index 2910e34b,a1accab8..34dc6aa9
--- a/examples/checkout-platform-delta.receipt.json
+++ b/examples/checkout-platform-delta.receipt.json
@@@ -219,8 -219,8 +219,8 @@@
"Boundary identity is conservatively derived from kind + label."
],
"artifact": {
- "sha256": "7138fe0526c6ee4058b0bf16ad82b085b77cbebfad63ae0d55ff471954c54b87",
- "bytes": 2217590
- "sha256": "60f5a62251647a3a8bd9fc22071ba59f115b98b604228c2f0e7b7725bf8a51a6",
- "bytes": 2218486
++ "sha256": "c15eaccbc2bf574d20057fc4bfa9c88a8f2f0c228484fdcfa0cefe085abf26c5",
++ "bytes": 2217840
},
"validation": {
"checksPassed": 28,
diff --cc examples/class-payment-processors-rendered.html
index edfa1ea3,f7995190..fa49191e
--- a/examples/class-payment-processors-rendered.html
+++ b/examples/class-payment-processors-rendered.html
@@@ -14078,16 -14078,28 +14079,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc examples/class-payments-rendered.html
index 4c5e3264,6e6ff735..bc587821
--- a/examples/class-payments-rendered.html
+++ b/examples/class-payments-rendered.html
@@@ -13884,16 -13884,28 +13885,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc examples/dataflow-product-analytics.html
index 03974fa7,a03999b6..20e47dcd
--- a/examples/dataflow-product-analytics.html
+++ b/examples/dataflow-product-analytics.html
@@@ -13998,16 -13998,28 +13999,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc examples/erd-orders-rendered.html
index 9ef408f3,c0b891c9..47918433
--- a/examples/erd-orders-rendered.html
+++ b/examples/erd-orders-rendered.html
@@@ -14166,16 -14166,28 +14167,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc examples/lifecycle-agent-run.html
index 62755204,533b6f53..8ecb16ab
--- a/examples/lifecycle-agent-run.html
+++ b/examples/lifecycle-agent-run.html
@@@ -14010,16 -14010,28 +14011,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc examples/maka-architecture.html
index 458b7339,90783f64..2916c2d9
--- a/examples/maka-architecture.html
+++ b/examples/maka-architecture.html
@@@ -5139,7 -5139,7 +5139,7 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
<!-- Main Diagram -->
<div class="diagram-container" data-detail-level="read"
data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">
-- <svg viewBox="0 0 1200 608" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="standard" data-quality-gates="advisory" data-reader-fit="intrinsic-height" data-reader-min-text="7.5" data-reader-primary-text="14">
++<svg viewBox="0 0 1200 608" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="standard" data-quality-gates="advisory" data-reader-fit="intrinsic-height" data-reader-min-text="7.5" data-reader-primary-text="14">
<title id="archify-diagram-title">Maka</title>
<desc id="archify-diagram-description">Local-first desktop AI workbench — sessions, tools, permissions, recovery</desc>
<!-- Definitions -->
@@@ -5604,8 -5604,8 +5604,7 @@@
<button class="rail-control" id="rail-placement" type="button" hidden aria-label="Move panel below the diagram" title="Move panel below the diagram" data-placement="right"><span class="rail-control-icon placement" aria-hidden="true"></span></button>
<button class="rail-control" id="rail-collapse" type="button" hidden aria-controls="reader-rail" aria-expanded="true" aria-label="Collapse side panel" title="Collapse side panel"><span class="rail-control-icon collapse" aria-hidden="true"></span></button>
</div>
-- <!-- Info Cards -->
-- <div class="cards">
++<div class="cards">
<div class="card">
<div class="card-header">
<div class="card-dot cyan"></div>
@@@ -14027,16 -14027,28 +14027,16 @@@
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc examples/sequence-cache-miss-request.html
index 99328ea8,c7d3bf7e..a0b6dde7
--- a/examples/sequence-cache-miss-request.html
+++ b/examples/sequence-cache-miss-request.html
@@@ -14013,16 -14013,28 +14014,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc examples/subscription-billing-rendered.html
index 9eeb82bf,7e1cf233..5565c6cf
--- a/examples/subscription-billing-rendered.html
+++ b/examples/subscription-billing-rendered.html
@@@ -14390,16 -14390,28 +14391,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc examples/timeline-archify-dev-activity-rendered.html
index 00ac5b80,40bacca8..eef3bb4e
--- a/examples/timeline-archify-dev-activity-rendered.html
+++ b/examples/timeline-archify-dev-activity-rendered.html
@@@ -14090,16 -14090,28 +14091,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc examples/timeline-payment-incident-rendered.html
index 7b22aa26,063ba2f7..55b3fd5f
--- a/examples/timeline-payment-incident-rendered.html
+++ b/examples/timeline-payment-incident-rendered.html
@@@ -13875,16 -13875,28 +13876,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc examples/tree-archify-repository-rendered.html
index 06925676,fc61c398..79625c12
--- a/examples/tree-archify-repository-rendered.html
+++ b/examples/tree-archify-repository-rendered.html
@@@ -14109,16 -14109,28 +14110,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc examples/tree-payment-platform-rendered.html
index 2de0cdea,48dc374d..cc32ec90
--- a/examples/tree-payment-platform-rendered.html
+++ b/examples/tree-payment-platform-rendered.html
@@@ -13890,16 -13890,28 +13891,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc examples/waterfall-checkout-request-rendered.html
index 26199d49,f5d9cdd5..cbf9cff5
--- a/examples/waterfall-checkout-request-rendered.html
+++ b/examples/waterfall-checkout-request-rendered.html
@@@ -13872,16 -13872,28 +13873,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc examples/waterfall-example-rebuild-rendered.html
index c072a936,28788147..18740750
--- a/examples/waterfall-example-rebuild-rendered.html
+++ b/examples/waterfall-example-rebuild-rendered.html
@@@ -14058,16 -14058,28 +14059,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc examples/web-app-rendered.html
index 098b319c,409707c5..2d513de9
--- a/examples/web-app-rendered.html
+++ b/examples/web-app-rendered.html
@@@ -13986,16 -13986,28 +13987,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc examples/web-app.html
index a3fa3014,5835159c..9717e680
--- a/examples/web-app.html
+++ b/examples/web-app.html
@@@ -13985,16 -13985,28 +13986,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}
diff --cc examples/workflow-agent-tool-call-rendered.html
index 66c9b3cc,20851e0b..ccb2eae0
--- a/examples/workflow-agent-tool-call-rendered.html
+++ b/examples/workflow-agent-tool-call-rendered.html
@@@ -14004,16 -14004,28 +14005,16 @@@ OTHER DEALINGS IN THE FONT SOFTWARE
if (options.closePanel === true) close({ restoreFocus: false });
return false;
}
- function fallbackCopy(value) {
- var field = document.createElement('textarea');
- field.value = value;
- field.setAttribute('readonly', '');
- field.style.position = 'fixed';
- field.style.opacity = '0';
- document.body.appendChild(field);
- field.select();
- var copied = false;
- try { copied = document.execCommand('copy'); } catch (_) {}
- field.remove();
- return copied;
- }
function copyLink() {
if (!selectedKinds.length) return Promise.resolve(false);
- var value = location.href.replace(/#.*$/, '') + '#lens=' + selectedKinds.map(encodeURIComponent).join('~');
- var copy = navigator.clipboard && typeof navigator.clipboard.writeText === 'function'
- ? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); })
- : Promise.resolve(fallbackCopy(value));
- return copy.then(function (copied) {
+ var value = readerLink('lens=' + selectedKinds.map(encodeURIComponent).join('~'));
+ return (value === null ? Promise.resolve(false) : copyReaderText(value)).then(function (copied) {
copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');
- copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.lens.copy' : 'viewer.common.copyFailed'));
- window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);
++ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed'));
+ window.setTimeout(function () {
+ copyBtn.textContent = viewerText('viewer.common.copyLink');
+ copyBtn.setAttribute('aria-label', viewerText('viewer.lens.copy'));
+ }, 1600);
return copied;
});
}