@stacksjs/defaults 0.75.706 → 0.75.708

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,16 @@ 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 dim in
779
+ and lift their panel into place on open, and run the reverse on close through
780
+ stx's `data-stx-if-transition` (a still copy of the dialog fades out, so its
781
+ text does not change as the state that closed it is cleared). The dim is the
782
+ dialog's own background, not its `::backdrop`, because the leaving copy is not
783
+ a modal dialog. Under `prefers-reduced-motion` the panel does not move and
784
+ closing is a short fade. Do not put a width utility (`w-screen`,
777
785
  `w-full`) on an element that carries it: beside `left: 250px` that runs the
778
786
  layer a sidebar's width past the window. The rule's selector is
779
787
  `html .dashboard-modal-layer`, so it outweighs `inset-0` whichever stylesheet
@@ -86,7 +86,7 @@ Browser runtime bindings are documented separately in `stacks-auto-imports`.
86
86
  | `@stacksjs/skills` | [`stacks-skills`](../stacks-skills/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/skills/src/index.ts) | 1 |
87
87
  | `@stacksjs/slug` | [`stacks-slug`](../stacks-slug/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/slug/src/index.ts) | 5 |
88
88
  | `@stacksjs/sms` | [`stacks-sms`](../stacks-sms/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/sms/src/index.ts) | 7 |
89
- | `@stacksjs/socials` | [`stacks-socials`](../stacks-socials/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/socials/src/index.ts) | 23 |
89
+ | `@stacksjs/socials` | [`stacks-socials`](../stacks-socials/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/socials/src/index.ts) | 24 |
90
90
  | `@stacksjs/storage` | [`stacks-storage`](../stacks-storage/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/storage/src/index.ts) | 54 |
91
91
  | `@stacksjs/strings` | [`stacks-strings`](../stacks-strings/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/strings/src/index.ts) | 12 |
92
92
  | `@stacksjs/support` | [`stacks-support`](../stacks-support/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/support/src/index.ts) | 6 |
@@ -849,7 +849,7 @@ Read the entrypoint and package export map for re-exported or type-only surfaces
849
849
 
850
850
  Local source modules: [src/abstract.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/socials/src/abstract.ts), [src/authorize.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/socials/src/authorize.ts), [src/drivers/index.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/socials/src/drivers/index.ts), [src/errors.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/socials/src/errors.ts), [src/exceptions.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/socials/src/exceptions.ts), [src/flows.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/socials/src/flows.ts), [src/handoff.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/socials/src/handoff.ts), [src/identities.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/socials/src/identities.ts), [src/media.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/socials/src/media.ts), [src/meta-graph.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/socials/src/meta-graph.ts), [src/publish-errors.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/socials/src/publish-errors.ts), [src/publish.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/socials/src/publish.ts), [src/registry.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/socials/src/registry.ts), [src/text.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/socials/src/text.ts), [src/token.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/socials/src/token.ts), [src/types.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/socials/src/types.ts).
851
851
 
852
- Evidence directory: [23 retained tests](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/socials/tests). These files are evidence pointers, not a claim that all tests were run for this catalog.
852
+ Evidence directory: [24 retained tests](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/socials/tests). These files are evidence pointers, not a claim that all tests were run for this catalog.
853
853
 
854
854
  ### @stacksjs/storage
855
855
 
@@ -133,6 +133,29 @@ 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
+
151
+ Mastodon and Bluesky take one MP4 in `PublishPostInput.video` with its bytes,
152
+ MIME type, optional alt text, and optional dimensions. Mastodon checks the
153
+ instance's advertised media limits and waits for its attachment endpoint to
154
+ return the processed video. Bluesky uses a PDS-scoped upload token and waits
155
+ for its video service to return the processed blob. Reuse the normal Mastodon
156
+ idempotency key or Bluesky record key on retry. The other drivers reject a
157
+ video before they publish a post.
158
+
136
159
  Instagram waits for
137
160
  each media container to be FINISHED before publishing it (containerTimeoutMs,
138
161
  five minutes by default), sends alt text on images and carousel items, refuses an
@@ -145,6 +168,15 @@ member may post for (rw_organization_admin). PublishedPost.warnings
145
168
  lists what went out without failing the post. The LinkedIn version is
146
169
  LINKEDIN_API_VERSION unless a configured one is still supported.
147
170
 
