@onlive.ai/common-121 0.2.66 → 0.2.163

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.
Files changed (286) hide show
  1. package/README.md +0 -1
  2. package/components/asset/asset-modal-portal.cjs +550 -0
  3. package/components/asset/asset-modal-portal.d.cts +22 -0
  4. package/components/asset/asset-modal-portal.d.ts +22 -0
  5. package/components/asset/asset-modal-portal.js +550 -0
  6. package/components/asset/asset.cjs +3536 -0
  7. package/components/asset/asset.d.cts +37 -0
  8. package/components/asset/asset.d.ts +37 -0
  9. package/components/asset/asset.js +3536 -0
  10. package/components/asset/asset.loaders.cjs +2 -0
  11. package/components/asset/asset.loaders.d.cts +17 -0
  12. package/components/asset/asset.loaders.d.ts +17 -0
  13. package/components/asset/asset.loaders.js +2 -0
  14. package/components/asset/asset.renderer.cjs +2292 -0
  15. package/components/asset/asset.renderer.d.cts +29 -0
  16. package/components/asset/asset.renderer.d.ts +29 -0
  17. package/components/asset/asset.renderer.js +2292 -0
  18. package/components/asset/asset.styles.cjs +683 -0
  19. package/components/asset/asset.styles.d.cts +6 -0
  20. package/components/asset/asset.styles.d.ts +6 -0
  21. package/components/asset/asset.styles.js +683 -0
  22. package/components/asset/asset.types.cjs +2 -0
  23. package/components/asset/asset.types.d.cts +103 -0
  24. package/components/asset/asset.types.d.ts +103 -0
  25. package/components/asset/asset.types.js +1 -0
  26. package/components/asset/index.cjs +3536 -0
  27. package/components/asset/index.d.cts +8 -0
  28. package/components/asset/index.d.ts +8 -0
  29. package/components/asset/index.js +3536 -0
  30. package/components/player/player.cjs +2044 -0
  31. package/components/player/player.d.cts +25 -0
  32. package/components/player/player.d.ts +25 -0
  33. package/components/player/player.js +2044 -0
  34. package/components/player/player.styles.cjs +16 -0
  35. package/components/player/player.styles.d.cts +6 -0
  36. package/components/player/player.styles.d.ts +6 -0
  37. package/components/player/player.styles.js +16 -0
  38. package/components/side-bar/index.cjs +3185 -0
  39. package/components/side-bar/index.d.cts +11 -0
  40. package/components/side-bar/index.d.ts +11 -0
  41. package/components/side-bar/index.js +3185 -0
  42. package/components/side-bar/side-bar.cjs +3185 -0
  43. package/components/side-bar/side-bar.d.cts +83 -0
  44. package/components/side-bar/side-bar.d.ts +83 -0
  45. package/components/side-bar/side-bar.js +3185 -0
  46. package/components/side-bar/side-bar.styles.cjs +801 -0
  47. package/components/side-bar/side-bar.styles.d.cts +6 -0
  48. package/components/side-bar/side-bar.styles.d.ts +6 -0
  49. package/components/side-bar/side-bar.styles.js +801 -0
  50. package/components/side-bar/side-bar.types.cjs +2 -0
  51. package/components/side-bar/side-bar.types.d.cts +105 -0
  52. package/components/side-bar/side-bar.types.d.ts +105 -0
  53. package/components/side-bar/side-bar.types.js +2 -0
  54. package/components/upload/index.cjs +83 -0
  55. package/components/upload/index.d.cts +4 -0
  56. package/components/upload/index.d.ts +4 -0
  57. package/components/upload/index.js +83 -0
  58. package/components/upload/upload.cjs +83 -0
  59. package/components/upload/upload.d.cts +28 -0
  60. package/components/upload/upload.d.ts +28 -0
  61. package/components/upload/upload.js +83 -0
  62. package/components/upload/upload.styles.cjs +65 -0
  63. package/components/upload/upload.styles.d.cts +6 -0
  64. package/components/upload/upload.styles.d.ts +6 -0
  65. package/components/upload/upload.styles.js +65 -0
  66. package/components/upload/upload.types.cjs +2 -0
  67. package/components/upload/upload.types.d.cts +16 -0
  68. package/components/upload/upload.types.d.ts +16 -0
  69. package/components/upload/upload.types.js +1 -0
  70. package/index.cjs +4677 -0
  71. package/index.d.cts +338 -0
  72. package/index.d.ts +338 -0
  73. package/index.js +4677 -0
  74. package/package.json +32 -11
  75. package/react/components/asset/Asset.cjs +2 -0
  76. package/react/components/asset/Asset.d.cts +33 -0
  77. package/react/components/asset/Asset.d.ts +33 -0
  78. package/react/components/asset/Asset.jsx +2 -0
  79. package/react/components/side-bar/SideBar.cjs +2 -0
  80. package/react/components/side-bar/SideBar.d.cts +37 -0
  81. package/react/components/side-bar/SideBar.d.ts +37 -0
  82. package/react/components/side-bar/SideBar.jsx +2 -0
  83. package/react/components/upload/Upload.cjs +2 -0
  84. package/react/components/upload/Upload.d.cts +23 -0
  85. package/react/components/upload/Upload.d.ts +23 -0
  86. package/react/components/upload/Upload.jsx +2 -0
  87. package/services/audio.service.cjs +2 -2
  88. package/services/audio.service.d.cts +1 -0
  89. package/services/audio.service.d.ts +1 -0
  90. package/services/audio.service.js +2 -2
  91. package/services/conversation/conversation.service.cjs +2 -0
  92. package/services/conversation/conversation.service.d.cts +533 -0
  93. package/services/conversation/conversation.service.d.ts +533 -0
  94. package/services/conversation/conversation.service.js +2 -0
  95. package/services/conversation/conversation.types.cjs +2 -0
  96. package/services/conversation/conversation.types.d.cts +519 -0
  97. package/services/conversation/conversation.types.d.ts +519 -0
  98. package/services/conversation/conversation.types.js +2 -0
  99. package/services/conversation/index.cjs +2 -0
  100. package/services/conversation/index.d.cts +7 -0
  101. package/services/conversation/index.d.ts +7 -0
  102. package/services/conversation/index.js +2 -0
  103. package/services/faqs/faqs.service.cjs +2 -0
  104. package/services/faqs/faqs.service.d.cts +16 -0
  105. package/services/faqs/faqs.service.d.ts +16 -0
  106. package/services/faqs/faqs.service.js +2 -0
  107. package/services/faqs/faqs.types.cjs +2 -0
  108. package/services/faqs/faqs.types.d.cts +60 -0
  109. package/services/faqs/faqs.types.d.ts +60 -0
  110. package/services/faqs/faqs.types.js +1 -0
  111. package/services/faqs/index.cjs +2 -0
  112. package/services/faqs/index.d.cts +3 -0
  113. package/services/faqs/index.d.ts +3 -0
  114. package/services/faqs/index.js +2 -0
  115. package/services/file/file.service.cjs +2 -0
  116. package/services/file/file.service.d.cts +66 -0
  117. package/services/file/file.service.d.ts +66 -0
  118. package/services/file/file.service.js +2 -0
  119. package/services/file/file.types.cjs +2 -0
  120. package/services/file/file.types.d.cts +72 -0
  121. package/services/file/file.types.d.ts +72 -0
  122. package/services/file/file.types.js +1 -0
  123. package/services/file/index.cjs +2 -0
  124. package/services/file/index.d.cts +3 -0
  125. package/services/file/index.d.ts +3 -0
  126. package/services/file/index.js +2 -0
  127. package/services/firebase/firebase-api.cjs +2 -2
  128. package/services/firebase/firebase-api.d.cts +25 -9
  129. package/services/firebase/firebase-api.d.ts +25 -9
  130. package/services/firebase/firebase-api.js +2 -2
  131. package/services/multimedia/config.example.cjs +2 -0
  132. package/services/multimedia/config.example.d.cts +13 -0
  133. package/services/multimedia/config.example.d.ts +13 -0
  134. package/services/multimedia/config.example.js +2 -0
  135. package/services/multimedia/index.cjs +2 -0
  136. package/services/multimedia/index.d.cts +3 -0
  137. package/services/multimedia/index.d.ts +3 -0
  138. package/services/multimedia/index.js +2 -0
  139. package/services/multimedia/multimedia.service.cjs +2 -0
  140. package/services/multimedia/multimedia.service.d.cts +28 -0
  141. package/services/multimedia/multimedia.service.d.ts +28 -0
  142. package/services/multimedia/multimedia.service.js +2 -0
  143. package/services/multimedia/multimedia.types.cjs +2 -0
  144. package/services/multimedia/multimedia.types.d.cts +65 -0
  145. package/services/multimedia/multimedia.types.d.ts +65 -0
  146. package/services/multimedia/multimedia.types.js +1 -0
  147. package/services/product/index.cjs +2 -0
  148. package/services/product/index.d.cts +3 -0
  149. package/services/product/index.d.ts +3 -0
  150. package/services/product/index.js +2 -0
  151. package/services/product/product.service.cjs +2 -0
  152. package/services/product/product.service.d.cts +19 -0
  153. package/services/product/product.service.d.ts +19 -0
  154. package/services/product/product.service.js +2 -0
  155. package/services/product/product.types.cjs +2 -0
  156. package/services/product/product.types.d.cts +78 -0
  157. package/services/product/product.types.d.ts +78 -0
  158. package/services/product/product.types.js +1 -0
  159. package/services/request.provider.cjs +1 -1
  160. package/services/request.provider.d.cts +1 -0
  161. package/services/request.provider.d.ts +1 -0
  162. package/services/request.provider.js +1 -1
  163. package/services/session.service.cjs +2 -0
  164. package/services/session.service.d.cts +70 -0
  165. package/services/session.service.d.ts +70 -0
  166. package/services/session.service.js +2 -0
  167. package/services/upload/index.cjs +2 -0
  168. package/services/upload/index.d.cts +2 -0
  169. package/services/upload/index.d.ts +2 -0
  170. package/services/upload/index.js +2 -0
  171. package/services/upload/upload.service.cjs +2 -0
  172. package/services/upload/upload.service.d.cts +81 -0
  173. package/services/upload/upload.service.d.ts +81 -0
  174. package/services/upload/upload.service.js +2 -0
  175. package/themes/dark.cjs +4 -1
  176. package/themes/dark.d.cts +1 -0
  177. package/themes/dark.d.ts +1 -0
  178. package/themes/dark.js +4 -1
  179. package/themes/light.cjs +1 -1
  180. package/themes/light.d.cts +1 -0
  181. package/themes/light.d.ts +1 -0
  182. package/themes/light.js +1 -1
  183. package/types/globals.cjs +2 -0
  184. package/types/globals.d.cts +39 -0
  185. package/types/globals.d.ts +39 -0
  186. package/types/globals.js +1 -0
  187. package/types/tracking-options.cjs +2 -2
  188. package/types/tracking-options.d.cts +8 -6
  189. package/types/tracking-options.d.ts +8 -6
  190. package/types/tracking-options.js +1 -1
  191. package/utils/adopt-styles.cjs +2 -2
  192. package/utils/adopt-styles.d.cts +1 -0
  193. package/utils/adopt-styles.d.ts +1 -0
  194. package/utils/adopt-styles.js +2 -2
  195. package/utils/browser-preferences.cjs +2 -2
  196. package/utils/browser-preferences.d.cts +1 -0
  197. package/utils/browser-preferences.d.ts +1 -0
  198. package/utils/browser-preferences.js +2 -2
  199. package/utils/classify-media.cjs +1 -1
  200. package/utils/classify-media.d.cts +1 -0
  201. package/utils/classify-media.d.ts +1 -0
  202. package/utils/classify-media.js +1 -1
  203. package/utils/decorators.cjs +1 -1
  204. package/utils/decorators.d.cts +1 -0
  205. package/utils/decorators.d.ts +1 -0
  206. package/utils/decorators.js +1 -1
  207. package/utils/detected-lang.cjs +2 -2
  208. package/utils/detected-lang.d.cts +1 -0
  209. package/utils/detected-lang.d.ts +1 -0
  210. package/utils/detected-lang.js +2 -2
  211. package/utils/fullscreen.cjs +2 -2
  212. package/utils/fullscreen.d.cts +6 -5
  213. package/utils/fullscreen.d.ts +6 -5
  214. package/utils/fullscreen.js +2 -2
  215. package/utils/insert-script.cjs +1 -1
  216. package/utils/insert-script.d.cts +1 -0
  217. package/utils/insert-script.d.ts +1 -0
  218. package/utils/insert-script.js +1 -1
  219. package/utils/is-map-compatible.cjs +1 -1
  220. package/utils/is-map-compatible.d.cts +1 -0
  221. package/utils/is-map-compatible.d.ts +1 -0
  222. package/utils/is-map-compatible.js +1 -1
  223. package/utils/markdown.cjs +2 -2
  224. package/utils/markdown.d.cts +1 -0
  225. package/utils/markdown.d.ts +1 -0
  226. package/utils/markdown.js +2 -2
  227. package/utils/merge.cjs +2 -2
  228. package/utils/merge.d.cts +2 -1
  229. package/utils/merge.d.ts +2 -1
  230. package/utils/merge.js +2 -2
  231. package/utils/multiband-track-volume.cjs +2 -2
  232. package/utils/multiband-track-volume.d.cts +1 -0
  233. package/utils/multiband-track-volume.d.ts +1 -0
  234. package/utils/multiband-track-volume.js +2 -2
  235. package/utils/onlive-url-params.cjs +1 -1
  236. package/utils/onlive-url-params.d.cts +1 -0
  237. package/utils/onlive-url-params.d.ts +1 -0
  238. package/utils/onlive-url-params.js +1 -1
  239. package/utils/pretty-distance.cjs +2 -2
  240. package/utils/pretty-distance.d.cts +2 -1
  241. package/utils/pretty-distance.d.ts +2 -1
  242. package/utils/pretty-distance.js +2 -2
  243. package/utils/pretty-time.cjs +2 -0
  244. package/utils/pretty-time.d.cts +16 -0
  245. package/utils/pretty-time.d.ts +16 -0
  246. package/utils/pretty-time.js +2 -0
  247. package/utils/random-string.cjs +1 -1
  248. package/utils/random-string.d.cts +1 -0
  249. package/utils/random-string.d.ts +1 -0
  250. package/utils/random-string.js +1 -1
  251. package/utils/resource-type.cjs +1 -1
  252. package/utils/resource-type.d.cts +1 -0
  253. package/utils/resource-type.d.ts +1 -0
  254. package/utils/resource-type.js +1 -1
  255. package/utils/round-number.cjs +2 -0
  256. package/utils/round-number.d.cts +30 -0
  257. package/utils/round-number.d.ts +30 -0
  258. package/utils/round-number.js +2 -0
  259. package/utils/safe-html.cjs +2 -2
  260. package/utils/safe-html.d.cts +4 -3
  261. package/utils/safe-html.d.ts +4 -3
  262. package/utils/safe-html.js +2 -2
  263. package/utils/sanitize.cjs +2 -2
  264. package/utils/sanitize.d.cts +1 -0
  265. package/utils/sanitize.d.ts +1 -0
  266. package/utils/sanitize.js +2 -2
  267. package/utils/spread.cjs +2 -2
  268. package/utils/spread.d.cts +1 -0
  269. package/utils/spread.d.ts +1 -0
  270. package/utils/spread.js +2 -2
  271. package/utils/watch.cjs +1 -1
  272. package/utils/watch.d.cts +1 -0
  273. package/utils/watch.d.ts +1 -0
  274. package/utils/watch.js +1 -1
  275. package/services/firebase/firebase.service.cjs +0 -2
  276. package/services/firebase/firebase.service.d.cts +0 -40
  277. package/services/firebase/firebase.service.d.ts +0 -40
  278. package/services/firebase/firebase.service.js +0 -2
  279. package/services/livekit.service.cjs +0 -2
  280. package/services/livekit.service.d.cts +0 -217
  281. package/services/livekit.service.d.ts +0 -217
  282. package/services/livekit.service.js +0 -2
  283. package/types/window-context.cjs +0 -2
  284. package/types/window-context.d.cts +0 -8
  285. package/types/window-context.d.ts +0 -8
  286. package/types/window-context.js +0 -1
