@opencxh/domain 1.146.0 → 1.149.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/dist/entities/kb/index.d.ts +1 -0
- package/dist/entities/kb/locales.d.ts +35 -0
- package/dist/entities/kb/locales.test.d.ts +1 -0
- package/dist/index.cjs +8 -8
- package/dist/index.js +413 -380
- package/dist/platform/routing.d.ts +14 -0
- package/package.json +1 -1
|
@@ -59,6 +59,20 @@ export declare function appNameFromPath(path: string | null | undefined): string
|
|
|
59
59
|
* and `WakeRoute` routes onward itself.
|
|
60
60
|
*/
|
|
61
61
|
export declare function isDeepLink(path: string | null | undefined): boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Did the visitor ask for nothing in particular?
|
|
64
|
+
*
|
|
65
|
+
* True for the bare root and for the login screen — you are sent there, you do
|
|
66
|
+
* not go there. Everything else is a request, whether or not it names an app.
|
|
67
|
+
*
|
|
68
|
+
* This is **not** the complement of {@link isDeepLink}. That one answers "does
|
|
69
|
+
* this path name an app other than auth", so a public help page — which names
|
|
70
|
+
* no app at all — comes back false. Callers that read that false as "the user
|
|
71
|
+
* wanted nothing" sent readers of `/help/…` to the organisation's default app.
|
|
72
|
+
* Between the two lies the set of paths that might be public, and the only way
|
|
73
|
+
* to know is to wait for the app manifests.
|
|
74
|
+
*/
|
|
75
|
+
export declare function isLandingPath(path: string | null | undefined): boolean;
|
|
62
76
|
/** Turn a route pattern with `:param` segments into an exact-match regex. */
|
|
63
77
|
export declare function pathToRegex(path: string): RegExp;
|
|
64
78
|
/** Read the `:param` values out of a concrete path, given the pattern it matched. */
|