mnfst 0.5.58 → 0.5.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/manifest.code.js +7 -0
- package/lib/manifest.colorpicker.css +399 -293
- package/lib/manifest.css +418 -298
- package/lib/manifest.dropdown.css +2 -2
- package/lib/manifest.dropdowns.js +57 -5
- package/lib/manifest.js +26 -39
- package/lib/manifest.min.css +1 -1
- package/lib/manifest.tooltips.js +240 -289
- package/lib/manifest.utilities.css +15 -1
- package/package.json +1 -1
package/lib/manifest.code.js
CHANGED
|
@@ -226,6 +226,13 @@ function initializeCodePlugin() {
|
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
setupCodeGroup() {
|
|
229
|
+
// Idempotency: if a tab header is already present (from prerender output
|
|
230
|
+
// or a previous connection), skip rebuilding it. Otherwise the DOM ends
|
|
231
|
+
// up with a doubled tab row when the static page rehydrates.
|
|
232
|
+
if (this.querySelector(':scope > header[aria-label="Code examples"]')) {
|
|
233
|
+
return;
|
|
234
|
+
}
|
|
235
|
+
|
|
229
236
|
// Find all x-code elements within this group
|
|
230
237
|
const codeElements = this.querySelectorAll('x-code');
|
|
231
238
|
|