@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.js CHANGED
@@ -7,7 +7,7 @@ import * as ImagePicker from 'expo-image-picker';
7
7
  import * as DocumentPicker from 'expo-document-picker';
8
8
  import { manipulateAsync, SaveFormat } from 'expo-image-manipulator';
9
9
  import * as Clipboard from 'expo-clipboard';
10
- import Markdown from 'react-native-markdown-display';
10
+ import Markdown, { MarkdownIt } from 'react-native-markdown-display';
11
11
 
12
12
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
13
13
  get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
@@ -1425,9 +1425,9 @@ function UploadQueueStrip() {
1425
1425
  {
1426
1426
  onPress: handleClose,
1427
1427
  hitSlop: 8,
1428
- style: [styles8.closeBtn, { backgroundColor: theme.colors.ink }],
1428
+ style: styles8.closeBtn,
1429
1429
  accessibilityLabel: isError ? "Remove failed upload" : "Cancel upload",
1430
- children: /* @__PURE__ */ jsx(PoolseIcon, { name: "close", size: 11, color: theme.colors.onBrand })
1430
+ children: /* @__PURE__ */ jsx(PoolseIcon, { name: "close", size: 11, color: "#fff" })
1431
1431
  }
1432
1432
  ) : null,
1433
1433
  isUploading ? /* @__PURE__ */ jsx(View, { style: styles8.progressOverlay, children: /* @__PURE__ */ jsx(View, { style: [styles8.spinner, { borderColor: theme.colors.onBrand }] }) }) : null,
@@ -1562,6 +1562,7 @@ var styles8 = StyleSheet.create({
1562
1562
  borderRadius: 11,
1563
1563
  alignItems: "center",
1564
1564
  justifyContent: "center",
1565
+ backgroundColor: "rgba(40,40,40,0.85)",
1565
1566
  shadowColor: "#000",
1566
1567
  shadowOffset: { width: 0, height: 1 },
1567
1568
  shadowOpacity: 0.3,
@@ -1685,7 +1686,7 @@ var MessageComposer = forwardRef(
1685
1686
  }, [editingMessage?.id, editingMessage?.body]);
1686
1687
  const isEditing = !!editingMessage;
1687
1688
  const editChanged = isEditing && value.trim() !== (editingMessage?.body?.trim() ?? "");
1688
- const submitDisabled = disabled || sending || isUploading || value.trim().length === 0 || (isEditing ? !editChanged : value.trim().length === 0 && readyAttachmentIds.length === 0);
1689
+ const submitDisabled = disabled || sending || isUploading || (isEditing ? !editChanged || value.trim().length === 0 : value.trim().length === 0 && readyAttachmentIds.length === 0);
1689
1690
  const handleSend = async () => {
1690
1691
  if (submitDisabled) return;
1691
1692
  const body = value.trim();
@@ -2611,6 +2612,7 @@ var styles14 = StyleSheet.create({
2611
2612
  borderRadius: 20
2612
2613
  }
2613
2614
  });
2615
+ var markdownit = MarkdownIt({ typographer: false, linkify: true });
2614
2616
  function renderMarkdown(body, args) {
2615
2617
  const baseText = {
2616
2618
  color: args.textColor,
@@ -2656,7 +2658,7 @@ function renderMarkdown(body, args) {
2656
2658
  opacity: 0.85
2657
2659
  }
2658
2660
  };
2659
- return createElement(Markdown, { style, onLinkPress: args.onLinkPress }, body);
2661
+ return createElement(Markdown, { style, markdownit, onLinkPress: args.onLinkPress }, body);
2660
2662
  }
2661
2663
  function MessageBubble({
2662
2664
  message,