New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tabula/ui-ai-chat

Package Overview
Dependencies
Maintainers
0
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tabula/ui-ai-chat - npm Package Compare versions

Comparing version 1.0.0-next.1 to 1.0.0-next.2

37

lib/index.js
// src/UiAiChat/UiAiChat.tsx
import { forwardRef } from "react";
import clsx3 from "clsx";
import clsx4 from "clsx";
import { UiButton24 as UiButton243 } from "@tabula/ui-button";

@@ -251,2 +251,3 @@ import { UiSlider } from "@tabula/ui-slider";

// src/Answer/Answer.helpers.ts
import clsx3 from "clsx";
import DOMPurify from "dompurify";

@@ -256,9 +257,10 @@ import { xxHash32 } from "js-xxhash";

// src/Answer/Answer.css.ts
var header = "tabula_ui_ai_chat__1e5f8cc2";
var headerCell = "tabula_ui_ai_chat__1e5f8cc4";
var row = "tabula_ui_ai_chat__1e5f8cc3";
var rowCell = "tabula_ui_ai_chat__1e5f8cc5";
var bodyRow = "tabula_ui_ai_chat__1e5f8cc4";
var empty = "tabula_ui_ai_chat__1e5f8cc2";
var headerCell = "tabula_ui_ai_chat__1e5f8cc5";
var headerRow = "tabula_ui_ai_chat__1e5f8cc3";
var rowCell = "tabula_ui_ai_chat__1e5f8cc6";
var table = "tabula_ui_ai_chat__1e5f8cc1";
var tableActionButton = "tabula_ui_ai_chat__1e5f8cc7";
var tableActions = "tabula_ui_ai_chat__1e5f8cc6";
var tableActionButton = "tabula_ui_ai_chat__1e5f8cc8";
var tableActions = "tabula_ui_ai_chat__1e5f8cc7";
var tableContainer = "tabula_ui_ai_chat__1e5f8cc0";

@@ -293,10 +295,10 @@

}
function renderRow(row2) {
return row2.map((value) => `<td class="${rowCell}">${value}</td>`).join("");
function renderRow(row) {
return row.map((value) => `<td class="${rowCell}">${value}</td>`).join("");
}
function renderRows(rows) {
return rows.map((row2) => `<tr class="${row}">${renderRow(row2)}</tr>`).join("");
return rows.map((row) => `<tr class="${bodyRow}">${renderRow(row)}</tr>`).join("");
}
function renderHeader(header2) {
return `<tr class="${header}">${header2.map((h) => `<th class="${headerCell}">${h}</th>`).join("")}</tr>`;
function renderHeader(header) {
return `<tr class="${headerRow}">${header.map((h) => `<th class="${headerCell}">${h}</th>`).join("")}</tr>`;
}

@@ -308,9 +310,10 @@ function createTableRenderer(requestId, tableActions2) {

}
const { header: header2, rows } = token;
const { header, rows } = token;
const data = {
header: header2.map((h) => h.text),
rows: rows.map((row2) => row2.map((v) => v.text))
header: header.map((h) => h.text),
rows: rows.map((row) => row.map((v) => v.text))
};
const tableClassName = clsx3(table, data.rows.length === 0 && empty);
const renderedTable = DOMPurify.sanitize(`
<table class="${table}">
<table class="${tableClassName}">
<thead>

@@ -486,3 +489,3 @@ ${renderHeader(data.header)}

const creativityLevel2 = `${Math.round(temperature * 10)} / 10`;
return /* @__PURE__ */ jsxs5("div", { className: clsx3(root, inputAtTheBottom && isReversed, className), children: [
return /* @__PURE__ */ jsxs5("div", { className: clsx4(root, inputAtTheBottom && isReversed, className), children: [
/* @__PURE__ */ jsxs5("div", { className: input, children: [

@@ -489,0 +492,0 @@ mode2 != null && /* @__PURE__ */ jsx13(

{
"name": "@tabula/ui-ai-chat",
"version": "1.0.0-next.1",
"version": "1.0.0-next.2",
"description": "Allows to embed UI for conversation with AI assistant",

@@ -5,0 +5,0 @@ "type": "module",

export declare const tableContainer: string;
export declare const table: string;
export declare const header: string;
export declare const row: string;
export declare const empty: string;
export declare const headerRow: string;
export declare const bodyRow: string;
export declare const headerCell: string;

@@ -6,0 +7,0 @@ export declare const rowCell: string;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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