@depict-ai/utilishared 2.0.1 → 2.0.3

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/latest/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference path="../jsx.d.ts" />
2
- import { Accessor } from "solid-js";
3
- export const version = "2.0.1";
2
+ import { JSX, Accessor } from "solid-js";
3
+ export const version = "2.0.3";
4
4
  export const is_debug: boolean;
5
5
  /**
6
6
  * Sets the prefix of dlog, dwarn, and derror messages in the browser console. Defaults to `[Depict]`.
@@ -1347,8 +1347,8 @@ export interface Slider_Options {
1347
1347
  }
1348
1348
  export class Amazing_Slider {
1349
1349
  #private;
1350
- container: HTMLElement;
1351
- insert_here: HTMLElement;
1350
+ container: HTMLDivElement;
1351
+ insert_here: HTMLDivElement;
1352
1352
  intersecting_items_object: {
1353
1353
  [key: string]: IntersectionObserverEntry;
1354
1354
  [key: number]: IntersectionObserverEntry;
@@ -1568,8 +1568,8 @@ export const Fragment: ({
1568
1568
  }: {
1569
1569
  children: Elem[] | Elem;
1570
1570
  }, _unknown?: unknown) => DocumentFragment;
1571
- export const chevronRight: HTMLElement;
1572
- export const chevronLeft: HTMLElement;
1571
+ export const chevronRight: JSX.Element;
1572
+ export const chevronLeft: JSX.Element;
1573
1573
  export const expandingContainer: ({
1574
1574
  duration
1575
1575
  }?: {
@@ -1759,7 +1759,7 @@ export function slider_dots_factory({
1759
1759
  constructor_plugin: () => void;
1760
1760
  mutation_plugin: (intersections: IntersectionObserverEntry[], intersecting_mutations: Record<number, IntersectionObserverEntry>) => void;
1761
1761
  };
1762
- export function navdot(unique_name: string | number): HTMLElement;
1762
+ export function navdot(unique_name: string | number): HTMLLabelElement;
1763
1763
  export function slider_draggable_factory(t: Tenant): {
1764
1764
  constructor_plugin: (slider_options: any) => void;
1765
1765
  mutation_plugin: (intersections: IntersectionObserverEntry[], intersecting_mutations: Record<number, IntersectionObserverEntry>) => void;
@@ -2316,7 +2316,7 @@ export const Placeholder: ({
2316
2316
  class: extra_classes,
2317
2317
  style,
2318
2318
  ...attributes
2319
- }: PlaceholderProps) => HTMLElement;
2319
+ }: PlaceholderProps) => HTMLDivElement;
2320
2320
  /**
2321
2321
  * A wrapper of Placeholder with full width and maintained aspect ratio.
2322
2322
  * @see {@link Placeholder}
@@ -2324,10 +2324,10 @@ export const Placeholder: ({
2324
2324
  export const ContainedPlaceholderImage: ({
2325
2325
  aspect_ratio,
2326
2326
  ...attributes
2327
- }: PlaceholderImageProps) => HTMLElement;
2328
- export const RecommendationContainer: (title?: string | HTMLElement, surface_classes?: string[]) => HTMLElement;
2329
- export const RightChevron: () => HTMLElement;
2330
- export const LeftChevron: () => HTMLElement;
2327
+ }: PlaceholderImageProps) => HTMLDivElement;
2328
+ export const RecommendationContainer: (title?: string | HTMLElement, surface_classes?: string[]) => HTMLDivElement;
2329
+ export const RightChevron: () => JSX.Element;
2330
+ export const LeftChevron: () => JSX.Element;
2331
2331
  export type ColorObj = {
2332
2332
  /** the value passed as a css color */
2333
2333
  value: string;
@@ -2376,7 +2376,7 @@ export function createColorPicker({
2376
2376
  onlyCircles
2377
2377
  }: ColorPickerProps): {
2378
2378
  setActiveIndex: (index: number) => void | undefined;
2379
- ColorPicker(): HTMLElement;
2379
+ ColorPicker(): JSX.Element;
2380
2380
  };
2381
2381
  /**
2382
2382
  * For example how to use, check /src/glitter/main.tsx
@@ -2444,7 +2444,7 @@ export function make_sourceset_component({
2444
2444
  sizes_setter_?: ReturnType<typeof make_sizes_setter>;
2445
2445
  }): (image_options: Partial<JSX.IntrinsicElements["img"]> & {
2446
2446
  class?: string;
2447
- }) => HTMLElement;
2447
+ }) => JSX.Element;
2448
2448
  /**
2449
2449
  * Adds query parameters from the `params` parameter to the `base` url.
2450
2450
  * Guaranteed to be correctly escaped and not doubled and perfectly formatted
@@ -2507,7 +2507,7 @@ export const ContainedHoverImage: ({
2507
2507
  mobile_touch_hover,
2508
2508
  navigation_minimum_ms,
2509
2509
  ...options
2510
- }: HoverImageOptions) => HTMLElement;
2510
+ }: HoverImageOptions) => HTMLDivElement;
2511
2511
  /**
2512
2512
  * Shallowly converts all keys in an object from snake_case to camelCase.
2513
2513
  * Does not support symbol keys.