@haklex/rich-ext-chat 0.14.1 → 0.15.1

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.
@@ -37,7 +37,7 @@ function createDefaultParticipants(variant) {
37
37
  */
38
38
  var CHAT_NODE_KEY = "Chat";
39
39
  //#endregion
40
- //#region \0@oxc-project+runtime@0.127.0/helpers/typeof.js
40
+ //#region \0@oxc-project+runtime@0.130.0/helpers/typeof.js
41
41
  function _typeof(o) {
42
42
  "@babel/helpers - typeof";
43
43
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -47,7 +47,7 @@ function _typeof(o) {
47
47
  }, _typeof(o);
48
48
  }
49
49
  //#endregion
50
- //#region \0@oxc-project+runtime@0.127.0/helpers/toPrimitive.js
50
+ //#region \0@oxc-project+runtime@0.130.0/helpers/toPrimitive.js
51
51
  function toPrimitive(t, r) {
52
52
  if ("object" != _typeof(t) || !t) return t;
53
53
  var e = t[Symbol.toPrimitive];
@@ -59,13 +59,13 @@ function toPrimitive(t, r) {
59
59
  return ("string" === r ? String : Number)(t);
60
60
  }
61
61
  //#endregion
62
- //#region \0@oxc-project+runtime@0.127.0/helpers/toPropertyKey.js
62
+ //#region \0@oxc-project+runtime@0.130.0/helpers/toPropertyKey.js
63
63
  function toPropertyKey(t) {
64
64
  var i = toPrimitive(t, "string");
65
65
  return "symbol" == _typeof(i) ? i : i + "";
66
66
  }
67
67
  //#endregion
68
- //#region \0@oxc-project+runtime@0.127.0/helpers/defineProperty.js
68
+ //#region \0@oxc-project+runtime@0.130.0/helpers/defineProperty.js
69
69
  function _defineProperty(e, r, t) {
70
70
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
71
71
  value: t,
package/dist/augment.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ComponentType } from 'react';
2
2
  import { ChatRendererProps } from './types';
3
- declare module '@haklex/rich-editor' {
3
+ declare module '@haklex/rich-editor/static' {
4
4
  interface RendererConfig {
5
5
  Chat?: ComponentType<ChatRendererProps>;
6
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"augment.d.ts","sourceRoot":"","sources":["../src/augment.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD,OAAO,QAAQ,qBAAqB,CAAC;IACnC,UAAU,cAAc;QACtB,IAAI,CAAC,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;KACzC;CACF;AAED,eAAO,MAAM,oBAAoB,OAAO,CAAC"}
1
+ {"version":3,"file":"augment.d.ts","sourceRoot":"","sources":["../src/augment.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD,OAAO,QAAQ,4BAA4B,CAAC;IAC1C,UAAU,cAAc;QACtB,IAAI,CAAC,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;KACzC;CACF;AAED,eAAO,MAAM,oBAAoB,OAAO,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import { A as variantPill, C as participantLabel, D as rail, E as participantRow, M as variantPillHint, N as variantPillName, O as sectionLabel, P as variantStack, S as participantInput, T as participantPillUser, _ as modalBody, a as buttonGhost, b as pane, c as editLabel, d as messageActions, f as messageCard, g as modal, h as messageTextarea, i as button, j as variantPillActive, k as semanticClassNames, l as editOverlay, m as messageSelect, n as addMessage, o as buttonPrimary, p as messageHead, r as addMessageButton, s as editContainer, t as ChatRenderer, u as editorDialogPopup, v as modalFooter, w as participantPill, x as participantCard, y as modalHeader } from "./ChatRenderer-ahbuFXVc.js";
2
- import { i as _defineProperty, n as $isChatNode, o as createMessageId, r as ChatNode } from "./ChatNode-9-6kP6Uk.js";
2
+ import { i as _defineProperty, n as $isChatNode, o as createMessageId, r as ChatNode } from "./ChatNode-BMF5Ejrq.js";
3
3
  import { $getNodeByKey, $insertNodes } from "lexical";
4
4
  import { ArrowDown, ArrowUp, MessageSquare, Pencil, Trash2 } from "lucide-react";
5
5
  import { createContext, createElement, useCallback, useContext, useEffect, useRef, useState } from "react";
6
- import { useColorScheme } from "@haklex/rich-editor";
6
+ import { useColorScheme } from "@haklex/rich-editor/static";
7
7
  import { presentDialog } from "@haklex/rich-editor-ui";
8
8
  import { usePortalTheme } from "@haklex/rich-style-token";
9
9
  import { jsx, jsxs } from "react/jsx-runtime";
package/dist/edit.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  import { t as __augmentLoaded_chat } from "./augment-C92w8N8d.js";
2
- import { a as ChatEditDecorator, i as ChatEditNode, n as $createChatEditNode, o as ChatEditRenderer, r as $isChatEditNode, s as ChatEditorModal, t as chatEditNodes } from "./edit-Ba-8EZcX.js";
2
+ import { a as ChatEditDecorator, i as ChatEditNode, n as $createChatEditNode, o as ChatEditRenderer, r as $isChatEditNode, s as ChatEditorModal, t as chatEditNodes } from "./edit-DKWb0GxA.js";
3
3
  export { $createChatEditNode, $isChatEditNode, ChatEditDecorator, ChatEditNode, ChatEditRenderer, ChatEditorModal, __augmentLoaded_chat, chatEditNodes };
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { t as __augmentLoaded_chat } from "./augment-C92w8N8d.js";
2
2
  import { t as ChatRenderer } from "./ChatRenderer-ahbuFXVc.js";
3
- import { a as ChatEditDecorator, i as ChatEditNode, n as $createChatEditNode, o as ChatEditRenderer, r as $isChatEditNode, s as ChatEditorModal, t as chatEditNodes } from "./edit-Ba-8EZcX.js";
4
- import { a as CHAT_NODE_KEY, n as $isChatNode, r as ChatNode, t as $createChatNode } from "./ChatNode-9-6kP6Uk.js";
3
+ import { a as ChatEditDecorator, i as ChatEditNode, n as $createChatEditNode, o as ChatEditRenderer, r as $isChatEditNode, s as ChatEditorModal, t as chatEditNodes } from "./edit-DKWb0GxA.js";
4
+ import { a as CHAT_NODE_KEY, n as $isChatNode, r as ChatNode, t as $createChatNode } from "./ChatNode-BMF5Ejrq.js";
5
5
  import { chatNodes } from "./node.mjs";
6
6
  import "./renderer.mjs";
7
7
  export { $createChatEditNode, $createChatNode, $isChatEditNode, $isChatNode, CHAT_NODE_KEY, ChatEditDecorator, ChatEditNode, ChatEditRenderer, ChatEditorModal, ChatNode, ChatRenderer, __augmentLoaded_chat, chatEditNodes, chatNodes };
package/dist/node.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as __augmentLoaded_chat } from "./augment-C92w8N8d.js";
2
- import { a as CHAT_NODE_KEY, n as $isChatNode, r as ChatNode, t as $createChatNode } from "./ChatNode-9-6kP6Uk.js";
2
+ import { a as CHAT_NODE_KEY, n as $isChatNode, r as ChatNode, t as $createChatNode } from "./ChatNode-BMF5Ejrq.js";
3
3
  //#region src/node.ts
4
4
  var chatNodes = [ChatNode];
5
5
  //#endregion
package/dist/static.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { t as __augmentLoaded_chat } from "./augment-C92w8N8d.js";
2
2
  import { t as ChatRenderer } from "./ChatRenderer-ahbuFXVc.js";
3
- import { a as CHAT_NODE_KEY, n as $isChatNode, r as ChatNode, t as $createChatNode } from "./ChatNode-9-6kP6Uk.js";
3
+ import { a as CHAT_NODE_KEY, n as $isChatNode, r as ChatNode, t as $createChatNode } from "./ChatNode-BMF5Ejrq.js";
4
4
  import { chatNodes } from "./node.mjs";
5
5
  import "./renderer.mjs";
6
6
  export { $createChatNode, $isChatNode, CHAT_NODE_KEY, ChatNode, ChatRenderer, __augmentLoaded_chat, chatNodes };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haklex/rich-ext-chat",
3
- "version": "0.14.1",
3
+ "version": "0.15.1",
4
4
  "description": "Static chat-snapshot node for the haklex rich editor",
5
5
  "repository": {
6
6
  "type": "git",
@@ -38,12 +38,12 @@
38
38
  ],
39
39
  "dependencies": {
40
40
  "@streamdown/code": "^1.1.1",
41
- "nanoid": "^5.1.9",
41
+ "nanoid": "^5.1.11",
42
42
  "streamdown": "^2.5.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@lexical/react": "^0.44.0",
46
- "@types/react": "^19.2.14",
46
+ "@types/react": "^19.2.15",
47
47
  "@types/react-dom": "^19.2.3",
48
48
  "@vanilla-extract/css": "^1.20.1",
49
49
  "@vanilla-extract/vite-plugin": "^5.2.2",
@@ -51,17 +51,17 @@
51
51
  "react": "19.2.5",
52
52
  "react-dom": "19.2.5",
53
53
  "typescript": "^5.9.3",
54
- "vite": "^8.0.10",
55
- "vite-plugin-dts": "^4.5.4",
56
- "@haklex/rich-editor": "0.14.1"
54
+ "unplugin-dts": "^1.0.1",
55
+ "vite": "^8.0.13",
56
+ "@haklex/rich-editor": "0.15.1"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "lexical": "^0.44.0",
60
60
  "lucide-react": "^1.0.0",
61
61
  "react": ">=19",
62
- "@haklex/rich-editor": "0.14.1",
63
- "@haklex/rich-editor-ui": "0.14.1",
64
- "@haklex/rich-style-token": "0.14.1"
62
+ "@haklex/rich-editor": "0.15.1",
63
+ "@haklex/rich-editor-ui": "0.15.1",
64
+ "@haklex/rich-style-token": "0.15.1"
65
65
  },
66
66
  "publishConfig": {
67
67
  "access": "public"