@wcstack/router 4.33.0 → 4.34.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/auto.min.js +1 -1
- package/dist/auto.min.js.map +1 -1
- package/dist/index.d.ts +9 -0
- package/dist/index.esm.js +3 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -27,6 +27,15 @@ interface IWcBindableInput {
|
|
|
27
27
|
interface IWcBindableCommand {
|
|
28
28
|
readonly name: string;
|
|
29
29
|
readonly async?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* The declared members — entries of `properties` or of `inputs` — whose current value must be
|
|
32
|
+
* truthy for the command to be carried out (wc-bindable 0.11, SPEC-extensions § The `requires`
|
|
33
|
+
* hint). A declaration for tooling, documentation and diagnostics: the element still settles a
|
|
34
|
+
* call made anyway as it documents, and an applier must not skip or drop a call because of it.
|
|
35
|
+
* Do not list a member whose legitimate values include a falsy one (`0`, `""`, `false`), and
|
|
36
|
+
* keep an input listed here readable.
|
|
37
|
+
*/
|
|
38
|
+
readonly requires?: readonly string[];
|
|
30
39
|
}
|
|
31
40
|
interface IWcBindable {
|
|
32
41
|
readonly protocol: "wc-bindable";
|
package/dist/index.esm.js
CHANGED
|
@@ -78,7 +78,7 @@ function setConfig(partialConfig) {
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
var name = "@wcstack/router";
|
|
81
|
-
var version = "4.
|
|
81
|
+
var version = "4.34.0";
|
|
82
82
|
var pkg = {
|
|
83
83
|
name: name,
|
|
84
84
|
version: version};
|
|
@@ -3860,7 +3860,8 @@ class Router extends HTMLElement {
|
|
|
3860
3860
|
console.warn(`[@wcstack/router] [wcs/base-href-missing] The basename "${this._basename}" was taken from this page's URL: ` +
|
|
3861
3861
|
`the page has no <base href> and <${config.tagNames.router}> no basename, so routes and links resolve under it, ` +
|
|
3862
3862
|
`and a deep link or a reload away from the app's root shows the wrong route. ` +
|
|
3863
|
-
`Add <base href="/"> (or the app's folder) to <head
|
|
3863
|
+
`Add <base href="/"> (or the app's folder) to <head>. ` +
|
|
3864
|
+
`5.0 derives no basename: without either, it is empty (docs/migration-v5.md#base-href).`);
|
|
3864
3865
|
}
|
|
3865
3866
|
this._outlet = this._getOutlet();
|
|
3866
3867
|
this._outlet.routesNode = this;
|