@xenia-martech/sdk-js 1.2.0-dev.6 → 1.2.0-dev.7
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/README.md +1 -1
- package/dist/{actions-C18Kv-4w.d.cts → actions-35V37IT0.d.cts} +2 -1
- package/dist/{actions-C18Kv-4w.d.ts → actions-35V37IT0.d.ts} +2 -1
- package/dist/client/index.d.cts +4 -3
- package/dist/client/index.d.ts +4 -3
- package/dist/client/react/index.cjs +14 -7
- package/dist/client/react/index.cjs.map +1 -1
- package/dist/client/react/index.d.cts +10 -4
- package/dist/client/react/index.d.ts +10 -4
- package/dist/client/react/index.js +14 -7
- package/dist/client/react/index.js.map +1 -1
- package/dist/cms/contentful.d.cts +3 -2
- package/dist/cms/contentful.d.ts +3 -2
- package/dist/{consent-DgWdjsSy.d.cts → consent-BgAETCkL.d.cts} +2 -1
- package/dist/{consent-Cemn91j3.d.ts → consent-DRCV0N0d.d.ts} +2 -1
- package/dist/{cookie-names-CnL65Oly.d.cts → cookie-names-DFItnSLK.d.cts} +2 -1
- package/dist/{cookie-names-BvUaW3uo.d.ts → cookie-names-DU3MtcNG.d.ts} +2 -1
- package/dist/edge/index.d.cts +4 -3
- package/dist/edge/index.d.ts +4 -3
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/next/index.d.cts +7 -5
- package/dist/next/index.d.ts +7 -5
- package/dist/{personalize-content-c2DDAV6g.d.ts → personalize-content-Cwc2AomC.d.ts} +2 -1
- package/dist/{personalize-content-ghZPKlf1.d.cts → personalize-content-CxSdplMV.d.cts} +2 -1
- package/dist/server/index.d.cts +5 -4
- package/dist/server/index.d.ts +5 -4
- package/dist/{xenia-server-DV8Sjmoo.d.ts → xenia-server-Cf24mL0c.d.ts} +3 -2
- package/dist/{xenia-server-C3O-cWQT.d.cts → xenia-server-D-bx14lw.d.cts} +3 -2
- package/package.json +10 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CmsAdapter, XeniaMarker } from '../index.cjs';
|
|
2
2
|
import '../types-DgVHS4Qw.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -55,4 +55,5 @@ declare function parseMarker(raw: unknown): XeniaMarker | null;
|
|
|
55
55
|
*/
|
|
56
56
|
declare function resolveCollection(payload: unknown, asPage?: boolean): unknown;
|
|
57
57
|
|
|
58
|
-
export {
|
|
58
|
+
export { contentfulAdapter, parseMarker, resolveCollection };
|
|
59
|
+
export type { ContentfulAdapterOptions, ContentfulClientLike };
|
package/dist/cms/contentful.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CmsAdapter, XeniaMarker } from '../index.js';
|
|
2
2
|
import '../types-DgVHS4Qw.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -55,4 +55,5 @@ declare function parseMarker(raw: unknown): XeniaMarker | null;
|
|
|
55
55
|
*/
|
|
56
56
|
declare function resolveCollection(payload: unknown, asPage?: boolean): unknown;
|
|
57
57
|
|
|
58
|
-
export {
|
|
58
|
+
export { contentfulAdapter, parseMarker, resolveCollection };
|
|
59
|
+
export type { ContentfulAdapterOptions, ContentfulClientLike };
|
|
@@ -245,4 +245,5 @@ declare function edgeConsent(headers: Headers, opts?: {
|
|
|
245
245
|
respectDnt?: boolean;
|
|
246
246
|
}): EdgeConsent;
|
|
247
247
|
|
|
248
|
-
export {
|
|
248
|
+
export { createXeniaEdge as l, decodeVariant as m, deviceOf as n, edgeConsent as o, encodeVariant as p, isBot as q, isPageLoad as r, isPrefetch as s, landingContext as t, localTime as u, memoryDecisionCache as v, seasonOf as w, swapGroups as x, viewerGeo as y };
|
|
249
|
+
export type { CachedDecision as C, DecideInput as D, EdgeConsent as E, GeoHeader as G, LocalTime as L, Manifest as M, PublicManifest as P, SwapGroup as S, TrailView as T, VariantSwap as V, XeniaEdge as X, DecideOutcome as a, DecideResult as b, DecisionCache as c, DecisionSource as d, EdgeDecision as e, EdgeFacts as f, EdgeMode as g, ManifestKey as h, ProfileFacts as i, ViewerGeo as j, XeniaEdgeConfig as k };
|
|
@@ -245,4 +245,5 @@ declare function edgeConsent(headers: Headers, opts?: {
|
|
|
245
245
|
respectDnt?: boolean;
|
|
246
246
|
}): EdgeConsent;
|
|
247
247
|
|
|
248
|
-
export {
|
|
248
|
+
export { createXeniaEdge as l, decodeVariant as m, deviceOf as n, edgeConsent as o, encodeVariant as p, isBot as q, isPageLoad as r, isPrefetch as s, landingContext as t, localTime as u, memoryDecisionCache as v, seasonOf as w, swapGroups as x, viewerGeo as y };
|
|
249
|
+
export type { CachedDecision as C, DecideInput as D, EdgeConsent as E, GeoHeader as G, LocalTime as L, Manifest as M, PublicManifest as P, SwapGroup as S, TrailView as T, VariantSwap as V, XeniaEdge as X, DecideOutcome as a, DecideResult as b, DecisionCache as c, DecisionSource as d, EdgeDecision as e, EdgeFacts as f, EdgeMode as g, ManifestKey as h, ProfileFacts as i, ViewerGeo as j, XeniaEdgeConfig as k };
|
|
@@ -124,4 +124,5 @@ declare const CONSENT_COOKIE: string;
|
|
|
124
124
|
*/
|
|
125
125
|
declare function consentCookie(state: ConsentState, prefix?: string, maxAgeDays?: number): string;
|
|
126
126
|
|
|
127
|
-
export { CONSENT_COOKIE as C, DEFAULT_PREFIX as D, HttpClient as H,
|
|
127
|
+
export { CONSENT_COOKIE as C, DEFAULT_PREFIX as D, HttpClient as H, VISITOR_COOKIE as V, CircuitOpenError as a, HttpError as c, buildUrl as e, consentCookie as f, consentCookieName as g, isBrowser as i, parseActions as p, visitorCookieName as v };
|
|
128
|
+
export type { RequestOptions as R, HttpClientOptions as b, HttpResult as d };
|
|
@@ -124,4 +124,5 @@ declare const CONSENT_COOKIE: string;
|
|
|
124
124
|
*/
|
|
125
125
|
declare function consentCookie(state: ConsentState, prefix?: string, maxAgeDays?: number): string;
|
|
126
126
|
|
|
127
|
-
export { CONSENT_COOKIE as C, DEFAULT_PREFIX as D, HttpClient as H,
|
|
127
|
+
export { CONSENT_COOKIE as C, DEFAULT_PREFIX as D, HttpClient as H, VISITOR_COOKIE as V, CircuitOpenError as a, HttpError as c, buildUrl as e, consentCookie as f, consentCookieName as g, isBrowser as i, parseActions as p, visitorCookieName as v };
|
|
128
|
+
export type { RequestOptions as R, HttpClientOptions as b, HttpResult as d };
|
package/dist/edge/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as Manifest, P as PublicManifest, T as TrailView } from '../consent-
|
|
2
|
-
export { C as CachedDecision, D as DecideInput, a as DecideOutcome, b as DecideResult, c as DecisionCache, d as DecisionSource, E as EdgeConsent, e as EdgeDecision, f as EdgeFacts, g as EdgeMode, G as GeoHeader, L as LocalTime, h as ManifestKey, i as ProfileFacts, S as SwapGroup, V as VariantSwap, j as ViewerGeo, X as XeniaEdge, k as XeniaEdgeConfig, l as createXeniaEdge, m as decodeVariant, n as deviceOf, o as edgeConsent, p as encodeVariant, q as isBot, r as isPageLoad, s as isPrefetch, t as landingContext, u as localTime, v as memoryDecisionCache, w as seasonOf, x as swapGroups, y as viewerGeo } from '../consent-
|
|
1
|
+
import { M as Manifest, P as PublicManifest, T as TrailView } from '../consent-BgAETCkL.cjs';
|
|
2
|
+
export { C as CachedDecision, D as DecideInput, a as DecideOutcome, b as DecideResult, c as DecisionCache, d as DecisionSource, E as EdgeConsent, e as EdgeDecision, f as EdgeFacts, g as EdgeMode, G as GeoHeader, L as LocalTime, h as ManifestKey, i as ProfileFacts, S as SwapGroup, V as VariantSwap, j as ViewerGeo, X as XeniaEdge, k as XeniaEdgeConfig, l as createXeniaEdge, m as decodeVariant, n as deviceOf, o as edgeConsent, p as encodeVariant, q as isBot, r as isPageLoad, s as isPrefetch, t as landingContext, u as localTime, v as memoryDecisionCache, w as seasonOf, x as swapGroups, y as viewerGeo } from '../consent-BgAETCkL.cjs';
|
|
3
3
|
import '../types-DgVHS4Qw.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -58,4 +58,5 @@ declare function withView(trail: TrailView[], path: string, now?: number): Trail
|
|
|
58
58
|
/** The cookie value for a trail (not URI-encoded; cookie setters encode it). */
|
|
59
59
|
declare function trailCookieValue(trail: TrailView[]): string;
|
|
60
60
|
|
|
61
|
-
export {
|
|
61
|
+
export { MAX_TRAIL, Manifest, PublicManifest, TRAIL_MAX_AGE_S, TrailView, fetchManifest, matchesAny, normalizePath, readTrail, trailCookieName, trailCookieValue, trimManifest, verifyWebhook, withView };
|
|
62
|
+
export type { FetchManifestOptions };
|
package/dist/edge/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as Manifest, P as PublicManifest, T as TrailView } from '../consent-
|
|
2
|
-
export { C as CachedDecision, D as DecideInput, a as DecideOutcome, b as DecideResult, c as DecisionCache, d as DecisionSource, E as EdgeConsent, e as EdgeDecision, f as EdgeFacts, g as EdgeMode, G as GeoHeader, L as LocalTime, h as ManifestKey, i as ProfileFacts, S as SwapGroup, V as VariantSwap, j as ViewerGeo, X as XeniaEdge, k as XeniaEdgeConfig, l as createXeniaEdge, m as decodeVariant, n as deviceOf, o as edgeConsent, p as encodeVariant, q as isBot, r as isPageLoad, s as isPrefetch, t as landingContext, u as localTime, v as memoryDecisionCache, w as seasonOf, x as swapGroups, y as viewerGeo } from '../consent-
|
|
1
|
+
import { M as Manifest, P as PublicManifest, T as TrailView } from '../consent-DRCV0N0d.js';
|
|
2
|
+
export { C as CachedDecision, D as DecideInput, a as DecideOutcome, b as DecideResult, c as DecisionCache, d as DecisionSource, E as EdgeConsent, e as EdgeDecision, f as EdgeFacts, g as EdgeMode, G as GeoHeader, L as LocalTime, h as ManifestKey, i as ProfileFacts, S as SwapGroup, V as VariantSwap, j as ViewerGeo, X as XeniaEdge, k as XeniaEdgeConfig, l as createXeniaEdge, m as decodeVariant, n as deviceOf, o as edgeConsent, p as encodeVariant, q as isBot, r as isPageLoad, s as isPrefetch, t as landingContext, u as localTime, v as memoryDecisionCache, w as seasonOf, x as swapGroups, y as viewerGeo } from '../consent-DRCV0N0d.js';
|
|
3
3
|
import '../types-DgVHS4Qw.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -58,4 +58,5 @@ declare function withView(trail: TrailView[], path: string, now?: number): Trail
|
|
|
58
58
|
/** The cookie value for a trail (not URI-encoded; cookie setters encode it). */
|
|
59
59
|
declare function trailCookieValue(trail: TrailView[]): string;
|
|
60
60
|
|
|
61
|
-
export {
|
|
61
|
+
export { MAX_TRAIL, Manifest, PublicManifest, TRAIL_MAX_AGE_S, TrailView, fetchManifest, matchesAny, normalizePath, readTrail, trailCookieName, trailCookieValue, trimManifest, verifyWebhook, withView };
|
|
62
|
+
export type { FetchManifestOptions };
|
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { X as XeniaApi } from './api-0IycTYJR.cjs';
|
|
2
|
-
export { C as CONSENT_COOKIE, a as CircuitOpenError, D as DEFAULT_PREFIX, H as HttpClient, b as HttpClientOptions, c as HttpError, d as HttpResult, R as RequestOptions, V as VISITOR_COOKIE, e as buildUrl, f as consentCookie, g as consentCookieName, i as isBrowser, p as parseActions, v as visitorCookieName } from './cookie-names-
|
|
2
|
+
export { C as CONSENT_COOKIE, a as CircuitOpenError, D as DEFAULT_PREFIX, H as HttpClient, b as HttpClientOptions, c as HttpError, d as HttpResult, R as RequestOptions, V as VISITOR_COOKIE, e as buildUrl, f as consentCookie, g as consentCookieName, i as isBrowser, p as parseActions, v as visitorCookieName } from './cookie-names-DFItnSLK.cjs';
|
|
3
3
|
import { J as JsonValue, E as EventContext, W as WebhookResponse } from './types-DgVHS4Qw.cjs';
|
|
4
4
|
export { A as AnalyticsContext, a as AnalyticsEventName, b as AnalyticsIdentity, c as AnalyticsIngestResponse, C as CircuitBreakerConfig, d as ConsentState, e as EntryDecision, f as EntryFilter, g as EntryQuery, h as EntrySwapOp, i as EventIdentity, H as HttpMethod, I as IdentifyRequest, j as IdentifyResponse, k as InteractionType, l as JsonObject, M as MessageCta, m as MessagePlacement, P as PersonalizationSwap, R as ResolveBatchItem, n as ResolveBatchResult, o as ResolveEntriesResult, p as ResolveOptions, q as ResolveResult, r as RetryConfig, T as TrackOptions, s as WidgetFormSubmit, t as WidgetPrize, u as WidgetSegment, v as WidgetSubmitResponse, w as WidgetType, X as XeniaAction, x as XeniaConfig, y as XeniaEvent } from './types-DgVHS4Qw.cjs';
|
|
5
|
-
export { A as AppliedSwap, C as CmsAdapter, E as EntryResolver, P as PagePersonalizeOptions, a as PageRef, b as PersonalizeContentOptions, c as PersonalizeContentResult, X as XeniaMarker, p as pendingTargets, d as personalizeContent, e as personalizePage } from './personalize-content-
|
|
5
|
+
export { A as AppliedSwap, C as CmsAdapter, E as EntryResolver, P as PagePersonalizeOptions, a as PageRef, b as PersonalizeContentOptions, c as PersonalizeContentResult, X as XeniaMarker, p as pendingTargets, d as personalizeContent, e as personalizePage } from './personalize-content-CxSdplMV.cjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Generate a ULID (Universally Unique Lexicographically Sortable Identifier):
|
|
@@ -110,4 +110,5 @@ declare class LocalStorageResponseStore implements ResponseStore {
|
|
|
110
110
|
clear(): void;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
export {
|
|
113
|
+
export { EventContext, JsonValue, LocalStorageResponseStore, MAX_EVENT_ID_LENGTH, MemoryResponseStore, WebhookResponse, contextFromUrl, extractContentSwaps, generateUlid, spliceSlots, toEventId };
|
|
114
|
+
export type { ContentSwap, ResponseStore };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { X as XeniaApi } from './api-COXWLL5L.js';
|
|
2
|
-
export { C as CONSENT_COOKIE, a as CircuitOpenError, D as DEFAULT_PREFIX, H as HttpClient, b as HttpClientOptions, c as HttpError, d as HttpResult, R as RequestOptions, V as VISITOR_COOKIE, e as buildUrl, f as consentCookie, g as consentCookieName, i as isBrowser, p as parseActions, v as visitorCookieName } from './cookie-names-
|
|
2
|
+
export { C as CONSENT_COOKIE, a as CircuitOpenError, D as DEFAULT_PREFIX, H as HttpClient, b as HttpClientOptions, c as HttpError, d as HttpResult, R as RequestOptions, V as VISITOR_COOKIE, e as buildUrl, f as consentCookie, g as consentCookieName, i as isBrowser, p as parseActions, v as visitorCookieName } from './cookie-names-DU3MtcNG.js';
|
|
3
3
|
import { J as JsonValue, E as EventContext, W as WebhookResponse } from './types-DgVHS4Qw.js';
|
|
4
4
|
export { A as AnalyticsContext, a as AnalyticsEventName, b as AnalyticsIdentity, c as AnalyticsIngestResponse, C as CircuitBreakerConfig, d as ConsentState, e as EntryDecision, f as EntryFilter, g as EntryQuery, h as EntrySwapOp, i as EventIdentity, H as HttpMethod, I as IdentifyRequest, j as IdentifyResponse, k as InteractionType, l as JsonObject, M as MessageCta, m as MessagePlacement, P as PersonalizationSwap, R as ResolveBatchItem, n as ResolveBatchResult, o as ResolveEntriesResult, p as ResolveOptions, q as ResolveResult, r as RetryConfig, T as TrackOptions, s as WidgetFormSubmit, t as WidgetPrize, u as WidgetSegment, v as WidgetSubmitResponse, w as WidgetType, X as XeniaAction, x as XeniaConfig, y as XeniaEvent } from './types-DgVHS4Qw.js';
|
|
5
|
-
export { A as AppliedSwap, C as CmsAdapter, E as EntryResolver, P as PagePersonalizeOptions, a as PageRef, b as PersonalizeContentOptions, c as PersonalizeContentResult, X as XeniaMarker, p as pendingTargets, d as personalizeContent, e as personalizePage } from './personalize-content-
|
|
5
|
+
export { A as AppliedSwap, C as CmsAdapter, E as EntryResolver, P as PagePersonalizeOptions, a as PageRef, b as PersonalizeContentOptions, c as PersonalizeContentResult, X as XeniaMarker, p as pendingTargets, d as personalizeContent, e as personalizePage } from './personalize-content-Cwc2AomC.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Generate a ULID (Universally Unique Lexicographically Sortable Identifier):
|
|
@@ -110,4 +110,5 @@ declare class LocalStorageResponseStore implements ResponseStore {
|
|
|
110
110
|
clear(): void;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
export {
|
|
113
|
+
export { EventContext, JsonValue, LocalStorageResponseStore, MAX_EVENT_ID_LENGTH, MemoryResponseStore, WebhookResponse, contextFromUrl, extractContentSwaps, generateUlid, spliceSlots, toEventId };
|
|
114
|
+
export type { ContentSwap, ResponseStore };
|
package/dist/next/index.d.cts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { NextRequest, NextResponse } from 'next/server';
|
|
2
|
-
import { V as VisitorCookieOptions
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { V as VisitorCookieOptions } from '../types-DgVHS4Qw.cjs';
|
|
3
|
+
import { ConsentState, XeniaConfig } from '../index.cjs';
|
|
4
|
+
import { XeniaServer } from '../server/index.cjs';
|
|
5
|
+
import { ViewerGeo, TrailView, EdgeConsent, EdgeFacts, DecideOutcome, XeniaEdge, GeoHeader, ManifestKey, EdgeDecision, SwapGroup } from '../edge/index.cjs';
|
|
5
6
|
import '../api-0IycTYJR.cjs';
|
|
6
|
-
import '../personalize-content-
|
|
7
|
+
import '../personalize-content-CxSdplMV.cjs';
|
|
7
8
|
|
|
8
9
|
/** Request header the proxy stamps with the URL being served (a Server Component can't see its own). */
|
|
9
10
|
declare const URL_HEADER = "x-xenia-url";
|
|
@@ -245,4 +246,5 @@ declare function consentFromNext(prefix?: string): Promise<ConsentState>;
|
|
|
245
246
|
*/
|
|
246
247
|
declare function personalizeOnce<T>(key: string, personalize: () => Promise<T>): Promise<T>;
|
|
247
248
|
|
|
248
|
-
export {
|
|
249
|
+
export { QA_CITIES, URL_HEADER, consentFromNext, createManifestRoute, createRevalidateRoute, personalizeOnce, readDebugEntries, xeniaEdgeProxy, xeniaProxy, xeniaServerFromNext };
|
|
250
|
+
export type { DebugEntry, EdgeDecisionInfo, EdgeExit, EdgeRequestContext, QaState, XeniaEdgeProxyOptions, XeniaProxyOptions };
|
package/dist/next/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { NextRequest, NextResponse } from 'next/server';
|
|
2
|
-
import { V as VisitorCookieOptions
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { V as VisitorCookieOptions } from '../types-DgVHS4Qw.js';
|
|
3
|
+
import { ConsentState, XeniaConfig } from '../index.js';
|
|
4
|
+
import { XeniaServer } from '../server/index.js';
|
|
5
|
+
import { ViewerGeo, TrailView, EdgeConsent, EdgeFacts, DecideOutcome, XeniaEdge, GeoHeader, ManifestKey, EdgeDecision, SwapGroup } from '../edge/index.js';
|
|
5
6
|
import '../api-COXWLL5L.js';
|
|
6
|
-
import '../personalize-content-
|
|
7
|
+
import '../personalize-content-Cwc2AomC.js';
|
|
7
8
|
|
|
8
9
|
/** Request header the proxy stamps with the URL being served (a Server Component can't see its own). */
|
|
9
10
|
declare const URL_HEADER = "x-xenia-url";
|
|
@@ -245,4 +246,5 @@ declare function consentFromNext(prefix?: string): Promise<ConsentState>;
|
|
|
245
246
|
*/
|
|
246
247
|
declare function personalizeOnce<T>(key: string, personalize: () => Promise<T>): Promise<T>;
|
|
247
248
|
|
|
248
|
-
export {
|
|
249
|
+
export { QA_CITIES, URL_HEADER, consentFromNext, createManifestRoute, createRevalidateRoute, personalizeOnce, readDebugEntries, xeniaEdgeProxy, xeniaProxy, xeniaServerFromNext };
|
|
250
|
+
export type { DebugEntry, EdgeDecisionInfo, EdgeExit, EdgeRequestContext, QaState, XeniaEdgeProxyOptions, XeniaProxyOptions };
|
|
@@ -137,4 +137,5 @@ declare function pendingTargets(payload: unknown, adapter: CmsAdapter, contentKe
|
|
|
137
137
|
*/
|
|
138
138
|
declare function personalizePage<T>(ref: PageRef, options: PersonalizeContentOptions): Promise<PersonalizeContentResult<T | null>>;
|
|
139
139
|
|
|
140
|
-
export {
|
|
140
|
+
export { personalizeContent as d, personalizePage as e, pendingTargets as p };
|
|
141
|
+
export type { AppliedSwap as A, CmsAdapter as C, EntryResolver as E, PagePersonalizeOptions as P, XeniaMarker as X, PageRef as a, PersonalizeContentOptions as b, PersonalizeContentResult as c };
|
|
@@ -137,4 +137,5 @@ declare function pendingTargets(payload: unknown, adapter: CmsAdapter, contentKe
|
|
|
137
137
|
*/
|
|
138
138
|
declare function personalizePage<T>(ref: PageRef, options: PersonalizeContentOptions): Promise<PersonalizeContentResult<T | null>>;
|
|
139
139
|
|
|
140
|
-
export {
|
|
140
|
+
export { personalizeContent as d, personalizePage as e, pendingTargets as p };
|
|
141
|
+
export type { AppliedSwap as A, CmsAdapter as C, EntryResolver as E, PagePersonalizeOptions as P, XeniaMarker as X, PageRef as a, PersonalizeContentOptions as b, PersonalizeContentResult as c };
|
package/dist/server/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { S as ServerResolveOptions, a as ServerTrackOptions, b as ServerWebhookOptions, W as WithFallback, X as XeniaServer, c as createXeniaServer } from '../xenia-server-
|
|
1
|
+
export { S as ServerResolveOptions, a as ServerTrackOptions, b as ServerWebhookOptions, W as WithFallback, X as XeniaServer, c as createXeniaServer } from '../xenia-server-D-bx14lw.cjs';
|
|
2
2
|
import { d as ConsentState } from '../types-DgVHS4Qw.cjs';
|
|
3
3
|
export { A as AnalyticsContext, a as AnalyticsEventName, b as AnalyticsIdentity, c as AnalyticsIngestResponse, C as CircuitBreakerConfig, E as EventContext, i as EventIdentity, I as IdentifyRequest, j as IdentifyResponse, J as JsonValue, P as PersonalizationSwap, R as ResolveBatchItem, n as ResolveBatchResult, p as ResolveOptions, q as ResolveResult, W as WebhookResponse, x as XeniaConfig, y as XeniaEvent } from '../types-DgVHS4Qw.cjs';
|
|
4
4
|
export { X as XeniaApi } from '../api-0IycTYJR.cjs';
|
|
5
|
-
export { C as CONSENT_COOKIE, a as CircuitOpenError, V as VISITOR_COOKIE, f as consentCookie, g as consentCookieName, p as parseActions, v as visitorCookieName } from '../cookie-names-
|
|
6
|
-
export { A as AppliedSwap, C as CmsAdapter, P as PagePersonalizeOptions, a as PageRef, c as PersonalizeContentResult, X as XeniaMarker, p as pendingTargets, d as personalizeContent, e as personalizePage } from '../personalize-content-
|
|
5
|
+
export { C as CONSENT_COOKIE, a as CircuitOpenError, V as VISITOR_COOKIE, f as consentCookie, g as consentCookieName, p as parseActions, v as visitorCookieName } from '../cookie-names-DFItnSLK.cjs';
|
|
6
|
+
export { A as AppliedSwap, C as CmsAdapter, P as PagePersonalizeOptions, a as PageRef, c as PersonalizeContentResult, X as XeniaMarker, p as pendingTargets, d as personalizeContent, e as personalizePage } from '../personalize-content-CxSdplMV.cjs';
|
|
7
7
|
|
|
8
8
|
interface RefreshTokenOptions {
|
|
9
9
|
/**
|
|
@@ -71,4 +71,5 @@ declare function getVisitorId(cookieHeader: string | null | undefined, prefix?:
|
|
|
71
71
|
*/
|
|
72
72
|
declare function getConsent(cookieHeader: string | null | undefined, prefix?: string): ConsentState;
|
|
73
73
|
|
|
74
|
-
export { ConsentState,
|
|
74
|
+
export { ConsentState, createTokenRoute, getConsent, getVisitorId, parseCookies, refreshSdkToken };
|
|
75
|
+
export type { RefreshTokenOptions, RefreshedToken };
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { S as ServerResolveOptions, a as ServerTrackOptions, b as ServerWebhookOptions, W as WithFallback, X as XeniaServer, c as createXeniaServer } from '../xenia-server-
|
|
1
|
+
export { S as ServerResolveOptions, a as ServerTrackOptions, b as ServerWebhookOptions, W as WithFallback, X as XeniaServer, c as createXeniaServer } from '../xenia-server-Cf24mL0c.js';
|
|
2
2
|
import { d as ConsentState } from '../types-DgVHS4Qw.js';
|
|
3
3
|
export { A as AnalyticsContext, a as AnalyticsEventName, b as AnalyticsIdentity, c as AnalyticsIngestResponse, C as CircuitBreakerConfig, E as EventContext, i as EventIdentity, I as IdentifyRequest, j as IdentifyResponse, J as JsonValue, P as PersonalizationSwap, R as ResolveBatchItem, n as ResolveBatchResult, p as ResolveOptions, q as ResolveResult, W as WebhookResponse, x as XeniaConfig, y as XeniaEvent } from '../types-DgVHS4Qw.js';
|
|
4
4
|
export { X as XeniaApi } from '../api-COXWLL5L.js';
|
|
5
|
-
export { C as CONSENT_COOKIE, a as CircuitOpenError, V as VISITOR_COOKIE, f as consentCookie, g as consentCookieName, p as parseActions, v as visitorCookieName } from '../cookie-names-
|
|
6
|
-
export { A as AppliedSwap, C as CmsAdapter, P as PagePersonalizeOptions, a as PageRef, c as PersonalizeContentResult, X as XeniaMarker, p as pendingTargets, d as personalizeContent, e as personalizePage } from '../personalize-content-
|
|
5
|
+
export { C as CONSENT_COOKIE, a as CircuitOpenError, V as VISITOR_COOKIE, f as consentCookie, g as consentCookieName, p as parseActions, v as visitorCookieName } from '../cookie-names-DU3MtcNG.js';
|
|
6
|
+
export { A as AppliedSwap, C as CmsAdapter, P as PagePersonalizeOptions, a as PageRef, c as PersonalizeContentResult, X as XeniaMarker, p as pendingTargets, d as personalizeContent, e as personalizePage } from '../personalize-content-Cwc2AomC.js';
|
|
7
7
|
|
|
8
8
|
interface RefreshTokenOptions {
|
|
9
9
|
/**
|
|
@@ -71,4 +71,5 @@ declare function getVisitorId(cookieHeader: string | null | undefined, prefix?:
|
|
|
71
71
|
*/
|
|
72
72
|
declare function getConsent(cookieHeader: string | null | undefined, prefix?: string): ConsentState;
|
|
73
73
|
|
|
74
|
-
export { ConsentState,
|
|
74
|
+
export { ConsentState, createTokenRoute, getConsent, getVisitorId, parseCookies, refreshSdkToken };
|
|
75
|
+
export type { RefreshTokenOptions, RefreshedToken };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { X as XeniaApi } from './api-COXWLL5L.js';
|
|
2
|
-
import { P as PagePersonalizeOptions, c as PersonalizeContentResult, a as PageRef } from './personalize-content-
|
|
2
|
+
import { P as PagePersonalizeOptions, c as PersonalizeContentResult, a as PageRef } from './personalize-content-Cwc2AomC.js';
|
|
3
3
|
import { x as XeniaConfig, a as AnalyticsEventName, z as CallerIdentity, A as AnalyticsContext, J as JsonValue, d as ConsentState, c as AnalyticsIngestResponse, i as EventIdentity, E as EventContext, W as WebhookResponse, I as IdentifyRequest, j as IdentifyResponse, p as ResolveOptions, q as ResolveResult, R as ResolveBatchItem, n as ResolveBatchResult } from './types-DgVHS4Qw.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -138,4 +138,5 @@ declare class XeniaServer {
|
|
|
138
138
|
/** Create a server-native client. */
|
|
139
139
|
declare function createXeniaServer(config: XeniaConfig): XeniaServer;
|
|
140
140
|
|
|
141
|
-
export {
|
|
141
|
+
export { XeniaServer as X, createXeniaServer as c };
|
|
142
|
+
export type { ServerResolveOptions as S, WithFallback as W, ServerTrackOptions as a, ServerWebhookOptions as b };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { X as XeniaApi } from './api-0IycTYJR.cjs';
|
|
2
|
-
import { P as PagePersonalizeOptions, c as PersonalizeContentResult, a as PageRef } from './personalize-content-
|
|
2
|
+
import { P as PagePersonalizeOptions, c as PersonalizeContentResult, a as PageRef } from './personalize-content-CxSdplMV.cjs';
|
|
3
3
|
import { x as XeniaConfig, a as AnalyticsEventName, z as CallerIdentity, A as AnalyticsContext, J as JsonValue, d as ConsentState, c as AnalyticsIngestResponse, i as EventIdentity, E as EventContext, W as WebhookResponse, I as IdentifyRequest, j as IdentifyResponse, p as ResolveOptions, q as ResolveResult, R as ResolveBatchItem, n as ResolveBatchResult } from './types-DgVHS4Qw.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -138,4 +138,5 @@ declare class XeniaServer {
|
|
|
138
138
|
/** Create a server-native client. */
|
|
139
139
|
declare function createXeniaServer(config: XeniaConfig): XeniaServer;
|
|
140
140
|
|
|
141
|
-
export {
|
|
141
|
+
export { XeniaServer as X, createXeniaServer as c };
|
|
142
|
+
export type { ServerResolveOptions as S, WithFallback as W, ServerTrackOptions as a, ServerWebhookOptions as b };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xenia-martech/sdk-js",
|
|
3
|
-
"version": "1.2.0-dev.
|
|
3
|
+
"version": "1.2.0-dev.7",
|
|
4
4
|
"description": "Xenia Marketer SDK for web (pull) channels — declarative event tracking, webhook request/response with in-page actions (swap/hide/banner/popup/modal), and content personalization. Client and server builds.",
|
|
5
5
|
"author": "Xenia Martech",
|
|
6
6
|
"license": "MIT",
|
|
@@ -166,20 +166,20 @@
|
|
|
166
166
|
"@semantic-release/npm": "^13.1.5",
|
|
167
167
|
"@semantic-release/release-notes-generator": "^14.1.0",
|
|
168
168
|
"@testing-library/react": "^16.3.3",
|
|
169
|
-
"@types/node": "^26.
|
|
169
|
+
"@types/node": "^26.6.5",
|
|
170
170
|
"@types/react": "^19.3.0",
|
|
171
171
|
"@types/react-dom": "^19.3.0",
|
|
172
|
-
"@vitest/coverage-v8": "^5.0.
|
|
173
|
-
"eslint": "^10.
|
|
174
|
-
"jsdom": "^30.1.
|
|
172
|
+
"@vitest/coverage-v8": "^5.0.5",
|
|
173
|
+
"eslint": "^10.13.0",
|
|
174
|
+
"jsdom": "^30.1.3",
|
|
175
175
|
"next": "^16.3.8",
|
|
176
|
-
"react": "^19.3.
|
|
177
|
-
"react-dom": "^19.3.
|
|
176
|
+
"react": "^19.3.1",
|
|
177
|
+
"react-dom": "^19.3.1",
|
|
178
178
|
"semantic-release": "^25.0.7",
|
|
179
|
-
"tsup": "^
|
|
179
|
+
"tsup": "^9.0.0",
|
|
180
180
|
"typescript": "^6.0.2",
|
|
181
|
-
"typescript-eslint": "^8.
|
|
182
|
-
"vitest": "^5.0.
|
|
181
|
+
"typescript-eslint": "^8.72.0",
|
|
182
|
+
"vitest": "^5.0.5"
|
|
183
183
|
},
|
|
184
184
|
"engines": {
|
|
185
185
|
"node": ">=18.0.0"
|