Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
63463a751c | |||
a01f5a5b8a | |||
bb1ad4e037 | |||
eb871161f9 | |||
090e5b4d42 | |||
8168dd1a0c | |||
de15bc0d1c | |||
13fa3d655e |
15
package-lock.json
generated
15
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@designestate/dees-domtools",
|
||||
"version": "1.0.49",
|
||||
"version": "1.0.53",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
@ -2183,6 +2183,14 @@
|
||||
"@tsclass/tsclass": "^3.0.18"
|
||||
}
|
||||
},
|
||||
"@pushrocks/webstore": {
|
||||
"version": "1.0.8",
|
||||
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fwebstore/-/webstore-1.0.8.tgz",
|
||||
"integrity": "sha512-KxxTO8+GTZWQrXppx3DLGbcEzJtLL+JO0lalA/57J8+NSvYm5+e1BZoUbcC4HLqHtLQAV9kW3XIvpyWVMMqOng==",
|
||||
"requires": {
|
||||
"idb": "^5.0.4"
|
||||
}
|
||||
},
|
||||
"@rollup/plugin-commonjs": {
|
||||
"version": "14.0.0",
|
||||
"resolved": "https://verdaccio.lossless.one/@rollup%2fplugin-commonjs/-/plugin-commonjs-14.0.0.tgz",
|
||||
@ -6655,6 +6663,11 @@
|
||||
"integrity": "sha1-Bupvg2ead0njhs/h/oEq5dsiPe0=",
|
||||
"dev": true
|
||||
},
|
||||
"idb": {
|
||||
"version": "5.0.6",
|
||||
"resolved": "https://verdaccio.lossless.one/idb/-/idb-5.0.6.tgz",
|
||||
"integrity": "sha512-/PFvOWPzRcEPmlDt5jEvzVZVs0wyd/EvGvkDIcbBpGuMMLQKrTPG0TxvE2UJtgZtCQCmOtM2QD7yQJBVEjKGOw=="
|
||||
},
|
||||
"ieee754": {
|
||||
"version": "1.1.13",
|
||||
"resolved": "https://verdaccio.lossless.one/ieee754/-/ieee754-1.1.13.tgz",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@designestate/dees-domtools",
|
||||
"version": "1.0.49",
|
||||
"version": "1.0.53",
|
||||
"private": false,
|
||||
"description": "tools to simplify complex css structures",
|
||||
"main": "dist_ts/index.js",
|
||||
@ -30,6 +30,7 @@
|
||||
"@pushrocks/smartstate": "^1.0.17",
|
||||
"@pushrocks/webrequest": "^2.0.10",
|
||||
"@pushrocks/websetup": "^2.0.18",
|
||||
"@pushrocks/webstore": "^1.0.8",
|
||||
"lit-element": "^2.4.0",
|
||||
"sweet-scroll": "^4.0.0"
|
||||
},
|
||||
|
@ -43,7 +43,7 @@ export class DomTools {
|
||||
/**
|
||||
* if you can, use the static asysnc .setupDomTools() function instead since it is safer to use.
|
||||
*/
|
||||
public static getGlobalDomToolsSync() {
|
||||
public static getGlobalDomToolsSync(): DomTools {
|
||||
const globalDomTools: DomTools = globalThis.deesDomTools;
|
||||
if (!globalDomTools) {
|
||||
throw new Error('You tried to access domtools synchronously too early');
|
||||
|
@ -46,7 +46,8 @@ export const setup = async () => {
|
||||
|
||||
// Roboto Font
|
||||
domTools.setGlobalStyles(`
|
||||
@import url('https://fonts.googleapis.com/css?family=Roboto:100,300,400');
|
||||
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400');
|
||||
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@100;300;400');
|
||||
`);
|
||||
|
||||
// scrollbars
|
||||
|
@ -10,8 +10,9 @@ import * as smartrouter from '@pushrocks/smartrouter';
|
||||
import * as smartstate from '@pushrocks/smartstate';
|
||||
import * as webrequest from '@pushrocks/webrequest';
|
||||
import * as websetup from '@pushrocks/websetup';
|
||||
import * as webstore from '@pushrocks/webstore';
|
||||
|
||||
export { smartdelay, smartpromise, smartrouter, smartstate, webrequest, websetup };
|
||||
export { smartdelay, smartpromise, smartrouter, smartstate, webrequest, websetup, webstore };
|
||||
|
||||
// third party scope
|
||||
import SweetScroll from 'sweet-scroll';
|
||||
|
Reference in New Issue
Block a user