soma-core 2.2.6 → 2.2.7

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 (59) hide show
  1. package/core/build/compiler/soma-precompile.js +66 -10
  2. package/core/client/container/IContainerAdapter.ts +4 -0
  3. package/core/client/container/SomaContainerAdapter.ts +43 -2
  4. package/core/client/data/data-object-resolver.ts +7 -3
  5. package/core/client/engine/event-engine.ts +28 -3
  6. package/core/client/engine/soma-bootstrap.ts +2 -1
  7. package/core/client/infra/notify/DefaultNotifyService.ts +2 -2
  8. package/core/client/parser/confirm-spec.ts +99 -6
  9. package/core/client/parser/data-config-parser.ts +1 -1
  10. package/core/client/parser/pipeline-parser.ts +2 -1
  11. package/core/client/render-ports/hide-transition.ts +9 -0
  12. package/core/client/render-ports/index.ts +4 -0
  13. package/core/client/render-ports/notify-renderer.ts +2 -1
  14. package/core/index.ts +16 -4
  15. package/core/server/api/load-host-service.ts +3 -0
  16. package/core/server/api/paged-list.ts +259 -0
  17. package/core/server/host/empty-host-bootstrap.mjs +3 -0
  18. package/core/server/host/host-assembly.ts +3 -0
  19. package/core/server/host/source-aliases.cjs +345 -0
  20. package/core/server/host/source-aliases.ts +32 -0
  21. package/core/server/host/source-packages.cjs +1 -0
  22. package/core/server/infra/cache/ServerFileCache.ts +4 -1
  23. package/core/server/node.ts +10 -0
  24. package/core/server/runtime-space/inject.ts +4 -1
  25. package/core/shared/core-diagnostic-codes.ts +6 -0
  26. package/core/shared/data-declaration-checks.ts +29 -3
  27. package/core/shared/registry-generated/diagnostic-registry-index.ts +5 -0
  28. package/core/shared/registry-generated/diagnostic-registry.ts +35 -0
  29. package/core/shared/registry-generated/limits.ts +18 -2
  30. package/core/shared/registry-generated/std-grammar.ts +1 -1
  31. package/core/shared/types/data-config.types.ts +3 -1
  32. package/core/shared/types/event.types.ts +9 -0
  33. package/dist/browser/soma-runtime.js +169 -19
  34. package/dist/core/index.cjs +190 -19
  35. package/dist/host-native/aot-builder.cjs +284 -0
  36. package/dist/host-native/native-server.cjs +344 -10
  37. package/dist/lsp/component-tree.cjs +66 -10
  38. package/dist/types/client/container/IContainerAdapter.d.ts +3 -0
  39. package/dist/types/client/container/SomaContainerAdapter.d.ts +5 -0
  40. package/dist/types/client/data/data-object-resolver.d.ts +2 -0
  41. package/dist/types/client/parser/confirm-spec.d.ts +27 -3
  42. package/dist/types/client/render-ports/hide-transition.d.ts +9 -0
  43. package/dist/types/client/render-ports/index.d.ts +4 -0
  44. package/dist/types/client/render-ports/notify-renderer.d.ts +2 -1
  45. package/dist/types/index.d.ts +4 -4
  46. package/dist/types/server/api/paged-list.d.ts +101 -0
  47. package/dist/types/server/host/source-aliases.d.cts +53 -0
  48. package/dist/types/server/host/source-aliases.d.ts +30 -0
  49. package/dist/types/server/host/source-packages.d.cts +2 -0
  50. package/dist/types/server/node.d.ts +1 -0
  51. package/dist/types/shared/core-diagnostic-codes.d.ts +1 -1
  52. package/dist/types/shared/registry-generated/diagnostic-registry.d.ts +30 -0
  53. package/dist/types/shared/registry-generated/limits.d.ts +14 -0
  54. package/dist/types/shared/registry-generated/std-grammar.d.ts +1 -1
  55. package/dist/types/shared/types/data-config.types.d.ts +3 -1
  56. package/dist/types/shared/types/event.types.d.ts +8 -0
  57. package/host-native/src/aot-builder.ts +23 -0
  58. package/host-native/styles/globals.css +30 -28
  59. package/package.json +13 -2
@@ -34,39 +34,41 @@ select {
34
34
  font: inherit;
35
35
  }
36
36
 
