@goodhood-web/nebenan-base 4.5.0-development.5 → 4.5.0-development.7

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.
@@ -1,3 +1,6 @@
1
+ import { z } from 'zod';
1
2
  import { FormField, InferFormData, WizardStepT } from '../../../../Forms';
2
3
  import { OnSubmitFunction } from '../../../../Forms/Form/Form.types';
4
+ export declare const emailSchema: z.ZodString;
5
+ export declare const passwordSchema: z.ZodEffects<z.ZodString, string, string>;
3
6
  export declare const getEmailStep: (onSubmit: OnSubmitFunction<InferFormData<FormField[]>>) => WizardStepT;
@@ -9,6 +9,7 @@ export declare const getFormattedDate: (date: string | null | undefined, dateFor
9
9
  time: string;
10
10
  } | null;
11
11
  export declare const getFeatureByIdentifier: (features: components["schemas"]["Core_V3_FeatureAddon_List"], identifier: string) => components["schemas"]["Core_V3_FeatureAddon"] | undefined;
12
+ export declare const hasActivePremiumFeature: (features: components["schemas"]["Core_V3_FeatureAddon_List"], identifiers?: string[]) => boolean;
12
13
  export declare const getPrice: (item: HoodMessage) => string;
13
14
  export declare const isReserved: (item: HoodMessage) => boolean;
14
15
  export declare const isReservedV2: (value: number | null) => value is 2;
@@ -1,3 +1,3 @@
1
1
  import { PasswordFieldProps } from './PasswordField.types';
2
- declare const PasswordField: ({ colorScheme, error, errorText, id, label, name, onBlur, onChange, passwordHint, progressBar, size, value, }: PasswordFieldProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const PasswordField: ({ colorScheme, error, errorText, id, label, name, onBlur, onChange, passwordHint, progressBar, score, size, value, }: PasswordFieldProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default PasswordField;
@@ -10,6 +10,7 @@ export type PasswordFieldProps = {
10
10
  onChange?: TextInputProps['onChange'];
11
11
  passwordHint?: string;
12
12
  progressBar?: boolean;
13
+ score?: number | null;
13
14
  size?: TextInputProps['size'];
14
15
  value?: string;
15
16
  };
@@ -1 +1 @@
1
- export declare const getProgressBarProgress: (password: string) => number;
1
+ export declare const getProgressBarProgress: (score?: number | null) => number;
@@ -1 +1,3 @@
1
+ import { ZxcvbnResult } from '@zxcvbn-ts/core';
1
2
  export declare function parsePhoneNumber(phoneNumber: string, part?: 'code' | 'number' | 'full'): string;
3
+ export declare const getPasswordHint: (result: ZxcvbnResult | null, hint?: string) => string | undefined;
@@ -5,6 +5,9 @@ export type AttachmentConfig = {
5
5
  onClick?: () => void;
6
6
  type: AttachmentType;
7
7
  };
8
+ export type EmojiType = {
9
+ native?: string;
10
+ } | string;
8
11
  export type RichTextAreaProps = {
9
12
  ariaDescribedby?: string;
10
13
  attachment?: AttachmentConfig[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/nebenan-base",
3
- "version": "4.5.0-development.5",
3
+ "version": "4.5.0-development.7",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",