@plaidev/karte-action-sdk 1.1.224-28443174.29f86955 → 1.1.224-28447724.4d64da83

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.
@@ -371,7 +371,7 @@ declare function hideOnTime<ModalProps extends Pick<Props, "hide_on_time" | "hid
371
371
  * スクロール率が `show_on_scroll_rate` に達したときに `show` 関数を呼び出します。
372
372
  * `hide_on_scroll_releave` が `true` で、かつ `show_on_scroll_rate` 以下の場合は、アクションに対して `hide` 関数が呼び出されます。
373
373
  *
374
- * @param props - アクションのプロパティ。プロパティには `show_on_scroll`、`show_on_scroll_rate` そして `hide_on_scroll_releave` が必要です。
374
+ * @param props - アクションのプロパティ。プロパティには `show_on_scroll`、`show_on_scroll_rate`、'hide_on_scroll_releave' そして `show_on_scroll_reenter` が必要です。
375
375
  * @param show - アクションを表示するロジックが実装された関数。指定ない場合は noop 関数が使用されます。
376
376
  * @param hide - アクションを非表示にするロジックが実装された関数。指定ない場合は noop 関数が使用されます。
377
377
  *
@@ -380,7 +380,7 @@ declare function hideOnTime<ModalProps extends Pick<Props, "hide_on_time" | "hid
380
380
  *
381
381
  * @internal
382
382
  */
383
- declare function showOnScroll<ModalProps extends Pick<Props, "show_on_scroll" | "show_on_scroll_rate" | "hide_on_scroll_releave">>(props: ModalProps, show?: Function, hide?: Function): (() => void) | null;
383
+ declare function showOnScroll<ModalProps extends Pick<Props, "show_on_scroll" | "show_on_scroll_rate" | "hide_on_scroll_releave" | "show_on_scroll_reenter">>(props: ModalProps, show?: Function, hide?: Function): (() => void) | null;
384
384
  /**
385
385
  * 時間に応じてアクションを表示するトリガー関数
386
386
  *
@@ -1942,7 +1942,7 @@ declare namespace widget {
1942
1942
  * スクロール率が `show_on_scroll_rate` に達したときに `show` 関数を呼び出します。
1943
1943
  * `hide_on_scroll_releave` が `true` で、かつ `show_on_scroll_rate` 以下の場合は、アクションに対して `hide` 関数が呼び出されます。
1944
1944
  *
1945
- * @param props - アクションのプロパティ。プロパティには `show_on_scroll`、`show_on_scroll_rate` そして `hide_on_scroll_releave` が必要です。
1945
+ * @param props - アクションのプロパティ。プロパティには `show_on_scroll`、`show_on_scroll_rate`、'hide_on_scroll_releave' そして `show_on_scroll_reenter` が必要です。
1946
1946
  * @param show - アクションを表示するロジックが実装された関数。指定ない場合は noop 関数が使用されます。
1947
1947
  * @param hide - アクションを非表示にするロジックが実装された関数。指定ない場合は noop 関数が使用されます。
1948
1948
  *
@@ -1951,7 +1951,7 @@ declare namespace widget {
1951
1951
  *
1952
1952
  * @internal
1953
1953
  */
