@plaidev/karte-action-sdk 1.1.255-28836545.2567fb06 → 1.1.255-28867788.67db23bd
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/hydrate/index.es.js +10 -2
- package/dist/index.es.js +10 -2
- package/package.json +1 -1
package/dist/hydrate/index.es.js
CHANGED
@@ -12072,11 +12072,19 @@ const useClickable = ({ eventValue = {}, eventName = '', onClick, element = 'div
|
|
12072
12072
|
|
12073
12073
|
const useInjectCustomizeCss = (props) => {
|
12074
12074
|
function injectCss() {
|
12075
|
+
const modalElement = document.querySelector(`.${KARTE_MODAL_ROOT}`);
|
12075
12076
|
const style = document.createElement('style');
|
12076
12077
|
style.textContent = props.customizeCss;
|
12077
|
-
|
12078
|
+
if (modalElement?.shadowRoot) {
|
12079
|
+
modalElement.shadowRoot.appendChild(style);
|
12080
|
+
}
|
12081
|
+
else {
|
12082
|
+
document.head.appendChild(style);
|
12083
|
+
}
|
12078
12084
|
return () => {
|
12079
|
-
|
12085
|
+
modalElement?.shadowRoot
|
12086
|
+
? modalElement.shadowRoot.removeChild(style)
|
12087
|
+
: document.head.removeChild(style);
|
12080
12088
|
};
|
12081
12089
|
}
|
12082
12090
|
onMount$1(() => {
|
package/dist/index.es.js
CHANGED
@@ -11418,11 +11418,19 @@ const useClickable = ({ eventValue = {}, eventName = '', onClick, element = 'div
|
|
11418
11418
|
|
11419
11419
|
const useInjectCustomizeCss = (props) => {
|
11420
11420
|
function injectCss() {
|
11421
|
+
const modalElement = document.querySelector(`.${KARTE_MODAL_ROOT}`);
|
11421
11422
|
const style = document.createElement('style');
|
11422
11423
|
style.textContent = props.customizeCss;
|
11423
|
-
|
11424
|
+
if (modalElement?.shadowRoot) {
|
11425
|
+
modalElement.shadowRoot.appendChild(style);
|
11426
|
+
}
|
11427
|
+
else {
|
11428
|
+
document.head.appendChild(style);
|
11429
|
+
}
|
11424
11430
|
return () => {
|
11425
|
-
|
11431
|
+
modalElement?.shadowRoot
|
11432
|
+
? modalElement.shadowRoot.removeChild(style)
|
11433
|
+
: document.head.removeChild(style);
|
11426
11434
|
};
|
11427
11435
|
}
|
11428
11436
|
onMount$1(() => {
|