@depict-ai/utilishared 2.0.2 → 2.0.4

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