@vlprojects-chat/chat 0.11.3 → 0.12.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.
Files changed (2) hide show
  1. package/dist/index.mjs +7 -6
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -30251,11 +30251,12 @@ const lS = async (e) => {
30251
30251
  };
30252
30252
  var rr = /* @__PURE__ */ ((e) => (e.Message = "message", e.SystemMessage = "system:message", e.NewPublic = "new-public", e.NewChannelUser = "new-channel-user", e.NewDirect = "new-direct", e.PollStart = "poll-start", e.PollStop = "poll-stop", e.PollVoteOpenEnded = "poll-vote-open-ended", e.PollVotesUpdate = "poll-votes-update", e.UserUpdateProfile = "user-update-profile", e.MessagePinned = "message-pinned", e.DeleteMessages = "delete-messages", e.CleanChannelMessages = "clean-channel-messages", e.UserConnected = "user-connected", e.UserMuted = "user-muted", e.UserUnmuted = "user-unmuted", e.UpdateChannelSettings = "user-update-channel-settings", e))(rr || {}), et = /* @__PURE__ */ ((e) => (e.Login = "login", e.Signup = "signup", e.Profile = "profile", e.Channels = "channels", e.Direct = "direct", e.Users = "users", e.Polls = "polls", e.CreatePoll = "create_poll", e.PollResultDetail = "poll_result_detail", e.PollResultOpenEndedDetail = "poll_result_open_ended_detail", e))(et || {});
30253
30253
  const hre = async (e) => {
30254
+ const t = e.ui.channelId;
30254
30255
  try {
30255
- const t = await Lc("get-initial"), { publics: n, user: r, channels: o } = t;
30256
- e.chat.addUsers([r]), e.chat.addChannels(o), e.chat.addPubs(n), e.auth.setMe(r), r.lang && e.ui.setLang(r.lang);
30257
- } catch (t) {
30258
- throw $e.error("Failed to get initial data", { case: "getInitialData", error: t, appId: e.auth.appId }), yt(t, (n) => n.setTransactionName("getInitialData")), t;
30256
+ const n = await Lc(`get-initial?externalId=${t}`), { publics: r, user: o, channels: i } = n;
30257
+ e.chat.addUsers([o]), e.chat.addChannels(i), e.chat.addPubs(r), e.auth.setMe(o), o.lang && e.ui.setLang(o.lang);
30258
+ } catch (n) {
30259
+ throw $e.error("Failed to get initial data", { case: "getInitialData", error: n, appId: e.auth.appId }), yt(n, (r) => r.setTransactionName("getInitialData")), n;
30259
30260
  }
30260
30261
  }, mre = async (e, t, n) => {
30261
30262
  try {
@@ -35429,7 +35430,7 @@ const YA = {
35429
35430
  }, Vse = () => {
35430
35431
  const e = te.useContext(wS);
35431
35432
  return e ? e.chatSnackbarContainer : null;
35432
- }, Bse = "@vlprojects-chat/chat", Use = "vlprojects", Wse = "0.11.3-LD-7541-reset-chat.1", Hse = "vlprojects chat", Gse = "ISC", qse = "dist/index.d.ts", zse = "./dist/index.mjs", Yse = "./dist/index.mjs", Kse = [
35433
+ }, Bse = "@vlprojects-chat/chat", Use = "vlprojects", Wse = "0.11.3", Hse = "vlprojects chat", Gse = "ISC", qse = "dist/index.d.ts", zse = "./dist/index.mjs", Yse = "./dist/index.mjs", Kse = [
35433
35434
  "dist"
35434
35435
  ], Xse = {
35435
35436
  type: "git",
@@ -57357,7 +57358,7 @@ const Eye = (e) => {
57357
57358
  /* @__PURE__ */ h.jsx(i1e, {})
57358
57359
  ] });
57359
57360
  };
57360
- var lu = { VITE_APP_VERSION: "0.11.3-LD-7541-reset-chat.1", VITE_APP_API_BASEURL: "https://api.livedigital.chat", VITE_APP_SENTRY_DSN: "https://445426b388f045748970982694bb1520@o1158674.ingest.sentry.io/6242013", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
57361
+ var lu = { VITE_APP_VERSION: "0.11.3", VITE_APP_API_BASEURL: "https://api.livedigital.chat", VITE_APP_SENTRY_DSN: "https://445426b388f045748970982694bb1520@o1158674.ingest.sentry.io/6242013", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
57361
57362
  const KD = (e) => {
57362
57363
  $e.error("Chat init error", { case: "handleInitError", errorInfo: e }), Do.emit(so.App, {
57363
57364
  event: Po.ChatInitError,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vlprojects-chat/chat",
3
3
  "author": "vlprojects",
4
- "version": "0.11.3",
4
+ "version": "0.12.0",
5
5
  "description": "vlprojects chat",
6
6
  "license": "ISC",
7
7
  "types": "dist/index.d.ts",