@columenlabs/lumen-ship 0.1.172 → 0.1.174

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": "@columenlabs/lumen-ship",
3
- "version": "0.1.172",
3
+ "version": "0.1.174",
4
4
  "description": "Lumen's shipping kit: release notes, the What's new changelog, lint guards and the behavior check.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -9,6 +9,8 @@
9
9
  # raw-overlay an import of the kit's raw ui/sheet, ui/dialog, ui/select, ui/command or ui/combobox
10
10
  # settings-page a route, link or nav item to a page of its own named settings: settings are sections
11
11
  # of the one Settings dialog (LumenShell settings, opened at ?settings=<section>)
12
+ # tags-text tags or labels joined into comma text (`r.tags.join(', ')`) on a line with no `tags: true`:
13
+ # a ViewField with `tags: true` (its value may stay the joined text, for sorting) or TagChips
12
14
  set -euo pipefail
13
15
  write=0
14
16
  if [ "${1:-}" = "--write-baseline" ]; then
@@ -20,7 +22,7 @@ if [ $# -eq 0 ]; then
20
22
  exit 1
21
23
  fi
22
24
  baseline=${LUMEN_SHIP_PARTS_BASELINE:-$(git rev-parse --show-toplevel)/scripts/parts.baseline}
23
- rules="hint-text text-action raw-overlay settings-page"
25
+ rules="hint-text text-action raw-overlay settings-page tags-text"
24
26
 
25
27
  # Prints `file:line` for each break of one rule in one folder.
26
28
  hits() {
@@ -33,6 +35,8 @@ hits() {
33
35
  $re = qr/<p\s[^>]*className="(?=[^"]*\btext-xs\b)(?=[^"]*\btext-muted-foreground\b)[^"]*"/;
34
36
  } elsif ($rule eq "text-action") {
35
37
  $re = qr/<Button\b[^>]*>\s*(?:<[A-Z]\w*[^>]*\/>\s*)?(?:\{[^}]*\?\s*)?\x27?(?:Save|Run|Test|Send|Sync|Refresh|Copy|Edit|Delete|Remove|Retry|Reset)\b/;
38
+ } elsif ($rule eq "tags-text") {
39
+ $re = qr/^(?![^\n]*\btags:\s*true)[^\n]*?\b(?:tags|labels)\b(?:\s*\?\?\s*\[\])?\)?\s*\??\.join\(\s*[\x27"`],/m;
36
40
  } elsif ($rule eq "settings-page") {
37
41
  $re = qr/\b(?:path|to|href)\s*[:=]\s*\{?\s*[\x27"`](?:[^\x27"`]*\/)?settings(?=[\/?#\x27"`])/i;
38
42
  } else {