@asgardeo/javascript 0.1.17 → 0.1.19

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/dist/index.d.ts CHANGED
@@ -59,7 +59,6 @@ export { BrandingPreference, BrandingPreferenceConfig, BrandingLayout, BrandingT
59
59
  export { Schema, SchemaAttribute, WellKnownSchemaIds, FlattenedSchema } from './models/scim2-schema';
60
60
  export { RecursivePartial } from './models/utility-types';
61
61
  export { FieldType } from './models/field';
62
- export { I18nBundle, I18nTranslations, I18nMetadata } from './models/i18n';
63
62
  export { default as AsgardeoJavaScriptClient } from './AsgardeoJavaScriptClient';
64
63
  export { default as createTheme, DEFAULT_THEME } from './theme/createTheme';
65
64
  export { ThemeColors, ThemeConfig, Theme, ThemeMode, ThemeDetection } from './theme/types';
@@ -76,7 +75,6 @@ export { default as generateUserProfile } from './utils/generateUserProfile';
76
75
  export { default as getLatestStateParam } from './utils/getLatestStateParam';
77
76
  export { default as generateFlattenedUserProfile } from './utils/generateFlattenedUserProfile';
78
77
  export { default as getRedirectBasedSignUpUrl } from './utils/getRedirectBasedSignUpUrl';
79
- export { default as getI18nBundles } from './utils/getI18nBundles';
80
78
  export { default as identifyPlatform } from './utils/identifyPlatform';
81
79
  export { default as isEmpty } from './utils/isEmpty';
82
80
  export { default as set } from './utils/set';
package/dist/index.js CHANGED
@@ -1,9 +1,5 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
- var __export = (target, all) => {
4
- for (var name in all)
5
- __defProp(target, name, { get: all[name], enumerable: true });
6
- };
7
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
8
4
 
9
5
  // src/StorageManager.ts
@@ -4121,132 +4117,6 @@ var getRedirectBasedSignUpUrl = (config) => {
4121
4117
  };
4122
4118
  var getRedirectBasedSignUpUrl_default = getRedirectBasedSignUpUrl;
4123
4119
 
4124
- // src/i18n/index.ts
4125
- var i18n_exports = {};
4126
- __export(i18n_exports, {
4127
- en_US: () => en_US_default
4128
- });
4129
-
4130
- // src/i18n/en-US.ts
4131
- var translations = {
4132
- /* |---------------------------------------------------------------| */
4133
- /* | Elements | */
4134
- /* |---------------------------------------------------------------| */
4135
- //* Buttons */
4136
- "elements.buttons.signIn": "Sign In",
4137
- "elements.buttons.signOut": "Sign Out",
4138
- "elements.buttons.signUp": "Sign Up",
4139
- "elements.buttons.facebook": "Continue with Facebook",
4140
- "elements.buttons.google": "Continue with Google",
4141
- "elements.buttons.github": "Continue with GitHub",
4142
- "elements.buttons.microsoft": "Continue with Microsoft",
4143
- "elements.buttons.linkedin": "Continue with LinkedIn",
4144
- "elements.buttons.ethereum": "Continue with Sign In Ethereum",
4145
- "elements.buttons.multi.option": "Continue with {connection}",
4146
- "elements.buttons.social": "Continue with {connection}",
4147
- /* Fields */
4148
- "elements.fields.placeholder": "Enter your {field}",
4149
- /* |---------------------------------------------------------------| */
4150
- /* | Widgets | */
4151
- /* |---------------------------------------------------------------| */
4152
- /* Base Sign In */
4153
- "signin.title": "Sign In",
4154
- "signin.subtitle": "Enter your credentials to continue.",
4155
- /* Base Sign Up */
4156
- "signup.title": "Sign Up",
4157
- "signup.subtitle": "Create a new account to get started.",
4158
- /* Email OTP */
4159
- "email.otp.title": "OTP Verification",
4160
- "email.otp.subtitle": "Enter the code sent to your email address.",
4161
- "email.otp.submit.button": "Continue",
4162
- /* Identifier First */
4163
- "identifier.first.title": "Sign In",
4164
- "identifier.first.subtitle": "Enter your username or email address.",
4165
- "identifier.first.submit.button": "Continue",
4166
- /* SMS OTP */
4167
- "sms.otp.title": "OTP Verification",
4168
- "sms.otp.subtitle": "Enter the code sent to your phone number.",
4169
- "sms.otp.submit.button": "Continue",
4170
- /* TOTP */
4171
- "totp.title": "Verify Your Identity",
4172
- "totp.subtitle": "Enter the code from your authenticator app.",
4173
- "totp.submit.button": "Continue",
4174
- /* Username Password */
4175
- "username.password.submit.button": "Continue",
4176
- "username.password.title": "Sign In",
4177
- "username.password.subtitle": "Enter your username and password to continue.",
4178
- /* |---------------------------------------------------------------| */
4179
- /* | User Profile | */
4180
- /* |---------------------------------------------------------------| */
4181
- "user.profile.title": "Profile",
4182
- "user.profile.update.generic.error": "An error occurred while updating your profile. Please try again.",
4183
- /* |---------------------------------------------------------------| */
4184
- /* | Organization Switcher | */
4185
- /* |---------------------------------------------------------------| */
4186
- "organization.switcher.select.organization": "Select Organization",
4187
- "organization.switcher.switch.organization": "Switch Organization",
4188
- "organization.switcher.loading.organizations": "Loading organizations...",
4189
- "organization.switcher.members": "members",
4190
- "organization.switcher.member": "member",
4191
- "organization.switcher.create.organization": "Create Organization",
4192
- "organization.switcher.manage.organizations": "Manage Organizations",
4193
- "organization.switcher.manage.button": "Manage",
4194
- "organization.switcher.organizations.title": "Organizations",
4195
- "organization.switcher.switch.button": "Switch",
4196
- "organization.switcher.no.access": "No Access",
4197
- "organization.switcher.status.label": "Status:",
4198
- "organization.switcher.showing.count": "Showing {showing} of {total} organizations",
4199
- "organization.switcher.refresh.button": "Refresh",
4200
- "organization.switcher.load.more": "Load More Organizations",
4201
- "organization.switcher.loading.more": "Loading...",
4202
- "organization.switcher.no.organizations": "No organizations found",
4203
- "organization.switcher.error.prefix": "Error:",
4204
- "organization.profile.title": "Organization Profile",
4205
- "organization.profile.loading": "Loading organization...",
4206
- "organization.profile.error": "Failed to load organization",
4207
- "organization.create.title": "Create Organization",
4208
- "organization.create.name.label": "Organization Name",
4209
- "organization.create.name.placeholder": "Enter organization name",
4210
- "organization.create.handle.label": "Organization Handle",
4211
- "organization.create.handle.placeholder": "my-organization",
4212
- "organization.create.description.label": "Description",
4213
- "organization.create.description.placeholder": "Enter organization description",
4214
- "organization.create.button": "Create Organization",
4215
- "organization.create.creating": "Creating...",
4216
- "organization.create.cancel": "Cancel",
4217
- /* |---------------------------------------------------------------| */
4218
- /* | Messages | */
4219
- /* |---------------------------------------------------------------| */
4220
- "messages.loading": "Loading...",
4221
- /* |---------------------------------------------------------------| */
4222
- /* | Errors | */
4223
- /* |---------------------------------------------------------------| */
4224
- "errors.title": "Error",
4225
- "errors.sign.in.initialization": "An error occurred while initializing. Please try again later.",
4226
- "errors.sign.in.flow.failure": "An error occurred during the sign-in flow. Please try again later.",
4227
- "errors.sign.in.flow.completion.failure": "An error occurred while completing the sign-in flow. Please try again later.",
4228
- "errors.sign.in.flow.passkeys.failure": "An error occurred while signing in with passkeys. Please try again later.",
4229
- "errors.sign.in.flow.passkeys.completion.failure": "An error occurred while completing the passkeys sign-in flow. Please try again later."
4230
- };
4231
- var metadata = {
4232
- localeCode: "en-US",
4233
- countryCode: "US",
4234
- languageCode: "en",
4235
- displayName: "English (United States)",
4236
- direction: "ltr"
4237
- };
4238
- var en_US = {
4239
- metadata,
4240
- translations
4241
- };
4242
- var en_US_default = en_US;
4243
-
4244
- // src/utils/getI18nBundles.ts
4245
- var getI18nBundles = () => {
4246
- return i18n_exports;
4247
- };
4248
- var getI18nBundles_default = getI18nBundles;
4249
-
4250
4120
  // src/utils/removeTrailingSlash.ts
4251
4121
  var removeTrailingSlash = (path) => path.endsWith("/") ? path.slice(0, -1) : path;
4252
4122
  var removeTrailingSlash_default = removeTrailingSlash;
@@ -4479,7 +4349,6 @@ export {
4479
4349
  get_default as get,
4480
4350
  getAllOrganizations_default as getAllOrganizations,
4481
4351
  getBrandingPreference_default as getBrandingPreference,
4482
- getI18nBundles_default as getI18nBundles,
4483
4352
  getLatestStateParam_default as getLatestStateParam,
4484
4353
  getMeOrganizations_default as getMeOrganizations,
4485
4354
  getOrganization_default as getOrganization,