@goodhood-web/nebenan-base 3.5.0-development.2 → 3.5.0-development.21

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.
Files changed (107) hide show
  1. package/index.d.ts +6 -4
  2. package/index.js +136 -131
  3. package/index.mjs +69799 -68836
  4. package/lib/Authentication/Authentication.types.d.ts +12 -0
  5. package/lib/Authentication/LoginForm/LoginForm.d.ts +3 -0
  6. package/lib/Authentication/LoginForm/LoginForm.types.d.ts +8 -0
  7. package/lib/Authentication/LoginForm/LoginFormFields.d.ts +3 -0
  8. package/lib/Authentication/LoginForm/network.d.ts +6 -0
  9. package/lib/Authentication/PasswordForgotten/PasswordForgotten.d.ts +2 -0
  10. package/lib/Authentication/PasswordForgotten/PasswordForgotten.types.d.ts +4 -0
  11. package/lib/Authentication/PasswordForgotten/PasswordForgottenFormFields.d.ts +3 -0
  12. package/lib/Authentication/PasswordForgotten/network.d.ts +3 -0
  13. package/lib/Authentication/PasswordReset/PasswordReset.d.ts +6 -0
  14. package/lib/Authentication/PasswordReset/PasswordReset.types.d.ts +6 -0
  15. package/lib/Authentication/PasswordReset/PasswordResetFormFields.d.ts +3 -0
  16. package/lib/Authentication/PasswordReset/components/PasswordResetInstructions/PasswordResetInstructions.d.ts +4 -0
  17. package/lib/Authentication/PasswordReset/network.d.ts +3 -0
  18. package/lib/Authentication/PasswordReset/utils.d.ts +5 -0
  19. package/lib/{Registration/RegistrationFieldMappings/RegistrationFieldMappings.d.ts → Authentication/Registration/FieldMappings/FieldMappings.d.ts} +1 -1
  20. package/lib/Authentication/Registration/Register/Register.d.ts +3 -0
  21. package/lib/Authentication/Registration/Register/Register.types.d.ts +8 -0
  22. package/lib/Authentication/Registration/Register/components/InviteCard/InviteCard.d.ts +3 -0
  23. package/lib/Authentication/Registration/Register/components/InviteCard/InviteCard.types.d.ts +6 -0
  24. package/lib/Authentication/Registration/Registration.d.ts +3 -0
  25. package/lib/Authentication/Registration/Registration.types.d.ts +25 -0
  26. package/lib/Authentication/Registration/RegistrationCard/RegistrationCard.d.ts +3 -0
  27. package/lib/Authentication/Registration/RegistrationCard/RegistrationCard.types.d.ts +9 -0
  28. package/lib/{Registration → Authentication/Registration}/RegistrationForm/FieldMappings/FieldMappings.d.ts +1 -1
  29. package/lib/Authentication/Registration/RegistrationForm/RegistrationForm.d.ts +3 -0
  30. package/lib/Authentication/Registration/RegistrationForm/RegistrationForm.types.d.ts +8 -0
  31. package/lib/Authentication/Registration/RegistrationForm/Steps/Address.d.ts +3 -0
  32. package/lib/{Registration → Authentication/Registration}/RegistrationForm/Steps/Email.d.ts +2 -2
  33. package/lib/{Registration → Authentication/Registration}/RegistrationForm/Steps/Name.d.ts +1 -1
  34. package/lib/Authentication/Registration/RegistrationForm/network.d.ts +6 -0
  35. package/lib/Authentication/Registration/RegistrationForm/utils.d.ts +3 -0
  36. package/lib/{Registration → Authentication/Registration}/VerificationForm/FieldMappings/FieldMappings.d.ts +1 -1
  37. package/lib/{Registration → Authentication/Registration}/VerificationForm/Steps/Gps.d.ts +2 -2
  38. package/lib/{Registration → Authentication/Registration}/VerificationForm/Steps/InviteCode.d.ts +2 -2
  39. package/lib/Authentication/Registration/VerificationForm/Steps/Methods.d.ts +3 -0
  40. package/lib/{Registration → Authentication/Registration}/VerificationForm/Steps/PostalCode.d.ts +2 -2
  41. package/lib/{Registration → Authentication/Registration}/VerificationForm/Steps/PostalCodeRequested.d.ts +1 -1
  42. package/lib/{Registration → Authentication/Registration}/VerificationForm/Steps/Sms.d.ts +2 -2
  43. package/lib/{Registration → Authentication/Registration}/VerificationForm/Steps/SmsCode.d.ts +2 -2
  44. package/lib/Authentication/Registration/VerificationForm/VerificationForm.d.ts +3 -0
  45. package/lib/{Registration → Authentication/Registration}/VerificationForm/VerificationForm.types.d.ts +2 -2
  46. package/lib/{Registration → Authentication/Registration}/VerificationForm/network.d.ts +4 -4
  47. package/lib/{Registration → Authentication/Registration}/VerificationForm/utils.d.ts +2 -2
  48. package/lib/Authentication/Registration/utils.d.ts +8 -0
  49. package/lib/Authentication/components/AuthenticationCard/AuthenticationCard.d.ts +3 -0
  50. package/lib/Authentication/components/AuthenticationCard/AuthenticationCard.types.d.ts +12 -0
  51. package/lib/Authentication/components/DynamicScreen/DynamicScreen.d.ts +3 -0
  52. package/lib/Authentication/components/DynamicScreen/DynamicScreen.types.d.ts +26 -0
  53. package/lib/Authentication/components/DynamicScreen/utils.d.ts +2 -0
  54. package/lib/Authentication/components/EmailConfirmation/EmailConfirmation.d.ts +3 -0
  55. package/lib/Authentication/components/EmailConfirmation/EmailConfirmation.types.d.ts +5 -0
  56. package/lib/Authentication/components/ScreenCard/ScreenCard.d.ts +3 -0
  57. package/lib/Authentication/components/ScreenCard/ScreenCard.types.d.ts +16 -0
  58. package/lib/Authentication/components/ScreenLoading/ScreenLoading.d.ts +2 -0
  59. package/lib/Authentication/components/SuccessScreen/SuccessScreen.d.ts +4 -0
  60. package/lib/Authentication/components/index.d.ts +6 -0
  61. package/lib/Authentication/network.d.ts +3 -0
  62. package/lib/Feed/FeedItem/Marketplace/MarketplaceItemCardless/MarketplaceItemCardless.d.ts +1 -1
  63. package/lib/Feed/FeedItem/Marketplace/MarketplaceItemCardless/MarketplaceItemCardless.types.d.ts +3 -0
  64. package/lib/Feed/GridFeed/GridFeed.d.ts +1 -1
  65. package/lib/Feed/GridFeed/GridFeed.types.d.ts +4 -0
  66. package/lib/Feed/GridFeed/GridFeedAggregator/GridFeedAggregator.d.ts +1 -1
  67. package/lib/Feed/GridFeed/GridFeedAggregator/GridFeedAggregator.types.d.ts +2 -0
  68. package/lib/Feed/GridFeed/GridFeedAggregator/components/FeedDynamicRenderer/FeedDynamicRenderer.d.ts +1 -1
  69. package/lib/Feed/GridFeed/GridFeedAggregator/components/FeedDynamicRenderer/FeedDynamicRenderer.types.d.ts +2 -0
  70. package/lib/Feed/GridFeed/GridFeedDynamicRenderer/GridFeedDynamicRenderer.d.ts +1 -1
  71. package/lib/Feed/GridFeed/GridFeedDynamicRenderer/GridFeedDynamicRenderer.types.d.ts +1 -1
  72. package/lib/Forms/Fields/FormButton/FormButtonProps.d.ts +9 -5
  73. package/lib/Forms/Fields/FormSelectInput.d.ts +1 -0
  74. package/lib/Forms/Fields/NameAbbreviation/NameAbbreviation.d.ts +1 -1
  75. package/lib/Forms/Fields/PasswordField/PasswordField.d.ts +1 -1
  76. package/lib/Forms/Form/Form.types.d.ts +1 -1
  77. package/lib/Forms/Wizard/Wizard.types.d.ts +1 -1
  78. package/lib/utils/client.d.ts +2 -0
  79. package/lib/utils/hooks.d.ts +2 -2
  80. package/lib/utils/index.d.ts +4 -3
  81. package/lib/utils/server.d.ts +2 -0
  82. package/package.json +1 -1
  83. package/style.css +1 -1
  84. package/lib/AuthenticationForm/AuthenticationForm.d.ts +0 -3
  85. package/lib/AuthenticationForm/AuthenticationForm.types.d.ts +0 -13
  86. package/lib/Register/Register.d.ts +0 -3
  87. package/lib/Register/Register.types.d.ts +0 -4
  88. package/lib/Registration/Registration.d.ts +0 -3
  89. package/lib/Registration/Registration.store.d.ts +0 -4
  90. package/lib/Registration/Registration.types.d.ts +0 -17
  91. package/lib/Registration/RegistrationCard/RegistrationCard.d.ts +0 -9
  92. package/lib/Registration/RegistrationForm/RegistrationForm.d.ts +0 -3
  93. package/lib/Registration/RegistrationForm/RegistrationForm.types.d.ts +0 -5
  94. package/lib/Registration/RegistrationForm/Steps/Address.d.ts +0 -2
  95. package/lib/Registration/RegistrationForm/network.d.ts +0 -4
  96. package/lib/Registration/VerificationForm/Steps/Methods.d.ts +0 -3
  97. package/lib/Registration/VerificationForm/VerificationForm.d.ts +0 -3
  98. package/lib/Registration/VerificationForm/data.d.ts +0 -553
  99. package/lib/Registration/components/MandatoryEmailConfirmation/MandatoryEmailConfirmation.d.ts +0 -3
  100. package/lib/Registration/components/MandatoryEmailConfirmation/MandatoryEmailConfirmation.types.d.ts +0 -3
  101. package/lib/Registration/components/MandatoryEmailConfirmation/utils.d.ts +0 -4
  102. package/lib/Registration/components/SuccessScreen/SuccessScreen.d.ts +0 -2
  103. package/lib/Registration/utils.d.ts +0 -2
  104. /package/lib/{Register → Authentication/Registration/Register}/components/PrivacyInfoModal/PrivacyInfoModal.d.ts +0 -0
  105. /package/lib/{Register → Authentication/Registration/Register}/components/PrivacyInfoModal/PrivacyInfoModal.types.d.ts +0 -0
  106. /package/lib/{Registration → Authentication/Registration}/RegistrationForm/Steps/index.d.ts +0 -0
  107. /package/lib/{Registration → Authentication/Registration}/VerificationForm/Steps/index.d.ts +0 -0
