@alipay/ams-checkout 0.0.1726046231-dev.14 → 0.0.1726046231-dev.19
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/umd/ams-checkout.min.js +1 -1
- package/esm/core/component/element/components/address.js +1 -2
- package/esm/core/component/element/components/payment.js +1 -2
- package/esm/core/component/element/index.d.ts +1 -2
- package/esm/core/component/element/index.js +235 -204
- package/esm/foundation/index.d.ts +1 -0
- package/esm/plugin/component/component.inline.style.js +1 -1
- package/esm/plugin/component/index.js +6 -2
- package/package.json +1 -1
@@ -27,7 +27,6 @@ export var ElementAddressComponent = /*#__PURE__*/function () {
|
|
27
27
|
if (this.isConnect) {
|
28
28
|
elementContainer.style.display = 'none';
|
29
29
|
}
|
30
|
-
var selector = options.selector.indexOf('#') === 0 ? options.selector.slice(1) : options.selector;
|
31
30
|
return new Promise(function (resolve) {
|
32
31
|
_this.sdk.mountComponent({
|
33
32
|
sessionData: sessionData,
|
@@ -36,7 +35,7 @@ export var ElementAddressComponent = /*#__PURE__*/function () {
|
|
36
35
|
appearance: options.appearance,
|
37
36
|
prefillValue: options.prefillValue,
|
38
37
|
appendAliasContainerId: true
|
39
|
-
}, selector).then(function () {
|
38
|
+
}, options.selector).then(function () {
|
40
39
|
var _elementContainer$get;
|
41
40
|
_this.elementContainer = elementContainer;
|
42
41
|
var iframes = elementContainer === null || elementContainer === void 0 || (_elementContainer$get = elementContainer.getElementsByTagName) === null || _elementContainer$get === void 0 ? void 0 : _elementContainer$get.call(elementContainer, 'iframe');
|
@@ -34,14 +34,13 @@ export var ElementPaymentComponent = /*#__PURE__*/function () {
|
|
34
34
|
if (this.isConnect) {
|
35
35
|
elementContainer.style.display = 'none';
|
36
36
|
}
|
37
|
-
var selector = options.selector.indexOf('#') === 0 ? options.selector.slice(1) : options.selector;
|
38
37
|
return new Promise(function (resolve) {
|
39
38
|
_this.sdk.mountComponent({
|
40
39
|
sessionData: sessionData,
|
41
40
|
debugProps: options.debugProps,
|
42
41
|
notRedirectAfterComplete: true,
|
43
42
|
appendAliasContainerId: true
|
44
|
-
}, selector).then(function () {
|
43
|
+
}, options.selector).then(function () {
|
45
44
|
var _elementContainer$get;
|
46
45
|
_this.elementContainer = elementContainer;
|
47
46
|
var iframes = elementContainer === null || elementContainer === void 0 || (_elementContainer$get = elementContainer.getElementsByTagName) === null || _elementContainer$get === void 0 ? void 0 : _elementContainer$get.call(elementContainer, 'iframe');
|
@@ -23,11 +23,10 @@ export declare class ElementComponent {
|
|
23
23
|
constructor(options: IElementOptions);
|
24
24
|
private createElement;
|
25
25
|
private createIframeSrc;
|
26
|
-
private sdkActionQuery;
|
27
|
-
private oneAccountQuery;
|
28
26
|
private addListener;
|
29
27
|
private launchFunc;
|
30
28
|
private showIframe;
|
29
|
+
private afterInit;
|
31
30
|
private sendRenderData;
|
32
31
|
private removeListener;
|
33
32
|
private registerEventListener;
|