primocode 8.18.0 → 8.18.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/package.json +2 -2
- package/studio/web/js/editor.js +17 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "primocode",
|
|
3
|
-
"version": "8.18.
|
|
3
|
+
"version": "8.18.1",
|
|
4
4
|
"description": "PrimoCode — agente de engenharia com IA e cursor próprio. Modelos grátis. Cria arquivos, roda comandos, controla navegador e desktop: abre apps, clica em botões e ícones pelo nome, digita e usa atalhos.",
|
|
5
5
|
"main": "bin/primocode.js",
|
|
6
6
|
"bin": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
10
|
"start": "node bin/primocode.js",
|
|
11
|
-
"test": "node test/tools.test.js && node test/ui.test.js && node test/modo.test.js && node test/pasta.test.js && node test/catalogo.test.js && node test/desktop.test.js && node test/effort.test.js && node test/claude-engine.test.js && node test/regressao.test.js && node test/memoria-conversa.test.js && node test/repeticao.test.js && node test/referencia.test.js && node test/parar.test.js && node test/continuar.test.js && node test/studio-spec.test.js && node test/studio-versoes.test.js && node test/voz.test.js && node test/editor.test.js && node test/estudio-projeto.test.js"
|
|
11
|
+
"test": "node test/tools.test.js && node test/ui.test.js && node test/modo.test.js && node test/pasta.test.js && node test/catalogo.test.js && node test/desktop.test.js && node test/effort.test.js && node test/claude-engine.test.js && node test/regressao.test.js && node test/memoria-conversa.test.js && node test/repeticao.test.js && node test/referencia.test.js && node test/parar.test.js && node test/continuar.test.js && node test/studio-spec.test.js && node test/studio-versoes.test.js && node test/voz.test.js && node test/editor.test.js && node test/estudio-projeto.test.js && node test/vocabulario.test.js"
|
|
12
12
|
},
|
|
13
13
|
"engines": {
|
|
14
14
|
"node": ">=18.17.0"
|
package/studio/web/js/editor.js
CHANGED
|
@@ -27,19 +27,18 @@
|
|
|
27
27
|
transicao: [["", "Nenhuma (corte seco)"], ["fade", "Suave"], ["deslizar", "Deslizar para o lado"],
|
|
28
28
|
["subir", "Subir"], ["zoom", "Aproximar"], ["limpar", "Varrer"],
|
|
29
29
|
["persiana", "Persiana"], ["flash", "Flash"]],
|
|
30
|
-
fundo: [["", "Sem fundo"], ["malha", "Malha"], ["
|
|
31
|
-
["
|
|
32
|
-
["
|
|
30
|
+
fundo: [["", "Sem fundo"], ["malha", "Malha"], ["brilho", "Brilho"], ["grade", "Grade"],
|
|
31
|
+
["pontos", "Pontos"], ["suave", "Suave"], ["vinheta", "Vinheta"], ["aurora", "Aurora"],
|
|
32
|
+
["nevoa", "Névoa"], ["ondas", "Ondas"], ["raios", "Raios"], ["xadrez", "Xadrez"]],
|
|
33
33
|
acabamento: [["", "Nenhum"], ["grao", "Granulado"], ["vinheta", "Vinheta"],
|
|
34
34
|
["scanlines", "Linhas de TV"], ["luz", "Vazamento de luz"], ["brilho", "Brilho"],
|
|
35
35
|
["moldura", "Moldura"]],
|
|
36
|
-
animacao: [["", "Nenhuma"], ["subir", "Subir"], ["surgir", "Surgir"],
|
|
37
|
-
["
|
|
38
|
-
["
|
|
39
|
-
["
|
|
40
|
-
|
|
41
|
-
["
|
|
42
|
-
["cima", "Subir devagar"]],
|
|
36
|
+
animacao: [["", "Nenhuma"], ["subir", "Subir"], ["surgir", "Surgir"],
|
|
37
|
+
["esquerda", "Da esquerda"], ["direita", "Da direita"], ["zoom", "Aproximar"],
|
|
38
|
+
["desfoque", "Sair do desfoque"], ["cair", "Cair"], ["girar", "Girar"],
|
|
39
|
+
["saltar", "Saltar"], ["revelar", "Revelar"], ["cortina", "Cortina"],
|
|
40
|
+
["elastico", "Elástico"], ["palavra", "Palavra por palavra"],
|
|
41
|
+
["nenhuma", "Travada (sem entrada)"]],
|
|
43
42
|
};
|
|
44
43
|
|
|
45
44
|
/* Menu com nome legível. Aceita "valor" ou ["valor", "Nome"]. */
|
|
@@ -143,7 +142,7 @@
|
|
|
143
142
|
{ tipo: "texto", papel: "titulo", texto: "Parte dois", an: "zoom" }] } },
|
|
144
143
|
{ id: "foto", nome: "Foto com frase", para: ["corte", "prisma", "tela"],
|
|
145
144
|
cena: { layout: "capa", duracao: 5, acabamento: "vinheta", transicao: "fade",
|
|
146
|
-
fundo: "vinheta",
|
|
145
|
+
fundo: "vinheta", elementos: [
|
|
147
146
|
{ tipo: "texto", papel: "titulo", texto: "A frase por cima da imagem", an: "subir" }] } },
|
|
148
147
|
{ id: "grafico", nome: "Gráfico", para: ["corte", "prisma"],
|
|
149
148
|
cena: { layout: "titulo", duracao: 6, elementos: [
|
|
@@ -1191,12 +1190,13 @@
|
|
|
1191
1190
|
// deles apareciam vazios porque só um podia estar preenchido por vez.
|
|
1192
1191
|
// Era a parte mais confusa do inspetor. Agora é uma lista só, com tudo
|
|
1193
1192
|
// que existe, e a cor entra por baixo quando é cor que se quer.
|
|
1194
|
-
|
|
1195
|
-
|
|
1193
|
+
// A lista vem de OPC, não repetida aqui: era a duplicação que deixava
|
|
1194
|
+
// o menu com "ruido" (que não existe) enquanto o CSS tinha "nevoa" e
|
|
1195
|
+
// "xadrez" que ninguém alcançava.
|
|
1196
1196
|
var fundoAtual = typeof c.fundo === "string" && c.fundo.charAt(0) !== "#" ? c.fundo : "";
|
|
1197
|
-
g0.appendChild(linha("Fundo",
|
|
1197
|
+
g0.appendChild(linha("Fundo", menu(OPC.fundo, fundoAtual, function (v) {
|
|
1198
1198
|
mudar(function () { if (v) c.fundo = v; else delete c.fundo; });
|
|
1199
|
-
}
|
|
1199
|
+
})));
|
|
1200
1200
|
g0.appendChild(linha("Cor do fundo", seletorCor(
|
|
1201
1201
|
typeof c.fundo === "string" && c.fundo.charAt(0) === "#" ? c.fundo : "",
|
|
1202
1202
|
function (v) { mudar(function () { if (v) c.fundo = v; else delete c.fundo; }); })));
|
|
@@ -1210,8 +1210,8 @@
|
|
|
1210
1210
|
};
|
|
1211
1211
|
g0.appendChild(linha("Imagem", bFoto));
|
|
1212
1212
|
|
|
1213
|
-
g0.appendChild(linha("Acabamento",
|
|
1214
|
-
|
|
1213
|
+
g0.appendChild(linha("Acabamento", menu(OPC.acabamento, c.acabamento || "",
|
|
1214
|
+
function (v) { mudar(function () { if (v) c.acabamento = v; else delete c.acabamento; }); })));
|
|
1215
1215
|
g0.appendChild(linha("Cor de destaque", seletorCor(c.tom || "",
|
|
1216
1216
|
function (v) { mudar(function () { if (v) c.tom = v; else delete c.tom; }); })));
|
|
1217
1217
|
g0.appendChild(linha("Tema da cena", selecao([""].concat(TEMAS), c.tema || "",
|