@wise/dynamic-flow-client 5.9.2-logging-bf0bd22 → 5.9.2-logging-2-70d602d

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/build/main.js CHANGED
@@ -2507,18 +2507,21 @@ var createExternalConfirmation = (uid, url, onComponentUpdate) => {
2507
2507
  onSuccess() {
2508
2508
  update(this, (draft) => {
2509
2509
  draft.status = "success";
2510
+ console.log("\u{1F916} ExternalConfirmationComponent onSuccess / status updated to success");
2510
2511
  });
2511
2512
  },
2512
2513
  onFailure() {
2513
2514
  if (this.status === "initial") {
2514
2515
  update(this, (draft) => {
2515
2516
  draft.status = "failure";
2517
+ console.log("\u{1F916} ExternalConfirmationComponent onFailure / status updated to failure");
2516
2518
  });
2517
2519
  }
2518
2520
  },
2519
2521
  onCancel() {
2520
2522
  update(this, (draft) => {
2521
2523
  draft.status = "dismissed";
2524
+ console.log("\u{1F916} ExternalConfirmationComponent onCancel / status updated to dismissed");
2522
2525
  });
2523
2526
  }
2524
2527
  };
@@ -8445,14 +8448,13 @@ var useRerender = () => {
8445
8448
  return (0, import_react3.useCallback)(() => setState({}), []);
8446
8449
  };
8447
8450
  var useFlowController = (props) => {
8448
- console.log("\u{1F680} useFlowController");
8451
+ console.log("\u{1F680} useFlowController", props.flowId);
8449
8452
  const df = (0, import_react3.useMemo)(() => createFlowController(props), []);
8450
8453
  (0, import_react3.useEffect)(() => {
8451
- console.log("\u{1F680} useFlowController/useEffect (mount)");
8452
- console.log(" calling df.start()");
8454
+ console.log("\u{1F680} useFlowController/useEffect (mount)", props.flowId);
8453
8455
  df.start();
8454
8456
  return () => {
8455
- console.log("\u{1F680} useFlowController/useEffect (unmount)");
8457
+ console.log("\u{1F680} useFlowController/useEffect (unmount)", props.flowId);
8456
8458
  df.rootComponent.stop();
8457
8459
  };
8458
8460
  }, []);
package/build/main.mjs CHANGED
@@ -2477,18 +2477,21 @@ var createExternalConfirmation = (uid, url, onComponentUpdate) => {
2477
2477
  onSuccess() {
2478
2478
  update(this, (draft) => {
2479
2479
  draft.status = "success";
2480
+ console.log("\u{1F916} ExternalConfirmationComponent onSuccess / status updated to success");
2480
2481
  });
2481
2482
  },
2482
2483
  onFailure() {
2483
2484
  if (this.status === "initial") {
2484
2485
  update(this, (draft) => {
2485
2486
  draft.status = "failure";
2487
+ console.log("\u{1F916} ExternalConfirmationComponent onFailure / status updated to failure");
2486
2488
  });
2487
2489
  }
2488
2490
  },
2489
2491
  onCancel() {
2490
2492
  update(this, (draft) => {
2491
2493
  draft.status = "dismissed";
2494
+ console.log("\u{1F916} ExternalConfirmationComponent onCancel / status updated to dismissed");
2492
2495
  });
2493
2496
  }
2494
2497
  };
@@ -8415,14 +8418,13 @@ var useRerender = () => {
8415
8418
  return useCallback2(() => setState({}), []);
8416
8419
  };
8417
8420
  var useFlowController = (props) => {
8418
- console.log("\u{1F680} useFlowController");
8421
+ console.log("\u{1F680} useFlowController", props.flowId);
8419
8422
  const df = useMemo(() => createFlowController(props), []);
8420
8423
  useEffect2(() => {
8421
- console.log("\u{1F680} useFlowController/useEffect (mount)");
8422
- console.log(" calling df.start()");
8424
+ console.log("\u{1F680} useFlowController/useEffect (mount)", props.flowId);
8423
8425
  df.start();
8424
8426
  return () => {
8425
- console.log("\u{1F680} useFlowController/useEffect (unmount)");
8427
+ console.log("\u{1F680} useFlowController/useEffect (unmount)", props.flowId);
8426
8428
  df.rootComponent.stop();
8427
8429
  };
8428
8430
  }, []);
@@ -1 +1 @@
1
- {"version":3,"file":"ExternalConfirmationComponent.d.ts","sourceRoot":"","sources":["../../../../../src/domain/components/step/ExternalConfirmationComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAG/D,MAAM,MAAM,6BAA6B,GAAG,aAAa,GAAG;IAC1D,IAAI,EAAE,uBAAuB,CAAC;IAC9B,IAAI,EAAE,QAAQ,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC;IACxD,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,0BAA0B,GACrC,KAAK,MAAM,EACX,KAAK,MAAM,EACX,mBAAmB,iBAAiB,KACnC,6BA2BF,CAAC"}
1
+ {"version":3,"file":"ExternalConfirmationComponent.d.ts","sourceRoot":"","sources":["../../../../../src/domain/components/step/ExternalConfirmationComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAG/D,MAAM,MAAM,6BAA6B,GAAG,aAAa,GAAG;IAC1D,IAAI,EAAE,uBAAuB,CAAC;IAC9B,IAAI,EAAE,QAAQ,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC;IACxD,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,0BAA0B,GACrC,KAAK,MAAM,EACX,KAAK,MAAM,EACX,mBAAmB,iBAAiB,KACnC,6BA8BF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-client",
3
- "version": "5.9.2-logging-bf0bd22",
3
+ "version": "5.9.2-logging-2-70d602d",
4
4
  "description": "Dynamic Flow web client",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./build/main.js",