@pronto-tools-and-more/components 12.14.0 → 12.16.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.
package/dist/main.js CHANGED
@@ -1055,12 +1055,18 @@ var LanguageMapping = {
1055
1055
  it: "it-it"
1056
1056
  };
1057
1057
 
1058
+ // src/parts/PathPrefix/PathPrefix.ts
1059
+ var pathPrefix = process.env.PATH_PREFIX || "";
1060
+
1058
1061
  // src/parts/LanguageRegistry/LanguageRegistry.ts
1059
1062
  var createLanguageRegistry = () => {
1060
1063
  const languages = /* @__PURE__ */ Object.create(null);
1061
1064
  const links = /* @__PURE__ */ Object.create(null);
1062
1065
  const menus = /* @__PURE__ */ Object.create(null);
1063
1066
  const getLink = (language, key) => {
1067
+ if (pathPrefix) {
1068
+ return `${pathPrefix}${links[language][key]}`;
1069
+ }
1064
1070
  return links[language][key];
1065
1071
  };
1066
1072
  const getText = (language, key) => {
@@ -1931,5 +1937,6 @@ export {
1931
1937
  getPinterestUserUrl,
1932
1938
  getTwitterShareUrl,
1933
1939
  getTwitterUserUrl,
1934
- getYoutubeUserUrl
1940
+ getYoutubeUserUrl,
1941
+ pathPrefix
1935
1942
  };
@@ -55,6 +55,7 @@ export * from "../MenuItemRenderer/MenuItemRenderer.ts";
55
55
  export * from "../MenuItems/MenuItems.tsx";
56
56
  export * from "../MenuItems2/MenuItems2.tsx";
57
57
  export * from "../OneEPaper/OneEPaper.tsx";
58
+ export * from "../PathPrefix/PathPrefix.ts";
58
59
  export * from "../PostContentBody/PostContentBody.tsx";
59
60
  export * from "../PrimaryCategory/PrimaryCategory.tsx";
60
61
  export * from "../PublicationToggle/PublicationToggle.tsx";
@@ -0,0 +1 @@
1
+ export declare const pathPrefix: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "12.14.0",
3
+ "version": "12.16.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",