@rebilly/instruments 12.25.2 → 12.26.1
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 +6 -1
- package/dist/index.js +12 -3
- package/dist/index.min.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
## [12.
|
|
1
|
+
## [12.26.1](https://github.com/Rebilly/rebilly/compare/instruments/core-v12.26.0...instruments/core-v12.26.1) (2025-02-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **billing-portal, instruments:** Instruments style will not update the theme automatically ([#10189](https://github.com/Rebilly/rebilly/issues/10189)) ([96ff9a3](https://github.com/Rebilly/rebilly/commit/96ff9a39f3b8f28b39be3822aa207865a3c0c8e9))
|
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("/")}@
|
|
6291
|
+
"REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@96ff9a3`
|
|
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: {
|
|
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
|
}
|