@skillcdn/console 0.5.3 → 0.6.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.
Files changed (65) hide show
  1. package/README.md +18 -14
  2. package/SKILLCDN.md +3 -2
  3. package/dist/cli/cli.d.ts.map +1 -1
  4. package/dist/cli/cli.js +29 -6
  5. package/dist/cli/cli.js.map +1 -1
  6. package/dist/cli/pack.d.ts +8 -0
  7. package/dist/cli/pack.d.ts.map +1 -1
  8. package/dist/cli/pack.js +12 -1
  9. package/dist/cli/pack.js.map +1 -1
  10. package/dist/compat.d.ts +1 -1
  11. package/dist/compat.js +2 -2
  12. package/dist/components/home.d.ts.map +1 -1
  13. package/dist/components/home.js +40 -8
  14. package/dist/components/home.js.map +1 -1
  15. package/dist/components/popover.d.ts +24 -0
  16. package/dist/components/popover.d.ts.map +1 -0
  17. package/dist/components/popover.js +127 -0
  18. package/dist/components/popover.js.map +1 -0
  19. package/dist/components/shell.d.ts.map +1 -1
  20. package/dist/components/shell.js +5 -106
  21. package/dist/components/shell.js.map +1 -1
  22. package/dist/console.css +83 -45
  23. package/dist/i18n/en.d.ts +2 -0
  24. package/dist/i18n/en.d.ts.map +1 -1
  25. package/dist/i18n/en.js +2 -0
  26. package/dist/i18n/en.js.map +1 -1
  27. package/dist/i18n/ko.d.ts.map +1 -1
  28. package/dist/i18n/ko.js +1 -0
  29. package/dist/i18n/ko.js.map +1 -1
  30. package/dist/plugin-web.d.ts +1 -0
  31. package/dist/plugin-web.d.ts.map +1 -1
  32. package/dist/plugin-web.js +3 -1
  33. package/dist/plugin-web.js.map +1 -1
  34. package/dist/plugin.d.ts +1 -0
  35. package/dist/plugin.d.ts.map +1 -1
  36. package/dist/plugin.js +4 -0
  37. package/dist/plugin.js.map +1 -1
  38. package/dist/schemas.d.ts +15 -0
  39. package/dist/schemas.d.ts.map +1 -1
  40. package/docs/specs/cli.md +3 -3
  41. package/docs/specs/plugins.md +18 -8
  42. package/docs/specs/rest.md +1 -1
  43. package/docs/specs/runner.md +1 -1
  44. package/docs/start.md +48 -0
  45. package/package.json +4 -4
  46. package/skills/building-a-plugin/SKILL.md +2 -2
  47. package/skills/working-the-board/SKILL.md +1 -1
  48. package/skills/working-the-board/references/the-pack.md +1 -1
  49. package/src/cli/cli.ts +33 -7
  50. package/src/cli/pack.ts +20 -1
  51. package/src/compat.ts +2 -2
  52. package/src/components/home.tsx +108 -18
  53. package/src/components/popover.ts +145 -0
  54. package/src/components/shell.tsx +5 -112
  55. package/src/i18n/en.ts +2 -0
  56. package/src/i18n/ko.ts +1 -0
  57. package/src/plugin-web.ts +3 -1
  58. package/src/plugin.ts +4 -0
  59. package/src/styles/README.md +1 -1
  60. package/src/styles/pages/home.css +32 -5
  61. package/src/styles/parts/button.css +8 -4
  62. package/src/styles/parts/detail.css +3 -13
  63. package/src/styles/parts/menu.css +33 -0
  64. package/src/styles/parts/page.css +6 -16
  65. package/src/styles/parts/tabs.css +1 -7
