@rxdrag/website-lib-core 0.0.10 → 0.0.11
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxdrag/website-lib-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./index.ts"
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"@types/react-dom": "^18.2.7",
|
|
25
25
|
"eslint": "^7.32.0",
|
|
26
26
|
"typescript": "^5",
|
|
27
|
-
"@rxdrag/
|
|
27
|
+
"@rxdrag/entify-hooks": "0.2.42",
|
|
28
28
|
"@rxdrag/eslint-config-custom": "0.2.12",
|
|
29
|
-
"@rxdrag/
|
|
30
|
-
"@rxdrag/
|
|
29
|
+
"@rxdrag/slate-preview": "1.2.55",
|
|
30
|
+
"@rxdrag/tsconfig": "0.2.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"clsx": "^2.1.0",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"lodash-es": "^4.17.21",
|
|
36
36
|
"react": "^18.2.0",
|
|
37
37
|
"react-dom": "^18.2.0",
|
|
38
|
-
"@rxdrag/rxcms-models": "0.3.
|
|
38
|
+
"@rxdrag/rxcms-models": "0.3.48"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"astro": "^4.0.0 || ^5.0.0"
|
|
@@ -91,7 +91,7 @@ interface FormErrors {
|
|
|
91
91
|
export type ContactFormProps = {
|
|
92
92
|
submitAlign?: "left" | "center" | "right";
|
|
93
93
|
actionUrl?: string;
|
|
94
|
-
formSalt: string;
|
|
94
|
+
//formSalt: string;
|
|
95
95
|
labels?: {
|
|
96
96
|
name?: string;
|
|
97
97
|
email?: string;
|
|
@@ -106,7 +106,7 @@ export const ContactForm = forwardRef<HTMLDivElement, ContactFormProps>(
|
|
|
106
106
|
const {
|
|
107
107
|
submitAlign = "right",
|
|
108
108
|
actionUrl = "/api/ask-for-quote",
|
|
109
|
-
formSalt,
|
|
109
|
+
//formSalt,
|
|
110
110
|
labels = {},
|
|
111
111
|
} = props;
|
|
112
112
|
const [formData, setFormData] = useState<QuoteRequest>({
|
|
@@ -210,7 +210,7 @@ export const ContactForm = forwardRef<HTMLDivElement, ContactFormProps>(
|
|
|
210
210
|
method: "POST",
|
|
211
211
|
body: JSON.stringify({
|
|
212
212
|
...formData,
|
|
213
|
-
encryptedField: encrypt(formData.phone,
|
|
213
|
+
encryptedField: encrypt(formData.phone, "yizhanfeinb"),
|
|
214
214
|
}),
|
|
215
215
|
headers: {
|
|
216
216
|
"X-Request-URL": window.location.href,
|