@plaidev/karte-action-sdk 1.1.80 → 1.1.81
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/dist/hydrate/index.es.js +3 -3
- package/dist/index.es.js +3 -3
- package/package.json +1 -1
package/dist/hydrate/index.es.js
CHANGED
|
@@ -259,7 +259,7 @@ const moveTo = (to) => () => {
|
|
|
259
259
|
window.dispatchEvent(new CustomEvent(ACTION_CHANGE_STATE_EVENT, { detail: { to, actionId } }));
|
|
260
260
|
};
|
|
261
261
|
const linkTo = (to, targetBlank = true) => () => {
|
|
262
|
-
send_event('message_click', { url: to });
|
|
262
|
+
send_event('message_click', { url: to, state: getStoreState(state) });
|
|
263
263
|
if (targetBlank) {
|
|
264
264
|
window.open(to);
|
|
265
265
|
}
|
|
@@ -268,7 +268,7 @@ const linkTo = (to, targetBlank = true) => () => {
|
|
|
268
268
|
}
|
|
269
269
|
};
|
|
270
270
|
const closeApp = (trigger) => () => {
|
|
271
|
-
send_event('message_close', { trigger });
|
|
271
|
+
send_event('message_close', { trigger, state: getStoreState(state) });
|
|
272
272
|
window.dispatchEvent(new CustomEvent(ACTION_CLOSE_EVENT, { detail: { trigger } }));
|
|
273
273
|
closed.set(true);
|
|
274
274
|
};
|
|
@@ -610,7 +610,7 @@ function create(App, options = {
|
|
|
610
610
|
if (app) {
|
|
611
611
|
return;
|
|
612
612
|
}
|
|
613
|
-
options.send('message_open');
|
|
613
|
+
options.send('message_open', { state: getStoreState(state) });
|
|
614
614
|
closed.set(false);
|
|
615
615
|
window.addEventListener(ACTION_CHANGE_STATE_EVENT, setState);
|
|
616
616
|
app = new App({
|
package/dist/index.es.js
CHANGED
|
@@ -259,7 +259,7 @@ const moveTo = (to) => () => {
|
|
|
259
259
|
window.dispatchEvent(new CustomEvent(ACTION_CHANGE_STATE_EVENT, { detail: { to, actionId } }));
|
|
260
260
|
};
|
|
261
261
|
const linkTo = (to, targetBlank = true) => () => {
|
|
262
|
-
send_event('message_click', { url: to });
|
|
262
|
+
send_event('message_click', { url: to, state: getStoreState(state) });
|
|
263
263
|
if (targetBlank) {
|
|
264
264
|
window.open(to);
|
|
265
265
|
}
|
|
@@ -268,7 +268,7 @@ const linkTo = (to, targetBlank = true) => () => {
|
|
|
268
268
|
}
|
|
269
269
|
};
|
|
270
270
|
const closeApp = (trigger) => () => {
|
|
271
|
-
send_event('message_close', { trigger });
|
|
271
|
+
send_event('message_close', { trigger, state: getStoreState(state) });
|
|
272
272
|
window.dispatchEvent(new CustomEvent(ACTION_CLOSE_EVENT, { detail: { trigger } }));
|
|
273
273
|
closed.set(true);
|
|
274
274
|
};
|
|
@@ -712,7 +712,7 @@ function create(App, options = {
|
|
|
712
712
|
if (app) {
|
|
713
713
|
return;
|
|
714
714
|
}
|
|
715
|
-
options.send('message_open');
|
|
715
|
+
options.send('message_open', { state: getStoreState(state) });
|
|
716
716
|
closed.set(false);
|
|
717
717
|
window.addEventListener(ACTION_CHANGE_STATE_EVENT, setState);
|
|
718
718
|
app = new App({
|