@plaidev/karte-action-sdk 1.1.188-28153943.b989e329 → 1.1.188-28154100.9416174a
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/hydrate/index.es.js +9 -0
- package/package.json +1 -1
package/dist/hydrate/index.es.js
CHANGED
@@ -1595,6 +1595,9 @@ function createModal(App, options = {
|
|
1595
1595
|
if (app) {
|
1596
1596
|
return;
|
1597
1597
|
}
|
1598
|
+
if (trigger === 'custom') {
|
1599
|
+
return;
|
1600
|
+
}
|
1598
1601
|
if (trigger === 'custom' && (options.props.show_on_scroll || options.props.show_on_time)) {
|
1599
1602
|
return;
|
1600
1603
|
}
|
@@ -1652,6 +1655,9 @@ function createModal(App, options = {
|
|
1652
1655
|
const trigger = event?.detail?.trigger ? event.detail.trigger : 'none';
|
1653
1656
|
show(trigger);
|
1654
1657
|
};
|
1658
|
+
const autoShow = () => {
|
1659
|
+
return show('auto');
|
1660
|
+
};
|
1655
1661
|
// ここからメインの処理
|
1656
1662
|
initialize({ send: options.send, initialState: data.initial_state });
|
1657
1663
|
// ActionTable APIへの非同期リクエスト
|
@@ -1665,6 +1671,9 @@ function createModal(App, options = {
|
|
1665
1671
|
window.addEventListener(ACTION_CHANGE_STATE_EVENT, handleState);
|
1666
1672
|
let showTriggerCleanups = [];
|
1667
1673
|
let closeTriggerCleanups = [];
|
1674
|
+
{
|
1675
|
+
autoShow();
|
1676
|
+
}
|
1668
1677
|
// 旧Widget API IFの処理
|
1669
1678
|
const { onCreateHandlers } = getInternalHandlers();
|
1670
1679
|
if (onCreateHandlers) {
|