@plitzi/sdk-shared 0.39.3 → 0.39.4
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/CHANGELOG.md +7 -0
- package/dist/clients/index.d.ts +59 -0
- package/dist/clients/index.mjs +38 -0
- package/dist/conditions/types.d.ts +1 -1
- package/dist/csrf/csrf.d.ts +36 -0
- package/dist/csrf/csrf.mjs +62 -0
- package/dist/csrf/index.d.ts +2 -0
- package/dist/csrf/index.mjs +1 -0
- package/dist/helpers/deepEqual/deepEqual.mjs +3 -2
- package/dist/helpers/lodash/cloneDeep.d.ts +3 -3
- package/dist/helpers/lodash/cloneDeep.mjs +24 -27
- package/dist/helpers/lodash/has.d.ts +2 -1
- package/dist/helpers/lodash/has.mjs +8 -8
- package/dist/helpers/lodash/index.d.ts +1 -1
- package/dist/helpers/lodash/omit.mjs +2 -2
- package/dist/helpers/twigWrapper/filters/arrays.mjs +43 -42
- package/dist/helpers/twigWrapper/filters/filters.mjs +3 -3
- package/dist/helpers/twigWrapper/filters/index.mjs +4 -4
- package/dist/helpers/twigWrapper/filters/misc.mjs +14 -13
- package/dist/helpers/twigWrapper/filters/objects.mjs +50 -49
- package/dist/helpers/twigWrapper/filters/strings.mjs +41 -40
- package/dist/helpers/twigWrapper/filters/types.d.ts +4 -0
- package/dist/helpers/twigWrapper/filters/types.mjs +2 -2
- package/dist/navigation/index.d.ts +1 -1
- package/dist/navigation/index.mjs +3 -3
- package/dist/navigation/routes.d.ts +2 -0
- package/dist/navigation/routes.mjs +2 -1
- package/dist/navigation/sitemap.d.ts +8 -0
- package/dist/navigation/sitemap.mjs +7 -4
- package/dist/react/index.d.ts +1 -1
- package/dist/refusals/index.d.ts +112 -0
- package/dist/refusals/index.mjs +94 -0
- package/dist/schema/aiCrawlers.d.ts +25 -0
- package/dist/schema/aiCrawlers.mjs +34 -0
- package/dist/schema/documentParts.d.ts +45 -0
- package/dist/schema/documentParts.mjs +73 -0
- package/dist/schema/index.d.ts +3 -0
- package/dist/schema/index.mjs +21 -18
- package/dist/schema/pageAccess.mjs +1 -1
- package/dist/schema/plitziMark.d.ts +9 -0
- package/dist/schema/plitziMark.mjs +3 -0
- package/dist/schema/schemaSettings.d.ts +1 -1
- package/dist/schema/schemaSettings.mjs +1 -1
- package/dist/schema/serverElements.d.ts +5 -0
- package/dist/store/runtimeStatePersist.mjs +2 -2
- package/dist/store/storeHooks.d.ts +33 -33
- package/dist/style/runtimeStyle.d.ts +5 -2
- package/dist/style/runtimeStyle.mjs +1 -1
- package/dist/types/ActionTypes.d.ts +2 -0
- package/dist/types/AuthTypes.d.ts +5 -0
- package/dist/types/SchemaTypes.d.ts +31 -4
- package/dist/types/StoreTypes.d.ts +5 -0
- package/eslint.config.mjs +123 -100
- package/package.json +1 -1
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { resolveLayoutChain as e } from "./layoutChain.mjs";
|
|
2
|
+
import { pageWithheldOf as t, withheldPageOf as n } from "./pageAccess.mjs";
|
|
3
|
+
// src/schema/documentParts.ts
|
|
4
|
+
var r = (e, t) => {
|
|
5
|
+
let n = e?.attributes[t];
|
|
6
|
+
return typeof n == "string" ? n : "";
|
|
7
|
+
}, i = (t, n) => {
|
|
8
|
+
let i = t[n];
|
|
9
|
+
return i ? e((e) => t[e], r(i, "layout"), r(i, "layoutContainer")).map((e) => e.layout) : [];
|
|
10
|
+
}, a = (e, t, n) => {
|
|
11
|
+
let i = {}, a = [...e[t]?.definition.items ?? []];
|
|
12
|
+
for (; a.length > 0;) {
|
|
13
|
+
let t = a.pop();
|
|
14
|
+
if (t === void 0 || Object.hasOwn(i, t) || n.has(t)) continue;
|
|
15
|
+
let o = e[t];
|
|
16
|
+
if (!o) continue;
|
|
17
|
+
i[t] = o, a.push(...o.definition.items ?? []);
|
|
18
|
+
let s = r(o, "referenceId");
|
|
19
|
+
o.definition.type === "reference" && s && o.attributes.referenceType !== "component" && a.push(s);
|
|
20
|
+
}
|
|
21
|
+
return i;
|
|
22
|
+
}, o = (e, t, n = []) => {
|
|
23
|
+
let { flat: r } = e, o = new Set(Object.keys(r).filter((e) => r[e].definition.rootId === e)), s = new Set(n), c = e.pages.filter((e) => o.has(e) && !s.has(e)), l = new Set(c.flatMap((e) => i(r, e))), u = {}, d = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Set();
|
|
24
|
+
for (let n of o) {
|
|
25
|
+
let i = e.pages.includes(n), c = r[n].definition.type === "layoutContainer";
|
|
26
|
+
if (!i && !c) continue;
|
|
27
|
+
let p = a(r, n, o);
|
|
28
|
+
if (Object.keys(p).length === 0) continue;
|
|
29
|
+
for (let e of Object.keys(p)) f.add(e);
|
|
30
|
+
if (i && s.has(n) || c && !i && !l.has(n)) {
|
|
31
|
+
u[n] = "";
|
|
32
|
+
continue;
|
|
33
|
+
}
|
|
34
|
+
let m = {
|
|
35
|
+
root: n,
|
|
36
|
+
flat: p
|
|
37
|
+
}, h = t(m);
|
|
38
|
+
u[n] = h, d.set(h, m);
|
|
39
|
+
}
|
|
40
|
+
let p = {};
|
|
41
|
+
for (let [e, t] of Object.entries(r)) (!f.has(e) || o.has(e)) && (p[e] = t);
|
|
42
|
+
return {
|
|
43
|
+
shell: {
|
|
44
|
+
...e,
|
|
45
|
+
flat: p,
|
|
46
|
+
parts: u
|
|
47
|
+
},
|
|
48
|
+
parts: d
|
|
49
|
+
};
|
|
50
|
+
}, s = (e, a) => {
|
|
51
|
+
let { parts: o } = e;
|
|
52
|
+
if (!o) return [];
|
|
53
|
+
let s = e.flat[a], c = t(s?.attributes) ? n(e) : void 0, l = (e) => typeof e?.attributes.slug == "string" ? `${r(e, "folder")}/${e.attributes.slug}` : void 0, u = l(s), d = u === void 0 ? [] : e.pages.filter((t) => t !== a && l(e.flat[t]) === u), f = [a, ...i(e.flat, a)], p = d.flatMap((t) => [t, ...i(e.flat, t)]).filter((e) => o[e] !== "");
|
|
54
|
+
return [.../* @__PURE__ */ new Set([
|
|
55
|
+
...f,
|
|
56
|
+
...p,
|
|
57
|
+
...c ? [c] : []
|
|
58
|
+
])].filter((e) => Object.hasOwn(o, e));
|
|
59
|
+
}, c = (e, t) => {
|
|
60
|
+
if (t.length === 0 || !e.parts) return e;
|
|
61
|
+
let n = { ...e.flat };
|
|
62
|
+
for (let e of t) Object.assign(n, e.flat);
|
|
63
|
+
let r = new Set(t.map((e) => e.root)), i = Object.fromEntries(Object.entries(e.parts).filter(([e]) => !r.has(e))), a = {
|
|
64
|
+
...e,
|
|
65
|
+
flat: n,
|
|
66
|
+
parts: i
|
|
67
|
+
};
|
|
68
|
+
return Object.keys(i).length === 0 && delete a.parts, a;
|
|
69
|
+
}, l = (e, t) => c(e.shell, s(e.shell, t).flatMap((t) => {
|
|
70
|
+
let n = e.shell.parts?.[t], r = n ? e.parts.get(n) : void 0;
|
|
71
|
+
return r ? [r] : [];
|
|
72
|
+
}));
|
|
73
|
+
export { s as missingParts, i as pageLayouts, l as schemaForPage, o as splitSchema, c as withParts };
|
package/dist/schema/index.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
export * from './aiCrawlers';
|
|
1
2
|
export * from './anchor';
|
|
2
3
|
export * from './schemaConstants';
|
|
3
4
|
export * from './layoutChain';
|
|
5
|
+
export * from './documentParts';
|
|
4
6
|
export * from './serverElements';
|
|
5
7
|
export * from './providerAnswer';
|
|
6
8
|
export * from './providerWhen';
|
|
7
9
|
export * from './serverInput';
|
|
8
10
|
export * from './serverQuery';
|
|
9
11
|
export * from './pageHead';
|
|
12
|
+
export * from './plitziMark';
|
|
10
13
|
export * from './schemaSettings';
|
|
11
14
|
export * from './snippet';
|
|
12
15
|
export * from './motion';
|
package/dist/schema/index.mjs
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
|
|
1
|
+
import { AI_CRAWLERS as e, AI_CRAWLER_KINDS as t, AI_CRAWLER_KIND_LABEL as n, blockedAiCrawlers as r, isAiCrawlerKind as i } from "./aiCrawlers.mjs";
|
|
2
|
+
import { ANCHOR_PATTERN as a, anchorOf as o, isAnchor as s, uniqueAnchor as c } from "./anchor.mjs";
|
|
3
|
+
import { COMPONENT_PROPS_SOURCE as l, EMPTY_SCHEMA as u, VARIABLE_REGEX as d } from "./schemaConstants.mjs";
|
|
4
|
+
import { findLayoutCycle as f, resolveLayoutChain as p } from "./layoutChain.mjs";
|
|
5
|
+
import { missingParts as m, pageLayouts as h, schemaForPage as g, splitSchema as _, withParts as v } from "./documentParts.mjs";
|
|
6
|
+
import { RSC_FAILURE as y, collectServerElements as b, hasServerElements as x, jsonForScript as S, notFoundProvider as C, pageNotFound as w, pageSeoText as T, pageServerContext as E, pageStructuredData as D, rscFailureOf as O } from "./serverElements.mjs";
|
|
7
|
+
import { isEmptyAnswer as k } from "./providerAnswer.mjs";
|
|
8
|
+
import { isRuleGroup as A, serverProviderSource as j, serverWhenValues as M, whenOf as N, whenPaths as P, whenProviders as F, whenUnknownToServer as I } from "./providerWhen.mjs";
|
|
9
|
+
import { browserServerInput as L, inputProviders as R, inputReadings as z, serverInputOf as B } from "./serverInput.mjs";
|
|
10
|
+
import { serverQueryOf as V, serverQueryProblem as H } from "./serverQuery.mjs";
|
|
11
|
+
import { DEFAULT_FAVICON as U, OG_TYPES as W, absoluteAddress as G, isHeadAddress as K, isOgType as q, pageHeadTags as J, spaceIdentity as Y, spaceIdentityProblems as X } from "./pageHead.mjs";
|
|
12
|
+
import { PLITZI_MARK_DATA_URL as Z, PLITZI_MARK_SVG as Q } from "./plitziMark.mjs";
|
|
13
|
+
import { SCHEMA_SETTINGS as $, isSchemaSetting as ee } from "./schemaSettings.mjs";
|
|
14
|
+
import { isSnippet as te } from "./snippet.mjs";
|
|
15
|
+
import { MOTION_DEFAULT_DURATION as ne, MOTION_EASING_KEYWORDS as re, MOTION_ENTERS as ie, MOTION_ENTER_EASING as ae, MOTION_ENTER_FRAMES as oe, MOTION_ENTER_FROM as se, MOTION_ENTER_TRAVEL as ce, MOTION_LOOPS as le, MOTION_LOOP_FRAMES as ue, MOTION_MAX_DISTANCE as de, MOTION_MAX_MS as fe, MOTION_PLAY_CSS as pe, MOTION_SEEN_ATTRIBUTE as me, MOTION_SEEN_CSS as he, MOTION_STILL_CSS as ge, MOTION_TRAVEL_PROPERTY as _e, MOTION_TRIGGERS as ve, MOTION_VIEW_SELECTOR as ye, MOVING_SELECTOR as be, isMotion as xe, isMotionAnimation as Se, isMotionEasing as Ce, motionAttributes as we, motionProblems as Te, travelled as Ee } from "./motion.mjs";
|
|
16
|
+
import { revealOnView as De } from "./motionReveal.mjs";
|
|
17
|
+
import { elementFromWire as Oe, schemaFromWire as ke, schemaToWire as Ae } from "./wire.mjs";
|
|
18
|
+
import { pageElementTypes as je } from "./pageElements.mjs";
|
|
19
|
+
import { headingText as Me, markdownHeadings as Ne } from "./markdownHeadings.mjs";
|
|
20
|
+
import { NOT_FOUND_WHEN_REFUSED as Pe, WITHHELD_ATTRIBUTE as Fe, mayReceive as Ie, notFoundWhenRefused as Le, pageAccessOf as Re, pageAccessRefusal as ze, pageWithheldOf as Be, withheldPageOf as Ve, withholdPages as He } from "./pageAccess.mjs";
|
|
21
|
+
export { e as AI_CRAWLERS, t as AI_CRAWLER_KINDS, n as AI_CRAWLER_KIND_LABEL, a as ANCHOR_PATTERN, l as COMPONENT_PROPS_SOURCE, U as DEFAULT_FAVICON, u as EMPTY_SCHEMA, ne as MOTION_DEFAULT_DURATION, re as MOTION_EASING_KEYWORDS, ie as MOTION_ENTERS, ae as MOTION_ENTER_EASING, oe as MOTION_ENTER_FRAMES, se as MOTION_ENTER_FROM, ce as MOTION_ENTER_TRAVEL, le as MOTION_LOOPS, ue as MOTION_LOOP_FRAMES, de as MOTION_MAX_DISTANCE, fe as MOTION_MAX_MS, pe as MOTION_PLAY_CSS, me as MOTION_SEEN_ATTRIBUTE, he as MOTION_SEEN_CSS, ge as MOTION_STILL_CSS, _e as MOTION_TRAVEL_PROPERTY, ve as MOTION_TRIGGERS, ye as MOTION_VIEW_SELECTOR, be as MOVING_SELECTOR, Pe as NOT_FOUND_WHEN_REFUSED, W as OG_TYPES, Z as PLITZI_MARK_DATA_URL, Q as PLITZI_MARK_SVG, y as RSC_FAILURE, $ as SCHEMA_SETTINGS, d as VARIABLE_REGEX, Fe as WITHHELD_ATTRIBUTE, G as absoluteAddress, o as anchorOf, r as blockedAiCrawlers, L as browserServerInput, b as collectServerElements, Oe as elementFromWire, f as findLayoutCycle, x as hasServerElements, Me as headingText, R as inputProviders, z as inputReadings, i as isAiCrawlerKind, s as isAnchor, k as isEmptyAnswer, K as isHeadAddress, xe as isMotion, Se as isMotionAnimation, Ce as isMotionEasing, q as isOgType, A as isRuleGroup, ee as isSchemaSetting, te as isSnippet, S as jsonForScript, Ne as markdownHeadings, Ie as mayReceive, m as missingParts, we as motionAttributes, Te as motionProblems, C as notFoundProvider, Le as notFoundWhenRefused, Re as pageAccessOf, ze as pageAccessRefusal, je as pageElementTypes, J as pageHeadTags, h as pageLayouts, w as pageNotFound, T as pageSeoText, E as pageServerContext, D as pageStructuredData, Be as pageWithheldOf, p as resolveLayoutChain, De as revealOnView, O as rscFailureOf, g as schemaForPage, ke as schemaFromWire, Ae as schemaToWire, B as serverInputOf, j as serverProviderSource, V as serverQueryOf, H as serverQueryProblem, M as serverWhenValues, Y as spaceIdentity, X as spaceIdentityProblems, _ as splitSchema, Ee as travelled, c as uniqueAnchor, N as whenOf, P as whenPaths, F as whenProviders, I as whenUnknownToServer, v as withParts, Ve as withheldPageOf, He as withholdPages };
|
|
@@ -21,7 +21,7 @@ var t = "notFound", n = (e) => e?.unauthorizedBehaviour === t, r = (e) => {
|
|
|
21
21
|
}, c = (e, t) => {
|
|
22
22
|
let a = /* @__PURE__ */ new Map(), o = [];
|
|
23
23
|
for (let s of e.pages) {
|
|
24
|
-
let c = e.flat[s]?.attributes, l = n(c), u = r(c) ?? (
|
|
24
|
+
let c = e.flat[s]?.attributes, l = n(c), u = r(c) ?? (c?.accessLevel === "authenticated" ? { permissions: [] } : void 0);
|
|
25
25
|
if (!u) continue;
|
|
26
26
|
let d = i(u, t);
|
|
27
27
|
d ? a.set(s, l ? "hidden" : d) : o.push(u);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Plitzi's mark — the stacked layers, the home's, which the spaces draw as Font Awesome's `layer-group` glyph
|
|
3
|
+
* — as a picture: white layers on the brand's violet, in a rounded square that reads at a tab's 16 px. The one drawing
|
|
4
|
+
* every surface shows where it cannot draw the glyph: a tab that names no icon, the builder's bar, a static deploy, a
|
|
5
|
+
* mail (rasterized). The layers are Font Awesome Free's glyph, CC BY 4.0, its attribution kept in the drawing.
|
|
6
|
+
*/
|
|
7
|
+
export declare const PLITZI_MARK_SVG = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\" width=\"512\" height=\"512\"><!-- The layers: Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0) Copyright 2026 Fonticons, Inc. --><rect width=\"512\" height=\"512\" rx=\"112\" fill=\"#5b3df5\"/><path fill=\"#ffffff\" transform=\"translate(102 102) scale(0.6)\" d=\"M232.5 5.2c14.9-6.9 32.1-6.9 47 0l218.6 101c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L13.9 149.8C5.4 145.8 0 137.3 0 128s5.4-17.9 13.9-21.8L232.5 5.2zM48.1 218.4l164.3 75.9c27.7 12.8 59.6 12.8 87.3 0l164.3-75.9 34.1 15.8c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L13.9 277.8C5.4 273.8 0 265.3 0 256s5.4-17.9 13.9-21.8l34.1-15.8zM13.9 362.2l34.1-15.8 164.3 75.9c27.7 12.8 59.6 12.8 87.3 0l164.3-75.9 34.1 15.8c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L13.9 405.8C5.4 401.8 0 393.3 0 384s5.4-17.9 13.9-21.8z\"/></svg>";
|
|
8
|
+
/** The mark as an address a page can draw it from without asking any site for it: `<img src>`, a link's icon. */
|
|
9
|
+
export declare const PLITZI_MARK_DATA_URL: string;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/schema/plitziMark.ts
|
|
2
|
+
var e = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\" width=\"512\" height=\"512\"><!-- The layers: Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0) Copyright 2026 Fonticons, Inc. --><rect width=\"512\" height=\"512\" rx=\"112\" fill=\"#5b3df5\"/><path fill=\"#ffffff\" transform=\"translate(102 102) scale(0.6)\" d=\"M232.5 5.2c14.9-6.9 32.1-6.9 47 0l218.6 101c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L13.9 149.8C5.4 145.8 0 137.3 0 128s5.4-17.9 13.9-21.8L232.5 5.2zM48.1 218.4l164.3 75.9c27.7 12.8 59.6 12.8 87.3 0l164.3-75.9 34.1 15.8c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L13.9 277.8C5.4 273.8 0 265.3 0 256s5.4-17.9 13.9-21.8l34.1-15.8zM13.9 362.2l34.1-15.8 164.3 75.9c27.7 12.8 59.6 12.8 87.3 0l164.3-75.9 34.1 15.8c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L13.9 405.8C5.4 401.8 0 393.3 0 384s5.4-17.9 13.9-21.8z\"/></svg>", t = `data:image/svg+xml,${encodeURIComponent(e)}`;
|
|
3
|
+
export { t as PLITZI_MARK_DATA_URL, e as PLITZI_MARK_SVG };
|
|
@@ -4,7 +4,7 @@ import { Schema } from '../types';
|
|
|
4
4
|
* builder writes (`SCHEMA_UPDATE_SETTINGS`) and the reader of a space keeps. A key outside it is one nothing reads any
|
|
5
5
|
* more — `head`, from before a space declared its fonts.
|
|
6
6
|
*/
|
|
7
|
-
export declare const SCHEMA_SETTINGS: readonly ["keepState", "stateStorage", "transientState", "keptState", "paintedState", "browserState", "robotsTxt", "blockAiCrawlers", "viewTransitions", "siteName", "language", "favicon", "shareImage", "themeColor", "customCss", "withheldPage", "visitorRoles", "userProvider", "tokenStorage", "loginUrl", "userUrl", "refreshUrl", "logoutUrl", "revokeUrl", "detailsPath", "tokenPath", "refreshTokenPath", "expirationTimePath", "refreshExpirationTimePath", "sessionHintCookie", "sessionExchangeUrl", "mfaUrl", "sessionGate", "sessionRevalidateSeconds", "debugMode", "computed", "channels"];
|
|
7
|
+
export declare const SCHEMA_SETTINGS: readonly ["keepState", "stateStorage", "transientState", "keptState", "paintedState", "browserState", "robotsTxt", "securityTxt", "llmsTxt", "blockAiCrawlers", "viewTransitions", "siteName", "language", "favicon", "shareImage", "themeColor", "customCss", "withheldPage", "wholeDocument", "visitorRoles", "userProvider", "tokenStorage", "loginUrl", "userUrl", "refreshUrl", "logoutUrl", "revokeUrl", "detailsPath", "tokenPath", "refreshTokenPath", "expirationTimePath", "refreshExpirationTimePath", "sessionHintCookie", "sessionExchangeUrl", "mfaUrl", "sessionGate", "sessionRevalidateSeconds", "debugMode", "computed", "channels"];
|
|
8
8
|
/** Whether a key is a setting a space may carry: one the builder may write, though the space has no value for it yet. */
|
|
9
9
|
export declare const isSchemaSetting: (key: string) => key is (typeof SCHEMA_SETTINGS)[number];
|
|
10
10
|
/**
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// src/schema/schemaSettings.ts
|
|
2
|
-
var e = /* @__PURE__ */ "keepState.stateStorage.transientState.keptState.paintedState.browserState.robotsTxt.blockAiCrawlers.viewTransitions.siteName.language.favicon.shareImage.themeColor.customCss.withheldPage.visitorRoles.userProvider.tokenStorage.loginUrl.userUrl.refreshUrl.logoutUrl.revokeUrl.detailsPath.tokenPath.refreshTokenPath.expirationTimePath.refreshExpirationTimePath.sessionHintCookie.sessionExchangeUrl.mfaUrl.sessionGate.sessionRevalidateSeconds.debugMode.computed.channels".split("."), t = new Set(e), n = (e) => t.has(e);
|
|
2
|
+
var e = /* @__PURE__ */ "keepState.stateStorage.transientState.keptState.paintedState.browserState.robotsTxt.securityTxt.llmsTxt.blockAiCrawlers.viewTransitions.siteName.language.favicon.shareImage.themeColor.customCss.withheldPage.wholeDocument.visitorRoles.userProvider.tokenStorage.loginUrl.userUrl.refreshUrl.logoutUrl.revokeUrl.detailsPath.tokenPath.refreshTokenPath.expirationTimePath.refreshExpirationTimePath.sessionHintCookie.sessionExchangeUrl.mfaUrl.sessionGate.sessionRevalidateSeconds.debugMode.computed.channels".split("."), t = new Set(e), n = (e) => t.has(e);
|
|
3
3
|
export { e as SCHEMA_SETTINGS, n as isSchemaSetting };
|
|
@@ -6,6 +6,11 @@ export declare const hasServerElements: (schema: Schema, pageId: string | undefi
|
|
|
6
6
|
export type ServerNavigation = {
|
|
7
7
|
routeParams: Record<string, unknown>;
|
|
8
8
|
queryParams: Record<string, unknown>;
|
|
9
|
+
/**
|
|
10
|
+
* The page's own origin, as the browser's `navigation.origin` says it: an absolute address a page's JSON-LD or picture
|
|
11
|
+
* writes as `{{ navigation.origin }}/…`. Absent when the request names no host it can be built from.
|
|
12
|
+
*/
|
|
13
|
+
origin?: string;
|
|
9
14
|
};
|
|
10
15
|
/**
|
|
11
16
|
* The server provider of a page whose answer says the address shows nothing — its `notFound`, a template against
|
|
@@ -61,8 +61,8 @@ var d = /* @__PURE__ */ new Set([
|
|
|
61
61
|
let b = p(y), x = o.runtime?.state;
|
|
62
62
|
if (!m) {
|
|
63
63
|
m = !0;
|
|
64
|
-
let e = c(d);
|
|
65
|
-
if (e && e.owner !== b) {
|
|
64
|
+
let e = c(d), i = u.userProvider === "server";
|
|
65
|
+
if (e && e.owner !== b && !i) {
|
|
66
66
|
let i = r(u), a = new Set([...v].filter((n) => !i.has(n) && t(x) && n in x && JSON.stringify(x[n]) === JSON.stringify(e.values[n])));
|
|
67
67
|
if (t(x) && a.size > 0) {
|
|
68
68
|
n.setState("runtime.state", g(x, a));
|