@go1/go1-embedding-react-sdk 0.0.27 → 0.0.30

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
@@ -122,12 +122,14 @@ export interface FeatureAttributesLearnerSearch extends FeatureAttributeCommon {
122
122
  experience?: 'learner';
123
123
  }
124
124
 
125
- export interface FeatureAttributesLibrary extends FeatureAttributeCommon {
125
+ export interface FeatureAttributesLibrary extends FeatureAttributeCommon, FeatureAttributesRetirement {
126
126
  libraryEmptyStateDescription?: string;
127
+ shouldShowLibraryTabs?: boolean;
127
128
  }
128
129
 
129
130
  export interface FeatureAttributesRetirement extends FeatureAttributeCommon {
130
131
  shouldShowAlternativesSearchButton?: boolean;
132
+ shouldShowNotificationEmailRegisterSwitch?: boolean;
131
133
  }
132
134
 
133
135
  export interface FeatureAttributesSearch extends FeatureAttributeCommon {}
package/dist/README.md CHANGED
@@ -122,12 +122,14 @@ export interface FeatureAttributesLearnerSearch extends FeatureAttributeCommon {
122
122
  experience?: 'learner';
123
123
  }
124
124
 
125
- export interface FeatureAttributesLibrary extends FeatureAttributeCommon {
125
+ export interface FeatureAttributesLibrary extends FeatureAttributeCommon, FeatureAttributesRetirement {
126
126
  libraryEmptyStateDescription?: string;
127
+ shouldShowLibraryTabs?: boolean;
127
128
  }
128
129
 
129
130
  export interface FeatureAttributesRetirement extends FeatureAttributeCommon {
130
131
  shouldShowAlternativesSearchButton?: boolean;
132
+ shouldShowNotificationEmailRegisterSwitch?: boolean;
131
133
  }
132
134
 
133
135
  export interface FeatureAttributesSearch extends FeatureAttributeCommon {}
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isValidFeature = exports.isValidOTT = exports.addOneTimeToken = exports.addPortalURL = void 0;
4
4
  const types_1 = require("./types");
5
5
  function addPortalURL(url, portalURL, env = 'production') {
6
- let validPortalURL = /^(?=.{1,255}$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,245}[a-zA-Z0-9])?\.mygo1\.com$/;
6
+ let validPortalURL = /^(?=.{1,255}$)([a-zA-Z0-9-]+\.)+mygo1\.com$/;
7
7
  if (env === 'staging') {
8
- validPortalURL = /^(?=.{1,255}$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,245}[a-zA-Z0-9])?\.qa\.go1\.cloud$/;
8
+ validPortalURL = /^(?=.{1,255}$)([a-zA-Z0-9-]+\.)+qa\.go1\.cloud$/;
9
9
  }
10
10
  if (validPortalURL.test(portalURL)) {
11
11
  url.searchParams.append('portal_url', portalURL);
@@ -41,11 +41,13 @@ export interface FeatureAttributesLearnerSearch extends FeatureAttributeCommon {
41
41
  isGo1MobileApp?: boolean;
42
42
  experience?: 'learner';
43
43
  }
44
- export interface FeatureAttributesLibrary extends FeatureAttributeCommon {
44
+ export interface FeatureAttributesLibrary extends FeatureAttributeCommon, FeatureAttributesRetirement {
45
45
  libraryEmptyStateDescription?: string;
46
+ shouldShowLibraryTabs?: boolean;
46
47
  }
47
48
  export interface FeatureAttributesRetirement extends FeatureAttributeCommon {
48
49
  shouldShowAlternativesSearchButton?: boolean;
50
+ shouldShowNotificationEmailRegisterSwitch?: boolean;
49
51
  }
50
52
  export interface FeatureAttributesSearch extends FeatureAttributeCommon {
51
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go1/go1-embedding-react-sdk",
3
- "version": "0.0.27",
3
+ "version": "0.0.30",
4
4
  "description": "A React library to embed Go1 content into your website.",
5
5
  "main": "dist/go1-embedding-react-sdk/src/index.js",
6
6
  "files": [