Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

frc-ui

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

frc-ui - npm Package Compare versions

Comparing version 0.0.0-beta.34 to 0.0.0-beta.35

2

es/chat/send/index.d.ts

@@ -23,3 +23,3 @@ import React from 'react';

handleKeyUp: (event: React.KeyboardEvent<HTMLDivElement>) => void;
handleAddBlank: () => void;
handleAddBlank: (event: React.KeyboardEvent<HTMLDivElement>) => void;
handleSend: (event?: React.MouseEvent<HTMLDivElement, MouseEvent> | undefined) => void;

@@ -26,0 +26,0 @@ handleOnClick: () => void;

@@ -36,3 +36,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

}
else if (node['eleType']) {
else {
message.push({ type: node['eleType'], content: node['content'] });

@@ -196,3 +196,3 @@ }

if (shortcutKey === 'EnterSend') {
this.handleAddBlank();
this.handleAddBlank(event);
}

@@ -208,3 +208,3 @@ else if (shortcutKey === 'CtrlEnterSend') {

else if (shortcutKey === 'CtrlEnterSend') {
this.handleAddBlank();
this.handleAddBlank(event);
}

@@ -236,6 +236,8 @@ }

continue;
if (node.nodeName === '#text' && node.textContent) {
let tempLength = length + node.textContent.length;
if (node.nodeName === '#text') {
let tempLength = length + (node.textContent ? node.textContent.length : 0);
if (textMaxLength && tempLength > textMaxLength) {
node.textContent = node.textContent.substring(0, textMaxLength - length);
node.textContent = node.textContent
? node.textContent.substring(0, textMaxLength - length)
: node.textContent;
length = textMaxLength;

@@ -247,6 +249,8 @@ }

}
else if (node['eleType'] === MessageType.TEXT && node.textContent) {
let tempLength = length + node.textContent.length;
else if (node['eleType'] === MessageType.TEXT) {
let tempLength = length + (node.textContent ? node.textContent.length : 0);
if (textMaxLength && tempLength > textMaxLength) {
node.textContent = node.textContent.substring(0, textMaxLength - length);
node.textContent = node.textContent
? node.textContent.substring(0, textMaxLength - length)
: node.textContent;
node['content'] = node.textContent;

@@ -265,3 +269,4 @@ length = textMaxLength;

};
this.handleAddBlank = () => {
this.handleAddBlank = (event) => {
event && event.preventDefault();
if (this.currentType === MessageType.TEXT || !this.currentType) {

@@ -268,0 +273,0 @@ this.insetContent(MessageType.ELEMENT, 'br');

@@ -91,3 +91,3 @@ "use strict";

message = _this.analysisText(node['textContent'], message);
} else if (node['eleType']) {
} else {
message.push({

@@ -312,3 +312,3 @@ type: node['eleType'],

if (shortcutKey === 'EnterSend') {
_this.handleAddBlank();
_this.handleAddBlank(event);
} else if (shortcutKey === 'CtrlEnterSend') {

@@ -321,3 +321,3 @@ _this.handleSend();

} else if (shortcutKey === 'CtrlEnterSend') {
_this.handleAddBlank();
_this.handleAddBlank(event);
}

@@ -344,7 +344,7 @@ } else {

if (node.nodeName === '#text' && node.textContent) {
var tempLength = length + node.textContent.length;
if (node.nodeName === '#text') {
var tempLength = length + (node.textContent ? node.textContent.length : 0);
if (textMaxLength && tempLength > textMaxLength) {
node.textContent = node.textContent.substring(0, textMaxLength - length);
node.textContent = node.textContent ? node.textContent.substring(0, textMaxLength - length) : node.textContent;
length = textMaxLength;

@@ -354,7 +354,7 @@ } else {

}
} else if (node['eleType'] === _interfaces.MessageType.TEXT && node.textContent) {
var _tempLength = length + node.textContent.length;
} else if (node['eleType'] === _interfaces.MessageType.TEXT) {
var _tempLength = length + (node.textContent ? node.textContent.length : 0);
if (textMaxLength && _tempLength > textMaxLength) {
node.textContent = node.textContent.substring(0, textMaxLength - length);
node.textContent = node.textContent ? node.textContent.substring(0, textMaxLength - length) : node.textContent;
node['content'] = node.textContent;

@@ -377,3 +377,5 @@ length = textMaxLength;

_this.handleAddBlank = function () {
_this.handleAddBlank = function (event) {
event && event.preventDefault();
if (_this.currentType === _interfaces.MessageType.TEXT || !_this.currentType) {

@@ -380,0 +382,0 @@ _this.insetContent(_interfaces.MessageType.ELEMENT, 'br');

{
"name": "frc-ui",
"version": "0.0.0-beta.34",
"version": "0.0.0-beta.35",
"description": "React Web UI",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc