@myop/sdk 0.1.42 → 0.1.43

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.
@@ -1682,7 +1682,7 @@ var WebcomponentLoader = class extends BaseMyopLoader {
1682
1682
  };
1683
1683
 
1684
1684
  // version:myop-sdk-version
1685
- var myop_sdk_version_default = "0.1.42";
1685
+ var myop_sdk_version_default = "0.1.43";
1686
1686
 
1687
1687
  // src/host/loaders/HTMLComponentLoader.ts
1688
1688
  var seen2 = [];
@@ -1879,7 +1879,7 @@ var checkMyopOverride = async (componentConfig) => {
1879
1879
  }
1880
1880
  }
1881
1881
  }
1882
- } catch (e) {
1882
+ } finally {
1883
1883
  return null;
1884
1884
  }
1885
1885
  };
@@ -2080,7 +2080,7 @@ var HostSDK = class {
2080
2080
  });
2081
2081
  __publicField(this, "loaderHooks");
2082
2082
  __publicField(this, "loadComponent", async (componentConfig, container, options) => {
2083
- var _a, _b, _c, _d;
2083
+ var _a, _b, _c, _d, _e, _f;
2084
2084
  if (!container) {
2085
2085
  debugger;
2086
2086
  throw new Error("no container was found for this component");
@@ -2094,8 +2094,8 @@ var HostSDK = class {
2094
2094
  if (ref.component) {
2095
2095
  componentConfig = __spreadValues({}, componentConfig);
2096
2096
  componentConfig.instance = __spreadValues({}, componentConfig.instance);
2097
- const hooks = __spreadValues(__spreadValues({}, (_a = this.loaderHooks) != null ? _a : {}), (_b = options == null ? void 0 : options.hooks) != null ? _b : {});
2098
- let selectedSkin2 = await this.runSkinSelector(componentConfig, hooks);
2097
+ const hooks2 = __spreadValues(__spreadValues({}, (_a = this.loaderHooks) != null ? _a : {}), (_b = options == null ? void 0 : options.hooks) != null ? _b : {});
2098
+ let selectedSkin2 = await this.runSkinSelector(componentConfig, hooks2);
2099
2099
  if (!selectedSkin2) {
2100
2100
  throw new Error("runSkinSelector failed to choose skin, check the provided config");
2101
2101
  }
@@ -2118,11 +2118,12 @@ var HostSDK = class {
2118
2118
  }
2119
2119
  }
2120
2120
  container = container;
2121
- let selectedSkin = await this.runSkinSelector(componentConfig, options == null ? void 0 : options.hooks);
2121
+ const hooks = __spreadValues(__spreadValues({}, (_d = this.loaderHooks) != null ? _d : {}), (_e = options == null ? void 0 : options.hooks) != null ? _e : {});
2122
+ let selectedSkin = await this.runSkinSelector(componentConfig, hooks);
2122
2123
  if (!selectedSkin) {
2123
2124
  throw new Error("runSkinSelector failed to choose skin, check the provided config");
2124
2125
  }
2125
- if ((_d = options == null ? void 0 : options.hooks) == null ? void 0 : _d.afterSkinSelected) {
2126
+ if ((_f = options == null ? void 0 : options.hooks) == null ? void 0 : _f.afterSkinSelected) {
2126
2127
  selectedSkin = await options.hooks.afterSkinSelected(__spreadValues({}, selectedSkin));
2127
2128
  }
2128
2129
  const componentLoader = this.componentsLoaders.find((loader) => loader.type === selectedSkin.loader.type);