@donotdev/core 0.0.5 → 0.0.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.
package/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as v from 'valibot';
2
2
  import * as React$1 from 'react';
3
- import { ReactNode, ReactElement, ComponentType } from 'react';
3
+ import { ReactNode, ComponentType, ReactElement } from 'react';
4
4
  export { ReactNode } from 'react';
5
5
  import * as zustand from 'zustand';
6
6
  import { UseBoundStore, StoreApi as StoreApi$1 } from 'zustand';
@@ -9243,7 +9243,7 @@ type DnDevOverride = () => ReactNode | null;
9243
9243
  */
9244
9244
  interface LayoutConfig {
9245
9245
  /** Breadcrumbs display behavior */
9246
- breadcrumbs?: 'smart' | 'always' | 'never' | false;
9246
+ breadcrumbs?: 'smart' | 'always' | 'never';
9247
9247
  /** Header override - full component or slot overrides */
9248
9248
  header?: DnDevOverride | {
9249
9249
  start?: DnDevOverride;
@@ -9296,7 +9296,7 @@ interface DnDevLayoutProps {
9296
9296
  /** App metadata and branding */
9297
9297
  app?: AppMetadata;
9298
9298
  /** Breadcrumbs display behavior */
9299
- breadcrumbs?: 'smart' | 'always' | 'never' | false;
9299
+ breadcrumbs?: 'smart' | 'always' | 'never';
9300
9300
  /** Global navigation command palette enabled */
9301
9301
  globalGoTo?: boolean;
9302
9302
  /** Additional CSS classes */
@@ -20158,9 +20158,10 @@ interface UseIntersectionObserverOptions {
20158
20158
  * @since 0.0.1
20159
20159
  * @author AMBROISE PARK Consulting
20160
20160
  */
20161
- interface UseIntersectionObserverReturn {
20162
- ref: React.RefObject<Element | null>;
20161
+ interface UseIntersectionObserverReturn<T extends Element = Element> {
20162
+ ref: React.RefObject<T | null>;
20163
20163
  isIntersecting: boolean;
20164
+ hasTriggered: boolean;
20164
20165
  entry: IntersectionObserverEntry | null;
20165
20166
  }
20166
20167
  /**
@@ -20234,7 +20235,7 @@ interface UseIntersectionObserverReturn {
20234
20235
  * @since 0.0.1
20235
20236
  * @author AMBROISE PARK Consulting
20236
20237
  */
20237
- declare function useIntersectionObserver(options?: UseIntersectionObserverOptions): UseIntersectionObserverReturn;
20238
+ declare function useIntersectionObserver<T extends Element = Element>(options?: UseIntersectionObserverOptions): UseIntersectionObserverReturn<T>;
20238
20239
 
20239
20240
  /**
20240
20241
 
@@ -21215,7 +21216,7 @@ type index_d$1_UseDebounceOptions<T = any> = UseDebounceOptions<T>;
21215
21216
  type index_d$1_UseEventListenerOptions<TTarget extends EventTarget = Window> = UseEventListenerOptions<TTarget>;
21216
21217
  type index_d$1_UseEventListenerReturn = UseEventListenerReturn;
21217
21218
  type index_d$1_UseIntersectionObserverOptions = UseIntersectionObserverOptions;
21218
- type index_d$1_UseIntersectionObserverReturn = UseIntersectionObserverReturn;
21219
+ type index_d$1_UseIntersectionObserverReturn<T extends Element = Element> = UseIntersectionObserverReturn<T>;
21219
21220
  type index_d$1_UseLocalStorageOptions<T> = UseLocalStorageOptions<T>;
21220
21221
  type index_d$1_UseLocalStorageReturn<T> = UseLocalStorageReturn<T>;
21221
21222
  type index_d$1_UseScriptLoaderOptions = UseScriptLoaderOptions;