@jini-ai/cms 0.5.5 → 0.5.6

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 (135) hide show
  1. package/dist/consent/express/index.d.ts +53 -0
  2. package/dist/consent/express/index.js +159 -0
  3. package/dist/consent/express/response.d.ts +21 -0
  4. package/dist/consent/express/response.js +89 -0
  5. package/dist/consent/html/client.d.ts +6 -0
  6. package/dist/consent/html/client.js +135 -0
  7. package/dist/consent/html/gate.d.ts +29 -0
  8. package/dist/consent/html/gate.js +104 -0
  9. package/dist/consent/html/index.d.ts +4 -0
  10. package/dist/consent/html/index.js +3 -0
  11. package/dist/consent/html/render.d.ts +27 -0
  12. package/dist/consent/html/render.js +62 -0
  13. package/dist/consent/html/static.d.ts +7 -0
  14. package/dist/consent/html/static.js +25 -0
  15. package/dist/consent/html/styles.d.ts +3 -0
  16. package/dist/consent/html/styles.js +22 -0
  17. package/dist/consent/index.d.ts +3 -0
  18. package/dist/consent/index.js +3 -0
  19. package/dist/consent/node/index.d.ts +47 -0
  20. package/dist/consent/node/index.js +169 -0
  21. package/dist/consent/policy.d.ts +47 -0
  22. package/dist/consent/policy.js +62 -0
  23. package/dist/consent/types.d.ts +40 -0
  24. package/dist/consent/types.js +5 -0
  25. package/dist/content-types/agent-tools.js +1 -1
  26. package/dist/content-types/tool-registrations.d.ts +2 -0
  27. package/dist/content-types/tool-registrations.js +1 -0
  28. package/dist/content-types/write-service.d.ts +2 -0
  29. package/dist/content-types/write-service.js +3 -0
  30. package/dist/forms/descriptor-rules.d.ts +9 -0
  31. package/dist/forms/descriptor-rules.js +112 -0
  32. package/dist/forms/email-format.d.ts +7 -0
  33. package/dist/forms/email-format.js +11 -0
  34. package/dist/forms/express/handler.js +4 -8
  35. package/dist/forms/field-registry.d.ts +193 -0
  36. package/dist/forms/field-registry.js +231 -0
  37. package/dist/forms/forms.d.ts +8 -5
  38. package/dist/forms/forms.js +29 -46
  39. package/dist/forms/html/html-authoring.js +63 -13
  40. package/dist/forms/html/html-submission-adapter.d.ts +5 -5
  41. package/dist/forms/html/html-submission-adapter.js +6 -13
  42. package/dist/forms/html-render.d.ts +10 -3
  43. package/dist/forms/html-render.js +116 -14
  44. package/dist/forms/index.d.ts +1 -0
  45. package/dist/forms/index.js +1 -0
  46. package/dist/forms/repo.memory.js +4 -4
  47. package/dist/forms/submission-attempts.d.ts +1 -1
  48. package/dist/forms/submission-attempts.js +13 -2
  49. package/dist/forms/submission-email-validation.js +2 -4
  50. package/dist/forms/submit-service.d.ts +3 -0
  51. package/dist/forms/submit-service.js +38 -5
  52. package/dist/forms/types.d.ts +50 -2
  53. package/dist/listing/batch.d.ts +53 -0
  54. package/dist/listing/batch.js +57 -0
  55. package/dist/listing/html.d.ts +72 -0
  56. package/dist/listing/html.js +109 -0
  57. package/dist/listing/index.d.ts +5 -0
  58. package/dist/listing/index.js +5 -0
  59. package/dist/listing/paths.d.ts +32 -0
  60. package/dist/listing/paths.js +37 -0
  61. package/dist/listing/see-more-script.d.ts +16 -0
  62. package/dist/listing/see-more-script.js +62 -0
  63. package/dist/media/content-type-sniffer.d.ts +1 -1
  64. package/dist/media/content-type-sniffer.js +15 -0
  65. package/dist/media/image-transformer.sharp.js +4 -1
  66. package/dist/media/media-service.d.ts +4 -0
  67. package/dist/media/media-service.js +8 -0
  68. package/dist/media/node.d.ts +1 -1
  69. package/dist/media/node.js +1 -1
  70. package/dist/media/transform-registry.js +1 -1
  71. package/dist/media/transform-types.d.ts +2 -0
  72. package/dist/media/transform-types.js +3 -0
  73. package/dist/media/video-frames.ffmpeg.d.ts +15 -2
  74. package/dist/media/video-frames.ffmpeg.js +28 -13
  75. package/dist/navigation/dropdown.d.ts +41 -0
  76. package/dist/navigation/dropdown.js +85 -0
  77. package/dist/navigation/index.d.ts +2 -0
  78. package/dist/navigation/index.js +2 -0
  79. package/dist/redirects/capture.d.ts +2 -0
  80. package/dist/redirects/capture.js +4 -0
  81. package/dist/redirects/redirects.d.ts +8 -0
  82. package/dist/redirects/redirects.js +14 -0
  83. package/dist/routing/index.d.ts +5 -0
  84. package/dist/routing/index.js +2 -0
  85. package/dist/routing/ports.d.ts +51 -0
  86. package/dist/routing/ports.js +2 -0
  87. package/dist/routing/routing.d.ts +138 -0
  88. package/dist/routing/routing.js +443 -0
  89. package/dist/routing/types.d.ts +164 -0
  90. package/dist/routing/types.js +2 -0
  91. package/dist/seo/media.d.ts +23 -0
  92. package/dist/seo/media.js +30 -5
  93. package/dist/seo/page-head.js +8 -1
  94. package/dist/seo/seo.d.ts +2 -0
  95. package/dist/seo/seo.js +11 -6
  96. package/dist/seo/types.d.ts +8 -0
  97. package/dist/seo/xml-escape.d.ts +1 -3
  98. package/dist/seo/xml-escape.js +1 -6
  99. package/dist/widgets/concurrency.d.ts +27 -1
  100. package/dist/widgets/concurrency.js +12 -23
  101. package/dist/widgets/config-validation.js +6 -0
  102. package/dist/widgets/gallery-resolver.d.ts +23 -0
  103. package/dist/widgets/gallery-resolver.js +80 -0
  104. package/dist/widgets/html/gallery-render.d.ts +24 -0
  105. package/dist/widgets/html/gallery-render.js +65 -0
  106. package/dist/widgets/html/html-embeds.d.ts +4 -0
  107. package/dist/widgets/html/html-embeds.js +7 -1
  108. package/dist/widgets/html/index.d.ts +3 -0
  109. package/dist/widgets/html/index.js +3 -0
  110. package/dist/widgets/html/server-fragment.d.ts +9 -0
  111. package/dist/widgets/html/server-fragment.js +38 -0
  112. package/dist/widgets/markers/gallery.d.ts +50 -0
  113. package/dist/widgets/markers/gallery.js +164 -0
  114. package/dist/widgets/markers/html-attributes.d.ts +6 -1
  115. package/dist/widgets/markers/html-attributes.js +24 -9
  116. package/dist/widgets/markers/index.d.ts +2 -0
  117. package/dist/widgets/markers/index.js +2 -0
  118. package/dist/widgets/markers/marker.d.ts +4 -0
  119. package/dist/widgets/markers/marker.js +6 -0
  120. package/dist/widgets/markers/media-reference.d.ts +11 -0
  121. package/dist/widgets/markers/media-reference.js +11 -0
  122. package/dist/widgets/page-embed-types.d.ts +1 -1
  123. package/dist/widgets/page-embed-types.js +1 -1
  124. package/dist/widgets/registry.d.ts +144 -10
  125. package/dist/widgets/registry.js +40 -0
  126. package/dist/widgets/resolver-service.d.ts +10 -0
  127. package/dist/widgets/resolver-service.js +73 -29
  128. package/dist/widgets/resolvers/create-core-resolvers.d.ts +3 -0
  129. package/dist/widgets/resolvers/create-core-resolvers.js +2 -0
  130. package/dist/widgets/resolvers/gallery.d.ts +12 -0
  131. package/dist/widgets/resolvers/gallery.js +33 -0
  132. package/dist/widgets/resolvers/index.d.ts +1 -0
  133. package/dist/widgets/resolvers/index.js +1 -0
  134. package/dist/widgets/types.d.ts +3 -1
  135. package/package.json +51 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jini-ai/cms",
