@lssm/example.analytics-dashboard 0.0.0-canary-20251222120211 → 0.0.0-canary-20251223012036

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 (203) hide show
  1. package/dist/dashboard/dashboard.enum.js +4 -4
  2. package/dist/dashboard/dashboard.enum.js.map +1 -1
  3. package/dist/dashboard/dashboard.operation.d.ts +1 -1
  4. package/dist/dashboard/dashboard.operation.js +1 -2
  5. package/dist/dashboard/dashboard.operation.js.map +1 -1
  6. package/dist/dashboard/dashboard.schema.js +42 -42
  7. package/dist/dashboard/dashboard.schema.js.map +1 -1
  8. package/dist/docs/analytics-dashboard.docblock.js +1 -2
  9. package/dist/docs/analytics-dashboard.docblock.js.map +1 -1
  10. package/dist/events.d.ts +1 -1
  11. package/dist/events.js +21 -22
  12. package/dist/events.js.map +1 -1
  13. package/dist/index.d.ts +1 -0
  14. package/dist/query/query.enum.js +2 -2
  15. package/dist/query/query.enum.js.map +1 -1
  16. package/dist/query/query.operation.d.ts +1 -1
  17. package/dist/query/query.operation.js +1 -2
  18. package/dist/query/query.operation.js.map +1 -1
  19. package/dist/query/query.schema.js +32 -32
  20. package/dist/query/query.schema.js.map +1 -1
  21. package/package.json +11 -11
  22. package/dist/libs/contracts/dist/_virtual/rolldown_runtime.js +0 -6
  23. package/dist/libs/contracts/dist/_virtual/rolldown_runtime.js.map +0 -1
  24. package/dist/libs/contracts/dist/capabilities/index.js +0 -1
  25. package/dist/libs/contracts/dist/capabilities/openbanking.js +0 -89
  26. package/dist/libs/contracts/dist/capabilities/openbanking.js.map +0 -1
  27. package/dist/libs/contracts/dist/client/index.js +0 -5
  28. package/dist/libs/contracts/dist/client/react/feature-render.js +0 -3
  29. package/dist/libs/contracts/dist/client/react/form-render.js +0 -5
  30. package/dist/libs/contracts/dist/client/react/index.js +0 -4
  31. package/dist/libs/contracts/dist/contract-registry/index.js +0 -1
  32. package/dist/libs/contracts/dist/contract-registry/schemas.js +0 -61
  33. package/dist/libs/contracts/dist/contract-registry/schemas.js.map +0 -1
  34. package/dist/libs/contracts/dist/data-views/data-views.js +0 -7
  35. package/dist/libs/contracts/dist/data-views/data-views.js.map +0 -1
  36. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -17
  37. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js.map +0 -1
  38. package/dist/libs/contracts/dist/docs/index.js +0 -25
  39. package/dist/libs/contracts/dist/docs/meta.docs.js +0 -30
  40. package/dist/libs/contracts/dist/docs/meta.docs.js.map +0 -1
  41. package/dist/libs/contracts/dist/docs/presentations.js +0 -72
  42. package/dist/libs/contracts/dist/docs/presentations.js.map +0 -1
  43. package/dist/libs/contracts/dist/docs/registry.js +0 -45
  44. package/dist/libs/contracts/dist/docs/registry.js.map +0 -1
  45. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -81
  46. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js.map +0 -1
  47. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -58
  48. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +0 -1
  49. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -17
  50. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js.map +0 -1
  51. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -358
  52. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js.map +0 -1
  53. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -38
  54. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js.map +0 -1
  55. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -17
  56. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js.map +0 -1
  57. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -21
  58. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js.map +0 -1
  59. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -49
  60. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js.map +0 -1
  61. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -80
  62. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js.map +0 -1
  63. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -85
  64. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js.map +0 -1
  65. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -46
  66. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js.map +0 -1
  67. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -68
  68. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js.map +0 -1
  69. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -41
  70. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js.map +0 -1
  71. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -70
  72. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js.map +0 -1
  73. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -48
  74. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js.map +0 -1
  75. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -63
  76. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js.map +0 -1
  77. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -156
  78. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js.map +0 -1
  79. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -21
  80. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js.map +0 -1
  81. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -102
  82. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js.map +0 -1
  83. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -21
  84. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js.map +0 -1
  85. package/dist/libs/contracts/dist/docs/tech-contracts.docs.js +0 -97
  86. package/dist/libs/contracts/dist/docs/tech-contracts.docs.js.map +0 -1
  87. package/dist/libs/contracts/dist/events.js +0 -11
  88. package/dist/libs/contracts/dist/events.js.map +0 -1
  89. package/dist/libs/contracts/dist/experiments/evaluator.js +0 -1
  90. package/dist/libs/contracts/dist/features.js +0 -7
  91. package/dist/libs/contracts/dist/features.js.map +0 -1
  92. package/dist/libs/contracts/dist/forms/forms.js +0 -1
  93. package/dist/libs/contracts/dist/index.js +0 -88
  94. package/dist/libs/contracts/dist/index.js.map +0 -1
  95. package/dist/libs/contracts/dist/install.js +0 -2
  96. package/dist/libs/contracts/dist/integrations/index.js +0 -18
  97. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +0 -228
  98. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map +0 -1
  99. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +0 -159
  100. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js.map +0 -1
  101. package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +0 -3
  102. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +0 -210
  103. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map +0 -1
  104. package/dist/libs/contracts/dist/integrations/openbanking/models.js +0 -241
  105. package/dist/libs/contracts/dist/integrations/openbanking/models.js.map +0 -1
  106. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +0 -14
  107. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js.map +0 -1
  108. package/dist/libs/contracts/dist/integrations/operations.js +0 -377
  109. package/dist/libs/contracts/dist/integrations/operations.js.map +0 -1
  110. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +0 -53
  111. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js.map +0 -1
  112. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +0 -76
  113. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js.map +0 -1
  114. package/dist/libs/contracts/dist/integrations/providers/gmail.js +0 -88
  115. package/dist/libs/contracts/dist/integrations/providers/gmail.js.map +0 -1
  116. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +0 -67
  117. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js.map +0 -1
  118. package/dist/libs/contracts/dist/integrations/providers/index.js +0 -11
  119. package/dist/libs/contracts/dist/integrations/providers/mistral.js +0 -69
  120. package/dist/libs/contracts/dist/integrations/providers/mistral.js.map +0 -1
  121. package/dist/libs/contracts/dist/integrations/providers/postmark.js +0 -69
  122. package/dist/libs/contracts/dist/integrations/providers/postmark.js.map +0 -1
  123. package/dist/libs/contracts/dist/integrations/providers/powens.js +0 -117
  124. package/dist/libs/contracts/dist/integrations/providers/powens.js.map +0 -1
  125. package/dist/libs/contracts/dist/integrations/providers/qdrant.js +0 -74
  126. package/dist/libs/contracts/dist/integrations/providers/qdrant.js.map +0 -1
  127. package/dist/libs/contracts/dist/integrations/providers/registry.js +0 -10
  128. package/dist/libs/contracts/dist/integrations/providers/stripe.js +0 -84
  129. package/dist/libs/contracts/dist/integrations/providers/stripe.js.map +0 -1
  130. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +0 -62
  131. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js.map +0 -1
  132. package/dist/libs/contracts/dist/jsonschema.js +0 -1
  133. package/dist/libs/contracts/dist/knowledge/index.js +0 -7
  134. package/dist/libs/contracts/dist/knowledge/operations.js +0 -306
  135. package/dist/libs/contracts/dist/knowledge/operations.js.map +0 -1
  136. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +0 -35
  137. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js.map +0 -1
  138. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +0 -35
  139. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js.map +0 -1
  140. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +0 -39
  141. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js.map +0 -1
  142. package/dist/libs/contracts/dist/knowledge/spaces/index.js +0 -6
  143. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +0 -35
  144. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js.map +0 -1
  145. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +0 -38
  146. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js.map +0 -1
  147. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +0 -35
  148. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js.map +0 -1
  149. package/dist/libs/contracts/dist/llm/exporters.js +0 -21
  150. package/dist/libs/contracts/dist/llm/exporters.js.map +0 -1
  151. package/dist/libs/contracts/dist/llm/index.js +0 -2
  152. package/dist/libs/contracts/dist/llm/prompts.js +0 -1
  153. package/dist/libs/contracts/dist/onboarding-base.js +0 -196
  154. package/dist/libs/contracts/dist/onboarding-base.js.map +0 -1
  155. package/dist/libs/contracts/dist/openapi.js +0 -1
  156. package/dist/libs/contracts/dist/operations/index.js +0 -2
  157. package/dist/libs/contracts/dist/operations/operation.js +0 -35
  158. package/dist/libs/contracts/dist/operations/operation.js.map +0 -1
  159. package/dist/libs/contracts/dist/operations/registry.js +0 -8
  160. package/dist/libs/contracts/dist/operations/registry.js.map +0 -1
  161. package/dist/libs/contracts/dist/ownership.js +0 -24
  162. package/dist/libs/contracts/dist/ownership.js.map +0 -1
  163. package/dist/libs/contracts/dist/presentations/index.js +0 -2
  164. package/dist/libs/contracts/dist/presentations/presentations.js +0 -8
  165. package/dist/libs/contracts/dist/presentations/presentations.js.map +0 -1
  166. package/dist/libs/contracts/dist/presentations/transform-engine.js +0 -12
  167. package/dist/libs/contracts/dist/presentations/transform-engine.js.map +0 -1
  168. package/dist/libs/contracts/dist/prompt.js +0 -1
  169. package/dist/libs/contracts/dist/promptRegistry.js +0 -1
  170. package/dist/libs/contracts/dist/regenerator/index.js +0 -1
  171. package/dist/libs/contracts/dist/regenerator/service.js +0 -7
  172. package/dist/libs/contracts/dist/regenerator/service.js.map +0 -1
  173. package/dist/libs/contracts/dist/registry-utils.js +0 -24
  174. package/dist/libs/contracts/dist/registry-utils.js.map +0 -1
  175. package/dist/libs/contracts/dist/resources.js +0 -1
  176. package/dist/libs/contracts/dist/schema/dist/index.js +0 -3873
  177. package/dist/libs/contracts/dist/schema/dist/index.js.map +0 -1
  178. package/dist/libs/contracts/dist/server/graphql-pothos.js +0 -6
  179. package/dist/libs/contracts/dist/server/index.js +0 -8
  180. package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +0 -4
  181. package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +0 -3
  182. package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +0 -1
  183. package/dist/libs/contracts/dist/server/mcp/registerResources.js +0 -2
  184. package/dist/libs/contracts/dist/server/mcp/registerTools.js +0 -1
  185. package/dist/libs/contracts/dist/server/provider-mcp.js +0 -1
  186. package/dist/libs/contracts/dist/server/rest-elysia.js +0 -1
  187. package/dist/libs/contracts/dist/server/rest-express.js +0 -1
  188. package/dist/libs/contracts/dist/server/rest-generic.js +0 -1
  189. package/dist/libs/contracts/dist/server/rest-next-app.js +0 -1
  190. package/dist/libs/contracts/dist/server/rest-next-pages.js +0 -1
  191. package/dist/libs/contracts/dist/telemetry/index.js +0 -1
  192. package/dist/libs/contracts/dist/telemetry/tracker.js +0 -1
  193. package/dist/libs/contracts/dist/tests/index.js +0 -1
  194. package/dist/libs/contracts/dist/tests/runner.js +0 -2
  195. package/dist/libs/contracts/dist/workflow/index.js +0 -2
  196. package/dist/libs/contracts/dist/workflow/runner.js +0 -1
  197. package/dist/libs/contracts/dist/workflow/spec.js +0 -7
  198. package/dist/libs/contracts/dist/workflow/spec.js.map +0 -1
  199. package/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js +0 -164
  200. package/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js.map +0 -1
  201. package/dist/libs/contracts/dist/workspace-config/index.js +0 -1
  202. package/dist/libs/schema/dist/index.js +0 -4717
  203. package/dist/libs/schema/dist/index.js.map +0 -1
