@genesislcap/foundation-utils 14.377.0 → 14.379.0-TAMTECH-262.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.
@@ -391,82 +391,6 @@
391
391
  }
392
392
  ]
393
393
  },
394
- {
395
- "kind": "javascript-module",
396
- "path": "src/decorators/index.ts",
397
- "declarations": [],
398
- "exports": [
399
- {
400
- "kind": "js",
401
- "name": "*",
402
- "declaration": {
403
- "name": "*",
404
- "package": "./renderOnChange"
405
- }
406
- }
407
- ]
408
- },
409
- {
410
- "kind": "javascript-module",
411
- "path": "src/decorators/renderOnChange.ts",
412
- "declarations": [
413
- {
414
- "kind": "function",
415
- "name": "renderOnChange",
416
- "parameters": [
417
- {
418
- "name": "target",
419
- "type": {
420
- "text": "FASTElement & { render(): void }"
421
- },
422
- "description": "The target to define the property change handler on."
423
- },
424
- {
425
- "name": "name",
426
- "type": {
427
- "text": "string"
428
- },
429
- "description": "The property name."
430
- }
431
- ],
432
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
433
- "privacy": "public"
434
- }
435
- ],
436
- "exports": [
437
- {
438
- "kind": "js",
439
- "name": "renderOnChange",
440
- "declaration": {
441
- "name": "renderOnChange",
442
- "module": "src/decorators/renderOnChange.ts"
443
- }
444
- }
445
- ]
446
- },
447
- {
448
- "kind": "javascript-module",
449
- "path": "src/directives/index.ts",
450
- "declarations": [],
451
- "exports": [
452
- {
453
- "kind": "js",
454
- "name": "*",
455
- "declaration": {
456
- "name": "*",
457
- "package": "./sync"
458
- }
459
- },
460
- {
461
- "kind": "js",
462
- "name": "*",
463
- "declaration": {
464
- "name": "*",
465
- "package": "./when-else"
466
- }
467
- }
468
- ]
469
- },
470
394
  {
471
395
  "kind": "javascript-module",
472
396
  "path": "src/design-system/design-system.ts",
@@ -589,7 +513,7 @@
589
513
  },
590
514
  {
591
515
  "kind": "javascript-module",
592
- "path": "src/encoding/index.ts",
516
+ "path": "src/directives/index.ts",
593
517
  "declarations": [],
594
518
  "exports": [
595
519
  {
@@ -597,7 +521,68 @@
597
521
  "name": "*",
598
522
  "declaration": {
599
523
  "name": "*",
600
- "package": "./base64"
524
+ "package": "./sync"
525
+ }
526
+ },
527
+ {
528
+ "kind": "js",
529
+ "name": "*",
530
+ "declaration": {
531
+ "name": "*",
532
+ "package": "./when-else"
533
+ }
534
+ }
535
+ ]
536
+ },
537
+ {
538
+ "kind": "javascript-module",
539
+ "path": "src/decorators/index.ts",
540
+ "declarations": [],
541
+ "exports": [
542
+ {
543
+ "kind": "js",
544
+ "name": "*",
545
+ "declaration": {
546
+ "name": "*",
547
+ "package": "./renderOnChange"
548
+ }
549
+ }
550
+ ]
551
+ },
552
+ {
553
+ "kind": "javascript-module",
554
+ "path": "src/decorators/renderOnChange.ts",
555
+ "declarations": [
556
+ {
557
+ "kind": "function",
558
+ "name": "renderOnChange",
559
+ "parameters": [
560
+ {
561
+ "name": "target",
562
+ "type": {
563
+ "text": "FASTElement & { render(): void }"
564
+ },
565
+ "description": "The target to define the property change handler on."
566
+ },
567
+ {
568
+ "name": "name",
569
+ "type": {
570
+ "text": "string"
571
+ },
572
+ "description": "The property name."
573
+ }
574
+ ],
575
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
576
+ "privacy": "public"
577
+ }
578
+ ],
579
+ "exports": [
580
+ {
581
+ "kind": "js",
582
+ "name": "renderOnChange",
583
+ "declaration": {
584
+ "name": "renderOnChange",
585
+ "module": "src/decorators/renderOnChange.ts"
601
586
  }
602
587
  }
603
588
  ]
@@ -1276,6 +1261,21 @@
1276
1261
  }
