@valbuild/core 0.136.0 → 0.136.8
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.
- package/CHANGELOG.md +23 -0
- package/dist/declarations/src/extractValModules.d.ts +15 -0
- package/dist/declarations/src/index.d.ts +17 -4
- package/dist/{index-e4035f4d.cjs.prod.js → index-2545d3b4.cjs.prod.js} +68 -26
- package/dist/{index-84fa4a70.esm.js → index-962a8ac3.esm.js} +68 -27
- package/dist/{index-8a6c2682.cjs.dev.js → index-afbcf0ca.cjs.dev.js} +68 -26
- package/dist/valbuild-core.cjs.dev.js +2 -1
- package/dist/valbuild-core.cjs.prod.js +2 -1
- package/dist/valbuild-core.esm.js +1 -1
- package/package.json +1 -1
- package/patch/dist/valbuild-core-patch.cjs.dev.js +1 -1
- package/patch/dist/valbuild-core-patch.cjs.prod.js +1 -1
- package/patch/dist/valbuild-core-patch.esm.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @valbuild/core
|
|
2
2
|
|
|
3
|
+
## 0.136.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#737](https://github.com/valbuild/val/pull/737) [`35577be`](https://github.com/valbuild/val/commit/35577be50981fec35fc27ee9435a092a26909395) Thanks [@freekh](https://github.com/freekh)! - After a publish, the Studio no longer loses edits or applies a list reorder twice while the new build is rolling out.
|
|
8
|
+
|
|
9
|
+
The Studio shows the content built into the page it loaded, with the unpublished changes on top. Which changes those are comes from the server, and the server lists them relative to its own build. For a while after a publish the two can be different builds: a tab opened before the publish keeps its page, and a managed project's new build reaches each location up to a minute apart. The Studio then applied one build's list of changes to another build's content. Published edits went missing, or were applied a second time, which is invisible for a text replacement but reorders a list again, or removes the wrong item.
|
|
10
|
+
|
|
11
|
+
The server already says which build answered (`sourcesSha`), and the Studio now computes the same fingerprint for the content it holds. When the two differ, it fetches the answering build's content and puts it in place together with that build's list of changes, in one step, so nothing on screen shows a half-updated state. Going back to its own build needs no fetch. When they match, which is almost always, nothing extra is requested.
|
|
12
|
+
|
|
13
|
+
## 0.136.1
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [#716](https://github.com/valbuild/val/pull/716) [`d2f385a`](https://github.com/valbuild/val/commit/d2f385a04978992a5036379235e447ba7775faef) Thanks [@freekh](https://github.com/freekh)! - The Studio works again when served from the published package, and a managed project's publish now puts the saved edit on the site.
|
|
18
|
+
|
|
19
|
+
- **The Studio did not start in 0.136.0.** Its main bundle imports sibling chunks by relative path, and the Studio is served at `/api/val/static/<version>/app`, so those imports resolved to paths the handler did not know and came back as the HTML fallback — which a browser refuses as a module script. Preview was gone with it. The handler now serves those chunks, and the package build follows every import the bundle makes before it lets a release through.
|
|
20
|
+
- **The in-browser builder could not load.** The Studio's bundle carried rolldown's Node WASI binding, which throws `process is not defined` in a tab. It now uses the browser binding, and the build refuses a bundle that contains the Node one.
|
|
21
|
+
- **A managed publish builds what was just saved.** `/save` returns the source files the commit wrote, the Studio builds with them laid over the project's stored source, and publishes that source back with the build — so the next edit starts from this one rather than undoing it. The save's commit is also passed through to the build, which previously ran as though no commit had been made.
|
|
22
|
+
- **The bundler's WebAssembly is served from `content.val.build/v1/static`** (`DEFAULT_STATIC_HOST`), still addressed by its SHA-256. `globalThis.__VAL_ROLLDOWN_WASM_URL__` still overrides it.
|
|
23
|
+
- The `val.server.ts` that `@valbuild/tanstack-build` generates no longer hands a save's files to the platform (`platform.internal/__api/source`). A managed project's Studio builds in its own tab, and the platform has closed that door. `isWired` recognises files wired either way.
|
|
24
|
+
- `@valbuild/tanstack-build/constants` exports the contract paths and the artifact key namespace from an entrypoint that imports nothing else, for callers that must not load the bundler. The namespace gains a `source` key.
|
|
25
|
+
|
|
3
26
|
## 0.136.0
|
|
4
27
|
|
|
5
28
|
### Minor Changes
|
|
@@ -70,6 +70,21 @@ export type ValModuleShas = {
|
|
|
70
70
|
* exactly. That is the property the promotion relies on: only the modules whose
|
|
71
71
|
* source actually moved change anything.
|
|
72
72
|
*/
|
|
73
|
+
/**
|
|
74
|
+
* The `sourcesSha` fold on its own: path and source, in `val.modules` order.
|
|
75
|
+
*
|
|
76
|
+
* Separate from {@link computeValModuleShas} because the Studio needs it and
|
|
77
|
+
* has nothing else that fold takes. It is how a client tells whether the base
|
|
78
|
+
* it is showing is the base a server's `/stat` answer is relative to: the chain
|
|
79
|
+
* a server announces is the patches ITS build does not contain, so applying it
|
|
80
|
+
* to another build's source loses edits or applies them twice. Both sides call
|
|
81
|
+
* this one implementation, so the comparison is only ever between two runs of
|
|
82
|
+
* the same code.
|
|
83
|
+
*/
|
|
84
|
+
export declare function computeSourcesSha(entries: readonly {
|
|
85
|
+
path: string;
|
|
86
|
+
source: unknown;
|
|
87
|
+
}[]): string;
|
|
73
88
|
export declare function computeValModuleShas(config: ValModules["config"], entries: readonly ValModuleShaEntry[], moduleErrors: readonly ExtractedModuleError[]): ValModuleShas;
|
|
74
89
|
/**
|
|
75
90
|
* Extracts schemas and sources from a ValModules registry and computes the
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { initVal, type ConfigDirectory } from "./initVal.js";
|
|
2
2
|
export { modules, type ValModules } from "./modules.js";
|
|
3
|
-
export { extractValModules, computeValModuleShas, type ExtractedValModules, type ValModuleShaEntry, type ValModuleShas, type ExtractedModuleError, } from "./extractValModules.js";
|
|
3
|
+
export { extractValModules, computeValModuleShas, computeSourcesSha, type ExtractedValModules, type ValModuleShaEntry, type ValModuleShas, type ExtractedModuleError, } from "./extractValModules.js";
|
|
4
4
|
export type { InitVal, ValConfig, ValConstructor, ContentConstructor, } from "./initVal.js";
|
|
5
5
|
export { Schema, type SerializedSchema, type SelectorOfSchema } from "./schema/index.js";
|
|
6
6
|
export { hasRemoteFileSchema, hasMediaSchema, } from "./schema/hasRemoteFileSchema.js";
|
|
@@ -87,7 +87,8 @@ export type FatalErrorType = (typeof FATAL_ERROR_TYPES)[number];
|
|
|
87
87
|
export declare const DEFAULT_CONTENT_HOST = "https://content.val.build";
|
|
88
88
|
export declare const DEFAULT_APP_HOST = "https://admin.val.build";
|
|
89
89
|
/**
|
|
90
|
-
* Where Val's own immutable build artifacts are served from
|
|
90
|
+
* Where Val's own immutable build artifacts are served from: the content
|
|
91
|
+
* service's `/v1/static`.
|
|
91
92
|
*
|
|
92
93
|
* Only one kind of thing lives here so far: the WebAssembly binary of the
|
|
93
94
|
* bundler the Studio builds a site with. It cannot travel with the Studio's
|
|
@@ -95,11 +96,23 @@ export declare const DEFAULT_APP_HOST = "https://admin.val.build";
|
|
|
95
96
|
* TEXT inside the server bundle, which both corrupts it and would carry it
|
|
96
97
|
* into every project that installs `@valbuild/ui`.
|
|
97
98
|
*
|
|
98
|
-
* Everything under this
|
|
99
|
+
* Everything under this path is addressed by the SHA-256 of its own bytes, so
|
|
99
100
|
* an upload is idempotent, a URL is immutable, and the artifact a build asks
|
|
100
101
|
* for cannot be a different one than the build was made against.
|
|
102
|
+
*
|
|
103
|
+
* On content rather than a host of its own because a publish cannot happen
|
|
104
|
+
* without content anyway -- declare, upload, verify, promote, `/build-target`
|
|
105
|
+
* and `/project-source` all go through it -- so a separate host would add no
|
|
106
|
+
* availability and one more domain to every customer's egress allowlist.
|
|
107
|
+
*
|
|
108
|
+
* A FIXED LITERAL, and deliberately not derived from a project's configured
|
|
109
|
+
* content host (`VAL_CONTENT_URL`). Deriving it would make serving this binary
|
|
110
|
+
* an obligation of every content service anybody points Val at, self-hosted
|
|
111
|
+
* ones included. A deployment that must fetch it from somewhere else sets
|
|
112
|
+
* `globalThis.__VAL_ROLLDOWN_WASM_URL__` instead (see
|
|
113
|
+
* `packages/ui/build/rolldownWasm.ts`).
|
|
101
114
|
*/
|
|
102
|
-
export declare const DEFAULT_STATIC_HOST = "https://
|
|
115
|
+
export declare const DEFAULT_STATIC_HOST = "https://content.val.build/v1/static";
|
|
103
116
|
declare const Internal: {
|
|
104
117
|
VERSION: {
|
|
105
118
|
core: string;
|
|
@@ -12611,9 +12611,41 @@ function collectObjectRecursive(item, collector) {
|
|
|
12611
12611
|
* exactly. That is the property the promotion relies on: only the modules whose
|
|
12612
12612
|
* source actually moved change anything.
|
|
12613
12613
|
*/
|
|
12614
|
+
/**
|
|
12615
|
+
* The `sourcesSha` fold on its own: path and source, in `val.modules` order.
|
|
12616
|
+
*
|
|
12617
|
+
* Separate from {@link computeValModuleShas} because the Studio needs it and
|
|
12618
|
+
* has nothing else that fold takes. It is how a client tells whether the base
|
|
12619
|
+
* it is showing is the base a server's `/stat` answer is relative to: the chain
|
|
12620
|
+
* a server announces is the patches ITS build does not contain, so applying it
|
|
12621
|
+
* to another build's source loses edits or applies them twice. Both sides call
|
|
12622
|
+
* this one implementation, so the comparison is only ever between two runs of
|
|
12623
|
+
* the same code.
|
|
12624
|
+
*/
|
|
12625
|
+
function computeSourcesSha(entries) {
|
|
12626
|
+
var sourcesSha = "";
|
|
12627
|
+
var _iterator = result._createForOfIteratorHelper(entries),
|
|
12628
|
+
_step;
|
|
12629
|
+
try {
|
|
12630
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
12631
|
+
var _step$value = _step.value,
|
|
12632
|
+
path = _step$value.path,
|
|
12633
|
+
source = _step$value.source;
|
|
12634
|
+
sourcesSha = hash(sourcesSha + JSON.stringify({
|
|
12635
|
+
path: path,
|
|
12636
|
+
source: source
|
|
12637
|
+
}));
|
|
12638
|
+
}
|
|
12639
|
+
} catch (err) {
|
|
12640
|
+
_iterator.e(err);
|
|
12641
|
+
} finally {
|
|
12642
|
+
_iterator.f();
|
|
12643
|
+
}
|
|
12644
|
+
return sourcesSha;
|
|
12645
|
+
}
|
|
12614
12646
|
function computeValModuleShas(config, entries, moduleErrors) {
|
|
12615
12647
|
var configSha = hash(JSON.stringify(config));
|
|
12616
|
-
var sourcesSha =
|
|
12648
|
+
var sourcesSha = computeSourcesSha(entries);
|
|
12617
12649
|
var baseSha = configSha;
|
|
12618
12650
|
// NOTE: schemaSha is deliberately NOT seeded with configSha. It is compared
|
|
12619
12651
|
// across bundles (the server extracts from the Node bundle, the editor SPA
|
|
@@ -12624,18 +12656,14 @@ function computeValModuleShas(config, entries, moduleErrors) {
|
|
|
12624
12656
|
// server-only env vars and therefore `undefined` in the browser. Seeding with
|
|
12625
12657
|
// them made the two sides disagree on every production load.
|
|
12626
12658
|
var schemaSha = "";
|
|
12627
|
-
var
|
|
12628
|
-
|
|
12659
|
+
var _iterator2 = result._createForOfIteratorHelper(entries),
|
|
12660
|
+
_step2;
|
|
12629
12661
|
try {
|
|
12630
|
-
for (
|
|
12631
|
-
var entry =
|
|
12662
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
12663
|
+
var entry = _step2.value;
|
|
12632
12664
|
var path = entry.path,
|
|
12633
12665
|
source = entry.source,
|
|
12634
12666
|
serializedSchema = entry.serializedSchema;
|
|
12635
|
-
sourcesSha = hash(sourcesSha + JSON.stringify({
|
|
12636
|
-
path: path,
|
|
12637
|
-
source: source
|
|
12638
|
-
}));
|
|
12639
12667
|
baseSha = hash(baseSha + JSON.stringify({
|
|
12640
12668
|
path: path,
|
|
12641
12669
|
schema: serializedSchema,
|
|
@@ -12653,9 +12681,9 @@ function computeValModuleShas(config, entries, moduleErrors) {
|
|
|
12653
12681
|
}));
|
|
12654
12682
|
}
|
|
12655
12683
|
} catch (err) {
|
|
12656
|
-
|
|
12684
|
+
_iterator2.e(err);
|
|
12657
12685
|
} finally {
|
|
12658
|
-
|
|
12686
|
+
_iterator2.f();
|
|
12659
12687
|
}
|
|
12660
12688
|
return {
|
|
12661
12689
|
baseSha: baseSha,
|
|
@@ -12677,7 +12705,7 @@ function extractValModules(_x) {
|
|
|
12677
12705
|
}
|
|
12678
12706
|
function _extractValModules() {
|
|
12679
12707
|
_extractValModules = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(valModules) {
|
|
12680
|
-
var moduleErrors, addModuleError, sources, schemas, serializedSchemas, shaEntries, moduleIdx, module, at, value, path, schema, source, serializedSchema, pathM,
|
|
12708
|
+
var moduleErrors, addModuleError, sources, schemas, serializedSchemas, shaEntries, moduleIdx, module, at, value, path, schema, source, serializedSchema, pathM, _iterator3, _step3, error, _iterator4, _step4, _error, _t, _t2;
|
|
12681
12709
|
return _regenerator().w(function (_context) {
|
|
12682
12710
|
while (1) switch (_context.p = _context.n) {
|
|
12683
12711
|
case 0:
|
|
@@ -12824,10 +12852,10 @@ function _extractValModules() {
|
|
|
12824
12852
|
// Appended AFTER the loop on purpose: each entry's `moduleErrorsAt` is the
|
|
12825
12853
|
// error count at the time it was folded in, so the SHAs stay a function of
|
|
12826
12854
|
// the modules themselves.
|
|
12827
|
-
|
|
12855
|
+
_iterator3 = result._createForOfIteratorHelper(resolveSettingsModule(serializedSchemas).errors);
|
|
12828
12856
|
try {
|
|
12829
|
-
for (
|
|
12830
|
-
error =
|
|
12857
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
12858
|
+
error = _step3.value;
|
|
12831
12859
|
moduleErrors.push(error);
|
|
12832
12860
|
}
|
|
12833
12861
|
// Same kind of rule, same reason it is here: a view cycle is a property of the
|
|
@@ -12835,20 +12863,20 @@ function _extractValModules() {
|
|
|
12835
12863
|
// catches it either — a view stores a pointer, not content, so there is no
|
|
12836
12864
|
// data cycle for a source walk to trip over.
|
|
12837
12865
|
} catch (err) {
|
|
12838
|
-
|
|
12866
|
+
_iterator3.e(err);
|
|
12839
12867
|
} finally {
|
|
12840
|
-
|
|
12868
|
+
_iterator3.f();
|
|
12841
12869
|
}
|
|
12842
|
-
|
|
12870
|
+
_iterator4 = result._createForOfIteratorHelper(viewCycleErrors(serializedSchemas));
|
|
12843
12871
|
try {
|
|
12844
|
-
for (
|
|
12845
|
-
_error =
|
|
12872
|
+
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
12873
|
+
_error = _step4.value;
|
|
12846
12874
|
moduleErrors.push(_error);
|
|
12847
12875
|
}
|
|
12848
12876
|
} catch (err) {
|
|
12849
|
-
|
|
12877
|
+
_iterator4.e(err);
|
|
12850
12878
|
} finally {
|
|
12851
|
-
|
|
12879
|
+
_iterator4.f();
|
|
12852
12880
|
}
|
|
12853
12881
|
return _context.a(2, _objectSpread2(_objectSpread2({
|
|
12854
12882
|
sources: sources,
|
|
@@ -14167,7 +14195,7 @@ function isPageRouter(routerId) {
|
|
|
14167
14195
|
|
|
14168
14196
|
var corePackageJson = {
|
|
14169
14197
|
name: "@valbuild/core",
|
|
14170
|
-
version: "0.136.
|
|
14198
|
+
version: "0.136.8",
|
|
14171
14199
|
"private": false,
|
|
14172
14200
|
description: "Val - supercharged hard-coded content",
|
|
14173
14201
|
repository: {
|
|
@@ -14226,7 +14254,8 @@ var FATAL_ERROR_TYPES = ["no-schema", "no-source", "invalid-id", "no-module", "i
|
|
|
14226
14254
|
var DEFAULT_CONTENT_HOST = "https://content.val.build";
|
|
14227
14255
|
var DEFAULT_APP_HOST = "https://admin.val.build";
|
|
14228
14256
|
/**
|
|
14229
|
-
* Where Val's own immutable build artifacts are served from
|
|
14257
|
+
* Where Val's own immutable build artifacts are served from: the content
|
|
14258
|
+
* service's `/v1/static`.
|
|
14230
14259
|
*
|
|
14231
14260
|
* Only one kind of thing lives here so far: the WebAssembly binary of the
|
|
14232
14261
|
* bundler the Studio builds a site with. It cannot travel with the Studio's
|
|
@@ -14234,11 +14263,23 @@ var DEFAULT_APP_HOST = "https://admin.val.build";
|
|
|
14234
14263
|
* TEXT inside the server bundle, which both corrupts it and would carry it
|
|
14235
14264
|
* into every project that installs `@valbuild/ui`.
|
|
14236
14265
|
*
|
|
14237
|
-
* Everything under this
|
|
14266
|
+
* Everything under this path is addressed by the SHA-256 of its own bytes, so
|
|
14238
14267
|
* an upload is idempotent, a URL is immutable, and the artifact a build asks
|
|
14239
14268
|
* for cannot be a different one than the build was made against.
|
|
14269
|
+
*
|
|
14270
|
+
* On content rather than a host of its own because a publish cannot happen
|
|
14271
|
+
* without content anyway -- declare, upload, verify, promote, `/build-target`
|
|
14272
|
+
* and `/project-source` all go through it -- so a separate host would add no
|
|
14273
|
+
* availability and one more domain to every customer's egress allowlist.
|
|
14274
|
+
*
|
|
14275
|
+
* A FIXED LITERAL, and deliberately not derived from a project's configured
|
|
14276
|
+
* content host (`VAL_CONTENT_URL`). Deriving it would make serving this binary
|
|
14277
|
+
* an obligation of every content service anybody points Val at, self-hosted
|
|
14278
|
+
* ones included. A deployment that must fetch it from somewhere else sets
|
|
14279
|
+
* `globalThis.__VAL_ROLLDOWN_WASM_URL__` instead (see
|
|
14280
|
+
* `packages/ui/build/rolldownWasm.ts`).
|
|
14240
14281
|
*/
|
|
14241
|
-
var DEFAULT_STATIC_HOST = "https://
|
|
14282
|
+
var DEFAULT_STATIC_HOST = "https://content.val.build/v1/static";
|
|
14242
14283
|
var Internal = {
|
|
14243
14284
|
VERSION: {
|
|
14244
14285
|
core: corePackageJson.version
|
|
@@ -14406,6 +14447,7 @@ exports._slicedToArray = _slicedToArray;
|
|
|
14406
14447
|
exports._toConsumableArray = _toConsumableArray;
|
|
14407
14448
|
exports._typeof = _typeof;
|
|
14408
14449
|
exports.assistantAvailability = assistantAvailability;
|
|
14450
|
+
exports.computeSourcesSha = computeSourcesSha;
|
|
14409
14451
|
exports.computeValModuleShas = computeValModuleShas;
|
|
14410
14452
|
exports.declaredKeySetOf = declaredKeySetOf;
|
|
14411
14453
|
exports.derefPatch = derefPatch;
|
|
@@ -12609,9 +12609,41 @@ function collectObjectRecursive(item, collector) {
|
|
|
12609
12609
|
* exactly. That is the property the promotion relies on: only the modules whose
|
|
12610
12610
|
* source actually moved change anything.
|
|
12611
12611
|
*/
|
|
12612
|
+
/**
|
|
12613
|
+
* The `sourcesSha` fold on its own: path and source, in `val.modules` order.
|
|
12614
|
+
*
|
|
12615
|
+
* Separate from {@link computeValModuleShas} because the Studio needs it and
|
|
12616
|
+
* has nothing else that fold takes. It is how a client tells whether the base
|
|
12617
|
+
* it is showing is the base a server's `/stat` answer is relative to: the chain
|
|
12618
|
+
* a server announces is the patches ITS build does not contain, so applying it
|
|
12619
|
+
* to another build's source loses edits or applies them twice. Both sides call
|
|
12620
|
+
* this one implementation, so the comparison is only ever between two runs of
|
|
12621
|
+
* the same code.
|
|
12622
|
+
*/
|
|
12623
|
+
function computeSourcesSha(entries) {
|
|
12624
|
+
var sourcesSha = "";
|
|
12625
|
+
var _iterator = _createForOfIteratorHelper(entries),
|
|
12626
|
+
_step;
|
|
12627
|
+
try {
|
|
12628
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
12629
|
+
var _step$value = _step.value,
|
|
12630
|
+
path = _step$value.path,
|
|
12631
|
+
source = _step$value.source;
|
|
12632
|
+
sourcesSha = hash(sourcesSha + JSON.stringify({
|
|
12633
|
+
path: path,
|
|
12634
|
+
source: source
|
|
12635
|
+
}));
|
|
12636
|
+
}
|
|
12637
|
+
} catch (err) {
|
|
12638
|
+
_iterator.e(err);
|
|
12639
|
+
} finally {
|
|
12640
|
+
_iterator.f();
|
|
12641
|
+
}
|
|
12642
|
+
return sourcesSha;
|
|
12643
|
+
}
|
|
12612
12644
|
function computeValModuleShas(config, entries, moduleErrors) {
|
|
12613
12645
|
var configSha = hash(JSON.stringify(config));
|
|
12614
|
-
var sourcesSha =
|
|
12646
|
+
var sourcesSha = computeSourcesSha(entries);
|
|
12615
12647
|
var baseSha = configSha;
|
|
12616
12648
|
// NOTE: schemaSha is deliberately NOT seeded with configSha. It is compared
|
|
12617
12649
|
// across bundles (the server extracts from the Node bundle, the editor SPA
|
|
@@ -12622,18 +12654,14 @@ function computeValModuleShas(config, entries, moduleErrors) {
|
|
|
12622
12654
|
// server-only env vars and therefore `undefined` in the browser. Seeding with
|
|
12623
12655
|
// them made the two sides disagree on every production load.
|
|
12624
12656
|
var schemaSha = "";
|
|
12625
|
-
var
|
|
12626
|
-
|
|
12657
|
+
var _iterator2 = _createForOfIteratorHelper(entries),
|
|
12658
|
+
_step2;
|
|
12627
12659
|
try {
|
|
12628
|
-
for (
|
|
12629
|
-
var entry =
|
|
12660
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
12661
|
+
var entry = _step2.value;
|
|
12630
12662
|
var path = entry.path,
|
|
12631
12663
|
source = entry.source,
|
|
12632
12664
|
serializedSchema = entry.serializedSchema;
|
|
12633
|
-
sourcesSha = hash(sourcesSha + JSON.stringify({
|
|
12634
|
-
path: path,
|
|
12635
|
-
source: source
|
|
12636
|
-
}));
|
|
12637
12665
|
baseSha = hash(baseSha + JSON.stringify({
|
|
12638
12666
|
path: path,
|
|
12639
12667
|
schema: serializedSchema,
|
|
@@ -12651,9 +12679,9 @@ function computeValModuleShas(config, entries, moduleErrors) {
|
|
|
12651
12679
|
}));
|
|
12652
12680
|
}
|
|
12653
12681
|
} catch (err) {
|
|
12654
|
-
|
|
12682
|
+
_iterator2.e(err);
|
|
12655
12683
|
} finally {
|
|
12656
|
-
|
|
12684
|
+
_iterator2.f();
|
|
12657
12685
|
}
|
|
12658
12686
|
return {
|
|
12659
12687
|
baseSha: baseSha,
|
|
@@ -12675,7 +12703,7 @@ function extractValModules(_x) {
|
|
|
12675
12703
|
}
|
|
12676
12704
|
function _extractValModules() {
|
|
12677
12705
|
_extractValModules = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(valModules) {
|
|
12678
|
-
var moduleErrors, addModuleError, sources, schemas, serializedSchemas, shaEntries, moduleIdx, module, at, value, path, schema, source, serializedSchema, pathM,
|
|
12706
|
+
var moduleErrors, addModuleError, sources, schemas, serializedSchemas, shaEntries, moduleIdx, module, at, value, path, schema, source, serializedSchema, pathM, _iterator3, _step3, error, _iterator4, _step4, _error, _t, _t2;
|
|
12679
12707
|
return _regenerator().w(function (_context) {
|
|
12680
12708
|
while (1) switch (_context.p = _context.n) {
|
|
12681
12709
|
case 0:
|
|
@@ -12822,10 +12850,10 @@ function _extractValModules() {
|
|
|
12822
12850
|
// Appended AFTER the loop on purpose: each entry's `moduleErrorsAt` is the
|
|
12823
12851
|
// error count at the time it was folded in, so the SHAs stay a function of
|
|
12824
12852
|
// the modules themselves.
|
|
12825
|
-
|
|
12853
|
+
_iterator3 = _createForOfIteratorHelper(resolveSettingsModule(serializedSchemas).errors);
|
|
12826
12854
|
try {
|
|
12827
|
-
for (
|
|
12828
|
-
error =
|
|
12855
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
12856
|
+
error = _step3.value;
|
|
12829
12857
|
moduleErrors.push(error);
|
|
12830
12858
|
}
|
|
12831
12859
|
// Same kind of rule, same reason it is here: a view cycle is a property of the
|
|
@@ -12833,20 +12861,20 @@ function _extractValModules() {
|
|
|
12833
12861
|
// catches it either — a view stores a pointer, not content, so there is no
|
|
12834
12862
|
// data cycle for a source walk to trip over.
|
|
12835
12863
|
} catch (err) {
|
|
12836
|
-
|
|
12864
|
+
_iterator3.e(err);
|
|
12837
12865
|
} finally {
|
|
12838
|
-
|
|
12866
|
+
_iterator3.f();
|
|
12839
12867
|
}
|
|
12840
|
-
|
|
12868
|
+
_iterator4 = _createForOfIteratorHelper(viewCycleErrors(serializedSchemas));
|
|
12841
12869
|
try {
|
|
12842
|
-
for (
|
|
12843
|
-
_error =
|
|
12870
|
+
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
12871
|
+
_error = _step4.value;
|
|
12844
12872
|
moduleErrors.push(_error);
|
|
12845
12873
|
}
|
|
12846
12874
|
} catch (err) {
|
|
12847
|
-
|
|
12875
|
+
_iterator4.e(err);
|
|
12848
12876
|
} finally {
|
|
12849
|
-
|
|
12877
|
+
_iterator4.f();
|
|
12850
12878
|
}
|
|
12851
12879
|
return _context.a(2, _objectSpread2(_objectSpread2({
|
|
12852
12880
|
sources: sources,
|
|
@@ -14165,7 +14193,7 @@ function isPageRouter(routerId) {
|
|
|
14165
14193
|
|
|
14166
14194
|
var corePackageJson = {
|
|
14167
14195
|
name: "@valbuild/core",
|
|
14168
|
-
version: "0.136.
|
|
14196
|
+
version: "0.136.8",
|
|
14169
14197
|
"private": false,
|
|
14170
14198
|
description: "Val - supercharged hard-coded content",
|
|
14171
14199
|
repository: {
|
|
@@ -14224,7 +14252,8 @@ var FATAL_ERROR_TYPES = ["no-schema", "no-source", "invalid-id", "no-module", "i
|
|
|
14224
14252
|
var DEFAULT_CONTENT_HOST = "https://content.val.build";
|
|
14225
14253
|
var DEFAULT_APP_HOST = "https://admin.val.build";
|
|
14226
14254
|
/**
|
|
14227
|
-
* Where Val's own immutable build artifacts are served from
|
|
14255
|
+
* Where Val's own immutable build artifacts are served from: the content
|
|
14256
|
+
* service's `/v1/static`.
|
|
14228
14257
|
*
|
|
14229
14258
|
* Only one kind of thing lives here so far: the WebAssembly binary of the
|
|
14230
14259
|
* bundler the Studio builds a site with. It cannot travel with the Studio's
|
|
@@ -14232,11 +14261,23 @@ var DEFAULT_APP_HOST = "https://admin.val.build";
|
|
|
14232
14261
|
* TEXT inside the server bundle, which both corrupts it and would carry it
|
|
14233
14262
|
* into every project that installs `@valbuild/ui`.
|
|
14234
14263
|
*
|
|
14235
|
-
* Everything under this
|
|
14264
|
+
* Everything under this path is addressed by the SHA-256 of its own bytes, so
|
|
14236
14265
|
* an upload is idempotent, a URL is immutable, and the artifact a build asks
|
|
14237
14266
|
* for cannot be a different one than the build was made against.
|
|
14267
|
+
*
|
|
14268
|
+
* On content rather than a host of its own because a publish cannot happen
|
|
14269
|
+
* without content anyway -- declare, upload, verify, promote, `/build-target`
|
|
14270
|
+
* and `/project-source` all go through it -- so a separate host would add no
|
|
14271
|
+
* availability and one more domain to every customer's egress allowlist.
|
|
14272
|
+
*
|
|
14273
|
+
* A FIXED LITERAL, and deliberately not derived from a project's configured
|
|
14274
|
+
* content host (`VAL_CONTENT_URL`). Deriving it would make serving this binary
|
|
14275
|
+
* an obligation of every content service anybody points Val at, self-hosted
|
|
14276
|
+
* ones included. A deployment that must fetch it from somewhere else sets
|
|
14277
|
+
* `globalThis.__VAL_ROLLDOWN_WASM_URL__` instead (see
|
|
14278
|
+
* `packages/ui/build/rolldownWasm.ts`).
|
|
14238
14279
|
*/
|
|
14239
|
-
var DEFAULT_STATIC_HOST = "https://
|
|
14280
|
+
var DEFAULT_STATIC_HOST = "https://content.val.build/v1/static";
|
|
14240
14281
|
var Internal = {
|
|
14241
14282
|
VERSION: {
|
|
14242
14283
|
core: corePackageJson.version
|
|
@@ -14358,4 +14399,4 @@ function tryJsonParse(str) {
|
|
|
14358
14399
|
}
|
|
14359
14400
|
}
|
|
14360
14401
|
|
|
14361
|
-
export {
|
|
14402
|
+
export { DEFAULT_COLOR_FORMAT as $, ArraySchema as A, BooleanSchema as B, isRootModuleFilePath as C, DEFAULT_CONTENT_HOST as D, resolveSettingsModule as E, FATAL_ERROR_TYPES as F, GenericSelector as G, localeTagError as H, Internal as I, localeOfValue as J, declaredKeySetOf as K, LocaleSchema as L, ModuleFilePathSep as M, NumberSchema as N, ObjectSchema as O, PatchError as P, missingDeclaredKeys as Q, RecordSchema as R, Schema as S, THEME_LOGO_DIRECTORY as T, discriminatedUnionBranchOf as U, VAL_EXTENSION as V, ColorSchema as W, CodeSchema as X, CODE_LANGUAGES as Y, COLOR_FORMATS as Z, _typeof as _, _slicedToArray as a, DateTimeSchema as a0, KeyOfSchema as a1, ValViewSchema as a2, isValViewSource as a3, RouteSchema as a4, RichTextSchema as a5, DiscriminatedUnionSchema as a6, EnumSchema as a7, LiteralSchema as a8, deserializeSchema as a9, previewScope as aa, isInlineRender as ab, parseNextJsRoutePattern as ac, parseTanStackRoutePattern as ad, tanStackSegmentsOfRoutePath as ae, validateUrlAgainstPattern as af, getSourcePathFromRoute as ag, isPageRouter as ah, _createClass as b, _classCallCheck as c, _toConsumableArray as d, DEFAULT_APP_HOST as e, DEFAULT_STATIC_HOST as f, extractValModules as g, computeValModuleShas as h, initVal as i, computeSourcesSha as j, hasRemoteFileSchema as k, hasMediaSchema as l, modules as m, DEFAULT_VAL_REMOTE_HOST as n, derefPatch as o, StringSchema as p, ImageSchema as q, FileSchema as r, splitModuleFilePathAndModulePath as s, DateSchema as t, SettingsSchema as u, ASSISTANT_SETTINGS_MAX_LENGTH as v, THEME_RADIUS_STEPS as w, THEME_RADIUS_LENGTHS as x, assistantAvailability as y, SETTINGS_MODULE_CONVENTION as z };
|
|
@@ -12611,9 +12611,41 @@ function collectObjectRecursive(item, collector) {
|
|
|
12611
12611
|
* exactly. That is the property the promotion relies on: only the modules whose
|
|
12612
12612
|
* source actually moved change anything.
|
|
12613
12613
|
*/
|
|
12614
|
+
/**
|
|
12615
|
+
* The `sourcesSha` fold on its own: path and source, in `val.modules` order.
|
|
12616
|
+
*
|
|
12617
|
+
* Separate from {@link computeValModuleShas} because the Studio needs it and
|
|
12618
|
+
* has nothing else that fold takes. It is how a client tells whether the base
|
|
12619
|
+
* it is showing is the base a server's `/stat` answer is relative to: the chain
|
|
12620
|
+
* a server announces is the patches ITS build does not contain, so applying it
|
|
12621
|
+
* to another build's source loses edits or applies them twice. Both sides call
|
|
12622
|
+
* this one implementation, so the comparison is only ever between two runs of
|
|
12623
|
+
* the same code.
|
|
12624
|
+
*/
|
|
12625
|
+
function computeSourcesSha(entries) {
|
|
12626
|
+
var sourcesSha = "";
|
|
12627
|
+
var _iterator = result._createForOfIteratorHelper(entries),
|
|
12628
|
+
_step;
|
|
12629
|
+
try {
|
|
12630
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
12631
|
+
var _step$value = _step.value,
|
|
12632
|
+
path = _step$value.path,
|
|
12633
|
+
source = _step$value.source;
|
|
12634
|
+
sourcesSha = hash(sourcesSha + JSON.stringify({
|
|
12635
|
+
path: path,
|
|
12636
|
+
source: source
|
|
12637
|
+
}));
|
|
12638
|
+
}
|
|
12639
|
+
} catch (err) {
|
|
12640
|
+
_iterator.e(err);
|
|
12641
|
+
} finally {
|
|
12642
|
+
_iterator.f();
|
|
12643
|
+
}
|
|
12644
|
+
return sourcesSha;
|
|
12645
|
+
}
|
|
12614
12646
|
function computeValModuleShas(config, entries, moduleErrors) {
|
|
12615
12647
|
var configSha = hash(JSON.stringify(config));
|
|
12616
|
-
var sourcesSha =
|
|
12648
|
+
var sourcesSha = computeSourcesSha(entries);
|
|
12617
12649
|
var baseSha = configSha;
|
|
12618
12650
|
// NOTE: schemaSha is deliberately NOT seeded with configSha. It is compared
|
|
12619
12651
|
// across bundles (the server extracts from the Node bundle, the editor SPA
|
|
@@ -12624,18 +12656,14 @@ function computeValModuleShas(config, entries, moduleErrors) {
|
|
|
12624
12656
|
// server-only env vars and therefore `undefined` in the browser. Seeding with
|
|
12625
12657
|
// them made the two sides disagree on every production load.
|
|
12626
12658
|
var schemaSha = "";
|
|
12627
|
-
var
|
|
12628
|
-
|
|
12659
|
+
var _iterator2 = result._createForOfIteratorHelper(entries),
|
|
12660
|
+
_step2;
|
|
12629
12661
|
try {
|
|
12630
|
-
for (
|
|
12631
|
-
var entry =
|
|
12662
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
12663
|
+
var entry = _step2.value;
|
|
12632
12664
|
var path = entry.path,
|
|
12633
12665
|
source = entry.source,
|
|
12634
12666
|
serializedSchema = entry.serializedSchema;
|
|
12635
|
-
sourcesSha = hash(sourcesSha + JSON.stringify({
|
|
12636
|
-
path: path,
|
|
12637
|
-
source: source
|
|
12638
|
-
}));
|
|
12639
12667
|
baseSha = hash(baseSha + JSON.stringify({
|
|
12640
12668
|
path: path,
|
|
12641
12669
|
schema: serializedSchema,
|
|
@@ -12653,9 +12681,9 @@ function computeValModuleShas(config, entries, moduleErrors) {
|
|
|
12653
12681
|
}));
|
|
12654
12682
|
}
|
|
12655
12683
|
} catch (err) {
|
|
12656
|
-
|
|
12684
|
+
_iterator2.e(err);
|
|
12657
12685
|
} finally {
|
|
12658
|
-
|
|
12686
|
+
_iterator2.f();
|
|
12659
12687
|
}
|
|
12660
12688
|
return {
|
|
12661
12689
|
baseSha: baseSha,
|
|
@@ -12677,7 +12705,7 @@ function extractValModules(_x) {
|
|
|
12677
12705
|
}
|
|
12678
12706
|
function _extractValModules() {
|
|
12679
12707
|
_extractValModules = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(valModules) {
|
|
12680
|
-
var moduleErrors, addModuleError, sources, schemas, serializedSchemas, shaEntries, moduleIdx, module, at, value, path, schema, source, serializedSchema, pathM,
|
|
12708
|
+
var moduleErrors, addModuleError, sources, schemas, serializedSchemas, shaEntries, moduleIdx, module, at, value, path, schema, source, serializedSchema, pathM, _iterator3, _step3, error, _iterator4, _step4, _error, _t, _t2;
|
|
12681
12709
|
return _regenerator().w(function (_context) {
|
|
12682
12710
|
while (1) switch (_context.p = _context.n) {
|
|
12683
12711
|
case 0:
|
|
@@ -12824,10 +12852,10 @@ function _extractValModules() {
|
|
|
12824
12852
|
// Appended AFTER the loop on purpose: each entry's `moduleErrorsAt` is the
|
|
12825
12853
|
// error count at the time it was folded in, so the SHAs stay a function of
|
|
12826
12854
|
// the modules themselves.
|
|
12827
|
-
|
|
12855
|
+
_iterator3 = result._createForOfIteratorHelper(resolveSettingsModule(serializedSchemas).errors);
|
|
12828
12856
|
try {
|
|
12829
|
-
for (
|
|
12830
|
-
error =
|
|
12857
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
12858
|
+
error = _step3.value;
|
|
12831
12859
|
moduleErrors.push(error);
|
|
12832
12860
|
}
|
|
12833
12861
|
// Same kind of rule, same reason it is here: a view cycle is a property of the
|
|
@@ -12835,20 +12863,20 @@ function _extractValModules() {
|
|
|
12835
12863
|
// catches it either — a view stores a pointer, not content, so there is no
|
|
12836
12864
|
// data cycle for a source walk to trip over.
|
|
12837
12865
|
} catch (err) {
|
|
12838
|
-
|
|
12866
|
+
_iterator3.e(err);
|
|
12839
12867
|
} finally {
|
|
12840
|
-
|
|
12868
|
+
_iterator3.f();
|
|
12841
12869
|
}
|
|
12842
|
-
|
|
12870
|
+
_iterator4 = result._createForOfIteratorHelper(viewCycleErrors(serializedSchemas));
|
|
12843
12871
|
try {
|
|
12844
|
-
for (
|
|
12845
|
-
_error =
|
|
12872
|
+
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
12873
|
+
_error = _step4.value;
|
|
12846
12874
|
moduleErrors.push(_error);
|
|
12847
12875
|
}
|
|
12848
12876
|
} catch (err) {
|
|
12849
|
-
|
|
12877
|
+
_iterator4.e(err);
|
|
12850
12878
|
} finally {
|
|
12851
|
-
|
|
12879
|
+
_iterator4.f();
|
|
12852
12880
|
}
|
|
12853
12881
|
return _context.a(2, _objectSpread2(_objectSpread2({
|
|
12854
12882
|
sources: sources,
|
|
@@ -14167,7 +14195,7 @@ function isPageRouter(routerId) {
|
|
|
14167
14195
|
|
|
14168
14196
|
var corePackageJson = {
|
|
14169
14197
|
name: "@valbuild/core",
|
|
14170
|
-
version: "0.136.
|
|
14198
|
+
version: "0.136.8",
|
|
14171
14199
|
"private": false,
|
|
14172
14200
|
description: "Val - supercharged hard-coded content",
|
|
14173
14201
|
repository: {
|
|
@@ -14226,7 +14254,8 @@ var FATAL_ERROR_TYPES = ["no-schema", "no-source", "invalid-id", "no-module", "i
|
|
|
14226
14254
|
var DEFAULT_CONTENT_HOST = "https://content.val.build";
|
|
14227
14255
|
var DEFAULT_APP_HOST = "https://admin.val.build";
|
|
14228
14256
|
/**
|
|
14229
|
-
* Where Val's own immutable build artifacts are served from
|
|
14257
|
+
* Where Val's own immutable build artifacts are served from: the content
|
|
14258
|
+
* service's `/v1/static`.
|
|
14230
14259
|
*
|
|
14231
14260
|
* Only one kind of thing lives here so far: the WebAssembly binary of the
|
|
14232
14261
|
* bundler the Studio builds a site with. It cannot travel with the Studio's
|
|
@@ -14234,11 +14263,23 @@ var DEFAULT_APP_HOST = "https://admin.val.build";
|
|
|
14234
14263
|
* TEXT inside the server bundle, which both corrupts it and would carry it
|
|
14235
14264
|
* into every project that installs `@valbuild/ui`.
|
|
14236
14265
|
*
|
|
14237
|
-
* Everything under this
|
|
14266
|
+
* Everything under this path is addressed by the SHA-256 of its own bytes, so
|
|
14238
14267
|
* an upload is idempotent, a URL is immutable, and the artifact a build asks
|
|
14239
14268
|
* for cannot be a different one than the build was made against.
|
|
14269
|
+
*
|
|
14270
|
+
* On content rather than a host of its own because a publish cannot happen
|
|
14271
|
+
* without content anyway -- declare, upload, verify, promote, `/build-target`
|
|
14272
|
+
* and `/project-source` all go through it -- so a separate host would add no
|
|
14273
|
+
* availability and one more domain to every customer's egress allowlist.
|
|
14274
|
+
*
|
|
14275
|
+
* A FIXED LITERAL, and deliberately not derived from a project's configured
|
|
14276
|
+
* content host (`VAL_CONTENT_URL`). Deriving it would make serving this binary
|
|
14277
|
+
* an obligation of every content service anybody points Val at, self-hosted
|
|
14278
|
+
* ones included. A deployment that must fetch it from somewhere else sets
|
|
14279
|
+
* `globalThis.__VAL_ROLLDOWN_WASM_URL__` instead (see
|
|
14280
|
+
* `packages/ui/build/rolldownWasm.ts`).
|
|
14240
14281
|
*/
|
|
14241
|
-
var DEFAULT_STATIC_HOST = "https://
|
|
14282
|
+
var DEFAULT_STATIC_HOST = "https://content.val.build/v1/static";
|
|
14242
14283
|
var Internal = {
|
|
14243
14284
|
VERSION: {
|
|
14244
14285
|
core: corePackageJson.version
|
|
@@ -14406,6 +14447,7 @@ exports._slicedToArray = _slicedToArray;
|
|
|
14406
14447
|
exports._toConsumableArray = _toConsumableArray;
|
|
14407
14448
|
exports._typeof = _typeof;
|
|
14408
14449
|
exports.assistantAvailability = assistantAvailability;
|
|
14450
|
+
exports.computeSourcesSha = computeSourcesSha;
|
|
14409
14451
|
exports.computeValModuleShas = computeValModuleShas;
|
|
14410
14452
|
exports.declaredKeySetOf = declaredKeySetOf;
|
|
14411
14453
|
exports.derefPatch = derefPatch;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var dist_valbuildCore = require('./index-
|
|
5
|
+
var dist_valbuildCore = require('./index-afbcf0ca.cjs.dev.js');
|
|
6
6
|
require('./result-bb1f436e.cjs.dev.js');
|
|
7
7
|
|
|
8
8
|
|
|
@@ -47,6 +47,7 @@ exports.THEME_RADIUS_STEPS = dist_valbuildCore.THEME_RADIUS_STEPS;
|
|
|
47
47
|
exports.VAL_EXTENSION = dist_valbuildCore.VAL_EXTENSION;
|
|
48
48
|
exports.ValViewSchema = dist_valbuildCore.ValViewSchema;
|
|
49
49
|
exports.assistantAvailability = dist_valbuildCore.assistantAvailability;
|
|
50
|
+
exports.computeSourcesSha = dist_valbuildCore.computeSourcesSha;
|
|
50
51
|
exports.computeValModuleShas = dist_valbuildCore.computeValModuleShas;
|
|
51
52
|
exports.declaredKeySetOf = dist_valbuildCore.declaredKeySetOf;
|
|
52
53
|
exports.derefPatch = dist_valbuildCore.derefPatch;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var dist_valbuildCore = require('./index-
|
|
5
|
+
var dist_valbuildCore = require('./index-2545d3b4.cjs.prod.js');
|
|
6
6
|
require('./result-787e35f6.cjs.prod.js');
|
|
7
7
|
|
|
8
8
|
|
|
@@ -47,6 +47,7 @@ exports.THEME_RADIUS_STEPS = dist_valbuildCore.THEME_RADIUS_STEPS;
|
|
|
47
47
|
exports.VAL_EXTENSION = dist_valbuildCore.VAL_EXTENSION;
|
|
48
48
|
exports.ValViewSchema = dist_valbuildCore.ValViewSchema;
|
|
49
49
|
exports.assistantAvailability = dist_valbuildCore.assistantAvailability;
|
|
50
|
+
exports.computeSourcesSha = dist_valbuildCore.computeSourcesSha;
|
|
50
51
|
exports.computeValModuleShas = dist_valbuildCore.computeValModuleShas;
|
|
51
52
|
exports.declaredKeySetOf = dist_valbuildCore.declaredKeySetOf;
|
|
52
53
|
exports.derefPatch = dist_valbuildCore.derefPatch;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { v as ASSISTANT_SETTINGS_MAX_LENGTH, A as ArraySchema, B as BooleanSchema, Y as CODE_LANGUAGES, Z as COLOR_FORMATS, X as CodeSchema, W as ColorSchema, e as DEFAULT_APP_HOST, $ as DEFAULT_COLOR_FORMAT, D as DEFAULT_CONTENT_HOST, f as DEFAULT_STATIC_HOST, n as DEFAULT_VAL_REMOTE_HOST, t as DateSchema, a0 as DateTimeSchema, a6 as DiscriminatedUnionSchema, a7 as EnumSchema, F as FATAL_ERROR_TYPES, r as FileSchema, G as GenericSelector, q as ImageSchema, I as Internal, a1 as KeyOfSchema, a8 as LiteralSchema, L as LocaleSchema, M as ModuleFilePathSep, N as NumberSchema, O as ObjectSchema, R as RecordSchema, a5 as RichTextSchema, a4 as RouteSchema, z as SETTINGS_MODULE_CONVENTION, S as Schema, u as SettingsSchema, p as StringSchema, T as THEME_LOGO_DIRECTORY, x as THEME_RADIUS_LENGTHS, w as THEME_RADIUS_STEPS, V as VAL_EXTENSION, a2 as ValViewSchema, y as assistantAvailability, j as computeSourcesSha, h as computeValModuleShas, K as declaredKeySetOf, o as derefPatch, a9 as deserializeSchema, U as discriminatedUnionBranchOf, g as extractValModules, ag as getSourcePathFromRoute, l as hasMediaSchema, k as hasRemoteFileSchema, i as initVal, ab as isInlineRender, ah as isPageRouter, C as isRootModuleFilePath, a3 as isValViewSource, J as localeOfValue, H as localeTagError, Q as missingDeclaredKeys, m as modules, ac as parseNextJsRoutePattern, ad as parseTanStackRoutePattern, aa as previewScope, E as resolveSettingsModule, ae as tanStackSegmentsOfRoutePath, af as validateUrlAgainstPattern } from './index-962a8ac3.esm.js';
|
|
2
2
|
import './result-daff1cae.esm.js';
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var dist_valbuildCore = require('../../dist/index-
|
|
5
|
+
var dist_valbuildCore = require('../../dist/index-afbcf0ca.cjs.dev.js');
|
|
6
6
|
var result = require('../../dist/result-bb1f436e.cjs.dev.js');
|
|
7
7
|
var util = require('../../dist/util-b213092b.cjs.dev.js');
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var dist_valbuildCore = require('../../dist/index-
|
|
5
|
+
var dist_valbuildCore = require('../../dist/index-2545d3b4.cjs.prod.js');
|
|
6
6
|
var result = require('../../dist/result-787e35f6.cjs.prod.js');
|
|
7
7
|
var util = require('../../dist/util-030d8a1f.cjs.prod.js');
|
|
8
8
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as _typeof, a as _slicedToArray, P as PatchError, s as splitModuleFilePathAndModulePath, b as _createClass, c as _classCallCheck, d as _toConsumableArray } from '../../dist/index-
|
|
2
|
-
export { P as PatchError } from '../../dist/index-
|
|
1
|
+
import { _ as _typeof, a as _slicedToArray, P as PatchError, s as splitModuleFilePathAndModulePath, b as _createClass, c as _classCallCheck, d as _toConsumableArray } from '../../dist/index-962a8ac3.esm.js';
|
|
2
|
+
export { P as PatchError } from '../../dist/index-962a8ac3.esm.js';
|
|
3
3
|
import { f as isNonEmpty, e as err, o as ok, m as map, g as flatMap, i as isErr, h as flatMapReduce, j as filterOrElse, k as mapErr, l as map$1, n as all, p as flatten, q as allT } from '../../dist/result-daff1cae.esm.js';
|
|
4
4
|
import { p as pipe } from '../../dist/util-18613e99.esm.js';
|
|
5
5
|
|