171
+ For LinkedIn and Instagram first comments, call
172
+ `createComment(identity, publishedPost.uri, text)` after saving the published
173
+ post. LinkedIn needs `w_member_social_feed` or `w_organization_social_feed`
174
+ and the matching author URN. Instagram (Facebook Login) needs a Facebook User
175
+ token with `instagram_manage_comments` in addition to its normal account access.
176
+ An accepted response can return no comment ID. The comment is a distinct
177
+ write. Do not send the parent post again when this write fails, and do not
178
+ blindly repeat a timed-out comment whose outcome is unknown.
179
+
148
180
  A driver error's isAuthError is narrow; classifySocialError in
149
181
  publish-errors.ts sorts any failure by status and body, and only `expired`
150
182
  means the account must sign in again (a duplicate post on X is a 403).
@@ -177,6 +209,16 @@ read budget before calling the driver.
177
209
 
178
210
  ## Authorization and operational limits
179
211
 
212
+ For X messaging, request `dm.read` and `dm.write` only when the user enables
213
+ that feature. `TwitterPublishingDriver.listDirectMessageEvents(identity,
214
+ { limit, cursor, conversationId })` reads one page for the account or a
215
+ conversation and returns the next cursor. The request expands only the sender
216
+ so a caller can reserve the maximum charge for one DM event and one user per
217
+ result. `sendDirectMessage(identity, conversationId, text)` sends one reply
218
+ and returns its confirmed event ID. A permission refusal does not invalidate
219
+ the account's token. See the [X API pricing](https://docs.x.com/x-api/getting-started/pricing)
220
+ and [DM lookup reference](https://docs.x.com/x-api/direct-messages/lookup/introduction).
221
+
180
222
  The native terminal consent helper in authorize.ts currently supports X only.
181
223
  It uses loopback callback URI, checked state and PKCE; offline.access supplies
182
224
  refresh credentials. Declaring another publishing platform does not make the
@@ -78,7 +78,9 @@ The stx component uses `mountNativeSupport` from the browser subpath and native
78
78
  so the bridge uses the native double-submit cookie from the current page.
79
79
  Navigation, page removal,
80
80
  logout, sign-in and cross-tab auth changes clear the old messenger before any
81
- new customer session is booted. Customer credentials remain element properties.
81
+ new customer session is booted. When a browser restores a cached page from
82
+ history, the bridge requests a fresh session for the current account. Customer
83
+ credentials remain element properties.
82
84
  No framework upgrade enables this integration or sends customer data by itself.
83
85
 
84
86
  `buddy support:doctor` checks usage, bounded summaries and, when native UI is
@@ -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.708",
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.708",
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.708",
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.708",
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.708",
57
+ "@stacksjs/browser": "0.75.708"
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
 
@@ -844,7 +844,9 @@ onDestroy(() => {
844
844
  </thead>
845
845
 
846
846
  <tbody :class="bodyClass()" :aria-busy="loading() ? 'true' : null">
847
- <tr :for="row in rows()" class="hover:bg-neutral-50 dark:hover:bg-white/5 transition-colors group">
847
+ <!-- One hover colour for the row and its sticky Actions cell, opaque so
848
+ the columns scrolling under that cell never show through it. -->
849
+ <tr :for="row in rows()" class="hover:bg-[var(--row-hover)] transition-colors [--row-hover:#fafafa] dark:[--row-hover:#232323] group">
848
850
  <td :if="selectable()" class="pl-3 pr-1 py-2 w-8">
849
851
  <input
850
852
  type="checkbox"
@@ -864,7 +866,7 @@ onDestroy(() => {
864
866
  <img :if="cellKind(row, column) === 'image'" :src="cellHref(row, column)" alt="" loading="lazy" class="inline-block object-cover h-7 w-7 bg-neutral-100 dark:bg-neutral-800 rounded" />
865
867
  <code :if="cellKind(row, column) === 'code'" class="font-mono text-[12px]">{{ cellValue(row, column) }}</code>
866
868
  </td>
867
- <td class="right-0 sticky z-10 px-3 py-2 text-right bg-white dark:bg-neutral-900 group-hover:bg-neutral-50 dark:group-hover:bg-white/5 border-black/5 border-l dark:border-white/10 transition-colors">
869
+ <td class="right-0 sticky z-10 px-3 py-2 text-right bg-white dark:bg-neutral-900 group-hover:bg-[var(--row-hover)] border-black/5 border-l dark:border-white/10 transition-colors">
868
870
  <ModelRecordActions
869
871
  :record="row"
870
872
  :modelName="modelName()"
@@ -97,6 +97,9 @@ effect(() => {
97
97
  return
98
98
  }
99
99
 
100
+ // Closed at once, so the page behind is no longer inert when focus goes
101
+ // back below. The copy that fades out in its place shows all the same; see
102
+ // .dashboard-modal-leave-active.
100
103
  if (dialog.current?.open)
101
104
  dialog.current.close()
102
105
  const target = restoreFocus
@@ -111,7 +114,8 @@ effect(() => {
111
114
  :role="liveRole()"
112
115
  aria-modal="true"
113
116
  :aria-label="liveAriaLabel() || liveTitle() || 'Dialog'"
114
- class="fixed inset-0 overflow-y-auto z-[55] m-0 p-0 h-dvh max-h-none max-w-none bg-transparent dashboard-modal-dialog dashboard-modal-layer"
117
+ data-stx-if-transition="dashboard-modal"
118
+ class="fixed inset-0 overflow-y-auto z-[55] m-0 p-0 h-dvh max-h-none max-w-none dashboard-modal-dialog dashboard-modal-layer"
115
119
  @cancel="handleCancel"
116
120
  >
117
121
  <!-- Modal container -->
@@ -166,8 +170,74 @@ effect(() => {
166
170
  </dialog>
167
171
 
168
172
  <style>
169
- .dashboard-modal-dialog::backdrop {
173
+ /*
174
+ * The dim and blur behind the panel are the dialog's own background, not its
175
+ * ::backdrop. The dialog fills the window, so it covers the same area, and
176
+ * the copy that fades out on close (a plain open dialog, not a modal one) has
177
+ * no ::backdrop: a dim drawn there would vanish the moment closing began.
178
+ */
179
+ .dashboard-modal-dialog {
170
180
  background: rgb(0 0 0 / 50%);
171
181
  backdrop-filter: blur(4px);
172
182
  }
183
+ .dashboard-modal-dialog::backdrop {
184
+ background: transparent;
185
+ }
186
+
187
+ /*
188
+ * Opening fades the dim in and lifts the panel into place. The dialog is
189
+ * added to the page as it opens, so an animation (which runs when an element
190
+ * first appears) does this without any script.
191
+ */
192
+ .dashboard-modal-dialog[open] {
193
+ animation: dashboard-modal-backdrop-in 180ms ease-out;
194
+ }
195
+ .dashboard-modal-dialog[open] [data-dashboard-overlay="modal"] {
196
+ animation: dashboard-modal-panel-in 220ms cubic-bezier(0.16, 1, 0.3, 1);
197
+ }
198
+ @keyframes dashboard-modal-backdrop-in {
199
+ from { opacity: 0; }
200
+ }
201
+ @keyframes dashboard-modal-panel-in {
202
+ from { opacity: 0; transform: translateY(8px) scale(0.96); }
203
+ }
204
+
205
+ /*
206
+ * Closing runs the same in reverse on a still copy of the dialog
207
+ * (data-stx-if-transition above), which stx removes when it ends. The copy
208
+ * may be taken after the dialog closed, and a closed dialog is not drawn, so
209
+ * the copy is drawn here for as long as it leaves.
210
+ */
211
+ .dashboard-modal-leave-active {
212
+ display: block;
213
+ transition: opacity 160ms ease-in;
214
+ }
215
+ .dashboard-modal-leave-active [data-dashboard-overlay="modal"] {
216
+ transition: opacity 160ms ease-in, transform 160ms ease-in;
217
+ }
218
+ .dashboard-modal-leave-to {
219
+ opacity: 0;
220
+ }
221
+ .dashboard-modal-leave-to [data-dashboard-overlay="modal"] {
222
+ opacity: 0;
223
+ transform: translateY(8px) scale(0.96);
224
+ }
225
+
226
+ /*
227
+ * Asked for less motion, the panel does not move: opening is immediate and
228
+ * closing is a short fade, so a closed dialog does not linger.
229
+ */
230
+ @media (prefers-reduced-motion: reduce) {
231
+ .dashboard-modal-dialog[open],
232
+ .dashboard-modal-dialog[open] [data-dashboard-overlay="modal"] {
233
+ animation: none;
234
+ }
235
+ .dashboard-modal-leave-active,
236
+ .dashboard-modal-leave-active [data-dashboard-overlay="modal"] {
237
+ transition: opacity 100ms linear;
238
+ }
239
+ .dashboard-modal-leave-to [data-dashboard-overlay="modal"] {
240
+ transform: none;
241
+ }
242
+ }
173
243
  </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