sass-template-common 0.16.29 → 0.17.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.
@@ -4787,6 +4787,23 @@ declare interface StaffCardProps {
4787
4787
 
4788
4788
  export declare function StaticSlotWrapper({ children, stylesConfigEntry, }: Props_20): JSX.Element;
4789
4789
 
4790
+ /**
4791
+ * Saca el front prefix del final de la base si viene puesto
4792
+ * (`reporteindigo.com/geek` → `reporteindigo.com`); si no lo trae, la devuelve
4793
+ * tal cual. Es la base que recibe la metadata, que repone el prefijo de forma
4794
+ * idempotente (`withFrontPrefix`): así `base + pathname` no duplica aunque el
4795
+ * `pathname` ya venga con el prefijo (Astro con `base` = prefijo).
4796
+ */
4797
+ export declare function stripFrontPrefix(base: string | undefined, prefix: string): string;
4798
+
4799
+ /**
4800
+ * Saca el front prefix del inicio de un `pathname` si viene puesto
4801
+ * (`/geek/nota` → `/nota`, `/geek` → ``); si no lo trae, lo devuelve tal cual.
4802
+ * Para URLs donde el prefijo no va pegado al origin (amphtml:
4803
+ * `origin/amp/geek/nota`) y hay que ponerlo una sola vez en otra posición.
4804
+ */
4805
+ export declare function stripFrontPrefixFromPath(pathname: string, prefix: string): string;
4806
+
4790
4807
  /**
4791
4808
  * Texto plano: saca los tags y colapsa espacios. Es lo que necesita cualquier
4792
4809
  * consumidor que NO renderiza HTML (schemas JSON-LD, `meta description`,