@memberstack/dom 1.9.20 → 1.9.22

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.
@@ -141,7 +141,6 @@ exports.openModal = function (type, params) {
141
141
  });
142
142
  };
143
143
  exports.hideModal = function () {
144
- console.log("hide modal called");
145
144
  try {
146
145
  modal === null || modal === void 0 ? void 0 : modal.$destroy();
147
146
  }
@@ -560,9 +560,9 @@ exports.initRequest = function (_a) {
560
560
  case 0: return [4 /*yield*/, sendRequest({
561
561
  method: requests_2.HttpMethod.POST,
562
562
  url: "/auth/signup?isPasswordless=true",
563
- data: __assign({ email: params.email, customFields: params.customFields, passwordlessToken: params.passwordlessToken, metaData: params.metaData, plans: params.plans,
563
+ data: __assign(__assign(__assign({ email: params.email, customFields: params.customFields, passwordlessToken: params.passwordlessToken, metaData: params.metaData }, (params.plans && { plans: params.plans })), {
564
564
  //internal use only
565
- origin_domain: window.location.origin, options: options }, (((_a = window.Rewardful) === null || _a === void 0 ? void 0 : _a.referral) && {
565
+ origin_domain: window.location.origin, options: options }), (((_a = window.Rewardful) === null || _a === void 0 ? void 0 : _a.referral) && {
566
566
  rewardfulData: {
567
567
  // @ts-ignore
568
568
  referral: window.Rewardful.referral,
@@ -589,9 +589,9 @@ exports.initRequest = function (_a) {
589
589
  case 0: return [4 /*yield*/, sendRequest({
590
590
  method: requests_2.HttpMethod.POST,
591
591
  url: "/auth/signup",
592
- data: __assign({ email: params.email, password: params.password, customFields: params.customFields, metaData: params.metaData, plans: params.plans, captchaToken: params.captchaToken,
592
+ data: __assign(__assign(__assign({ email: params.email, password: params.password, customFields: params.customFields, metaData: params.metaData, captchaToken: params.captchaToken }, (params.plans && { plans: params.plans })), {
593
593
  //internal use only
594
- origin_domain: window.location.origin, options: options }, (((_a = window.Rewardful) === null || _a === void 0 ? void 0 : _a.referral) && {
594
+ origin_domain: window.location.origin, options: options }), (((_a = window.Rewardful) === null || _a === void 0 ? void 0 : _a.referral) && {
595
595
  rewardfulData: {
596
596
  // @ts-ignore
597
597
  referral: window.Rewardful.referral,
@@ -3,9 +3,8 @@ export declare type SignupMemberEmailPasswordParams = {
3
3
  password: string;
4
4
  customFields?: Record<string, any>;
5
5
  metaData?: Record<string, any>;
6
- plans: {
6
+ plans?: {
7
7
  planId: string;
8
- priceId?: string;
9
8
  }[];
10
9
  captchaToken?: string;
11
10
  };
@@ -35,9 +34,8 @@ export declare type SignupMemberAuthProviderParams = {
35
34
  planId?: string;
36
35
  customFields?: Record<string, any>;
37
36
  metaData?: Record<string, any>;
38
- plans: {
37
+ plans?: {
39
38
  planId: string;
40
- priceId?: string;
41
39
  }[];
42
40
  payment?: {
43
41
  stripe?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberstack/dom",
3
- "version": "1.9.20",
3
+ "version": "1.9.22",
4
4
  "main": "./lib/index.js",
5
5
  "files": [
6
6
  "lib/**/*"