llmasaservice-ui 0.3.13 → 0.3.14
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.js +4 -2
- package/dist/index.mjs +4 -2
- package/package.json +1 -1
- package/src/ChatPanel.tsx +4 -2
package/dist/index.js
CHANGED
|
@@ -138,10 +138,12 @@ var ChatPanel = ({
|
|
|
138
138
|
const button = document.getElementById(buttonId);
|
|
139
139
|
if (button) {
|
|
140
140
|
if (!button.onclick) {
|
|
141
|
-
console.log("Setting button click event", buttonId, action);
|
|
141
|
+
console.log("Setting button click event", buttonId, action, groups);
|
|
142
142
|
button.onclick = () => {
|
|
143
143
|
if (action.callback) {
|
|
144
|
-
|
|
144
|
+
const groupsCopy = [...groups];
|
|
145
|
+
console.log("Calling callback", match, groupsCopy);
|
|
146
|
+
action.callback(match, groupsCopy);
|
|
145
147
|
}
|
|
146
148
|
if (action.clickCode) {
|
|
147
149
|
try {
|
package/dist/index.mjs
CHANGED
|
@@ -105,10 +105,12 @@ var ChatPanel = ({
|
|
|
105
105
|
const button = document.getElementById(buttonId);
|
|
106
106
|
if (button) {
|
|
107
107
|
if (!button.onclick) {
|
|
108
|
-
console.log("Setting button click event", buttonId, action);
|
|
108
|
+
console.log("Setting button click event", buttonId, action, groups);
|
|
109
109
|
button.onclick = () => {
|
|
110
110
|
if (action.callback) {
|
|
111
|
-
|
|
111
|
+
const groupsCopy = [...groups];
|
|
112
|
+
console.log("Calling callback", match, groupsCopy);
|
|
113
|
+
action.callback(match, groupsCopy);
|
|
112
114
|
}
|
|
113
115
|
if (action.clickCode) {
|
|
114
116
|
try {
|
package/package.json
CHANGED
package/src/ChatPanel.tsx
CHANGED
|
@@ -145,10 +145,12 @@ const ChatPanel: React.FC<ChatPanelProps & ExtraProps> = ({
|
|
|
145
145
|
const button = document.getElementById(buttonId);
|
|
146
146
|
if (button) {
|
|
147
147
|
if (!button.onclick) {
|
|
148
|
-
console.log("Setting button click event", buttonId, action);
|
|
148
|
+
console.log("Setting button click event", buttonId, action, groups);
|
|
149
149
|
button.onclick = () => {
|
|
150
150
|
if (action.callback) {
|
|
151
|
-
|
|
151
|
+
const groupsCopy = [...groups]; // Create a shallow copy of the groups array
|
|
152
|
+
console.log("Calling callback", match, groupsCopy);
|
|
153
|
+
action.callback(match, groupsCopy);
|
|
152
154
|
}
|
|
153
155
|
if (action.clickCode) {
|
|
154
156
|
try {
|