@asgardeo/react 0.21.1 → 0.21.3

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.
@@ -39,10 +39,6 @@ export interface AcceptInviteFlowResponse {
39
39
  * Render props for custom UI rendering of AcceptInvite.
40
40
  */
41
41
  export interface BaseAcceptInviteRenderProps {
42
- /**
43
- * Title from the password screen (for use in completion screen).
44
- */
45
- completionTitle?: string;
46
42
  /**
47
43
  * Flow components from the current step.
48
44
  */
@@ -46,10 +46,6 @@ export interface BaseInviteUserRenderProps {
46
46
  * Flow components from the current step.
47
47
  */
48
48
  components: any[];
49
- /**
50
- * Copy invite link to clipboard.
51
- */
52
- copyInviteLink: () => Promise<void>;
53
49
  /**
54
50
  * API error (if any).
55
51
  */
@@ -74,22 +70,6 @@ export interface BaseInviteUserRenderProps {
74
70
  * Function to handle form submission.
75
71
  */
76
72
  handleSubmit: (component: any, data?: Record<string, any>) => Promise<void>;
77
- /**
78
- * Generated invite link (available after user provisioning).
79
- */
80
- inviteLink?: string;
81
- /**
82
- * Whether the invite link was copied.
83
- */
84
- inviteLinkCopied: boolean;
85
- /**
86
- * Whether the invite email was sent successfully.
87
- */
88
- isEmailSent: boolean;
89
- /**
90
- * Whether the invite link has been generated (admin flow complete).
91
- */
92
- isInviteGenerated: boolean;
93
73
  /**
94
74
  * Loading state.
95
75
  */
@@ -158,10 +138,6 @@ export interface BaseInviteUserProps {
158
138
  * This should make an authenticated request to the flow/execute endpoint.
159
139
  */
160
140
  onInitialize: (payload: Record<string, any>) => Promise<InviteUserFlowResponse>;
161
- /**
162
- * Callback when the invite link is generated successfully.
163
- */
164
- onInviteLinkGenerated?: (inviteLink: string, flowId: string) => void;
165
141
  /**
166
142
  * Function to submit flow step data.
167
143
  * This should make an authenticated request to the flow/execute endpoint.
@@ -42,10 +42,6 @@ export interface InviteUserProps {
42
42
  * Callback when the flow state changes.
43
43
  */
44
44
  onFlowChange?: (response: InviteUserFlowResponse) => void;
45
- /**
46
- * Callback when the invite link is generated successfully.
47
- */
48
- onInviteLinkGenerated?: (inviteLink: string, flowId: string) => void;
49
45
  /**
50
46
  * Whether to show the subtitle.
51
47
  */
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Copyright (c) 2026, 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 { FC } from 'react';
19
+ export interface CopyableTextProps {
20
+ /**
21
+ * Optional label displayed above the value box.
22
+ */
23
+ label?: string;
24
+ /**
25
+ * The text value to display and copy.
26
+ */
27
+ value: string;
28
+ }
29
+ /**
30
+ * A React component that displays a text value with an optional label and a button to copy the value to
31
+ * the clipboard. When the button is clicked, it attempts to copy the value using the Clipboard API, and
32
+ * falls back to a textarea method if the API is not supported.
33
+ * After copying, it shows a "Copied!" message for 3 seconds before resetting.
34
+ */
35
+ declare const CopyableText: FC<CopyableTextProps>;
36
+ export default CopyableText;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright (c) 2026, 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 { Theme } from '@asgardeo/browser';
19
+ declare const useStyles: (theme: Theme) => Record<string, string>;
20
+ export default useStyles;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright (c) 2026, 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 } from './CopyableText';
19
+ export type { CopyableTextProps } from './CopyableText';