@stacksjs/defaults 0.75.706 → 0.75.707

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.
@@ -45,8 +45,11 @@ project on the machine. Each invocation first settles two things in
45
45
  2. **Whose code runs it.** A project that has its own `buddy` installed gets
46
46
  the command handed to it (the process is replaced, not wrapped), so it runs
47
47
  on the framework version that project pins. A project with nothing
48
- installed runs `buddy install` and nothing else: its code imports packages
49
- that are not there.
48
+ installed can run `buddy install` or `buddy support:install --sdk-only`.
49
+ The SDK-only command uses the invoking Buddy and can select a published SDK
50
+ before the app has a Buddy of its own. Full Support connection uses the
51
+ app's installed Buddy. In a project with `pantry.lock`, Buddy uses Pantry
52
+ to install the SDK and refresh the dependency locks.
50
53
 
51
54
  The process that does the work always starts in the project root, because Bun
52
55
  reads `bunfig.toml` and its preloads from the directory it starts in. The
@@ -772,8 +772,12 @@ The desktop sidebar is fixed and publishes its current width through
772
772
  drawers must use the shared `dashboard-modal-layer` class so their interactive
773
773
  surface starts beside that sidebar and returns to `left: 0` on mobile and in
774
774
  the Craft native-sidebar shell. The class owns the layer's whole horizontal
775
- box (`left`, `right` and `width`), so a dialog is centred over the content and
776
- a drawer ends at the window's edge. Do not put a width utility (`w-screen`,
775
+ box (`left`, `right` and `width`), so a drawer ends at the window's edge. A
776
+ dialog (`dashboard-modal-dialog` beside it) takes the whole window instead and
777
+ is centred on it: its `::backdrop` dims the whole window, sidebar included, so
778
+ centring it on the content alone looked off centre. Dialogs fade their backdrop
779
+ in and lift their panel into place on open, and hold still under
780
+ `prefers-reduced-motion`. Do not put a width utility (`w-screen`,
777
781
  `w-full`) on an element that carries it: beside `left: 250px` that runs the
778
782
  layer a sidebar's width past the window. The rule's selector is
779
783
  `html .dashboard-modal-layer`, so it outweighs `inset-0` whichever stylesheet
@@ -133,6 +133,21 @@ card out with a warning, since a post holds one attachment. A Bluesky account on
133
133
  its own PDS signs in there: when no service is configured and bsky.social refuses
134
134
  the password, createSession looks the account's PDS up from its DID document
135
135
  (resolveBlueskyService), and the session's service is where its posts go.
136
+
137
+ For Mastodon polls, read the instance's advertised `instanceLimits().poll`
138
+ and supply `publish(..., { poll: { options, expiresIn, multiple?, hideTotals? } })`.
139
+ Duration is in seconds. Mastodon quote posts require the advertised
140
+ `instanceLimits().quotePosts` capability. `resolvePostId(identity, permalink)`
141
+ uses the account's instance and `read:search` to obtain its local ID. Pass
142
+ that ID as `quotedStatusId` and keep the reference with the publishing
143
+ target. A poll, a quote, and attached images are mutually exclusive on Mastodon.
144
+
145
+ For Bluesky, `resolveQuote(identity, permalinkOrAtUri)` checks the
146
+ viewer's quote permission and returns the post's URI and CID. Keep that
147
+ reference with the post, then pass it as `quote` in the driver's third
148
+ argument. A quote can accompany images or an external card. Supply
149
+ `selfLabels` in the same argument to attach the author's content labels.
150
+
136
151
  Instagram waits for
137
152
  each media container to be FINISHED before publishing it (containerTimeoutMs,
138
153
  five minutes by default), sends alt text on images and carousel items, refuses an
@@ -2,7 +2,7 @@
2
2
  "publisher": "Stacks",
3
3
  "name": "vscode-stacks",
4
4
  "displayName": "Stacks",
5
- "version": "0.75.706",
5
+ "version": "0.75.707",
6
6
  "description": "Stacks, built into VS Code: stx templates, pickier linting and formatting, encrypted env files, the dev server preview and every buddy command. No other extensions required.",
7
7
  "license": "MIT",
8
8
  "funding": "https://github.com/sponsors/chrisbbreuer",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/defaults",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.75.706",
5
+ "version": "0.75.707",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/stacksjs/stacks.git",
@@ -46,14 +46,14 @@
46
46
  "@iconify-json/f7": "^1.2.2",
