@onlive.ai/common-121 0.2.45 → 0.2.50

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 (62) hide show
  1. package/README.md +15 -11
  2. package/package.json +3 -3
  3. package/services/audio.service.cjs +1 -1
  4. package/services/audio.service.js +1 -1
  5. package/services/firebase/firebase-api.cjs +1 -1
  6. package/services/firebase/firebase-api.js +1 -1
  7. package/services/firebase/firebase.service.cjs +1 -1
  8. package/services/firebase/firebase.service.js +1 -1
  9. package/services/livekit.service.cjs +1 -1
  10. package/services/livekit.service.js +1 -1
  11. package/services/request.provider.cjs +1 -1
  12. package/services/request.provider.js +1 -1
  13. package/themes/dark.cjs +82 -82
  14. package/themes/dark.js +81 -81
  15. package/themes/light.cjs +87 -87
  16. package/themes/light.js +86 -86
  17. package/types/tracking-options.cjs +2 -2
  18. package/types/tracking-options.d.cts +2 -0
  19. package/types/tracking-options.d.ts +2 -0
  20. package/types/tracking-options.js +1 -1
  21. package/types/window-context.cjs +1 -1
  22. package/types/window-context.js +1 -1
  23. package/utils/adopt-styles.cjs +2 -2
  24. package/utils/adopt-styles.js +2 -2
  25. package/utils/browser-preferences.cjs +1 -1
  26. package/utils/browser-preferences.js +1 -1
  27. package/utils/classify-media.cjs +1 -1
  28. package/utils/classify-media.js +1 -1
  29. package/utils/decorators.cjs +1 -1
  30. package/utils/decorators.js +1 -1
  31. package/utils/detected-lang.cjs +1 -1
  32. package/utils/detected-lang.js +1 -1
  33. package/utils/fullscreen.cjs +1 -1
  34. package/utils/fullscreen.js +1 -1
  35. package/utils/insert-script.cjs +1 -1
  36. package/utils/insert-script.js +1 -1
  37. package/utils/is-map-compatible.cjs +2 -0
  38. package/utils/is-map-compatible.d.cts +9 -0
  39. package/utils/is-map-compatible.d.ts +9 -0
  40. package/utils/is-map-compatible.js +2 -0
  41. package/utils/markdown.cjs +1 -1
  42. package/utils/markdown.js +1 -1
  43. package/utils/merge.cjs +1 -1
  44. package/utils/merge.js +1 -1
  45. package/utils/multiband-track-volume.cjs +1 -1
  46. package/utils/multiband-track-volume.js +1 -1
  47. package/utils/onlive-url-params.cjs +1 -1
  48. package/utils/onlive-url-params.js +1 -1
  49. package/utils/pretty-distance.cjs +1 -1
  50. package/utils/pretty-distance.js +1 -1
  51. package/utils/random-string.cjs +1 -1
  52. package/utils/random-string.js +1 -1
  53. package/utils/resource-type.cjs +1 -1
  54. package/utils/resource-type.js +1 -1
  55. package/utils/safe-html.cjs +1 -1
  56. package/utils/safe-html.js +1 -1
  57. package/utils/sanitize.cjs +1 -1
  58. package/utils/sanitize.js +1 -1
  59. package/utils/spread.cjs +1 -1
  60. package/utils/spread.js +1 -1
  61. package/utils/watch.cjs +1 -1
  62. package/utils/watch.js +1 -1
package/README.md CHANGED
@@ -11,11 +11,13 @@ npm install @onlive.ai/common-121
11
11
  ## 📂 Package Structure
12
12
 
13
13
  ### 🛠️ Services
14
+
14
15
  - **AudioService**: Handles audio notifications and sound management for incoming calls and interactions
15
16
  - **FirebaseService**: Manages real-time Firebase connections for chat requests and agent presence
16
17
  - **LivekitService**: Provides WebRTC functionality for video/audio communication using LiveKit
17
18
 
18
19
  ### 🔧 Utilities
20
+
19
21
  - **adopt-styles**: Utility for adopting CSS styles in web components
20
22
  - **browser-preferences**: Browser preference detection and management
21
23
  - **classify-media**: Media file classification and type detection
@@ -29,11 +31,13 @@ npm install @onlive.ai/common-121
29
31
  - **And more...**
30
32
 
31
33
  ### 🎨 Themes
34
+
32
35
  - **Light Theme**: Default light mode styling
33
36
  - **Dark Theme**: Dark mode color scheme
34
37
  - **Custom Themes**: Brand-specific themes (Audi, Cupra, Hyundai, Magimix, Onlive)
35
38
 
36
39
  ### 📋 Types
40
+
37
41
  - **TrackingOptions**: Configuration types for analytics tracking
38
42
  - **WindowContext**: Global window context definitions
39
43
 
@@ -42,15 +46,15 @@ npm install @onlive.ai/common-121
42
46
  ### Basic Import
43
47
 
44
48
  ```typescript
45
- import { AudioService } from '@onlive.ai/common-121/services/audio.service';
46
- import { markdown } from '@onlive.ai/common-121/utils/markdown';
47
- import { merge } from '@onlive.ai/common-121/utils/merge';
49
+ import { AudioService } from "@onlive.ai/common-121/services/audio.service";
50
+ import { markdown } from "@onlive.ai/common-121/utils/markdown";
51
+ import { merge } from "@onlive.ai/common-121/utils/merge";
48
52
  ```
49
53
 
50
54
  ### Audio Service
51
55
 
52
56
  ```typescript
53
- import { AudioService } from '@onlive.ai/common-121/services/audio.service';
57
+ import { AudioService } from "@onlive.ai/common-121/services/audio.service";
54
58
 
55
59
  const audioService = AudioService.getInstance();
56
60
 
@@ -64,20 +68,20 @@ audioService.stopCurrentSound();
64
68
  ### Firebase Service
65
69
 
66
70
  ```typescript
67
- import { FirebaseService } from '@onlive.ai/common-121/services/firebase/firebase.service';
71
+ import { FirebaseService } from "@onlive.ai/common-121/services/firebase/firebase.service";
68
72
 
69
73
  const firebaseService = new FirebaseService(firebaseConfig, organizationId);
70
74
 
71
75
  // Listen for new requests
72
76
  firebaseService.onNewRequest((id, request) => {
73
- console.log('New request:', request);
77
+ console.log("New request:", request);
74
78
  });
75
79
  ```
76
80
 
77
81
  ### LiveKit Service
78
82
 
79
83
  ```typescript
80
- import { LivekitService } from '@onlive.ai/common-121/services/livekit.service';
84
+ import { LivekitService } from "@onlive.ai/common-121/services/livekit.service";
81
85
 
82
86
  const livekitService = new LivekitService();
83
87
 
@@ -88,12 +92,12 @@ await livekitService.joinRoom(roomId, timezone, language);
88
92
  ### Utilities
89
93
 
