@cuby-ui/core 0.0.529 → 0.0.531
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/editor/tools/combined-text-block.tool.mjs +9 -3
- package/esm2022/providers/error-handler.options.mjs +1 -1
- package/esm2022/providers/error-handler.provider.mjs +9 -3
- package/esm2022/services/global-handler-error.service.mjs +7 -2
- package/esm2022/tokens/index.mjs +2 -1
- package/esm2022/tokens/should-handle-error.mjs +3 -0
- package/esm2022/types/index.mjs +2 -1
- package/esm2022/types/should-handle-error.type.mjs +2 -0
- package/fesm2022/cuby-ui-core.mjs +22 -3
- package/fesm2022/cuby-ui-core.mjs.map +1 -1
- package/package.json +4 -4
- package/providers/error-handler.options.d.ts +2 -0
- package/providers/error-handler.provider.d.ts +1 -1
- package/services/global-handler-error.service.d.ts +1 -0
- package/tokens/index.d.ts +1 -0
- package/tokens/should-handle-error.d.ts +3 -0
- package/types/index.d.ts +1 -0
- package/types/should-handle-error.type.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cuby-ui/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.531",
|
|
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.531",
|
|
10
|
+
"@cuby-ui/cdk": "^0.0.531",
|
|
11
|
+
"@cuby-ui/icons": "^0.0.531",
|
|
12
12
|
"@editorjs/editorjs": "2.29.1",
|
|
13
13
|
"@editorjs/header": "^2.8.1",
|
|
14
14
|
"@editorjs/list": "^1.9.0",
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { Type } from '@angular/core';
|
|
2
2
|
import type { CuiErrorNotificationService } from '../interfaces/error-notification-service';
|
|
3
|
+
import type { ShouldHandleErrorPredicate } from '../types';
|
|
3
4
|
export interface CuiErrorHandlerProviderConfig {
|
|
4
5
|
readonly errorNotificationService?: Type<CuiErrorNotificationService>;
|
|
5
6
|
readonly translationPrefix?: string;
|
|
7
|
+
readonly shouldHandleError?: ShouldHandleErrorPredicate;
|
|
6
8
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type Provider } from '@angular/core';
|
|
2
2
|
import type { CuiErrorHandlerProviderConfig } from './error-handler.options';
|
|
3
|
-
export declare function provideCuiErrorHandler({ errorNotificationService, translationPrefix }?: CuiErrorHandlerProviderConfig): Provider[];
|
|
3
|
+
export declare function provideCuiErrorHandler({ errorNotificationService, shouldHandleError, translationPrefix }?: CuiErrorHandlerProviderConfig): Provider[];
|
|
@@ -3,6 +3,7 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class CuiGlobalErrorHandler implements ErrorHandler {
|
|
4
4
|
private readonly errorNotificationService;
|
|
5
5
|
private readonly cuiErrorResolverFactory;
|
|
6
|
+
private readonly shouldHandleError;
|
|
6
7
|
handleError(error: unknown): void;
|
|
7
8
|
private getErrorMessage;
|
|
8
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<CuiGlobalErrorHandler, never>;
|
package/tokens/index.d.ts
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ShouldHandleErrorPredicate = (error: unknown) => boolean;
|