@genesislcap/foundation-utils 14.226.2-alpha-aea721e.0 → 14.227.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/custom-elements.json +165 -115
- package/dist/dts/env/variables.d.ts +20 -0
- package/dist/dts/env/variables.d.ts.map +1 -1
- package/dist/esm/env/variables.js +39 -7
- package/dist/foundation-utils.api.json +46 -0
- package/dist/foundation-utils.d.ts +20 -0
- package/docs/api/foundation-utils.builder.md +18 -0
- package/docs/api/foundation-utils.md +2 -0
- package/docs/api/foundation-utils.public_path.md +18 -0
- package/docs/api-report.md +6 -0
- package/package.json +10 -10
@@ -367,6 +367,59 @@
|
|
367
367
|
}
|
368
368
|
]
|
369
369
|
},
|
370
|
+
{
|
371
|
+
"kind": "javascript-module",
|
372
|
+
"path": "src/decorators/index.ts",
|
373
|
+
"declarations": [],
|
374
|
+
"exports": [
|
375
|
+
{
|
376
|
+
"kind": "js",
|
377
|
+
"name": "*",
|
378
|
+
"declaration": {
|
379
|
+
"name": "*",
|
380
|
+
"package": "./renderOnChange"
|
381
|
+
}
|
382
|
+
}
|
383
|
+
]
|
384
|
+
},
|
385
|
+
{
|
386
|
+
"kind": "javascript-module",
|
387
|
+
"path": "src/decorators/renderOnChange.ts",
|
388
|
+
"declarations": [
|
389
|
+
{
|
390
|
+
"kind": "function",
|
391
|
+
"name": "renderOnChange",
|
392
|
+
"parameters": [
|
393
|
+
{
|
394
|
+
"name": "target",
|
395
|
+
"type": {
|
396
|
+
"text": "FASTElement & { render(): void }"
|
397
|
+
},
|
398
|
+
"description": "The target to define the property change handler on."
|
399
|
+
},
|
400
|
+
{
|
401
|
+
"name": "name",
|
402
|
+
"type": {
|
403
|
+
"text": "string"
|
404
|
+
},
|
405
|
+
"description": "The property name."
|
406
|
+
}
|
407
|
+
],
|
408
|
+
"description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
|
409
|
+
"privacy": "public"
|
410
|
+
}
|
411
|
+
],
|
412
|
+
"exports": [
|
413
|
+
{
|
414
|
+
"kind": "js",
|
415
|
+
"name": "renderOnChange",
|
416
|
+
"declaration": {
|
417
|
+
"name": "renderOnChange",
|
418
|
+
"module": "src/decorators/renderOnChange.ts"
|
419
|
+
}
|
420
|
+
}
|
421
|
+
]
|
422
|
+
},
|
370
423
|
{
|
371
424
|
"kind": "javascript-module",
|
372
425
|
"path": "src/directives/index.ts",
|
@@ -504,6 +557,40 @@
|
|
504
557
|
"kind": "javascript-module",
|
505
558
|
"path": "src/env/variables.ts",
|
506
559
|
"declarations": [
|
560
|
+
{
|
561
|
+
"kind": "variable",
|
562
|
+
"name": "BUILDER",
|
563
|
+
"type": {
|
564
|
+
"text": "string"
|
565
|
+
}
|
566
|
+
},
|
567
|
+
{
|
568
|
+
"kind": "variable",
|
569
|
+
"name": "_BUILDER",
|
570
|
+
"type": {
|
571
|
+
"text": "string"
|
572
|
+
},
|
573
|
+
"default": "'webpack'",
|
574
|
+
"description": "The builder aka file bundler.",
|
575
|
+
"privacy": "public"
|
576
|
+
},
|
577
|
+
{
|
578
|
+
"kind": "variable",
|
579
|
+
"name": "PUBLIC_PATH",
|
580
|
+
"type": {
|
581
|
+
"text": "string"
|
582
|
+
}
|
583
|
+
},
|
584
|
+
{
|
585
|
+
"kind": "variable",
|
586
|
+
"name": "_PUBLIC_PATH",
|
587
|
+
"type": {
|
588
|
+
"text": "string"
|
589
|
+
},
|
590
|
+
"default": "'/'",
|
591
|
+
"description": "The public path.",
|
592
|
+
"privacy": "public"
|
593
|
+
},
|
507
594
|
{
|
508
595
|
"kind": "variable",
|
509
596
|
"name": "SOCKET_EXT",
|
@@ -627,6 +714,22 @@
|
|
627
714
|
}
|
628
715
|
],
|
629
716
|
"exports": [
|
717
|
+
{
|
718
|
+
"kind": "js",
|
719
|
+
"name": "BUILDER",
|
720
|
+
"declaration": {
|
721
|
+
"name": "_BUILDER",
|
722
|
+
"module": "src/env/variables.ts"
|
723
|
+
}
|
724
|
+
},
|
725
|
+
{
|
726
|
+
"kind": "js",
|
727
|
+
"name": "PUBLIC_PATH",
|
728
|
+
"declaration": {
|
729
|
+
"name": "_PUBLIC_PATH",
|
730
|
+
"module": "src/env/variables.ts"
|
731
|
+
}
|
732
|
+
},
|
630
733
|
{
|
631
734
|
"kind": "js",
|
632
735
|
"name": "SOCKET_EXT",
|
@@ -693,59 +796,6 @@
|
|
693
796
|
}
|
694
797
|
]
|
695
798
|
},
|
696
|
-
{
|
697
|
-
"kind": "javascript-module",
|
698
|
-
"path": "src/decorators/index.ts",
|
699
|
-
"declarations": [],
|
700
|
-
"exports": [
|
701
|
-
{
|
702
|
-
"kind": "js",
|
703
|
-
"name": "*",
|
704
|
-
"declaration": {
|
705
|
-
"name": "*",
|
706
|
-
"package": "./renderOnChange"
|
707
|
-
}
|
708
|
-
}
|
709
|
-
]
|
710
|
-
},
|
711
|
-
{
|
712
|
-
"kind": "javascript-module",
|
713
|
-
"path": "src/decorators/renderOnChange.ts",
|
714
|
-
"declarations": [
|
715
|
-
{
|
716
|
-
"kind": "function",
|
717
|
-
"name": "renderOnChange",
|
718
|
-
"parameters": [
|
719
|
-
{
|
720
|
-
"name": "target",
|
721
|
-
"type": {
|
722
|
-
"text": "FASTElement & { render(): void }"
|
723
|
-
},
|
724
|
-
"description": "The target to define the property change handler on."
|
725
|
-
},
|
726
|
-
{
|
727
|
-
"name": "name",
|
728
|
-
"type": {
|
729
|
-
"text": "string"
|
730
|
-
},
|
731
|
-
"description": "The property name."
|
732
|
-
}
|
733
|
-
],
|
734
|
-
"description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
|
735
|
-
"privacy": "public"
|
736
|
-
}
|
737
|
-
],
|
738
|
-
"exports": [
|
739
|
-
{
|
740
|
-
"kind": "js",
|
741
|
-
"name": "renderOnChange",
|
742
|
-
"declaration": {
|
743
|
-
"name": "renderOnChange",
|
744
|
-
"module": "src/decorators/renderOnChange.ts"
|
745
|
-
}
|
746
|
-
}
|
747
|
-
]
|
748
|
-
},
|
749
799
|
{
|
750
800
|
"kind": "javascript-module",
|
751
801
|
"path": "src/error/errorMap.ts",
|
@@ -1356,7 +1406,7 @@
|
|
1356
1406
|
},
|
1357
1407
|
{
|
1358
1408
|
"kind": "javascript-module",
|
1359
|
-
"path": "src/
|
1409
|
+
"path": "src/observer/index.ts",
|
1360
1410
|
"declarations": [],
|
1361
1411
|
"exports": [
|
1362
1412
|
{
|
@@ -1364,55 +1414,71 @@
|
|
1364
1414
|
"name": "*",
|
1365
1415
|
"declaration": {
|
1366
1416
|
"name": "*",
|
1367
|
-
"package": "./
|
1417
|
+
"package": "./observer"
|
1368
1418
|
}
|
1369
1419
|
}
|
1370
1420
|
]
|
1371
1421
|
},
|
1372
1422
|
{
|
1373
1423
|
"kind": "javascript-module",
|
1374
|
-
"path": "src/
|
1424
|
+
"path": "src/observer/observer.ts",
|
1375
1425
|
"declarations": [
|
1376
1426
|
{
|
1377
1427
|
"kind": "function",
|
1378
|
-
"name": "
|
1428
|
+
"name": "createObserver",
|
1379
1429
|
"return": {
|
1380
1430
|
"type": {
|
1381
|
-
"text": "
|
1431
|
+
"text": "Observer<EventType>"
|
1382
1432
|
}
|
1383
1433
|
},
|
1434
|
+
"description": "Creates a new event observer instance.",
|
1435
|
+
"privacy": "public"
|
1436
|
+
},
|
1437
|
+
{
|
1438
|
+
"kind": "function",
|
1439
|
+
"name": "respondToVisibility",
|
1384
1440
|
"parameters": [
|
1385
1441
|
{
|
1386
|
-
"name": "
|
1442
|
+
"name": "element",
|
1387
1443
|
"type": {
|
1388
|
-
"text": "
|
1389
|
-
}
|
1444
|
+
"text": "HTMLElement"
|
1445
|
+
},
|
1446
|
+
"description": "HTMLElement to observe"
|
1390
1447
|
},
|
1391
1448
|
{
|
1392
|
-
"name": "
|
1449
|
+
"name": "callback",
|
1393
1450
|
"type": {
|
1394
|
-
"text": "() =>
|
1395
|
-
}
|
1451
|
+
"text": "(arg0: boolean) => any"
|
1452
|
+
},
|
1453
|
+
"description": "any function called when the visibility changes"
|
1396
1454
|
}
|
1397
1455
|
],
|
1398
|
-
"description": "
|
1456
|
+
"description": "Setup an `IntersectionObserver` which will activate a callback function when an element becomes visible on screen",
|
1399
1457
|
"privacy": "public"
|
1400
1458
|
}
|
1401
1459
|
],
|
1402
1460
|
"exports": [
|
1403
1461
|
{
|
1404
1462
|
"kind": "js",
|
1405
|
-
"name": "
|
1463
|
+
"name": "createObserver",
|
1406
1464
|
"declaration": {
|
1407
|
-
"name": "
|
1408
|
-
"module": "src/
|
1465
|
+
"name": "createObserver",
|
1466
|
+
"module": "src/observer/observer.ts"
|
1467
|
+
}
|
1468
|
+
},
|
1469
|
+
{
|
1470
|
+
"kind": "js",
|
1471
|
+
"name": "respondToVisibility",
|
1472
|
+
"declaration": {
|
1473
|
+
"name": "respondToVisibility",
|
1474
|
+
"module": "src/observer/observer.ts"
|
1409
1475
|
}
|
1410
1476
|
}
|
1411
1477
|
]
|
1412
1478
|
},
|
1413
1479
|
{
|
1414
1480
|
"kind": "javascript-module",
|
1415
|
-
"path": "src/
|
1481
|
+
"path": "src/promise/index.ts",
|
1416
1482
|
"declarations": [],
|
1417
1483
|
"exports": [
|
1418
1484
|
{
|
@@ -1420,64 +1486,48 @@
|
|
1420
1486
|
"name": "*",
|
1421
1487
|
"declaration": {
|
1422
1488
|
"name": "*",
|
1423
|
-
"package": "./
|
1489
|
+
"package": "./resolveAfter"
|
1424
1490
|
}
|
1425
1491
|
}
|
1426
1492
|
]
|
1427
1493
|
},
|
1428
1494
|
{
|
1429
1495
|
"kind": "javascript-module",
|
1430
|
-
"path": "src/
|
1496
|
+
"path": "src/promise/resolveAfter.ts",
|
1431
1497
|
"declarations": [
|
1432
1498
|
{
|
1433
1499
|
"kind": "function",
|
1434
|
-
"name": "
|
1500
|
+
"name": "resolveAfter",
|
1435
1501
|
"return": {
|
1436
1502
|
"type": {
|
1437
|
-
"text": "
|
1503
|
+
"text": "Promise<T>"
|
1438
1504
|
}
|
1439
1505
|
},
|
1440
|
-
"description": "Creates a new event observer instance.",
|
1441
|
-
"privacy": "public"
|
1442
|
-
},
|
1443
|
-
{
|
1444
|
-
"kind": "function",
|
1445
|
-
"name": "respondToVisibility",
|
1446
1506
|
"parameters": [
|
1447
1507
|
{
|
1448
|
-
"name": "
|
1508
|
+
"name": "ms",
|
1449
1509
|
"type": {
|
1450
|
-
"text": "
|
1451
|
-
}
|
1452
|
-
"description": "HTMLElement to observe"
|
1510
|
+
"text": "number"
|
1511
|
+
}
|
1453
1512
|
},
|
1454
1513
|
{
|
1455
|
-
"name": "
|
1514
|
+
"name": "valueCreator",
|
1456
1515
|
"type": {
|
1457
|
-
"text": "(
|
1458
|
-
}
|
1459
|
-
"description": "any function called when the visibility changes"
|
1516
|
+
"text": "() => T"
|
1517
|
+
}
|
1460
1518
|
}
|
1461
1519
|
],
|
1462
|
-
"description": "
|
1520
|
+
"description": "Resolve a promise after a timeout.",
|
1463
1521
|
"privacy": "public"
|
1464
1522
|
}
|
1465
1523
|
],
|
1466
1524
|
"exports": [
|
1467
1525
|
{
|
1468
1526
|
"kind": "js",
|
1469
|
-
"name": "
|
1470
|
-
"declaration": {
|
1471
|
-
"name": "createObserver",
|
1472
|
-
"module": "src/observer/observer.ts"
|
1473
|
-
}
|
1474
|
-
},
|
1475
|
-
{
|
1476
|
-
"kind": "js",
|
1477
|
-
"name": "respondToVisibility",
|
1527
|
+
"name": "resolveAfter",
|
1478
1528
|
"declaration": {
|
1479
|
-
"name": "
|
1480
|
-
"module": "src/
|
1529
|
+
"name": "resolveAfter",
|
1530
|
+
"module": "src/promise/resolveAfter.ts"
|
1481
1531
|
}
|
1482
1532
|
}
|
1483
1533
|
]
|
@@ -2013,7 +2063,7 @@
|
|
2013
2063
|
},
|
2014
2064
|
{
|
2015
2065
|
"kind": "javascript-module",
|
2016
|
-
"path": "src/
|
2066
|
+
"path": "src/utils/index.ts",
|
2017
2067
|
"declarations": [],
|
2018
2068
|
"exports": [
|
2019
2069
|
{
|
@@ -2021,36 +2071,36 @@
|
|
2021
2071
|
"name": "*",
|
2022
2072
|
"declaration": {
|
2023
2073
|
"name": "*",
|
2024
|
-
"package": "./
|
2074
|
+
"package": "./logger"
|
2025
2075
|
}
|
2026
2076
|
}
|
2027
2077
|
]
|
2028
2078
|
},
|
2029
2079
|
{
|
2030
2080
|
"kind": "javascript-module",
|
2031
|
-
"path": "src/
|
2081
|
+
"path": "src/utils/logger.ts",
|
2032
2082
|
"declarations": [
|
2033
2083
|
{
|
2034
2084
|
"kind": "variable",
|
2035
|
-
"name": "
|
2036
|
-
"description": "
|
2085
|
+
"name": "logger",
|
2086
|
+
"description": "Logger for the foundation-utils package",
|
2037
2087
|
"privacy": "public"
|
2038
2088
|
}
|
2039
2089
|
],
|
2040
2090
|
"exports": [
|
2041
2091
|
{
|
2042
2092
|
"kind": "js",
|
2043
|
-
"name": "
|
2093
|
+
"name": "logger",
|
2044
2094
|
"declaration": {
|
2045
|
-
"name": "
|
2046
|
-
"module": "src/
|
2095
|
+
"name": "logger",
|
2096
|
+
"module": "src/utils/logger.ts"
|
2047
2097
|
}
|
2048
2098
|
}
|
2049
2099
|
]
|
2050
2100
|
},
|
2051
2101
|
{
|
2052
2102
|
"kind": "javascript-module",
|
2053
|
-
"path": "src/
|
2103
|
+
"path": "src/uuid/index.ts",
|
2054
2104
|
"declarations": [],
|
2055
2105
|
"exports": [
|
2056
2106
|
{
|
@@ -2058,29 +2108,29 @@
|
|
2058
2108
|
"name": "*",
|
2059
2109
|
"declaration": {
|
2060
2110
|
"name": "*",
|
2061
|
-
"package": "./
|
2111
|
+
"package": "./uuid"
|
2062
2112
|
}
|
2063
2113
|
}
|
2064
2114
|
]
|
2065
2115
|
},
|
2066
2116
|
{
|
2067
2117
|
"kind": "javascript-module",
|
2068
|
-
"path": "src/
|
2118
|
+
"path": "src/uuid/uuid.ts",
|
2069
2119
|
"declarations": [
|
2070
2120
|
{
|
2071
2121
|
"kind": "variable",
|
2072
|
-
"name": "
|
2073
|
-
"description": "
|
2122
|
+
"name": "UUID",
|
2123
|
+
"description": "A dependency injection token for the UUID interface.",
|
2074
2124
|
"privacy": "public"
|
2075
2125
|
}
|
2076
2126
|
],
|
2077
2127
|
"exports": [
|
2078
2128
|
{
|
2079
2129
|
"kind": "js",
|
2080
|
-
"name": "
|
2130
|
+
"name": "UUID",
|
2081
2131
|
"declaration": {
|
2082
|
-
"name": "
|
2083
|
-
"module": "src/
|
2132
|
+
"name": "UUID",
|
2133
|
+
"module": "src/uuid/uuid.ts"
|
2084
2134
|
}
|
2085
2135
|
}
|
2086
2136
|
]
|
@@ -1,3 +1,23 @@
|
|
1
|
+
/**
|
2
|
+
* The builder aka file bundler.
|
3
|
+
* @privateRemarks
|
4
|
+
* Provided by default as part of the `resolveDefineConfig` in the build kit.
|
5
|
+
* @example 'webpack', 'vite'.
|
6
|
+
* @defaultValue `'webpack'`
|
7
|
+
* @public
|
8
|
+
*/
|
9
|
+
declare let _BUILDER: string;
|
10
|
+
export { _BUILDER as BUILDER };
|
11
|
+
/**
|
12
|
+
* The public path.
|
13
|
+
* @privateRemarks
|
14
|
+
* Provided by default as part of the `resolveDefineConfig` in the build kit.
|
15
|
+
* @example '/', '/app/'.
|
16
|
+
* @public
|
17
|
+
* @defaultValue `'/'`
|
18
|
+
*/
|
19
|
+
declare let _PUBLIC_PATH: string;
|
20
|
+
export { _PUBLIC_PATH as PUBLIC_PATH };
|
1
21
|
/**
|
2
22
|
* The sub-path used for WebSocket connections when API_HOST is not set
|
3
23
|
* @public
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"variables.d.ts","sourceRoot":"","sources":["../../../src/env/variables.ts"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AACH,QAAA,IAAI,WAAW,EAAE,MAAc,CAAC;AAQhC,OAAO,EAAE,WAAW,IAAI,UAAU,EAAE,CAAC;AAGrC;;;;GAIG;AACH,QAAA,IAAI,WAAW,EAAE,MAAM,CAAC;AAMxB,OAAO,EAAE,WAAW,IAAI,UAAU,EAAE,CAAC;AAErC;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,QAAiF,CAAC;AAOjH;;;;;;GAMG;AACH,QAAA,IAAI,SAAS,EAAE,MAAwD,CAAC;AAQxE,OAAO,EAAE,SAAS,IAAI,QAAQ,EAAE,CAAC;AAGjC;;;;GAIG;AACH,QAAA,IAAI,YAAY,EAAE,MAAM,CAAC;AAMzB,OAAO,EAAE,YAAY,IAAI,WAAW,EAAE,CAAC;AAKvC;;;;GAIG;AACH,QAAA,IAAI,qBAAqB,EAAE,MAAM,CAAC;AAMlC,OAAO,EAAE,qBAAqB,IAAI,oBAAoB,EAAE,CAAC;AAGzD;;;;GAIG;AACH,QAAA,IAAI,iBAAiB,EAAE,MAAM,CAAC;AAM9B,OAAO,EAAE,iBAAiB,IAAI,gBAAgB,EAAE,CAAC;AAGjD;;;;GAIG;AACH,QAAA,IAAI,aAAa,EAAE,MAAM,CAAC;AAM1B,OAAO,EAAE,aAAa,IAAI,YAAY,EAAE,CAAC"}
|
1
|
+
{"version":3,"file":"variables.d.ts","sourceRoot":"","sources":["../../../src/env/variables.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,QAAA,IAAI,QAAQ,EAAE,MAAkB,CAAC;AAQjC,OAAO,EAAE,QAAQ,IAAI,OAAO,EAAE,CAAC;AAG/B;;;;;;;GAOG;AACH,QAAA,IAAI,YAAY,EAAE,MAAY,CAAC;AAQ/B,OAAO,EAAE,YAAY,IAAI,WAAW,EAAE,CAAC;AAGvC;;;;;;;;GAQG;AACH,QAAA,IAAI,WAAW,EAAE,MAAc,CAAC;AAQhC,OAAO,EAAE,WAAW,IAAI,UAAU,EAAE,CAAC;AAGrC;;;;GAIG;AACH,QAAA,IAAI,WAAW,EAAE,MAAM,CAAC;AAMxB,OAAO,EAAE,WAAW,IAAI,UAAU,EAAE,CAAC;AAErC;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,QAAiF,CAAC;AAOjH;;;;;;GAMG;AACH,QAAA,IAAI,SAAS,EAAE,MAAwD,CAAC;AAQxE,OAAO,EAAE,SAAS,IAAI,QAAQ,EAAE,CAAC;AAGjC;;;;GAIG;AACH,QAAA,IAAI,YAAY,EAAE,MAAM,CAAC;AAMzB,OAAO,EAAE,YAAY,IAAI,WAAW,EAAE,CAAC;AAKvC;;;;GAIG;AACH,QAAA,IAAI,qBAAqB,EAAE,MAAM,CAAC;AAMlC,OAAO,EAAE,qBAAqB,IAAI,oBAAoB,EAAE,CAAC;AAGzD;;;;GAIG;AACH,QAAA,IAAI,iBAAiB,EAAE,MAAM,CAAC;AAM9B,OAAO,EAAE,iBAAiB,IAAI,gBAAgB,EAAE,CAAC;AAGjD;;;;GAIG;AACH,QAAA,IAAI,aAAa,EAAE,MAAM,CAAC;AAM1B,OAAO,EAAE,aAAa,IAAI,YAAY,EAAE,CAAC"}
|
@@ -1,4 +1,36 @@
|
|
1
1
|
/* eslint-disable import/no-mutable-exports */
|
2
|
+
/**
|
3
|
+
* The builder aka file bundler.
|
4
|
+
* @privateRemarks
|
5
|
+
* Provided by default as part of the `resolveDefineConfig` in the build kit.
|
6
|
+
* @example 'webpack', 'vite'.
|
7
|
+
* @defaultValue `'webpack'`
|
8
|
+
* @public
|
9
|
+
*/
|
10
|
+
let _BUILDER = 'webpack';
|
11
|
+
try {
|
12
|
+
if (typeof BUILDER !== 'undefined') {
|
13
|
+
_BUILDER = BUILDER;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
catch (_a) { }
|
17
|
+
export { _BUILDER as BUILDER };
|
18
|
+
/**
|
19
|
+
* The public path.
|
20
|
+
* @privateRemarks
|
21
|
+
* Provided by default as part of the `resolveDefineConfig` in the build kit.
|
22
|
+
* @example '/', '/app/'.
|
23
|
+
* @public
|
24
|
+
* @defaultValue `'/'`
|
25
|
+
*/
|
26
|
+
let _PUBLIC_PATH = '/';
|
27
|
+
try {
|
28
|
+
if (typeof PUBLIC_PATH !== 'undefined') {
|
29
|
+
_PUBLIC_PATH = PUBLIC_PATH;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
catch (_b) { }
|
33
|
+
export { _PUBLIC_PATH as PUBLIC_PATH };
|
2
34
|
/**
|
3
35
|
* The sub-path used for WebSocket connections when API_HOST is not set
|
4
36
|
* @public
|
@@ -14,7 +46,7 @@ try {
|
|
14
46
|
_SOCKET_EXT = SOCKET_EXT;
|
15
47
|
}
|
16
48
|
}
|
17
|
-
catch (
|
49
|
+
catch (_c) { }
|
18
50
|
export { _SOCKET_EXT as SOCKET_EXT };
|
19
51
|
/**
|
20
52
|
* The path to a JSON config file for the HTTP mode.
|
@@ -25,7 +57,7 @@ let _FORCE_HTTP;
|
|
25
57
|
try {
|
26
58
|
_FORCE_HTTP = FORCE_HTTP;
|
27
59
|
}
|
28
|
-
catch (
|
60
|
+
catch (_d) { }
|
29
61
|
export { _FORCE_HTTP as FORCE_HTTP };
|
30
62
|
/**
|
31
63
|
* Genesis Socket URL
|
@@ -52,7 +84,7 @@ try {
|
|
52
84
|
_API_HOST = API_HOST;
|
53
85
|
}
|
54
86
|
}
|
55
|
-
catch (
|
87
|
+
catch (_e) { }
|
56
88
|
export { _API_HOST as API_HOST };
|
57
89
|
/**
|
58
90
|
* Configuration settings for HTTP, used in http connect flow [`genesislcap-foundation-comms.HttpConnectConfig`](https://link-to-docs).
|
@@ -63,7 +95,7 @@ let _HTTP_CONFIG;
|
|
63
95
|
try {
|
64
96
|
_HTTP_CONFIG = HTTP_CONFIG;
|
65
97
|
}
|
66
|
-
catch (
|
98
|
+
catch (_f) { }
|
67
99
|
export { _HTTP_CONFIG as HTTP_CONFIG };
|
68
100
|
/**
|
69
101
|
* The default Organisation value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).
|
@@ -74,7 +106,7 @@ let _DEFAULT_ORGANISATION;
|
|
74
106
|
try {
|
75
107
|
_DEFAULT_ORGANISATION = DEFAULT_ORGANISATION;
|
76
108
|
}
|
77
|
-
catch (
|
109
|
+
catch (_g) { }
|
78
110
|
export { _DEFAULT_ORGANISATION as DEFAULT_ORGANISATION };
|
79
111
|
/**
|
80
112
|
* The default Password value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).
|
@@ -85,7 +117,7 @@ let _DEFAULT_PASSWORD;
|
|
85
117
|
try {
|
86
118
|
_DEFAULT_PASSWORD = DEFAULT_PASSWORD;
|
87
119
|
}
|
88
|
-
catch (
|
120
|
+
catch (_h) { }
|
89
121
|
export { _DEFAULT_PASSWORD as DEFAULT_PASSWORD };
|
90
122
|
/**
|
91
123
|
* The default Username value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).
|
@@ -96,5 +128,5 @@ let _DEFAULT_USER;
|
|
96
128
|
try {
|
97
129
|
_DEFAULT_USER = DEFAULT_USER;
|
98
130
|
}
|
99
|
-
catch (
|
131
|
+
catch (_j) { }
|
100
132
|
export { _DEFAULT_USER as DEFAULT_USER };
|
@@ -274,6 +274,29 @@
|
|
274
274
|
],
|
275
275
|
"name": "assureDesignSystem"
|
276
276
|
},
|
277
|
+
{
|
278
|
+
"kind": "Variable",
|
279
|
+
"canonicalReference": "@genesislcap/foundation-utils!BUILDER:var",
|
280
|
+
"docComment": "/**\n * The builder aka file bundler.\n *\n * @example\n *\n * 'webpack', 'vite'.\n *\n * @defaultValue\n *\n * `'webpack'`\n *\n * @public\n */\n",
|
281
|
+
"excerptTokens": [
|
282
|
+
{
|
283
|
+
"kind": "Content",
|
284
|
+
"text": "_BUILDER: "
|
285
|
+
},
|
286
|
+
{
|
287
|
+
"kind": "Content",
|
288
|
+
"text": "string"
|
289
|
+
}
|
290
|
+
],
|
291
|
+
"fileUrlPath": "src/env/variables.ts",
|
292
|
+
"isReadonly": false,
|
293
|
+
"releaseTag": "Public",
|
294
|
+
"name": "BUILDER",
|
295
|
+
"variableTypeTokenRange": {
|
296
|
+
"startIndex": 1,
|
297
|
+
"endIndex": 2
|
298
|
+
}
|
299
|
+
},
|
277
300
|
{
|
278
301
|
"kind": "TypeAlias",
|
279
302
|
"canonicalReference": "@genesislcap/foundation-utils!ConstructableLifecycleHandler:type",
|
@@ -11926,6 +11949,29 @@
|
|
11926
11949
|
"endIndex": 0
|
11927
11950
|
}
|
11928
11951
|
},
|
11952
|
+
{
|
11953
|
+
"kind": "Variable",
|
11954
|
+
"canonicalReference": "@genesislcap/foundation-utils!PUBLIC_PATH:var",
|
11955
|
+
"docComment": "/**\n * The public path.\n *\n * @example\n *\n * '/', '/app/'.\n *\n * @defaultValue\n *\n * `'/'`\n *\n * @public\n */\n",
|
11956
|
+
"excerptTokens": [
|
11957
|
+
{
|
11958
|
+
"kind": "Content",
|
11959
|
+
"text": "_PUBLIC_PATH: "
|
11960
|
+
},
|
11961
|
+
{
|
11962
|
+
"kind": "Content",
|
11963
|
+
"text": "string"
|
11964
|
+
}
|
11965
|
+
],
|
11966
|
+
"fileUrlPath": "src/env/variables.ts",
|
11967
|
+
"isReadonly": false,
|
11968
|
+
"releaseTag": "Public",
|
11969
|
+
"name": "PUBLIC_PATH",
|
11970
|
+
"variableTypeTokenRange": {
|
11971
|
+
"startIndex": 1,
|
11972
|
+
"endIndex": 2
|
11973
|
+
}
|
11974
|
+
},
|
11929
11975
|
{
|
11930
11976
|
"kind": "TypeAlias",
|
11931
11977
|
"canonicalReference": "@genesislcap/foundation-utils!Publish:type",
|
@@ -73,6 +73,16 @@ export declare function assureDesignSystem(module: DesignSystemModule): DesignSy
|
|
73
73
|
*/
|
74
74
|
export declare const BIG_INT_64_BITS = 64;
|
75
75
|
|
76
|
+
/**
|
77
|
+
* The builder aka file bundler.
|
78
|
+
* @privateRemarks
|
79
|
+
* Provided by default as part of the `resolveDefineConfig` in the build kit.
|
80
|
+
* @example 'webpack', 'vite'.
|
81
|
+
* @defaultValue `'webpack'`
|
82
|
+
* @public
|
83
|
+
*/
|
84
|
+
export declare let BUILDER: string;
|
85
|
+
|
76
86
|
/**
|
77
87
|
* @public
|
78
88
|
*/
|
@@ -1594,6 +1604,16 @@ export declare const POPUP_DEFAULT_HEIGHT = 600;
|
|
1594
1604
|
*/
|
1595
1605
|
export declare const POPUP_DEFAULT_WIDTH = 483;
|
1596
1606
|
|
1607
|
+
/**
|
1608
|
+
* The public path.
|
1609
|
+
* @privateRemarks
|
1610
|
+
* Provided by default as part of the `resolveDefineConfig` in the build kit.
|
1611
|
+
* @example '/', '/app/'.
|
1612
|
+
* @public
|
1613
|
+
* @defaultValue `'/'`
|
1614
|
+
*/
|
1615
|
+
export declare let PUBLIC_PATH: string;
|
1616
|
+
|
1597
1617
|
/**
|
1598
1618
|
* Publishes an event of a specific type to all subscribed listeners.
|
1599
1619
|
* @public
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-utils](./foundation-utils.md) > [BUILDER](./foundation-utils.builder.md)
|
4
|
+
|
5
|
+
## BUILDER variable
|
6
|
+
|
7
|
+
The builder aka file bundler.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
_BUILDER: string
|
13
|
+
```
|
14
|
+
|
15
|
+
## Example
|
16
|
+
|
17
|
+
'webpack', 'vite'.
|
18
|
+
|
@@ -75,6 +75,7 @@
|
|
75
75
|
| --- | --- |
|
76
76
|
| [activeColorScheme](./foundation-utils.activecolorscheme.md) | A design token that represents the active color scheme (light or dark). |
|
77
77
|
| [API\_HOST](./foundation-utils.api_host.md) | The Genesis Server URL (WebSocket or HTTP). |
|
78
|
+
| [BUILDER](./foundation-utils.builder.md) | The builder aka file bundler. |
|
78
79
|
| [createErrorMap](./foundation-utils.createerrormap.md) | A factory to create the error map. |
|
79
80
|
| [createObserver](./foundation-utils.createobserver.md) | Creates a new event observer instance. |
|
80
81
|
| [decodeFromBase64](./foundation-utils.decodefrombase64.md) | Decodes a value from base64. |
|
@@ -105,6 +106,7 @@
|
|
105
106
|
| [PendingState](./foundation-utils.pendingstate.md) | The <code>PendingState</code> mixin. |
|
106
107
|
| [POPUP\_DEFAULT\_HEIGHT](./foundation-utils.popup_default_height.md) | The default height (in pixels) for pop-up windows. |
|
107
108
|
| [POPUP\_DEFAULT\_WIDTH](./foundation-utils.popup_default_width.md) | The default width (in pixels) for pop-up windows. |
|
109
|
+
| [PUBLIC\_PATH](./foundation-utils.public_path.md) | The public path. |
|
108
110
|
| [resolveAfter](./foundation-utils.resolveafter.md) | Resolve a promise after a timeout. |
|
109
111
|
| [ResourceType](./foundation-utils.resourcetype.md) | An object that defines two resource types: "local" and "remote". |
|
110
112
|
| [respondToVisibility](./foundation-utils.respondtovisibility.md) | Setup an <code>IntersectionObserver</code> which will activate a callback function when an element becomes visible on screen |
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-utils](./foundation-utils.md) > [PUBLIC\_PATH](./foundation-utils.public_path.md)
|
4
|
+
|
5
|
+
## PUBLIC\_PATH variable
|
6
|
+
|
7
|
+
The public path.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
_PUBLIC_PATH: string
|
13
|
+
```
|
14
|
+
|
15
|
+
## Example
|
16
|
+
|
17
|
+
'/', '/app/'.
|
18
|
+
|
package/docs/api-report.md
CHANGED
@@ -33,6 +33,9 @@ export function assureDesignSystem(module: DesignSystemModule): DesignSystemModu
|
|
33
33
|
// @internal (undocumented)
|
34
34
|
export const BIG_INT_64_BITS = 64;
|
35
35
|
|
36
|
+
// @public
|
37
|
+
export let BUILDER: string;
|
38
|
+
|
36
39
|
// @public (undocumented)
|
37
40
|
export type ConstructableLifecycleHandler = Constructable<FASTElement & HTMLElement>;
|
38
41
|
|
@@ -1087,6 +1090,9 @@ export const POPUP_DEFAULT_HEIGHT = 600;
|
|
1087
1090
|
// @public
|
1088
1091
|
export const POPUP_DEFAULT_WIDTH = 483;
|
1089
1092
|
|
1093
|
+
// @public
|
1094
|
+
export let PUBLIC_PATH: string;
|
1095
|
+
|
1090
1096
|
// @public
|
1091
1097
|
export type Publish<EventType> = (event: EventType) => void;
|
1092
1098
|
|
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.
|
4
|
+
"version": "14.227.0",
|
5
5
|
"sideEffects": false,
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
7
7
|
"main": "dist/esm/index.js",
|
@@ -27,17 +27,17 @@
|
|
27
27
|
}
|
28
28
|
},
|
29
29
|
"devDependencies": {
|
30
|
-
"@genesislcap/foundation-testing": "14.
|
31
|
-
"@genesislcap/genx": "14.
|
32
|
-
"@genesislcap/rollup-builder": "14.
|
33
|
-
"@genesislcap/ts-builder": "14.
|
34
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
35
|
-
"@genesislcap/vite-builder": "14.
|
36
|
-
"@genesislcap/webpack-builder": "14.
|
30
|
+
"@genesislcap/foundation-testing": "14.227.0",
|
31
|
+
"@genesislcap/genx": "14.227.0",
|
32
|
+
"@genesislcap/rollup-builder": "14.227.0",
|
33
|
+
"@genesislcap/ts-builder": "14.227.0",
|
34
|
+
"@genesislcap/uvu-playwright-builder": "14.227.0",
|
35
|
+
"@genesislcap/vite-builder": "14.227.0",
|
36
|
+
"@genesislcap/webpack-builder": "14.227.0",
|
37
37
|
"rimraf": "^5.0.0"
|
38
38
|
},
|
39
39
|
"dependencies": {
|
40
|
-
"@genesislcap/foundation-logger": "14.
|
40
|
+
"@genesislcap/foundation-logger": "14.227.0",
|
41
41
|
"@microsoft/fast-components": "2.30.6",
|
42
42
|
"@microsoft/fast-element": "1.14.0",
|
43
43
|
"@microsoft/fast-foundation": "2.49.6",
|
@@ -55,5 +55,5 @@
|
|
55
55
|
"access": "public"
|
56
56
|
},
|
57
57
|
"customElements": "dist/custom-elements.json",
|
58
|
-
"gitHead": "
|
58
|
+
"gitHead": "6f1749b0cb8e0093efe528bc44a34eeb0697f458"
|
59
59
|
}
|