tutuca 0.12.0 → 0.13.0
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 +6 -6
- 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 +21 -13
- 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-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";
|
|
@@ -1187,7 +1187,7 @@ var sectionView = makeCompositeView({
|
|
|
1187
1187
|
borderClass: "border-base-content/15",
|
|
1188
1188
|
// Plain click toggles this section; ctrl/cmd-click bubbles up so the
|
|
1189
1189
|
// inspector can toggle every section at once.
|
|
1190
|
-
toggleHandler: "toggle isCtrl"
|
|
1190
|
+
toggleHandler: "toggle e.isCtrl"
|
|
1191
1191
|
});
|
|
1192
1192
|
var CompName = component4({
|
|
1193
1193
|
name: "CompName",
|
|
@@ -1230,7 +1230,7 @@ var CompView = component4({
|
|
|
1230
1230
|
<button
|
|
1231
1231
|
type="button"
|
|
1232
1232
|
class="cursor-pointer text-base-content/70 hover:text-base-content inline-flex items-center gap-1 self-start"
|
|
1233
|
-
@on.click="toggle isCtrl"
|
|
1233
|
+
@on.click="toggle e.isCtrl"
|
|
1234
1234
|
>
|
|
1235
1235
|
<span @text="$arrowText"></span>
|
|
1236
1236
|
<span class="font-mono text-sm" @text=".name"></span>
|
|
@@ -1621,7 +1621,7 @@ var suiteView = makeCompositeView({
|
|
|
1621
1621
|
borderClass: "border-base-content/15",
|
|
1622
1622
|
// Plain click toggles this suite; ctrl/cmd-click bubbles up to TestReport so
|
|
1623
1623
|
// it can expand/collapse every suite at once (like the component inspector).
|
|
1624
|
-
toggleHandler: "toggle isCtrl"
|
|
1624
|
+
toggleHandler: "toggle e.isCtrl"
|
|
1625
1625
|
});
|
|
1626
1626
|
var TestCase = component6({
|
|
1627
1627
|
name: "TestCase",
|
|
@@ -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,
|