37
- /* 托管组件由角色类和布局工具决定外观,不能叠加浏览器默认标题边距、按钮底色或 outset 边框。 */
38
- :where([data-soma-host], [data-soma-host] *, [data-soma-host] *::before, [data-soma-host] *::after) {
39
- border-width: 0;
40
- border-style: solid;
41
- }
37
+ /* 托管组件由角色类和布局工具决定外观,不能叠加浏览器默认标题边距、按钮底色或 outset 边框;置于最底层 @layer base,确保不压过组件/主题 @layer 规则。 */
38
+ @layer base {
39
+ :where([data-soma-host], [data-soma-host] *, [data-soma-host] *::before, [data-soma-host] *::after) {
40
+ border-width: 0;
41
+ border-style: solid;
42
+ }
42
43
 
43
- :where([data-soma-host]) :where(h1, h2, h3, h4, h5, h6, p, blockquote, figure, dl, dd) {
44
- margin: 0;
45
- }
44
+ :where([data-soma-host]) :where(h1, h2, h3, h4, h5, h6, p, blockquote, figure, dl, dd) {
45
+ margin: 0;
46
+ }
46
47
 
47
- :where([data-soma-host], [data-soma-overlay-root]) :where(button, input, optgroup, select, textarea) {
48
- color: inherit;
49
- font: inherit;
50
- background-color: transparent;
51
- border-radius: 0;
52
- border-width: 0;
53
- border-style: solid;
54
- }
48
+ :where([data-soma-host], [data-soma-overlay-root]) :where(button, input, optgroup, select, textarea) {
49
+ color: inherit;
50
+ font: inherit;
51
+ background-color: transparent;
52
+ border-radius: 0;
53
+ border-width: 0;
54
+ border-style: solid;
55
+ }
55
56
 
56
- :where([data-soma-host]) :where(ol, ul, menu) {
57
- list-style: none;
58
- margin: 0;
59
- padding: 0;
60
- }
57
+ :where([data-soma-host]) :where(ol, ul, menu) {
58
+ list-style: none;
59
+ margin: 0;
60
+ padding: 0;
61
+ }
61
62
 
62
- :where([data-soma-host]) table {
63
- border-collapse: collapse;
64
- text-indent: 0;
65
- }
63
+ :where([data-soma-host]) table {
64
+ border-collapse: collapse;
65
+ text-indent: 0;
66
+ }
66
67
 
67
- :where([data-soma-host]) a {
68
- color: inherit;
69
- text-decoration: inherit;
68
+ :where([data-soma-host]) a {
69
+ color: inherit;
70
+ text-decoration: inherit;
71
+ }
70
72
  }
71
73
 
72
74
  .soma-hidden {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "soma-core",
3
- "version": "2.2.6",
3
+ "version": "2.2.7",
4
4
  "description": "SOMA — Semantic Oriented Modular Architecture. A declarative frontend framework runtime with no UI framework dependency; native host shell ships in host-native/.",
5
5
  "keywords": [
6
6
  "soma",
@@ -175,6 +175,11 @@
175
175
  "import": "./core/server/index.ts",
176
176
  "default": "./core/server/index.ts"
177
177
  },
178
+ "./server/paged-list": {
179
+ "types": "./dist/types/server/api/paged-list.d.ts",
180
+ "import": "./core/server/api/paged-list.ts",
181
+ "default": "./core/server/api/paged-list.ts"
182
+ },
178
183
  "./server/runtime": {
179
184
  "types": "./dist/types/server/runtime-space/index.d.ts",
180
185
  "import": "./core/server/runtime-space/index.ts",
@@ -190,6 +195,12 @@
190
195
  "import": "./core/server/node.ts",
191
196
  "default": "./core/server/node.ts"
192
197
  },
198
+ "./server/source-aliases": {
199
+ "types": "./dist/types/server/host/source-aliases.d.ts",
200
+ "require": "./core/server/host/source-aliases.cjs",
201
+ "import": "./core/server/host/source-aliases.cjs",
202
+ "default": "./core/server/host/source-aliases.cjs"
203
+ },
193
204
  "./server/registry": {
194
205
  "types": "./dist/types/server/registry/index.d.ts",
195
206
  "import": "./core/server/registry/index.ts",
@@ -321,7 +332,7 @@
321
332
  "parse5": "7.3.0",
322
333
  "qrcode-generator": "2.0.4",
323
334
  "server-only": "0.0.1",
324
- "soma-foundation": "^0.1.3",
335
+ "soma-foundation": "^0.1.4",
325
336
  "temporal-polyfill": "0.3.2"
326
337
  },
327
338
  "peerDependencies": {