create-rubrica 2.1.0 → 2.1.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/index.js +303 -34
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -496,7 +496,7 @@ var init_telemetry = __esm({
|
|
|
496
496
|
TELEMETRY_DOCS = "https://userubrica.vercel.app/docs/guia/telemetria";
|
|
497
497
|
TELEMETRY_TIMEOUT_MS = 2e3;
|
|
498
498
|
FORMAT_VERSION = 1;
|
|
499
|
-
CLI_VERSION = true ? "2.
|
|
499
|
+
CLI_VERSION = true ? "2.1.1" : "0.0.0";
|
|
500
500
|
OFF_VALUES = ["0", "false", "nao", "n\xE3o", "off", "desligada", "desligado"];
|
|
501
501
|
isOn = (value) => value !== void 0 && value !== "" && !["0", "false"].includes(value.toLowerCase());
|
|
502
502
|
NOTICE = `O Rubrica manda, sem dados pessoais, as escolhas feitas no CLI (tipo, tema, cores, plugins) para saber o que as pessoas mais usam.
|
|
@@ -586,17 +586,18 @@ async function evaluateInProject(projectDir, code) {
|
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
588
|
function findPackageDir(fromDir, pkg) {
|
|
589
|
+
let dir = fromDir;
|
|
590
|
+
for (; ; ) {
|
|
591
|
+
const candidate = join3(dir, "node_modules", pkg);
|
|
592
|
+
if (existsSync2(join3(candidate, "package.json"))) return candidate;
|
|
593
|
+
const parent = dirname2(dir);
|
|
594
|
+
if (parent === dir) break;
|
|
595
|
+
dir = parent;
|
|
596
|
+
}
|
|
589
597
|
try {
|
|
590
598
|
return dirname2(createRequire(join3(fromDir, "package.json")).resolve(`${pkg}/package.json`));
|
|
591
599
|
} catch {
|
|
592
|
-
|
|
593
|
-
for (; ; ) {
|
|
594
|
-
const candidate = join3(dir, "node_modules", pkg);
|
|
595
|
-
if (existsSync2(join3(candidate, "package.json"))) return candidate;
|
|
596
|
-
const parent = dirname2(dir);
|
|
597
|
-
if (parent === dir) return null;
|
|
598
|
-
dir = parent;
|
|
599
|
-
}
|
|
600
|
+
return null;
|
|
600
601
|
}
|
|
601
602
|
}
|
|
602
603
|
function installedVersion(projectDir, pkg) {
|
|
@@ -933,7 +934,7 @@ var init_package = __esm({
|
|
|
933
934
|
"../core/package.json"() {
|
|
934
935
|
package_default = {
|
|
935
936
|
name: "@rubrica/core",
|
|
936
|
-
version: "2.
|
|
937
|
+
version: "2.1.1",
|
|
937
938
|
description: "N\xFAcleo do Rubrica: contrato de blocos e temas, idiomas, integra\xE7\xE3o Astro, backend Convex, painel e MCP.",
|
|
938
939
|
type: "module",
|
|
939
940
|
license: "GPL-3.0-only",
|
|
@@ -996,7 +997,7 @@ var init_package = __esm({
|
|
|
996
997
|
"@types/node": "^22.0.0",
|
|
997
998
|
"@types/react": "^19.2.0",
|
|
998
999
|
"@types/react-dom": "^19.2.0",
|
|
999
|
-
astro: "^7.4.
|
|
1000
|
+
astro: "^7.4.11",
|
|
1000
1001
|
convex: "^1.49.0",
|
|
1001
1002
|
"convex-test": "^0.0.67",
|
|
1002
1003
|
"happy-dom": "^21.0.4",
|
|
@@ -1032,7 +1033,7 @@ var init_package2 = __esm({
|
|
|
1032
1033
|
"../mcp/package.json"() {
|
|
1033
1034
|
package_default2 = {
|
|
1034
1035
|
name: "@rubrica/mcp",
|
|
1035
|
-
version: "2.0.
|
|
1036
|
+
version: "2.0.2",
|
|
1036
1037
|
description: "Servidor MCP local do Rubrica: o agente edita p\xE1ginas, blocos e cole\xE7\xF5es do site pelo Convex do projeto, com o login de um usu\xE1rio do painel.",
|
|
1037
1038
|
type: "module",
|
|
1038
1039
|
license: "GPL-3.0-only",
|
|
@@ -1062,6 +1063,7 @@ var init_package2 = __esm({
|
|
|
1062
1063
|
},
|
|
1063
1064
|
scripts: {
|
|
1064
1065
|
build: "tsup",
|
|
1066
|
+
prepublishOnly: "pnpm run build",
|
|
1065
1067
|
check: "tsc --noEmit -p tsconfig.json",
|
|
1066
1068
|
test: "vitest run"
|
|
1067
1069
|
},
|
|
@@ -1325,6 +1327,20 @@ var init_ui_texts = __esm({
|
|
|
1325
1327
|
"blog.publishedAt": { pt: "Publicado em {date}", en: "Published on {date}", es: "Publicado el {date}" },
|
|
1326
1328
|
"blog.related": { pt: "Leia tamb\xE9m", en: "Read next", es: "Lee tambi\xE9n" },
|
|
1327
1329
|
"blog.allTags": { pt: "Todos", en: "All", es: "Todos" },
|
|
1330
|
+
// Lista e post do blog como na v1 (busca, destaques, RSS, autor e case relacionado).
|
|
1331
|
+
"blog.search": { pt: "Buscar artigos...", en: "Search articles...", es: "Buscar art\xEDculos..." },
|
|
1332
|
+
"blog.searchEmpty": { pt: "Nenhum artigo encontrado.", en: "No articles found.", es: "No se encontraron art\xEDculos." },
|
|
1333
|
+
"blog.featured": { pt: "Em destaque", en: "Featured", es: "Destacados" },
|
|
1334
|
+
"blog.featuredPrev": { pt: "Destaque anterior", en: "Previous featured post", es: "Destacado anterior" },
|
|
1335
|
+
"blog.featuredNext": { pt: "Pr\xF3ximo destaque", en: "Next featured post", es: "Siguiente destacado" },
|
|
1336
|
+
"blog.readNow": { pt: "Ler agora", en: "Read now", es: "Leer ahora" },
|
|
1337
|
+
"blog.rss": { pt: "RSS", en: "RSS", es: "RSS" },
|
|
1338
|
+
"blog.rssSubscribe": { pt: "Assinar o feed RSS", en: "Subscribe to the RSS feed", es: "Suscribirse al feed RSS" },
|
|
1339
|
+
"blog.back": { pt: "Voltar para o blog", en: "Back to the blog", es: "Volver al blog" },
|
|
1340
|
+
"blog.authorLine": { pt: "Escrevo sobre o que construo e lidero na pr\xE1tica.", en: "I write about what I build and lead in practice.", es: "Escribo sobre lo que construyo y lidero en la pr\xE1ctica." },
|
|
1341
|
+
"blog.authorCta": { pt: "Fale comigo", en: "Get in touch", es: "Hablemos" },
|
|
1342
|
+
"blog.relatedCase": { pt: "Case relacionado", en: "Related case study", es: "Caso relacionado" },
|
|
1343
|
+
"blog.readCase": { pt: "Ler o case", en: "Read the case study", es: "Leer el caso" },
|
|
1328
1344
|
"case.related": { pt: "Outros projetos", en: "More projects", es: "Otros proyectos" },
|
|
1329
1345
|
"case.client": { pt: "Cliente", en: "Client", es: "Cliente" },
|
|
1330
1346
|
"case.year": { pt: "Ano", en: "Year", es: "A\xF1o" },
|
|
@@ -1332,6 +1348,23 @@ var init_ui_texts = __esm({
|
|
|
1332
1348
|
"case.myRole": { pt: "Meu papel", en: "My role", es: "Mi rol" },
|
|
1333
1349
|
"case.back": { pt: "Voltar ao portf\xF3lio", en: "Back to the portfolio", es: "Volver al portafolio" },
|
|
1334
1350
|
"case.gallery": { pt: "Imagens do projeto", en: "Project images", es: "Im\xE1genes del proyecto" },
|
|
1351
|
+
"case.metrics": { pt: "Resultados em n\xFAmeros", en: "Results by the numbers", es: "Resultados en n\xFAmeros" },
|
|
1352
|
+
"case.details": { pt: "Ver detalhes", en: "View details", es: "Ver detalles" },
|
|
1353
|
+
"case.next": { pt: "Pr\xF3ximo case", en: "Next case study", es: "Siguiente caso" },
|
|
1354
|
+
"case.ctaTitle": { pt: "Precisa de algo parecido?", en: "Need something similar?", es: "\xBFNecesitas algo parecido?" },
|
|
1355
|
+
"case.ctaBody": {
|
|
1356
|
+
pt: "Conte o contexto do seu projeto e eu respondo com os pr\xF3ximos passos.",
|
|
1357
|
+
en: "Share your project context and I'll reply with the next steps.",
|
|
1358
|
+
es: "Cu\xE9ntame el contexto de tu proyecto y te respondo con los pr\xF3ximos pasos."
|
|
1359
|
+
},
|
|
1360
|
+
"case.ctaButton": { pt: "Falar sobre um projeto", en: "Talk about a project", es: "Hablar de un proyecto" },
|
|
1361
|
+
"cases.filter": { pt: "Filtrar por categoria", en: "Filter by category", es: "Filtrar por categor\xEDa" },
|
|
1362
|
+
"cases.all": { pt: "Todos", en: "All", es: "Todos" },
|
|
1363
|
+
"gallery.expand": { pt: "Expandir imagem", en: "Expand image", es: "Ampliar imagen" },
|
|
1364
|
+
"gallery.prev": { pt: "Imagem anterior", en: "Previous image", es: "Imagen anterior" },
|
|
1365
|
+
"gallery.next": { pt: "Pr\xF3xima imagem", en: "Next image", es: "Imagen siguiente" },
|
|
1366
|
+
"gallery.position": { pt: "{current} de {total}", en: "{current} of {total}", es: "{current} de {total}" },
|
|
1367
|
+
"gallery.close": { pt: "Fechar", en: "Close", es: "Cerrar" },
|
|
1335
1368
|
"resume.download": { pt: "Baixar curr\xEDculo em PDF", en: "Download r\xE9sum\xE9 (PDF)", es: "Descargar CV en PDF" },
|
|
1336
1369
|
"resume.experience": { pt: "Experi\xEAncia", en: "Experience", es: "Experiencia" },
|
|
1337
1370
|
"resume.education": { pt: "Forma\xE7\xE3o", en: "Education", es: "Formaci\xF3n" },
|
|
@@ -1357,6 +1390,9 @@ var init_ui_texts = __esm({
|
|
|
1357
1390
|
"case.view": { pt: "Ver case", en: "View case study", es: "Ver caso" },
|
|
1358
1391
|
"blog.filter": { pt: "Filtrar por etiqueta", en: "Filter by tag", es: "Filtrar por etiqueta" },
|
|
1359
1392
|
"testimonials.send": { pt: "Enviar um depoimento", en: "Send a testimonial", es: "Enviar un testimonio" },
|
|
1393
|
+
/** Quantos depoimentos a lista mostra ("(7 depoimentos)" ao lado do apoio, na v1). */
|
|
1394
|
+
"testimonials.count": { pt: "{count} depoimentos", en: "{count} testimonials", es: "{count} testimonios" },
|
|
1395
|
+
"testimonials.countOne": { pt: "1 depoimento", en: "1 testimonial", es: "1 testimonio" },
|
|
1360
1396
|
"contact.phone": { pt: "Telefone", en: "Phone", es: "Tel\xE9fono" },
|
|
1361
1397
|
"contact.channels": { pt: "Outros canais", en: "Other channels", es: "Otros canales" },
|
|
1362
1398
|
"contact.social": { pt: "Redes", en: "Social", es: "Redes" },
|
|
@@ -1405,6 +1441,12 @@ var init_ui_texts = __esm({
|
|
|
1405
1441
|
"contactForm.topic.job": { pt: "Tenho uma vaga", en: "I have a job opening", es: "Tengo una vacante" },
|
|
1406
1442
|
"contactForm.topic.talk": { pt: "Quero trocar uma ideia", en: "I'd like to chat", es: "Quiero conversar" },
|
|
1407
1443
|
"contactForm.topic.other": { pt: "Outro assunto", en: "Something else", es: "Otro asunto" },
|
|
1444
|
+
"contactForm.close": { pt: "Fechar", en: "Close", es: "Cerrar" },
|
|
1445
|
+
"contactForm.summary": { pt: "Revise e envie", en: "Review and send", es: "Revisa y env\xEDa" },
|
|
1446
|
+
"contactForm.summaryTopic": { pt: "Assunto", en: "Topic", es: "Asunto" },
|
|
1447
|
+
"contactForm.summaryContact": { pt: "Contato", en: "Contact", es: "Contacto" },
|
|
1448
|
+
"contactForm.linkedin": { pt: "LinkedIn", en: "LinkedIn", es: "LinkedIn" },
|
|
1449
|
+
"contactForm.company": { pt: "Empresa", en: "Company", es: "Empresa" },
|
|
1408
1450
|
"contactForm.success": { pt: "Mensagem enviada.", en: "Message sent.", es: "Mensaje enviado." },
|
|
1409
1451
|
"contactForm.successBody": { pt: "Obrigado pelo contato. Respondo assim que poss\xEDvel.", en: "Thanks for reaching out. I'll reply as soon as I can.", es: "Gracias por escribir. Responder\xE9 lo antes posible." },
|
|
1410
1452
|
"testimonialForm.open": { pt: "Enviar um depoimento", en: "Send a testimonial", es: "Enviar un testimonio" },
|
|
@@ -1424,12 +1466,22 @@ var init_ui_texts = __esm({
|
|
|
1424
1466
|
es: "La direcci\xF3n puede haber cambiado o la p\xE1gina no existe en este idioma."
|
|
1425
1467
|
},
|
|
1426
1468
|
"notFound.home": { pt: "Ir para a p\xE1gina inicial", en: "Go to the home page", es: "Ir a la p\xE1gina de inicio" },
|
|
1469
|
+
/** Rótulo e código de erro da tela de 404 em terminal (temas padrão e cyberpunk, como a v1). */
|
|
1470
|
+
"notFound.label": { pt: "Erro do sistema", en: "System error", es: "Error del sistema" },
|
|
1471
|
+
"notFound.code": { pt: "ERR_ROTA_NAO_ENCONTRADA", en: "ERR_ROUTE_NOT_FOUND", es: "ERR_RUTA_NO_ENCONTRADA" },
|
|
1427
1472
|
...APP_UI_TEXTS
|
|
1428
1473
|
};
|
|
1429
1474
|
EMPRESA_UI_TEXTS = {
|
|
1430
1475
|
"sidebar.talk": { pt: "Fale conosco", en: "Talk to us", es: "Hablemos" },
|
|
1431
1476
|
"case.myRole": { pt: "Nosso papel", en: "Our role", es: "Nuestro rol" },
|
|
1432
1477
|
"case.back": { pt: "Voltar aos cases", en: "Back to the case studies", es: "Volver a los casos" },
|
|
1478
|
+
"case.ctaBody": {
|
|
1479
|
+
pt: "Conte o contexto do seu projeto e respondemos com os pr\xF3ximos passos.",
|
|
1480
|
+
en: "Share your project context and we'll reply with the next steps.",
|
|
1481
|
+
es: "Cu\xE9ntanos el contexto de tu proyecto y te respondemos con los pr\xF3ximos pasos."
|
|
1482
|
+
},
|
|
1483
|
+
"blog.authorLine": { pt: "Escrevemos sobre o que constru\xEDmos na pr\xE1tica.", en: "We write about what we build in practice.", es: "Escribimos sobre lo que construimos en la pr\xE1ctica." },
|
|
1484
|
+
"blog.authorCta": { pt: "Fale conosco", en: "Talk to us", es: "Hablemos" },
|
|
1433
1485
|
"whatsapp.float": { pt: "Fale conosco no WhatsApp", en: "Chat with us on WhatsApp", es: "Habla con nosotros por WhatsApp" },
|
|
1434
1486
|
"contactForm.message": { pt: "Conte um pouco mais", en: "Tell us a bit more", es: "Cu\xE9ntanos un poco m\xE1s" },
|
|
1435
1487
|
"contactForm.you": { pt: "Como falar com voc\xEA?", en: "How can we reach you?", es: "\xBFC\xF3mo podemos contactarte?" },
|
|
@@ -2767,7 +2819,8 @@ var init_catalog = __esm({
|
|
|
2767
2819
|
label: "Convidar a enviar depoimento",
|
|
2768
2820
|
default: false,
|
|
2769
2821
|
help: "Mostra o bot\xE3o do assistente de depoimento (precisa do plugin testimonials-intake)."
|
|
2770
|
-
})
|
|
2822
|
+
}),
|
|
2823
|
+
cta: field.link({ label: "Link para todos", help: 'Ex.: "Ver todos os depoimentos", para a p\xE1gina de depoimentos. Opcional.' })
|
|
2771
2824
|
}
|
|
2772
2825
|
});
|
|
2773
2826
|
faq = defineBlock({
|
|
@@ -2798,13 +2851,24 @@ var init_catalog = __esm({
|
|
|
2798
2851
|
},
|
|
2799
2852
|
category: "comum",
|
|
2800
2853
|
plugin: "blog",
|
|
2854
|
+
// A busca é uma ilha que só filtra os cartões já no HTML (sem ela, a lista inteira aparece).
|
|
2855
|
+
interactive: true,
|
|
2856
|
+
enhances: true,
|
|
2857
|
+
islandOptIn: true,
|
|
2858
|
+
islandWhen: (f) => f.showSearch === true,
|
|
2801
2859
|
source: { collections: ["posts"], default: { collection: "posts", limit: 3, sort: "recent" } },
|
|
2802
2860
|
fields: {
|
|
2803
2861
|
anchor,
|
|
2804
2862
|
title: heading,
|
|
2805
2863
|
intro: intro3,
|
|
2806
2864
|
cta: field.link({ label: "Link para o blog" }),
|
|
2807
|
-
showTagFilter: field.boolean({ label: "Filtro por etiqueta", default: false })
|
|
2865
|
+
showTagFilter: field.boolean({ label: "Filtro por etiqueta", default: false }),
|
|
2866
|
+
showSearch: field.boolean({ label: "Busca por texto", default: false, help: "Campo que filtra os posts pelo t\xEDtulo, resumo e etiquetas (p\xE1gina do blog)." }),
|
|
2867
|
+
showFeatured: field.boolean({
|
|
2868
|
+
label: "Destaques no topo",
|
|
2869
|
+
default: false,
|
|
2870
|
+
help: "Os posts marcados como destaque num carrossel acima da lista, nos temas que o desenham (p\xE1gina do blog)."
|
|
2871
|
+
})
|
|
2808
2872
|
}
|
|
2809
2873
|
});
|
|
2810
2874
|
cta = defineBlock({
|
|
@@ -2850,7 +2914,59 @@ var init_catalog = __esm({
|
|
|
2850
2914
|
],
|
|
2851
2915
|
default: "wizard"
|
|
2852
2916
|
}),
|
|
2853
|
-
showChannels: field.boolean({ label: "Mostrar canais de contato", default: true })
|
|
2917
|
+
showChannels: field.boolean({ label: "Mostrar canais de contato", default: true }),
|
|
2918
|
+
presentation: field.select({
|
|
2919
|
+
label: "Onde aparece",
|
|
2920
|
+
options: [
|
|
2921
|
+
{ value: "inline", label: "Na p\xE1gina" },
|
|
2922
|
+
{ value: "dialog", label: "S\xF3 na janela de contato" }
|
|
2923
|
+
],
|
|
2924
|
+
default: "inline",
|
|
2925
|
+
help: "S\xF3 na janela: com um tema que tem janela de contato (padr\xE3o, cyberpunk), o bloco sai da p\xE1gina e a janela, que abre em toda p\xE1gina pelos bot\xF5es de contato, mostra o formul\xE1rio, o t\xEDtulo e o sobret\xEDtulo dele. Em tema sem janela, o bloco fica na p\xE1gina."
|
|
2926
|
+
}),
|
|
2927
|
+
eyebrow: field.text({ label: "Sobret\xEDtulo", maxLength: 80, help: "Linha curta acima do t\xEDtulo (ex.: portfolio / contato)." }),
|
|
2928
|
+
flows: field.list({
|
|
2929
|
+
label: "Assuntos do assistente",
|
|
2930
|
+
itemLabel: "Assunto",
|
|
2931
|
+
max: 6,
|
|
2932
|
+
help: "Opcional, para o formato assistente. Cada assunto tem as pr\xF3prias etapas; a primeira tela mostra os assuntos e o resumo para revisar vem no fim. Sem assuntos, o assistente pergunta o assunto, a mensagem e os dados.",
|
|
2933
|
+
of: {
|
|
2934
|
+
id: field.text({ label: "Identificador", localized: false, required: true, maxLength: 40, help: "Curto e sem espa\xE7os (ex.: projeto)." }),
|
|
2935
|
+
emoji: field.text({ label: "Emoji", localized: false, maxLength: 16 }),
|
|
2936
|
+
label: field.text({ label: "R\xF3tulo", required: true, maxLength: 80 }),
|
|
2937
|
+
steps: field.list({
|
|
2938
|
+
label: "Etapas",
|
|
2939
|
+
itemLabel: "Etapa",
|
|
2940
|
+
max: 8,
|
|
2941
|
+
help: "Sem a etapa de dados de contato, ela entra no fim.",
|
|
2942
|
+
of: {
|
|
2943
|
+
kind: field.select({
|
|
2944
|
+
label: "Tipo",
|
|
2945
|
+
options: [
|
|
2946
|
+
{ value: "choice", label: "Escolha entre op\xE7\xF5es" },
|
|
2947
|
+
{ value: "text", label: "Texto curto" },
|
|
2948
|
+
{ value: "textarea", label: "Texto longo (vai como mensagem)" },
|
|
2949
|
+
{ value: "contact", label: "Dados de contato" }
|
|
2950
|
+
],
|
|
2951
|
+
default: "choice"
|
|
2952
|
+
}),
|
|
2953
|
+
key: field.text({
|
|
2954
|
+
label: "Chave da resposta",
|
|
2955
|
+
localized: false,
|
|
2956
|
+
maxLength: 80,
|
|
2957
|
+
help: "Nome da resposta no pedido (ex.: prazo). Em texto curto, v\xE1rias chaves separadas por v\xEDrgula viram v\xE1rios campos."
|
|
2958
|
+
}),
|
|
2959
|
+
title: field.text({ label: "Pergunta", maxLength: 160 }),
|
|
2960
|
+
options: field.text({ label: "Op\xE7\xF5es", multiline: true, maxLength: 1500, help: "Uma por linha (tipo escolha)." }),
|
|
2961
|
+
placeholder: field.text({ label: "Exemplo dentro do campo", multiline: true, maxLength: 400, help: "Um por linha quando a etapa tem v\xE1rios campos." }),
|
|
2962
|
+
optional: field.boolean({ label: "Resposta opcional", default: false }),
|
|
2963
|
+
askPhone: field.boolean({ label: "Pedir telefone", default: false, help: "S\xF3 na etapa de dados de contato." }),
|
|
2964
|
+
askLinkedin: field.boolean({ label: "Pedir LinkedIn", default: false, help: "S\xF3 na etapa de dados de contato." }),
|
|
2965
|
+
askCompany: field.boolean({ label: "Pedir empresa", default: false, help: "S\xF3 na etapa de dados de contato." })
|
|
2966
|
+
}
|
|
2967
|
+
})
|
|
2968
|
+
}
|
|
2969
|
+
})
|
|
2854
2970
|
}
|
|
2855
2971
|
});
|
|
2856
2972
|
galeria = defineBlock({
|
|
@@ -3473,7 +3589,7 @@ var init_files = __esm({
|
|
|
3473
3589
|
PEERS = package_default.peerDependencies;
|
|
3474
3590
|
MCP_VERSION = package_default2.version;
|
|
3475
3591
|
defaultDependencySpecs = () => ({ core: `^${CORE_VERSION}`, theme: `^${CORE_VERSION}`, cli: `^${CLI_PACKAGE_VERSION}`, mcp: `^${MCP_VERSION}` });
|
|
3476
|
-
CLI_PACKAGE_VERSION = true ? "2.
|
|
3592
|
+
CLI_PACKAGE_VERSION = true ? "2.1.1" : CORE_VERSION;
|
|
3477
3593
|
MARK = {
|
|
3478
3594
|
themeStart: "// rubrica:tema:inicio",
|
|
3479
3595
|
themeEnd: "// rubrica:tema:fim",
|
|
@@ -7487,12 +7603,6 @@ function convertProjects(ctx, docs) {
|
|
|
7487
7603
|
const body = mapLoc(loc(cs[s.field], { enUS: csEn?.[s.field] }), toHtml);
|
|
7488
7604
|
if (hasText(body)) sections.push({ title: ctx.t(s.key), body });
|
|
7489
7605
|
}
|
|
7490
|
-
if (cs.metrics?.length) {
|
|
7491
|
-
const list2 = (metrics) => `<ul>${metrics.map((m) => `<li><strong>${m.value}</strong> ${m.label}</li>`).join("")}</ul>`;
|
|
7492
|
-
const body = { [PT]: list2(cs.metrics) };
|
|
7493
|
-
if (csEn?.metrics?.length) body[EN] = list2(csEn.metrics);
|
|
7494
|
-
sections.push({ title: ctx.t("portfolio.metrics"), body });
|
|
7495
|
-
}
|
|
7496
7606
|
if (cs.testimonial?.text) {
|
|
7497
7607
|
const t = cs.testimonial;
|
|
7498
7608
|
const quote = (text2, role) => `<blockquote><p>${text2}</p><footer>${t.author}${role ? `, ${role}` : ""}</footer></blockquote>`;
|
|
@@ -7504,6 +7614,7 @@ function convertProjects(ctx, docs) {
|
|
|
7504
7614
|
sections.push({ title: ctx.t("portfolio.testimonial"), body });
|
|
7505
7615
|
}
|
|
7506
7616
|
}
|
|
7617
|
+
const metrics = caseMetrics(cs?.metrics, csEn?.metrics);
|
|
7507
7618
|
const images = (d.imageIds ?? []).map((id) => ctx.image(id)).filter(Boolean);
|
|
7508
7619
|
const external = (d.externalImageUrls ?? []).map((url) => ({ url }));
|
|
7509
7620
|
const [cover, ...gallery] = [...images, ...external];
|
|
@@ -7518,6 +7629,7 @@ function convertProjects(ctx, docs) {
|
|
|
7518
7629
|
summary: loc(d.description, d.descriptionTranslations),
|
|
7519
7630
|
content: mapLoc(loc(d.longDescription, d.longDescriptionTranslations), toHtml),
|
|
7520
7631
|
sections: sections.length ? sections : void 0,
|
|
7632
|
+
metrics: metrics.length ? metrics : void 0,
|
|
7521
7633
|
cover,
|
|
7522
7634
|
gallery: gallery.length ? gallery : void 0,
|
|
7523
7635
|
role: cs ? loc(cs.role, { enUS: csEn?.role }) : void 0,
|
|
@@ -7532,6 +7644,14 @@ function convertProjects(ctx, docs) {
|
|
|
7532
7644
|
});
|
|
7533
7645
|
});
|
|
7534
7646
|
}
|
|
7647
|
+
function caseMetrics(pt, en) {
|
|
7648
|
+
return (pt ?? []).flatMap((m, i) => {
|
|
7649
|
+
const value = str2(m.value === void 0 ? void 0 : String(m.value));
|
|
7650
|
+
const label = loc(m.label, { enUS: en?.[i]?.label });
|
|
7651
|
+
if (!value || !hasText(label)) return [];
|
|
7652
|
+
return [compact({ value, label, icon: str2(m.icon) })];
|
|
7653
|
+
});
|
|
7654
|
+
}
|
|
7535
7655
|
function convertResume(ctx, docs) {
|
|
7536
7656
|
return docs.map((d) => {
|
|
7537
7657
|
const c = d.content ?? {};
|
|
@@ -7742,7 +7862,8 @@ function buildPages(ctx, input, plugins, report) {
|
|
|
7742
7862
|
title,
|
|
7743
7863
|
seo: m.seo && Object.keys(m.seo).length ? m.seo : void 0,
|
|
7744
7864
|
// `fields` é obrigatório no schema, mesmo vazio: fica fora do compact (que tira objetos vazios).
|
|
7745
|
-
|
|
7865
|
+
// A receita do tema pode trazer o bloco escondido (ex.: o contato da home num tema com a janela de contato).
|
|
7866
|
+
blocks: kept.map((b, i) => ({ ...compact({ id: ids[i], type: b.type, variant: b.variant, visible: b.visible !== false, source: b.source }), fields: b.fields ?? {} })),
|
|
7746
7867
|
published: true,
|
|
7747
7868
|
system: true,
|
|
7748
7869
|
createdAt: now,
|
|
@@ -7753,7 +7874,70 @@ function buildPages(ctx, input, plugins, report) {
|
|
|
7753
7874
|
}
|
|
7754
7875
|
return pages;
|
|
7755
7876
|
}
|
|
7756
|
-
function
|
|
7877
|
+
function locLines(texts) {
|
|
7878
|
+
const out = {};
|
|
7879
|
+
for (const locale of [PT, EN]) {
|
|
7880
|
+
const lines = texts.map((t) => t[locale] ?? t[PT] ?? "").filter(Boolean);
|
|
7881
|
+
if (lines.length) out[locale] = lines.join("\n");
|
|
7882
|
+
}
|
|
7883
|
+
return out;
|
|
7884
|
+
}
|
|
7885
|
+
function wizardOptions(ctx, prefix, defaults2) {
|
|
7886
|
+
const extra = [...ctx.siteTexts.keys(), ...Object.keys(ctx.projectTexts)].filter((k) => k.startsWith(prefix) && !k.slice(prefix.length).includes(".")).map((k) => k.slice(prefix.length));
|
|
7887
|
+
const ids = [.../* @__PURE__ */ new Set([...defaults2, ...extra])];
|
|
7888
|
+
return locLines(ids.map((id) => ctx.t(`${prefix}${id}`)).filter(hasText));
|
|
7889
|
+
}
|
|
7890
|
+
function contactWizardFields(ctx) {
|
|
7891
|
+
const flows = V1_WIZARD_FLOWS.map((flow) => ({
|
|
7892
|
+
id: flow.id,
|
|
7893
|
+
emoji: flow.emoji,
|
|
7894
|
+
label: ctx.t(`contactWizard.flows.${flow.id}.label`),
|
|
7895
|
+
steps: flow.steps.map((step) => {
|
|
7896
|
+
if (step.kind === "contact") {
|
|
7897
|
+
return compact({ kind: "contact", title: ctx.t("contactWizard.contact.title"), askPhone: step.askPhone, askLinkedin: step.askLinkedin, askCompany: step.askCompany });
|
|
7898
|
+
}
|
|
7899
|
+
const base3 = `contactWizard.${flow.id}.step${step.n}`;
|
|
7900
|
+
const placeholder = step.placeholders ? locLines(step.placeholders.map((p) => ctx.t(`${base3}.${p}`)).filter(hasText)) : {};
|
|
7901
|
+
return compact({
|
|
7902
|
+
kind: step.kind,
|
|
7903
|
+
key: step.key,
|
|
7904
|
+
title: ctx.t(`${base3}.title`),
|
|
7905
|
+
options: step.options ? wizardOptions(ctx, `${base3}.options.`, step.options) : void 0,
|
|
7906
|
+
placeholder: hasText(placeholder) ? placeholder : void 0
|
|
7907
|
+
});
|
|
7908
|
+
})
|
|
7909
|
+
}));
|
|
7910
|
+
return compact({
|
|
7911
|
+
anchor: "contato",
|
|
7912
|
+
presentation: "dialog",
|
|
7913
|
+
eyebrow: { [PT]: "portfolio / contato", [EN]: "portfolio / contato" },
|
|
7914
|
+
title: ctx.t("contactWizard.title"),
|
|
7915
|
+
intro: ctx.t("contactWizard.subtitle"),
|
|
7916
|
+
mode: "wizard",
|
|
7917
|
+
showChannels: false,
|
|
7918
|
+
flows
|
|
7919
|
+
});
|
|
7920
|
+
}
|
|
7921
|
+
function wizardUiTexts(ctx) {
|
|
7922
|
+
const step = ctx.t("contactWizard.step");
|
|
7923
|
+
const of = ctx.t("contactWizard.of");
|
|
7924
|
+
const stepOf = {};
|
|
7925
|
+
for (const locale of [PT, EN]) if (step[locale] && of[locale]) stepOf[locale] = `${step[locale]} {current} ${of[locale]} {total}`;
|
|
7926
|
+
const pairs = [
|
|
7927
|
+
["contactWizard.next", "form.next"],
|
|
7928
|
+
["contactWizard.back", "form.back"],
|
|
7929
|
+
["contactWizard.submit", "form.send"],
|
|
7930
|
+
["contactWizard.submitting", "form.sending"],
|
|
7931
|
+
["contactWizard.successTitle", "contactForm.success"],
|
|
7932
|
+
["contactWizard.successBody", "contactForm.successBody"],
|
|
7933
|
+
["contactWizard.summary.title", "contactForm.summary"],
|
|
7934
|
+
["contactWizard.summary.type", "contactForm.summaryTopic"],
|
|
7935
|
+
["contactWizard.summary.contact", "contactForm.summaryContact"],
|
|
7936
|
+
["common.close", "contactForm.close"]
|
|
7937
|
+
];
|
|
7938
|
+
return [{ v1: "contactWizard.step + contactWizard.of", v2: "form.step", value: stepOf }, ...pairs.map(([v1, v2]) => ({ v1, v2, value: ctx.t(v1) }))].filter((p) => hasText(p.value));
|
|
7939
|
+
}
|
|
7940
|
+
function buildUiTexts(ctx, report, now, plugins = {}) {
|
|
7757
7941
|
const out = [];
|
|
7758
7942
|
const availability = ctx.home.get("availability_status");
|
|
7759
7943
|
const fromHome = availability?.label ? locAny(availability.label) : {};
|
|
@@ -7782,6 +7966,13 @@ function buildUiTexts(ctx, report, now) {
|
|
|
7782
7966
|
out.push({ key: v2, value, updatedAt: now });
|
|
7783
7967
|
report.texts.ui.push({ v1: key, v2 });
|
|
7784
7968
|
}
|
|
7969
|
+
if (plugins["contact-wizard"] !== false) {
|
|
7970
|
+
for (const { v1, v2, value } of wizardUiTexts(ctx)) {
|
|
7971
|
+
if (out.some((t) => t.key === v2)) continue;
|
|
7972
|
+
out.push({ key: v2, value, updatedAt: now });
|
|
7973
|
+
report.texts.ui.push({ v1, v2 });
|
|
7974
|
+
}
|
|
7975
|
+
}
|
|
7785
7976
|
return out;
|
|
7786
7977
|
}
|
|
7787
7978
|
function adaptText(key, value) {
|
|
@@ -7815,8 +8006,11 @@ function convertV1(input) {
|
|
|
7815
8006
|
);
|
|
7816
8007
|
put("faq", "aboutFaq", (t.aboutFaq ?? []).map((d) => compact({ ...meta2(d), question: loc(d.question, d.questionTranslations), answer: mapLoc(loc(d.answer, d.answerTranslations), (s) => s), order: d.displayOrder, ...lifecycle(d) })));
|
|
7817
8008
|
const routine = t.aboutDailyRoutine ?? [];
|
|
7818
|
-
|
|
7819
|
-
|
|
8009
|
+
const span = (d) => {
|
|
8010
|
+
const s = str2(d.spanSize) || str2(d.span_size);
|
|
8011
|
+
return s === "1x2" || s === "2x1" || s === "2x2" ? s : void 0;
|
|
8012
|
+
};
|
|
8013
|
+
put("routine", "aboutDailyRoutine", routine.map((d) => compact({ ...meta2(d), title: loc(d.description, d.descriptionTranslations), image: ctx.image(d.imageId, d.imageUrl), span: span(d), order: d.displayOrder, ...lifecycle(d) })));
|
|
7820
8014
|
put("resumeItems", "resumeItems", convertResume(ctx, t.resumeItems ?? []));
|
|
7821
8015
|
put(
|
|
7822
8016
|
"media",
|
|
@@ -7833,7 +8027,7 @@ function convertV1(input) {
|
|
|
7833
8027
|
settings.navigation = v1Navigation(navigationFromPages(pages));
|
|
7834
8028
|
put("siteSettings", "", [compact({ ...settings, updatedAt: now })]);
|
|
7835
8029
|
put("pages", "", pages);
|
|
7836
|
-
put("uiTexts", "", buildUiTexts(ctx, report, now));
|
|
8030
|
+
put("uiTexts", "", buildUiTexts(ctx, report, now, plugins.record));
|
|
7837
8031
|
report.texts.sectionKeys = [...ctx.siteTexts.keys()].filter((k) => SECTION_KEYS.has(k)).length;
|
|
7838
8032
|
if (input.projectTexts) report.texts.projectKeys = Object.keys(input.projectTexts).filter((k) => ctx.fileCustomized(k)).length;
|
|
7839
8033
|
const business = convertBusiness(t, now);
|
|
@@ -7851,7 +8045,7 @@ function convertV1(input) {
|
|
|
7851
8045
|
for (const u of report.unknownTables) ctx.warnings.push(`Tabela pr\xF3pria do projeto na v1 (${u.table}, ${u.count} documentos): n\xE3o convertida. Leve-a para o convex/ do projeto v2 (schema e fun\xE7\xF5es) e importe \xE0 parte.`);
|
|
7852
8046
|
return { tables: out, sources, pending, report };
|
|
7853
8047
|
}
|
|
7854
|
-
var V1_TEXTS, PT, EN, LOCALES, V1_PLUGIN_DEFAULTS, TABLE_MAP, DROPPED_TABLES, str2, V1_NAV_ORDER, hasText, compact, meta2, lifecycle, MONTHS, PRESENT, Ctx, CASE_SECTIONS, link2, ABOUT_TEXT, RESULT_UNITS, NUMBER_WITH_UNIT, RESUME_SUMMARY, hasHeader, header, HOME_METRICS, SECTION_FILLERS, PAGE_META, SECTION_KEYS, UI_TEXT_MAP, V1_LABELS, UI_TEXT_ADAPT;
|
|
8048
|
+
var V1_TEXTS, PT, EN, LOCALES, V1_PLUGIN_DEFAULTS, TABLE_MAP, DROPPED_TABLES, str2, V1_NAV_ORDER, hasText, compact, meta2, lifecycle, MONTHS, PRESENT, Ctx, CASE_SECTIONS, link2, ABOUT_TEXT, RESULT_UNITS, NUMBER_WITH_UNIT, RESUME_SUMMARY, hasHeader, header, HOME_METRICS, SECTION_FILLERS, PAGE_META, SECTION_KEYS, UI_TEXT_MAP, V1_LABELS, UI_TEXT_ADAPT, V1_WIZARD_FLOWS;
|
|
7855
8049
|
var init_convert = __esm({
|
|
7856
8050
|
"src/migrate/convert.ts"() {
|
|
7857
8051
|
"use strict";
|
|
@@ -8100,14 +8294,15 @@ var init_convert = __esm({
|
|
|
8100
8294
|
return hasText(body) ? { title: ctx.t("home.about.title"), body } : null;
|
|
8101
8295
|
},
|
|
8102
8296
|
servicos: (ctx) => ({ title: ctx.t("home.skills.title") }),
|
|
8103
|
-
depoimentos
|
|
8297
|
+
// "Ver todos os depoimentos" levava à página de depoimentos (que existe com o plugin ligado).
|
|
8298
|
+
depoimentos: (ctx, plugins) => compact({ title: ctx.t("home.testimonials.title"), allowSubmission: plugins["testimonials-intake"] !== false, cta: hasText(ctx.t("testimonials.viewAll")) ? link2(ctx.t("testimonials.viewAll"), "/depoimentos") : void 0 }),
|
|
8104
8299
|
cta: (ctx, plugins) => compact({
|
|
8105
8300
|
title: ctx.t("home.cta.title"),
|
|
8106
8301
|
body: ctx.t("home.cta.subtitle"),
|
|
8107
8302
|
primary: link2(ctx.t("home.cta.project"), "#contato"),
|
|
8108
8303
|
secondary: plugins["contact-wizard"] !== false ? link2(ctx.t("home.cta.job"), "#contato") : void 0
|
|
8109
8304
|
}),
|
|
8110
|
-
contato: (ctx, plugins) =>
|
|
8305
|
+
contato: (ctx, plugins) => plugins["contact-wizard"] === false ? { anchor: "contato", title: ctx.t("sidebar.contact"), mode: "channels", showChannels: true } : contactWizardFields(ctx),
|
|
8111
8306
|
"posts-recentes": (ctx) => compact({ title: ctx.t("blog.title"), cta: link2(ctx.t("blog.title"), "/blog") })
|
|
8112
8307
|
},
|
|
8113
8308
|
"/sobre": {
|
|
@@ -8147,7 +8342,13 @@ var init_convert = __esm({
|
|
|
8147
8342
|
},
|
|
8148
8343
|
"/blog": {
|
|
8149
8344
|
hero: (ctx) => header(ctx, "blog"),
|
|
8150
|
-
|
|
8345
|
+
// O blog da v1 sempre teve os destaques em carrossel, a busca e o filtro por etiquetas.
|
|
8346
|
+
"posts-recentes": (ctx, _p, recipe) => ({
|
|
8347
|
+
...hasHeader(recipe) ? {} : { title: ctx.t("blog.title"), intro: ctx.t("blog.subtitle") },
|
|
8348
|
+
showTagFilter: true,
|
|
8349
|
+
showSearch: true,
|
|
8350
|
+
showFeatured: true
|
|
8351
|
+
})
|
|
8151
8352
|
},
|
|
8152
8353
|
"/depoimentos": {
|
|
8153
8354
|
hero: (ctx) => header(ctx, "testimonials"),
|
|
@@ -8192,6 +8393,7 @@ var init_convert = __esm({
|
|
|
8192
8393
|
"portfolio.subtitle",
|
|
8193
8394
|
"testimonials.title",
|
|
8194
8395
|
"testimonials.subtitle",
|
|
8396
|
+
"testimonials.viewAll",
|
|
8195
8397
|
"home.greeting",
|
|
8196
8398
|
"navigation.home",
|
|
8197
8399
|
"navigation.about",
|
|
@@ -8213,7 +8415,6 @@ var init_convert = __esm({
|
|
|
8213
8415
|
"portfolio.decisions",
|
|
8214
8416
|
"portfolio.results",
|
|
8215
8417
|
"portfolio.learnings",
|
|
8216
|
-
"portfolio.metrics",
|
|
8217
8418
|
"portfolio.testimonial",
|
|
8218
8419
|
"portfolio.liveDemo",
|
|
8219
8420
|
"portfolio.code"
|
|
@@ -8221,7 +8422,8 @@ var init_convert = __esm({
|
|
|
8221
8422
|
UI_TEXT_MAP = {
|
|
8222
8423
|
"blog.readMore": "common.readMore",
|
|
8223
8424
|
"common.back": "common.back",
|
|
8224
|
-
|
|
8425
|
+
// O botão do envio de depoimento é o da ilha (`testimonialForm.open`).
|
|
8426
|
+
"testimonials.leaveTestimonial": "testimonialForm.open",
|
|
8225
8427
|
"testimonials.empty": "common.empty",
|
|
8226
8428
|
"resume.experience": "resume.experience",
|
|
8227
8429
|
"resume.education": "resume.education",
|
|
@@ -8237,7 +8439,25 @@ var init_convert = __esm({
|
|
|
8237
8439
|
"sidebar.downloadCV": "sidebar.downloadCV",
|
|
8238
8440
|
"portfolio.screenshots": "case.gallery",
|
|
8239
8441
|
"home.cases.read": "case.view",
|
|
8442
|
+
"portfolio.viewCase": "case.view",
|
|
8443
|
+
"portfolio.details": "case.details",
|
|
8444
|
+
"portfolio.all": "cases.all",
|
|
8445
|
+
"portfolio.metrics": "case.metrics",
|
|
8446
|
+
"portfolio.nextCase": "case.next",
|
|
8447
|
+
"portfolio.ctaTitle": "case.ctaTitle",
|
|
8448
|
+
"portfolio.ctaSubtitle": "case.ctaBody",
|
|
8449
|
+
"portfolio.ctaProject": "case.ctaButton",
|
|
8450
|
+
"portfolio.expandImage": "gallery.expand",
|
|
8451
|
+
"portfolio.previousImage": "gallery.prev",
|
|
8452
|
+
"portfolio.nextImage": "gallery.next",
|
|
8240
8453
|
"blog.filterByTags": "blog.filter",
|
|
8454
|
+
"blog.featured": "blog.featured",
|
|
8455
|
+
"blog.readNow": "blog.readNow",
|
|
8456
|
+
"blog.searchPlaceholder": "blog.search",
|
|
8457
|
+
"blog.backToBlog": "blog.back",
|
|
8458
|
+
"blog.authorCta": "blog.authorCta",
|
|
8459
|
+
"blog.authorLine": "blog.authorLine",
|
|
8460
|
+
"blog.relatedCase": "blog.relatedCase",
|
|
8241
8461
|
"sidebar.language": "nav.language",
|
|
8242
8462
|
"sidebar.menu": "nav.menu",
|
|
8243
8463
|
"contactWizard.contact.name": "form.name",
|
|
@@ -8248,6 +8468,8 @@ var init_convert = __esm({
|
|
|
8248
8468
|
"contactWizard.rateLimited": "form.rateLimited",
|
|
8249
8469
|
"contactWizard.back": "form.back",
|
|
8250
8470
|
"notFound.cta": "notFound.home",
|
|
8471
|
+
"notFound.label": "notFound.label",
|
|
8472
|
+
"notFound.errorCode": "notFound.code",
|
|
8251
8473
|
"portfolio.myRole": "case.role",
|
|
8252
8474
|
"home.availability.label": "hero.available"
|
|
8253
8475
|
};
|
|
@@ -8266,11 +8488,58 @@ var init_convert = __esm({
|
|
|
8266
8488
|
"sidebar.downloadCV",
|
|
8267
8489
|
"testimonials.leaveTestimonial",
|
|
8268
8490
|
"portfolio.screenshots",
|
|
8269
|
-
"blog.filterByTags"
|
|
8491
|
+
"blog.filterByTags",
|
|
8492
|
+
"portfolio.metrics",
|
|
8493
|
+
"notFound.cta",
|
|
8494
|
+
"blog.featured",
|
|
8495
|
+
"blog.backToBlog",
|
|
8496
|
+
"blog.authorCta"
|
|
8270
8497
|
];
|
|
8271
8498
|
UI_TEXT_ADAPT = {
|
|
8272
8499
|
"resume.showOlder": (s) => s.includes("{count}") ? s : `${s} ({count})`
|
|
8273
8500
|
};
|
|
8501
|
+
V1_WIZARD_FLOWS = [
|
|
8502
|
+
{
|
|
8503
|
+
id: "project",
|
|
8504
|
+
emoji: "\u{1F4BC}",
|
|
8505
|
+
steps: [
|
|
8506
|
+
{ kind: "choice", key: "projectType", n: 1, options: ["webapp", "mobile", "landing", "system", "consulting", "other"] },
|
|
8507
|
+
{ kind: "choice", key: "timeline", n: 2, options: ["urgent", "short", "medium", "flexible"] },
|
|
8508
|
+
{ kind: "choice", key: "budget", n: 3, options: ["small", "medium", "large", "enterprise", "unknown"] },
|
|
8509
|
+
{ kind: "textarea", key: "description", n: 4, placeholders: ["placeholder"] },
|
|
8510
|
+
{ kind: "contact", askPhone: true, askLinkedin: true }
|
|
8511
|
+
]
|
|
8512
|
+
},
|
|
8513
|
+
{
|
|
8514
|
+
id: "job",
|
|
8515
|
+
emoji: "\u{1F9D1}\u200D\u{1F4BC}",
|
|
8516
|
+
steps: [
|
|
8517
|
+
{ kind: "choice", key: "contractType", n: 1, options: ["clt", "pj", "freelance"] },
|
|
8518
|
+
{ kind: "choice", key: "modality", n: 2, options: ["remote", "hybrid", "onsite"] },
|
|
8519
|
+
{ kind: "choice", key: "area", n: 3, options: ["frontend", "fullstack", "techlead"] },
|
|
8520
|
+
{ kind: "text", key: "jobCompany,jobRole", n: 4, placeholders: ["companyPlaceholder", "rolePlaceholder"] },
|
|
8521
|
+
{ kind: "contact", askLinkedin: true }
|
|
8522
|
+
]
|
|
8523
|
+
},
|
|
8524
|
+
{
|
|
8525
|
+
id: "networking",
|
|
8526
|
+
emoji: "\u{1F91D}",
|
|
8527
|
+
steps: [
|
|
8528
|
+
{ kind: "choice", key: "howFound", n: 1, options: ["blog", "linkedin", "referral", "portfolio"] },
|
|
8529
|
+
{ kind: "textarea", key: "subject", n: 2, placeholders: ["placeholder"] },
|
|
8530
|
+
{ kind: "contact", askLinkedin: true }
|
|
8531
|
+
]
|
|
8532
|
+
},
|
|
8533
|
+
{
|
|
8534
|
+
id: "feedback",
|
|
8535
|
+
emoji: "\u{1F4AC}",
|
|
8536
|
+
steps: [
|
|
8537
|
+
{ kind: "choice", key: "about", n: 1, options: ["post", "project", "general"] },
|
|
8538
|
+
{ kind: "textarea", key: "message", n: 2, placeholders: ["placeholder"] },
|
|
8539
|
+
{ kind: "contact" }
|
|
8540
|
+
]
|
|
8541
|
+
}
|
|
8542
|
+
];
|
|
8274
8543
|
}
|
|
8275
8544
|
});
|
|
8276
8545
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-rubrica",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "CLI do Rubrica v2: cria, configura, publica, atualiza e migra sites feitos com @rubrica/core",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"tsup": "^8.3.0",
|
|
47
47
|
"typescript": "^5.9.0",
|
|
48
48
|
"vitest": "^3.2.4",
|
|
49
|
-
"@rubrica/core": "^2.1.
|
|
49
|
+
"@rubrica/core": "^2.1.1"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"build": "tsup",
|