@xapp/stentor-chat-widget 1.95.0 → 1.95.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ActionBar.d.ts +16 -2
- package/lib/ActionBar.js.map +1 -1
- package/package.json +3 -3
package/lib/ActionBar.d.ts
CHANGED
|
@@ -249,8 +249,22 @@ export interface ActionBarConfig {
|
|
|
249
249
|
*/
|
|
250
250
|
readonly position?: ActionBarPosition;
|
|
251
251
|
/**
|
|
252
|
-
* Screen width breakpoint (in pixels) below which mobile layout is applied.
|
|
253
|
-
*
|
|
252
|
+
* Screen width breakpoint (in pixels) at or below which the mobile layout is applied.
|
|
253
|
+
*
|
|
254
|
+
* Leave unset. By default the bar matches the same media query the widget's stylesheets
|
|
255
|
+
* use - `(max-width: 640px), (max-height: 480px) and (pointer: coarse)`, the `mobile()`
|
|
256
|
+
* mixin in `_mixins.scss` - so the JavaScript and the CSS always agree on what counts as
|
|
257
|
+
* a phone.
|
|
258
|
+
*
|
|
259
|
+
* Setting this replaces that query with a plain width comparison, which **cannot** move
|
|
260
|
+
* the stylesheets. The two then disagree between your value and the CSS breakpoint: the
|
|
261
|
+
* bar takes one layout while everything around it is styled for the other. It also
|
|
262
|
+
* drops the landscape-phone arm, so a phone on its side (740-863px wide) reverts to the
|
|
263
|
+
* desktop layout.
|
|
264
|
+
*
|
|
265
|
+
* `0` is honoured and means "never mobile".
|
|
266
|
+
*
|
|
267
|
+
* @see XappMedia/chat-widget#1594
|
|
254
268
|
*/
|
|
255
269
|
readonly mobileBreakpoint?: number;
|
|
256
270
|
/**
|
package/lib/ActionBar.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionBar.js","sourceRoot":"","sources":["../src/ActionBar.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"ActionBar.js","sourceRoot":"","sources":["../src/ActionBar.ts"],"names":[],"mappings":";;AA6TA,sDAEC;AAKD,sDAEC;AAKD,8DAEC;AAKD,wDAEC;AAKD,oDAEC;AAKD,wDAEC;AAKD,sDAEC;AAKD,4DAEC;AAtDD;;GAEG;AACH,SAAgB,qBAAqB,CAAC,MAAuB;IACzD,OAAO,MAAM,CAAC,IAAI,KAAK,MAAM,CAAC;AAClC,CAAC;AAED;;GAEG;AACH,SAAgB,qBAAqB,CAAC,MAAuB;IACzD,OAAO,MAAM,CAAC,IAAI,KAAK,MAAM,CAAC;AAClC,CAAC;AAED;;GAEG;AACH,SAAgB,yBAAyB,CAAC,MAAuB;IAC7D,OAAO,MAAM,CAAC,IAAI,KAAK,UAAU,CAAC;AACtC,CAAC;AAED;;GAEG;AACH,SAAgB,sBAAsB,CAAC,MAAuB;IAC1D,OAAO,MAAM,CAAC,IAAI,KAAK,OAAO,CAAC;AACnC,CAAC;AAED;;GAEG;AACH,SAAgB,oBAAoB,CAAC,MAAuB;IACxD,OAAO,MAAM,CAAC,IAAI,KAAK,KAAK,CAAC;AACjC,CAAC;AAED;;GAEG;AACH,SAAgB,sBAAsB,CAAC,MAAuB;IAC1D,OAAO,MAAM,CAAC,IAAI,KAAK,OAAO,CAAC;AACnC,CAAC;AAED;;GAEG;AACH,SAAgB,qBAAqB,CAAC,MAAuB;IACzD,OAAO,MAAM,CAAC,IAAI,KAAK,MAAM,CAAC;AAClC,CAAC;AAED;;GAEG;AACH,SAAgB,wBAAwB,CAAC,MAAuB;IAC5D,OAAO,MAAM,CAAC,IAAI,KAAK,SAAS,CAAC;AACrC,CAAC"}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.95.
|
|
7
|
+
"version": "1.95.2",
|
|
8
8
|
"description": "Chat Widget channel for stentor",
|
|
9
9
|
"types": "lib/index",
|
|
10
10
|
"main": "lib/index",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"mocha": "9.2.2",
|
|
25
25
|
"sinon": "13.0.2",
|
|
26
26
|
"sinon-chai": "3.7.0",
|
|
27
|
-
"stentor-models": "1.
|
|
27
|
+
"stentor-models": "1.79.0",
|
|
28
28
|
"ts-node": "10.9.2",
|
|
29
29
|
"typescript": "5.9.3"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"stentor-guards": "1.74.
|
|
32
|
+
"stentor-guards": "1.74.5"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"react": "^18.0.0 || ^19.0.0",
|