@coveo/relay 0.8.2 → 0.8.5
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/lib/cdn/relay.min.js +1 -1
- package/lib/cdn/relay.min.js.map +1 -1
- package/lib/docs/relay-docs.json +120 -91
- package/lib/relay.cjs +1 -1
- package/lib/relay.js +1 -1
- package/lib/relay.mjs +1 -1
- package/package.json +5 -5
package/lib/cdn/relay.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;for(var t,n=[],r=0;r<256;++r)n.push((r+256).toString(16).slice(1));var o=new Uint8Array(16);function c(){if(!t&&!(t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return t(o)}var a={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function i(e,t,r){if(a.randomUUID&&!t&&!e)return a.randomUUID();var o=(e=e||{}).random||(e.rng||c)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=o[i];return t}return function(e,t=0){return(n[e[t+0]]+n[e[t+1]]+n[e[t+2]]+n[e[t+3]]+"-"+n[e[t+4]]+n[e[t+5]]+"-"+n[e[t+6]]+n[e[t+7]]+"-"+n[e[t+8]]+n[e[t+9]]+"-"+n[e[t+10]]+n[e[t+11]]+n[e[t+12]]+n[e[t+13]]+n[e[t+14]]+n[e[t+15]]).toLowerCase()}(o)}function s(t){return{getClientId:()=>{const n="visitorId",r=t.get(),o=r.storage,c=o.getItem(n),a=c&&("string"==typeof(i=c)&&e.test(i))?c:r.generateUUID();var i;return o.setItem(n,a),a}}}const u="0.8.
|
|
1
|
+
var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;for(var t,n=[],r=0;r<256;++r)n.push((r+256).toString(16).slice(1));var o=new Uint8Array(16);function c(){if(!t&&!(t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return t(o)}var a={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function i(e,t,r){if(a.randomUUID&&!t&&!e)return a.randomUUID();var o=(e=e||{}).random||(e.rng||c)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=o[i];return t}return function(e,t=0){return(n[e[t+0]]+n[e[t+1]]+n[e[t+2]]+n[e[t+3]]+"-"+n[e[t+4]]+n[e[t+5]]+"-"+n[e[t+6]]+n[e[t+7]]+"-"+n[e[t+8]]+n[e[t+9]]+"-"+n[e[t+10]]+n[e[t+11]]+n[e[t+12]]+n[e[t+13]]+n[e[t+14]]+n[e[t+15]]).toLowerCase()}(o)}function s(t){return{getClientId:()=>{const n="visitorId",r=t.get(),o=r.storage,c=o.getItem(n),a=c&&("string"==typeof(i=c)&&e.test(i))?c:r.generateUUID();var i;return o.setItem(n,a),a}}}const u="0.8.5";function f(e){return(e.source||[]).concat([`relay@${u}`])}function l(e,t,n,r){const{getReferrer:o,getLocation:c,getUserAgent:a}=n,i=function(e){const{trackingId:t}=e;return{trackingId:t}}(t),s=r.getClientId();return Object.freeze({type:e,config:i,ts:Date.now(),source:f(t),clientId:s,userAgent:a(),referrer:o(),location:c()})}function g(){const e=[];function t({type:t,callback:n}){return e.findIndex((e=>e.type===t&&e.callback===n))}function n(n,r){r?function(n){const r=t(n);r>=0&&e.splice(r,1)}({type:n,callback:r}):function(t){if("*"===t)e.length=0;else for(let n=e.length-1;n>=0;n--)e[n].type===t&&e.splice(n,1)}(n)}return{add:function(r){return t(r)<0&&e.push(r),()=>n(r.type,r.callback)},call:function(t){e.forEach((e=>{if(function(e,t){return"*"===e.type||t===e.type}(e,t.meta.type))try{e.callback(t)}catch(e){console.error(e)}}))},remove:n}}function d({url:e,token:t,trackingId:n,...r}){return Object.freeze({url:e,token:t,trackingId:n,...!!r.mode&&{mode:r.mode},...!!r.source&&{source:r.source}})}const m=function(){const e="coveo_";return{getItem(t){const n=`${e}${t}=`,r=document.cookie.split(";");for(const e of r){const t=e.replace(/^\s+/,"");if(0===t.lastIndexOf(n,0))return t.substring(n.length,t.length)}return null},setItem(t,n,r){const o=(e=>{const t=e.split(".").slice(-2);return 2==t.length?t.join("."):""})(window.location.hostname),c=`;expires=${new Date((new Date).getTime()+r).toUTCString()}`,a=o?`;domain=${o}`:"";document.cookie=`${e}${t}=${n}${c}${a};path=/;SameSite=Lax`},removeItem(e){this.setItem(e,"",-1)}}}();function p(){return{runtime:"browser",send:(e,t,n)=>{const r=navigator.sendBeacon(`${e}?access_token=${t}`,new Blob([JSON.stringify([n])],{type:"application/json"})),o=function(){const e="undefined"!=typeof window;return{sendMessage(t){e&&window.postMessage(t,"*")}}}();if(o.sendMessage({kind:"EVENT_PROTOCOL",event:n,url:e,token:t}),!r)throw new Error("Failed to send the event(s) because the payload size exceeded the maximum allowed size (32 KB). Please contact support if the problem persists.")},getReferrer:()=>function(){const e=document.referrer;return""===e?null:e}(),getLocation:()=>window.location.href,getUserAgent:()=>navigator.userAgent,generateUUID:()=>i(),storage:{getItem:e=>m.getItem(e)||localStorage.getItem(e),removeItem(e){m.removeItem(e),localStorage.removeItem(e)},setItem(e,t){localStorage.setItem(e,t),m.setItem(e,t,31556952e3)}}}}function I(e){return"disabled"!==e.get().mode&&function(){try{return"object"==typeof window}catch(e){return!1}}()&&function(){try{const e="__storage_test__";return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return e instanceof DOMException&&"QuotaExceededError"===e.name&&localStorage&&0!==localStorage.length}}()?p():{runtime:"null",send:()=>{},getReferrer:()=>null,getLocation:()=>null,getUserAgent:()=>null,generateUUID:()=>"",storage:{getItem:()=>null,removeItem(){},setItem(){}}}}function y(e){const t=function(e){let t=d(e);return{get:()=>t,update:e=>{t=d({...t,...e})}}}(e),n=g(),r=function(e){return{get:()=>Object.freeze(I(e))}}(t),o=s(r);return{emit:(e,c)=>{const a=t.get(),i=r.get(),s=function(e,t,n,r,o){return{...t,meta:l(e,n,r,o)}}(e,c,a,i,o);return function({config:e,environment:t,event:n,listenerManager:r}){const{url:o,token:c,mode:a}=e;"disabled"!==a&&(r.call(n),t.send(o,c,n))}({config:a,environment:i,event:s,listenerManager:n})},getMeta:e=>l(e,t.get(),r.get(),o),on:(e,t)=>n.add({type:e,callback:t}),off:(e,t)=>n.remove(e,t),updateConfig:e=>t.update(e),version:u}}export{y as createRelay};
|
|
2
2
|
//# sourceMappingURL=relay.min.js.map
|
package/lib/cdn/relay.min.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relay.min.js","sources":["../../../../node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/regex.js","../../../../node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/stringify.js","../../../../node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/rng.js","../../../../node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/native.js","../../../../node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/v4.js","../../src/client-id/client-id.ts","../../../../node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/validate.js","../../src/version.ts","../../src/event/meta/meta.ts","../../src/listener/listener.ts","../../src/config/config.ts","../../src/environment/browser/storage/cookie.ts","../../src/environment/browser/browser.ts","../../../../node_modules/.pnpm/@coveo+explorer-messenger@0.4.0/node_modules/@coveo/explorer-messenger/dist/messenger.js","../../src/environment/browser/storage/storage.ts","../../src/environment/manager/manager.ts","../../src/environment/browser/storage/availability.ts","../../src/environment/null/null.ts","../../src/environment/storage.ts","../../src/relay.ts","../../src/event/relay-event.ts","../../src/emit/emit.ts"],"sourcesContent":["export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;","import validate from './validate.js';\n\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\nvar byteToHex = [];\nfor (var i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\nexport function unsafeStringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n //\n // Note to future-self: No, you can't remove the `toLowerCase()` call.\n // REF: https://github.com/uuidjs/uuid/pull/677#issuecomment-1757351351\n return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();\n}\nfunction stringify(arr, offset = 0) {\n var uuid = unsafeStringify(arr, offset);\n // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n return uuid;\n}\nexport default stringify;","// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\n\nvar getRandomValues;\nvar rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n return getRandomValues(rnds8);\n}","var randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);\nexport default {\n randomUUID\n};","import native from './native.js';\nimport rng from './rng.js';\nimport { unsafeStringify } from './stringify.js';\nfunction v4(options, buf, offset) {\n if (native.randomUUID && !buf && !options) {\n return native.randomUUID();\n }\n options = options || {};\n var rnds = options.random || (options.rng || rng)();\n\n // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80;\n\n // Copy bytes to buffer, if provided\n if (buf) {\n offset = offset || 0;\n for (var i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n return buf;\n }\n return unsafeStringify(rnds);\n}\nexport default v4;","import { validate } from \"uuid\";\nimport { EnvironmentManager } from \"../environment/manager/manager\";\n\nexport interface ClientIdManager {\n getClientId: () => string;\n}\n\nexport function createClientIdManager(\n environmentManager: EnvironmentManager\n): ClientIdManager {\n return {\n getClientId: () => {\n const key = \"visitorId\";\n const environment = environmentManager.get();\n const storage = environment.storage;\n\n const existingClientId = storage.getItem(key);\n const clientId =\n existingClientId && validate(existingClientId)\n ? existingClientId\n : environment.generateUUID();\n storage.setItem(key, clientId);\n return clientId;\n },\n };\n}\n","import REGEX from './regex.js';\nfunction validate(uuid) {\n return typeof uuid === 'string' && REGEX.test(uuid);\n}\nexport default validate;","export const version = \"process.env.VERSION\";\n","import { ClientIdManager } from \"../../client-id/client-id\";\nimport { Environment } from \"../../environment/environment\";\nimport { RelayConfig } from \"../../config/config\";\nimport { version } from \"../../version\";\n\n/**\n * The `EventConfig` object provides additonal information for the configuration associated with the event.\n */\nexport interface EventConfig {\n /**\n * The unique identifier of a web property. See [What's a tracking ID?](https://docs.coveo.com/en/n8tg0567/).\n */\n trackingId: string;\n}\n\n/**\n * The `Meta` object provides a structured representation of metadata associated with an emitted event.\n * This object is auto-populated by Relay.\n */\nexport interface Meta {\n /**\n * Event's type that was emitted.\n */\n type: string;\n\n /**\n * Configuration associated with the event.\n */\n config: EventConfig;\n\n /**\n * Timestamp when the event was emitted.\n */\n ts: number;\n\n /**\n * Names and versions of the client side libraries which built and emitted this event.\n */\n source: string[];\n\n /**\n * Persistent unique identifier of a device.\n */\n clientId: string;\n\n /**\n * Browser Navigator's [user agent](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgent) property if set.\n */\n userAgent: string | null;\n\n /**\n * Browser Document's [referrer](https://developer.mozilla.org/en-US/docs/Web/API/Document/referrer) property if set.\n */\n referrer: string | null;\n\n /**\n * Browser Location's [href](https://developer.mozilla.org/en-US/docs/Web/API/Location/href) property if set.\n */\n location: string | null;\n}\n\nfunction getEventConfig(config: RelayConfig): EventConfig {\n const { trackingId } = config;\n return { trackingId };\n}\n\nfunction getSource(config: RelayConfig): string[] {\n return (config.source || []).concat([`relay@${version}`]);\n}\n\nexport function createMeta(\n type: string,\n config: RelayConfig,\n environment: Environment,\n clientIdManager: ClientIdManager\n): Readonly<Meta> {\n const { getReferrer, getLocation, getUserAgent } = environment;\n const eventConfig = getEventConfig(config);\n const clientId = clientIdManager.getClientId();\n\n return Object.freeze<Meta>({\n type,\n config: eventConfig,\n ts: Date.now(),\n source: getSource(config),\n clientId,\n userAgent: getUserAgent(),\n referrer: getReferrer(),\n location: getLocation(),\n });\n}\n","import { RelayEvent } from \"../event/relay-event\";\n\nconst ANY_EVENT_TYPE = \"*\";\n\n/**\n * Callback to perform an action when a specified event is emitted.\n * @typedef {function} EventCallback\n * @param {RelayEvent} event - the Relay event payload that triggered the callback.\n * @returns {void}\n */\nexport type EventCallback = (event: RelayEvent) => void;\n\ninterface Listener {\n type: string;\n callback: EventCallback;\n}\n\nexport interface ListenerManager {\n add: (listener: Listener) => () => void;\n call: (event: RelayEvent) => void;\n remove: (type: string, callback?: EventCallback) => void;\n}\n\nexport function createListenerManager(): ListenerManager {\n const listeners: Listener[] = [];\n\n function getListenerIndex({ type, callback }: Listener): number {\n return listeners.findIndex(\n (listener) => listener.type === type && listener.callback === callback\n );\n }\n\n function isMatchesType(listener: Listener, type: string): boolean {\n return listener.type === \"*\" || type === listener.type;\n }\n\n function add(listener: Listener): () => void {\n if (getListenerIndex(listener) < 0) {\n listeners.push(listener);\n }\n return () => remove(listener.type, listener.callback);\n }\n\n function call(event: RelayEvent) {\n listeners.forEach((listener) => {\n if (isMatchesType(listener, event.meta.type)) {\n try {\n listener.callback(event);\n } catch (e) {\n console.error(e);\n }\n }\n });\n }\n\n function removeMultiple(type: string) {\n if (type === ANY_EVENT_TYPE) {\n listeners.length = 0;\n } else {\n for (let i = listeners.length - 1; i >= 0; i--) {\n if (listeners[i].type === type) {\n listeners.splice(i, 1);\n }\n }\n }\n }\n\n function removeOne(listener: Listener) {\n const index = getListenerIndex(listener);\n if (index >= 0) {\n listeners.splice(index, 1);\n }\n }\n\n function remove(type: string, callback?: EventCallback) {\n callback ? removeOne({ type, callback }) : removeMultiple(type);\n }\n\n return {\n add,\n call,\n remove,\n };\n}\n","/**\n * The `RelayConfig` object defines the configuration options for initializing a Relay instance.\n */\nexport interface RelayConfig {\n /**\n * Endpoint defined to communicate with the Event API.\n */\n url: string;\n\n /**\n * Token to authorize the access to the Event API endpoint.\n */\n token: string;\n\n /**\n * The unique identifier of a web property. See [What's a tracking ID?](https://docs.coveo.com/en/n8tg0567/).\n */\n trackingId: string;\n\n /**\n * Defines the library mode. The available modes are `emit` and `disabled`.\n * `emit` sends analytics events to Coveo to be stored.\n * `disabled` prevents the emission of events and does not trigger callbacks.\n * @default emit\n */\n mode?: \"emit\" | \"disabled\";\n\n /**\n * Optionally allows a Relay integration to specify the name(s) of software package(s) relay is\n * being called from. These names will be transmitted with each event, along with Relay's own\n * version. The recommendation is to specify them using a 'softwarename@softwareversion' string.\n */\n source?: string[];\n}\n\nexport interface ConfigManager {\n get: () => Readonly<RelayConfig>;\n update: (updatedConfig: Partial<RelayConfig>) => void;\n}\n\nfunction pick({\n url,\n token,\n trackingId,\n ...rest\n}: RelayConfig): Readonly<RelayConfig> {\n return Object.freeze({\n url,\n token,\n trackingId,\n ...(!!rest.mode && { mode: rest.mode }),\n ...(!!rest.source && { source: rest.source }),\n });\n}\n\nexport function createConfigManager(\n initialConfig: RelayConfig\n): Readonly<ConfigManager> {\n let _config: Readonly<RelayConfig> = pick(initialConfig);\n\n return {\n get: () => _config,\n update: (updatedConfig: Partial<RelayConfig>) => {\n _config = pick({ ..._config, ...updatedConfig });\n },\n };\n}\n","export interface CookieManager {\n getItem: (key: string) => string | null;\n removeItem: (key: string) => void;\n setItem: (key: string, data: string, expire: number) => void;\n}\n\nexport const cookieManager: CookieManager = createCookieManager();\n\nfunction createCookieManager(): CookieManager {\n const prefix = \"coveo_\";\n const getDomain = (host: string) => {\n const parts = host.split(\".\").slice(-2);\n return parts.length == 2 ? parts.join(\".\") : \"\";\n };\n\n return {\n getItem(key: string): string | null {\n const cookiePrefix = `${prefix}${key}=`;\n const cookieArray = document.cookie.split(\";\");\n for (const cookie of cookieArray) {\n const prettifyCookie = cookie.replace(/^\\s+/, \"\");\n if (prettifyCookie.lastIndexOf(cookiePrefix, 0) === 0) {\n return prettifyCookie.substring(\n cookiePrefix.length,\n prettifyCookie.length\n );\n }\n }\n return null;\n },\n setItem(key: string, data: string, expire: number): void {\n const domain = getDomain(window.location.hostname);\n const expireSection = `;expires=${new Date(\n new Date().getTime() + expire\n ).toUTCString()}`;\n const domainSection = domain ? `;domain=${domain}` : \"\";\n document.cookie = `${prefix}${key}=${data}${expireSection}${domainSection};path=/;SameSite=Lax`;\n },\n\n removeItem(key: string): void {\n this.setItem(key, \"\", -1);\n },\n };\n}\n","import { createExplorerMessenger } from \"@coveo/explorer-messenger\";\nimport { Environment } from \"../environment\";\nimport { createBrowserStorage } from \"./storage/storage\";\nimport { RelayEvent } from \"../../event/relay-event\";\nimport { v4 as uuidv4 } from \"uuid\";\n\nfunction getReferrer() {\n const referrer = document.referrer;\n\n return referrer === \"\" ? null : referrer;\n}\n\nexport function buildBrowserEnvironment(): Environment {\n return {\n runtime: \"browser\",\n send: (url: string, token: string, event: RelayEvent) => {\n const response = navigator.sendBeacon(\n `${url}?access_token=${token}`,\n new Blob([JSON.stringify([event])], {\n type: \"application/json\",\n })\n );\n\n const messenger = createExplorerMessenger();\n messenger.sendMessage({ kind: \"EVENT_PROTOCOL\", event, url, token });\n\n if (!response) {\n throw new Error(\n `Failed to send the event(s) because the payload size exceeded the maximum allowed size (32 KB). Please contact support if the problem persists.`\n );\n }\n },\n getReferrer: () => getReferrer(),\n getLocation: () => window.location.href,\n getUserAgent: () => navigator.userAgent,\n generateUUID: () => uuidv4(),\n storage: createBrowserStorage(),\n };\n}\n","function createExplorerMessenger() {\n const isBrowser = typeof window !== \"undefined\";\n return {\n sendMessage(message) {\n isBrowser && window.postMessage(message, \"*\");\n }\n };\n}\nexport {\n createExplorerMessenger\n};\n","import { Storage } from \"../../storage\";\nimport { cookieManager } from \"./cookie\";\n\nexport function createBrowserStorage(): Storage {\n return {\n getItem(key: string): string | null {\n return cookieManager.getItem(key) || localStorage.getItem(key);\n },\n\n removeItem(key: string): void {\n cookieManager.removeItem(key);\n localStorage.removeItem(key);\n },\n\n setItem(key: string, data: string): void {\n const oneYear = 31556952000;\n localStorage.setItem(key, data);\n cookieManager.setItem(key, data, oneYear);\n },\n };\n}\n","import { ConfigManager } from \"../../config/config\";\nimport { buildBrowserEnvironment } from \"../browser/browser\";\nimport { localStorageAvailable } from \"../browser/storage/availability\";\nimport { Environment } from \"../environment\";\nimport { buildNullEnvironment } from \"../null/null\";\n\nexport interface EnvironmentManager {\n get: () => Readonly<Environment>;\n}\n\nfunction buildEnvironment(configManager: ConfigManager) {\n const active = configManager.get().mode !== \"disabled\";\n\n if (active && isBrowser() && localStorageAvailable()) {\n return buildBrowserEnvironment();\n }\n\n return buildNullEnvironment();\n}\n\nfunction isBrowser() {\n try {\n return typeof window === \"object\";\n } catch (e) {\n return false;\n }\n}\n\nexport function createEnvironmentManager(\n configManager: ConfigManager\n): Readonly<EnvironmentManager> {\n return {\n get: () => Object.freeze(buildEnvironment(configManager)),\n };\n}\n","// From: https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API/Using_the_Web_Storage_API#feature-detecting_localstorage\nexport function localStorageAvailable() {\n try {\n const x = \"__storage_test__\";\n localStorage.setItem(x, x);\n localStorage.removeItem(x);\n return true;\n } catch (e) {\n return (\n e instanceof DOMException &&\n e.name === \"QuotaExceededError\" &&\n // acknowledge QuotaExceededError only if there's something already stored\n localStorage &&\n localStorage.length !== 0\n );\n }\n}\n","import { Environment } from \"../environment\";\nimport { createNullStorage } from \"../storage\";\n\nexport function buildNullEnvironment(): Environment {\n return {\n runtime: \"null\",\n send: () => undefined,\n getReferrer: () => null,\n getLocation: () => null,\n getUserAgent: () => null,\n generateUUID: () => \"\",\n storage: createNullStorage(),\n };\n}\n","export interface Storage {\n getItem: (key: string) => string | null;\n removeItem: (key: string) => void;\n setItem: (key: string, data: string) => void;\n}\n\nexport function createNullStorage(): Storage {\n return {\n getItem(): string | null {\n return null;\n },\n removeItem(): void {\n return;\n },\n setItem(): void {\n return;\n },\n };\n}\n","import { emit } from \"./emit/emit\";\nimport { createClientIdManager } from \"./client-id/client-id\";\nimport { createRelayEvent, RelayEvent } from \"./event/relay-event\";\nimport { version } from \"./version\";\nimport { createMeta, Meta, EventConfig } from \"./event/meta/meta\";\nimport { createListenerManager, EventCallback } from \"./listener/listener\";\nimport { createConfigManager, RelayConfig } from \"./config/config\";\nimport { createEnvironmentManager } from \"./environment/manager/manager\";\nimport { RelayPayload } from \"./relay-payload\";\n\n/**\n * Function that detaches an event callback.\n * @typedef {function} Off\n * @returns {void}\n */\nexport type Off = () => void;\n\n/**\n * Relay instance.\n * This object provides a comprehensive set of variables and methods for interacting with the Event API.\n */\ninterface Relay {\n /**\n * Sends an event to the Event API.\n * @param {string} type - event's type to be emitted.\n * @param {Record<string,any>} payload - payload to include within the event.\n * @returns {void}\n */\n emit: (type: string, payload: Record<string, any>) => void;\n\n /**\n * Gets the client-side generated meta object.\n * @param {string} type - event's type that will be included in the meta object.\n * @returns {Meta}\n */\n getMeta: (type: string) => Meta;\n\n /**\n * Attaches an event callback to either all event types or a specific one.\n * The callback set will be called when an event with the specified type is emitted.\n * It’s not possible to modify the payload of the event sent to Coveo using this listener.\n * Setting type as \"*\" will trigger the callback for all event types.\n * Returns the \"off\" function to detach the event callback.\n * @param {string} type - event's type.\n * @param {EventCallback} callback - callback that should be called when the event is emitted.\n * @returns {Off}\n */\n on: (type: string, callback: EventCallback) => Off;\n\n /**\n * Detach callback(s) from events.\n * If only the \"type\" parameter is set, all callbacks for the specified type will be removed.\n * @param {string} type - event's type.\n * @param {EventCallback} callback - callback that should be removed.\n * @returns {void}\n */\n off: (type: string, callback?: EventCallback) => void;\n\n /**\n * Updates Relay's configuration after its initialization.\n * @param {Partial<RelayConfig>} config - configuration that should be updated.\n * @returns {void}\n */\n updateConfig: (config: Partial<RelayConfig>) => void;\n\n /**\n * Current version of the Relay library.\n */\n version: string;\n}\n\n/**\n * Initializes the Relay library object.\n * @param {RelayConfig} initialConfig\n * @returns {Relay}\n */\nexport function createRelay(initialConfig: RelayConfig): Relay {\n const configManager = createConfigManager(initialConfig);\n const listenerManager = createListenerManager();\n const environmentManager = createEnvironmentManager(configManager);\n const clientIdManager = createClientIdManager(environmentManager);\n\n return {\n emit: (type: string, payload: Record<string, any>) => {\n const config = configManager.get();\n const environment = environmentManager.get();\n\n const event = createRelayEvent(\n type,\n payload,\n config,\n environment,\n clientIdManager\n );\n\n return emit({\n config,\n environment,\n event,\n listenerManager,\n });\n },\n getMeta: (type: string) =>\n createMeta(\n type,\n configManager.get(),\n environmentManager.get(),\n clientIdManager\n ),\n on: (type: string, callback: EventCallback) =>\n listenerManager.add({ type, callback }),\n off: (type: string, callback?: EventCallback) =>\n listenerManager.remove(type, callback),\n updateConfig: (config: Partial<RelayConfig>) =>\n configManager.update(config),\n version,\n };\n}\n\nexport type {\n Relay,\n Meta,\n EventConfig,\n EventCallback,\n RelayConfig,\n RelayPayload,\n RelayEvent,\n};\n","import { ClientIdManager } from \"../client-id/client-id\";\nimport { Environment } from \"../environment/environment\";\nimport { RelayPayload } from \"../relay-payload\";\nimport { RelayConfig } from \"../relay\";\nimport { createMeta, Meta } from \"./meta/meta\";\n\n/**\n * Defines the structure of a RelayEvent, extending the RelayPayload.\n */\nexport interface RelayEvent extends RelayPayload {\n /**\n * Read-only `meta` property of Meta type.\n */\n meta: Readonly<Meta>;\n}\n\nexport function createRelayEvent(\n type: string,\n payload: RelayPayload,\n config: RelayConfig,\n environment: Environment,\n clientIdManager: ClientIdManager\n): Readonly<RelayEvent> {\n return {\n ...payload,\n meta: createMeta(type, config, environment, clientIdManager),\n };\n}\n","import { Environment } from \"../environment/environment\";\nimport { ListenerManager } from \"../listener/listener\";\nimport { RelayEvent } from \"../event/relay-event\";\nimport { RelayConfig } from \"../relay\";\n\nexport interface EmitParams {\n config: RelayConfig;\n environment: Environment;\n event: RelayEvent;\n listenerManager: ListenerManager;\n}\n\nexport function emit({\n config,\n environment,\n event,\n listenerManager,\n}: EmitParams) {\n const { url, token, mode } = config;\n const isEnabled = mode !== \"disabled\";\n\n if (isEnabled) {\n listenerManager.call(event);\n environment.send(url, token, event);\n }\n}\n"],"names":["REGEX","getRandomValues","byteToHex","i","push","toString","slice","rnds8","Uint8Array","rng","crypto","bind","Error","native","randomUUID","v4","options","buf","offset","rnds","random","arr","toLowerCase","unsafeStringify","createClientIdManager","environmentManager","getClientId","key","environment","get","storage","existingClientId","getItem","clientId","uuid","test","generateUUID","setItem","version","getSource","config","source","concat","createMeta","type","clientIdManager","getReferrer","getLocation","getUserAgent","eventConfig","trackingId","getEventConfig","Object","freeze","ts","Date","now","userAgent","referrer","location","ANY_EVENT_TYPE","createListenerManager","listeners","getListenerIndex","callback","findIndex","listener","remove","index","splice","removeOne","length","removeMultiple","add","call","event","forEach","isMatchesType","meta","e","console","error","pick","url","token","rest","mode","cookieManager","prefix","cookiePrefix","cookieArray","document","cookie","split","prettifyCookie","replace","lastIndexOf","substring","data","expire","domain","host","parts","join","getDomain","window","hostname","expireSection","getTime","toUTCString","domainSection","removeItem","this","createCookieManager","buildBrowserEnvironment","runtime","send","response","navigator","sendBeacon","Blob","JSON","stringify","messenger","isBrowser","sendMessage","message","postMessage","createExplorerMessenger","kind","href","uuidv4","localStorage","buildEnvironment","configManager","x","DOMException","name","localStorageAvailable","createRelay","initialConfig","_config","update","updatedConfig","createConfigManager","listenerManager","createEnvironmentManager","emit","payload","createRelayEvent","getMeta","on","off","updateConfig"],"mappings":"AAAA,IAAAA,EAAe,2JCOf,IADA,ICFIC,EDEAC,EAAY,GACPC,EAAI,EAAGA,EAAI,MAAOA,EACzBD,EAAUE,MAAMD,EAAI,KAAOE,SAAS,IAAIC,MAAM,ICHhD,IAAIC,EAAQ,IAAIC,WAAW,IACZ,SAASC,IAEtB,IAAKR,KAEHA,EAAoC,oBAAXS,QAA0BA,OAAOT,iBAAmBS,OAAOT,gBAAgBU,KAAKD,SAEvG,MAAM,IAAIE,MAAM,4GAGpB,OAAOX,EAAgBM,EACzB,CChBA,IACeM,EAAA,CACbC,WAFiC,oBAA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CAAE7B,OAAMoB,aAC9BwF,IAAK,CAAC5G,EAAcoB,IAClBiF,EAAgB9E,OAAOvB,EAAMoB,GAC/ByF,aAAejH,GACb8F,EAAcQ,OAAOtG,GACvBF,UAEJ","x_google_ignoreList":[0,1,2,3,4,6,13]}
|
|
1
|
+
{"version":3,"file":"relay.min.js","sources":["../../../../node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/regex.js","../../../../node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/stringify.js","../../../../node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/rng.js","../../../../node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/native.js","../../../../node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/v4.js","../../src/client-id/client-id.ts","../../../../node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/validate.js","../../src/version.ts","../../src/event/meta/meta.ts","../../src/listener/listener.ts","../../src/config/config.ts","../../src/environment/browser/storage/cookie.ts","../../src/environment/browser/browser.ts","../../../../node_modules/.pnpm/@coveo+explorer-messenger@0.4.0/node_modules/@coveo/explorer-messenger/dist/messenger.js","../../src/environment/browser/storage/storage.ts","../../src/environment/manager/manager.ts","../../src/environment/browser/storage/availability.ts","../../src/environment/null/null.ts","../../src/environment/storage.ts","../../src/relay.ts","../../src/event/relay-event.ts","../../src/emit/emit.ts"],"sourcesContent":["export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;","import validate from './validate.js';\n\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\nvar byteToHex = [];\nfor (var i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\nexport function unsafeStringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n //\n // Note to future-self: No, you can't remove the `toLowerCase()` call.\n // REF: https://github.com/uuidjs/uuid/pull/677#issuecomment-1757351351\n return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();\n}\nfunction stringify(arr, offset = 0) {\n var uuid = unsafeStringify(arr, offset);\n // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n return uuid;\n}\nexport default stringify;","// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\n\nvar getRandomValues;\nvar rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n return getRandomValues(rnds8);\n}","var randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);\nexport default {\n randomUUID\n};","import native from './native.js';\nimport rng from './rng.js';\nimport { unsafeStringify } from './stringify.js';\nfunction v4(options, buf, offset) {\n if (native.randomUUID && !buf && !options) {\n return native.randomUUID();\n }\n options = options || {};\n var rnds = options.random || (options.rng || rng)();\n\n // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80;\n\n // Copy bytes to buffer, if provided\n if (buf) {\n offset = offset || 0;\n for (var i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n return buf;\n }\n return unsafeStringify(rnds);\n}\nexport default v4;","import { validate } from \"uuid\";\nimport { EnvironmentManager } from \"../environment/manager/manager\";\n\nexport interface ClientIdManager {\n getClientId: () => string;\n}\n\nexport function createClientIdManager(\n environmentManager: EnvironmentManager\n): ClientIdManager {\n return {\n getClientId: () => {\n const key = \"visitorId\";\n const environment = environmentManager.get();\n const storage = environment.storage;\n\n const existingClientId = storage.getItem(key);\n const clientId =\n existingClientId && validate(existingClientId)\n ? existingClientId\n : environment.generateUUID();\n storage.setItem(key, clientId);\n return clientId;\n },\n };\n}\n","import REGEX from './regex.js';\nfunction validate(uuid) {\n return typeof uuid === 'string' && REGEX.test(uuid);\n}\nexport default validate;","export const version = \"process.env.VERSION\";\n","import { ClientIdManager } from \"../../client-id/client-id\";\nimport { Environment } from \"../../environment/environment\";\nimport { RelayConfig } from \"../../config/config\";\nimport { version } from \"../../version\";\n\n/**\n * The `EventConfig` object provides additonal information for the configuration associated with the event.\n */\nexport interface EventConfig {\n /**\n * The unique identifier of a web property. See [What's a tracking ID?](https://docs.coveo.com/en/n8tg0567/).\n */\n trackingId: string;\n}\n\n/**\n * The `Meta` object provides a structured representation of metadata associated with an emitted event.\n * This object is auto-populated by Relay.\n */\nexport interface Meta {\n /**\n * Event's type that was emitted.\n */\n type: string;\n\n /**\n * Configuration associated with the event.\n */\n config: EventConfig;\n\n /**\n * Timestamp when the event was emitted.\n */\n ts: number;\n\n /**\n * Names and versions of the client side libraries which built and emitted this event.\n */\n source: string[];\n\n /**\n * Persistent unique identifier of a device.\n */\n clientId: string;\n\n /**\n * Browser Navigator's [user agent](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgent) property if set.\n */\n userAgent: string | null;\n\n /**\n * Browser Document's [referrer](https://developer.mozilla.org/en-US/docs/Web/API/Document/referrer) property if set.\n */\n referrer: string | null;\n\n /**\n * Browser Location's [href](https://developer.mozilla.org/en-US/docs/Web/API/Location/href) property if set.\n */\n location: string | null;\n}\n\nfunction getEventConfig(config: RelayConfig): EventConfig {\n const { trackingId } = config;\n return { trackingId };\n}\n\nfunction getSource(config: RelayConfig): string[] {\n return (config.source || []).concat([`relay@${version}`]);\n}\n\nexport function createMeta(\n type: string,\n config: RelayConfig,\n environment: Environment,\n clientIdManager: ClientIdManager\n): Readonly<Meta> {\n const { getReferrer, getLocation, getUserAgent } = environment;\n const eventConfig = getEventConfig(config);\n const clientId = clientIdManager.getClientId();\n\n return Object.freeze<Meta>({\n type,\n config: eventConfig,\n ts: Date.now(),\n source: getSource(config),\n clientId,\n userAgent: getUserAgent(),\n referrer: getReferrer(),\n location: getLocation(),\n });\n}\n","import { RelayEvent } from \"../event/relay-event\";\n\nconst ANY_EVENT_TYPE = \"*\";\n\n/**\n * Callback to perform an action when a specified event is emitted.\n * @typedef {function} EventCallback\n * @param {RelayEvent} event - the Relay event payload that triggered the callback.\n * @returns {void}\n */\nexport type EventCallback = (event: RelayEvent) => void;\n\ninterface Listener {\n type: string;\n callback: EventCallback;\n}\n\nexport interface ListenerManager {\n add: (listener: Listener) => () => void;\n call: (event: RelayEvent) => void;\n remove: (type: string, callback?: EventCallback) => void;\n}\n\nexport function createListenerManager(): ListenerManager {\n const listeners: Listener[] = [];\n\n function getListenerIndex({ type, callback }: Listener): number {\n return listeners.findIndex(\n (listener) => listener.type === type && listener.callback === callback\n );\n }\n\n function isMatchesType(listener: Listener, type: string): boolean {\n return listener.type === \"*\" || type === listener.type;\n }\n\n function add(listener: Listener): () => void {\n if (getListenerIndex(listener) < 0) {\n listeners.push(listener);\n }\n return () => remove(listener.type, listener.callback);\n }\n\n function call(event: RelayEvent) {\n listeners.forEach((listener) => {\n if (isMatchesType(listener, event.meta.type)) {\n try {\n listener.callback(event);\n } catch (e) {\n console.error(e);\n }\n }\n });\n }\n\n function removeMultiple(type: string) {\n if (type === ANY_EVENT_TYPE) {\n listeners.length = 0;\n } else {\n for (let i = listeners.length - 1; i >= 0; i--) {\n if (listeners[i].type === type) {\n listeners.splice(i, 1);\n }\n }\n }\n }\n\n function removeOne(listener: Listener) {\n const index = getListenerIndex(listener);\n if (index >= 0) {\n listeners.splice(index, 1);\n }\n }\n\n function remove(type: string, callback?: EventCallback) {\n callback ? removeOne({ type, callback }) : removeMultiple(type);\n }\n\n return {\n add,\n call,\n remove,\n };\n}\n","/**\n * The `RelayConfig` object defines the configuration options for initializing a Relay instance.\n */\nexport interface RelayConfig {\n /**\n * Endpoint defined to communicate with the Event API.\n */\n url: string;\n\n /**\n * Token to authorize the access to the Event API endpoint.\n */\n token: string;\n\n /**\n * The unique identifier of a web property. See [What's a tracking ID?](https://docs.coveo.com/en/n8tg0567/).\n */\n trackingId: string;\n\n /**\n * Defines the library mode. The available modes are `emit` and `disabled`.\n * `emit` sends analytics events to Coveo to be stored.\n * `disabled` prevents the emission of events and does not trigger callbacks.\n * @default emit\n */\n mode?: \"emit\" | \"disabled\";\n\n /**\n * Optionally allows a Relay integration to specify the name(s) of software package(s) relay is\n * being called from. These names will be transmitted with each event, along with Relay's own\n * version. The recommendation is to specify them using a 'softwarename@softwareversion' string.\n */\n source?: string[];\n}\n\nexport interface ConfigManager {\n get: () => Readonly<RelayConfig>;\n update: (updatedConfig: Partial<RelayConfig>) => void;\n}\n\nfunction pick({\n url,\n token,\n trackingId,\n ...rest\n}: RelayConfig): Readonly<RelayConfig> {\n return Object.freeze({\n url,\n token,\n trackingId,\n ...(!!rest.mode && { mode: rest.mode }),\n ...(!!rest.source && { source: rest.source }),\n });\n}\n\nexport function createConfigManager(\n initialConfig: RelayConfig\n): Readonly<ConfigManager> {\n let _config: Readonly<RelayConfig> = pick(initialConfig);\n\n return {\n get: () => _config,\n update: (updatedConfig: Partial<RelayConfig>) => {\n _config = pick({ ..._config, ...updatedConfig });\n },\n };\n}\n","export interface CookieManager {\n getItem: (key: string) => string | null;\n removeItem: (key: string) => void;\n setItem: (key: string, data: string, expire: number) => void;\n}\n\nexport const cookieManager: CookieManager = createCookieManager();\n\nfunction createCookieManager(): CookieManager {\n const prefix = \"coveo_\";\n const getDomain = (host: string) => {\n const parts = host.split(\".\").slice(-2);\n return parts.length == 2 ? parts.join(\".\") : \"\";\n };\n\n return {\n getItem(key: string): string | null {\n const cookiePrefix = `${prefix}${key}=`;\n const cookieArray = document.cookie.split(\";\");\n for (const cookie of cookieArray) {\n const prettifyCookie = cookie.replace(/^\\s+/, \"\");\n if (prettifyCookie.lastIndexOf(cookiePrefix, 0) === 0) {\n return prettifyCookie.substring(\n cookiePrefix.length,\n prettifyCookie.length\n );\n }\n }\n return null;\n },\n setItem(key: string, data: string, expire: number): void {\n const domain = getDomain(window.location.hostname);\n const expireSection = `;expires=${new Date(\n new Date().getTime() + expire\n ).toUTCString()}`;\n const domainSection = domain ? `;domain=${domain}` : \"\";\n document.cookie = `${prefix}${key}=${data}${expireSection}${domainSection};path=/;SameSite=Lax`;\n },\n\n removeItem(key: string): void {\n this.setItem(key, \"\", -1);\n },\n };\n}\n","import { createExplorerMessenger } from \"@coveo/explorer-messenger\";\nimport { Environment } from \"../environment\";\nimport { createBrowserStorage } from \"./storage/storage\";\nimport { RelayEvent } from \"../../event/relay-event\";\nimport { v4 as uuidv4 } from \"uuid\";\n\nfunction getReferrer() {\n const referrer = document.referrer;\n\n return referrer === \"\" ? null : referrer;\n}\n\nexport function buildBrowserEnvironment(): Environment {\n return {\n runtime: \"browser\",\n send: (url: string, token: string, event: RelayEvent) => {\n const response = navigator.sendBeacon(\n `${url}?access_token=${token}`,\n new Blob([JSON.stringify([event])], {\n type: \"application/json\",\n })\n );\n\n const messenger = createExplorerMessenger();\n messenger.sendMessage({ kind: \"EVENT_PROTOCOL\", event, url, token });\n\n if (!response) {\n throw new Error(\n `Failed to send the event(s) because the payload size exceeded the maximum allowed size (32 KB). Please contact support if the problem persists.`\n );\n }\n },\n getReferrer: () => getReferrer(),\n getLocation: () => window.location.href,\n getUserAgent: () => navigator.userAgent,\n generateUUID: () => uuidv4(),\n storage: createBrowserStorage(),\n };\n}\n","function createExplorerMessenger() {\n const isBrowser = typeof window !== \"undefined\";\n return {\n sendMessage(message) {\n isBrowser && window.postMessage(message, \"*\");\n }\n };\n}\nexport {\n createExplorerMessenger\n};\n","import { Storage } from \"../../storage\";\nimport { cookieManager } from \"./cookie\";\n\nexport function createBrowserStorage(): Storage {\n return {\n getItem(key: string): string | null {\n return cookieManager.getItem(key) || localStorage.getItem(key);\n },\n\n removeItem(key: string): void {\n cookieManager.removeItem(key);\n localStorage.removeItem(key);\n },\n\n setItem(key: string, data: string): void {\n const oneYear = 31556952000;\n localStorage.setItem(key, data);\n cookieManager.setItem(key, data, oneYear);\n },\n };\n}\n","import { ConfigManager } from \"../../config/config\";\nimport { buildBrowserEnvironment } from \"../browser/browser\";\nimport { localStorageAvailable } from \"../browser/storage/availability\";\nimport { Environment } from \"../environment\";\nimport { buildNullEnvironment } from \"../null/null\";\n\nexport interface EnvironmentManager {\n get: () => Readonly<Environment>;\n}\n\nfunction buildEnvironment(configManager: ConfigManager) {\n const active = configManager.get().mode !== \"disabled\";\n\n if (active && isBrowser() && localStorageAvailable()) {\n return buildBrowserEnvironment();\n }\n\n return buildNullEnvironment();\n}\n\nfunction isBrowser() {\n try {\n return typeof window === \"object\";\n } catch (e) {\n return false;\n }\n}\n\nexport function createEnvironmentManager(\n configManager: ConfigManager\n): Readonly<EnvironmentManager> {\n return {\n get: () => Object.freeze(buildEnvironment(configManager)),\n };\n}\n","// From: https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API/Using_the_Web_Storage_API#feature-detecting_localstorage\nexport function localStorageAvailable() {\n try {\n const x = \"__storage_test__\";\n localStorage.setItem(x, x);\n localStorage.removeItem(x);\n return true;\n } catch (e) {\n return (\n e instanceof DOMException &&\n e.name === \"QuotaExceededError\" &&\n // acknowledge QuotaExceededError only if there's something already stored\n localStorage &&\n localStorage.length !== 0\n );\n }\n}\n","import { Environment } from \"../environment\";\nimport { createNullStorage } from \"../storage\";\n\nexport function buildNullEnvironment(): Environment {\n return {\n runtime: \"null\",\n send: () => undefined,\n getReferrer: () => null,\n getLocation: () => null,\n getUserAgent: () => null,\n generateUUID: () => \"\",\n storage: createNullStorage(),\n };\n}\n","export interface Storage {\n getItem: (key: string) => string | null;\n removeItem: (key: string) => void;\n setItem: (key: string, data: string) => void;\n}\n\nexport function createNullStorage(): Storage {\n return {\n getItem(): string | null {\n return null;\n },\n removeItem(): void {\n return;\n },\n setItem(): void {\n return;\n },\n };\n}\n","import { emit } from \"./emit/emit\";\nimport { createClientIdManager } from \"./client-id/client-id\";\nimport { createRelayEvent, RelayEvent } from \"./event/relay-event\";\nimport { version } from \"./version\";\nimport { createMeta, Meta, EventConfig } from \"./event/meta/meta\";\nimport { createListenerManager, EventCallback } from \"./listener/listener\";\nimport { createConfigManager, RelayConfig } from \"./config/config\";\nimport { createEnvironmentManager } from \"./environment/manager/manager\";\nimport { RelayPayload } from \"./relay-payload\";\n\n/**\n * Function that detaches an event callback.\n * @typedef {function} Off\n * @returns {void}\n */\nexport type Off = () => void;\n\n/**\n * Relay instance.\n * This object provides a comprehensive set of variables and methods for interacting with the Event API.\n */\ninterface Relay {\n /**\n * Sends an event to the Event API.\n * @param {string} type - event's type to be emitted.\n * @param {Record<string,any>} payload - payload to include within the event.\n * @returns {void}\n */\n emit: (type: string, payload: Record<string, any>) => void;\n\n /**\n * Gets the client-side generated meta object.\n * @param {string} type - event's type that will be included in the meta object.\n * @returns {Meta}\n */\n getMeta: (type: string) => Meta;\n\n /**\n * Attaches an event callback to either all event types or a specific one.\n * The callback set will be called when an event with the specified type is emitted.\n * It’s not possible to modify the payload of the event sent to Coveo using this listener.\n * Setting type as \"*\" will trigger the callback for all event types.\n * Returns the \"off\" function to detach the event callback.\n * @param {string} type - event's type.\n * @param {EventCallback} callback - callback that should be called when the event is emitted.\n * @returns {Off}\n */\n on: (type: string, callback: EventCallback) => Off;\n\n /**\n * Detach callback(s) from events.\n * If only the \"type\" parameter is set, all callbacks for the specified type will be removed.\n * @param {string} type - event's type.\n * @param {EventCallback} callback - callback that should be removed.\n * @returns {void}\n */\n off: (type: string, callback?: EventCallback) => void;\n\n /**\n * Updates Relay's configuration after its initialization.\n * @param {Partial<RelayConfig>} config - configuration that should be updated.\n * @returns {void}\n */\n updateConfig: (config: Partial<RelayConfig>) => void;\n\n /**\n * Current version of the Relay library.\n */\n version: string;\n}\n\n/**\n * Initializes the Relay library object.\n * @param {RelayConfig} initialConfig\n * @returns {Relay}\n */\nexport function createRelay(initialConfig: RelayConfig): Relay {\n const configManager = createConfigManager(initialConfig);\n const listenerManager = createListenerManager();\n const environmentManager = createEnvironmentManager(configManager);\n const clientIdManager = createClientIdManager(environmentManager);\n\n return {\n emit: (type: string, payload: Record<string, any>) => {\n const config = configManager.get();\n const environment = environmentManager.get();\n\n const event = createRelayEvent(\n type,\n payload,\n config,\n environment,\n clientIdManager\n );\n\n return emit({\n config,\n environment,\n event,\n listenerManager,\n });\n },\n getMeta: (type: string) =>\n createMeta(\n type,\n configManager.get(),\n environmentManager.get(),\n clientIdManager\n ),\n on: (type: string, callback: EventCallback) =>\n listenerManager.add({ type, callback }),\n off: (type: string, callback?: EventCallback) =>\n listenerManager.remove(type, callback),\n updateConfig: (config: Partial<RelayConfig>) =>\n configManager.update(config),\n version,\n };\n}\n\nexport type {\n Relay,\n Meta,\n EventConfig,\n EventCallback,\n RelayConfig,\n RelayPayload,\n RelayEvent,\n};\n","import { ClientIdManager } from \"../client-id/client-id\";\nimport { Environment } from \"../environment/environment\";\nimport { RelayPayload } from \"../relay-payload\";\nimport { RelayConfig } from \"../relay\";\nimport { createMeta, Meta } from \"./meta/meta\";\n\n/**\n * Defines the structure of a RelayEvent, extending the RelayPayload.\n */\nexport interface RelayEvent extends RelayPayload {\n /**\n * Read-only `meta` property of Meta type.\n */\n meta: Readonly<Meta>;\n}\n\nexport function createRelayEvent(\n type: string,\n payload: RelayPayload,\n config: RelayConfig,\n environment: Environment,\n clientIdManager: ClientIdManager\n): Readonly<RelayEvent> {\n return {\n ...payload,\n meta: createMeta(type, config, environment, clientIdManager),\n };\n}\n","import { Environment } from \"../environment/environment\";\nimport { ListenerManager } from \"../listener/listener\";\nimport { RelayEvent } from \"../event/relay-event\";\nimport { RelayConfig } from \"../relay\";\n\nexport interface EmitParams {\n config: RelayConfig;\n environment: Environment;\n event: RelayEvent;\n listenerManager: ListenerManager;\n}\n\nexport function emit({\n config,\n environment,\n event,\n listenerManager,\n}: EmitParams) {\n const { url, token, mode } = config;\n const isEnabled = mode !== \"disabled\";\n\n if (isEnabled) {\n listenerManager.call(event);\n environment.send(url, token, event);\n }\n}\n"],"names":["REGEX","getRandomValues","byteToHex","i","push","toString","slice","rnds8","Uint8Array","rng","crypto","bind","Error","native","randomUUID","v4","options","buf","offset","rnds","random","arr","toLowerCase","unsafeStringify","createClientIdManager","environmentManager","getClientId","key","environment","get","storage","existingClientId","getItem","clientId","uuid","test","generateUUID","setItem","version","getSource","config","source","concat","createMeta","type","clientIdManager","getReferrer","getLocation","getUserAgent","eventConfig","trackingId","getEventConfig","Object","freeze","ts","Date","now","userAgent","referrer","location","createListenerManager","listeners","getListenerIndex","callback","findIndex","listener","remove","index","splice","removeOne","length","removeMultiple","add","call","event","forEach","isMatchesType","meta","e","console","error","pick","url","token","rest","mode","cookieManager","prefix","cookiePrefix","cookieArray","document","cookie","split","prettifyCookie","replace","lastIndexOf","substring","data","expire","domain","host","parts","join","getDomain","window","hostname","expireSection","getTime","toUTCString","domainSection","removeItem","this","createCookieManager","buildBrowserEnvironment","runtime","send","response","navigator","sendBeacon","Blob","JSON","stringify","messenger","isBrowser","sendMessage","message","postMessage","createExplorerMessenger","kind","href","uuidv4","localStorage","buildEnvironment","configManager","x","DOMException","name","localStorageAvailable","createRelay","initialConfig","_config","update","updatedConfig","createConfigManager","listenerManager","createEnvironmentManager","emit","payload","createRelayEvent","getMeta","on","off","updateConfig"],"mappings":"AAAA,IAAAA,EAAe,2JCOf,IADA,ICFIC,EDEAC,EAAY,GACPC,EAAI,EAAGA,EAAI,MAAOA,EACzBD,EAAUE,MAAMD,EAAI,KAAOE,SAAS,IAAIC,MAAM,ICHhD,IAAIC,EAAQ,IAAIC,WAAW,IACZ,SAASC,IAEtB,IAAKR,KAEHA,EAAoC,oBAAXS,QAA0BA,OAAOT,iBAAmBS,OAAOT,gBAAgBU,KAAKD,SAEvG,MAAM,IAAIE,MAAM,4GAGpB,OAAOX,EAAgBM,EACzB,CChBA,IACeM,EAAA,CACbC,WAFiC,oBAAXJ,QAA0BA,OAAOI,YAAcJ,OAAOI,WAAWH,KAAKD,SCG9F,SAASK,EAAGC,EAASC,EAAKC,GACxB,GAAIL,EAAOC,aAAeG,IAAQD,EAChC,OAAOH,EAAOC,aAGhB,IAAIK,GADJH,EAAUA,GAAW,IACFI,SAAWJ,EAAQP,KAAOA,KAO7C,GAJAU,EAAK,GAAe,GAAVA,EAAK,GAAY,GAC3BA,EAAK,GAAe,GAAVA,EAAK,GAAY,IAGvBF,EAAK,CACPC,EAASA,GAAU,EACnB,IAAK,IAAIf,EAAI,EAAGA,EAAI,KAAMA,EACxBc,EAAIC,EAASf,GAAKgB,EAAKhB,GAEzB,OAAOc,CACR,CACD,OHZK,SAAyBI,EAAKH,EAAS,GAM5C,OAAQhB,EAAUmB,EAAIH,EAAS,IAAMhB,EAAUmB,EAAIH,EAAS,IAAMhB,EAAUmB,EAAIH,EAAS,IAAMhB,EAAUmB,EAAIH,EAAS,IAAM,IAA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G,KACnB,MAAM3G,EAAS6F,EAAcxG,MACvBD,EAAcH,EAAmBI,MAEjC6C,ECvEN,SACJ9B,EACAuG,EACA3G,EACAZ,EACAiB,GAEA,MAAO,IACFsG,EACHtE,KAAMlC,EAAWC,EAAMJ,EAAQZ,EAAaiB,GAEhD,CD4DoBuG,CACZxG,EACAuG,EACA3G,EACAZ,EACAiB,GAGF,OEnFA,UAAeL,OACnBA,EAAMZ,YACNA,EAAW8C,MACXA,EAAKsE,gBACLA,IAEA,MAAM9D,IAAEA,EAAGC,MAAEA,EAAKE,KAAEA,GAAS7C,EACF,aAAT6C,IAGhB2D,EAAgBvE,KAAKC,GACrB9C,EAAYuF,KAAKjC,EAAKC,EAAOT,GAEjC,CFsEawE,CAAK,CACV1G,SACAZ,cACA8C,QACAsE,mBACA,EAEJK,QAAUzG,GACRD,EACEC,EACAyF,EAAcxG,MACdJ,EAAmBI,MACnBgB,GAEJyG,GAAI,CAAC1G,EAAcmB,IACjBiF,EAAgBxE,IAAI,CAAE5B,OAAMmB,aAC9BwF,IAAK,CAAC3G,EAAcmB,IAClBiF,EAAgB9E,OAAOtB,EAAMmB,GAC/ByF,aAAehH,GACb6F,EAAcQ,OAAOrG,GACvBF,UAEJ","x_google_ignoreList":[0,1,2,3,4,6,13]}
|
package/lib/docs/relay-docs.json
CHANGED
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"fileName": "event/meta/meta.ts",
|
|
48
48
|
"line": 13,
|
|
49
49
|
"character": 2,
|
|
50
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
50
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/event/meta/meta.ts#L13"
|
|
51
51
|
}
|
|
52
52
|
],
|
|
53
53
|
"type": {
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"fileName": "event/meta/meta.ts",
|
|
70
70
|
"line": 9,
|
|
71
71
|
"character": 17,
|
|
72
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
72
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/event/meta/meta.ts#L9"
|
|
73
73
|
}
|
|
74
74
|
]
|
|
75
75
|
},
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"fileName": "event/meta/meta.ts",
|
|
116
116
|
"line": 44,
|
|
117
117
|
"character": 2,
|
|
118
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
118
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/event/meta/meta.ts#L44"
|
|
119
119
|
}
|
|
120
120
|
],
|
|
121
121
|
"type": {
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
"fileName": "event/meta/meta.ts",
|
|
143
143
|
"line": 29,
|
|
144
144
|
"character": 2,
|
|
145
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
145
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/event/meta/meta.ts#L29"
|
|
146
146
|
}
|
|
147
147
|
],
|
|
148
148
|
"type": {
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
"fileName": "event/meta/meta.ts",
|
|
172
172
|
"line": 59,
|
|
173
173
|
"character": 2,
|
|
174
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
174
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/event/meta/meta.ts#L59"
|
|
175
175
|
}
|
|
176
176
|
],
|
|
177
177
|
"type": {
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
"fileName": "event/meta/meta.ts",
|
|
208
208
|
"line": 54,
|
|
209
209
|
"character": 2,
|
|
210
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
210
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/event/meta/meta.ts#L54"
|
|
211
211
|
}
|
|
212
212
|
],
|
|
213
213
|
"type": {
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
"fileName": "event/meta/meta.ts",
|
|
244
244
|
"line": 39,
|
|
245
245
|
"character": 2,
|
|
246
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
246
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/event/meta/meta.ts#L39"
|
|
247
247
|
}
|
|
248
248
|
],
|
|
249
249
|
"type": {
|
|
@@ -273,7 +273,7 @@
|
|
|
273
273
|
"fileName": "event/meta/meta.ts",
|
|
274
274
|
"line": 34,
|
|
275
275
|
"character": 2,
|
|
276
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
276
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/event/meta/meta.ts#L34"
|
|
277
277
|
}
|
|
278
278
|
],
|
|
279
279
|
"type": {
|
|
@@ -300,7 +300,7 @@
|
|
|
300
300
|
"fileName": "event/meta/meta.ts",
|
|
301
301
|
"line": 24,
|
|
302
302
|
"character": 2,
|
|
303
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
303
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/event/meta/meta.ts#L24"
|
|
304
304
|
}
|
|
305
305
|
],
|
|
306
306
|
"type": {
|
|
@@ -327,7 +327,7 @@
|
|
|
327
327
|
"fileName": "event/meta/meta.ts",
|
|
328
328
|
"line": 49,
|
|
329
329
|
"character": 2,
|
|
330
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
330
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/event/meta/meta.ts#L49"
|
|
331
331
|
}
|
|
332
332
|
],
|
|
333
333
|
"type": {
|
|
@@ -365,7 +365,7 @@
|
|
|
365
365
|
"fileName": "event/meta/meta.ts",
|
|
366
366
|
"line": 20,
|
|
367
367
|
"character": 17,
|
|
368
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
368
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/event/meta/meta.ts#L20"
|
|
369
369
|
}
|
|
370
370
|
]
|
|
371
371
|
},
|
|
@@ -390,12 +390,20 @@
|
|
|
390
390
|
"variant": "declaration",
|
|
391
391
|
"kind": 1024,
|
|
392
392
|
"flags": {},
|
|
393
|
+
"comment": {
|
|
394
|
+
"summary": [
|
|
395
|
+
{
|
|
396
|
+
"kind": "text",
|
|
397
|
+
"text": "Sends an event to the Event API."
|
|
398
|
+
}
|
|
399
|
+
]
|
|
400
|
+
},
|
|
393
401
|
"sources": [
|
|
394
402
|
{
|
|
395
403
|
"fileName": "relay.ts",
|
|
396
404
|
"line": 29,
|
|
397
405
|
"character": 2,
|
|
398
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
406
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/relay.ts#L29"
|
|
399
407
|
}
|
|
400
408
|
],
|
|
401
409
|
"type": {
|
|
@@ -411,7 +419,7 @@
|
|
|
411
419
|
"fileName": "relay.ts",
|
|
412
420
|
"line": 29,
|
|
413
421
|
"character": 8,
|
|
414
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
422
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/relay.ts#L29"
|
|
415
423
|
}
|
|
416
424
|
],
|
|
417
425
|
"signatures": [
|
|
@@ -422,12 +430,7 @@
|
|
|
422
430
|
"kind": 4096,
|
|
423
431
|
"flags": {},
|
|
424
432
|
"comment": {
|
|
425
|
-
"summary": [
|
|
426
|
-
{
|
|
427
|
-
"kind": "text",
|
|
428
|
-
"text": "Sends an event to the Event API."
|
|
429
|
-
}
|
|
430
|
-
],
|
|
433
|
+
"summary": [],
|
|
431
434
|
"blockTags": [
|
|
432
435
|
{
|
|
433
436
|
"tag": "@returns",
|
|
@@ -440,7 +443,7 @@
|
|
|
440
443
|
"fileName": "relay.ts",
|
|
441
444
|
"line": 29,
|
|
442
445
|
"character": 8,
|
|
443
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
446
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/relay.ts#L29"
|
|
444
447
|
}
|
|
445
448
|
],
|
|
446
449
|
"parameters": [
|
|
@@ -480,7 +483,7 @@
|
|
|
480
483
|
"type": {
|
|
481
484
|
"type": "reference",
|
|
482
485
|
"target": {
|
|
483
|
-
"sourceFileName": "../../node_modules/.pnpm/typescript@5.
|
|
486
|
+
"sourceFileName": "../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es5.d.ts",
|
|
484
487
|
"qualifiedName": "Record"
|
|
485
488
|
},
|
|
486
489
|
"typeArguments": [
|
|
@@ -513,12 +516,20 @@
|
|
|
513
516
|
"variant": "declaration",
|
|
514
517
|
"kind": 1024,
|
|
515
518
|
"flags": {},
|
|
519
|
+
"comment": {
|
|
520
|
+
"summary": [
|
|
521
|
+
{
|
|
522
|
+
"kind": "text",
|
|
523
|
+
"text": "Gets the client-side generated meta object."
|
|
524
|
+
}
|
|
525
|
+
]
|
|
526
|
+
},
|
|
516
527
|
"sources": [
|
|
517
528
|
{
|
|
518
529
|
"fileName": "relay.ts",
|
|
519
530
|
"line": 36,
|
|
520
531
|
"character": 2,
|
|
521
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
532
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/relay.ts#L36"
|
|
522
533
|
}
|
|
523
534
|
],
|
|
524
535
|
"type": {
|
|
@@ -534,7 +545,7 @@
|
|
|
534
545
|
"fileName": "relay.ts",
|
|
535
546
|
"line": 36,
|
|
536
547
|
"character": 11,
|
|
537
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
548
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/relay.ts#L36"
|
|
538
549
|
}
|
|
539
550
|
],
|
|
540
551
|
"signatures": [
|
|
@@ -545,12 +556,7 @@
|
|
|
545
556
|
"kind": 4096,
|
|
546
557
|
"flags": {},
|
|
547
558
|
"comment": {
|
|
548
|
-
"summary": [
|
|
549
|
-
{
|
|
550
|
-
"kind": "text",
|
|
551
|
-
"text": "Gets the client-side generated meta object."
|
|
552
|
-
}
|
|
553
|
-
],
|
|
559
|
+
"summary": [],
|
|
554
560
|
"blockTags": [
|
|
555
561
|
{
|
|
556
562
|
"tag": "@returns",
|
|
@@ -563,7 +569,7 @@
|
|
|
563
569
|
"fileName": "relay.ts",
|
|
564
570
|
"line": 36,
|
|
565
571
|
"character": 11,
|
|
566
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
572
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/relay.ts#L36"
|
|
567
573
|
}
|
|
568
574
|
],
|
|
569
575
|
"parameters": [
|
|
@@ -604,12 +610,20 @@
|
|
|
604
610
|
"variant": "declaration",
|
|
605
611
|
"kind": 1024,
|
|
606
612
|
"flags": {},
|
|
613
|
+
"comment": {
|
|
614
|
+
"summary": [
|
|
615
|
+
{
|
|
616
|
+
"kind": "text",
|
|
617
|
+
"text": "Detach callback(s) from events.\nIf only the \"type\" parameter is set, all callbacks for the specified type will be removed."
|
|
618
|
+
}
|
|
619
|
+
]
|
|
620
|
+
},
|
|
607
621
|
"sources": [
|
|
608
622
|
{
|
|
609
623
|
"fileName": "relay.ts",
|
|
610
624
|
"line": 57,
|
|
611
625
|
"character": 2,
|
|
612
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
626
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/relay.ts#L57"
|
|
613
627
|
}
|
|
614
628
|
],
|
|
615
629
|
"type": {
|
|
@@ -625,7 +639,7 @@
|
|
|
625
639
|
"fileName": "relay.ts",
|
|
626
640
|
"line": 57,
|
|
627
641
|
"character": 7,
|
|
628
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
642
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/relay.ts#L57"
|
|
629
643
|
}
|
|
630
644
|
],
|
|
631
645
|
"signatures": [
|
|
@@ -636,12 +650,7 @@
|
|
|
636
650
|
"kind": 4096,
|
|
637
651
|
"flags": {},
|
|
638
652
|
"comment": {
|
|
639
|
-
"summary": [
|
|
640
|
-
{
|
|
641
|
-
"kind": "text",
|
|
642
|
-
"text": "Detach callback(s) from events.\nIf only the \"type\" parameter is set, all callbacks for the specified type will be removed."
|
|
643
|
-
}
|
|
644
|
-
],
|
|
653
|
+
"summary": [],
|
|
645
654
|
"blockTags": [
|
|
646
655
|
{
|
|
647
656
|
"tag": "@returns",
|
|
@@ -654,7 +663,7 @@
|
|
|
654
663
|
"fileName": "relay.ts",
|
|
655
664
|
"line": 57,
|
|
656
665
|
"character": 7,
|
|
657
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
666
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/relay.ts#L57"
|
|
658
667
|
}
|
|
659
668
|
],
|
|
660
669
|
"parameters": [
|
|
@@ -716,12 +725,20 @@
|
|
|
716
725
|
"variant": "declaration",
|
|
717
726
|
"kind": 1024,
|
|
718
727
|
"flags": {},
|
|
728
|
+
"comment": {
|
|
729
|
+
"summary": [
|
|
730
|
+
{
|
|
731
|
+
"kind": "text",
|
|
732
|
+
"text": "Attaches an event callback to either all event types or a specific one.\nThe callback set will be called when an event with the specified type is emitted.\nIt’s not possible to modify the payload of the event sent to Coveo using this listener.\nSetting type as \"*\" will trigger the callback for all event types.\nReturns the \"off\" function to detach the event callback."
|
|
733
|
+
}
|
|
734
|
+
]
|
|
735
|
+
},
|
|
719
736
|
"sources": [
|
|
720
737
|
{
|
|
721
738
|
"fileName": "relay.ts",
|
|
722
739
|
"line": 48,
|
|
723
740
|
"character": 2,
|
|
724
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
741
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/relay.ts#L48"
|
|
725
742
|
}
|
|
726
743
|
],
|
|
727
744
|
"type": {
|
|
@@ -737,7 +754,7 @@
|
|
|
737
754
|
"fileName": "relay.ts",
|
|
738
755
|
"line": 48,
|
|
739
756
|
"character": 6,
|
|
740
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
757
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/relay.ts#L48"
|
|
741
758
|
}
|
|
742
759
|
],
|
|
743
760
|
"signatures": [
|
|
@@ -748,12 +765,7 @@
|
|
|
748
765
|
"kind": 4096,
|
|
749
766
|
"flags": {},
|
|
750
767
|
"comment": {
|
|
751
|
-
"summary": [
|
|
752
|
-
{
|
|
753
|
-
"kind": "text",
|
|
754
|
-
"text": "Attaches an event callback to either all event types or a specific one.\nThe callback set will be called when an event with the specified type is emitted.\nIt’s not possible to modify the payload of the event sent to Coveo using this listener.\nSetting type as \"*\" will trigger the callback for all event types.\nReturns the \"off\" function to detach the event callback."
|
|
755
|
-
}
|
|
756
|
-
],
|
|
768
|
+
"summary": [],
|
|
757
769
|
"blockTags": [
|
|
758
770
|
{
|
|
759
771
|
"tag": "@returns",
|
|
@@ -766,7 +778,7 @@
|
|
|
766
778
|
"fileName": "relay.ts",
|
|
767
779
|
"line": 48,
|
|
768
780
|
"character": 6,
|
|
769
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
781
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/relay.ts#L48"
|
|
770
782
|
}
|
|
771
783
|
],
|
|
772
784
|
"parameters": [
|
|
@@ -828,12 +840,20 @@
|
|
|
828
840
|
"variant": "declaration",
|
|
829
841
|
"kind": 1024,
|
|
830
842
|
"flags": {},
|
|
843
|
+
"comment": {
|
|
844
|
+
"summary": [
|
|
845
|
+
{
|
|
846
|
+
"kind": "text",
|
|
847
|
+
"text": "Updates Relay's configuration after its initialization."
|
|
848
|
+
}
|
|
849
|
+
]
|
|
850
|
+
},
|
|
831
851
|
"sources": [
|
|
832
852
|
{
|
|
833
853
|
"fileName": "relay.ts",
|
|
834
854
|
"line": 64,
|
|
835
855
|
"character": 2,
|
|
836
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
856
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/relay.ts#L64"
|
|
837
857
|
}
|
|
838
858
|
],
|
|
839
859
|
"type": {
|
|
@@ -849,7 +869,7 @@
|
|
|
849
869
|
"fileName": "relay.ts",
|
|
850
870
|
"line": 64,
|
|
851
871
|
"character": 16,
|
|
852
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
872
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/relay.ts#L64"
|
|
853
873
|
}
|
|
854
874
|
],
|
|
855
875
|
"signatures": [
|
|
@@ -860,12 +880,7 @@
|
|
|
860
880
|
"kind": 4096,
|
|
861
881
|
"flags": {},
|
|
862
882
|
"comment": {
|
|
863
|
-
"summary": [
|
|
864
|
-
{
|
|
865
|
-
"kind": "text",
|
|
866
|
-
"text": "Updates Relay's configuration after its initialization."
|
|
867
|
-
}
|
|
868
|
-
],
|
|
883
|
+
"summary": [],
|
|
869
884
|
"blockTags": [
|
|
870
885
|
{
|
|
871
886
|
"tag": "@returns",
|
|
@@ -878,7 +893,7 @@
|
|
|
878
893
|
"fileName": "relay.ts",
|
|
879
894
|
"line": 64,
|
|
880
895
|
"character": 16,
|
|
881
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
896
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/relay.ts#L64"
|
|
882
897
|
}
|
|
883
898
|
],
|
|
884
899
|
"parameters": [
|
|
@@ -899,7 +914,7 @@
|
|
|
899
914
|
"type": {
|
|
900
915
|
"type": "reference",
|
|
901
916
|
"target": {
|
|
902
|
-
"sourceFileName": "../../node_modules/.pnpm/typescript@5.
|
|
917
|
+
"sourceFileName": "../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es5.d.ts",
|
|
903
918
|
"qualifiedName": "Partial"
|
|
904
919
|
},
|
|
905
920
|
"typeArguments": [
|
|
@@ -943,7 +958,7 @@
|
|
|
943
958
|
"fileName": "relay.ts",
|
|
944
959
|
"line": 69,
|
|
945
960
|
"character": 2,
|
|
946
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
961
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/relay.ts#L69"
|
|
947
962
|
}
|
|
948
963
|
],
|
|
949
964
|
"type": {
|
|
@@ -970,7 +985,7 @@
|
|
|
970
985
|
"fileName": "relay.ts",
|
|
971
986
|
"line": 22,
|
|
972
987
|
"character": 10,
|
|
973
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
988
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/relay.ts#L22"
|
|
974
989
|
}
|
|
975
990
|
]
|
|
976
991
|
},
|
|
@@ -1061,7 +1076,7 @@
|
|
|
1061
1076
|
"fileName": "config/config.ts",
|
|
1062
1077
|
"line": 26,
|
|
1063
1078
|
"character": 2,
|
|
1064
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
1079
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/config/config.ts#L26"
|
|
1065
1080
|
}
|
|
1066
1081
|
],
|
|
1067
1082
|
"type": {
|
|
@@ -1099,7 +1114,7 @@
|
|
|
1099
1114
|
"fileName": "config/config.ts",
|
|
1100
1115
|
"line": 33,
|
|
1101
1116
|
"character": 2,
|
|
1102
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
1117
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/config/config.ts#L33"
|
|
1103
1118
|
}
|
|
1104
1119
|
],
|
|
1105
1120
|
"type": {
|
|
@@ -1129,7 +1144,7 @@
|
|
|
1129
1144
|
"fileName": "config/config.ts",
|
|
1130
1145
|
"line": 13,
|
|
1131
1146
|
"character": 2,
|
|
1132
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
1147
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/config/config.ts#L13"
|
|
1133
1148
|
}
|
|
1134
1149
|
],
|
|
1135
1150
|
"type": {
|
|
@@ -1156,7 +1171,7 @@
|
|
|
1156
1171
|
"fileName": "config/config.ts",
|
|
1157
1172
|
"line": 18,
|
|
1158
1173
|
"character": 2,
|
|
1159
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
1174
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/config/config.ts#L18"
|
|
1160
1175
|
}
|
|
1161
1176
|
],
|
|
1162
1177
|
"type": {
|
|
@@ -1183,7 +1198,7 @@
|
|
|
1183
1198
|
"fileName": "config/config.ts",
|
|
1184
1199
|
"line": 8,
|
|
1185
1200
|
"character": 2,
|
|
1186
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
1201
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/config/config.ts#L8"
|
|
1187
1202
|
}
|
|
1188
1203
|
],
|
|
1189
1204
|
"type": {
|
|
@@ -1209,7 +1224,7 @@
|
|
|
1209
1224
|
"fileName": "config/config.ts",
|
|
1210
1225
|
"line": 4,
|
|
1211
1226
|
"character": 17,
|
|
1212
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
1227
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/config/config.ts#L4"
|
|
1213
1228
|
}
|
|
1214
1229
|
]
|
|
1215
1230
|
},
|
|
@@ -1255,13 +1270,13 @@
|
|
|
1255
1270
|
"fileName": "event/relay-event.ts",
|
|
1256
1271
|
"line": 14,
|
|
1257
1272
|
"character": 2,
|
|
1258
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
1273
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/event/relay-event.ts#L14"
|
|
1259
1274
|
}
|
|
1260
1275
|
],
|
|
1261
1276
|
"type": {
|
|
1262
1277
|
"type": "reference",
|
|
1263
1278
|
"target": {
|
|
1264
|
-
"sourceFileName": "../../node_modules/.pnpm/typescript@5.
|
|
1279
|
+
"sourceFileName": "../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es5.d.ts",
|
|
1265
1280
|
"qualifiedName": "Readonly"
|
|
1266
1281
|
},
|
|
1267
1282
|
"typeArguments": [
|
|
@@ -1290,7 +1305,7 @@
|
|
|
1290
1305
|
"fileName": "event/relay-event.ts",
|
|
1291
1306
|
"line": 10,
|
|
1292
1307
|
"character": 17,
|
|
1293
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
1308
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/event/relay-event.ts#L10"
|
|
1294
1309
|
}
|
|
1295
1310
|
],
|
|
1296
1311
|
"extendedTypes": [
|
|
@@ -1308,12 +1323,20 @@
|
|
|
1308
1323
|
"variant": "declaration",
|
|
1309
1324
|
"kind": 2097152,
|
|
1310
1325
|
"flags": {},
|
|
1326
|
+
"comment": {
|
|
1327
|
+
"summary": [
|
|
1328
|
+
{
|
|
1329
|
+
"kind": "text",
|
|
1330
|
+
"text": "Callback to perform an action when a specified event is emitted."
|
|
1331
|
+
}
|
|
1332
|
+
]
|
|
1333
|
+
},
|
|
1311
1334
|
"sources": [
|
|
1312
1335
|
{
|
|
1313
1336
|
"fileName": "listener/listener.ts",
|
|
1314
1337
|
"line": 11,
|
|
1315
1338
|
"character": 12,
|
|
1316
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
1339
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/listener/listener.ts#L11"
|
|
1317
1340
|
}
|
|
1318
1341
|
],
|
|
1319
1342
|
"type": {
|
|
@@ -1329,7 +1352,7 @@
|
|
|
1329
1352
|
"fileName": "listener/listener.ts",
|
|
1330
1353
|
"line": 11,
|
|
1331
1354
|
"character": 28,
|
|
1332
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
1355
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/listener/listener.ts#L11"
|
|
1333
1356
|
}
|
|
1334
1357
|
],
|
|
1335
1358
|
"signatures": [
|
|
@@ -1340,12 +1363,7 @@
|
|
|
1340
1363
|
"kind": 4096,
|
|
1341
1364
|
"flags": {},
|
|
1342
1365
|
"comment": {
|
|
1343
|
-
"summary": [
|
|
1344
|
-
{
|
|
1345
|
-
"kind": "text",
|
|
1346
|
-
"text": "Callback to perform an action when a specified event is emitted."
|
|
1347
|
-
}
|
|
1348
|
-
],
|
|
1366
|
+
"summary": [],
|
|
1349
1367
|
"blockTags": [
|
|
1350
1368
|
{
|
|
1351
1369
|
"tag": "@returns",
|
|
@@ -1391,12 +1409,20 @@
|
|
|
1391
1409
|
"variant": "declaration",
|
|
1392
1410
|
"kind": 2097152,
|
|
1393
1411
|
"flags": {},
|
|
1412
|
+
"comment": {
|
|
1413
|
+
"summary": [
|
|
1414
|
+
{
|
|
1415
|
+
"kind": "text",
|
|
1416
|
+
"text": "Function that detaches an event callback."
|
|
1417
|
+
}
|
|
1418
|
+
]
|
|
1419
|
+
},
|
|
1394
1420
|
"sources": [
|
|
1395
1421
|
{
|
|
1396
1422
|
"fileName": "relay.ts",
|
|
1397
1423
|
"line": 16,
|
|
1398
1424
|
"character": 12,
|
|
1399
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
1425
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/relay.ts#L16"
|
|
1400
1426
|
}
|
|
1401
1427
|
],
|
|
1402
1428
|
"type": {
|
|
@@ -1412,7 +1438,7 @@
|
|
|
1412
1438
|
"fileName": "relay.ts",
|
|
1413
1439
|
"line": 16,
|
|
1414
1440
|
"character": 18,
|
|
1415
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
1441
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/relay.ts#L16"
|
|
1416
1442
|
}
|
|
1417
1443
|
],
|
|
1418
1444
|
"signatures": [
|
|
@@ -1423,12 +1449,7 @@
|
|
|
1423
1449
|
"kind": 4096,
|
|
1424
1450
|
"flags": {},
|
|
1425
1451
|
"comment": {
|
|
1426
|
-
"summary": [
|
|
1427
|
-
{
|
|
1428
|
-
"kind": "text",
|
|
1429
|
-
"text": "Function that detaches an event callback."
|
|
1430
|
-
}
|
|
1431
|
-
],
|
|
1452
|
+
"summary": [],
|
|
1432
1453
|
"blockTags": [
|
|
1433
1454
|
{
|
|
1434
1455
|
"tag": "@returns",
|
|
@@ -1464,13 +1485,13 @@
|
|
|
1464
1485
|
"fileName": "relay-payload.ts",
|
|
1465
1486
|
"line": 5,
|
|
1466
1487
|
"character": 12,
|
|
1467
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
1488
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/relay-payload.ts#L5"
|
|
1468
1489
|
}
|
|
1469
1490
|
],
|
|
1470
1491
|
"type": {
|
|
1471
1492
|
"type": "reference",
|
|
1472
1493
|
"target": {
|
|
1473
|
-
"sourceFileName": "../../node_modules/.pnpm/typescript@5.
|
|
1494
|
+
"sourceFileName": "../../node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.es5.d.ts",
|
|
1474
1495
|
"qualifiedName": "Record"
|
|
1475
1496
|
},
|
|
1476
1497
|
"typeArguments": [
|
|
@@ -1505,7 +1526,7 @@
|
|
|
1505
1526
|
"fileName": "relay.ts",
|
|
1506
1527
|
"line": 77,
|
|
1507
1528
|
"character": 16,
|
|
1508
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
1529
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/relay.ts#L77"
|
|
1509
1530
|
}
|
|
1510
1531
|
],
|
|
1511
1532
|
"signatures": [
|
|
@@ -1534,7 +1555,7 @@
|
|
|
1534
1555
|
"fileName": "relay.ts",
|
|
1535
1556
|
"line": 77,
|
|
1536
1557
|
"character": 16,
|
|
1537
|
-
"url": "https://github.com/coveo-platform/relay/blob/
|
|
1558
|
+
"url": "https://github.com/coveo-platform/relay/blob/2c33ce1fcbabc68288b5c090b5405736f3ff8ba3/packages/relay/src/relay.ts#L77"
|
|
1538
1559
|
}
|
|
1539
1560
|
],
|
|
1540
1561
|
"parameters": [
|
|
@@ -1589,7 +1610,7 @@
|
|
|
1589
1610
|
}
|
|
1590
1611
|
],
|
|
1591
1612
|
"packageName": "@coveo/relay",
|
|
1592
|
-
"packageVersion": "0.8.
|
|
1613
|
+
"packageVersion": "0.8.5",
|
|
1593
1614
|
"readme": [
|
|
1594
1615
|
{
|
|
1595
1616
|
"kind": "text",
|
|
@@ -1829,5 +1850,13 @@
|
|
|
1829
1850
|
"sourceFileName": "src/event/relay-event.ts",
|
|
1830
1851
|
"qualifiedName": "RelayEvent.meta"
|
|
1831
1852
|
}
|
|
1853
|
+
},
|
|
1854
|
+
"files": {
|
|
1855
|
+
"entries": {
|
|
1856
|
+
"1": "src/relay.ts"
|
|
1857
|
+
},
|
|
1858
|
+
"reflections": {
|
|
1859
|
+
"1": 0
|
|
1860
|
+
}
|
|
1832
1861
|
}
|
|
1833
|
-
}
|
|
1862
|
+
}
|
package/lib/relay.cjs
CHANGED
package/lib/relay.js
CHANGED
package/lib/relay.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coveo/relay",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.5",
|
|
4
4
|
"description": "A library for sending analytics events using Coveo's Event protocol.",
|
|
5
5
|
"files": [
|
|
6
6
|
"lib/**/*"
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
},
|
|
40
40
|
"homepage": "https://github.com/coveo-platform/relay#readme",
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@octokit/rest": "^
|
|
42
|
+
"@octokit/rest": "^21.0.0",
|
|
43
43
|
"@rollup/plugin-node-resolve": "^15.2.1",
|
|
44
|
-
"@rollup/plugin-replace": "^
|
|
44
|
+
"@rollup/plugin-replace": "^6.0.0",
|
|
45
45
|
"@rollup/plugin-terser": "^0.4.3",
|
|
46
46
|
"@rollup/plugin-typescript": "^11.1.2",
|
|
47
47
|
"@types/jest": "^29.5.3",
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
"@types/uuid": "^9.0.4",
|
|
50
50
|
"jest": "^29.7.0",
|
|
51
51
|
"jest-environment-jsdom": "^29.7.0",
|
|
52
|
-
"rimraf": "5.0.
|
|
52
|
+
"rimraf": "5.0.10",
|
|
53
53
|
"rollup": "^3.29.5",
|
|
54
54
|
"ts-jest": "^29.1.1",
|
|
55
|
-
"typedoc": "^0.
|
|
55
|
+
"typedoc": "^0.26.0",
|
|
56
56
|
"typescript": "^5.1.6",
|
|
57
57
|
"tsconfig": "0.0.0"
|
|
58
58
|
},
|