obi-sdk 0.4.2 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/modular/chunks/{obi-widget-2ba751b3.js → obi-widget-f540f7e0.js} +27 -10
- package/dist/modular/chunks/{obi-widget-2ba751b3.js.map → obi-widget-f540f7e0.js.map} +1 -1
- package/dist/modular/index.js +5731 -2
- package/dist/modular/index.js.map +1 -1
- package/dist/modular/ui.js +10 -10
- package/dist/obi-sdk.es.js +5913 -154
- package/dist/obi-sdk.es.js.map +1 -1
- package/dist/obi-sdk.standalone.iife.js +55 -40
- package/dist/obi-sdk.standalone.iife.js.map +1 -1
- package/dist/obi-sdk.umd.js +49 -34
- package/dist/obi-sdk.umd.js.map +1 -1
- package/dist/sentry.d.ts +1 -0
- package/package.json +3 -1
|
@@ -10266,13 +10266,12 @@ NavigationBar.styles = i$4`
|
|
|
10266
10266
|
:host {
|
|
10267
10267
|
display: flex;
|
|
10268
10268
|
position: absolute;
|
|
10269
|
-
z-index:
|
|
10269
|
+
z-index: 2147483647;
|
|
10270
10270
|
width: 40px;
|
|
10271
10271
|
transition: all 0.2s ease-in-out;
|
|
10272
10272
|
opacity: 1;
|
|
10273
10273
|
transform: scale(1);
|
|
10274
10274
|
pointer-events: auto;
|
|
10275
|
-
background-color: #fff;
|
|
10276
10275
|
}
|
|
10277
10276
|
|
|
10278
10277
|
:host([data-direction="up"]) {
|
|
@@ -11281,6 +11280,7 @@ SessionStartModal.styles = i$4`
|
|
|
11281
11280
|
border-radius: var(--border-radius-default, 6px);
|
|
11282
11281
|
background: var(--base-primary, #18181b);
|
|
11283
11282
|
color: white;
|
|
11283
|
+
margin-top: 32px;
|
|
11284
11284
|
}
|
|
11285
11285
|
|
|
11286
11286
|
.button-primary:hover {
|
|
@@ -11734,6 +11734,8 @@ class ObiWidget extends i$1 {
|
|
|
11734
11734
|
const isResearching = this.state === SDKState.RESEARCHING;
|
|
11735
11735
|
const isUserSpeaking = this.state === SDKState.USER_SPEAKING;
|
|
11736
11736
|
const isRotated = this.state !== SDKState.READY || this.navVisible;
|
|
11737
|
+
const shouldShowNav = this.state !== SDKState.READY || this.navVisible;
|
|
11738
|
+
const navDirection = this.position.includes("top") ? "down" : "up";
|
|
11737
11739
|
const containerClasses = [
|
|
11738
11740
|
"widget-container",
|
|
11739
11741
|
isRotated ? "rotated" : "",
|
|
@@ -11748,11 +11750,11 @@ class ObiWidget extends i$1 {
|
|
|
11748
11750
|
@mouseleave=${this.handleMouseLeave}
|
|
11749
11751
|
>
|
|
11750
11752
|
${stateRender}
|
|
11751
|
-
${
|
|
11753
|
+
${shouldShowNav && this.state !== SDKState.RESEARCHING ? x`
|
|
11752
11754
|
<obi-navigation-bar
|
|
11753
11755
|
?isActive=${this.state !== SDKState.READY}
|
|
11754
11756
|
.position=${this.position}
|
|
11755
|
-
data-direction="
|
|
11757
|
+
data-direction="${navDirection}"
|
|
11756
11758
|
.currentState=${this.state}
|
|
11757
11759
|
.onItemSelect=${this.handleItemSelect.bind(this)}
|
|
11758
11760
|
></obi-navigation-bar>
|
|
@@ -11780,8 +11782,9 @@ ObiWidget.styles = i$4`
|
|
|
11780
11782
|
:host {
|
|
11781
11783
|
display: block;
|
|
11782
11784
|
position: fixed;
|
|
11783
|
-
z-index:
|
|
11785
|
+
z-index: 2147483600;
|
|
11784
11786
|
font-family: "Inter", sans-serif;
|
|
11787
|
+
pointer-events: auto;
|
|
11785
11788
|
--obi-primary: #9500ff;
|
|
11786
11789
|
--obi-secondary: #c4b5fd;
|
|
11787
11790
|
--obi-danger: #ef4444;
|
|
@@ -11805,7 +11808,6 @@ ObiWidget.styles = i$4`
|
|
|
11805
11808
|
:host([position="bottom-center"]) {
|
|
11806
11809
|
bottom: 80px;
|
|
11807
11810
|
left: 50%;
|
|
11808
|
-
transform: translateX(-50%);
|
|
11809
11811
|
}
|
|
11810
11812
|
|
|
11811
11813
|
:host([position="top-right"]) {
|
|
@@ -11821,19 +11823,16 @@ ObiWidget.styles = i$4`
|
|
|
11821
11823
|
:host([position="top-center"]) {
|
|
11822
11824
|
top: 20px;
|
|
11823
11825
|
left: 50%;
|
|
11824
|
-
transform: translateX(-50%);
|
|
11825
11826
|
}
|
|
11826
11827
|
|
|
11827
11828
|
:host([position="middle-left"]) {
|
|
11828
11829
|
top: 50%;
|
|
11829
11830
|
left: 20px;
|
|
11830
|
-
transform: translateY(-50%);
|
|
11831
11831
|
}
|
|
11832
11832
|
|
|
11833
11833
|
:host([position="middle-right"]) {
|
|
11834
11834
|
top: 50%;
|
|
11835
11835
|
right: 80px;
|
|
11836
|
-
transform: translateY(-50%);
|
|
11837
11836
|
}
|
|
11838
11837
|
|
|
11839
11838
|
/* Adjust position when in researching state to accommodate wider container */
|
|
@@ -11861,6 +11860,24 @@ ObiWidget.styles = i$4`
|
|
|
11861
11860
|
justify-content: center;
|
|
11862
11861
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
11863
11862
|
transition: all 0.2s ease-out;
|
|
11863
|
+
pointer-events: auto;
|
|
11864
|
+
}
|
|
11865
|
+
|
|
11866
|
+
/* Apply transforms to widget-container based on host position */
|
|
11867
|
+
:host([position="bottom-center"]) .widget-container {
|
|
11868
|
+
transform: translateX(-50%);
|
|
11869
|
+
}
|
|
11870
|
+
|
|
11871
|
+
:host([position="top-center"]) .widget-container {
|
|
11872
|
+
transform: translateX(-50%);
|
|
11873
|
+
}
|
|
11874
|
+
|
|
11875
|
+
:host([position="middle-left"]) .widget-container {
|
|
11876
|
+
transform: translateY(-50%);
|
|
11877
|
+
}
|
|
11878
|
+
|
|
11879
|
+
:host([position="middle-right"]) .widget-container {
|
|
11880
|
+
transform: translateY(-50%);
|
|
11864
11881
|
}
|
|
11865
11882
|
|
|
11866
11883
|
.widget-container.user-speaking {
|
|
@@ -11968,4 +11985,4 @@ export {
|
|
|
11968
11985
|
searchingLoader as s,
|
|
11969
11986
|
x
|
|
11970
11987
|
};
|
|
11971
|
-
//# sourceMappingURL=obi-widget-
|
|
11988
|
+
//# sourceMappingURL=obi-widget-f540f7e0.js.map
|