@sentientui/core 0.40.1 → 0.41.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/chunk-3HMJERH4.mjs +2 -0
- package/dist/chunk-3HMJERH4.mjs.map +1 -0
- package/dist/{chunk-LGXPG6IM.mjs → chunk-FPOHOWJP.mjs} +2 -2
- package/dist/chunk-FPOHOWJP.mjs.map +1 -0
- package/dist/{chunk-KR2X3I7H.mjs → chunk-KXA3X6T3.mjs} +2 -2
- package/dist/chunk-KXA3X6T3.mjs.map +1 -0
- package/dist/{index-DqDG5phU.d.ts → index-C--aVpoo.d.ts} +2 -2
- package/dist/{index-Cgiw9NDh.d.cts → index-DlJDNOWu.d.cts} +2 -2
- package/dist/index-consent.js.map +1 -1
- package/dist/index-consent.mjs +1 -1
- package/dist/index-engagement.js +1 -1
- package/dist/index-engagement.js.map +1 -1
- package/dist/index-engagement.mjs +1 -1
- package/dist/index-graph.d.cts +4 -4
- package/dist/index-graph.d.ts +4 -4
- package/dist/index-graph.js +1 -1
- package/dist/index-graph.js.map +1 -1
- package/dist/index-graph.mjs +1 -1
- package/dist/index-local.d.cts +2 -2
- package/dist/index-local.d.ts +2 -2
- package/dist/index-server.d.cts +2 -2
- package/dist/index-server.d.ts +2 -2
- package/dist/index-server.js +1 -1
- package/dist/index-server.js.map +1 -1
- package/dist/index-server.mjs +1 -1
- package/dist/index-server.mjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{session-meta-BG8w53d7.d.cts → session-meta-BqBaLZag.d.cts} +17 -1
- package/dist/{session-meta-D9Wx2PtC.d.ts → session-meta-D_kdNsaU.d.ts} +17 -1
- package/package.json +1 -1
- package/dist/chunk-KR2X3I7H.mjs.map +0 -1
- package/dist/chunk-LGXPG6IM.mjs.map +0 -1
- package/dist/chunk-NBDVEYI5.mjs +0 -2
- package/dist/chunk-NBDVEYI5.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{A as
|
|
1
|
+
import{A as $,B as aa,C as ba,D as ca,E as da,F as ea,G as fa,H as ga,I as ha,J as ia,K as ja,L as na,M as oa,N as pa,O as qa,P as ra,Q as sa,R as ta,S as ua,T as va,a as i,b as j,c as k,d as E,e as F,f as G,g as H,h as I,i as J,j as K,k as L,l as M,m as N,n as O,o as P,p as Q,q as R,r as S,s as T,t as U,u as V,v as W,w as X,x as Y,y as Z,z as _}from"./chunk-KXA3X6T3.mjs";import{a as d,b as e,c as f,d as g,n as h}from"./chunk-FPOHOWJP.mjs";import{a as ka,b as la,c as ma}from"./chunk-EVF5PQ4U.mjs";import{a as l,b as m,c as n,d as o,e as p,f as q,g as r,h as s,i as t,j as u,k as v,l as w,m as x,n as y,o as z,q as A,r as B,s as C,t as D}from"./chunk-3HMJERH4.mjs";import{b as a,c as b,e as c}from"./chunk-J5EL7HKC.mjs";import"./chunk-TMCGHANO.mjs";export{q as AGENT_INTENTS,O as BLOCK_ALIGNS,T as BLOCK_EMPHASES,W as BLOCK_FITS,N as BLOCK_GAPS,X as BLOCK_GRID_COLUMNS,Y as BLOCK_HEADING_LEVELS,P as BLOCK_JUSTIFIES,$ as BLOCK_MAX_WIDTHS,_ as BLOCK_PADS,V as BLOCK_RATIOS,Q as BLOCK_SIZES,Z as BLOCK_SURFACES,U as BLOCK_TEXT_ALIGNS,S as BLOCK_TONES,R as BLOCK_WEIGHTS,o as CLASSIC_CRAWLER_TOKENS,w as CLICK_ID_KEYS,aa as FORM_FIELD_KINDS,ba as FORM_INPUT_TYPES,a as LEGACY_SESSION_COOKIE_NAME,I as LOCAL_MODE_BANNER,ha as MAX_BLOCK_ARMS,ga as MAX_BLOCK_CHILDREN,fa as MAX_BLOCK_DEPTH,ea as MAX_BLOCK_NODES,ia as MAX_BLOCK_TEXT_LEN,ca as MAX_FORM_FIELDS,da as MAX_FORM_SELECT_OPTIONS,la as MAX_SKELETON_LEAVES,ka as MAX_SKELETON_NODES,ma as MAX_SKELETON_TEXT,J as PAGE_SCOPE_RE,H as PROD_KEYLESS_ERROR,na as REVEAL_MS,d as SNAPSHOT_STORAGE_KEY_PREFIX,E as STAGE_ATTRIBUTE,ra as _registerConsentUpgradeInit,r as agentIntent,l as agentUaList,k as applyNonce,D as armOfResult,qa as attachMicroSignalDetectors,B as baselineResultFor,C as baselineSlots,s as classifiedAgents,ja as containsFormBlock,j as cspNonce,z as deriveSessionSegment,t as detectDeviceClass,y as detectTimeOfDay,u as detectTrafficSource,F as exposedStage,x as extractTrackedParams,c as forgetGeneration,h as forgetVisitor,ta as grantConsent,va as init,sa as isDoNotTrackEnabled,n as matchedAgentToken,p as matchedCrawlerToken,M as normalizeUrlPattern,K as pageScopeMatches,e as readSnapshot,v as referrerDomainFromReferer,g as renderPrePaintScript,oa as resetRevealStyles,pa as reveal,ua as routeKey,b as sessionCookieName,i as setCspNonce,G as setStageAttribute,A as toWireSlot,m as uaTokenMatch,L as urlMatches,f as writeSnapshot};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -142,6 +142,19 @@ declare const agentUaList: readonly string[];
|
|
|
142
142
|
declare function uaTokenMatch(userAgent: string): boolean;
|
|
143
143
|
/** The first known agent token found in the user-agent, or null. */
|
|
144
144
|
declare function matchedAgentToken(userAgent: string): string | null;
|
|
145
|
+
/**
|
|
146
|
+
* Classic search / link-preview crawlers. DISPLAY-ONLY: these name a request in
|
|
147
|
+
* the dashboard but must never join `agentUaList`, which also sets `automation`
|
|
148
|
+
* (and so bandit exclusion) — a crawler that is merely named must not change
|
|
149
|
+
* how the session is scored.
|
|
150
|
+
*/
|
|
151
|
+
declare const CLASSIC_CRAWLER_TOKENS: readonly string[];
|
|
152
|
+
/**
|
|
153
|
+
* Name the crawler behind a user-agent: AI-agent tokens first (so
|
|
154
|
+
* `Applebot-Extended` is not swallowed by the shorter `Applebot`), then the
|
|
155
|
+
* classic list. Returns the canonical spelling, or null.
|
|
156
|
+
*/
|
|
157
|
+
declare function matchedCrawlerToken(userAgent: string): string | null;
|
|
145
158
|
/**
|
|
146
159
|
* Purpose category for an agent fetch, inferred from its published user-agent:
|
|
147
160
|
* - `user` — a person asked an assistant to read the page, live (…-User UAs)
|
|
@@ -208,6 +221,9 @@ type SessionUpsertPayload = {
|
|
|
208
221
|
* token. Probabilistic: a flag for metrics + bandit exclusion, never a gate.
|
|
209
222
|
*/
|
|
210
223
|
automation: boolean;
|
|
224
|
+
/** Which crawler / AI assistant requested a server-rendered page (canonical
|
|
225
|
+
* token). Absent for ordinary browsers. Naming only — never sets `automation`. */
|
|
226
|
+
agentToken?: string;
|
|
211
227
|
};
|
|
212
228
|
/** Bandit segment key: `<device_class>:<traffic_source>`. */
|
|
213
229
|
declare function deriveSessionSegment(opts?: {
|
|
@@ -232,4 +248,4 @@ declare function buildSessionUpsertPayload(sessionId: string, opts?: {
|
|
|
232
248
|
landingPath?: string;
|
|
233
249
|
}): SessionUpsertPayload;
|
|
234
250
|
|
|
235
|
-
export { AGENT_INTENTS as A,
|
|
251
|
+
export { AGENT_INTENTS as A, writeSnapshot as B, CLASSIC_CRAWLER_TOKENS as C, type DecisionSnapshot as D, SNAPSHOT_STORAGE_KEY_PREFIX as S, type AgentIntent as a, CLICK_ID_KEYS as b, type CompoundLocator as c, type SessionUpsertPayload as d, type SlotConfigEntry as e, type SlotDeclInput as f, type SlotOps as g, agentIntent as h, agentUaList as i, armOfResult as j, baselineResultFor as k, baselineSlots as l, buildSessionUpsertPayload as m, classifiedAgents as n, deriveSessionSegment as o, detectDeviceClass as p, detectTimeOfDay as q, detectTrafficSource as r, extractTrackedParams as s, matchedAgentToken as t, matchedCrawlerToken as u, readSnapshot as v, referrerDomainFromReferer as w, renderPrePaintScript as x, toWireSlot as y, uaTokenMatch as z };
|
|
@@ -142,6 +142,19 @@ declare const agentUaList: readonly string[];
|
|
|
142
142
|
declare function uaTokenMatch(userAgent: string): boolean;
|
|
143
143
|
/** The first known agent token found in the user-agent, or null. */
|
|
144
144
|
declare function matchedAgentToken(userAgent: string): string | null;
|
|
145
|
+
/**
|
|
146
|
+
* Classic search / link-preview crawlers. DISPLAY-ONLY: these name a request in
|
|
147
|
+
* the dashboard but must never join `agentUaList`, which also sets `automation`
|
|
148
|
+
* (and so bandit exclusion) — a crawler that is merely named must not change
|
|
149
|
+
* how the session is scored.
|
|
150
|
+
*/
|
|
151
|
+
declare const CLASSIC_CRAWLER_TOKENS: readonly string[];
|
|
152
|
+
/**
|
|
153
|
+
* Name the crawler behind a user-agent: AI-agent tokens first (so
|
|
154
|
+
* `Applebot-Extended` is not swallowed by the shorter `Applebot`), then the
|
|
155
|
+
* classic list. Returns the canonical spelling, or null.
|
|
156
|
+
*/
|
|
157
|
+
declare function matchedCrawlerToken(userAgent: string): string | null;
|
|
145
158
|
/**
|
|
146
159
|
* Purpose category for an agent fetch, inferred from its published user-agent:
|
|
147
160
|
* - `user` — a person asked an assistant to read the page, live (…-User UAs)
|
|
@@ -208,6 +221,9 @@ type SessionUpsertPayload = {
|
|
|
208
221
|
* token. Probabilistic: a flag for metrics + bandit exclusion, never a gate.
|
|
209
222
|
*/
|
|
210
223
|
automation: boolean;
|
|
224
|
+
/** Which crawler / AI assistant requested a server-rendered page (canonical
|
|
225
|
+
* token). Absent for ordinary browsers. Naming only — never sets `automation`. */
|
|
226
|
+
agentToken?: string;
|
|
211
227
|
};
|
|
212
228
|
/** Bandit segment key: `<device_class>:<traffic_source>`. */
|
|
213
229
|
declare function deriveSessionSegment(opts?: {
|
|
@@ -232,4 +248,4 @@ declare function buildSessionUpsertPayload(sessionId: string, opts?: {
|
|
|
232
248
|
landingPath?: string;
|
|
233
249
|
}): SessionUpsertPayload;
|
|
234
250
|
|
|
235
|
-
export { AGENT_INTENTS as A,
|
|
251
|
+
export { AGENT_INTENTS as A, writeSnapshot as B, CLASSIC_CRAWLER_TOKENS as C, type DecisionSnapshot as D, SNAPSHOT_STORAGE_KEY_PREFIX as S, type AgentIntent as a, CLICK_ID_KEYS as b, type CompoundLocator as c, type SessionUpsertPayload as d, type SlotConfigEntry as e, type SlotDeclInput as f, type SlotOps as g, agentIntent as h, agentUaList as i, armOfResult as j, baselineResultFor as k, baselineSlots as l, buildSessionUpsertPayload as m, classifiedAgents as n, deriveSessionSegment as o, detectDeviceClass as p, detectTimeOfDay as q, detectTrafficSource as r, extractTrackedParams as s, matchedAgentToken as t, matchedCrawlerToken as u, readSnapshot as v, referrerDomainFromReferer as w, renderPrePaintScript as x, toWireSlot as y, uaTokenMatch as z };
|