@unframed/cli 1.0.0-rc.4 → 1.0.0-rc.6

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": "@unframed/cli",
3
- "version": "1.0.0-rc.4",
3
+ "version": "1.0.0-rc.6",
4
4
  "description": "Copy Unframed web components into your project, and own the code.",
5
5
  "license": "MIT",
6
6
  "author": "Patrizio Di Bartolomeo",
package/registry.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.0-rc.4",
2
+ "version": "1.0.0-rc.6",
3
3
  "components": {
4
4
  "accordion": {
5
5
  "name": "accordion",
@@ -5,7 +5,7 @@ description: Builds UI with Unframed web components (@unframed/core, @unframed/r
5
5
 
6
6
  # Unframed UI
7
7
 
8
- Unframed 1.0.0-rc.4: accessible UI components as standard custom elements (Lit). Every tag starts with `uf-`. They work in plain HTML and every framework; React, Vue and Angular have wrapper packages for typed props, events and form bindings.
8
+ Unframed 1.0.0-rc.6: accessible UI components as standard custom elements (Lit). Every tag starts with `uf-`. They work in plain HTML and every framework; React, Vue and Angular have wrapper packages for typed props, events and form bindings.
9
9
 
10
10
  ## Before writing code
11
11
 
@@ -1,4 +1,4 @@
1
- # Unframed 1.0.0-rc.4 components
1
+ # Unframed 1.0.0-rc.6 components
2
2
 
3
3
  ## Accordion
4
4
 
@@ -3096,6 +3096,7 @@ Describe the columns and pass the rows. Columns marked `sortable` sort on click.
3096
3096
  </script>
3097
3097
  ```
3098
3098
 
3099
+ - In TypeScript, give the columns your row type: `const columns: TableColumn<Invoice>[] = [...]`, with `TableColumn` from `@unframed/core`. Rows can be any interface. Without the annotation, a separate `const columns = [...]` widens `align` to `string`, which `columns` rejects.
3099
3100
  - To sort on the server, add `manual-sort`: the table shows the sort and fires `uf-sort`, and you load the rows in that order.
3100
3101
  - Set `--uf-table-max-height` to scroll long tables under a sticky header.
3101
3102
 
@@ -1,4 +1,4 @@
1
- # Using Unframed 1.0.0-rc.4 in each framework
1
+ # Using Unframed 1.0.0-rc.6 in each framework
2
2
 
3
3
  ## HTML & JavaScript
4
4
 
@@ -68,8 +68,8 @@ dialog.addEventListener('uf-hide', () => toast('Welcome aboard!', { variant: 'su
68
68
  <!doctype html>
69
69
  <html lang="en">
70
70
  <head>
71
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@unframed/tokens@1.0.0-rc.4/dist/tokens.css" />
72
- <script type="module" src="https://cdn.jsdelivr.net/npm/@unframed/core@1.0.0-rc.4/+esm"></script>
71
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@unframed/tokens@1.0.0-rc.6/dist/tokens.css" />
72
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@unframed/core@1.0.0-rc.6/+esm"></script>
73
73
  </head>
74
74
  <body>
75
75
  <uf-button variant="primary">It works</uf-button>