@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.
@@ -115,7 +115,7 @@ const customComponentStates = () => {
115
115
  instances: Object.assign({}, PRELOAD_COMPONENTS_STATE === null || PRELOAD_COMPONENTS_STATE === void 0 ? void 0 : PRELOAD_COMPONENTS_STATE.instances),
116
116
  },
117
117
  getComponent({ instanceId, componentId, locale }) {
118
- var _a, _b, _c;
118
+ var _a, _b, _c, _d;
119
119
  const { config: { supportedLocales }, components, instances, } = get().state;
120
120
  if (!(supportedLocales === null || supportedLocales === void 0 ? void 0 : supportedLocales.some((i) => i.locale === locale)))
121
121
  return null;
@@ -126,15 +126,15 @@ const customComponentStates = () => {
126
126
  if (!Component)
127
127
  return null;
128
128
  if (!instanceId) {
129
- return { component, Component };
129
+ return { component, Component, componentProperties: (_a = components[componentId]) === null || _a === void 0 ? void 0 : _a.component.properties };
130
130
  }
131
131
  const instance = instances[instanceId];
132
132
  if (!instance)
133
133
  return null;
134
- const props = (_b = (_a = instance.locales) === null || _a === void 0 ? void 0 : _a[locale]) === null || _b === void 0 ? void 0 : _b.props;
134
+ const props = (_c = (_b = instance.locales) === null || _b === void 0 ? void 0 : _b[locale]) === null || _c === void 0 ? void 0 : _c.props;
135
135
  if (!props)
136
136
  return null;
137
- return { component, Component, props, componentProperties: (_c = components[componentId]) === null || _c === void 0 ? void 0 : _c.component.properties };
137
+ return { component, Component, props, componentProperties: (_d = components[componentId]) === null || _d === void 0 ? void 0 : _d.component.properties };
138
138
  },
139
139
  loadComponents(input) {
140
140
  return __awaiter(this, void 0, void 0, function* () {