@pack/react 2.1.1 → 2.1.2
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.
|
@@ -14,7 +14,7 @@ export const PreviewToast = ({ isPreviewModeEnabled }) => {
|
|
|
14
14
|
},
|
|
15
15
|
});
|
|
16
16
|
if (!response.ok) {
|
|
17
|
-
throw new Error(`HTTP error! Status: ${response.status}`);
|
|
17
|
+
throw new Error(`ERR_RE_API_ERROR: HTTP error! Status: ${response.status} Doc: https://docs.packdigital.com/err/ERR_RE_API_ERROR`);
|
|
18
18
|
}
|
|
19
19
|
window.location.reload();
|
|
20
20
|
}
|
package/dist/register-section.js
CHANGED
|
@@ -2,7 +2,7 @@ import { SectionObjectSchema } from "@pack/types";
|
|
|
2
2
|
export const sectionMap = new Map();
|
|
3
3
|
export function registerSection(section, config) {
|
|
4
4
|
if (typeof section !== "function") {
|
|
5
|
-
throw new Error(`The section "${config.name}" is not a valid React component
|
|
5
|
+
throw new Error(`ERR_RE_RENDER_SECTION: The section "${config.name}" is not a valid React component. Doc: https://docs.packdigital.com/err/ERR_RE_RENDER_SECTION`);
|
|
6
6
|
}
|
|
7
7
|
if (!section.Schema) {
|
|
8
8
|
throw new Error(`The section "${config.name}" does not have a valid schema.`);
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "2.1.
|
|
1
|
+
export const VERSION = "2.1.2";
|