stream-chat-react 11.2.0 → 11.3.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.
@@ -5817,14 +5817,14 @@ var StreamChatReact = (function (exports, React$2, jsxRuntime, streamChat, React
5817
5817
 
5818
5818
  window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};
5819
5819
 
5820
- window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};function _typeof$2(obj) {
5820
+ window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};function _typeof$2(o) {
5821
5821
  "@babel/helpers - typeof";
5822
5822
 
5823
- return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
5824
- return typeof obj;
5825
- } : function (obj) {
5826
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
5827
- }, _typeof$2(obj);
5823
+ return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
5824
+ return typeof o;
5825
+ } : function (o) {
5826
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
5827
+ }, _typeof$2(o);
5828
5828
  }
5829
5829
 
5830
5830
  window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};function _classCallCheck(instance, Constructor) {
@@ -5833,20 +5833,20 @@ var StreamChatReact = (function (exports, React$2, jsxRuntime, streamChat, React
5833
5833
  }
5834
5834
  }
5835
5835
 
5836
- window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};function _toPrimitive(input, hint) {
5837
- if (_typeof$2(input) !== "object" || input === null) return input;
5838
- var prim = input[Symbol.toPrimitive];
5839
- if (prim !== undefined) {
5840
- var res = prim.call(input, hint || "default");
5841
- if (_typeof$2(res) !== "object") return res;
5836
+ window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};function toPrimitive$1(t, r) {
5837
+ if ("object" != _typeof$2(t) || !t) return t;
5838
+ var e = t[Symbol.toPrimitive];
5839
+ if (void 0 !== e) {
5840
+ var i = e.call(t, r || "default");
5841
+ if ("object" != _typeof$2(i)) return i;
5842
5842
  throw new TypeError("@@toPrimitive must return a primitive value.");
5843
5843
  }
5844
- return (hint === "string" ? String : Number)(input);
5844
+ return ("string" === r ? String : Number)(t);
5845
5845
  }
5846
5846
 
5847
- window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};function _toPropertyKey(arg) {
5848
- var key = _toPrimitive(arg, "string");
5849
- return _typeof$2(key) === "symbol" ? key : String(key);
5847
+ window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};function toPropertyKey$1(t) {
5848
+ var i = toPrimitive$1(t, "string");
5849
+ return "symbol" == _typeof$2(i) ? i : String(i);
5850
5850
  }
5851
5851
 
