@overlastic/vanilla 0.8.3 → 0.8.7

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.
@@ -130,8 +130,8 @@ var OverlaysVanilla = (() => {
130
130
  const deferred = createDeferred();
131
131
  const name = defineName(options3.id, options3.autoIncrement);
132
132
  const index = getIndex(options3.id);
133
- const root = globalContainer ? options3.root : document.body;
134
- const container = defineGlobalElement(name, root);
133
+ const root = options3.root ? options3.root : document.body;
134
+ const container = globalContainer !== false ? defineGlobalElement(name, root) : void 0;
135
135
  mount(instance, props, Object.assign(options3, {
136
136
  position: context2.position,
137
137
  id: name,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@overlastic/vanilla",
3
3
  "type": "module",
4
- "version": "0.8.3",
4
+ "version": "0.8.7",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/hairyf/overlastic#readme",
7
7
  "repository": {
@@ -25,7 +25,7 @@
25
25
  "dist"
26
26
  ],
27
27
  "dependencies": {
28
- "@overlastic/core": "^0.8.3"
28
+ "@overlastic/core": "^0.8.7"
29
29
  },
30
30
  "scripts": {
31
31
  "build": "tsup src/index.ts",