3
- "version": "0.5.5",
3
+ "version": "0.5.6",
4
4
  "description": "Content-model capability for Jini-hosted products: framework-free contracts, ports, and domain services in `/core` and per-domain subpaths; Node-bound adapters in domain-specific subpaths.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -16,6 +16,7 @@
16
16
  ".": "universal",
17
17
  "./core": "universal",
18
18
  "./navigation": "universal",
19
+ "./routing": "universal",
19
20
  "./media": "node",
20
21
  "./settings": "universal",
21
22
  "./workspace": "universal",
@@ -46,7 +47,12 @@
46
47
  "./widgets/markers": "universal",
47
48
  "./widgets/html": "node",
48
49
  "./widgets/resolvers": "universal",
49
- "./widgets/sql": "node"
50
+ "./widgets/sql": "node",
51
+ "./consent": "universal",
52
+ "./consent/html": "node",
53
+ "./consent/express": "node",
54
+ "./consent/node": "node",
55
+ "./listing": "universal"
50
56
  },
51
57
  "isolation": {
52
58
  "domains": {
@@ -65,6 +71,9 @@
65
71
  "navigation": [
66
72
  "src/navigation"
67
73
  ],
74
+ "routing": [
75
+ "src/routing"
76
+ ],
68
77
  "presentation": [
69
78
  "src/presentation"
70
79
  ],
@@ -94,6 +103,12 @@
94
103
  ],
95
104
  "widgets": [
96
105
  "src/widgets"
106
+ ],
107
+ "consent": [
108
+ "src/consent"
109
+ ],
110
+ "listing": [
111
+ "src/listing"
97
112
  ]
98
113
  },
