@loadbare/widgets 0.4.0 → 0.5.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.
@@ -3,13 +3,13 @@
3
3
  > Status: a barebones starter. Iterative use will drive improvements.
4
4
 
5
5
  The chrome's dialog for a URL that names no page. Write it once, inside
6
- `<lb-hub>`, and the hub opens it whenever a path resolves to no page host.
6
+ `<lb-hub>`, and the hub opens it whenever no page's stub matches the path.
7
7
 
8
8
  ```html
9
9
  <lb-hub>
10
10
  <nav>
11
- <a href="/" lb-nav-link>Home</a>
12
- <a href="/about" lb-nav-link>About</a>
11
+ <a href="/" lb-url-link>Home</a>
12
+ <a href="/about" lb-url-link>About</a>
13
13
  </nav>
14
14
  <main></main>
15
15
  <lb-unknown-page></lb-unknown-page>
@@ -19,24 +19,22 @@ The chrome's dialog for a URL that names no page. Write it once, inside
19
19
  ## Parameters
20
20
 
21
21
  | Parameter | Fills |
22
- |-------------------|---------------------------------------|
22
+ | ----------------- | ------------------------------------- |
23
23
  | `exp-button-text` | the text of the button that closes it |
24
24
 
25
25
  Leaving `exp-button-text` off labels the button `OK`.
26
26
 
27
27
  ## Binding
28
28
 
29
- The definition supplies its own binding: a `<dialog lb-unknown-page>` scoped
30
- to the hub's `lb-navigation` query, which the hub lands on every navigation.
29
+ The definition supplies its own binding: a `<dialog lb-url-unknown>` carrying
30
+ `lb-query="lb-url"`, the query the hub serves and lands on every page load.
31
31
 
32
- | Cell | Holds |
33
- |--------------|-----------------------------------------------------------|
34
- | `page-label` | the text of the nav anchor for the path, or empty if none |
35
- | `page-uri` | the path and query string as the browser has them |
32
+ | Column | Holds |
33
+ | --------- | ------------------------ |
34
+ | `lb-path` | the path the browser has |
36
35
 
37
- The widget shows both. It does not yet choose between "the page *Members*
38
- is not in this app" and "the URL */members* is not in this app"; that is the
39
- improvement iterative use is expected to drive.
36
+ The widget shows the path. The dialog opens only when no page matches, so
37
+ there is no page label to show.
40
38
 
41
39
  ## Inside the hub
42
40
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@loadbare/widgets",
3
3
  "description": "The basic widget set for @loadbare/app: input, select, options, picker, table, unknown-page",
4
- "version": "0.4.0",
4
+ "version": "0.5.0",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",
@@ -49,10 +49,10 @@
49
49
  "node": ">=22"
50
50
  },
51
51
  "peerDependencies": {
52
- "@loadbare/app": ">=0.8.2 <1.0.0"
52
+ "@loadbare/app": ">=0.10.0 <1.0.0"
53
53
  },
54
54
  "devDependencies": {
55
- "@loadbare/app": ">=0.8.2 <1.0.0",
55
+ "@loadbare/app": ">=0.10.0 <1.0.0",
56
56
  "@types/jsdom": "^21.1.7",
57
57
  "@types/node": "^22.0.0",
58
58
  "jsdom": "^25.0.0",