@qssolutions/ssas-registration-form 1.0.6 → 1.0.7

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/README.md CHANGED
@@ -25,7 +25,7 @@ import React from 'react';
25
25
  import { SSASRegistrationForm, type FormLibraryConfig } from '@qssolutions/ssas-registration-form';
26
26
 
27
27
  const config: FormLibraryConfig = {
28
- partnerName: 'MyPartner',
28
+ partnerGuid: 'your-partner-guid', // Contact QSSolutions to obtain your Guid
29
29
  theme: {
30
30
  primaryColor: '#00BAE4',
31
31
  backgroundColor: '#FCFCFF',
@@ -54,7 +54,7 @@ Use the browser bundle directly — no React installation needed:
54
54
  <script>
55
55
  const form = document.getElementById('registrationForm');
56
56
  form.config = {
57
- partnerName: 'MyPartner',
57
+ partnerGuid: 'your-partner-guid', // Contact QSSolutions to obtain your Guid
58
58
  languageCode: 'en',
59
59
  theme: {
60
60
  primaryColor: '#00BAE4',
@@ -104,7 +104,7 @@ export class RegistrationComponent implements AfterViewInit {
104
104
 
105
105
  ngAfterViewInit() {
106
106
  this.formEl.nativeElement.config = {
107
- partnerName: 'MyPartner',
107
+ partnerGuid: 'your-partner-guid', // Contact QSSolutions to obtain your Guid
108
108
  languageCode: 'en',
109
109
  onSuccess: (email: string) => console.log('Success:', email),
110
110
  onError: (error: string) => console.error('Error:', error),
@@ -133,7 +133,7 @@ const form = ref(null)
133
133
 
134
134
  onMounted(() => {
135
135
  form.value.config = {
136
- partnerName: 'MyPartner',
136
+ partnerGuid: 'your-partner-guid', // Contact QSSolutions to obtain your Guid
137
137
  languageCode: 'en',
138
138
  onSuccess: (email) => console.log('Success:', email),
139
139
  onError: (error) => console.error('Error:', error),
@@ -165,8 +165,9 @@ type SupportedLanguage =
165
165
  interface FormLibraryConfig {
166
166
  // ── Required ────────────────────────────────────────────────────────────────
167
167
 
168
- // Partner identifier used for lookup and domain resolution
169
- partnerName: string;
168
+ // Unique partner identifier (GUID) used for lookup and domain resolution.
169
+ // Contact QSSolutions to obtain your Guid.
170
+ partnerGuid: string;
170
171
 
171
172
  // ── Language ────────────────────────────────────────────────────────────────
172
173
 
@@ -248,7 +249,7 @@ customStyles: {
248
249
 
249
250
  ## Runtime flow
250
251
 
251
- 1. Fetch partner record by `partnerName`
252
+ 1. Fetch partner record by `partnerGuid`
252
253
  2. Resolve partner domain → build service base URL (`https://{partner.domain}`)
253
254
  3. In parallel: fetch countries, org sizes, industries, localization
254
255
  4. Render form
package/dist/index.esm.js CHANGED
@@ -21283,7 +21283,7 @@ const API_ENDPOINTS = {
21283
21283
  GET_ORG_SIZES: '/common/orgsizing-list',
21284
21284
  GET_INDUSTRIES: '/common/industry-list',
21285
21285
  GET_PARTNER: '/partner/get',
21286
- GET_PARTNER_BY_NAME: '/partner/get-by-name',
21286
+ GET_PARTNER_BY_GUID: '/partner/get-by-guid',
21287
21287
  GET_LOCALIZATION: '/localization/get',
21288
21288
  };
21289
21289
 
@@ -21477,10 +21477,10 @@ class ApiService {
21477
21477
  * Get partner by name
21478
21478
  * Extracts name from the baseUrl automatically and cleans it
21479
21479
  */
21480
- async getPartnerByName(partnerName) {
21480
+ async getPartnerByGuid(partnerGuid) {
21481
21481
  try {
21482
- const response = await axios$1.get(this.getUrl(API_ENDPOINTS.GET_PARTNER_BY_NAME), {
21483
- params: { name: partnerName },
21482
+ const response = await axios$1.get(this.getUrl(API_ENDPOINTS.GET_PARTNER_BY_GUID), {
21483
+ params: { guid: partnerGuid },
21484
21484
  });
21485
21485
  if (response.data.isSuccess) {
21486
21486
  return response.data.data;
@@ -22467,7 +22467,7 @@ const SSASRegistrationForm = ({ config, }) => {
22467
22467
  useEffect(() => {
22468
22468
  setIsLoadingPartner(true);
22469
22469
  partnerApiService
22470
- .getPartnerByName(mergedConfig.partnerName)
22470
+ .getPartnerByGuid(mergedConfig.partnerGuid)
22471
22471
  .then((partner) => {
22472
22472
  partner ? setPartnerData(partner) : setPartnerLoadFailed(true);
22473
22473
  })
@@ -22478,7 +22478,7 @@ const SSASRegistrationForm = ({ config, }) => {
22478
22478
  .finally(() => {
22479
22479
  setIsLoadingPartner(false);
22480
22480
  });
22481
- }, [mergedConfig.partnerName]);
22481
+ }, [mergedConfig.partnerGuid, partnerApiService]);
22482
22482
  // Step 2: Load remaining data once partnerData is available
22483
22483
  useEffect(() => {
22484
22484
  if (!partnerData)