@cuby-ui/core 0.0.479 → 0.0.481
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/esm2022/index.mjs +2 -1
- package/esm2022/interceptors/error-handler.interceptor.mjs +6 -2
- package/esm2022/interfaces/error-notification-service.mjs +2 -0
- package/esm2022/interfaces/error-stategy.mjs +2 -0
- package/esm2022/interfaces/index.mjs +3 -1
- package/esm2022/operators/handle-error.mjs +12 -0
- package/esm2022/operators/index.mjs +2 -0
- package/esm2022/providers/error-handler.options.mjs +2 -0
- package/esm2022/providers/error-handler.provider.mjs +23 -0
- package/esm2022/providers/index.mjs +2 -1
- package/esm2022/services/error-resolver-factory.service.mjs +75 -0
- package/esm2022/services/global-handler-error.service.mjs +26 -0
- package/esm2022/services/index.mjs +2 -1
- package/esm2022/tokens/error-notification-service.mjs +15 -0
- package/esm2022/tokens/error-translation-prefix.mjs +6 -0
- package/esm2022/tokens/index.mjs +3 -1
- package/esm2022/widgets/ui/index.mjs +2 -1
- package/fesm2022/cuby-ui-core.mjs +150 -6
- package/fesm2022/cuby-ui-core.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/interfaces/error-notification-service.d.ts +3 -0
- package/interfaces/error-stategy.d.ts +3 -0
- package/interfaces/index.d.ts +2 -0
- package/operators/handle-error.d.ts +2 -0
- package/operators/index.d.ts +1 -0
- package/package.json +4 -4
- package/providers/error-handler.options.d.ts +6 -0
- package/providers/error-handler.provider.d.ts +3 -0
- package/providers/index.d.ts +2 -0
- package/services/error-resolver-factory.service.d.ts +10 -0
- package/services/global-handler-error.service.d.ts +10 -0
- package/services/index.d.ts +1 -0
- package/tokens/error-notification-service.d.ts +3 -0
- package/tokens/error-translation-prefix.d.ts +2 -0
- package/tokens/index.d.ts +2 -0
- package/widgets/ui/index.d.ts +1 -0
package/index.d.ts
CHANGED
package/interfaces/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { handleError } from './handle-error';
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cuby-ui/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.481",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": ">=18.0.0",
|
|
6
6
|
"@angular/core": ">=18.0.0",
|
|
7
7
|
"@angular/elements": ">=18.0.0",
|
|
8
8
|
"@angular/forms": ">=18.0.0",
|
|
9
|
-
"@cuby-ui/api": "^0.0.
|
|
10
|
-
"@cuby-ui/cdk": "^0.0.
|
|
11
|
-
"@cuby-ui/icons": "^0.0.
|
|
9
|
+
"@cuby-ui/api": "^0.0.481",
|
|
10
|
+
"@cuby-ui/cdk": "^0.0.481",
|
|
11
|
+
"@cuby-ui/icons": "^0.0.481",
|
|
12
12
|
"@editorjs/editorjs": "2.29.1",
|
|
13
13
|
"@editorjs/header": "^2.8.1",
|
|
14
14
|
"@editorjs/list": "^1.9.0",
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Type } from '@angular/core';
|
|
2
|
+
import type { CuiErrorNotificationService } from '../interfaces/error-notification-service';
|
|
3
|
+
export interface CuiErrorHandlerProviderConfig {
|
|
4
|
+
readonly errorNotificationService?: Type<CuiErrorNotificationService>;
|
|
5
|
+
readonly translationPrefix?: string;
|
|
6
|
+
}
|
package/providers/index.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export { CuiAuthConfig, CuiAuthPlatform, CuiAuthService } from './auth.options';
|
|
2
2
|
export { provideCuiAuth } from './auth.provider';
|
|
3
|
+
export { CuiErrorHandlerProviderConfig } from './error-handler.options';
|
|
4
|
+
export { provideCuiErrorHandler } from './error-handler.provider';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ErrorStrategy } from '../interfaces';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CuiErrorResolverFactory {
|
|
4
|
+
private readonly nullErrorStrategy;
|
|
5
|
+
private readonly httpErrorStrategy;
|
|
6
|
+
private readonly defaultErrorStrategy;
|
|
7
|
+
getErrorStrategy(error: unknown): ErrorStrategy;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CuiErrorResolverFactory, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CuiErrorResolverFactory>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ErrorHandler } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CuiGlobalErrorHandler implements ErrorHandler {
|
|
4
|
+
private readonly errorNotificationService;
|
|
5
|
+
private readonly cuiErrorResolverFactory;
|
|
6
|
+
handleError(error: unknown): void;
|
|
7
|
+
private getErrorMessage;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CuiGlobalErrorHandler, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CuiGlobalErrorHandler>;
|
|
10
|
+
}
|
package/services/index.d.ts
CHANGED
package/tokens/index.d.ts
CHANGED
package/widgets/ui/index.d.ts
CHANGED