@banbox/chat 1.0.10 → 1.0.11

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.cjs CHANGED
@@ -3804,7 +3804,7 @@ var avatarBgByInitial = {
3804
3804
  B: "#F0EDEB",
3805
3805
  b: "#F0EDEB"
3806
3806
  };
3807
- var InboxPopup = ({ adapter, uiCallbacks, theme }) => {
3807
+ var InboxPopup = ({ adapter, uiCallbacks, theme, hiddenActionKeys }) => {
3808
3808
  const { close, selectThread, selectedThreadId, reference } = useChatUI();
3809
3809
  const { isOpen: isGalleryOpen, closeGallery } = useGallery();
3810
3810
  const [threads, setThreads] = React16.useState(() => adapter.threads.list(reference));
@@ -4032,6 +4032,7 @@ var InboxPopup = ({ adapter, uiCallbacks, theme }) => {
4032
4032
  replyTo,
4033
4033
  clearReply: () => setReplyTo(void 0),
4034
4034
  onAfterSend: () => setRev((v) => v + 1),
4035
+ hiddenActionKeys,
4035
4036
  onSend: (payload) => {
4036
4037
  if (activeId) adapter.messages.send(activeId, payload);
4037
4038
  }
@@ -4099,7 +4100,7 @@ function toRef(m) {
4099
4100
  audio: m.audio
4100
4101
  };
4101
4102
  }
4102
- var SinglePopup = ({ adapter, uiCallbacks, theme }) => {
4103
+ var SinglePopup = ({ adapter, uiCallbacks, theme, hiddenActionKeys }) => {
4103
4104
  const { close, reference } = useChatUI();
4104
4105
  const { isOpen: isGalleryOpen, closeGallery } = useGallery();
4105
4106
  const [threads, setThreads] = React16__default.default.useState(() => adapter.threads.list(reference));
@@ -4279,6 +4280,7 @@ var SinglePopup = ({ adapter, uiCallbacks, theme }) => {
4279
4280
  replyTo,
4280
4281
  clearReply: () => setReplyTo(void 0),
4281
4282
  onAfterSend: handleAfterSend,
4283
+ hiddenActionKeys,
4282
4284
  onSend: (payload) => {
4283
4285
  if (activeId) adapter.messages.send(activeId, payload);
4284
4286
  }
@@ -4301,7 +4303,7 @@ var SinglePopup = ({ adapter, uiCallbacks, theme }) => {
4301
4303
  ] });
4302
4304
  };
4303
4305
  var SinglePopup_default = SinglePopup;
4304
- function ChatRoot({ adapter, uiCallbacks, theme }) {
4306
+ function ChatRoot({ adapter, uiCallbacks, theme, hiddenActionKeys }) {
4305
4307
  const { isOpen, variant } = useChatUI();
4306
4308
  useDisableBodyScroll(isOpen);
4307
4309
  if (typeof window === "undefined") {
@@ -4314,7 +4316,8 @@ function ChatRoot({ adapter, uiCallbacks, theme }) {
4314
4316
  {
4315
4317
  adapter,
4316
4318
  uiCallbacks,
4317
- theme
4319
+ theme,
4320
+ hiddenActionKeys
4318
4321
  },
4319
4322
  "inbox"
4320
4323
  ) : /* @__PURE__ */ jsxRuntime.jsx(
@@ -4322,7 +4325,8 @@ function ChatRoot({ adapter, uiCallbacks, theme }) {
4322
4325
  {
4323
4326
  adapter,
4324
4327
  uiCallbacks,
4325
- theme
4328
+ theme,
4329
+ hiddenActionKeys
4326
4330
  },
4327
4331
  "single"
4328
4332
  )) }) }),