@plaidev/karte-action-sdk 1.1.77 → 1.1.78

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.
@@ -496,7 +496,7 @@ function create(App, options = {
496
496
  window.removeEventListener(ACTION_CHANGE_STATE_EVENT, setState);
497
497
  const trigger = event.detail?.trigger ? event.detail?.trigger : 'button';
498
498
  if (options.onClose) {
499
- options.onClose({ send: options.send, data }, trigger);
499
+ options.onClose({ send: options.send, data: { ...data, ...getStoreState(customVariables) } }, trigger);
500
500
  }
501
501
  app.$destroy();
502
502
  app = null;
package/dist/index.es.js CHANGED
@@ -598,7 +598,7 @@ function create(App, options = {
598
598
  window.removeEventListener(ACTION_CHANGE_STATE_EVENT, setState);
599
599
  const trigger = event.detail?.trigger ? event.detail?.trigger : 'button';
600
600
  if (options.onClose) {
601
- options.onClose({ send: options.send, data }, trigger);
601
+ options.onClose({ send: options.send, data: { ...data, ...getStoreState(customVariables) } }, trigger);
602
602
  }
603
603
  app.$destroy();
604
604
  app = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaidev/karte-action-sdk",
3
- "version": "1.1.77",
3
+ "version": "1.1.78",
4
4
  "author": "Plaid Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "module": "./dist/index.es.js",