@tempots/ui 0.10.0 → 0.12.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tempots/ui",
3
- "version": "0.10.0",
3
+ "version": "0.12.0",
4
4
  "type": "module",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",
@@ -40,7 +40,7 @@
40
40
  "@floating-ui/dom": "^1.6.7"
41
41
  },
42
42
  "peerDependencies": {
43
- "@tempots/dom": "16.0.0",
43
+ "@tempots/dom": "18.0.0",
44
44
  "@tempots/std": "0.10.7"
45
45
  }
46
46
  }
@@ -1,5 +1,5 @@
1
1
  import { TNode, Signal, Value } from '@tempots/dom';
2
- import { AsyncResult } from '@tempots/std/async-result';
2
+ import { AsyncResult } from '@tempots/std';
3
3
 
4
4
  export declare function AsyncResultView<T, E>(result: Value<AsyncResult<T, E>>, options: {
5
5
  success: (value: Signal<T>) => TNode;
@@ -1,5 +1,5 @@
1
1
  import { TNode, Signal, Value } from '@tempots/dom';
2
- import { Result } from '@tempots/std/result';
2
+ import { Result } from '@tempots/std';
3
3
 
4
4
  export declare function ResultView<T, E>(result: Value<Result<T, E>>, options: {
5
5
  success: (value: Signal<T>) => TNode;
@@ -1,15 +1,16 @@
1
1
  import { TNode, Prop } from '@tempots/dom';
2
2
 
3
- export interface Location {
3
+ export interface LocationData {
4
4
  pathname: string;
5
5
  search: Record<string, string>;
6
6
  hash?: string;
7
7
  }
8
- export declare const LocationProviderMarker: import('@tempots/dom').ProviderMark<Prop<Location>>;
9
- export declare function makeLocation(): Location;
10
- export declare function equalsLocation(a: Location, b: Location): boolean;
11
- export declare function locationFromURL(url: string): Location;
12
- export declare function setLocationFromUrl(prop: Prop<Location>, url: string): Prop<Location>;
13
- export declare function makeLocationProp(): Prop<Location>;
8
+ export declare const LocationProviderMarker: import('@tempots/dom').ProviderMark<Prop<LocationData>>;
9
+ export declare function makeLocation(): LocationData;
10
+ export declare function equalsLocation(a: LocationData, b: LocationData): boolean;
11
+ export declare function locationFromURL(url: string): LocationData;
12
+ export declare function setLocationFromUrl(prop: Prop<LocationData>, url: string): Prop<LocationData>;
13
+ export declare function getFullURL(location: LocationData): string;
14
+ export declare function makeLocationProp(): Prop<LocationData>;
14
15
  export declare function ProvideLocation(child: TNode): import('@tempots/dom').Renderable;
15
- export declare function UseLocation(fn: (location: Prop<Location>) => TNode): import('@tempots/dom').Renderable;
16
+ export declare function UseLocation(fn: (location: Prop<LocationData>) => TNode): import('@tempots/dom').Renderable;
@@ -1,4 +1,4 @@
1
- import { SplitLiteral, TupleToUnion } from '@tempots/std/domain';
1
+ import { SplitLiteral, TupleToUnion } from '@tempots/std';
2
2
 
3
3
  export interface RouteInfo<P, R = string> {
4
4
  params: P;