@paynext/sdk 0.0.65 → 0.0.66
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/dist/index.d.ts +0 -2
- package/dist/index.es.js +8 -9
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +23 -23
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -388,8 +388,6 @@ declare interface IPayPalButtonStyles {
|
|
|
388
388
|
styles?: PayPalButtonStyle;
|
|
389
389
|
}
|
|
390
390
|
|
|
391
|
-
export declare const isClient: boolean;
|
|
392
|
-
|
|
393
391
|
declare type Listener<TData> = (data: TData) => void;
|
|
394
392
|
|
|
395
393
|
export declare type Locale = 'ar' | 'en' | 'bg' | 'cs' | 'da' | 'de' | 'el' | 'es' | 'et' | 'fi' | 'fil' | 'fr' | 'hr' | 'hu' | 'id' | 'it' | 'ja' | 'ko' | 'lt' | 'lv' | 'ms' | 'ru' | 'mt' | 'nb' | 'no' | 'nl' | 'pl' | 'pt' | 'ro' | 'ua' | 'sk' | 'sl' | 'sv' | 'th' | 'tr' | 'vi' | 'zh';
|
package/dist/index.es.js
CHANGED
|
@@ -17886,30 +17886,29 @@ class Wu {
|
|
|
17886
17886
|
Object.values(this.state).forEach((e) => e.clearState());
|
|
17887
17887
|
}
|
|
17888
17888
|
}
|
|
17889
|
-
class
|
|
17889
|
+
class Ju {
|
|
17890
17890
|
constructor(e) {
|
|
17891
17891
|
A(this, "parent");
|
|
17892
|
-
A(this, "core"
|
|
17893
|
-
this.parent = e;
|
|
17892
|
+
A(this, "core");
|
|
17893
|
+
typeof window != "undefined" && (this.parent = e, this.core = new Wu());
|
|
17894
17894
|
}
|
|
17895
17895
|
mount(e) {
|
|
17896
17896
|
return H(this, null, function* () {
|
|
17897
|
+
if (!this.parent || !this.core)
|
|
17898
|
+
return;
|
|
17897
17899
|
const a = yield this.core.checkout.mount();
|
|
17898
17900
|
this.parent.innerHTML = "", this.parent.appendChild(a), this.core.state.checkout.setState(e);
|
|
17899
17901
|
});
|
|
17900
17902
|
}
|
|
17901
17903
|
unmount() {
|
|
17902
17904
|
return H(this, null, function* () {
|
|
17903
|
-
this.parent.innerHTML = "", this.core.clearState();
|
|
17905
|
+
!this.parent || !this.core || (this.parent.innerHTML = "", this.core.clearState());
|
|
17904
17906
|
});
|
|
17905
17907
|
}
|
|
17906
17908
|
}
|
|
17907
|
-
const $u = typeof window != "undefined";
|
|
17908
|
-
$u || console.debug("[paynext-sdk] SSR mode detected — client-only code skipped.");
|
|
17909
17909
|
export {
|
|
17910
17910
|
Wu as Core,
|
|
17911
|
-
|
|
17912
|
-
te as PaymentMethod
|
|
17913
|
-
$u as isClient
|
|
17911
|
+
Ju as PayNextCheckout,
|
|
17912
|
+
te as PaymentMethod
|
|
17914
17913
|
};
|
|
17915
17914
|
//# sourceMappingURL=index.es.js.map
|