@asgardeo/javascript 0.2.12 → 0.2.14

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.
@@ -40,16 +40,16 @@ export declare enum EmbeddedFlowComponentType {
40
40
  TextInput = "TEXT_INPUT",
41
41
  /** Password input field with masking for sensitive data */
42
42
  PasswordInput = "PASSWORD_INPUT",
43
- /**
44
- * Email input field with validation for email addresses.
45
- */
43
+ /** Email input field with validation for email addresses. */
46
44
  EmailInput = "EMAIL_INPUT",
47
45
  /** Text display component for labels, headings, and messages */
48
46
  Text = "TEXT",
49
47
  /** Interactive action component (buttons, links) for user interactions */
50
48
  Action = "ACTION",
51
49
  /** Container block component that groups other components */
52
- Block = "BLOCK"
50
+ Block = "BLOCK",
51
+ /** Divider component for visual separation of content */
52
+ Divider = "DIVIDER"
53
53
  }
54
54
  /**
55
55
  * Action variant types for buttons and interactive elements.
@@ -57,14 +57,24 @@ export declare enum EmbeddedFlowComponentType {
57
57
  * @experimental This API may change in future versions
58
58
  */
59
59
  export declare enum EmbeddedFlowActionVariant {
60
+ /** Primary action button with highest visual emphasis */
60
61
  Primary = "PRIMARY",
62
+ /** Secondary action button with moderate visual emphasis */
61
63
  Secondary = "SECONDARY",
64
+ /** Tertiary action button with minimal visual emphasis */
62
65
  Tertiary = "TERTIARY",
66
+ /** Danger action button for destructive operations */
63
67
  Danger = "DANGER",
68
+ /** Success action button for positive confirmations */
64
69
  Success = "SUCCESS",
70
+ /** Info action button for informational purposes */
65
71
  Info = "INFO",
72
+ /** Warning action button for cautionary actions */
66
73
  Warning = "WARNING",
67
- Link = "LINK"
74
+ /** Link-styled action button */
75
+ Link = "LINK",
76
+ /** Social media action button (e.g., Google, Facebook) */
77
+ Social = "SOCIAL"
68
78
  }
69
79
  /**
70
80
  * Text variant types for typography components.
@@ -72,18 +82,31 @@ export declare enum EmbeddedFlowActionVariant {
72
82
  * @experimental This API may change in future versions
73
83
  */
74
84
  export declare enum EmbeddedFlowTextVariant {
85
+ /** Largest heading level for main titles */
75
86
  Heading1 = "HEADING_1",
87
+ /** Second level heading for major sections */
76
88
  Heading2 = "HEADING_2",
89
+ /** Third level heading for subsections */
77
90
  Heading3 = "HEADING_3",
91
+ /** Fourth level heading for minor sections */
78
92
  Heading4 = "HEADING_4",
93
+ /** Fifth level heading for detailed sections */
79
94
  Heading5 = "HEADING_5",
95
+ /** Smallest heading level for fine-grained sections */
80
96
  Heading6 = "HEADING_6",
97
+ /** Primary subtitle text with larger emphasis */
81
98
  Subtitle1 = "SUBTITLE_1",
99
+ /** Secondary subtitle text with moderate emphasis */
82
100
  Subtitle2 = "SUBTITLE_2",
101
+ /** Primary body text for main content */
83
102
  Body1 = "BODY_1",
103
+ /** Secondary body text for supplementary content */
84
104
  Body2 = "BODY_2",
105
+ /** Small caption text for annotations and descriptions */
85
106
  Caption = "CAPTION",
107
+ /** Overline text for labels and categories */
86
108
  Overline = "OVERLINE",
109
+ /** Text styled for button labels */
87
110
  ButtonText = "BUTTON_TEXT"
88
111
  }
89
112
  /**
@@ -92,11 +115,17 @@ export declare enum EmbeddedFlowTextVariant {
92
115
  * @experimental This API may change in future versions
93
116
  */
94
117
  export declare enum EmbeddedFlowEventType {
118
+ /** Trigger an action or event */
95
119
  Trigger = "TRIGGER",
120
+ /** Submit form data to the server */
96
121
  Submit = "SUBMIT",
122
+ /** Navigate to a different flow step or page */
97
123
  Navigate = "NAVIGATE",
124
+ /** Cancel the current operation */
98
125
  Cancel = "CANCEL",
126
+ /** Reset form fields to initial state */
99
127
  Reset = "RESET",
128
+ /** Navigate back to the previous step */
100
129
  Back = "BACK"
101
130
  }
102
131
  /**
@@ -301,7 +301,7 @@ export interface EmbeddedSignInFlowRequest extends Partial<EmbeddedSignInFlowIni
301
301
  * Identifier of the specific action being triggered.
302
302
  * Corresponds to action components in the UI (e.g., submit button, social login).
303
303
  */
304
- actionId?: string;
304
+ action?: string;
305
305
  /**
306
306
  * User input data collected from the form components.
307
307
  * Keys should match the component identifiers from the response.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asgardeo/javascript",
3
- "version": "0.2.12",
3
+ "version": "0.2.14",
4
4
  "description": "Framework agnostic JavaScript SDK for Asgardeo.",
5
5
  "keywords": [
6
6
  "asgardeo",
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "tslib": "2.8.1",
49
- "@asgardeo/i18n": "0.3.8"
49
+ "@asgardeo/i18n": "0.3.9"
50
50
  },
51
51
  "publishConfig": {
52
52
  "access": "public"