@genesislcap/foundation-utils 14.94.1 → 14.94.2

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.
@@ -143,6 +143,59 @@
143
143
  }
144
144
  ]
145
145
  },
146
+ {
147
+ "kind": "javascript-module",
148
+ "path": "src/decorators/index.ts",
149
+ "declarations": [],
150
+ "exports": [
151
+ {
152
+ "kind": "js",
153
+ "name": "*",
154
+ "declaration": {
155
+ "name": "*",
156
+ "package": "./renderOnChange"
157
+ }
158
+ }
159
+ ]
160
+ },
161
+ {
162
+ "kind": "javascript-module",
163
+ "path": "src/decorators/renderOnChange.ts",
164
+ "declarations": [
165
+ {
166
+ "kind": "function",
167
+ "name": "renderOnChange",
168
+ "parameters": [
169
+ {
170
+ "name": "target",
171
+ "type": {
172
+ "text": "FASTElement & { render(): void }"
173
+ },
174
+ "description": "The target to define the property change handler on."
175
+ },
176
+ {
177
+ "name": "name",
178
+ "type": {
179
+ "text": "string"
180
+ },
181
+ "description": "The property name."
182
+ }
183
+ ],
184
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
185
+ "privacy": "public"
186
+ }
187
+ ],
188
+ "exports": [
189
+ {
190
+ "kind": "js",
191
+ "name": "renderOnChange",
192
+ "declaration": {
193
+ "name": "renderOnChange",
194
+ "module": "src/decorators/renderOnChange.ts"
195
+ }
196
+ }
197
+ ]
198
+ },
146
199
  {
147
200
  "kind": "javascript-module",
148
201
  "path": "src/data/inMemoryDatabase.ts",
@@ -390,82 +443,6 @@
390
443
  }
391
444
  ]
392
445
  },
393
- {
394
- "kind": "javascript-module",
395
- "path": "src/decorators/index.ts",
396
- "declarations": [],
397
- "exports": [
398
- {
399
- "kind": "js",
400
- "name": "*",
401
- "declaration": {
402
- "name": "*",
403
- "package": "./renderOnChange"
404
- }
405
- }
406
- ]
407
- },
408
- {
409
- "kind": "javascript-module",
410
- "path": "src/decorators/renderOnChange.ts",
411
- "declarations": [
412
- {
413
- "kind": "function",
414
- "name": "renderOnChange",
415
- "parameters": [
416
- {
417
- "name": "target",
418
- "type": {
419
- "text": "FASTElement & { render(): void }"
420
- },
421
- "description": "The target to define the property change handler on."
422
- },
423
- {
424
- "name": "name",
425
- "type": {
426
- "text": "string"
427
- },
428
- "description": "The property name."
429
- }
430
- ],
431
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
432
- "privacy": "public"
433
- }
434
- ],
435
- "exports": [
436
- {
437
- "kind": "js",
438
- "name": "renderOnChange",
439
- "declaration": {
440
- "name": "renderOnChange",
441
- "module": "src/decorators/renderOnChange.ts"
442
- }
443
- }
444
- ]
445
- },
446
- {
447
- "kind": "javascript-module",
448
- "path": "src/directives/index.ts",
449
- "declarations": [],
450
- "exports": [
451
- {
452
- "kind": "js",
453
- "name": "*",
454
- "declaration": {
455
- "name": "*",
456
- "package": "./sync"
457
- }
458
- },
459
- {
460
- "kind": "js",
461
- "name": "*",
462
- "declaration": {
463
- "name": "*",
464
- "package": "./when-else"
465
- }
466
- }
467
- ]
468
- },
469
446
  {
470
447
  "kind": "javascript-module",
471
448
  "path": "src/env/index.ts",
@@ -689,6 +666,29 @@
689
666
  }
690
667
  ]
691
668
  },
669
+ {
670
+ "kind": "javascript-module",
671
+ "path": "src/directives/index.ts",
672
+ "declarations": [],
673
+ "exports": [
674
+ {
675
+ "kind": "js",
676
+ "name": "*",
677
+ "declaration": {
678
+ "name": "*",
679
+ "package": "./sync"
680
+ }
681
+ },
682
+ {
683
+ "kind": "js",
684
+ "name": "*",
685
+ "declaration": {
686
+ "name": "*",
687
+ "package": "./when-else"
688
+ }
689
+ }
690
+ ]
691
+ },
692
692
  {
693
693
  "kind": "javascript-module",
694
694
  "path": "src/error/errorMap.ts",
@@ -154,6 +154,7 @@ export const LifecycleMixin = (Base) => { var _instances, __container, __latestT
154
154
  return result;
155
155
  },
156
156
  __tryFindContainingLayout = function __tryFindContainingLayout(e) {
157
+ var _a;
157
158
  /**
158
159
  * This is a special case where the element is part of the layout cache
159
160
  * signified by a symbol put on the document cache root
@@ -166,7 +167,7 @@ export const LifecycleMixin = (Base) => { var _instances, __container, __latestT
166
167
  * without finding a containing FoundationLayout
167
168
  * hence, this item is not in a custom layout
168
169
  */
169
- if (e.getRootNode() instanceof Document) {
170
+ if (e.getRootNode() instanceof Document || !((_a = e.getRootNode()) === null || _a === void 0 ? void 0 : _a.host)) {
170
171
  return { _key: 'dom' };
171
172
  }
172
173
  const shadowHost = e.getRootNode().host;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-utils",
3
3
  "description": "Genesis Foundation Utils",
4
- "version": "14.94.1",
4
+ "version": "14.94.2",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -19,12 +19,12 @@
19
19
  "test": "genx test"
20
20
  },
21
21
  "devDependencies": {
22
- "@genesislcap/foundation-testing": "14.94.1",
23
- "@genesislcap/genx": "14.94.1",
22
+ "@genesislcap/foundation-testing": "14.94.2",
23
+ "@genesislcap/genx": "14.94.2",
24
24
  "rimraf": "^3.0.2"
25
25
  },
26
26
  "dependencies": {
27
- "@genesislcap/foundation-logger": "14.94.1",
27
+ "@genesislcap/foundation-logger": "14.94.2",
28
28
  "@microsoft/fast-components": "^2.21.3",
29
29
  "@microsoft/fast-element": "^1.7.0",
30
30
  "@microsoft/fast-foundation": "^2.33.2",
@@ -42,5 +42,5 @@
42
42
  "access": "public"
43
43
  },
44
44
  "customElements": "dist/custom-elements.json",
45
- "gitHead": "a1b6baf9b2003cbb1d73b44d0715ac3492e4f6f5"
45
+ "gitHead": "8f234d54d3f4baf8f21a036b93dd6ba07eb59158"
46
46
  }