@fuzdev/fuz_app 0.176.0 → 0.178.0

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 (503) hide show
  1. package/README.md +3 -2
  2. package/dist/actions/CLAUDE.md +11 -12
  3. package/dist/actions/action_bridge.d.ts.map +1 -1
  4. package/dist/actions/action_codegen.d.ts.map +1 -1
  5. package/dist/actions/action_dispatcher.d.ts.map +1 -1
  6. package/dist/actions/action_event.d.ts.map +1 -1
  7. package/dist/actions/action_event_data.d.ts +37 -255
  8. package/dist/actions/action_event_data.d.ts.map +1 -1
  9. package/dist/actions/action_event_helpers.d.ts.map +1 -1
  10. package/dist/actions/action_event_types.d.ts +2 -2
  11. package/dist/actions/action_event_types.d.ts.map +1 -1
  12. package/dist/actions/action_registry.d.ts.map +1 -1
  13. package/dist/actions/action_rpc.d.ts.map +1 -1
  14. package/dist/actions/action_spec.d.ts +3 -3
  15. package/dist/actions/action_spec.d.ts.map +1 -1
  16. package/dist/actions/action_types.d.ts.map +1 -1
  17. package/dist/actions/broadcast_api.d.ts.map +1 -1
  18. package/dist/actions/cancel.d.ts +5 -13
  19. package/dist/actions/cancel.d.ts.map +1 -1
  20. package/dist/actions/compile_action_registry.d.ts.map +1 -1
  21. package/dist/actions/connection_closer.d.ts.map +1 -1
  22. package/dist/actions/connection_registry.d.ts.map +1 -1
  23. package/dist/actions/frontend_rpc_client.d.ts.map +1 -1
  24. package/dist/actions/heartbeat.d.ts +2 -2
  25. package/dist/actions/heartbeat.d.ts.map +1 -1
  26. package/dist/actions/peer_ping.d.ts +16 -56
  27. package/dist/actions/peer_ping.d.ts.map +1 -1
  28. package/dist/actions/peer_request.d.ts.map +1 -1
  29. package/dist/actions/perform_action.d.ts.map +1 -1
  30. package/dist/actions/protocol.d.ts.map +1 -1
  31. package/dist/actions/register_action_ws.d.ts.map +1 -1
  32. package/dist/actions/rpc_client.d.ts.map +1 -1
  33. package/dist/actions/socket.svelte.d.ts.map +1 -1
  34. package/dist/actions/transports.d.ts.map +1 -1
  35. package/dist/actions/transports_http.d.ts.map +1 -1
  36. package/dist/actions/transports_ws.d.ts.map +1 -1
  37. package/dist/actions/ws_endpoint_spec.d.ts.map +1 -1
  38. package/dist/actions/ws_outbound_writer.d.ts.map +1 -1
  39. package/dist/actions/ws_socket_session.d.ts +2 -2
  40. package/dist/actions/ws_socket_session.d.ts.map +1 -1
  41. package/dist/actions/ws_socket_session.js +3 -3
  42. package/dist/auth/CLAUDE.md +1 -1
  43. package/dist/auth/account_action_specs.d.ts +114 -591
  44. package/dist/auth/account_action_specs.d.ts.map +1 -1
  45. package/dist/auth/account_actions.d.ts.map +1 -1
  46. package/dist/auth/account_queries.d.ts.map +1 -1
  47. package/dist/auth/account_route_schema.d.ts +66 -360
  48. package/dist/auth/account_route_schema.d.ts.map +1 -1
  49. package/dist/auth/account_routes.d.ts.map +1 -1
  50. package/dist/auth/account_schema.d.ts +82 -463
  51. package/dist/auth/account_schema.d.ts.map +1 -1
  52. package/dist/auth/actor_lookup_action_specs.d.ts +25 -164
  53. package/dist/auth/actor_lookup_action_specs.d.ts.map +1 -1
  54. package/dist/auth/actor_lookup_actions.d.ts.map +1 -1
  55. package/dist/auth/actor_lookup_queries.d.ts.map +1 -1
  56. package/dist/auth/actor_search_action_specs.d.ts +27 -165
  57. package/dist/auth/actor_search_action_specs.d.ts.map +1 -1
  58. package/dist/auth/actor_search_actions.d.ts.map +1 -1
  59. package/dist/auth/actor_search_queries.d.ts.map +1 -1
  60. package/dist/auth/admin_action_specs.d.ts +355 -2575
  61. package/dist/auth/admin_action_specs.d.ts.map +1 -1
  62. package/dist/auth/admin_actions.d.ts.map +1 -1
  63. package/dist/auth/all_action_spec_registries.d.ts.map +1 -1
  64. package/dist/auth/all_cell_actions.d.ts.map +1 -1
  65. package/dist/auth/api_token.d.ts +1 -1
  66. package/dist/auth/api_token.d.ts.map +1 -1
  67. package/dist/auth/api_token_queries.d.ts.map +1 -1
  68. package/dist/auth/app_settings_queries.d.ts.map +1 -1
  69. package/dist/auth/app_settings_schema.d.ts +9 -37
  70. package/dist/auth/app_settings_schema.d.ts.map +1 -1
  71. package/dist/auth/audit_emitter.d.ts.map +1 -1
  72. package/dist/auth/audit_log_ddl.d.ts.map +1 -1
  73. package/dist/auth/audit_log_queries.d.ts.map +1 -1
  74. package/dist/auth/audit_log_route_schema.d.ts +2 -11
  75. package/dist/auth/audit_log_route_schema.d.ts.map +1 -1
  76. package/dist/auth/audit_log_routes.d.ts.map +1 -1
  77. package/dist/auth/audit_log_schema.d.ts +164 -728
  78. package/dist/auth/audit_log_schema.d.ts.map +1 -1
  79. package/dist/auth/auth_ddl.d.ts.map +1 -1
  80. package/dist/auth/auth_guard_resolver.d.ts.map +1 -1
  81. package/dist/auth/bearer_auth.d.ts.map +1 -1
  82. package/dist/auth/bootstrap_account.d.ts.map +1 -1
  83. package/dist/auth/bootstrap_route_schema.d.ts +18 -102
  84. package/dist/auth/bootstrap_route_schema.d.ts.map +1 -1
  85. package/dist/auth/bootstrap_routes.d.ts.map +1 -1
  86. package/dist/auth/cell_action_helpers.d.ts.map +1 -1
  87. package/dist/auth/cell_action_specs.d.ts +826 -5965
  88. package/dist/auth/cell_action_specs.d.ts.map +1 -1
  89. package/dist/auth/cell_actions.d.ts.map +1 -1
  90. package/dist/auth/cell_audit_action_specs.d.ts +40 -280
  91. package/dist/auth/cell_audit_action_specs.d.ts.map +1 -1
  92. package/dist/auth/cell_audit_actions.d.ts.map +1 -1
  93. package/dist/auth/cell_audit_events.d.ts.map +1 -1
  94. package/dist/auth/cell_audit_metadata.d.ts +18 -84
  95. package/dist/auth/cell_audit_metadata.d.ts.map +1 -1
  96. package/dist/auth/cell_authorize.d.ts.map +1 -1
  97. package/dist/auth/cell_data_schema.d.ts +3 -9
  98. package/dist/auth/cell_data_schema.d.ts.map +1 -1
  99. package/dist/auth/cell_field_action_specs.d.ts +96 -663
  100. package/dist/auth/cell_field_action_specs.d.ts.map +1 -1
  101. package/dist/auth/cell_field_actions.d.ts.map +1 -1
  102. package/dist/auth/cell_field_audit_metadata.d.ts +8 -44
  103. package/dist/auth/cell_field_audit_metadata.d.ts.map +1 -1
  104. package/dist/auth/cell_grant_action_specs.d.ts +141 -1008
  105. package/dist/auth/cell_grant_action_specs.d.ts.map +1 -1
  106. package/dist/auth/cell_grant_actions.d.ts.map +1 -1
  107. package/dist/auth/cell_grant_audit_metadata.d.ts +25 -179
  108. package/dist/auth/cell_grant_audit_metadata.d.ts.map +1 -1
  109. package/dist/auth/cell_item_action_specs.d.ts +129 -903
  110. package/dist/auth/cell_item_action_specs.d.ts.map +1 -1
  111. package/dist/auth/cell_item_actions.d.ts.map +1 -1
  112. package/dist/auth/cell_item_audit_metadata.d.ts +12 -61
  113. package/dist/auth/cell_item_audit_metadata.d.ts.map +1 -1
  114. package/dist/auth/cell_ref_admission.d.ts.map +1 -1
  115. package/dist/auth/cell_relation_list_limit.d.ts +1 -1
  116. package/dist/auth/cell_relation_list_limit.d.ts.map +1 -1
  117. package/dist/auth/cell_relation_visibility.d.ts.map +1 -1
  118. package/dist/auth/cell_steward.d.ts.map +1 -1
  119. package/dist/auth/cleanup.d.ts.map +1 -1
  120. package/dist/auth/credential_deadline.d.ts.map +1 -1
  121. package/dist/auth/credential_type_schema.d.ts +1 -1
  122. package/dist/auth/credential_type_schema.d.ts.map +1 -1
  123. package/dist/auth/daemon_token.d.ts +1 -1
  124. package/dist/auth/daemon_token.d.ts.map +1 -1
  125. package/dist/auth/daemon_token_middleware.d.ts.map +1 -1
  126. package/dist/auth/deps.d.ts.map +1 -1
  127. package/dist/auth/fail_floor.d.ts.map +1 -1
  128. package/dist/auth/grant_path_schema.d.ts +1 -1
  129. package/dist/auth/grant_path_schema.d.ts.map +1 -1
  130. package/dist/auth/invite_queries.d.ts.map +1 -1
  131. package/dist/auth/invite_schema.d.ts +18 -84
  132. package/dist/auth/invite_schema.d.ts.map +1 -1
  133. package/dist/auth/keyring.d.ts.map +1 -1
  134. package/dist/auth/middleware.d.ts.map +1 -1
  135. package/dist/auth/migrations.d.ts.map +1 -1
  136. package/dist/auth/name_schema.d.ts.map +1 -1
  137. package/dist/auth/password.d.ts +2 -2
  138. package/dist/auth/password.d.ts.map +1 -1
  139. package/dist/auth/password_argon2.d.ts.map +1 -1
  140. package/dist/auth/request_context.d.ts.map +1 -1
  141. package/dist/auth/resolved_auth.d.ts.map +1 -1
  142. package/dist/auth/role_grant_offer_action_specs.d.ts +318 -2134
  143. package/dist/auth/role_grant_offer_action_specs.d.ts.map +1 -1
  144. package/dist/auth/role_grant_offer_actions.d.ts.map +1 -1
  145. package/dist/auth/role_grant_offer_ddl.d.ts.map +1 -1
  146. package/dist/auth/role_grant_offer_notifications.d.ts +202 -1284
  147. package/dist/auth/role_grant_offer_notifications.d.ts.map +1 -1
  148. package/dist/auth/role_grant_offer_queries.d.ts.map +1 -1
  149. package/dist/auth/role_grant_offer_schema.d.ts +17 -81
  150. package/dist/auth/role_grant_offer_schema.d.ts.map +1 -1
  151. package/dist/auth/role_grant_queries.d.ts.map +1 -1
  152. package/dist/auth/role_grant_sql.d.ts.map +1 -1
  153. package/dist/auth/role_schema.d.ts +1 -1
  154. package/dist/auth/role_schema.d.ts.map +1 -1
  155. package/dist/auth/scope_kind_schema.d.ts +1 -1
  156. package/dist/auth/scope_kind_schema.d.ts.map +1 -1
  157. package/dist/auth/self_service_role_action_specs.d.ts +16 -58
  158. package/dist/auth/self_service_role_action_specs.d.ts.map +1 -1
  159. package/dist/auth/self_service_role_actions.d.ts.map +1 -1
  160. package/dist/auth/session_cookie.d.ts.map +1 -1
  161. package/dist/auth/session_middleware.d.ts.map +1 -1
  162. package/dist/auth/session_queries.d.ts.map +1 -1
  163. package/dist/auth/signup_route_schema.d.ts +11 -57
  164. package/dist/auth/signup_route_schema.d.ts.map +1 -1
  165. package/dist/auth/signup_routes.d.ts.map +1 -1
  166. package/dist/auth/standard_action_specs.d.ts.map +1 -1
  167. package/dist/auth/standard_rpc_actions.d.ts.map +1 -1
  168. package/dist/auth/token_lifetime.d.ts +6 -29
  169. package/dist/auth/token_lifetime.d.ts.map +1 -1
  170. package/dist/auth/token_scope.d.ts +16 -78
  171. package/dist/auth/token_scope.d.ts.map +1 -1
  172. package/dist/crypto.d.ts.map +1 -1
  173. package/dist/db/assert_row.d.ts.map +1 -1
  174. package/dist/db/cell_audit_queries.d.ts.map +1 -1
  175. package/dist/db/cell_ddl.d.ts.map +1 -1
  176. package/dist/db/cell_field_queries.d.ts.map +1 -1
  177. package/dist/db/cell_grant_queries.d.ts.map +1 -1
  178. package/dist/db/cell_item_queries.d.ts.map +1 -1
  179. package/dist/db/cell_moderation.d.ts.map +1 -1
  180. package/dist/db/cell_queries.d.ts.map +1 -1
  181. package/dist/db/cell_view_sql.d.ts.map +1 -1
  182. package/dist/db/create_db.d.ts.map +1 -1
  183. package/dist/db/db.d.ts.map +1 -1
  184. package/dist/db/db_checkout_error.d.ts.map +1 -1
  185. package/dist/db/db_pg.d.ts.map +1 -1
  186. package/dist/db/db_pglet.d.ts.map +1 -1
  187. package/dist/db/db_pglite.d.ts.map +1 -1
  188. package/dist/db/fact_ddl.d.ts.map +1 -1
  189. package/dist/db/fact_disk_storage.d.ts.map +1 -1
  190. package/dist/db/fact_holder_queries.d.ts.map +1 -1
  191. package/dist/db/fact_queries.d.ts.map +1 -1
  192. package/dist/db/fact_store.d.ts.map +1 -1
  193. package/dist/db/fact_store_errors.d.ts.map +1 -1
  194. package/dist/db/file_fact_url.d.ts +1 -6
  195. package/dist/db/file_fact_url.d.ts.map +1 -1
  196. package/dist/db/migrate.d.ts.map +1 -1
  197. package/dist/db/pg_error.d.ts.map +1 -1
  198. package/dist/db/postgres_url.d.ts.map +1 -1
  199. package/dist/db/query_deps.d.ts.map +1 -1
  200. package/dist/db/schema_ready.d.ts.map +1 -1
  201. package/dist/db/sql_columns.d.ts.map +1 -1
  202. package/dist/db/sql_identifier.d.ts.map +1 -1
  203. package/dist/db/status.d.ts.map +1 -1
  204. package/dist/dev/setup.d.ts.map +1 -1
  205. package/dist/env/dotenv.d.ts.map +1 -1
  206. package/dist/env/env_schemas.d.ts.map +1 -1
  207. package/dist/env/load.d.ts.map +1 -1
  208. package/dist/env/mask.d.ts.map +1 -1
  209. package/dist/env/update_env_variable.d.ts.map +1 -1
  210. package/dist/hono_context.d.ts.map +1 -1
  211. package/dist/http/auth_shape.d.ts +1 -1
  212. package/dist/http/auth_shape.d.ts.map +1 -1
  213. package/dist/http/body_limit.d.ts.map +1 -1
  214. package/dist/http/body_limit_schema.d.ts.map +1 -1
  215. package/dist/http/client_ip.d.ts.map +1 -1
  216. package/dist/http/common_routes.d.ts.map +1 -1
  217. package/dist/http/db_routes.d.ts.map +1 -1
  218. package/dist/http/dev_route_error_check.d.ts.map +1 -1
  219. package/dist/http/error_schemas.d.ts +31 -151
  220. package/dist/http/error_schemas.d.ts.map +1 -1
  221. package/dist/http/health_schema.d.ts +2 -6
  222. package/dist/http/health_schema.d.ts.map +1 -1
  223. package/dist/http/host.d.ts.map +1 -1
  224. package/dist/http/ip_canonical.d.ts.map +1 -1
  225. package/dist/http/json_text.d.ts.map +1 -1
  226. package/dist/http/jsonrpc.d.ts +42 -181
  227. package/dist/http/jsonrpc.d.ts.map +1 -1
  228. package/dist/http/jsonrpc_errors.d.ts.map +1 -1
  229. package/dist/http/jsonrpc_helpers.d.ts.map +1 -1
  230. package/dist/http/middleware_spec.d.ts.map +1 -1
  231. package/dist/http/origin.d.ts +2 -2
  232. package/dist/http/origin.d.ts.map +1 -1
  233. package/dist/http/origin_wildcard.d.ts.map +1 -1
  234. package/dist/http/pending_effects.d.ts.map +1 -1
  235. package/dist/http/proxy.d.ts.map +1 -1
  236. package/dist/http/route_error_check.d.ts.map +1 -1
  237. package/dist/http/route_errors.d.ts.map +1 -1
  238. package/dist/http/route_result.d.ts.map +1 -1
  239. package/dist/http/route_spec.d.ts.map +1 -1
  240. package/dist/http/schema_helpers.d.ts.map +1 -1
  241. package/dist/http/simple_request.d.ts.map +1 -1
  242. package/dist/http/surface.d.ts.map +1 -1
  243. package/dist/http/surface_query.d.ts.map +1 -1
  244. package/dist/periodic.d.ts.map +1 -1
  245. package/dist/primitive_schemas.d.ts +10 -30
  246. package/dist/primitive_schemas.d.ts.map +1 -1
  247. package/dist/rate_limiter.d.ts +1 -1
  248. package/dist/rate_limiter.d.ts.map +1 -1
  249. package/dist/realtime/audit_log_sse.d.ts.map +1 -1
  250. package/dist/realtime/outbound_budget.d.ts.map +1 -1
  251. package/dist/realtime/sse.d.ts.map +1 -1
  252. package/dist/realtime/sse_constants.d.ts.map +1 -1
  253. package/dist/realtime/sse_registry.d.ts.map +1 -1
  254. package/dist/runtime/deps.d.ts.map +1 -1
  255. package/dist/runtime/fs.d.ts.map +1 -1
  256. package/dist/runtime/mock.d.ts.map +1 -1
  257. package/dist/runtime/node.d.ts.map +1 -1
  258. package/dist/runtime/process_id.d.ts.map +1 -1
  259. package/dist/runtime/secure_file.d.ts.map +1 -1
  260. package/dist/schema_issues.d.ts +6 -18
  261. package/dist/schema_issues.d.ts.map +1 -1
  262. package/dist/schema_meta.d.ts.map +1 -1
  263. package/dist/sensitivity.d.ts.map +1 -1
  264. package/dist/server/app_backend.d.ts.map +1 -1
  265. package/dist/server/app_error_handler.d.ts.map +1 -1
  266. package/dist/server/app_server.d.ts +16 -27
  267. package/dist/server/app_server.d.ts.map +1 -1
  268. package/dist/server/app_server.js +7 -9
  269. package/dist/server/app_server_context.d.ts.map +1 -1
  270. package/dist/server/env.d.ts +11 -33
  271. package/dist/server/env.d.ts.map +1 -1
  272. package/dist/server/fact_security_headers.d.ts.map +1 -1
  273. package/dist/server/serve_fact_route.d.ts.map +1 -1
  274. package/dist/server/startup.d.ts.map +1 -1
  275. package/dist/server/static.d.ts.map +1 -1
  276. package/dist/server/surface_route.d.ts.map +1 -1
  277. package/dist/server/x_accel.d.ts +3 -7
  278. package/dist/server/x_accel.d.ts.map +1 -1
  279. package/dist/testing/CLAUDE.md +5 -5
  280. package/dist/testing/admin_integration.d.ts.map +1 -1
  281. package/dist/testing/adversarial_404.d.ts.map +1 -1
  282. package/dist/testing/adversarial_headers.d.ts.map +1 -1
  283. package/dist/testing/adversarial_input.d.ts.map +1 -1
  284. package/dist/testing/adversarial_input_cases.d.ts.map +1 -1
  285. package/dist/testing/app_server.d.ts.map +1 -1
  286. package/dist/testing/assert_dev_env.d.ts.map +1 -1
  287. package/dist/testing/assertions.d.ts.map +1 -1
  288. package/dist/testing/attack_surface.d.ts.map +1 -1
  289. package/dist/testing/audit_completeness.d.ts.map +1 -1
  290. package/dist/testing/audit_drift_guard.d.ts.map +1 -1
  291. package/dist/testing/auth_apps.d.ts.map +1 -1
  292. package/dist/testing/connection_closer_helpers.d.ts.map +1 -1
  293. package/dist/testing/cross_backend/account_lifecycle.d.ts.map +1 -1
  294. package/dist/testing/cross_backend/action_manifest.d.ts +19 -95
  295. package/dist/testing/cross_backend/action_manifest.d.ts.map +1 -1
  296. package/dist/testing/cross_backend/action_manifest_parity.d.ts.map +1 -1
  297. package/dist/testing/cross_backend/actor_lookup.d.ts.map +1 -1
  298. package/dist/testing/cross_backend/app_settings.d.ts.map +1 -1
  299. package/dist/testing/cross_backend/audit_cross_helpers.d.ts.map +1 -1
  300. package/dist/testing/cross_backend/backend_config.d.ts.map +1 -1
  301. package/dist/testing/cross_backend/bench/bench_report.d.ts.map +1 -1
  302. package/dist/testing/cross_backend/bench/run_cross_impl_bench.d.ts.map +1 -1
  303. package/dist/testing/cross_backend/bench/scenario.d.ts.map +1 -1
  304. package/dist/testing/cross_backend/body_size.d.ts.map +1 -1
  305. package/dist/testing/cross_backend/body_size_smuggling.d.ts.map +1 -1
  306. package/dist/testing/cross_backend/bootstrap_backend.d.ts.map +1 -1
  307. package/dist/testing/cross_backend/build_test_backend_paths.d.ts.map +1 -1
  308. package/dist/testing/cross_backend/capabilities.d.ts +1 -1
  309. package/dist/testing/cross_backend/capabilities.d.ts.map +1 -1
  310. package/dist/testing/cross_backend/cargo_binary.d.ts.map +1 -1
  311. package/dist/testing/cross_backend/cell_crud.d.ts.map +1 -1
  312. package/dist/testing/cross_backend/cell_gated_create.d.ts.map +1 -1
  313. package/dist/testing/cross_backend/cell_grant_role.d.ts.map +1 -1
  314. package/dist/testing/cross_backend/cell_grant_steward.d.ts.map +1 -1
  315. package/dist/testing/cross_backend/cell_moderate.d.ts.map +1 -1
  316. package/dist/testing/cross_backend/cell_ref_admission.d.ts.map +1 -1
  317. package/dist/testing/cross_backend/cell_relations.d.ts.map +1 -1
  318. package/dist/testing/cross_backend/conformance_case.d.ts.map +1 -1
  319. package/dist/testing/cross_backend/conformance_rpc_auth.d.ts.map +1 -1
  320. package/dist/testing/cross_backend/conformance_table.d.ts.map +1 -1
  321. package/dist/testing/cross_backend/cookie_attributes.d.ts.map +1 -1
  322. package/dist/testing/cross_backend/create_cross_backend_global_setup.d.ts.map +1 -1
  323. package/dist/testing/cross_backend/create_dual_spawn_global_setup.d.ts.map +1 -1
  324. package/dist/testing/cross_backend/credential_deadline.d.ts.map +1 -1
  325. package/dist/testing/cross_backend/credential_header_robustness.d.ts.map +1 -1
  326. package/dist/testing/cross_backend/cross_rpc.d.ts.map +1 -1
  327. package/dist/testing/cross_backend/default_backend_configs.d.ts.map +1 -1
  328. package/dist/testing/cross_backend/default_backend_configs.js +1 -1
  329. package/dist/testing/cross_backend/default_secrets.d.ts.map +1 -1
  330. package/dist/testing/cross_backend/default_spine_surface.d.ts.map +1 -1
  331. package/dist/testing/cross_backend/differential.d.ts.map +1 -1
  332. package/dist/testing/cross_backend/differential_normalize.d.ts.map +1 -1
  333. package/dist/testing/cross_backend/fact_serving.d.ts.map +1 -1
  334. package/dist/testing/cross_backend/full_spine_mount.d.ts.map +1 -1
  335. package/dist/testing/cross_backend/identity_parity.d.ts.map +1 -1
  336. package/dist/testing/cross_backend/in_process_setup.d.ts.map +1 -1
  337. package/dist/testing/cross_backend/login_security.d.ts.map +1 -1
  338. package/dist/testing/cross_backend/make_cross_backend_project.d.ts.map +1 -1
  339. package/dist/testing/cross_backend/method_coverage.d.ts.map +1 -1
  340. package/dist/testing/cross_backend/narrowed_api_token.d.ts.map +1 -1
  341. package/dist/testing/cross_backend/origin.d.ts.map +1 -1
  342. package/dist/testing/cross_backend/origin_conformance.d.ts +44 -294
  343. package/dist/testing/cross_backend/origin_conformance.d.ts.map +1 -1
  344. package/dist/testing/cross_backend/origin_scope.d.ts.map +1 -1
  345. package/dist/testing/cross_backend/peer_ping_ws.d.ts.map +1 -1
  346. package/dist/testing/cross_backend/postgres_database.d.ts.map +1 -1
  347. package/dist/testing/cross_backend/provided_context.d.ts.map +1 -1
  348. package/dist/testing/cross_backend/query_shape.d.ts.map +1 -1
  349. package/dist/testing/cross_backend/ready.d.ts.map +1 -1
  350. package/dist/testing/cross_backend/revocation_drivers.d.ts.map +1 -1
  351. package/dist/testing/cross_backend/role_grant_cross_helpers.d.ts.map +1 -1
  352. package/dist/testing/cross_backend/role_grant_offer_enumeration.d.ts.map +1 -1
  353. package/dist/testing/cross_backend/role_grant_offer_lifecycle.d.ts.map +1 -1
  354. package/dist/testing/cross_backend/role_grant_offer_notification_ws.d.ts.map +1 -1
  355. package/dist/testing/cross_backend/role_grant_participation.d.ts.map +1 -1
  356. package/dist/testing/cross_backend/role_grant_role_grammar.d.ts.map +1 -1
  357. package/dist/testing/cross_backend/rpc_adversarial.d.ts.map +1 -1
  358. package/dist/testing/cross_backend/rpc_success_fixtures.d.ts.map +1 -1
  359. package/dist/testing/cross_backend/rust_spine_consumer_surface.d.ts.map +1 -1
  360. package/dist/testing/cross_backend/rust_spine_stub_backend_config.d.ts.map +1 -1
  361. package/dist/testing/cross_backend/session_cap.d.ts.map +1 -1
  362. package/dist/testing/cross_backend/session_cookie_codec.d.ts.map +1 -1
  363. package/dist/testing/cross_backend/setup.d.ts.map +1 -1
  364. package/dist/testing/cross_backend/simple_request.d.ts.map +1 -1
  365. package/dist/testing/cross_backend/spawn_backend.d.ts.map +1 -1
  366. package/dist/testing/cross_backend/spine_suites.d.ts.map +1 -1
  367. package/dist/testing/cross_backend/spine_surface_constants.d.ts.map +1 -1
  368. package/dist/testing/cross_backend/sse_round_trip.d.ts.map +1 -1
  369. package/dist/testing/cross_backend/standard.d.ts.map +1 -1
  370. package/dist/testing/cross_backend/test_cell_gated_create_authorize.d.ts.map +1 -1
  371. package/dist/testing/cross_backend/test_cell_grant_steward_revoke_authorize.d.ts.map +1 -1
  372. package/dist/testing/cross_backend/testing_backdoor.d.ts.map +1 -1
  373. package/dist/testing/cross_backend/testing_origin_check.d.ts +24 -136
  374. package/dist/testing/cross_backend/testing_origin_check.d.ts.map +1 -1
  375. package/dist/testing/cross_backend/testing_reset_actions.d.ts +92 -627
  376. package/dist/testing/cross_backend/testing_reset_actions.d.ts.map +1 -1
  377. package/dist/testing/cross_backend/testing_server_bun.d.ts.map +1 -1
  378. package/dist/testing/cross_backend/testing_server_bun.js +6 -7
  379. package/dist/testing/cross_backend/testing_server_core.d.ts +23 -37
  380. package/dist/testing/cross_backend/testing_server_core.d.ts.map +1 -1
  381. package/dist/testing/cross_backend/testing_server_core.js +1 -8
  382. package/dist/testing/cross_backend/testing_server_node.d.ts.map +1 -1
  383. package/dist/testing/cross_backend/testing_server_node.js +35 -46
  384. package/dist/testing/cross_backend/token_lifetime.d.ts.map +1 -1
  385. package/dist/testing/cross_backend/token_scope_surface.d.ts.map +1 -1
  386. package/dist/testing/cross_backend/transport_composition.d.ts.map +1 -1
  387. package/dist/testing/cross_backend/transport_composition.js +2 -2
  388. package/dist/testing/cross_backend/ts_spine_backend_config.d.ts.map +1 -1
  389. package/dist/testing/cross_backend/ts_spine_backend_config.js +1 -1
  390. package/dist/testing/cross_backend/wire_shapes.d.ts.map +1 -1
  391. package/dist/testing/cross_backend/ws_action_rate_limit.d.ts.map +1 -1
  392. package/dist/testing/cross_backend/ws_connection_cap.d.ts.map +1 -1
  393. package/dist/testing/cross_backend/ws_endpoint.d.ts.map +1 -1
  394. package/dist/testing/cross_backend/ws_envelope.d.ts.map +1 -1
  395. package/dist/testing/cross_backend/ws_inbound_dispatch.d.ts.map +1 -1
  396. package/dist/testing/cross_backend/ws_outbound_overflow.d.ts.map +1 -1
  397. package/dist/testing/cross_backend/ws_role_gated.d.ts.map +1 -1
  398. package/dist/testing/cross_backend/ws_round_trip.d.ts.map +1 -1
  399. package/dist/testing/cross_backend/xfail.d.ts.map +1 -1
  400. package/dist/testing/daemon_info.d.ts +6 -18
  401. package/dist/testing/daemon_info.d.ts.map +1 -1
  402. package/dist/testing/daemon_token_rotation.d.ts.map +1 -1
  403. package/dist/testing/data_exposure.d.ts.map +1 -1
  404. package/dist/testing/db.d.ts.map +1 -1
  405. package/dist/testing/db_entities.d.ts.map +1 -1
  406. package/dist/testing/entities.d.ts.map +1 -1
  407. package/dist/testing/error_coverage.d.ts.map +1 -1
  408. package/dist/testing/integration.d.ts.map +1 -1
  409. package/dist/testing/integration_helpers.d.ts.map +1 -1
  410. package/dist/testing/middleware.d.ts.map +1 -1
  411. package/dist/testing/middleware_gate_probes.d.ts.map +1 -1
  412. package/dist/testing/rate_limiting.d.ts.map +1 -1
  413. package/dist/testing/resolved_auth.d.ts.map +1 -1
  414. package/dist/testing/role_grant_helpers.d.ts.map +1 -1
  415. package/dist/testing/round_trip.d.ts.map +1 -1
  416. package/dist/testing/rpc_attack_surface.d.ts.map +1 -1
  417. package/dist/testing/rpc_envelope_cases.d.ts.map +1 -1
  418. package/dist/testing/rpc_helpers.d.ts.map +1 -1
  419. package/dist/testing/rpc_round_trip.d.ts.map +1 -1
  420. package/dist/testing/schema_generators.d.ts.map +1 -1
  421. package/dist/testing/schema_introspect.d.ts +52 -380
  422. package/dist/testing/schema_introspect.d.ts.map +1 -1
  423. package/dist/testing/schema_parity.d.ts.map +1 -1
  424. package/dist/testing/schema_ready_fixture.d.ts.map +1 -1
  425. package/dist/testing/sse_round_trip.d.ts.map +1 -1
  426. package/dist/testing/stubs.d.ts +1 -1
  427. package/dist/testing/stubs.d.ts.map +1 -1
  428. package/dist/testing/stubs.js +1 -1
  429. package/dist/testing/surface_invariants.d.ts.map +1 -1
  430. package/dist/testing/test_credentials.d.ts.map +1 -1
  431. package/dist/testing/test_origin.d.ts.map +1 -1
  432. package/dist/testing/token_scope_fixtures.d.ts.map +1 -1
  433. package/dist/testing/transports/bootstrap.d.ts.map +1 -1
  434. package/dist/testing/transports/fetch_transport.d.ts.map +1 -1
  435. package/dist/testing/transports/raw_http.d.ts.map +1 -1
  436. package/dist/testing/transports/sse_frame_reader.d.ts.map +1 -1
  437. package/dist/testing/transports/sse_transport.d.ts.map +1 -1
  438. package/dist/testing/transports/ws_client.d.ts.map +1 -1
  439. package/dist/testing/transports/ws_raw_client.d.ts.map +1 -1
  440. package/dist/testing/transports/ws_transport.d.ts.map +1 -1
  441. package/dist/testing/ws_round_trip.d.ts.map +1 -1
  442. package/dist/timestamp.d.ts.map +1 -1
  443. package/dist/ui/AccountSessions.svelte.d.ts.map +1 -1
  444. package/dist/ui/AdminAccounts.svelte.d.ts.map +1 -1
  445. package/dist/ui/AdminAuditLog.svelte.d.ts.map +1 -1
  446. package/dist/ui/AdminInvites.svelte.d.ts.map +1 -1
  447. package/dist/ui/AdminOverview.svelte.d.ts.map +1 -1
  448. package/dist/ui/AdminRoleGrantHistory.svelte.d.ts.map +1 -1
  449. package/dist/ui/AdminSessions.svelte.d.ts.map +1 -1
  450. package/dist/ui/AdminSettings.svelte.d.ts.map +1 -1
  451. package/dist/ui/AdminSurface.svelte.d.ts.map +1 -1
  452. package/dist/ui/BootstrapForm.svelte.d.ts.map +1 -1
  453. package/dist/ui/CLAUDE.md +3 -195
  454. package/dist/ui/ConfirmButton.svelte.d.ts.map +1 -1
  455. package/dist/ui/Datatable.svelte.d.ts.map +1 -1
  456. package/dist/ui/LoginForm.svelte.d.ts.map +1 -1
  457. package/dist/ui/LogoutButton.svelte.d.ts.map +1 -1
  458. package/dist/ui/OpenSignupToggle.svelte.d.ts.map +1 -1
  459. package/dist/ui/PopoverButton.svelte.d.ts.map +1 -1
  460. package/dist/ui/RoleGrantOfferForm.svelte +1 -1
  461. package/dist/ui/RoleGrantOfferForm.svelte.d.ts.map +1 -1
  462. package/dist/ui/RoleGrantOfferHistory.svelte.d.ts.map +1 -1
  463. package/dist/ui/RoleGrantOfferInbox.svelte +4 -4
  464. package/dist/ui/RoleGrantOfferInbox.svelte.d.ts.map +1 -1
  465. package/dist/ui/SignupForm.svelte.d.ts.map +1 -1
  466. package/dist/ui/SurfaceExplorer.svelte.d.ts.map +1 -1
  467. package/dist/ui/account_sessions_state.svelte.d.ts.map +1 -1
  468. package/dist/ui/admin_accounts_state.svelte.d.ts +5 -5
  469. package/dist/ui/admin_accounts_state.svelte.d.ts.map +1 -1
  470. package/dist/ui/admin_invites_state.svelte.d.ts.map +1 -1
  471. package/dist/ui/admin_rpc_adapters.d.ts.map +1 -1
  472. package/dist/ui/admin_sessions_state.svelte.d.ts.map +1 -1
  473. package/dist/ui/app_settings_state.svelte.d.ts.map +1 -1
  474. package/dist/ui/async_slot.svelte.d.ts.map +1 -1
  475. package/dist/ui/audit_log_state.svelte.d.ts.map +1 -1
  476. package/dist/ui/auth_state.svelte.d.ts.map +1 -1
  477. package/dist/ui/backend_probe.svelte.d.ts.map +1 -1
  478. package/dist/ui/datatable.d.ts.map +1 -1
  479. package/dist/ui/form_state.svelte.d.ts.map +1 -1
  480. package/dist/ui/format_scope.d.ts.map +1 -1
  481. package/dist/ui/keyed_async_slot.svelte.d.ts.map +1 -1
  482. package/dist/ui/popover.svelte.d.ts +1 -1
  483. package/dist/ui/popover.svelte.d.ts.map +1 -1
  484. package/dist/ui/popover.svelte.js +1 -1
  485. package/dist/ui/position_helpers.d.ts.map +1 -1
  486. package/dist/ui/role_grant_offers_state.svelte.d.ts +5 -5
  487. package/dist/ui/role_grant_offers_state.svelte.d.ts.map +1 -1
  488. package/dist/ui/table_state.svelte.d.ts.map +1 -1
  489. package/dist/ui/ui_fetch.d.ts.map +1 -1
  490. package/dist/ui/ui_format.d.ts.map +1 -1
  491. package/package.json +11 -16
  492. package/dist/ui/AppShell.svelte +0 -448
  493. package/dist/ui/AppShell.svelte.d.ts +0 -135
  494. package/dist/ui/AppShell.svelte.d.ts.map +0 -1
  495. package/dist/ui/ColumnLayout.svelte +0 -185
  496. package/dist/ui/ColumnLayout.svelte.d.ts +0 -60
  497. package/dist/ui/ColumnLayout.svelte.d.ts.map +0 -1
  498. package/dist/ui/MenuLink.svelte +0 -45
  499. package/dist/ui/MenuLink.svelte.d.ts +0 -30
  500. package/dist/ui/MenuLink.svelte.d.ts.map +0 -1
  501. package/dist/ui/sidebar_state.svelte.d.ts +0 -113
  502. package/dist/ui/sidebar_state.svelte.d.ts.map +0 -1
  503. package/dist/ui/sidebar_state.svelte.js +0 -125
