@plaidev/karte-action-sdk 1.1.231-28653407.2511e2dc → 1.1.231-28654771.f9b03db8
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 +4 -4
- package/dist/index.es.js +4 -4
- package/package.json +1 -1
package/dist/hydrate/index.es.js
CHANGED
@@ -1264,7 +1264,7 @@ function doPresent({ direction, deltaRate }, downFn, upFn, condition = false) {
|
|
1264
1264
|
*/
|
1265
1265
|
function hideOnScroll(props, hide = NOOP, show = NOOP) {
|
1266
1266
|
const { hide_on_scroll, hide_on_scroll_rate, show_on_scroll_reenter } = props;
|
1267
|
-
return hide_on_scroll && hide_on_scroll_rate
|
1267
|
+
return hide_on_scroll && hide_on_scroll_rate != null
|
1268
1268
|
? onScroll(hide_on_scroll_rate / 100, ctx => doPresent(ctx, hide, show, show_on_scroll_reenter))
|
1269
1269
|
: null;
|
1270
1270
|
}
|
@@ -1283,7 +1283,7 @@ function hideOnScroll(props, hide = NOOP, show = NOOP) {
|
|
1283
1283
|
* @internal
|
1284
1284
|
*/
|
1285
1285
|
function hideOnTime(props, hide = NOOP) {
|
1286
|
-
return props.hide_on_time && props.hide_on_time_count
|
1286
|
+
return props.hide_on_time && props.hide_on_time_count != null
|
1287
1287
|
? onTime(props.hide_on_time_count * 1000, () => hide())
|
1288
1288
|
: null;
|
1289
1289
|
}
|
@@ -1305,7 +1305,7 @@ function hideOnTime(props, hide = NOOP) {
|
|
1305
1305
|
*/
|
1306
1306
|
function showOnScroll(props, show = NOOP, hide = NOOP) {
|
1307
1307
|
const { show_on_scroll, show_on_scroll_rate, hide_on_scroll_releave, show_on_scroll_reenter } = props;
|
1308
|
-
return show_on_scroll && show_on_scroll_rate
|
1308
|
+
return show_on_scroll && show_on_scroll_rate != null
|
1309
1309
|
? onScroll(show_on_scroll_rate / 100, ctx => {
|
1310
1310
|
doPresent(ctx, show, hide, hide_on_scroll_releave ?? true);
|
1311
1311
|
return show_on_scroll_reenter;
|
@@ -1327,7 +1327,7 @@ function showOnScroll(props, show = NOOP, hide = NOOP) {
|
|
1327
1327
|
* @internal
|
1328
1328
|
*/
|
1329
1329
|
function showOnTime(props, show = NOOP) {
|
1330
|
-
return props.show_on_time && props.show_on_time_count
|
1330
|
+
return props.show_on_time && props.show_on_time_count != null
|
1331
1331
|
? onTime(props.show_on_time_count * 1000, () => show())
|
1332
1332
|
: null;
|
1333
1333
|
}
|
package/dist/index.es.js
CHANGED
@@ -1240,7 +1240,7 @@ function doPresent({ direction, deltaRate }, downFn, upFn, condition = false) {
|
|
1240
1240
|
*/
|
1241
1241
|
function hideOnScroll(props, hide = NOOP, show = NOOP) {
|
1242
1242
|
const { hide_on_scroll, hide_on_scroll_rate, show_on_scroll_reenter } = props;
|
1243
|
-
return hide_on_scroll && hide_on_scroll_rate
|
1243
|
+
return hide_on_scroll && hide_on_scroll_rate != null
|
1244
1244
|
? onScroll(hide_on_scroll_rate / 100, ctx => doPresent(ctx, hide, show, show_on_scroll_reenter))
|
1245
1245
|
: null;
|
1246
1246
|
}
|
@@ -1259,7 +1259,7 @@ function hideOnScroll(props, hide = NOOP, show = NOOP) {
|
|
1259
1259
|
* @internal
|
1260
1260
|
*/
|
1261
1261
|
function hideOnTime(props, hide = NOOP) {
|
1262
|
-
return props.hide_on_time && props.hide_on_time_count
|
1262
|
+
return props.hide_on_time && props.hide_on_time_count != null
|
1263
1263
|
? onTime(props.hide_on_time_count * 1000, () => hide())
|
1264
1264
|
: null;
|
1265
1265
|
}
|
@@ -1281,7 +1281,7 @@ function hideOnTime(props, hide = NOOP) {
|
|
1281
1281
|
*/
|
1282
1282
|
function showOnScroll(props, show = NOOP, hide = NOOP) {
|
1283
1283
|
const { show_on_scroll, show_on_scroll_rate, hide_on_scroll_releave, show_on_scroll_reenter } = props;
|
1284
|
-
return show_on_scroll && show_on_scroll_rate
|
1284
|
+
return show_on_scroll && show_on_scroll_rate != null
|
1285
1285
|
? onScroll(show_on_scroll_rate / 100, ctx => {
|
1286
1286
|
doPresent(ctx, show, hide, hide_on_scroll_releave ?? true);
|
1287
1287
|
return show_on_scroll_reenter;
|
@@ -1303,7 +1303,7 @@ function showOnScroll(props, show = NOOP, hide = NOOP) {
|
|
1303
1303
|
* @internal
|
1304
1304
|
*/
|
1305
1305
|
function showOnTime(props, show = NOOP) {
|
1306
|
-
return props.show_on_time && props.show_on_time_count
|
1306
|
+
return props.show_on_time && props.show_on_time_count != null
|
1307
1307
|
? onTime(props.show_on_time_count * 1000, () => show())
|
1308
1308
|
: null;
|
1309
1309
|
}
|