@happeouikit/content-renderer 3.1.0 → 3.1.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.
- package/CHANGELOG.md +4 -0
- package/dist/htmlConverter.js +1 -1
- package/dist/mentioningUtils.js +2 -0
- package/dist/utils.js +1 -1
- package/package.json +4 -5
package/CHANGELOG.md
CHANGED
package/dist/htmlConverter.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import showdown from "showdown";
|
|
2
|
-
import { extraMentioning, mentioningRegex } from "
|
|
2
|
+
import { extraMentioning, mentioningRegex } from "./mentioningUtils";
|
|
3
3
|
var mentioningRegexCaseInsensitive = new RegExp(mentioningRegex, "i");
|
|
4
4
|
var mentioningRegexGroupCaseInsensitive = new RegExp(mentioningRegex, "gi");
|
|
5
5
|
var converter;
|
package/dist/utils.js
CHANGED
|
@@ -7,10 +7,10 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
7
7
|
import linkifyHtml from "linkifyjs/html";
|
|
8
8
|
import xss from "xss";
|
|
9
9
|
import { decode as decodeHtmlEntities } from "html-entities";
|
|
10
|
-
import { extraMentioning, mentioningRegex } from "@universe/frontend-utils";
|
|
11
10
|
import { fixEmojioneBug, shortToUnicode } from "@happeouikit/emojis";
|
|
12
11
|
import { MONOSPACE_FONT_URL, safeTagsAndAttributes } from "./constants";
|
|
13
12
|
import htmlConverter from "./htmlConverter";
|
|
13
|
+
import { extraMentioning, mentioningRegex } from "./mentioningUtils";
|
|
14
14
|
var mentioningRegexGroupCaseInsensitive = new RegExp(mentioningRegex, "gi");
|
|
15
15
|
var mentioningHtmlRegexGroupCaseInsensitive = new RegExp(/<user-mentio[^>]*data-user-id=["']([^"]+)["'][^>]*>(?:@|(?:@))(.+?)<\/user-mentio>/, "gi");
|
|
16
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happeouikit/content-renderer",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "Rendering html and markdown content",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -15,11 +15,10 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@happeouikit/colors": "^1.0.4",
|
|
18
|
-
"@happeouikit/copy-to-clipboard-button": "^
|
|
19
|
-
"@happeouikit/emojis": "^1.
|
|
18
|
+
"@happeouikit/copy-to-clipboard-button": "^3.0.0",
|
|
19
|
+
"@happeouikit/emojis": "^1.3.0",
|
|
20
20
|
"@happeouikit/layout": "^1.1.11",
|
|
21
|
-
"@happeouikit/typography": "^1.0
|
|
22
|
-
"@universe/frontend-utils": "^0.35.1",
|
|
21
|
+
"@happeouikit/typography": "^1.1.0",
|
|
23
22
|
"html-entities": "^2.3.2",
|
|
24
23
|
"linkifyjs": "^2.1.8",
|
|
25
24
|
"loadjs": "^4.2.0",
|