From e033bfa5b32bbae65dc4f584e132785cd5681009 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Wed, 29 Jul 2020 17:32:28 +0000 Subject: [PATCH] fix(core): update --- package-lock.json | 7 +++---- package.json | 1 + ts/domtools.classes.domtools.ts | 5 +++++ ts/domtools.plugins.ts | 3 ++- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7fa2afe..69d8da0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1548,10 +1548,9 @@ } }, "@pushrocks/smartdelay": { - "version": "2.0.6", - "resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartdelay/-/smartdelay-2.0.6.tgz", - "integrity": "sha512-4wUnzWNhRPODpaaL5GuRaje/C5dg+TMhBxmr57PKc2fqYpy6azWJwonf/s5xpcbJLCPJRbj1x8M5MqgCFq2uvg==", - "dev": true, + "version": "2.0.10", + "resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartdelay/-/smartdelay-2.0.10.tgz", + "integrity": "sha512-JOFpEfYiKnqcQYoUrL/jDyBDZUmlgJNm5U30MQQ3f+yci+rlFnMY5VvBBEYn5WgoX0ilwU+E15mtpDWhXcmhzg==", "requires": { "@pushrocks/smartpromise": "^3.0.6" } diff --git a/package.json b/package.json index 8124fdb..b5ba509 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "dependencies": { "@apiglobal/typedrequest": "^1.0.41", "@pushrocks/lik": "^4.0.17", + "@pushrocks/smartdelay": "^2.0.10", "@pushrocks/smartpromise": "^3.0.6", "@pushrocks/smartrouter": "^1.0.4", "@pushrocks/smartstate": "^1.0.17", diff --git a/ts/domtools.classes.domtools.ts b/ts/domtools.classes.domtools.ts index a6bc7eb..7f2b54e 100644 --- a/ts/domtools.classes.domtools.ts +++ b/ts/domtools.classes.domtools.ts @@ -4,6 +4,7 @@ import { FastMap } from '@pushrocks/lik/dist_ts/lik.fastmap'; import { TViewport } from './domtools.breakpoints'; import { Scroller } from './domtools.classes.scroller'; +import { delayForRandom } from '@pushrocks/smartdelay'; export interface IDomToolsState { virtualViewport: TViewport; @@ -70,6 +71,10 @@ export class DomTools { debug: false, }); + public convenience = { + smartdelay: plugins.smartdelay + }; + public scroller: plugins.SweetScroll; private actionSetVirtualViewport = this.domToolsStatePart.createAction( diff --git a/ts/domtools.plugins.ts b/ts/domtools.plugins.ts index 6eb06a5..fcb93b0 100644 --- a/ts/domtools.plugins.ts +++ b/ts/domtools.plugins.ts @@ -4,13 +4,14 @@ import * as typedrequest from '@apiglobal/typedrequest'; export { typedrequest }; // pushrocks scope +import * as smartdelay from '@pushrocks/smartdelay'; import * as smartpromise from '@pushrocks/smartpromise'; import * as smartrouter from '@pushrocks/smartrouter'; import * as smartstate from '@pushrocks/smartstate'; import * as webrequest from '@pushrocks/webrequest'; import * as websetup from '@pushrocks/websetup'; -export { smartpromise, smartrouter, smartstate, webrequest, websetup }; +export { smartdelay, smartpromise, smartrouter, smartstate, webrequest, websetup }; // third party scope import SweetScroll from 'sweet-scroll';