@blocklet/pages-kit 0.2.447 → 0.2.449

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.
@@ -83,7 +83,7 @@ export const customComponentStates = () => {
83
83
  instances: Object.assign({}, PRELOAD_COMPONENTS_STATE === null || PRELOAD_COMPONENTS_STATE === void 0 ? void 0 : PRELOAD_COMPONENTS_STATE.instances),
84
84
  },
85
85
  getComponent({ instanceId, componentId, locale }) {
86
- var _a, _b, _c;
86
+ var _a, _b, _c, _d;
87
87
  const { config: { supportedLocales }, components, instances, } = get().state;
88
88
  if (!(supportedLocales === null || supportedLocales === void 0 ? void 0 : supportedLocales.some((i) => i.locale === locale)))
89
89
  return null;
@@ -94,15 +94,15 @@ export const customComponentStates = () => {
94
94
  if (!Component)
95
95
  return null;
96
96
  if (!instanceId) {
97
- return { component, Component };
97
+ return { component, Component, componentProperties: (_a = components[componentId]) === null || _a === void 0 ? void 0 : _a.component.properties };
98
98
  }
99
99
  const instance = instances[instanceId];
100
100
  if (!instance)
101
101
  return null;
102
- const props = (_b = (_a = instance.locales) === null || _a === void 0 ? void 0 : _a[locale]) === null || _b === void 0 ? void 0 : _b.props;
102
+ const props = (_c = (_b = instance.locales) === null || _b === void 0 ? void 0 : _b[locale]) === null || _c === void 0 ? void 0 : _c.props;
103
103
  if (!props)
104
104
  return null;
105
- return { component, Component, props, componentProperties: (_c = components[componentId]) === null || _c === void 0 ? void 0 : _c.component.properties };
105
+ return { component, Component, props, componentProperties: (_d = components[componentId]) === null || _d === void 0 ? void 0 : _d.component.properties };
106
106
  },
107
107
  loadComponents(input) {
108
108
  return __awaiter(this, void 0, void 0, function* () {