@heliosgraphics/ui 2.0.1-beta.0 → 2.0.1-beta.2

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.
@@ -1,6 +1,6 @@
1
1
  const HREF_REFERENCE_REGEX = /\b(href|xlink:href)="#([^"]+)"/g
2
2
  const ID_ATTRIBUTE_REGEX = /\bid="([^"]+)"/g
3
- const URL_REFERENCE_REGEX = /url\(#([^\)]+)\)/g
3
+ const URL_REFERENCE_REGEX = /url\(#([^)]+)\)/g
4
4
 
5
5
  export const getIconIdScope = (id: string): string => `icon-${id.replace(/[^a-zA-Z0-9_-]/g, "")}`
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heliosgraphics/ui",
3
- "version": "2.0.1-beta.0",
3
+ "version": "2.0.1-beta.2",
4
4
  "type": "module",
5
5
  "sideEffects": [
6
6
  "*.css",
@@ -42,21 +42,21 @@
42
42
  "dependencies": {
43
43
  "@heliosgraphics/css": "^1.0.0-alpha.10",
44
44
  "@heliosgraphics/icons": "^1.0.0-beta.0",
45
- "@heliosgraphics/utils": "^6.0.0-alpha.17",
46
- "marked": "^18.0.3",
45
+ "@heliosgraphics/utils": "^6.0.0-alpha.19",
46
+ "marked": "^18.0.5",
47
47
  "marked-linkify-it": "^3.1.15",
48
48
  "marked-xhtml": "^1.0.15",
49
49
  "react-plock": "^3.6.1"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@testing-library/react": "^16.3.2",
53
- "@types/node": "^25",
54
- "esbuild": "^0.28.0",
53
+ "@types/node": "^26",
54
+ "esbuild": "^0.28.1",
55
55
  "esbuild-css-modules-plugin": "^3.1.5",
56
56
  "glob": "^13.0.6",
57
57
  "jsdom": "^29.1.1",
58
- "next": "^16.2.6",
59
- "prettier": "^3.8.3",
58
+ "next": "^16.2.9",
59
+ "prettier": "^3.8.4",
60
60
  "typescript": "^6.0.3"
61
61
  },
62
62
  "peerDependencies": {
@@ -31,6 +31,12 @@ describe("markdown", () => {
31
31
  expect(renderMarkdown(BARE_URL_SAMPLE)).toEqual(`<p>Visit https://example.com/path for details.</p>\n`)
32
32
  })
33
33
 
34
+ it("preserves complex emoji clusters", () => {
35
+ const result = renderMarkdown("👩‍💻 ❤️‍🔥 🏳️‍🌈 🧑🏽‍💻")
36
+
37
+ expect(result).toEqual(`<p>👩‍💻 ❤️‍🔥 🏳️‍🌈 🧑🏽‍💻</p>\n`)
38
+ })
39
+
34
40
  it("strips unsafe html from markdown output", () => {
35
41
  const result = renderMarkdown(MALICIOUS_SAMPLE)
36
42
 
@@ -47,6 +53,10 @@ describe("markdown", () => {
47
53
  expect(result).not.toContain("<script")
48
54
  })
49
55
 
56
+ it("preserves prose with colon-separated labels", () => {
57
+ expect(renderMarkdown("Data: reports stay readable")).toEqual(`<p>Data: reports stay readable</p>\n`)
58
+ })
59
+
50
60
  it("does not autolink urls inside inline code", () => {
51
61
  const result = renderMarkdown("`https://example.com`", { allowLinks: true })
52
62