@adgytec/adgytec-web-ui-components 0.0.20 → 0.0.21
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/dist/components/ComponentShapeSwitcher/ComponentShapeSwitcher.d.ts +3 -0
- package/dist/components/ComponentShapeSwitcher/types.d.ts +10 -0
- package/dist/components/ThemeSwitcher/ThemeSwitcher.d.ts +3 -0
- package/dist/components/ThemeSwitcher/types.d.ts +5 -0
- package/dist/components/VisualSettings/VisualSettings.d.ts +3 -0
- package/dist/components/VisualSettings/types.d.ts +3 -0
- package/dist/utils/apiError.d.ts +9 -0
- package/dist/utils/env.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ColorTheme } from '@adgytec/adgytec-web-ui-components';
|
|
2
|
+
export declare enum ComponentShapes {
|
|
3
|
+
sharp = "sharp",
|
|
4
|
+
round = "round"
|
|
5
|
+
}
|
|
6
|
+
export declare const ComponentShapeKey = "component-shape-preference";
|
|
7
|
+
export interface ComponentShapeSwitcherProps {
|
|
8
|
+
ui?: boolean;
|
|
9
|
+
theme?: ColorTheme;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface ApiErrorResponse {
|
|
2
|
+
message?: string;
|
|
3
|
+
fieldErrors?: Record<string, string | string[]>;
|
|
4
|
+
}
|
|
5
|
+
export declare class ApiError extends Error {
|
|
6
|
+
data: ApiErrorResponse;
|
|
7
|
+
response: Response;
|
|
8
|
+
constructor(response: Response, data: ApiErrorResponse);
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getEnvVar(key: string, defaultValue?: string): string;
|