akanjs 3.3.0-rc.55 → 3.3.0-rc.57
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 +1 -1
- package/server/routeElementComposer.tsx +4 -0
- package/server/rscRouteDocument.tsx +2 -2
- package/types/server/routeElementComposer.d.ts +1 -0
- package/types/ui/recipe/badgeRecipe.d.ts +2 -2
- package/types/ui/recipe/buttonRecipe.d.ts +2 -2
- package/types/ui/recipe/inputRecipe.d.ts +2 -2
- package/types/webkit/csrSlide.d.ts +1 -1
- package/types/webkit/useCsrRefs.d.ts +1 -1
package/package.json
CHANGED
|
@@ -178,7 +178,7 @@ export class RscRouteDocument {
|
|
|
178
178
|
pathRoute,
|
|
179
179
|
params: match.params,
|
|
180
180
|
searchParams,
|
|
181
|
-
navKey:
|
|
181
|
+
navKey: RouteElementComposer.navKeyOf(url),
|
|
182
182
|
notFound: { ...notFound, head: fallbackHead },
|
|
183
183
|
gate,
|
|
184
184
|
});
|
|
@@ -251,7 +251,7 @@ export class RscRouteDocument {
|
|
|
251
251
|
params: match.params,
|
|
252
252
|
searchParams,
|
|
253
253
|
patchStartIndex,
|
|
254
|
-
navKey:
|
|
254
|
+
navKey: RouteElementComposer.navKeyOf(url),
|
|
255
255
|
notFound,
|
|
256
256
|
});
|
|
257
257
|
}
|
|
@@ -42,6 +42,7 @@ export declare class RouteElementComposer {
|
|
|
42
42
|
route: PathRoute | LayoutFallbackRoute;
|
|
43
43
|
basePath?: string | null;
|
|
44
44
|
}): Promise<import("akanjs/client").PageState>;
|
|
45
|
+
static navKeyOf(url: URL): string;
|
|
45
46
|
static compose({ pathRoute, params, searchParams, navKey, notFound, gate, }: {
|
|
46
47
|
pathRoute: SsrPathRoute;
|
|
47
48
|
params: Record<string, string>;
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
export declare const badgeRecipe: (variants?: Omit<({
|
|
3
3
|
size?: "lg" | "md" | "sm" | "xs" | undefined;
|
|
4
4
|
outline?: boolean | undefined;
|
|
5
|
-
variant?: "
|
|
5
|
+
variant?: "default" | "error" | "info" | "warning" | "success" | "primary" | "outline" | "secondary" | "accent" | "neutral" | undefined;
|
|
6
6
|
} & {
|
|
7
7
|
class?: import("tailwind-variants/lite").ClassValue;
|
|
8
8
|
className?: never;
|
|
9
9
|
}) | ({
|
|
10
10
|
size?: "lg" | "md" | "sm" | "xs" | undefined;
|
|
11
11
|
outline?: boolean | undefined;
|
|
12
|
-
variant?: "
|
|
12
|
+
variant?: "default" | "error" | "info" | "warning" | "success" | "primary" | "outline" | "secondary" | "accent" | "neutral" | undefined;
|
|
13
13
|
} & {
|
|
14
14
|
class?: never;
|
|
15
15
|
className?: import("tailwind-variants/lite").ClassValue;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export declare const buttonRecipe: (variants?: Omit<({
|
|
3
3
|
size?: "xl" | "lg" | "md" | "sm" | "xs" | "icon" | undefined;
|
|
4
4
|
outline?: boolean | undefined;
|
|
5
|
-
variant?: "
|
|
5
|
+
variant?: "default" | "link" | "info" | "warning" | "success" | "destructive" | "primary" | "outline" | "secondary" | "accent" | "neutral" | "ghost" | undefined;
|
|
6
6
|
shape?: "default" | "circle" | "square" | undefined;
|
|
7
7
|
} & {
|
|
8
8
|
class?: import("tailwind-variants/lite").ClassValue;
|
|
@@ -10,7 +10,7 @@ export declare const buttonRecipe: (variants?: Omit<({
|
|
|
10
10
|
}) | ({
|
|
11
11
|
size?: "xl" | "lg" | "md" | "sm" | "xs" | "icon" | undefined;
|
|
12
12
|
outline?: boolean | undefined;
|
|
13
|
-
variant?: "
|
|
13
|
+
variant?: "default" | "link" | "info" | "warning" | "success" | "destructive" | "primary" | "outline" | "secondary" | "accent" | "neutral" | "ghost" | undefined;
|
|
14
14
|
shape?: "default" | "circle" | "square" | undefined;
|
|
15
15
|
} & {
|
|
16
16
|
class?: never;
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
export declare const inputRecipe: (variants?: Omit<({
|
|
3
3
|
kind?: "field" | "select" | "area" | undefined;
|
|
4
4
|
size?: "xl" | "lg" | "md" | "sm" | "xs" | undefined;
|
|
5
|
-
tone?: "
|
|
5
|
+
tone?: "default" | "error" | "primary" | undefined;
|
|
6
6
|
} & {
|
|
7
7
|
class?: import("tailwind-variants/lite").ClassValue;
|
|
8
8
|
className?: never;
|
|
9
9
|
}) | ({
|
|
10
10
|
kind?: "field" | "select" | "area" | undefined;
|
|
11
11
|
size?: "xl" | "lg" | "md" | "sm" | "xs" | undefined;
|
|
12
|
-
tone?: "
|
|
12
|
+
tone?: "default" | "error" | "primary" | undefined;
|
|
13
13
|
} & {
|
|
14
14
|
class?: never;
|
|
15
15
|
className?: import("tailwind-variants/lite").ClassValue;
|
|
@@ -21,7 +21,7 @@ export declare class CsrSlide {
|
|
|
21
21
|
static get isCalm(): boolean;
|
|
22
22
|
static settleMove(kind: "push" | "replace", from: Location, to: Location): boolean;
|
|
23
23
|
/** How an entry moves: its own page's transition, or that of the page it took the place of. */
|
|
24
|
-
static motionOf(location: Location): "
|
|
24
|
+
static motionOf(location: Location): "none" | "stack" | "fade" | "bottomUp" | "scaleOut";
|
|
25
25
|
/** Whether an entry swipes back: its own page's `gesture`, or that of the page it took the place of. */
|
|
26
26
|
static swipesBack(location: Location): boolean;
|
|
27
27
|
static isStill(entryId: string | undefined): boolean;
|
|
@@ -17,8 +17,8 @@ export declare const useCsrRefs: () => {
|
|
|
17
17
|
pageContentRef: import("react").RefObject<HTMLDivElement | null>;
|
|
18
18
|
prevPageContentRef: import("react").RefObject<HTMLDivElement | null>;
|
|
19
19
|
onBack: import("react").RefObject<{
|
|
20
|
-
stack?: (() => Promise<void>) | undefined;
|
|
21
20
|
none?: (() => Promise<void>) | undefined;
|
|
21
|
+
stack?: (() => Promise<void>) | undefined;
|
|
22
22
|
fade?: (() => Promise<void>) | undefined;
|
|
23
23
|
bottomUp?: (() => Promise<void>) | undefined;
|
|
24
24
|
scaleOut?: (() => Promise<void>) | undefined;
|