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.
- package/dist/tutuca-cli.js +601 -475
- package/dist/tutuca-components.js +3 -3
- package/dist/tutuca-dev.ext.js +563 -491
- package/dist/tutuca-dev.js +564 -492
- package/dist/tutuca-dev.min.js +4 -4
- package/dist/tutuca-extra.ext.js +470 -410
- package/dist/tutuca-extra.js +470 -410
- package/dist/tutuca-extra.min.js +3 -3
- package/dist/tutuca-storybook.js +4 -4
- package/dist/tutuca.ext.js +470 -410
- package/dist/tutuca.js +470 -410
- package/dist/tutuca.min.js +3 -3
- package/package.json +1 -1
- package/skill/tutuca/advanced.md +56 -7
- package/skill/tutuca/core.md +25 -15
- package/skill/tutuca/messages-and-intents.md +17 -0
- package/skill/tutuca/patterns/edit-through-a-dynamic-target.md +1 -1
- package/skill/tutuca/patterns/handle-events.md +3 -2
- package/skill/tutuca/patterns/share-state-across-the-tree.md +1 -1
- package/skill/tutuca/semantics.md +4 -4
- package/skill/tutuca/testing.md +1 -1
- package/skill/tutuca-source/tutuca.ext.js +470 -410
|
@@ -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" &&
|
|
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,
|
|
2106
|
+
instanceView: InstanceInspector.fromData(value, comp),
|
|
2107
2107
|
componentView: null,
|
|
2108
2108
|
lintView: null,
|
|
2109
2109
|
testView: null,
|