hamzus-ui 0.0.129 → 0.0.130

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/index.d.ts CHANGED
@@ -57,4 +57,5 @@ export { default as Portal } from "./src/components/hamzus-ui/Portal/Portal.svel
57
57
  export { config as config } from "./src/utils/hamzus.config.js"
58
58
  export { getCookie as getCookie } from "./src/utils/clientCookie.js"
59
59
  export { setCookie as setCookie } from "./src/utils/clientCookie.js"
60
+ export { decode as decode } from "./src/utils/polyfill.js"
60
61
  export { sendRequest as sendRequest } from "./src/utils/request.js"
package/index.js CHANGED
@@ -54,4 +54,5 @@ export { default as Portal } from "./src/components/hamzus-ui/Portal/Portal.svel
54
54
  export { config as config } from "./src/utils/hamzus.config.js"
55
55
  export { getCookie as getCookie } from "./src/utils/clientCookie.js"
56
56
  export { setCookie as setCookie } from "./src/utils/clientCookie.js"
57
+ export { decode as decode } from "./src/utils/polyfill.js"
57
58
  export { sendRequest as sendRequest } from "./src/utils/request.js"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hamzus-ui",
3
- "version": "0.0.129",
3
+ "version": "0.0.130",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "svelte": "index.js",
@@ -0,0 +1,7 @@
1
+
2
+
3
+ export function decode(str) {
4
+ const txt = document.createElement("textarea");
5
+ txt.innerHTML = str;
6
+ return txt.value;
7
+ }