@asgardeo/javascript 0.1.17 → 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.
@@ -15,7 +15,7 @@
15
15
  * specific language governing permissions and limitations
16
16
  * under the License.
17
17
  */
18
- import { I18nBundle } from './i18n';
18
+ import { I18nBundle } from '@asgardeo/i18n';
19
19
  import { RecursivePartial } from './utility-types';
20
20
  import { ThemeConfig, ThemeMode } from '../theme/types';
21
21
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asgardeo/javascript",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "Framework agnostic JavaScript SDK for Asgardeo.",
5
5
  "keywords": [
6
6
  "asgardeo",
@@ -45,7 +45,8 @@
45
45
  "vitest": "^3.1.3"
46
46
  },
47
47
  "dependencies": {
48
- "tslib": "^2.8.1"
48
+ "tslib": "^2.8.1",
49
+ "@asgardeo/i18n": "^0.1.0"
49
50
  },
50
51
  "publishConfig": {
51
52
  "access": "public"
@@ -1,20 +0,0 @@
1
- /**
2
- * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- import { I18nBundle } from '../models/i18n';
19
- declare const en_US: I18nBundle;
20
- export default en_US;
@@ -1,18 +0,0 @@
1
- /**
2
- * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- export { default as en_US } from './en-US';
@@ -1,102 +0,0 @@
1
- /**
2
- * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- export interface I18nTranslations {
19
- 'elements.buttons.signIn': string;
20
- 'elements.buttons.signOut': string;
21
- 'elements.buttons.signUp': string;
22
- 'elements.buttons.facebook': string;
23
- 'elements.buttons.google': string;
24
- 'elements.buttons.github': string;
25
- 'elements.buttons.microsoft': string;
26
- 'elements.buttons.linkedin': string;
27
- 'elements.buttons.ethereum': string;
28
- 'elements.buttons.multi.option': string;
29
- 'elements.buttons.social': string;
30
- 'elements.fields.placeholder': string;
31
- 'signin.title': string;
32
- 'signin.subtitle': string;
33
- 'signup.title': string;
34
- 'signup.subtitle': string;
35
- 'email.otp.title': string;
36
- 'email.otp.subtitle': string;
37
- 'email.otp.submit.button': string;
38
- 'identifier.first.title': string;
39
- 'identifier.first.subtitle': string;
40
- 'identifier.first.submit.button': string;
41
- 'sms.otp.title': string;
42
- 'sms.otp.subtitle': string;
43
- 'sms.otp.submit.button': string;
44
- 'totp.title': string;
45
- 'totp.subtitle': string;
46
- 'totp.submit.button': string;
47
- 'username.password.submit.button': string;
48
- 'username.password.title': string;
49
- 'username.password.subtitle': string;
50
- 'user.profile.title': string;
51
- 'user.profile.update.generic.error': string;
52
- 'organization.switcher.select.organization': string;
53
- 'organization.switcher.switch.organization': string;
54
- 'organization.switcher.loading.organizations': string;
55
- 'organization.switcher.members': string;
56
- 'organization.switcher.member': string;
57
- 'organization.switcher.create.organization': string;
58
- 'organization.switcher.manage.organizations': string;
59
- 'organization.switcher.manage.button': string;
60
- 'organization.switcher.organizations.title': string;
61
- 'organization.switcher.switch.button': string;
62
- 'organization.switcher.no.access': string;
63
- 'organization.switcher.status.label': string;
64
- 'organization.switcher.showing.count': string;
65
- 'organization.switcher.refresh.button': string;
66
- 'organization.switcher.load.more': string;
67
- 'organization.switcher.loading.more': string;
68
- 'organization.switcher.no.organizations': string;
69
- 'organization.switcher.error.prefix': string;
70
- 'organization.profile.title': string;
71
- 'organization.profile.loading': string;
72
- 'organization.profile.error': string;
73
- 'organization.create.title': string;
74
- 'organization.create.name.label': string;
75
- 'organization.create.name.placeholder': string;
76
- 'organization.create.handle.label': string;
77
- 'organization.create.handle.placeholder': string;
78
- 'organization.create.description.label': string;
79
- 'organization.create.description.placeholder': string;
80
- 'organization.create.button': string;
81
- 'organization.create.creating': string;
82
- 'organization.create.cancel': string;
83
- 'messages.loading': string;
84
- 'errors.title': string;
85
- 'errors.sign.in.initialization': string;
86
- 'errors.sign.in.flow.failure': string;
87
- 'errors.sign.in.flow.completion.failure': string;
88
- 'errors.sign.in.flow.passkeys.failure': string;
89
- 'errors.sign.in.flow.passkeys.completion.failure': string;
90
- }
91
- export type I18nTextDirection = 'ltr' | 'rtl';
92
- export interface I18nMetadata {
93
- localeCode: string;
94
- countryCode: string;
95
- languageCode: string;
96
- displayName: string;
97
- direction: I18nTextDirection;
98
- }
99
- export interface I18nBundle {
100
- metadata: I18nMetadata;
101
- translations: I18nTranslations;
102
- }
@@ -1,26 +0,0 @@
1
- /**
2
- * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- import * as i18n from '../i18n';
19
- /**
20
- * Get internationalization bundles for the specified locale.
21
- *
22
- * @param locale - The locale to get the bundle for (defaults to 'en-US')
23
- * @returns The i18n bundle for the specified locale
24
- */
25
- declare const getI18nBundles: () => typeof i18n;
26
- export default getI18nBundles;