@alipay/ams-checkout
Advanced tools
Comparing version 0.0.1720509876-dev.2 to 0.0.1723203704-dev.1
@@ -15,4 +15,4 @@ /** | ||
export var requestHost = { | ||
local: 'http://imgs-8452.sggz00b.dev.alipay.net/mgw.htm', | ||
dev: host || 'http://imgs-8452.sggz00b.dev.alipay.net/mgw.htm', | ||
local: 'http://imgs-63.sggz00b.dev.alipay.net/mgw.htm', | ||
dev: host || 'http://imgs-63.sggz00b.dev.alipay.net/mgw.htm', | ||
sit: host || 'http://imgs-9.sggz00a.test.alipay.net/mgw.htm', | ||
@@ -26,3 +26,3 @@ pre: 'https://imgs-sea-pre.alipay.com/mgw.htm', | ||
export var appId = 'ANTOM_PAYMENT_WEB'; | ||
export var sofaId = groupId || 'GROUP_20240304204929'; | ||
export var sofaId = groupId || 'GROUP_20240627151021'; | ||
export var hostSignMap = function hostSignMap(hostSign, env) { | ||
@@ -29,0 +29,0 @@ var map = { |
@@ -7,3 +7,3 @@ /** | ||
*/ | ||
import { eventCodeEnum } from "../types"; | ||
import { eventCodeEnum } from '../types'; | ||
export declare const ERRORMESSAGE: { | ||
@@ -171,2 +171,10 @@ DOMAIN_NOT_IN_WHITE_LIST: { | ||
}; | ||
onChange: { | ||
name: string; | ||
uniqueKey: string; | ||
}; | ||
onGetValue: { | ||
name: string; | ||
uniqueKey: string; | ||
}; | ||
}; | ||
@@ -180,2 +188,3 @@ export declare const COMPONENT_CONTAINER_ID = "ams-component-container"; | ||
export declare const LOADING_ID = "ams-component-loading"; | ||
export declare const POPUPLOADING_ID = "ams-component-popup-loading"; | ||
export declare const LISTENER_PREFIX = "_ams_sdk_component_listener"; | ||
@@ -182,0 +191,0 @@ export declare const INLINE_BASE_STYLE_ID = "ams-inline-component-style"; |
@@ -169,2 +169,10 @@ /** | ||
name: 'appHeartBeat' | ||
}, | ||
onChange: { | ||
name: 'onChange', | ||
uniqueKey: 'userChange' | ||
}, | ||
onGetValue: { | ||
name: 'onAddressResult', | ||
uniqueKey: 'userGetValue' | ||
} | ||
@@ -179,2 +187,3 @@ }; | ||
export var LOADING_ID = 'ams-component-loading'; | ||
export var POPUPLOADING_ID = 'ams-component-popup-loading'; // popup弹窗loading | ||
export var LISTENER_PREFIX = '_ams_sdk_component_listener'; | ||
@@ -181,0 +190,0 @@ export var INLINE_BASE_STYLE_ID = 'ams-inline-component-style'; |
@@ -34,3 +34,3 @@ import ComponentApp from '../../plugin/component'; | ||
preloadComponent(channelType: any, productSceneVersion: any): void; | ||
private clearPreloadIframe; | ||
clearPreloadIframe(isTimeOut?: boolean): void; | ||
/** | ||
@@ -37,0 +37,0 @@ * @description Create and render components in the specified element area |
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); } | ||
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } | ||
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } | ||
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } | ||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } | ||
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
@@ -49,2 +52,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); } } | ||
import CoreInstance from "../instance/index"; | ||
import { loadChannelPneumaticControl } from "./appPreloadProcessing"; | ||
export var getComponentSign = function getComponentSign(params) { | ||
@@ -170,20 +174,41 @@ var _params$paymentSessio = params.paymentSessionConfig, | ||
key: "pluginAppendIframe", | ||
value: function pluginAppendIframe(appendParams) { | ||
try { | ||
return this._componentApp.appendIframeNodes(appendParams.componentSign, appendParams.iframeNodesParams); | ||
} catch (error) { | ||
return Promise.reject(error); | ||
value: function () { | ||
var _pluginAppendIframe = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(appendParams) { | ||
var _ref2, paymentSessionMetaData, _ref3, paymentSessionFactor; | ||
return _regeneratorRuntime().wrap(function _callee$(_context) { | ||
while (1) switch (_context.prev = _context.next) { | ||
case 0: | ||
_context.prev = 0; | ||
_ref2 = appendParams || {}, paymentSessionMetaData = _ref2.iframeNodesParams.paymentSessionMetaData; | ||
_ref3 = paymentSessionMetaData || {}, paymentSessionFactor = _ref3.paymentSessionFactor; | ||
_context.next = 5; | ||
return loadChannelPneumaticControl(paymentSessionFactor, this.logger); | ||
case 5: | ||
return _context.abrupt("return", this._componentApp.appendIframeNodes(appendParams.componentSign, appendParams.iframeNodesParams)); | ||
case 8: | ||
_context.prev = 8; | ||
_context.t0 = _context["catch"](0); | ||
return _context.abrupt("return", Promise.reject(_context.t0)); | ||
case 11: | ||
case "end": | ||
return _context.stop(); | ||
} | ||
}, _callee, this, [[0, 8]]); | ||
})); | ||
function pluginAppendIframe(_x) { | ||
return _pluginAppendIframe.apply(this, arguments); | ||
} | ||
} | ||
return pluginAppendIframe; | ||
}() | ||
}, { | ||
key: "savePreviousChannel", | ||
value: function savePreviousChannel(iframeNodesParams) { | ||
var _ref2 = iframeNodesParams || {}, | ||
_ref2$paymentSessionM = _ref2.paymentSessionMetaData.paymentSessionConfig, | ||
_ref2$paymentSessionM2 = _ref2$paymentSessionM.productScene, | ||
productScene = _ref2$paymentSessionM2 === void 0 ? '' : _ref2$paymentSessionM2, | ||
_ref2$paymentSessionM3 = _ref2$paymentSessionM.paymentMethodCategoryType, | ||
paymentMethodCategoryType = _ref2$paymentSessionM3 === void 0 ? '' : _ref2$paymentSessionM3, | ||
_ref2$paymentSessionM4 = _ref2$paymentSessionM.productSceneVersion, | ||
productSceneVersion = _ref2$paymentSessionM4 === void 0 ? '' : _ref2$paymentSessionM4; | ||
var _ref4 = iframeNodesParams || {}, | ||
_ref4$paymentSessionM = _ref4.paymentSessionMetaData.paymentSessionConfig, | ||
_ref4$paymentSessionM2 = _ref4$paymentSessionM.productScene, | ||
productScene = _ref4$paymentSessionM2 === void 0 ? '' : _ref4$paymentSessionM2, | ||
_ref4$paymentSessionM3 = _ref4$paymentSessionM.paymentMethodCategoryType, | ||
paymentMethodCategoryType = _ref4$paymentSessionM3 === void 0 ? '' : _ref4$paymentSessionM3, | ||
_ref4$paymentSessionM4 = _ref4$paymentSessionM.productSceneVersion, | ||
productSceneVersion = _ref4$paymentSessionM4 === void 0 ? '' : _ref4$paymentSessionM4; | ||
var channelType = "".concat(productScene, "_").concat(paymentMethodCategoryType); | ||
@@ -190,0 +215,0 @@ if (productScene && paymentMethodCategoryType && productSceneVersion) { |
@@ -9,3 +9,5 @@ /** | ||
import { AMSComponent } from './core/component/index'; | ||
import { AddressComponent } from './core/component/address'; | ||
import { IoptionsParams, componentSignEnum } from './types'; | ||
import { IoptionsAddressParams } from './types/address'; | ||
export * from './types'; | ||
@@ -18,2 +20,5 @@ export declare class AMSCheckout extends AMSComponent { | ||
} | ||
export declare class AMSAutoDebitPay extends AMSCheckout { | ||
constructor(options: IoptionsParams); | ||
} | ||
export declare class AMSEasyPay extends AMSCheckout { | ||
@@ -28,5 +33,11 @@ constructor(options: IoptionsParams); | ||
} | ||
export declare class AMSPaymentElement extends AMSCheckout { | ||
export declare class AntomElement extends AMSCheckout { | ||
constructor(options: IoptionsParams); | ||
} | ||
export declare class Address extends AddressComponent { | ||
constructor(_options: any, channelType?: componentSignEnum[], productSceneVersion?: string); | ||
} | ||
export declare class AddressElement extends Address { | ||
constructor(options: IoptionsAddressParams); | ||
} | ||
export default AMSCheckout; |
@@ -22,2 +22,3 @@ 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); } | ||
import { AMSComponent } from "./core/component/index"; | ||
import { AddressComponent } from "./core/component/address"; | ||
import { componentSignEnum } from "./types"; | ||
@@ -53,5 +54,17 @@ import { productSceneEnum } from "./types/index"; | ||
}(AMSCheckout); | ||
export var AMSEasyPay = /*#__PURE__*/function (_AMSCheckout2) { | ||
_inherits(AMSEasyPay, _AMSCheckout2); | ||
var _super3 = _createSuper(AMSEasyPay); | ||
export var AMSAutoDebitPay = /*#__PURE__*/function (_AMSCheckout2) { | ||
_inherits(AMSAutoDebitPay, _AMSCheckout2); | ||
var _super3 = _createSuper(AMSAutoDebitPay); | ||
function AMSAutoDebitPay(options) { | ||
_classCallCheck(this, AMSAutoDebitPay); | ||
var _options = Object.assign({}, options, { | ||
product: productSceneEnum.AUTO_DEBIT_PAY | ||
}); | ||
return _super3.call(this, _options, [componentSignEnum.AUTO_DEBIT_PAY_WALLET]); | ||
} | ||
return _createClass(AMSAutoDebitPay); | ||
}(AMSCheckout); | ||
export var AMSEasyPay = /*#__PURE__*/function (_AMSCheckout3) { | ||
_inherits(AMSEasyPay, _AMSCheckout3); | ||
var _super4 = _createSuper(AMSEasyPay); | ||
function AMSEasyPay(options) { | ||
@@ -81,9 +94,9 @@ _classCallCheck(this, AMSEasyPay); | ||
} | ||
return _super3.call(this, _options, [componentSignEnum.EASY_PAY_WALLET], currentProductSceneVersion); | ||
return _super4.call(this, _options, [componentSignEnum.EASY_PAY_WALLET], currentProductSceneVersion); | ||
} | ||
return _createClass(AMSEasyPay); | ||
}(AMSCheckout); | ||
export var AMSCashierPayment = /*#__PURE__*/function (_AMSCheckout3) { | ||
_inherits(AMSCashierPayment, _AMSCheckout3); | ||
var _super4 = _createSuper(AMSCashierPayment); | ||
export var AMSCashierPayment = /*#__PURE__*/function (_AMSCheckout4) { | ||
_inherits(AMSCashierPayment, _AMSCheckout4); | ||
var _super5 = _createSuper(AMSCashierPayment); | ||
function AMSCashierPayment(options) { | ||
@@ -113,9 +126,9 @@ _classCallCheck(this, AMSCashierPayment); | ||
} | ||
return _super4.call(this, _options, currentChannelType); | ||
return _super5.call(this, _options, currentChannelType); | ||
} | ||
return _createClass(AMSCashierPayment); | ||
}(AMSCheckout); | ||
export var AMSVaulting = /*#__PURE__*/function (_AMSCheckout4) { | ||
_inherits(AMSVaulting, _AMSCheckout4); | ||
var _super5 = _createSuper(AMSVaulting); | ||
export var AMSVaulting = /*#__PURE__*/function (_AMSCheckout5) { | ||
_inherits(AMSVaulting, _AMSCheckout5); | ||
var _super6 = _createSuper(AMSVaulting); | ||
function AMSVaulting(options) { | ||
@@ -126,18 +139,43 @@ _classCallCheck(this, AMSVaulting); | ||
}); | ||
return _super5.call(this, _options, [componentSignEnum.CASHIER_PAYMENT_CARD]); | ||
return _super6.call(this, _options, [componentSignEnum.CASHIER_PAYMENT_CARD]); | ||
} | ||
return _createClass(AMSVaulting); | ||
}(AMSCheckout); | ||
export var AMSPaymentElement = /*#__PURE__*/function (_AMSCheckout5) { | ||
_inherits(AMSPaymentElement, _AMSCheckout5); | ||
var _super6 = _createSuper(AMSPaymentElement); | ||
function AMSPaymentElement(options) { | ||
_classCallCheck(this, AMSPaymentElement); | ||
export var AntomElement = /*#__PURE__*/function (_AMSCheckout6) { | ||
_inherits(AntomElement, _AMSCheckout6); | ||
var _super7 = _createSuper(AntomElement); | ||
function AntomElement(options) { | ||
_classCallCheck(this, AntomElement); | ||
var _options = Object.assign({}, options, { | ||
product: productSceneEnum.ELEMENT_PAYMENT | ||
}); | ||
return _super6.call(this, _options, [componentSignEnum.ELEMENT_PAYMENT]); | ||
return _super7.call(this, _options, [componentSignEnum.ELEMENT_PAYMENT]); | ||
} | ||
return _createClass(AMSPaymentElement); | ||
return _createClass(AntomElement); | ||
}(AMSCheckout); | ||
export var Address = /*#__PURE__*/function (_AddressComponent) { | ||
_inherits(Address, _AddressComponent); | ||
var _super8 = _createSuper(Address); | ||
function Address(_options, channelType) { | ||
var _this2; | ||
var productSceneVersion = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '1.0'; | ||
_classCallCheck(this, Address); | ||
_this2 = _super8.call(this, _options); | ||
_this2.preloadComponent(channelType, productSceneVersion); | ||
return _this2; | ||
} | ||
return _createClass(Address); | ||
}(AddressComponent); | ||
export var AddressElement = /*#__PURE__*/function (_Address) { | ||
_inherits(AddressElement, _Address); | ||
var _super9 = _createSuper(AddressElement); | ||
function AddressElement(options) { | ||
_classCallCheck(this, AddressElement); | ||
var _options = Object.assign({}, options, { | ||
product: productSceneEnum.ELEMENT_ADDRESS | ||
}); | ||
return _super9.call(this, _options, [componentSignEnum.ELEMENT_ADDRESS]); | ||
} | ||
return _createClass(AddressElement); | ||
}(Address); | ||
export default AMSCheckout; |
@@ -18,3 +18,3 @@ 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); } | ||
*/ | ||
import { marmotMap, sdkVersion, elementAppMarmotMap } from "../../config/index"; | ||
import { elementAppMarmotMap, marmotMap, sdkVersion } from "../../config/index"; | ||
import { componentSignEnum, ComponentSignEnumV2 } from "../../types"; | ||
@@ -49,3 +49,3 @@ import { isDebugLog } from "../../util/debug"; | ||
if (!appVersion) { | ||
appVersion = getLastAppVersion(productScene); | ||
appVersion = getLastAppVersion(sdkVersion + productScene); | ||
return appVersion; | ||
@@ -55,3 +55,3 @@ } | ||
if (_extendInfo) { | ||
setLastAppVersion(productScene, appVersion); | ||
setLastAppVersion(sdkVersion + productScene, appVersion); | ||
} | ||
@@ -64,3 +64,4 @@ return appVersion; | ||
var getFinalProductSceneVersion = function getFinalProductSceneVersion(componentSign, productSceneVersion) { | ||
var signSupportMap = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, componentSignEnum.NONE, ['']), componentSignEnum.AUTO_DEBIT_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']); | ||
var _signSupportMap; | ||
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, ['']), 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'])); | ||
var supportProductSceneVersion = signSupportMap[componentSign]; | ||
@@ -108,3 +109,4 @@ // 从左到右,从旧到新 | ||
try { | ||
isExpressCheckout = JSON.parse(extendInfo).expressCheckout; | ||
// expressCheckout可能出现string(false) JSON.parse再转一次 | ||
isExpressCheckout = JSON.parse(JSON.parse(extendInfo).expressCheckout); | ||
} catch (error) { | ||
@@ -219,2 +221,4 @@ // 遇到JSON解析错误,默认false | ||
iframe.style.overflow = 'hidden'; | ||
// iframe设置支持第三方支付 | ||
iframe.allow = 'payment'; | ||
return iframe; | ||
@@ -221,0 +225,0 @@ }; |
@@ -1,11 +0,10 @@ | ||
/** | ||
* Copyright (c) 2022 International Business Group, Ant Group. All rights reserved. | ||
* | ||
* 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: | ||
* 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 | ||
* 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. | ||
*/ | ||
import { platformEnum } from '../../types'; | ||
import { componentSignEnum, platformEnum } from '../../types'; | ||
interface Options { | ||
componentSign?: componentSignEnum; | ||
type: 'tabs' | 'Accordion'; | ||
isExpressCheckout?: boolean; | ||
} | ||
export declare const inlineComponentAddCss: () => void; | ||
export declare const addInlineLoading: (_selector: HTMLDivElement, platform: platformEnum) => void; | ||
export declare const addInlineLoading: (_selector: HTMLDivElement, platform: platformEnum, options: Options) => void; | ||
export declare const createInlineBaseElement: (selector: string) => HTMLDivElement; | ||
export {}; |
@@ -8,6 +8,7 @@ /** | ||
*/ | ||
import { platformEnum } from "../../types"; | ||
import { INLINE_BASE_STYLE_ID, LOADING_ID, INLINE_IMG_CLASSNAME, COMPONENT_CONTAINER_ID, COMPONENT_IFRAME_TAG_ID } from "../../constant"; | ||
import { COMPONENT_CONTAINER_ID, COMPONENT_IFRAME_TAG_ID, INLINE_BASE_STYLE_ID, INLINE_IMG_CLASSNAME, LOADING_ID } from "../../constant"; | ||
import { componentSignEnum, platformEnum } from "../../types"; | ||
import { amsSetSize } from "../../util"; | ||
var inlineComponentCss = "#".concat(COMPONENT_IFRAME_TAG_ID, "-desktop{\n border-radius: 8px;\n position: absolute;\n top: 0;\n left: 0;\n}\n#").concat(COMPONENT_IFRAME_TAG_ID, "-mobile{\n position: absolute;\n top: 0;\n left: 0;\n}\n.").concat(COMPONENT_CONTAINER_ID, "-inline{\n width: 100%;\n height: auto;\n position: relative;\n line-height: 0;\n display: flex;\n}\n#").concat(LOADING_ID, "{\n width: 100%;\n flex: 1;\n}\n.").concat(INLINE_IMG_CLASSNAME, "{\n width: 100%;\n height: auto;\n object-fit: contain;\n box-sizing: border-box;\n}\n.").concat(INLINE_IMG_CLASSNAME, "-mobile{\n padding: 0 0.16em;\n}\n.").concat(INLINE_IMG_CLASSNAME, "-desktop{}\n"); | ||
// border-radius: 8px; | ||
var inlineComponentCss = "#".concat(COMPONENT_IFRAME_TAG_ID, "-desktop{\n position: absolute;\n top: 0;\n left: 0;\n}\n#").concat(COMPONENT_IFRAME_TAG_ID, "-mobile{\n position: absolute;\n top: 0;\n left: 0;\n}\n.").concat(COMPONENT_CONTAINER_ID, "-inline{\n width: 100%;\n height: auto;\n position: relative;\n line-height: 0;\n display: flex;\n}\n#").concat(LOADING_ID, "{\n width: 100%;\n flex: 1;\n}\n.").concat(INLINE_IMG_CLASSNAME, "{\n width: 100%;\n height: auto;\n object-fit: contain;\n box-sizing: border-box;\n}\n.").concat(INLINE_IMG_CLASSNAME, "-mobile{\n padding: 0 0.16em;\n}\n.").concat(INLINE_IMG_CLASSNAME, "-desktop{}\n"); | ||
export var inlineComponentAddCss = function inlineComponentAddCss() { | ||
@@ -20,7 +21,87 @@ var style = document.createElement('style'); | ||
}; | ||
export var addInlineLoading = function addInlineLoading(_selector, platform) { | ||
/** | ||
* @description componentSignEnum.ELEMENT_PAYMENT特殊处理 | ||
* @param {Options['type']} type | ||
*/ | ||
var renderElementPayment = function renderElementPayment(type) { | ||
var spliceStr = function spliceStr() { | ||
var arr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; | ||
return arr.reduce(function (pre, cur) { | ||
return pre += cur; | ||
}, ''); | ||
}; | ||
var commonDom = function commonDom(children) { | ||
var viewBox = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '0 0 560 256'; | ||
var height = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 256; | ||
return "<svg id=\"".concat(INLINE_IMG_CLASSNAME, "-").concat(type, "\" width=\"100%\" height=\"").concat(height, "\" viewBox=\"").concat(viewBox, "\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" preserveAspectRatio=\"none\">\n ").concat(spliceStr(children), "\n <animate xlink:href=\"#").concat(INLINE_IMG_CLASSNAME, "-").concat(type, "\" attributeName=\"opacity\" values=\"0.5; 1; 0.5\" begin=\"0s\" dur=\"1s\" repeatCount=\"indefinite\"></animate>\n </svg>"); | ||
}; | ||
var creatRect = function creatRect(_ref) { | ||
var _ref$x = _ref.x, | ||
x = _ref$x === void 0 ? 0 : _ref$x, | ||
_ref$y = _ref.y, | ||
y = _ref$y === void 0 ? 0 : _ref$y, | ||
_ref$fill = _ref.fill, | ||
fill = _ref$fill === void 0 ? 'black' : _ref$fill, | ||
_ref$width = _ref.width, | ||
width = _ref$width === void 0 ? 560 : _ref$width, | ||
_ref$height = _ref.height, | ||
height = _ref$height === void 0 ? 32 : _ref$height, | ||
_ref$rx = _ref.rx, | ||
rx = _ref$rx === void 0 ? 4 : _ref$rx; | ||
return "<rect fill-opacity=\"0.04\" x=\"".concat(x, "\" y=\"").concat(y, "\" width=\"").concat(width, "\" height=\"").concat(height, "\" rx=\"").concat(rx, "\" fill=\"").concat(fill, "\"/>"); | ||
}; | ||
var result = [creatRect({ | ||
fill: 'white' | ||
}), creatRect({ | ||
y: 4 | ||
}), creatRect({ | ||
y: 48, | ||
height: 64 | ||
}), creatRect({ | ||
y: 128 | ||
}), creatRect({ | ||
y: 176 | ||
}), creatRect({ | ||
y: 224 | ||
})]; | ||
if (type === 'tabs') { | ||
result = [creatRect({ | ||
fill: 'white', | ||
width: 358, | ||
height: 305 | ||
}), creatRect({ | ||
y: 4, | ||
width: '50%', | ||
height: 73 | ||
}), creatRect({ | ||
x: '51%', | ||
y: 4, | ||
height: 73 | ||
}), creatRect({ | ||
y: 96, | ||
height: 64 | ||
}), creatRect({ | ||
y: 178 | ||
}), creatRect({ | ||
y: 228 | ||
}), creatRect({ | ||
y: 276 | ||
})]; | ||
} | ||
var viewBox = { | ||
view: type === 'tabs' ? '0 0 358 305' : '0 0 560 256', | ||
height: type === 'tabs' ? 305 : 256 | ||
}; | ||
return commonDom(result, viewBox.view, viewBox.height); | ||
}; | ||
export var addInlineLoading = function addInlineLoading(_selector, platform, options) { | ||
var loading = document.createElement('div'); | ||
loading.id = LOADING_ID; | ||
if (platform === platformEnum.desktop) loading.innerHTML = "<svg class=\"".concat(INLINE_IMG_CLASSNAME, " ").concat(INLINE_IMG_CLASSNAME, "-").concat(platform, "\" width=\"740\" height=\"360\" viewBox=\"0 0 740 360\" fill=\"none\" xmlns=\"\">\n <rect width=\"740\" height=\"360\" rx=\"12\" fill=\"#F6F6F6\"/>\n <rect opacity=\"0.7\" x=\"44\" y=\"44\" width=\"32\" height=\"32\" rx=\"4\" fill=\"#E1E6ED\"/>\n <rect opacity=\"0.7\" x=\"94\" y=\"44\" width=\"32\" height=\"32\" rx=\"4\" fill=\"#E1E6ED\"/>\n <rect opacity=\"0.7\" x=\"144\" y=\"44\" width=\"32\" height=\"32\" rx=\"4\" fill=\"#E1E6ED\"/>\n <g style=\"mix-blend-mode:multiply\" opacity=\"0.336007\">\n <path d=\"M136 100H48C43.5817 100 40 103.582 40 108C40 112.418 43.5817 116 48 116H136C140.418 116 144 112.418 144 108C144 103.582 140.418 100 136 100Z\" fill=\"#E1E6ED\"/>\n </g>\n <g style=\"mix-blend-mode:multiply\" opacity=\"0.336007\">\n <path d=\"M682 126H58C48.0589 126 40 134.059 40 144C40 153.941 48.0589 162 58 162H682C691.941 162 700 153.941 700 144C700 134.059 691.941 126 682 126Z\" fill=\"#E1E6ED\"/>\n </g>\n <g style=\"mix-blend-mode:multiply\" opacity=\"0.336007\">\n <path d=\"M682 182H58C48.0589 182 40 190.059 40 200C40 209.941 48.0589 218 58 218H682C691.941 218 700 209.941 700 200C700 190.059 691.941 182 682 182Z\" fill=\"#E1E6ED\"/>\n </g>\n <g style=\"mix-blend-mode:multiply\" opacity=\"0.336007\">\n <path d=\"M504 274H64C52.9543 274 44 282.954 44 294C44 305.046 52.9543 314 64 314H504C515.046 314 524 305.046 524 294C524 282.954 515.046 274 504 274Z\" fill=\"#E1E6ED\"/>\n </g>\n </svg>"); | ||
if (platform === platformEnum.mobile) loading.innerHTML = "<svg class=\"".concat(INLINE_IMG_CLASSNAME, " ").concat(INLINE_IMG_CLASSNAME, "-").concat(platform, "\" width=\"358\" height=\"186\" viewBox=\"0 0 358 186\" fill=\"none\" xmlns=\"\">\n <g clip-path=\"url(#clip0_2543_91192)\">\n <rect width=\"358\" height=\"186\" fill=\"white\"/>\n <g clip-path=\"url(#clip1_2543_91192)\">\n <rect width=\"358\" height=\"186\" fill=\"white\"/>\n <rect width=\"358\" height=\"40\" fill=\"white\"/>\n <rect opacity=\"0.7\" x=\"4\" y=\"4\" width=\"32\" height=\"32\" rx=\"4\" fill=\"#E1E6ED\"/>\n <rect opacity=\"0.7\" x=\"54\" y=\"4\" width=\"32\" height=\"32\" rx=\"4\" fill=\"#E1E6ED\"/>\n <rect opacity=\"0.7\" x=\"104\" y=\"4\" width=\"32\" height=\"32\" rx=\"4\" fill=\"#E1E6ED\"/>\n <g clip-path=\"url(#clip2_2543_91192)\">\n <rect width=\"358\" height=\"120\" transform=\"translate(0 66)\" fill=\"white\"/>\n <g style=\"mix-blend-mode:multiply\" opacity=\"0.336007\">\n <path d=\"M95 66H9C4.02944 66 0 70.0294 0 75C0 79.9706 4.02943 84 9 84H95C99.9706 84 104 79.9706 104 75C104 70.0294 99.9706 66 95 66Z\" fill=\"#E1E6ED\"/>\n </g>\n <g clip-path=\"url(#clip3_2543_91192)\">\n <g style=\"mix-blend-mode:multiply\" opacity=\"0.336007\">\n <path d=\"M340 94H18C8.05888 94 0 102.059 0 112C0 121.941 8.05887 130 18 130H340C349.941 130 358 121.941 358 112C358 102.059 349.941 94 340 94Z\" fill=\"#E1E6ED\"/>\n </g>\n <g style=\"mix-blend-mode:multiply\" opacity=\"0.336007\">\n <path d=\"M340 150H18C8.05888 150 0 158.059 0 168C0 177.941 8.05887 186 18 186H340C349.941 186 358 177.941 358 168C358 158.059 349.941 150 340 150Z\" fill=\"#E1E6ED\"/>\n </g>\n </g>\n </g>\n </g>\n </g>\n <defs>\n <clipPath id=\"clip0_2543_91192\">\n <rect width=\"358\" height=\"186\" fill=\"white\"/>\n </clipPath>\n <clipPath id=\"clip1_2543_91192\">\n <rect width=\"358\" height=\"186\" fill=\"white\"/>\n </clipPath>\n <clipPath id=\"clip2_2543_91192\">\n <rect width=\"358\" height=\"120\" fill=\"white\" transform=\"translate(0 66)\"/>\n </clipPath>\n <clipPath id=\"clip3_2543_91192\">\n <rect width=\"358\" height=\"92\" fill=\"white\" transform=\"translate(0 94)\"/>\n </clipPath>\n </defs>\n </svg>\n "); | ||
if (options.componentSign === componentSignEnum.ELEMENT_PAYMENT) { | ||
if (options.isExpressCheckout) { | ||
loading.innerHTML = ''; | ||
} else { | ||
loading.innerHTML = renderElementPayment(options === null || options === void 0 ? void 0 : options.type); | ||
} | ||
} else if (platform === platformEnum.desktop) loading.innerHTML = "<svg class=\"".concat(INLINE_IMG_CLASSNAME, " ").concat(INLINE_IMG_CLASSNAME, "-").concat(platform, "\" width=\"740\" height=\"360\" viewBox=\"0 0 740 360\" fill=\"none\" xmlns=\"\">\n <rect width=\"740\" height=\"360\" rx=\"12\" fill=\"#F6F6F6\"/>\n <rect opacity=\"0.7\" x=\"44\" y=\"44\" width=\"32\" height=\"32\" rx=\"4\" fill=\"#E1E6ED\"/>\n <rect opacity=\"0.7\" x=\"94\" y=\"44\" width=\"32\" height=\"32\" rx=\"4\" fill=\"#E1E6ED\"/>\n <rect opacity=\"0.7\" x=\"144\" y=\"44\" width=\"32\" height=\"32\" rx=\"4\" fill=\"#E1E6ED\"/>\n <g style=\"mix-blend-mode:multiply\" opacity=\"0.336007\">\n <path d=\"M136 100H48C43.5817 100 40 103.582 40 108C40 112.418 43.5817 116 48 116H136C140.418 116 144 112.418 144 108C144 103.582 140.418 100 136 100Z\" fill=\"#E1E6ED\"/>\n </g>\n <g style=\"mix-blend-mode:multiply\" opacity=\"0.336007\">\n <path d=\"M682 126H58C48.0589 126 40 134.059 40 144C40 153.941 48.0589 162 58 162H682C691.941 162 700 153.941 700 144C700 134.059 691.941 126 682 126Z\" fill=\"#E1E6ED\"/>\n </g>\n <g style=\"mix-blend-mode:multiply\" opacity=\"0.336007\">\n <path d=\"M682 182H58C48.0589 182 40 190.059 40 200C40 209.941 48.0589 218 58 218H682C691.941 218 700 209.941 700 200C700 190.059 691.941 182 682 182Z\" fill=\"#E1E6ED\"/>\n </g>\n <g style=\"mix-blend-mode:multiply\" opacity=\"0.336007\">\n <path d=\"M504 274H64C52.9543 274 44 282.954 44 294C44 305.046 52.9543 314 64 314H504C515.046 314 524 305.046 524 294C524 282.954 515.046 274 504 274Z\" fill=\"#E1E6ED\"/>\n </g>\n </svg>");else if (platform === platformEnum.mobile) loading.innerHTML = "<svg class=\"".concat(INLINE_IMG_CLASSNAME, " ").concat(INLINE_IMG_CLASSNAME, "-").concat(platform, "\" width=\"358\" height=\"186\" viewBox=\"0 0 358 186\" fill=\"none\" xmlns=\"\">\n <g clip-path=\"url(#clip0_2543_91192)\">\n <rect width=\"358\" height=\"186\" fill=\"white\"/>\n <g clip-path=\"url(#clip1_2543_91192)\">\n <rect width=\"358\" height=\"186\" fill=\"white\"/>\n <rect width=\"358\" height=\"40\" fill=\"white\"/>\n <rect opacity=\"0.7\" x=\"4\" y=\"4\" width=\"32\" height=\"32\" rx=\"4\" fill=\"#E1E6ED\"/>\n <rect opacity=\"0.7\" x=\"54\" y=\"4\" width=\"32\" height=\"32\" rx=\"4\" fill=\"#E1E6ED\"/>\n <rect opacity=\"0.7\" x=\"104\" y=\"4\" width=\"32\" height=\"32\" rx=\"4\" fill=\"#E1E6ED\"/>\n <g clip-path=\"url(#clip2_2543_91192)\">\n <rect width=\"358\" height=\"120\" transform=\"translate(0 66)\" fill=\"white\"/>\n <g style=\"mix-blend-mode:multiply\" opacity=\"0.336007\">\n <path d=\"M95 66H9C4.02944 66 0 70.0294 0 75C0 79.9706 4.02943 84 9 84H95C99.9706 84 104 79.9706 104 75C104 70.0294 99.9706 66 95 66Z\" fill=\"#E1E6ED\"/>\n </g>\n <g clip-path=\"url(#clip3_2543_91192)\">\n <g style=\"mix-blend-mode:multiply\" opacity=\"0.336007\">\n <path d=\"M340 94H18C8.05888 94 0 102.059 0 112C0 121.941 8.05887 130 18 130H340C349.941 130 358 121.941 358 112C358 102.059 349.941 94 340 94Z\" fill=\"#E1E6ED\"/>\n </g>\n <g style=\"mix-blend-mode:multiply\" opacity=\"0.336007\">\n <path d=\"M340 150H18C8.05888 150 0 158.059 0 168C0 177.941 8.05887 186 18 186H340C349.941 186 358 177.941 358 168C358 158.059 349.941 150 340 150Z\" fill=\"#E1E6ED\"/>\n </g>\n </g>\n </g>\n </g>\n </g>\n <defs>\n <clipPath id=\"clip0_2543_91192\">\n <rect width=\"358\" height=\"186\" fill=\"white\"/>\n </clipPath>\n <clipPath id=\"clip1_2543_91192\">\n <rect width=\"358\" height=\"186\" fill=\"white\"/>\n </clipPath>\n <clipPath id=\"clip2_2543_91192\">\n <rect width=\"358\" height=\"120\" fill=\"white\" transform=\"translate(0 66)\"/>\n </clipPath>\n <clipPath id=\"clip3_2543_91192\">\n <rect width=\"358\" height=\"92\" fill=\"white\" transform=\"translate(0 94)\"/>\n </clipPath>\n </defs>\n </svg>\n "); | ||
if (_selector) _selector.appendChild(loading); | ||
@@ -27,0 +108,0 @@ var loadingDom = document.getElementById(LOADING_ID); |
@@ -0,8 +1,11 @@ | ||
export declare const createCustomSheet: (curTheme?: 'dark' | 'light') => void; | ||
export declare const renderPopupLoading: (container: HTMLDivElement, curTheme: 'dark' | 'light') => void; | ||
export declare const removePopupLoading: (isShowMockup?: boolean) => void; | ||
export declare const insertStyleSheet: () => void; | ||
export declare const createModal: ({ device, url, widthPadding, heightPadding }: { | ||
export declare const createModal: ({ device, url, widthPadding, loadingConfig }: { | ||
device: any; | ||
url: any; | ||
widthPadding: any; | ||
heightPadding: any; | ||
loadingConfig: any; | ||
}) => Promise<HTMLIFrameElement>; | ||
export declare const destroyModal: () => void; |
@@ -1,6 +0,44 @@ | ||
import { AMSPOPUP_PREFIX, ANIMATION_TIME } from "../../constant"; | ||
import { AMSPOPUP_PREFIX, ANIMATION_TIME, MOCKUP_ID, POPUPLOADING_ID } from "../../constant"; | ||
import { getDesignFontSize } from "../../util"; | ||
// CSS样式字符串 | ||
var modalStyles = "\n .".concat(AMSPOPUP_PREFIX, "modal {\n /* \u6DFB\u52A0\u5F39\u7A97\u6837\u5F0F */\n background-color: #fff;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n z-index: 9999; /* \u8BBE\u7F6E\u5F39\u7A97\u7684\u5C42\u7EA7\u4E3A 9999 */\n overflow: hidden;\n }\n\n .").concat(AMSPOPUP_PREFIX, "overlay {\n /* \u6DFB\u52A0\u8499\u5C42\u6837\u5F0F */\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.4);\n z-index: 999;\n }\n\n .").concat(AMSPOPUP_PREFIX, "fadeIn {\n /* \u6DFB\u52A0\u6DE1\u5165\u52A8\u753B */\n animation: fadeIn ").concat(ANIMATION_TIME, "ms;\n animation-fill-mode: forwards;\n }\n\n .").concat(AMSPOPUP_PREFIX, "fadeOut {\n /* \u6DFB\u52A0\u6DE1\u51FA\u52A8\u753B */\n animation: fadeOut ").concat(ANIMATION_TIME, "ms;\n animation-fill-mode: forwards;\n }\n\n /* \u5B9A\u4E49\u6DE1\u5165\u52A8\u753B */\n @keyframes fadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n\n @-webkit-keyframes fadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n\n @-moz-keyframes fadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n\n /* \u5B9A\u4E49\u6DE1\u51FA\u52A8\u753B */\n @keyframes fadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n }\n\n @-webkit-keyframes fadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n }\n\n @-moz-keyframes fadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n }\n"); | ||
var modalStyles = "\n .".concat(AMSPOPUP_PREFIX, "modal {\n /* \u6DFB\u52A0\u5F39\u7A97\u6837\u5F0F */\n background-color: #fff;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n z-index: 9999; /* \u8BBE\u7F6E\u5F39\u7A97\u7684\u5C42\u7EA7\u4E3A 9999 */\n overflow: hidden;\n }\n\n .").concat(AMSPOPUP_PREFIX, "overlay {\n /* \u6DFB\u52A0\u8499\u5C42\u6837\u5F0F */\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.4);\n z-index: 999;\n }\n\n .").concat(AMSPOPUP_PREFIX, "fadeIn {\n /* \u6DFB\u52A0\u6DE1\u5165\u52A8\u753B */\n animation: fadeIn ").concat(ANIMATION_TIME, "ms;\n animation-fill-mode: forwards;\n }\n\n .").concat(AMSPOPUP_PREFIX, "fadeOut {\n /* \u6DFB\u52A0\u6DE1\u51FA\u52A8\u753B */\n animation: fadeOut ").concat(ANIMATION_TIME, "ms;\n animation-fill-mode: forwards;\n }\n\n /* \u5B9A\u4E49\u6DE1\u5165\u52A8\u753B */\n @keyframes fadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n\n @-webkit-keyframes fadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n\n @-moz-keyframes fadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n\n /* \u5B9A\u4E49\u6DE1\u51FA\u52A8\u753B */\n @keyframes fadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n }\n\n @-webkit-keyframes fadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n }\n\n @-moz-keyframes fadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n }\n\n\n.ams-component-popup-loading {\n width: 0.8em;\n height:0.8em;\n border-radius: 8px;\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n z-index: 1001;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n}\n\n.ams-component-popup-loading .line {\n width: 40px;\n height: 40px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n.ams-component-popup-loading .line div {\n position: absolute;\n left: 17.67px;\n top: 0;\n width: 5.33px;\n height: 40px;\n}\n\n.ams-component-popup-loading .line div:before,\n.ams-component-popup-loading .line div:after {\n content: '';\n display: block;\n height: 13.33px;\n background: black;\n border-radius: 5.3px;\n}\n.ams-component-popup-loading .line div:after {\n margin-top: 13.33px;\n}\n\n.ams-component-popup-loading .line div:nth-child(2) {\n -webkit-transform: rotate(45deg);\n}\n\n.ams-component-popup-loading .line div:nth-child(3) {\n -webkit-transform: rotate(90deg);\n}\n\n.ams-component-popup-loading .line div:nth-child(4) {\n -webkit-transform: rotate(135deg);\n}\n\n/** \u52A0\u8F7D\u52A8\u753B **/\n@-webkit-keyframes load {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n.ams-component-popup-loading .line div:nth-child(1):before {\n -webkit-animation: load 1s linear 0s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(2):before {\n -webkit-animation: load 1s linear 0.125s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(3):before {\n -webkit-animation: load 1s linear 0.25s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(4):before {\n -webkit-animation: load 1s linear 0.375s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(1):after {\n -webkit-animation: load 1s linear 0.5s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(2):after {\n -webkit-animation: load 1s linear 0.675s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(3):after {\n -webkit-animation: load 1s linear 0.75s infinite;\n}\n\n.ams-component-popup-loading .line div:nth-child(4):after {\n -webkit-animation: load 1s linear 0.875s infinite;\n}\n\n.ams-component-popup-loading-logo {\n width: 0.44em;\n height: 0.44em;\n -webkit-transform:rotate(360deg);\n transform:rotate(360deg);\n -webkit-transition:-webkit-transform 1s linear;\n transition:transform 1s linear;\n animation: ams-component-loading-logo 1s linear infinite;\n}\n"); | ||
var getCurrentTheme = function getCurrentTheme() { | ||
var curTheme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'default'; | ||
var theme = { | ||
night: 'dark', | ||
gamingPurple: 'dark', | ||
agateGreen: 'dark', | ||
default: 'light', | ||
nostalgicGray: 'light', | ||
cherryBlossomPink: 'light' | ||
}; | ||
return theme[curTheme]; | ||
}; | ||
export var createCustomSheet = function createCustomSheet() { | ||
var curTheme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'light'; | ||
var sheet = "\n .ams-component-popup-loading .line div:before,\n .ams-component-popup-loading .line div:after {\n background: ".concat(curTheme === 'light' ? '#000000' : '#ffffff', " !important;\n }"); | ||
var style = document.createElement('style'); | ||
style.innerHTML = sheet; | ||
document.head.appendChild(style); | ||
}; | ||
export var renderPopupLoading = function renderPopupLoading(container, curTheme) { | ||
createCustomSheet(curTheme); | ||
var loading = document.createElement('div'); | ||
loading === null || loading === void 0 || loading.classList.add(POPUPLOADING_ID); | ||
loading.id = POPUPLOADING_ID; | ||
loading.innerHTML = '<div class="line"><div></div><div></div><div></div><div></div></div>'; | ||
loading.style.fontSize = "".concat(getDesignFontSize(), "px"); | ||
container.appendChild(loading); | ||
}; | ||
export var removePopupLoading = function removePopupLoading() { | ||
var _document$getElementB; | ||
var isShowMockup = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; | ||
var mockup = document.getElementById(MOCKUP_ID); | ||
if (mockup) { | ||
mockup.style.background = 'rgb(0, 0, 0, 0.6)'; | ||
mockup.style.display = isShowMockup ? 'block' : 'none'; | ||
} | ||
(_document$getElementB = document.getElementById(POPUPLOADING_ID)) === null || _document$getElementB === void 0 || _document$getElementB.remove(); | ||
}; | ||
// 创建和插入样式表 | ||
@@ -18,3 +56,3 @@ export var insertStyleSheet = function insertStyleSheet() { | ||
widthPadding = _ref.widthPadding, | ||
heightPadding = _ref.heightPadding; | ||
loadingConfig = _ref.loadingConfig; | ||
return new Promise(function (resolve, reject) { | ||
@@ -27,8 +65,8 @@ try { | ||
if (device === 'desktop') { | ||
modal.style.width = '600px'; | ||
modal.style.height = '464px'; | ||
modal.style.width = '656px'; | ||
modal.style.height = '620px'; | ||
modal.style.borderRadius = '12px'; | ||
} else { | ||
modal.style.width = "calc(100% - ".concat(2 * widthPadding, "px)"); | ||
modal.style.height = "calc(100% - ".concat(2 * heightPadding, "px)"); | ||
modal.style.height = "80vh"; | ||
modal.style.borderRadius = '8px'; | ||
@@ -41,2 +79,12 @@ } | ||
iframe.style.height = '100%'; | ||
if (loadingConfig && Object.keys(loadingConfig).length) { | ||
var _loadingConfig$theme = loadingConfig.theme, | ||
theme = _loadingConfig$theme === void 0 ? 'default' : _loadingConfig$theme, | ||
_loadingConfig$backgr = loadingConfig.backgroundPrimary, | ||
backgroundPrimary = _loadingConfig$backgr === void 0 ? '#ffffff' : _loadingConfig$backgr; | ||
var mode = getCurrentTheme(theme); | ||
renderPopupLoading(modal, mode); | ||
modal.style.backgroundColor = backgroundPrimary; | ||
iframe.style.backgroundColor = backgroundPrimary; | ||
} | ||
modal.appendChild(iframe); | ||
@@ -43,0 +91,0 @@ var body = document.getElementsByTagName('body')[0]; |
@@ -11,2 +11,3 @@ import { BusSubscriber } from 'src/core/bus'; | ||
destroyComponent?: string; | ||
getValue?: string; | ||
} | ||
@@ -13,0 +14,0 @@ export type IExtendPluginItem = { |
@@ -44,3 +44,4 @@ /** | ||
export declare enum ComponentSignEnumV2 { | ||
'ELEMENT_PAYMENT' = "ELEMENT_PAYMENT_ALL" | ||
'ELEMENT_PAYMENT' = "ELEMENT_PAYMENT_ALL", | ||
'ELEMENT_ADDRESS' = "ELEMENT_ADDRESS_ALL" | ||
} | ||
@@ -54,5 +55,7 @@ export declare enum componentSignEnum { | ||
'AUTO_DEBIT_WALLET' = "AUTO_DEBIT_WALLET", | ||
'AUTO_DEBIT_PAY_WALLET' = "AUTO_DEBIT_PAY_WALLET", | ||
'NONE' = "NONE", | ||
'VAULTING_CARD' = "VAULTING_CARD", | ||
'ELEMENT_PAYMENT' = "ELEMENT_PAYMENT_ALL" | ||
'ELEMENT_PAYMENT' = "ELEMENT_PAYMENT_ALL", | ||
'ELEMENT_ADDRESS' = "ELEMENT_ADDRESS_ALL" | ||
} | ||
@@ -63,6 +66,8 @@ export declare enum productSceneEnum { | ||
'AUTO_DEBIT' = "AUTO_DEBIT", | ||
'AUTO_DEBIT_PAY' = "AUTO_DEBIT_PAY", | ||
'VAULTING' = "VAULTING", | ||
'FLASH_BUY' = "FLASH_BUY", | ||
'CARD_APPLE_PAY' = "CARD_APPLE_PAY", | ||
'ELEMENT_PAYMENT' = "ELEMENT_PAYMENT" | ||
'ELEMENT_PAYMENT' = "ELEMENT_PAYMENT", | ||
'ELEMENT_ADDRESS' = "ELEMENT_ADDRESS" | ||
} | ||
@@ -148,2 +153,6 @@ export declare enum paymentMethodCategoryTypeEnum { | ||
} | ||
export interface frontModulesToBeLoadedInterface { | ||
acquirerName: string; | ||
scriptUrl: string; | ||
} | ||
export interface IpaymentSessionMetaData { | ||
@@ -236,2 +245,3 @@ clientId?: string; | ||
}; | ||
frontModulesToBeLoaded?: frontModulesToBeLoadedInterface[]; | ||
}; | ||
@@ -238,0 +248,0 @@ } |
@@ -20,2 +20,3 @@ /** | ||
ComponentSignEnumV2["ELEMENT_PAYMENT"] = "ELEMENT_PAYMENT_ALL"; | ||
ComponentSignEnumV2["ELEMENT_ADDRESS"] = "ELEMENT_ADDRESS_ALL"; | ||
return ComponentSignEnumV2; | ||
@@ -30,5 +31,7 @@ }({}); | ||
componentSignEnum["AUTO_DEBIT_WALLET"] = "AUTO_DEBIT_WALLET"; | ||
componentSignEnum["AUTO_DEBIT_PAY_WALLET"] = "AUTO_DEBIT_PAY_WALLET"; | ||
componentSignEnum["NONE"] = "NONE"; | ||
componentSignEnum["VAULTING_CARD"] = "VAULTING_CARD"; | ||
componentSignEnum["ELEMENT_PAYMENT"] = "ELEMENT_PAYMENT_ALL"; | ||
componentSignEnum["ELEMENT_ADDRESS"] = "ELEMENT_ADDRESS_ALL"; | ||
return componentSignEnum; | ||
@@ -40,2 +43,3 @@ }({}); | ||
productSceneEnum["AUTO_DEBIT"] = "AUTO_DEBIT"; | ||
productSceneEnum["AUTO_DEBIT_PAY"] = "AUTO_DEBIT_PAY"; | ||
productSceneEnum["VAULTING"] = "VAULTING"; | ||
@@ -45,2 +49,3 @@ productSceneEnum["FLASH_BUY"] = "FLASH_BUY"; | ||
productSceneEnum["ELEMENT_PAYMENT"] = "ELEMENT_PAYMENT"; | ||
productSceneEnum["ELEMENT_ADDRESS"] = "ELEMENT_ADDRESS"; | ||
return productSceneEnum; | ||
@@ -47,0 +52,0 @@ }({}); |
@@ -42,2 +42,8 @@ /** | ||
declare function parseBase64ToString(base64: string): string; | ||
export { getType, EventCenter, getViewPort, getOrigin, serialize, isJsonString, isDom, isFunction, device, safeJson, isPC, queryParse, getDesignFontSize, amsSetSize, addSetFontSizeEvent, getOrSetStorageId, checkTimeElapsed, parseBase64ToString, }; | ||
declare function loadSDKScript({ src, attrOptions, timeOut, loadCallback }: { | ||
src: any; | ||
attrOptions?: {}; | ||
timeOut?: number; | ||
loadCallback?: any; | ||
}, logger: any): Promise<unknown>; | ||
export { getType, EventCenter, getViewPort, getOrigin, serialize, isJsonString, isDom, isFunction, device, safeJson, isPC, queryParse, getDesignFontSize, amsSetSize, addSetFontSizeEvent, getOrSetStorageId, checkTimeElapsed, parseBase64ToString, loadSDKScript }; |
@@ -264,2 +264,68 @@ 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); } | ||
} | ||
export { getType, EventCenter, getViewPort, getOrigin, serialize, isJsonString, isDom, isFunction, device, safeJson, isPC, queryParse, getDesignFontSize, amsSetSize, addSetFontSizeEvent, getOrSetStorageId, checkTimeElapsed, parseBase64ToString }; | ||
function loadSDKScript(_ref, logger) { | ||
var _this2 = this; | ||
var src = _ref.src, | ||
_ref$attrOptions = _ref.attrOptions, | ||
attrOptions = _ref$attrOptions === void 0 ? {} : _ref$attrOptions, | ||
_ref$timeOut = _ref.timeOut, | ||
timeOut = _ref$timeOut === void 0 ? 3 : _ref$timeOut, | ||
_ref$loadCallback = _ref.loadCallback, | ||
loadCallback = _ref$loadCallback === void 0 ? null : _ref$loadCallback; | ||
return new Promise(function (resolve, reject) { | ||
// 创建 script 标签 | ||
logger.logInfo({ | ||
title: 'load_item_sdk_start' | ||
}, { | ||
src: src, | ||
attrOptions: JSON.stringify(attrOptions) | ||
}); | ||
console.time(); | ||
var script = document.createElement('script'); | ||
var timer = null; | ||
script.type = 'text/javascript'; | ||
// 监听加载完成事件 | ||
script.onload = function () { | ||
// 当脚本加载完毕时,执行回调函数 | ||
logger.logInfo({ | ||
title: 'load_item_sdk_end' | ||
}, { | ||
src: src, | ||
attrOptions: JSON.stringify(attrOptions) | ||
}); | ||
console.timeEnd(); | ||
clearTimeout(timer); | ||
if (loadCallback) loadCallback(); | ||
resolve(true); | ||
}; | ||
// 监听加载失败事件 | ||
script.onerror = function () { | ||
logger.logError({ | ||
title: 'load_item_sdk_error' | ||
}, { | ||
src: src, | ||
attrOptions: JSON.stringify(attrOptions) | ||
}); | ||
clearTimeout(timer); | ||
console.error('The script ' + src + ' is not accessible.'); | ||
reject(false); | ||
}; | ||
timer = setTimeout(function () { | ||
_this2.logger.logError({ | ||
title: 'load_item_sdk_timeout' | ||
}, { | ||
src: src, | ||
attrOptions: JSON.stringify(attrOptions) | ||
}); | ||
reject(false); | ||
}, timeOut * 1000); | ||
script.src = src; | ||
attrOptions && Object.keys(attrOptions).forEach(function (key) { | ||
script.setAttribute(key, attrOptions[key]); | ||
}); | ||
// 将 script 标签添加到页面中 | ||
document.head.appendChild(script); | ||
}); | ||
} | ||
export { getType, EventCenter, getViewPort, getOrigin, serialize, isJsonString, isDom, isFunction, device, safeJson, isPC, queryParse, getDesignFontSize, amsSetSize, addSetFontSizeEvent, getOrSetStorageId, checkTimeElapsed, parseBase64ToString, loadSDKScript }; |
@@ -30,11 +30,11 @@ export declare function isWebPlatform(platform?: string): boolean; | ||
* 获取保存的加载版本 | ||
* @param productScene | ||
* @param versionKey | ||
* @returns | ||
*/ | ||
export declare const getLastAppVersion: (productScene: string) => string; | ||
export declare const getLastAppVersion: (versionKey: string) => string; | ||
/** | ||
* 保存指定场景的加载版本供下次使用 | ||
* @param productScene | ||
* @param versionKey | ||
* @returns | ||
*/ | ||
export declare const setLastAppVersion: (productScene: string, appVersion: string) => boolean; | ||
export declare const setLastAppVersion: (versionKey: string, appVersion: string) => boolean; |
@@ -92,8 +92,8 @@ import { v4 as uuid } from 'uuid'; | ||
* 获取保存的加载版本 | ||
* @param productScene | ||
* @param versionKey | ||
* @returns | ||
*/ | ||
export var getLastAppVersion = function getLastAppVersion(productScene) { | ||
export var getLastAppVersion = function getLastAppVersion(versionKey) { | ||
try { | ||
var key = "Antom_".concat(productScene, "_LastAppVersion"); | ||
var key = "Antom_".concat(versionKey, "_LastAppVersion"); | ||
return getStorageString(key, ''); | ||
@@ -106,8 +106,8 @@ } catch (error) { | ||
* 保存指定场景的加载版本供下次使用 | ||
* @param productScene | ||
* @param versionKey | ||
* @returns | ||
*/ | ||
export var setLastAppVersion = function setLastAppVersion(productScene, appVersion) { | ||
export var setLastAppVersion = function setLastAppVersion(versionKey, appVersion) { | ||
try { | ||
var key = "Antom_".concat(productScene, "_LastAppVersion"); | ||
var key = "Antom_".concat(versionKey, "_LastAppVersion"); | ||
return setStorageString(key, appVersion); | ||
@@ -114,0 +114,0 @@ } catch (error) { |
{ | ||
"name": "@alipay/ams-checkout", | ||
"version": "0.0.1720509876-dev.2", | ||
"version": "0.0.1723203704-dev.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2955997
130
14470
2
9