@preline/textarea-auto-height 4.2.0 → 5.1.0

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/README.md CHANGED
@@ -218,6 +218,6 @@ Apply autoheight to multiple textareas.
218
218
 
219
219
  ## License
220
220
 
221
- Copyright (c) 2026 Preline Labs.
221
+ Copyright (c) 2024 Htmlstream.
222
222
 
223
223
  Licensed under the [MIT License](https://opensource.org/licenses/MIT).
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i=t();for(var n in i)("object"==typeof exports?exports:e)[n]=i[n]}}(self,()=>(()=>{"use strict";var e={2961(e,t){
2
2
  /*
3
3
  * HSBasePlugin
4
- * @version: 4.2.0
4
+ * @version: 5.1.0
5
5
  * @author: Preline Labs Ltd.
6
6
  * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)
7
7
  * Copyright 2024 Preline Labs Ltd.
@@ -9,7 +9,7 @@
9
9
  Object.defineProperty(t,"__esModule",{value:!0});t.default=class{constructor(e,t,i){this.el=e,this.options=t,this.events=i,this.el=e,this.options=t,this.events={}}createCollection(e,t){var i,n;let o=e;if(!Array.isArray(o)&&"undefined"!=typeof window){const e=null===(i=this.constructor)||void 0===i?void 0:i.name,t="string"==typeof e&&e.startsWith("HS")?`$hs${e.slice(2)}Collection`:null;t&&(Array.isArray(window[t])||(window[t]=[]),o=window[t])}Array.isArray(o)&&o.push({id:(null===(n=null==t?void 0:t.el)||void 0===n?void 0:n.id)||o.length+1,element:t})}fireEvent(e,t=null){if(this.events.hasOwnProperty(e))return this.events[e](t)}on(e,t){this.events[e]=t}}},537(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(i(6473));window.addEventListener("load",()=>{o.default.autoInit()}),"undefined"!=typeof window&&(window.HSTextareaAutoHeight=o.default)},6473(e,t,i){
10
10
  /*
11
11
  * HSTextareaAutoHeight
12
- * @version: 4.2.0
12
+ * @version: 5.1.0
13
13
  * @author: Preline Labs Ltd.
14
14
  * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)
15
15
  * Copyright 2024 Preline Labs Ltd.
package/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  var e={7615(e,t,i){i.d(t,{A:()=>n});
2
2
  /*
3
3
  * HSBasePlugin
4
- * @version: 4.2.0
4
+ * @version: 5.1.0
5
5
  * @author: Preline Labs Ltd.
6
6
  * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)
7
7
  * Copyright 2024 Preline Labs Ltd.
@@ -9,7 +9,7 @@ var e={7615(e,t,i){i.d(t,{A:()=>n});
9
9
  class n{constructor(e,t,i){this.el=e,this.options=t,this.events=i,this.el=e,this.options=t,this.events={}}createCollection(e,t){var i,n;let o=e;if(!Array.isArray(o)&&"undefined"!=typeof window){const e=null===(i=this.constructor)||void 0===i?void 0:i.name,t="string"==typeof e&&e.startsWith("HS")?`$hs${e.slice(2)}Collection`:null;t&&(Array.isArray(window[t])||(window[t]=[]),o=window[t])}Array.isArray(o)&&o.push({id:(null===(n=null==t?void 0:t.el)||void 0===n?void 0:n.id)||o.length+1,element:t})}fireEvent(e,t=null){if(this.events.hasOwnProperty(e))return this.events[e](t)}on(e,t){this.events[e]=t}}},6955(e,t,i){i.d(t,{A:()=>s});var n=i(7615);
10
10
  /*
11
11
  * HSTextareaAutoHeight
12
- * @version: 4.2.0
12
+ * @version: 5.1.0
13
13
  * @author: Preline Labs Ltd.
14
14
  * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)
15
15
  * Copyright 2024 Preline Labs Ltd.
package/non-auto.js CHANGED
@@ -1,7 +1,7 @@
1
1
  !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i=t();for(var n in i)("object"==typeof exports?exports:e)[n]=i[n]}}(self,()=>(()=>{"use strict";var e={2961(e,t){
2
2
  /*
3
3
  * HSBasePlugin
4
- * @version: 4.2.0
4
+ * @version: 5.1.0
5
5
  * @author: Preline Labs Ltd.
6
6
  * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)
7
7
  * Copyright 2024 Preline Labs Ltd.
@@ -9,7 +9,7 @@
9
9
  Object.defineProperty(t,"__esModule",{value:!0});t.default=class{constructor(e,t,i){this.el=e,this.options=t,this.events=i,this.el=e,this.options=t,this.events={}}createCollection(e,t){var i,n;let o=e;if(!Array.isArray(o)&&"undefined"!=typeof window){const e=null===(i=this.constructor)||void 0===i?void 0:i.name,t="string"==typeof e&&e.startsWith("HS")?`$hs${e.slice(2)}Collection`:null;t&&(Array.isArray(window[t])||(window[t]=[]),o=window[t])}Array.isArray(o)&&o.push({id:(null===(n=null==t?void 0:t.el)||void 0===n?void 0:n.id)||o.length+1,element:t})}fireEvent(e,t=null){if(this.events.hasOwnProperty(e))return this.events[e](t)}on(e,t){this.events[e]=t}}},6473(e,t,i){
10
10
  /*
11
11
  * HSTextareaAutoHeight
12
- * @version: 4.2.0
12
+ * @version: 5.1.0
13
13
  * @author: Preline Labs Ltd.
14
14
  * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)
15
15
  * Copyright 2024 Preline Labs Ltd.
package/non-auto.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  var e={7615(e,t,i){i.d(t,{A:()=>n});
2
2
  /*
3
3
  * HSBasePlugin
4
- * @version: 4.2.0
4
+ * @version: 5.1.0
5
5
  * @author: Preline Labs Ltd.
6
6
  * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)
7
7
  * Copyright 2024 Preline Labs Ltd.
@@ -9,7 +9,7 @@ var e={7615(e,t,i){i.d(t,{A:()=>n});
9
9
  class n{constructor(e,t,i){this.el=e,this.options=t,this.events=i,this.el=e,this.options=t,this.events={}}createCollection(e,t){var i,n;let o=e;if(!Array.isArray(o)&&"undefined"!=typeof window){const e=null===(i=this.constructor)||void 0===i?void 0:i.name,t="string"==typeof e&&e.startsWith("HS")?`$hs${e.slice(2)}Collection`:null;t&&(Array.isArray(window[t])||(window[t]=[]),o=window[t])}Array.isArray(o)&&o.push({id:(null===(n=null==t?void 0:t.el)||void 0===n?void 0:n.id)||o.length+1,element:t})}fireEvent(e,t=null){if(this.events.hasOwnProperty(e))return this.events[e](t)}on(e,t){this.events[e]=t}}}},t={};function i(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,i),s.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};i.d(n,{A:()=>l});var o=i(7615);
10
10
  /*
11
11
  * HSTextareaAutoHeight
12
- * @version: 4.2.0
12
+ * @version: 5.1.0
13
13
  * @author: Preline Labs Ltd.
14
14
  * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)
15
15
  * Copyright 2024 Preline Labs Ltd.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@preline/textarea-auto-height",
3
- "version": "4.2.0",
3
+ "version": "5.1.0",
4
4
  "description": "Preline UI is an open-source set of prebuilt UI components based on the utility-first Tailwind CSS framework.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",