@fluid-topics/ft-wc-utils 1.2.52 → 1.2.54

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.
@@ -6,7 +6,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
6
6
  .highlight-html-match {
7
7
  background: ${La};
8
8
  }
9
- `;function $s(r,e,o){var n,a;let i=r.getAttribute("data-highlight-html-query");if((i??"")!==(e??"")){let c=new Ws(r);if(c.unmark(),e&&e.trim()){let l={className:(n=o?.className)!==null&&n!==void 0?n:"highlight-html-match"};o?.attributes!=null&&(l.each=f=>{for(let h in o.attributes)f.setAttribute(h,o.attributes[h])}),c.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((a=e.match(/"[^"]+"/g))!==null&&a!==void 0?a:[]).forEach(f=>c.mark(f.replace(/"/g,""),{...l,separateWordSearch:!1}))}}r.setAttribute("data-highlight-html-query",e??"")}var yo={};D(yo,{noTextInputDefaultClearButton:()=>Vs,noTextSelect:()=>zs,safariEllipsisFix:()=>Gs,wordWrap:()=>js});var zs=$`
9
+ `;function $s(r,e,o){var n,a;let i=r.getAttribute("data-highlight-html-query");if((i??"")!==(e??"")){let c=new Ws(r);if(c.unmark(),e&&e.trim()){let l={className:(n=o?.className)!==null&&n!==void 0?n:"highlight-html-match",acrossElements:!0};o?.attributes!=null&&(l.each=f=>{for(let h in o.attributes)f.setAttribute(h,o.attributes[h])}),c.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((a=e.match(/"[^"]+"/g))!==null&&a!==void 0?a:[]).forEach(f=>c.mark(f.replace(/"/g,""),{...l,separateWordSearch:!1}))}}r.setAttribute("data-highlight-html-query",e??"")}var yo={};D(yo,{noTextInputDefaultClearButton:()=>Vs,noTextSelect:()=>zs,safariEllipsisFix:()=>Gs,wordWrap:()=>js});var zs=$`
10
10
  .ft-no-text-select {
11
11
  -webkit-touch-callout: none;
12
12
  -webkit-user-select: none;
@@ -19,7 +19,8 @@ export function highlightHtml(container, query, options) {
19
19
  mark.unmark();
20
20
  if (query && query.trim()) {
21
21
  const markOptions = {
22
- className: (_a = options === null || options === void 0 ? void 0 : options.className) !== null && _a !== void 0 ? _a : "highlight-html-match"
22
+ className: (_a = options === null || options === void 0 ? void 0 : options.className) !== null && _a !== void 0 ? _a : "highlight-html-match",
23
+ acrossElements: true
23
24
  };
24
25
  if ((options === null || options === void 0 ? void 0 : options.attributes) != undefined) {
25
26
  markOptions.each = ((e) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-wc-utils",
3
- "version": "1.2.52",
3
+ "version": "1.2.54",
4
4
  "description": "Internal web components tools",
5
5
  "author": "Fluid Topics <devtopics@antidot.net>",
6
6
  "license": "ISC",
@@ -15,7 +15,7 @@
15
15
  "dependencies": {
16
16
  "@floating-ui/dom": "1.5.3",
17
17
  "@fluid-topics/design-system-variables": "0.1.92",
18
- "@fluid-topics/public-api": "1.0.90",
18
+ "@fluid-topics/public-api": "1.0.91",
19
19
  "@reduxjs/toolkit": "1.9.5",
20
20
  "@types/mark.js": "8.11.12",
21
21
  "@webcomponents/scoped-custom-element-registry": "0.0.9",
@@ -24,5 +24,5 @@
24
24
  "mark.js": "8.11.1",
25
25
  "moment": "2.29.4"
26
26
  },
27
- "gitHead": "5bdea3806bc9a17448a0533c5c3ecfee0cfa8bac"
27
+ "gitHead": "80553d22b4c2fea5918e0444e195c40ddc2e47e0"
28
28
  }