@joinskips/brand 6.0.0-develop.126 → 7.0.0-develop.131

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.
@@ -1,4 +1,10 @@
1
+ interface NewTab {
2
+ target: string;
3
+ rel: string;
4
+ }
5
+ export declare const NEW_TAB: NewTab;
1
6
  export interface MarkdownProps {
2
7
  text: string;
3
8
  }
4
9
  export declare function Markdown({ text }: MarkdownProps): import("react").JSX.Element;
10
+ export {};
@@ -1,6 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Linking, Text, View } from 'react-native';
2
+ import { Linking, Platform, Text, View } from 'react-native';
3
3
  import { readMarkdown } from "../markdown.js";
4
+ // On the web a link opens in a new tab, as the website's own links do, telling the other site nothing.
5
+ export const NEW_TAB = { target: '_blank', rel: 'noopener noreferrer nofollow' };
4
6
  function Inlines({ nodes }) {
5
7
  return nodes.map((node, i) => _jsx(InlineNode, { node: node }, `${String(i)}-${node.type}`));
6
8
  }
@@ -19,9 +21,10 @@ function InlineNode({ node }) {
19
21
  case 'del':
20
22
  return (_jsx(Text, { className: "line-through", children: _jsx(Inlines, { nodes: node.children }) }));
21
23
  case 'link':
22
- return (_jsx(Text, { role: "link", className: "underline", onPress: () => {
23
- void Linking.openURL(node.href);
24
- }, children: _jsx(Inlines, { nodes: node.children }) }));
24
+ return (_jsx(Text, { role: "link", className: "underline", ...Platform.select({
25
+ web: { href: node.href, hrefAttrs: NEW_TAB },
26
+ default: { onPress: Linking.openURL.bind(Linking, node.href) },
27
+ }), children: _jsx(Inlines, { nodes: node.children }) }));
25
28
  }
26
29
  }
27
30
  function Blocks({ blocks }) {
package/chat/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export { Conversation, type ConversationProps, type LoadState } from './components/Conversation.tsx';
2
+ export { Bubble, type BubbleProps } from './components/Bubble.tsx';
2
3
  export type { ChatIcon, ChatIconName, ChatWords } from './components/parts.ts';
3
4
  export { ATTACHMENT_TYPES, MAX_ATTACHMENT_BYTES, attachmentProblem, attachmentType } from './attachments.ts';
4
5
  export { isSkip, type ChatAttachment, type ChatAuthor, type ChatMessage, type ChoiceItem, type MessageChoice, type PickedFile, } from './message.ts';
package/chat/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  export { Conversation } from "./components/Conversation.js";
2
+ export { Bubble } from "./components/Bubble.js";
2
3
  export { ATTACHMENT_TYPES, MAX_ATTACHMENT_BYTES, attachmentProblem, attachmentType } from "./attachments.js";
3
4
  export { isSkip, } from "./message.js";
4
5
  export { CLUSTER_GAP_MS, EMPTY_THREAD, groupThread, pendingId, withFailed, withoutMessage, withPending, withReceived, withReceivedAll, withSent, } from "./thread.js";
package/manifest.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": 6,
2
+ "version": 7,
3
3
  "files": {
4
4
  "app-icons/adaptive-foreground-1024.png": {
5
5
  "sha256": "1cfdc826654866b7bd1e4f549417f9f1918a66d5d8a0133dafbfd3d75d5ecc5f",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joinskips/brand",
3
- "version": "6.0.0-develop.126",
3
+ "version": "7.0.0-develop.131",
4
4
  "description": "Skips design tokens, Onest, logos, favicons, interface icons, member pictures and app icons.",
5
5
  "license": "UNLICENSED",
6
6
  "homepage": "https://brand.joinskips.com",