@solidgate/vue-sdk 1.7.0 → 1.8.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.
@@ -2381,6 +2381,7 @@ const _sfc_main = defineComponent({
2381
2381
  appearance: {},
2382
2382
  styles: {},
2383
2383
  onReadyResignInstance: {},
2384
+ onResignInitFailed: {},
2384
2385
  onMounted: { type: Function, default: () => {
2385
2386
  } },
2386
2387
  onError: { type: Function, default: () => {
@@ -2404,7 +2405,7 @@ const _sfc_main = defineComponent({
2404
2405
  onResize: { type: Function, default: () => {
2405
2406
  } }
2406
2407
  },
2407
- emits: ["mounted", "error", "success", "fail", "submit", "verify", "customStylesAppended", "formRedirect", "interaction", "orderStatus", "resize", "readyResignInstance"],
2408
+ emits: ["mounted", "error", "success", "fail", "submit", "verify", "customStylesAppended", "formRedirect", "interaction", "orderStatus", "resize", "readyResignInstance", "resignInitFailed"],
2408
2409
  setup(__props, { emit }) {
2409
2410
  const props = __props;
2410
2411
  const StyledResign = styled.div`
@@ -2433,11 +2434,15 @@ const _sfc_main = defineComponent({
2433
2434
  onResize: (e) => props.onResize && props.onResize(e)
2434
2435
  };
2435
2436
  onMounted(async () => {
2436
- var _a2;
2437
- sdkInstance.value = await initResignForm(resignConfig);
2438
- if (sdkInstance.value) {
2439
- onSubscribe(sdkInstance.value, callbacks);
2440
- (_a2 = props.onReadyResignInstance) == null ? void 0 : _a2.call(props, sdkInstance.value);
2437
+ var _a2, _b;
2438
+ try {
2439
+ sdkInstance.value = await initResignForm(resignConfig);
2440
+ if (sdkInstance.value) {
2441
+ onSubscribe(sdkInstance.value, callbacks);
2442
+ (_a2 = props.onReadyResignInstance) == null ? void 0 : _a2.call(props, sdkInstance.value);
2443
+ }
2444
+ } catch (error) {
2445
+ (_b = props.onResignInitFailed) == null ? void 0 : _b.call(props, error);
2441
2446
  }
2442
2447
  });
2443
2448
  onUnmounted(() => {
@@ -2449,7 +2454,12 @@ const _sfc_main = defineComponent({
2449
2454
  (value) => isReactive(value) ? value : () => value
2450
2455
  ),
2451
2456
  async () => {
2452
- sdkInstance.value = await initResignForm(resignConfig);
2457
+ var _a2;
2458
+ try {
2459
+ sdkInstance.value = await initResignForm(resignConfig);
2460
+ } catch (error) {
2461
+ (_a2 = props.onResignInitFailed) == null ? void 0 : _a2.call(props, error);
2462
+ }
2453
2463
  }
2454
2464
  );
2455
2465
  return (_ctx, _cache) => {
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "import": "./dist/solid-payment.es.js"
11
11
  }
12
12
  },
13
- "version": "1.7.0",
13
+ "version": "1.8.0",
14
14
  "typings": "./dist/lib/index.d.ts",
15
15
  "license": "Apache-2.0",
16
16
  "scripts": {