@alipay/ams-checkout 0.0.1723203704-dev.3 → 0.0.1724309103-dev.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/dist/umd/ams-checkout.min.js +1 -1
- package/esm/config/index.d.ts +0 -1
- package/esm/config/index.js +0 -8
- package/esm/constant/index.d.ts +1 -10
- package/esm/constant/index.js +0 -9
- package/esm/core/component/ckp/index.d.ts +27 -0
- package/esm/core/component/ckp/index.js +152 -0
- package/esm/core/component/index.js +6 -14
- package/esm/index.d.ts +2 -12
- package/esm/index.js +2 -39
- package/esm/plugin/applepay/component.js +1 -1
- package/esm/plugin/component/cashierApp.d.ts +3 -3
- package/esm/plugin/component/cashierApp.js +3 -29
- package/esm/plugin/component/component.inline.style.d.ts +9 -8
- package/esm/plugin/component/component.inline.style.js +6 -87
- package/esm/plugin/component/component.popup.style.d.ts +0 -1
- package/esm/plugin/component/component.popup.style.js +0 -3
- package/esm/plugin/component/index.js +47 -59
- package/esm/plugin/component/popupWindow.style.d.ts +2 -5
- package/esm/plugin/component/popupWindow.style.js +7 -55
- package/esm/plugin/paypal/index.js +0 -1
- package/esm/plugin/type.d.ts +0 -1
- package/esm/types/index.d.ts +4 -11
- package/esm/types/index.js +2 -10
- package/esm/util/security.d.ts +0 -1
- package/esm/util/security.js +1 -1
- package/package.json +1 -1
- package/esm/core/component/address.d.ts +0 -34
- package/esm/core/component/address.js +0 -298
- package/esm/core/instance/address.d.ts +0 -76
- package/esm/core/instance/address.js +0 -283
- package/esm/plugin/address/cashierApp.d.ts +0 -34
- package/esm/plugin/address/cashierApp.js +0 -218
- package/esm/plugin/address/channel.d.ts +0 -20
- package/esm/plugin/address/channel.js +0 -52
- package/esm/plugin/address/component.inline.style.d.ts +0 -11
- package/esm/plugin/address/component.inline.style.js +0 -38
- package/esm/plugin/address/component.popup.style.d.ts +0 -16
- package/esm/plugin/address/component.popup.style.js +0 -174
- package/esm/plugin/address/index.d.ts +0 -108
- package/esm/plugin/address/index.js +0 -862
- package/esm/plugin/address/popupWindow.style.d.ts +0 -8
- package/esm/plugin/address/popupWindow.style.js +0 -65
- package/esm/plugin/payment-element/utils.d.ts +0 -2
- package/esm/plugin/payment-element/utils.js +0 -6
- package/esm/types/address.d.ts +0 -92
- package/esm/types/address.js +0 -7
@@ -1,283 +0,0 @@
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
2
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
3
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
4
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
5
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
6
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
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
|
-
/**
|
9
|
-
* Copyright (c) 2022 International Business Group, Ant Group. All rights reserved.
|
10
|
-
*
|
11
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, and/or distribute the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
12
|
-
* 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
|
13
|
-
* 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.
|
14
|
-
*/
|
15
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
16
|
-
|
17
|
-
import { v4 as uuid } from 'uuid';
|
18
|
-
import { ERRORMESSAGE, EVENT } from "../../constant";
|
19
|
-
import { environmentEnum, modeEnum, networkModeEnum, osTypeEnum, productSceneEnum, terminalTypeEnum } from "../../types/index";
|
20
|
-
import { device, EventCenter, getOrSetStorageId, getType, queryParse, safeJson } from "../../util/index";
|
21
|
-
import { LogConfig, Logger } from "../../util/logger";
|
22
|
-
import { getSecurityConfigStorageKey, getSecurityHost, getSecurityScene, Security, SecurityRegionEnum } from "../../util/security";
|
23
|
-
var AMSADDRESSSDK = /*#__PURE__*/function () {
|
24
|
-
function AMSADDRESSSDK(options) {
|
25
|
-
_classCallCheck(this, AMSADDRESSSDK);
|
26
|
-
_defineProperty(this, "options", void 0);
|
27
|
-
_defineProperty(this, "originOptions", void 0);
|
28
|
-
_defineProperty(this, "logger", void 0);
|
29
|
-
_defineProperty(this, "_eventCenter", void 0);
|
30
|
-
_defineProperty(this, "_instanceId", void 0);
|
31
|
-
_defineProperty(this, "_storageId", void 0);
|
32
|
-
_defineProperty(this, "_appendParams", void 0);
|
33
|
-
_defineProperty(this, "securitySdkMap", void 0);
|
34
|
-
_defineProperty(this, "plugins", void 0);
|
35
|
-
this._instanceId = uuid();
|
36
|
-
this.originOptions = options;
|
37
|
-
this.options = {};
|
38
|
-
this._eventCenter = new EventCenter();
|
39
|
-
this._initEvent(options);
|
40
|
-
this._setOptions(options);
|
41
|
-
this.plugins = new Map();
|
42
|
-
this.securitySdkMap = new Map();
|
43
|
-
var storageIdKey = 'AMSADDRESSSDK_STORAGE_ID';
|
44
|
-
var _storageId = getOrSetStorageId(storageIdKey);
|
45
|
-
if (!_storageId) {
|
46
|
-
getOrSetStorageId(storageIdKey, this._instanceId);
|
47
|
-
_storageId = this._instanceId;
|
48
|
-
}
|
49
|
-
this._storageId = _storageId;
|
50
|
-
|
51
|
-
// TODO Consumption data analysis control parameters
|
52
|
-
this.logger = new Logger(LogConfig, ![environmentEnum.prod, environmentEnum.sandbox].includes(options === null || options === void 0 ? void 0 : options.environment));
|
53
|
-
Logger.setInstance(this.logger);
|
54
|
-
this.logger.setMedta({
|
55
|
-
instanceId: this._instanceId
|
56
|
-
});
|
57
|
-
this.logger.initTracker();
|
58
|
-
this.logger.setComponentStartTime(Date.now());
|
59
|
-
this.logger.setTrackId(this._instanceId);
|
60
|
-
this.logger.logInfo({
|
61
|
-
title: 'NEW_ADDRESSSDK_BY_MECHANT',
|
62
|
-
msg: "".concat(options === null || options === void 0 ? void 0 : options.environment, "_").concat(options === null || options === void 0 ? void 0 : options.locale)
|
63
|
-
}).send();
|
64
|
-
this.preInitSecurity(options);
|
65
|
-
}
|
66
|
-
_createClass(AMSADDRESSSDK, [{
|
67
|
-
key: "preInitSecurity",
|
68
|
-
value: function preInitSecurity(options) {
|
69
|
-
var product = productSceneEnum.ELEMENT_ADDRESS;
|
70
|
-
this.initSecurity({
|
71
|
-
product: product
|
72
|
-
});
|
73
|
-
}
|
74
|
-
/**
|
75
|
-
* @description init security SDK
|
76
|
-
* @param product Product Scenarios
|
77
|
-
* @param scene Scenario of the product (compatible with old version parameters, about to be deleted)
|
78
|
-
*/
|
79
|
-
}, {
|
80
|
-
key: "initSecurity",
|
81
|
-
value: function initSecurity(_ref) {
|
82
|
-
var _this = this;
|
83
|
-
var _ref$product = _ref.product,
|
84
|
-
product = _ref$product === void 0 ? productSceneEnum.ELEMENT_ADDRESS : _ref$product,
|
85
|
-
_ref$scene = _ref.scene,
|
86
|
-
scene = _ref$scene === void 0 ? productSceneEnum.ELEMENT_ADDRESS : _ref$scene;
|
87
|
-
this.logger.logInfo({
|
88
|
-
title: 'sdk_event_securitySdkPreInit'
|
89
|
-
}, {
|
90
|
-
product: product
|
91
|
-
}).send();
|
92
|
-
var sdk = this._getSecuritySDKByProductScene({
|
93
|
-
product: product || scene
|
94
|
-
});
|
95
|
-
if (sdk) return;
|
96
|
-
this._newSecuritySDKByScene({
|
97
|
-
product: product || scene,
|
98
|
-
region: SecurityRegionEnum.SG
|
99
|
-
}, function () {
|
100
|
-
_this.logger.logInfo({
|
101
|
-
title: 'sdk_event_securitySdkPreInitSuccess'
|
102
|
-
}, {
|
103
|
-
product: product
|
104
|
-
}).send();
|
105
|
-
}, function (msg) {
|
106
|
-
_this.logger.logError({
|
107
|
-
title: 'sdk_error_securitySdkInitFailed',
|
108
|
-
msg: msg
|
109
|
-
}, {
|
110
|
-
product: product,
|
111
|
-
sign: 'Active initialization'
|
112
|
-
}).send();
|
113
|
-
});
|
114
|
-
}
|
115
|
-
/**
|
116
|
-
* @description Obtain security SDK through scenario identification
|
117
|
-
*/
|
118
|
-
}, {
|
119
|
-
key: "_getSecuritySDKByProductScene",
|
120
|
-
value: function _getSecuritySDKByProductScene(securityConfig) {
|
121
|
-
var storage = this.getSecurityConfigStorage(securityConfig.product);
|
122
|
-
var scene = storage.scene || getSecurityScene(securityConfig.product);
|
123
|
-
var securitySdk = this.securitySdkMap.get(scene);
|
124
|
-
return securitySdk;
|
125
|
-
}
|
126
|
-
/**
|
127
|
-
* @description New security SDK through scenario identification
|
128
|
-
*/
|
129
|
-
}, {
|
130
|
-
key: "_newSecuritySDKByScene",
|
131
|
-
value: function _newSecuritySDKByScene(securityConfig, successCallback, failCallback) {
|
132
|
-
var storage = this.getSecurityConfigStorage(securityConfig.product);
|
133
|
-
var scene = storage.scene || getSecurityScene(securityConfig.product);
|
134
|
-
var h5gateway = storage.h5gateway || getSecurityHost(securityConfig.region);
|
135
|
-
try {
|
136
|
-
var securitySdk = new Security({
|
137
|
-
scene: scene,
|
138
|
-
h5gateway: h5gateway
|
139
|
-
});
|
140
|
-
this.securitySdkMap.set(scene, securitySdk);
|
141
|
-
securitySdk.initSecurity(successCallback, failCallback);
|
142
|
-
return securitySdk;
|
143
|
-
} catch (error) {
|
144
|
-
failCallback && failCallback(error === null || error === void 0 ? void 0 : error.toString());
|
145
|
-
}
|
146
|
-
}
|
147
|
-
/**
|
148
|
-
* @description Obtain risk control configuration in local storage
|
149
|
-
*/
|
150
|
-
}, {
|
151
|
-
key: "getSecurityConfigStorage",
|
152
|
-
value: function getSecurityConfigStorage(product) {
|
153
|
-
var scene = '';
|
154
|
-
var h5gateway = '';
|
155
|
-
var securityConfigStorage = getOrSetStorageId(getSecurityConfigStorageKey(product));
|
156
|
-
if (securityConfigStorage) {
|
157
|
-
var config = safeJson(securityConfigStorage, {});
|
158
|
-
scene = config === null || config === void 0 ? void 0 : config.appName;
|
159
|
-
h5gateway = config === null || config === void 0 ? void 0 : config.h5gateway;
|
160
|
-
}
|
161
|
-
return {
|
162
|
-
scene: scene,
|
163
|
-
h5gateway: h5gateway
|
164
|
-
};
|
165
|
-
}
|
166
|
-
/**
|
167
|
-
* @description Set the sdk basic configuration
|
168
|
-
*/
|
169
|
-
}, {
|
170
|
-
key: "_setOptions",
|
171
|
-
value: function _setOptions(options) {
|
172
|
-
this._setMode(options);
|
173
|
-
this._setEnv(options);
|
174
|
-
this.options.locale = (options === null || options === void 0 ? void 0 : options.locale) || '';
|
175
|
-
this.options.product = options === null || options === void 0 ? void 0 : options.product;
|
176
|
-
}
|
177
|
-
/**
|
178
|
-
* @description Set environment variables
|
179
|
-
*/
|
180
|
-
}, {
|
181
|
-
key: "_setEnv",
|
182
|
-
value: function _setEnv(options) {
|
183
|
-
var _queryParse = queryParse(),
|
184
|
-
_moreEnv = _queryParse._moreEnv;
|
185
|
-
if (options !== null && options !== void 0 && options.environment && !((options === null || options === void 0 ? void 0 : options.environment) in environmentEnum) && _moreEnv !== 'true') {
|
186
|
-
console.warn(ERRORMESSAGE.INIT_PARAMETER_ERROR.ENVIRONMENT_ERROR.message);
|
187
|
-
options.environment = 'prod';
|
188
|
-
}
|
189
|
-
this.options.env = {
|
190
|
-
terminalType: device.isMobile ? terminalTypeEnum.WAP : terminalTypeEnum.WEB,
|
191
|
-
environment: (options === null || options === void 0 ? void 0 : options.environment) || 'prod'
|
192
|
-
};
|
193
|
-
if (this.options.env.terminalType === terminalTypeEnum.WAP) {
|
194
|
-
// eslint-disable-next-line no-nested-ternary
|
195
|
-
this.options.env.osType = device.iOS ? osTypeEnum.IOS : device.Android ? osTypeEnum.ANDROID : osTypeEnum.ELSE;
|
196
|
-
}
|
197
|
-
}
|
198
|
-
/**
|
199
|
-
* @description Set UI and Network Mode
|
200
|
-
*/
|
201
|
-
}, {
|
202
|
-
key: "_setMode",
|
203
|
-
value: function _setMode(options) {
|
204
|
-
this.options.mode = (options === null || options === void 0 ? void 0 : options.mode) || modeEnum.component;
|
205
|
-
if (options !== null && options !== void 0 && options.mode && !((options === null || options === void 0 ? void 0 : options.mode) in modeEnum)) {
|
206
|
-
console.warn(ERRORMESSAGE.INIT_PARAMETER_ERROR.MODE_ERROR.message);
|
207
|
-
this.options.mode = modeEnum.component;
|
208
|
-
}
|
209
|
-
this.options.networkMode = (options === null || options === void 0 ? void 0 : options.networkMode) || networkModeEnum.session;
|
210
|
-
if (options !== null && options !== void 0 && options.networkMode && !((options === null || options === void 0 ? void 0 : options.networkMode) in networkModeEnum)) {
|
211
|
-
console.warn(ERRORMESSAGE.INIT_PARAMETER_ERROR.NET_MODE_NOT_SUPPORT.message);
|
212
|
-
this.options.networkMode = networkModeEnum.proxy;
|
213
|
-
}
|
214
|
-
}
|
215
|
-
/**
|
216
|
-
* @description Initialize event related tasks
|
217
|
-
*/
|
218
|
-
}, {
|
219
|
-
key: "_initEvent",
|
220
|
-
value: function _initEvent(options) {
|
221
|
-
/** 地址监听 */
|
222
|
-
if (options !== null && options !== void 0 && options.onChange) {
|
223
|
-
if (getType(options.onChange) !== 'function') throw new Error(ERRORMESSAGE.INIT_PARAMETER_ERROR.EVENT_ERROR.message);
|
224
|
-
this._overrideSubscription(EVENT.onChange.name, options.onChange, EVENT.onChange.uniqueKey);
|
225
|
-
}
|
226
|
-
|
227
|
-
/** getValue */
|
228
|
-
if (options !== null && options !== void 0 && options.onGetValue) {
|
229
|
-
if (getType(options.onGetValue) !== 'function') throw new Error(ERRORMESSAGE.INIT_PARAMETER_ERROR.EVENT_ERROR.message);
|
230
|
-
this._overrideSubscription(EVENT.onGetValue.name, options.onGetValue, EVENT.onGetValue.uniqueKey);
|
231
|
-
}
|
232
|
-
}
|
233
|
-
/**
|
234
|
-
* @description Register plug-in
|
235
|
-
*/
|
236
|
-
}, {
|
237
|
-
key: "_registerPlugin",
|
238
|
-
value: function _registerPlugin(pluginId, plugin) {
|
239
|
-
this.plugins.set(pluginId, plugin);
|
240
|
-
if (plugin !== null && plugin !== void 0 && plugin.applyPlugin) {
|
241
|
-
try {
|
242
|
-
plugin.applyPlugin(this);
|
243
|
-
} catch (error) {
|
244
|
-
this.plugins.delete(pluginId);
|
245
|
-
if (getType(error) === 'error') throw error;
|
246
|
-
throw new Error("Failed to register plug-in\uFF1A".concat(pluginId, " Exception in the apply function of the plug-in"));
|
247
|
-
}
|
248
|
-
}
|
249
|
-
}
|
250
|
-
/**
|
251
|
-
* @description Get Plug-in
|
252
|
-
*/
|
253
|
-
}, {
|
254
|
-
key: "_getPlugin",
|
255
|
-
value: function _getPlugin(pluginId) {
|
256
|
-
if (!this.plugins.has(pluginId)) {
|
257
|
-
console.warn("".concat(pluginId, " Plugin unregistered"));
|
258
|
-
return null;
|
259
|
-
}
|
260
|
-
return this.plugins.get(pluginId);
|
261
|
-
}
|
262
|
-
/**
|
263
|
-
* @description Overlay Subscription
|
264
|
-
*/
|
265
|
-
}, {
|
266
|
-
key: "_overrideSubscription",
|
267
|
-
value: function _overrideSubscription(name, func, funcKey) {
|
268
|
-
this._eventCenter.off(name, func, funcKey);
|
269
|
-
this._eventCenter.on(name, func, funcKey);
|
270
|
-
}
|
271
|
-
}, {
|
272
|
-
key: "getBusActionNames",
|
273
|
-
value: function getBusActionNames() {
|
274
|
-
var appendParams = this._appendParams;
|
275
|
-
if (!appendParams) {
|
276
|
-
return null;
|
277
|
-
}
|
278
|
-
return this._getPlugin("COMPONENT");
|
279
|
-
}
|
280
|
-
}]);
|
281
|
-
return AMSADDRESSSDK;
|
282
|
-
}();
|
283
|
-
export { AMSADDRESSSDK as default };
|
@@ -1,34 +0,0 @@
|
|
1
|
-
import { componentSignEnum, Ianalytics, renderDisplayTypeEnum } from '../../types';
|
2
|
-
export declare const getAppPath: (environment: string, appVersion: string, componentSign: componentSignEnum, productScene: string, productSceneVersion: string, extendInfo: string, mid: string, sendLog?: boolean) => any;
|
3
|
-
export declare const getAppDomain: (domainParams: {
|
4
|
-
environment: string;
|
5
|
-
appVersion: string;
|
6
|
-
componentSign: componentSignEnum;
|
7
|
-
productScene: string;
|
8
|
-
productSceneVersion: string;
|
9
|
-
extendInfo: string;
|
10
|
-
mid: string;
|
11
|
-
}) => string;
|
12
|
-
export declare const getIframeUrl: (iframeParams: {
|
13
|
-
componentSign: componentSignEnum;
|
14
|
-
analytics?: Ianalytics;
|
15
|
-
productScene: string;
|
16
|
-
productSceneVersion: string;
|
17
|
-
environment: string;
|
18
|
-
appVersion: string;
|
19
|
-
extendInfo?: string;
|
20
|
-
locale?: string;
|
21
|
-
instanceId: string;
|
22
|
-
renderDisplayType: renderDisplayTypeEnum;
|
23
|
-
isPreload?: string;
|
24
|
-
hostSign?: string;
|
25
|
-
mid?: string;
|
26
|
-
}) => {
|
27
|
-
path: string;
|
28
|
-
locationSearch: string;
|
29
|
-
};
|
30
|
-
/**
|
31
|
-
* @description Create iframe
|
32
|
-
*/
|
33
|
-
export declare const createIframe: (mode: string, platform: 'mobile' | 'desktop') => HTMLIFrameElement;
|
34
|
-
export declare const createPreloadIframe: (channelType: any, version: any) => HTMLIFrameElement;
|
@@ -1,218 +0,0 @@
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
2
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
3
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
4
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
5
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
6
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
7
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
8
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
9
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
10
|
-
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); }
|
11
|
-
/**
|
12
|
-
* Copyright (c) 2022 International Business Group, Ant Group. All rights reserved.
|
13
|
-
*
|
14
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, and/or distribute the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
15
|
-
* 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
|
16
|
-
* 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.
|
17
|
-
*/
|
18
|
-
import { marmotMap, sdkVersion, elementAppMarmotMap } from "../../config/index";
|
19
|
-
import { componentSignEnum, ComponentSignEnumV2 } from "../../types";
|
20
|
-
import { isDebugLog } from "../../util/debug";
|
21
|
-
import { queryParse, serialize } from "../../util/index";
|
22
|
-
import { Logger } from "../../util/logger";
|
23
|
-
import { getLastAppVersion, getMatchAppVersion, setLastAppVersion } from "../../util/upgrade";
|
24
|
-
var getAppVersion = function getAppVersion(_extendInfo, productScene, mid) {
|
25
|
-
var sendLog = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
26
|
-
try {
|
27
|
-
var appVersion = getMatchAppVersion(_extendInfo, {
|
28
|
-
sdkVersion: sdkVersion,
|
29
|
-
productScene: productScene,
|
30
|
-
mid: mid
|
31
|
-
});
|
32
|
-
if (sendLog) {
|
33
|
-
var _Logger$getInstance;
|
34
|
-
(_Logger$getInstance = Logger.getInstance()) === null || _Logger$getInstance === void 0 || _Logger$getInstance.logInfo({
|
35
|
-
title: 'sdk_event_appUpgradeInfo'
|
36
|
-
}, {
|
37
|
-
appUpgradeVersion: appVersion,
|
38
|
-
appUpgraded: appVersion ? true : false,
|
39
|
-
isPreload: _extendInfo ? false : true,
|
40
|
-
extendInfo: _extendInfo,
|
41
|
-
productScene: productScene,
|
42
|
-
mid: mid
|
43
|
-
});
|
44
|
-
}
|
45
|
-
|
46
|
-
// 没有匹配到版本,查询上次的加载版本
|
47
|
-
if (!appVersion) {
|
48
|
-
appVersion = getLastAppVersion(productScene);
|
49
|
-
return appVersion;
|
50
|
-
}
|
51
|
-
// 不为空时代表是有sessionData,因此要保存当前版本
|
52
|
-
if (_extendInfo) {
|
53
|
-
setLastAppVersion(productScene, appVersion);
|
54
|
-
}
|
55
|
-
return appVersion;
|
56
|
-
} catch (error) {
|
57
|
-
return '';
|
58
|
-
}
|
59
|
-
};
|
60
|
-
var getFinalProductSceneVersion = function getFinalProductSceneVersion(componentSign, productSceneVersion) {
|
61
|
-
var _signSupportMap;
|
62
|
-
var signSupportMap = (_signSupportMap = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_signSupportMap, componentSignEnum.NONE, ['']), componentSignEnum.AUTO_DEBIT_WALLET, ['1.0']), componentSignEnum.AUTO_DEBIT_PAY_WALLET, ['1.0']), componentSignEnum.CASHIER_PAYMENT_BANK, ['1.0']), componentSignEnum.CASHIER_PAYMENT_CARD, ['1.0']), componentSignEnum.CASHIER_PAYMENT_APM, ['1.0']), componentSignEnum.EASY_PAY_WALLET, ['1.0', '2.0']), componentSignEnum.EASY_PAY_APM, ['2.0']), componentSignEnum.VAULTING_CARD, ['1.0']), componentSignEnum.ELEMENT_PAYMENT, ['1.0']), _defineProperty(_signSupportMap, componentSignEnum.ELEMENT_ADDRESS, ['1.0']));
|
63
|
-
var supportProductSceneVersion = signSupportMap[componentSign];
|
64
|
-
// 从左到右,从旧到新
|
65
|
-
var isSupport = supportProductSceneVersion.find(function (it) {
|
66
|
-
return it === productSceneVersion;
|
67
|
-
});
|
68
|
-
var finalProductSceneVersion = supportProductSceneVersion[supportProductSceneVersion.length - 1];
|
69
|
-
return isSupport ? productSceneVersion : finalProductSceneVersion;
|
70
|
-
};
|
71
|
-
export var getAppPath = function getAppPath() {
|
72
|
-
var environment = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'prod';
|
73
|
-
var appVersion = arguments.length > 1 ? arguments[1] : undefined;
|
74
|
-
var componentSign = arguments.length > 2 ? arguments[2] : undefined;
|
75
|
-
var productScene = arguments.length > 3 ? arguments[3] : undefined;
|
76
|
-
var productSceneVersion = arguments.length > 4 ? arguments[4] : undefined;
|
77
|
-
var extendInfo = arguments.length > 5 ? arguments[5] : undefined;
|
78
|
-
var mid = arguments.length > 6 ? arguments[6] : undefined;
|
79
|
-
var sendLog = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : false;
|
80
|
-
var _ref = queryParse() || {},
|
81
|
-
urlTestHost = _ref.host;
|
82
|
-
var upgradeAppVersion = getAppVersion(extendInfo, productScene, mid, sendLog);
|
83
|
-
var finalAppVersion = upgradeAppVersion || appVersion;
|
84
|
-
// 当有升级版本时,更新到全局字段
|
85
|
-
if (upgradeAppVersion) {
|
86
|
-
var _Logger$getInstance2;
|
87
|
-
(_Logger$getInstance2 = Logger.getInstance()) === null || _Logger$getInstance2 === void 0 || _Logger$getInstance2.setMedta({
|
88
|
-
webAppVersion: finalAppVersion
|
89
|
-
});
|
90
|
-
}
|
91
|
-
if (isDebugLog()) {
|
92
|
-
console.log('appUpgrade#getAppPath#finalAppVersion', finalAppVersion);
|
93
|
-
console.log('appUpgrade#getAppPath#extendInfo', extendInfo, mid);
|
94
|
-
}
|
95
|
-
var finalProductSceneVersion = getFinalProductSceneVersion(componentSign, productSceneVersion);
|
96
|
-
// only for test while testurl?host=https://xxxxx.test.html
|
97
|
-
if (urlTestHost && !['sandbox', 'light_sandbox', 'prod'].includes(environment)) {
|
98
|
-
return urlTestHost;
|
99
|
-
}
|
100
|
-
// element应用特殊处理
|
101
|
-
if (_toConsumableArray(Object.values(ComponentSignEnumV2)).includes(componentSign)) {
|
102
|
-
return "".concat(elementAppMarmotMap[environment], "/").concat(productScene, "/").concat(finalAppVersion, "/pages/").concat(productScene, "/index.html");
|
103
|
-
}
|
104
|
-
return "".concat(marmotMap[environment], "/").concat(componentSign, "/").concat(finalProductSceneVersion, "/index.").concat(finalAppVersion, ".html");
|
105
|
-
};
|
106
|
-
export var getAppDomain = function getAppDomain(domainParams) {
|
107
|
-
var environment = domainParams.environment,
|
108
|
-
appVersion = domainParams.appVersion,
|
109
|
-
componentSign = domainParams.componentSign,
|
110
|
-
productScene = domainParams.productScene,
|
111
|
-
productSceneVersion = domainParams.productSceneVersion,
|
112
|
-
extendInfo = domainParams.extendInfo,
|
113
|
-
mid = domainParams.mid;
|
114
|
-
var reg = /^https?:\/\/([^/<>\s]+\.?)*/;
|
115
|
-
var macth = reg.exec(getAppPath(environment, appVersion, componentSign, productScene, productSceneVersion, extendInfo, mid));
|
116
|
-
return macth && macth[0] || '';
|
117
|
-
};
|
118
|
-
export var getIframeUrl = function getIframeUrl(iframeParams) {
|
119
|
-
var componentSign = iframeParams.componentSign,
|
120
|
-
_iframeParams$analyti = iframeParams.analytics,
|
121
|
-
analytics = _iframeParams$analyti === void 0 ? {
|
122
|
-
enabled: true
|
123
|
-
} : _iframeParams$analyti,
|
124
|
-
productScene = iframeParams.productScene,
|
125
|
-
productSceneVersion = iframeParams.productSceneVersion,
|
126
|
-
environment = iframeParams.environment,
|
127
|
-
appVersion = iframeParams.appVersion,
|
128
|
-
extendInfo = iframeParams.extendInfo,
|
129
|
-
locale = iframeParams.locale,
|
130
|
-
instanceId = iframeParams.instanceId,
|
131
|
-
renderDisplayType = iframeParams.renderDisplayType,
|
132
|
-
_iframeParams$isPrelo = iframeParams.isPreload,
|
133
|
-
isPreload = _iframeParams$isPrelo === void 0 ? '' : _iframeParams$isPrelo,
|
134
|
-
_iframeParams$hostSig = iframeParams.hostSign,
|
135
|
-
hostSign = _iframeParams$hostSig === void 0 ? '' : _iframeParams$hostSig,
|
136
|
-
_iframeParams$mid = iframeParams.mid,
|
137
|
-
mid = _iframeParams$mid === void 0 ? '' : _iframeParams$mid;
|
138
|
-
var path = getAppPath(environment, appVersion, componentSign, productScene, productSceneVersion, extendInfo || '', mid, true);
|
139
|
-
var appMatched = getMatchAppVersion(extendInfo, {
|
140
|
-
sdkVersion: sdkVersion,
|
141
|
-
productScene: productScene,
|
142
|
-
mid: mid
|
143
|
-
}) ? 'true' : 'false';
|
144
|
-
var _queryParse = queryParse(),
|
145
|
-
_sandbox = _queryParse._sandbox,
|
146
|
-
_light_sandbox = _queryParse._light_sandbox,
|
147
|
-
_queryParse$requestHo = _queryParse.requestHost,
|
148
|
-
requestHost = _queryParse$requestHo === void 0 ? '' : _queryParse$requestHo,
|
149
|
-
_queryParse$groupId = _queryParse.groupId,
|
150
|
-
groupId = _queryParse$groupId === void 0 ? '' : _queryParse$groupId,
|
151
|
-
LOCAL_MOCK = _queryParse.LOCAL_MOCK,
|
152
|
-
_displayType = _queryParse._displayType;
|
153
|
-
var urlParams = Object.assign({}, {
|
154
|
-
displayType: renderDisplayType,
|
155
|
-
locale: locale,
|
156
|
-
instanceId: instanceId,
|
157
|
-
appMatched: appMatched,
|
158
|
-
analyticsEnabled: (analytics === null || analytics === void 0 ? void 0 : analytics.enabled) === false ? 'false' : 'true',
|
159
|
-
sdkVersion: sdkVersion,
|
160
|
-
refUrl: window.location.href,
|
161
|
-
_componentStartTime: "".concat(Date.now()),
|
162
|
-
isPreload: isPreload || '',
|
163
|
-
hostSign: hostSign || ''
|
164
|
-
});
|
165
|
-
if (LOCAL_MOCK) urlParams.LOCAL_MOCK = LOCAL_MOCK;
|
166
|
-
if (requestHost) urlParams.requestHost = requestHost;
|
167
|
-
if (groupId) urlParams.groupId = groupId;
|
168
|
-
if (environment === 'light_sandbox' || _light_sandbox === 'true') urlParams.sandbox = 'true';
|
169
|
-
if (environment === 'sandbox' || _sandbox === 'true') urlParams.shadow = 'true';
|
170
|
-
if (_displayType) urlParams.displayType = _displayType;
|
171
|
-
var locationSearch = serialize(urlParams);
|
172
|
-
if (isDebugLog()) {
|
173
|
-
console.log('appUpgrade#getIframeUrl#appMatched', appMatched);
|
174
|
-
console.log('appUpgrade#getIframeUrl#url', path, locationSearch);
|
175
|
-
}
|
176
|
-
return {
|
177
|
-
path: path,
|
178
|
-
locationSearch: locationSearch
|
179
|
-
};
|
180
|
-
};
|
181
|
-
|
182
|
-
/**
|
183
|
-
* @description Create iframe
|
184
|
-
*/
|
185
|
-
export var createIframe = function createIframe(mode, platform) {
|
186
|
-
var getIframeId = function getIframeId() {
|
187
|
-
var IdMap = {
|
188
|
-
dropin: "ams-checkout-dropin-".concat(platform),
|
189
|
-
component: "ams-checkout-component-".concat(platform)
|
190
|
-
};
|
191
|
-
return IdMap[mode] || 'ams-checkout-component';
|
192
|
-
};
|
193
|
-
var iframe = document.createElement('iframe');
|
194
|
-
var iframeId = getIframeId();
|
195
|
-
var none = '0';
|
196
|
-
var width = '100%';
|
197
|
-
iframe.id = iframeId;
|
198
|
-
iframe.style.height = none;
|
199
|
-
iframe.style.width = width;
|
200
|
-
iframe.style.border = none;
|
201
|
-
iframe.style.opacity = none;
|
202
|
-
iframe.style.overflow = 'hidden';
|
203
|
-
return iframe;
|
204
|
-
};
|
205
|
-
export var createPreloadIframe = function createPreloadIframe(channelType, version) {
|
206
|
-
var id = "ams-checkout-component-".concat(channelType, "-").concat(version);
|
207
|
-
var iframe = document.createElement('iframe');
|
208
|
-
var iframeId = id;
|
209
|
-
var none = '1px';
|
210
|
-
var width = '1px';
|
211
|
-
iframe.id = iframeId;
|
212
|
-
iframe.style.height = none;
|
213
|
-
iframe.style.width = width;
|
214
|
-
iframe.style.border = none;
|
215
|
-
iframe.style.opacity = '0';
|
216
|
-
iframe.style.overflow = 'hidden';
|
217
|
-
return iframe;
|
218
|
-
};
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import type { IpaymentSessionMetaData } from "src/types";
|
2
|
-
type IChannelBehavior = {
|
3
|
-
usePaymentSessionAsQueryResult: boolean;
|
4
|
-
submitPayInSdk: boolean;
|
5
|
-
createIframeNode: boolean;
|
6
|
-
loadApp: boolean;
|
7
|
-
buildSubmitPayExtParams?: (params: GetDoubleFaParams) => any;
|
8
|
-
allowClickOutsideClose?: boolean;
|
9
|
-
};
|
10
|
-
type GetDoubleFaParams = {
|
11
|
-
instanceId: string;
|
12
|
-
paymentSessionData: string;
|
13
|
-
locale: string;
|
14
|
-
paymentMethodType: string;
|
15
|
-
env: string;
|
16
|
-
sdkVersion: string;
|
17
|
-
};
|
18
|
-
export declare function getChannelBehavior(paymentSessionMetaData?: IpaymentSessionMetaData): IChannelBehavior | undefined;
|
19
|
-
export declare function getDoubleFaUrl(params: GetDoubleFaParams): string;
|
20
|
-
export {};
|
@@ -1,52 +0,0 @@
|
|
1
|
-
export function getChannelBehavior(paymentSessionMetaData) {
|
2
|
-
var _paymentSessionMetaDa, _paymentSessionMetaDa2, _paymentSessionMetaDa3, _paymentSessionMetaDa4, _paymentSessionMetaDa5, _paymentSessionMetaDa6, _paymentSessionMetaDa7, _paymentSessionMetaDa8;
|
3
|
-
// TOSS EASYPAY 2.0
|
4
|
-
if ('BANKTRANSFER_QUICKPAY' === (paymentSessionMetaData === null || paymentSessionMetaData === void 0 || (_paymentSessionMetaDa = paymentSessionMetaData.paymentMethodInfoView) === null || _paymentSessionMetaDa === void 0 ? void 0 : _paymentSessionMetaDa.paymentMethodType) && (paymentSessionMetaData === null || paymentSessionMetaData === void 0 || (_paymentSessionMetaDa2 = paymentSessionMetaData.paymentSessionConfig) === null || _paymentSessionMetaDa2 === void 0 ? void 0 : _paymentSessionMetaDa2.productScene) === 'EASY_PAY' && (paymentSessionMetaData === null || paymentSessionMetaData === void 0 || (_paymentSessionMetaDa3 = paymentSessionMetaData.paymentSessionConfig) === null || _paymentSessionMetaDa3 === void 0 ? void 0 : _paymentSessionMetaDa3.paymentMethodCategoryType) === 'APM' && (paymentSessionMetaData === null || paymentSessionMetaData === void 0 || (_paymentSessionMetaDa4 = paymentSessionMetaData.paymentSessionConfig) === null || _paymentSessionMetaDa4 === void 0 ? void 0 : _paymentSessionMetaDa4.productSceneVersion) === '2.0') {
|
5
|
-
return {
|
6
|
-
usePaymentSessionAsQueryResult: true,
|
7
|
-
submitPayInSdk: true,
|
8
|
-
createIframeNode: true,
|
9
|
-
loadApp: true,
|
10
|
-
allowClickOutsideClose: true,
|
11
|
-
buildSubmitPayExtParams: function buildSubmitPayExtParams(params) {
|
12
|
-
var callBackUrl = getDoubleFaUrl(params);
|
13
|
-
return {
|
14
|
-
callBackUrl: callBackUrl
|
15
|
-
};
|
16
|
-
}
|
17
|
-
};
|
18
|
-
}
|
19
|
-
// TNG EASYPAY 2.0
|
20
|
-
if ('TNG' === (paymentSessionMetaData === null || paymentSessionMetaData === void 0 || (_paymentSessionMetaDa5 = paymentSessionMetaData.paymentMethodInfoView) === null || _paymentSessionMetaDa5 === void 0 ? void 0 : _paymentSessionMetaDa5.paymentMethodType) && (paymentSessionMetaData === null || paymentSessionMetaData === void 0 || (_paymentSessionMetaDa6 = paymentSessionMetaData.paymentSessionConfig) === null || _paymentSessionMetaDa6 === void 0 ? void 0 : _paymentSessionMetaDa6.productScene) === 'EASY_PAY' && (paymentSessionMetaData === null || paymentSessionMetaData === void 0 || (_paymentSessionMetaDa7 = paymentSessionMetaData.paymentSessionConfig) === null || _paymentSessionMetaDa7 === void 0 ? void 0 : _paymentSessionMetaDa7.paymentMethodCategoryType) === 'WALLET' && (paymentSessionMetaData === null || paymentSessionMetaData === void 0 || (_paymentSessionMetaDa8 = paymentSessionMetaData.paymentSessionConfig) === null || _paymentSessionMetaDa8 === void 0 ? void 0 : _paymentSessionMetaDa8.productSceneVersion) === '2.0') {
|
21
|
-
return {
|
22
|
-
usePaymentSessionAsQueryResult: false,
|
23
|
-
submitPayInSdk: false,
|
24
|
-
createIframeNode: true,
|
25
|
-
loadApp: true,
|
26
|
-
allowClickOutsideClose: false,
|
27
|
-
buildSubmitPayExtParams: function buildSubmitPayExtParams(params) {
|
28
|
-
return {};
|
29
|
-
}
|
30
|
-
};
|
31
|
-
}
|
32
|
-
return undefined;
|
33
|
-
}
|
34
|
-
export function getDoubleFaUrl(params) {
|
35
|
-
var instanceId = params.instanceId,
|
36
|
-
paymentMethodType = params.paymentMethodType,
|
37
|
-
paymentSessionData = params.paymentSessionData,
|
38
|
-
locale = params.locale,
|
39
|
-
env = params.env,
|
40
|
-
sdkVersion = params.sdkVersion;
|
41
|
-
var isLandscapeOrientation = false; // Web 不含横屏
|
42
|
-
|
43
|
-
var DOUBLE_FA_URL_MAPPING = {
|
44
|
-
local: "http://page.alipay.net/page/antom-web-checkout/src/component-app/doubleFA/index.".concat(sdkVersion, ".html"),
|
45
|
-
dev: "http://page.alipay.net/page/antom-web-checkout/src/component-app/doubleFA/index.".concat(sdkVersion, ".html"),
|
46
|
-
sit: "http://page.test.alipay.net/page/antom-web-checkout/src/component-app/doubleFA/index.".concat(sdkVersion, ".html"),
|
47
|
-
pre: "https://pre.ac.alipay.com/page/antom-web-checkout/src/component-app/doubleFA/index.".concat(sdkVersion, ".html"),
|
48
|
-
prod: "https://ac.alipay.com/page/antom-web-checkout/src/component-app/doubleFA/index.".concat(sdkVersion, ".html")
|
49
|
-
};
|
50
|
-
var doubleFaBaseUrl = DOUBLE_FA_URL_MAPPING[env] || DOUBLE_FA_URL_MAPPING.prod;
|
51
|
-
return "".concat(doubleFaBaseUrl, "?scene=cashierResultPage&instanceId=").concat(instanceId, "&paymentSessionData=").concat(encodeURIComponent(paymentSessionData), "&isLandscape=").concat(isLandscapeOrientation ? 'true' : '', "&pmt=").concat(paymentMethodType, "&locale=").concat(locale, "&sdkVersion=").concat(sdkVersion);
|
52
|
-
}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright (c) 2022 International Business Group, Ant Group. All rights reserved.
|
3
|
-
*
|
4
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, merge, and/or distribute the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
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
|
-
* 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
|
-
*/
|
8
|
-
import { platformEnum } from '../../types';
|
9
|
-
export declare const inlineComponentAddCss: () => void;
|
10
|
-
export declare const addInlineLoading: (_selector: HTMLDivElement, platform: platformEnum) => void;
|
11
|
-
export declare const createInlineBaseElement: (selector: string) => HTMLDivElement;
|