@@ -638,7 +638,8 @@ a.sc-tile-glance:focus-visible {
638
638
 
639
639
  /* The sizes stay within their tile, folding onto a second row where a cell is narrower than they
640
640
  are, as a project's five are on an icon: what stands beside the tile, and its own way off the
641
- page, stay in reach. */
641
+ page, stay in reach. Their ends are round, as the tile's corner is, so that the row keeps as
642
+ far from the corner's curve as from its sides; a square end reached past the curve. */
642
643
  .sc-tile-sizes {
643
644
  position: absolute;
644
645
  top: var(--sc-space-1);
@@ -653,7 +654,7 @@ a.sc-tile-glance:focus-visible {
653
654
  margin: 0;
654
655
  padding: 1px;
655
656
  border: var(--sc-border);
656
- border-radius: var(--sc-radius-md);
657
+ border-radius: var(--sc-radius-full);
657
658
  background: var(--sc-color-bg-raised);
658
659
  }
659
660
 
@@ -665,7 +666,7 @@ a.sc-tile-glance:focus-visible {
665
666
  height: 1.5rem;
666
667
  padding: 0 3px;
667
668
  border: 0;
668
- border-radius: var(--sc-radius-sm);
669
+ border-radius: var(--sc-radius-full);
669
670
  background: transparent;
670
671
  color: var(--sc-color-text-muted);
671
672
  cursor: pointer;
@@ -692,16 +693,42 @@ a.sc-tile-glance:focus-visible {
692
693
  padding: 0 2px;
693
694
  }
694
695
 
695
- .sc-home-editing .sc-home-grid[data-columns="4"] .sc-tile-project:not(.sc-tile-project-card),
696
- .sc-home-editing .sc-home-grid[data-columns="6"] .sc-tile-project:not(.sc-tile-project-card) {
696
+ /* A project a cell wide stands lower, at every width, clear of the one button its sizes fold
697
+ behind, which stands in the corner as the sizes do, with no box around it to reach past the
698
+ tile's rounded corner. */
699
+ .sc-home-editing .sc-tile-project:not(.sc-tile-project-card) {
697
700
  justify-content: flex-end;
698
701
  }
699
702
 
703
+ .sc-home-size-one {
704
+ position: absolute;
705
+ top: var(--sc-space-1);
706
+ right: var(--sc-space-1);
707
+ z-index: 1;
708
+ }
709
+
700
710
  /* A glance's figures stand where the sizes do: while the page is arranged, it starts under them. */
701
711
  .sc-home-editing .sc-tile-glance {
702
712
  padding-top: calc(var(--sc-glance-pad-y) + var(--sc-space-6));
703
713
  }
704
714
 
715
+ /* The list a tile one cell wide opens of its sizes: as wide as its names, each size's shape in a
716
+ column of its own before its name, so that the names line up. */
717
+ .sc-home-size-menu {
718
+ min-width: 8rem;
719
+ }
720
+
721
+ .sc-home-size-option {
722
+ display: grid;
723
+ grid-template-columns: 1.5rem auto;
724
+ align-items: center;
725
+ column-gap: var(--sc-space-2);
726
+ }
727
+
728
+ .sc-home-size-option .sc-tile-size-glyph {
729
+ justify-self: center;
730
+ }
731
+
705
732
  /* The size's shape in small: the cells it takes, a few pixels each. */
706
733
  .sc-tile-size-glyph {
707
734
  display: block;
@@ -91,9 +91,13 @@
91
91
  }
92
92
 
93
93
  @media (max-width: 40rem) {
94
- /* A head with one way alone gives it the whole width too. */
95
- .sc-page-head > .sc-button {
96
- width: 100%;
97
- justify-content: center;
94
+ /* The ways at the head of a page on a phone, a page's or a task's: lower and narrower than a
95
+ form's, at one height whatever size each was given, so that the head stays a line over the
96
+ page; the words keep their size. */
97
+ .sc-page-head .sc-button,
98
+ .sc-task-actions > .sc-button {
99
+ min-height: 2.25rem;
100
+ padding: 0 var(--sc-space-3);
101
+ font-size: var(--sc-text-sm);
98
102
  }
99
103
  }
@@ -89,23 +89,13 @@
89
89
  }
90
90
 
91
91
  @media (max-width: 40rem) {
92
- /* A task's head: the parent on one line, the title, the badges, then the ways as a row of
93
- equal buttons. */
92
+ /* A task's head: the parent on one line, the title, the badges, then the ways at their own
93
+ width, as a page's head has them. */
94
94
  .sc-task-header {
95
95
  display: grid;
96
96
  justify-content: stretch;
97
97
  gap: var(--sc-space-3);
98
- }
99
-
100
- .sc-task-actions {
101
- flex-wrap: nowrap;
102
- align-items: stretch;
103
- }
104
-
105
- .sc-task-actions > * {
106
- flex: 1 1 0;
107
- justify-content: center;
108
- min-width: 0;
98
+ padding-bottom: var(--sc-space-3);
109
99
  }
110
100
  }
111
101
 
@@ -57,6 +57,39 @@
57
57
  overscroll-behavior: contain;
58
58
  }
59
59
 
60
+ /* A menu's panel as a popover, in the top layer: out of whatever around its button clips or
61
+ stacks over what hangs out of it, as a tile of the front page does, and placed under the
62
+ button by the component that opens it. A group tab's list is one too, by its own class. */
63
+ .sc-menu-popover {
64
+ position: fixed;
65
+ inset: auto;
66
+ margin: 0;
67
+ color: var(--sc-color-text);
68
+ font-size: var(--sc-text-sm);
69
+ }
70
+
71
+ /* Where the browser has no popover, the button shows and hides the list itself. */
72
+ .sc-menu-popover[hidden] {
73
+ display: none;
74
+ }
75
+
76
+ .sc-menu-popover:popover-open {
77
+ animation: sc-menu-in 120ms ease-out;
78
+ }
79
+
80
+ @keyframes sc-menu-in {
81
+ from {
82
+ opacity: 0;
83
+ transform: translateY(-0.25rem);
84
+ }
85
+ }
86
+
87
+ @media (prefers-reduced-motion: reduce) {
88
+ .sc-menu-popover:popover-open {
89
+ animation: none;
90
+ }
91
+ }
92
+
60
93
  .sc-menu-who {
61
94
  display: flex;
62
95
  flex-direction: column;
@@ -143,13 +143,14 @@
143
143
 
144
144
  /* A phone's pages as one design. */
145
145
  @media (max-width: 40rem) {
146
- /* Every page's head: the name, a word about it under the name, and the ways the page offers
147
- as a row of equal buttons under those, so that no head differs from another. */
146
+ /* Every page's head: the name, a word about it under the name, and the ways the page offers at
147
+ their own width, beside the name where they fit and on a line under the words where they do
148
+ not, so that no head differs from another. Buttons as wide as the window weighed more than
149
+ the page under them. */
148
150
  .sc-page-head {
149
- display: grid;
150
- justify-content: stretch;
151
151
  gap: var(--sc-space-3);
152
- margin-bottom: var(--sc-space-5);
152
+ margin-bottom: var(--sc-space-4);
153
+ padding-bottom: var(--sc-space-3);
153
154
  }
154
155
 
155
156
  .sc-page-heading {
@@ -160,15 +161,4 @@
160
161
  .sc-page-lead {
161
162
  flex: none;
162
163
  }
163
-
164
- .sc-page-actions {
165
- flex-wrap: nowrap;
166
- width: 100%;
167
- }
168
-
169
- .sc-page-actions > * {
170
- flex: 1 1 0;
171
- justify-content: center;
172
- min-width: 0;
173
- }
174
164
  }
@@ -111,17 +111,11 @@
111
111
  display: none;
112
112
  }
113
113
 
114
+ /* It opens as a menu's popover does (sc-menu-in, the menu's). */
114
115
  .sc-tab-group-panel:popover-open {
115
116
  animation: sc-menu-in 120ms ease-out;
116
117
  }
117
118
 
118
- @keyframes sc-menu-in {
119
- from {
120
- opacity: 0;
121
- transform: translateY(-0.25rem);
122
- }
123
- }
124
-
125
119
  @media (prefers-reduced-motion: reduce) {
126
120
  .sc-tab-group-panel:popover-open {
127
121
  animation: none;