@imperosoft/cris-webui-components 1.1.2-beta.10 → 1.1.2-beta.12

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/index.d.mts CHANGED
@@ -376,6 +376,8 @@ interface CrisCoMatrixListsTieProps {
376
376
  itemActiveStyle?: CSSProperties;
377
377
  /** Item disabled className */
378
378
  itemDisabledClassName?: string;
379
+ /** Video mute button text (default: "Mute") */
380
+ vmText?: string;
379
381
  /** Video mute button className */
380
382
  vmButtonClassName?: string;
381
383
  /** Video mute button active className */
@@ -387,7 +389,7 @@ interface CrisCoMatrixListsTieProps {
387
389
  /** Custom render for signal indicator */
388
390
  renderSignalIndicator?: (on: boolean) => ReactNode;
389
391
  }
390
- declare function CrisCoMatrixListsTie({ oid, inputTitle, outputTitle, showChannels, className, style, listClassName, listStyle, headerClassName, headerStyle, itemClassName, itemStyle, itemActiveClassName, itemActiveStyle, itemDisabledClassName, vmButtonClassName, vmButtonActiveClassName, renderIoIndicator, renderSignalIndicator, }: CrisCoMatrixListsTieProps): react_jsx_runtime.JSX.Element | null;
392
+ declare function CrisCoMatrixListsTie({ oid, inputTitle, outputTitle, showChannels, className, style, listClassName, listStyle, headerClassName, headerStyle, itemClassName, itemStyle, itemActiveClassName, itemActiveStyle, itemDisabledClassName, vmText, vmButtonClassName, vmButtonActiveClassName, renderIoIndicator, renderSignalIndicator, }: CrisCoMatrixListsTieProps): react_jsx_runtime.JSX.Element | null;
391
393
 
392
394
  /**
393
395
  * Icon configuration and utilities for CRIS components
package/dist/index.d.ts CHANGED
@@ -376,6 +376,8 @@ interface CrisCoMatrixListsTieProps {
376
376
  itemActiveStyle?: CSSProperties;
377
377
  /** Item disabled className */
378
378
  itemDisabledClassName?: string;
379
+ /** Video mute button text (default: "Mute") */
380
+ vmText?: string;
379
381
  /** Video mute button className */
380
382
  vmButtonClassName?: string;
381
383
  /** Video mute button active className */
@@ -387,7 +389,7 @@ interface CrisCoMatrixListsTieProps {
387
389
  /** Custom render for signal indicator */
388
390
  renderSignalIndicator?: (on: boolean) => ReactNode;
389
391
  }
390
- declare function CrisCoMatrixListsTie({ oid, inputTitle, outputTitle, showChannels, className, style, listClassName, listStyle, headerClassName, headerStyle, itemClassName, itemStyle, itemActiveClassName, itemActiveStyle, itemDisabledClassName, vmButtonClassName, vmButtonActiveClassName, renderIoIndicator, renderSignalIndicator, }: CrisCoMatrixListsTieProps): react_jsx_runtime.JSX.Element | null;
392
+ declare function CrisCoMatrixListsTie({ oid, inputTitle, outputTitle, showChannels, className, style, listClassName, listStyle, headerClassName, headerStyle, itemClassName, itemStyle, itemActiveClassName, itemActiveStyle, itemDisabledClassName, vmText, vmButtonClassName, vmButtonActiveClassName, renderIoIndicator, renderSignalIndicator, }: CrisCoMatrixListsTieProps): react_jsx_runtime.JSX.Element | null;
391
393
 
392
394
  /**
393
395
  * Icon configuration and utilities for CRIS components
package/dist/index.js CHANGED
@@ -224,7 +224,6 @@ function CrisButton({
224
224
  touchStart();
225
225
  touchingRef.current = true;
226
226
  touchStartedHereRef.current = true;
227
- handlePress();
228
227
  };
229
228
  const handleTouchEnd = () => {
230
229
  log("handleTouchEnd", { touchStartedHereRef: touchStartedHereRef.current });
@@ -232,17 +231,17 @@ function CrisButton({
232
231
  touchingRef.current = true;
233
232
  if (touchStartedHereRef.current) {
234
233
  touchStartedHereRef.current = false;
234
+ handlePress();
235
235
  handleRelease();
236
236
  } else {
237
- log("SKIPPED handleRelease: touch did not start here");
237
+ log("SKIPPED: touch did not start here");
238
238
  }
239
239
  };
240
240
  const handleTouchCancel = () => {
241
- log("handleTouchCancel");
241
+ log("handleTouchCancel (scroll detected)");
242
242
  touchEnd();
243
243
  touchingRef.current = true;
244
244
  touchStartedHereRef.current = false;
245
- handleRelease();
246
245
  };
247
246
  const handleMouseDown = () => {
248
247
  if (isTouchActive() || touchingRef.current) return;
@@ -343,7 +342,7 @@ function CrisButton({
343
342
  cursor: suppressKeyClicks ? "default" : "pointer",
344
343
  position: isFreePositioned ? void 0 : "relative",
345
344
  overflow: isFreePositioned ? void 0 : "hidden",
346
- touchAction: "none",
345
+ touchAction: "pan-y",
347
346
  userSelect: "none",
348
347
  WebkitUserSelect: "none"
349
348
  },
@@ -1420,6 +1419,7 @@ function MatrixItemRow({
1420
1419
  type,
1421
1420
  active,
1422
1421
  showChannels,
1422
+ vmText,
1423
1423
  onSelect,
1424
1424
  onToggleVideoMute,
1425
1425
  itemClassName,
@@ -1470,7 +1470,7 @@ function MatrixItemRow({
1470
1470
  {
1471
1471
  selected: item.vm.on,
1472
1472
  enabled: item.vm.en,
1473
- text: "VM",
1473
+ text: vmText,
1474
1474
  onPress: onToggleVideoMute,
1475
1475
  className: vmButtonClassName,
1476
1476
  classActive: vmButtonActiveClassName
@@ -1494,6 +1494,7 @@ function CrisCoMatrixListsTie({
1494
1494
  itemActiveClassName,
1495
1495
  itemActiveStyle,
1496
1496
  itemDisabledClassName,
1497
+ vmText = "Mute",
1497
1498
  vmButtonClassName,
1498
1499
  vmButtonActiveClassName,
1499
1500
  renderIoIndicator,
@@ -1539,6 +1540,7 @@ function CrisCoMatrixListsTie({
1539
1540
  type: "input",
1540
1541
  active: si === item.id,
1541
1542
  showChannels,
1543
+ vmText,
1542
1544
  onSelect: () => handleSelectInput(item.id),
1543
1545
  onToggleVideoMute: () => handleToggleVideoMute("input", item.id),
1544
1546
  itemClassName,
@@ -1577,6 +1579,7 @@ function CrisCoMatrixListsTie({
1577
1579
  type: "output",
1578
1580
  active: item.ti === si,
1579
1581
  showChannels,
1582
+ vmText,
1580
1583
  onSelect: () => handleTie(item.id),
1581
1584
  onToggleVideoMute: () => handleToggleVideoMute("output", item.id),
1582
1585
  itemClassName,