99
114
  "forbidden": {
@@ -134,6 +149,11 @@
134
149
  "import": "./dist/navigation/index.js",
135
150
  "default": "./dist/navigation/index.js"
136
151
  },
152
+ "./routing": {
153
+ "types": "./dist/routing/index.d.ts",
154
+ "import": "./dist/routing/index.js",
155
+ "default": "./dist/routing/index.js"
156
+ },
137
157
  "./media": {
138
158
  "types": "./dist/media/index.d.ts",
139
159
  "import": "./dist/media/index.js",
@@ -288,6 +308,31 @@
288
308
  "types": "./dist/widgets/sql/index.d.ts",
289
309
  "import": "./dist/widgets/sql/index.js",
290
310
  "default": "./dist/widgets/sql/index.js"
311
+ },
312
+ "./consent": {
313
+ "types": "./dist/consent/index.d.ts",
314
+ "import": "./dist/consent/index.js",
315
+ "default": "./dist/consent/index.js"
316
+ },
317
+ "./consent/html": {
318
+ "types": "./dist/consent/html/index.d.ts",
319
+ "import": "./dist/consent/html/index.js",
320
+ "default": "./dist/consent/html/index.js"
321
+ },
322
+ "./consent/express": {
323
+ "types": "./dist/consent/express/index.d.ts",
324
+ "import": "./dist/consent/express/index.js",
325
+ "default": "./dist/consent/express/index.js"
326
+ },
327
+ "./consent/node": {
328
+ "types": "./dist/consent/node/index.d.ts",
329
+ "import": "./dist/consent/node/index.js",
330
+ "default": "./dist/consent/node/index.js"
331
+ },
332
+ "./listing": {
333
+ "types": "./dist/listing/index.d.ts",
334
+ "import": "./dist/listing/index.js",
335
+ "default": "./dist/listing/index.js"
291
336
  }
292
337
  },
293
338
  "files": [
@@ -320,17 +365,17 @@
320
365
  "@electric-sql/pglite": "0.5.8",
321
366
  "jsdom": "^25.0.1",
322
367
  "@jini-ai/http-kit": "0.4.1",
323
- "@jini-ai/db": "0.3.1",
324
- "@jini-ai/core": "0.4.2"
368
+ "@jini-ai/db": "0.3.2",
369
+ "@jini-ai/core": "0.4.3"
325
370
  },
326
371
  "dependencies": {
327
- "@jini-ai/core": "^0.4.2"
372
+ "@jini-ai/core": "^0.4.3"
328
373
  },
329
374
  "peerDependencies": {
330
375
  "sharp": "^0.35.3",
331
376
  "express": "^4.21.0",
332
377
  "kysely": "^0.29.6",
333
- "@jini-ai/db": "^0.3.0",
378
+ "@jini-ai/db": "^0.3.2",
334
379
  "parse5": "^7.3.0",
335
380
  "@jini-ai/http-kit": "^0.4.0"
336
381
  },