@@ -1,3 +1,4 @@
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
1
2
  /**
2
3
  * Makes an HTTP request and returns the response as a JSON object.
3
4
  * @param input - The URL or `Request` object for the HTTP request.
@@ -1,3 +1,4 @@
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
1
2
  /**
2
3
  * Makes an HTTP request and returns the response as a JSON object.
3
4
  * @param input - The URL or `Request` object for the HTTP request.
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/common-121 v0.2.66 | © 2025 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
2
2
  var n=async(s,e)=>{let t=await fetch(s,e);if(!t.ok){let r=await t.json().catch(()=>({}));throw new Error(JSON.stringify({status:t.status,statusText:t.statusText,...r}))}return t&&t.json()},o=s=>s.replace(/\/$/,"");export{o as removeTrailingSlash,n as request};
@@ -0,0 +1,2 @@
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
2
+ "use strict";var a=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var l=(s,e)=>{for(var t in e)a(s,t,{get:e[t],enumerable:!0})},h=(s,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of u(e))!d.call(s,r)&&r!==t&&a(s,r,{get:()=>e[r],enumerable:!(o=S(e,r))||o.enumerable});return s};var C=s=>h(a({},"__esModule",{value:!0}),s);var b={};l(b,{SESSION_KEY:()=>i,SessionService:()=>g});module.exports=C(b);var c=s=>{let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t="";for(let o=0;o<s;o++)t+=e.charAt(Math.floor(Math.random()*e.length));return t};var n=require("@onlive.ai/tracker"),i="chatbot",g=class s{static hasSession(){return!!n.Session.getCookie(i)}static getSession(e={role:"guest",regenerate:!1}){e.regenerate&&(n.Session.id=n.Generator.uuid(),n.Session.deleteCookie(i));let t=n.Session.getCookie(i);return t&&s.isValidSession(t,e.role)?t:s.createSession(e.role)}static createSession(e){let t={externalId:e==="agent"?String(s.getUserId()||n.Session.id):n.Session.id,secret:c(16),createdAt:new Date().toISOString()};return n.Session.setCookie(i,t,3600*24*365),t}static isValidSession(e,t){if(t==="guest")return!0;let o=s.getUserId();return!!(o&&String(o)===e.externalId)}static getUserId(){return n.Session.getCookie("user-id",{objectKey:"userId",storageKey:"user",storageType:"localStorage",ttl:3600*24*365,preserveData:!0})}static updateSessionWithRegistrationData(e){let t=n.Session.getCookie(i);if(t||(t=s.createSession("guest")),t){let o={...t,registrationData:e};n.Session.setCookie(i,o,3600*24*365)}}static hasRegistrationData(){return!!n.Session.getCookie(i)?.registrationData}static async getAgentInfo(e){return fetch(`${e}/api/v1/auth/user-info`,{credentials:"include"}).then(t=>t.json())}static getRegistrationData(){return n.Session.getCookie(i)?.registrationData}};0&&(module.exports={SESSION_KEY,SessionService});
@@ -0,0 +1,70 @@
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
2
+ declare const SESSION_KEY = "chatbot";
3
+ /**
4
+ * Represents a chat session.
5
+ *
6
+ * @property {string} secret - Secret token for authenticating the session.
7
+ * @property {string} createdAt - ISO timestamp when the session was created.
8
+ * @property {Record<string, unknown>} [registrationData] - User registration data if provided.
9
+ */
10
+ type ChatbotSession = {
11
+ externalId: string;
12
+ secret: string;
13
+ createdAt: string;
14
+ registrationData?: Record<string, string>;
15
+ };
16
+ type AgentInfoResponse = {
17
+ organization: Record<string, unknown>;
18
+ user: {
19
+ id: string;
20
+ fullName: string;
21
+ email?: string;
22
+ username?: string;
23
+ avatar?: string;
24
+ };
25
+ };
26
+ declare class SessionService {
27
+ /**
28
+ * Check session for the current agent and language
29
+ * @param role - The role of the user (agent or guest)
30
+ * @returns The session for the current user
31
+ */
32
+ static hasSession(): boolean;
33
+ /**
34
+ * Creates or retrieves a session for the current agent and language
35
+ * @param role - The role of the user (agent or guest)
36
+ * @returns The session for the current user
37
+ */
38
+ static getSession(options?: {
39
+ role: "agent" | "guest";
40
+ regenerate?: boolean;
41
+ }): ChatbotSession;
42
+ /**
43
+ * Creates a new session for the given role
44
+ */
45
+ static createSession(role: "agent" | "guest"): ChatbotSession;
46
+ /**
47
+ * Validates if an existing session is valid for the given role
48
+ */
49
+ static isValidSession(session: ChatbotSession, role: "agent" | "guest"): boolean;
50
+ /**
51
+ * Gets the user ID from storage
52
+ */
53
+ static getUserId(): object | null;
54
+ /**
55
+ * Updates the current session with registration data
56
+ * Creates a session if one doesn't exist
57
+ */
58
+ static updateSessionWithRegistrationData(registrationData: Record<string, string>): void;
59
+ /**
60
+ * Checks if the current session has registration data
61
+ */
62
+ static hasRegistrationData(): boolean;
63
+ static getAgentInfo(serverlessUrl: string): Promise<AgentInfoResponse>;
64
+ /**
65
+ * Gets the registration data from the current session
66
+ */
67
+ static getRegistrationData(): Record<string, string> | undefined;
68
+ }
69
+
70
+ export { type AgentInfoResponse, type ChatbotSession, SESSION_KEY, SessionService };
@@ -0,0 +1,70 @@
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
2
+ declare const SESSION_KEY = "chatbot";
3
+ /**
4
+ * Represents a chat session.
5
+ *
6
+ * @property {string} secret - Secret token for authenticating the session.
7
+ * @property {string} createdAt - ISO timestamp when the session was created.
8
+ * @property {Record<string, unknown>} [registrationData] - User registration data if provided.
9
+ */
10
+ type ChatbotSession = {
11
+ externalId: string;
12
+ secret: string;
13
+ createdAt: string;
14
+ registrationData?: Record<string, string>;
15
+ };
16
+ type AgentInfoResponse = {
17
+ organization: Record<string, unknown>;
18
+ user: {
19
+ id: string;
20
+ fullName: string;
21
+ email?: string;
22
+ username?: string;
23
+ avatar?: string;
24
+ };
25
+ };
26
+ declare class SessionService {
27
+ /**
28
+ * Check session for the current agent and language
29
+ * @param role - The role of the user (agent or guest)
30
+ * @returns The session for the current user
31
+ */
32
+ static hasSession(): boolean;
33
+ /**
34
+ * Creates or retrieves a session for the current agent and language
35
+ * @param role - The role of the user (agent or guest)
36
+ * @returns The session for the current user
37
+ */
38
+ static getSession(options?: {
39
+ role: "agent" | "guest";
40
+ regenerate?: boolean;
41
+ }): ChatbotSession;
42
+ /**
43
+ * Creates a new session for the given role
44
+ */
45
+ static createSession(role: "agent" | "guest"): ChatbotSession;
46
+ /**
47
+ * Validates if an existing session is valid for the given role
48
+ */
49
+ static isValidSession(session: ChatbotSession, role: "agent" | "guest"): boolean;
50
+ /**
51
+ * Gets the user ID from storage
52
+ */
53
+ static getUserId(): object | null;
54
+ /**
55
+ * Updates the current session with registration data
56
+ * Creates a session if one doesn't exist
57
+ */
58
+ static updateSessionWithRegistrationData(registrationData: Record<string, string>): void;
59
+ /**
60
+ * Checks if the current session has registration data
61
+ */
62
+ static hasRegistrationData(): boolean;
63
+ static getAgentInfo(serverlessUrl: string): Promise<AgentInfoResponse>;
64
+ /**
65
+ * Gets the registration data from the current session
66
+ */
67
+ static getRegistrationData(): Record<string, string> | undefined;
68
+ }
69
+
70
+ export { type AgentInfoResponse, type ChatbotSession, SESSION_KEY, SessionService };
@@ -0,0 +1,2 @@
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
2
+ var r=o=>{let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e="";for(let i=0;i<o;i++)e+=t.charAt(Math.floor(Math.random()*t.length));return e};import{Generator as g,Session as s}from"@onlive.ai/tracker";var n="chatbot",a=class o{static hasSession(){return!!s.getCookie(n)}static getSession(t={role:"guest",regenerate:!1}){t.regenerate&&(s.id=g.uuid(),s.deleteCookie(n));let e=s.getCookie(n);return e&&o.isValidSession(e,t.role)?e:o.createSession(t.role)}static createSession(t){let e={externalId:t==="agent"?String(o.getUserId()||s.id):s.id,secret:r(16),createdAt:new Date().toISOString()};return s.setCookie(n,e,3600*24*365),e}static isValidSession(t,e){if(e==="guest")return!0;let i=o.getUserId();return!!(i&&String(i)===t.externalId)}static getUserId(){return s.getCookie("user-id",{objectKey:"userId",storageKey:"user",storageType:"localStorage",ttl:3600*24*365,preserveData:!0})}static updateSessionWithRegistrationData(t){let e=s.getCookie(n);if(e||(e=o.createSession("guest")),e){let i={...e,registrationData:t};s.setCookie(n,i,3600*24*365)}}static hasRegistrationData(){return!!s.getCookie(n)?.registrationData}static async getAgentInfo(t){return fetch(`${t}/api/v1/auth/user-info`,{credentials:"include"}).then(e=>e.json())}static getRegistrationData(){return s.getCookie(n)?.registrationData}};export{n as SESSION_KEY,a as SessionService};
@@ -0,0 +1,2 @@
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
2
+ "use strict";var p=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var U=Object.prototype.hasOwnProperty;var m=(s,e)=>{for(var r in e)p(s,r,{get:e[r],enumerable:!0})},h=(s,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of f(e))!U.call(s,n)&&n!==r&&p(s,n,{get:()=>e[n],enumerable:!(t=g(e,n))||t.enumerable});return s};var S=s=>h(p({},"__esModule",{value:!0}),s);var v={};m(v,{UploadService:()=>l,getUploadService:()=>u});module.exports=S(v);var d=async(s,e)=>{let r=await fetch(s,e);if(!r.ok){let t=await r.json().catch(()=>({}));throw new Error(JSON.stringify({status:r.status,statusText:r.statusText,...t}))}return r&&r.json()};var l=class s{constructor(e){this.config=e}static getInstance(e){if(!s.instance&&e&&(s.instance=new s(e)),!s.instance)throw new Error("UploadService must be initialized with config first");return s.instance}static initialize(e){return s.instance=new s(e),s.instance}async uploadFile(e,r={}){try{let t=await this.getSignedUrl(e,r);return await this.uploadToS3(e,t.signedUrl,r.onProgress),{success:!0,fileId:t.fileId,url:t.url,key:t.key}}catch(t){return console.error("Error uploading file:",t),{success:!1,error:t instanceof Error?t.message:"Unknown error"}}}async getSignedUrl(e,r={}){let t={loadDirection:"up",bucketType:"conversations",filename:e.name,mimeType:e.type,path:r.path||"uploads",description:r.description||""},n=`${this.config.baseUrl}/file-upload/signed-url`;return this.makeRequest(n,{method:"POST",body:JSON.stringify(t)})}async uploadToS3(e,r,t){return new Promise((n,o)=>{let i=new XMLHttpRequest;t&&i.upload.addEventListener("progress",a=>{if(a.lengthComputable){let c=a.loaded/a.total*100;t(c)}}),i.addEventListener("load",()=>{i.status===200?n():o(new Error(`S3 upload failed! status: ${i.status}`))}),i.addEventListener("error",()=>{o(new Error("S3 upload failed"))}),i.addEventListener("abort",()=>{o(new Error("Upload cancelled"))}),i.open("PUT",r),i.setRequestHeader("Content-Type",e.type),i.send(e)})}async uploadFileWithRetry(e,r={}){let t=r.maxRetries||3,n=null;for(let o=1;o<=t;o++)try{let i=await this.uploadFile(e,r);if(i.success)return i;throw new Error(i.error||"Upload failed")}catch(i){if(n=i instanceof Error?i:new Error("Unknown error"),o===t)break;let a=2**o*1e3;await new Promise(c=>setTimeout(c,a))}return{success:!1,error:n?.message||"Upload failed after retries"}}cancelUpload(){}async makeRequest(e,r){let t={"Content-Type":"application/json","X-Onlive-Organization-Id":this.config.organizationId};return r?.headers&&Object.assign(t,r.headers),d(e,{...r,headers:t})}updateConfig(e){this.config={...this.config,...e}}getConfig(){return{...this.config}}},u=()=>l.getInstance();0&&(module.exports={UploadService,getUploadService});
@@ -0,0 +1,2 @@
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
2
+ export { SignedUrlRequest, SignedUrlResponse, UploadProgressCallback, UploadResult, UploadService, UploadServiceConfig, getUploadService } from './upload.service.cjs';
@@ -0,0 +1,2 @@
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
2
+ export { SignedUrlRequest, SignedUrlResponse, UploadProgressCallback, UploadResult, UploadService, UploadServiceConfig, getUploadService } from './upload.service.js';
@@ -0,0 +1,2 @@
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
2
+ var p=async(i,e)=>{let r=await fetch(i,e);if(!r.ok){let t=await r.json().catch(()=>({}));throw new Error(JSON.stringify({status:r.status,statusText:r.statusText,...t}))}return r&&r.json()};var l=class i{constructor(e){this.config=e}static getInstance(e){if(!i.instance&&e&&(i.instance=new i(e)),!i.instance)throw new Error("UploadService must be initialized with config first");return i.instance}static initialize(e){return i.instance=new i(e),i.instance}async uploadFile(e,r={}){try{let t=await this.getSignedUrl(e,r);return await this.uploadToS3(e,t.signedUrl,r.onProgress),{success:!0,fileId:t.fileId,url:t.url,key:t.key}}catch(t){return console.error("Error uploading file:",t),{success:!1,error:t instanceof Error?t.message:"Unknown error"}}}async getSignedUrl(e,r={}){let t={loadDirection:"up",bucketType:"conversations",filename:e.name,mimeType:e.type,path:r.path||"uploads",description:r.description||""},o=`${this.config.baseUrl}/file-upload/signed-url`;return this.makeRequest(o,{method:"POST",body:JSON.stringify(t)})}async uploadToS3(e,r,t){return new Promise((o,n)=>{let s=new XMLHttpRequest;t&&s.upload.addEventListener("progress",a=>{if(a.lengthComputable){let c=a.loaded/a.total*100;t(c)}}),s.addEventListener("load",()=>{s.status===200?o():n(new Error(`S3 upload failed! status: ${s.status}`))}),s.addEventListener("error",()=>{n(new Error("S3 upload failed"))}),s.addEventListener("abort",()=>{n(new Error("Upload cancelled"))}),s.open("PUT",r),s.setRequestHeader("Content-Type",e.type),s.send(e)})}async uploadFileWithRetry(e,r={}){let t=r.maxRetries||3,o=null;for(let n=1;n<=t;n++)try{let s=await this.uploadFile(e,r);if(s.success)return s;throw new Error(s.error||"Upload failed")}catch(s){if(o=s instanceof Error?s:new Error("Unknown error"),n===t)break;let a=2**n*1e3;await new Promise(c=>setTimeout(c,a))}return{success:!1,error:o?.message||"Upload failed after retries"}}cancelUpload(){}async makeRequest(e,r){let t={"Content-Type":"application/json","X-Onlive-Organization-Id":this.config.organizationId};return r?.headers&&Object.assign(t,r.headers),p(e,{...r,headers:t})}updateConfig(e){this.config={...this.config,...e}}getConfig(){return{...this.config}}},d=()=>l.getInstance();export{l as UploadService,d as getUploadService};
@@ -0,0 +1,2 @@
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
2
+ "use strict";var p=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var U=(i,e)=>{for(var r in e)p(i,r,{get:e[r],enumerable:!0})},m=(i,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of g(e))!f.call(i,n)&&n!==r&&p(i,n,{get:()=>e[n],enumerable:!(t=u(e,n))||t.enumerable});return i};var h=i=>m(p({},"__esModule",{value:!0}),i);var S={};U(S,{UploadService:()=>l,getUploadService:()=>y});module.exports=h(S);var d=async(i,e)=>{let r=await fetch(i,e);if(!r.ok){let t=await r.json().catch(()=>({}));throw new Error(JSON.stringify({status:r.status,statusText:r.statusText,...t}))}return r&&r.json()};var l=class i{constructor(e){this.config=e}static getInstance(e){if(!i.instance&&e&&(i.instance=new i(e)),!i.instance)throw new Error("UploadService must be initialized with config first");return i.instance}static initialize(e){return i.instance=new i(e),i.instance}async uploadFile(e,r={}){try{let t=await this.getSignedUrl(e,r);return await this.uploadToS3(e,t.signedUrl,r.onProgress),{success:!0,fileId:t.fileId,url:t.url,key:t.key}}catch(t){return console.error("Error uploading file:",t),{success:!1,error:t instanceof Error?t.message:"Unknown error"}}}async getSignedUrl(e,r={}){let t={loadDirection:"up",bucketType:"conversations",filename:e.name,mimeType:e.type,path:r.path||"uploads",description:r.description||""},n=`${this.config.baseUrl}/file-upload/signed-url`;return this.makeRequest(n,{method:"POST",body:JSON.stringify(t)})}async uploadToS3(e,r,t){return new Promise((n,o)=>{let s=new XMLHttpRequest;t&&s.upload.addEventListener("progress",a=>{if(a.lengthComputable){let c=a.loaded/a.total*100;t(c)}}),s.addEventListener("load",()=>{s.status===200?n():o(new Error(`S3 upload failed! status: ${s.status}`))}),s.addEventListener("error",()=>{o(new Error("S3 upload failed"))}),s.addEventListener("abort",()=>{o(new Error("Upload cancelled"))}),s.open("PUT",r),s.setRequestHeader("Content-Type",e.type),s.send(e)})}async uploadFileWithRetry(e,r={}){let t=r.maxRetries||3,n=null;for(let o=1;o<=t;o++)try{let s=await this.uploadFile(e,r);if(s.success)return s;throw new Error(s.error||"Upload failed")}catch(s){if(n=s instanceof Error?s:new Error("Unknown error"),o===t)break;let a=2**o*1e3;await new Promise(c=>setTimeout(c,a))}return{success:!1,error:n?.message||"Upload failed after retries"}}cancelUpload(){}async makeRequest(e,r){let t={"Content-Type":"application/json","X-Onlive-Organization-Id":this.config.organizationId};return r?.headers&&Object.assign(t,r.headers),d(e,{...r,headers:t})}updateConfig(e){this.config={...this.config,...e}}getConfig(){return{...this.config}}},y=()=>l.getInstance();0&&(module.exports={UploadService,getUploadService});
@@ -0,0 +1,81 @@
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
2
+ interface UploadServiceConfig {
3
+ baseUrl: string;
4
+ organizationId: string;
5
+ }
6
+ interface SignedUrlRequest {
7
+ loadDirection: "up" | "down";
8
+ bucketType: "conversations";
9
+ filename: string;
10
+ mimeType: string;
11
+ path?: string;
12
+ description?: string;
13
+ }
14
+ interface SignedUrlResponse {
15
+ signedUrl: string;
16
+ key: string;
17
+ url: string;
18
+ fileId: string;
19
+ }
20
+ interface UploadResult {
21
+ success: boolean;
22
+ fileId?: string;
23
+ url?: string;
24
+ key?: string;
25
+ error?: string;
26
+ }
27
+ type UploadProgressCallback = (progress: number) => void;
28
+ declare class UploadService {
29
+ private static instance;
30
+ private config;
31
+ private constructor();
32
+ static getInstance(config?: UploadServiceConfig): UploadService;
33
+ static initialize(config: UploadServiceConfig): UploadService;
34
+ /**
35
+ * Upload a file using the signed URL approach
36
+ */
37
+ uploadFile(file: File, options?: {
38
+ path?: string;
39
+ description?: string;
40
+ onProgress?: UploadProgressCallback;
41
+ }): Promise<UploadResult>;
42
+ /**
43
+ * Get signed URL for file upload
44
+ */
45
+ getSignedUrl(file: File, options?: {
46
+ path?: string;
47
+ description?: string;
48
+ }): Promise<SignedUrlResponse>;
49
+ /**
50
+ * Upload file to S3 using signed URL
51
+ */
52
+ uploadToS3(file: File, signedUrl: string, onProgress?: UploadProgressCallback): Promise<void>;
53
+ /**
54
+ * Upload file with retry logic
55
+ */
56
+ uploadFileWithRetry(file: File, options?: {
57
+ path?: string;
58
+ description?: string;
59
+ onProgress?: UploadProgressCallback;
60
+ maxRetries?: number;
61
+ }): Promise<UploadResult>;
62
+ /**
63
+ * Cancel ongoing upload
64
+ */
65
+ cancelUpload(): void;
66
+ /**
67
+ * Make HTTP request with proper headers
68
+ */
69
+ private makeRequest;
70
+ /**
71
+ * Update configuration
72
+ */
73
+ updateConfig(config: Partial<UploadServiceConfig>): void;
74
+ /**
75
+ * Get current configuration
76
+ */
77
+ getConfig(): UploadServiceConfig;
78
+ }
79
+ declare const getUploadService: () => UploadService;
80
+
81
+ export { type SignedUrlRequest, type SignedUrlResponse, type UploadProgressCallback, type UploadResult, UploadService, type UploadServiceConfig, getUploadService };
@@ -0,0 +1,81 @@
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
2
+ interface UploadServiceConfig {
3
+ baseUrl: string;
4
+ organizationId: string;
5
+ }
6
+ interface SignedUrlRequest {
7
+ loadDirection: "up" | "down";
8
+ bucketType: "conversations";
9
+ filename: string;
10
+ mimeType: string;
11
+ path?: string;
12
+ description?: string;
13
+ }
14
+ interface SignedUrlResponse {
15
+ signedUrl: string;
16
+ key: string;
17
+ url: string;
18
+ fileId: string;
19
+ }
20
+ interface UploadResult {
21
+ success: boolean;
22
+ fileId?: string;
23
+ url?: string;
24
+ key?: string;
25
+ error?: string;
26
+ }
27
+ type UploadProgressCallback = (progress: number) => void;
28
+ declare class UploadService {
29
+ private static instance;
30
+ private config;
31
+ private constructor();
32
+ static getInstance(config?: UploadServiceConfig): UploadService;
33
+ static initialize(config: UploadServiceConfig): UploadService;
34
+ /**
35
+ * Upload a file using the signed URL approach
36
+ */
37
+ uploadFile(file: File, options?: {
38
+ path?: string;
39
+ description?: string;
40
+ onProgress?: UploadProgressCallback;
41
+ }): Promise<UploadResult>;
42
+ /**
43
+ * Get signed URL for file upload
44
+ */
45
+ getSignedUrl(file: File, options?: {
46
+ path?: string;
47
+ description?: string;
48
+ }): Promise<SignedUrlResponse>;
49
+ /**
50
+ * Upload file to S3 using signed URL
51
+ */
52
+ uploadToS3(file: File, signedUrl: string, onProgress?: UploadProgressCallback): Promise<void>;
53
+ /**
54
+ * Upload file with retry logic
55
+ */
56
+ uploadFileWithRetry(file: File, options?: {
57
+ path?: string;
58
+ description?: string;
59
+ onProgress?: UploadProgressCallback;
60
+ maxRetries?: number;
61
+ }): Promise<UploadResult>;
62
+ /**
63
+ * Cancel ongoing upload
64
+ */
65
+ cancelUpload(): void;
66
+ /**
67
+ * Make HTTP request with proper headers
68
+ */
69
+ private makeRequest;
70
+ /**
71
+ * Update configuration
72
+ */
73
+ updateConfig(config: Partial<UploadServiceConfig>): void;
74
+ /**
75
+ * Get current configuration
76
+ */
77
+ getConfig(): UploadServiceConfig;
78
+ }
79
+ declare const getUploadService: () => UploadService;
80
+
81
+ export { type SignedUrlRequest, type SignedUrlResponse, type UploadProgressCallback, type UploadResult, UploadService, type UploadServiceConfig, getUploadService };
@@ -0,0 +1,2 @@
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
2
+ var p=async(s,e)=>{let r=await fetch(s,e);if(!r.ok){let t=await r.json().catch(()=>({}));throw new Error(JSON.stringify({status:r.status,statusText:r.statusText,...t}))}return r&&r.json()};var c=class s{constructor(e){this.config=e}static getInstance(e){if(!s.instance&&e&&(s.instance=new s(e)),!s.instance)throw new Error("UploadService must be initialized with config first");return s.instance}static initialize(e){return s.instance=new s(e),s.instance}async uploadFile(e,r={}){try{let t=await this.getSignedUrl(e,r);return await this.uploadToS3(e,t.signedUrl,r.onProgress),{success:!0,fileId:t.fileId,url:t.url,key:t.key}}catch(t){return console.error("Error uploading file:",t),{success:!1,error:t instanceof Error?t.message:"Unknown error"}}}async getSignedUrl(e,r={}){let t={loadDirection:"up",bucketType:"conversations",filename:e.name,mimeType:e.type,path:r.path||"uploads",description:r.description||""},o=`${this.config.baseUrl}/file-upload/signed-url`;return this.makeRequest(o,{method:"POST",body:JSON.stringify(t)})}async uploadToS3(e,r,t){return new Promise((o,n)=>{let i=new XMLHttpRequest;t&&i.upload.addEventListener("progress",a=>{if(a.lengthComputable){let l=a.loaded/a.total*100;t(l)}}),i.addEventListener("load",()=>{i.status===200?o():n(new Error(`S3 upload failed! status: ${i.status}`))}),i.addEventListener("error",()=>{n(new Error("S3 upload failed"))}),i.addEventListener("abort",()=>{n(new Error("Upload cancelled"))}),i.open("PUT",r),i.setRequestHeader("Content-Type",e.type),i.send(e)})}async uploadFileWithRetry(e,r={}){let t=r.maxRetries||3,o=null;for(let n=1;n<=t;n++)try{let i=await this.uploadFile(e,r);if(i.success)return i;throw new Error(i.error||"Upload failed")}catch(i){if(o=i instanceof Error?i:new Error("Unknown error"),n===t)break;let a=2**n*1e3;await new Promise(l=>setTimeout(l,a))}return{success:!1,error:o?.message||"Upload failed after retries"}}cancelUpload(){}async makeRequest(e,r){let t={"Content-Type":"application/json","X-Onlive-Organization-Id":this.config.organizationId};return r?.headers&&Object.assign(t,r.headers),p(e,{...r,headers:t})}updateConfig(e){this.config={...this.config,...e}}getConfig(){return{...this.config}}},g=()=>c.getInstance();export{c as UploadService,g as getUploadService};
package/themes/dark.cjs CHANGED
@@ -1,10 +1,13 @@
1
- /*! @onlive.ai/common-121 v0.2.66 | © 2025 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
2
2
  "use strict";var a=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var t=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var s=(l,o)=>{for(var e in o)a(l,e,{get:o[e],enumerable:!0})},u=(l,o,e,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of t(o))!g.call(l,r)&&r!==e&&a(l,r,{get:()=>o[r],enumerable:!(n=c(o,r))||n.enumerable});return l};var p=l=>u(a({},"__esModule",{value:!0}),l);var m={};s(m,{styles:()=>b});module.exports=p(m);var i=require("lit"),b=i.css`
3
+ :root,
3
4
  :host,
4
5
  .ol-theme-dark {
5
6
  -webkit-color-scheme: dark;
6
7
  -moz-color-scheme: dark;
7
8
  color-scheme: dark;
9
+ color: var(--ol-color-neutral-900);
10
+ background-color: var(--ol-color-neutral-0);
8
11
 
9
12
  /*
10
13
  * Color Primitives
package/themes/dark.d.cts CHANGED
@@ -1,3 +1,4 @@
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
1
2
  import * as lit from 'lit';
2
3
 
3
4
  declare const styles: lit.CSSResult;
package/themes/dark.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
1
2
  import * as lit from 'lit';
2
3
 
3
4
  declare const styles: lit.CSSResult;
package/themes/dark.js CHANGED
@@ -1,10 +1,13 @@
1
- /*! @onlive.ai/common-121 v0.2.66 | © 2025 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
2
2
  import{css as o}from"lit";var r=o`
3
+ :root,
3
4
  :host,
4
5
  .ol-theme-dark {
5
6
  -webkit-color-scheme: dark;
6
7
  -moz-color-scheme: dark;
7
8
  color-scheme: dark;
9
+ color: var(--ol-color-neutral-900);
10
+ background-color: var(--ol-color-neutral-0);
8
11
 
9
12
  /*
10
13
  * Color Primitives
package/themes/light.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! @onlive.ai/common-121 v0.2.66 | © 2025 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
2
2
  "use strict";var a=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var t=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var s=(l,o)=>{for(var e in o)a(l,e,{get:o[e],enumerable:!0})},u=(l,o,e,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of t(o))!g.call(l,r)&&r!==e&&a(l,r,{get:()=>o[r],enumerable:!(n=c(o,r))||n.enumerable});return l};var p=l=>u(a({},"__esModule",{value:!0}),l);var m={};s(m,{styles:()=>b});module.exports=p(m);var i=require("lit"),b=i.css`
3
3
  :root,
4
4
  :host,
@@ -1,3 +1,4 @@
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
1
2
  import * as lit from 'lit';
2
3
 
3
4
  declare const styles: lit.CSSResult;
package/themes/light.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
1
2
  import * as lit from 'lit';
2
3
 
3
4
  declare const styles: lit.CSSResult;
package/themes/light.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @onlive.ai/common-121 v0.2.66 | © 2025 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
2
2
  import{css as o}from"lit";var r=o`
3
3
  :root,
4
4
  :host,
@@ -0,0 +1,2 @@
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
2
+ "use strict";var l=Object.defineProperty;var t=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var c=(n,e,o,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of s(e))!a.call(n,i)&&i!==o&&l(n,i,{get:()=>e[i],enumerable:!(r=t(e,i))||r.enumerable});return n};var u=n=>c(l({},"__esModule",{value:!0}),n);var m={};module.exports=u(m);
@@ -0,0 +1,39 @@
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
2
+ /**
3
+ * OnliveManager interface defines the structure for Onlive-specific management functionality
4
+ * that gets attached to the global window object.
5
+ *
6
+ * @property {unknown} [config] - Optional configuration object for Onlive services.
7
+ * @property {Record<string, Record<string, (...args: unknown[]) => unknown>>} services - Registry of available services organized by category and method name.
8
+ */
9
+ interface OnliveManager {
10
+ config?: unknown;
11
+ services: Record<string, Record<string, (...args: unknown[]) => unknown>>;
12
+ }
13
+ /**
14
+ * WindowOnliveContext extends the Window interface with Onlive-specific properties
15
+ * for managing configuration and services in the global context.
16
+ *
17
+ * @property {OnliveManager} onliveManager - Container for Onlive-specific management functionality.
18
+ */
19
+ interface WindowOnliveContext {
20
+ onliveManager: OnliveManager;
21
+ }
22
+ declare global {
23
+ interface Window {
24
+ onliveManager?: OnliveManager;
25
+ }
26
+ interface HTMLElement {
27
+ mozRequestFullScreen?: () => Promise<void>;
28
+ webkitRequestFullscreen?: () => Promise<void>;
29
+ msRequestFullscreen?: () => Promise<void>;
30
+ }
31
+ interface Document {
32
+ fullscreenElement?: Element | null;
33
+ mozCancelFullScreen?: () => Promise<void>;
34
+ webkitExitFullscreen?: () => Promise<void>;
35
+ msExitFullscreen?: () => Promise<void>;
36
+ }
37
+ }
38
+
39
+ export type { OnliveManager, WindowOnliveContext };
@@ -0,0 +1,39 @@
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
2
+ /**
3
+ * OnliveManager interface defines the structure for Onlive-specific management functionality
4
+ * that gets attached to the global window object.
5
+ *
6
+ * @property {unknown} [config] - Optional configuration object for Onlive services.
7
+ * @property {Record<string, Record<string, (...args: unknown[]) => unknown>>} services - Registry of available services organized by category and method name.
8
+ */
9
+ interface OnliveManager {
10
+ config?: unknown;
11
+ services: Record<string, Record<string, (...args: unknown[]) => unknown>>;
12
+ }
13
+ /**
14
+ * WindowOnliveContext extends the Window interface with Onlive-specific properties
15
+ * for managing configuration and services in the global context.
16
+ *
17
+ * @property {OnliveManager} onliveManager - Container for Onlive-specific management functionality.
18
+ */
19
+ interface WindowOnliveContext {
20
+ onliveManager: OnliveManager;
21
+ }
22
+ declare global {
23
+ interface Window {
24
+ onliveManager?: OnliveManager;
25
+ }
26
+ interface HTMLElement {
27
+ mozRequestFullScreen?: () => Promise<void>;
28
+ webkitRequestFullscreen?: () => Promise<void>;
29
+ msRequestFullscreen?: () => Promise<void>;
30
+ }
31
+ interface Document {
32
+ fullscreenElement?: Element | null;
33
+ mozCancelFullScreen?: () => Promise<void>;
34
+ webkitExitFullscreen?: () => Promise<void>;
35
+ msExitFullscreen?: () => Promise<void>;
36
+ }
37
+ }
38
+
39
+ export type { OnliveManager, WindowOnliveContext };
@@ -0,0 +1 @@
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/common-121 v0.2.66 | © 2025 Onlive.ai */
2
- "use strict";var n=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var b=(e,a,l,t)=>{if(a&&typeof a=="object"||typeof a=="function")for(let o of i(a))!s.call(e,o)&&o!==l&&n(e,o,{get:()=>a[o],enumerable:!(t=r(a,o))||t.enumerable});return e};var d=e=>b(n({},"__esModule",{value:!0}),e);var p={};module.exports=d(p);
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
2
+ "use strict";var t=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var b=(e,a,l,n)=>{if(a&&typeof a=="object"||typeof a=="function")for(let o of i(a))!s.call(e,o)&&o!==l&&t(e,o,{get:()=>a[o],enumerable:!(n=r(a,o))||n.enumerable});return e};var d=e=>b(t({},"__esModule",{value:!0}),e);var p={};module.exports=d(p);
@@ -1,21 +1,23 @@
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
1
2
  /**
2
3
  * TrackingOptions defines configuration for event tracking behavior.
3
4
  *
5
+ * @template T - The type of event data that can be tracked.
4
6
  * @property {boolean} [enabled] - Enables or disables tracking functionality.
5
7
  * @property {string} [apiUrl] - Base URL for the tracking API to send events.
6
- * @property {Partial<TEventData>} [data] - Additional data to include in tracked events.
8
+ * @property {Partial<T>} [data] - Additional data to include in tracked events.
7
9
  * @property {boolean} [removeExtraneousValues] - When true, filters out non-essential data from events.
8
10
  * @property {boolean} [allowBotTraffic] - When true, allows tracking of traffic identified as bots.
9
11
  * @property {string[]} [adapters] - List of tracking adapters to use.
10
12
  * @property {Object} [emitters] - Configuration for various event emission methods.
11
- * @property {boolean} [emitters.windowEvent] - Enables emitting events as window events.
12
- * @property {boolean} [emitters.dataLayer] - Enables emitting events to dataLayer.
13
- * @property {boolean} [emitters.windowPostMessage] - Enables emitting events via window.postMessage.
13
+ * @property {boolean} emitters.windowEvent - Enables emitting events as window events.
14
+ * @property {boolean} emitters.dataLayer - Enables emitting events to dataLayer.
15
+ * @property {boolean} emitters.windowPostMessage - Enables emitting events via window.postMessage.
14
16
  */
