@donotdev/core 0.1.45 → 0.1.47

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/index.d.ts CHANGED
@@ -1,15 +1,14 @@
1
1
  import * as v from 'valibot';
2
2
  import * as react from 'react';
3
- import { ComponentType, ReactNode, ReactElement } from 'react';
3
+ import { ReactNode, ComponentType, ReactElement } from 'react';
4
4
  import { FieldValues } from 'react-hook-form';
5
- import { TFunction, i18n, InitOptions } from 'i18next';
6
- import { TransProps, useTranslation as useTranslation$1 } from 'react-i18next';
5
+ import { InitOptions, TFunction, i18n } from 'i18next';
6
+ import { useTranslation as useTranslation$1, TransProps } from 'react-i18next';
7
7
  import * as zustand from 'zustand';
8
8
  import { StoreApi, UseBoundStore } from 'zustand';
9
9
  import { PersistOptions } from 'zustand/middleware';
10
- import { MutationOptions, QueryClient, QueryClientProvider, QueryClientProviderProps, QueryFunction, QueryKey, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult, useQueryClient } from '@tanstack/react-query';
10
+ import { QueryClient, UseQueryOptions, UseQueryResult, UseMutationOptions, UseMutationResult, MutationOptions, QueryClientProvider, QueryClientProviderProps, QueryFunction, QueryKey, useQueryClient } from '@tanstack/react-query';
11
11
  export { MutationOptions, QueryClient, QueryClientProvider, QueryClientProviderProps, QueryFunction, QueryKey, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult, useQueryClient } from '@tanstack/react-query';
12
- import * as react_jsx_runtime from 'react/jsx-runtime';
13
12
  import { DISPLAY, BUTTON_VARIANT } from '@donotdev/components';
14
13
 
15
14
  /**
@@ -23494,6 +23493,15 @@ declare function useBreathingTimer({ duration, onComplete, }: UseBreathingTimerP
23494
23493
  formatTime: (seconds: number) => string;
23495
23494
  };
23496
23495
 
23496
+ /**
23497
+ * @fileoverview QueryProviders - TanStack Query Provider Component
23498
+ * @description TanStack Query provider for apps that use CRUD operations (SSR-safe)
23499
+ *
23500
+ * @version 0.1.0
23501
+ * @since 0.0.1
23502
+ * @author AMBROISE PARK Consulting
23503
+ */
23504
+
23497
23505
  /**
23498
23506
  * QueryProviders - TanStack Query Provider Component
23499
23507
  *
@@ -23570,7 +23578,7 @@ interface AppConfigProviderProps {
23570
23578
  * </AppConfigProvider>
23571
23579
  * ```
23572
23580
  */
23573
- declare function AppConfigProvider({ config, platform, children, }: AppConfigProviderProps): react_jsx_runtime.JSX.Element;
23581
+ declare function AppConfigProvider({ config, platform, children, }: AppConfigProviderProps): react.JSX.Element;
23574
23582
  /**
23575
23583
  * useAppConfig hook
23576
23584
  *
@@ -23727,6 +23735,15 @@ declare namespace index_d$1 {
23727
23735
  export type { index_d$1_AppConfigProviderProps as AppConfigProviderProps, index_d$1_UseClickOutsideOptions as UseClickOutsideOptions, index_d$1_UseClickOutsideReturn as UseClickOutsideReturn, index_d$1_UseDebounceOptions as UseDebounceOptions, index_d$1_UseEventListenerOptions as UseEventListenerOptions, index_d$1_UseEventListenerReturn as UseEventListenerReturn, index_d$1_UseIntersectionObserverOptions as UseIntersectionObserverOptions, index_d$1_UseIntersectionObserverReturn as UseIntersectionObserverReturn, index_d$1_UseLocalStorageOptions as UseLocalStorageOptions, index_d$1_UseLocalStorageReturn as UseLocalStorageReturn, index_d$1_UseMutationOptionsWithErrorHandling as UseMutationOptionsWithErrorHandling, index_d$1_UseQueryOptionsWithErrorHandling as UseQueryOptionsWithErrorHandling, index_d$1_UseScriptLoaderOptions as UseScriptLoaderOptions, index_d$1_UseScriptLoaderReturn as UseScriptLoaderReturn, index_d$1_UseViewportVisibilityOptions as UseViewportVisibilityOptions, index_d$1_UseViewportVisibilityReturn as UseViewportVisibilityReturn };
23728
23736
  }
23729
23737
 
23738
+ /**
23739
+ * @fileoverview useTranslation hook
23740
+ * @description React hook for accessing translation functionality
23741
+ *
23742
+ * @version 0.1.0
23743
+ * @since 0.0.1
23744
+ * @author AMBROISE PARK Consulting
23745
+ */
23746
+
23730
23747
  /**
23731
23748
  * Translation hook result interface
23732
23749
  * @public
@@ -23897,7 +23914,7 @@ interface LanguageSelectorProps {
23897
23914
  * @since 0.0.1
23898
23915
  * @author AMBROISE PARK Consulting
23899
23916
  */
