@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":"ApiService.d.ts","sourceRoot":"","sources":["../../src/services/ApiService.ts"],"names":[],"mappings":"AACA,OAAO,EACH,KAAK,EAEL,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,aAAa,EACb,oBAAoB,EACvB,MAAM,iBAAiB,CAAA;AAGxB,qBAAa,UAAU;IACnB,OAAO,CAAC,OAAO,CAAQ;IACvB,OAAO,CAAC,KAAK,CAAe;IAC5B,OAAO,CAAC,UAAU,CAAe;gBAErB,OAAO,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM;IAcjD,OAAO,CAAC,MAAM;IAMd;;OAEG;IACG,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC;IActF;;OAEG;IACG,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC;IA2B1E;;OAEG;IACG,YAAY,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"ApiService.d.ts","sourceRoot":"","sources":["../../src/services/ApiService.ts"],"names":[],"mappings":"AACA,OAAO,EACH,KAAK,EAEL,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,aAAa,EACb,oBAAoB,EACvB,MAAM,iBAAiB,CAAA;AAGxB,qBAAa,UAAU;IACnB,OAAO,CAAC,OAAO,CAAQ;IACvB,OAAO,CAAC,KAAK,CAAe;IAC5B,OAAO,CAAC,UAAU,CAAe;gBAErB,OAAO,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM;IAcjD,OAAO,CAAC,MAAM;IAMd;;OAEG;IACG,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC;IActF;;OAEG;IACG,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC;IA2B1E;;OAEG;IACG,YAAY,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;IAwCzC;;OAEG;IACG,sBAAsB,IAAI,OAAO,CAAC,OAAO,CAAC;IAgBhD;;OAEG;IACG,WAAW,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;IAiCxC;;OAEG;IACG,aAAa,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC;IA0B3C;;;OAGG;IACG,kBAAkB,IAAI,OAAO,CAAC,aAAa,CAAC;IAkClD;;;OAGG;IACG,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAwBnE;;OAEG;IACG,yBAAyB,CAC3B,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,GAClB,OAAO,CAAC,oBAAoB,CAAC;CAyBnC"}
|
package/dist/web-component.js
CHANGED
|
@@ -24735,9 +24735,11 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
24735
24735
|
}
|
|
24736
24736
|
catch (error) {
|
|
24737
24737
|
console.error("Failed to fetch countries:", error);
|
|
24738
|
-
|
|
24738
|
+
const err = new Error(error.response?.data?.error ||
|
|
24739
24739
|
error.message ||
|
|
24740
24740
|
"Failed to fetch countries");
|
|
24741
|
+
err.status = error.response?.status;
|
|
24742
|
+
throw err;
|
|
24741
24743
|
}
|
|
24742
24744
|
}
|
|
24743
24745
|
/**
|
|
@@ -24781,9 +24783,11 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
24781
24783
|
}
|
|
24782
24784
|
catch (error) {
|
|
24783
24785
|
console.error("Failed to fetch org sizes:", error);
|
|
24784
|
-
|
|
24786
|
+
const err = new Error(error.response?.data?.error ||
|
|
24785
24787
|
error.message ||
|
|
24786
24788
|
"Failed to fetch organization sizes");
|
|
24789
|
+
err.status = error.response?.status;
|
|
24790
|
+
throw err;
|
|
24787
24791
|
}
|
|
24788
24792
|
}
|
|
24789
24793
|
/**
|
|
@@ -24802,9 +24806,11 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
24802
24806
|
}
|
|
24803
24807
|
catch (error) {
|
|
24804
24808
|
console.error("Failed to fetch industries:", error);
|
|
24805
|
-
|
|
24809
|
+
const err = new Error(error.response?.data?.error ||
|
|
24806
24810
|
error.message ||
|
|
24807
24811
|
"Failed to fetch industries");
|
|
24812
|
+
err.status = error.response?.status;
|
|
24813
|
+
throw err;
|
|
24808
24814
|
}
|
|
24809
24815
|
}
|
|
24810
24816
|
/**
|
|
@@ -50257,6 +50263,7 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
50257
50263
|
const [isLoadingPartner, setIsLoadingPartner] = reactExports.useState(false);
|
|
50258
50264
|
const [isLoadingLocalization, setIsLoadingLocalization] = reactExports.useState(false);
|
|
50259
50265
|
const [partnerLoadFailed, setPartnerLoadFailed] = reactExports.useState(false);
|
|
50266
|
+
const [isDomainNotWhitelisted, setIsDomainNotWhitelisted] = reactExports.useState(false);
|
|
50260
50267
|
const isLoadingData = isLoadingCountries ||
|
|
50261
50268
|
isLoadingOrgSizes ||
|
|
50262
50269
|
isLoadingIndustries ||
|
|
@@ -50325,6 +50332,8 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
50325
50332
|
})
|
|
50326
50333
|
.catch((error) => {
|
|
50327
50334
|
console.error("Failed to load countries:", error);
|
|
50335
|
+
if (error.status === 403)
|
|
50336
|
+
setIsDomainNotWhitelisted(true);
|
|
50328
50337
|
})
|
|
50329
50338
|
.finally(() => {
|
|
50330
50339
|
setIsLoadingCountries(false);
|
|
@@ -50347,6 +50356,8 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
50347
50356
|
})
|
|
50348
50357
|
.catch((error) => {
|
|
50349
50358
|
console.error("Failed to load org sizes:", error);
|
|
50359
|
+
if (error.status === 403)
|
|
50360
|
+
setIsDomainNotWhitelisted(true);
|
|
50350
50361
|
})
|
|
50351
50362
|
.finally(() => {
|
|
50352
50363
|
setIsLoadingOrgSizes(false);
|
|
@@ -50363,6 +50374,8 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
50363
50374
|
})
|
|
50364
50375
|
.catch((error) => {
|
|
50365
50376
|
console.error("Failed to load industries:", error);
|
|
50377
|
+
if (error.status === 403)
|
|
50378
|
+
setIsDomainNotWhitelisted(true);
|
|
50366
50379
|
})
|
|
50367
50380
|
.finally(() => {
|
|
50368
50381
|
setIsLoadingIndustries(false);
|
|
@@ -50556,7 +50569,22 @@ var SSASFormWebComponent = (function (exports) {
|
|
|
50556
50569
|
fontSize: mergedConfig.theme?.fonts?.sizes
|
|
50557
50570
|
?.subheading || 16,
|
|
50558
50571
|
lineHeight: "28px",
|
|
50559
|
-
} }, "Your company is not eligible to use this form. Please contact your administrator for assistance."))) : (React.createElement("
|
|
50572
|
+
} }, "Your company is not eligible to use this form. Please contact your administrator for assistance."))) : isDomainNotWhitelisted ? (React.createElement("div", { style: {
|
|
50573
|
+
textAlign: "center",
|
|
50574
|
+
padding: "40px 20px",
|
|
50575
|
+
color: "#605e5c",
|
|
50576
|
+
} },
|
|
50577
|
+
React.createElement("div", { style: {
|
|
50578
|
+
fontSize: mergedConfig.theme?.fonts?.sizes?.heading ||
|
|
50579
|
+
24,
|
|
50580
|
+
fontWeight: 700,
|
|
50581
|
+
marginBottom: 16,
|
|
50582
|
+
} }, "Domain Not Whitelisted"),
|
|
50583
|
+
React.createElement("div", { style: {
|
|
50584
|
+
fontSize: mergedConfig.theme?.fonts?.sizes
|
|
50585
|
+
?.subheading || 16,
|
|
50586
|
+
lineHeight: "28px",
|
|
50587
|
+
} }, "Your company has not registered this domain into the whitelist. Please contact QSSolutions admin to add it."))) : (React.createElement("form", { className: styles.formWrapper, style: mergedConfig.customStyles?.formWrapper, onSubmit: handleSubmit(submitForm), noValidate: true },
|
|
50560
50588
|
React.createElement("div", { style: { textAlign: "center" } },
|
|
50561
50589
|
React.createElement("div", { style: {
|
|
50562
50590
|
fontSize: mergedConfig.theme?.fonts?.sizes
|