@sjcx/vorma 0.0.0-pre.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 (168) hide show
  1. package/LICENSE +20 -0
  2. package/dist/build/assemble-artifacts.d.ts +23 -0
  3. package/dist/build/browser-contracts.d.ts +8 -0
  4. package/dist/build/bundle-client.d.ts +29 -0
  5. package/dist/build/cli.d.ts +2 -0
  6. package/dist/build/cli.js +1256 -0
  7. package/dist/build/client-inputs.d.ts +11 -0
  8. package/dist/build/client-output-hashing.d.ts +3 -0
  9. package/dist/build/client-public-urls.d.ts +20 -0
  10. package/dist/build/compare-text.d.ts +5 -0
  11. package/dist/build/compile-application.d.ts +40 -0
  12. package/dist/build/compile-server.d.ts +42 -0
  13. package/dist/build/contained-path.d.ts +29 -0
  14. package/dist/build/critical-css.d.ts +7 -0
  15. package/dist/build/css-public-assets.d.ts +15 -0
  16. package/dist/build/development-artifacts.d.ts +35 -0
  17. package/dist/build/development-browser-source.d.ts +3 -0
  18. package/dist/build/development-build.d.ts +30 -0
  19. package/dist/build/development-changes.d.ts +14 -0
  20. package/dist/build/development-client.d.ts +21 -0
  21. package/dist/build/development-generation.d.ts +20 -0
  22. package/dist/build/development-listener.d.ts +14 -0
  23. package/dist/build/development-patterns.d.ts +5 -0
  24. package/dist/build/development-protocol.d.ts +20 -0
  25. package/dist/build/development-server-process.d.ts +30 -0
  26. package/dist/build/development-sources.d.ts +23 -0
  27. package/dist/build/development-stylesheet.d.ts +15 -0
  28. package/dist/build/development-watcher.d.ts +15 -0
  29. package/dist/build/development-work.d.ts +32 -0
  30. package/dist/build/development.d.ts +3 -0
  31. package/dist/build/generate-application.d.ts +62 -0
  32. package/dist/build/index.d.ts +15 -0
  33. package/dist/build/index.js +2 -0
  34. package/dist/build/inspect-css-artifacts.d.ts +11 -0
  35. package/dist/build/inspect-projects.d.ts +69 -0
  36. package/dist/build/load-config.d.ts +56 -0
  37. package/dist/build/output-files.d.ts +8 -0
  38. package/dist/build/output-ownership.d.ts +21 -0
  39. package/dist/build/public-assets.d.ts +32 -0
  40. package/dist/build/publish-artifacts.d.ts +23 -0
  41. package/dist/build/render-client-contracts.d.ts +10 -0
  42. package/dist/build/render-client-transport.d.ts +11 -0
  43. package/dist/build/render-server-generated.d.ts +33 -0
  44. package/dist/build/render-source-text.d.ts +24 -0
  45. package/dist/build/render-types.d.ts +31 -0
  46. package/dist/build/resolve-config.d.ts +50 -0
  47. package/dist/build/source-layout.d.ts +24 -0
  48. package/dist/build/typescript-projects.d.ts +36 -0
  49. package/dist/build-JgARonaY.js +3214 -0
  50. package/dist/build-invocation-D7Fu8gBK.js +4 -0
  51. package/dist/client/assembly.d.ts +40 -0
  52. package/dist/client/browser-http-client.d.ts +10 -0
  53. package/dist/client/client-loaders.d.ts +93 -0
  54. package/dist/client/commit.d.ts +41 -0
  55. package/dist/client/contracts.d.ts +192 -0
  56. package/dist/client/core.d.ts +45 -0
  57. package/dist/client/development.d.ts +16 -0
  58. package/dist/client/document-recovery.d.ts +4 -0
  59. package/dist/client/endpoints.d.ts +54 -0
  60. package/dist/client/errors.d.ts +87 -0
  61. package/dist/client/freshness.d.ts +51 -0
  62. package/dist/client/head.d.ts +14 -0
  63. package/dist/client/history.d.ts +25 -0
  64. package/dist/client/index.d.ts +80 -0
  65. package/dist/client/index.js +150 -0
  66. package/dist/client/links.d.ts +48 -0
  67. package/dist/client/materialize.d.ts +21 -0
  68. package/dist/client/modules.d.ts +2 -0
  69. package/dist/client/navigation.d.ts +47 -0
  70. package/dist/client/payload.d.ts +54 -0
  71. package/dist/client/prefetch.d.ts +28 -0
  72. package/dist/client/prepare.d.ts +47 -0
  73. package/dist/client/projections.d.ts +26 -0
  74. package/dist/client/queries.d.ts +33 -0
  75. package/dist/client/react/application.d.ts +87 -0
  76. package/dist/client/react/hooks.d.ts +36 -0
  77. package/dist/client/react/index.d.ts +5 -0
  78. package/dist/client/react/index.js +3237 -0
  79. package/dist/client/react/link.d.ts +27 -0
  80. package/dist/client/react/view.d.ts +86 -0
  81. package/dist/client/request.d.ts +16 -0
  82. package/dist/client/route-context.d.ts +31 -0
  83. package/dist/client/route-matching.d.ts +22 -0
  84. package/dist/client/route-synchronization.d.ts +30 -0
  85. package/dist/client/route-url.d.ts +5 -0
  86. package/dist/client/runtime.d.ts +82 -0
  87. package/dist/client/scroll.d.ts +16 -0
  88. package/dist/client/services.d.ts +34 -0
  89. package/dist/client/state.d.ts +102 -0
  90. package/dist/client/static-assets.d.ts +3 -0
  91. package/dist/client/stylesheets.d.ts +7 -0
  92. package/dist/client/transport-type-entries.d.ts +2 -0
  93. package/dist/client/types.d.ts +152 -0
  94. package/dist/client/view-definition.d.ts +24 -0
  95. package/dist/client/work-indicator.d.ts +18 -0
  96. package/dist/compile-Me8EOyMK.js +870 -0
  97. package/dist/development-B_rxuwY7.js +128 -0
  98. package/dist/hash-set-BPx3iXec.js +141 -0
  99. package/dist/href-Cqyax8Y0.js +357 -0
  100. package/dist/materialize-DZ7VSLFk.js +739 -0
  101. package/dist/metadata-BoPKo-G2.js +32 -0
  102. package/dist/primitives/tasks/index.d.ts +1 -0
  103. package/dist/primitives/tasks/index.js +1 -0
  104. package/dist/route-context-CtY_9U_W.js +559 -0
  105. package/dist/route-matching-D_uSG2P9.js +33 -0
  106. package/dist/search-parse-0f7oqVsG.js +375 -0
  107. package/dist/server/config/index.d.ts +36 -0
  108. package/dist/server/config/index.js +30 -0
  109. package/dist/server/development/metadata.d.ts +11 -0
  110. package/dist/server/document.d.ts +37 -0
  111. package/dist/server/form-data.d.ts +21 -0
  112. package/dist/server/graph/compile.d.ts +118 -0
  113. package/dist/server/graph/declarations.d.ts +117 -0
  114. package/dist/server/graph/literal-error-tag.d.ts +14 -0
  115. package/dist/server/graph/pattern-conflicts.d.ts +36 -0
  116. package/dist/server/graph/search-schema.d.ts +13 -0
  117. package/dist/server/graph/transport-schema.d.ts +11 -0
  118. package/dist/server/index.d.ts +310 -0
  119. package/dist/server/index.js +2311 -0
  120. package/dist/server/public-assets.d.ts +18 -0
  121. package/dist/server/runtime/application.d.ts +15 -0
  122. package/dist/server/runtime/assets.d.ts +15 -0
  123. package/dist/server/runtime/context.d.ts +96 -0
  124. package/dist/server/runtime/domain-errors.d.ts +11 -0
  125. package/dist/server/runtime/effects.d.ts +83 -0
  126. package/dist/server/runtime/execute.d.ts +13 -0
  127. package/dist/server/runtime/finalize.d.ts +44 -0
  128. package/dist/server/runtime/handler.d.ts +106 -0
  129. package/dist/server/runtime/head.d.ts +22 -0
  130. package/dist/server/runtime/payload.d.ts +50 -0
  131. package/dist/server/runtime/pipeline.d.ts +27 -0
  132. package/dist/server/runtime/plan.d.ts +98 -0
  133. package/dist/server/runtime/render-document.d.ts +16 -0
  134. package/dist/server/runtime/startup-error.d.ts +11 -0
  135. package/dist/server/runtime/transport-type-entries.d.ts +2 -0
  136. package/dist/server/runtime/vercel-deployment.d.ts +2 -0
  137. package/dist/server/url-pathname.d.ts +13 -0
  138. package/dist/static-assets-BrH3O0M8.js +199 -0
  139. package/dist/universal/content-digest.d.ts +7 -0
  140. package/dist/universal/generated-types.d.ts +9 -0
  141. package/dist/universal/href.d.ts +17 -0
  142. package/dist/universal/http-method.d.ts +4 -0
  143. package/dist/universal/json-transport.d.ts +14 -0
  144. package/dist/universal/null-prototype-record.d.ts +7 -0
  145. package/dist/universal/path-wire.d.ts +71 -0
  146. package/dist/universal/pattern-language.d.ts +4 -0
  147. package/dist/universal/protocol-schemas.d.ts +99 -0
  148. package/dist/universal/protocol.d.ts +162 -0
  149. package/dist/universal/search-grammar.d.ts +7 -0
  150. package/dist/universal/search-parse.d.ts +22 -0
  151. package/dist/universal/search-serialize.d.ts +16 -0
  152. package/dist/universal/search-shape.d.ts +32 -0
  153. package/dist/universal/static-assets.d.ts +2 -0
  154. package/dist/universal/transport-types/big-decimal.d.ts +13 -0
  155. package/dist/universal/transport-types/chunk.d.ts +8 -0
  156. package/dist/universal/transport-types/date-time-utc.d.ts +13 -0
  157. package/dist/universal/transport-types/date-time-zoned.d.ts +13 -0
  158. package/dist/universal/transport-types/duration.d.ts +13 -0
  159. package/dist/universal/transport-types/hash-map.d.ts +8 -0
  160. package/dist/universal/transport-types/hash-set.d.ts +8 -0
  161. package/dist/universal/transport-types/option.d.ts +10 -0
  162. package/dist/universal/transport-types/redacted.d.ts +9 -0
  163. package/dist/universal/value-transport.d.ts +117 -0
  164. package/dist/value-transport-Bst4Hk-n.js +864 -0
  165. package/dist/vite/build-invocation.d.ts +4 -0
  166. package/dist/vite/index.d.ts +3 -0
  167. package/dist/vite/index.js +15 -0
  168. package/package.json +84 -0
