@nuvler/cli 0.5.12 → 0.5.13

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/README.md CHANGED
@@ -193,7 +193,7 @@ SDK pode ser maior que a da Theme API. Os scripts do projeto usam esse CLI local
193
193
  Para versões específicas:
194
194
 
195
195
  ```bash
196
- nuvler theme upgrade --sdk 1.4.3 --cli 0.5.12
196
+ nuvler theme upgrade --sdk 1.4.3 --cli 0.5.13
197
197
  ```
198
198
 
199
199
  Não altere o `id` do tema: ele identifica o mesmo tema no Registry.
@@ -362,7 +362,7 @@ Atualiza o Theme SDK e o CLI local sem alterar a versão publicada do tema:
362
362
 
363
363
  ```bash
364
364
  nuvler theme upgrade
365
- nuvler theme upgrade --sdk 1.4.3 --cli 0.5.12
365
+ nuvler theme upgrade --sdk 1.4.3 --cli 0.5.13
366
366
  nuvler theme upgrade --bump patch
367
367
  ```
368
368
 
@@ -19,7 +19,7 @@
19
19
  "react": "^19.0.0"
20
20
  },
21
21
  "devDependencies": {
22
- "@nuvler/cli": "^0.5.12",
22
+ "@nuvler/cli": "^0.5.13",
23
23
  "@types/react": "^19.0.0",
24
24
  "react": "^19.0.0",
25
25
  "typescript": "^5.9.0"
@@ -65,7 +65,7 @@ Para compilar, gerar o artefato ou publicar, execute na raiz do tooling:
65
65
 
66
66
  ```bash
67
67
  npm run pack:store
68
- npm publish ./artifacts/nuvler-theme-default-1.1.5.tgz --access public
68
+ npm publish ./artifacts/nuvler-theme-default-1.1.7.tgz --access public
69
69
 
70
70
  node packages/cli/dist/nuvler.js theme build --theme themes/nuvler-default
71
71
  npm run pack:theme -- nuvler-default
@@ -73,7 +73,7 @@ node packages/cli/dist/nuvler.js theme publish --theme themes/nuvler-default --o
73
73
  ```
74
74
 
75
75
  O pacote npm contém o renderer local e o CSS. O artefato do Theme Registry é
76
- gerado separadamente como `artifacts/nuvler-default-1.1.5.nuvler-theme.tgz`.
76
+ gerado separadamente como `artifacts/nuvler-default-1.1.7.nuvler-theme.tgz`.
77
77
 
78
78
  Exemplo no App Router:
79
79
 
@@ -2,7 +2,7 @@
2
2
  "schemaVersion": 1,
3
3
  "id": "nuvler-default",
4
4
  "name": "Nuvler Default",
5
- "version": "1.1.5",
5
+ "version": "1.1.7",
6
6
  "runtimeVersion": "1",
7
7
  "sdkVersion": "^1.3.3",
8
8
  "entry": "src/theme.tsx",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuvler/theme-default",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "Tema padrão oficial da Nuvler",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -1,7 +1,14 @@
1
1
  "use client";
2
2
 
3
3
  import type { NotFoundProps } from "@nuvler/theme-sdk";
4
- import cloudIllustration from "./assets/not-found-cloud.svg?raw";
4
+
5
+ function SadCloudIllustration() {
6
+ return <svg className="nuvler-not-found-cloud-svg" viewBox="0 0 640 420" aria-hidden="true">
7
+ <path fill="currentColor" fillRule="evenodd" clipRule="evenodd" d="M124 319C75 319 36 282 36 236C36 195 67 161 108 155C112 100 158 58 215 58C242 58 267 67 287 83C316 45 362 22 413 22C488 22 550 77 559 148C605 154 640 192 640 238C640 283 603 319 556 319H124ZM250 183C239 183 232 194 232 210C232 226 239 237 250 237C261 237 268 226 268 210C268 194 261 183 250 183ZM391 183C380 183 373 194 373 210C373 226 380 237 391 237C402 237 409 226 409 210C409 194 402 183 391 183ZM210 164C224 160 238 152 250 140C254 136 260 137 263 141C267 145 266 151 262 155C248 169 231 178 215 181C210 182 206 179 205 174C204 169 206 166 210 164ZM432 164C418 160 404 152 392 140C388 136 382 137 379 141C375 145 376 151 380 155C394 169 411 178 427 181C432 182 436 179 437 174C438 169 436 166 432 164ZM282 260C292 241 307 232 321 232C336 232 351 241 360 260C362 265 360 270 355 272C350 274 346 271 344 267C338 254 330 247 321 247C312 247 304 254 297 267C295 271 290 274 285 272C280 270 279 265 282 260Z" />
8
+ <path fill="currentColor" fillRule="evenodd" clipRule="evenodd" d="M165 286C165 254 190 229 222 229C254 229 280 254 280 286C280 316 259 339 231 344C219 346 209 341 202 332C195 342 184 347 172 344C145 338 128 312 135 286C139 270 149 258 165 250V286ZM167 300C171 297 176 298 179 302C187 311 192 320 195 331C196 336 193 340 188 341C183 342 179 339 178 334C176 326 171 317 164 310C161 306 162 302 167 300ZM192 294C196 291 201 292 204 296C212 305 217 314 220 325C221 330 218 334 213 335C208 336 204 333 203 328C201 320 196 311 189 304C186 300 187 296 192 294Z" />
9
+ <path fill="currentColor" fillRule="evenodd" clipRule="evenodd" d="M360 286C360 254 386 229 418 229C450 229 476 254 476 286C476 316 455 339 427 344C415 346 405 341 398 332C391 342 380 347 368 344C341 338 324 312 331 286C335 270 345 258 360 250V286ZM362 300C366 297 371 298 374 302C382 311 387 320 390 331C391 336 388 340 383 341C378 342 374 339 373 334C371 326 366 317 359 310C356 306 357 302 362 300ZM387 294C391 291 396 292 399 296C407 305 412 314 415 325C416 330 413 334 408 335C403 336 399 333 398 328C396 320 391 311 384 304C381 300 382 296 387 294Z" />
10
+ </svg>;
11
+ }
5
12
 
6
13
  export function NotFound({ homeHref = "/" }: NotFoundProps) {
7
14
  const goBack = () => {
@@ -15,7 +22,7 @@ export function NotFound({ homeHref = "/" }: NotFoundProps) {
15
22
  return <main className="nuvler-not-found">
16
23
  <div className="nuvler-not-found-content">
17
24
  <div className="nuvler-not-found-visual" aria-hidden="true">
18
- <span className="nuvler-not-found-cloud-svg" dangerouslySetInnerHTML={{ __html: cloudIllustration }} />
25
+ <SadCloudIllustration />
19
26
  <span className="nuvler-not-found-code">404</span>
20
27
  </div>
21
28
  <h1>Página não encontrada</h1>
@@ -475,20 +475,16 @@ html {
475
475
  .nuvler-not-found-cloud-svg {
476
476
  position: absolute;
477
477
  z-index: 2;
478
+ display: block;
478
479
  top: 0;
479
480
  left: 50%;
480
481
  width: 82%;
482
+ height: auto;
481
483
  aspect-ratio: 640 / 420;
482
484
  transform: translateX(-50%);
483
485
  color: var(--color-primary);
484
486
  }
485
487
 
486
- .nuvler-not-found-cloud-svg svg {
487
- display: block;
488
- width: 100%;
489
- height: 100%;
490
- }
491
-
492
488
  .nuvler-not-found-code {
493
489
  position: absolute;
494
490
  z-index: 1;
@@ -2543,7 +2539,7 @@ a.mini-banner-card:focus-visible {
2543
2539
  .product-card-image > .store-image-placeholder {
2544
2540
  width: 100%;
2545
2541
  height: 100%;
2546
- object-fit: cover;
2542
+ object-fit: contain;
2547
2543
  transition: transform 300ms ease;
2548
2544
  }
2549
2545
 
@@ -2579,7 +2575,7 @@ a.mini-banner-card:focus-visible {
2579
2575
  }
2580
2576
 
2581
2577
  .product-card:hover .product-card-image img {
2582
- transform: scale(1.035);
2578
+ transform: none;
2583
2579
  }
2584
2580
 
2585
2581
  .store-image-placeholder {
@@ -4303,7 +4299,7 @@ a.mini-banner-card:focus-visible {
4303
4299
  .product-carousel-track { gap: 12px; padding-bottom: 16px; }
4304
4300
  .product-carousel-item { flex-basis: calc((100% - 36px) / 4); min-width: 205px; }
4305
4301
  .product-card { border-radius: 8px; }
4306
- .product-card-image { aspect-ratio: 1 / 1.05; }
4302
+ .product-card-image { aspect-ratio: 5 / 4; }
4307
4303
  .product-card-content { padding: 12px; }
4308
4304
  .product-category { margin-bottom: 5px; font-size: 8px; }
4309
4305
  .product-card h3 { min-height: 38px; font-size: 13px; line-height: 1.35; }
@@ -19,7 +19,7 @@
19
19
  "react": "^19.0.0"
20
20
  },
21
21
  "devDependencies": {
22
- "@nuvler/cli": "^0.5.12",
22
+ "@nuvler/cli": "^0.5.13",
23
23
  "@types/react": "^19.0.0",
24
24
  "react": "^19.0.0",
25
25
  "typescript": "^5.9.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuvler/cli",
3
- "version": "0.5.12",
3
+ "version": "0.5.13",
4
4
  "description": "CLI oficial para criação, validação, preview e empacotamento de temas Nuvler",
5
5
  "type": "module",
6
6
  "bin": {