tutuca 0.9.76 → 0.9.78
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 +1 -0
- package/dist/tutuca-dev.ext.js +4 -2
- package/dist/tutuca-dev.js +4 -2
- package/dist/tutuca-dev.min.js +2 -2
- package/dist/tutuca-extra.ext.js +4 -2
- package/dist/tutuca-extra.js +4 -2
- package/dist/tutuca-extra.min.js +2 -2
- package/dist/tutuca.ext.js +4 -2
- package/dist/tutuca.js +4 -2
- package/dist/tutuca.min.js +2 -2
- package/package.json +1 -1
- package/skill/tutuca/SKILL.md +5 -4
- package/skill/tutuca/core.md +14 -5
- package/skill/tutuca/request-response.md +338 -0
- package/skill/tutuca/semantics.md +187 -0
- package/skill/tutuca-source/tutuca.ext.js +4 -2
package/dist/tutuca-cli.js
CHANGED
|
@@ -13518,6 +13518,7 @@ class ComponentStack {
|
|
|
13518
13518
|
for (let i = 0;i < comps.length; i++) {
|
|
13519
13519
|
const comp = comps[i];
|
|
13520
13520
|
comp.scope = this.enter();
|
|
13521
|
+
comp.Class.scope = comp.scope;
|
|
13521
13522
|
this.comps.registerComponent(comp);
|
|
13522
13523
|
this.byName[comp.name] = comp;
|
|
13523
13524
|
}
|
package/dist/tutuca-dev.ext.js
CHANGED
|
@@ -6115,6 +6115,7 @@ class ComponentStack {
|
|
|
6115
6115
|
for (let i = 0;i < comps.length; i++) {
|
|
6116
6116
|
const comp = comps[i];
|
|
6117
6117
|
comp.scope = this.enter();
|
|
6118
|
+
comp.Class.scope = comp.scope;
|
|
6118
6119
|
this.comps.registerComponent(comp);
|
|
6119
6120
|
this.byName[comp.name] = comp;
|
|
6120
6121
|
}
|
|
@@ -7291,10 +7292,11 @@ class ClassBuilder {
|
|
|
7291
7292
|
this._statics = {
|
|
7292
7293
|
make: function(inArgs = {}, opts = {}) {
|
|
7293
7294
|
const args = {};
|
|
7295
|
+
const scope = opts.scope ?? this.scope;
|
|
7294
7296
|
for (const key in inArgs) {
|
|
7295
7297
|
const field = fields[key];
|
|
7296
7298
|
if (compFields.has(key))
|
|
7297
|
-
args[key] = mkCompField(field,
|
|
7299
|
+
args[key] = mkCompField(field, scope, inArgs[key]);
|
|
7298
7300
|
else if (field === undefined)
|
|
7299
7301
|
console.warn("extra argument to constructor:", name, key, inArgs);
|
|
7300
7302
|
else
|
|
@@ -7302,7 +7304,7 @@ class ClassBuilder {
|
|
|
7302
7304
|
}
|
|
7303
7305
|
for (const key of compFields)
|
|
7304
7306
|
if (args[key] === undefined)
|
|
7305
|
-
args[key] = mkCompField(fields[key],
|
|
7307
|
+
args[key] = mkCompField(fields[key], scope, inArgs[key]);
|
|
7306
7308
|
return this(args);
|
|
7307
7309
|
}
|
|
7308
7310
|
};
|
package/dist/tutuca-dev.js
CHANGED
|
@@ -13780,6 +13780,7 @@ class ComponentStack {
|
|
|
13780
13780
|
for (let i = 0;i < comps.length; i++) {
|
|
13781
13781
|
const comp = comps[i];
|
|
13782
13782
|
comp.scope = this.enter();
|
|
13783
|
+
comp.Class.scope = comp.scope;
|
|
13783
13784
|
this.comps.registerComponent(comp);
|
|
13784
13785
|
this.byName[comp.name] = comp;
|
|
13785
13786
|
}
|
|
@@ -14952,10 +14953,11 @@ class ClassBuilder {
|
|
|
14952
14953
|
this._statics = {
|
|
14953
14954
|
make: function(inArgs = {}, opts = {}) {
|
|
14954
14955
|
const args = {};
|
|
14956
|
+
const scope = opts.scope ?? this.scope;
|
|
14955
14957
|
for (const key in inArgs) {
|
|
14956
14958
|
const field = fields[key];
|
|
14957
14959
|
if (compFields.has(key))
|
|
14958
|
-
args[key] = mkCompField(field,
|
|
14960
|
+
args[key] = mkCompField(field, scope, inArgs[key]);
|
|
14959
14961
|
else if (field === undefined)
|
|
14960
14962
|
console.warn("extra argument to constructor:", name, key, inArgs);
|
|
14961
14963
|
else
|
|
@@ -14963,7 +14965,7 @@ class ClassBuilder {
|
|
|
14963
14965
|
}
|
|
14964
14966
|
for (const key of compFields)
|
|
14965
14967
|
if (args[key] === undefined)
|
|
14966
|
-
args[key] = mkCompField(fields[key],
|
|
14968
|
+
args[key] = mkCompField(fields[key], scope, inArgs[key]);
|
|
14967
14969
|
return this(args);
|
|
14968
14970
|
}
|
|
14969
14971
|
};
|