@griddo/cx 10.4.30 → 10.4.32
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/build/errors/errors-data.d.ts +13 -0
- package/build/errors/index.d.ts +13 -1
- package/build/index.js +36 -34
- package/build/react/GriddoIntegrations/index.d.ts +8 -0
- package/build/react/index.js +3 -3
- package/build/run-start-render.js +33 -31
- package/build/start-render.js +33 -31
- package/exporter/adapters/gatsby/index.ts +8 -9
- package/exporter/adapters/gatsby/utils.ts +6 -3
- package/exporter/errors/errors-data.ts +42 -0
- package/exporter/errors/index.ts +31 -2
- package/exporter/react/GriddoIntegrations/index.tsx +18 -3
- package/exporter/services/distributors.ts +11 -5
- package/exporter/services/store.ts +2 -2
- package/exporter/start-render.ts +0 -1
- package/exporter/utils/folders.ts +1 -0
- package/exporter/utils/integrations.ts +7 -1
- package/package.json +3 -3
- package/src/components/Head.tsx +3 -5
- package/build/utils/messages.d.ts +0 -2
- package/exporter/utils/messages.ts +0 -53
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do you want to add a new error to the list?
|
|
3
|
+
*
|
|
4
|
+
* 1 - Add the new error type name to the `ErrorsType` union type.
|
|
5
|
+
* 2 - Export a new ErrorData object in this file by completing
|
|
6
|
+
* the `error` and `message` properties obligatorily.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
import { ErrorData } from ".";
|
|
10
|
+
export type ErrorsType = "NoDomainsFoundError" | "RenderUUIDError" | "DistributorSourcesNotFoundError";
|
|
11
|
+
export declare const NoDomainsFoundError: ErrorData;
|
|
12
|
+
export declare const RenderUUIDError: ErrorData;
|
|
13
|
+
export declare const DistributorSourcesNotFoundError: ErrorData;
|
package/build/errors/index.d.ts
CHANGED
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ErrorsType } from "./errors-data";
|
|
2
|
+
export type ErrorData = {
|
|
3
|
+
id: number;
|
|
4
|
+
error: ErrorsType;
|
|
5
|
+
message: string;
|
|
6
|
+
expected?: string;
|
|
7
|
+
hint?: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Throws an error with the provided error message, expected value, and hint.
|
|
11
|
+
*/
|
|
12
|
+
declare function throwError({ error, message, expected, hint }: ErrorData): void;
|
|
13
|
+
export { throwError };
|