Module "frontend-packages/react-cookie-banner-admin/src/hooks/useFormServiceHandler"
Functions
useFormServiceHandler
- useFormServiceHandler(opts: { allowContentBlockerCreation?: boolean; attributes?: FormServiceTemplateValues; contentBlockerTemplates?: FormServiceContextProps["contentBlockerTemplates"]; groups: FormServiceContextProps["groups"]; handleSave: (value: FormServiceValueProps) => Promise<void>; preset?: { identifier: string; version: number }; selectedGroup: number; setCookiesViaManager: ServiceTagManager; shouldUncheckContentBlockerCheckbox?: boolean; trackFieldsDifferFromDefaultValues?: Array<keyof FormServiceValueProps> } & Omit<Parameters<typeof useFormHandler>[0], "handleSave" | "trackFieldsDifferFromDefaultValues" | "defaultValues" | "i18n"> & Pick<RegexpTranslationExtractor.TranslationFunctions, "__" | "_i">): { contextValue: Partial<Pick<TranslationFunctions, "__" | "_i"> & { allowContentBlockerCreation: boolean; allowLegalBasisLegalRequirement: boolean; contentBlockerTemplates: Array<{ identifier: string; name: string; subHeadline?: string }>; defaultPresetValues: Partial<FormServiceValueProps>; dynamicFields: FormServiceFieldHandlingDynamicFieldProps[]; essentialGroupId: number; groups: Array<{ id: number; name: string }>; hasManager: boolean; hasServiceByConsentForwardingUniqueName: (slug: string) => Promise<boolean>; isConsentForwarding: boolean; isDataProcessingInUnsafeCountries: boolean; isEdit: boolean; isPro: boolean; isTcf: boolean; isTemplateUpdate: boolean; notices: { createContentBlocker: NoticeEntry[]; group: NoticeEntry[]; providerPrivacyPolicyUrl: NoticeEntry[]; technicalHandling: NoticeEntry[] }; presetCheck: boolean; renderCodeMirror: () => Element; serviceGotScanned: boolean; serviceIsManager: boolean; setCookiesViaManager: ServiceTagManager; skipIfActiveComponents: Record<string, string> }>; defaultValues: FormServiceValueProps; onValuesChange: (Anonymous function); useGroup: string | number }
-
Parameters
-
opts: { allowContentBlockerCreation?: boolean; attributes?: FormServiceTemplateValues; contentBlockerTemplates?: FormServiceContextProps["contentBlockerTemplates"]; groups: FormServiceContextProps["groups"]; handleSave: (value: FormServiceValueProps) => Promise<void>; preset?: { identifier: string; version: number }; selectedGroup: number; setCookiesViaManager: ServiceTagManager; shouldUncheckContentBlockerCheckbox?: boolean; trackFieldsDifferFromDefaultValues?: Array<keyof FormServiceValueProps> } & Omit<Parameters<typeof useFormHandler>[0], "handleSave" | "trackFieldsDifferFromDefaultValues" | "defaultValues" | "i18n"> & Pick<RegexpTranslationExtractor.TranslationFunctions, "__" | "_i">
Returns { contextValue: Partial<Pick<TranslationFunctions, "__" | "_i"> & { allowContentBlockerCreation: boolean; allowLegalBasisLegalRequirement: boolean; contentBlockerTemplates: Array<{ identifier: string; name: string; subHeadline?: string }>; defaultPresetValues: Partial<FormServiceValueProps>; dynamicFields: FormServiceFieldHandlingDynamicFieldProps[]; essentialGroupId: number; groups: Array<{ id: number; name: string }>; hasManager: boolean; hasServiceByConsentForwardingUniqueName: (slug: string) => Promise<boolean>; isConsentForwarding: boolean; isDataProcessingInUnsafeCountries: boolean; isEdit: boolean; isPro: boolean; isTcf: boolean; isTemplateUpdate: boolean; notices: { createContentBlocker: NoticeEntry[]; group: NoticeEntry[]; providerPrivacyPolicyUrl: NoticeEntry[]; technicalHandling: NoticeEntry[] }; presetCheck: boolean; renderCodeMirror: () => Element; serviceGotScanned: boolean; serviceIsManager: boolean; setCookiesViaManager: ServiceTagManager; skipIfActiveComponents: Record<string, string> }>; defaultValues: FormServiceValueProps; onValuesChange: (Anonymous function); useGroup: string | number }
-
contextValue: Partial<Pick<TranslationFunctions, "__" | "_i"> & { allowContentBlockerCreation: boolean; allowLegalBasisLegalRequirement: boolean; contentBlockerTemplates: Array<{ identifier: string; name: string; subHeadline?: string }>; defaultPresetValues: Partial<FormServiceValueProps>; dynamicFields: FormServiceFieldHandlingDynamicFieldProps[]; essentialGroupId: number; groups: Array<{ id: number; name: string }>; hasManager: boolean; hasServiceByConsentForwardingUniqueName: (slug: string) => Promise<boolean>; isConsentForwarding: boolean; isDataProcessingInUnsafeCountries: boolean; isEdit: boolean; isPro: boolean; isTcf: boolean; isTemplateUpdate: boolean; notices: { createContentBlocker: NoticeEntry[]; group: NoticeEntry[]; providerPrivacyPolicyUrl: NoticeEntry[]; technicalHandling: NoticeEntry[] }; presetCheck: boolean; renderCodeMirror: () => Element; serviceGotScanned: boolean; serviceIsManager: boolean; setCookiesViaManager: ServiceTagManager; skipIfActiveComponents: Record<string, string> }>
-
-
onValuesChange: (Anonymous function)
-
useGroup: string | number