@alipay/ams-checkout 0.0.1746673215-dev.1 → 0.0.1746673215-dev.3
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.
@@ -7,7 +7,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
7
7
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
8
8
|
import { EVENT } from "../../../../constant";
|
9
9
|
import { ServiceProvider } from "./../../../../foundation/service";
|
10
|
-
import {
|
10
|
+
import { isElementPC, isElementPad } from "../util";
|
11
11
|
import { DisplayTypeEnum, PlatformEnum, ProductSceneEnum } from "./../../../../types";
|
12
12
|
export var IContainerStatus = /*#__PURE__*/function (IContainerStatus) {
|
13
13
|
IContainerStatus["UNINIT"] = "UNINIT";
|
@@ -43,7 +43,7 @@ export var ContainerController = /*#__PURE__*/function () {
|
|
43
43
|
});
|
44
44
|
this.containerElement = this.containerService.load({
|
45
45
|
type: DisplayTypeEnum.inline,
|
46
|
-
platform:
|
46
|
+
platform: isElementPad() ? PlatformEnum.desktop : isElementPC() ? PlatformEnum.desktop : PlatformEnum.mobile,
|
47
47
|
isRetention: false,
|
48
48
|
selector: selector,
|
49
49
|
appendAliasContainerId: true,
|
@@ -5,7 +5,7 @@
|
|
5
5
|
* 1. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE; and
|
6
6
|
* 2. If applicable, the use of the Software is also subject to the terms and conditions of any non-disclosure agreement signed by you and the relevant Ant Group entity.
|
7
7
|
*/
|
8
|
-
import { ComponentActionNamesType } from '
|
8
|
+
import { ComponentActionNamesType } from '../../plugin/type';
|
9
9
|
import ComponentApp from '../../plugin/component';
|
10
10
|
import type { AMSCheckoutOptions, IAppendParams, InitSecurityConfig, IoptionsParams } from '../../types/index';
|
11
11
|
import { EventCenter } from '../../util/index';
|
package/esm/plugin/type.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { BusSubscriber } from '
|
1
|
+
import { BusSubscriber } from '../core/bus';
|
2
2
|
import { PaymentMethodCategoryTypeEnum, ProductSceneEnum, ProductSceneVersion } from '../types';
|
3
3
|
export type IExtendPlugin = IExtendPluginItem[];
|
4
4
|
export interface ComponentActionNamesType {
|