1954
- function showOnScroll<ModalProps extends Pick<Props, "show_on_scroll" | "show_on_scroll_rate" | "hide_on_scroll_releave">>(props: ModalProps, show?: Function, hide?: Function): (() => void) | null;
1954
+ function showOnScroll<ModalProps extends Pick<Props, "show_on_scroll" | "show_on_scroll_rate" | "hide_on_scroll_releave" | "show_on_scroll_reenter">>(props: ModalProps, show?: Function, hide?: Function): (() => void) | null;
1955
1955
  /**
1956
1956
  * 時間に応じてアクションを表示するトリガー関数
1957
1957
  *
@@ -1294,7 +1294,7 @@ function hideOnTime(props, hide = NOOP) {
1294
1294
  * スクロール率が `show_on_scroll_rate` に達したときに `show` 関数を呼び出します。
1295
1295
  * `hide_on_scroll_releave` が `true` で、かつ `show_on_scroll_rate` 以下の場合は、アクションに対して `hide` 関数が呼び出されます。
1296
1296
  *
1297
- * @param props - アクションのプロパティ。プロパティには `show_on_scroll`、`show_on_scroll_rate` そして `hide_on_scroll_releave` が必要です。
1297
+ * @param props - アクションのプロパティ。プロパティには `show_on_scroll`、`show_on_scroll_rate`、'hide_on_scroll_releave' そして `show_on_scroll_reenter` が必要です。
1298
1298
  * @param show - アクションを表示するロジックが実装された関数。指定ない場合は noop 関数が使用されます。
1299
1299
  * @param hide - アクションを非表示にするロジックが実装された関数。指定ない場合は noop 関数が使用されます。
1300
1300
  *
@@ -1304,9 +1304,12 @@ function hideOnTime(props, hide = NOOP) {
1304
1304
  * @internal
1305
1305
  */
1306
1306
  function showOnScroll(props, show = NOOP, hide = NOOP) {
1307
- const { show_on_scroll, show_on_scroll_rate, hide_on_scroll_releave } = props;
1307
+ const { show_on_scroll, show_on_scroll_rate, hide_on_scroll_releave, show_on_scroll_reenter } = props;
1308
1308
  return show_on_scroll && show_on_scroll_rate
1309
- ? onScroll(show_on_scroll_rate / 100, ctx => doPresent(ctx, show, hide, hide_on_scroll_releave))
1309
+ ? onScroll(show_on_scroll_rate / 100, ctx => {
1310
+ doPresent(ctx, show, hide, hide_on_scroll_releave ?? true);
1311
+ return show_on_scroll_reenter;
1312
+ })
1310
1313
  : null;
1311
1314
  }
1312
1315
  /**
@@ -371,7 +371,7 @@ declare function hideOnTime<ModalProps extends Pick<Props, "hide_on_time" | "hid
371
371
  * スクロール率が `show_on_scroll_rate` に達したときに `show` 関数を呼び出します。
372
372
  * `hide_on_scroll_releave` が `true` で、かつ `show_on_scroll_rate` 以下の場合は、アクションに対して `hide` 関数が呼び出されます。
373
373
  *
374
- * @param props - アクションのプロパティ。プロパティには `show_on_scroll`、`show_on_scroll_rate` そして `hide_on_scroll_releave` が必要です。
374
+ * @param props - アクションのプロパティ。プロパティには `show_on_scroll`、`show_on_scroll_rate`、'hide_on_scroll_releave' そして `show_on_scroll_reenter` が必要です。
375
375
  * @param show - アクションを表示するロジックが実装された関数。指定ない場合は noop 関数が使用されます。
376
376
  * @param hide - アクションを非表示にするロジックが実装された関数。指定ない場合は noop 関数が使用されます。
377
377
  *
@@ -380,7 +380,7 @@ declare function hideOnTime<ModalProps extends Pick<Props, "hide_on_time" | "hid
380
380
  *
381
381
  * @internal
382
382
  */
