@plaidev/karte-action-sdk 1.1.188-28152496.9b97f7e1 → 1.1.188-28154100.9416174a

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.
@@ -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) {
package/dist/index.es.js CHANGED
@@ -1086,11 +1086,9 @@ function cloneToJson(data) {
1086
1086
 
1087
1087
  // prettier-ignore
1088
1088
  /** @internal */
1089
- const actionId = typeof __FIX_ACTION_CHANGE_STATE_EVENT__ === 'string'
1090
- ? __FIX_ACTION_CHANGE_STATE_EVENT__
1091
- : typeof __FLYER_GEN_ACTION_ID_ON_BUILD__ === 'string'
1092
- ? __FLYER_GEN_ACTION_ID_ON_BUILD__
1093
- : randStr();
1089
+ const actionId = typeof __FLYER_GEN_ACTION_ID_ON_BUILD__ === 'string'
1090
+ ? __FLYER_GEN_ACTION_ID_ON_BUILD__
1091
+ : randStr();
1094
1092
  /** @internal */
1095
1093
  const ACTION_DESTROY_EVENT = `KARTE-ACTION-DESTROY-${actionId}`;
1096
1094
  /** @internal */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaidev/karte-action-sdk",
3
- "version": "1.1.188-28152496.9b97f7e1",
3
+ "version": "1.1.188-28154100.9416174a",
4
4
  "author": "Plaid Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "module": "./dist/index.es.js",
@@ -96,7 +96,7 @@
96
96
  "typescript": "^4.7.4",
97
97
  "vitepress": "1.0.0-alpha.30",
98
98
  "vitest": "latest",
99
- "@plaidev/action-compiler": "0.4.230"
99
+ "@plaidev/action-compiler": "0.4.231"
100
100
  },
101
101
  "publishConfig": {
102
102
  "access": "public"