15
- type TrackingOptions<TEventData> = {
17
+ type TrackingOptions<T> = {
16
18
  enabled?: boolean;
17
19
  apiUrl?: string;
18
- data?: Partial<TEventData>;
20
+ data?: Partial<T>;
19
21
  removeExtraneousValues?: boolean;
20
22
  allowBotTraffic?: boolean;
21
23
  adapters?: string[];
@@ -1,21 +1,23 @@
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
1
2
  /**
2
3
  * TrackingOptions defines configuration for event tracking behavior.
3
4
  *
5
+ * @template T - The type of event data that can be tracked.
4
6
  * @property {boolean} [enabled] - Enables or disables tracking functionality.
5
7
  * @property {string} [apiUrl] - Base URL for the tracking API to send events.
6
- * @property {Partial<TEventData>} [data] - Additional data to include in tracked events.
8
+ * @property {Partial<T>} [data] - Additional data to include in tracked events.
7
9
  * @property {boolean} [removeExtraneousValues] - When true, filters out non-essential data from events.
8
10
  * @property {boolean} [allowBotTraffic] - When true, allows tracking of traffic identified as bots.
9
11
  * @property {string[]} [adapters] - List of tracking adapters to use.
10
12
  * @property {Object} [emitters] - Configuration for various event emission methods.
11
- * @property {boolean} [emitters.windowEvent] - Enables emitting events as window events.
12
- * @property {boolean} [emitters.dataLayer] - Enables emitting events to dataLayer.
13
- * @property {boolean} [emitters.windowPostMessage] - Enables emitting events via window.postMessage.
13
+ * @property {boolean} emitters.windowEvent - Enables emitting events as window events.
14
+ * @property {boolean} emitters.dataLayer - Enables emitting events to dataLayer.
15
+ * @property {boolean} emitters.windowPostMessage - Enables emitting events via window.postMessage.
14
16
  */
15
- type TrackingOptions<TEventData> = {
17
+ type TrackingOptions<T> = {
16
18
  enabled?: boolean;
17
19
  apiUrl?: string;
18
- data?: Partial<TEventData>;
20
+ data?: Partial<T>;
19
21
  removeExtraneousValues?: boolean;
20
22
  allowBotTraffic?: boolean;
21
23
  adapters?: string[];
@@ -1 +1 @@
1
- /*! @onlive.ai/common-121 v0.2.66 | © 2025 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/common-121 v0.2.66 | © 2025 Onlive.ai */
2
- "use strict";var s=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var n=(e,t)=>{for(var o in t)s(e,o,{get:t[o],enumerable:!0})},p=(e,t,o,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of d(t))!i.call(e,a)&&a!==o&&s(e,a,{get:()=>t[a],enumerable:!(l=S(t,a))||l.enumerable});return e};var y=e=>p(s({},"__esModule",{value:!0}),e);var m={};n(m,{adoptStyles:()=>c});module.exports=y(m);var r=require("lit"),c=(e,t)=>{try{(0,r.adoptStyles)(e,t)}catch(o){console.warn("Failed to adopt styles using lit-adoptStyles:",o)}};0&&(module.exports={adoptStyles});
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
2
+ "use strict";var s=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var d=(e,t)=>{for(var o in t)s(e,o,{get:t[o],enumerable:!0})},i=(e,t,o,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of p(t))!y.call(e,a)&&a!==o&&s(e,a,{get:()=>t[a],enumerable:!(l=S(t,a))||l.enumerable});return e};var n=e=>i(s({},"__esModule",{value:!0}),e);var m={};d(m,{adoptStyles:()=>c});module.exports=n(m);var r=require("lit"),c=(e,t)=>{try{(0,r.adoptStyles)(e,t)}catch(o){console.warn("Failed to adopt styles using lit-adoptStyles:",o)}};0&&(module.exports={adoptStyles});
@@ -1,3 +1,4 @@
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
1
2
  import { CSSResultOrNative } from 'lit';
2
3
 
3
4
  declare const adoptStyles: (renderRoot: HTMLElement | DocumentFragment, styles: Array<CSSResultOrNative>) => void;
@@ -1,3 +1,4 @@
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
1
2
  import { CSSResultOrNative } from 'lit';
2
3
 
3
4
  declare const adoptStyles: (renderRoot: HTMLElement | DocumentFragment, styles: Array<CSSResultOrNative>) => void;
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/common-121 v0.2.66 | © 2025 Onlive.ai */
2
- import{adoptStyles as a}from"lit";var r=(t,e)=>{try{a(t,e)}catch(o){console.warn("Failed to adopt styles using lit-adoptStyles:",o)}};export{r as adoptStyles};
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
2
+ import{adoptStyles as a}from"lit";var l=(t,e)=>{try{a(t,e)}catch(o){console.warn("Failed to adopt styles using lit-adoptStyles:",o)}};export{l as adoptStyles};