@vlprojects-chat/chat 0.14.1 → 0.14.2-LD-8353-chat-settings-scroll.2

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 +152 -128
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -39087,7 +39087,7 @@ const gP = {
39087
39087
  }, vce = () => {
39088
39088
  const e = pe.useContext(j2);
39089
39089
  return e ? e.chatSnackbarContainer : null;
39090
- }, yce = "@vlprojects-chat/chat", bce = "vlprojects", wce = "0.14.1-LD-8047-fix-message-input.1", Sce = "vlprojects chat", Ece = "ISC", xce = "dist/index.d.ts", Cce = "./dist/index.mjs", Tce = "./dist/index.mjs", Oce = [
39090
+ }, yce = "@vlprojects-chat/chat", bce = "vlprojects", wce = "0.14.2-LD-8353-chat-settings-scroll.1", Sce = "vlprojects chat", Ece = "ISC", xce = "dist/index.d.ts", Cce = "./dist/index.mjs", Tce = "./dist/index.mjs", Oce = [
39091
39091
  "dist"
39092
39092
  ], Rce = {
39093
39093
  type: "git",
@@ -55646,7 +55646,18 @@ const X6 = (e) => {
55646
55646
  width: "100%",
55647
55647
  height: "100%",
55648
55648
  background: "rgba(29, 29, 44, 0.7)",
55649
- zIndex: ol.DIALOG
55649
+ zIndex: ol.DIALOG,
55650
+ flexDirection: "column"
55651
+ },
55652
+ collapseRoot: {
55653
+ marginTop: "auto",
55654
+ width: "100%",
55655
+ "&.MuiCollapse-entered": {
55656
+ display: "flex"
55657
+ }
55658
+ },
55659
+ collapseWrapperInner: {
55660
+ display: "flex"
55650
55661
  },
55651
55662
  header: {
55652
55663
  height: 52,
@@ -55668,7 +55679,8 @@ const X6 = (e) => {
55668
55679
  flexDirection: "column",
55669
55680
  width: "100%",
55670
55681
  padding: "0 16px 16px",
55671
- background: G.BG
55682
+ background: G.BG,
55683
+ flexWrap: "nowrap"
55672
55684
  },
55673
55685
  throttlePeriods: {
55674
55686
  width: "100%",
@@ -55699,7 +55711,9 @@ const X6 = (e) => {
55699
55711
  optionGroups: {
55700
55712
  display: "flex",
55701
55713
  flexDirection: "column",
55702
- gap: 16
55714
+ gap: 16,
55715
+ overflowY: "auto",
55716
+ flexWrap: "nowrap"
55703
55717
  }
55704
55718
  }, lge = ht(cge, { name: "ChatSettings" }), uge = {
55705
55719
  root: {
@@ -55755,145 +55769,155 @@ const X6 = (e) => {
55755
55769
  setTimeout(() => {
55756
55770
  o(!0);
55757
55771
  }, 0);
55758
- }, []), m ? /* @__PURE__ */ h.jsx(ul, { container: m, children: /* @__PURE__ */ h.jsx(Ne, { container: !0, className: d.root, children: /* @__PURE__ */ h.jsx(wp, { in: r, sx: { marginTop: "auto", width: "100%" }, children: /* @__PURE__ */ h.jsxs(Ne, { container: !0, className: d.content, children: [
55759
- /* @__PURE__ */ h.jsxs("div", { className: d.header, children: [
55760
- /* @__PURE__ */ h.jsx(
55761
- ve,
55762
- {
55763
- variant: "h4",
55764
- className: d.title,
55765
- children: i.formatMessage({ id: "settings.chatSettings" })
55766
- }
55767
- ),
55768
- /* @__PURE__ */ h.jsx(
55769
- Zn,
55770
- {
55771
- "data-qa": "close-chat-settings",
55772
- className: d.closeButton,
55773
- onClick: y,
55774
- children: /* @__PURE__ */ h.jsx(J6, {})
55775
- }
55776
- )
55777
- ] }),
55778
- /* @__PURE__ */ h.jsxs(Eb, { className: d.optionGroups, children: [
55779
- /* @__PURE__ */ h.jsx(h1, { title: i.formatMessage({ id: "settings.clearChatTitle" }), noTopMargin: !0, children: /* @__PURE__ */ h.jsxs(
55780
- Zn,
55781
- {
55782
- className: d.clearChatButton,
55783
- "data-qa": "delete-chat-button",
55784
- onClick: w,
55785
- children: [
55786
- /* @__PURE__ */ h.jsx(Z6, {}),
55787
- i.formatMessage({ id: "clearChat" })
55788
- ]
55789
- }
55790
- ) }),
55791
- /* @__PURE__ */ h.jsxs(h1, { title: i.formatMessage({ id: "settings.sendSettingsTitle" }), children: [
55792
- /* @__PURE__ */ h.jsx(
55793
- Ms,
55794
- {
55795
- className: d.label,
55796
- control: /* @__PURE__ */ h.jsx(
55797
- yd,
55798
- {
55799
- checked: u.moderatorSendsMessagesOnly,
55800
- className: d.switch,
55801
- onChange: g,
55802
- name: "moderatorSendsMessagesOnly"
55803
- }
55804
- ),
55805
- label: i.formatMessage({ id: "settings.moderatorSendsMessagesOnly" }),
55806
- labelPlacement: "start",
55807
- sx: { marginLeft: 0 }
55808
- }
55809
- ),
55810
- /* @__PURE__ */ h.jsx(
55811
- Ms,
55812
- {
55813
- className: d.label,
55814
- control: /* @__PURE__ */ h.jsx(
55815
- yd,
55816
- {
55817
- checked: u.throttleMessages,
55818
- className: d.switch,
55819
- onChange: g,
55820
- name: "throttleMessages"
55821
- }
55822
- ),
55823
- label: i.formatMessage({ id: "settings.slowMode" }),
55824
- labelPlacement: "start",
55825
- sx: { marginLeft: 0 }
55826
- }
55827
- ),
55828
- /* @__PURE__ */ h.jsx(wp, { in: t, mountOnEnter: !0, unmountOnExit: !0, children: /* @__PURE__ */ h.jsxs(hv, { className: d.throttlePeriods, children: [
55772
+ }, []), m ? /* @__PURE__ */ h.jsx(ul, { container: m, children: /* @__PURE__ */ h.jsx(Ne, { container: !0, className: d.root, children: /* @__PURE__ */ h.jsx(
55773
+ wp,
55774
+ {
55775
+ in: r,
55776
+ classes: {
55777
+ root: d.collapseRoot,
55778
+ wrapperInner: d.collapseWrapperInner
55779
+ },
55780
+ children: /* @__PURE__ */ h.jsxs(Ne, { container: !0, className: d.content, children: [
55781
+ /* @__PURE__ */ h.jsxs("div", { className: d.header, children: [
55829
55782
  /* @__PURE__ */ h.jsx(
55830
- F6,
55783
+ ve,
55831
55784
  {
55832
- id: "throttle-label",
55833
- className: d.label,
55834
- children: i.formatMessage({ id: "settings.slowModePeriod" })
55785
+ variant: "h4",
55786
+ className: d.title,
55787
+ children: i.formatMessage({ id: "settings.chatSettings" })
55835
55788
  }
55836
55789
  ),
55837
55790
  /* @__PURE__ */ h.jsx(
55838
- q6,
55791
+ Zn,
55839
55792
  {
55840
- "aria-labelledby": "throttle-label",
55841
- defaultValue: (a == null ? void 0 : a.slowModeInSecs) || oI,
55842
- name: "throttle-period",
55843
- children: [10, 20, 30, 40, 50].map((T) => /* @__PURE__ */ h.jsx(
55844
- Ms,
55845
- {
55846
- value: T,
55847
- style: { paddingLeft: 8 },
55848
- control: /* @__PURE__ */ h.jsx(Vd, { onChange: v, className: d.radio }),
55849
- label: `${T} ${i.formatMessage({ id: "settings.seconds" })}`
55850
- },
55851
- `throttle-period-${T}`
55852
- ))
55793
+ "data-qa": "close-chat-settings",
55794
+ className: d.closeButton,
55795
+ onClick: y,
55796
+ children: /* @__PURE__ */ h.jsx(J6, {})
55853
55797
  }
55854
55798
  )
55855
- ] }) })
55856
- ] }),
55857
- /* @__PURE__ */ h.jsxs(h1, { title: i.formatMessage({ id: "settings.attachmentsSettingsTitle" }), children: [
55858
- /* @__PURE__ */ h.jsx(
55859
- Ms,
55860
- {
55861
- className: d.label,
55862
- control: /* @__PURE__ */ h.jsx(
55863
- yd,
55799
+ ] }),
55800
+ /* @__PURE__ */ h.jsxs(Eb, { className: d.optionGroups, children: [
55801
+ /* @__PURE__ */ h.jsx(h1, { title: i.formatMessage({ id: "settings.clearChatTitle" }), noTopMargin: !0, children: /* @__PURE__ */ h.jsxs(
55802
+ Zn,
55803
+ {
55804
+ className: d.clearChatButton,
55805
+ "data-qa": "delete-chat-button",
55806
+ onClick: w,
55807
+ children: [
55808
+ /* @__PURE__ */ h.jsx(Z6, {}),
55809
+ i.formatMessage({ id: "clearChat" })
55810
+ ]
55811
+ }
55812
+ ) }),
55813
+ /* @__PURE__ */ h.jsxs(h1, { title: i.formatMessage({ id: "settings.sendSettingsTitle" }), children: [
55814
+ /* @__PURE__ */ h.jsx(
55815
+ Ms,
55864
55816
  {
55865
- checked: u.moderatorAttachmentsOnly,
55866
- className: d.switch,
55867
- onChange: g,
55868
- name: "moderatorAttachmentsOnly"
55817
+ className: d.label,
55818
+ control: /* @__PURE__ */ h.jsx(
55819
+ yd,
55820
+ {
55821
+ checked: u.moderatorSendsMessagesOnly,
55822
+ className: d.switch,
55823
+ onChange: g,
55824
+ name: "moderatorSendsMessagesOnly"
55825
+ }
55826
+ ),
55827
+ label: i.formatMessage({ id: "settings.moderatorSendsMessagesOnly" }),
55828
+ labelPlacement: "start",
55829
+ sx: { marginLeft: 0 }
55869
55830
  }
55870
55831
  ),
55871
- label: i.formatMessage({ id: "settings.moderatorAttachmentsOnly" }),
55872
- labelPlacement: "start",
55873
- sx: { marginLeft: 0 }
55874
- }
55875
- ),
55876
- /* @__PURE__ */ h.jsx(
55877
- Ms,
55878
- {
55879
- className: d.label,
55880
- control: /* @__PURE__ */ h.jsx(
55881
- yd,
55832
+ /* @__PURE__ */ h.jsx(
55833
+ Ms,
55882
55834
  {
55883
- checked: u.linksDisabled,
55884
- className: d.switch,
55885
- onChange: g,
55886
- name: "linksDisabled"
55835
+ className: d.label,
55836
+ control: /* @__PURE__ */ h.jsx(
55837
+ yd,
55838
+ {
55839
+ checked: u.throttleMessages,
55840
+ className: d.switch,
55841
+ onChange: g,
55842
+ name: "throttleMessages"
55843
+ }
55844
+ ),
55845
+ label: i.formatMessage({ id: "settings.slowMode" }),
55846
+ labelPlacement: "start",
55847
+ sx: { marginLeft: 0 }
55887
55848
  }
55888
55849
  ),
55889
- label: i.formatMessage({ id: "settings.forbidLinks" }),
55890
- labelPlacement: "start",
55891
- sx: { marginLeft: 0 }
55892
- }
55893
- )
55850
+ /* @__PURE__ */ h.jsx(wp, { in: t, mountOnEnter: !0, unmountOnExit: !0, children: /* @__PURE__ */ h.jsxs(hv, { className: d.throttlePeriods, children: [
55851
+ /* @__PURE__ */ h.jsx(
55852
+ F6,
55853
+ {
55854
+ id: "throttle-label",
55855
+ className: d.label,
55856
+ children: i.formatMessage({ id: "settings.slowModePeriod" })
55857
+ }
55858
+ ),
55859
+ /* @__PURE__ */ h.jsx(
55860
+ q6,
55861
+ {
55862
+ "aria-labelledby": "throttle-label",
55863
+ defaultValue: (a == null ? void 0 : a.slowModeInSecs) || oI,
55864
+ name: "throttle-period",
55865
+ children: [10, 20, 30, 40, 50].map((T) => /* @__PURE__ */ h.jsx(
55866
+ Ms,
55867
+ {
55868
+ value: T,
55869
+ style: { paddingLeft: 8 },
55870
+ control: /* @__PURE__ */ h.jsx(Vd, { onChange: v, className: d.radio }),
55871
+ label: `${T} ${i.formatMessage({ id: "settings.seconds" })}`
55872
+ },
55873
+ `throttle-period-${T}`
55874
+ ))
55875
+ }
55876
+ )
55877
+ ] }) })
55878
+ ] }),
55879
+ /* @__PURE__ */ h.jsxs(h1, { title: i.formatMessage({ id: "settings.attachmentsSettingsTitle" }), children: [
55880
+ /* @__PURE__ */ h.jsx(
55881
+ Ms,
55882
+ {
55883
+ className: d.label,
55884
+ control: /* @__PURE__ */ h.jsx(
55885
+ yd,
55886
+ {
55887
+ checked: u.moderatorAttachmentsOnly,
55888
+ className: d.switch,
55889
+ onChange: g,
55890
+ name: "moderatorAttachmentsOnly"
55891
+ }
55892
+ ),
55893
+ label: i.formatMessage({ id: "settings.moderatorAttachmentsOnly" }),
55894
+ labelPlacement: "start",
55895
+ sx: { marginLeft: 0 }
55896
+ }
55897
+ ),
55898
+ /* @__PURE__ */ h.jsx(
55899
+ Ms,
55900
+ {
55901
+ className: d.label,
55902
+ control: /* @__PURE__ */ h.jsx(
55903
+ yd,
55904
+ {
55905
+ checked: u.linksDisabled,
55906
+ className: d.switch,
55907
+ onChange: g,
55908
+ name: "linksDisabled"
55909
+ }
55910
+ ),
55911
+ label: i.formatMessage({ id: "settings.forbidLinks" }),
55912
+ labelPlacement: "start",
55913
+ sx: { marginLeft: 0 }
55914
+ }
55915
+ )
55916
+ ] })
55917
+ ] })
55894
55918
  ] })
55895
- ] })
55896
- ] }) }) }) }) : null;
55919
+ }
55920
+ ) }) }) : null;
55897
55921
  });
55898
55922
  function Df(e, t, n, r) {
55899
55923
  function o(i) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vlprojects-chat/chat",
3
3
  "author": "vlprojects",
4
- "version": "0.14.1",
4
+ "version": "0.14.2-LD-8353-chat-settings-scroll.2",
5
5
  "description": "vlprojects chat",
6
6
  "license": "ISC",
7
7
  "types": "dist/index.d.ts",