@lets-events/react 12.1.7 → 12.1.9

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.
@@ -1,6 +1,6 @@
1
1
 
2
2
 
3
- > @lets-events/react@12.1.7 build
3
+ > @lets-events/react@12.1.9 build
4
4
  > tsup src/index.tsx --format esm,cjs --dts --external react
5
5
 
6
6
  CLI Building entry: src/index.tsx
@@ -10,14 +10,14 @@
10
10
  CLI Target: es6
11
11
  ESM Build start
12
12
  CJS Build start
13
- CJS dist/index.js 376.41 KB
14
- CJS ⚡️ Build success in -12208ms
13
+ ESM dist/QuillComponent-EIWPUIIH.mjs 13.81 KB
15
14
  ESM dist/chunk-TU7LKUXZ.mjs 61.98 KB
16
- ESM dist/index.mjs 277.95 KB
17
- ESM dist/QuillComponent-TLIZCM6V.mjs 13.97 KB
18
- ESM ⚡️ Build success in -12206ms
15
+ ESM dist/index.mjs 277.81 KB
16
+ ESM ⚡️ Build success in 323ms
17
+ CJS dist/index.js 376.11 KB
18
+ CJS ⚡️ Build success in 324ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 5916ms
20
+ DTS ⚡️ Build success in 5233ms
21
21
  DTS dist/index.d.mts 388.87 KB
22
22
  DTS dist/index.d.ts 388.87 KB
23
23
  ⠙
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @lets-events/react
2
2
 
3
+ ## 12.1.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Validate RG
8
+
9
+ ## 12.1.8
10
+
11
+ ### Patch Changes
12
+
13
+ - RG mask and validation
14
+
3
15
  ## 12.1.7
4
16
 
5
17
  ### Patch Changes
package/dist/index.js CHANGED
@@ -2139,7 +2139,6 @@ var init_QuillComponent = __esm({
2139
2139
  );
2140
2140
  (0, import_react20.useEffect)(() => {
2141
2141
  if (quill && value) {
2142
- console.log("entrou no quill && value");
2143
2142
  const currentContent = quill.root.innerHTML;
2144
2143
  if (currentContent !== value) {
2145
2144
  const selection = quill.getSelection();
@@ -2158,7 +2157,6 @@ var init_QuillComponent = __esm({
2158
2157
  if (source === "user") {
2159
2158
  const text = quill.getText().trim();
2160
2159
  const count = text.length;
2161
- console.log("entrou no quill && user", maxLength !== void 0, count, maxLength, "count > maxLength");
2162
2160
  if (maxLength !== void 0 && count > maxLength) {
2163
2161
  quill.deleteText(maxLength, count - maxLength);
2164
2162
  return;
@@ -11114,15 +11112,10 @@ var IdentityDocumentNumberFormField = ({
11114
11112
  label,
11115
11113
  required,
11116
11114
  placeholder: placeholder || "__.___.___-_",
11117
- mask: {
11118
- mask: "__.___.___-_",
11119
- replacement: { _: /[0-9]/ }
11120
- },
11121
11115
  validate: (value) => {
11122
- const cleaned = value.replace(/[^\d]/g, "");
11123
- const isEmpty = cleaned.length === 0;
11116
+ const isEmpty = value.length === 0;
11124
11117
  if (!required && isEmpty) return true;
11125
- if (cleaned.length >= 3) return true;
11118
+ if (value.length >= 3) return true;
11126
11119
  return validationErrorMessage;
11127
11120
  }
11128
11121
  }
package/dist/index.mjs CHANGED
@@ -8531,15 +8531,10 @@ var IdentityDocumentNumberFormField = ({
8531
8531
  label,
8532
8532
  required,
8533
8533
  placeholder: placeholder || "__.___.___-_",
8534
- mask: {
8535
- mask: "__.___.___-_",
8536
- replacement: { _: /[0-9]/ }
8537
- },
8538
8534
  validate: (value) => {
8539
- const cleaned = value.replace(/[^\d]/g, "");
8540
- const isEmpty = cleaned.length === 0;
8535
+ const isEmpty = value.length === 0;
8541
8536
  if (!required && isEmpty) return true;
8542
- if (cleaned.length >= 3) return true;
8537
+ if (value.length >= 3) return true;
8543
8538
  return validationErrorMessage;
8544
8539
  }
8545
8540
  }
@@ -9161,7 +9156,7 @@ import { useController as useController3 } from "react-hook-form";
9161
9156
  // src/components/RichEditor/RichEditor.tsx
9162
9157
  import { lazy, useEffect as useEffect6, useState as useState7, Suspense } from "react";
9163
9158
  import { jsx as jsx46 } from "react/jsx-runtime";
9164
- var QuillComponent = lazy(() => import("./QuillComponent-TLIZCM6V.mjs"));
9159
+ var QuillComponent = lazy(() => import("./QuillComponent-EIWPUIIH.mjs"));
9165
9160
  var RichEditor = (props) => {
9166
9161
  const [isClient, setIsClient] = useState7(false);
9167
9162
  useEffect6(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lets-events/react",
3
- "version": "12.1.7",
3
+ "version": "12.1.9",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -21,15 +21,10 @@ export const IdentityDocumentNumberFormField = ({
21
21
  label={label}
22
22
  required={required}
23
23
  placeholder={placeholder || "__.___.___-_"}
24
- mask={{
25
- mask: "__.___.___-_",
26
- replacement: { _: /[0-9]/ },
27
- }}
28
24
  validate={(value: string) => {
29
- const cleaned = value.replace(/[^\d]/g, "");
30
- const isEmpty = cleaned.length === 0;
25
+ const isEmpty = value.length === 0;
31
26
  if (!required && isEmpty) return true;
32
- if (cleaned.length >= 3) return true;
27
+ if (value.length >= 3) return true;
33
28
  return false || validationErrorMessage;
34
29
  }}
35
30
  />
@@ -114,7 +114,6 @@ const QuillComponent: React.FC<RichEditorProps> = ({
114
114
 
115
115
  useEffect(() => {
116
116
  if (quill && value) {
117
- console.log('entrou no quill && value')
118
117
  const currentContent = quill.root.innerHTML;
119
118
  if (currentContent !== value) {
120
119
  const selection = quill.getSelection();
@@ -135,7 +134,6 @@ const QuillComponent: React.FC<RichEditorProps> = ({
135
134
  if (source === "user") {
136
135
  const text = quill.getText().trim();
137
136
  const count = text.length;
138
- console.log('entrou no quill && user', maxLength !== undefined, count, maxLength, 'count > maxLength')
139
137
 
140
138
  if (maxLength !== undefined && count > maxLength) {
141
139
  quill.deleteText(maxLength, count - maxLength);