obi-sdk 0.4.2 → 0.4.3
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-ad91b91a.js} +23 -8
- package/dist/modular/chunks/{obi-widget-2ba751b3.js.map → obi-widget-ad91b91a.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 +5910 -153
- package/dist/obi-sdk.es.js.map +1 -1
- package/dist/obi-sdk.standalone.iife.js +51 -38
- package/dist/obi-sdk.standalone.iife.js.map +1 -1
- package/dist/obi-sdk.umd.js +45 -32
- package/dist/obi-sdk.umd.js.map +1 -1
- package/dist/sentry.d.ts +1 -0
- package/package.json +5 -3
|
@@ -10272,7 +10272,6 @@ NavigationBar.styles = i$4`
|
|
|
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>
|
|
@@ -11805,7 +11807,6 @@ ObiWidget.styles = i$4`
|
|
|
11805
11807
|
:host([position="bottom-center"]) {
|
|
11806
11808
|
bottom: 80px;
|
|
11807
11809
|
left: 50%;
|
|
11808
|
-
transform: translateX(-50%);
|
|
11809
11810
|
}
|
|
11810
11811
|
|
|
11811
11812
|
:host([position="top-right"]) {
|
|
@@ -11821,19 +11822,16 @@ ObiWidget.styles = i$4`
|
|
|
11821
11822
|
:host([position="top-center"]) {
|
|
11822
11823
|
top: 20px;
|
|
11823
11824
|
left: 50%;
|
|
11824
|
-
transform: translateX(-50%);
|
|
11825
11825
|
}
|
|
11826
11826
|
|
|
11827
11827
|
:host([position="middle-left"]) {
|
|
11828
11828
|
top: 50%;
|
|
11829
11829
|
left: 20px;
|
|
11830
|
-
transform: translateY(-50%);
|
|
11831
11830
|
}
|
|
11832
11831
|
|
|
11833
11832
|
:host([position="middle-right"]) {
|
|
11834
11833
|
top: 50%;
|
|
11835
11834
|
right: 80px;
|
|
11836
|
-
transform: translateY(-50%);
|
|
11837
11835
|
}
|
|
11838
11836
|
|
|
11839
11837
|
/* Adjust position when in researching state to accommodate wider container */
|
|
@@ -11863,6 +11861,23 @@ ObiWidget.styles = i$4`
|
|
|
11863
11861
|
transition: all 0.2s ease-out;
|
|
11864
11862
|
}
|
|
11865
11863
|
|
|
11864
|
+
/* Apply transforms to widget-container based on host position */
|
|
11865
|
+
:host([position="bottom-center"]) .widget-container {
|
|
11866
|
+
transform: translateX(-50%);
|
|
11867
|
+
}
|
|
11868
|
+
|
|
11869
|
+
:host([position="top-center"]) .widget-container {
|
|
11870
|
+
transform: translateX(-50%);
|
|
11871
|
+
}
|
|
11872
|
+
|
|
11873
|
+
:host([position="middle-left"]) .widget-container {
|
|
11874
|
+
transform: translateY(-50%);
|
|
11875
|
+
}
|
|
11876
|
+
|
|
11877
|
+
:host([position="middle-right"]) .widget-container {
|
|
11878
|
+
transform: translateY(-50%);
|
|
11879
|
+
}
|
|
11880
|
+
|
|
11866
11881
|
.widget-container.user-speaking {
|
|
11867
11882
|
background:
|
|
11868
11883
|
linear-gradient(0deg, var(--obi-secondary), var(--obi-secondary)),
|
|
@@ -11968,4 +11983,4 @@ export {
|
|
|
11968
11983
|
searchingLoader as s,
|
|
11969
11984
|
x
|
|
11970
11985
|
};
|
|
11971
|
-
//# sourceMappingURL=obi-widget-
|
|
11986
|
+
//# sourceMappingURL=obi-widget-ad91b91a.js.map
|