1277
1262
  ]
1278
1263
  },
1264
+ {
1265
+ "kind": "javascript-module",
1266
+ "path": "src/encoding/index.ts",
1267
+ "declarations": [],
1268
+ "exports": [
1269
+ {
1270
+ "kind": "js",
1271
+ "name": "*",
1272
+ "declaration": {
1273
+ "name": "*",
1274
+ "package": "./base64"
1275
+ }
1276
+ }
1277
+ ]
1278
+ },
1279
1279
  {
1280
1280
  "kind": "javascript-module",
1281
1281
  "path": "src/feature-flags/featureFlags.ts",
@@ -33,5 +33,5 @@ export declare const createObserver: <EventType>() => Observer<EventType>;
33
33
  * @param callback - any function called when the visibility changes
34
34
  * @public
35
35
  */
36
- export declare const respondToVisibility: (element: HTMLElement, callback: (arg0: boolean) => any) => void;
36
+ export declare const respondToVisibility: (element: HTMLElement, callback: (arg0: boolean) => any) => () => void;
37
37
  //# sourceMappingURL=observer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"observer.d.ts","sourceRoot":"","sources":["../../../src/observer/observer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,QAAQ,CAAC,SAAS,IAAI,CAAC,EAAE,EAAE,SAAS,KAAK,IAAI,CAAC;AAC1D;;;;GAIG;AACH,MAAM,MAAM,SAAS,CAAC,SAAS,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,SAAS,CAAC,KAAK,MAAM,IAAI,CAAC;AACjF;;;GAGG;AACH,MAAM,MAAM,OAAO,CAAC,SAAS,IAAI,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;AAE5D;;;GAGG;AACH,MAAM,WAAW,QAAQ,CAAC,SAAS;IACjC,SAAS,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAChC,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;CAC7B;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,GAAI,SAAS,OAAK,QAAQ,CAAC,SAAS,CAW9D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,SAAS,WAAW,EAAE,UAAU,CAAC,IAAI,EAAE,OAAO,KAAK,GAAG,SAYzF,CAAC"}
1
+ {"version":3,"file":"observer.d.ts","sourceRoot":"","sources":["../../../src/observer/observer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,QAAQ,CAAC,SAAS,IAAI,CAAC,EAAE,EAAE,SAAS,KAAK,IAAI,CAAC;AAC1D;;;;GAIG;AACH,MAAM,MAAM,SAAS,CAAC,SAAS,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,SAAS,CAAC,KAAK,MAAM,IAAI,CAAC;AACjF;;;GAGG;AACH,MAAM,MAAM,OAAO,CAAC,SAAS,IAAI,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;AAE5D;;;GAGG;AACH,MAAM,WAAW,QAAQ,CAAC,SAAS;IACjC,SAAS,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAChC,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;CAC7B;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,GAAI,SAAS,OAAK,QAAQ,CAAC,SAAS,CAW9D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,SAAS,WAAW,EAAE,UAAU,CAAC,IAAI,EAAE,OAAO,KAAK,GAAG,eAgBzF,CAAC"}
@@ -30,4 +30,7 @@ export const respondToVisibility = (element, callback) => {
30
30
  });
31
31
  }, options);
32
32
  observer.observe(element);
33
+ return () => {
34
+ observer.disconnect();
35
+ };
33
36
  };
@@ -16834,7 +16834,7 @@
16834
16834
  },
16835
16835
  {
16836
16836
  "kind": "Content",
16837
- "text": "void"
16837
+ "text": "() => void"
16838
16838
  }
16839
16839
  ],
