@openpass/openpass-js-sdk
Advanced tools
Comparing version 2.1.11 to 2.2.0
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "2.1.10", | ||
"version": "2.1.11", | ||
"repository": { | ||
@@ -9,0 +9,0 @@ "type": "git", |
@@ -25,6 +25,7 @@ "use strict"; | ||
*/ | ||
constructor(openPassOptions, redirectAuth, popupAuth) { | ||
constructor(openPassOptions, redirectAuth, popupAuth, apiClient) { | ||
this.openPassOptions = openPassOptions; | ||
this.popupAuth = popupAuth; | ||
this.redirectAuth = redirectAuth; | ||
this.apiClient = apiClient; | ||
} | ||
@@ -103,2 +104,3 @@ /** | ||
iframeContainerHtmlElement.appendChild(iframe); | ||
this.apiClient.sendTelemetryEvent(this.openPassOptions.clientId, "SignInWithOpenPassInlineFormShown"); | ||
}); | ||
@@ -105,0 +107,0 @@ } |
@@ -40,3 +40,3 @@ "use strict"; | ||
this.popup = new popup_1.default(this.openPassOptions, this.redirect, this.openPassApiClient); | ||
this.inlineSigninform = new inlineSignInForm_1.default(this.openPassOptions, this.redirect, this.popup); | ||
this.inlineSigninform = new inlineSignInForm_1.default(this.openPassOptions, this.redirect, this.popup, this.openPassApiClient); | ||
this.signInButton = new signInButton_1.default(this.redirect, this.popup, this.openPassApiClient); | ||
@@ -43,0 +43,0 @@ } |
@@ -18,3 +18,3 @@ "use strict"; | ||
var _a, _b; | ||
const buttonContainer = document.getElementById("openpass-sign-in-button"); | ||
const buttonContainer = document.getElementById("sign-in-with-openpass-button"); | ||
if (!buttonContainer) { | ||
@@ -78,3 +78,3 @@ return; | ||
const signInButtonOptions = { | ||
parentContainerElementId: "openpass-sign-in-button", | ||
parentContainerElementId: "sign-in-with-openpass-button", | ||
authenticationMode: authenticationMode, | ||
@@ -81,0 +81,0 @@ clientId: clientId, |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "2.1.10", | ||
"version": "2.1.11", | ||
"repository": { | ||
@@ -9,0 +9,0 @@ "type": "git", |
@@ -23,6 +23,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
*/ | ||
constructor(openPassOptions, redirectAuth, popupAuth) { | ||
constructor(openPassOptions, redirectAuth, popupAuth, apiClient) { | ||
this.openPassOptions = openPassOptions; | ||
this.popupAuth = popupAuth; | ||
this.redirectAuth = redirectAuth; | ||
this.apiClient = apiClient; | ||
} | ||
@@ -101,2 +102,3 @@ /** | ||
iframeContainerHtmlElement.appendChild(iframe); | ||
this.apiClient.sendTelemetryEvent(this.openPassOptions.clientId, "SignInWithOpenPassInlineFormShown"); | ||
}); | ||
@@ -103,0 +105,0 @@ } |
@@ -35,3 +35,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
this.popup = new PopupAuth(this.openPassOptions, this.redirect, this.openPassApiClient); | ||
this.inlineSigninform = new InlineSignInForm(this.openPassOptions, this.redirect, this.popup); | ||
this.inlineSigninform = new InlineSignInForm(this.openPassOptions, this.redirect, this.popup, this.openPassApiClient); | ||
this.signInButton = new SignInButton(this.redirect, this.popup, this.openPassApiClient); | ||
@@ -38,0 +38,0 @@ } |
@@ -11,3 +11,3 @@ import { executeFunctionByName } from "./auth/utils/functions"; | ||
var _a, _b; | ||
const buttonContainer = document.getElementById("openpass-sign-in-button"); | ||
const buttonContainer = document.getElementById("sign-in-with-openpass-button"); | ||
if (!buttonContainer) { | ||
@@ -71,3 +71,3 @@ return; | ||
const signInButtonOptions = { | ||
parentContainerElementId: "openpass-sign-in-button", | ||
parentContainerElementId: "sign-in-with-openpass-button", | ||
authenticationMode: authenticationMode, | ||
@@ -74,0 +74,0 @@ clientId: clientId, |
@@ -1,2 +0,2 @@ | ||
export type ClientTelemetryEventType = "SignInWithOpenPassButtonShown"; | ||
export type ClientTelemetryEventType = "SignInWithOpenPassButtonShown" | "SignInWithOpenPassInlineFormShown"; | ||
export interface TokenRequest { | ||
@@ -3,0 +3,0 @@ grant_type: string; |
@@ -0,1 +1,2 @@ | ||
import { OpenPassApiClient } from "./api/openPassApiClient"; | ||
import PopupAuth from "./popup"; | ||
@@ -11,2 +12,3 @@ import RedirectAuth from "./redirect"; | ||
private readonly openPassOptions; | ||
private readonly apiClient; | ||
/** | ||
@@ -18,3 +20,3 @@ * Initializes a new instance of the InlineSignInForm class. | ||
*/ | ||
constructor(openPassOptions: OpenPassOptions, redirectAuth: RedirectAuth, popupAuth: PopupAuth); | ||
constructor(openPassOptions: OpenPassOptions, redirectAuth: RedirectAuth, popupAuth: PopupAuth, apiClient: OpenPassApiClient); | ||
/** | ||
@@ -21,0 +23,0 @@ * Renders the inline sign-in form with the specified options. |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "2.1.11", | ||
"version": "2.2.0", | ||
"repository": { | ||
@@ -9,0 +9,0 @@ "type": "git", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
708283
4147