@selfcommunity/react-ui 0.7.0-alpha.143 → 0.7.0-alpha.144

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 (45) hide show
  1. package/lib/cjs/components/Category/Category.d.ts +0 -4
  2. package/lib/cjs/components/Category/Category.d.ts.map +1 -1
  3. package/lib/cjs/components/Category/Category.js +2 -3
  4. package/lib/cjs/components/Category/Category.js.map +1 -1
  5. package/lib/cjs/components/FeedObject/Actions/Comment/Comment.d.ts.map +1 -1
  6. package/lib/cjs/components/FeedObject/Actions/Comment/Comment.js +8 -1
  7. package/lib/cjs/components/FeedObject/Actions/Comment/Comment.js.map +1 -1
  8. package/lib/cjs/components/FeedObject/FeedObject.js +1 -1
  9. package/lib/cjs/components/FeedObject/FeedObject.js.map +1 -1
  10. package/lib/cjs/components/User/User.d.ts +0 -4
  11. package/lib/cjs/components/User/User.d.ts.map +1 -1
  12. package/lib/cjs/components/User/User.js +3 -4
  13. package/lib/cjs/components/User/User.js.map +1 -1
  14. package/lib/cjs/index.d.ts +1 -2
  15. package/lib/cjs/index.d.ts.map +1 -1
  16. package/lib/cjs/index.js +1 -3
  17. package/lib/cjs/index.js.map +1 -1
  18. package/lib/esm/components/Category/Category.d.ts +0 -4
  19. package/lib/esm/components/Category/Category.d.ts.map +1 -1
  20. package/lib/esm/components/Category/Category.js +2 -3
  21. package/lib/esm/components/Category/Category.js.map +1 -1
  22. package/lib/esm/components/FeedObject/Actions/Comment/Comment.d.ts.map +1 -1
  23. package/lib/esm/components/FeedObject/Actions/Comment/Comment.js +8 -1
  24. package/lib/esm/components/FeedObject/Actions/Comment/Comment.js.map +1 -1
  25. package/lib/esm/components/FeedObject/FeedObject.js +1 -1
  26. package/lib/esm/components/FeedObject/FeedObject.js.map +1 -1
  27. package/lib/esm/components/User/User.d.ts +0 -4
  28. package/lib/esm/components/User/User.d.ts.map +1 -1
  29. package/lib/esm/components/User/User.js +3 -4
  30. package/lib/esm/components/User/User.js.map +1 -1
  31. package/lib/esm/index.d.ts +1 -2
  32. package/lib/esm/index.d.ts.map +1 -1
  33. package/lib/esm/index.js +1 -2
  34. package/lib/esm/index.js.map +1 -1
  35. package/lib/umd/react-ui.js +6 -6
  36. package/lib/umd/react-ui.js.map +1 -1
  37. package/package.json +2 -2
  38. package/lib/cjs/utils/highlight.d.ts +0 -2
  39. package/lib/cjs/utils/highlight.d.ts.map +0 -1
  40. package/lib/cjs/utils/highlight.js +0 -15
  41. package/lib/cjs/utils/highlight.js.map +0 -1
  42. package/lib/esm/utils/highlight.d.ts +0 -2
  43. package/lib/esm/utils/highlight.d.ts.map +0 -1
  44. package/lib/esm/utils/highlight.js +0 -8
  45. 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.143",
3
+ "version": "0.7.0-alpha.144",
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": "38b1e907bc89e3a1bcd5de770365b69f2f7f8cf0"
162
+ "gitHead": "a643d4006b1949531a052258278ad5a2961f0e37"
163
163
  }
@@ -1,2 +0,0 @@
1
- export declare function highlight(text: any, searchQuery: any): JSX.Element;
2
- //# sourceMappingURL=highlight.d.ts.map
@@ -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,2 +0,0 @@
1
- export declare function highlight(text: any, searchQuery: any): JSX.Element;
2
- //# sourceMappingURL=highlight.d.ts.map
@@ -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"}