@factorialco/f0-react 1.359.0 → 1.360.0
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/experimental.d.ts +9 -2
- package/dist/experimental.js +27 -19
- package/package.json +1 -1
package/dist/experimental.d.ts
CHANGED
|
@@ -710,7 +710,7 @@ export declare const BaseCelebration: ({ link, firstName, lastName, src, onClick
|
|
|
710
710
|
|
|
711
711
|
declare type BaseColor = keyof typeof baseColors;
|
|
712
712
|
|
|
713
|
-
export declare const BaseCommunityPost: ({ id, author, group, createdAt, title, description, onClick, mediaUrl, event, counters, reactions, inLabel, comment, dropdownItems, noReactionsButton, }: CommunityPostProps) => JSX_2.Element;
|
|
713
|
+
export declare const BaseCommunityPost: ({ id, author, group, createdAt, title, description, onClick, mediaUrl, event, counters, reactions, inLabel, comment, actions, dropdownItems, noReactionsButton, }: CommunityPostProps) => JSX_2.Element;
|
|
714
714
|
|
|
715
715
|
/**
|
|
716
716
|
* Base data adapter configuration for non-paginated collections
|
|
@@ -1569,10 +1569,16 @@ declare const columnWidths: {
|
|
|
1569
1569
|
readonly fit: 1;
|
|
1570
1570
|
};
|
|
1571
1571
|
|
|
1572
|
-
export declare const CommunityPost: (({ id, author, group, createdAt, title, description, onClick, mediaUrl, event, counters, reactions, inLabel, comment, dropdownItems, noReactionsButton, }: CommunityPostProps) => JSX_2.Element) & {
|
|
1572
|
+
export declare const CommunityPost: (({ id, author, group, createdAt, title, description, onClick, mediaUrl, event, counters, reactions, inLabel, comment, actions, dropdownItems, noReactionsButton, }: CommunityPostProps) => JSX_2.Element) & {
|
|
1573
1573
|
Skeleton: ({ withEvent, withImage, }: CommunityPostSkeletonProps) => JSX_2.Element;
|
|
1574
1574
|
};
|
|
1575
1575
|
|
|
1576
|
+
export declare type CommunityPostAction = {
|
|
1577
|
+
label: string;
|
|
1578
|
+
icon?: IconType;
|
|
1579
|
+
onClick: () => void;
|
|
1580
|
+
};
|
|
1581
|
+
|
|
1576
1582
|
export declare type CommunityPostProps = {
|
|
1577
1583
|
id: string;
|
|
1578
1584
|
author?: {
|
|
@@ -1600,6 +1606,7 @@ export declare type CommunityPostProps = {
|
|
|
1600
1606
|
label: string;
|
|
1601
1607
|
onClick: () => void;
|
|
1602
1608
|
};
|
|
1609
|
+
actions?: CommunityPostAction[];
|
|
1603
1610
|
noVideoPreload?: boolean;
|
|
1604
1611
|
onClick: (id: string) => void;
|
|
1605
1612
|
noReactionsButton?: boolean;
|
package/dist/experimental.js
CHANGED
|
@@ -11398,20 +11398,20 @@ const yN = oe("Reactions", xN), zc = (t) => {
|
|
|
11398
11398
|
})]
|
|
11399
11399
|
})]
|
|
11400
11400
|
})]
|
|
11401
|
-
}), Nh = Ne(NN, SN), IN = ({ id: t, author: e, group: n, createdAt: r, title: i, description: s, onClick: o, mediaUrl: a, event: c, counters: d, reactions: f, inLabel: u, comment: h,
|
|
11402
|
-
const
|
|
11401
|
+
}), Nh = Ne(NN, SN), IN = ({ id: t, author: e, group: n, createdAt: r, title: i, description: s, onClick: o, mediaUrl: a, event: c, counters: d, reactions: f, inLabel: u, comment: h, actions: m, dropdownItems: p, noReactionsButton: b = !1 }) => {
|
|
11402
|
+
const v = [d.views, d.comments].filter(Boolean).join(" · "), x = Ju(r), w = () => {
|
|
11403
11403
|
o(t);
|
|
11404
|
-
},
|
|
11405
|
-
|
|
11406
|
-
},
|
|
11404
|
+
}, y = (S) => {
|
|
11405
|
+
S.stopPropagation();
|
|
11406
|
+
}, T = e ? `${e.firstName} ${e.lastName}` : void 0;
|
|
11407
11407
|
return g("div", {
|
|
11408
11408
|
className: "flex w-full cursor-pointer flex-row gap-3 rounded-xl border border-solid border-transparent p-3 pt-2 hover:bg-f1-background-hover focus:border-f1-border-secondary focus:outline focus:outline-1 focus:outline-offset-1 focus:outline-f1-border-selected-bold md:pb-4 md:pt-3",
|
|
11409
|
-
onClick:
|
|
11409
|
+
onClick: w,
|
|
11410
11410
|
children: [l("div", {
|
|
11411
11411
|
className: "hidden md:block",
|
|
11412
11412
|
children: e ? l(Tn, {
|
|
11413
11413
|
href: e.url || "#",
|
|
11414
|
-
title:
|
|
11414
|
+
title: T,
|
|
11415
11415
|
stopPropagation: !0,
|
|
11416
11416
|
children: l(wt, {
|
|
11417
11417
|
firstName: e.firstName,
|
|
@@ -11433,7 +11433,7 @@ const yN = oe("Reactions", xN), zc = (t) => {
|
|
|
11433
11433
|
children: [l(Tn, {
|
|
11434
11434
|
href: e.url,
|
|
11435
11435
|
className: "block md:hidden",
|
|
11436
|
-
title:
|
|
11436
|
+
title: T,
|
|
11437
11437
|
stopPropagation: !0,
|
|
11438
11438
|
children: l("span", {
|
|
11439
11439
|
className: "flex items-center",
|
|
@@ -11446,10 +11446,10 @@ const yN = oe("Reactions", xN), zc = (t) => {
|
|
|
11446
11446
|
})
|
|
11447
11447
|
}), l(Tn, {
|
|
11448
11448
|
href: e.url,
|
|
11449
|
-
title:
|
|
11449
|
+
title: T,
|
|
11450
11450
|
className: "font-medium text-f1-foreground no-underline visited:text-f1-foreground",
|
|
11451
11451
|
stopPropagation: !0,
|
|
11452
|
-
children:
|
|
11452
|
+
children: T
|
|
11453
11453
|
})]
|
|
11454
11454
|
}) : l("div", {
|
|
11455
11455
|
className: "block md:hidden",
|
|
@@ -11472,24 +11472,32 @@ const yN = oe("Reactions", xN), zc = (t) => {
|
|
|
11472
11472
|
children: "·"
|
|
11473
11473
|
}), l("span", {
|
|
11474
11474
|
className: "text-f1-foreground-secondary",
|
|
11475
|
-
children:
|
|
11475
|
+
children: x
|
|
11476
11476
|
})]
|
|
11477
11477
|
}), g("div", {
|
|
11478
11478
|
className: "flex flex-row gap-2",
|
|
11479
|
-
children: [
|
|
11479
|
+
children: [g("div", {
|
|
11480
11480
|
className: "hidden flex-row gap-2 md:flex",
|
|
11481
|
-
children: m?.
|
|
11482
|
-
|
|
11481
|
+
children: [m?.map((S) => l(j, {
|
|
11482
|
+
...S.icon && {
|
|
11483
|
+
icon: S.icon
|
|
11484
|
+
},
|
|
11485
|
+
variant: "outline",
|
|
11486
|
+
size: "md",
|
|
11487
|
+
onClick: S.onClick,
|
|
11488
|
+
label: S.label
|
|
11489
|
+
}, S.label)), p?.length && l(Me, {
|
|
11490
|
+
items: p,
|
|
11483
11491
|
icon: Ni,
|
|
11484
11492
|
size: "sm"
|
|
11485
|
-
})
|
|
11493
|
+
})]
|
|
11486
11494
|
}), l("div", {
|
|
11487
11495
|
className: "md:hidden",
|
|
11488
11496
|
children: l(Me, {
|
|
11489
11497
|
items: [{
|
|
11490
11498
|
label: h.label,
|
|
11491
11499
|
onClick: h.onClick
|
|
11492
|
-
}, ...
|
|
11500
|
+
}, ...p ?? []],
|
|
11493
11501
|
icon: Ni,
|
|
11494
11502
|
size: "sm"
|
|
11495
11503
|
})
|
|
@@ -11510,7 +11518,7 @@ const yN = oe("Reactions", xN), zc = (t) => {
|
|
|
11510
11518
|
children: Ch(a) ? l("video", {
|
|
11511
11519
|
controls: !0,
|
|
11512
11520
|
className: "aspect-video h-full w-full bg-f1-background-secondary object-cover",
|
|
11513
|
-
onClick:
|
|
11521
|
+
onClick: y,
|
|
11514
11522
|
children: l("source", {
|
|
11515
11523
|
src: a
|
|
11516
11524
|
})
|
|
@@ -11531,8 +11539,8 @@ const yN = oe("Reactions", xN), zc = (t) => {
|
|
|
11531
11539
|
})
|
|
11532
11540
|
}), l("p", {
|
|
11533
11541
|
className: "text-f1-foreground-secondary",
|
|
11534
|
-
children:
|
|
11535
|
-
}), !
|
|
11542
|
+
children: v
|
|
11543
|
+
}), !b && l(yN, {
|
|
11536
11544
|
items: f?.items ?? [],
|
|
11537
11545
|
onInteraction: f?.onInteraction,
|
|
11538
11546
|
action: {
|