@rebilly/instruments 12.26.0 → 12.27.0

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
- ## [12.26.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v12.25.2...instruments/core-v12.26.0) (2025-02-19)
1
+ ## [12.27.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v12.26.1...instruments/core-v12.27.0) (2025-02-20)
2
2
 
3
3
 
4
4
  ### Features
5
5
 
6
- * **api-metadata, rebilly-js-sdk:** Update resources based on latest api definitions ([#10169](https://github.com/Rebilly/rebilly/issues/10169)) ([718d048](https://github.com/Rebilly/rebilly/commit/718d048dc679d8233f5fa327aaf674f99f897dae))
6
+ * **api-metadata, rebilly-js-sdk:** Update resources based on latest api definitions ([#10207](https://github.com/Rebilly/rebilly/issues/10207)) ([9ffb3c7](https://github.com/Rebilly/rebilly/commit/9ffb3c7154892d90625e6657583bc814c2b9aa43))
package/dist/index.js CHANGED
@@ -6288,7 +6288,7 @@ function C$1({ options: e2 }) {
6288
6288
  }
6289
6289
  function o2() {
6290
6290
  const i = {
6291
- "REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@718d048`
6291
+ "REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@9ffb3c7`
6292
6292
  };
6293
6293
  return e2.apiKey && (i["REB-APIKEY"] = e2.apiKey), i;
6294
6294
  }
@@ -20633,14 +20633,17 @@ const setupStylesVars = () => {
20633
20633
  const styleVars = mainStyleVars(theme2 || {});
20634
20634
  addDOMElement({
20635
20635
  element: "style",
20636
- attributes: { type: "text/css" },
20636
+ attributes: { type: "text/css", "data-rebilly": "instruments-style" },
20637
20637
  content: minifyCss(styleVars),
20638
20638
  target: state.shadowRoot || "head"
20639
20639
  });
20640
20640
  if (css) {
20641
20641
  addDOMElement({
20642
20642
  element: "style",
20643
- attributes: { type: "text/css" },
20643
+ attributes: {
20644
+ type: "text/css",
20645
+ "data-rebilly": "instruments-style"
20646
+ },
20644
20647
  content: minifyCss(css),
20645
20648
  target: state.shadowRoot || "head"
20646
20649
  });
@@ -21369,6 +21372,12 @@ async function destroy() {
21369
21372
  });
21370
21373
  registeredListeners.removeAll();
21371
21374
  state.hasMounted = false;
21375
+ const styles = state.shadowRoot ? state.shadowRoot.querySelectorAll(
21376
+ '[data-rebilly="instruments-style"]'
21377
+ ) : document.querySelectorAll('[data-rebilly="instruments-style"]');
21378
+ styles.forEach((style) => {
21379
+ style.remove();
21380
+ });
21372
21381
  if (state.summary instanceof HTMLElement) {
21373
21382
  state.summary.textContent = "";
21374
21383
  }