@syncbridge/common 0.9.1 → 0.9.3
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/constants.js
CHANGED
|
@@ -9,5 +9,5 @@ export declare namespace Component {
|
|
|
9
9
|
className?: string;
|
|
10
10
|
};
|
|
11
11
|
function UseVariables<T extends ComponentBase>(variablesClass?: Type): (target: T, propertyKey: "values") => void;
|
|
12
|
-
function UseComponent<T extends ComponentBase>(options
|
|
12
|
+
function UseComponent<T extends ComponentBase>(options?: _UseComponent.Options): (target: T, propertyKey: string | symbol) => void;
|
|
13
13
|
}
|
package/package.json
CHANGED
|
@@ -62,13 +62,9 @@ function _materializeComponents(stackExecutor, srcMetadata, profile) {
|
|
|
62
62
|
let materializedComponent;
|
|
63
63
|
const profileComponent = profile?.components?.[componentName];
|
|
64
64
|
if (!profileComponent) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
description: metadataComponent.description,
|
|
69
|
-
required: metadataComponent.required,
|
|
70
|
-
};
|
|
71
|
-
out[componentName] = materializedComponent;
|
|
65
|
+
if (metadataComponent.required)
|
|
66
|
+
throw new SbValidationError(`Component "${componentName}" should be configured`);
|
|
67
|
+
return;
|
|
72
68
|
}
|
|
73
69
|
else {
|
|
74
70
|
/** istanbul ignore next */
|