smbls 3.14.846 → 3.14.848

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 (56) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/core.js +14 -0
  3. package/dist/smbls.cjs +46 -46
  4. package/dist/smbls.cjs.map +3 -3
  5. package/dist/smbls.core.chunk-2F2YRPHM.esm.js +36 -0
  6. package/dist/smbls.core.chunk-2F2YRPHM.esm.js.map +6 -0
  7. package/dist/smbls.core.chunk-EI3G25LW.esm.js +7 -0
  8. package/dist/smbls.core.chunk-EI3G25LW.esm.js.map +6 -0
  9. package/dist/smbls.core.chunk-FNPJKVQM.esm.js +22 -0
  10. package/dist/smbls.core.chunk-FNPJKVQM.esm.js.map +6 -0
  11. package/dist/smbls.core.chunk-GBRQOSKJ.esm.js +36 -0
  12. package/dist/smbls.core.chunk-GBRQOSKJ.esm.js.map +6 -0
  13. package/dist/smbls.core.chunk-YN5FXJKZ.esm.js +2 -0
  14. package/dist/smbls.core.chunk-YN5FXJKZ.esm.js.map +6 -0
  15. package/dist/{smbls.core.dropdown-KLDYRYIJ.esm.js → smbls.core.dropdown-KNMDR2TZ.esm.js} +3 -3
  16. package/dist/smbls.core.dropdown-KNMDR2TZ.esm.js.map +6 -0
  17. package/dist/smbls.core.esm.js +1 -1
  18. package/dist/{smbls.core.fetch-C3NM3CDR.esm.js → smbls.core.fetch-LOKOAP2Y.esm.js} +2 -2
  19. package/dist/{smbls.core.fetchOnCreate-2IDNLTJL.esm.js → smbls.core.fetchOnCreate-G5SI6QY4.esm.js} +2 -2
  20. package/dist/{smbls.core.inspect-65AU4U4F.esm.js → smbls.core.inspect-BY4NJMHD.esm.js} +2 -2
  21. package/dist/{smbls.core.sync-VN5QVBVL.esm.js → smbls.core.sync-7IUHWBAH.esm.js} +2 -2
  22. package/dist/smbls.core.tooltip-MOKVQSLR.esm.js +2 -0
  23. package/dist/smbls.core.tooltip-MOKVQSLR.esm.js.map +6 -0
  24. package/dist/smbls.core.windows-RLXGBXPA.esm.js +2 -0
  25. package/dist/smbls.core.windows-RLXGBXPA.esm.js.map +6 -0
  26. package/dist/smbls.embed.iife.js +1 -1
  27. package/dist/smbls.embed.iife.js.map +1 -1
  28. package/dist/smbls.esm.js +61 -61
  29. package/dist/smbls.esm.js.map +1 -6
  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 +13 -0
  34. package/dist/smbls.server-utils.esm.js.map +6 -0
  35. package/dist/smbls.tree-shake.json +956 -0
  36. package/index.js +14 -0
  37. package/package.json +6 -6
  38. package/dist/smbls.core.chunk-GBY7KLCK.esm.js +0 -36
  39. package/dist/smbls.core.chunk-GBY7KLCK.esm.js.map +0 -6
  40. package/dist/smbls.core.chunk-R2MKVDLP.esm.js +0 -36
  41. package/dist/smbls.core.chunk-R2MKVDLP.esm.js.map +0 -6
  42. package/dist/smbls.core.chunk-RXVGKY5A.esm.js +0 -7
  43. package/dist/smbls.core.chunk-RXVGKY5A.esm.js.map +0 -6
  44. package/dist/smbls.core.chunk-TM5BT7BD.esm.js +0 -2
  45. package/dist/smbls.core.chunk-TM5BT7BD.esm.js.map +0 -6
  46. package/dist/smbls.core.chunk-V2GMVLMI.esm.js +0 -22
  47. package/dist/smbls.core.chunk-V2GMVLMI.esm.js.map +0 -6
  48. package/dist/smbls.core.dropdown-KLDYRYIJ.esm.js.map +0 -6
  49. package/dist/smbls.core.tooltip-PBREERMR.esm.js +0 -2
  50. package/dist/smbls.core.tooltip-PBREERMR.esm.js.map +0 -6
  51. package/dist/smbls.core.windows-EEEM6MJU.esm.js +0 -2
  52. package/dist/smbls.core.windows-EEEM6MJU.esm.js.map +0 -6
  53. /package/dist/{smbls.core.fetch-C3NM3CDR.esm.js.map → smbls.core.fetch-LOKOAP2Y.esm.js.map} +0 -0
  54. /package/dist/{smbls.core.fetchOnCreate-2IDNLTJL.esm.js.map → smbls.core.fetchOnCreate-G5SI6QY4.esm.js.map} +0 -0
  55. /package/dist/{smbls.core.inspect-65AU4U4F.esm.js.map → smbls.core.inspect-BY4NJMHD.esm.js.map} +0 -0
  56. /package/dist/{smbls.core.sync-VN5QVBVL.esm.js.map → smbls.core.sync-7IUHWBAH.esm.js.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # smbls
2
2
 
3
+ ## 3.14.848
4
+
5
+ ### Patch Changes
6
+
7
+ - XMA round 8 (page weight and core size). Default builds look and behave the same; opt-in options save more.
8
+
9
+ Built pages (brender), on by default with no visible change, each with an off switch:
10
+
11
+ - The inline sprite holds only the page's icons (`brender.spriteIcons: 'all'` restores all).
12
+ - Atomic CSS only for classes in the page's markup (`brender.cssClasses: 'all'`).
13
+ - The element-path registry ships as a tree when the client reads it (`brender.registryFormat: 'paths'`).
14
+
15
+ Opt-in:
16
+
17
+ - `build.prepareDesignSystem: { pages: false }`: built pages do not request the prepared design-system file (`false` keeps meaning `{ shell: false }`).
18
+ - `brender.cssVariables: 'page'`: a built page carries only the CSS variables it reads.
19
+ - `build.treeShakeFeatures: true | { keep: [...] }`: a production `smbls build` drops unused autoGrow, inertOutside, bridge, viewEvents, lazy route groups, viewTransition, live sync, the pre-rendered boot (kept when the build pre-renders) and getSafeInk. Using a dropped feature logs a loud error naming the option.
20
+
21
+ Core: the full `esm` dist no longer carries esbuild `__esm` wrappers (namespace objects marked pure): about 2 KB Brotli less in every build.
22
+
23
+ Fix (round 7 options): the build scan for `treeShakeComponents`, `treeShakeIcons`, `treeShakeLibraries` and `treeShakeFeatures` reads only what the app loads (the symbols dir without tests, the entry document, symbols.json, and what they import). Files in scripts/, tests/, tool configs and worker files no longer keep components alive, and they no longer change the build output.
24
+
25
+ ## 3.14.847
26
+
27
+ ### Patch Changes
28
+
29
+ - XMA round 7 (bundle size), all opt-in; a default build behaves like 3.14.846:
30
+ - `build.treeShakeComponents` / `build.treeShakeIcons` (`true` or `{ keep: [...] }`): a production `smbls build` keeps only the default components and icons the project references. Using a left-out one logs a loud error naming the option.
31
+ - `build.treeShakeLibraries: true`: a project with no shared library builds without the library machinery.
32
+ - `build.lazyServerUtils: true`: server-only utils (`generateMetaTags`, `getPageMetadata`, `getImportMapScript`, `polyglotStartupScript`, `objectToString`, `deepStringifyFunctions`) load on demand and return a Promise in the browser.
33
+ - A production Parcel build also drops 62 more author-mistake warnings (`globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__`); `smbls start` keeps them.
34
+ - `smbls start` no longer resets `.symbols_local/parcel/buildFlags.json`.
35
+
3
36
  ## 3.14.846
4
37
 
5
38
  ### Patch Changes
package/core.js CHANGED
@@ -50,3 +50,17 @@ setCssEngineHook(setWasmEngine)
50
50
 
51
51
  // Main create functions
52
52
  export * from './src/index.js'
53
+
54
+ // SERVER-ONLY UTILS, ON DEMAND (XMA round 7, item E4 — @symbo.ls/utils
55
+ // serverOnly.js). In a production `smbls build` a few server-only utils are
56
+ // lazy stubs; this is what they load. It sits at the END of the entry on
57
+ // purpose: parcel 2 splices the last import() before a
58
+ // `Promise.resolve().then(<inline fn>)` into that chain, and the bundle's
59
+ // inlined lazy modules are such chains (scripts/parcel-import-splice.mjs) —
60
+ // nothing follows this one. First registration wins (one runtime per page).
61
+ // Behind the same flag as the stubs: a build without
62
+ // `build.lazyServerUtils: true` folds it to false and emits no such file.
63
+ const SERVER_UTILS_LOADER = Symbol.for('smbls.serverUtils')
64
+ if (globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__ && typeof globalThis[SERVER_UTILS_LOADER] !== 'function') {
65
+ globalThis[SERVER_UTILS_LOADER] = () => import('@symbo.ls/utils/serverUtils.js')
66
+ }