Compare commits

...

14 Commits

Author SHA1 Message Date
7655fc0348 1.0.39 2020-07-27 17:11:01 +00:00
8aa5576318 fix(core): update 2020-07-27 17:11:00 +00:00
1ff54b0fcd 1.0.38 2020-07-15 18:58:40 +00:00
3901258272 fix(core): update 2020-07-15 18:58:40 +00:00
27380d1483 1.0.37 2020-07-15 18:12:27 +00:00
e2f9991f96 fix(core): update 2020-07-15 18:12:27 +00:00
133ce80b0a 1.0.36 2020-06-30 14:08:35 +00:00
cf12f45c9b fix(core): update 2020-06-30 14:08:35 +00:00
6cc5ec315e 1.0.35 2020-06-28 21:26:57 +00:00
88810bae2c fix(core): update 2020-06-28 21:26:57 +00:00
21369d8da5 1.0.34 2020-06-28 18:03:23 +00:00
a5973944ee fix(core): update 2020-06-28 18:03:22 +00:00
ad3f4b31fa 1.0.33 2020-06-28 17:40:03 +00:00
91b50ecde5 fix(core): update 2020-06-28 17:40:03 +00:00
9 changed files with 8541 additions and 722 deletions

9196
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "@designestate/dees-domtools",
"version": "1.0.32",
"version": "1.0.39",
"private": false,
"description": "tools to simplify complex css structures",
"main": "dist_ts/index.js",
@ -14,21 +14,21 @@
},
"devDependencies": {
"@gitzone/tsbuild": "^2.0.22",
"@gitzone/tsbundle": "^1.0.69",
"@gitzone/tstest": "^1.0.15",
"@pushrocks/tapbundle": "^3.0.7",
"@types/node": "^14.0.5",
"@gitzone/tsbundle": "^1.0.72",
"@gitzone/tstest": "^1.0.43",
"@pushrocks/tapbundle": "^3.2.9",
"@types/node": "^14.0.23",
"tslint": "^6.1.2",
"tslint-config-prettier": "^1.15.0"
},
"dependencies": {
"@apiglobal/typedrequest": "^1.0.38",
"@pushrocks/lik": "^4.0.13",
"@apiglobal/typedrequest": "^1.0.40",
"@pushrocks/lik": "^4.0.17",
"@pushrocks/smartpromise": "^3.0.6",
"@pushrocks/smartrouter": "^1.0.2",
"@pushrocks/smartrouter": "^1.0.4",
"@pushrocks/smartstate": "^1.0.16",
"@pushrocks/webrequest": "^2.0.9",
"@pushrocks/websetup": "^2.0.16",
"@pushrocks/webrequest": "^2.0.10",
"@pushrocks/websetup": "^2.0.18",
"lit-element": "^2.3.1",
"sweet-scroll": "^4.0.0"
},
@ -43,5 +43,8 @@
"cli.js",
"npmextra.json",
"readme.md"
],
"browserslist": [
"last 1 chrome versions"
]
}

9
test/test.browser.ts Normal file
View File

@ -0,0 +1,9 @@
import { expect, tap } from '@pushrocks/tapbundle';
import * as domtools from '../ts/index';
tap.test('first test', async () => {
const domtoolsInstance = await domtools.DomTools.setupDomTools();
expect(domtoolsInstance).to.be.instanceof(domtools.DomTools);
});
tap.start();

View File

@ -1,8 +0,0 @@
import { expect, tap } from '@pushrocks/tapbundle';
import * as deesCsstools from '../ts/index';
tap.test('first test', async () => {
console.log('hi');
});
tap.start();

View File

@ -3,6 +3,8 @@ import { Stringmap } from '@pushrocks/lik/dist_ts/lik.stringmap';
import { FastMap } from '@pushrocks/lik/dist_ts/lik.fastmap';
import { TViewport } from './domtools.breakpoints';
import { Scroller } from './domtools.classes.scroller';
export interface IDomToolsState {
virtualViewport: TViewport;
}
@ -36,6 +38,14 @@ export class DomTools {
return domToolsInstance;
}
public static getDomToolsSync() {
const globalDomTools: DomTools = globalThis.deesDomTools;
if (!globalDomTools) {
throw new Error('You tried to access domtools synchronouly too early');
}
return globalThis.deesDomTools;
}
// ========
// INSTANCE
// ========

View File

@ -0,0 +1,5 @@
import * as plugins from './domtools.plugins';
export class Scroller {
// TODO: move sweet scroll over to here;
}

View File

@ -1 +0,0 @@
import * as plugins from './domtools.plugins';

View File

@ -1,3 +1,8 @@
// api glbal scope
import * as typedrequest from '@apiglobal/typedrequest';
export { typedrequest };
// pushrocks scope
import * as smartpromise from '@pushrocks/smartpromise';
import * as smartrouter from '@pushrocks/smartrouter';

View File

@ -7,3 +7,9 @@ import * as css from './domtools.css';
export { css, breakpoints, elementBasic };
export { DomTools } from './domtools.classes.domtools';
export { TypedRequest } from '@apiglobal/typedrequest';
import * as allPlugins from './domtools.plugins';
export const plugins = {
smartpromise: allPlugins.smartpromise,
};