@memberstack/dom 1.9.11 → 1.9.13
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.
|
@@ -62,8 +62,6 @@ var promiseResolve, promiseReject;
|
|
|
62
62
|
var receiveMessage = function (event) {
|
|
63
63
|
var _a;
|
|
64
64
|
var data = event.data, origin = event.origin;
|
|
65
|
-
console.log({ origin: origin });
|
|
66
|
-
console.log({ data: data });
|
|
67
65
|
var acceptedOrigins = [
|
|
68
66
|
"https://client-testing.ngrok.io",
|
|
69
67
|
"https://client.memberstack.com",
|
|
@@ -138,6 +136,7 @@ var initRequest = function (_a) {
|
|
|
138
136
|
customFields: customFields,
|
|
139
137
|
plans: plans,
|
|
140
138
|
appId: appId,
|
|
139
|
+
publicKey: publicKey,
|
|
141
140
|
origin: window.location.hostname,
|
|
142
141
|
});
|
|
143
142
|
return [2 /*return*/, openSignInWindow("".concat(endpoints_1.endpoints.API, "/auth-provider/signup?").concat(queryParams), "signup")];
|
|
@@ -151,6 +150,7 @@ var initRequest = function (_a) {
|
|
|
151
150
|
queryParams = new URLSearchParams({
|
|
152
151
|
provider: params.provider,
|
|
153
152
|
appId: appId,
|
|
153
|
+
publicKey: publicKey,
|
|
154
154
|
origin: window.location.hostname,
|
|
155
155
|
});
|
|
156
156
|
return [2 /*return*/, openSignInWindow("".concat(endpoints_1.endpoints.API, "/auth-provider/login?").concat(queryParams), "login")];
|
|
@@ -164,6 +164,7 @@ var initRequest = function (_a) {
|
|
|
164
164
|
queryParams = new URLSearchParams({
|
|
165
165
|
provider: params.provider,
|
|
166
166
|
appId: appId,
|
|
167
|
+
publicKey: publicKey,
|
|
167
168
|
member: (0, cookies_1.getMemberCookie)(),
|
|
168
169
|
origin: window.location.hostname,
|
|
169
170
|
});
|
|
@@ -614,15 +615,9 @@ var initRequest = function (_a) {
|
|
|
614
615
|
case 0: return [4 /*yield*/, sendRequest({
|
|
615
616
|
method: requests_2.HttpMethod.POST,
|
|
616
617
|
url: "/auth/signup",
|
|
617
|
-
data: __assign(
|
|
618
|
-
payment: {
|
|
619
|
-
stripe: {
|
|
620
|
-
paymentMethodId: params.payment.stripe.paymentMethodId,
|
|
621
|
-
},
|
|
622
|
-
},
|
|
623
|
-
})), {
|
|
618
|
+
data: __assign({ email: params.email, password: params.password, customFields: params.customFields, metaData: params.metaData, plans: params.plans, captchaToken: params.captchaToken,
|
|
624
619
|
//internal use only
|
|
625
|
-
origin_domain: window.location.origin, options: options }
|
|
620
|
+
origin_domain: window.location.origin, options: options }, (((_a = window.Rewardful) === null || _a === void 0 ? void 0 : _a.referral) && {
|
|
626
621
|
rewardfulData: {
|
|
627
622
|
// @ts-ignore
|
|
628
623
|
referral: window.Rewardful.referral,
|
package/lib/types/params.d.ts
CHANGED