neo.mjs 6.6.0 → 6.6.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/apps/ServiceWorker.mjs
CHANGED
package/package.json
CHANGED
package/src/DefaultConfig.mjs
CHANGED
@@ -236,12 +236,12 @@ const DefaultConfig = {
|
|
236
236
|
useVdomWorker: true,
|
237
237
|
/**
|
238
238
|
* buildScripts/injectPackageVersion.mjs will update this value
|
239
|
-
* @default '6.6.
|
239
|
+
* @default '6.6.1'
|
240
240
|
* @memberOf! module:Neo
|
241
241
|
* @name config.version
|
242
242
|
* @type String
|
243
243
|
*/
|
244
|
-
version: '6.6.
|
244
|
+
version: '6.6.1'
|
245
245
|
};
|
246
246
|
|
247
247
|
Object.assign(DefaultConfig, {
|
package/src/core/Base.mjs
CHANGED
@@ -11,13 +11,6 @@ const configSymbol = Symbol.for('configSymbol'),
|
|
11
11
|
* @class Neo.core.Base
|
12
12
|
*/
|
13
13
|
class Base {
|
14
|
-
/**
|
15
|
-
* Regex to grab the MethodName from an error
|
16
|
-
* which is a second generation function
|
17
|
-
* @member {RegExp} methodNameRegex
|
18
|
-
* @static
|
19
|
-
*/
|
20
|
-
static methodNameRegex = /\n.*\n\s+at\s+.*\.(\w+)\s+.*/
|
21
14
|
/**
|
22
15
|
* You can define methods which should get delayed
|
23
16
|
* @example
|
@@ -32,6 +25,13 @@ class Base {
|
|
32
25
|
* @static
|
33
26
|
*/
|
34
27
|
static delayable = {}
|
28
|
+
/**
|
29
|
+
* Regex to grab the MethodName from an error
|
30
|
+
* which is a second generation function
|
31
|
+
* @member {RegExp} methodNameRegex
|
32
|
+
* @static
|
33
|
+
*/
|
34
|
+
static methodNameRegex = /\n.*\n\s+at\s+.*\.(\w+)\s+.*/
|
35
35
|
/**
|
36
36
|
* True automatically applies the core.Observable mixin
|
37
37
|
* @member {Boolean} observable=false
|
package/src/main/DomAccess.mjs
CHANGED
@@ -801,12 +801,19 @@ class DomAccess extends Base {
|
|
801
801
|
|
802
802
|
// Keep all registered aligns aligned on any detected change
|
803
803
|
_aligns?.forEach(align => {
|
804
|
+
const targetPresent = document.contains(align.targetElement);
|
805
|
+
|
804
806
|
// Align subject and target still in the DOM - correct its alignment
|
805
|
-
if (document.contains(align.subject) &&
|
807
|
+
if (document.contains(align.subject) && targetPresent) {
|
806
808
|
me.align(align);
|
807
809
|
}
|
808
810
|
// Align subject or target no longer in the DOM - remove it.
|
809
811
|
else {
|
812
|
+
// If target is no longer in the DOM, hide the subject component
|
813
|
+
if (!targetPresent) {
|
814
|
+
Neo.worker.App.setConfigs({ id: align.id, hidden: true });
|
815
|
+
}
|
816
|
+
|
810
817
|
const
|
811
818
|
{ _alignResizeObserver } = me,
|
812
819
|
{ constrainToElement } = align;
|