383
- declare function showOnScroll<ModalProps extends Pick<Props, "show_on_scroll" | "show_on_scroll_rate" | "hide_on_scroll_releave">>(props: ModalProps, show?: Function, hide?: Function): (() => void) | null;
383
+ declare function showOnScroll<ModalProps extends Pick<Props, "show_on_scroll" | "show_on_scroll_rate" | "hide_on_scroll_releave" | "show_on_scroll_reenter">>(props: ModalProps, show?: Function, hide?: Function): (() => void) | null;
384
384
  /**
385
385
  * 時間に応じてアクションを表示するトリガー関数
386
386
  *
@@ -1942,7 +1942,7 @@ declare namespace widget {
1942
1942
  * スクロール率が `show_on_scroll_rate` に達したときに `show` 関数を呼び出します。
1943
1943
  * `hide_on_scroll_releave` が `true` で、かつ `show_on_scroll_rate` 以下の場合は、アクションに対して `hide` 関数が呼び出されます。
1944
1944
  *
1945
- * @param props - アクションのプロパティ。プロパティには `show_on_scroll`、`show_on_scroll_rate` そして `hide_on_scroll_releave` が必要です。
1945
+ * @param props - アクションのプロパティ。プロパティには `show_on_scroll`、`show_on_scroll_rate`、'hide_on_scroll_releave' そして `show_on_scroll_reenter` が必要です。
1946
1946
  * @param show - アクションを表示するロジックが実装された関数。指定ない場合は noop 関数が使用されます。
1947
1947
  * @param hide - アクションを非表示にするロジックが実装された関数。指定ない場合は noop 関数が使用されます。
1948
1948
  *
@@ -1951,7 +1951,7 @@ declare namespace widget {
1951
1951
  *
1952
1952
  * @internal
1953
1953
  */
1954
- function showOnScroll<ModalProps extends Pick<Props, "show_on_scroll" | "show_on_scroll_rate" | "hide_on_scroll_releave">>(props: ModalProps, show?: Function, hide?: Function): (() => void) | null;
1954
+ function showOnScroll<ModalProps extends Pick<Props, "show_on_scroll" | "show_on_scroll_rate" | "hide_on_scroll_releave" | "show_on_scroll_reenter">>(props: ModalProps, show?: Function, hide?: Function): (() => void) | null;
1955
1955
  /**
1956
1956
  * 時間に応じてアクションを表示するトリガー関数
1957
1957
  *
package/dist/index.es.js CHANGED
@@ -1265,7 +1265,7 @@ function hideOnTime(props, hide = NOOP) {
1265
1265
  * スクロール率が `show_on_scroll_rate` に達したときに `show` 関数を呼び出します。
1266
1266
  * `hide_on_scroll_releave` が `true` で、かつ `show_on_scroll_rate` 以下の場合は、アクションに対して `hide` 関数が呼び出されます。
1267
1267
  *
1268
- * @param props - アクションのプロパティ。プロパティには `show_on_scroll`、`show_on_scroll_rate` そして `hide_on_scroll_releave` が必要です。
1268
+ * @param props - アクションのプロパティ。プロパティには `show_on_scroll`、`show_on_scroll_rate`、'hide_on_scroll_releave' そして `show_on_scroll_reenter` が必要です。
1269
1269
  * @param show - アクションを表示するロジックが実装された関数。指定ない場合は noop 関数が使用されます。
1270
1270
  * @param hide - アクションを非表示にするロジックが実装された関数。指定ない場合は noop 関数が使用されます。
1271
1271
  *
@@ -1275,9 +1275,12 @@ function hideOnTime(props, hide = NOOP) {
1275
1275
  * @internal
1276
1276
  */
1277
1277
  function showOnScroll(props, show = NOOP, hide = NOOP) {
1278
- const { show_on_scroll, show_on_scroll_rate, hide_on_scroll_releave } = props;
1278
+ const { show_on_scroll, show_on_scroll_rate, hide_on_scroll_releave, show_on_scroll_reenter } = props;
1279
1279
  return show_on_scroll && show_on_scroll_rate
1280
- ? onScroll(show_on_scroll_rate / 100, ctx => doPresent(ctx, show, hide, hide_on_scroll_releave))
1280
+ ? onScroll(show_on_scroll_rate / 100, ctx => {
1281
+ doPresent(ctx, show, hide, hide_on_scroll_releave ?? true);
1282
+ return show_on_scroll_reenter;
1283
+ })
1281
1284
  : null;
1282
1285
  }
1283
1286
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaidev/karte-action-sdk",
3
- "version": "1.1.224-28443174.29f86955",
3
+ "version": "1.1.224-28447724.4d64da83",
4
4
  "author": "Plaid Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "module": "./dist/index.es.js",