@photoroom/ui 0.1.210 → 0.1.211

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 +1 @@
1
- {"version":3,"file":"HighLightedText.d.ts","sourceRoot":"","sources":["../../../../src/components/unsorted/HighLightedText/HighLightedText.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,KAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,KAAK,eAAe,GAAG,mBAAmB,CAAC,GAAG,EAAE,qBAAqB,CAAC,CAAC;AAEvE,eAAO,MAAM,eAAe,EAoBvB,eAAe,CAAC"}
1
+ {"version":3,"file":"HighLightedText.d.ts","sourceRoot":"","sources":["../../../../src/components/unsorted/HighLightedText/HighLightedText.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,KAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,KAAK,eAAe,GAAG,mBAAmB,CAAC,GAAG,EAAE,qBAAqB,CAAC,CAAC;AAEvE,eAAO,MAAM,eAAe,EAuBvB,eAAe,CAAC"}
package/index.mjs CHANGED
@@ -53221,6 +53221,7 @@ var cge = ({ features: e }) => /* @__PURE__ */ E("ul", {
53221
53221
  }, w7 = l(({ as: e = "p", text: t, segments: n, highLightStyle: r, className: i }, a) => {
53222
53222
  let o = t;
53223
53223
  for (let e of n) {
53224
+ if (typeof e != "string" || !e) continue;
53224
53225
  let t = e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
53225
53226
  o = o.replace(new RegExp(t, "gi"), (e) => `<strong style="${r}">${e}</strong>`);
53226
53227
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photoroom/ui",
3
- "version": "0.1.210",
3
+ "version": "0.1.211",
4
4
  "private": false,
5
5
  "description": "Photoroom design system components",
6
6
  "sideEffects": [