@plaidev/karte-action-sdk 1.1.137-27963891.873b2532 → 1.1.137-27963915.37ece12b

Sign up to get free protection for your applications and to get access to all the features.
@@ -843,7 +843,7 @@ const handleState = (event) => {
843
843
  const initialize = (setting) => {
844
844
  const newSetting = setActionSetting(setting);
845
845
  if (newSetting.initialState) {
846
- setState$1(setting?.initialState);
846
+ setState$1(newSetting.initialState);
847
847
  }
848
848
  if (newSetting.autoStart) {
849
849
  setStopped(!newSetting.autoStart);
@@ -1663,7 +1663,7 @@ function create(App, options = {
1663
1663
  ...getVariables(),
1664
1664
  };
1665
1665
  const actionProps = { send: options.send, data };
1666
- initialize({ send: options.send });
1666
+ initialize({ send: options.send, initialState: data.initial_state, autoStart: true });
1667
1667
  const handleDestroy = () => {
1668
1668
  const { onDestroyHandlers } = getInternalHandlers();
1669
1669
  onDestroyHandlers?.forEach(h => {
package/dist/index.es.js CHANGED
@@ -841,7 +841,7 @@ const handleState = (event) => {
841
841
  const initialize = (setting) => {
842
842
  const newSetting = setActionSetting(setting);
843
843
  if (newSetting.initialState) {
844
- setState$1(setting?.initialState);
844
+ setState$1(newSetting.initialState);
845
845
  }
846
846
  if (newSetting.autoStart) {
847
847
  setStopped(!newSetting.autoStart);
@@ -1746,7 +1746,7 @@ function create(App, options = {
1746
1746
  ...getVariables(),
1747
1747
  };
1748
1748
  const actionProps = { send: options.send, data };
1749
- initialize({ send: options.send });
1749
+ initialize({ send: options.send, initialState: data.initial_state, autoStart: true });
1750
1750
  const handleDestroy = () => {
1751
1751
  const { onDestroyHandlers } = getInternalHandlers();
1752
1752
  onDestroyHandlers?.forEach(h => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaidev/karte-action-sdk",
3
- "version": "1.1.137-27963891.873b2532",
3
+ "version": "1.1.137-27963915.37ece12b",
4
4
  "author": "Plaid Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "module": "./dist/index.es.js",