16840
16840
  "fileUrlPath": "src/observer/observer.ts",
@@ -2131,7 +2131,7 @@ export declare type ResourceType = (typeof ResourceType)[keyof typeof ResourceTy
2131
2131
  * @param callback - any function called when the visibility changes
2132
2132
  * @public
2133
2133
  */
2134
- export declare const respondToVisibility: (element: HTMLElement, callback: (arg0: boolean) => any) => void;
2134
+ export declare const respondToVisibility: (element: HTMLElement, callback: (arg0: boolean) => any) => () => void;
2135
2135
 
2136
2136
  /**
2137
2137
  * The data for a server row DTO.
@@ -9,7 +9,7 @@ Setup an `IntersectionObserver` which will activate a callback function when an
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- respondToVisibility: (element: HTMLElement, callback: (arg0: boolean) => any) => void
12
+ respondToVisibility: (element: HTMLElement, callback: (arg0: boolean) => any) => () => void
13
13
  ```
14
14
 
15
15
  ## Parameters
@@ -66,5 +66,5 @@ any function called when the visibility changes
66
66
 
67
67
  **Returns:**
68
68
 
69
- void
69
+ () =&gt; void
70
70
 
@@ -1422,7 +1422,7 @@ export const ResourceType: {
1422
1422
  export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
1423
1423
 
1424
1424
  // @public
1425
- export const respondToVisibility: (element: HTMLElement, callback: (arg0: boolean) => any) => void;
1425
+ export const respondToVisibility: (element: HTMLElement, callback: (arg0: boolean) => any) => () => void;
1426
1426
 
1427
1427
  // @public
1428
1428
  export type ServerRowDTO = {
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.377.0",
4
+ "version": "14.379.0-TAMTECH-262.1",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -27,18 +27,18 @@
27
27
  }
28
28
  },
29
29
  "devDependencies": {
30
- "@genesislcap/foundation-testing": "14.377.0",
31
- "@genesislcap/genx": "14.377.0",
32
- "@genesislcap/rollup-builder": "14.377.0",
33
- "@genesislcap/ts-builder": "14.377.0",
34
- "@genesislcap/uvu-playwright-builder": "14.377.0",
35
- "@genesislcap/vite-builder": "14.377.0",
36
- "@genesislcap/webpack-builder": "14.377.0",
30
+ "@genesislcap/foundation-testing": "14.379.0-TAMTECH-262.1",
31
+ "@genesislcap/genx": "14.379.0-TAMTECH-262.1",
32
+ "@genesislcap/rollup-builder": "14.379.0-TAMTECH-262.1",
33
+ "@genesislcap/ts-builder": "14.379.0-TAMTECH-262.1",
34
+ "@genesislcap/uvu-playwright-builder": "14.379.0-TAMTECH-262.1",
35
+ "@genesislcap/vite-builder": "14.379.0-TAMTECH-262.1",
36
+ "@genesislcap/webpack-builder": "14.379.0-TAMTECH-262.1",
37
37
  "@types/json-schema": "^7.0.11"
38
38
  },
39
39
  "dependencies": {
40
- "@genesislcap/expression-builder": "14.377.0",
41
- "@genesislcap/foundation-logger": "14.377.0",
40
+ "@genesislcap/expression-builder": "14.379.0-TAMTECH-262.1",
41
+ "@genesislcap/foundation-logger": "14.379.0-TAMTECH-262.1",
42
42
  "@microsoft/fast-components": "2.30.6",
43
43
  "@microsoft/fast-element": "1.14.0",
44
44
  "@microsoft/fast-foundation": "2.49.6",
@@ -56,5 +56,5 @@
56
56
  "access": "public"
57
57
  },
58
58
  "customElements": "dist/custom-elements.json",
59
- "gitHead": "3f78c249444b0985b76433db6882e2376dbd2886"
59
+ "gitHead": "c4caf7cee76b2e27d6e5e8332eb60fe0055d5362"
60
60
  }