@flamingo-stack/openframe-frontend-core 0.0.328 → 0.0.329-snapshot.20260628011535
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/{chunk-YV4PUSAJ.js → chunk-233TNRYO.js} +4 -4
- package/dist/{chunk-TAIMKJE6.js → chunk-BLIVFED6.js} +4 -4
- package/dist/{chunk-OQPMYUZX.cjs → chunk-BPT7DZO4.cjs} +12 -12
- package/dist/{chunk-OQPMYUZX.cjs.map → chunk-BPT7DZO4.cjs.map} +1 -1
- package/dist/{chunk-F4WJ6G64.js → chunk-CTRVKS42.js} +2 -2
- package/dist/{chunk-LM2P7UWU.cjs → chunk-DQWQFIKF.cjs} +7 -7
- package/dist/{chunk-LM2P7UWU.cjs.map → chunk-DQWQFIKF.cjs.map} +1 -1
- package/dist/{chunk-6SGZOIOQ.cjs → chunk-DQY4TMPD.cjs} +31 -31
- package/dist/{chunk-6SGZOIOQ.cjs.map → chunk-DQY4TMPD.cjs.map} +1 -1
- package/dist/{chunk-M43DVC6A.cjs → chunk-I3SLJPT7.cjs} +56 -56
- package/dist/{chunk-M43DVC6A.cjs.map → chunk-I3SLJPT7.cjs.map} +1 -1
- package/dist/{chunk-7FDLIPBP.cjs → chunk-JGLDXCPI.cjs} +9 -9
- package/dist/{chunk-7FDLIPBP.cjs.map → chunk-JGLDXCPI.cjs.map} +1 -1
- package/dist/{chunk-PZKEQNNK.cjs → chunk-JXEJVR5H.cjs} +26 -26
- package/dist/{chunk-PZKEQNNK.cjs.map → chunk-JXEJVR5H.cjs.map} +1 -1
- package/dist/{chunk-SC543SO2.js → chunk-MJ2QVKFD.js} +2 -2
- package/dist/{chunk-Z2TB777W.js → chunk-MXLQCQLM.js} +2 -2
- package/dist/{chunk-P4XUTN2Z.js → chunk-O6JFLNJX.js} +4 -4
- package/dist/{chunk-5W6MKTGR.cjs → chunk-OCPUDTRE.cjs} +37 -37
- package/dist/{chunk-5W6MKTGR.cjs.map → chunk-OCPUDTRE.cjs.map} +1 -1
- package/dist/{chunk-SD36MNVP.cjs → chunk-P75LBLOT.cjs} +24 -4
- package/dist/chunk-P75LBLOT.cjs.map +1 -0
- package/dist/{chunk-XGEF6MVM.js → chunk-PIBJHV2H.js} +2 -2
- package/dist/{chunk-B3YEMD6H.js → chunk-PV65W2Q3.js} +2 -2
- package/dist/{chunk-KS3NQFKW.js → chunk-QA2W6KZC.js} +2 -2
- package/dist/{chunk-WVIBC2M5.cjs → chunk-SQOLVJUK.cjs} +5 -5
- package/dist/{chunk-WVIBC2M5.cjs.map → chunk-SQOLVJUK.cjs.map} +1 -1
- package/dist/{chunk-Y6AD3GJG.js → chunk-UN33GYZF.js} +4 -4
- package/dist/{chunk-TAKXDI7B.cjs → chunk-VMCKM7RN.cjs} +62 -62
- package/dist/{chunk-TAKXDI7B.cjs.map → chunk-VMCKM7RN.cjs.map} +1 -1
- package/dist/{chunk-7OZROCY7.cjs → chunk-WGQPNSM2.cjs} +25 -25
- package/dist/{chunk-7OZROCY7.cjs.map → chunk-WGQPNSM2.cjs.map} +1 -1
- package/dist/{chunk-RVSR3M7Y.js → chunk-WZRVPJPY.js} +2 -2
- package/dist/{chunk-22VBCVLJ.js → chunk-XF56JH7Q.js} +25 -5
- package/dist/{chunk-22VBCVLJ.js.map → chunk-XF56JH7Q.js.map} +1 -1
- package/dist/{chunk-Z6WEY45X.cjs → chunk-YFXZRRLA.cjs} +15 -15
- package/dist/{chunk-Z6WEY45X.cjs.map → chunk-YFXZRRLA.cjs.map} +1 -1
- package/dist/components/case-studies/index.cjs +8 -8
- package/dist/components/case-studies/index.js +2 -2
- package/dist/components/chat/index.cjs +2 -2
- package/dist/components/chat/index.js +1 -1
- package/dist/components/chat/utils/icon-registry.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +3 -3
- package/dist/components/contact/index.js +2 -2
- package/dist/components/docs/index.cjs +5 -5
- package/dist/components/docs/index.js +4 -4
- package/dist/components/embeds/index.cjs +3 -3
- package/dist/components/embeds/index.js +2 -2
- package/dist/components/faq/index.cjs +3 -3
- package/dist/components/faq/index.js +2 -2
- package/dist/components/features/index.cjs +2 -2
- package/dist/components/features/index.js +1 -1
- package/dist/components/features/social-links-manager.d.ts +2 -0
- package/dist/components/features/social-links-manager.d.ts.map +1 -1
- package/dist/components/help-center-pages/index.cjs +20 -20
- package/dist/components/help-center-pages/index.js +11 -11
- package/dist/components/index.cjs +124 -120
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +13 -9
- package/dist/components/index.js.map +1 -1
- package/dist/components/navigation/index.cjs +2 -2
- package/dist/components/navigation/index.js +1 -1
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/onboarding-guides/index.js +4 -4
- package/dist/components/related-content/index.cjs +3 -3
- package/dist/components/related-content/index.js +2 -2
- package/dist/components/social-icon-row.d.ts.map +1 -1
- package/dist/components/tickets/index.cjs +5 -5
- package/dist/components/tickets/index.js +4 -4
- package/dist/components/ui/image-uploader.d.ts +6 -1
- package/dist/components/ui/image-uploader.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +2 -2
- package/dist/components/ui/index.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/utils/index.cjs +20 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js +20 -0
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/chat/utils/icon-registry.ts +3 -0
- package/src/components/features/social-links-manager.tsx +18 -1
- package/src/components/social-icon-row.tsx +4 -0
- package/src/components/ui/image-uploader.tsx +7 -0
- package/dist/chunk-SD36MNVP.cjs.map +0 -1
- /package/dist/{chunk-YV4PUSAJ.js.map → chunk-233TNRYO.js.map} +0 -0
- /package/dist/{chunk-TAIMKJE6.js.map → chunk-BLIVFED6.js.map} +0 -0
- /package/dist/{chunk-F4WJ6G64.js.map → chunk-CTRVKS42.js.map} +0 -0
- /package/dist/{chunk-SC543SO2.js.map → chunk-MJ2QVKFD.js.map} +0 -0
- /package/dist/{chunk-Z2TB777W.js.map → chunk-MXLQCQLM.js.map} +0 -0
- /package/dist/{chunk-P4XUTN2Z.js.map → chunk-O6JFLNJX.js.map} +0 -0
- /package/dist/{chunk-XGEF6MVM.js.map → chunk-PIBJHV2H.js.map} +0 -0
- /package/dist/{chunk-B3YEMD6H.js.map → chunk-PV65W2Q3.js.map} +0 -0
- /package/dist/{chunk-KS3NQFKW.js.map → chunk-QA2W6KZC.js.map} +0 -0
- /package/dist/{chunk-Y6AD3GJG.js.map → chunk-UN33GYZF.js.map} +0 -0
- /package/dist/{chunk-RVSR3M7Y.js.map → chunk-WZRVPJPY.js.map} +0 -0
package/package.json
CHANGED
|
@@ -72,6 +72,7 @@ import {
|
|
|
72
72
|
FacebookIcon,
|
|
73
73
|
InstagramIcon,
|
|
74
74
|
YouTubeIcon,
|
|
75
|
+
WhatsAppIcon,
|
|
75
76
|
XLogo,
|
|
76
77
|
OpenFrameLogo as RawOpenFrameLogo,
|
|
77
78
|
} from '../../icons'
|
|
@@ -147,6 +148,7 @@ export const ICON_REGISTRY: Record<string, IconComponent> = {
|
|
|
147
148
|
twitter: Twitter,
|
|
148
149
|
users: Users,
|
|
149
150
|
video: Video,
|
|
151
|
+
whatsapp: WhatsAppIcon,
|
|
150
152
|
youtube: YouTubeIcon,
|
|
151
153
|
'youtube-lucide': Youtube,
|
|
152
154
|
// brand-only icons (no lucide variant in current use)
|
|
@@ -211,6 +213,7 @@ const PASCAL_TO_KEBAB_ALIASES: Record<string, string> = {
|
|
|
211
213
|
FacebookIcon: 'facebook',
|
|
212
214
|
InstagramIcon: 'instagram',
|
|
213
215
|
YouTubeIcon: 'youtube',
|
|
216
|
+
WhatsAppIcon: 'whatsapp',
|
|
214
217
|
XLogo: 'x',
|
|
215
218
|
OpenFrameLogo: 'openframe',
|
|
216
219
|
}
|
|
@@ -19,12 +19,14 @@ import {
|
|
|
19
19
|
SelectValue,
|
|
20
20
|
Label
|
|
21
21
|
} from '../ui';
|
|
22
|
-
import { Trash2, User, Globe, Youtube, Instagram, Facebook, MessageCircle, Send, Music } from 'lucide-react';
|
|
22
|
+
import { Trash2, User, Globe, Youtube, Instagram, Facebook, MessageCircle, Send, Music, Mail } from 'lucide-react';
|
|
23
23
|
|
|
24
24
|
export interface SocialLink {
|
|
25
25
|
platform: string;
|
|
26
26
|
url: string;
|
|
27
27
|
username?: string;
|
|
28
|
+
/** `internal` links render only on company-hub (server-enforced); default `external`. */
|
|
29
|
+
visibility?: 'external' | 'internal';
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
export interface SocialPlatform {
|
|
@@ -62,6 +64,8 @@ const iconMap = {
|
|
|
62
64
|
discord: MessageCircle,
|
|
63
65
|
telegram: Send,
|
|
64
66
|
tiktok: Music,
|
|
67
|
+
email: Mail,
|
|
68
|
+
mail: Mail,
|
|
65
69
|
};
|
|
66
70
|
|
|
67
71
|
export function SocialLinksManager({
|
|
@@ -134,6 +138,19 @@ export function SocialLinksManager({
|
|
|
134
138
|
/>
|
|
135
139
|
</div>
|
|
136
140
|
|
|
141
|
+
<Select
|
|
142
|
+
value={link.visibility ?? 'external'}
|
|
143
|
+
onValueChange={(value) => updateLink(index, 'visibility', value)}
|
|
144
|
+
>
|
|
145
|
+
<SelectTrigger className="w-[120px] shrink-0" aria-label="Social link visibility">
|
|
146
|
+
<SelectValue />
|
|
147
|
+
</SelectTrigger>
|
|
148
|
+
<SelectContent>
|
|
149
|
+
<SelectItem value="external">Public</SelectItem>
|
|
150
|
+
<SelectItem value="internal">Internal</SelectItem>
|
|
151
|
+
</SelectContent>
|
|
152
|
+
</Select>
|
|
153
|
+
|
|
137
154
|
<Button
|
|
138
155
|
type="button"
|
|
139
156
|
variant="transparent"
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
+
import { Mail } from 'lucide-react';
|
|
3
4
|
import { Button } from './ui/button';
|
|
4
5
|
import { GitHubIcon, RedditIcon, XLogo, LinkedInIcon, LumaIcon, WhatsAppIcon, GlobeIcon, MessageCircleIcon, TelegramIcon, YouTubeIcon, InstagramIcon, FacebookIcon, SlackIcon, CopyIcon } from './icons';
|
|
5
6
|
|
|
@@ -50,6 +51,9 @@ function renderSocialIcon(platform: string) {
|
|
|
50
51
|
return <LumaIcon className="w-5 h-5" />;
|
|
51
52
|
case 'whatsapp':
|
|
52
53
|
return <WhatsAppIcon className="w-5 h-5" />;
|
|
54
|
+
case 'email':
|
|
55
|
+
case 'mail':
|
|
56
|
+
return <Mail className="w-5 h-5" />;
|
|
53
57
|
case 'website':
|
|
54
58
|
case 'web':
|
|
55
59
|
case 'url':
|
|
@@ -41,6 +41,11 @@ export interface ImageUploaderProps {
|
|
|
41
41
|
alt?: string
|
|
42
42
|
/** Extra className on the FieldWrapper root. */
|
|
43
43
|
className?: string
|
|
44
|
+
/**
|
|
45
|
+
* Extra className on the dropzone element itself. Merged after the defaults, so it can
|
|
46
|
+
* override the built-in sizing (e.g. pass `h-[148px]` to replace the default `h-44`).
|
|
47
|
+
*/
|
|
48
|
+
dropzoneClassName?: string
|
|
44
49
|
}
|
|
45
50
|
|
|
46
51
|
const DEFAULT_MAX_SIZE = 25 * 1024 * 1024
|
|
@@ -85,6 +90,7 @@ export function ImageUploader({
|
|
|
85
90
|
objectFit = "cover",
|
|
86
91
|
alt = "Uploaded image",
|
|
87
92
|
className,
|
|
93
|
+
dropzoneClassName,
|
|
88
94
|
}: ImageUploaderProps) {
|
|
89
95
|
const inputRef = React.useRef<HTMLInputElement>(null)
|
|
90
96
|
const [dragActive, setDragActive] = React.useState(false)
|
|
@@ -183,6 +189,7 @@ export function ImageUploader({
|
|
|
183
189
|
!hasImage && interactive && !isActionState && "cursor-pointer hover:bg-ods-bg-hover hover:border-ods-border-hover",
|
|
184
190
|
!interactive && "opacity-60",
|
|
185
191
|
!hasImage && !interactive && "cursor-not-allowed",
|
|
192
|
+
dropzoneClassName,
|
|
186
193
|
)}
|
|
187
194
|
>
|
|
188
195
|
|