@@ -1,23 +1,23 @@
1
- import { E5, K5 } from "../libs/schema/dist/index.js";
2
1
  import { QueryTypeEnum } from "./query.enum.js";
2
+ import { ScalarTypeEnum, defineSchemaModel } from "@lssm/lib.schema";
3
3
 
4
4
  //#region src/query/query.schema.ts
5
5
  /**
6
6
  * A data query.
7
7
  */
8
- const QueryModel = K5({
8
+ const QueryModel = defineSchemaModel({
9
9
  name: "QueryModel",
10
10
  fields: {
11
11
  id: {
12
- type: E5.String_unsecure(),
12
+ type: ScalarTypeEnum.String_unsecure(),
13
13
  isOptional: false
14
14
  },
15
15
  name: {
16
- type: E5.String_unsecure(),
16
+ type: ScalarTypeEnum.String_unsecure(),
17
17
  isOptional: false
18
18
  },
19
19
  description: {
20
- type: E5.String_unsecure(),
20
+ type: ScalarTypeEnum.String_unsecure(),
21
21
  isOptional: true
22
22
  },
23
23
  type: {
@@ -25,23 +25,23 @@ const QueryModel = K5({
25
25
  isOptional: false
26
26
  },
27
27
  definition: {
28
- type: E5.JSON(),
28
+ type: ScalarTypeEnum.JSON(),
29
29
  isOptional: false
30
30
  },
31
31
  sql: {
32
- type: E5.String_unsecure(),
32
+ type: ScalarTypeEnum.String_unsecure(),
33
33
  isOptional: true
34
34
  },
35
35
  cacheTtlSeconds: {
36
- type: E5.Int_unsecure(),
36
+ type: ScalarTypeEnum.Int_unsecure(),
37
37
  isOptional: false
38
38
  },
39
39
  isShared: {
40
- type: E5.Boolean(),
40
+ type: ScalarTypeEnum.Boolean(),
41
41
  isOptional: false
42
42
  },
43
43
  createdAt: {
44
- type: E5.DateTime(),
44
+ type: ScalarTypeEnum.DateTime(),
45
45
  isOptional: false
46
46
  }
47
47
  }
@@ -49,35 +49,35 @@ const QueryModel = K5({
49
49
  /**
50
50
  * Query execution result.
51
51
  */
52
- const QueryResultModel = K5({
52
+ const QueryResultModel = defineSchemaModel({
53
53
  name: "QueryResultModel",
54
54
  fields: {
55
55
  queryId: {
56
- type: E5.String_unsecure(),
56
+ type: ScalarTypeEnum.String_unsecure(),
57
57
  isOptional: false
58
58
  },
59
59
  data: {
60
- type: E5.JSON(),
60
+ type: ScalarTypeEnum.JSON(),
61
61
  isOptional: false
62
62
  },
63
63
  columns: {
64
- type: E5.JSON(),
64
+ type: ScalarTypeEnum.JSON(),
65
65
  isOptional: false
66
66
  },
67
67
  rowCount: {
68
- type: E5.Int_unsecure(),
68
+ type: ScalarTypeEnum.Int_unsecure(),
69
69
  isOptional: false
70
70
  },
71
71
  executionTimeMs: {
72
- type: E5.Int_unsecure(),
72
+ type: ScalarTypeEnum.Int_unsecure(),
73
73
  isOptional: false
74
74
  },
75
75
  cachedAt: {
76
- type: E5.DateTime(),
76
+ type: ScalarTypeEnum.DateTime(),
77
77
  isOptional: true
78
78
  },
79
79
  error: {
80
- type: E5.String_unsecure(),
80
+ type: ScalarTypeEnum.String_unsecure(),
81
81
  isOptional: true
82
82
  }
83
83
  }
@@ -85,15 +85,15 @@ const QueryResultModel = K5({
85
85
  /**
86
86
  * Input for creating a query.
87
87
  */
88
- const CreateQueryInputModel = K5({
88
+ const CreateQueryInputModel = defineSchemaModel({
89
89
  name: "CreateQueryInput",
90
90
  fields: {
91
91
  name: {
92
- type: E5.NonEmptyString(),
92
+ type: ScalarTypeEnum.NonEmptyString(),
93
93
  isOptional: false
94
94
  },
95
95
  description: {
96
- type: E5.String_unsecure(),
96
+ type: ScalarTypeEnum.String_unsecure(),
97
97
  isOptional: true
98
98
  },
99
99
  type: {
@@ -101,24 +101,24 @@ const CreateQueryInputModel = K5({
101
101
  isOptional: false
102
102
  },
103
103
  definition: {
104
- type: E5.JSON(),
104
+ type: ScalarTypeEnum.JSON(),
105
105
  isOptional: false
106
106
  },
107
107
  sql: {
108
- type: E5.String_unsecure(),
108
+ type: ScalarTypeEnum.String_unsecure(),
109
109
  isOptional: true
110
110
  },
111
111
  metricIds: {
112
- type: E5.String_unsecure(),
112
+ type: ScalarTypeEnum.String_unsecure(),
113
113
  isArray: true,
114
114
  isOptional: true
115
115
  },
116
116
  cacheTtlSeconds: {
117
- type: E5.Int_unsecure(),
117
+ type: ScalarTypeEnum.Int_unsecure(),
118
118
  isOptional: true
119
119
  },
120
120
  isShared: {
121
- type: E5.Boolean(),
121
+ type: ScalarTypeEnum.Boolean(),
122
122
  isOptional: true
123
123
  }
124
124
  }
@@ -126,27 +126,27 @@ const CreateQueryInputModel = K5({
126
126
  /**
127
127
  * Input for executing a query.
128
128
  */
129
- const ExecuteQueryInputModel = K5({
129
+ const ExecuteQueryInputModel = defineSchemaModel({
130
130
  name: "ExecuteQueryInput",
131
131
  fields: {
132
132
  queryId: {
133
- type: E5.String_unsecure(),
133
+ type: ScalarTypeEnum.String_unsecure(),
134
134
  isOptional: false
135
135
  },
136
136
  parameters: {
137
- type: E5.JSON(),
137
+ type: ScalarTypeEnum.JSON(),
138
138
  isOptional: true
139
139
  },
140
140
  dateRange: {
141
- type: E5.JSON(),
141
+ type: ScalarTypeEnum.JSON(),
142
142
  isOptional: true
143
143
  },
144
144
  filters: {
145
- type: E5.JSON(),
145
+ type: ScalarTypeEnum.JSON(),
146
146
  isOptional: true
147
147
  },
148
148
  forceRefresh: {
149
- type: E5.Boolean(),
149
+ type: ScalarTypeEnum.Boolean(),
150
150
  isOptional: true
151
151
  }
152
152
  }
@@ -1 +1 @@
1
- {"version":3,"file":"query.schema.js","names":["defineSchemaModel","ScalarTypeEnum"],"sources":["../../src/query/query.schema.ts"],"sourcesContent":["import { defineSchemaModel, ScalarTypeEnum } from '@lssm/lib.schema';\nimport { QueryTypeEnum } from './query.enum';\n\n/**\n * A data query.\n */\nexport const QueryModel = defineSchemaModel({\n name: 'QueryModel',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n type: { type: QueryTypeEnum, isOptional: false },\n definition: { type: ScalarTypeEnum.JSON(), isOptional: false },\n sql: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n cacheTtlSeconds: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n isShared: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * Query execution result.\n */\nexport const QueryResultModel = defineSchemaModel({\n name: 'QueryResultModel',\n fields: {\n queryId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n data: { type: ScalarTypeEnum.JSON(), isOptional: false },\n columns: { type: ScalarTypeEnum.JSON(), isOptional: false },\n rowCount: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n executionTimeMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n cachedAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },\n error: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n },\n});\n\n/**\n * Input for creating a query.\n */\nexport const CreateQueryInputModel = defineSchemaModel({\n name: 'CreateQueryInput',\n fields: {\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n type: { type: QueryTypeEnum, isOptional: false },\n definition: { type: ScalarTypeEnum.JSON(), isOptional: false },\n sql: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n metricIds: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n cacheTtlSeconds: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n isShared: { type: ScalarTypeEnum.Boolean(), isOptional: true },\n },\n});\n\n/**\n * Input for executing a query.\n */\nexport const ExecuteQueryInputModel = defineSchemaModel({\n name: 'ExecuteQueryInput',\n fields: {\n queryId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n parameters: { type: ScalarTypeEnum.JSON(), isOptional: true },\n dateRange: { type: ScalarTypeEnum.JSON(), isOptional: true },\n filters: { type: ScalarTypeEnum.JSON(), isOptional: true },\n forceRefresh: { type: ScalarTypeEnum.Boolean(), isOptional: true },\n },\n});\n"],"mappings":";;;;;;;AAMA,MAAa,aAAaA,GAAkB;CAC1C,MAAM;CACN,QAAQ;EACN,IAAI;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACjE,MAAM;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACnE,aAAa;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACzE,MAAM;GAAE,MAAM;GAAe,YAAY;GAAO;EAChD,YAAY;GAAE,MAAMA,GAAe,MAAM;GAAE,YAAY;GAAO;EAC9D,KAAK;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACjE,iBAAiB;GAAE,MAAMA,GAAe,cAAc;GAAE,YAAY;GAAO;EAC3E,UAAU;GAAE,MAAMA,GAAe,SAAS;GAAE,YAAY;GAAO;EAC/D,WAAW;GAAE,MAAMA,GAAe,UAAU;GAAE,YAAY;GAAO;EAClE;CACF,CAAC;;;;AAKF,MAAa,mBAAmBD,GAAkB;CAChD,MAAM;CACN,QAAQ;EACN,SAAS;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,MAAM;GAAE,MAAMA,GAAe,MAAM;GAAE,YAAY;GAAO;EACxD,SAAS;GAAE,MAAMA,GAAe,MAAM;GAAE,YAAY;GAAO;EAC3D,UAAU;GAAE,MAAMA,GAAe,cAAc;GAAE,YAAY;GAAO;EACpE,iBAAiB;GAAE,MAAMA,GAAe,cAAc;GAAE,YAAY;GAAO;EAC3E,UAAU;GAAE,MAAMA,GAAe,UAAU;GAAE,YAAY;GAAM;EAC/D,OAAO;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACpE;CACF,CAAC;;;;AAKF,MAAa,wBAAwBD,GAAkB;CACrD,MAAM;CACN,QAAQ;EACN,MAAM;GAAE,MAAMC,GAAe,gBAAgB;GAAE,YAAY;GAAO;EAClE,aAAa;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACzE,MAAM;GAAE,MAAM;GAAe,YAAY;GAAO;EAChD,YAAY;GAAE,MAAMA,GAAe,MAAM;GAAE,YAAY;GAAO;EAC9D,KAAK;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACjE,WAAW;GACT,MAAMA,GAAe,iBAAiB;GACtC,SAAS;GACT,YAAY;GACb;EACD,iBAAiB;GAAE,MAAMA,GAAe,cAAc;GAAE,YAAY;GAAM;EAC1E,UAAU;GAAE,MAAMA,GAAe,SAAS;GAAE,YAAY;GAAM;EAC/D;CACF,CAAC;;;;AAKF,MAAa,yBAAyBD,GAAkB;CACtD,MAAM;CACN,QAAQ;EACN,SAAS;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,YAAY;GAAE,MAAMA,GAAe,MAAM;GAAE,YAAY;GAAM;EAC7D,WAAW;GAAE,MAAMA,GAAe,MAAM;GAAE,YAAY;GAAM;EAC5D,SAAS;GAAE,MAAMA,GAAe,MAAM;GAAE,YAAY;GAAM;EAC1D,cAAc;GAAE,MAAMA,GAAe,SAAS;GAAE,YAAY;GAAM;EACnE;CACF,CAAC"}
1
+ {"version":3,"file":"query.schema.js","names":[],"sources":["../../src/query/query.schema.ts"],"sourcesContent":["import { defineSchemaModel, ScalarTypeEnum } from '@lssm/lib.schema';\nimport { QueryTypeEnum } from './query.enum';\n\n/**\n * A data query.\n */\nexport const QueryModel = defineSchemaModel({\n name: 'QueryModel',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n type: { type: QueryTypeEnum, isOptional: false },\n definition: { type: ScalarTypeEnum.JSON(), isOptional: false },\n sql: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n cacheTtlSeconds: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n isShared: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * Query execution result.\n */\nexport const QueryResultModel = defineSchemaModel({\n name: 'QueryResultModel',\n fields: {\n queryId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n data: { type: ScalarTypeEnum.JSON(), isOptional: false },\n columns: { type: ScalarTypeEnum.JSON(), isOptional: false },\n rowCount: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n executionTimeMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n cachedAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },\n error: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n },\n});\n\n/**\n * Input for creating a query.\n */\nexport const CreateQueryInputModel = defineSchemaModel({\n name: 'CreateQueryInput',\n fields: {\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n type: { type: QueryTypeEnum, isOptional: false },\n definition: { type: ScalarTypeEnum.JSON(), isOptional: false },\n sql: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n metricIds: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n cacheTtlSeconds: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n isShared: { type: ScalarTypeEnum.Boolean(), isOptional: true },\n },\n});\n\n/**\n * Input for executing a query.\n */\nexport const ExecuteQueryInputModel = defineSchemaModel({\n name: 'ExecuteQueryInput',\n fields: {\n queryId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n parameters: { type: ScalarTypeEnum.JSON(), isOptional: true },\n dateRange: { type: ScalarTypeEnum.JSON(), isOptional: true },\n filters: { type: ScalarTypeEnum.JSON(), isOptional: true },\n forceRefresh: { type: ScalarTypeEnum.Boolean(), isOptional: true },\n },\n});\n"],"mappings":";;;;;;;AAMA,MAAa,aAAa,kBAAkB;CAC1C,MAAM;CACN,QAAQ;EACN,IAAI;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACjE,MAAM;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACnE,aAAa;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACzE,MAAM;GAAE,MAAM;GAAe,YAAY;GAAO;EAChD,YAAY;GAAE,MAAM,eAAe,MAAM;GAAE,YAAY;GAAO;EAC9D,KAAK;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACjE,iBAAiB;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAO;EAC3E,UAAU;GAAE,MAAM,eAAe,SAAS;GAAE,YAAY;GAAO;EAC/D,WAAW;GAAE,MAAM,eAAe,UAAU;GAAE,YAAY;GAAO;EAClE;CACF,CAAC;;;;AAKF,MAAa,mBAAmB,kBAAkB;CAChD,MAAM;CACN,QAAQ;EACN,SAAS;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,MAAM;GAAE,MAAM,eAAe,MAAM;GAAE,YAAY;GAAO;EACxD,SAAS;GAAE,MAAM,eAAe,MAAM;GAAE,YAAY;GAAO;EAC3D,UAAU;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAO;EACpE,iBAAiB;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAO;EAC3E,UAAU;GAAE,MAAM,eAAe,UAAU;GAAE,YAAY;GAAM;EAC/D,OAAO;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACpE;CACF,CAAC;;;;AAKF,MAAa,wBAAwB,kBAAkB;CACrD,MAAM;CACN,QAAQ;EACN,MAAM;GAAE,MAAM,eAAe,gBAAgB;GAAE,YAAY;GAAO;EAClE,aAAa;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACzE,MAAM;GAAE,MAAM;GAAe,YAAY;GAAO;EAChD,YAAY;GAAE,MAAM,eAAe,MAAM;GAAE,YAAY;GAAO;EAC9D,KAAK;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACjE,WAAW;GACT,MAAM,eAAe,iBAAiB;GACtC,SAAS;GACT,YAAY;GACb;EACD,iBAAiB;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAM;EAC1E,UAAU;GAAE,MAAM,eAAe,SAAS;GAAE,YAAY;GAAM;EAC/D;CACF,CAAC;;;;AAKF,MAAa,yBAAyB,kBAAkB;CACtD,MAAM;CACN,QAAQ;EACN,SAAS;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,YAAY;GAAE,MAAM,eAAe,MAAM;GAAE,YAAY;GAAM;EAC7D,WAAW;GAAE,MAAM,eAAe,MAAM;GAAE,YAAY;GAAM;EAC5D,SAAS;GAAE,MAAM,eAAe,MAAM;GAAE,YAAY;GAAM;EAC1D,cAAc;GAAE,MAAM,eAAe,SAAS;GAAE,YAAY;GAAM;EACnE;CACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lssm/example.analytics-dashboard",
3
- "version": "0.0.0-canary-20251222120211",
3
+ "version": "0.0.0-canary-20251223012036",
4
4
  "description": "Analytics Dashboard example with widgets and query engine for ContractSpec",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -8,7 +8,7 @@
8
8
  "scripts": {
9
9
  "publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
10
10
  "publish:pkg:canary": "bun publish:pkg --tag canary",
11
- "build": "bun build:bundle && bun build:types",
11
+ "build": "bun build:types && bun build:bundle",
12
12
  "build:bundle": "tsdown",
13
13
  "build:types": "tsc --noEmit",
14
14
  "dev": "bun build:bundle --watch",
@@ -18,18 +18,18 @@
18
18
  "lint:check": "eslint src"
19
19
  },
20
20
  "dependencies": {
21
- "@lssm/lib.schema": "0.0.0-canary-20251222120211",
22
- "@lssm/lib.contracts": "0.0.0-canary-20251222120211",
23
- "@lssm/lib.bus": "0.0.0-canary-20251222120211",
24
- "@lssm/lib.identity-rbac": "0.0.0-canary-20251222120211",
25
- "@lssm/lib.metering": "0.0.0-canary-20251222120211",
26
- "@lssm/lib.jobs": "0.0.0-canary-20251222120211",
27
- "@lssm/module.audit-trail": "0.0.0-canary-20251222120211",
21
+ "@lssm/lib.schema": "0.0.0-canary-20251223012036",
22
+ "@lssm/lib.contracts": "0.0.0-canary-20251223012036",
23
+ "@lssm/lib.bus": "0.0.0-canary-20251223012036",
24
+ "@lssm/lib.identity-rbac": "0.0.0-canary-20251223012036",
25
+ "@lssm/lib.metering": "0.0.0-canary-20251223012036",
26
+ "@lssm/lib.jobs": "0.0.0-canary-20251223012036",
27
+ "@lssm/module.audit-trail": "0.0.0-canary-20251223012036",
28
28
  "zod": "^4.1.13"
29
29
  },
30
30
  "devDependencies": {
31
- "@lssm/tool.typescript": "0.0.0-canary-20251222120211",
32
- "@lssm/tool.tsdown": "0.0.0-canary-20251222120211",
31
+ "@lssm/tool.typescript": "0.0.0-canary-20251223012036",
32
+ "@lssm/tool.tsdown": "0.0.0-canary-20251223012036",
33
33
  "typescript": "^5.9.3"
34
34
  },
35
35
  "exports": {
@@ -1,6 +0,0 @@
1
- //#region ../../libs/contracts/dist/_virtual/rolldown_runtime.js
2
- var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
3
-
4
- //#endregion
5
- export { __esmMin };
6
- //# sourceMappingURL=rolldown_runtime.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rolldown_runtime.js","names":[],"sources":["../../../../../../../libs/contracts/dist/_virtual/rolldown_runtime.js"],"sourcesContent":["//#region rolldown:runtime\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);\nvar __export = (all, symbols) => {\n\tlet target = {};\n\tfor (var name in all) {\n\t\t__defProp(target, name, {\n\t\t\tget: all[name],\n\t\t\tenumerable: true\n\t\t});\n\t}\n\tif (symbols) {\n\t\t__defProp(target, Symbol.toStringTag, { value: \"Module\" });\n\t}\n\treturn target;\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {\n\t\t\tkey = keys[i];\n\t\t\tif (!__hasOwnProp.call(to, key) && key !== except) {\n\t\t\t\t__defProp(to, key, {\n\t\t\t\t\tget: ((k) => from[k]).bind(null, key),\n\t\t\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n\treturn to;\n};\nvar __toCommonJS = (mod) => __hasOwnProp.call(mod, \"module.exports\") ? mod[\"module.exports\"] : __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n//#endregion\nexport { __esmMin, __export, __toCommonJS };"],"mappings":";AAKA,IAAI,YAAY,IAAI,eAAe,OAAO,MAAM,GAAG,KAAK,EAAE,GAAG"}
@@ -1 +0,0 @@
1
- import "./openbanking.js";
@@ -1,89 +0,0 @@
1
- import { StabilityEnum } from "../ownership.js";
2
-
3
- //#region ../../libs/contracts/dist/capabilities/openbanking.js
4
- const OWNERS = ["platform.finance"];
5
- const TAGS = ["open-banking", "finance"];
6
- const openBankingAccountsReadCapability = {
7
- meta: {
8
- key: "openbanking.accounts.read",
9
- version: 1,
10
- kind: "integration",
11
- title: "Open Banking Accounts (Read)",
12
- description: "Provides read-only access to linked bank accounts, including account summaries and metadata.",
13
- domain: "finance",
14
- owners: [...OWNERS],
15
- tags: [...TAGS],
16
- stability: StabilityEnum.Experimental
17
- },
18
- provides: [
19
- {
20
- surface: "operation",
21
- name: "openbanking.accounts.list",
22
- version: 1,
23
- description: "List bank accounts linked to a Powens open banking connection."
24
- },
25
- {
26
- surface: "operation",
27
- name: "openbanking.accounts.get",
28
- version: 1,
29
- description: "Retrieve the canonical bank account record for a specific account."
30
- },
31
- {
32
- surface: "operation",
33
- name: "openbanking.accounts.sync",
34
- version: 1,
35
- description: "Trigger a refresh of bank account metadata from the open banking provider."
36
- }
37
- ]
38
- };
39
- const openBankingTransactionsReadCapability = {
40
- meta: {
41
- key: "openbanking.transactions.read",
42
- version: 1,
43
- kind: "integration",
44
- title: "Open Banking Transactions (Read)",
45
- description: "Enables retrieval of transaction history for linked bank accounts via open banking providers.",
46
- domain: "finance",
47
- owners: [...OWNERS],
48
- tags: [...TAGS, "transactions"],
49
- stability: StabilityEnum.Experimental
50
- },
51
- provides: [{
52
- surface: "operation",
53
- name: "openbanking.transactions.list",
54
- version: 1,
55
- description: "List transactions for a given bank account with optional date filtering."
56
- }, {
57
- surface: "operation",
58
- name: "openbanking.transactions.sync",
59
- version: 1,
60
- description: "Synchronise transactions from the open banking provider into the canonical ledger."
61
- }]
62
- };
63
- const openBankingBalancesReadCapability = {
64
- meta: {
65
- key: "openbanking.balances.read",
66
- version: 1,
67
- kind: "integration",
68
- title: "Open Banking Balances (Read)",
69
- description: "Allows querying of current and available balances for linked bank accounts via open banking providers.",
70
- domain: "finance",
71
- owners: [...OWNERS],
72
- tags: [...TAGS, "balances"],
73
- stability: StabilityEnum.Experimental
74
- },
75
- provides: [{
76
- surface: "operation",
77
- name: "openbanking.balances.get",
78
- version: 1,
79
- description: "Retrieve the latest known balances for a specified bank account."
80
- }, {
81
- surface: "operation",
82
- name: "openbanking.balances.refresh",
83
- version: 1,
84
- description: "Force a balance refresh from the open banking provider."
85
- }]
86
- };
87
-
88
- //#endregion
89
- //# sourceMappingURL=openbanking.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"openbanking.js","names":[],"sources":["../../../../../../../libs/contracts/dist/capabilities/openbanking.js"],"sourcesContent":["import { StabilityEnum } from \"../ownership.js\";\n\n//#region src/capabilities/openbanking.ts\nconst OWNERS = [\"platform.finance\"];\nconst TAGS = [\"open-banking\", \"finance\"];\nconst openBankingAccountsReadCapability = {\n\tmeta: {\n\t\tkey: \"openbanking.accounts.read\",\n\t\tversion: 1,\n\t\tkind: \"integration\",\n\t\ttitle: \"Open Banking Accounts (Read)\",\n\t\tdescription: \"Provides read-only access to linked bank accounts, including account summaries and metadata.\",\n\t\tdomain: \"finance\",\n\t\towners: [...OWNERS],\n\t\ttags: [...TAGS],\n\t\tstability: StabilityEnum.Experimental\n\t},\n\tprovides: [\n\t\t{\n\t\t\tsurface: \"operation\",\n\t\t\tname: \"openbanking.accounts.list\",\n\t\t\tversion: 1,\n\t\t\tdescription: \"List bank accounts linked to a Powens open banking connection.\"\n\t\t},\n\t\t{\n\t\t\tsurface: \"operation\",\n\t\t\tname: \"openbanking.accounts.get\",\n\t\t\tversion: 1,\n\t\t\tdescription: \"Retrieve the canonical bank account record for a specific account.\"\n\t\t},\n\t\t{\n\t\t\tsurface: \"operation\",\n\t\t\tname: \"openbanking.accounts.sync\",\n\t\t\tversion: 1,\n\t\t\tdescription: \"Trigger a refresh of bank account metadata from the open banking provider.\"\n\t\t}\n\t]\n};\nconst openBankingTransactionsReadCapability = {\n\tmeta: {\n\t\tkey: \"openbanking.transactions.read\",\n\t\tversion: 1,\n\t\tkind: \"integration\",\n\t\ttitle: \"Open Banking Transactions (Read)\",\n\t\tdescription: \"Enables retrieval of transaction history for linked bank accounts via open banking providers.\",\n\t\tdomain: \"finance\",\n\t\towners: [...OWNERS],\n\t\ttags: [...TAGS, \"transactions\"],\n\t\tstability: StabilityEnum.Experimental\n\t},\n\tprovides: [{\n\t\tsurface: \"operation\",\n\t\tname: \"openbanking.transactions.list\",\n\t\tversion: 1,\n\t\tdescription: \"List transactions for a given bank account with optional date filtering.\"\n\t}, {\n\t\tsurface: \"operation\",\n\t\tname: \"openbanking.transactions.sync\",\n\t\tversion: 1,\n\t\tdescription: \"Synchronise transactions from the open banking provider into the canonical ledger.\"\n\t}]\n};\nconst openBankingBalancesReadCapability = {\n\tmeta: {\n\t\tkey: \"openbanking.balances.read\",\n\t\tversion: 1,\n\t\tkind: \"integration\",\n\t\ttitle: \"Open Banking Balances (Read)\",\n\t\tdescription: \"Allows querying of current and available balances for linked bank accounts via open banking providers.\",\n\t\tdomain: \"finance\",\n\t\towners: [...OWNERS],\n\t\ttags: [...TAGS, \"balances\"],\n\t\tstability: StabilityEnum.Experimental\n\t},\n\tprovides: [{\n\t\tsurface: \"operation\",\n\t\tname: \"openbanking.balances.get\",\n\t\tversion: 1,\n\t\tdescription: \"Retrieve the latest known balances for a specified bank account.\"\n\t}, {\n\t\tsurface: \"operation\",\n\t\tname: \"openbanking.balances.refresh\",\n\t\tversion: 1,\n\t\tdescription: \"Force a balance refresh from the open banking provider.\"\n\t}]\n};\nfunction registerOpenBankingCapabilities(registry) {\n\treturn registry.register(openBankingAccountsReadCapability).register(openBankingTransactionsReadCapability).register(openBankingBalancesReadCapability);\n}\n\n//#endregion\nexport { openBankingAccountsReadCapability, openBankingBalancesReadCapability, openBankingTransactionsReadCapability, registerOpenBankingCapabilities };"],"mappings":";;;AAGA,MAAM,SAAS,CAAC,mBAAmB;AACnC,MAAM,OAAO,CAAC,gBAAgB,UAAU;AACxC,MAAM,oCAAoC;CACzC,MAAM;EACL,KAAK;EACL,SAAS;EACT,MAAM;EACN,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM,CAAC,GAAG,KAAK;EACf,WAAW,cAAc;EACzB;CACD,UAAU;EACT;GACC,SAAS;GACT,MAAM;GACN,SAAS;GACT,aAAa;GACb;EACD;GACC,SAAS;GACT,MAAM;GACN,SAAS;GACT,aAAa;GACb;EACD;GACC,SAAS;GACT,MAAM;GACN,SAAS;GACT,aAAa;GACb;EACD;CACD;AACD,MAAM,wCAAwC;CAC7C,MAAM;EACL,KAAK;EACL,SAAS;EACT,MAAM;EACN,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM,CAAC,GAAG,MAAM,eAAe;EAC/B,WAAW,cAAc;EACzB;CACD,UAAU,CAAC;EACV,SAAS;EACT,MAAM;EACN,SAAS;EACT,aAAa;EACb,EAAE;EACF,SAAS;EACT,MAAM;EACN,SAAS;EACT,aAAa;EACb,CAAC;CACF;AACD,MAAM,oCAAoC;CACzC,MAAM;EACL,KAAK;EACL,SAAS;EACT,MAAM;EACN,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM,CAAC,GAAG,MAAM,WAAW;EAC3B,WAAW,cAAc;EACzB;CACD,UAAU,CAAC;EACV,SAAS;EACT,MAAM;EACN,SAAS;EACT,aAAa;EACb,EAAE;EACF,SAAS;EACT,MAAM;EACN,SAAS;EACT,aAAa;EACb,CAAC;CACF"}
@@ -1,5 +0,0 @@
1
- 'use client';
2
-
3
- import "./react/feature-render.js";
4
- import "./react/form-render.js";
5
- import "./react/index.js";
@@ -1,3 +0,0 @@
1
- import "../../presentations/transform-engine.js";
2
- import "../../presentations/index.js";
3
- import "react";
@@ -1,5 +0,0 @@
1
- import "../../forms/forms.js";
2
- import "react";
3
- import "react-hook-form";
4
- import "@hookform/resolvers/zod";
5
- import "react/jsx-runtime";
@@ -1,4 +0,0 @@
1
- 'use client';
2
-
3
- import "./feature-render.js";
4
- import "./form-render.js";
@@ -1 +0,0 @@
1
- import { ContractRegistryFileSchema, ContractRegistryItemSchema, ContractRegistryItemTypeSchema } from "./schemas.js";
@@ -1,61 +0,0 @@
1
- import { StabilityEnum } from "../ownership.js";
2
- import z from "zod";
3
-
4
- //#region ../../libs/contracts/dist/contract-registry/schemas.js
5
- const ContractRegistryItemTypeSchema = z.enum([
6
- "contractspec:operation",
7
- "contractspec:event",
8
- "contractspec:presentation",
9
- "contractspec:form",
10
- "contractspec:feature",
11
- "contractspec:workflow",
12
- "contractspec:template",
13
- "contractspec:integration",
14
- "contractspec:data-view",
15
- "contractspec:migration",
16
- "contractspec:telemetry",
17
- "contractspec:experiment",
18
- "contractspec:app-config",
19
- "contractspec:knowledge"
20
- ]);
21
- const ContractRegistryFileSchema = z.object({
22
- path: z.string().min(1),
23
- type: z.string().min(1),
24
- content: z.string().optional()
25
- });
26
- const ContractRegistryItemSchema = z.object({
27
- name: z.string().min(1),
28
- type: ContractRegistryItemTypeSchema,
29
- version: z.number().int().nonnegative(),
30
- title: z.string().min(1),
31
- description: z.string().min(1),
32
- meta: z.object({
33
- stability: z.enum([
34
- StabilityEnum.Idea,
35
- StabilityEnum.InCreation,
36
- StabilityEnum.Experimental,
37
- StabilityEnum.Beta,
38
- StabilityEnum.Stable,
39
- StabilityEnum.Deprecated
40
- ]),
41
- owners: z.array(z.string().min(1)).default([]),
42
- tags: z.array(z.string().min(1)).default([])
43
- }),
44
- dependencies: z.array(z.string().min(1)).optional(),
45
- registryDependencies: z.array(z.string().min(1)).optional(),
46
- files: z.array(ContractRegistryFileSchema).min(1),
47
- schema: z.object({
48
- input: z.unknown().optional(),
49
- output: z.unknown().optional()
50
- }).optional()
51
- });
52
- const ContractRegistryManifestSchema = z.object({
53
- $schema: z.string().min(1).optional(),
54
- name: z.string().min(1),
55
- homepage: z.string().min(1).optional(),
56
- items: z.array(ContractRegistryItemSchema)
57
- });
58
-
59
- //#endregion
60
- export { ContractRegistryFileSchema, ContractRegistryItemSchema, ContractRegistryItemTypeSchema };
61
- //# sourceMappingURL=schemas.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schemas.js","names":[],"sources":["../../../../../../../libs/contracts/dist/contract-registry/schemas.js"],"sourcesContent":["import { StabilityEnum } from \"../ownership.js\";\nimport z from \"zod\";\n\n//#region src/contract-registry/schemas.ts\nconst ContractRegistryItemTypeValues = [\n\t\"contractspec:operation\",\n\t\"contractspec:event\",\n\t\"contractspec:presentation\",\n\t\"contractspec:form\",\n\t\"contractspec:feature\",\n\t\"contractspec:workflow\",\n\t\"contractspec:template\",\n\t\"contractspec:integration\",\n\t\"contractspec:data-view\",\n\t\"contractspec:migration\",\n\t\"contractspec:telemetry\",\n\t\"contractspec:experiment\",\n\t\"contractspec:app-config\",\n\t\"contractspec:knowledge\"\n];\nconst ContractRegistryItemTypeSchema = z.enum(ContractRegistryItemTypeValues);\nconst ContractRegistryFileSchema = z.object({\n\tpath: z.string().min(1),\n\ttype: z.string().min(1),\n\tcontent: z.string().optional()\n});\nconst ContractRegistryItemSchema = z.object({\n\tname: z.string().min(1),\n\ttype: ContractRegistryItemTypeSchema,\n\tversion: z.number().int().nonnegative(),\n\ttitle: z.string().min(1),\n\tdescription: z.string().min(1),\n\tmeta: z.object({\n\t\tstability: z.enum([\n\t\t\tStabilityEnum.Idea,\n\t\t\tStabilityEnum.InCreation,\n\t\t\tStabilityEnum.Experimental,\n\t\t\tStabilityEnum.Beta,\n\t\t\tStabilityEnum.Stable,\n\t\t\tStabilityEnum.Deprecated\n\t\t]),\n\t\towners: z.array(z.string().min(1)).default([]),\n\t\ttags: z.array(z.string().min(1)).default([])\n\t}),\n\tdependencies: z.array(z.string().min(1)).optional(),\n\tregistryDependencies: z.array(z.string().min(1)).optional(),\n\tfiles: z.array(ContractRegistryFileSchema).min(1),\n\tschema: z.object({\n\t\tinput: z.unknown().optional(),\n\t\toutput: z.unknown().optional()\n\t}).optional()\n});\nconst ContractRegistryManifestSchema = z.object({\n\t$schema: z.string().min(1).optional(),\n\tname: z.string().min(1),\n\thomepage: z.string().min(1).optional(),\n\titems: z.array(ContractRegistryItemSchema)\n});\n\n//#endregion\nexport { ContractRegistryFileSchema, ContractRegistryItemSchema, ContractRegistryItemTypeSchema, ContractRegistryManifestSchema };"],"mappings":";;;;AAoBA,MAAM,iCAAiC,EAAE,KAhBF;CACtC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,CAC4E;AAC7E,MAAM,6BAA6B,EAAE,OAAO;CAC3C,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE;CACvB,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE;CACvB,SAAS,EAAE,QAAQ,CAAC,UAAU;CAC9B,CAAC;AACF,MAAM,6BAA6B,EAAE,OAAO;CAC3C,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE;CACvB,MAAM;CACN,SAAS,EAAE,QAAQ,CAAC,KAAK,CAAC,aAAa;CACvC,OAAO,EAAE,QAAQ,CAAC,IAAI,EAAE;CACxB,aAAa,EAAE,QAAQ,CAAC,IAAI,EAAE;CAC9B,MAAM,EAAE,OAAO;EACd,WAAW,EAAE,KAAK;GACjB,cAAc;GACd,cAAc;GACd,cAAc;GACd,cAAc;GACd,cAAc;GACd,cAAc;GACd,CAAC;EACF,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;EAC9C,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;EAC5C,CAAC;CACF,cAAc,EAAE,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,UAAU;CACnD,sBAAsB,EAAE,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,UAAU;CAC3D,OAAO,EAAE,MAAM,2BAA2B,CAAC,IAAI,EAAE;CACjD,QAAQ,EAAE,OAAO;EAChB,OAAO,EAAE,SAAS,CAAC,UAAU;EAC7B,QAAQ,EAAE,SAAS,CAAC,UAAU;EAC9B,CAAC,CAAC,UAAU;CACb,CAAC;AACF,MAAM,iCAAiC,EAAE,OAAO;CAC/C,SAAS,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,UAAU;CACrC,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE;CACvB,UAAU,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,UAAU;CACtC,OAAO,EAAE,MAAM,2BAA2B;CAC1C,CAAC"}
@@ -1,7 +0,0 @@
1
- import { init_registry_utils } from "../registry-utils.js";
2
-
3
- //#region ../../libs/contracts/dist/data-views/data-views.js
4
- init_registry_utils();
5
-
6
- //#endregion
7
- //# sourceMappingURL=data-views.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data-views.js","names":[],"sources":["../../../../../../../libs/contracts/dist/data-views/data-views.js"],"sourcesContent":["import { filterBy, getUniqueTags, groupBy, init_registry_utils } from \"../registry-utils.js\";\n\n//#region src/data-views/data-views.ts\ninit_registry_utils();\nfunction keyOf(spec) {\n\treturn `${spec.meta.name}.v${spec.meta.version}`;\n}\nvar DataViewRegistry = class {\n\titems = /* @__PURE__ */ new Map();\n\tregister(spec) {\n\t\tconst key = keyOf(spec);\n\t\tif (this.items.has(key)) throw new Error(`Duplicate data view ${key}`);\n\t\tthis.items.set(key, spec);\n\t\treturn this;\n\t}\n\tlist() {\n\t\treturn [...this.items.values()];\n\t}\n\tget(name, version) {\n\t\tif (version != null) return this.items.get(`${name}.v${version}`);\n\t\tlet candidate;\n\t\tlet max = -Infinity;\n\t\tfor (const spec of this.items.values()) {\n\t\t\tif (spec.meta.name !== name) continue;\n\t\t\tif (spec.meta.version > max) {\n\t\t\t\tmax = spec.meta.version;\n\t\t\t\tcandidate = spec;\n\t\t\t}\n\t\t}\n\t\treturn candidate;\n\t}\n\t/** Filter data views by criteria. */\n\tfilter(criteria) {\n\t\treturn filterBy(this.list(), criteria);\n\t}\n\t/** List data views with specific tag. */\n\tlistByTag(tag) {\n\t\treturn this.list().filter((d) => d.meta.tags?.includes(tag));\n\t}\n\t/** List data views by owner. */\n\tlistByOwner(owner) {\n\t\treturn this.list().filter((d) => d.meta.owners?.includes(owner));\n\t}\n\t/** Group data views by key function. */\n\tgroupBy(keyFn) {\n\t\treturn groupBy(this.list(), keyFn);\n\t}\n\t/** Get unique tags from all data views. */\n\tgetUniqueTags() {\n\t\treturn getUniqueTags(this.list());\n\t}\n};\nfunction dataViewKey(spec) {\n\treturn keyOf(spec);\n}\n\n//#endregion\nexport { DataViewRegistry, dataViewKey };"],"mappings":";;;AAGA,qBAAqB"}
@@ -1,17 +0,0 @@
1
- import { registerDocBlocks } from "./registry.js";
2
-
3
- //#region ../../libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js
4
- const accessibility_wcag_compliance_specs_DocBlocks = [{
5
- id: "docs.accessibility_wcag_compliance_specs",
6
- title: "Accessibility & WCAG Compliance — **specs.md**",
7
- summary: "> **Goal:** Ship interfaces that are usable by everyone, by default. This spec sets non‑negotiable rules, checklists, and CI gates to meet **WCAG\xA02.2 AA** (aim for AAA where low‑cost), align with **EN\xA0301\xA0549** (EU), and keep parity on **web (Next.js)** and **mobile (Expo/React\xA0Native)**.",
8
- kind: "reference",
9
- visibility: "public",
10
- route: "/docs/accessibility_wcag_compliance_specs",
11
- tags: ["accessibility_wcag_compliance_specs"],
12
- body: "# Accessibility & WCAG Compliance — **specs.md**\n\n> **Goal:** Ship interfaces that are usable by everyone, by default. This spec sets non‑negotiable rules, checklists, and CI gates to meet **WCAG\xA02.2 AA** (aim for AAA where low‑cost), align with **EN\xA0301\xA0549** (EU), and keep parity on **web (Next.js)** and **mobile (Expo/React\xA0Native)**.\n\n---\n\n## 0) Scope & Principles\n\n- **Standards:** WCAG\xA02.2\xA0AA (incl. new 2.2 SCs: Focus Not Obscured, Focus Appearance, Target Size, Dragging Movements, Accessible Authentication, Redundant Entry). EN\xA0301\xA0549 compliance by conformance to WCAG.\n- **Principles:** Perceivable, Operable, Understandable, Robust (POUR).\n- **Rule of ARIA:** “No ARIA is better than bad ARIA.” Prefer native elements.\n- **Definition of Done (DoD):** No Critical/Major a11y issues in CI; keyboard complete; SR (screen reader) smoke test passed; contrasts pass; acceptance criteria below satisfied.\n- **Repo Alignment:** Web apps use **Radix Primitives + shadcn** wrappers centralized in `packages/lssm/libs/ui-kit-web`. Prefer those components over per‑app duplicates (`packages/*/apps/*/src/components/ui`). When missing, add to `ui-kit-web` first, then adopt app‑side.\n\n---\n\n## 1) Design Requirements (Design System & Tokens)\n\n**1.1 Color & Contrast**\n\n- Body text, icons essential to meaning: **≥\xA04.5:1**; large text (≥\xA018.66px regular / 14px bold): **≥\xA03:1**.\n- Interactive states (default/hover/active/disabled/focus) must maintain contrast **≥\xA03:1** against adjacent colors; text within components follows text ratios.\n- Provide light & dark themes with tokens that guarantee minimums. **Never rely solely on color** to convey meaning; pair with text, shape, or icon.\n\n**1.2 Focus Indicators (WCAG\xA02.4.11/12)**\n\n- Every interactive element has a **visible focus** with clear offset; indicator contrast **≥\xA03:1** vs adjacent colors and indicator **area ≥\xA02\xA0CSS\xA0px** thick.\n- Focus **must not be obscured** by sticky headers/footers or scroll containers.\n\n**1.3 Motion & Preferences**\n\n- Respect `prefers-reduced-motion`: suppress large parallax, auto‑animations; provide instant alternatives.\n- Avoid motion that could trigger vestibular issues; under PRM, use fade/scale under **150ms**.\n\n**1.4 Target Size (2.5.8)**\n\n- Hit areas **≥\xA024×24\xA0CSS\xA0px** (web) and **≥\xA044×44\xA0dp** (mobile) unless exempt.\n\n**1.5 Typography & Layout**\n\n- Support zoom to **400%** without loss of content/functionality; responsive reflow at **320\xA0CSS\xA0px** width.\n- Maintain clear heading hierarchy (h1…h6), one **h1** per view.\n\n- Repository baseline (Web): default body text uses Tailwind `text-lg` (≈18px). As of 2025‑09‑20, the repository bumped all Tailwind typography scale usages by +1 step (e.g., `text-sm`→`text-base`, `text-base`→`text-lg`, …, `text-8xl`→`text-9xl`). For long‑form content, default to `prose-lg`.\n- Do not use `text-xs` for body copy. Reserve `text-sm` only for non‑essential meta (timestamps, fine print) while ensuring contrast and touch targets remain compliant.\n- When increasing font size, ensure line height supports readability. Prefer Tailwind defaults or `leading-relaxed`/`leading-7` for body text where dense blocks appear.\n\n**1.6 Iconography & Imagery**\n\n- Decorative images: `alt=\"\"` or `aria-hidden=\"true\"`.\n- Informative images: concise, specific **alt**; complex charts require a **data table or long description**.\n\n---\n\n## 2) Content Requirements (UX Writing)\n\n- Links say **what happens** (avoid “click here”).\n- Buttons start with verbs; avoid ambiguous labels.\n- Form labels are **visible**; placeholders are **not labels**.\n- Error messages: human + programmatic association; avoid color‑only.\n- Authentication: allow **copy/paste**, password managers, and avoid cognitive tests alone (**3.3.7/3.3.8/3.3.9**).\n- Avoid CAPTCHAs that block users; if unavoidable, provide **multiple alternatives** (logic-free).\n\n---\n\n## 3) Engineering Requirements (Web — Next.js/React)\n\n> Use and extend `packages/lssm/libs/ui-kit-web` as the default UI surface. It wraps **Radix** primitives with sensible a11y defaults (focus rings, roles, keyboard, ARIA binding). When a gap exists, add it to `ui-kit-web` first.\n\n**3.1 Semantics & Landmarks**\n\n- Use native elements: `<button>`, `<a href>`, `<label for>`, `<fieldset>`, `<legend>`, `<table>`, etc.\n- Landmarks per page: `header`, `nav`, `main`, `aside`, `footer`. Provide a **Skip to main content** link.\n- Provide a **Route Announcer** (`aria-live=\"polite\"`) and move focus to page **h1** after navigation.\n\n**3.2 Keyboard**\n\n- All functionality available with keyboard alone. Tab order follows DOM/visual order; **no keyboard traps**.\n- Common bindings:\n - Space/Enter → activate button; Enter on link;\n - Esc closes dialogs/menus;\n - Arrow keys for lists/menus/tablists with **roving tabindex**.\n\n**3.3 Focus Management**\n\n- On route change (Next.js), move focus to the page `<h1>` or container and announce via a live region.\n- Dialogs/menus: **trap focus** inside; return focus to invoking control on close.\n- Don’t steal focus except after explicit user action.\n\n**3.4 Forms**\n\n- Each input has a `<label>` or `aria-label`. Group related inputs with `<fieldset><legend>`.\n- Associate errors via `aria-describedby` or inline IDs; announce with `role=\"alert\"` (assertive only for critical).\n- Provide **autocomplete** tokens for known fields; show **inline validation** and do not block on **onBlur** alone.\n\n**3.5 ARIA Usage**\n\n- Only when needed; match patterns (dialog, menu, combobox, tablist, listbox) per ARIA Authoring Practices.\n- Ensure **name/role/value** are programmatically determinable.\n\n**3.6 Media**\n\n- Videos: **captions**; provide **transcripts** for audio; audio descriptions for essential visual info.\n- No auto‑playing audio. Auto‑playing video must be muted and pausable; provide controls.\n\n**3.7 Tables & Data**\n\n- Use `<th scope>` for headers; captions via `<caption>`; announce sorting via `aria-sort`.\n- Provide CSV/JSON export where charts are primary.\n\n**3.8 Performance & Robustness**\n\n- Avoid content shifts that move focus; reserve space or use skeletons.\n- Maintain accessible names through hydration/SSR; avoid `dangerouslySetInnerHTML` where possible.\n\n**3.9 Next.js specifics**\n\n- Use `next/link` for navigation; ensure links are **links**, not buttons.\n- `next/image` must include **alt** (empty if decorative).\n- Announce route changes with a **global live region** and shift focus to the new view.\n\n**3.10 Accessibility library integration**\n\n- Import `@lssm/lib.accessibility` at app root. It auto-imports its `styles.css` via the package entry; ensure bundlers keep CSS side effects. If your app tree-shakes CSS, explicitly import the stylesheet once in your root layout:\n\n```tsx\n// app/layout.tsx\nimport '@lssm/lib.accessibility'; // includes tokens and provider exports\n// or if needed: import '@lssm/lib.accessibility/src/styles.css';\n```\n\n- Wrap the app with `AccessibilityProvider` and include an element with `id=\"main\"` for the skip link target.\n\n---\n\n## 3b) lssm/ui-kit-web — Component Patterns & Defaults\n\n> Source: `packages/lssm/libs/ui-kit-web/ui/*`\n\n- **Button/Input/Textarea**: Built‑in `focus-visible` rings; ensure visible labels via `FormLabel` or `aria-label`.\n- **Form** (`form.tsx`): `FormControl` wires `aria-invalid` and `aria-describedby` to `FormMessage` and `FormDescription`. Prefer `FormMessage` for inline errors. Add `role=\"alert\"` only for critical.\n- **Dialog/Sheet/Dropdown**: Use Radix wrappers for focus‑trap and return‑focus. Provide `DialogTitle` + `DialogDescription` for name/description.\n- **Select/Combobox**: Prefer `SelectTrigger` with visible label; for icon‑only triggers, supply `aria-label`. Document examples in each app.\n- **Tabs**: Use `TabsList`, `TabsTrigger`, `TabsContent`; names are programmatically determinable.\n- **Toast/Toaster**: Prefer non‑blocking announcements; map critical to assertive region; include action buttons with clear labels.\n- **Table**: Use `TableCaption`; ensure `TableHead` cells use proper `scope`. Provide `aria-sort` on sortable headers.\n- **Utilities to add (repo action)**:\n - `SkipLink` component and pattern in layouts.\n - `RouteAnnouncer` (`aria-live=\"polite\"`) and **FocusOnRouteChange** helper.\n - `VisuallyHidden` wrapper (Radix visually-hidden or minimal utility).\n - `useReducedMotion` helper; honor in animated components.\n - Touch‑size variants (≥44×44) for interactive atoms.\n\n---\n\n## 4) Engineering Requirements (Mobile — Expo/React\xA0Native)\n\n- Set `accessibilityLabel`, `accessibilityHint`, and `accessibilityRole` on touchables.\n- Ensure **hit slop** / min size **≥\xA044×44\xA0dp**.\n- Support Dynamic Type / font scaling; no clipped text at **200%**.\n- Respect **Invert Colors** and **Reduce Motion**; avoid flashing.\n- Group related items with `accessibilityElements` ordering; hide decoration with `accessible={false}` or `importantForAccessibility=\"no-hide-descendants\"` when appropriate.\n- Test with **VoiceOver (iOS)** and **TalkBack (Android)**.\n\n---\n\n## 5) Component Patterns (Acceptance Rules)\n\n**Buttons & Links**\n\n- Use `<button>` for actions, `<a href>` for navigation. Provide disabled states that are perceivable beyond color.\n\n**Navigation**\n\n- Provide **Skip link**. One primary nav landmark. Indicate current page (`aria-current=\"page\"`).\n\n**Menus/Combobox/Autocomplete**\n\n- Follow ARIA patterns: focus moves into list; `aria-expanded`, `aria-controls`, `aria-activedescendant` when applicable; Esc closes; typing filters.\n\n**Modals/Dialogs**\n\n- `role=\"dialog\"` or `alertdialog` with **label**; focus trapped; background inert; Esc closes; return focus to trigger.\n\n**Tabs**\n\n- `role=\"tablist\"`; tabs are in the tab order; arrow keys switch focus; content is `role=\"tabpanel\"` with `aria-labelledby`.\n\n**Toasts/Notifications**\n\n- Non-critical: `aria-live=\"polite\"`; critical: `role=\"alert\"` sparingly.\n\n**Infinite Scroll / “Load More”**\n\n- Provide **Load more** control; announce new content to SR; preserve keyboard position.\n\n**Drag & Drop (2.5.7)**\n\n- Provide **non‑drag** alternative (e.g., move up/down buttons).\n\n**Charts & Maps**\n\n- Provide **table alternative** or textual summary; keyboard access to datapoints where interactive.\n\n---\n\n## 6) Testing & CI (Blocking Gates)\n\n**Static & Unit**\n\n- `eslint-plugin-jsx-a11y` — error on violations.\n- `jest-axe` — unit tests for components.\n\n**Automated Integration**\n\n- `axe-core` via Playwright or Cypress on critical flows.\n- `pa11y-ci` on key routes; threshold: **0 Critical / 0 Serious** to merge.\n- Lighthouse CI a11y score **≥\xA095** on target pages.\n\n**Manual QA (per release)**\n\n- **Keyboard patrol:** navigate primary flows without mouse.\n- **Screen reader smoke:** NVDA (Windows) or VoiceOver (macOS/iOS) across login, navigation, forms, dialogs.\n- **Zoom & Reflow:** 200–400% & 320\xA0px width.\n- **Color/Contrast check:** tokens in both themes.\n\n**Reporting**\n\n- A11y issues labeled: `a11y-blocker`, `a11y-bug`, `a11y-enhancement` with WCAG ref.\n\n---\n\n## 7) Repository‑Specific Adoption Plan\n\n- Centralize UI usage on `packages/lssm/libs/ui-kit-web` and de‑duplicate per‑app `components/ui` where feasible.\n- Introduce `SkipLink`, `RouteAnnouncer`, `FocusOnRouteChange`, and `VisuallyHidden` in `ui-kit-web`. Adopt in app layouts (`app/layout.tsx`) first.\n- Add `useReducedMotion` and wire into animated components (e.g., `drawer`, `tooltip`, `carousel`).\n- Add touch‑size variants to `Button`, `IconButton`, `TabsTrigger`, toggles.\n- Document Select label patterns and error association in Forms.\n\n---\n\n## 8) Code Snippets\n\n**Skip Link**\n\n```html\n<a\n class=\"sr-only focus:not-sr-only focus-visible:outline focus-visible:ring-4 focus-visible:ring-offset-2\"\n href=\"#main\"\n >Skip to main content</a\n>\n<main id=\"main\">…</main>\n```\n\n**Dialog (Radix + shadcn/ui) — essentials**\n\n```tsx\n// Ensure label, description, focus trap, and return focus on close remain intact\n<Dialog>\n <DialogTrigger asChild>\n <button aria-haspopup=\"dialog\">Open settings</button>\n </DialogTrigger>\n <DialogContent aria-describedby=\"settings-desc\">\n <DialogTitle>Settings</DialogTitle>\n <p id=\"settings-desc\">Update your preferences.</p>\n <DialogClose asChild>\n <button>Close</button>\n </DialogClose>\n </DialogContent>\n</Dialog>\n```\n\n**Form error association**\n\n```tsx\n<label htmlFor=\"email\">Email</label>\n<input id=\"email\" name=\"email\" type=\"email\" aria-describedby=\"email-err\" />\n<p id=\"email-err\" role=\"alert\">Enter a valid email.</p>\n```\n\n**Route change announcement (Next.js)**\n\n```tsx\n// Add once at app root\n<div\n aria-live=\"polite\"\n aria-atomic=\"true\"\n id=\"route-announcer\"\n className=\"sr-only\"\n/>\n```\n\n---\n\n## 9) Exceptions & Waivers\n\n- If a criterion cannot be met, file an issue with: context, attempted alternatives, WCAG reference, impact assessment, and a remediation date. **Temporary waivers only.**\n\n---\n\n## 10) Ownership\n\n- **Design:** maintains token contrast, component specs.\n- **Engineering:** enforces CI gates, implements patterns.\n- **QA:** runs manual checks per release.\n- **PM:** blocks release if AA not met on user‑visible flows.\n\n---\n\n## 11) References (internalize; no external dependency at runtime)\n\n- WCAG\xA02.2 (AA), EN\xA0301\xA0549. ARIA Authoring Practices. Platform HIG (Apple, Material).\n- `packages/lssm/libs/ui-kit-web` as the canonical UI source for web.\n\n> **Bottom line:** Shipping means **accessible by default**. We don’t trade a11y for speed; we bake it into speed.\n\n---\n\n## 12) Adoption Status (2025-09-23)\n\n- web-artisan: AccessibilityProvider integrated; sr-only/forced-colors applied; 44x44 targets; forms announce errors; jest-axe and cypress-axe in place.\n- web-strit: AccessibilityProvider integrated; forced-colors, sr-only; forms announce errors; 44x44 targets; contrast tokens and text-scale wired; jest-axe and cypress-axe in place.\n- web-coliving: AccessibilityProvider integrated; forced-colors and focus visibility added; text-scale wired; landing pages converted to `Section`/stacks with text-lg defaults; CTA capture standardized; ESLint guard for text-xs in main content; jest-axe and cypress-axe in place. Next: audit icon-only controls and ensure 44x44 targets; add role=\"alert\" where critical.\n\n> CI gates: run eslint a11y, jest-axe on components, and cypress-axe on critical flows per app.\n\n---\n\n## 13) CI Hardening & Visual QA\n\n- Linting: Run eslint with jsx-a11y rules across all web apps; block on violations.\n- Unit: Run jest-axe for ui-kit-web and app-level components.\n- Integration: cypress-axe on key flows (auth, forms, dialogs, tables).\n- Synthetic scans: pa11y-ci on critical pages (0 Critical/Serious policy).\n- Performance/A11y audit: Lighthouse CI with a11y score >= 95 on target routes.\n- Artifacts: Upload pa11y and Lighthouse reports per PR; annotate failures.\n\n### Recent additions (2025-09-26)\n\n- AutocompleteInput (groceries): Upgraded to ARIA combobox pattern with `aria-controls`, `aria-activedescendant`, `Escape`/`Tab` handling, and labelled listbox.\n- Cypress a11y tests added for furniture and incidents modules on `/modules` and operators flows; checks run axe with critical/serious impacts.\n\n## 14) Accessibility Telemetry (PostHog)\n\n- Events (anonymized): a11y_pref_changed (text_scale, contrast_mode, reduce_motion), a11y_panel_opened.\n- Properties: app, route, previous_value, new_value, timestamp.\n- Dashboards: Adoption over time, per app/route; correlation with reduced bounce on forms.\n- Privacy: No PII; aggregate only.\n"
13
- }];
14
- registerDocBlocks(accessibility_wcag_compliance_specs_DocBlocks);
15
-
16
- //#endregion
17
- //# sourceMappingURL=accessibility_wcag_compliance_specs.docblock.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"accessibility_wcag_compliance_specs.docblock.js","names":[],"sources":["../../../../../../../libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js"],"sourcesContent":["import { registerDocBlocks } from \"./registry.js\";\n\n//#region src/docs/accessibility_wcag_compliance_specs.docblock.ts\nconst accessibility_wcag_compliance_specs_DocBlocks = [{\n\tid: \"docs.accessibility_wcag_compliance_specs\",\n\ttitle: \"Accessibility & WCAG Compliance — **specs.md**\",\n\tsummary: \"> **Goal:** Ship interfaces that are usable by everyone, by default. This spec sets non‑negotiable rules, checklists, and CI gates to meet **WCAG\\xA02.2 AA** (aim for AAA where low‑cost), align with **EN\\xA0301\\xA0549** (EU), and keep parity on **web (Next.js)** and **mobile (Expo/React\\xA0Native)**.\",\n\tkind: \"reference\",\n\tvisibility: \"public\",\n\troute: \"/docs/accessibility_wcag_compliance_specs\",\n\ttags: [\"accessibility_wcag_compliance_specs\"],\n\tbody: \"# Accessibility & WCAG Compliance — **specs.md**\\n\\n> **Goal:** Ship interfaces that are usable by everyone, by default. This spec sets non‑negotiable rules, checklists, and CI gates to meet **WCAG\\xA02.2 AA** (aim for AAA where low‑cost), align with **EN\\xA0301\\xA0549** (EU), and keep parity on **web (Next.js)** and **mobile (Expo/React\\xA0Native)**.\\n\\n---\\n\\n## 0) Scope & Principles\\n\\n- **Standards:** WCAG\\xA02.2\\xA0AA (incl. new 2.2 SCs: Focus Not Obscured, Focus Appearance, Target Size, Dragging Movements, Accessible Authentication, Redundant Entry). EN\\xA0301\\xA0549 compliance by conformance to WCAG.\\n- **Principles:** Perceivable, Operable, Understandable, Robust (POUR).\\n- **Rule of ARIA:** “No ARIA is better than bad ARIA.” Prefer native elements.\\n- **Definition of Done (DoD):** No Critical/Major a11y issues in CI; keyboard complete; SR (screen reader) smoke test passed; contrasts pass; acceptance criteria below satisfied.\\n- **Repo Alignment:** Web apps use **Radix Primitives + shadcn** wrappers centralized in `packages/lssm/libs/ui-kit-web`. Prefer those components over per‑app duplicates (`packages/*/apps/*/src/components/ui`). When missing, add to `ui-kit-web` first, then adopt app‑side.\\n\\n---\\n\\n## 1) Design Requirements (Design System & Tokens)\\n\\n**1.1 Color & Contrast**\\n\\n- Body text, icons essential to meaning: **≥\\xA04.5:1**; large text (≥\\xA018.66px regular / 14px bold): **≥\\xA03:1**.\\n- Interactive states (default/hover/active/disabled/focus) must maintain contrast **≥\\xA03:1** against adjacent colors; text within components follows text ratios.\\n- Provide light & dark themes with tokens that guarantee minimums. **Never rely solely on color** to convey meaning; pair with text, shape, or icon.\\n\\n**1.2 Focus Indicators (WCAG\\xA02.4.11/12)**\\n\\n- Every interactive element has a **visible focus** with clear offset; indicator contrast **≥\\xA03:1** vs adjacent colors and indicator **area ≥\\xA02\\xA0CSS\\xA0px** thick.\\n- Focus **must not be obscured** by sticky headers/footers or scroll containers.\\n\\n**1.3 Motion & Preferences**\\n\\n- Respect `prefers-reduced-motion`: suppress large parallax, auto‑animations; provide instant alternatives.\\n- Avoid motion that could trigger vestibular issues; under PRM, use fade/scale under **150ms**.\\n\\n**1.4 Target Size (2.5.8)**\\n\\n- Hit areas **≥\\xA024×24\\xA0CSS\\xA0px** (web) and **≥\\xA044×44\\xA0dp** (mobile) unless exempt.\\n\\n**1.5 Typography & Layout**\\n\\n- Support zoom to **400%** without loss of content/functionality; responsive reflow at **320\\xA0CSS\\xA0px** width.\\n- Maintain clear heading hierarchy (h1…h6), one **h1** per view.\\n\\n- Repository baseline (Web): default body text uses Tailwind `text-lg` (≈18px). As of 2025‑09‑20, the repository bumped all Tailwind typography scale usages by +1 step (e.g., `text-sm`→`text-base`, `text-base`→`text-lg`, …, `text-8xl`→`text-9xl`). For long‑form content, default to `prose-lg`.\\n- Do not use `text-xs` for body copy. Reserve `text-sm` only for non‑essential meta (timestamps, fine print) while ensuring contrast and touch targets remain compliant.\\n- When increasing font size, ensure line height supports readability. Prefer Tailwind defaults or `leading-relaxed`/`leading-7` for body text where dense blocks appear.\\n\\n**1.6 Iconography & Imagery**\\n\\n- Decorative images: `alt=\\\"\\\"` or `aria-hidden=\\\"true\\\"`.\\n- Informative images: concise, specific **alt**; complex charts require a **data table or long description**.\\n\\n---\\n\\n## 2) Content Requirements (UX Writing)\\n\\n- Links say **what happens** (avoid “click here”).\\n- Buttons start with verbs; avoid ambiguous labels.\\n- Form labels are **visible**; placeholders are **not labels**.\\n- Error messages: human + programmatic association; avoid color‑only.\\n- Authentication: allow **copy/paste**, password managers, and avoid cognitive tests alone (**3.3.7/3.3.8/3.3.9**).\\n- Avoid CAPTCHAs that block users; if unavoidable, provide **multiple alternatives** (logic-free).\\n\\n---\\n\\n## 3) Engineering Requirements (Web — Next.js/React)\\n\\n> Use and extend `packages/lssm/libs/ui-kit-web` as the default UI surface. It wraps **Radix** primitives with sensible a11y defaults (focus rings, roles, keyboard, ARIA binding). When a gap exists, add it to `ui-kit-web` first.\\n\\n**3.1 Semantics & Landmarks**\\n\\n- Use native elements: `<button>`, `<a href>`, `<label for>`, `<fieldset>`, `<legend>`, `<table>`, etc.\\n- Landmarks per page: `header`, `nav`, `main`, `aside`, `footer`. Provide a **Skip to main content** link.\\n- Provide a **Route Announcer** (`aria-live=\\\"polite\\\"`) and move focus to page **h1** after navigation.\\n\\n**3.2 Keyboard**\\n\\n- All functionality available with keyboard alone. Tab order follows DOM/visual order; **no keyboard traps**.\\n- Common bindings:\\n - Space/Enter → activate button; Enter on link;\\n - Esc closes dialogs/menus;\\n - Arrow keys for lists/menus/tablists with **roving tabindex**.\\n\\n**3.3 Focus Management**\\n\\n- On route change (Next.js), move focus to the page `<h1>` or container and announce via a live region.\\n- Dialogs/menus: **trap focus** inside; return focus to invoking control on close.\\n- Don’t steal focus except after explicit user action.\\n\\n**3.4 Forms**\\n\\n- Each input has a `<label>` or `aria-label`. Group related inputs with `<fieldset><legend>`.\\n- Associate errors via `aria-describedby` or inline IDs; announce with `role=\\\"alert\\\"` (assertive only for critical).\\n- Provide **autocomplete** tokens for known fields; show **inline validation** and do not block on **onBlur** alone.\\n\\n**3.5 ARIA Usage**\\n\\n- Only when needed; match patterns (dialog, menu, combobox, tablist, listbox) per ARIA Authoring Practices.\\n- Ensure **name/role/value** are programmatically determinable.\\n\\n**3.6 Media**\\n\\n- Videos: **captions**; provide **transcripts** for audio; audio descriptions for essential visual info.\\n- No auto‑playing audio. Auto‑playing video must be muted and pausable; provide controls.\\n\\n**3.7 Tables & Data**\\n\\n- Use `<th scope>` for headers; captions via `<caption>`; announce sorting via `aria-sort`.\\n- Provide CSV/JSON export where charts are primary.\\n\\n**3.8 Performance & Robustness**\\n\\n- Avoid content shifts that move focus; reserve space or use skeletons.\\n- Maintain accessible names through hydration/SSR; avoid `dangerouslySetInnerHTML` where possible.\\n\\n**3.9 Next.js specifics**\\n\\n- Use `next/link` for navigation; ensure links are **links**, not buttons.\\n- `next/image` must include **alt** (empty if decorative).\\n- Announce route changes with a **global live region** and shift focus to the new view.\\n\\n**3.10 Accessibility library integration**\\n\\n- Import `@lssm/lib.accessibility` at app root. It auto-imports its `styles.css` via the package entry; ensure bundlers keep CSS side effects. If your app tree-shakes CSS, explicitly import the stylesheet once in your root layout:\\n\\n```tsx\\n// app/layout.tsx\\nimport '@lssm/lib.accessibility'; // includes tokens and provider exports\\n// or if needed: import '@lssm/lib.accessibility/src/styles.css';\\n```\\n\\n- Wrap the app with `AccessibilityProvider` and include an element with `id=\\\"main\\\"` for the skip link target.\\n\\n---\\n\\n## 3b) lssm/ui-kit-web — Component Patterns & Defaults\\n\\n> Source: `packages/lssm/libs/ui-kit-web/ui/*`\\n\\n- **Button/Input/Textarea**: Built‑in `focus-visible` rings; ensure visible labels via `FormLabel` or `aria-label`.\\n- **Form** (`form.tsx`): `FormControl` wires `aria-invalid` and `aria-describedby` to `FormMessage` and `FormDescription`. Prefer `FormMessage` for inline errors. Add `role=\\\"alert\\\"` only for critical.\\n- **Dialog/Sheet/Dropdown**: Use Radix wrappers for focus‑trap and return‑focus. Provide `DialogTitle` + `DialogDescription` for name/description.\\n- **Select/Combobox**: Prefer `SelectTrigger` with visible label; for icon‑only triggers, supply `aria-label`. Document examples in each app.\\n- **Tabs**: Use `TabsList`, `TabsTrigger`, `TabsContent`; names are programmatically determinable.\\n- **Toast/Toaster**: Prefer non‑blocking announcements; map critical to assertive region; include action buttons with clear labels.\\n- **Table**: Use `TableCaption`; ensure `TableHead` cells use proper `scope`. Provide `aria-sort` on sortable headers.\\n- **Utilities to add (repo action)**:\\n - `SkipLink` component and pattern in layouts.\\n - `RouteAnnouncer` (`aria-live=\\\"polite\\\"`) and **FocusOnRouteChange** helper.\\n - `VisuallyHidden` wrapper (Radix visually-hidden or minimal utility).\\n - `useReducedMotion` helper; honor in animated components.\\n - Touch‑size variants (≥44×44) for interactive atoms.\\n\\n---\\n\\n## 4) Engineering Requirements (Mobile — Expo/React\\xA0Native)\\n\\n- Set `accessibilityLabel`, `accessibilityHint`, and `accessibilityRole` on touchables.\\n- Ensure **hit slop** / min size **≥\\xA044×44\\xA0dp**.\\n- Support Dynamic Type / font scaling; no clipped text at **200%**.\\n- Respect **Invert Colors** and **Reduce Motion**; avoid flashing.\\n- Group related items with `accessibilityElements` ordering; hide decoration with `accessible={false}` or `importantForAccessibility=\\\"no-hide-descendants\\\"` when appropriate.\\n- Test with **VoiceOver (iOS)** and **TalkBack (Android)**.\\n\\n---\\n\\n## 5) Component Patterns (Acceptance Rules)\\n\\n**Buttons & Links**\\n\\n- Use `<button>` for actions, `<a href>` for navigation. Provide disabled states that are perceivable beyond color.\\n\\n**Navigation**\\n\\n- Provide **Skip link**. One primary nav landmark. Indicate current page (`aria-current=\\\"page\\\"`).\\n\\n**Menus/Combobox/Autocomplete**\\n\\n- Follow ARIA patterns: focus moves into list; `aria-expanded`, `aria-controls`, `aria-activedescendant` when applicable; Esc closes; typing filters.\\n\\n**Modals/Dialogs**\\n\\n- `role=\\\"dialog\\\"` or `alertdialog` with **label**; focus trapped; background inert; Esc closes; return focus to trigger.\\n\\n**Tabs**\\n\\n- `role=\\\"tablist\\\"`; tabs are in the tab order; arrow keys switch focus; content is `role=\\\"tabpanel\\\"` with `aria-labelledby`.\\n\\n**Toasts/Notifications**\\n\\n- Non-critical: `aria-live=\\\"polite\\\"`; critical: `role=\\\"alert\\\"` sparingly.\\n\\n**Infinite Scroll / “Load More”**\\n\\n- Provide **Load more** control; announce new content to SR; preserve keyboard position.\\n\\n**Drag & Drop (2.5.7)**\\n\\n- Provide **non‑drag** alternative (e.g., move up/down buttons).\\n\\n**Charts & Maps**\\n\\n- Provide **table alternative** or textual summary; keyboard access to datapoints where interactive.\\n\\n---\\n\\n## 6) Testing & CI (Blocking Gates)\\n\\n**Static & Unit**\\n\\n- `eslint-plugin-jsx-a11y` — error on violations.\\n- `jest-axe` — unit tests for components.\\n\\n**Automated Integration**\\n\\n- `axe-core` via Playwright or Cypress on critical flows.\\n- `pa11y-ci` on key routes; threshold: **0 Critical / 0 Serious** to merge.\\n- Lighthouse CI a11y score **≥\\xA095** on target pages.\\n\\n**Manual QA (per release)**\\n\\n- **Keyboard patrol:** navigate primary flows without mouse.\\n- **Screen reader smoke:** NVDA (Windows) or VoiceOver (macOS/iOS) across login, navigation, forms, dialogs.\\n- **Zoom & Reflow:** 200–400% & 320\\xA0px width.\\n- **Color/Contrast check:** tokens in both themes.\\n\\n**Reporting**\\n\\n- A11y issues labeled: `a11y-blocker`, `a11y-bug`, `a11y-enhancement` with WCAG ref.\\n\\n---\\n\\n## 7) Repository‑Specific Adoption Plan\\n\\n- Centralize UI usage on `packages/lssm/libs/ui-kit-web` and de‑duplicate per‑app `components/ui` where feasible.\\n- Introduce `SkipLink`, `RouteAnnouncer`, `FocusOnRouteChange`, and `VisuallyHidden` in `ui-kit-web`. Adopt in app layouts (`app/layout.tsx`) first.\\n- Add `useReducedMotion` and wire into animated components (e.g., `drawer`, `tooltip`, `carousel`).\\n- Add touch‑size variants to `Button`, `IconButton`, `TabsTrigger`, toggles.\\n- Document Select label patterns and error association in Forms.\\n\\n---\\n\\n## 8) Code Snippets\\n\\n**Skip Link**\\n\\n```html\\n<a\\n class=\\\"sr-only focus:not-sr-only focus-visible:outline focus-visible:ring-4 focus-visible:ring-offset-2\\\"\\n href=\\\"#main\\\"\\n >Skip to main content</a\\n>\\n<main id=\\\"main\\\">…</main>\\n```\\n\\n**Dialog (Radix + shadcn/ui) — essentials**\\n\\n```tsx\\n// Ensure label, description, focus trap, and return focus on close remain intact\\n<Dialog>\\n <DialogTrigger asChild>\\n <button aria-haspopup=\\\"dialog\\\">Open settings</button>\\n </DialogTrigger>\\n <DialogContent aria-describedby=\\\"settings-desc\\\">\\n <DialogTitle>Settings</DialogTitle>\\n <p id=\\\"settings-desc\\\">Update your preferences.</p>\\n <DialogClose asChild>\\n <button>Close</button>\\n </DialogClose>\\n </DialogContent>\\n</Dialog>\\n```\\n\\n**Form error association**\\n\\n```tsx\\n<label htmlFor=\\\"email\\\">Email</label>\\n<input id=\\\"email\\\" name=\\\"email\\\" type=\\\"email\\\" aria-describedby=\\\"email-err\\\" />\\n<p id=\\\"email-err\\\" role=\\\"alert\\\">Enter a valid email.</p>\\n```\\n\\n**Route change announcement (Next.js)**\\n\\n```tsx\\n// Add once at app root\\n<div\\n aria-live=\\\"polite\\\"\\n aria-atomic=\\\"true\\\"\\n id=\\\"route-announcer\\\"\\n className=\\\"sr-only\\\"\\n/>\\n```\\n\\n---\\n\\n## 9) Exceptions & Waivers\\n\\n- If a criterion cannot be met, file an issue with: context, attempted alternatives, WCAG reference, impact assessment, and a remediation date. **Temporary waivers only.**\\n\\n---\\n\\n## 10) Ownership\\n\\n- **Design:** maintains token contrast, component specs.\\n- **Engineering:** enforces CI gates, implements patterns.\\n- **QA:** runs manual checks per release.\\n- **PM:** blocks release if AA not met on user‑visible flows.\\n\\n---\\n\\n## 11) References (internalize; no external dependency at runtime)\\n\\n- WCAG\\xA02.2 (AA), EN\\xA0301\\xA0549. ARIA Authoring Practices. Platform HIG (Apple, Material).\\n- `packages/lssm/libs/ui-kit-web` as the canonical UI source for web.\\n\\n> **Bottom line:** Shipping means **accessible by default**. We don’t trade a11y for speed; we bake it into speed.\\n\\n---\\n\\n## 12) Adoption Status (2025-09-23)\\n\\n- web-artisan: AccessibilityProvider integrated; sr-only/forced-colors applied; 44x44 targets; forms announce errors; jest-axe and cypress-axe in place.\\n- web-strit: AccessibilityProvider integrated; forced-colors, sr-only; forms announce errors; 44x44 targets; contrast tokens and text-scale wired; jest-axe and cypress-axe in place.\\n- web-coliving: AccessibilityProvider integrated; forced-colors and focus visibility added; text-scale wired; landing pages converted to `Section`/stacks with text-lg defaults; CTA capture standardized; ESLint guard for text-xs in main content; jest-axe and cypress-axe in place. Next: audit icon-only controls and ensure 44x44 targets; add role=\\\"alert\\\" where critical.\\n\\n> CI gates: run eslint a11y, jest-axe on components, and cypress-axe on critical flows per app.\\n\\n---\\n\\n## 13) CI Hardening & Visual QA\\n\\n- Linting: Run eslint with jsx-a11y rules across all web apps; block on violations.\\n- Unit: Run jest-axe for ui-kit-web and app-level components.\\n- Integration: cypress-axe on key flows (auth, forms, dialogs, tables).\\n- Synthetic scans: pa11y-ci on critical pages (0 Critical/Serious policy).\\n- Performance/A11y audit: Lighthouse CI with a11y score >= 95 on target routes.\\n- Artifacts: Upload pa11y and Lighthouse reports per PR; annotate failures.\\n\\n### Recent additions (2025-09-26)\\n\\n- AutocompleteInput (groceries): Upgraded to ARIA combobox pattern with `aria-controls`, `aria-activedescendant`, `Escape`/`Tab` handling, and labelled listbox.\\n- Cypress a11y tests added for furniture and incidents modules on `/modules` and operators flows; checks run axe with critical/serious impacts.\\n\\n## 14) Accessibility Telemetry (PostHog)\\n\\n- Events (anonymized): a11y_pref_changed (text_scale, contrast_mode, reduce_motion), a11y_panel_opened.\\n- Properties: app, route, previous_value, new_value, timestamp.\\n- Dashboards: Adoption over time, per app/route; correlation with reduced bounce on forms.\\n- Privacy: No PII; aggregate only.\\n\"\n}];\nregisterDocBlocks(accessibility_wcag_compliance_specs_DocBlocks);\n\n//#endregion\nexport { accessibility_wcag_compliance_specs_DocBlocks };"],"mappings":";;;AAGA,MAAM,gDAAgD,CAAC;CACtD,IAAI;CACJ,OAAO;CACP,SAAS;CACT,MAAM;CACN,YAAY;CACZ,OAAO;CACP,MAAM,CAAC,sCAAsC;CAC7C,MAAM;CACN,CAAC;AACF,kBAAkB,8CAA8C"}
@@ -1,25 +0,0 @@
1
- import { docBlockToPresentationSpec, docBlockToPresentationV2, docBlocksToPresentationRoutes } from "./presentations.js";
2
- import { DocRegistry, defaultDocRegistry, registerDocBlocks } from "./registry.js";
3
- import { techContractsDocs } from "./tech-contracts.docs.js";
4
- import { metaDocs } from "./meta.docs.js";
5
- import "./accessibility_wcag_compliance_specs.docblock.js";
6
- import "./tech/lifecycle-stage-system.docblock.js";
7
- import "./tech/presentation-runtime.docblock.js";
8
- import "./tech/auth/better-auth-nextjs.docblock.js";
9
- import "./tech/schema/README.docblock.js";
10
- import "./tech/templates/runtime.docblock.js";
11
- import "./tech/workflows/overview.docblock.js";
12
- import "./tech/mcp-endpoints.docblock.js";
13
- import "./tech/vscode-extension.docblock.js";
14
- import "./tech/telemetry-ingest.docblock.js";
15
- import "./tech/contracts/openapi-export.docblock.js";
16
- import "./tech/studio/workspaces.docblock.js";
17
- import "./tech/studio/sandbox-unlogged.docblock.js";
18
- import "./tech/studio/workspace-ops.docblock.js";
19
- import "./tech/studio/project-routing.docblock.js";
20
- import "./tech/studio/platform-admin-panel.docblock.js";
21
- import "./tech/studio/learning-events.docblock.js";
22
- import "./tech/studio/learning-journeys.docblock.js";
23
- import "./tech/studio/project-access-teams.docblock.js";
24
- import "./tech/studio/team-invitations.docblock.js";
25
- import "./tech/llm/llm-integration.docblock.js";