5852
5852
  window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};function _defineProperties(target, props) {
@@ -5855,7 +5855,7 @@ var StreamChatReact = (function (exports, React$2, jsxRuntime, streamChat, React
5855
5855
  descriptor.enumerable = descriptor.enumerable || false;
5856
5856
  descriptor.configurable = true;
5857
5857
  if ("value" in descriptor) descriptor.writable = true;
5858
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
5858
+ Object.defineProperty(target, toPropertyKey$1(descriptor.key), descriptor);
5859
5859
  }
5860
5860
  }
5861
5861
  function _createClass(Constructor, protoProps, staticProps) {
@@ -5916,7 +5916,7 @@ var StreamChatReact = (function (exports, React$2, jsxRuntime, streamChat, React
5916
5916
  }
5917
5917
 
5918
5918
  window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};function _defineProperty$3(obj, key, value) {
5919
- key = _toPropertyKey(key);
5919
+ key = toPropertyKey$1(key);
5920
5920
  if (key in obj) {
5921
5921
  Object.defineProperty(obj, key, {
5922
5922
  value: value,
@@ -16087,7 +16087,7 @@ var StreamChatReact = (function (exports, React$2, jsxRuntime, streamChat, React
16087
16087
  * @property {Array<string>} [mustUseProperty]
16088
16088
  */
16089
16089
 
16090
- const own$b = {}.hasOwnProperty;
16090
+ const own$a = {}.hasOwnProperty;
16091
16091
 
16092
16092
  /**
16093
16093
  * @param {Definition} definition
@@ -16102,7 +16102,7 @@ var StreamChatReact = (function (exports, React$2, jsxRuntime, streamChat, React
16102
16102
  let prop;
16103
16103
 
16104
16104
  for (prop in definition.properties) {
16105
- if (own$b.call(definition.properties, prop)) {
16105
+ if (own$a.call(definition.properties, prop)) {
16106
16106
  const value = definition.properties[prop];
16107
16107
  const info = new DefinedInfo(
16108
16108
  prop,
@@ -18031,7 +18031,7 @@ var StreamChatReact = (function (exports, React$2, jsxRuntime, streamChat, React
18031
18031
  * @typedef {import('./components.js').Components} Components
18032
18032
  */
18033
18033
 
18034
- const own$a = {}.hasOwnProperty;
18034
+ const own$9 = {}.hasOwnProperty;
18035
18035
 
18036
18036
  /** @type {Map<string, number>} */
18037
18037
  const emptyMap = new Map();
@@ -18168,7 +18168,7 @@ var StreamChatReact = (function (exports, React$2, jsxRuntime, streamChat, React
18168
18168
  });
18169
18169
  }
18170
18170
 
18171
- if (own$a.call(state.components, node.tagName)) {
18171
+ if (own$9.call(state.components, node.tagName)) {
18172
18172
  const key = /** @type {keyof JSX.IntrinsicElements} */ (node.tagName);
18173
18173
  type = state.components[key];
18174
18174
 
@@ -18314,7 +18314,7 @@ var StreamChatReact = (function (exports, React$2, jsxRuntime, streamChat, React
18314
18314
  let alignValue;
18315
18315
 
18316
18316
  for (prop in node.properties) {
18317
- if (prop !== 'children' && own$a.call(node.properties, prop)) {
18317
+ if (prop !== 'children' && own$9.call(node.properties, prop)) {
18318
18318
  const result = createProperty(
18319
18319
  state,
18320
18320
  ancestors,
@@ -18480,7 +18480,7 @@ var StreamChatReact = (function (exports, React$2, jsxRuntime, streamChat, React
18480
18480
  let from;
18481
18481
 
18482
18482
  for (from in domCasing) {
18483
- if (own$a.call(domCasing, from)) {
18483
+ if (own$9.call(domCasing, from)) {
18484
18484
  cssCasing[transformStyleToCssCasing(from)] = domCasing[from];
18485
18485
  }
18486
18486
  }
@@ -18559,395 +18559,6 @@ var StreamChatReact = (function (exports, React$2, jsxRuntime, streamChat, React
18559
18559
  ]
18560
18560
  };
18561
18561
 
18562
- window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};/**
18563
- * @typedef {import('micromark-util-types').Code} Code
18564
- */
18565
-
18566
- const unicodePunctuationInternal = regexCheck$9(/\p{P}/u);
18567
-
18568
- /**
18569
- * Check whether the character code represents an ASCII alpha (`a` through `z`,
18570
- * case insensitive).
18571
- *
18572
- * An **ASCII alpha** is an ASCII upper alpha or ASCII lower alpha.
18573
- *
18574
- * An **ASCII upper alpha** is a character in the inclusive range U+0041 (`A`)
18575
- * to U+005A (`Z`).
18576
- *
18577
- * An **ASCII lower alpha** is a character in the inclusive range U+0061 (`a`)
18578
- * to U+007A (`z`).
18579
- *
18580
- * @param code
18581
- * Code.
18582
- * @returns {boolean}
18583
- * Whether it matches.
18584
- */
18585
- const asciiAlpha$4 = regexCheck$9(/[A-Za-z]/);
18586
-
18587
- /**
18588
- * Check whether the character code represents an ASCII alphanumeric (`a`
18589
- * through `z`, case insensitive, or `0` through `9`).
18590
- *
18591
- * An **ASCII alphanumeric** is an ASCII digit (see `asciiDigit`) or ASCII alpha
18592
- * (see `asciiAlpha`).
18593
- *
18594
- * @param code
18595
- * Code.
18596
- * @returns {boolean}
18597
- * Whether it matches.
18598
- */
18599
- const asciiAlphanumeric$5 = regexCheck$9(/[\dA-Za-z]/);
18600
-
18601
- /**
18602
- * Check whether the character code represents an ASCII atext.
18603
- *
18604
- * atext is an ASCII alphanumeric (see `asciiAlphanumeric`), or a character in
18605
- * the inclusive ranges U+0023 NUMBER SIGN (`#`) to U+0027 APOSTROPHE (`'`),
18606
- * U+002A ASTERISK (`*`), U+002B PLUS SIGN (`+`), U+002D DASH (`-`), U+002F
18607
- * SLASH (`/`), U+003D EQUALS TO (`=`), U+003F QUESTION MARK (`?`), U+005E
18608
- * CARET (`^`) to U+0060 GRAVE ACCENT (`` ` ``), or U+007B LEFT CURLY BRACE
18609
- * (`{`) to U+007E TILDE (`~`).
18610
- *
18611
- * See:
18612
- * **\[RFC5322]**:
18613
- * [Internet Message Format](https://tools.ietf.org/html/rfc5322).
18614
- * P. Resnick.
18615
- * IETF.
18616
- *
18617
- * @param code
18618
- * Code.
18619
- * @returns {boolean}
18620
- * Whether it matches.
18621
- */
18622
- const asciiAtext$2 = regexCheck$9(/[#-'*+\--9=?A-Z^-~]/);
18623
-
18624
- /**
18625
- * Check whether a character code is an ASCII control character.
18626
- *
18627
- * An **ASCII control** is a character in the inclusive range U+0000 NULL (NUL)
18628
- * to U+001F (US), or U+007F (DEL).
18629
- *
18630
- * @param {Code} code
18631
- * Code.
18632
- * @returns {boolean}
18633
- * Whether it matches.
18634
- */
18635
- function asciiControl$3(code) {
18636
- return (
18637
- // Special whitespace codes (which have negative values), C0 and Control
18638
- // character DEL
18639
- code !== null && (code < 32 || code === 127)
18640
- )
18641
- }
18642
-
18643
- /**
18644
- * Check whether the character code represents an ASCII digit (`0` through `9`).
18645
- *
18646
- * An **ASCII digit** is a character in the inclusive range U+0030 (`0`) to
18647
- * U+0039 (`9`).
18648
- *
18649
- * @param code
18650
- * Code.
18651
- * @returns {boolean}
18652
- * Whether it matches.
18653
- */
18654
- const asciiDigit$3 = regexCheck$9(/\d/);
18655
-
18656
- /**
18657
- * Check whether the character code represents an ASCII hex digit (`a` through
18658
- * `f`, case insensitive, or `0` through `9`).
18659
- *
18660
- * An **ASCII hex digit** is an ASCII digit (see `asciiDigit`), ASCII upper hex
18661
- * digit, or an ASCII lower hex digit.
18662
- *
18663
- * An **ASCII upper hex digit** is a character in the inclusive range U+0041
18664
- * (`A`) to U+0046 (`F`).
18665
- *
18666
- * An **ASCII lower hex digit** is a character in the inclusive range U+0061
18667
- * (`a`) to U+0066 (`f`).
18668
- *
18669
- * @param code
18670
- * Code.
18671
- * @returns {boolean}
18672
- * Whether it matches.
18673
- */
18674
- const asciiHexDigit$2 = regexCheck$9(/[\dA-Fa-f]/);
18675
-
18676
- /**
18677
- * Check whether the character code represents ASCII punctuation.
18678
- *
18679
- * An **ASCII punctuation** is a character in the inclusive ranges U+0021
18680
- * EXCLAMATION MARK (`!`) to U+002F SLASH (`/`), U+003A COLON (`:`) to U+0040 AT
18681
- * SIGN (`@`), U+005B LEFT SQUARE BRACKET (`[`) to U+0060 GRAVE ACCENT
18682
- * (`` ` ``), or U+007B LEFT CURLY BRACE (`{`) to U+007E TILDE (`~`).
18683
- *
18684
- * @param code
18685
- * Code.
18686
- * @returns {boolean}
18687
- * Whether it matches.
18688
- */
18689
- const asciiPunctuation$2 = regexCheck$9(/[!-/:-@[-`{-~]/);
18690
-
18691
- /**
18692
- * Check whether a character code is a markdown line ending.
18693
- *
18694
- * A **markdown line ending** is the virtual characters M-0003 CARRIAGE RETURN
18695
- * LINE FEED (CRLF), M-0004 LINE FEED (LF) and M-0005 CARRIAGE RETURN (CR).
18696
- *
18697
- * In micromark, the actual character U+000A LINE FEED (LF) and U+000D CARRIAGE
18698
- * RETURN (CR) are replaced by these virtual characters depending on whether
18699
- * they occurred together.
18700
- *
18701
- * @param {Code} code
18702
- * Code.
18703
- * @returns {boolean}
18704
- * Whether it matches.
18705
- */
18706
- function markdownLineEnding$k(code) {
18707
- return code !== null && code < -2
18708
- }
18709
-
18710
- /**
18711
- * Check whether a character code is a markdown line ending (see
18712
- * `markdownLineEnding`) or markdown space (see `markdownSpace`).
18713
- *
18714
- * @param {Code} code
18715
- * Code.
18716
- * @returns {boolean}
18717
- * Whether it matches.
18718
- */
18719
- function markdownLineEndingOrSpace$9(code) {
18720
- return code !== null && (code < 0 || code === 32)
18721
- }
18722
-
18723
- /**
18724
- * Check whether a character code is a markdown space.
18725
- *
18726
- * A **markdown space** is the concrete character U+0020 SPACE (SP) and the
18727
- * virtual characters M-0001 VIRTUAL SPACE (VS) and M-0002 HORIZONTAL TAB (HT).
18728
- *
18729
- * In micromark, the actual character U+0009 CHARACTER TABULATION (HT) is
18730
- * replaced by one M-0002 HORIZONTAL TAB (HT) and between 0 and 3 M-0001 VIRTUAL
18731
- * SPACE (VS) characters, depending on the column at which the tab occurred.
18732
- *
18733
- * @param {Code} code
18734
- * Code.
18735
- * @returns {boolean}
18736
- * Whether it matches.
18737
- */
18738
- function markdownSpace$a(code) {
18739
- return code === -2 || code === -1 || code === 32
18740
- }
18741
-
18742
- // Size note: removing ASCII from the regex and using `asciiPunctuation` here
18743
- // In fact adds to the bundle size.
18744
- /**
18745
- * Check whether the character code represents Unicode punctuation.
18746
- *
18747
- * A **Unicode punctuation** is a character in the Unicode `Pc` (Punctuation,
18748
- * Connector), `Pd` (Punctuation, Dash), `Pe` (Punctuation, Close), `Pf`
18749
- * (Punctuation, Final quote), `Pi` (Punctuation, Initial quote), `Po`
18750
- * (Punctuation, Other), or `Ps` (Punctuation, Open) categories, or an ASCII
18751
- * punctuation (see `asciiPunctuation`).
18752
- *
18753
- * See:
18754
- * **\[UNICODE]**:
18755
- * [The Unicode Standard](https://www.unicode.org/versions/).
18756
- * Unicode Consortium.
18757
- *
18758
- * @param {Code} code
18759
- * Code.
18760
- * @returns {boolean}
18761
- * Whether it matches.
18762
- */
18763
- function unicodePunctuation$3(code) {
18764
- return asciiPunctuation$2(code) || unicodePunctuationInternal(code)
18765
- }
18766
-
18767
- /**
18768
- * Check whether the character code represents Unicode whitespace.
18769
- *
18770
- * Note that this does handle micromark specific markdown whitespace characters.
18771
- * See `markdownLineEndingOrSpace` to check that.
18772
- *
18773
- * A **Unicode whitespace** is a character in the Unicode `Zs` (Separator,
18774
- * Space) category, or U+0009 CHARACTER TABULATION (HT), U+000A LINE FEED (LF),
18775
- * U+000C (FF), or U+000D CARRIAGE RETURN (CR) (**\[UNICODE]**).
18776
- *
18777
- * See:
18778
- * **\[UNICODE]**:
18779
- * [The Unicode Standard](https://www.unicode.org/versions/).
18780
- * Unicode Consortium.
18781
- *
18782
- * @param code
18783
- * Code.
18784
- * @returns {boolean}
18785
- * Whether it matches.
18786
- */
18787
- const unicodeWhitespace$2 = regexCheck$9(/\s/);
18788
-
18789
- /**
18790
- * Create a code check from a regex.
18791
- *
18792
- * @param {RegExp} regex
18793
- * @returns {(code: Code) => boolean}
18794
- */
18795
- function regexCheck$9(regex) {
18796
- return check
18797
-
18798
- /**
18799
- * Check whether a code matches the bound regex.
18800
- *
18801
- * @param {Code} code
18802
- * Character code.
18803
- * @returns {boolean}
18804
- * Whether the character code matches the bound regex.
18805
- */
18806
- function check(code) {
18807
- return code !== null && code > -1 && regex.test(String.fromCharCode(code))
18808
- }
18809
- }
18810
-
18811
- window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};const characterReferences = {'"': 'quot', '&': 'amp', '<': 'lt', '>': 'gt'};
18812
-
18813
- /**
18814
- * Encode only the dangerous HTML characters.
18815
- *
18816
- * This ensures that certain characters which have special meaning in HTML are
18817
- * dealt with.
18818
- * Technically, we can skip `>` and `"` in many cases, but CM includes them.
18819
- *
18820
- * @param {string} value
18821
- * Value to encode.
18822
- * @returns {string}
18823
- * Encoded value.
18824
- */
18825
- function encode(value) {
18826
- return value.replace(/["&<>]/g, replace)
18827
-
18828
- /**
18829
- * @param {string} value
18830
- * @returns {string}
18831
- */
18832
- function replace(value) {
18833
- // @ts-expect-error Hush, it’s fine.
18834
- return '&' + characterReferences[value] + ';'
18835
- }
18836
- }
18837
-
18838
- window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};/**
18839
- * Make a value safe for injection as a URL.
18840
- *
18841
- * This encodes unsafe characters with percent-encoding and skips already
18842
- * encoded sequences (see `normalizeUri`).
18843
- * Further unsafe characters are encoded as character references (see
18844
- * `micromark-util-encode`).
18845
- *
18846
- * A regex of allowed protocols can be given, in which case the URL is
18847
- * sanitized.
18848
- * For example, `/^(https?|ircs?|mailto|xmpp)$/i` can be used for `a[href]`, or
18849
- * `/^https?$/i` for `img[src]` (this is what `github.com` allows).
18850
- * If the URL includes an unknown protocol (one not matched by `protocol`, such
18851
- * as a dangerous example, `javascript:`), the value is ignored.
18852
- *
18853
- * @param {string | null | undefined} url
18854
- * URI to sanitize.
18855
- * @param {RegExp | null | undefined} [protocol]
18856
- * Allowed protocols.
18857
- * @returns {string}
18858
- * Sanitized URI.
18859
- */
18860
- function sanitizeUri(url, protocol) {
18861
- const value = encode(normalizeUri(url || ''));
18862
- if (!protocol) {
18863
- return value
18864
- }
18865
- const colon = value.indexOf(':');
18866
- const questionMark = value.indexOf('?');
18867
- const numberSign = value.indexOf('#');
18868
- const slash = value.indexOf('/');
18869
- if (
18870
- // If there is no protocol, it’s relative.
18871
- colon < 0 ||
18872
- // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.
18873
- (slash > -1 && colon > slash) ||
18874
- (questionMark > -1 && colon > questionMark) ||
18875
- (numberSign > -1 && colon > numberSign) ||
18876
- // It is a protocol, it should be allowed.
18877
- protocol.test(value.slice(0, colon))
18878
- ) {
18879
- return value
18880
- }
18881
- return ''
18882
- }
18883
-
18884
- /**
18885
- * Normalize a URL.
18886
- *
18887
- * Encode unsafe characters with percent-encoding, skipping already encoded
18888
- * sequences.
18889
- *
18890
- * @param {string} value
18891
- * URI to normalize.
18892
- * @returns {string}
18893
- * Normalized URI.
18894
- */
18895
- function normalizeUri(value) {
18896
- /** @type {Array<string>} */
18897
- const result = [];
18898
- let index = -1;
18899
- let start = 0;
18900
- let skip = 0;
18901
- while (++index < value.length) {
18902
- const code = value.charCodeAt(index);
18903
- /** @type {string} */
18904
- let replace = '';
18905
-
18906
- // A correct percent encoded value.
18907
- if (
18908
- code === 37 &&
18909
- asciiAlphanumeric$5(value.charCodeAt(index + 1)) &&
18910
- asciiAlphanumeric$5(value.charCodeAt(index + 2))
18911
- ) {
18912
- skip = 2;
18913
- }
18914
- // ASCII.
18915
- else if (code < 128) {
18916
- if (!/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(code))) {
18917
- replace = String.fromCharCode(code);
18918
- }
18919
- }
18920
- // Astral.
18921
- else if (code > 55_295 && code < 57_344) {
18922
- const next = value.charCodeAt(index + 1);
18923
-
18924
- // A correct surrogate pair.
18925
- if (code < 56_320 && next > 56_319 && next < 57_344) {
18926
- replace = String.fromCharCode(code, next);
18927
- skip = 1;
18928
- }
18929
- // Lone surrogate.
18930
- else {
18931
- replace = '\uFFFD';
18932
- }
18933
- }
18934
- // Unicode.
18935
- else {
18936
- replace = String.fromCharCode(code);
18937
- }
18938
- if (replace) {
18939
- result.push(value.slice(start, index), encodeURIComponent(replace));
18940
- start = index + skip + 1;
18941
- replace = '';
18942
- }
18943
- if (skip) {
18944
- index += skip;
18945
- skip = 0;
18946
- }
18947
- }
18948
- return result.join('') + value.slice(start)
18949
- }
18950
-
18951
18562
  window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};/**
18952
18563
  * @typedef {import('mdast').Nodes} Nodes
18953
18564
  *
@@ -19328,6 +18939,323 @@ var StreamChatReact = (function (exports, React$2, jsxRuntime, streamChat, React
19328
18939
  )
19329
18940
  }
19330
18941
 
18942
+ window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};/**
18943
+ * @typedef {import('micromark-util-types').Code} Code
18944
+ */
18945
+
18946
+ const unicodePunctuationInternal = regexCheck$9(/\p{P}/u);
18947
+
18948
+ /**
18949
+ * Check whether the character code represents an ASCII alpha (`a` through `z`,
18950
+ * case insensitive).
18951
+ *
18952
+ * An **ASCII alpha** is an ASCII upper alpha or ASCII lower alpha.
18953
+ *
18954
+ * An **ASCII upper alpha** is a character in the inclusive range U+0041 (`A`)
18955
+ * to U+005A (`Z`).
18956
+ *
18957
+ * An **ASCII lower alpha** is a character in the inclusive range U+0061 (`a`)
18958
+ * to U+007A (`z`).
18959
+ *
18960
+ * @param code
18961
+ * Code.
18962
+ * @returns {boolean}
18963
+ * Whether it matches.
18964
+ */
18965
+ const asciiAlpha$4 = regexCheck$9(/[A-Za-z]/);
18966
+
18967
+ /**
18968
+ * Check whether the character code represents an ASCII alphanumeric (`a`
18969
+ * through `z`, case insensitive, or `0` through `9`).
18970
+ *
18971
+ * An **ASCII alphanumeric** is an ASCII digit (see `asciiDigit`) or ASCII alpha
18972
+ * (see `asciiAlpha`).
18973
+ *
18974
+ * @param code
18975
+ * Code.
18976
+ * @returns {boolean}
18977
+ * Whether it matches.
18978
+ */
18979
+ const asciiAlphanumeric$5 = regexCheck$9(/[\dA-Za-z]/);
18980
+
18981
+ /**
18982
+ * Check whether the character code represents an ASCII atext.
18983
+ *
18984
+ * atext is an ASCII alphanumeric (see `asciiAlphanumeric`), or a character in
18985
+ * the inclusive ranges U+0023 NUMBER SIGN (`#`) to U+0027 APOSTROPHE (`'`),
18986
+ * U+002A ASTERISK (`*`), U+002B PLUS SIGN (`+`), U+002D DASH (`-`), U+002F
18987
+ * SLASH (`/`), U+003D EQUALS TO (`=`), U+003F QUESTION MARK (`?`), U+005E
18988
+ * CARET (`^`) to U+0060 GRAVE ACCENT (`` ` ``), or U+007B LEFT CURLY BRACE
18989
+ * (`{`) to U+007E TILDE (`~`).
18990
+ *
18991
+ * See:
18992
+ * **\[RFC5322]**:
18993
+ * [Internet Message Format](https://tools.ietf.org/html/rfc5322).
18994
+ * P. Resnick.
18995
+ * IETF.
18996
+ *
18997
+ * @param code
18998
+ * Code.
18999
+ * @returns {boolean}
19000
+ * Whether it matches.
19001
+ */
19002
+ const asciiAtext$2 = regexCheck$9(/[#-'*+\--9=?A-Z^-~]/);
19003
+
19004
+ /**
19005
+ * Check whether a character code is an ASCII control character.
19006
+ *
19007
+ * An **ASCII control** is a character in the inclusive range U+0000 NULL (NUL)
19008
+ * to U+001F (US), or U+007F (DEL).
19009
+ *
19010
+ * @param {Code} code
19011
+ * Code.
19012
+ * @returns {boolean}
19013
+ * Whether it matches.
19014
+ */
19015
+ function asciiControl$3(code) {
19016
+ return (
19017
+ // Special whitespace codes (which have negative values), C0 and Control
19018
+ // character DEL
19019
+ code !== null && (code < 32 || code === 127)
19020
+ )
19021
+ }
19022
+
19023
+ /**
19024
+ * Check whether the character code represents an ASCII digit (`0` through `9`).
19025
+ *
19026
+ * An **ASCII digit** is a character in the inclusive range U+0030 (`0`) to
19027
+ * U+0039 (`9`).
19028
+ *
19029
+ * @param code
19030
+ * Code.
19031
+ * @returns {boolean}
19032
+ * Whether it matches.
19033
+ */
19034
+ const asciiDigit$3 = regexCheck$9(/\d/);
19035
+
19036
+ /**
19037
+ * Check whether the character code represents an ASCII hex digit (`a` through
19038
+ * `f`, case insensitive, or `0` through `9`).
19039
+ *
19040
+ * An **ASCII hex digit** is an ASCII digit (see `asciiDigit`), ASCII upper hex
19041
+ * digit, or an ASCII lower hex digit.
19042
+ *
19043
+ * An **ASCII upper hex digit** is a character in the inclusive range U+0041
19044
+ * (`A`) to U+0046 (`F`).
19045
+ *
19046
+ * An **ASCII lower hex digit** is a character in the inclusive range U+0061
19047
+ * (`a`) to U+0066 (`f`).
19048
+ *
19049
+ * @param code
19050
+ * Code.
19051
+ * @returns {boolean}
19052
+ * Whether it matches.
19053
+ */
19054
+ const asciiHexDigit$2 = regexCheck$9(/[\dA-Fa-f]/);
19055
+
19056
+ /**
19057
+ * Check whether the character code represents ASCII punctuation.
19058
+ *
19059
+ * An **ASCII punctuation** is a character in the inclusive ranges U+0021
19060
+ * EXCLAMATION MARK (`!`) to U+002F SLASH (`/`), U+003A COLON (`:`) to U+0040 AT
19061
+ * SIGN (`@`), U+005B LEFT SQUARE BRACKET (`[`) to U+0060 GRAVE ACCENT
19062
+ * (`` ` ``), or U+007B LEFT CURLY BRACE (`{`) to U+007E TILDE (`~`).
19063
+ *
19064
+ * @param code
19065
+ * Code.
19066
+ * @returns {boolean}
19067
+ * Whether it matches.
19068
+ */
19069
+ const asciiPunctuation$2 = regexCheck$9(/[!-/:-@[-`{-~]/);
19070
+
19071
+ /**
19072
+ * Check whether a character code is a markdown line ending.
19073
+ *
19074
+ * A **markdown line ending** is the virtual characters M-0003 CARRIAGE RETURN
19075
+ * LINE FEED (CRLF), M-0004 LINE FEED (LF) and M-0005 CARRIAGE RETURN (CR).
19076
+ *
19077
+ * In micromark, the actual character U+000A LINE FEED (LF) and U+000D CARRIAGE
19078
+ * RETURN (CR) are replaced by these virtual characters depending on whether
19079
+ * they occurred together.
19080
+ *
19081
+ * @param {Code} code
19082
+ * Code.
19083
+ * @returns {boolean}
19084
+ * Whether it matches.
19085
+ */
19086
+ function markdownLineEnding$k(code) {
19087
+ return code !== null && code < -2
19088
+ }
19089
+
19090
+ /**
19091
+ * Check whether a character code is a markdown line ending (see
19092
+ * `markdownLineEnding`) or markdown space (see `markdownSpace`).
19093
+ *
19094
+ * @param {Code} code
19095
+ * Code.
19096
+ * @returns {boolean}
19097
+ * Whether it matches.
19098
+ */
19099
+ function markdownLineEndingOrSpace$9(code) {
19100
+ return code !== null && (code < 0 || code === 32)
19101
+ }
19102
+
19103
+ /**
19104
+ * Check whether a character code is a markdown space.
19105
+ *
19106
+ * A **markdown space** is the concrete character U+0020 SPACE (SP) and the
19107
+ * virtual characters M-0001 VIRTUAL SPACE (VS) and M-0002 HORIZONTAL TAB (HT).
19108
+ *
19109
+ * In micromark, the actual character U+0009 CHARACTER TABULATION (HT) is
19110
+ * replaced by one M-0002 HORIZONTAL TAB (HT) and between 0 and 3 M-0001 VIRTUAL
19111
+ * SPACE (VS) characters, depending on the column at which the tab occurred.
19112
+ *
19113
+ * @param {Code} code
19114
+ * Code.
19115
+ * @returns {boolean}
19116
+ * Whether it matches.
19117
+ */
19118
+ function markdownSpace$a(code) {
19119
+ return code === -2 || code === -1 || code === 32
19120
+ }
19121
+
19122
+ // Size note: removing ASCII from the regex and using `asciiPunctuation` here
19123
+ // In fact adds to the bundle size.
19124
+ /**
19125
+ * Check whether the character code represents Unicode punctuation.
19126
+ *
19127
+ * A **Unicode punctuation** is a character in the Unicode `Pc` (Punctuation,
19128
+ * Connector), `Pd` (Punctuation, Dash), `Pe` (Punctuation, Close), `Pf`
19129
+ * (Punctuation, Final quote), `Pi` (Punctuation, Initial quote), `Po`
19130
+ * (Punctuation, Other), or `Ps` (Punctuation, Open) categories, or an ASCII
19131
+ * punctuation (see `asciiPunctuation`).
19132
+ *
19133
+ * See:
19134
+ * **\[UNICODE]**:
19135
+ * [The Unicode Standard](https://www.unicode.org/versions/).
19136
+ * Unicode Consortium.
19137
+ *
19138
+ * @param {Code} code
19139
+ * Code.
19140
+ * @returns {boolean}
19141
+ * Whether it matches.
19142
+ */
19143
+ function unicodePunctuation$3(code) {
19144
+ return asciiPunctuation$2(code) || unicodePunctuationInternal(code)
19145
+ }
19146
+
19147
+ /**
19148
+ * Check whether the character code represents Unicode whitespace.
19149
+ *
19150
+ * Note that this does handle micromark specific markdown whitespace characters.
19151
+ * See `markdownLineEndingOrSpace` to check that.
19152
+ *
19153
+ * A **Unicode whitespace** is a character in the Unicode `Zs` (Separator,
19154
+ * Space) category, or U+0009 CHARACTER TABULATION (HT), U+000A LINE FEED (LF),
19155
+ * U+000C (FF), or U+000D CARRIAGE RETURN (CR) (**\[UNICODE]**).
19156
+ *
19157
+ * See:
19158
+ * **\[UNICODE]**:
19159
+ * [The Unicode Standard](https://www.unicode.org/versions/).
19160
+ * Unicode Consortium.
19161
+ *
19162
+ * @param code
19163
+ * Code.
19164
+ * @returns {boolean}
19165
+ * Whether it matches.
19166
+ */
19167
+ const unicodeWhitespace$2 = regexCheck$9(/\s/);
19168
+
19169
+ /**
19170
+ * Create a code check from a regex.
19171
+ *
19172
+ * @param {RegExp} regex
19173
+ * @returns {(code: Code) => boolean}
19174
+ */
19175
+ function regexCheck$9(regex) {
19176
+ return check
19177
+
19178
+ /**
19179
+ * Check whether a code matches the bound regex.
19180
+ *
19181
+ * @param {Code} code
19182
+ * Character code.
19183
+ * @returns {boolean}
19184
+ * Whether the character code matches the bound regex.
19185
+ */
19186
+ function check(code) {
19187
+ return code !== null && code > -1 && regex.test(String.fromCharCode(code))
19188
+ }
19189
+ }
19190
+
19191
+ window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};
19192
+ /**
19193
+ * Normalize a URL.
19194
+ *
19195
+ * Encode unsafe characters with percent-encoding, skipping already encoded
19196
+ * sequences.
19197
+ *
19198
+ * @param {string} value
19199
+ * URI to normalize.
19200
+ * @returns {string}
19201
+ * Normalized URI.
19202
+ */
19203
+ function normalizeUri(value) {
19204
+ /** @type {Array<string>} */
19205
+ const result = [];
19206
+ let index = -1;
19207
+ let start = 0;
19208
+ let skip = 0;
19209
+ while (++index < value.length) {
19210
+ const code = value.charCodeAt(index);
19211
+ /** @type {string} */
19212
+ let replace = '';
19213
+
19214
+ // A correct percent encoded value.
19215
+ if (
19216
+ code === 37 &&
19217
+ asciiAlphanumeric$5(value.charCodeAt(index + 1)) &&
19218
+ asciiAlphanumeric$5(value.charCodeAt(index + 2))
19219
+ ) {
19220
+ skip = 2;
19221
+ }
19222
+ // ASCII.
19223
+ else if (code < 128) {
19224
+ if (!/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(code))) {
19225
+ replace = String.fromCharCode(code);
19226
+ }
19227
+ }
19228
+ // Astral.
19229
+ else if (code > 55_295 && code < 57_344) {
19230
+ const next = value.charCodeAt(index + 1);
19231
+
19232
+ // A correct surrogate pair.
19233
+ if (code < 56_320 && next > 56_319 && next < 57_344) {
19234
+ replace = String.fromCharCode(code, next);
19235
+ skip = 1;
19236
+ }
19237
+ // Lone surrogate.
19238
+ else {
19239
+ replace = '\uFFFD';
19240
+ }
19241
+ }
19242
+ // Unicode.
19243
+ else {
19244
+ replace = String.fromCharCode(code);
19245
+ }
19246
+ if (replace) {
19247
+ result.push(value.slice(start, index), encodeURIComponent(replace));
19248
+ start = index + skip + 1;
19249
+ replace = '';
19250
+ }
19251
+ if (skip) {
19252
+ index += skip;
19253
+ skip = 0;
19254
+ }
19255
+ }
19256
+ return result.join('') + value.slice(start)
19257
+ }
19258
+
19331
19259
  window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};/**
19332
19260
  * @typedef {import('micromark-util-types').Effects} Effects
19333
19261
  * @typedef {import('micromark-util-types').State} State
@@ -27491,7 +27419,7 @@ var StreamChatReact = (function (exports, React$2, jsxRuntime, streamChat, React
27491
27419
  *
27492
27420
  * @typedef {import('../index.js').CompileData} CompileData
27493
27421
  */
27494
- const own$9 = {}.hasOwnProperty;
27422
+ const own$8 = {}.hasOwnProperty;
27495
27423
 
27496
27424
  /**
27497
27425
  * Turn markdown into a syntax tree.
@@ -27684,7 +27612,7 @@ var StreamChatReact = (function (exports, React$2, jsxRuntime, streamChat, React
27684
27612
  index = -1;
27685
27613
  while (++index < events.length) {
27686
27614
  const handler = config[events[index][0]];
27687
- if (own$9.call(handler, events[index][1].type)) {
27615
+ if (own$8.call(handler, events[index][1].type)) {
27688
27616
  handler[events[index][1].type].call(
27689
27617
  Object.assign(
27690
27618
  {
@@ -28636,7 +28564,7 @@ var StreamChatReact = (function (exports, React$2, jsxRuntime, streamChat, React
28636
28564
  /** @type {keyof Extension} */
28637
28565
  let key;
28638
28566
  for (key in extension) {
28639
- if (own$9.call(extension, key)) {
28567
+ if (own$8.call(extension, key)) {
28640
28568
  switch (key) {
28641
28569
  case 'canContainEols': {
28642
28570
  const right = extension[key];
@@ -30343,7 +30271,7 @@ var StreamChatReact = (function (exports, React$2, jsxRuntime, streamChat, React
30343
30271
  * @typedef {import('./footer.js').FootnoteBackLabelTemplate} FootnoteBackLabelTemplate
30344
30272
  */
30345
30273
 
30346
- const own$8 = {}.hasOwnProperty;
30274
+ const own$7 = {}.hasOwnProperty;
30347
30275
 
30348
30276
  /** @type {Options} */
30349
30277
  const emptyOptions$1 = {};
@@ -30416,7 +30344,7 @@ var StreamChatReact = (function (exports, React$2, jsxRuntime, streamChat, React
30416
30344
  const type = node.type;
30417
30345
  const handle = state.handlers[type];
30418
30346
 
30419
- if (own$8.call(state.handlers, type) && handle) {
30347
+ if (own$7.call(state.handlers, type) && handle) {
30420
30348
  return handle(state, node, parent)
30421
30349
  }
30422
30350
 
@@ -30572,7 +30500,7 @@ var StreamChatReact = (function (exports, React$2, jsxRuntime, streamChat, React
30572
30500
  /** @type {HastElement | HastText} */
30573
30501
  const result =
30574
30502
  'value' in node &&
30575
- !(own$8.call(data, 'hProperties') || own$8.call(data, 'hChildren'))
30503
+ !(own$7.call(data, 'hProperties') || own$7.call(data, 'hChildren'))
30576
30504
  ? {type: 'text', value: node.value}
30577
30505
  : {
30578
30506
  type: 'element',
@@ -32380,7 +32308,7 @@ var StreamChatReact = (function (exports, React$2, jsxRuntime, streamChat, React
32380
32308
  // `parse` is called.
32381
32309
  // Currently, we allow directly setting `processor.parser`, which is untyped.
32382
32310
 
32383
- const own$7 = {}.hasOwnProperty;
32311
+ const own$6 = {}.hasOwnProperty;
32384
32312
 
32385
32313
  /**
32386
32314
  * @template {Node | undefined} [ParseTree=undefined]
@@ -32601,7 +32529,7 @@ var StreamChatReact = (function (exports, React$2, jsxRuntime, streamChat, React
32601
32529
  }
32602
32530
 
32603
32531
  // Get `key`.
32604
- return (own$7.call(this.namespace, key) && this.namespace[key]) || undefined
32532
+ return (own$6.call(this.namespace, key) && this.namespace[key]) || undefined
32605
32533
  }
32606
32534
 
32607
32535
  // Set space.
@@ -33332,7 +33260,6 @@ var StreamChatReact = (function (exports, React$2, jsxRuntime, streamChat, React
33332
33260
 
33333
33261
  window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};// Register `Raw` in tree:
33334
33262
 
33335
- const own$6 = {}.hasOwnProperty;
33336
33263
  const changelog =
33337
33264
  'https://github.com/remarkjs/react-markdown/blob/main/changelog.md';
33338
33265
 
@@ -33478,7 +33405,10 @@ var StreamChatReact = (function (exports, React$2, jsxRuntime, streamChat, React
33478
33405
  let key;
33479
33406
 
33480
33407
  for (key in urlAttributes) {
33481
- if (own$6.call(urlAttributes, key) && own$6.call(node.properties, key)) {
33408
+ if (
33409
+ Object.hasOwn(urlAttributes, key) &&
33410
+ Object.hasOwn(node.properties, key)
33411
+ ) {
33482
33412
  const value = node.properties[key];
33483
33413
  const test = urlAttributes[key];
33484
33414
  if (test === null || test.includes(node.tagName)) {
@@ -33522,7 +33452,28 @@ var StreamChatReact = (function (exports, React$2, jsxRuntime, streamChat, React
33522
33452
  * Safe URL.
33523
33453
  */
33524
33454
  function defaultUrlTransform(value) {
33525
- return sanitizeUri(value, safeProtocol)
33455
+ // Same as:
33456
+ // <https://github.com/micromark/micromark/blob/929275e/packages/micromark-util-sanitize-uri/dev/index.js#L34>
33457
+ // But without the `encode` part.
33458
+ const colon = value.indexOf(':');
33459
+ const questionMark = value.indexOf('?');
33460
+ const numberSign = value.indexOf('#');
33461
+ const slash = value.indexOf('/');
33462
+
33463
+ if (
33464
+ // If there is no protocol, it’s relative.
33465
+ colon < 0 ||
33466
+ // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.
33467
+ (slash > -1 && colon > slash) ||
33468
+ (questionMark > -1 && colon > questionMark) ||
33469
+ (numberSign > -1 && colon > numberSign) ||
33470
+ // It is a protocol, it should be allowed.
33471
+ safeProtocol.test(value.slice(0, colon))
33472
+ ) {
33473
+ return value
33474
+ }
33475
+
33476
+ return ''
33526
33477
  }
33527
33478
 
33528
33479
  var lodash_uniqby = {exports: {}};
@@ -42452,14 +42403,14 @@ var StreamChatReact = (function (exports, React$2, jsxRuntime, streamChat, React
42452
42403
 
42453
42404
  window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};
42454
42405
  (function (module) {
42455
- function _typeof(obj) {
42406
+ function _typeof(o) {
42456
42407
  "@babel/helpers - typeof";
42457
42408
 
42458
- return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
42459
- return typeof obj;
42460
- } : function (obj) {
42461
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
42462
- }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
42409
+ return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
42410
+ return typeof o;
42411
+ } : function (o) {
42412
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
42413
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
42463
42414
  }
42464
42415
  module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
42465
42416
  } (_typeof$1));
@@ -42469,28 +42420,28 @@ var StreamChatReact = (function (exports, React$2, jsxRuntime, streamChat, React
42469
42420
  window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};
42470
42421
  (function (module) {
42471
42422
  var _typeof = _typeof$1.exports["default"];
42472
- function _toPrimitive(input, hint) {
42473
- if (_typeof(input) !== "object" || input === null) return input;
42474
- var prim = input[Symbol.toPrimitive];
42475
- if (prim !== undefined) {
42476
- var res = prim.call(input, hint || "default");
42477
- if (_typeof(res) !== "object") return res;
42423
+ function toPrimitive(t, r) {
42424
+ if ("object" != _typeof(t) || !t) return t;
42425
+ var e = t[Symbol.toPrimitive];
42426
+ if (void 0 !== e) {
42427
+ var i = e.call(t, r || "default");
42428
+ if ("object" != _typeof(i)) return i;
42478
42429
  throw new TypeError("@@toPrimitive must return a primitive value.");
42479
42430
  }
42480
- return (hint === "string" ? String : Number)(input);
42431
+ return ("string" === r ? String : Number)(t);
42481
42432
  }
42482
- module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
42433
+ module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
42483
42434
  } (toPrimitive));
42484
42435
 
42485
42436
  window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};
42486
42437
  (function (module) {
42487
42438
  var _typeof = _typeof$1.exports["default"];
42488
42439
  var toPrimitive$1 = toPrimitive.exports;
42489
- function _toPropertyKey(arg) {
42490
- var key = toPrimitive$1(arg, "string");
42491
- return _typeof(key) === "symbol" ? key : String(key);
42440
+ function toPropertyKey(t) {
42441
+ var i = toPrimitive$1(t, "string");
42442
+ return "symbol" == _typeof(i) ? i : String(i);
42492
42443
  }
42493
- module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
42444
+ module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
42494
42445
  } (toPropertyKey));
42495
42446
 
42496
42447
  window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};
@@ -45356,18 +45307,22 @@ var StreamChatReact = (function (exports, React$2, jsxRuntime, streamChat, React
45356
45307
 
45357
45308
  window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};var CustomMessageActionsList = function (props) {
45358
45309
  var customMessageActions = props.customMessageActions, message = props.message;
45310
+ if (!customMessageActions)
45311
+ return null;
45359
45312
  var customActionsArray = Object.keys(customMessageActions);
45360
45313
  return (React__default["default"].createElement(React__default["default"].Fragment, null, customActionsArray.map(function (customAction) {
45361
45314
  var customHandler = customMessageActions[customAction];
45362
45315
  return (React__default["default"].createElement("button", { "aria-selected": 'false', className: 'str-chat__message-actions-list-item str-chat__message-actions-list-item-button', key: customAction, onClick: function (event) { return customHandler(message, event); }, role: 'option' }, customAction));
45363
45316
  })));
45364
45317
  };
45365
- var UnMemoizedMessageActionsBox = function (props) {
45318
+
45319
+ window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};var UnMemoizedMessageActionsBox = function (props) {
45366
45320
  var getMessageActions = props.getMessageActions, handleDelete = props.handleDelete, handleEdit = props.handleEdit, handleFlag = props.handleFlag, handleMute = props.handleMute, handlePin = props.handlePin, isUserMuted = props.isUserMuted, mine = props.mine, _a = props.open, open = _a === void 0 ? false : _a;
45321
+ var _b = useComponentContext('MessageActionsBox').CustomMessageActionsList, CustomMessageActionsList$1 = _b === void 0 ? CustomMessageActionsList : _b;
45367
45322
  var setQuotedMessage = useChannelActionContext('MessageActionsBox').setQuotedMessage;
45368
- var _b = useMessageContext('MessageActionsBox'), customMessageActions = _b.customMessageActions, message = _b.message, messageListRect = _b.messageListRect;
45323
+ var _c = useMessageContext('MessageActionsBox'), customMessageActions = _c.customMessageActions, message = _c.message, messageListRect = _c.messageListRect;
45369
45324
  var t = useTranslationContext('MessageActionsBox').t;
45370
- var _c = React$2.useState(false), reverse = _c[0], setReverse = _c[1];
45325
+ var _d = React$2.useState(false), reverse = _d[0], setReverse = _d[1];
45371
45326
  var messageActions = getMessageActions();
45372
45327
  var checkIfReverse = React$2.useCallback(function (containerElement) {
45373
45328
  if (!containerElement) {
@@ -45402,7 +45357,7 @@ var StreamChatReact = (function (exports, React$2, jsxRuntime, streamChat, React
45402
45357
  var buttonClassName = 'str-chat__message-actions-list-item str-chat__message-actions-list-item-button';
45403
45358
  return (React__default["default"].createElement("div", { className: rootClassName, "data-testid": 'message-actions-box', ref: checkIfReverse },
45404
45359
  React__default["default"].createElement("div", { "aria-label": 'Message Options', className: 'str-chat__message-actions-list', role: 'listbox' },
45405
- customMessageActions && (React__default["default"].createElement(CustomMessageActionsList, { customMessageActions: customMessageActions, message: message })),
45360
+ React__default["default"].createElement(CustomMessageActionsList$1, { customMessageActions: customMessageActions, message: message }),
45406
45361
  messageActions.indexOf(MESSAGE_ACTIONS.quote) > -1 && (React__default["default"].createElement("button", { "aria-selected": 'false', className: buttonClassName, onClick: handleQuote, role: 'option' }, t('Reply'))),
45407
45362
  messageActions.indexOf(MESSAGE_ACTIONS.pin) > -1 && !message.parent_id && (React__default["default"].createElement("button", { "aria-selected": 'false', className: buttonClassName, onClick: handlePin, role: 'option' }, !message.pinned ? t('Pin') : t('Unpin'))),
45408
45363
  messageActions.indexOf(MESSAGE_ACTIONS.flag) > -1 && (React__default["default"].createElement("button", { "aria-selected": 'false', className: buttonClassName, onClick: handleFlag, role: 'option' }, t('Flag'))),
@@ -51049,6 +51004,7 @@ var StreamChatReact = (function (exports, React$2, jsxRuntime, streamChat, React
51049
51004
  Avatar: props.Avatar,
51050
51005
  BaseImage: props.BaseImage,
51051
51006
  CooldownTimer: props.CooldownTimer,
51007
+ CustomMessageActionsList: props.CustomMessageActionsList,
51052
51008
  DateSeparator: props.DateSeparator,
51053
51009
  EditMessageInput: props.EditMessageInput,
51054
51010
  EmojiPicker: props.EmojiPicker,
@@ -52430,7 +52386,7 @@ var StreamChatReact = (function (exports, React$2, jsxRuntime, streamChat, React
52430
52386
 
52431
52387
  window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};
52432
52388
 
52433
- window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};var version$1 = '11.2.0';
52389
+ window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};var version$1 = '11.3.0';
52434
52390
 
52435
52391
  window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};var useChat = function (_a) {
52436
52392
  var _b, _c;
@@ -79897,6 +79853,7 @@ var StreamChatReact = (function (exports, React$2, jsxRuntime, streamChat, React
79897
79853
  exports.ComponentProvider = ComponentProvider;
79898
79854
  exports.ConnectionStatus = ConnectionStatus;
79899
79855
  exports.CooldownTimer = CooldownTimer;
79856
+ exports.CustomMessageActionsList = CustomMessageActionsList;
79900
79857
  exports.DateSeparator = DateSeparator;
79901
79858
  exports.DefaultSuggestionList = List$1;
79902
79859
  exports.DefaultSuggestionListHeader = DefaultSuggestionListHeader;