@trebired/frontend 6.3.0 → 6.5.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 (64) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +1 -0
  5. package/dist/index.js.map +1 -1
  6. package/dist/server/http.d.ts +6 -0
  7. package/dist/server/http.d.ts.map +1 -1
  8. package/dist/server/http.js.map +1 -1
  9. package/dist/server/index.d.ts +5 -0
  10. package/dist/server/index.d.ts.map +1 -1
  11. package/dist/server/index.js +5 -0
  12. package/dist/server/index.js.map +1 -1
  13. package/dist/server/language.d.ts +51 -0
  14. package/dist/server/language.d.ts.map +1 -0
  15. package/dist/server/language.js +147 -0
  16. package/dist/server/language.js.map +1 -0
  17. package/dist/server/navigation.d.ts +54 -0
  18. package/dist/server/navigation.d.ts.map +1 -0
  19. package/dist/server/navigation.js +184 -0
  20. package/dist/server/navigation.js.map +1 -0
  21. package/dist/server/render-mode.d.ts +82 -0
  22. package/dist/server/render-mode.d.ts.map +1 -0
  23. package/dist/server/render-mode.js +215 -0
  24. package/dist/server/render-mode.js.map +1 -0
  25. package/dist/server/security.d.ts +17 -0
  26. package/dist/server/security.d.ts.map +1 -0
  27. package/dist/server/security.js +38 -0
  28. package/dist/server/security.js.map +1 -0
  29. package/dist/server/seo.d.ts +109 -0
  30. package/dist/server/seo.d.ts.map +1 -0
  31. package/dist/server/seo.js +146 -0
  32. package/dist/server/seo.js.map +1 -0
  33. package/dist/src/index.d.ts +1 -0
  34. package/dist/src/index.d.ts.map +1 -1
  35. package/dist/src/index.js +1 -0
  36. package/dist/src/index.js.map +1 -1
  37. package/dist/src/server/http.d.ts +6 -0
  38. package/dist/src/server/http.d.ts.map +1 -1
  39. package/dist/src/server/http.js.map +1 -1
  40. package/dist/src/server/index.d.ts +5 -0
  41. package/dist/src/server/index.d.ts.map +1 -1
  42. package/dist/src/server/index.js +5 -0
  43. package/dist/src/server/index.js.map +1 -1
  44. package/dist/src/server/language.d.ts +51 -0
  45. package/dist/src/server/language.d.ts.map +1 -0
  46. package/dist/src/server/language.js +147 -0
  47. package/dist/src/server/language.js.map +1 -0
  48. package/dist/src/server/navigation.d.ts +54 -0
  49. package/dist/src/server/navigation.d.ts.map +1 -0
  50. package/dist/src/server/navigation.js +184 -0
  51. package/dist/src/server/navigation.js.map +1 -0
  52. package/dist/src/server/render-mode.d.ts +82 -0
  53. package/dist/src/server/render-mode.d.ts.map +1 -0
  54. package/dist/src/server/render-mode.js +215 -0
  55. package/dist/src/server/render-mode.js.map +1 -0
  56. package/dist/src/server/security.d.ts +17 -0
  57. package/dist/src/server/security.d.ts.map +1 -0
  58. package/dist/src/server/security.js +38 -0
  59. package/dist/src/server/security.js.map +1 -0
  60. package/dist/src/server/seo.d.ts +109 -0
  61. package/dist/src/server/seo.d.ts.map +1 -0
  62. package/dist/src/server/seo.js +146 -0
  63. package/dist/src/server/seo.js.map +1 -0
  64. package/package.json +1 -1
