@openpeepshq/react 0.8.3 → 0.8.4
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.
|
@@ -29,14 +29,16 @@ export function EventLocation({ post, preview = true, truncate = false, occurren
|
|
|
29
29
|
return (_jsx("a", { href: jamLink, className: "text-primary text-sm underline", children: t('events.location.jam', { defaultValue: 'Jam Event' }) }));
|
|
30
30
|
}
|
|
31
31
|
if (event.url) {
|
|
32
|
-
return (_jsx("a", { href: event.url, className: "text-primary text-sm underline", children: t('events.location.
|
|
32
|
+
return (_jsx("a", { href: event.url, className: "text-primary text-sm underline", children: t('events.location.external', { defaultValue: 'External Event' }) }));
|
|
33
33
|
}
|
|
34
34
|
return null;
|
|
35
35
|
}
|
|
36
36
|
if (preview) {
|
|
37
37
|
return (_jsx("div", { className: "flex items-center gap-1 text-sm", children: physicalLocation ? (_jsxs(_Fragment, { children: [_jsx(MapPin, { className: "h-4 w-4 shrink-0" }), _jsx("span", { children: truncate
|
|
38
38
|
? truncateText(physicalLocation.text)
|
|
39
|
-
: physicalLocation.text })] })) : event.jam ? (_jsxs(_Fragment, { children: [_jsx(PhoneCall, { className: "h-4 w-4 shrink-0" }), _jsx("a", { href: jamLink, target: "_blank", rel: "noreferrer", className: "text-primary hover:underline", children: t('events.location.jam', { defaultValue: 'Jam Event' }) })] })) : event.url ? (_jsxs(_Fragment, { children: [_jsx(LinkIcon, { className: "h-4 w-4 shrink-0" }), _jsxs("a", { href: event.url, target: "_blank", rel: "noreferrer", className: "text-primary inline-flex items-center gap-1 hover:underline", children: [t('events.location.
|
|
39
|
+
: physicalLocation.text })] })) : event.jam ? (_jsxs(_Fragment, { children: [_jsx(PhoneCall, { className: "h-4 w-4 shrink-0" }), _jsx("a", { href: jamLink, target: "_blank", rel: "noreferrer", className: "text-primary hover:underline", children: t('events.location.jam', { defaultValue: 'Jam Event' }) })] })) : event.url ? (_jsxs(_Fragment, { children: [_jsx(LinkIcon, { className: "h-4 w-4 shrink-0" }), _jsxs("a", { href: event.url, target: "_blank", rel: "noreferrer", className: "text-primary inline-flex items-center gap-1 hover:underline", children: [t('events.location.external', {
|
|
40
|
+
defaultValue: 'External Event',
|
|
41
|
+
}), _jsx(ExternalLink, { className: "h-4 w-4" })] })] })) : null }));
|
|
40
42
|
}
|
|
41
43
|
return (_jsxs("div", { className: "mt-4 flex gap-x-4", children: [_jsx("div", { className: "border-foreground/20 flex items-center justify-center rounded-md border px-4 py-1", children: physicalLocation ? (_jsx(MapPin, { className: "text-muted-foreground my-3", size: 24 })) : event.jam ? (_jsx(PhoneCall, { className: "text-muted-foreground my-3", size: 24 })) : event.url ? (_jsx(LinkIcon, { className: "text-muted-foreground my-3", size: 24 })) : null }), _jsx("div", { children: physicalLocation ? (_jsx("p", { children: truncate
|
|
42
44
|
? truncateText(physicalLocation.text)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openpeepshq/react",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"uuidv7": "^1.0.2",
|
|
54
54
|
"@openpeepshq/client": "^0.2.1",
|
|
55
55
|
"@openpeepshq/common": "^0.4.0",
|
|
56
|
-
"@openpeepshq/
|
|
57
|
-
"@openpeepshq/
|
|
56
|
+
"@openpeepshq/greenscreen": "^0.2.1",
|
|
57
|
+
"@openpeepshq/react-ui": "^0.4.1"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"react": "^18.3.0 || ^19.0.0",
|
|
@@ -64,7 +64,7 @@ export function EventLocation({
|
|
|
64
64
|
if (event.url) {
|
|
65
65
|
return (
|
|
66
66
|
<a href={event.url} className="text-primary text-sm underline">
|
|
67
|
-
{t('events.location.
|
|
67
|
+
{t('events.location.external', { defaultValue: 'External Event' })}
|
|
68
68
|
</a>
|
|
69
69
|
);
|
|
70
70
|
}
|
|
@@ -104,7 +104,9 @@ export function EventLocation({
|
|
|
104
104
|
rel="noreferrer"
|
|
105
105
|
className="text-primary inline-flex items-center gap-1 hover:underline"
|
|
106
106
|
>
|
|
107
|
-
{t('events.location.
|
|
107
|
+
{t('events.location.external', {
|
|
108
|
+
defaultValue: 'External Event',
|
|
109
|
+
})}
|
|
108
110
|
<ExternalLink className="h-4 w-4" />
|
|
109
111
|
</a>
|
|
110
112
|
</>
|