@superinterface/react 3.28.0 → 3.29.0

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
@@ -39692,7 +39692,18 @@ function _toPrimitive6(t, r) {
39692
39692
  var content = function(_ref) {
39693
39693
  var newMessage = _ref.newMessage;
39694
39694
  if ((0, import_radash2.isArray)(newMessage.content)) {
39695
- return newMessage.content;
39695
+ return newMessage.content.map(function(item) {
39696
+ if (item.type === "text") {
39697
+ return {
39698
+ type: "text",
39699
+ text: {
39700
+ annotations: [],
39701
+ value: item.text
39702
+ }
39703
+ };
39704
+ }
39705
+ return item;
39706
+ });
39696
39707
  }
39697
39708
  return [
39698
39709
  {
@@ -44946,7 +44957,7 @@ var Root8 = function(_ref) {
44946
44957
  createMessage: createMessage
44947
44958
  }) : /* @__PURE__ */ function() {
44948
44959
  var _ref2 = _asyncToGenerator6(function(data2) {
44949
- var attachments, imageFileContentParts;
44960
+ var attachments, imageFileContentParts, content2;
44950
44961
  return _ts_generator(this, function(_state) {
44951
44962
  switch(_state.label){
44952
44963
  case 0:
@@ -44983,15 +44994,16 @@ var Root8 = function(_ref) {
44983
44994
  }
44984
44995
  };
44985
44996
  });
44997
+ content2 = _to_consumable_array(imageFileContentParts).concat([
44998
+ {
44999
+ type: "text",
45000
+ text: data2.content
45001
+ }
45002
+ ]);
44986
45003
  return [
44987
45004
  4,
44988
45005
  createMessage(_objectSpread29({
44989
- content: _to_consumable_array(imageFileContentParts).concat([
44990
- {
44991
- type: "text",
44992
- text: data2.content
44993
- }
44994
- ])
45006
+ content: content2
44995
45007
  }, attachments.length ? {
44996
45008
  attachments: attachments
44997
45009
  } : {}))
@@ -45008,7 +45020,7 @@ var Root8 = function(_ref) {
45008
45020
  return _ref2.apply(this, arguments);
45009
45021
  };
45010
45022
  }();
45011
- var content2 = watch("content");
45023
+ var content_0 = watch("content");
45012
45024
  return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(MessageFormContext.Provider, {
45013
45025
  value: {
45014
45026
  isDisabled: isDisabled,
@@ -45016,7 +45028,7 @@ var Root8 = function(_ref) {
45016
45028
  files: files,
45017
45029
  setFiles: setFiles,
45018
45030
  isFileLoading: isFileLoading,
45019
- content: content2
45031
+ content: content_0
45020
45032
  },
45021
45033
  children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react_hook_form.FormProvider, _objectSpread29(_objectSpread29({}, formProps), {}, {
45022
45034
  children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_themes47.Box, {