@omnibase/shadcn 0.4.1 → 0.4.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.
- package/dist/index.cjs +822 -343
- package/dist/index.d.cts +49 -12
- package/dist/index.d.ts +49 -12
- package/dist/index.js +813 -344
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,14 +1,56 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { LoginFlow, RegistrationFlow, RecoveryFlow,
|
|
2
|
+
import { LoginFlow, RegistrationFlow, VerificationFlow, RecoveryFlow, SettingsFlow, UiNode, UiNodeInputAttributes } from '@ory/client-fetch';
|
|
3
|
+
import * as React$1 from 'react';
|
|
3
4
|
import { Tenant } from '@omnibase/core-js/tenants';
|
|
4
|
-
import { Product } from '@omnibase/core-js/
|
|
5
|
+
import { Product } from '@omnibase/core-js/payments';
|
|
5
6
|
|
|
6
|
-
type
|
|
7
|
+
type LoginFormProps = {
|
|
8
|
+
flow: LoginFlow;
|
|
9
|
+
Header?: React.ReactNode;
|
|
10
|
+
register_url?: string;
|
|
11
|
+
};
|
|
12
|
+
declare function LoginForm({ flow, Header, register_url }: LoginFormProps): react_jsx_runtime.JSX.Element;
|
|
13
|
+
|
|
14
|
+
type RegistrationFormProps = {
|
|
15
|
+
flow: RegistrationFlow;
|
|
16
|
+
Header?: React.ReactNode;
|
|
17
|
+
login_url?: string;
|
|
18
|
+
};
|
|
19
|
+
declare function RegistrationForm({ flow, Header, login_url, }: RegistrationFormProps): react_jsx_runtime.JSX.Element;
|
|
20
|
+
|
|
21
|
+
type VerificationFormProps = {
|
|
22
|
+
flow: VerificationFlow;
|
|
23
|
+
Header?: React$1.ReactNode;
|
|
24
|
+
autoRedirect?: boolean;
|
|
25
|
+
};
|
|
26
|
+
declare function VerificationForm({ flow, Header, autoRedirect, }: VerificationFormProps): react_jsx_runtime.JSX.Element;
|
|
27
|
+
|
|
28
|
+
type RecoveryFormProps = {
|
|
29
|
+
flow: RecoveryFlow;
|
|
30
|
+
Header?: React.ReactNode;
|
|
31
|
+
};
|
|
32
|
+
declare function RecoveryForm({ flow, Header }: RecoveryFormProps): react_jsx_runtime.JSX.Element;
|
|
33
|
+
|
|
34
|
+
type SettingsFormProps = {
|
|
35
|
+
flow: SettingsFlow;
|
|
36
|
+
Header?: React.ReactNode;
|
|
37
|
+
};
|
|
38
|
+
declare function SettingsForm({ flow }: SettingsFormProps): react_jsx_runtime.JSX.Element;
|
|
39
|
+
|
|
40
|
+
type FlowType = LoginFlow | RegistrationFlow | RecoveryFlow | VerificationFlow | SettingsFlow;
|
|
7
41
|
type CustomFormProps = {
|
|
8
42
|
flow: FlowType;
|
|
9
43
|
Header?: React.ReactNode;
|
|
10
44
|
};
|
|
11
|
-
|
|
45
|
+
type NodesByGroup = Record<string, UiNode[]>;
|
|
46
|
+
declare function isUiNodeInputAttributes(attributes: any): attributes is UiNodeInputAttributes;
|
|
47
|
+
|
|
48
|
+
declare function sortNodes(nodes: UiNode[]): UiNode[];
|
|
49
|
+
declare function findSubmitButton(nodes: UiNode[]): UiNode | undefined;
|
|
50
|
+
declare function findAnchorNode(nodes: UiNode[]): UiNode | undefined;
|
|
51
|
+
declare function filterInputNodes(nodes: UiNode[]): UiNode[];
|
|
52
|
+
declare function findCsrfToken(nodes: UiNode[]): UiNode | undefined;
|
|
53
|
+
declare function groupNodesByGroup(nodes: UiNode[]): Record<string, UiNode[]>;
|
|
12
54
|
|
|
13
55
|
interface SwitchActiveTenantProps {
|
|
14
56
|
/** Array of tenants available to the user */
|
|
@@ -74,13 +116,8 @@ interface TenantCreatorConfig {
|
|
|
74
116
|
};
|
|
75
117
|
}
|
|
76
118
|
interface TenantCreatorFormActions {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
billingEmail: string;
|
|
80
|
-
}) => void | Promise<void>;
|
|
81
|
-
onJoinOrganization?: (data: {
|
|
82
|
-
token: string;
|
|
83
|
-
}) => void | Promise<void>;
|
|
119
|
+
createOrganizationAction?: (formData: FormData) => void | Promise<void>;
|
|
120
|
+
joinOrganizationAction?: (formData: FormData) => void | Promise<void>;
|
|
84
121
|
}
|
|
85
122
|
interface TenantCreatorProps {
|
|
86
123
|
config?: TenantCreatorConfig;
|
|
@@ -89,4 +126,4 @@ interface TenantCreatorProps {
|
|
|
89
126
|
}
|
|
90
127
|
declare function TenantCreator({ config, formActions, className, }: TenantCreatorProps): react_jsx_runtime.JSX.Element;
|
|
91
128
|
|
|
92
|
-
export {
|
|
129
|
+
export { type CustomFormProps, type FlowType, LoginForm, type LoginFormProps, type NodesByGroup, PricingTable, type PricingTableProps, RecoveryForm, type RecoveryFormProps, RegistrationForm, type RegistrationFormProps, SettingsForm, type SettingsFormProps, SwitchActiveTenant, type SwitchActiveTenantProps, TenantCreator, type TenantCreatorConfig, type TenantCreatorFormActions, type TenantCreatorProps, VerificationForm, type VerificationFormProps, filterInputNodes, findAnchorNode, findCsrfToken, findSubmitButton, groupNodesByGroup, isUiNodeInputAttributes, sortNodes };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,56 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { LoginFlow, RegistrationFlow, RecoveryFlow,
|
|
2
|
+
import { LoginFlow, RegistrationFlow, VerificationFlow, RecoveryFlow, SettingsFlow, UiNode, UiNodeInputAttributes } from '@ory/client-fetch';
|
|
3
|
+
import * as React$1 from 'react';
|
|
3
4
|
import { Tenant } from '@omnibase/core-js/tenants';
|
|
4
|
-
import { Product } from '@omnibase/core-js/
|
|
5
|
+
import { Product } from '@omnibase/core-js/payments';
|
|
5
6
|
|
|
6
|
-
type
|
|
7
|
+
type LoginFormProps = {
|
|
8
|
+
flow: LoginFlow;
|
|
9
|
+
Header?: React.ReactNode;
|
|
10
|
+
register_url?: string;
|
|
11
|
+
};
|
|
12
|
+
declare function LoginForm({ flow, Header, register_url }: LoginFormProps): react_jsx_runtime.JSX.Element;
|
|
13
|
+
|
|
14
|
+
type RegistrationFormProps = {
|
|
15
|
+
flow: RegistrationFlow;
|
|
16
|
+
Header?: React.ReactNode;
|
|
17
|
+
login_url?: string;
|
|
18
|
+
};
|
|
19
|
+
declare function RegistrationForm({ flow, Header, login_url, }: RegistrationFormProps): react_jsx_runtime.JSX.Element;
|
|
20
|
+
|
|
21
|
+
type VerificationFormProps = {
|
|
22
|
+
flow: VerificationFlow;
|
|
23
|
+
Header?: React$1.ReactNode;
|
|
24
|
+
autoRedirect?: boolean;
|
|
25
|
+
};
|
|
26
|
+
declare function VerificationForm({ flow, Header, autoRedirect, }: VerificationFormProps): react_jsx_runtime.JSX.Element;
|
|
27
|
+
|
|
28
|
+
type RecoveryFormProps = {
|
|
29
|
+
flow: RecoveryFlow;
|
|
30
|
+
Header?: React.ReactNode;
|
|
31
|
+
};
|
|
32
|
+
declare function RecoveryForm({ flow, Header }: RecoveryFormProps): react_jsx_runtime.JSX.Element;
|
|
33
|
+
|
|
34
|
+
type SettingsFormProps = {
|
|
35
|
+
flow: SettingsFlow;
|
|
36
|
+
Header?: React.ReactNode;
|
|
37
|
+
};
|
|
38
|
+
declare function SettingsForm({ flow }: SettingsFormProps): react_jsx_runtime.JSX.Element;
|
|
39
|
+
|
|
40
|
+
type FlowType = LoginFlow | RegistrationFlow | RecoveryFlow | VerificationFlow | SettingsFlow;
|
|
7
41
|
type CustomFormProps = {
|
|
8
42
|
flow: FlowType;
|
|
9
43
|
Header?: React.ReactNode;
|
|
10
44
|
};
|
|
11
|
-
|
|
45
|
+
type NodesByGroup = Record<string, UiNode[]>;
|
|
46
|
+
declare function isUiNodeInputAttributes(attributes: any): attributes is UiNodeInputAttributes;
|
|
47
|
+
|
|
48
|
+
declare function sortNodes(nodes: UiNode[]): UiNode[];
|
|
49
|
+
declare function findSubmitButton(nodes: UiNode[]): UiNode | undefined;
|
|
50
|
+
declare function findAnchorNode(nodes: UiNode[]): UiNode | undefined;
|
|
51
|
+
declare function filterInputNodes(nodes: UiNode[]): UiNode[];
|
|
52
|
+
declare function findCsrfToken(nodes: UiNode[]): UiNode | undefined;
|
|
53
|
+
declare function groupNodesByGroup(nodes: UiNode[]): Record<string, UiNode[]>;
|
|
12
54
|
|
|
13
55
|
interface SwitchActiveTenantProps {
|
|
14
56
|
/** Array of tenants available to the user */
|
|
@@ -74,13 +116,8 @@ interface TenantCreatorConfig {
|
|
|
74
116
|
};
|
|
75
117
|
}
|
|
76
118
|
interface TenantCreatorFormActions {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
billingEmail: string;
|
|
80
|
-
}) => void | Promise<void>;
|
|
81
|
-
onJoinOrganization?: (data: {
|
|
82
|
-
token: string;
|
|
83
|
-
}) => void | Promise<void>;
|
|
119
|
+
createOrganizationAction?: (formData: FormData) => void | Promise<void>;
|
|
120
|
+
joinOrganizationAction?: (formData: FormData) => void | Promise<void>;
|
|
84
121
|
}
|
|
85
122
|
interface TenantCreatorProps {
|
|
86
123
|
config?: TenantCreatorConfig;
|
|
@@ -89,4 +126,4 @@ interface TenantCreatorProps {
|
|
|
89
126
|
}
|
|
90
127
|
declare function TenantCreator({ config, formActions, className, }: TenantCreatorProps): react_jsx_runtime.JSX.Element;
|
|
91
128
|
|
|
92
|
-
export {
|
|
129
|
+
export { type CustomFormProps, type FlowType, LoginForm, type LoginFormProps, type NodesByGroup, PricingTable, type PricingTableProps, RecoveryForm, type RecoveryFormProps, RegistrationForm, type RegistrationFormProps, SettingsForm, type SettingsFormProps, SwitchActiveTenant, type SwitchActiveTenantProps, TenantCreator, type TenantCreatorConfig, type TenantCreatorFormActions, type TenantCreatorProps, VerificationForm, type VerificationFormProps, filterInputNodes, findAnchorNode, findCsrfToken, findSubmitButton, groupNodesByGroup, isUiNodeInputAttributes, sortNodes };
|