@asgardeo/javascript 0.1.16 → 0.1.18

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.
@@ -33,6 +33,7 @@ import { User, UserProfile } from './models/user';
33
33
  declare abstract class AsgardeoJavaScriptClient<T = Config> implements AsgardeoClient<T> {
34
34
  abstract switchOrganization(organization: Organization, sessionId?: string): Promise<TokenResponse | Response>;
35
35
  abstract initialize(config: T, storage?: Storage): Promise<boolean>;
36
+ abstract reInitialize(config: Partial<T>): Promise<boolean>;
36
37
  abstract getUser(options?: any): Promise<User>;
37
38
  abstract getAllOrganizations(options?: any, sessionId?: string): Promise<AllOrganizationsApiResponse>;
38
39
  abstract getMyOrganizations(options?: any, sessionId?: string): Promise<Organization[]>;
package/dist/cjs/index.js CHANGED
@@ -72,7 +72,6 @@ __export(index_exports, {
72
72
  get: () => get_default,
73
73
  getAllOrganizations: () => getAllOrganizations_default,
74
74
  getBrandingPreference: () => getBrandingPreference_default,
75
- getI18nBundles: () => getI18nBundles_default,
76
75
  getLatestStateParam: () => getLatestStateParam_default,
77
76
  getMeOrganizations: () => getMeOrganizations_default,
78
77
  getOrganization: () => getOrganization_default,
@@ -4215,132 +4214,6 @@ var getRedirectBasedSignUpUrl = (config) => {
4215
4214
  };
4216
4215
  var getRedirectBasedSignUpUrl_default = getRedirectBasedSignUpUrl;
4217
4216
 
4218
- // src/i18n/index.ts
4219
- var i18n_exports = {};
4220
- __export(i18n_exports, {
4221
- en_US: () => en_US_default
4222
- });
4223
-
4224
- // src/i18n/en-US.ts
4225
- var translations = {
4226
- /* |---------------------------------------------------------------| */
4227
- /* | Elements | */
4228
- /* |---------------------------------------------------------------| */
4229
- //* Buttons */
4230
- "elements.buttons.signIn": "Sign In",
4231
- "elements.buttons.signOut": "Sign Out",
4232
- "elements.buttons.signUp": "Sign Up",
4233
- "elements.buttons.facebook": "Continue with Facebook",
4234
- "elements.buttons.google": "Continue with Google",
4235
- "elements.buttons.github": "Continue with GitHub",
4236
- "elements.buttons.microsoft": "Continue with Microsoft",
4237
- "elements.buttons.linkedin": "Continue with LinkedIn",
4238
- "elements.buttons.ethereum": "Continue with Sign In Ethereum",
4239
- "elements.buttons.multi.option": "Continue with {connection}",
4240
- "elements.buttons.social": "Continue with {connection}",
4241
- /* Fields */
4242
- "elements.fields.placeholder": "Enter your {field}",
4243
- /* |---------------------------------------------------------------| */
4244
- /* | Widgets | */
4245
- /* |---------------------------------------------------------------| */
4246
- /* Base Sign In */
4247
- "signin.title": "Sign In",
4248
- "signin.subtitle": "Enter your credentials to continue.",
4249
- /* Base Sign Up */
4250
- "signup.title": "Sign Up",
4251
- "signup.subtitle": "Create a new account to get started.",
4252
- /* Email OTP */
4253
- "email.otp.title": "OTP Verification",
4254
- "email.otp.subtitle": "Enter the code sent to your email address.",
4255
- "email.otp.submit.button": "Continue",
4256
- /* Identifier First */
4257
- "identifier.first.title": "Sign In",
4258
- "identifier.first.subtitle": "Enter your username or email address.",
4259
- "identifier.first.submit.button": "Continue",
4260
- /* SMS OTP */
4261
- "sms.otp.title": "OTP Verification",
4262
- "sms.otp.subtitle": "Enter the code sent to your phone number.",
4263
- "sms.otp.submit.button": "Continue",
4264
- /* TOTP */
4265
- "totp.title": "Verify Your Identity",
4266
- "totp.subtitle": "Enter the code from your authenticator app.",
4267
- "totp.submit.button": "Continue",
4268
- /* Username Password */
4269
- "username.password.submit.button": "Continue",
4270
- "username.password.title": "Sign In",
4271
- "username.password.subtitle": "Enter your username and password to continue.",
4272
- /* |---------------------------------------------------------------| */
4273
- /* | User Profile | */
4274
- /* |---------------------------------------------------------------| */
4275
- "user.profile.title": "Profile",
4276
- "user.profile.update.generic.error": "An error occurred while updating your profile. Please try again.",
4277
- /* |---------------------------------------------------------------| */
4278
- /* | Organization Switcher | */
4279
- /* |---------------------------------------------------------------| */
4280
- "organization.switcher.select.organization": "Select Organization",
4281
- "organization.switcher.switch.organization": "Switch Organization",
4282
- "organization.switcher.loading.organizations": "Loading organizations...",
4283
- "organization.switcher.members": "members",
4284
- "organization.switcher.member": "member",
4285
- "organization.switcher.create.organization": "Create Organization",
4286
- "organization.switcher.manage.organizations": "Manage Organizations",
4287
- "organization.switcher.manage.button": "Manage",
4288
- "organization.switcher.organizations.title": "Organizations",
4289
- "organization.switcher.switch.button": "Switch",
4290
- "organization.switcher.no.access": "No Access",
4291
- "organization.switcher.status.label": "Status:",
4292
- "organization.switcher.showing.count": "Showing {showing} of {total} organizations",
4293
- "organization.switcher.refresh.button": "Refresh",
4294
- "organization.switcher.load.more": "Load More Organizations",
4295
- "organization.switcher.loading.more": "Loading...",
4296
- "organization.switcher.no.organizations": "No organizations found",
4297
- "organization.switcher.error.prefix": "Error:",
4298
- "organization.profile.title": "Organization Profile",
4299
- "organization.profile.loading": "Loading organization...",
4300
- "organization.profile.error": "Failed to load organization",
4301
- "organization.create.title": "Create Organization",
4302
- "organization.create.name.label": "Organization Name",
4303
- "organization.create.name.placeholder": "Enter organization name",
4304
- "organization.create.handle.label": "Organization Handle",
4305
- "organization.create.handle.placeholder": "my-organization",
4306
- "organization.create.description.label": "Description",
4307
- "organization.create.description.placeholder": "Enter organization description",
4308
- "organization.create.button": "Create Organization",
4309
- "organization.create.creating": "Creating...",
4310
- "organization.create.cancel": "Cancel",
4311
- /* |---------------------------------------------------------------| */
4312
- /* | Messages | */
4313
- /* |---------------------------------------------------------------| */
4314
- "messages.loading": "Loading...",
4315
- /* |---------------------------------------------------------------| */
4316
- /* | Errors | */
4317
- /* |---------------------------------------------------------------| */
4318
- "errors.title": "Error",
4319
- "errors.sign.in.initialization": "An error occurred while initializing. Please try again later.",
4320
- "errors.sign.in.flow.failure": "An error occurred during the sign-in flow. Please try again later.",
4321
- "errors.sign.in.flow.completion.failure": "An error occurred while completing the sign-in flow. Please try again later.",
4322
- "errors.sign.in.flow.passkeys.failure": "An error occurred while signing in with passkeys. Please try again later.",
4323
- "errors.sign.in.flow.passkeys.completion.failure": "An error occurred while completing the passkeys sign-in flow. Please try again later."
4324
- };
4325
- var metadata = {
4326
- localeCode: "en-US",
4327
- countryCode: "US",
4328
- languageCode: "en",
4329
- displayName: "English (United States)",
4330
- direction: "ltr"
4331
- };
4332
- var en_US = {
4333
- metadata,
4334
- translations
4335
- };
4336
- var en_US_default = en_US;
4337
-
4338
- // src/utils/getI18nBundles.ts
4339
- var getI18nBundles = () => {
4340
- return i18n_exports;
4341
- };
4342
- var getI18nBundles_default = getI18nBundles;
4343
-
4344
4217
  // src/utils/removeTrailingSlash.ts
4345
4218
  var removeTrailingSlash = (path) => path.endsWith("/") ? path.slice(0, -1) : path;
4346
4219
  var removeTrailingSlash_default = removeTrailingSlash;
@@ -4574,7 +4447,6 @@ var transformBrandingPreferenceToTheme_default = transformBrandingPreferenceToTh
4574
4447
  get,
4575
4448
  getAllOrganizations,
4576
4449
  getBrandingPreference,
4577
- getI18nBundles,
4578
4450
  getLatestStateParam,
4579
4451
  getMeOrganizations,
4580
4452
  getOrganization,