90
94
  ```typescript
91
- import { markdown } from '@onlive.ai/common-121/utils/markdown';
92
- import { merge } from '@onlive.ai/common-121/utils/merge';
93
- import { sanitize } from '@onlive.ai/common-121/utils/sanitize';
95
+ import { markdown } from "@onlive.ai/common-121/utils/markdown";
96
+ import { merge } from "@onlive.ai/common-121/utils/merge";
97
+ import { sanitize } from "@onlive.ai/common-121/utils/sanitize";
94
98
 
95
99
  // Parse markdown safely
96
- const htmlContent = markdown('# Hello **World**');
100
+ const htmlContent = markdown("# Hello **World**");
97
101
 
98
102
  // Merge objects deeply
99
103
  const merged = merge(defaultOptions, userOptions);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onlive.ai/common-121",
3
- "version": "0.2.45",
3
+ "version": "0.2.50",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "**/*.js",
@@ -20,14 +20,14 @@
20
20
  "dependencies": {
21
21
  "@formatjs/intl-localematcher": "^0.5.10",
22
22
  "@livekit/components-core": "^0.12.5",
23
- "@onlive.ai/tracker": "^1.0.9",
23
+ "@onlive.ai/tracker": "^1.0.11",
24
24
  "dompurify": "^3.2.5",
25
25
  "firebase": "^11.7.3",
26
26
  "lit": "^3.3.0",
27
- "tsup": "^8.5.0",
28
27
  "livekit-client": "^2.13.0",
29
28
  "marked": "^15.0.11",
30
29
  "rxjs": "^7.8.2",
30
+ "tsup": "^8.5.0",
31
31
  "typescript": "~5.7.3"
32
32
  },
33
33
  "scripts": {
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/common-121 v0.2.45 | © 2025 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.50 | © 2025 Onlive.ai */
2
2
  "use strict";var u=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var p=(t,n,i)=>n in t?u(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i;var g=(t,n)=>{for(var i in n)u(t,i,{get:n[i],enumerable:!0})},h=(t,n,i,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let e of d(n))!l.call(t,e)&&e!==i&&u(t,e,{get:()=>n[e],enumerable:!(o=c(n,e))||o.enumerable});return t};var S=t=>h(u({},"__esModule",{value:!0}),t);var r=(t,n,i)=>p(t,typeof n!="symbol"?n+"":n,i);var v={};g(v,{AudioService:()=>a});module.exports=S(v);var s=class s{constructor(){r(this,"sounds",new Map);r(this,"currentSound",null);this.loadSound("ringing","https://a.slack-edge.com/bv1-13/flitterbug-77334dc.mp3"),this.loadSound("incoming","https://cdn.onlive.site/widget-assets/call_phone_ring_tone.mp3")}static getInstance(){return s.instance||(s.instance=new s),s.instance}loadSound(n,i){let o=new Audio(i);o.preload="auto",this.sounds.set(n,o)}playSound(n,i=!1){this.stopCurrentSound();let o=this.sounds.get(n);o&&(o.loop=i,o.currentTime=0,o.play().catch(e=>console.warn("Error playing sound:",e)),this.currentSound=o)}stopCurrentSound(){this.currentSound&&(this.currentSound.pause(),this.currentSound.currentTime=0,this.currentSound=null)}playRinging(n=!0){this.playSound("ringing",n)}playIncoming(n=!0){this.playSound("incoming",n)}};r(s,"instance");var a=s;0&&(module.exports={AudioService});
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/common-121 v0.2.45 | © 2025 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.50 | © 2025 Onlive.ai */
2
2
  var a=Object.defineProperty;var c=(e,n,t)=>n in e?a(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var s=(e,n,t)=>c(e,typeof n!="symbol"?n+"":n,t);var o=class o{constructor(){s(this,"sounds",new Map);s(this,"currentSound",null);this.loadSound("ringing","https://a.slack-edge.com/bv1-13/flitterbug-77334dc.mp3"),this.loadSound("incoming","https://cdn.onlive.site/widget-assets/call_phone_ring_tone.mp3")}static getInstance(){return o.instance||(o.instance=new o),o.instance}loadSound(n,t){let i=new Audio(t);i.preload="auto",this.sounds.set(n,i)}playSound(n,t=!1){this.stopCurrentSound();let i=this.sounds.get(n);i&&(i.loop=t,i.currentTime=0,i.play().catch(r=>console.warn("Error playing sound:",r)),this.currentSound=i)}stopCurrentSound(){this.currentSound&&(this.currentSound.pause(),this.currentSound.currentTime=0,this.currentSound=null)}playRinging(n=!0){this.playSound("ringing",n)}playIncoming(n=!0){this.playSound("incoming",n)}};s(o,"instance");var u=o;export{u as AudioService};
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/common-121 v0.2.45 | © 2025 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.50 | © 2025 Onlive.ai */
2
2
  "use strict";var a=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var g=(n,e,i)=>e in n?a(n,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[e]=i;var h=(n,e)=>{for(var i in e)a(n,i,{get:e[i],enumerable:!0})},m=(n,e,i,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of c(e))!y.call(n,s)&&s!==i&&a(n,s,{get:()=>e[s],enumerable:!(t=u(e,s))||t.enumerable});return n};var f=n=>m(a({},"__esModule",{value:!0}),n);var o=(n,e,i)=>g(n,typeof e!="symbol"?e+"":e,i);var T={};h(T,{FirebaseApi:()=>l});module.exports=f(T);var d=require("firebase/app"),r=require("firebase/database");var l=class{constructor(e){o(this,"db");o(this,"onChildChanged",(e,i)=>(0,r.onChildChanged)(this.ref(e),t=>i(t.key,t.val(),t)));o(this,"onChildRemoved",(e,i)=>(0,r.onChildRemoved)(this.ref(e),t=>i(t.key,t.val(),t)));let i=(0,d.initializeApp)(e.config);this.db=(0,r.getDatabase)(i)}ref(e){return(0,r.ref)(this.db,e)}async getOnce(e){let i=await(0,r.get)(this.ref(e));return i.exists()?i.val():null}onValue(e,i){return(0,r.onValue)(this.ref(e),t=>i(t.key??"",t.val(),t),t=>console.error("onValue error",t))}onChildAdded(e,i){return(0,r.onChildAdded)(this.ref(e),t=>i(t.key,t.val(),t),t=>console.error("onChildAdded error",t))}write(e,i){return(0,r.set)(this.ref(e),i)}update(e,i){return(0,r.update)(this.ref(e),i)}remove(e){return(0,r.remove)(this.ref(e))}async push(e,i){let t=(0,r.push)(this.ref(e));return await(0,r.set)(t,i),t.key}onDisconnectUpdate(e,i){return(0,r.onDisconnect)(this.ref(e)).update(i)}cancelOnDisconnect(e){return(0,r.onDisconnect)(this.ref(e)).cancel()}transaction(e,i){return(0,r.runTransaction)(this.ref(e),t=>i(t))}query(e,i={}){let t=this.ref(e);return i.orderBy==="child"&&i.childKey&&(t=(0,r.query)(t,(0,r.orderByChild)(i.childKey))),i.orderBy==="key"&&(t=(0,r.query)(t,(0,r.orderByKey)())),i.orderBy==="value"&&(t=(0,r.query)(t,(0,r.orderByValue)())),i.limitFirst!=null&&(t=(0,r.query)(t,(0,r.limitToFirst)(i.limitFirst))),i.limitLast!=null&&(t=(0,r.query)(t,(0,r.limitToLast)(i.limitLast))),t}};0&&(module.exports={FirebaseApi});
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/common-121 v0.2.45 | © 2025 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.50 | © 2025 Onlive.ai */
2
2
  var d=Object.defineProperty;var u=(t,e,r)=>e in t?d(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var s=(t,e,r)=>u(t,typeof e!="symbol"?e+"":e,r);import{initializeApp as c}from"firebase/app";import{query as n,get as y,getDatabase as g,limitToFirst as h,limitToLast as m,onChildAdded as f,onChildChanged as T,onChildRemoved as b,onDisconnect as a,onValue as v,orderByChild as C,orderByKey as k,orderByValue as p,push as D,ref as P,remove as B,runTransaction as R,set as o,update as F}from"firebase/database";var l=class{constructor(e){s(this,"db");s(this,"onChildChanged",(e,r)=>T(this.ref(e),i=>r(i.key,i.val(),i)));s(this,"onChildRemoved",(e,r)=>b(this.ref(e),i=>r(i.key,i.val(),i)));let r=c(e.config);this.db=g(r)}ref(e){return P(this.db,e)}async getOnce(e){let r=await y(this.ref(e));return r.exists()?r.val():null}onValue(e,r){return v(this.ref(e),i=>r(i.key??"",i.val(),i),i=>console.error("onValue error",i))}onChildAdded(e,r){return f(this.ref(e),i=>r(i.key,i.val(),i),i=>console.error("onChildAdded error",i))}write(e,r){return o(this.ref(e),r)}update(e,r){return F(this.ref(e),r)}remove(e){return B(this.ref(e))}async push(e,r){let i=D(this.ref(e));return await o(i,r),i.key}onDisconnectUpdate(e,r){return a(this.ref(e)).update(r)}cancelOnDisconnect(e){return a(this.ref(e)).cancel()}transaction(e,r){return R(this.ref(e),i=>r(i))}query(e,r={}){let i=this.ref(e);return r.orderBy==="child"&&r.childKey&&(i=n(i,C(r.childKey))),r.orderBy==="key"&&(i=n(i,k())),r.orderBy==="value"&&(i=n(i,p())),r.limitFirst!=null&&(i=n(i,h(r.limitFirst))),r.limitLast!=null&&(i=n(i,m(r.limitLast))),i}};export{l as FirebaseApi};
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/common-121 v0.2.45 | © 2025 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.50 | © 2025 Onlive.ai */
2
2
  "use strict";var o=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var y=(n,e,t)=>e in n?o(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var m=(n,e)=>{for(var t in e)o(n,t,{get:e[t],enumerable:!0})},f=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of u(e))!p.call(n,a)&&a!==t&&o(n,a,{get:()=>e[a],enumerable:!(i=h(e,a))||i.enumerable});return n};var P=n=>f(o({},"__esModule",{value:!0}),n);var r=(n,e,t)=>y(n,typeof e!="symbol"?e+"":e,t);var b={};m(b,{FirebaseService:()=>l});module.exports=P(b);var g=require("@onlive.ai/tracker");var d=require("firebase/app"),s=require("firebase/database");var c=class{constructor(e){r(this,"db");r(this,"onChildChanged",(e,t)=>(0,s.onChildChanged)(this.ref(e),i=>t(i.key,i.val(),i)));r(this,"onChildRemoved",(e,t)=>(0,s.onChildRemoved)(this.ref(e),i=>t(i.key,i.val(),i)));let t=(0,d.initializeApp)(e.config);this.db=(0,s.getDatabase)(t)}ref(e){return(0,s.ref)(this.db,e)}async getOnce(e){let t=await(0,s.get)(this.ref(e));return t.exists()?t.val():null}onValue(e,t){return(0,s.onValue)(this.ref(e),i=>t(i.key??"",i.val(),i),i=>console.error("onValue error",i))}onChildAdded(e,t){return(0,s.onChildAdded)(this.ref(e),i=>t(i.key,i.val(),i),i=>console.error("onChildAdded error",i))}write(e,t){return(0,s.set)(this.ref(e),t)}update(e,t){return(0,s.update)(this.ref(e),t)}remove(e){return(0,s.remove)(this.ref(e))}async push(e,t){let i=(0,s.push)(this.ref(e));return await(0,s.set)(i,t),i.key}onDisconnectUpdate(e,t){return(0,s.onDisconnect)(this.ref(e)).update(t)}cancelOnDisconnect(e){return(0,s.onDisconnect)(this.ref(e)).cancel()}transaction(e,t){return(0,s.runTransaction)(this.ref(e),i=>t(i))}query(e,t={}){let i=this.ref(e);return t.orderBy==="child"&&t.childKey&&(i=(0,s.query)(i,(0,s.orderByChild)(t.childKey))),t.orderBy==="key"&&(i=(0,s.query)(i,(0,s.orderByKey)())),t.orderBy==="value"&&(i=(0,s.query)(i,(0,s.orderByValue)())),t.limitFirst!=null&&(i=(0,s.query)(i,(0,s.limitToFirst)(t.limitFirst))),t.limitLast!=null&&(i=(0,s.query)(i,(0,s.limitToLast)(t.limitLast))),i}};var l=class{constructor(e,t){this.firebaseOptions=e;this.orgId=t;r(this,"presencePath");r(this,"callsPath");r(this,"api");this.api=new c({config:this.firebaseOptions}),this.presencePath=`orgs/${this.orgId}/presence`,this.callsPath=`orgs/${this.orgId}/calls`}getPresencePath(e){return`${this.presencePath}/${e}`}async setAgentOnline(e,t){await this.api.write(this.getPresencePath(e),{status:"online",lastSeen:new Date().toISOString(),displayName:t}),await this.api.onDisconnectUpdate(this.getPresencePath(e),{status:"offline",lastSeen:new Date().toISOString()})}onPresenceChange(e){return this.api.onChildChanged(this.presencePath,(t,i)=>e(t,i))}onPresenceAgentChange(e,t){return this.api.onValue(this.getPresencePath(e),(i,a)=>t(i,a))}async createRequest(e){let t=g.Generator.uuid();return await this.api.write(`${this.callsPath}/${t}`,{...e,createdAt:new Date().toISOString(),status:"pending",assignedAgentId:null}),this.api.onDisconnectUpdate(`${this.callsPath}/${t}`,{status:"disconnected"}),t}onNewRequest(e){return this.api.onChildAdded(this.callsPath,(t,i)=>e(t,{...i,id:t}))}onRequestChange(e){return this.api.onChildChanged(this.callsPath,(t,i)=>e(t,{...i,id:t}))}onRequestRemoved(e){return this.api.onChildRemoved(this.callsPath,t=>e(t))}async acceptRequest(e){return await this.api.cancelOnDisconnect(`${this.callsPath}/${e}`),this.api.update(`${this.callsPath}/${e}`,{status:"accepted"})}async cancelOnDisconnect(e){await this.api.cancelOnDisconnect(`${this.callsPath}/${e}`)}async cancelRequest(e){return await this.api.cancelOnDisconnect(`${this.callsPath}/${e}`),this.api.update(`${this.callsPath}/${e}`,{status:"cancelled"})}};0&&(module.exports={FirebaseService});
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/common-121 v0.2.45 | © 2025 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.50 | © 2025 Onlive.ai */
2
2
  var g=Object.defineProperty;var h=(n,e,t)=>e in n?g(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var s=(n,e,t)=>h(n,typeof e!="symbol"?e+"":e,t);import{Generator as O}from"@onlive.ai/tracker";import{initializeApp as u}from"firebase/app";import{query as r,get as p,getDatabase as y,limitToFirst as m,limitToLast as f,onChildAdded as P,onChildChanged as b,onChildRemoved as v,onDisconnect as o,onValue as C,orderByChild as T,orderByKey as R,orderByValue as D,push as $,ref as w,remove as A,runTransaction as q,set as c,update as I}from"firebase/database";var a=class{constructor(e){s(this,"db");s(this,"onChildChanged",(e,t)=>b(this.ref(e),i=>t(i.key,i.val(),i)));s(this,"onChildRemoved",(e,t)=>v(this.ref(e),i=>t(i.key,i.val(),i)));let t=u(e.config);this.db=y(t)}ref(e){return w(this.db,e)}async getOnce(e){let t=await p(this.ref(e));return t.exists()?t.val():null}onValue(e,t){return C(this.ref(e),i=>t(i.key??"",i.val(),i),i=>console.error("onValue error",i))}onChildAdded(e,t){return P(this.ref(e),i=>t(i.key,i.val(),i),i=>console.error("onChildAdded error",i))}write(e,t){return c(this.ref(e),t)}update(e,t){return I(this.ref(e),t)}remove(e){return A(this.ref(e))}async push(e,t){let i=$(this.ref(e));return await c(i,t),i.key}onDisconnectUpdate(e,t){return o(this.ref(e)).update(t)}cancelOnDisconnect(e){return o(this.ref(e)).cancel()}transaction(e,t){return q(this.ref(e),i=>t(i))}query(e,t={}){let i=this.ref(e);return t.orderBy==="child"&&t.childKey&&(i=r(i,T(t.childKey))),t.orderBy==="key"&&(i=r(i,R())),t.orderBy==="value"&&(i=r(i,D())),t.limitFirst!=null&&(i=r(i,m(t.limitFirst))),t.limitLast!=null&&(i=r(i,f(t.limitLast))),i}};var l=class{constructor(e,t){this.firebaseOptions=e;this.orgId=t;s(this,"presencePath");s(this,"callsPath");s(this,"api");this.api=new a({config:this.firebaseOptions}),this.presencePath=`orgs/${this.orgId}/presence`,this.callsPath=`orgs/${this.orgId}/calls`}getPresencePath(e){return`${this.presencePath}/${e}`}async setAgentOnline(e,t){await this.api.write(this.getPresencePath(e),{status:"online",lastSeen:new Date().toISOString(),displayName:t}),await this.api.onDisconnectUpdate(this.getPresencePath(e),{status:"offline",lastSeen:new Date().toISOString()})}onPresenceChange(e){return this.api.onChildChanged(this.presencePath,(t,i)=>e(t,i))}onPresenceAgentChange(e,t){return this.api.onValue(this.getPresencePath(e),(i,d)=>t(i,d))}async createRequest(e){let t=O.uuid();return await this.api.write(`${this.callsPath}/${t}`,{...e,createdAt:new Date().toISOString(),status:"pending",assignedAgentId:null}),this.api.onDisconnectUpdate(`${this.callsPath}/${t}`,{status:"disconnected"}),t}onNewRequest(e){return this.api.onChildAdded(this.callsPath,(t,i)=>e(t,{...i,id:t}))}onRequestChange(e){return this.api.onChildChanged(this.callsPath,(t,i)=>e(t,{...i,id:t}))}onRequestRemoved(e){return this.api.onChildRemoved(this.callsPath,t=>e(t))}async acceptRequest(e){return await this.api.cancelOnDisconnect(`${this.callsPath}/${e}`),this.api.update(`${this.callsPath}/${e}`,{status:"accepted"})}async cancelOnDisconnect(e){await this.api.cancelOnDisconnect(`${this.callsPath}/${e}`)}async cancelRequest(e){return await this.api.cancelOnDisconnect(`${this.callsPath}/${e}`),this.api.update(`${this.callsPath}/${e}`,{status:"cancelled"})}};export{l as FirebaseService};
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/common-121 v0.2.45 | © 2025 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.50 | © 2025 Onlive.ai */
2
2
  "use strict";var a=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var v=Object.prototype.hasOwnProperty;var M=(i,e,t)=>e in i?a(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var O=(i,e)=>{for(var t in e)a(i,t,{get:e[t],enumerable:!0})},T=(i,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of y(e))!v.call(i,o)&&o!==t&&a(i,o,{get:()=>e[o],enumerable:!(r=R(e,o))||r.enumerable});return i};var A=i=>T(a({},"__esModule",{value:!0}),i);var s=(i,e,t)=>M(i,typeof e!="symbol"?e+"":e,t);var C={};O(C,{CHAT_TOPIC:()=>d,LivekitService:()=>l,Room:()=>g,TRANSCRIPTION_TOPIC:()=>m});module.exports=A(C);var c=require("@livekit/components-core"),h=require("livekit-client");var n=async(i,e)=>{let t=await fetch(i,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()};var g=class extends h.Room{constructor(t){super(t);s(this,"id");s(this,"groupId");s(this,"createdAt");s(this,"connectedAt")}},d="lk.chat",m="lk.transcription",l=class{constructor(e){s(this,"listeners",new Set);s(this,"apiUrl");s(this,"version");s(this,"organizationId");s(this,"channelTopic");s(this,"transcriptionTopic");s(this,"setupChat");s(this,"abortControllers");s(this,"authToken",null);s(this,"messagePersistence");s(this,"room");s(this,"processMessage",async(e,t)=>{let r=e?.info?.id,o=t?.identity?this.room.getParticipantByIdentity(t.identity):void 0,p="";for await(let u of e)p+=u,this.emitMessage({id:r,timestamp:Date.now(),message:p,from:o});this.messagePersistence==="client"&&this.persistMessage({roomId:this.room.id,content:p,externalId:e?.info?.id,identity:o?.identity,kind:o?.kind})});s(this,"emitMessage",e=>{for(let t of this.listeners)t([e])});"room"in e?this.room=e.room:(this.apiUrl=e.apiUrl,this.room=this.instanceRoom()),this.organizationId=e.organizationId,this.version=e.version,this.channelTopic=e.channelTopic||d,this.transcriptionTopic=e.transcriptionTopic||m,this.messagePersistence=e.messagePersistence||"disabled",this.abortControllers={register:new AbortController,createRoom:new AbortController,closeRoom:new AbortController,evaluateRoom:new AbortController,persistMessage:new AbortController,sendMessageReport:new AbortController,deleteMessageReport:new AbortController,updateMessageReactions:new AbortController}}initialize(){this.version==="v1"?(this.room.registerTextStreamHandler(this.channelTopic,this.processMessage),this.room.registerTextStreamHandler(this.transcriptionTopic,this.processMessage)):this.setupChat=(0,c.setupChat)(this.room)}async register(e,t,r){let o=await n(`${this.apiUrl}/users/register`,{method:"POST",body:JSON.stringify({externalId:e,secret:t,name:r}),headers:{"X-Onlive-Organization-Id":this.organizationId,"Content-Type":"application/json"},signal:this.abortControllers.register.signal});return this.authToken=o.token,o}async joinRoom(e,t,r){let o=await n(`${this.apiUrl}/rooms/${e}/join`,{method:"POST",body:JSON.stringify({timezone:t,language:r}),headers:{Authorization:`Bearer ${this.authToken}`,"X-Onlive-Organization-Id":this.organizationId,"Content-Type":"application/json"},signal:this.abortControllers.createRoom.signal});return this.room.connect(o.wsURL,o.token),this.initialize(),this.room}instanceRoom(){return this.room||(this.room=new g({adaptiveStream:!0,dynacast:!0})),this.room}async createRoom(e){this.room=this.instanceRoom();let t=await n(`${this.apiUrl}/rooms`,{method:"POST",body:JSON.stringify(e),headers:{Authorization:`Bearer ${this.authToken}`,"X-Onlive-Organization-Id":this.organizationId,"Content-Type":"application/json"},signal:this.abortControllers.createRoom.signal});return this.room.id=t.id,this.room.groupId=t.groupId,this.room.createdAt=t.createdAt,this.room.connectedAt=new Date().toISOString(),this.room.connect(t.wsURL,t.token),this.initialize(),this.room}async evaluateRoom(e){return n(`${this.apiUrl}/rooms/${this.room.id}/evaluate`,{method:"POST",body:JSON.stringify({rating:e.rating,comment:e.comment}),headers:{Authorization:`Bearer ${this.authToken}`,"X-Onlive-Organization-Id":this.organizationId,"Content-Type":"application/json"},signal:this.abortControllers.evaluateRoom.signal})}async closeRoom(){return n(`${this.apiUrl}/rooms/${this.room.id}/close`,{method:"POST",headers:{Authorization:`Bearer ${this.authToken}`,"X-Onlive-Organization-Id":this.organizationId,"Content-Type":"application/json"},signal:this.abortControllers.closeRoom.signal})}async disconnect(){this.room&&(this.room.removeAllListeners(),await this.room.disconnect(),this.closeRoom(),this.room=null)}async sendMessage(e){if(this.version==="v1"){let t=await this.room.localParticipant.sendText(e,{topic:this.channelTopic});this.emitMessage({id:t.id,timestamp:Date.now(),message:e,from:this.room.localParticipant}),this.messagePersistence==="client"&&this.persistMessage({roomId:this.room.id,content:e,externalId:t.id,identity:this.room.localParticipant?.identity,kind:this.room.localParticipant?.kind})}else await this.setupChat.send(e)}async persistMessage(e){return n(`${this.apiUrl}/messages/create`,{method:"POST",body:JSON.stringify(e),headers:{Authorization:`Bearer ${this.authToken}`,"X-Onlive-Organization-Id":this.organizationId,"Content-Type":"application/json"},signal:this.abortControllers.persistMessage.signal})}async getMessages(e){let t=new URLSearchParams;return e.with&&t.append("with",e.with.join(",")),(await n(`${this.apiUrl}/messages/search${t.size?`?${t.toString()}`:""}`,{method:"POST",body:JSON.stringify(e),headers:{Authorization:`Bearer ${this.authToken}`,"X-Onlive-Organization-Id":this.organizationId,"Content-Type":"application/json"},signal:this.abortControllers.createRoom.signal})).items}async sendMessageReport(e){try{return n(`${this.apiUrl}/messages/${e.messageId}/report`,{method:"POST",headers:{Authorization:`Bearer ${this.authToken}`,"X-Onlive-Organization-Id":this.organizationId,"Content-Type":"application/json"},signal:this.abortControllers.sendMessageReport.signal})}catch(t){console.error("Error sending message report:",t)}}async deleteMessageReport(e){try{return n(`${this.apiUrl}/messages/${e.messageId}/report`,{method:"DELETE",headers:{Authorization:`Bearer ${this.authToken}`,"X-Onlive-Organization-Id":this.organizationId,"Content-Type":"application/json"},signal:this.abortControllers.deleteMessageReport.signal})}catch(t){console.error("Error deleting message report:",t)}}async updateMessageReactions(e){try{return n(`${this.apiUrl}/messages/${e.messageId}/reactions`,{method:"PATCH",body:JSON.stringify({add:e.add||[],remove:e.remove||[]}),headers:{Authorization:`Bearer ${this.authToken}`,"X-Onlive-Organization-Id":this.organizationId,"Content-Type":"application/json"},signal:this.abortControllers.updateMessageReactions.signal})}catch(t){console.error("Error updating message reactions:",t)}}subscribeMessages(e){if(this.version==="v1")return this.listeners.add(e),()=>{this.listeners.delete(e)};{let t=this.setupChat.messageObservable.subscribe(e);return()=>t.unsubscribe()}}};0&&(module.exports={CHAT_TOPIC,LivekitService,Room,TRANSCRIPTION_TOPIC});
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/common-121 v0.2.45 | © 2025 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.50 | © 2025 Onlive.ai */
2
2
  var c=Object.defineProperty;var h=(o,e,t)=>e in o?c(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var s=(o,e,t)=>h(o,typeof e!="symbol"?e+"":e,t);import{setupChat as d}from"@livekit/components-core";import{Room as m}from"livekit-client";var i=async(o,e)=>{let t=await fetch(o,e);if(!t.ok){let n=await t.json().catch(()=>({}));throw new Error(JSON.stringify({status:t.status,statusText:t.statusText,...n}))}return t&&t.json()};var g=class extends m{constructor(t){super(t);s(this,"id");s(this,"groupId");s(this,"createdAt");s(this,"connectedAt")}},u="lk.chat",R="lk.transcription",p=class{constructor(e){s(this,"listeners",new Set);s(this,"apiUrl");s(this,"version");s(this,"organizationId");s(this,"channelTopic");s(this,"transcriptionTopic");s(this,"setupChat");s(this,"abortControllers");s(this,"authToken",null);s(this,"messagePersistence");s(this,"room");s(this,"processMessage",async(e,t)=>{let n=e?.info?.id,r=t?.identity?this.room.getParticipantByIdentity(t.identity):void 0,a="";for await(let l of e)a+=l,this.emitMessage({id:n,timestamp:Date.now(),message:a,from:r});this.messagePersistence==="client"&&this.persistMessage({roomId:this.room.id,content:a,externalId:e?.info?.id,identity:r?.identity,kind:r?.kind})});s(this,"emitMessage",e=>{for(let t of this.listeners)t([e])});"room"in e?this.room=e.room:(this.apiUrl=e.apiUrl,this.room=this.instanceRoom()),this.organizationId=e.organizationId,this.version=e.version,this.channelTopic=e.channelTopic||u,this.transcriptionTopic=e.transcriptionTopic||R,this.messagePersistence=e.messagePersistence||"disabled",this.abortControllers={register:new AbortController,createRoom:new AbortController,closeRoom:new AbortController,evaluateRoom:new AbortController,persistMessage:new AbortController,sendMessageReport:new AbortController,deleteMessageReport:new AbortController,updateMessageReactions:new AbortController}}initialize(){this.version==="v1"?(this.room.registerTextStreamHandler(this.channelTopic,this.processMessage),this.room.registerTextStreamHandler(this.transcriptionTopic,this.processMessage)):this.setupChat=d(this.room)}async register(e,t,n){let r=await i(`${this.apiUrl}/users/register`,{method:"POST",body:JSON.stringify({externalId:e,secret:t,name:n}),headers:{"X-Onlive-Organization-Id":this.organizationId,"Content-Type":"application/json"},signal:this.abortControllers.register.signal});return this.authToken=r.token,r}async joinRoom(e,t,n){let r=await i(`${this.apiUrl}/rooms/${e}/join`,{method:"POST",body:JSON.stringify({timezone:t,language:n}),headers:{Authorization:`Bearer ${this.authToken}`,"X-Onlive-Organization-Id":this.organizationId,"Content-Type":"application/json"},signal:this.abortControllers.createRoom.signal});return this.room.connect(r.wsURL,r.token),this.initialize(),this.room}instanceRoom(){return this.room||(this.room=new g({adaptiveStream:!0,dynacast:!0})),this.room}async createRoom(e){this.room=this.instanceRoom();let t=await i(`${this.apiUrl}/rooms`,{method:"POST",body:JSON.stringify(e),headers:{Authorization:`Bearer ${this.authToken}`,"X-Onlive-Organization-Id":this.organizationId,"Content-Type":"application/json"},signal:this.abortControllers.createRoom.signal});return this.room.id=t.id,this.room.groupId=t.groupId,this.room.createdAt=t.createdAt,this.room.connectedAt=new Date().toISOString(),this.room.connect(t.wsURL,t.token),this.initialize(),this.room}async evaluateRoom(e){return i(`${this.apiUrl}/rooms/${this.room.id}/evaluate`,{method:"POST",body:JSON.stringify({rating:e.rating,comment:e.comment}),headers:{Authorization:`Bearer ${this.authToken}`,"X-Onlive-Organization-Id":this.organizationId,"Content-Type":"application/json"},signal:this.abortControllers.evaluateRoom.signal})}async closeRoom(){return i(`${this.apiUrl}/rooms/${this.room.id}/close`,{method:"POST",headers:{Authorization:`Bearer ${this.authToken}`,"X-Onlive-Organization-Id":this.organizationId,"Content-Type":"application/json"},signal:this.abortControllers.closeRoom.signal})}async disconnect(){this.room&&(this.room.removeAllListeners(),await this.room.disconnect(),this.closeRoom(),this.room=null)}async sendMessage(e){if(this.version==="v1"){let t=await this.room.localParticipant.sendText(e,{topic:this.channelTopic});this.emitMessage({id:t.id,timestamp:Date.now(),message:e,from:this.room.localParticipant}),this.messagePersistence==="client"&&this.persistMessage({roomId:this.room.id,content:e,externalId:t.id,identity:this.room.localParticipant?.identity,kind:this.room.localParticipant?.kind})}else await this.setupChat.send(e)}async persistMessage(e){return i(`${this.apiUrl}/messages/create`,{method:"POST",body:JSON.stringify(e),headers:{Authorization:`Bearer ${this.authToken}`,"X-Onlive-Organization-Id":this.organizationId,"Content-Type":"application/json"},signal:this.abortControllers.persistMessage.signal})}async getMessages(e){let t=new URLSearchParams;return e.with&&t.append("with",e.with.join(",")),(await i(`${this.apiUrl}/messages/search${t.size?`?${t.toString()}`:""}`,{method:"POST",body:JSON.stringify(e),headers:{Authorization:`Bearer ${this.authToken}`,"X-Onlive-Organization-Id":this.organizationId,"Content-Type":"application/json"},signal:this.abortControllers.createRoom.signal})).items}async sendMessageReport(e){try{return i(`${this.apiUrl}/messages/${e.messageId}/report`,{method:"POST",headers:{Authorization:`Bearer ${this.authToken}`,"X-Onlive-Organization-Id":this.organizationId,"Content-Type":"application/json"},signal:this.abortControllers.sendMessageReport.signal})}catch(t){console.error("Error sending message report:",t)}}async deleteMessageReport(e){try{return i(`${this.apiUrl}/messages/${e.messageId}/report`,{method:"DELETE",headers:{Authorization:`Bearer ${this.authToken}`,"X-Onlive-Organization-Id":this.organizationId,"Content-Type":"application/json"},signal:this.abortControllers.deleteMessageReport.signal})}catch(t){console.error("Error deleting message report:",t)}}async updateMessageReactions(e){try{return i(`${this.apiUrl}/messages/${e.messageId}/reactions`,{method:"PATCH",body:JSON.stringify({add:e.add||[],remove:e.remove||[]}),headers:{Authorization:`Bearer ${this.authToken}`,"X-Onlive-Organization-Id":this.organizationId,"Content-Type":"application/json"},signal:this.abortControllers.updateMessageReactions.signal})}catch(t){console.error("Error updating message reactions:",t)}}subscribeMessages(e){if(this.version==="v1")return this.listeners.add(e),()=>{this.listeners.delete(e)};{let t=this.setupChat.messageObservable.subscribe(e);return()=>t.unsubscribe()}}};export{u as CHAT_TOPIC,p as LivekitService,g as Room,R as TRANSCRIPTION_TOPIC};
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/common-121 v0.2.45 | © 2025 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.50 | © 2025 Onlive.ai */
2
2
  "use strict";var o=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var u=(t,s)=>{for(var e in s)o(t,e,{get:s[e],enumerable:!0})},T=(t,s,e,n)=>{if(s&&typeof s=="object"||typeof s=="function")for(let r of i(s))!c.call(t,r)&&r!==e&&o(t,r,{get:()=>s[r],enumerable:!(n=a(s,r))||n.enumerable});return t};var p=t=>T(o({},"__esModule",{value:!0}),t);var w={};u(w,{removeTrailingSlash:()=>h,request:()=>f});module.exports=p(w);var f=async(t,s)=>{let e=await fetch(t,s);if(!e.ok){let n=await e.json().catch(()=>({}));throw new Error(JSON.stringify({status:e.status,statusText:e.statusText,...n}))}return e&&e.json()},h=t=>t.replace(/\/$/,"");0&&(module.exports={removeTrailingSlash,request});
@@ -1,2 +1,2 @@
1
- /*! @onlive.ai/common-121 v0.2.45 | © 2025 Onlive.ai */
1
+ /*! @onlive.ai/common-121 v0.2.50 | © 2025 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};
package/themes/dark.cjs CHANGED
@@ -1,5 +1,5 @@
1
- /*! @onlive.ai/common-121 v0.2.45 | © 2025 Onlive.ai */
2
- "use strict";var a=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var t=Object.prototype.hasOwnProperty;var g=(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 c(o))!t.call(l,r)&&r!==e&&a(l,r,{get:()=>o[r],enumerable:!(n=s(o,r))||n.enumerable});return l};var p=l=>u(a({},"__esModule",{value:!0}),l);var d={};g(d,{styles:()=>m});module.exports=p(d);var i=require("lit"),m=i.css`
1
+ /*! @onlive.ai/common-121 v0.2.50 | © 2025 Onlive.ai */
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
  :host,