package/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ MIT
2
+
3
+ Copyright 2023 Samuel J. Cook
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the “Software”), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,23 @@
1
+ import { Effect } from "effect";
2
+ import { type ProductionBuildMetadata } from "../universal/protocol.ts";
3
+ import type { ClientBundle } from "./bundle-client.ts";
4
+ import type { ApplicationGeneration } from "./generate-application.ts";
5
+ export type ApplicationArtifact = {
6
+ /** Relative to the published public directory, with decoded filenames. */
7
+ readonly fileName: string;
8
+ readonly url: string;
9
+ readonly digest: string;
10
+ readonly immutable: boolean;
11
+ };
12
+ export type ApplicationArtifacts = {
13
+ readonly metadata: ProductionBuildMetadata;
14
+ };
15
+ export type ArtifactAssemblyIssue = {
16
+ readonly _tag: "ArtifactAssemblyIssue";
17
+ readonly reason: string;
18
+ };
19
+ /** Joins published file metadata and checks paths, collisions, and module projections. */
20
+ export declare function assembleApplicationArtifacts(input: {
21
+ readonly generation: ApplicationGeneration;
22
+ readonly client: ClientBundle;
23
+ }): Effect.Effect<ApplicationArtifacts, ArtifactAssemblyIssue>;
@@ -0,0 +1,8 @@
1
+ import type { Schema } from "effect";
2
+ import type { InspectedProjects } from "./inspect-projects.ts";
3
+ /**
4
+ * The static contracts on which browser code and learned routing depend.
5
+ * Source locations, export names, and runtime implementations are not inputs.
6
+ * This projection is hashed during the build and is never sent to the browser.
7
+ */
8
+ export declare function projectBrowserContracts(inspection: InspectedProjects): Schema.Json;
@@ -0,0 +1,29 @@
1
+ import { Effect } from "effect";
2
+ import * as FileSystem from "effect/FileSystem";
3
+ import * as Path from "effect/Path";
4
+ import { type ClientModule, type ClientViewModule } from "../universal/protocol.ts";
5
+ import type { ApplicationGeneration } from "./generate-application.ts";
6
+ export type ClientBundleIssue = {
7
+ readonly _tag: "ClientBundleIssue";
8
+ readonly cause: unknown;
9
+ };
10
+ export type ClientBundle = {
11
+ readonly criticalCss: string;
12
+ readonly outputs: ReadonlyArray<{
13
+ readonly fileName: string;
14
+ readonly source: string | Uint8Array;
15
+ readonly immutable: boolean;
16
+ }>;
17
+ readonly chunks: ReadonlyArray<{
18
+ readonly fileName: string;
19
+ readonly sourceModules: ReadonlyArray<string>;
20
+ /** Each source module's rendered length in the chunk before minification, for byte attribution. */
21
+ readonly renderedLengths: Readonly<Record<string, number>>;
22
+ readonly imports: ReadonlyArray<string>;
23
+ readonly dynamicImports: ReadonlyArray<string>;
24
+ }>;
25
+ readonly clientEntry: ClientModule;
26
+ readonly clientViews: Readonly<Record<string, ClientViewModule>>;
27
+ };
28
+ /** Builds browser entries directly into Vorma's prepared public directory. */
29
+ export declare function bundleClient(generation: ApplicationGeneration): Effect.Effect<ClientBundle, ClientBundleIssue, FileSystem.FileSystem | Path.Path>;
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};