@salesforce/storefront-next-dev 1.4.0 → 1.4.1-alpha.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.
Files changed (137) hide show
  1. package/README.md +13 -2
  2. package/dist/assets.js +25 -0
  3. package/dist/audit/catalog/categories/best-practices/CATEGORY.md +21 -0
  4. package/dist/audit/catalog/categories/best-practices/rules/commerce-api-client.md +20 -0
  5. package/dist/audit/catalog/categories/best-practices/rules/error-boundaries.md +19 -0
  6. package/dist/audit/catalog/categories/best-practices/rules/production-integrations.md +20 -0
  7. package/dist/audit/catalog/categories/best-practices/rules/route-revalidation.md +19 -0
  8. package/dist/audit/catalog/categories/best-practices/rules/server-data-loading.md +19 -0
  9. package/dist/audit/catalog/categories/performance/CATEGORY.md +18 -0
  10. package/dist/audit/catalog/categories/performance/rules/app-config-size.js +15 -0
  11. package/dist/audit/catalog/categories/performance/rules/app-config-size.md +22 -0
  12. package/dist/audit/catalog/categories/performance/rules/cache-control.js +59 -0
  13. package/dist/audit/catalog/categories/performance/rules/cache-control.md +20 -0
  14. package/dist/audit/catalog/categories/performance/rules/cls-budget.js +13 -0
  15. package/dist/audit/catalog/categories/performance/rules/cls-budget.md +20 -0
  16. package/dist/audit/catalog/categories/performance/rules/content-encoding.js +35 -0
  17. package/dist/audit/catalog/categories/performance/rules/content-encoding.md +20 -0
  18. package/dist/audit/catalog/categories/performance/rules/dom-size.js +18 -0
  19. package/dist/audit/catalog/categories/performance/rules/dom-size.md +22 -0
  20. package/dist/audit/catalog/categories/performance/rules/html-document-size.js +15 -0
  21. package/dist/audit/catalog/categories/performance/rules/html-document-size.md +20 -0
  22. package/dist/audit/catalog/categories/performance/rules/image-dimensions.js +141 -0
  23. package/dist/audit/catalog/categories/performance/rules/image-dimensions.md +22 -0
  24. package/dist/audit/catalog/categories/performance/rules/image-transformation.js +117 -0
  25. package/dist/audit/catalog/categories/performance/rules/image-transformation.md +22 -0
  26. package/dist/audit/catalog/categories/performance/rules/javascript-size.js +126 -0
  27. package/dist/audit/catalog/categories/performance/rules/javascript-size.md +20 -0
  28. package/dist/audit/catalog/categories/performance/rules/large-images.js +187 -0
  29. package/dist/audit/catalog/categories/performance/rules/large-images.md +22 -0
  30. package/dist/audit/catalog/categories/performance/rules/lcp-budget.js +13 -0
  31. package/dist/audit/catalog/categories/performance/rules/lcp-budget.md +20 -0
  32. package/dist/audit/catalog/categories/performance/rules/lcp-image-priority.js +227 -0
  33. package/dist/audit/catalog/categories/performance/rules/lcp-image-priority.md +27 -0
  34. package/dist/audit/catalog/categories/performance/rules/page-data-size.js +15 -0
  35. package/dist/audit/catalog/categories/performance/rules/page-data-size.md +22 -0
  36. package/dist/audit/catalog/categories/performance/rules/reduce-javascript-on-load.js +97 -0
  37. package/dist/audit/catalog/categories/performance/rules/reduce-javascript-on-load.md +73 -0
  38. package/dist/audit/catalog/categories/performance/rules/render-blocking-font-size.js +201 -0
  39. package/dist/audit/catalog/categories/performance/rules/render-blocking-font-size.md +20 -0
  40. package/dist/audit/catalog/categories/performance/rules/server-request-waterfall.md +85 -0
  41. package/dist/audit/catalog/categories/performance/rules/tbt-budget.js +13 -0
  42. package/dist/audit/catalog/categories/performance/rules/tbt-budget.md +20 -0
  43. package/dist/audit/catalog/categories/performance/rules/third-party-fonts.js +265 -0
  44. package/dist/audit/catalog/categories/performance/rules/third-party-fonts.md +20 -0
  45. package/dist/audit/catalog/categories/performance/rules/ttfb-budget.js +17 -0
  46. package/dist/audit/catalog/categories/performance/rules/ttfb-budget.md +20 -0
  47. package/dist/audit/catalog/categories/security/CATEGORY.md +17 -0
  48. package/dist/audit/catalog/categories/security/rules/browser-hardening-headers.js +37 -0
  49. package/dist/audit/catalog/categories/security/rules/browser-hardening-headers.md +20 -0
  50. package/dist/audit/catalog/categories/security/rules/content-security-policy.js +40 -0
  51. package/dist/audit/catalog/categories/security/rules/content-security-policy.md +20 -0
  52. package/dist/audit/catalog/categories/security/rules/csp-runtime-compatibility.md +24 -0
  53. package/dist/audit/catalog/categories/security/rules/dependency-vulnerabilities.md +19 -0
  54. package/dist/audit/catalog/categories/security/rules/dynamic-code-execution.md +19 -0
  55. package/dist/audit/catalog/categories/security/rules/hardcoded-credentials.md +19 -0
  56. package/dist/audit/catalog/categories/security/rules/html-config-secrets.js +46 -0
  57. package/dist/audit/catalog/categories/security/rules/html-config-secrets.md +22 -0
  58. package/dist/audit/catalog/categories/security/rules/protected-route-authorization.md +19 -0
  59. package/dist/audit/catalog/categories/security/rules/public-client-secrets.md +20 -0
  60. package/dist/audit/catalog/categories/security/rules/raw-html-sinks.md +20 -0
  61. package/dist/audit/catalog/categories/security/rules/strict-transport-security.js +183 -0
  62. package/dist/audit/catalog/categories/security/rules/strict-transport-security.md +24 -0
  63. package/dist/audit/catalog/categories/seo/CATEGORY.md +17 -0
  64. package/dist/audit/catalog/categories/seo/rules/canonical-url.md +20 -0
  65. package/dist/audit/catalog/categories/seo/rules/locale-alternates.md +19 -0
  66. package/dist/audit/catalog/categories/seo/rules/meta-description.md +19 -0
  67. package/dist/audit/catalog/categories/seo/rules/page-title.md +19 -0
  68. package/dist/audit/catalog/categories/seo/rules/robots-indexing.md +20 -0
  69. package/dist/audit/catalog/categories/seo/rules/structured-data.md +19 -0
  70. package/dist/audit/instructions/evaluate-rule.md +42 -0
  71. package/dist/audit/schemas/audit-result.schema.json +1237 -0
  72. package/dist/audit/ui/assets/banner-brand-default-CDRB3_S0.png +0 -0
  73. package/dist/audit/ui/assets/banner-group-public-default-BGRJzVY8.png +0 -0
  74. package/dist/audit/ui/assets/banner-user-default-BW81Ba3z.png +0 -0
  75. package/dist/audit/ui/assets/bg-info@2x-CzpP0vaE.png +0 -0
  76. package/dist/audit/ui/assets/einstein-figure-B1xFOo8O.svg +1 -0
  77. package/dist/audit/ui/assets/group_avatar_160-CrxVHlYA.png +0 -0
  78. package/dist/audit/ui/assets/group_avatar_200-CSLS8I0r.png +0 -0
  79. package/dist/audit/ui/assets/index-BKCWlO9b.css +1 -0
  80. package/dist/audit/ui/assets/index-CUPt8e4A.js +44 -0
  81. package/dist/audit/ui/assets/profile_avatar_160-CtQTUBo0.png +0 -0
  82. package/dist/audit/ui/assets/profile_avatar_200-DAztxshF.png +0 -0
  83. package/dist/audit/ui/assets/symbols-BRmpfDbO.svg +1 -0
  84. package/dist/audit/ui/assets/symbols-D0Ne6690.svg +1 -0
  85. package/dist/audit/ui/einstein.png +0 -0
  86. package/dist/audit/ui/index.html +13 -0
  87. package/dist/audit.js +1896 -0
  88. package/dist/cartridge-services/index.d.ts +5 -0
  89. package/dist/cartridge-services/index.d.ts.map +1 -1
  90. package/dist/cartridge-services/index.js +94 -7
  91. package/dist/cartridge-services/index.js.map +1 -1
  92. package/dist/catalog.js +89 -0
  93. package/dist/commands/audit/catalog.js +27 -0
  94. package/dist/commands/audit/finalize.js +42 -0
  95. package/dist/commands/audit/prepare.js +84 -0
  96. package/dist/commands/audit/progress.js +51 -0
  97. package/dist/commands/audit/serve.js +63 -0
  98. package/dist/commands/config/aggregate-extensions.js +1 -0
  99. package/dist/commands/create-bundle.js +2 -1
  100. package/dist/commands/create-instructions.js +1 -0
  101. package/dist/commands/create-storefront.js +1 -0
  102. package/dist/commands/deploy-cartridge.js +11 -3
  103. package/dist/commands/dev.js +2 -0
  104. package/dist/commands/extensions/create.js +1 -0
  105. package/dist/commands/extensions/install.js +1 -0
  106. package/dist/commands/extensions/list.js +1 -0
  107. package/dist/commands/extensions/remove.js +1 -0
  108. package/dist/commands/generate-cartridge.js +49 -5
  109. package/dist/commands/locales/aggregate-extensions.js +1 -0
  110. package/dist/commands/prepare-local.js +1 -0
  111. package/dist/commands/preview.js +2 -0
  112. package/dist/commands/push.js +3 -1
  113. package/dist/commands/validate-cartridge.js +13 -4
  114. package/dist/config.js +13 -2
  115. package/dist/document-size.js +231 -0
  116. package/dist/events.js +688 -0
  117. package/dist/flags2.js +34 -0
  118. package/dist/generate-cartridge.js +41 -6
  119. package/dist/har.js +205 -0
  120. package/dist/images.js +146 -0
  121. package/dist/index.js +3 -3
  122. package/dist/index.js.map +1 -1
  123. package/dist/live.js +277 -0
  124. package/dist/logger.js +1 -4
  125. package/dist/measured-run.js +91 -0
  126. package/dist/metric-budget.js +125 -0
  127. package/dist/mrt/ssr.mjs +19 -19
  128. package/dist/mrt/ssr.mjs.map +1 -1
  129. package/dist/mrt/streamingHandler.mjs +26 -26
  130. package/dist/mrt/streamingHandler.mjs.map +1 -1
  131. package/dist/package.js +5 -0
  132. package/dist/sanitize.js +185 -0
  133. package/dist/schema.js +121 -0
  134. package/dist/server.js +8 -60
  135. package/dist/server2.js +185 -0
  136. package/dist/ts-import.js +57 -0
  137. package/package.json +22 -5
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 653 752"><path fill="#fdd5a6" d="M155 700c14-6 26-23 34-54a94 94 0 0 0 4-16c1-10-15-25-21-35-22-30-39-15-43-18l-28-25c-9-8-30-23-32-7s28 39 24 45l-1 1c-4 0-11 0-13 5l-2 10a10 10 0 0 0 2 9 3 3 0 0 1 0 4c-3 1-4 4-4 8v11a9 9 0 0 0 5 8 5 5 0 0 1 2 6 13 13 0 0 0-1 6 20 20 0 0 0 3 11 90 90 0 0 0 44 30"/><path fill="#fbbf88" d="m129 577-28-25c-9-8-30-23-32-7s28 39 24 45l-1 1h12v-3a80 80 0 0 1 25-11zm52 123a57 57 0 0 0 0-26s-25-6-28-28c-5-43-13-33-19-34a63 63 0 0 1 2 36 30 30 0 0 1-12 22c-9 6-24 4-37 3 4 8 22 19 39 27"/><path fill="#815a37" d="m211 700 20-46s35-49 22-42c-24 21-61 8-61 8s8 53-69 80"/><path fill="#dcad84" d="M106 590c-3-6 1 15 13 21a36 36 0 0 0 23 1 44 44 0 0 1-36-22z"/><path fill="#163860" d="M391 708c3-59 4-121 4-121l-124 20a410 410 0 0 0-48 93l112 1z"/><path fill="#0c233b" d="m220 700 32-69 16-23 3 7a642 642 0 0 0-37 85m82-32-1 2zm5-5-2 2zm-15 16-1 1zm40-40-2 1zm-16 14-1 2zm-4 5-2 2zm-39 9 1 2zm4 6 1 2zm-5-9 1 2zm3 6 1 2zm-7-16 1 2zm-2-3 1 2zm-1-3 1 2zm4 10 1 2zm1 3 1 2z"/><path fill="#dadad9" d="m349 619-43 47-17-20s-7-35 0-52l4-8 59 7z"/><path fill="#fff" d="M383 562h18l-2 17-44 77-29-55-7-5-44 50a132 132 0 0 1-6-48c1-10 0-18 7-22 1 0 64 42 107-14z"/><path fill="#159ad6" d="m314 603-26 39a60 60 0 0 0 12 31l28-31v-39z"/><path fill="#1580af" d="M311 608a15 15 0 0 0 17 2v-5l-14-1z"/><path fill="#815a37" d="M211 700c12-35 36-88 60-112l6 9a643 643 0 0 0-48 103z"/><path fill="#c1c0bd" d="m328 604 2 36-2 2z"/><path fill="#815a37" d="M400 559s70-20 73-18a673 673 0 0 0 30 167H388l12-149z"/><path fill="#472a16" d="m400 575 15-2a123 123 0 0 0 22 64s-36 14-44 27l34-4a361 361 0 0 1-17 46h-21z"/><path fill="#693521" d="m393 574 13-10a139 139 0 0 0 18 66s-27 18-31 34l38-6a474 474 0 0 0-26 50h-19z"/><path fill="#c1c0bd" d="M287 635a251 251 0 0 0 17-23l-18 20a8 8 0 0 1 1 3z"/><path fill="#0c233b" d="m392 595-37 61 36-63z"/><path fill="#1580af" d="m288 642 1-2a80 80 0 0 0 11 33 51 51 0 0 1-12-31z"/><path fill="#0c233b" d="m287 635-12 11 12-14z"/><path fill="#159ad6" d="M337 597c0 6-7 10-16 10s-16-5-16-10c0-9 7-10 16-10s16 1 16 10z"/><path fill="#5b4026" d="M436 751c-10 2-20-19-20-19l27-12c1 0 3 29-7 31z"/><path fill="#fcd7a9" d="M387 664c-39 3-100 16-103 43-2 27 148 20 148 20a117 117 0 0 0 5-20c1-19-5-46-50-43z"/><path fill="#dbac83" d="M392 664s28 3 35 17a34 34 0 0 1 5 26c-6 17-33 20-51 20-33 0-83-11-97-20-2 15 52 36 95 39 28 2 30-18 68-12a84 84 0 0 0 4-27c-1-21-11-48-59-43z"/><path fill="#815a37" d="M441 708a70 70 0 0 1-7 43c38 6 105-24 119-43a8 8 0 0 0 2-4c6-20-8-62-27-101a160 160 0 0 0-56-62l-17 106c-50 6-62 17-62 17 33-2 46 21 48 44z"/><path fill="#5b4026" d="M467 597s-8 38-9 50c0 0-22-4-65 17a123 123 0 0 1 61-23 320 320 0 0 1 13-44z"/><path fill="#fdd5a6" d="m383 542 2 24a75 75 0 0 1-67 34c-18-1-42-8-44-18a49 49 0 0 1 0-24z"/><path fill="#cdad87" d="M376 577a195 195 0 0 1-107-1l1-15 108-16z"/><path fill="#5b4026" d="M261 550c0-22 47-39 105-39s105 17 105 39-47 39-105 39-105-17-105-39z"/><path fill="#f6f7f7" d="M191 501c-21-33-72 10-86 22s5-34 23-40c0 0-41-2-47 27a56 56 0 0 1 19-51s-41 34-50 48a157 157 0 0 1 4-20l-31 5s-8-79 46-94-4-7-4-7-16-29-64-17c0 0 21-164 120-176 0 0-9-35-44-28 0 0 5-18 20-18l-28-14s85-49 154 26c0 0 24-110 24-124s1-30-4-38c0 0 33 6 33 21a17 17 0 0 0-5-20s56 23 51 50l4-23s17 9 18 19 4-24 4-24 57 22 60 105c0 0 147-55 196 94l-37-7s29 12 33 31c0 0 45 12 45 124 0 0-11-46-45-52 0 0 50 21 53 126a113 113 0 0 0-35-21s37 23 23 82c0 0-6-15-35-18l4 11-22-11s-71 6-89 27c0 0-3-28-25-14z"/><path fill="#fcd4a9" d="M519 452c-5 62-46 126-131 123-18 0-35 4-54 3-75-6-148 4-157-103l-2-5a114 114 0 0 1-6-45c6-77 93-135 190-127a230 230 0 0 1 51 10c69 23 114 81 109 144z"/><path fill="#fbc18d" d="M283 305a217 217 0 0 1 76-8 230 230 0 0 1 51 10c70 24 115 82 110 144-2 28-22 120-124 124 0 0 138-93 20-195a438 438 0 0 0-133-75z"/><path fill="#e8e7e6" d="M263 439s4-29-16-26a10 10 0 0 1 5 13s-11-33-54 0c0 0 14-5 19-2 0 0-19 2-20 12 0 0 8-2 11 1 0 0-12 10 5 23 0-1 28-26 50-21z"/><path fill="#232221" d="M245 500c-8-1-14-10-13-22s8-20 15-20c8 1 14 10 13 22s-8 20-15 20zm138-2c-8-1-14-10-13-22s8-20 15-20c8 1 14 10 13 22s-8 20-15 20z"/><path fill="#e8e7e6" d="M381 448s32 0 47 16c0 0 22-10-2-22a17 17 0 0 1 12 1s0-15-24-14a18 18 0 0 1 16-1s-22-23-37-2a17 17 0 0 1 10-12c-8 0-34-2-31 32z"/><path fill="#744e31" d="M441 708a70 70 0 0 1-7 43c38 6 105-24 119-43a8 8 0 0 0 2-4 315 315 0 0 1-61 13 245 245 0 0 1-53-9z"/><path fill="#693521" d="M217 700a730 730 0 0 1 56-98 10 10 0 0 0 0-14l-47 36-1 15-11 9-10 52"/><path fill="#e8e7e6" d="M288 519c-20-16-82-28-75 72 0 0 4-16 14-15 0 0-4 25 9 30 0 0 6-25 16-19 0 0 18 30 35 32 0 0-4-21 7-22l17 25 16-28s11 13 4 18a19 19 0 0 0 19-16s19 7 15 23a32 32 0 0 0 14-27l16 20 4-33s26 10 26 21a50 50 0 0 0-15-48l26 5s-57-66-104-31c-8 6-17 14-44-7z"/><g fill="#dadbd9"><path d="M357 550s65 1 68 49c-1 0-25-44-68-49zm-70 69s-1-47 18-59c0 0-39 13-18 59zm77 1s11-32-7-43c0 0 33 9 7 43zm-53 2s16-35 13-51a22 22 0 0 1 5 11c1 9-1 23-18 40z"/><path d="M319 556s16 32 6 40l1 5a10 10 0 0 1 7 8c0 1 11-26-14-53zm-32 62s-28-43-5-62c0 0-40 33 6 64m-52-14s10-34 26-35c0 0-37-9-26 35z"/><path d="M214 591a28 28 0 0 1 28-17l8-4c-1 1-32-12-36 21zm88-49s-64-60-83 15c0 0 14-29 33-26 0 0-10 4-10 13 1 0 19-20 60-2zm24-4s47-30 82 4c-1 0-26-17-82-4z"/></g><path fill="#f6f7f7" d="M190 501s-2-102 23-102c0 0 11 18 19 19 2 0 0-52 29-64 0 0 92 51 106 30-3-2-36-20-32-35 2-8 74 0 98 77 5 4 17-11 22-31 8-37 21 69 21 71s10-2 18-11-4 57-7 64c18-12 31-12 38-64 6-47-29-110-68-136-32-21-105-38-196-11-109 32-95 127-94 142 2 26 22 43 23 51z"/><g fill="#e8e7e6"><path d="M190 484s-24-26-65 7c0 0 58-11 65 10zM85 451c43-26 66-12 66-12-46-2-53 35-53 35a103 103 0 0 1 93-14l1-14 2-14c-69-34-109 19-109 19zm-19-79s89-45 146 27a183 183 0 0 0-146-27zm361-221s123-34 176 71c0 0-64-87-176-71zm217 221s-3-104-52-110a68 68 0 0 0-25-46s27 11 31 30c1 0 54 13 46 126zM411 159S388 53 348 24c0 0 60 22 60 105zm-311-23s108-33 166 114a237 237 0 0 0-166-114zm0 28s38-5 51 44c-1 0 6-67-51-44zM0 372s47-145 120-174c0 0-94 1-120 174zm255-19c-32-12-109-51-93-100 0 0-35 51 35 80 0 0-41-11-57 1 0 0 67 10 107 32a35 35 0 0 1 15-12l-7-1zm112 31s-126-67-45-74c0 0-144-19 45 74zm0 0s-7 23-92-22c0 0 66 26 92 22zM242 0s13 25-20 163c0 0 79-121 20-163zm145 254s47-46 87-29a70 70 0 0 0-76-11 118 118 0 0 1 29-16s-27-1-36 6c0 0-17-47-110-25 0-1 100-9 106 75zm149 72a107 107 0 0 0 17-46c8-50-48-35-48-35s43-4 38 32-67 70-67 70c5-22 5-47-17-59 0 0 16 40-11 108-6-120-80-114-80-114 62 15 72 119 72 131a83 83 0 0 1-7 13s10 12 25-37l7 18c45-98 148-61 148-61-15-30-62-24-77-20zM374 163c-22-21-46-47-50-67a145 145 0 0 1-1-36c3-30-13-47-54-59 0 0 34 17 35 85a108 108 0 0 0-24-18c22 16 15 35 23 47s71 48 71 48z"/><path fill="#ebecec" d="M630 350c7 2 21 49 22 94a113 113 0 0 0-35-21s37 23 23 82c0 0-6-15-35-18l4 11-22-11s-83 13-102 35c0 0 12-69 8-65-12 12-17 10-17 10l-10-60c-2-16 49-97 164-57z"/><path d="M554 477a50 50 0 0 1 55 10c2 2 1 12 1 12l-22-11s-81 20-103 35a156 156 0 0 1 69-46zm-26-26a48 48 0 0 0 45-37 160 160 0 0 0 7-38s12 53 2 63a70 70 0 0 1 59 67s-33-50-114-43a167 167 0 0 0-32 8v-13zm124-6s-20-69-47-68c0 0 40-17 47 68z"/></g><path fill="#45413e" d="M547 649a154 154 0 0 0-27 58 99 99 0 0 0 1 24 83 83 0 0 0 33-24l2-4c6-17-9-54-9-54z"/></svg>