@plaidev/karte-action-sdk 1.1.242-28709353.8f816485 → 1.1.242-28709689.708aea87
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 +7 -0
- package/dist/index.es.js +7 -0
- package/package.json +1 -1
package/dist/hydrate/index.es.js
CHANGED
@@ -1784,6 +1784,11 @@ function createModal(App, options = {
|
|
1784
1784
|
publish: options.publish,
|
1785
1785
|
data,
|
1786
1786
|
};
|
1787
|
+
const sendErrorIfMessageOpenEventNotSent = () => {
|
1788
|
+
if (!hasAlreadySentMessageOpenEvent) {
|
1789
|
+
options.send('_error', { type: 'action', error_type: 'action_message_open_event_not_sent' });
|
1790
|
+
}
|
1791
|
+
};
|
1787
1792
|
const close = (trigger = 'none') => {
|
1788
1793
|
if (!app) {
|
1789
1794
|
return NOOP;
|
@@ -1792,6 +1797,7 @@ function createModal(App, options = {
|
|
1792
1797
|
options.send('message_close', { trigger, state: getState$1() });
|
1793
1798
|
hasAlreadySentMessageCloseEvent = true;
|
1794
1799
|
}
|
1800
|
+
sendErrorIfMessageOpenEventNotSent();
|
1795
1801
|
options.send('_message_state_changed', {
|
1796
1802
|
trigger,
|
1797
1803
|
oldState: getState$1(),
|
@@ -1836,6 +1842,7 @@ function createModal(App, options = {
|
|
1836
1842
|
options.send('message_open', { state: getState$1() });
|
1837
1843
|
hasAlreadySentMessageOpenEvent = true;
|
1838
1844
|
}
|
1845
|
+
sendErrorIfMessageOpenEventNotSent();
|
1839
1846
|
options.send('_message_state_changed', {
|
1840
1847
|
trigger,
|
1841
1848
|
oldState: '',
|
package/dist/index.es.js
CHANGED
@@ -1825,6 +1825,11 @@ function createModal(App, options = {
|
|
1825
1825
|
publish: options.publish,
|
1826
1826
|
data,
|
1827
1827
|
};
|
1828
|
+
const sendErrorIfMessageOpenEventNotSent = () => {
|
1829
|
+
if (!hasAlreadySentMessageOpenEvent) {
|
1830
|
+
options.send('_error', { type: 'action', error_type: 'action_message_open_event_not_sent' });
|
1831
|
+
}
|
1832
|
+
};
|
1828
1833
|
const close = (trigger = 'none') => {
|
1829
1834
|
if (!app) {
|
1830
1835
|
return NOOP;
|
@@ -1833,6 +1838,7 @@ function createModal(App, options = {
|
|
1833
1838
|
options.send('message_close', { trigger, state: getState$1() });
|
1834
1839
|
hasAlreadySentMessageCloseEvent = true;
|
1835
1840
|
}
|
1841
|
+
sendErrorIfMessageOpenEventNotSent();
|
1836
1842
|
options.send('_message_state_changed', {
|
1837
1843
|
trigger,
|
1838
1844
|
oldState: getState$1(),
|
@@ -1874,6 +1880,7 @@ function createModal(App, options = {
|
|
1874
1880
|
options.send('message_open', { state: getState$1() });
|
1875
1881
|
hasAlreadySentMessageOpenEvent = true;
|
1876
1882
|
}
|
1883
|
+
sendErrorIfMessageOpenEventNotSent();
|
1877
1884
|
options.send('_message_state_changed', {
|
1878
1885
|
trigger,
|
1879
1886
|
oldState: '',
|