@@ -2,7 +2,7 @@ import { ReactNode } from 'react';
2
2
  import { DefaultValues, FieldValues, Mode, UseFormReturn } from 'react-hook-form';
3
3
  import { ZodType } from 'zod';
4
4
  import { TGridSpacing } from '../../Grids/Grid/Grid.types';
5
- export type OnSubmitFunction<FormData extends FieldValues> = (arg: OnFormSubmitType<FormData>) => Promise<boolean | undefined | string>;
5
+ export type OnSubmitFunction<FormData extends FieldValues> = (arg: OnFormSubmitType<FormData>, submitter?: string) => Promise<boolean | undefined | string>;
6
6
  export type OnFormSubmitType<FormData extends FieldValues> = {
7
7
  data: FormData;
8
8
  methods?: UseFormReturn<FormData>;
@@ -60,7 +60,7 @@ export type ToggleField = StepField & FormToggleInputProps & {
60
60
  type: 'toggle';
61
61
  };
62
62
  export type ButtonField = StepField & {
63
- fieldConfig: Omit<FormButtonProps, 'id'>;
63
+ fieldConfig: FormButtonProps;
64
64
  type: 'button';
65
65
  };
66
66
  export type PasswordField = StepField & FormPasswordFieldProps & {
@@ -0,0 +1,2 @@
1
+ export declare const isMobile: (mobileScreenSize?: number) => boolean;
2
+ export declare const useIsBreakpointMatch: (tabletScreenBreakpoint?: number) => boolean;
@@ -1,3 +1,3 @@
1
1
  type EventType = 'keydown' | 'keyup' | 'keypress';
2
- declare function useKeyEvent(targetKeys: string | string[], callback: (event: KeyboardEvent) => void, eventType?: EventType): void;
3
- export default useKeyEvent;
2
+ export declare const useKeyEvent: (targetKeys: string | string[], callback: (event: KeyboardEvent) => void, eventType?: EventType) => void;
3
+ export {};
@@ -1,3 +1,4 @@
1
- export declare const isMobile: (mobileScreenSize?: number) => boolean;
2
- export declare const useIsBreakpointMatch: (tabletScreenBreakpoint?: number) => boolean;
3
- export declare const getLang: <T>(lang: Record<string, T>, selectedLang?: string) => T;
1
+ export * from './client';
2
+ export * from './server';
3
+ export * from './hooks';
4
+ export * from './breakpoints';
@@ -0,0 +1,2 @@
1
+ export declare const getLang: <T>(lang: Record<string, T>, selectedLang?: string) => T;
2
+ export declare const interpolateKey: (template: string, key: string, value?: string) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/nebenan-base",
3
- "version": "3.5.0-development.2",
3
+ "version": "3.5.0-development.21",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",