tutuca 0.12.1 → 0.13.1

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.
@@ -1155,7 +1155,7 @@ function getComponents3() {
1155
1155
  import { component as component8, html as html8 } from "tutuca";
1156
1156
 
1157
1157
  // src/components/tutuca/instance-inspector.js
1158
- import { component as component7, html as html7 } from "tutuca";
1158
+ import { COMPONENT, component as component7, html as html7 } from "tutuca";
1159
1159
 
1160
1160
  // src/components/tutuca/component-inspector.js
1161
1161
  import { component as component4, html as html4 } from "tutuca";
@@ -1831,7 +1831,7 @@ function getComponents6() {
1831
1831
  }
1832
1832
 
1833
1833
  // src/components/tutuca/instance-inspector.js
1834
- var isComponentInstance = (v) => v !== null && typeof v === "object" && typeof v?.constructor?.getMetaClass === "function";
1834
+ var isComponentInstance = (v) => v !== null && typeof v === "object" && v?.constructor?.[COMPONENT] !== void 0;
1835
1835
  var fieldsView = makeCompositeView({
1836
1836
  typeClass: "font-semibold",
1837
1837
  borderClass: "border-base-content/15"
@@ -2103,7 +2103,7 @@ function getComponents8() {
2103
2103
  async function buildInspectorViews(value, scope, { getTests = null, components = [], dev = null, name } = {}) {
2104
2104
  const comp = isComponentInstance(value) ? scope.getCompFor(value) : null;
2105
2105
  const out = {
2106
- instanceView: InstanceInspector.fromData(value, scope.getCompFor(value)),
2106
+ instanceView: InstanceInspector.fromData(value, comp),
2107
2107
  componentView: null,
2108
2108
  lintView: null,
2109
2109
  testView: null,