@lets-events/react 12.1.7 → 12.1.8
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.8 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
|
-
[32mCJS[39m [1mdist/index.js [22m[
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in
|
|
13
|
+
[32mCJS[39m [1mdist/index.js [22m[32m375.90 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 258ms
|
|
15
|
+
[32mESM[39m [1mdist/QuillComponent-EIWPUIIH.mjs [22m[32m13.81 KB[39m
|
|
15
16
|
[32mESM[39m [1mdist/chunk-TU7LKUXZ.mjs [22m[32m61.98 KB[39m
|
|
16
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m277.
|
|
17
|
-
[32mESM[39m
|
|
18
|
-
[32mESM[39m ⚡️ Build success in -12206ms
|
|
17
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m277.60 KB[39m
|
|
18
|
+
[32mESM[39m ⚡️ Build success in 274ms
|
|
19
19
|
DTS Build start
|
|
20
|
-
DTS ⚡️ Build success in
|
|
20
|
+
DTS ⚡️ Build success in 5155ms
|
|
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;
|
|
@@ -11113,18 +11111,7 @@ var IdentityDocumentNumberFormField = ({
|
|
|
11113
11111
|
name,
|
|
11114
11112
|
label,
|
|
11115
11113
|
required,
|
|
11116
|
-
placeholder: placeholder || "__.___.___-_"
|
|
11117
|
-
mask: {
|
|
11118
|
-
mask: "__.___.___-_",
|
|
11119
|
-
replacement: { _: /[0-9]/ }
|
|
11120
|
-
},
|
|
11121
|
-
validate: (value) => {
|
|
11122
|
-
const cleaned = value.replace(/[^\d]/g, "");
|
|
11123
|
-
const isEmpty = cleaned.length === 0;
|
|
11124
|
-
if (!required && isEmpty) return true;
|
|
11125
|
-
if (cleaned.length >= 3) return true;
|
|
11126
|
-
return validationErrorMessage;
|
|
11127
|
-
}
|
|
11114
|
+
placeholder: placeholder || "__.___.___-_"
|
|
11128
11115
|
}
|
|
11129
11116
|
);
|
|
11130
11117
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -8530,18 +8530,7 @@ var IdentityDocumentNumberFormField = ({
|
|
|
8530
8530
|
name,
|
|
8531
8531
|
label,
|
|
8532
8532
|
required,
|
|
8533
|
-
placeholder: placeholder || "__.___.___-_"
|
|
8534
|
-
mask: {
|
|
8535
|
-
mask: "__.___.___-_",
|
|
8536
|
-
replacement: { _: /[0-9]/ }
|
|
8537
|
-
},
|
|
8538
|
-
validate: (value) => {
|
|
8539
|
-
const cleaned = value.replace(/[^\d]/g, "");
|
|
8540
|
-
const isEmpty = cleaned.length === 0;
|
|
8541
|
-
if (!required && isEmpty) return true;
|
|
8542
|
-
if (cleaned.length >= 3) return true;
|
|
8543
|
-
return validationErrorMessage;
|
|
8544
|
-
}
|
|
8533
|
+
placeholder: placeholder || "__.___.___-_"
|
|
8545
8534
|
}
|
|
8546
8535
|
);
|
|
8547
8536
|
};
|
|
@@ -9161,7 +9150,7 @@ import { useController as useController3 } from "react-hook-form";
|
|
|
9161
9150
|
// src/components/RichEditor/RichEditor.tsx
|
|
9162
9151
|
import { lazy, useEffect as useEffect6, useState as useState7, Suspense } from "react";
|
|
9163
9152
|
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
9164
|
-
var QuillComponent = lazy(() => import("./QuillComponent-
|
|
9153
|
+
var QuillComponent = lazy(() => import("./QuillComponent-EIWPUIIH.mjs"));
|
|
9165
9154
|
var RichEditor = (props) => {
|
|
9166
9155
|
const [isClient, setIsClient] = useState7(false);
|
|
9167
9156
|
useEffect6(() => {
|
package/package.json
CHANGED
|
@@ -21,17 +21,6 @@ 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
|
-
validate={(value: string) => {
|
|
29
|
-
const cleaned = value.replace(/[^\d]/g, "");
|
|
30
|
-
const isEmpty = cleaned.length === 0;
|
|
31
|
-
if (!required && isEmpty) return true;
|
|
32
|
-
if (cleaned.length >= 3) return true;
|
|
33
|
-
return false || validationErrorMessage;
|
|
34
|
-
}}
|
|
35
24
|
/>
|
|
36
25
|
);
|
|
37
26
|
};
|
|
@@ -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);
|