UNPKG

@sendbird/uikit-react-native

Version:

Sendbird UIKit for React Native: A feature-rich and customizable chat UI kit with messaging, channel management, and user authentication.

38 lines (37 loc) 1.34 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; } function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } class MentionConfig { constructor(_config) { this._config = _config; } get mentionLimit() { return this._config.mentionLimit; } get suggestionLimit() { return this._config.suggestionLimit; } get delimiter() { return this._config.delimiter; } get debounceMills() { return this._config.debounceMills; } get trigger() { return this._config.trigger; } } _defineProperty(MentionConfig, "DEFAULT", { MENTION_LIMIT: 10, SUGGESTION_LIMIT: 15, DEBOUNCE_MILLS: 300, DELIMITER: ' ', TRIGGER: '@' }); var _default = exports.default = MentionConfig; //# sourceMappingURL=MentionConfig.js.map