@apolitical/component-library 1.8.1-beta.0 → 1.8.1-beta.1
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/{4TNE5QTO-0b6a1f67.js → 4TNE5QTO-f43be2ee.js} +1 -1
- package/{4TNE5QTO-3dadb76b.mjs → 4TNE5QTO-fa22459d.mjs} +1 -1
- package/discussion/components/post/post.d.ts +3 -1
- package/{index-9d689beb.mjs → index-297b0b41.mjs} +3313 -3294
- package/{index-3fbe0cc9.js → index-9771dd05.js} +41 -41
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Zi = Object.defineProperty;
|
|
2
2
|
var Ji = (e, t, n) => t in e ? Zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var Or = (e, t, n) => (Ji(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
-
import { d as $n, c as K, a as I, b as p, e as z, i as A, f as U, o as qe, g as pt, s as es, m as G, h as V, u as Oe, t as P, S as j, j as F, k as Kn, l as Ee, F as Ao, $ as Ye, n as gn, p as _o, q as ts, r as X, v as at, P as ns, w as Fe, I as rs, x as Gt, y as Fr, D as _n, z as os, A as is, M as On, B as ss, C as as, E as ls } from "./index-
|
|
4
|
+
import { d as $n, c as K, a as I, b as p, e as z, i as A, f as U, o as qe, g as pt, s as es, m as G, h as V, u as Oe, t as P, S as j, j as F, k as Kn, l as Ee, F as Ao, $ as Ye, n as gn, p as _o, q as ts, r as X, v as at, P as ns, w as Fe, I as rs, x as Gt, y as Fr, D as _n, z as os, A as is, M as On, B as ss, C as as, E as ls } from "./index-297b0b41.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import "react/jsx-runtime";
|
|
7
7
|
import "react-router-dom";
|
|
@@ -5,6 +5,8 @@ interface Props {
|
|
|
5
5
|
element?: 'li' | 'div' | 'section' | 'article';
|
|
6
6
|
/** Information about the content being posted */
|
|
7
7
|
content: IFullDiscussionContent;
|
|
8
|
+
/** If the user has permission to interact with the post box and content, e.g. if they're a member of the community */
|
|
9
|
+
userHasPermissions?: boolean;
|
|
8
10
|
/** If the post is still loading */
|
|
9
11
|
isLoading?: boolean;
|
|
10
12
|
/** The ID of the original post author, for threads */
|
|
@@ -44,5 +46,5 @@ interface Props {
|
|
|
44
46
|
/** The language for the text */
|
|
45
47
|
locale?: string;
|
|
46
48
|
}
|
|
47
|
-
declare const Post: ({ element, content, isLoading, originalAuthorId, functions: { content: { createContent, deleteContent, updateContent }, likes: { createLike, deleteLike }, comments: { openComments }, }, links, className, gtmContext,
|
|
49
|
+
declare const Post: ({ element, content, userHasPermissions, isLoading, originalAuthorId, functions: { content: { createContent, deleteContent, updateContent }, likes: { createLike, deleteLike }, comments: { openComments }, }, links, className, gtmContext, children, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
48
50
|
export default Post;
|