@verentis/cli 1.0.0 → 1.0.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 CHANGED
@@ -1641,6 +1641,8 @@ var THEME_ASSET_NAMES = [
1641
1641
  "theme.css",
1642
1642
  "background",
1643
1643
  "background.dark",
1644
+ "hero",
1645
+ "hero.dark",
1644
1646
  "logo",
1645
1647
  "logo.dark",
1646
1648
  "mark",
@@ -1812,7 +1814,7 @@ async function validateThemePayload(projectDir, manifest) {
1812
1814
  else errors.push(...lintThemeCss(text).map((message) => `${at}: ${message}`));
1813
1815
  continue;
1814
1816
  }
1815
- const limit = name === "background" || name === "background.dark" ? THEME_LIMITS.background : THEME_LIMITS.image;
1817
+ const limit = ["background", "background.dark", "hero", "hero.dark"].includes(name) ? THEME_LIMITS.background : THEME_LIMITS.image;
1816
1818
  if (bytes.length > limit) errors.push(`${at} exceeds ${limit / (1024 * 1024)} MiB.`);
1817
1819
  if (mime === "image/svg+xml") {
1818
1820
  const text = decodeUtf8(bytes);
@@ -3999,8 +4001,8 @@ metadata:
3999
4001
  # readme: ./README.md
4000
4002
 
4001
4003
  # A theme replaces the workspace theme (/.theme). Map any of the theme assets to files in this package:
4002
- # theme.css, background, background.dark, logo, logo.dark, mark, mark.dark, favicon,
4003
- # apple-touch-icon (PNG only). Images may be SVG, PNG, JPEG or WebP (1 MiB each, backgrounds 2 MiB,
4004
+ # theme.css, background, background.dark, hero, hero.dark, logo, logo.dark, mark, mark.dark, favicon,
4005
+ # apple-touch-icon (PNG only). Images may be SVG, PNG, JPEG or WebP (1 MiB each, backgrounds and heroes 2 MiB,
4004
4006
  # 4 MiB in total). \`verentis pack\` installs each one at /.theme/<asset>.
4005
4007
  spec:
4006
4008
  assets:
@@ -4012,6 +4014,8 @@ spec:
4012
4014
  favicon: theme/favicon.svg
4013
4015
  # background: theme/background.jpg
4014
4016
  # background.dark: theme/background-dark.jpg
4017
+ # hero: theme/hero.jpg
4018
+ # hero.dark: theme/hero-dark.jpg
4015
4019
  # apple-touch-icon: theme/apple-touch-icon.png # 180\xD7180 PNG
4016
4020
 
4017
4021
  packaging: