@alipay/ams-checkout 0.0.1724309103-dev.1 → 0.0.1724942009-dev.0
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/constant/index.d.ts +14 -1
- package/esm/constant/index.js +86 -1
- package/esm/core/component/ckp/index.js +15 -1
- package/esm/core/component/index.js +0 -1
- package/esm/core/instance/index.d.ts +3 -0
- package/esm/core/instance/index.js +61 -2
- package/esm/index.d.ts +1 -1
- package/esm/plugin/component/index.js +77 -17
- package/esm/types/index.d.ts +8 -0
- package/esm/util/getBackScheme.d.ts +5 -0
- package/esm/util/getBackScheme.js +42 -0
- package/esm/util/index.d.ts +3 -1
- package/esm/util/index.js +10 -1
- package/esm/util/ua/index.d.ts +2 -0
- package/esm/util/ua/index.js +2 -0
- package/esm/util/ua/isAndroid.d.ts +4 -0
- package/esm/util/ua/isAndroid.js +7 -0
- package/esm/util/ua/isIOS.d.ts +4 -0
- package/esm/util/ua/isIOS.js +7 -0
- package/package.json +1 -1
package/esm/util/index.js
CHANGED
@@ -83,6 +83,11 @@ var EventCenter = /*#__PURE__*/function () {
|
|
83
83
|
};
|
84
84
|
this.on(name, onceF, key);
|
85
85
|
}
|
86
|
+
}, {
|
87
|
+
key: "isExist",
|
88
|
+
value: function isExist(name) {
|
89
|
+
return this.events.has(name);
|
90
|
+
}
|
86
91
|
}]);
|
87
92
|
return EventCenter;
|
88
93
|
}();
|
@@ -166,6 +171,10 @@ var isPC = function isPC() {
|
|
166
171
|
return userAgentInfo.includes(agent);
|
167
172
|
});
|
168
173
|
};
|
174
|
+
var isWebView = function isWebView(mockUA) {
|
175
|
+
var ua = mockUA || navigator.userAgent;
|
176
|
+
return /webview|wv|ip((?!.*safari)|(?=.*like safari))/i.test(ua);
|
177
|
+
};
|
169
178
|
var queryParse = function queryParse(url) {
|
170
179
|
var qs = {};
|
171
180
|
if (!url) {
|
@@ -327,4 +336,4 @@ function loadSDKScript(_ref, logger) {
|
|
327
336
|
document.head.appendChild(script);
|
328
337
|
});
|
329
338
|
}
|
330
|
-
export { getType, EventCenter, getViewPort, getOrigin, serialize, isJsonString, isDom, isFunction, device, safeJson, isPC, queryParse, getDesignFontSize, amsSetSize, addSetFontSizeEvent, getOrSetStorageId, checkTimeElapsed, parseBase64ToString, loadSDKScript };
|
339
|
+
export { getType, EventCenter, getViewPort, getOrigin, serialize, isJsonString, isDom, isFunction, device, safeJson, isPC, isWebView, queryParse, getDesignFontSize, amsSetSize, addSetFontSizeEvent, getOrSetStorageId, checkTimeElapsed, parseBase64ToString, loadSDKScript };
|