fix(core): update

This commit is contained in:
Philipp Kunz 2020-07-29 17:32:28 +00:00
parent 4983e1ed90
commit e033bfa5b3
4 changed files with 11 additions and 5 deletions

7
package-lock.json generated
View File

@ -1548,10 +1548,9 @@
} }
}, },
"@pushrocks/smartdelay": { "@pushrocks/smartdelay": {
"version": "2.0.6", "version": "2.0.10",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartdelay/-/smartdelay-2.0.6.tgz", "resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartdelay/-/smartdelay-2.0.10.tgz",
"integrity": "sha512-4wUnzWNhRPODpaaL5GuRaje/C5dg+TMhBxmr57PKc2fqYpy6azWJwonf/s5xpcbJLCPJRbj1x8M5MqgCFq2uvg==", "integrity": "sha512-JOFpEfYiKnqcQYoUrL/jDyBDZUmlgJNm5U30MQQ3f+yci+rlFnMY5VvBBEYn5WgoX0ilwU+E15mtpDWhXcmhzg==",
"dev": true,
"requires": { "requires": {
"@pushrocks/smartpromise": "^3.0.6" "@pushrocks/smartpromise": "^3.0.6"
} }

View File

@ -24,6 +24,7 @@
"dependencies": { "dependencies": {
"@apiglobal/typedrequest": "^1.0.41", "@apiglobal/typedrequest": "^1.0.41",
"@pushrocks/lik": "^4.0.17", "@pushrocks/lik": "^4.0.17",
"@pushrocks/smartdelay": "^2.0.10",
"@pushrocks/smartpromise": "^3.0.6", "@pushrocks/smartpromise": "^3.0.6",
"@pushrocks/smartrouter": "^1.0.4", "@pushrocks/smartrouter": "^1.0.4",
"@pushrocks/smartstate": "^1.0.17", "@pushrocks/smartstate": "^1.0.17",

View File

@ -4,6 +4,7 @@ import { FastMap } from '@pushrocks/lik/dist_ts/lik.fastmap';
import { TViewport } from './domtools.breakpoints'; import { TViewport } from './domtools.breakpoints';
import { Scroller } from './domtools.classes.scroller'; import { Scroller } from './domtools.classes.scroller';
import { delayForRandom } from '@pushrocks/smartdelay';
export interface IDomToolsState { export interface IDomToolsState {
virtualViewport: TViewport; virtualViewport: TViewport;
@ -70,6 +71,10 @@ export class DomTools {
debug: false, debug: false,
}); });
public convenience = {
smartdelay: plugins.smartdelay
};
public scroller: plugins.SweetScroll; public scroller: plugins.SweetScroll;
private actionSetVirtualViewport = this.domToolsStatePart.createAction<TViewport>( private actionSetVirtualViewport = this.domToolsStatePart.createAction<TViewport>(

View File

@ -4,13 +4,14 @@ import * as typedrequest from '@apiglobal/typedrequest';
export { typedrequest }; export { typedrequest };
// pushrocks scope // pushrocks scope
import * as smartdelay from '@pushrocks/smartdelay';
import * as smartpromise from '@pushrocks/smartpromise'; import * as smartpromise from '@pushrocks/smartpromise';
import * as smartrouter from '@pushrocks/smartrouter'; import * as smartrouter from '@pushrocks/smartrouter';
import * as smartstate from '@pushrocks/smartstate'; import * as smartstate from '@pushrocks/smartstate';
import * as webrequest from '@pushrocks/webrequest'; import * as webrequest from '@pushrocks/webrequest';
import * as websetup from '@pushrocks/websetup'; import * as websetup from '@pushrocks/websetup';
export { smartpromise, smartrouter, smartstate, webrequest, websetup }; export { smartdelay, smartpromise, smartrouter, smartstate, webrequest, websetup };
// third party scope // third party scope
import SweetScroll from 'sweet-scroll'; import SweetScroll from 'sweet-scroll';