@@ -1,185 +0,0 @@
1
- <script lang="ts">
2
- /**
3
- * Two-column layout - fixed-width `aside` on the left, fluid `children`
4
- * column on the right. Both columns scroll independently.
5
- *
6
- * Below a threshold of the layout's own width - a container query, not a
7
- * media query, so a nested layout decides for itself - the columns stack:
8
- * the aside collapses behind a toggle button labelled `toggle_label`, and
9
- * when opened it sits in flow above the content, pushing it down, until
10
- * the toggle closes it or a navigation does. Opening scrolls the aside
11
- * into view, under the toggle, when it would land above the view.
12
- *
13
- * With a bounded height, the stacked layout scrolls as one column and the
14
- * toggle sticks to its top; under a parent that grows with its content,
15
- * the page scrolls and the toggle scrolls away with it.
16
- *
17
- * The threshold matches fuz_css's `sm` breakpoint. Above it the toggle is
18
- * `display: none`. The switch is CSS alone, so the server render shows the
19
- * right form at any width and hydration changes nothing.
20
- *
21
- * The root is an `inline-size` query container, so its width can't come
22
- * from its content: a layout placed where it would shrink to fit (an
23
- * inline-block, an absolutely positioned or floated box without a width,
24
- * a flex row item that doesn't grow) collapses to zero width. Give it a
25
- * width from its context, as a block or a stretched or growing flex item.
26
- *
27
- * Requires the SvelteKit runtime - it closes the aside from
28
- * `afterNavigate`. Without JS the stacked aside can't be opened, since the
29
- * toggle is client state; above the threshold it's always shown.
30
- *
31
- * The aside column is a plain `<div>`, not a landmark, as with `AppShell`'s
32
- * sidebar: render the landmark inside the `aside` snippet - a
33
- * `<nav aria-label>` for navigation links, or an `<aside aria-label>` for
34
- * other content.
35
- *
36
- * Styling hooks: `--column_width` (set from `column_width`) and
37
- * `--column_toggle_bg`, the stacked toggle bar's opaque background so
38
- * content scrolls under it unseen (default `--shade_00`, the page ground).
39
- *
40
- * @module
41
- */
42
-
43
- import { tick, type Snippet } from 'svelte';
44
- import type { SvelteHTMLElements } from 'svelte/elements';
45
- import { afterNavigate } from '$app/navigation';
46
-
47
- const {
48
- aside,
49
- children,
50
- column_width = '280px',
51
- toggle_label = 'menu',
52
- class: class_name = '',
53
- ...rest
54
- }: SvelteHTMLElements['div'] & {
55
- aside: Snippet;
56
- children: Snippet;
57
- /**
58
- * CSS width of the fixed `aside` column.
59
- * @default '280px'
60
- */
61
- column_width?: string;
62
- /**
63
- * The stacked toggle's text.
64
- * @default 'menu'
65
- */
66
- toggle_label?: string;
67
- } = $props();
68
-
69
- const uid = $props.id();
70
- const aside_id = `${uid}-aside`;
71
-
72
- let aside_open = $state(false);
73
-
74
- let toggle_bar_el: HTMLDivElement;
75
- let aside_el: HTMLDivElement;
76
-
77
- const toggle_aside = async (): Promise<void> => {
78
- aside_open = !aside_open;
79
- await tick();
80
- // closed, or closed again before the DOM settled
81
- if (!aside_open) return;
82
- // the aside goes in above the content, and scroll anchoring keeps the
83
- // content where it was, so opening while scrolled - the stacked body,
84
- // or the page past a toggle half out of view - leaves the aside above
85
- // the view; bring its start back under the toggle, whether the toggle
86
- // sticks (bounded) or sits just above it (growing)
87
- const bar = toggle_bar_el.getBoundingClientRect();
88
- if (aside_el.getBoundingClientRect().top >= Math.max(0, bar.bottom)) return;
89
- aside_el.style.scrollMarginTop = `${bar.height}px`;
90
- aside_el.scrollIntoView({ block: 'start' });
91
- };
92
-
93
- afterNavigate(() => {
94
- aside_open = false;
95
- });
96
- </script>
97
-
98
- <div class="column-layout {class_name}" style:--column_width={column_width} {...rest}>
99
- <div class={['column-layout-body', { 'aside-open': aside_open }]}>
100
- <div class="column-toggle-bar" bind:this={toggle_bar_el}>
101
- <button
102
- type="button"
103
- class="column-toggle menuitem plain"
104
- aria-expanded={aside_open}
105
- aria-controls={aside_id}
106
- onclick={toggle_aside}
107
- >
108
- {toggle_label}
109
- <span class="chevron" aria-hidden="true"></span>
110
- </button>
111
- </div>
112
- <div id={aside_id} class="column-fixed" bind:this={aside_el}>
113
- {@render aside()}
114
- </div>
115
- <div class="column-fluid">
116
- {@render children()}
117
- </div>
118
- </div>
119
- </div>
120
-
121
- <style>
122
- .column-layout {
123
- container: column_layout / inline-size;
124
- height: 100%;
125
- }
126
-
127
- .column-layout-body {
128
- display: flex;
129
- height: 100%;
130
- }
131
-
132
- .column-toggle-bar {
133
- display: none;
134
- }
135
-
136
- .column-fixed {
137
- width: var(--column_width, 280px);
138
- min-width: var(--column_width, 280px);
139
- height: 100%;
140
- overflow: auto;
141
- }
142
-
143
- .column-fluid {
144
- flex: 1;
145
- height: 100%;
146
- min-width: 0;
147
- overflow: auto;
148
- }
149
-
150
- /* fuz_css's `sm` breakpoint is the media query `40rem`, where `rem` is the
151
- initial font size; in a container query `rem` reads the root, which
152
- fuz_css sets to 62.5%, so `64rem` is the same width at any user font
153
- size - keep in sync with `sm` in fuz_css's `modifiers.ts` */
154
- @container column_layout (width < 64rem) {
155
- .column-layout-body {
156
- flex-direction: column;
157
- overflow: auto;
158
- }
159
- .column-toggle-bar {
160
- display: block;
161
- position: sticky;
162
- top: 0;
163
- z-index: 1;
164
- background-color: var(--column_toggle_bg, var(--shade_00));
165
- }
166
- /* `flex: none` because the aside scrolls, so it would otherwise shrink
167
- to nothing in the body's fixed height */
168
- .column-layout-body > .column-fixed {
169
- flex: none;
170
- width: auto;
171
- min-width: 0;
172
- height: auto;
173
- }
174
- .column-layout-body:not(.aside-open) > .column-fixed {
175
- display: none;
176
- }
177
- .column-fluid {
178
- flex: none;
179
- height: auto;
180
- }
181
- .column-layout-body.aside-open > .column-toggle-bar .chevron {
182
- rotate: 90deg;
183
- }
184
- }
185
- </style>
@@ -1,60 +0,0 @@
1
- /**
2
- * Two-column layout - fixed-width `aside` on the left, fluid `children`
3
- * column on the right. Both columns scroll independently.
4
- *
5
- * Below a threshold of the layout's own width - a container query, not a
6
- * media query, so a nested layout decides for itself - the columns stack:
7
- * the aside collapses behind a toggle button labelled `toggle_label`, and
8
- * when opened it sits in flow above the content, pushing it down, until
9
- * the toggle closes it or a navigation does. Opening scrolls the aside
10
- * into view, under the toggle, when it would land above the view.
11
- *
12
- * With a bounded height, the stacked layout scrolls as one column and the
13
- * toggle sticks to its top; under a parent that grows with its content,
14
- * the page scrolls and the toggle scrolls away with it.
15
- *
16
- * The threshold matches fuz_css's `sm` breakpoint. Above it the toggle is
17
- * `display: none`. The switch is CSS alone, so the server render shows the
18
- * right form at any width and hydration changes nothing.
19
- *
20
- * The root is an `inline-size` query container, so its width can't come
21
- * from its content: a layout placed where it would shrink to fit (an
22
- * inline-block, an absolutely positioned or floated box without a width,
23
- * a flex row item that doesn't grow) collapses to zero width. Give it a
24
- * width from its context, as a block or a stretched or growing flex item.
25
- *
26
- * Requires the SvelteKit runtime - it closes the aside from
27
- * `afterNavigate`. Without JS the stacked aside can't be opened, since the
28
- * toggle is client state; above the threshold it's always shown.
29
- *
30
- * The aside column is a plain `<div>`, not a landmark, as with `AppShell`'s
31
- * sidebar: render the landmark inside the `aside` snippet - a
32
- * `<nav aria-label>` for navigation links, or an `<aside aria-label>` for
33
- * other content.
34
- *
35
- * Styling hooks: `--column_width` (set from `column_width`) and
36
- * `--column_toggle_bg`, the stacked toggle bar's opaque background so
37
- * content scrolls under it unseen (default `--shade_00`, the page ground).
38
- *
39
- * @module
40
- */
41
- import { type Snippet } from 'svelte';
42
- import type { SvelteHTMLElements } from 'svelte/elements';
43
- type $$ComponentProps = SvelteHTMLElements['div'] & {
44
- aside: Snippet;
45
- children: Snippet;
46
- /**
47
- * CSS width of the fixed `aside` column.
48
- * @default '280px'
49
- */
50
- column_width?: string;
51
- /**
52
- * The stacked toggle's text.
53
- * @default 'menu'
54
- */
55
- toggle_label?: string;
56
- };
57
- declare const ColumnLayout: import("svelte").Component<$$ComponentProps, {}, "">;
58
- type ColumnLayout = ReturnType<typeof ColumnLayout>;
59
- export default ColumnLayout;
60
- //# sourceMappingURL=ColumnLayout.svelte.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ColumnLayout.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/ui/ColumnLayout.svelte"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCI;AACJ,OAAO,EAAQ,KAAK,OAAO,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAGzD,KAAK,gBAAgB,GAAI,kBAAkB,CAAC,KAAK,CAAC,GAAG;IACpD,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAmEH,QAAA,MAAM,YAAY,sDAAwC,CAAC;AAC3D,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACpD,eAAe,YAAY,CAAC"}
@@ -1,45 +0,0 @@
1
- <script lang="ts">
2
- /**
3
- * SvelteKit-aware navigation link. Resolves `path` via `resolve` from
4
- * `$app/paths`, then derives `selected` from `page.url.pathname` —
5
- * fires for both the exact page (`/admin/repos`) and any descendant
6
- * page (`/admin/repos/foo/log`). Exact matches additionally carry
7
- * `aria-current="page"` so CSS / assistive tech can distinguish
8
- * "this exact page" from "current section" when needed.
9
- *
10
- * The earlier `highlighted` flag (which fired only on the prefix-only
11
- * case) was dropped: in every practical use it sat next to `.selected`
12
- * with a near-identical visual treatment and just made callers compute
13
- * two booleans for what reads to users as one "you are here" state.
14
- * The `highlighted` *name* is now free for orthogonal emphasis (recent
15
- * activity, unread badges, search matches) — that's how `fuz_ui`'s
16
- * `DocsPageLinks` already uses it.
17
- *
18
- * @module
19
- */
20
-
21
- import type { Snippet } from 'svelte';
22
- import type { SvelteHTMLElements } from 'svelte/elements';
23
- import { page } from '$app/state';
24
- import { resolve } from '$app/paths';
25
- import type { OmitStrict } from '@fuzdev/fuz_util/types.ts';
26
-
27
- const {
28
- path,
29
- children,
30
- ...rest
31
- }: OmitStrict<SvelteHTMLElements['a'], 'href' | 'children'> & {
32
- /** Route path passed to `resolve` from `$app/paths` to compute `href`. */
33
- path: string;
34
- children?: Snippet;
35
- } = $props();
36
-
37
- const href = $derived(resolve(path as any));
38
- const is_exact = $derived(href === page.url.pathname);
39
- const selected = $derived(is_exact || page.url.pathname.startsWith(href + '/'));
40
- </script>
41
-
42
- <!-- eslint-disable-next-line svelte/no-navigation-without-resolve -->
43
- <a {href} class:selected aria-current={is_exact ? 'page' : undefined} {...rest}>
44
- {@render children?.()}
45
- </a>
@@ -1,30 +0,0 @@
1
- /**
2
- * SvelteKit-aware navigation link. Resolves `path` via `resolve` from
3
- * `$app/paths`, then derives `selected` from `page.url.pathname` —
4
- * fires for both the exact page (`/admin/repos`) and any descendant
5
- * page (`/admin/repos/foo/log`). Exact matches additionally carry
6
- * `aria-current="page"` so CSS / assistive tech can distinguish
7
- * "this exact page" from "current section" when needed.
8
- *
9
- * The earlier `highlighted` flag (which fired only on the prefix-only
10
- * case) was dropped: in every practical use it sat next to `.selected`
11
- * with a near-identical visual treatment and just made callers compute
12
- * two booleans for what reads to users as one "you are here" state.
13
- * The `highlighted` *name* is now free for orthogonal emphasis (recent
14
- * activity, unread badges, search matches) — that's how `fuz_ui`'s
15
- * `DocsPageLinks` already uses it.
16
- *
17
- * @module
18
- */
19
- import type { Snippet } from 'svelte';
20
- import type { SvelteHTMLElements } from 'svelte/elements';
21
- import type { OmitStrict } from '@fuzdev/fuz_util/types.ts';
22
- type $$ComponentProps = OmitStrict<SvelteHTMLElements['a'], 'href' | 'children'> & {
23
- /** Route path passed to `resolve` from `$app/paths` to compute `href`. */
24
- path: string;
25
- children?: Snippet;
26
- };
27
- declare const MenuLink: import("svelte").Component<$$ComponentProps, {}, "">;
28
- type MenuLink = ReturnType<typeof MenuLink>;
29
- export default MenuLink;
30
- //# sourceMappingURL=MenuLink.svelte.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MenuLink.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/ui/MenuLink.svelte"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;OAiBI;AACJ,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAG1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE3D,KAAK,gBAAgB,GAAI,UAAU,CAAC,kBAAkB,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,GAAG;IACnF,0EAA0E;IAC1E,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AA4BH,QAAA,MAAM,QAAQ,sDAAwC,CAAC;AACvD,KAAK,QAAQ,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAC5C,eAAe,QAAQ,CAAC"}
@@ -1,113 +0,0 @@
1
- /**
2
- * Reactive sidebar visibility state. Provisioned by `ui/AppShell.svelte` via
3
- * `sidebar_state_context`; consumers read `show_sidebar` and call
4
- * `toggle_sidebar` / `activate`.
5
- *
6
- * Visibility is two viewport-free fields — `show_sidebar_wide` (the persistent
7
- * sidebar beside the content) and `show_sidebar_narrow` (the overlay below
8
- * `narrow_query`) — so server and client render the same classes and CSS picks
9
- * which field is in effect. `narrow` reads the viewport and is only for input
10
- * handling and ARIA, never for markup that must match SSR.
11
- *
12
- * @module
13
- */
14
- /**
15
- * Default `narrow_query` — below 800px the sidebar overlays the content and
16
- * starts closed.
17
- */
18
- export declare const SIDEBAR_NARROW_QUERY_DEFAULT = "(max-width: 800px)";
19
- /**
20
- * Svelte context carrying a reactive `SidebarState` accessor. Set by
21
- * `ui/AppShell.svelte` (creates a fresh `SidebarState` if not supplied);
22
- * consumers call `sidebar_state_context.get()` to read or toggle visibility.
23
- */
24
- export declare const sidebar_state_context: {
25
- get: (error_message?: string) => () => SidebarState;
26
- get_maybe: () => (() => SidebarState) | undefined;
27
- set: (value: () => SidebarState) => () => SidebarState;
28
- };
29
- export interface SidebarStateOptions {
30
- /**
31
- * Reactive getter that controls whether the sidebar is enabled. When
32
- * supplied, overrides the internal `enabled` state — `show_sidebar`
33
- * auto-returns `false` while the getter returns `false`.
34
- */
35
- enabled?: () => boolean;
36
- /**
37
- * Media query under which the sidebar overlays the content and starts
38
- * closed. It feeds both `AppShell`'s CSS `media` attribute and a
39
- * `MediaQuery`, so it must be a full query with parentheses
40
- * (`'(max-width: 900px)'`, not `'max-width: 900px'`). `null` disables
41
- * narrow mode.
42
- * @default SIDEBAR_NARROW_QUERY_DEFAULT
43
- */
44
- narrow_query?: string | null;
45
- /**
46
- * The sidebar element's `id`. Set it when a toggle outside `AppShell` needs
47
- * `aria-controls` — the relationship closing the overlay also follows to
48
- * return focus when the opener didn't take it (Safari doesn't focus a
49
- * clicked button). Omitted, `AppShell` generates one, which only its own
50
- * toggle knows. Set, it assumes one shell per state: shells mounted at
51
- * the same time with this state would render the same id.
52
- */
53
- sidebar_id?: string;
54
- }
55
- export declare class SidebarState {
56
- #private;
57
- /** The media query for narrow mode, or `null` when narrow mode is disabled. */
58
- readonly narrow_query: string | null;
59
- /** The sidebar element's `id`, or `null` to let `AppShell` generate one. */
60
- readonly sidebar_id: string | null;
61
- /**
62
- * Whether the sidebar shows beside the content outside narrow mode — the
63
- * desktop preference. Narrow-mode interactions never touch it.
64
- */
65
- show_sidebar_wide: boolean;
66
- /** Whether the narrow-mode overlay is open. */
67
- show_sidebar_narrow: boolean;
68
- /**
69
- * Creates the state, subscribing to `narrow_query` unless it is `null`.
70
- *
71
- * @param options - enabled getter, narrow-mode query, and sidebar id
72
- * @throws Error in DEV when `narrow_query` has no parentheses — `MediaQuery`
73
- * would auto-wrap it but CSS `media` would not, so they'd disagree
74
- */
75
- constructor(options?: SidebarStateOptions);
76
- get enabled(): boolean;
77
- set enabled(value: boolean);
78
- /**
79
- * Whether the viewport matches `narrow_query`. Always `false` during SSR
80
- * and when `narrow_query` is `null`. Read it for input handling and ARIA
81
- * only — markup that must match the server render should key on
82
- * `show_sidebar_wide` / `show_sidebar_narrow` instead.
83
- */
84
- get narrow(): boolean;
85
- /**
86
- * Effective visibility for the current mode: `false` while disabled,
87
- * otherwise `show_sidebar_narrow` in narrow mode and `show_sidebar_wide`
88
- * outside it. The setter writes the current mode's field.
89
- */
90
- get show_sidebar(): boolean;
91
- set show_sidebar(value: boolean);
92
- /**
93
- * Sets the current mode's visibility, routed by `narrow` at call time.
94
- *
95
- * @param value - the new visibility, defaults to the inverse of `show_sidebar`
96
- */
97
- toggle_sidebar(value?: boolean): void;
98
- /**
99
- * Closes the narrow-mode overlay, leaving the wide preference untouched.
100
- * `AppShell` calls it on navigation, Escape, scrim click, and when the
101
- * viewport widens out of narrow mode.
102
- */
103
- close_narrow(): void;
104
- /**
105
- * Show the sidebar and enable the toggle. The returned disposer hides
106
- * and disables on cleanup — pair with `$effect` for scoped activation.
107
- *
108
- * @mutates `this` - sets `enabled` and `show_sidebar_wide`; the disposer
109
- * clears `enabled`, `show_sidebar_wide`, and `show_sidebar_narrow`
110
- */
111
- activate(): () => void;
112
- }
113
- //# sourceMappingURL=sidebar_state.svelte.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sidebar_state.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/ui/sidebar_state.svelte.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAMH;;;GAGG;AACH,eAAO,MAAM,4BAA4B,uBAAuB,CAAC;AAEjE;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;2CAAwB,YAAY;4BAAZ,YAAY;uBAAZ,YAAY,WAAZ,YAAY;CAAG,CAAC;AAE1E,MAAM,WAAW,mBAAmB;IACnC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC;IACxB;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,YAAY;;IACxB,+EAA+E;IAC/E,QAAQ,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAErC,4EAA4E;IAC5E,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC;;;OAGG;IACH,iBAAiB,EAAE,OAAO,CAAoB;IAE9C,+CAA+C;IAC/C,mBAAmB,EAAE,OAAO,CAAqB;IAMjD;;;;;;OAMG;gBACS,OAAO,CAAC,EAAE,mBAAmB;IAczC,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,IAAI,OAAO,CAAC,KAAK,EAAE,OAAO,EAEzB;IAED;;;;;OAKG;IACH,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED;;;;OAIG;IACH,IAAI,YAAY,IAAI,OAAO,CAG1B;IAED,IAAI,YAAY,CAAC,KAAK,EAAE,OAAO,EAM9B;IAED;;;;OAIG;IACH,cAAc,CAAC,KAAK,GAAE,OAA4B,GAAG,IAAI;IAIzD;;;;OAIG;IACH,YAAY,IAAI,IAAI;IAIpB;;;;;;OAMG;IACH,QAAQ,IAAI,MAAM,IAAI;CAStB"}
@@ -1,125 +0,0 @@
1
- /**
2
- * Reactive sidebar visibility state. Provisioned by `ui/AppShell.svelte` via
3
- * `sidebar_state_context`; consumers read `show_sidebar` and call
4
- * `toggle_sidebar` / `activate`.
5
- *
6
- * Visibility is two viewport-free fields — `show_sidebar_wide` (the persistent
7
- * sidebar beside the content) and `show_sidebar_narrow` (the overlay below
8
- * `narrow_query`) — so server and client render the same classes and CSS picks
9
- * which field is in effect. `narrow` reads the viewport and is only for input
10
- * handling and ARIA, never for markup that must match SSR.
11
- *
12
- * @module
13
- */
14
- import { DEV } from 'esm-env';
15
- import { MediaQuery } from 'svelte/reactivity';
16
- import { create_context } from '@fuzdev/fuz_ui/context_helpers.ts';
17
- /**
18
- * Default `narrow_query` — below 800px the sidebar overlays the content and
19
- * starts closed.
20
- */
21
- export const SIDEBAR_NARROW_QUERY_DEFAULT = '(max-width: 800px)';
22
- /**
23
- * Svelte context carrying a reactive `SidebarState` accessor. Set by
24
- * `ui/AppShell.svelte` (creates a fresh `SidebarState` if not supplied);
25
- * consumers call `sidebar_state_context.get()` to read or toggle visibility.
26
- */
27
- export const sidebar_state_context = create_context();
28
- export class SidebarState {
29
- /** The media query for narrow mode, or `null` when narrow mode is disabled. */
30
- narrow_query;
31
- /** The sidebar element's `id`, or `null` to let `AppShell` generate one. */
32
- sidebar_id;
33
- /**
34
- * Whether the sidebar shows beside the content outside narrow mode — the
35
- * desktop preference. Narrow-mode interactions never touch it.
36
- */
37
- show_sidebar_wide = $state.raw(true);
38
- /** Whether the narrow-mode overlay is open. */
39
- show_sidebar_narrow = $state.raw(false);
40
- #get_enabled;
41
- #enabled = $state.raw(true);
42
- #narrow_media;
43
- /**
44
- * Creates the state, subscribing to `narrow_query` unless it is `null`.
45
- *
46
- * @param options - enabled getter, narrow-mode query, and sidebar id
47
- * @throws Error in DEV when `narrow_query` has no parentheses — `MediaQuery`
48
- * would auto-wrap it but CSS `media` would not, so they'd disagree
49
- */
50
- constructor(options) {
51
- this.#get_enabled = options?.enabled;
52
- const narrow_query = options?.narrow_query === undefined ? SIDEBAR_NARROW_QUERY_DEFAULT : options.narrow_query;
53
- if (DEV && narrow_query !== null && !narrow_query.includes('(')) {
54
- throw new Error(`SidebarState narrow_query must include parentheses, got '${narrow_query}' — try '(${narrow_query})'`);
55
- }
56
- this.narrow_query = narrow_query;
57
- this.sidebar_id = options?.sidebar_id ?? null;
58
- this.#narrow_media = narrow_query === null ? null : new MediaQuery(narrow_query, false);
59
- }
60
- get enabled() {
61
- return this.#get_enabled?.() ?? this.#enabled;
62
- }
63
- set enabled(value) {
64
- this.#enabled = value;
65
- }
66
- /**
67
- * Whether the viewport matches `narrow_query`. Always `false` during SSR
68
- * and when `narrow_query` is `null`. Read it for input handling and ARIA
69
- * only — markup that must match the server render should key on
70
- * `show_sidebar_wide` / `show_sidebar_narrow` instead.
71
- */
72
- get narrow() {
73
- return this.#narrow_media?.current ?? false;
74
- }
75
- /**
76
- * Effective visibility for the current mode: `false` while disabled,
77
- * otherwise `show_sidebar_narrow` in narrow mode and `show_sidebar_wide`
78
- * outside it. The setter writes the current mode's field.
79
- */
80
- get show_sidebar() {
81
- if (!this.enabled)
82
- return false;
83
- return this.narrow ? this.show_sidebar_narrow : this.show_sidebar_wide;
84
- }
85
- set show_sidebar(value) {
86
- if (this.narrow) {
87
- this.show_sidebar_narrow = value;
88
- }
89
- else {
90
- this.show_sidebar_wide = value;
91
- }
92
- }
93
- /**
94
- * Sets the current mode's visibility, routed by `narrow` at call time.
95
- *
96
- * @param value - the new visibility, defaults to the inverse of `show_sidebar`
97
- */
98
- toggle_sidebar(value = !this.show_sidebar) {
99
- this.show_sidebar = value;
100
- }
101
- /**
102
- * Closes the narrow-mode overlay, leaving the wide preference untouched.
103
- * `AppShell` calls it on navigation, Escape, scrim click, and when the
104
- * viewport widens out of narrow mode.
105
- */
106
- close_narrow() {
107
- this.show_sidebar_narrow = false;
108
- }
109
- /**
110
- * Show the sidebar and enable the toggle. The returned disposer hides
111
- * and disables on cleanup — pair with `$effect` for scoped activation.
112
- *
113
- * @mutates `this` - sets `enabled` and `show_sidebar_wide`; the disposer
114
- * clears `enabled`, `show_sidebar_wide`, and `show_sidebar_narrow`
115
- */
116
- activate() {
117
- this.enabled = true;
118
- this.show_sidebar_wide = true;
119
- return () => {
120
- this.enabled = false;
121
- this.show_sidebar_wide = false;
122
- this.show_sidebar_narrow = false;
123
- };
124
- }
125
- }