@asgardeo/javascript 0.1.21 → 0.1.23

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.
@@ -94,7 +94,7 @@ export interface BaseConfig<T = unknown> extends WithPreferences {
94
94
  * The client ID obtained from the Asgardeo application registration.
95
95
  * This is used to identify your application during authentication.
96
96
  */
97
- clientId: string | undefined;
97
+ clientId?: string | undefined;
98
98
  /**
99
99
  * Optional client secret for the application.
100
100
  * Only required when using confidential client flows.
@@ -44,9 +44,9 @@ export interface EmbeddedSignUpFlowData {
44
44
  }
45
45
  export interface EmbeddedFlowComponent {
46
46
  components: EmbeddedFlowComponent[];
47
- config: Record<string, any>;
47
+ config: Record<string, unknown>;
48
48
  id: string;
49
- type: EmbeddedFlowComponentType;
49
+ type: EmbeddedFlowComponentType | string;
50
50
  variant?: string;
51
51
  }
52
52
  export declare enum EmbeddedFlowComponentType {
@@ -25,11 +25,22 @@ export declare enum EmbeddedSignInFlowTypeV2 {
25
25
  Redirection = "REDIRECTION",
26
26
  View = "VIEW"
27
27
  }
28
+ /**
29
+ * Extended response structure for the embedded sign-in flow V2.
30
+ * @remarks This response is only done from the SDK level.
31
+ * @experimental
32
+ */
33
+ export interface ExtendedEmbeddedSignInFlowResponseV2 {
34
+ /**
35
+ * The URL to redirect the user after completing the sign-in flow.
36
+ */
37
+ redirectUrl?: string;
38
+ }
28
39
  /**
29
40
  * Response structure for the new Asgardeo V2 embedded sign-in flow.
30
41
  * @experimental
31
42
  */
32
- export interface EmbeddedSignInFlowResponseV2 {
43
+ export interface EmbeddedSignInFlowResponseV2 extends ExtendedEmbeddedSignInFlowResponseV2 {
33
44
  flowId: string;
34
45
  flowStatus: EmbeddedSignInFlowStatusV2;
35
46
  type: EmbeddedSignInFlowTypeV2;
@@ -4,23 +4,7 @@
4
4
  * WSO2 LLC. licenses this file to you under the Apache License,
5
5
  * Version 2.0 (the "License"); you may not use this file except
6
6
  * in compliance with the License.
7
- * You may obtain a cop // Shadows
8
- if (theme.shadows?.small) {
9
- cssVars[`--${prefix}-shadow-small`] = theme.shadows.small;
10
- }
11
- if (theme.shadows?.medium) {
12
- cssVars[`--${prefix}-shadow-medium`] = theme.shadows.medium;
13
- }
14
- if (theme.shadows?.large) {
15
- cssVars[`--${prefix}-shadow-large`] = theme.shadows.large;
16
- }
17
-
18
- // Typography - Font Family
19
- if (theme.typography?.fontFamily) {
20
- cssVars[`--${prefix}-typography-fontFamily`] = theme.typography.fontFamily;
21
- }
22
-
23
- // Typography - Font Sizesense at
7
+ * You may obtain a copy of the License at
24
8
  *
25
9
  * http://www.apache.org/licenses/LICENSE-2.0
26
10
  *
@@ -38,9 +38,9 @@
38
38
  * const handle2 = deriveOrganizationHandleFromBaseUrl('https://stage.asgardeo.io/t/myorg');
39
39
  * // Returns: 'myorg'
40
40
  *
41
- * // Custom domain - throws error
42
- * deriveOrganizationHandleFromBaseUrl('https://custom.example.com/auth');
43
- * // Throws: AsgardeoRuntimeError
41
+ * // Custom domain - returns empty string with a warning
42
+ * const handle2 = deriveOrganizationHandleFromBaseUrl('https://custom.example.com/auth');
43
+ * // Returns: '' and logs a warning
44
44
  * ```
45
45
  */
46
46
  declare const deriveOrganizationHandleFromBaseUrl: (baseUrl?: string) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asgardeo/javascript",
3
- "version": "0.1.21",
3
+ "version": "0.1.23",
4
4
  "description": "Framework agnostic JavaScript SDK for Asgardeo.",
5
5
  "keywords": [
6
6
  "asgardeo",