hive-react-kit 0.9.2 → 0.9.3

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/index.d.ts CHANGED
@@ -47,6 +47,7 @@ export * from './hooks/use-mobile';
47
47
  export * from './hooks/use-toast';
48
48
  export * from './hooks/useHiveImageSign';
49
49
  export { parseHiveFrontendUrl, type HiveLinkTarget } from './utils/hiveLinks';
50
+ export { createHiveRenderer, renderHiveMarkdown, type HiveRendererOptions } from '@snapie/renderer';
50
51
  export { buildCommentOptions, REWARD_OPTIONS, REWARD_OPTION_LABELS, type RewardOption, } from './utils/commentOptions';
51
52
  export * from './types/comment';
52
53
  export * from './types/graphql';
package/dist/index.esm.js CHANGED
@@ -22310,7 +22310,7 @@ function Fs(e = {}) {
22310
22310
  return b = qb(b), b = zb(b, n, a), b = Vb(b), b = Hb(b), b = Wb(b), l && (b = Gb(b, c, d)), $b.sanitize(b, Bb);
22311
22311
  };
22312
22312
  }
22313
- Fs();
22313
+ var fy = Fs();
22314
22314
  const ps = ({
22315
22315
  onSubmit: e,
22316
22316
  onCancel: r,
@@ -23274,7 +23274,7 @@ function oa({ ...e }) {
23274
23274
  update: n
23275
23275
  };
23276
23276
  }
23277
- function fy() {
23277
+ function hy() {
23278
23278
  const [e, r] = cs.useState(us);
23279
23279
  return cs.useEffect(() => (os.push(r), () => {
23280
23280
  const n = os.indexOf(r);
@@ -23305,7 +23305,7 @@ function y0(e) {
23305
23305
  const r = e.toLowerCase();
23306
23306
  return r === "user_cancel" || r === "[object object]" || r.includes("cancelled") || r.includes("canceled") || r.includes("rejected") ? "Image signing was cancelled" : r.includes("expired") ? "Wallet request expired. Please try again." : r.includes("not installed") ? "Wallet extension is not installed" : r === "incomplete" ? "Wallet request was incomplete" : e;
23307
23307
  }
23308
- function hy(e = {}) {
23308
+ function my(e = {}) {
23309
23309
  const {
23310
23310
  signer: r,
23311
23311
  user: n,
@@ -23735,7 +23735,7 @@ const zu = ({ author: e, permlink: r, onClose: n, currentUser: a, token: i, onCl
23735
23735
  ] }) })
23736
23736
  ] })
23737
23737
  }
23738
- ), my = ({ username: e, permlink: r, onAuthorClick: n, onVideoClick: a, onTagClick: i, onBack: s, onCommentsModal: u, onUpvotesModal: l, onDescriptionModal: d, onVideoInfo: f, onShare: o, onBookmark: h } = {}) => {
23738
+ ), py = ({ username: e, permlink: r, onAuthorClick: n, onVideoClick: a, onTagClick: i, onBack: s, onCommentsModal: u, onUpvotesModal: l, onDescriptionModal: d, onVideoInfo: f, onShare: o, onBookmark: h } = {}) => {
23739
23739
  const c = e, p = r, [x, N] = R(null), [y, b] = R(!0), [w, _] = R(null), [E, v] = R(!1), [g, k] = R(null), [S, T] = R(!1), [D, A] = R(!1), [C, O] = R(!1), [F, j] = R(!1), L = nt(null), U = nt(null), W = nt(null);
23740
23740
  ke(() => {
23741
23741
  (async () => {
@@ -25263,7 +25263,7 @@ const _0 = on.getInstance(), j2 = ["All", "Active", "Upcoming", "Expired", "By P
25263
25263
  }, iu = (e) => {
25264
25264
  const r = new Date(e.start_date), n = new Date(e.end_date);
25265
25265
  return `(${Math.ceil((n.getTime() - r.getTime()) / (1e3 * 60 * 60 * 24))} days)`;
25266
- }, py = ({
25266
+ }, gy = ({
25267
25267
  onClickSupport: e,
25268
25268
  onClickVoteValue: r,
25269
25269
  onClickSelect: n,
@@ -26321,7 +26321,7 @@ const Me = new U2(), T0 = ({ vestingShares: e }) => {
26321
26321
  r,
26322
26322
  " HP"
26323
26323
  ] });
26324
- }, gy = ({
26324
+ }, by = ({
26325
26325
  username: e,
26326
26326
  onClickAuthor: r,
26327
26327
  onClickAddRemoveFromLists: n,
@@ -26588,7 +26588,7 @@ const Me = new U2(), T0 = ({ vestingShares: e }) => {
26588
26588
  r,
26589
26589
  " HP"
26590
26590
  ] });
26591
- }, by = ({
26591
+ }, yy = ({
26592
26592
  username: e,
26593
26593
  onClickAuthor: r,
26594
26594
  onClickAddRemoveFromLists: n,
@@ -28015,7 +28015,7 @@ const Br = new H2(), hr = W0((e, r) => ({
28015
28015
  s && /* @__PURE__ */ t("div", { ref: d, className: "h-4" })
28016
28016
  ] })
28017
28017
  ] }) }) : null;
28018
- }, yy = ({
28018
+ }, xy = ({
28019
28019
  username: e,
28020
28020
  filters: r = { status: "all", name: "", version: "" },
28021
28021
  onWitnessVoteClick: n,
@@ -28538,7 +28538,7 @@ class G2 {
28538
28538
  }
28539
28539
  }
28540
28540
  const rn = new G2();
28541
- function xy({ account: e, className: r }) {
28541
+ function vy({ account: e, className: r }) {
28542
28542
  const [n, a] = R(
28543
28543
  []
28544
28544
  ), [i, s] = R([]), [u, l] = R(!1), [d, f] = R(null), [o, h] = R(""), [c, p] = R("all"), [x, N] = R(50), y = [
@@ -29186,7 +29186,7 @@ class Y2 {
29186
29186
  );
29187
29187
  }
29188
29188
  }
29189
- const an = new Y2(), vy = ({
29189
+ const an = new Y2(), wy = ({
29190
29190
  username: e,
29191
29191
  className: r
29192
29192
  }) => {
@@ -29600,7 +29600,7 @@ const X2 = {
29600
29600
  mobile: { icon: 28, fontSize: 8, padding: "4px 6px", gap: 2, barPadding: "4px", minWidth: 52, maxWidth: 68 },
29601
29601
  tablet: { icon: 30, fontSize: 8, padding: "4px 5px", gap: 3, barPadding: "5px 6px", minWidth: 56, maxWidth: 72 },
29602
29602
  desktop: { icon: 32, fontSize: 9, padding: "4px 6px", gap: 4, barPadding: "6px 8px", minWidth: 60, maxWidth: 80 }
29603
- }, wy = ({
29603
+ }, Ny = ({
29604
29604
  isDistriator: e = !0,
29605
29605
  isCheckinwithxyz: r = !0,
29606
29606
  isHreplier: n = !0,
@@ -30811,7 +30811,7 @@ const r1 = (e) => {
30811
30811
  return e;
30812
30812
  }
30813
30813
  };
30814
- function Ny({
30814
+ function _y({
30815
30815
  author: e,
30816
30816
  permlink: r,
30817
30817
  currentUser: n,
@@ -31580,7 +31580,7 @@ class a1 {
31580
31580
  }
31581
31581
  }
31582
31582
  }
31583
- const Rr = new a1(), _y = ({
31583
+ const Rr = new a1(), ky = ({
31584
31584
  onSelectCommunity: e,
31585
31585
  theme: r = "dark"
31586
31586
  }) => {
@@ -32123,7 +32123,7 @@ const Rr = new a1(), _y = ({
32123
32123
  }
32124
32124
  ) })
32125
32125
  ] });
32126
- }, ky = ({
32126
+ }, Ey = ({
32127
32127
  communityId: e,
32128
32128
  onVideoClick: r,
32129
32129
  onAuthorClick: n,
@@ -32329,7 +32329,7 @@ const Rr = new a1(), _y = ({
32329
32329
  ] })
32330
32330
  ] })
32331
32331
  ] });
32332
- }, Ey = ({
32332
+ }, Ay = ({
32333
32333
  communityId: e,
32334
32334
  onAuthorClick: r,
32335
32335
  onPostClick: n,
@@ -32899,7 +32899,7 @@ function o1(e) {
32899
32899
  const l = Math.floor(u / 30);
32900
32900
  return l < 12 ? `${l}mo ago` : `${Math.floor(l / 12)}y ago`;
32901
32901
  }
32902
- function Ay({
32902
+ function Sy({
32903
32903
  author: e,
32904
32904
  permlink: r,
32905
32905
  currentUser: n,
@@ -32955,7 +32955,7 @@ function Ay({
32955
32955
  h
32956
32956
  )) });
32957
32957
  }
32958
- function Sy({
32958
+ function Ty({
32959
32959
  author: e,
32960
32960
  permlink: r,
32961
32961
  currentUser: n,
@@ -33096,7 +33096,7 @@ function Sy({
33096
33096
  )) })
33097
33097
  ] });
33098
33098
  }
33099
- const Ty = ({
33099
+ const Cy = ({
33100
33100
  currentUser: e,
33101
33101
  onTabChanged: r,
33102
33102
  onPublish: n,
@@ -33590,7 +33590,7 @@ const Ty = ({
33590
33590
  ] })
33591
33591
  ] })
33592
33592
  ] }) });
33593
- }, Cy = ({
33593
+ }, Dy = ({
33594
33594
  username: e,
33595
33595
  onVideoClick: r,
33596
33596
  onAuthorClick: n,
@@ -34513,7 +34513,7 @@ const Ty = ({
34513
34513
  { id: "ecency", label: "Ecency", avatar: "https://images.hive.blog/u/ecency.waves/avatar" },
34514
34514
  { id: "threads", label: "Threads", avatar: "https://images.hive.blog/u/leothreads/avatar" },
34515
34515
  { id: "liketu", label: "Liketu", avatar: "https://images.hive.blog/u/liketu.moments/avatar" }
34516
- ], Dy = ({
34516
+ ], Py = ({
34517
34517
  username: e,
34518
34518
  currentUsername: r,
34519
34519
  onBack: n,
@@ -36502,7 +36502,7 @@ const Ty = ({
36502
36502
  "hFind",
36503
36503
  "hMarketPlace",
36504
36504
  "hEvents"
36505
- ], ns = "#f87171", Py = ({
36505
+ ], ns = "#f87171", Oy = ({
36506
36506
  backgroundColor: e = "#020617",
36507
36507
  textColor: r = "#e5e7eb",
36508
36508
  cardBackgroundColor: n = "rgba(15,23,42,0.85)",
@@ -37020,7 +37020,7 @@ const B1 = ({ row: e, fmt: r, textColor: n, cardBackgroundColor: a, dividerColor
37020
37020
  )
37021
37021
  ] })
37022
37022
  ] });
37023
- }, Oy = ({
37023
+ }, Ly = ({
37024
37024
  onBack: e,
37025
37025
  backgroundColor: r = "#111827",
37026
37026
  textColor: n = "#e5e7eb",
@@ -37585,67 +37585,69 @@ export {
37585
37585
  gs as AddCommentInput,
37586
37586
  Tr as ApiVideoFeedType,
37587
37587
  mb as AudioUploader,
37588
- Sy as CommentsList,
37588
+ Ty as CommentsList,
37589
37589
  Uf as CommentsModal,
37590
- _y as CommunitiesList,
37590
+ ky as CommunitiesList,
37591
37591
  n1 as CommunityAbout,
37592
- ky as CommunityDetail,
37592
+ Ey as CommunityDetail,
37593
37593
  s1 as CommunityMembers,
37594
- Ey as CommunityPostDetails,
37594
+ Ay as CommunityPostDetails,
37595
37595
  i1 as CommunityTeam,
37596
37596
  E0 as DEFAULT_SNAP_PARENT,
37597
37597
  Cb as EmojiPicker,
37598
- Oy as ExpensesView,
37598
+ Ly as ExpensesView,
37599
37599
  Kf as FavouriteWidget,
37600
- gy as FollowersList,
37601
- by as FollowingList,
37600
+ by as FollowersList,
37601
+ yy as FollowingList,
37602
37602
  Sb as GiphyPicker,
37603
- Py as HiveContributionsLanding,
37604
- Ny as HiveDetailPost,
37605
- wy as HiveToolbar,
37603
+ Oy as HiveContributionsLanding,
37604
+ _y as HiveDetailPost,
37605
+ Ny as HiveToolbar,
37606
37606
  nb as ImageUploader,
37607
- yy as ListOfWitnesses,
37607
+ xy as ListOfWitnesses,
37608
37608
  r2 as Modal,
37609
37609
  Ob as PollCreator,
37610
37610
  y1 as PollListItem,
37611
37611
  Gu as PostActionButton,
37612
37612
  ps as PostComposer,
37613
37613
  F2 as PostFeedList,
37614
- py as ProposalsList,
37614
+ gy as ProposalsList,
37615
37615
  rb as REWARD_OPTIONS,
37616
37616
  c0 as REWARD_OPTION_LABELS,
37617
37617
  A0 as SNAP_SUBTYPE_PARENTS,
37618
37618
  Qi as SUPPORTED_CURRENCIES,
37619
37619
  Db as TemplatePicker,
37620
- xy as TransactionHistory,
37621
- Ay as UpvoteList,
37620
+ vy as TransactionHistory,
37621
+ Sy as UpvoteList,
37622
37622
  zu as UpvoteListModal,
37623
- Ty as UserAccount,
37624
- vy as UserChannel,
37625
- Dy as UserDetailProfile,
37623
+ Cy as UserAccount,
37624
+ wy as UserChannel,
37625
+ Py as UserDetailProfile,
37626
37626
  u1 as UserFollowers,
37627
37627
  l1 as UserFollowing,
37628
37628
  h1 as UserGrowth,
37629
37629
  c1 as UserInfo,
37630
- Cy as UserProfilePage,
37630
+ Dy as UserProfilePage,
37631
37631
  Mh as VideoCard,
37632
- my as VideoDetail,
37632
+ py as VideoDetail,
37633
37633
  Su as VideoFeed,
37634
37634
  Rh as VideoInfo,
37635
37635
  Ab as VideoUploader,
37636
37636
  I2 as Wallet,
37637
37637
  It as apiService,
37638
37638
  dy as buildCommentOptions,
37639
+ Fs as createHiveRenderer,
37639
37640
  D2 as getLocalCurrency,
37640
37641
  Yf as parseHiveFrontendUrl,
37641
37642
  Qb as reducer,
37643
+ fy as renderHiveMarkdown,
37642
37644
  _a as server,
37643
37645
  Lb as templateService,
37644
37646
  oa as toast,
37645
37647
  Hu as uploadToHiveImages,
37646
- hy as useHiveImageSign,
37648
+ my as useHiveImageSign,
37647
37649
  Bf as useIsMobile,
37648
- fy as useToast,
37650
+ hy as useToast,
37649
37651
  Gf as useWalletStore,
37650
37652
  Me as userService,
37651
37653
  Br as witnessService
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hive-react-kit",
3
3
  "private": false,
4
- "version": "0.9.2",
4
+ "version": "0.9.3",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.esm.js",