smbls 3.14.871 → 3.14.873

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 (54) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/smbls.cjs +45 -45
  3. package/dist/smbls.cjs.map +3 -3
  4. package/dist/{smbls.core.chunk-B72EPN2L.esm.js → smbls.core.chunk-AQK3454W.esm.js} +2 -2
  5. package/dist/smbls.core.chunk-CNA7Y3CA.esm.js +22 -0
  6. package/dist/smbls.core.chunk-CNA7Y3CA.esm.js.map +6 -0
  7. package/dist/{smbls.core.chunk-WYPCGQ62.esm.js → smbls.core.chunk-FYROYQXG.esm.js} +2 -2
  8. package/dist/{smbls.core.chunk-FQCV2JGP.esm.js → smbls.core.chunk-NQYAKXBY.esm.js} +3 -3
  9. package/dist/{smbls.core.chunk-FQCV2JGP.esm.js.map → smbls.core.chunk-NQYAKXBY.esm.js.map} +1 -1
  10. package/dist/smbls.core.chunk-NZG6D3CY.esm.js +36 -0
  11. package/dist/smbls.core.chunk-NZG6D3CY.esm.js.map +1 -0
  12. package/dist/smbls.core.chunk-SJ7R7AUJ.esm.js +7 -0
  13. package/dist/smbls.core.chunk-SJ7R7AUJ.esm.js.map +6 -0
  14. package/dist/{smbls.core.dropdown-J3IUIRLZ.esm.js → smbls.core.dropdown-B3AUBAWW.esm.js} +2 -2
  15. package/dist/smbls.core.esm.js +1 -1
  16. package/dist/smbls.core.fetch-J66IPDK6.esm.js +2 -0
  17. package/dist/smbls.core.fetch-J66IPDK6.esm.js.map +1 -0
  18. package/dist/{smbls.core.fetchOnCreate-7FNAFIP4.esm.js → smbls.core.fetchOnCreate-PINPK55R.esm.js} +2 -2
  19. package/dist/{smbls.core.inspect-ITD6PN22.esm.js → smbls.core.inspect-ZIUSLRZI.esm.js} +2 -2
  20. package/dist/{smbls.core.lazyParts-NZYCRRZG.esm.js → smbls.core.lazyParts-PSYHXWI6.esm.js} +2 -2
  21. package/dist/smbls.core.symbols-NYVJ6FZK.esm.js +2 -0
  22. package/dist/smbls.core.symbols-NYVJ6FZK.esm.js.map +6 -0
  23. package/dist/smbls.core.sync-LBBTLZFU.esm.js +2 -0
  24. package/dist/smbls.core.sync-LBBTLZFU.esm.js.map +6 -0
  25. package/dist/smbls.core.windows-A22LULRM.esm.js +2 -0
  26. package/dist/smbls.core.windows-A22LULRM.esm.js.map +6 -0
  27. package/dist/smbls.embed.iife.js.map +1 -1
  28. package/dist/smbls.esm.js +45 -45
  29. package/dist/smbls.esm.js.map +1 -1
  30. package/dist/smbls.iife-string.js +2 -2
  31. package/dist/smbls.iife.js +1 -1
  32. package/dist/smbls.iife.js.map +1 -1
  33. package/dist/smbls.server-utils.esm.js +9 -9
  34. package/dist/smbls.server-utils.esm.js.map +2 -2
  35. package/dist/smbls.tree-shake.json +7 -0
  36. package/package.json +5 -5
  37. package/dist/smbls.core.chunk-EO3ER2G5.esm.js +0 -36
  38. package/dist/smbls.core.chunk-EO3ER2G5.esm.js.map +0 -1
  39. package/dist/smbls.core.chunk-IHNNCNLW.esm.js +0 -7
  40. package/dist/smbls.core.chunk-IHNNCNLW.esm.js.map +0 -6
  41. package/dist/smbls.core.chunk-LY32SZOH.esm.js +0 -22
  42. package/dist/smbls.core.chunk-LY32SZOH.esm.js.map +0 -6
  43. package/dist/smbls.core.fetch-5URUVJ5L.esm.js +0 -2
  44. package/dist/smbls.core.fetch-5URUVJ5L.esm.js.map +0 -1
  45. package/dist/smbls.core.sync-TARUA5LP.esm.js +0 -2
  46. package/dist/smbls.core.sync-TARUA5LP.esm.js.map +0 -6
  47. package/dist/smbls.core.windows-34APKEMA.esm.js +0 -2
  48. package/dist/smbls.core.windows-34APKEMA.esm.js.map +0 -6
  49. /package/dist/{smbls.core.chunk-B72EPN2L.esm.js.map → smbls.core.chunk-AQK3454W.esm.js.map} +0 -0
  50. /package/dist/{smbls.core.chunk-WYPCGQ62.esm.js.map → smbls.core.chunk-FYROYQXG.esm.js.map} +0 -0
  51. /package/dist/{smbls.core.dropdown-J3IUIRLZ.esm.js.map → smbls.core.dropdown-B3AUBAWW.esm.js.map} +0 -0
  52. /package/dist/{smbls.core.fetchOnCreate-7FNAFIP4.esm.js.map → smbls.core.fetchOnCreate-PINPK55R.esm.js.map} +0 -0
  53. /package/dist/{smbls.core.inspect-ITD6PN22.esm.js.map → smbls.core.inspect-ZIUSLRZI.esm.js.map} +0 -0
  54. /package/dist/{smbls.core.lazyParts-NZYCRRZG.esm.js.map → smbls.core.lazyParts-PSYHXWI6.esm.js.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # smbls
2
2
 
3
+ ## 3.14.873
4
+
5
+ ### Patch Changes
6
+
7
+ - 8c962d3: ModalRoot focuses an opened modal's `[autofocus]` control first. A browser runs `autofocus` once per page load, never for a control a modal adds later, and ModalRoot moved focus to the first focusable in the slot: the chat Add-people sheet opened with focus on its Close button, not on its search. On open (one frame after the stack grows), focus now goes to the first visible `[autofocus]` control that takes it (a disabled or hidden one is passed over), as a `<dialog>` and element's inertOutside layer do; then to the first focusable, the dialog surface and the slot, as before. A prompt's input (`autofocus: true` in PromptTemplate) now takes focus even when a header control comes before it. `smbls` bundles `@symbo.ls/windows`, so it gets the patch too.
8
+
9
+ ## 3.14.872
10
+
11
+ ### Patch Changes
12
+
13
+ - ed88d4e: `@symbo.ls/fetch` no longer sends a refused request again. The retry (`retry`, 3 tries 1 s / 2 s / 4 s apart by default on reads) used to resend every failed answer, so a 403 / 404 cost four requests — four hits on a public rate limiter for one view. Now the answer's status decides, read from the result's `status` (the REST adapter's) or the error's `status` / `statusCode` (the SDK's errors), returned or thrown: a 4xx is sent once and reaches `onFetchError` at once, also under an explicit `retry` count; a 408, a 5xx, a network failure and an error with no status keep the retries; a 429 is sent again once, after the server's `Retry-After` (the `delay` when there is none; not at all when it asks for more than the backoff's 30 s cap). The REST adapter carries a failed answer's `Retry-After` header as `retryAfter` on its result when the server sends one. `smbls`: the bundles carry the new retry.
14
+ - 849f8c1: frank writes an app's lang map once. An app whose polyglot reads its design system's lang map (`polyglot: { translations: lang }`, `lang` imported from `designSystem/lang.js` — the workspace apps' pattern) shipped the map twice: frank keeps the shared reference, and JSON writes a shared object at each place it occurs (a commerce app's payload: +102,603 bytes, +17.6 %). `frank.toJSON` now keeps the map in `designSystem.lang` (where the workspace shell reads a module's copy) and writes the polyglot config with `translationsFrom: 'designSystem.lang'` in the place of `translations` — only when the translations ARE that map (the same object, or a copy with the same content). Every reader puts the map back before it reads the config: `@symbo.ls/utils` adds `polyglotTranslations(project, polyglot)` (a read), `resolvePolyglotTranslations(project)` (in place — `smbls` `prepareContext` resolves the runtime's context before the shared libraries merge in) and `withPolyglotTranslations(project)` (a view — `@symbo.ls/brender` `render`/`renderPage`, `@symbo.ls/mermaid` `renderProjectHtml`'s start-up script and language, each shared library merge; the payload a server also serves is never written, so it keeps the map once); utils `getPageMetadata` resolves head labels from the pointer; `@symbo.ls/sync` resolves a livesync snapshot before it applies it (`resolveSnapshotTranslations`), so an edited copy reaches the page with the snapshot. A config with `translations` as well gets the named map with its own labels over it, per language. `@symbo.ls/polyglot`: the README documents `translationsFrom`. A runtime older than this release reads such a payload as a polyglot without static strings (the keys show): release the runtime packages and the mermaid-server pin before apps push with this frank.
15
+ - 71f56ce: `@symbo.ls/fetch` ships a built-in `symbols` adapter (`adapters/symbols.js`, also `@symbo.ls/fetch/symbols`): a published site reads and writes through the platform SDK, signed out, with `fetch: { adapter: 'symbols', load: () => import('@symbo.ls/sdk') }` in its config. The adapter loads the SDK on the first query only (frank publishes the literal import() as the lazy host-package marker, so the page declares the SDK file instead of inlining it), builds ONE SDK per page (memory tokens, the SDK's own telemetry off, the API base from `window.__SYMBOLS_ENV__`), and maps every op the way the hosts' 'sdk' adapter does (`select → list`, `insert → create`, …; every answer `{ data, error }`). It has no session surface. It is built in under its own name: a built-in 'sdk' would answer a host's first elements before the host's own late `registerAdapter('sdk')` (measured; `sdkAdapterShellRace.test.js`), so 'sdk' stays the hosts'. `resolveDb(config, env)` hands `env` (`{ serverRender }`, set from a context's `isolateFetchCache`) to `setup(options, env)`; the `symbols` adapter answers `null` in a server render, so the query is skipped there and the server never loads the SDK or calls the API. `@symbo.ls/brender` `createSSRAdapter` passes `{ serverRender: true }`. `smbls`: the full esm build keeps the new adapter import static (no `__esm` initializer), the core build gates it as kit `symbols` (`build.treeShakeFeatures`), and the bundles carry the new adapter.
16
+
3
17
  ## 3.14.871
4
18
 
5
19
  ### Patch Changes