ember-velcro 1.0.0 → 1.0.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.0.1](https://github.com/camskene/ember-velcro/compare/v1.0.0...v1.0.1) (2022-10-02)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **modifier:** support SVGElement ([abab33b](https://github.com/camskene/ember-velcro/commit/abab33be4b70bacec9823ecc0ee93531a6d65331))
7
+
1
8
  # 1.0.0 (2022-09-27)
2
9
 
3
10
 
@@ -23,9 +23,15 @@ export default class VelcroModifier extends Modifier {
23
23
  referenceElement = document.querySelector(referenceElement);
24
24
  }
25
25
 
26
- assert('no reference element defined', referenceElement instanceof HTMLElement);
26
+ assert(
27
+ 'no reference element defined',
28
+ referenceElement instanceof HTMLElement || referenceElement instanceof SVGElement
29
+ );
27
30
 
28
- assert('no floating element defined', floatingElement instanceof HTMLElement);
31
+ assert(
32
+ 'no floating element defined',
33
+ floatingElement instanceof HTMLElement || referenceElement instanceof SVGElement
34
+ );
29
35
 
30
36
  assert(
31
37
  'reference and floating elements cannot be the same element',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-velcro",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Ember Velcro sticks one element to another with Floating UI.",
5
5
  "keywords": [
6
6
  "ember-addon"