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