@ebitex/content-sdk 0.17.80 → 0.19.82

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.
@@ -0,0 +1,58 @@
1
+ import type { LocaleTreeNode, SiteAddressing } from '../types.js';
2
+ /**
3
+ * Spec 712-locale-addressing — the pure half of how the SDK addresses a site whose locale lives in
4
+ * the address. No I/O here: the client supplies the site's `addressing` (from `GET /sites`) and the
5
+ * locale tree (from `GET /locales`), and these decide.
6
+ *
7
+ * The rule the whole spec rests on: **if a node's address varies by locale, the locale is determined
8
+ * by the address.** So under a non-`invariant` site the SDK never *chooses* a locale for `/path` —
9
+ * the path's prefix or the page's host already says it, and the server refuses a `locale=` beside
10
+ * it. The client still needs to *know* that locale, for the calls that have no address to carry one
11
+ * (a component, a list, a stream) and for its own cache keys; that is what these functions derive.
12
+ */
13
+ /** A strategy the SDK acts on. `invariant` is never one: an absent member and an explicit `invariant` are the same thing. */
14
+ export type ActiveAddressing = Exclude<SiteAddressing, {
15
+ strategy: 'invariant';
16
+ }>;
17
+ /**
18
+ * The site's strategy, or `undefined` for `invariant` — which is what an absent member, an explicit
19
+ * `{ strategy: 'invariant' }`, and any shape this SDK version does not recognize all mean. The last
20
+ * case is deliberate: a future strategy an old SDK cannot address is better treated as today's
21
+ * behaviour, which the server then refuses loudly, than guessed at.
22
+ */
23
+ export declare function activeAddressing(site: {
24
+ addressing?: unknown;
25
+ } | undefined): ActiveAddressing | undefined;
26
+ /** The organization's root locale — `GET /locales`' own root, the locale the `default` slot speaks for (spec 712 confirm D). */
27
+ export declare function rootLocale(tree: readonly LocaleTreeNode[]): string | undefined;
28
+ /**
29
+ * `pathPrefix`: the leading segment when it names a locale in the tree (case-insensitive, returned
30
+ * in the tree's own casing), else the root locale — a bare address is the default locale's, whether
31
+ * `prefixDefaultLocale` is set or not (when it is, the server redirects the bare address rather than
32
+ * serving it, but the locale it names is the same). A leading segment naming no locale is simply
33
+ * part of the path, exactly as the server parses it.
34
+ */
35
+ export declare function localeFromPrefix(pathname: string, tree: readonly LocaleTreeNode[]): string | undefined;
36
+ /**
37
+ * `localeHost`: the locale the site maps this hostname to, or `undefined` when it maps none — the
38
+ * caller then falls back to the root locale. Case-insensitive, hostname only (the server stores
39
+ * hosts port-less).
40
+ */
41
+ export declare function localeForHost(addressing: Extract<ActiveAddressing, {
42
+ strategy: 'localeHost';
43
+ }>, hostname: string | undefined): string | undefined;
44
+ /**
45
+ * The part of a cache key that stands where the locale stands for an `invariant` site. Under a
46
+ * non-`invariant` site the *address* determines the locale, so the address is the identity: the
47
+ * path (already in every key) for `pathPrefix`, the path plus the host for `localeHost`. Keying on
48
+ * the address rather than on a derived locale is also what lets `peekLocation` rebuild the key
49
+ * synchronously, with no locale tree in hand.
50
+ *
51
+ * Both markers start with `@`, which no locale code does, so a key written for a site before its
52
+ * strategy flipped can never be read back as one written after.
53
+ *
54
+ * `undefined` for `localeHost` with no hostname — there is no address to key on, and no request to
55
+ * make either.
56
+ */
57
+ export declare function addressKey(addressing: ActiveAddressing, hostname: string | undefined): string | undefined;
58
+ //# sourceMappingURL=addressing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addressing.d.ts","sourceRoot":"","sources":["../../src/content/addressing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEjE;;;;;;;;;;GAUG;AAEH,6HAA6H;AAC7H,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,cAAc,EAAE;IAAE,QAAQ,EAAE,WAAW,CAAA;CAAE,CAAC,CAAA;AAEjF;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE;IAAE,UAAU,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,SAAS,GAAG,gBAAgB,GAAG,SAAS,CAuBzG;AAED,gIAAgI;AAChI,wBAAgB,UAAU,CAAC,IAAI,EAAE,SAAS,cAAc,EAAE,GAAG,MAAM,GAAG,SAAS,CAE9E;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,cAAc,EAAE,GAAG,MAAM,GAAG,SAAS,CAWtG;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,UAAU,EAAE,OAAO,CAAC,gBAAgB,EAAE;IAAE,QAAQ,EAAE,YAAY,CAAA;CAAE,CAAC,EACjE,QAAQ,EAAE,MAAM,GAAG,SAAS,GAC3B,MAAM,GAAG,SAAS,CAOpB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,UAAU,CAAC,UAAU,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAMzG"}
@@ -0,0 +1,78 @@
1
+ /**
2
+ * The site's strategy, or `undefined` for `invariant` — which is what an absent member, an explicit
3
+ * `{ strategy: 'invariant' }`, and any shape this SDK version does not recognize all mean. The last
4
+ * case is deliberate: a future strategy an old SDK cannot address is better treated as today's
5
+ * behaviour, which the server then refuses loudly, than guessed at.
6
+ */
7
+ export function activeAddressing(site) {
8
+ const addressing = site?.addressing;
9
+ if (typeof addressing !== 'object' || addressing === null) {
10
+ return undefined;
11
+ }
12
+ const candidate = addressing;
13
+ if (candidate.strategy === 'pathPrefix') {
14
+ return { strategy: 'pathPrefix', prefixDefaultLocale: candidate.prefixDefaultLocale === true };
15
+ }
16
+ if (candidate.strategy === 'localeHost' && Array.isArray(candidate.hosts)) {
17
+ const hosts = candidate.hosts.filter((entry) => typeof entry === 'object' &&
18
+ entry !== null &&
19
+ typeof entry.host === 'string' &&
20
+ typeof entry.locale === 'string');
21
+ return { strategy: 'localeHost', hosts: hosts.map(({ host, locale }) => ({ host, locale })) };
22
+ }
23
+ return undefined;
24
+ }
25
+ /** The organization's root locale — `GET /locales`' own root, the locale the `default` slot speaks for (spec 712 confirm D). */
26
+ export function rootLocale(tree) {
27
+ return tree.find((node) => node.parentCode === null)?.code;
28
+ }
29
+ /**
30
+ * `pathPrefix`: the leading segment when it names a locale in the tree (case-insensitive, returned
31
+ * in the tree's own casing), else the root locale — a bare address is the default locale's, whether
32
+ * `prefixDefaultLocale` is set or not (when it is, the server redirects the bare address rather than
33
+ * serving it, but the locale it names is the same). A leading segment naming no locale is simply
34
+ * part of the path, exactly as the server parses it.
35
+ */
36
+ export function localeFromPrefix(pathname, tree) {
37
+ const first = pathname.split('/').find((segment) => segment !== '');
38
+ if (first !== undefined) {
39
+ const wanted = first.toLowerCase();
40
+ const match = tree.find((node) => node.code.toLowerCase() === wanted);
41
+ if (match !== undefined) {
42
+ return match.code;
43
+ }
44
+ }
45
+ return rootLocale(tree);
46
+ }
47
+ /**
48
+ * `localeHost`: the locale the site maps this hostname to, or `undefined` when it maps none — the
49
+ * caller then falls back to the root locale. Case-insensitive, hostname only (the server stores
50
+ * hosts port-less).
51
+ */
52
+ export function localeForHost(addressing, hostname) {
53
+ if (!hostname) {
54
+ return undefined;
55
+ }
56
+ const wanted = hostname.toLowerCase();
57
+ return addressing.hosts.find((entry) => entry.host.toLowerCase() === wanted)?.locale;
58
+ }
59
+ /**
60
+ * The part of a cache key that stands where the locale stands for an `invariant` site. Under a
61
+ * non-`invariant` site the *address* determines the locale, so the address is the identity: the
62
+ * path (already in every key) for `pathPrefix`, the path plus the host for `localeHost`. Keying on
63
+ * the address rather than on a derived locale is also what lets `peekLocation` rebuild the key
64
+ * synchronously, with no locale tree in hand.
65
+ *
66
+ * Both markers start with `@`, which no locale code does, so a key written for a site before its
67
+ * strategy flipped can never be read back as one written after.
68
+ *
69
+ * `undefined` for `localeHost` with no hostname — there is no address to key on, and no request to
70
+ * make either.
71
+ */
72
+ export function addressKey(addressing, hostname) {
73
+ if (addressing.strategy === 'pathPrefix') {
74
+ return '@prefix';
75
+ }
76
+ return hostname ? `@host:${hostname.toLowerCase()}` : undefined;
77
+ }
78
+ //# sourceMappingURL=addressing.js.map
@@ -0,0 +1 @@
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C,CAAC,CAAC,SAAS,CAAA;AACjE,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { type DeliveryClient, type DeliveryClientOptions } from '../delivery/client.js';
2
- import type { ComponentValue, ContentDocument, ContextBag, ExpandedReference, LocaleTreeNode, NavigationInclude, PresentationEnvelope, SiteSummary } from '../types.js';
2
+ import type { ComponentValue, ContentDocument, ContextBag, ExpandedReference, LocaleTreeNode, NavigationInclude, PresentationEnvelope, SiteAddressing, SiteSummary } from '../types.js';
3
3
  import { type CacheOptions } from './cache.js';
