bitboss-ui 3.0.0-beta.72 → 3.0.0-beta.73

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/bin/cli.mjs CHANGED
@@ -1466,8 +1466,9 @@ Commands:
1466
1466
  Every helper id, what it does, its files and packages,
1467
1467
  and its state in this app.
1468
1468
  helpers diff [id…] [--json]
1469
- The state of every installed helper file; with ids, the
1470
- difference between your copy and this bitboss-ui's.
1469
+ The state of every installed helper file; with ids (or
1470
+ a shared file's name: utils, messages), the difference
1471
+ between your copy and this bitboss-ui's.
1471
1472
  Exit 1 when something differs. Comments never count as
1472
1473
  edits: a stale file's comments are replaced by update.
1473
1474
  helpers update [id…] [--dry-run] [--json]
@@ -763,6 +763,9 @@ onClick }`.
763
763
  `onClick`, then completing with `data`. `false`: none.
764
764
  - **`false` from an `onClick`** keeps the dialog open; a throw keeps it open
765
765
  and is reported once (a `BbValidationError` never is).
766
+ - **`ok` is never disabled until the form is valid**: the user submits, the
767
+ form shows what they missed. A dialog that needs another footer writes its
768
+ own `#footer`.
766
769
  - **The `footer` slot replaces them all**, for a footer of your own.
767
770
  - **Config styles them app-wide**:
768
771
  `components: { BbDialog: { okProps: { variant: 'primary' }, cancelProps: { variant: 'outline' } } }`
package/dist/ai/BbForm.md CHANGED
@@ -1320,6 +1320,9 @@ app.use(bitbossUiPlugin, {
1320
1320
  A save with no throwing client (plain `fetch`) answers the same way: read the
1321
1321
  422 and `throw new BbValidationError(body.errors)`.
1322
1322
 
1323
+ Outside a form (a confirm's action, a router visit), recognise a 422 with
1324
+ `e instanceof BbValidationError` and read its messages by field in `e.errors`.
1325
+
1323
1326
  ### Saving in place: `snapshot()`
1324
1327
 
1325
1328
  `dirty` compares against the values the form started with. A page that saves
@@ -1808,12 +1811,10 @@ lifting state into the page. It carries `values`, `isSubmitting`, `submitCount`,
1808
1811
  </template>
1809
1812
  ```
1810
1813
 
1811
- Disabling submit on `!valid` is a choice, not a default: vee-validate marks a
1812
- pristine form invalid until its fields have been validated once, so a
1813
- disabled-until-valid button can read as broken on first paint. Leaving the
1814
- button enabled and letting the failed submit surface the messages is usually the
1815
- kinder flow — `valid` is there for wizards and dialogs where a dead-end step is
1816
- worse.
1814
+ Don't disable submit until the form is valid: vee-validate marks a pristine
1815
+ form invalid until its fields have been validated once, so the button reads as
1816
+ broken, and the user never sees what they missed. Leave it enabled and let the
1817
+ failed submit show the messages.
1817
1818
 
1818
1819
  ### Driving it from outside
1819
1820
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": 3,
3
3
  "library": "bitboss-ui",
4
- "version": "3.0.0-beta.72",
4
+ "version": "3.0.0-beta.73",
5
5
  "upgrade": "v2-to-v3",
6
6
  "guide": "ai/guides/migration/v2-to-v3.md",
7
7
  "legend": {
@@ -81,7 +81,8 @@
81
81
  "3.0.0-beta.69",
82
82
  "3.0.0-beta.70",
83
83
  "3.0.0-beta.71",
84
- "3.0.0-beta.72"
84
+ "3.0.0-beta.72",
85
+ "3.0.0-beta.73"
85
86
  ],
86
87
  "unpublished": [
87
88
  "3.0.0-alpha.2",
@@ -115,7 +116,7 @@
115
116
  "class": 140
116
117
  },
117
118
  "unreleased": 0,
118
- "added": 581
119
+ "added": 582
119
120
  },
120
121
  "added": {
121
122
  "3.0.0-alpha.1": [
@@ -2745,6 +2746,9 @@
2745
2746
  "dialog · action buttons pass iconOnly and prepend:icon straight to BbButton",
2746
2747
  "button · icon-only replaces the icon prop on BbButton, BbDropdownButton and BbBadge",
2747
2748
  "badge · text prop and per-breakpoint size and icon-only, as on BbButton"
2749
+ ],
2750
+ "3.0.0-beta.73": [
2751
+ "gate · browser chunks are packed by component folder"
2748
2752
  ]
2749
2753
  },
2750
2754
  "breaking": [