@poolse/react-native 2.1.1 → 2.1.3

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
@@ -1452,9 +1452,9 @@ function UploadQueueStrip() {
1452
1452
  {
1453
1453
  onPress: handleClose,
1454
1454
  hitSlop: 8,
1455
- style: [styles8.closeBtn, { backgroundColor: theme.colors.ink }],
1455
+ style: styles8.closeBtn,
1456
1456
  accessibilityLabel: isError ? "Remove failed upload" : "Cancel upload",
1457
- children: /* @__PURE__ */ jsxRuntime.jsx(PoolseIcon, { name: "close", size: 11, color: theme.colors.onBrand })
1457
+ children: /* @__PURE__ */ jsxRuntime.jsx(PoolseIcon, { name: "close", size: 11, color: "#fff" })
1458
1458
  }
1459
1459
  ) : null,
1460
1460
  isUploading ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles8.progressOverlay, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles8.spinner, { borderColor: theme.colors.onBrand }] }) }) : null,
@@ -1589,6 +1589,7 @@ var styles8 = reactNative.StyleSheet.create({
1589
1589
  borderRadius: 11,
1590
1590
  alignItems: "center",
1591
1591
  justifyContent: "center",
1592
+ backgroundColor: "rgba(40,40,40,0.85)",
1592
1593
  shadowColor: "#000",
1593
1594
  shadowOffset: { width: 0, height: 1 },
1594
1595
  shadowOpacity: 0.3,
@@ -1712,7 +1713,7 @@ var MessageComposer = react.forwardRef(
1712
1713
  }, [editingMessage?.id, editingMessage?.body]);
1713
1714
  const isEditing = !!editingMessage;
1714
1715
  const editChanged = isEditing && value.trim() !== (editingMessage?.body?.trim() ?? "");
1715
- const submitDisabled = disabled || sending || isUploading || value.trim().length === 0 || (isEditing ? !editChanged : value.trim().length === 0 && readyAttachmentIds.length === 0);
1716
+ const submitDisabled = disabled || sending || isUploading || (isEditing ? !editChanged || value.trim().length === 0 : value.trim().length === 0 && readyAttachmentIds.length === 0);
1716
1717
  const handleSend = async () => {
1717
1718
  if (submitDisabled) return;
1718
1719
  const body = value.trim();
@@ -2638,6 +2639,7 @@ var styles14 = reactNative.StyleSheet.create({
2638
2639
  borderRadius: 20
2639
2640
  }
2640
2641
  });
2642
+ var markdownit = Markdown.MarkdownIt({ typographer: false, linkify: true });
2641
2643
  function renderMarkdown(body, args) {
2642
2644
  const baseText = {
2643
2645
  color: args.textColor,
@@ -2683,7 +2685,7 @@ function renderMarkdown(body, args) {
2683
2685
  opacity: 0.85
2684
2686
  }
2685
2687
  };
2686
- return react.createElement(Markdown__default.default, { style, onLinkPress: args.onLinkPress }, body);
2688
+ return react.createElement(Markdown__default.default, { style, markdownit, onLinkPress: args.onLinkPress }, body);
2687
2689
  }
2688
2690
  function MessageBubble({
2689
2691
  message,