@@ -0,0 +1,38 @@
1
+ function securityText(value) {
2
+ return value == null ? null : String(value);
3
+ }
4
+ function responseLocals(res) {
5
+ if (!res)
6
+ return null;
7
+ if (!res.locals || typeof res.locals !== "object")
8
+ res.locals = {};
9
+ return res.locals;
10
+ }
11
+ function createSecurityState(res, options = {}) {
12
+ const locals = responseLocals(res) || {};
13
+ return {
14
+ csrfToken: securityText(locals[options.csrfLocalKey || "csrfToken"]),
15
+ nonce: securityText(locals[options.nonceLocalKey || "nonce"]) || "",
16
+ };
17
+ }
18
+ function applySecurityToLocals(res, options = {}) {
19
+ const locals = responseLocals(res);
20
+ if (!locals)
21
+ return null;
22
+ const state = createSecurityState(res, options);
23
+ locals[options.localsKey || "security"] = state;
24
+ return state;
25
+ }
26
+ function createSecurityMiddleware(options = {}) {
27
+ return function securityMiddleware(_req, res, next) {
28
+ applySecurityToLocals(res, options);
29
+ return next();
30
+ };
31
+ }
32
+ function attachSecurityMiddleware(app, options = {}) {
33
+ if (app && typeof app.use === "function") {
34
+ app.use(createSecurityMiddleware(options));
35
+ }
36
+ }
37
+ export { applySecurityToLocals, attachSecurityMiddleware, createSecurityMiddleware, createSecurityState, };
38
+ //# sourceMappingURL=security.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"security.js","sourceRoot":"","sources":["../../../src/server/security.ts"],"names":[],"mappings":"AAaA,SAAS,YAAY,CAAC,KAAc;IAClC,OAAO,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC9C,CAAC;AAED,SAAS,cAAc,CAAC,GAA0C;IAChE,IAAI,CAAC,GAAG;QAAE,OAAO,IAAI,CAAC;IACtB,IAAI,CAAC,GAAG,CAAC,MAAM,IAAI,OAAO,GAAG,CAAC,MAAM,KAAK,QAAQ;QAAE,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC;IACnE,OAAO,GAAG,CAAC,MAAM,CAAC;AACpB,CAAC;AAED,SAAS,mBAAmB,CAC1B,GAA0C,EAC1C,UAAqC,EAAE;IAEvC,MAAM,MAAM,GAAG,cAAc,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;IACzC,OAAO;QACL,SAAS,EAAE,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,YAAY,IAAI,WAAW,CAAC,CAAC;QACpE,KAAK,EAAE,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,aAAa,IAAI,OAAO,CAAC,CAAC,IAAI,EAAE;KACpE,CAAC;AACJ,CAAC;AAED,SAAS,qBAAqB,CAC5B,GAA0C,EAC1C,UAAqC,EAAE;IAEvC,MAAM,MAAM,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;IACnC,IAAI,CAAC,MAAM;QAAE,OAAO,IAAI,CAAC;IACzB,MAAM,KAAK,GAAG,mBAAmB,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IAChD,MAAM,CAAC,OAAO,CAAC,SAAS,IAAI,UAAU,CAAC,GAAG,KAAK,CAAC;IAChD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,wBAAwB,CAAC,UAAqC,EAAE;IACvE,OAAO,SAAS,kBAAkB,CAChC,IAAa,EACb,GAAuB,EACvB,IAAmB;QAEnB,qBAAqB,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;QACpC,OAAO,IAAI,EAAE,CAAC;IAChB,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,wBAAwB,CAC/B,GAAY,EACZ,UAAqC,EAAE;IAEvC,IAAI,GAAG,IAAI,OAAQ,GAAyB,CAAC,GAAG,KAAK,UAAU,EAAE,CAAC;QAC/D,GAA8C,CAAC,GAAG,CACjD,wBAAwB,CAAC,OAAO,CAAC,CAClC,CAAC;IACJ,CAAC;AACH,CAAC;AAED,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EACxB,wBAAwB,EACxB,mBAAmB,GACpB,CAAC"}
@@ -0,0 +1,109 @@
1
+ import { type ServerRequestLike, type ServerResponseLike } from "./http.js";
2
+ declare const ROBOTS_NOINDEX_CONTENT = "noindex, nofollow, noarchive";
3
+ type SeoConfig = {
4
+ canonicalUrl?: string;
5
+ contentLanguage?: string;
6
+ googlebotContent?: string;
7
+ htmlLang?: string;
8
+ index?: boolean;
9
+ metaDescription?: string;
10
+ metaKeywords?: string;
11
+ ogDescription?: string;
12
+ ogImage?: string;
13
+ ogLocale?: string;
14
+ ogTitle?: string;
15
+ ogType?: string;
16
+ robotsContent?: string;
17
+ title?: string;
18
+ titleSuffix?: string;
19
+ twitterCard?: string;
20
+ twitterSite?: string;
21
+ };
22
+ type SeoMiddlewareOptions = {
23
+ defaults?: SeoConfig;
24
+ getSeo?: () => SeoConfig;
25
+ };
26
+ type SeoStoreOptions = {
27
+ defaults?: SeoConfig;
28
+ logger?: {
29
+ info?: (scope: string, message: string, metadata?: Record<string, unknown>) => unknown;
30
+ };
31
+ };
32
+ declare const DEFAULT_SEO: SeoConfig;
33
+ declare function pickSeo(body?: SeoConfig, defaults?: SeoConfig): {
34
+ titleSuffix: string;
35
+ metaDescription: string;
36
+ metaKeywords: string;
37
+ htmlLang: string;
38
+ contentLanguage: string;
39
+ ogLocale: string;
40
+ ogTitle: string;
41
+ ogDescription: string;
42
+ ogType: string;
43
+ ogImage: string;
44
+ twitterCard: string;
45
+ twitterSite: string;
46
+ index: boolean;
47
+ };
48
+ declare function buildCanonical(req: ServerRequestLike): string;
49
+ declare function humanizeFromPath(path: unknown): string;
50
+ declare function getRobotsTagContent(config?: SeoConfig): string;
51
+ declare function buildSeoBase(req: ServerRequestLike, seo: SeoConfig): {
52
+ title: string;
53
+ titleSuffix: string;
54
+ canonicalUrl: string;
55
+ metaDescription: string;
56
+ metaKeywords: string;
57
+ htmlLang: string;
58
+ contentLanguage: string;
59
+ ogLocale: string;
60
+ ogTitle: string;
61
+ ogDescription: string;
62
+ ogType: string;
63
+ ogImage: string;
64
+ twitterCard: string;
65
+ twitterSite: string;
66
+ index: boolean;
67
+ robotsContent: string;
68
+ googlebotContent: string;
69
+ };
70
+ declare function applySeo(res: ServerResponseLike | null | undefined, overrides?: SeoConfig, options?: SeoMiddlewareOptions): void;
71
+ declare function createSeoStore(options?: SeoStoreOptions): {
72
+ getSeo(): {
73
+ robotsContent: string;
74
+ googlebotContent: string;
75
+ titleSuffix: string;
76
+ metaDescription: string;
77
+ metaKeywords: string;
78
+ htmlLang: string;
79
+ contentLanguage: string;
80
+ ogLocale: string;
81
+ ogTitle: string;
82
+ ogDescription: string;
83
+ ogType: string;
84
+ ogImage: string;
85
+ twitterCard: string;
86
+ twitterSite: string;
87
+ index: boolean;
88
+ };
89
+ updateSeo(body?: SeoConfig): {
90
+ titleSuffix: string;
91
+ metaDescription: string;
92
+ metaKeywords: string;
93
+ htmlLang: string;
94
+ contentLanguage: string;
95
+ ogLocale: string;
96
+ ogTitle: string;
97
+ ogDescription: string;
98
+ ogType: string;
99
+ ogImage: string;
100
+ twitterCard: string;
101
+ twitterSite: string;
102
+ index: boolean;
103
+ };
104
+ };
105
+ declare function createSeoMiddleware(options?: SeoMiddlewareOptions): (req: ServerRequestLike, res: ServerResponseLike, next: () => unknown) => unknown;
106
+ declare function attachSeoMiddleware(app: unknown, options?: SeoMiddlewareOptions): void;
107
+ export { DEFAULT_SEO, ROBOTS_NOINDEX_CONTENT, applySeo, attachSeoMiddleware, buildCanonical, buildSeoBase, createSeoMiddleware, createSeoStore, getRobotsTagContent, humanizeFromPath, pickSeo, };
108
+ export type { SeoConfig, SeoMiddlewareOptions, SeoStoreOptions };
109
+ //# sourceMappingURL=seo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"seo.d.ts","sourceRoot":"","sources":["../../../src/server/seo.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACxB,MAAM,WAAW,CAAC;AAEnB,QAAA,MAAM,sBAAsB,iCAAiC,CAAC;AAE9D,KAAK,SAAS,GAAG;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,E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OAAO,EACL,WAAW,EACX,sBAAsB,EACtB,QAAQ,EACR,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,OAAO,GACR,CAAC;AACF,YAAY,EAAE,SAAS,EAAE,oBAAoB,EAAE,eAAe,EAAE,CAAC"}
@@ -0,0 +1,146 @@
1
+ import { serverString, setResponseHeader, } from "./http.js";
2
+ const ROBOTS_NOINDEX_CONTENT = "noindex, nofollow, noarchive";
3
+ const DEFAULT_SEO = Object.freeze({
4
+ titleSuffix: "",
5
+ metaDescription: "",
6
+ metaKeywords: "",
7
+ htmlLang: "en",
8
+ contentLanguage: "en",
9
+ ogLocale: "en_US",
10
+ ogTitle: "",
11
+ ogDescription: "",
12
+ ogType: "website",
13
+ ogImage: "",
14
+ twitterCard: "summary_large_image",
15
+ twitterSite: "",
16
+ index: false,
17
+ });
18
+ function robotsContent(config = {}) {
19
+ return serverString(config.robotsContent || ROBOTS_NOINDEX_CONTENT);
20
+ }
21
+ function pickSeo(body = {}, defaults = {}) {
22
+ const base = { ...DEFAULT_SEO, ...defaults };
23
+ return {
24
+ titleSuffix: serverString(body.titleSuffix || base.titleSuffix),
25
+ metaDescription: serverString(body.metaDescription || base.metaDescription),
26
+ metaKeywords: serverString(body.metaKeywords || base.metaKeywords),
27
+ htmlLang: serverString(body.htmlLang || base.htmlLang),
28
+ contentLanguage: serverString(body.contentLanguage || base.contentLanguage),
29
+ ogLocale: serverString(body.ogLocale || base.ogLocale),
30
+ ogTitle: serverString(body.ogTitle || base.ogTitle),
31
+ ogDescription: serverString(body.ogDescription || base.ogDescription),
32
+ ogType: serverString(body.ogType || base.ogType),
33
+ ogImage: serverString(body.ogImage || base.ogImage),
34
+ twitterCard: serverString(body.twitterCard || base.twitterCard),
35
+ twitterSite: serverString(body.twitterSite || base.twitterSite),
36
+ index: false,
37
+ };
38
+ }
39
+ function requestGetter(req, name) {
40
+ const getter = req.get;
41
+ return typeof getter === "function" ? serverString(getter.call(req, name)) : "";
42
+ }
43
+ function buildCanonical(req) {
44
+ const headers = req && req.headers && typeof req.headers === "object" ? req.headers : {};
45
+ const xfProto = serverString(headers["x-forwarded-proto"]).split(",")[0].trim();
46
+ const proto = xfProto || serverString(req.protocol) || "https";
47
+ const xfHost = serverString(headers["x-forwarded-host"]).split(",")[0].trim();
48
+ let host = xfHost || requestGetter(req, "host") || serverString(headers.host);
49
+ if ((proto === "https" && /:443$/.test(host)) || (proto === "http" && /:80$/.test(host))) {
50
+ host = host.replace(/:(80|443)$/, "");
51
+ }
52
+ const path = serverString(req.path || "/").replace(/\/+$/, "") || "/";
53
+ return `${proto}://${host}${path}`;
54
+ }
55
+ function humanizeFromPath(path) {
56
+ const segments = serverString(path || "/")
57
+ .split("/")
58
+ .filter(Boolean);
59
+ const last = segments.pop() || "";
60
+ if (!last)
61
+ return "";
62
+ return last
63
+ .replace(/-/g, " ")
64
+ .split(" ")
65
+ .map((word) => (/^[a-z]/.test(word) ? word.charAt(0).toUpperCase() + word.slice(1) : word))
66
+ .join(" ");
67
+ }
68
+ function getRobotsTagContent(config = {}) {
69
+ return robotsContent(config);
70
+ }
71
+ function buildSeoBase(req, seo) {
72
+ return {
73
+ title: humanizeFromPath(req.path) || "",
74
+ titleSuffix: seo.titleSuffix,
75
+ canonicalUrl: buildCanonical(req),
76
+ metaDescription: seo.metaDescription,
77
+ metaKeywords: seo.metaKeywords,
78
+ htmlLang: seo.htmlLang,
79
+ contentLanguage: seo.contentLanguage,
80
+ ogLocale: seo.ogLocale,
81
+ ogTitle: seo.ogTitle,
82
+ ogDescription: seo.ogDescription,
83
+ ogType: seo.ogType,
84
+ ogImage: seo.ogImage,
85
+ twitterCard: seo.twitterCard,
86
+ twitterSite: seo.twitterSite,
87
+ index: false,
88
+ robotsContent: getRobotsTagContent(seo),
89
+ googlebotContent: getRobotsTagContent(seo),
90
+ };
91
+ }
92
+ function applySeoHeaders(res, seo) {
93
+ setResponseHeader(res, "X-Robots-Tag", getRobotsTagContent(seo));
94
+ if (seo.contentLanguage)
95
+ setResponseHeader(res, "Content-Language", serverString(seo.contentLanguage));
96
+ }
97
+ function applySeo(res, overrides = {}, options = {}) {
98
+ const locals = res?.locals;
99
+ if (!locals)
100
+ return;
101
+ const current = (locals.seo && typeof locals.seo === "object" ? locals.seo : {});
102
+ const nextSeo = {
103
+ ...current,
104
+ ...overrides,
105
+ index: false,
106
+ robotsContent: getRobotsTagContent(options.defaults),
107
+ googlebotContent: getRobotsTagContent(options.defaults),
108
+ };
109
+ locals.seo = nextSeo;
110
+ applySeoHeaders(res, nextSeo);
111
+ }
112
+ function createSeoStore(options = {}) {
113
+ let current = pickSeo({}, options.defaults || {});
114
+ return {
115
+ getSeo() {
116
+ return {
117
+ ...current,
118
+ robotsContent: getRobotsTagContent(current),
119
+ googlebotContent: getRobotsTagContent(current),
120
+ };
121
+ },
122
+ updateSeo(body = {}) {
123
+ current = pickSeo(body, options.defaults || {});
124
+ options.logger?.info?.("seo", "Updated global SEO settings");
125
+ return current;
126
+ },
127
+ };
128
+ }
129
+ function createSeoMiddleware(options = {}) {
130
+ return function seoMiddleware(req, res, next) {
131
+ const seo = options.getSeo ? options.getSeo() : pickSeo({}, options.defaults || {});
132
+ const baseSeo = buildSeoBase(req, seo);
133
+ const locals = res.locals;
134
+ if (locals)
135
+ locals.seo = baseSeo;
136
+ applySeoHeaders(res, baseSeo);
137
+ return next();
138
+ };
139
+ }
140
+ function attachSeoMiddleware(app, options = {}) {
141
+ if (app && typeof app.use === "function") {
142
+ app.use(createSeoMiddleware(options));
143
+ }
144
+ }
145
+ export { DEFAULT_SEO, ROBOTS_NOINDEX_CONTENT, applySeo, attachSeoMiddleware, buildCanonical, buildSeoBase, createSeoMiddleware, createSeoStore, getRobotsTagContent, humanizeFromPath, pickSeo, };
146
+ //# sourceMappingURL=seo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"seo.js","sourceRoot":"","sources":["../../../src/server/seo.ts"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D,OAAO,SAAS,aAAa,CAC3B,GAAsB,EACtB,GAAuB,EACvB,IAAmB;QAEnB,MAAM,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,EAAE,OAAO,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC;QACpF,MAAM,OAAO,GAAG,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QACvC,MAAM,MAAM,GAAI,GAA4C,CAAC,MAAM,CAAC;QACpE,IAAI,MAAM;YAAE,MAAM,CAAC,GAAG,GAAG,OAAO,CAAC;QACjC,eAAe,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;QAC9B,OAAO,IAAI,EAAE,CAAC;IAChB,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,mBAAmB,CAAC,GAAY,EAAE,UAAgC,EAAE;IAC3E,IAAI,GAAG,IAAI,OAAQ,GAAyB,CAAC,GAAG,KAAK,UAAU,EAAE,CAAC;QAC/D,GAA8C,CAAC,GAAG,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAC;IACpF,CAAC;AACH,CAAC;AAED,OAAO,EACL,WAAW,EACX,sBAAsB,EACtB,QAAQ,EACR,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,OAAO,GACR,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trebired/frontend",
3
- "version": "6.3.0",
3
+ "version": "6.5.0",
4
4
  "description": "Generic browser runtime systems for Trebired frontend packages and applications.",
5
5
  "type": "module",
6
6
  "private": false,