@superinterface/react 3.28.0 → 3.28.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.
- package/dist/index.cjs +22 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +22 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -39555,7 +39555,18 @@ function _toPrimitive6(t, r) {
|
|
|
39555
39555
|
var content = function(_ref) {
|
|
39556
39556
|
var newMessage = _ref.newMessage;
|
|
39557
39557
|
if (isArray(newMessage.content)) {
|
|
39558
|
-
return newMessage.content
|
|
39558
|
+
return newMessage.content.map(function(item) {
|
|
39559
|
+
if (item.type === "text") {
|
|
39560
|
+
return {
|
|
39561
|
+
type: "text",
|
|
39562
|
+
text: {
|
|
39563
|
+
annotations: [],
|
|
39564
|
+
value: item.text
|
|
39565
|
+
}
|
|
39566
|
+
};
|
|
39567
|
+
}
|
|
39568
|
+
return item;
|
|
39569
|
+
});
|
|
39559
39570
|
}
|
|
39560
39571
|
return [
|
|
39561
39572
|
{
|
|
@@ -44810,7 +44821,7 @@ var Root8 = function(_ref) {
|
|
|
44810
44821
|
createMessage: createMessage
|
|
44811
44822
|
}) : /* @__PURE__ */ function() {
|
|
44812
44823
|
var _ref2 = _asyncToGenerator6(function(data2) {
|
|
44813
|
-
var attachments, imageFileContentParts;
|
|
44824
|
+
var attachments, imageFileContentParts, content2;
|
|
44814
44825
|
return _ts_generator(this, function(_state) {
|
|
44815
44826
|
switch(_state.label){
|
|
44816
44827
|
case 0:
|
|
@@ -44847,15 +44858,16 @@ var Root8 = function(_ref) {
|
|
|
44847
44858
|
}
|
|
44848
44859
|
};
|
|
44849
44860
|
});
|
|
44861
|
+
content2 = _to_consumable_array(imageFileContentParts).concat([
|
|
44862
|
+
{
|
|
44863
|
+
type: "text",
|
|
44864
|
+
text: data2.content
|
|
44865
|
+
}
|
|
44866
|
+
]);
|
|
44850
44867
|
return [
|
|
44851
44868
|
4,
|
|
44852
44869
|
createMessage(_objectSpread29({
|
|
44853
|
-
content:
|
|
44854
|
-
{
|
|
44855
|
-
type: "text",
|
|
44856
|
-
text: data2.content
|
|
44857
|
-
}
|
|
44858
|
-
])
|
|
44870
|
+
content: content2
|
|
44859
44871
|
}, attachments.length ? {
|
|
44860
44872
|
attachments: attachments
|
|
44861
44873
|
} : {}))
|
|
@@ -44872,7 +44884,7 @@ var Root8 = function(_ref) {
|
|
|
44872
44884
|
return _ref2.apply(this, arguments);
|
|
44873
44885
|
};
|
|
44874
44886
|
}();
|
|
44875
|
-
var
|
|
44887
|
+
var content_0 = watch("content");
|
|
44876
44888
|
return /* @__PURE__ */ _jsx68(MessageFormContext.Provider, {
|
|
44877
44889
|
value: {
|
|
44878
44890
|
isDisabled: isDisabled,
|
|
@@ -44880,7 +44892,7 @@ var Root8 = function(_ref) {
|
|
|
44880
44892
|
files: files,
|
|
44881
44893
|
setFiles: setFiles,
|
|
44882
44894
|
isFileLoading: isFileLoading,
|
|
44883
|
-
content:
|
|
44895
|
+
content: content_0
|
|
44884
44896
|
},
|
|
44885
44897
|
children: /* @__PURE__ */ _jsx68(FormProvider, _objectSpread29(_objectSpread29({}, formProps), {}, {
|
|
44886
44898
|
children: /* @__PURE__ */ _jsx68(Box14, {
|