@limetech/lime-elements 37.1.0-next.3 → 37.1.0-next.4

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.
@@ -28989,7 +28989,19 @@ const shouldChangeToUndefined = (value, schema) => {
28989
28989
  };
28990
28990
  const hasCustomComponent = (schema) => {
28991
28991
  var _a, _b;
28992
- return Boolean((_b = (_a = schema.lime) === null || _a === void 0 ? void 0 : _a.component) === null || _b === void 0 ? void 0 : _b.name);
28992
+ const name = (_b = (_a = schema.lime) === null || _a === void 0 ? void 0 : _a.component) === null || _b === void 0 ? void 0 : _b.name;
28993
+ if (!name) {
28994
+ return false;
28995
+ }
28996
+ try {
28997
+ verifyCustomComponentIsDefined(name);
28998
+ }
28999
+ catch (_c) {
29000
+ // eslint-disable-next-line no-console
29001
+ console.warn(`Custom component ${name} not defined`);
29002
+ return false;
29003
+ }
29004
+ return true;
28993
29005
  };
28994
29006
  const verifyCustomComponentIsDefined = (elementName) => {
28995
29007
  const supportsCustomElements = 'customElements' in window;