@bbodek/utils 0.0.2 → 0.0.3
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/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +1 -1
- package/package.json +2 -3
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC"}
|
package/dist/index.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";const t=({internalEventHandler:e,externalEventHandler:t})=>(n,...r)=>{n.stopPropagation(),e(n,...r),t&&t(n,...r)},n=({disabled:e=!1,fn:t})=>e?void 0:t(),r=({text:t,targetText:n})=>{if(""===n||""===t)return t;const r=new RegExp(`(${n})`,"gi");return t.split(r).map(((t,r)=>t.toLowerCase()===n.toLowerCase()?e("span",{className:"text-in-primary-06",children:t},r):t))},o=()=>"undefined"==typeof window,a=(...e)=>t=>{e.forEach((e=>{"function"==typeof e?e(t):e&&(e.current=t)}))};export{t as composeEventHandler,n as executeFunction,r as highlightText,o as isServer,a as mergeRefs};
|
|
2
2
|
//# sourceMappingURL=index.es.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bbodek/utils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -16,8 +16,7 @@
|
|
|
16
16
|
"dev": "next dev",
|
|
17
17
|
"build": "rollup -c && tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
|
|
18
18
|
"start": "next start",
|
|
19
|
-
"lint": "next lint"
|
|
20
|
-
"pub": "npm publish"
|
|
19
|
+
"lint": "next lint"
|
|
21
20
|
},
|
|
22
21
|
"dependencies": {
|
|
23
22
|
"next": "^15.3.1",
|