@selfcommunity/react-ui 0.7.0-alpha.143 → 0.7.0-alpha.145
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.
- package/lib/cjs/components/Category/Category.d.ts +0 -4
- package/lib/cjs/components/Category/Category.d.ts.map +1 -1
- package/lib/cjs/components/Category/Category.js +2 -3
- package/lib/cjs/components/Category/Category.js.map +1 -1
- package/lib/cjs/components/FeedObject/Actions/Comment/Comment.d.ts.map +1 -1
- package/lib/cjs/components/FeedObject/Actions/Comment/Comment.js +8 -1
- package/lib/cjs/components/FeedObject/Actions/Comment/Comment.js.map +1 -1
- package/lib/cjs/components/FeedObject/FeedObject.js +1 -1
- package/lib/cjs/components/FeedObject/FeedObject.js.map +1 -1
- package/lib/cjs/components/PrivateMessageComponent/PrivateMessageComponent.d.ts +2 -2
- package/lib/cjs/components/PrivateMessageComponent/PrivateMessageComponent.d.ts.map +1 -1
- package/lib/cjs/components/PrivateMessageComponent/PrivateMessageComponent.js +3 -3
- package/lib/cjs/components/PrivateMessageComponent/PrivateMessageComponent.js.map +1 -1
- package/lib/cjs/components/User/User.d.ts +0 -4
- package/lib/cjs/components/User/User.d.ts.map +1 -1
- package/lib/cjs/components/User/User.js +3 -4
- package/lib/cjs/components/User/User.js.map +1 -1
- package/lib/cjs/index.d.ts +1 -2
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js +1 -3
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/components/Category/Category.d.ts +0 -4
- package/lib/esm/components/Category/Category.d.ts.map +1 -1
- package/lib/esm/components/Category/Category.js +2 -3
- package/lib/esm/components/Category/Category.js.map +1 -1
- package/lib/esm/components/FeedObject/Actions/Comment/Comment.d.ts.map +1 -1
- package/lib/esm/components/FeedObject/Actions/Comment/Comment.js +8 -1
- package/lib/esm/components/FeedObject/Actions/Comment/Comment.js.map +1 -1
- package/lib/esm/components/FeedObject/FeedObject.js +1 -1
- package/lib/esm/components/FeedObject/FeedObject.js.map +1 -1
- package/lib/esm/components/PrivateMessageComponent/PrivateMessageComponent.d.ts +2 -2
- package/lib/esm/components/PrivateMessageComponent/PrivateMessageComponent.d.ts.map +1 -1
- package/lib/esm/components/PrivateMessageComponent/PrivateMessageComponent.js +3 -3
- package/lib/esm/components/PrivateMessageComponent/PrivateMessageComponent.js.map +1 -1
- package/lib/esm/components/User/User.d.ts +0 -4
- package/lib/esm/components/User/User.d.ts.map +1 -1
- package/lib/esm/components/User/User.js +3 -4
- package/lib/esm/components/User/User.js.map +1 -1
- package/lib/esm/index.d.ts +1 -2
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/esm/index.js +1 -2
- package/lib/esm/index.js.map +1 -1
- package/lib/umd/react-ui.js +6 -6
- package/lib/umd/react-ui.js.map +1 -1
- package/package.json +2 -2
- package/lib/cjs/utils/highlight.d.ts +0 -2
- package/lib/cjs/utils/highlight.d.ts.map +0 -1
- package/lib/cjs/utils/highlight.js +0 -15
- package/lib/cjs/utils/highlight.js.map +0 -1
- package/lib/esm/utils/highlight.d.ts +0 -2
- package/lib/esm/utils/highlight.d.ts.map +0 -1
- package/lib/esm/utils/highlight.js +0 -8
- package/lib/esm/utils/highlight.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@selfcommunity/react-ui",
|
|
3
|
-
"version": "0.7.0-alpha.
|
|
3
|
+
"version": "0.7.0-alpha.145",
|
|
4
4
|
"description": "React UI Components to integrate a Community created with SelfCommunity.",
|
|
5
5
|
"author": "SelfCommunity <https://www.selfcommunity.com>",
|
|
6
6
|
"homepage": "https://www.selfcommunity.com",
|
|
@@ -159,5 +159,5 @@
|
|
|
159
159
|
"bugs": {
|
|
160
160
|
"url": "https://github.com/selfcommunity/community-js/issues"
|
|
161
161
|
},
|
|
162
|
-
"gitHead": "
|
|
162
|
+
"gitHead": "7162df266968eb67091ab1ed4791e769146f453a"
|
|
163
163
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"highlight.d.ts","sourceRoot":"","sources":["../../../src/utils/highlight.tsx"],"names":[],"mappings":"AAGA,wBAAgB,SAAS,CAAC,IAAI,KAAA,EAAE,WAAW,KAAA,GAAG,GAAG,CAAC,OAAO,CAexD"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.highlight = void 0;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const material_1 = require("@mui/material");
|
|
9
|
-
function highlight(text, searchQuery) {
|
|
10
|
-
// Split on searchQuery term and include term into parts, ignore case
|
|
11
|
-
const parts = text.split(new RegExp(`(${searchQuery})`, 'gi'));
|
|
12
|
-
return (react_1.default.createElement(react_1.default.Fragment, null, parts.map((p, i) => (react_1.default.createElement(material_1.Typography, { component: 'span', key: i, sx: { fontWeight: p.toLowerCase() === searchQuery.toLowerCase() ? 'bold' : '' }, dangerouslySetInnerHTML: { __html: p } })))));
|
|
13
|
-
}
|
|
14
|
-
exports.highlight = highlight;
|
|
15
|
-
//# sourceMappingURL=highlight.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"highlight.js","sourceRoot":"","sources":["../../../src/utils/highlight.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,4CAAyC;AAEzC,SAAgB,SAAS,CAAC,IAAI,EAAE,WAAW;IACzC,qEAAqE;IACrE,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,IAAI,WAAW,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC;IAC/D,OAAO,CACL,8DACG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACnB,8BAAC,qBAAU,IACT,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,CAAC,EACN,EAAE,EAAE,EAAC,UAAU,EAAE,CAAC,CAAC,WAAW,EAAE,KAAK,WAAW,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAC,EAC7E,uBAAuB,EAAE,EAAC,MAAM,EAAE,CAAC,EAAC,GACpC,CACH,CAAC,CACD,CACJ,CAAC;AACJ,CAAC;AAfD,8BAeC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"highlight.d.ts","sourceRoot":"","sources":["../../../src/utils/highlight.tsx"],"names":[],"mappings":"AAGA,wBAAgB,SAAS,CAAC,IAAI,KAAA,EAAE,WAAW,KAAA,GAAG,GAAG,CAAC,OAAO,CAexD"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Typography } from '@mui/material';
|
|
3
|
-
export function highlight(text, searchQuery) {
|
|
4
|
-
// Split on searchQuery term and include term into parts, ignore case
|
|
5
|
-
const parts = text.split(new RegExp(`(${searchQuery})`, 'gi'));
|
|
6
|
-
return (React.createElement(React.Fragment, null, parts.map((p, i) => (React.createElement(Typography, { component: 'span', key: i, sx: { fontWeight: p.toLowerCase() === searchQuery.toLowerCase() ? 'bold' : '' }, dangerouslySetInnerHTML: { __html: p } })))));
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=highlight.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"highlight.js","sourceRoot":"","sources":["../../../src/utils/highlight.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAEzC,MAAM,UAAU,SAAS,CAAC,IAAI,EAAE,WAAW;IACzC,qEAAqE;IACrE,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,IAAI,WAAW,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC;IAC/D,OAAO,CACL,0CACG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACnB,oBAAC,UAAU,IACT,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,CAAC,EACN,EAAE,EAAE,EAAC,UAAU,EAAE,CAAC,CAAC,WAAW,EAAE,KAAK,WAAW,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAC,EAC7E,uBAAuB,EAAE,EAAC,MAAM,EAAE,CAAC,EAAC,GACpC,CACH,CAAC,CACD,CACJ,CAAC;AACJ,CAAC"}
|