funda-ui 4.5.676 → 4.5.677

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/Date/index.js CHANGED
@@ -1762,6 +1762,12 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
1762
1762
  set: function set(value, cb) {
1763
1763
  setChangedVal("".concat(value));
1764
1764
  cb === null || cb === void 0 ? void 0 : cb();
1765
+ },
1766
+ aiPredictReset: function aiPredictReset() {
1767
+ setTimeout(function () {
1768
+ // Avoid conflicts with other asynchronous states, resulting in invalid clearing
1769
+ setCurrentSuggestion('');
1770
+ }, 0);
1765
1771
  }
1766
1772
  };
1767
1773
  }, [contentRef]);
package/Input/index.js CHANGED
@@ -1208,6 +1208,12 @@ var Input = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(funct
1208
1208
  set: function set(value, cb) {
1209
1209
  setChangedVal("".concat(value));
1210
1210
  cb === null || cb === void 0 ? void 0 : cb();
1211
+ },
1212
+ aiPredictReset: function aiPredictReset() {
1213
+ setTimeout(function () {
1214
+ // Avoid conflicts with other asynchronous states, resulting in invalid clearing
1215
+ setCurrentSuggestion('');
1216
+ }, 0);
1211
1217
  }
1212
1218
  };
1213
1219
  }, [contentRef]);
@@ -1728,6 +1728,12 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
1728
1728
  set: function set(value, cb) {
1729
1729
  setChangedVal("".concat(value));
1730
1730
  cb === null || cb === void 0 ? void 0 : cb();
1731
+ },
1732
+ aiPredictReset: function aiPredictReset() {
1733
+ setTimeout(function () {
1734
+ // Avoid conflicts with other asynchronous states, resulting in invalid clearing
1735
+ setCurrentSuggestion('');
1736
+ }, 0);
1731
1737
  }
1732
1738
  };
1733
1739
  }, [contentRef]);
package/Textarea/index.js CHANGED
@@ -1486,6 +1486,12 @@ var Textarea = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(fu
1486
1486
  set: function set(value, cb) {
1487
1487
  setChangedVal("".concat(value));
1488
1488
  cb === null || cb === void 0 ? void 0 : cb();
1489
+ },
1490
+ aiPredictReset: function aiPredictReset() {
1491
+ setTimeout(function () {
1492
+ // Avoid conflicts with other asynchronous states, resulting in invalid clearing
1493
+ setCurrentSuggestion('');
1494
+ }, 0);
1489
1495
  }
1490
1496
  };
1491
1497
  }, [contentRef]);
@@ -1762,6 +1762,12 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
1762
1762
  set: function set(value, cb) {
1763
1763
  setChangedVal("".concat(value));
1764
1764
  cb === null || cb === void 0 ? void 0 : cb();
1765
+ },
1766
+ aiPredictReset: function aiPredictReset() {
1767
+ setTimeout(function () {
1768
+ // Avoid conflicts with other asynchronous states, resulting in invalid clearing
1769
+ setCurrentSuggestion('');
1770
+ }, 0);
1765
1771
  }
1766
1772
  };
1767
1773
  }, [contentRef]);
@@ -1208,6 +1208,12 @@ var Input = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(funct
1208
1208
  set: function set(value, cb) {
1209
1209
  setChangedVal("".concat(value));
1210
1210
  cb === null || cb === void 0 ? void 0 : cb();
1211
+ },
1212
+ aiPredictReset: function aiPredictReset() {
1213
+ setTimeout(function () {
1214
+ // Avoid conflicts with other asynchronous states, resulting in invalid clearing
1215
+ setCurrentSuggestion('');
1216
+ }, 0);
1211
1217
  }
1212
1218
  };
1213
1219
  }, [contentRef]);
@@ -1728,6 +1728,12 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
1728
1728
  set: function set(value, cb) {
1729
1729
  setChangedVal("".concat(value));
1730
1730
  cb === null || cb === void 0 ? void 0 : cb();
1731
+ },
1732
+ aiPredictReset: function aiPredictReset() {
1733
+ setTimeout(function () {
1734
+ // Avoid conflicts with other asynchronous states, resulting in invalid clearing
1735
+ setCurrentSuggestion('');
1736
+ }, 0);
1731
1737
  }
1732
1738
  };
1733
1739
  }, [contentRef]);
@@ -1486,6 +1486,12 @@ var Textarea = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(fu
1486
1486
  set: function set(value, cb) {
1487
1487
  setChangedVal("".concat(value));
1488
1488
  cb === null || cb === void 0 ? void 0 : cb();
1489
+ },
1490
+ aiPredictReset: function aiPredictReset() {
1491
+ setTimeout(function () {
1492
+ // Avoid conflicts with other asynchronous states, resulting in invalid clearing
1493
+ setCurrentSuggestion('');
1494
+ }, 0);
1489
1495
  }
1490
1496
  };
1491
1497
  }, [contentRef]);
@@ -6,8 +6,6 @@ import { clsWrite, combinedCls } from 'funda-utils/dist/cjs/cls';
6
6
  import { actualPropertyValue, getTextTop } from 'funda-utils/dist/cjs/inputsCalculation';
7
7
  import useDebounce from 'funda-utils/dist/cjs/useDebounce';
8
8
 
9
-
10
-
11
9
  export type InputProps = {
12
10
  contentRef?: React.ForwardedRef<any>;
13
11
  wrapperClassName?: string;
@@ -316,7 +314,12 @@ const Input = forwardRef((props: InputProps, externalRef: any) => {
316
314
  set: (value: string, cb?: any) => {
317
315
  setChangedVal(`${value}`);
318
316
  cb?.();
319
- }
317
+ },
318
+ aiPredictReset: () => {
319
+ setTimeout(() => { // Avoid conflicts with other asynchronous states, resulting in invalid clearing
320
+ setCurrentSuggestion('');
321
+ }, 0);
322
+ },
320
323
  }),
321
324
  [contentRef],
322
325
  );
@@ -292,7 +292,12 @@ const Textarea = forwardRef((props: TextareaProps, externalRef: any) => {
292
292
  set: (value: string, cb?: any) => {
293
293
  setChangedVal(`${value}`);
294
294
  cb?.();
295
- }
295
+ },
296
+ aiPredictReset: () => {
297
+ setTimeout(() => { // Avoid conflicts with other asynchronous states, resulting in invalid clearing
298
+ setCurrentSuggestion('');
299
+ }, 0);
300
+ },
296
301
  }),
297
302
  [contentRef]
298
303
  );
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "author": "UIUX Lab",
3
3
  "email": "uiuxlab@gmail.com",
4
4
  "name": "funda-ui",
5
- "version": "4.5.676",
5
+ "version": "4.5.677",
6
6
  "description": "React components using pure Bootstrap 5+ which does not contain any external style and script libraries.",
7
7
  "repository": {
8
8
  "type": "git",