@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.
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @lets-events/react@12.1.
|
|
3
|
+
> @lets-events/react@12.1.9 build
|
|
4
4
|
> tsup src/index.tsx --format esm,cjs --dts --external react
|
|
5
5
|
|
|
6
6
|
[1G[0K[34mCLI[39m Building entry: src/index.tsx
|
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
[34mCLI[39m Target: es6
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
[34mCJS[39m Build start
|
|
13
|
-
[
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in -12208ms
|
|
13
|
+
[32mESM[39m [1mdist/QuillComponent-EIWPUIIH.mjs [22m[32m13.81 KB[39m
|
|
15
14
|
[32mESM[39m [1mdist/chunk-TU7LKUXZ.mjs [22m[32m61.98 KB[39m
|
|
16
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m277.
|
|
17
|
-
[32mESM[39m
|
|
18
|
-
[
|
|
15
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m277.81 KB[39m
|
|
16
|
+
[32mESM[39m ⚡️ Build success in 323ms
|
|
17
|
+
[32mCJS[39m [1mdist/index.js [22m[32m376.11 KB[39m
|
|
18
|
+
[32mCJS[39m ⚡️ Build success in 324ms
|
|
19
19
|
DTS Build start
|
|
20
|
-
DTS ⚡️ Build success in
|
|
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
|
[1G[0K⠙[1G[0K
|
package/CHANGELOG.md
CHANGED
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
|
|
11123
|
-
const isEmpty = cleaned.length === 0;
|
|
11116
|
+
const isEmpty = value.length === 0;
|
|
11124
11117
|
if (!required && isEmpty) return true;
|
|
11125
|
-
if (
|
|
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
|
|
8540
|
-
const isEmpty = cleaned.length === 0;
|
|
8535
|
+
const isEmpty = value.length === 0;
|
|
8541
8536
|
if (!required && isEmpty) return true;
|
|
8542
|
-
if (
|
|
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-
|
|
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
|
@@ -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
|
|
30
|
-
const isEmpty = cleaned.length === 0;
|
|
25
|
+
const isEmpty = value.length === 0;
|
|
31
26
|
if (!required && isEmpty) return true;
|
|
32
|
-
if (
|
|
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);
|