4
4
  import { type NavigationTree } from './navigation.js';
5
5
  import { type ResolveStrategy } from './strategy.js';
@@ -12,6 +12,14 @@ export interface NavigationOptions {
12
12
  /** Bypasses the in-memory cache for this call. */
13
13
  fresh?: boolean;
14
14
  signal?: AbortSignal;
15
+ /**
16
+ * Spec 712-locale-addressing: the page this navigation is for, under a site with a locale
17
+ * addressing strategy. It supplies the host a `localeHost` site needs for a path anchor, and the
18
+ * locale a node-id (or absent) anchor is asked in. Defaults to the browser's own location, so a
19
+ * browser never needs it; a server must pass the request's URL, since the SDK never reads a
20
+ * forwarded host (spec 355). Ignored for an `invariant` site.
21
+ */
22
+ location?: LocationLike;
15
23
  }
16
24
  export interface ContentClientOptions extends DeliveryClientOptions {
17
25
  /**
@@ -74,6 +82,8 @@ export interface ResolvedSite {
74
82
  rootNodeId: string;
75
83
  name?: string;
76
84
  hosts?: string[];
85
+ /** Spec 712 — present when the site was looked up from `GET /sites` and has a locale addressing strategy. */
86
+ addressing?: SiteAddressing;
77
87
  }
