@design.estate/dees-domtools 2.5.4 → 2.5.6

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.
@@ -1,4 +1,3 @@
1
- import * as plugins from './domtools.plugins.js';
2
1
  import { DomTools, type IDomToolsContructorOptions } from './domtools.classes.domtools.js';
3
2
  import { scrollBarStyles, globalBaseStyles } from './domtools.css.basestyles.js';
4
3
 
@@ -51,9 +50,13 @@ export const setup = async (
51
50
  // not used right now
52
51
  }
53
52
 
54
- domTools.runOnce('elementBasicSetup', async () => {
53
+ await domTools.runOnce('elementBasicSetup', async () => {
55
54
  // bodyStyles
56
- domTools.setGlobalStyles(globalBaseStyles);
55
+ await domTools.setGlobalStyles(globalBaseStyles);
57
56
  });
57
+ if (domTools.globalStylesReady.status === 'pending') {
58
+ domTools.globalStylesReady.resolve();
59
+ }
60
+ await domTools.globalStylesReady.promise;
58
61
  return domTools;
59
62
  };
@@ -1,23 +1,12 @@
1
- import * as smartdelay from '@push.rocks/smartdelay';
2
- import * as smartmarkdown from '@push.rocks/smartmarkdown';
3
- import * as smartpromise from '@push.rocks/smartpromise';
4
- import SweetScroll from 'sweet-scroll';
5
- import * as smartstate from '@push.rocks/smartstate';
6
- import * as smartrouter from '@push.rocks/smartrouter';
7
- import * as smartrx from '@push.rocks/smartrx';
8
- import * as smartstring from '@push.rocks/smartstring';
9
- import * as smarturl from '@push.rocks/smarturl';
10
- import * as typedrequest from '@api.global/typedrequest';
11
-
12
- export {
13
- smartdelay,
14
- smartmarkdown,
15
- smartpromise,
16
- SweetScroll,
17
- smartstate,
1
+ export {
2
+ smartdelay,
3
+ smartmarkdown,
4
+ smartpromise,
5
+ SweetScroll,
6
+ smartstate,
18
7
  smartrouter,
19
- smartrx,
20
- smartstring,
21
- smarturl,
22
- typedrequest
23
- };
8
+ smartrx,
9
+ smartstring,
10
+ smarturl,
11
+ typedrequest,
12
+ } from './domtools.plugins.js';