@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.
|
|
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": "
|
|
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
|
|
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,15 +1,16 @@
|
|
|
1
1
|
import { TNode, Prop } from '@tempots/dom';
|
|
2
2
|
|
|
3
|
-
export interface
|
|
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<
|
|
9
|
-
export declare function makeLocation():
|
|
10
|
-
export declare function equalsLocation(a:
|
|
11
|
-
export declare function locationFromURL(url: string):
|
|
12
|
-
export declare function setLocationFromUrl(prop: Prop<
|
|
13
|
-
export declare function
|
|
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<
|
|
16
|
+
export declare function UseLocation(fn: (location: Prop<LocationData>) => TNode): import('@tempots/dom').Renderable;
|