@rxap/config 19.3.0 → 21.0.1-dev.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 +38 -0
- package/compodoc/changelog.html +36 -0
- package/compodoc/dependencies.html +6 -6
- package/compodoc/injectables/ConfigLoaderService.html +10 -77
- package/compodoc/injectables/ConfigService.html +38 -42
- package/compodoc/interfaces/ConfigLoadOptions.html +2 -6
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +904 -950
- package/docs/html/assets/hierarchy.js +1 -1
- package/docs/html/assets/search.js +1 -1
- package/docs/html/classes/ConfigLoaderService.html +2 -2
- package/docs/html/classes/ConfigService.html +7 -7
- package/docs/html/classes/ConfigTestingService.html +2 -2
- package/docs/html/enums/ConfigLoadMethod.html +2 -2
- package/docs/html/enums/ConfigLoadingStrategy.html +2 -2
- package/docs/html/functions/ProvideConfig.html +1 -1
- package/docs/html/functions/defaultConfigLoadErrorHandler.html +2 -2
- package/docs/html/functions/dnsLookup.html +1 -1
- package/docs/html/functions/dnsResolver.html +1 -1
- package/docs/html/functions/fetchCidContent.html +1 -1
- package/docs/html/functions/fetchCidContentAsJson.html +1 -1
- package/docs/html/functions/fetchCidContentViaHttp.html +1 -1
- package/docs/html/functions/fetchContentViaHttp.html +1 -1
- package/docs/html/functions/localPathIpfsGateway.html +1 -1
- package/docs/html/functions/localSubDomainIpfsGateway.html +1 -1
- package/docs/html/functions/raceSuccess.html +2 -2
- package/docs/html/functions/showConfigLoadError.html +2 -2
- package/docs/html/functions/storachaIpfsGateway.html +1 -1
- package/docs/html/functions/w3sIpfsGateway.html +1 -1
- package/docs/html/hierarchy.html +1 -1
- package/docs/html/index.html +2 -2
- package/docs/html/interfaces/AppsNavigationConfig.html +2 -2
- package/docs/html/interfaces/Config.html +2 -2
- package/docs/html/interfaces/ConfigLoadError.html +4 -4
- package/docs/html/interfaces/ConfigLoadOptions.html +8 -8
- package/docs/html/interfaces/LogoConfig.html +2 -2
- package/docs/html/interfaces/NavigationConfig.html +2 -2
- package/docs/html/interfaces/Oauth2Config.html +2 -2
- package/docs/html/interfaces/i18nConfig.html +2 -2
- package/docs/html/modules.html +1 -1
- package/docs/html/types/AnySchema.html +1 -1
- package/docs/html/types/ConfigLoadErrorHandler.html +2 -2
- package/docs/html/types/ConfigLoadErrorKind.html +2 -2
- package/docs/html/types/ConfigRequestOptions.html +1 -1
- package/docs/html/types/IpfsGatewayFunction.html +1 -1
- package/docs/html/types/Join.html +1 -1
- package/docs/html/types/LanguagesConfig.html +1 -1
- package/docs/html/types/Leaves.html +1 -1
- package/docs/html/types/NoInferType.html +1 -1
- package/docs/html/types/Paths.html +1 -1
- package/docs/html/variables/RXAP_CONFIG.html +1 -1
- package/docs/html/variables/defaultDnsServers.html +1 -1
- package/docs/html/variables/defaultIpfsGatewayServers.html +1 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/ConfigLoaderService.md +7 -15
- package/docs/markdown/classes/ConfigService.md +23 -23
- package/docs/markdown/classes/ConfigTestingService.md +8 -8
- package/docs/markdown/enumerations/ConfigLoadMethod.md +6 -6
- package/docs/markdown/enumerations/ConfigLoadingStrategy.md +4 -4
- package/docs/markdown/functions/ProvideConfig.md +2 -2
- package/docs/markdown/functions/defaultConfigLoadErrorHandler.md +2 -2
- package/docs/markdown/functions/dnsLookup.md +2 -2
- package/docs/markdown/functions/dnsResolver.md +2 -2
- package/docs/markdown/functions/fetchCidContent.md +2 -2
- package/docs/markdown/functions/fetchCidContentAsJson.md +2 -2
- package/docs/markdown/functions/fetchCidContentViaHttp.md +2 -2
- package/docs/markdown/functions/fetchContentViaHttp.md +2 -2
- package/docs/markdown/functions/localPathIpfsGateway.md +2 -2
- package/docs/markdown/functions/localSubDomainIpfsGateway.md +2 -2
- package/docs/markdown/functions/raceSuccess.md +2 -2
- package/docs/markdown/functions/showConfigLoadError.md +2 -2
- package/docs/markdown/functions/storachaIpfsGateway.md +2 -2
- package/docs/markdown/functions/w3sIpfsGateway.md +2 -2
- package/docs/markdown/globals.md +2 -2
- package/docs/markdown/interfaces/AppsNavigationConfig.md +12 -12
- package/docs/markdown/interfaces/Config.md +6 -6
- package/docs/markdown/interfaces/ConfigLoadError.md +9 -9
- package/docs/markdown/interfaces/ConfigLoadOptions.md +17 -17
- package/docs/markdown/interfaces/LogoConfig.md +5 -5
- package/docs/markdown/interfaces/NavigationConfig.md +9 -9
- package/docs/markdown/interfaces/Oauth2Config.md +3 -3
- package/docs/markdown/interfaces/i18nConfig.md +4 -4
- package/docs/markdown/type-aliases/AnySchema.md +2 -2
- package/docs/markdown/type-aliases/ConfigLoadErrorHandler.md +2 -2
- package/docs/markdown/type-aliases/ConfigLoadErrorKind.md +2 -2
- package/docs/markdown/type-aliases/ConfigRequestOptions.md +2 -2
- package/docs/markdown/type-aliases/IpfsGatewayFunction.md +2 -2
- package/docs/markdown/type-aliases/Join.md +2 -2
- package/docs/markdown/type-aliases/LanguagesConfig.md +2 -2
- package/docs/markdown/type-aliases/Leaves.md +2 -2
- package/docs/markdown/type-aliases/NoInferType.md +2 -2
- package/docs/markdown/type-aliases/Paths.md +2 -2
- package/docs/markdown/variables/RXAP_CONFIG.md +2 -2
- package/docs/markdown/variables/defaultDnsServers.md +2 -2
- package/docs/markdown/variables/defaultIpfsGatewayServers.md +2 -2
- package/docs/wiki/Class.ConfigLoaderService.md +6 -14
- package/docs/wiki/Class.ConfigService.md +22 -22
- package/docs/wiki/Class.ConfigTestingService.md +7 -7
- package/docs/wiki/Enumeration.ConfigLoadMethod.md +5 -5
- package/docs/wiki/Enumeration.ConfigLoadingStrategy.md +3 -3
- package/docs/wiki/Function.ProvideConfig.md +1 -1
- package/docs/wiki/Function.defaultConfigLoadErrorHandler.md +1 -1
- package/docs/wiki/Function.dnsLookup.md +1 -1
- package/docs/wiki/Function.dnsResolver.md +1 -1
- package/docs/wiki/Function.fetchCidContent.md +1 -1
- package/docs/wiki/Function.fetchCidContentAsJson.md +1 -1
- package/docs/wiki/Function.fetchCidContentViaHttp.md +1 -1
- package/docs/wiki/Function.fetchContentViaHttp.md +1 -1
- package/docs/wiki/Function.localPathIpfsGateway.md +1 -1
- package/docs/wiki/Function.localSubDomainIpfsGateway.md +1 -1
- package/docs/wiki/Function.raceSuccess.md +1 -1
- package/docs/wiki/Function.showConfigLoadError.md +1 -1
- package/docs/wiki/Function.storachaIpfsGateway.md +1 -1
- package/docs/wiki/Function.w3sIpfsGateway.md +1 -1
- package/docs/wiki/Interface.AppsNavigationConfig.md +11 -11
- package/docs/wiki/Interface.Config.md +5 -5
- package/docs/wiki/Interface.ConfigLoadError.md +8 -8
- package/docs/wiki/Interface.ConfigLoadOptions.md +16 -16
- package/docs/wiki/Interface.LogoConfig.md +4 -4
- package/docs/wiki/Interface.NavigationConfig.md +8 -8
- package/docs/wiki/Interface.Oauth2Config.md +2 -2
- package/docs/wiki/Interface.i18nConfig.md +3 -3
- package/docs/wiki/TypeAlias.AnySchema.md +1 -1
- package/docs/wiki/TypeAlias.ConfigLoadErrorHandler.md +1 -1
- package/docs/wiki/TypeAlias.ConfigLoadErrorKind.md +1 -1
- package/docs/wiki/TypeAlias.ConfigRequestOptions.md +1 -1
- package/docs/wiki/TypeAlias.IpfsGatewayFunction.md +1 -1
- package/docs/wiki/TypeAlias.Join.md +1 -1
- package/docs/wiki/TypeAlias.LanguagesConfig.md +1 -1
- package/docs/wiki/TypeAlias.Leaves.md +1 -1
- package/docs/wiki/TypeAlias.NoInferType.md +1 -1
- package/docs/wiki/TypeAlias.Paths.md +1 -1
- package/docs/wiki/Variable.RXAP_CONFIG.md +1 -1
- package/docs/wiki/Variable.defaultDnsServers.md +1 -1
- package/docs/wiki/Variable.defaultIpfsGatewayServers.md +1 -1
- package/docs/wiki/globals.md +1 -1
- package/fesm2022/rxap-config.mjs +19 -22
- package/fesm2022/rxap-config.mjs.map +1 -1
- package/package.json +15 -14
- package/types/rxap-config.d.ts +297 -0
- package/index.d.ts +0 -9
- package/lib/config-load-error.d.ts +0 -41
- package/lib/config-loader.service.d.ts +0 -12
- package/lib/config-testing-service.d.ts +0 -12
- package/lib/config.d.ts +0 -41
- package/lib/config.service.d.ts +0 -129
- package/lib/provide-config.d.ts +0 -4
- package/lib/tokens.d.ts +0 -2
- package/lib/types.d.ts +0 -34
- package/lib/utilities.d.ts +0 -19
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Interface: LogoConfig
|
|
4
4
|
|
|
5
|
-
Defined in: [config.ts:16](https://gitlab.com/rxap/packages/-/blob/
|
|
5
|
+
Defined in: [config.ts:16](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/config/src/lib/config.ts#L16)
|
|
6
6
|
|
|
7
7
|
## Properties
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ Defined in: [config.ts:16](https://gitlab.com/rxap/packages/-/blob/3648307d22f6f
|
|
|
10
10
|
|
|
11
11
|
> `optional` **height**: `number`
|
|
12
12
|
|
|
13
|
-
Defined in: [config.ts:19](https://gitlab.com/rxap/packages/-/blob/
|
|
13
|
+
Defined in: [config.ts:19](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/config/src/lib/config.ts#L19)
|
|
14
14
|
|
|
15
15
|
***
|
|
16
16
|
|
|
@@ -18,7 +18,7 @@ Defined in: [config.ts:19](https://gitlab.com/rxap/packages/-/blob/3648307d22f6f
|
|
|
18
18
|
|
|
19
19
|
> `optional` **src**: `string`
|
|
20
20
|
|
|
21
|
-
Defined in: [config.ts:17](https://gitlab.com/rxap/packages/-/blob/
|
|
21
|
+
Defined in: [config.ts:17](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/config/src/lib/config.ts#L17)
|
|
22
22
|
|
|
23
23
|
***
|
|
24
24
|
|
|
@@ -26,4 +26,4 @@ Defined in: [config.ts:17](https://gitlab.com/rxap/packages/-/blob/3648307d22f6f
|
|
|
26
26
|
|
|
27
27
|
> `optional` **width**: `number`
|
|
28
28
|
|
|
29
|
-
Defined in: [config.ts:18](https://gitlab.com/rxap/packages/-/blob/
|
|
29
|
+
Defined in: [config.ts:18](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/config/src/lib/config.ts#L18)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Interface: NavigationConfig
|
|
4
4
|
|
|
5
|
-
Defined in: [config.ts:22](https://gitlab.com/rxap/packages/-/blob/
|
|
5
|
+
Defined in: [config.ts:22](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/config/src/lib/config.ts#L22)
|
|
6
6
|
|
|
7
7
|
## Properties
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ Defined in: [config.ts:22](https://gitlab.com/rxap/packages/-/blob/3648307d22f6f
|
|
|
10
10
|
|
|
11
11
|
> `optional` **apps**: [`AppsNavigationConfig`](../wiki/Interface.AppsNavigationConfig)[]
|
|
12
12
|
|
|
13
|
-
Defined in: [config.ts:23](https://gitlab.com/rxap/packages/-/blob/
|
|
13
|
+
Defined in: [config.ts:23](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/config/src/lib/config.ts#L23)
|
|
14
14
|
|
|
15
15
|
***
|
|
16
16
|
|
|
@@ -18,7 +18,7 @@ Defined in: [config.ts:23](https://gitlab.com/rxap/packages/-/blob/3648307d22f6f
|
|
|
18
18
|
|
|
19
19
|
> `optional` **collapsable**: `boolean`
|
|
20
20
|
|
|
21
|
-
Defined in: [config.ts:24](https://gitlab.com/rxap/packages/-/blob/
|
|
21
|
+
Defined in: [config.ts:24](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/config/src/lib/config.ts#L24)
|
|
22
22
|
|
|
23
23
|
***
|
|
24
24
|
|
|
@@ -26,7 +26,7 @@ Defined in: [config.ts:24](https://gitlab.com/rxap/packages/-/blob/3648307d22f6f
|
|
|
26
26
|
|
|
27
27
|
> `optional` **fixedInViewport**: `boolean`
|
|
28
28
|
|
|
29
|
-
Defined in: [config.ts:28](https://gitlab.com/rxap/packages/-/blob/
|
|
29
|
+
Defined in: [config.ts:28](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/config/src/lib/config.ts#L28)
|
|
30
30
|
|
|
31
31
|
***
|
|
32
32
|
|
|
@@ -34,7 +34,7 @@ Defined in: [config.ts:28](https://gitlab.com/rxap/packages/-/blob/3648307d22f6f
|
|
|
34
34
|
|
|
35
35
|
> `optional` **mobileQuery**: `string`
|
|
36
36
|
|
|
37
|
-
Defined in: [config.ts:29](https://gitlab.com/rxap/packages/-/blob/
|
|
37
|
+
Defined in: [config.ts:29](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/config/src/lib/config.ts#L29)
|
|
38
38
|
|
|
39
39
|
***
|
|
40
40
|
|
|
@@ -42,7 +42,7 @@ Defined in: [config.ts:29](https://gitlab.com/rxap/packages/-/blob/3648307d22f6f
|
|
|
42
42
|
|
|
43
43
|
> `optional` **mode**: `"side"` \| `"over"`
|
|
44
44
|
|
|
45
|
-
Defined in: [config.ts:26](https://gitlab.com/rxap/packages/-/blob/
|
|
45
|
+
Defined in: [config.ts:26](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/config/src/lib/config.ts#L26)
|
|
46
46
|
|
|
47
47
|
***
|
|
48
48
|
|
|
@@ -50,7 +50,7 @@ Defined in: [config.ts:26](https://gitlab.com/rxap/packages/-/blob/3648307d22f6f
|
|
|
50
50
|
|
|
51
51
|
> `optional` **opened**: `boolean`
|
|
52
52
|
|
|
53
|
-
Defined in: [config.ts:27](https://gitlab.com/rxap/packages/-/blob/
|
|
53
|
+
Defined in: [config.ts:27](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/config/src/lib/config.ts#L27)
|
|
54
54
|
|
|
55
55
|
***
|
|
56
56
|
|
|
@@ -58,4 +58,4 @@ Defined in: [config.ts:27](https://gitlab.com/rxap/packages/-/blob/3648307d22f6f
|
|
|
58
58
|
|
|
59
59
|
> `optional` **pinned**: `boolean`
|
|
60
60
|
|
|
61
|
-
Defined in: [config.ts:25](https://gitlab.com/rxap/packages/-/blob/
|
|
61
|
+
Defined in: [config.ts:25](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/config/src/lib/config.ts#L25)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Interface: Oauth2Config
|
|
4
4
|
|
|
5
|
-
Defined in: [config.ts:39](https://gitlab.com/rxap/packages/-/blob/
|
|
5
|
+
Defined in: [config.ts:39](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/config/src/lib/config.ts#L39)
|
|
6
6
|
|
|
7
7
|
## Properties
|
|
8
8
|
|
|
@@ -10,4 +10,4 @@ Defined in: [config.ts:39](https://gitlab.com/rxap/packages/-/blob/3648307d22f6f
|
|
|
10
10
|
|
|
11
11
|
> `optional` **profileUrl**: `string`
|
|
12
12
|
|
|
13
|
-
Defined in: [config.ts:40](https://gitlab.com/rxap/packages/-/blob/
|
|
13
|
+
Defined in: [config.ts:40](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/config/src/lib/config.ts#L40)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Interface: i18nConfig
|
|
4
4
|
|
|
5
|
-
Defined in: [config.ts:34](https://gitlab.com/rxap/packages/-/blob/
|
|
5
|
+
Defined in: [config.ts:34](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/config/src/lib/config.ts#L34)
|
|
6
6
|
|
|
7
7
|
## Properties
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ Defined in: [config.ts:34](https://gitlab.com/rxap/packages/-/blob/3648307d22f6f
|
|
|
10
10
|
|
|
11
11
|
> `optional` **defaultLanguage**: `string`
|
|
12
12
|
|
|
13
|
-
Defined in: [config.ts:36](https://gitlab.com/rxap/packages/-/blob/
|
|
13
|
+
Defined in: [config.ts:36](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/config/src/lib/config.ts#L36)
|
|
14
14
|
|
|
15
15
|
***
|
|
16
16
|
|
|
@@ -18,4 +18,4 @@ Defined in: [config.ts:36](https://gitlab.com/rxap/packages/-/blob/3648307d22f6f
|
|
|
18
18
|
|
|
19
19
|
> `optional` **languages**: [`LanguagesConfig`](../wiki/TypeAlias.LanguagesConfig)
|
|
20
20
|
|
|
21
|
-
Defined in: [config.ts:35](https://gitlab.com/rxap/packages/-/blob/
|
|
21
|
+
Defined in: [config.ts:35](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/config/src/lib/config.ts#L35)
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **AnySchema**: `object`
|
|
6
6
|
|
|
7
|
-
Defined in: [config.service.ts:
|
|
7
|
+
Defined in: [config.service.ts:23](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/config/src/lib/config.service.ts#L23)
|
|
8
8
|
|
|
9
9
|
## Type declaration
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **ConfigLoadErrorHandler**: (`error`) => `void` \| `Promise`\<`void`\>
|
|
6
6
|
|
|
7
|
-
Defined in: [config-load-error.ts:37](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [config-load-error.ts:37](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/config/src/lib/config-load-error.ts#L37)
|
|
8
8
|
|
|
9
9
|
Called for every failed config url request. May never resolve, e.g. if it navigates away.
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **ConfigLoadErrorKind**: `"network"` \| `"redirect"` \| `"http"` \| `"parse"` \| `"schema"`
|
|
6
6
|
|
|
7
|
-
Defined in: [config-load-error.ts:10](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [config-load-error.ts:10](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/config/src/lib/config-load-error.ts#L10)
|
|
8
8
|
|
|
9
9
|
The kind of failure that happened while loading a config url.
|
|
10
10
|
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> **ConfigRequestOptions**: `Pick`\<[`ConfigLoadOptions`](../wiki/Interface.ConfigLoadOptions), `"errorHandler"` \| `"requestInit"`\>
|
|
6
6
|
|
|
7
|
-
Defined in: [config.service.ts:
|
|
7
|
+
Defined in: [config.service.ts:83](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/config/src/lib/config.service.ts#L83)
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **IpfsGatewayFunction**: (`cid`) => `string`
|
|
6
6
|
|
|
7
|
-
Defined in: [utilities.ts:
|
|
7
|
+
Defined in: [utilities.ts:126](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/config/src/lib/utilities.ts#L126)
|
|
8
8
|
|
|
9
9
|
## Parameters
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **Join**\<`K`, `P`\>: `K` *extends* `string` \| `number` ? `P` *extends* `string` \| `number` ? `` `${K}${"" extends P ? "" : "."}${P}` `` : `never` : `never`
|
|
6
6
|
|
|
7
|
-
Defined in: [types.ts:8](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [types.ts:8](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/config/src/lib/types.ts#L8)
|
|
8
8
|
|
|
9
9
|
## Type Parameters
|
|
10
10
|
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> **LanguagesConfig**: `Record`\<`string`, `string`\>
|
|
6
6
|
|
|
7
|
-
Defined in: [config.ts:32](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [config.ts:32](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/config/src/lib/config.ts#L32)
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **Leaves**\<`T`, `D`\>: \[`D`\] *extends* \[`never`\] ? `never` : `T` *extends* `object` ? `{ [K in keyof T]-?: Join<K, Leaves<T[K], Prev[D]>> }`\[keyof `T`\] : `""`
|
|
6
6
|
|
|
7
|
-
Defined in: [types.ts:20](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [types.ts:20](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/config/src/lib/types.ts#L20)
|
|
8
8
|
|
|
9
9
|
## Type Parameters
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **NoInferType**\<`T`\>: \[`T`\]\[`T` *extends* `any` ? `0` : `never`\]
|
|
6
6
|
|
|
7
|
-
Defined in: [types.ts:1](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [types.ts:1](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/config/src/lib/types.ts#L1)
|
|
8
8
|
|
|
9
9
|
## Type Parameters
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **Paths**\<`T`, `D`\>: \[`D`\] *extends* \[`never`\] ? `never` : `T` *extends* `object` ? \{ \[K in keyof T\]-?: K extends string \| number ? \`$\{K\}\` \| Join\<K, Paths\<T\[K\], Prev\[D\]\>\> : never \}\[keyof `T`\] : `""`
|
|
6
6
|
|
|
7
|
-
Defined in: [types.ts:13](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [types.ts:13](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/config/src/lib/types.ts#L13)
|
|
8
8
|
|
|
9
9
|
## Type Parameters
|
|
10
10
|
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **RXAP\_CONFIG**: `InjectionToken`\<`unknown`\>
|
|
6
6
|
|
|
7
|
-
Defined in: [tokens.ts:3](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [tokens.ts:3](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/config/src/lib/tokens.ts#L3)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **defaultDnsServers**: `string`[]
|
|
6
6
|
|
|
7
|
-
Defined in: [utilities.ts:62](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [utilities.ts:62](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/config/src/lib/utilities.ts#L62)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **defaultIpfsGatewayServers**: [`IpfsGatewayFunction`](../wiki/TypeAlias.IpfsGatewayFunction)[]
|
|
6
6
|
|
|
7
|
-
Defined in: [utilities.ts:
|
|
7
|
+
Defined in: [utilities.ts:133](https://gitlab.com/rxap/packages/-/blob/be7e221de2deba638078b6c685a94021679a1a5b/packages/angular/config/src/lib/utilities.ts#L133)
|
package/docs/wiki/globals.md
CHANGED
package/fesm2022/rxap-config.mjs
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { inject, Injectable, InjectionToken, Optional, Inject } from '@angular/core';
|
|
3
3
|
import { firstValueFrom, Observable, catchError, EMPTY, race, ReplaySubject } from 'rxjs';
|
|
4
|
-
import * as i1 from '@angular/common/http';
|
|
5
4
|
import { HttpClient } from '@angular/common/http';
|
|
6
|
-
import { finalize, share } from 'rxjs/operators';
|
|
5
|
+
import { tap, finalize, share } from 'rxjs/operators';
|
|
7
6
|
import { SetToObject, getFromObject, JoinPath, deepMerge, coerceArray, CoercePrefix, SetObjectValue } from '@rxap/utilities';
|
|
8
7
|
import { log } from '@rxap/rxjs';
|
|
9
8
|
|
|
@@ -51,8 +50,8 @@ function showConfigLoadError(message) {
|
|
|
51
50
|
}
|
|
52
51
|
|
|
53
52
|
class ConfigLoaderService {
|
|
54
|
-
constructor(
|
|
55
|
-
this.http =
|
|
53
|
+
constructor() {
|
|
54
|
+
this.http = inject(HttpClient);
|
|
56
55
|
this.configs = new Map();
|
|
57
56
|
this.configLoading = new Map();
|
|
58
57
|
}
|
|
@@ -61,22 +60,19 @@ class ConfigLoaderService {
|
|
|
61
60
|
return this.configs.get(url);
|
|
62
61
|
}
|
|
63
62
|
if (this.configLoading.has(url)) {
|
|
64
|
-
return this.configLoading.get(url)
|
|
63
|
+
return firstValueFrom(this.configLoading.get(url));
|
|
65
64
|
}
|
|
66
|
-
const loading$ = this.http.get(url).pipe(finalize(() => this.configLoading.delete(url)), share());
|
|
65
|
+
const loading$ = this.http.get(url).pipe(tap(config => this.configs.set(url, config)), finalize(() => this.configLoading.delete(url)), share());
|
|
67
66
|
this.configLoading.set(url, loading$);
|
|
68
67
|
return firstValueFrom(loading$);
|
|
69
68
|
}
|
|
70
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
71
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
69
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ConfigLoaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
70
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ConfigLoaderService, providedIn: 'root' }); }
|
|
72
71
|
}
|
|
73
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
72
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ConfigLoaderService, decorators: [{
|
|
74
73
|
type: Injectable,
|
|
75
74
|
args: [{ providedIn: 'root' }]
|
|
76
|
-
}]
|
|
77
|
-
type: Inject,
|
|
78
|
-
args: [HttpClient]
|
|
79
|
-
}] }] });
|
|
75
|
+
}] });
|
|
80
76
|
|
|
81
77
|
class ConfigTestingService {
|
|
82
78
|
constructor() {
|
|
@@ -101,10 +97,10 @@ class ConfigTestingService {
|
|
|
101
97
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
102
98
|
setLocalConfig(config) {
|
|
103
99
|
}
|
|
104
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
105
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
100
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ConfigTestingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
101
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ConfigTestingService }); }
|
|
106
102
|
}
|
|
107
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
103
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ConfigTestingService, decorators: [{
|
|
108
104
|
type: Injectable
|
|
109
105
|
}] });
|
|
110
106
|
|
|
@@ -177,7 +173,7 @@ async function dnsLookup(name, type, dnsServers = defaultDnsServers) {
|
|
|
177
173
|
function fetchContentViaHttp(url) {
|
|
178
174
|
return new Observable((subscriber) => {
|
|
179
175
|
let controller = new AbortController(); // For cancellation
|
|
180
|
-
fetch(url)
|
|
176
|
+
fetch(url, { signal: controller.signal })
|
|
181
177
|
.then(response => {
|
|
182
178
|
if (!response.ok) {
|
|
183
179
|
// Don't complete here, let catchError handle it
|
|
@@ -194,6 +190,7 @@ function fetchContentViaHttp(url) {
|
|
|
194
190
|
.catch(error => {
|
|
195
191
|
if (error.name !== 'AbortError' && !subscriber.closed) {
|
|
196
192
|
console.warn(`Fetch error for ${url}:`, error);
|
|
193
|
+
subscriber.error(error);
|
|
197
194
|
}
|
|
198
195
|
});
|
|
199
196
|
// Cleanup function for when the observable is unsubscribed
|
|
@@ -649,7 +646,7 @@ class ConfigService {
|
|
|
649
646
|
const queryString = window.location.search;
|
|
650
647
|
const urlParams = new URLSearchParams(queryString);
|
|
651
648
|
const configFromParams = {};
|
|
652
|
-
for (const configParam of urlParams.getAll(
|
|
649
|
+
for (const configParam of urlParams.getAll(param)) {
|
|
653
650
|
try {
|
|
654
651
|
const split = configParam.split(';');
|
|
655
652
|
if (split.length === 2) {
|
|
@@ -710,10 +707,10 @@ class ConfigService {
|
|
|
710
707
|
}
|
|
711
708
|
return value;
|
|
712
709
|
}
|
|
713
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
714
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
710
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ConfigService, deps: [{ token: RXAP_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
711
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ConfigService, providedIn: 'root' }); }
|
|
715
712
|
}
|
|
716
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
713
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ConfigService, decorators: [{
|
|
717
714
|
type: Injectable,
|
|
718
715
|
args: [{
|
|
719
716
|
providedIn: 'root',
|