23900
- declare const LanguageSelector: ({ display, variant, showFlags, showNames, className, }: LanguageSelectorProps) => react_jsx_runtime.JSX.Element | null;
23917
+ declare const LanguageSelector: ({ display, variant, showFlags, showNames, className, }: LanguageSelectorProps) => react.JSX.Element | null;
23901
23918
 
23902
23919
  /**
23903
23920
  * Label format for the pill trigger
@@ -23939,7 +23956,7 @@ interface LanguageFABProps {
23939
23956
  *
23940
23957
  * @public
23941
23958
  */
23942
- declare const LanguageFAB: ({ "aria-label": ariaLabel, className, showFlag, showFlags, format, }: LanguageFABProps) => react_jsx_runtime.JSX.Element | null;
23959
+ declare const LanguageFAB: ({ "aria-label": ariaLabel, className, showFlag, showFlags, format, }: LanguageFABProps) => react.JSX.Element | null;
23943
23960
 
23944
23961
  /**
23945
23962
  * Orientation for the toggle group
@@ -24009,7 +24026,7 @@ interface LanguageToggleGroupProps {
24009
24026
  *
24010
24027
  * @public
24011
24028
  */
24012
- declare const LanguageToggleGroup: ({ languages, orientation, size, showFlags, showNames, className, showLoading, variant, }: LanguageToggleGroupProps) => react_jsx_runtime.JSX.Element | null;
24029
+ declare const LanguageToggleGroup: ({ languages, orientation, size, showFlags, showNames, className, showLoading, variant, }: LanguageToggleGroupProps) => react.JSX.Element | null;
24013
24030
 
24014
24031
  /** Props for the FAQ accordion section with i18n support. */
24015
24032
  interface FAQSectionProps {
@@ -24045,7 +24062,7 @@ interface FAQSectionProps {
24045
24062
  * aria-label="Frequently Asked Questions"
24046
24063
  * />
24047
24064
  */
24048
- declare function FAQSection({ t, keyPrefix, maxIndex, className, 'aria-label': ariaLabel, }: FAQSectionProps): react_jsx_runtime.JSX.Element | null;
24065
+ declare function FAQSection({ t, keyPrefix, maxIndex, className, 'aria-label': ariaLabel, }: FAQSectionProps): react.JSX.Element | null;
24049
24066
 
24050
24067
  interface TranslatedTextProps {
24051
24068
  /** Translation key (e.g., 'dashboard.title') */
@@ -24105,7 +24122,7 @@ interface TranslatedTextProps {
24105
24122
  * fallback="Save"
24106
24123
  * />
24107
24124
  */
24108
- declare function TranslatedText({ i18nKey, namespace, fallback, values, component: Component, className, 'aria-label': ariaLabel, 'aria-describedby': ariaDescribedBy, 'aria-live': ariaLive, srOnly, ...props }: TranslatedTextProps): react_jsx_runtime.JSX.Element;
24125
+ declare function TranslatedText({ i18nKey, namespace, fallback, values, component: Component, className, 'aria-label': ariaLabel, 'aria-describedby': ariaDescribedBy, 'aria-live': ariaLive, srOnly, ...props }: TranslatedTextProps): react.JSX.Element;
24109
24126
 
24110
24127
  /**
24111
24128
  * Trans component props - extends i18next TransProps
@@ -24135,7 +24152,7 @@ type DoNotDevTransProps = Omit<TransProps<string>, 'components' | 'ns'> & {
24135
24152
  * />
24136
24153
  * ```
24137
24154
  */
24138
- declare function Trans({ components, ...props }: DoNotDevTransProps): react_jsx_runtime.JSX.Element;
24155
+ declare function Trans({ components, ...props }: DoNotDevTransProps): react.JSX.Element;
24139
24156
  /**
24140
24157
  * List of available predefined tags for documentation/AI reference
24141
24158
  */
@@ -24266,7 +24283,7 @@ interface FlagBaseProps {
24266
24283
 
24267
24284
  declare function Flag({ code, className, style, title, }: {
24268
24285
  code: string;
24269
- } & FlagBaseProps): react_jsx_runtime.JSX.Element;
24286
+ } & FlagBaseProps): react.JSX.Element;
24270
24287
 
24271
24288
  declare function getFlagCodes(): string[];
24272
24289
  declare function hasFlag(code: string): boolean;