@nocios/crudify-ui 1.3.4 → 1.3.6

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.d.mts CHANGED
@@ -51,6 +51,32 @@ interface UserProfileDisplayProps {
51
51
  }
52
52
  declare const UserProfileDisplay: React.FC<UserProfileDisplayProps>;
53
53
 
54
+ declare const POLICY_ACTIONS: readonly ["create", "read", "update", "delete"];
55
+ type PolicyAction = typeof POLICY_ACTIONS[number];
56
+ declare const PREFERRED_POLICY_ORDER: PolicyAction[];
57
+
58
+ type Policy = {
59
+ id: string;
60
+ action: PolicyAction;
61
+ fields?: {
62
+ allow: string[];
63
+ owner_allow: string[];
64
+ deny: string[];
65
+ };
66
+ permission?: string;
67
+ };
68
+ type FieldErrorMap = string | ({
69
+ _error?: string;
70
+ } & Record<string, string | undefined>);
71
+ interface PoliciesProps {
72
+ policies: Policy[];
73
+ onChange: (next: Policy[]) => void;
74
+ availableFields: string[];
75
+ errors?: FieldErrorMap;
76
+ isSubmitting?: boolean;
77
+ }
78
+ declare const Policies: React.FC<PoliciesProps>;
79
+
54
80
  interface CrudifyApiResponse<T = unknown> {
55
81
  success: boolean;
56
82
  data?: T;
@@ -1330,30 +1356,4 @@ interface UseDataReturn {
1330
1356
  */
1331
1357
  declare const useData: () => UseDataReturn;
1332
1358
 
1333
- declare const POLICY_ACTIONS: readonly ["create", "read", "update", "delete"];
1334
- type PolicyAction = typeof POLICY_ACTIONS[number];
1335
- declare const PREFERRED_POLICY_ORDER: PolicyAction[];
1336
-
1337
- type Policy = {
1338
- id: string;
1339
- action: PolicyAction;
1340
- fields?: {
1341
- allow: string[];
1342
- owner_allow: string[];
1343
- deny: string[];
1344
- };
1345
- permission?: string;
1346
- };
1347
- type FieldErrorMap = string | ({
1348
- _error?: string;
1349
- } & Record<string, string | undefined>);
1350
- interface PoliciesProps {
1351
- policies: Policy[];
1352
- onChange: (next: Policy[]) => void;
1353
- availableFields: string[];
1354
- errors?: FieldErrorMap;
1355
- isSubmitting?: boolean;
1356
- }
1357
- declare const Policies: React.FC<PoliciesProps>;
1358
-
1359
1359
  export { type ApiError, type BoxScreenType, type CrudifyApiResponse, type CrudifyConfig, type CrudifyDataContextState, CrudifyDataProvider, type CrudifyDataProviderProps, CrudifyLogin, type CrudifyLoginConfig, type CrudifyLoginProps, type CrudifyLoginTranslations, type CrudifyTransactionResponse, type CrudifyUserData, ERROR_CODES, ERROR_SEVERITY_MAP, type ErrorCode, type ErrorSeverity, type ForgotPasswordRequest, type JWTPayload$1 as JWTPayload, type JwtPayload, LoginComponent, type LoginRequest, type LoginResponse, type LoginResult, POLICY_ACTIONS, PREFERRED_POLICY_ORDER, type ParsedError, Policies, type PolicyAction, ProtectedRoute, type ProtectedRouteProps, type ResetPasswordRequest, type ResolvedConfig, type SessionConfig, SessionDebugInfo, SessionManager, SessionProvider, type SessionProviderProps, type SessionState, SessionStatus, type StorageType, type TokenData, TokenStorage, type TransactionResponseData, type UseAuthReturn, type UseCrudifyAuthReturn, type UseCrudifyConfigReturn, type UseCrudifyDataReturn, type UseCrudifyInstanceReturn, type UseCrudifyUserOptions, type UseCrudifyUserReturn, type UseDataReturn, type UseSessionOptions, type UseUserDataOptions, type UseUserDataReturn, type UserData, type UserLoginData, type UserProfile, UserProfileDisplay, type ValidateCodeRequest, type ValidationError, configurationManager, crudifyInitializer, decodeJwtSafely, getCookie, getCrudifyInstanceAsync, getCrudifyInstanceSync, getCurrentUserEmail, getErrorMessage, handleCrudifyError, isTokenExpired, parseApiError, parseJavaScriptError, parseTransactionError, secureLocalStorage, secureSessionStorage, tokenManager, useAuth, useCrudifyAuth, useCrudifyConfig, useCrudifyData, useCrudifyDataContext, useCrudifyInstance, useCrudifyLogin, useCrudifyUser, useData, useSession, useSessionContext, useUserData, useUserProfile };
package/dist/index.d.ts CHANGED
@@ -51,6 +51,32 @@ interface UserProfileDisplayProps {
51
51
  }
52
52
  declare const UserProfileDisplay: React.FC<UserProfileDisplayProps>;
53
53
 
54
+ declare const POLICY_ACTIONS: readonly ["create", "read", "update", "delete"];
55
+ type PolicyAction = typeof POLICY_ACTIONS[number];
56
+ declare const PREFERRED_POLICY_ORDER: PolicyAction[];
57
+
58
+ type Policy = {
59
+ id: string;
60
+ action: PolicyAction;
61
+ fields?: {
62
+ allow: string[];
63
+ owner_allow: string[];
64
+ deny: string[];
65
+ };
66
+ permission?: string;
67
+ };
68
+ type FieldErrorMap = string | ({
69
+ _error?: string;
70
+ } & Record<string, string | undefined>);
71
+ interface PoliciesProps {
72
+ policies: Policy[];
73
+ onChange: (next: Policy[]) => void;
74
+ availableFields: string[];
75
+ errors?: FieldErrorMap;
76
+ isSubmitting?: boolean;
77
+ }
78
+ declare const Policies: React.FC<PoliciesProps>;
79
+
54
80
  interface CrudifyApiResponse<T = unknown> {
55
81
  success: boolean;
56
82
  data?: T;
@@ -1330,30 +1356,4 @@ interface UseDataReturn {
1330
1356
  */
1331
1357
  declare const useData: () => UseDataReturn;
1332
1358
 
1333
- declare const POLICY_ACTIONS: readonly ["create", "read", "update", "delete"];
1334
- type PolicyAction = typeof POLICY_ACTIONS[number];
1335
- declare const PREFERRED_POLICY_ORDER: PolicyAction[];
1336
-
1337
- type Policy = {
1338
- id: string;
1339
- action: PolicyAction;
1340
- fields?: {
1341
- allow: string[];
1342
- owner_allow: string[];
1343
- deny: string[];
1344
- };
1345
- permission?: string;
1346
- };
1347
- type FieldErrorMap = string | ({
1348
- _error?: string;
1349
- } & Record<string, string | undefined>);
1350
- interface PoliciesProps {
1351
- policies: Policy[];
1352
- onChange: (next: Policy[]) => void;
1353
- availableFields: string[];
1354
- errors?: FieldErrorMap;
1355
- isSubmitting?: boolean;
1356
- }
1357
- declare const Policies: React.FC<PoliciesProps>;
1358
-
1359
1359
  export { type ApiError, type BoxScreenType, type CrudifyApiResponse, type CrudifyConfig, type CrudifyDataContextState, CrudifyDataProvider, type CrudifyDataProviderProps, CrudifyLogin, type CrudifyLoginConfig, type CrudifyLoginProps, type CrudifyLoginTranslations, type CrudifyTransactionResponse, type CrudifyUserData, ERROR_CODES, ERROR_SEVERITY_MAP, type ErrorCode, type ErrorSeverity, type ForgotPasswordRequest, type JWTPayload$1 as JWTPayload, type JwtPayload, LoginComponent, type LoginRequest, type LoginResponse, type LoginResult, POLICY_ACTIONS, PREFERRED_POLICY_ORDER, type ParsedError, Policies, type PolicyAction, ProtectedRoute, type ProtectedRouteProps, type ResetPasswordRequest, type ResolvedConfig, type SessionConfig, SessionDebugInfo, SessionManager, SessionProvider, type SessionProviderProps, type SessionState, SessionStatus, type StorageType, type TokenData, TokenStorage, type TransactionResponseData, type UseAuthReturn, type UseCrudifyAuthReturn, type UseCrudifyConfigReturn, type UseCrudifyDataReturn, type UseCrudifyInstanceReturn, type UseCrudifyUserOptions, type UseCrudifyUserReturn, type UseDataReturn, type UseSessionOptions, type UseUserDataOptions, type UseUserDataReturn, type UserData, type UserLoginData, type UserProfile, UserProfileDisplay, type ValidateCodeRequest, type ValidationError, configurationManager, crudifyInitializer, decodeJwtSafely, getCookie, getCrudifyInstanceAsync, getCrudifyInstanceSync, getCurrentUserEmail, getErrorMessage, handleCrudifyError, isTokenExpired, parseApiError, parseJavaScriptError, parseTransactionError, secureLocalStorage, secureSessionStorage, tokenManager, useAuth, useCrudifyAuth, useCrudifyConfig, useCrudifyData, useCrudifyDataContext, useCrudifyInstance, useCrudifyLogin, useCrudifyUser, useData, useSession, useSessionContext, useUserData, useUserProfile };