enigmatic 0.9.17 → 0.9.18

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.
package/enigmatic.js CHANGED
@@ -106,7 +106,7 @@ class EnigmaticElement extends HTMLElement {
106
106
  }
107
107
  customElements.define ('e-e', EnigmaticElement)
108
108
 
109
- (async () => {
109
+ const start = async () => {
110
110
  await window.ready()
111
111
  window.body = document.body
112
112
  body.child = (type = 'div', id = Math.random()) => {
@@ -116,4 +116,5 @@ customElements.define ('e-e', EnigmaticElement)
116
116
  return child
117
117
  }
118
118
  if (window.main) window.main(document)
119
- })()
119
+ }
120
+ start()
package/index.html CHANGED
@@ -1,16 +1,15 @@
1
1
  <script src='enigmatic.js'></script>
2
- <script type='module' src='elements/index.mjs'></script>
3
2
  <link rel='stylesheet' href='enigmatic.css'>
4
3
 
5
- <body style='--rows:1fr 1fr; --cols:1fr 1fr'>
6
- <div data='mykey'></div>
4
+ <body style='--rows:1fr 5fr; --cols:1fr 1fr'>
5
+ <div class='bg-red' data='mykey'></div>
7
6
  <div data='mykey2.k'></div>
8
7
  <div>three</div>
9
8
  </body>
10
9
 
11
10
  <script>
12
11
  window.main = () => {
13
- body.child().innerHTML = 'main'
12
+ body.child().innerHTML = 'some text'
14
13
  data.mykey = 'somevalue'
15
14
  data.mykey2 = {k: 'v'}
16
15
  }
package/package.json CHANGED
@@ -8,5 +8,5 @@
8
8
  "type": "git",
9
9
  "url": "git://github.com/digplan/enigmatic.git"
10
10
  },
11
- "version": "0.9.17"
11
+ "version": "0.9.18"
12
12
  }