78
88
  export interface PresentationExperience {
79
89
  kind: 'presentation';
@@ -87,8 +97,20 @@ export interface PresentationExperience {
87
97
  */
88
98
  title?: string;
89
99
  titleSource?: 'content' | 'name';
100
+ /**
101
+ * Spec 712 — the locale slot the path was found in, carried through from the delivery response.
102
+ * Present only for a site with a locale addressing strategy, and `default` when the locale's own
103
+ * slot is not materialized yet.
104
+ */
105
+ localeSlot?: string;
90
106
  presentation: PresentationEnvelope;
91
107
  site: ResolvedSite;
108
+ /**
109
+ * The locale this page was resolved in. For an `invariant` site, the one the client chose (the
110
+ * `locale` option, else the browser's languages) and sent. For a site with a locale addressing
111
+ * strategy (spec 712), the one the **address** names — its prefix or its host — as the server
112
+ * reports it: set `<html lang>` from this. `undefined` only when nothing names one.
113
+ */
92
114
  locale: string | undefined;
93
115
  strategy: ResolveStrategy;
94
116
  }
@@ -103,8 +125,14 @@ export interface NotFoundExperience {
103
125
  path: string;
104
126
  }
105
127
  export type ExperienceResult = PresentationExperience | RedirectExperience | NotFoundExperience;
128
+ /**
129
+ * A path, a full URL, a `URL`, or any `{ pathname }` — a react-router location, `window.location`.
130
+ * `hostname` is read, when present, only for a `localeHost` site (spec 712), where the host is the
131
+ * locale; a bare path then falls back to the browser's own hostname.
132
+ */
106
133
  export type LocationLike = string | URL | {
107
134
  pathname: string;
135
+ hostname?: string;
108
136
  };
109
137
  /** A persisted `resolveLocation` result (spec 413) — only ever a `presentation`, per SPEC.md's "what is persisted" rule. */
110
138
  export interface PersistedExperience {
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/content/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,cAAc,EAAE,KAAK,qBAAqB,EAAE,MAAM,uBAAuB,CAAA;AAK7G,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EAEjB,oBAAoB,EAEpB,WAAW,EACZ,MAAM,aAAa,CAAA;AACpB,OAAO,EAAgB,KAAK,YAAY,EAAE,MAAM,YAAY,CAAA;AAG5D,OAAO,EAAwB,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAG3E,OAAO,EAA4C,KAAK,eAAe,EAAE,MAAM,eAAe,CAAA;AAmB9F,sGAAsG;AACtG,MAAM,WAAW,iBAAiB;IAChC,2FAA2F;IAC3F,OAAO,CAAC,EAAE,SAAS,iBAAiB,EAAE,CAAA;I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