4
4
  .ol-theme-dark {
5
5
  -webkit-color-scheme: dark;
@@ -11,95 +11,95 @@
11
11
  */
12
12
 
13
13
  /* Gray */
14
- --ol-color-gray-50: hsl(240 5.1% 15%);
15
- --ol-color-gray-100: hsl(240 5.7% 18.2%);
16
- --ol-color-gray-200: hsl(240 4.6% 22%);
17
- --ol-color-gray-300: hsl(240 5% 27.6%);
18
- --ol-color-gray-400: hsl(240 5% 35.5%);
19
- --ol-color-gray-500: hsl(240 3.7% 44%);
20
- --ol-color-gray-600: hsl(240 5.3% 58%);
21
- --ol-color-gray-700: hsl(240 5.6% 73%);
22
- --ol-color-gray-800: hsl(240 7.3% 84%);
23
- --ol-color-gray-900: hsl(240 9.1% 91.8%);
24
- --ol-color-gray-950: hsl(0 0% 95%);
14
+ --ol-color-gray-50: rgb(34, 36, 40);
15
+ --ol-color-gray-100: rgb(41, 44, 49);
16
+ --ol-color-gray-200: rgb(51, 54, 58);
17
+ --ol-color-gray-300: rgb(64, 68, 73);
18
+ --ol-color-gray-400: rgb(82, 87, 93);
19
+ --ol-color-gray-500: rgb(103, 109, 116);
20
+ --ol-color-gray-600: rgb(136, 143, 151);
21
+ --ol-color-gray-700: rgb(172, 180, 190);
22
+ --ol-color-gray-800: rgb(207, 214, 222);
23
+ --ol-color-gray-900: rgb(227, 232, 238);
24
+ --ol-color-gray-950: rgb(242, 242, 242);
25
25
 
26
26
  /* Red */
27
- --ol-color-red-50: hsl(0 56% 23.9%);
28
- --ol-color-red-100: hsl(0.6 60% 33.9%);
29
- --ol-color-red-200: hsl(0.9 67.2% 37.1%);
30
- --ol-color-red-300: hsl(1.1 71.3% 43.7%);
31
- --ol-color-red-400: hsl(1 76% 52.5%);
32
- --ol-color-red-500: hsl(0.7 89.6% 57.2%);
33
- --ol-color-red-600: hsl(0 98.6% 67.9%);
34
- --ol-color-red-700: hsl(0 100% 72.3%);
35
- --ol-color-red-800: hsl(0 100% 85.6%);
36
- --ol-color-red-900: hsl(0 100% 90.3%);
37
- --ol-color-red-950: hsl(0 100% 95.9%);
27
+ --ol-color-red-50: rgb(102, 27, 27);
28
+ --ol-color-red-100: rgb(145, 37, 37);
29
+ --ol-color-red-200: rgb(162, 39, 39);
30
+ --ol-color-red-300: rgb(193, 48, 48);
31
+ --ol-color-red-400: rgb(229, 69, 69);
32
+ --ol-color-red-500: rgb(252, 92, 92);
33
+ --ol-color-red-600: rgb(254, 126, 126);
34
+ --ol-color-red-700: rgb(255, 147, 147);
35
+ --ol-color-red-800: rgb(255, 199, 199);
36
+ --ol-color-red-900: rgb(255, 217, 217);
37
+ --ol-color-red-950: rgb(255, 240, 240);
38
38
 
39
39
  /* Orange */
40
- --ol-color-orange-50: hsl(15 64.2% 23.3%);
41
- --ol-color-orange-100: hsl(15.1 70.9% 31.1%);
42
- --ol-color-orange-200: hsl(15.3 75.7% 35.5%);
43
- --ol-color-orange-300: hsl(17.1 83.5% 42.7%);
44
- --ol-color-orange-400: hsl(20.1 88% 50.8%);
45
- --ol-color-orange-500: hsl(24.3 100% 50.5%);
46
- --ol-color-orange-600: hsl(27.2 100% 57.7%);
47
- --ol-color-orange-700: hsl(31.3 100% 68.7%);
48
- --ol-color-orange-800: hsl(33.8 100% 79.3%);
49
- --ol-color-orange-900: hsl(38.9 100% 87.7%);
50
- --ol-color-orange-950: hsl(46.2 100% 95%);
40
+ --ol-color-orange-50: rgb(101, 49, 27);
41
+ --ol-color-orange-100: rgb(134, 66, 36);
42
+ --ol-color-orange-200: rgb(155, 76, 42);
43
+ --ol-color-orange-300: rgb(198, 98, 52);
44
+ --ol-color-orange-400: rgb(245, 125, 63);
45
+ --ol-color-orange-500: rgb(255, 149, 0);
46
+ --ol-color-orange-600: rgb(255, 166, 43);
47
+ --ol-color-orange-700: rgb(255, 192, 99);
48
+ --ol-color-orange-800: rgb(255, 216, 155);
49
+ --ol-color-orange-900: rgb(255, 235, 201);
50
+ --ol-color-orange-950: rgb(255, 249, 237);
51
51
 
52
52
  /* Amber */
53
- --ol-color-amber-50: hsl(21.9 66.3% 21.1%);
54
- --ol-color-amber-100: hsl(21.5 73.6% 29.7%);
55
- --ol-color-amber-200: hsl(22.3 77.6% 33.3%);
56
- --ol-color-amber-300: hsl(25.4 84.2% 39.6%);
57
- --ol-color-amber-400: hsl(31.4 87.4% 46.7%);
58
- --ol-color-amber-500: hsl(37 96.6% 48.3%);
59
- --ol-color-amber-600: hsl(43.3 100% 53.4%);
60
- --ol-color-amber-700: hsl(46.5 100% 61.1%);
61
- --ol-color-amber-800: hsl(49.3 100% 73%);
62
- --ol-color-amber-900: hsl(51.8 100% 85%);
63
- --ol-color-amber-950: hsl(60 100% 94.6%);
53
+ --ol-color-amber-50: rgb(92, 69, 36);
54
+ --ol-color-amber-100: rgb(129, 96, 50);
55
+ --ol-color-amber-200: rgb(147, 109, 56);
56
+ --ol-color-amber-300: rgb(184, 135, 69);
57
+ --ol-color-amber-400: rgb(227, 166, 84);
58
+ --ol-color-amber-500: rgb(254, 191, 25);
59
+ --ol-color-amber-600: rgb(255, 202, 41);
60
+ --ol-color-amber-700: rgb(255, 218, 85);
61
+ --ol-color-amber-800: rgb(255, 235, 145);
62
+ --ol-color-amber-900: rgb(255, 247, 191);
63
+ --ol-color-amber-950: rgb(255, 253, 235);
64
64
 
65
65
  /* Yellow */
66
- --ol-color-yellow-50: hsl(32.5 60% 18.2%);
67
- --ol-color-yellow-100: hsl(28.1 68.6% 29%);
68
- --ol-color-yellow-200: hsl(31.3 75.8% 30.8%);
69
- --ol-color-yellow-300: hsl(34.7 84.4% 35.3%);
70
- --ol-color-yellow-400: hsl(40.1 87.3% 43.3%);
71
- --ol-color-yellow-500: hsl(44.7 88% 46%);
72
- --ol-color-yellow-600: hsl(47.7 100% 50.9%);
73
- --ol-color-yellow-700: hsl(51.3 100% 59.9%);
74
- --ol-color-yellow-800: hsl(54.6 100% 73%);
75
- --ol-color-yellow-900: hsl(58.9 100% 84.2%);
76
- --ol-color-yellow-950: hsl(60 100% 94%);
66
+ --ol-color-yellow-50: rgb(80, 69, 28);
67
+ --ol-color-yellow-100: rgb(127, 108, 44);
68
+ --ol-color-yellow-200: rgb(142, 122, 49);
69
+ --ol-color-yellow-300: rgb(174, 151, 60);
70
+ --ol-color-yellow-400: rgb(217, 189, 78);
71
+ --ol-color-yellow-500: rgb(234, 199, 65);
72
+ --ol-color-yellow-600: rgb(255, 223, 0);
73
+ --ol-color-yellow-700: rgb(255, 235, 59);
74
+ --ol-color-yellow-800: rgb(255, 245, 145);
75
+ --ol-color-yellow-900: rgb(255, 251, 194);
76
+ --ol-color-yellow-950: rgb(255, 254, 235);
77
77
 
78
78
  /* Green */
79
- --ol-color-green-50: hsl(144.3 53.6% 16%);
80
- --ol-color-green-100: hsl(143.2 55.4% 23.5%);
81
- --ol-color-green-200: hsl(141.5 58.2% 26.3%);
82
- --ol-color-green-300: hsl(140.8 64.2% 31.8%);
83
- --ol-color-green-400: hsl(140.3 68% 39.2%);
84
- --ol-color-green-500: hsl(141.1 64.9% 43%);
85
- --ol-color-green-600: hsl(141.6 72.4% 55.2%);
86
- --ol-color-green-700: hsl(141.7 82.7% 70.1%);
87
- --ol-color-green-800: hsl(141 90.9% 82.1%);
88
- --ol-color-green-900: hsl(142 100% 89.1%);
89
- --ol-color-green-950: hsl(144 100% 95.5%);
79
+ --ol-color-green-50: rgb(26, 69, 43);
80
+ --ol-color-green-100: rgb(38, 101, 62);
81
+ --ol-color-green-200: rgb(43, 115, 70);
82
+ --ol-color-green-300: rgb(52, 140, 86);
83
+ --ol-color-green-400: rgb(64, 174, 107);
84
+ --ol-color-green-500: rgb(72, 187, 120);
85
+ --ol-color-green-600: rgb(104, 211, 145);
86
+ --ol-color-green-700: rgb(152, 233, 186);
87
+ --ol-color-green-800: rgb(190, 245, 215);
88
+ --ol-color-green-900: rgb(220, 252, 231);
89
+ --ol-color-green-950: rgb(240, 253, 244);
90
90
 
91
91
  /* Blue */
92
- --ol-color-blue-50: hsl(227.1 49.5% 22.7%);
93
- --ol-color-blue-100: hsl(225.8 58.9% 36.8%);
94
- --ol-color-blue-200: hsl(227.7 64.4% 42.9%);
95
- --ol-color-blue-300: hsl(226.1 72.7% 51.2%);
96
- --ol-color-blue-400: hsl(222.6 86.5% 56.3%);
97
- --ol-color-blue-500: hsl(217.8 95.8% 57.4%);
98
- --ol-color-blue-600: hsl(213.3 100% 65%);
99
- --ol-color-blue-700: hsl(210.9 100% 74.8%);
100
- --ol-color-blue-800: hsl(211.5 100% 83.4%);
101
- --ol-color-blue-900: hsl(211 100% 88.9%);
102
- --ol-color-blue-950: hsl(201.8 100% 95.3%);
92
+ --ol-color-blue-50: rgb(36, 52, 102);
93
+ --ol-color-blue-100: rgb(61, 84, 165);
94
+ --ol-color-blue-200: rgb(72, 100, 192);
95
+ --ol-color-blue-300: rgb(88, 125, 227);
96
+ --ol-color-blue-400: rgb(96, 150, 251);
97
+ --ol-color-blue-500: rgb(99, 163, 253);
98
+ --ol-color-blue-600: rgb(129, 183, 255);
99
+ --ol-color-blue-700: rgb(171, 208, 255);
100
+ --ol-color-blue-800: rgb(202, 226, 255);
101
+ --ol-color-blue-900: rgb(219, 234, 255);
102
+ --ol-color-blue-950: rgb(239, 246, 255);
103
103
 
104
104
  /*
105
105
  * Theme Tokens
@@ -171,8 +171,8 @@
171
171
  --ol-color-neutral-950: var(--ol-color-gray-950);
172
172
 
173
173
  /* Neutral one-offs */
174
- --ol-color-neutral-0: hsl(240, 5.9%, 11%);
175
- --ol-color-neutral-1000: hsl(0, 0%, 100%);
174
+ --ol-color-neutral-0: rgb(26, 27, 30);
175
+ --ol-color-neutral-1000: rgb(255, 255, 255);
176
176
 
177
177
  /*
178
178
  * Border radii
@@ -367,7 +367,7 @@
367
367
  * Overlays
368
368
  */
369
369
 
370
- --ol-overlay-background-color: hsl(0 0% 0% / 43%);
370
+ --ol-overlay-background-color: rgb(0, 0, 0, 0.43);
371
371
 
372
372
  /*
373
373
  * Panels