47
47
  "@iconify-json/hugeicons": "^1.2.35",
48
48
  "@stacksjs/desktop": "^0.2.957",
49
- "@stacksjs/mobile": "0.75.706",
49
+ "@stacksjs/mobile": "0.75.707",
50
50
  "@stacksjs/sanitizer": "^0.2.957",
51
51
  "@stacksjs/stx": "^0.2.957",
52
- "@stacksjs/strings": "0.75.706",
52
+ "@stacksjs/strings": "0.75.707",
53
53
  "@xterm/addon-fit": "^0.11.0",
54
54
  "@xterm/xterm": "^6.0.0",
55
55
  "ts-qr-codes": "^0.1.8",
56
- "@stacksjs/support": "0.75.706",
57
- "@stacksjs/browser": "0.75.706"
56
+ "@stacksjs/support": "0.75.707",
57
+ "@stacksjs/browser": "0.75.707"
58
58
  }
59
59
  }
@@ -14,6 +14,7 @@ const phaseIcons: Record<DeploymentPreviewOperation['phase'], string> = {
14
14
  gateway: 'i-hugeicons-route-01',
15
15
  dns: 'i-hugeicons-globe-02',
16
16
  tls: 'i-hugeicons-shield-key',
17
+ mail: 'i-hugeicons-mail-01',
17
18
  container: 'i-hugeicons-cube',
18
19
  }
19
20
 
@@ -170,4 +170,28 @@ effect(() => {
170
170
  background: rgb(0 0 0 / 50%);
171
171
  backdrop-filter: blur(4px);
172
172
  }
173
+
174
+ /*
175
+ * Opening fades the backdrop in and lifts the panel into place. The dialog is
176
+ * added to the page as it opens, so an animation (which runs when an element
177
+ * first appears) does this without any script.
178
+ */
179
+ .dashboard-modal-dialog[open]::backdrop {
180
+ animation: dashboard-modal-backdrop-in 180ms ease-out;
181
+ }
182
+ .dashboard-modal-dialog[open] [data-dashboard-overlay="modal"] {
183
+ animation: dashboard-modal-panel-in 220ms cubic-bezier(0.16, 1, 0.3, 1);
184
+ }
185
+ @keyframes dashboard-modal-backdrop-in {
186
+ from { opacity: 0; }
187
+ }
188
+ @keyframes dashboard-modal-panel-in {
189
+ from { opacity: 0; transform: translateY(8px) scale(0.96); }
190
+ }
191
+ @media (prefers-reduced-motion: reduce) {
192
+ .dashboard-modal-dialog[open]::backdrop,
193
+ .dashboard-modal-dialog[open] [data-dashboard-overlay="modal"] {
194
+ animation: none;
195
+ }
196
+ }
173
197
  </style>
@@ -145,9 +145,9 @@ select:not([multiple]):not([size]):not([data-ui-select]) {
145
145
  transition: margin-left 0.3s ease-out;
146
146
  }
147
147
  /*
148
- * A dialog or drawer covers the content pane: from the sidebar's edge to the
149
- * window's, so a dialog is centred over the page and a drawer ends where the
150
- * window does.
148
+ * A drawer covers the content pane: from the sidebar's edge to the window's,
149
+ * so it ends where the window does. A dialog takes the whole window; see the
150
+ * rule after this one.
151
151
  *
152
152
  * `html` is in the selector for its weight, not its meaning. The dialogs also
153
153
  * carry `inset-0`, a utility of the same weight as a bare class, and the
@@ -167,6 +167,16 @@ html .dashboard-modal-layer {
167
167
  width: auto;
168
168
  transition: left 0.3s ease-out;
169
169
  }
170
+ /*
171
+ * A dialog is centred on the whole window, not on the content beside the
172
+ * sidebar. Its ::backdrop dims the whole window, sidebar included, so a dialog
173
+ * centred on the content alone sat half a sidebar right of the middle of what
174
+ * the visitor sees. A drawer keeps the rule above: it is pinned to the right
175
+ * edge, and starting beside the sidebar only caps how wide it can grow.
176
+ */
177
+ html .dashboard-modal-layer.dashboard-modal-dialog {
178
+ left: 0;
179
+ }
170
180
  /*
171
181
  * The window's sidebar pane while it is in the mobile drawer: it fills the
172
182
  * drawer instead of sitting fixed at its window width, and gives up the