@plaidev/karte-action-sdk 1.1.224-28341417.bf1b2188 → 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.
- package/dist/hydrate/index.es.d.ts +4 -4
- package/dist/hydrate/index.es.js +7 -4
- package/dist/index.es.d.ts +4 -4
- package/dist/index.es.js +7 -4
- package/package.json +1 -1
@@ -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
|
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
|
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/hydrate/index.es.js
CHANGED
@@ -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
|
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 =>
|
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
|
/**
|
@@ -1334,7 +1337,7 @@ function showOnTime(props, show = NOOP) {
|
|
1334
1337
|
*/
|
1335
1338
|
const DEFAULT_COLLECTION_ENDPOINT = typeof __FLYER_GEN_COLLECTION_API_ENDPOINT__ === 'string'
|
1336
1339
|
? __FLYER_GEN_COLLECTION_API_ENDPOINT__
|
1337
|
-
: 'https://
|
1340
|
+
: 'https://action-table.karte.io/collection';
|
1338
1341
|
/**
|
1339
1342
|
* アクションテーブルを管理するメソッドを取得する
|
1340
1343
|
*
|
package/dist/index.es.d.ts
CHANGED
@@ -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
|
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
|
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
|
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 =>
|
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
|
/**
|
@@ -1357,7 +1360,7 @@ function checkAndDo(checkFn, fn, ...conditionFns) {
|
|
1357
1360
|
*/
|
1358
1361
|
const DEFAULT_COLLECTION_ENDPOINT = typeof __FLYER_GEN_COLLECTION_API_ENDPOINT__ === 'string'
|
1359
1362
|
? __FLYER_GEN_COLLECTION_API_ENDPOINT__
|
1360
|
-
: 'https://
|
1363
|
+
: 'https://action-table.karte.io/collection';
|
1361
1364
|
/**
|
1362
1365
|
* アクションテーブルを管理するメソッドを取得する
|
1363
1366
|
*
|