@qssolutions/ssas-registration-form 1.0.8 → 1.0.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/dist/components/SSASRegistrationForm.d.ts.map +1 -1
- package/dist/index.esm.js +32 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +32 -4
- package/dist/index.js.map +1 -1
- package/dist/services/ApiService.d.ts.map +1 -1
- package/dist/web-component.js +32 -4
- package/dist/web-component.js.map +1 -1
- package/dist/web-component.min.js +1 -1
- package/dist/web-component.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SSASRegistrationForm.d.ts","sourceRoot":"","sources":["../../src/components/SSASRegistrationForm.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAgC,MAAM,OAAO,CAAA;AAY/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAWpD,eAAO,MAAM,WAAW;;;;;CAKvB,CAAA;AAED,UAAU,yBAAyB;IAC/B,MAAM,EAAE,iBAAiB,CAAA;CAC5B;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,
|
|
1
|
+
{"version":3,"file":"SSASRegistrationForm.d.ts","sourceRoot":"","sources":["../../src/components/SSASRegistrationForm.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAgC,MAAM,OAAO,CAAA;AAY/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAWpD,eAAO,MAAM,WAAW;;;;;CAKvB,CAAA;AAED,UAAU,yBAAyB;IAC/B,MAAM,EAAE,iBAAiB,CAAA;CAC5B;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CAgkB9D,CAAA"}
|
package/dist/index.esm.js
CHANGED
|
@@ -21793,9 +21793,11 @@ class ApiService {
|
|
|
21793
21793
|
}
|
|
21794
21794
|
catch (error) {
|
|
21795
21795
|
console.error("Failed to fetch countries:", error);
|
|
21796
|
-
|
|
21796
|
+
const err = new Error(error.response?.data?.error ||
|
|
21797
21797
|
error.message ||
|
|
21798
21798
|
"Failed to fetch countries");
|
|
21799
|
+
err.status = error.response?.status;
|
|
21800
|
+
throw err;
|
|
21799
21801
|
}
|
|
21800
21802
|
}
|
|
21801
21803
|
/**
|
|
@@ -21839,9 +21841,11 @@ class ApiService {
|
|
|
21839
21841
|
}
|
|
21840
21842
|
catch (error) {
|
|
21841
21843
|
console.error("Failed to fetch org sizes:", error);
|
|
21842
|
-
|
|
21844
|
+
const err = new Error(error.response?.data?.error ||
|
|
21843
21845
|
error.message ||
|
|
21844
21846
|
"Failed to fetch organization sizes");
|
|
21847
|
+
err.status = error.response?.status;
|
|
21848
|
+
throw err;
|
|
21845
21849
|
}
|
|
21846
21850
|
}
|
|
21847
21851
|
/**
|
|
@@ -21860,9 +21864,11 @@ class ApiService {
|
|
|
21860
21864
|
}
|
|
21861
21865
|
catch (error) {
|
|
21862
21866
|
console.error("Failed to fetch industries:", error);
|
|
21863
|
-
|
|
21867
|
+
const err = new Error(error.response?.data?.error ||
|
|
21864
21868
|
error.message ||
|
|
21865
21869
|
"Failed to fetch industries");
|
|
21870
|
+
err.status = error.response?.status;
|
|
21871
|
+
throw err;
|
|
21866
21872
|
}
|
|
21867
21873
|
}
|
|
21868
21874
|
/**
|
|
@@ -22860,6 +22866,7 @@ const SSASRegistrationForm = ({ config, }) => {
|
|
|
22860
22866
|
const [isLoadingPartner, setIsLoadingPartner] = useState(false);
|
|
22861
22867
|
const [isLoadingLocalization, setIsLoadingLocalization] = useState(false);
|
|
22862
22868
|
const [partnerLoadFailed, setPartnerLoadFailed] = useState(false);
|
|
22869
|
+
const [isDomainNotWhitelisted, setIsDomainNotWhitelisted] = useState(false);
|
|
22863
22870
|
const isLoadingData = isLoadingCountries ||
|
|
22864
22871
|
isLoadingOrgSizes ||
|
|
22865
22872
|
isLoadingIndustries ||
|
|
@@ -22928,6 +22935,8 @@ const SSASRegistrationForm = ({ config, }) => {
|
|
|
22928
22935
|
})
|
|
22929
22936
|
.catch((error) => {
|
|
22930
22937
|
console.error("Failed to load countries:", error);
|
|
22938
|
+
if (error.status === 403)
|
|
22939
|
+
setIsDomainNotWhitelisted(true);
|
|
22931
22940
|
})
|
|
22932
22941
|
.finally(() => {
|
|
22933
22942
|
setIsLoadingCountries(false);
|
|
@@ -22950,6 +22959,8 @@ const SSASRegistrationForm = ({ config, }) => {
|
|
|
22950
22959
|
})
|
|
22951
22960
|
.catch((error) => {
|
|
22952
22961
|
console.error("Failed to load org sizes:", error);
|
|
22962
|
+
if (error.status === 403)
|
|
22963
|
+
setIsDomainNotWhitelisted(true);
|
|
22953
22964
|
})
|
|
22954
22965
|
.finally(() => {
|
|
22955
22966
|
setIsLoadingOrgSizes(false);
|
|
@@ -22966,6 +22977,8 @@ const SSASRegistrationForm = ({ config, }) => {
|
|
|
22966
22977
|
})
|
|
22967
22978
|
.catch((error) => {
|
|
22968
22979
|
console.error("Failed to load industries:", error);
|
|
22980
|
+
if (error.status === 403)
|
|
22981
|
+
setIsDomainNotWhitelisted(true);
|
|
22969
22982
|
})
|
|
22970
22983
|
.finally(() => {
|
|
22971
22984
|
setIsLoadingIndustries(false);
|
|
@@ -23159,7 +23172,22 @@ const SSASRegistrationForm = ({ config, }) => {
|
|
|
23159
23172
|
fontSize: mergedConfig.theme?.fonts?.sizes
|
|
23160
23173
|
?.subheading || 16,
|
|
23161
23174
|
lineHeight: "28px",
|
|
23162
|
-
} }, "Your company is not eligible to use this form. Please contact your administrator for assistance."))) : (React__default.createElement("
|
|
23175
|
+
} }, "Your company is not eligible to use this form. Please contact your administrator for assistance."))) : isDomainNotWhitelisted ? (React__default.createElement("div", { style: {
|
|
23176
|
+
textAlign: "center",
|
|
23177
|
+
padding: "40px 20px",
|
|
23178
|
+
color: "#605e5c",
|
|
23179
|
+
} },
|
|
23180
|
+
React__default.createElement("div", { style: {
|
|
23181
|
+
fontSize: mergedConfig.theme?.fonts?.sizes?.heading ||
|
|
23182
|
+
24,
|
|
23183
|
+
fontWeight: 700,
|
|
23184
|
+
marginBottom: 16,
|
|
23185
|
+
} }, "Domain Not Whitelisted"),
|
|
23186
|
+
React__default.createElement("div", { style: {
|
|
23187
|
+
fontSize: mergedConfig.theme?.fonts?.sizes
|
|
23188
|
+
?.subheading || 16,
|
|
23189
|
+
lineHeight: "28px",
|
|
23190
|
+
} }, "Your company has not registered this domain into the whitelist. Please contact QSSolutions admin to add it."))) : (React__default.createElement("form", { className: styles.formWrapper, style: mergedConfig.customStyles?.formWrapper, onSubmit: handleSubmit(submitForm), noValidate: true },
|
|
23163
23191
|
React__default.createElement("div", { style: { textAlign: "center" } },
|
|
23164
23192
|
React__default.createElement("div", { style: {
|
|
23165
23193
|
fontSize: mergedConfig.theme?.fonts?.sizes
|