@valbuild/core 0.127.0 → 0.128.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.
- package/CHANGELOG.md +112 -0
- package/dist/declarations/src/initSchema.d.ts +15 -15
- package/dist/declarations/src/schema/file.d.ts +3 -3
- package/dist/declarations/src/schema/{files.d.ts → fileset.d.ts} +10 -10
- package/dist/declarations/src/schema/hasRemoteFileSchema.d.ts +3 -3
- package/dist/declarations/src/schema/image.d.ts +9 -5
- package/dist/declarations/src/schema/{images.d.ts → imageset.d.ts} +54 -21
- package/dist/declarations/src/schema/record.d.ts +6 -6
- package/dist/{index-d44deccb.cjs.prod.js → index-053ccde2.cjs.prod.js} +76 -40
- package/dist/{index-889ac441.cjs.dev.js → index-c3ae637d.cjs.dev.js} +76 -40
- package/dist/{index-5a6e6398.esm.js → index-db41de3c.esm.js} +76 -40
- package/dist/valbuild-core.cjs.dev.js +1 -1
- package/dist/valbuild-core.cjs.prod.js +1 -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
|
@@ -3526,7 +3526,7 @@ var ImageSchema = /*#__PURE__*/function (_Schema) {
|
|
|
3526
3526
|
*
|
|
3527
3527
|
* @example
|
|
3528
3528
|
* const schema = s
|
|
3529
|
-
* .image({ accept: "image/webp",
|
|
3529
|
+
* .image({ accept: "image/webp", dir: "/public/val/images" })
|
|
3530
3530
|
* .remote();
|
|
3531
3531
|
* export default c.define("/example.val.ts", schema, {
|
|
3532
3532
|
* path: "https://remote.val.build/file/p/my-project/b/01/v/1.0.0/h/8f2a1c/f/3b9d70/p/public/val/images/example.webp",
|
|
@@ -3705,6 +3705,10 @@ var ImageSchema = /*#__PURE__*/function (_Schema) {
|
|
|
3705
3705
|
/**
|
|
3706
3706
|
* The entries of the gallery this field points at, or null when it is a
|
|
3707
3707
|
* standalone field.
|
|
3708
|
+
*
|
|
3709
|
+
* `AltSource` rather than a specific alt type: a field never reads an entry's
|
|
3710
|
+
* alt — it carries its own — so it only needs the entry keys and the
|
|
3711
|
+
* dimensions, and a gallery of any alt shape can back it.
|
|
3708
3712
|
*/
|
|
3709
3713
|
}, {
|
|
3710
3714
|
key: "galleryEntries",
|
|
@@ -5459,9 +5463,9 @@ var RecordSchema = /*#__PURE__*/function (_Schema) {
|
|
|
5459
5463
|
if (this.mediaOptions) {
|
|
5460
5464
|
var checkFix = this.mediaOptions.type === "images" ? "images:check-unique-folder" : "files:check-unique-folder";
|
|
5461
5465
|
var uniqueCheckError = {
|
|
5462
|
-
message: "Gallery directory '".concat(this.mediaOptions.
|
|
5466
|
+
message: "Gallery directory '".concat(this.mediaOptions.dir, "' must be unique across all galleries"),
|
|
5463
5467
|
value: {
|
|
5464
|
-
|
|
5468
|
+
dir: this.mediaOptions.dir,
|
|
5465
5469
|
type: this.mediaOptions.type
|
|
5466
5470
|
},
|
|
5467
5471
|
fixes: [checkFix]
|
|
@@ -5477,9 +5481,9 @@ var RecordSchema = /*#__PURE__*/function (_Schema) {
|
|
|
5477
5481
|
}
|
|
5478
5482
|
var allFilesCheckFix = this.mediaOptions.type === "images" ? "images:check-all-files" : "files:check-all-files";
|
|
5479
5483
|
var allFilesCheckError = {
|
|
5480
|
-
message: "Directory '".concat(this.mediaOptions.
|
|
5484
|
+
message: "Directory '".concat(this.mediaOptions.dir, "' may have files not tracked by this gallery"),
|
|
5481
5485
|
value: {
|
|
5482
|
-
|
|
5486
|
+
dir: this.mediaOptions.dir,
|
|
5483
5487
|
type: this.mediaOptions.type
|
|
5484
5488
|
},
|
|
5485
5489
|
fixes: [allFilesCheckFix]
|
|
@@ -5640,13 +5644,13 @@ var RecordSchema = /*#__PURE__*/function (_Schema) {
|
|
|
5640
5644
|
return false;
|
|
5641
5645
|
}
|
|
5642
5646
|
var _this$mediaOptions = this.mediaOptions,
|
|
5643
|
-
|
|
5647
|
+
dir = _this$mediaOptions.dir,
|
|
5644
5648
|
isRemote = _this$mediaOptions.remote,
|
|
5645
5649
|
type = _this$mediaOptions.type;
|
|
5646
5650
|
var mediaLabel = type === "images" ? "images" : "files";
|
|
5647
5651
|
var checkRemoteFix = type === "images" ? "images:check-remote" : "files:check-remote";
|
|
5648
5652
|
var isRemoteUrl = this.isRemoteUrl(key);
|
|
5649
|
-
var isLocalPath = key ===
|
|
5653
|
+
var isLocalPath = key === dir || key.startsWith(dir + "/");
|
|
5650
5654
|
if (isRemote) {
|
|
5651
5655
|
// When remote is enabled, accept either remote URLs or local paths
|
|
5652
5656
|
if (isRemoteUrl) {
|
|
@@ -5661,9 +5665,9 @@ var RecordSchema = /*#__PURE__*/function (_Schema) {
|
|
|
5661
5665
|
}
|
|
5662
5666
|
// Check that the file path in the remote URL matches our directory constraint
|
|
5663
5667
|
var remotePath = "/" + remoteResult.filePath;
|
|
5664
|
-
if (remotePath !==
|
|
5668
|
+
if (remotePath !== dir && !remotePath.startsWith(dir + "/")) {
|
|
5665
5669
|
return _defineProperty({}, path, [{
|
|
5666
|
-
message: "Remote file path '".concat(remotePath, "' is not in expected directory '").concat(
|
|
5670
|
+
message: "Remote file path '".concat(remotePath, "' is not in expected directory '").concat(dir, "'. Use Val tooling to upload ").concat(mediaLabel, " to the correct directory."),
|
|
5667
5671
|
value: key,
|
|
5668
5672
|
fixes: [checkRemoteFix]
|
|
5669
5673
|
}]);
|
|
@@ -5672,7 +5676,7 @@ var RecordSchema = /*#__PURE__*/function (_Schema) {
|
|
|
5672
5676
|
}
|
|
5673
5677
|
if (!isLocalPath) {
|
|
5674
5678
|
return _defineProperty({}, path, [{
|
|
5675
|
-
message: "Expected a remote URL (https://...) or a local path starting with ".concat(
|
|
5679
|
+
message: "Expected a remote URL (https://...) or a local path starting with ".concat(dir, "/. Got: ").concat(key),
|
|
5676
5680
|
value: key
|
|
5677
5681
|
}]);
|
|
5678
5682
|
}
|
|
@@ -5694,7 +5698,7 @@ var RecordSchema = /*#__PURE__*/function (_Schema) {
|
|
|
5694
5698
|
}
|
|
5695
5699
|
if (!isLocalPath) {
|
|
5696
5700
|
return _defineProperty({}, path, [{
|
|
5697
|
-
message: "File path must be within the ".concat(
|
|
5701
|
+
message: "File path must be within the ".concat(dir, "/ directory. Got: ").concat(key),
|
|
5698
5702
|
value: key
|
|
5699
5703
|
}]);
|
|
5700
5704
|
}
|
|
@@ -5890,7 +5894,7 @@ var RecordSchema = /*#__PURE__*/function (_Schema) {
|
|
|
5890
5894
|
* Allow the files in this gallery to be stored on Val's remote content host
|
|
5891
5895
|
* instead of in your repository.
|
|
5892
5896
|
*
|
|
5893
|
-
* For `s.
|
|
5897
|
+
* For `s.imageset()` and `s.fileset()`, which are records of media. Remote is off
|
|
5894
5898
|
* until this is called.
|
|
5895
5899
|
*
|
|
5896
5900
|
* Each entry is then keyed by its URL on the content host rather than by a
|
|
@@ -5899,7 +5903,7 @@ var RecordSchema = /*#__PURE__*/function (_Schema) {
|
|
|
5899
5903
|
* upload it and rewrite the key.
|
|
5900
5904
|
*
|
|
5901
5905
|
* @example
|
|
5902
|
-
* const schema = s.
|
|
5906
|
+
* const schema = s.imageset({ dir: "/public/val/images" }).remote();
|
|
5903
5907
|
* export default c.define("/content/images.val.ts", schema, {
|
|
5904
5908
|
* "https://remote.val.build/file/p/my-project/b/01/v/1.0.0/h/8f2a1c/f/3b9d70/p/public/val/images/hero.webp":
|
|
5905
5909
|
* {
|
|
@@ -5925,7 +5929,7 @@ var RecordSchema = /*#__PURE__*/function (_Schema) {
|
|
|
5925
5929
|
* which lets the runtime, the Studio and validation work one entry at a time
|
|
5926
5930
|
* so a record/router can scale to many thousands of entries.
|
|
5927
5931
|
*
|
|
5928
|
-
* Not supported on image/file galleries (`s.
|
|
5932
|
+
* Not supported on image/file galleries (`s.imageset()` / `s.fileset()`).
|
|
5929
5933
|
*
|
|
5930
5934
|
* Only supported on a module's ROOT record/router — a `.jsonValues()` record
|
|
5931
5935
|
* nested inside an object/array/record is rejected at startup with a module
|
|
@@ -5950,7 +5954,7 @@ var RecordSchema = /*#__PURE__*/function (_Schema) {
|
|
|
5950
5954
|
key: "jsonValues",
|
|
5951
5955
|
value: function jsonValues() {
|
|
5952
5956
|
if (this.mediaOptions) {
|
|
5953
|
-
throw new Error(".jsonValues() cannot be used with image/file galleries (s.
|
|
5957
|
+
throw new Error(".jsonValues() cannot be used with image/file galleries (s.imageset()/s.fileset())");
|
|
5954
5958
|
}
|
|
5955
5959
|
if (this.customValidateFunctions.length > 0) {
|
|
5956
5960
|
// `.jsonValues()` changes the source shape to JsonSource entries, so a
|
|
@@ -5979,7 +5983,7 @@ var RecordSchema = /*#__PURE__*/function (_Schema) {
|
|
|
5979
5983
|
* bucket — instead of in the module.
|
|
5980
5984
|
*
|
|
5981
5985
|
* Available on every record-derived schema, which is `s.record()`,
|
|
5982
|
-
* `s.router()`, `s.
|
|
5986
|
+
* `s.router()`, `s.imageset()` and `s.fileset()` alike: a router is a
|
|
5983
5987
|
* `RecordSchema` with a `ValRouter`, a gallery one with media options, so all
|
|
5984
5988
|
* four get external storage from this one method.
|
|
5985
5989
|
*
|
|
@@ -6134,7 +6138,7 @@ var RecordSchema = /*#__PURE__*/function (_Schema) {
|
|
|
6134
6138
|
if (this.mediaOptions) {
|
|
6135
6139
|
result.mediaType = this.mediaOptions.type;
|
|
6136
6140
|
result.accept = this.mediaOptions.accept;
|
|
6137
|
-
result.
|
|
6141
|
+
result.dir = this.mediaOptions.dir;
|
|
6138
6142
|
result.remote = this.mediaOptions.remote;
|
|
6139
6143
|
if (this.mediaOptions.encode !== undefined) {
|
|
6140
6144
|
result.encode = this.mediaOptions.encode;
|
|
@@ -9306,7 +9310,7 @@ function file(options) {
|
|
|
9306
9310
|
}
|
|
9307
9311
|
|
|
9308
9312
|
/**
|
|
9309
|
-
* Options for s.
|
|
9313
|
+
* Options for s.fileset()
|
|
9310
9314
|
*/
|
|
9311
9315
|
|
|
9312
9316
|
/**
|
|
@@ -9320,9 +9324,9 @@ function file(options) {
|
|
|
9320
9324
|
*
|
|
9321
9325
|
* @example
|
|
9322
9326
|
* ```typescript
|
|
9323
|
-
* const schema = s.
|
|
9327
|
+
* const schema = s.fileset({
|
|
9324
9328
|
* accept: "application/pdf",
|
|
9325
|
-
*
|
|
9329
|
+
* dir: "/public/val/documents",
|
|
9326
9330
|
* });
|
|
9327
9331
|
* export default c.define("/content/documents.val.ts", schema, {
|
|
9328
9332
|
* "/public/val/documents/report.pdf": {
|
|
@@ -9331,15 +9335,15 @@ function file(options) {
|
|
|
9331
9335
|
* });
|
|
9332
9336
|
* ```
|
|
9333
9337
|
*/
|
|
9334
|
-
var
|
|
9335
|
-
var
|
|
9338
|
+
var fileset = function fileset(options) {
|
|
9339
|
+
var dir = options.dir;
|
|
9336
9340
|
var itemSchema = new ObjectSchema({
|
|
9337
9341
|
mimeType: new StringSchema({}, false)
|
|
9338
9342
|
}, false);
|
|
9339
9343
|
return new RecordSchema(itemSchema, false, [], null, null, {
|
|
9340
9344
|
type: "files",
|
|
9341
9345
|
accept: options.accept,
|
|
9342
|
-
|
|
9346
|
+
dir: dir,
|
|
9343
9347
|
remote: false
|
|
9344
9348
|
});
|
|
9345
9349
|
};
|
|
@@ -10970,14 +10974,37 @@ function router(router, keyOrItem, maybeItem) {
|
|
|
10970
10974
|
*/
|
|
10971
10975
|
|
|
10972
10976
|
/**
|
|
10973
|
-
*
|
|
10977
|
+
* What an entry's `alt` holds, for a given `alt` schema.
|
|
10978
|
+
*
|
|
10979
|
+
* This is the schema's own source type, not a second list that has to be kept
|
|
10980
|
+
* in step with `AltSchema`: `s.string()` gives `string`, `s.string().nullable()`
|
|
10981
|
+
* gives `string | null`, and `s.record(s.string())` gives
|
|
10982
|
+
* `Record<string, string>`.
|
|
10983
|
+
*/
|
|
10984
|
+
|
|
10985
|
+
/** Every `alt` value any `AltSchema` can produce. */
|
|
10986
|
+
|
|
10987
|
+
/**
|
|
10988
|
+
* Options for s.imageset()
|
|
10974
10989
|
*/
|
|
10975
10990
|
|
|
10976
10991
|
/**
|
|
10977
|
-
*
|
|
10992
|
+
* `alt` is optional only when it is the default schema.
|
|
10993
|
+
*
|
|
10994
|
+
* Naming a different `Alt` and then leaving `alt` out would make the fallback
|
|
10995
|
+
* in `imageset()` a lie — `Alt` would say `s.string()` while the value was a
|
|
10996
|
+
* nullable one. Requiring it in that case is what makes the fallback sound:
|
|
10997
|
+
* the branch that uses it is reachable only when `Alt` IS the default.
|
|
10978
10998
|
*/
|
|
10979
10999
|
|
|
10980
|
-
|
|
11000
|
+
/**
|
|
11001
|
+
* Metadata for an image entry in the images record.
|
|
11002
|
+
*
|
|
11003
|
+
* `alt` follows the schema's `alt` option, so it defaults to `string | null`
|
|
11004
|
+
* and becomes `string` under `s.string()` or `Record<string, string>` under
|
|
11005
|
+
* `s.record(s.string())`. Write `ImagesetEntryMetadata<AltSource>` where a
|
|
11006
|
+
* gallery of any alt shape is acceptable.
|
|
11007
|
+
*/
|
|
10981
11008
|
|
|
10982
11009
|
/**
|
|
10983
11010
|
* Define a collection of images.
|
|
@@ -10988,9 +11015,9 @@ function router(router, keyOrItem, maybeItem) {
|
|
|
10988
11015
|
*
|
|
10989
11016
|
* @example
|
|
10990
11017
|
* ```typescript
|
|
10991
|
-
* const schema = s.
|
|
11018
|
+
* const schema = s.imageset({
|
|
10992
11019
|
* accept: "image/webp",
|
|
10993
|
-
*
|
|
11020
|
+
* dir: "/public/val/images",
|
|
10994
11021
|
* alt: s.string().minLength(4),
|
|
10995
11022
|
* });
|
|
10996
11023
|
* export default c.define("/content/images.val.ts", schema, {
|
|
@@ -11003,9 +11030,18 @@ function router(router, keyOrItem, maybeItem) {
|
|
|
11003
11030
|
* });
|
|
11004
11031
|
* ```
|
|
11005
11032
|
*/
|
|
11006
|
-
var
|
|
11033
|
+
var imageset = function imageset(options) {
|
|
11007
11034
|
var _options$alt, _options$accept;
|
|
11008
|
-
var
|
|
11035
|
+
var dir = options.dir;
|
|
11036
|
+
// `options.alt` is `Alt | undefined`, and the fallback is exactly the schema
|
|
11037
|
+
// `Alt` defaults to when `alt` is omitted. TypeScript will not narrow a type
|
|
11038
|
+
// parameter from the absence of a value, so it cannot see that the two agree,
|
|
11039
|
+
// and the fallback is asserted here.
|
|
11040
|
+
//
|
|
11041
|
+
// Sound, not merely convenient: `ImagesetAltOption` makes `alt` REQUIRED
|
|
11042
|
+
// unless `Alt` is the default, so this branch is unreachable for any other
|
|
11043
|
+
// `Alt`. The one assertion in this file, and it replaces the wider one that
|
|
11044
|
+
// used to sit on the ObjectSchema below.
|
|
11009
11045
|
var altSchema = (_options$alt = options.alt) !== null && _options$alt !== void 0 ? _options$alt : string().nullable();
|
|
11010
11046
|
var itemSchema = new ObjectSchema({
|
|
11011
11047
|
width: new NumberSchema(undefined, false),
|
|
@@ -11016,7 +11052,7 @@ var images = function images(options) {
|
|
|
11016
11052
|
return new RecordSchema(itemSchema, false, [], null, null, {
|
|
11017
11053
|
type: "images",
|
|
11018
11054
|
accept: (_options$accept = options.accept) !== null && _options$accept !== void 0 ? _options$accept : "image/*",
|
|
11019
|
-
|
|
11055
|
+
dir: dir,
|
|
11020
11056
|
remote: false,
|
|
11021
11057
|
altSchema: altSchema,
|
|
11022
11058
|
encode: options.encode
|
|
@@ -11048,7 +11084,7 @@ function initSchema() {
|
|
|
11048
11084
|
keyOf: keyOf,
|
|
11049
11085
|
record: record,
|
|
11050
11086
|
file: file,
|
|
11051
|
-
|
|
11087
|
+
fileset: fileset,
|
|
11052
11088
|
date: date,
|
|
11053
11089
|
datetime: datetime,
|
|
11054
11090
|
color: color,
|
|
@@ -11056,7 +11092,7 @@ function initSchema() {
|
|
|
11056
11092
|
locale: locale,
|
|
11057
11093
|
route: route,
|
|
11058
11094
|
router: router,
|
|
11059
|
-
|
|
11095
|
+
imageset: imageset,
|
|
11060
11096
|
settings: settings
|
|
11061
11097
|
// i18n: i18n(locales),
|
|
11062
11098
|
};
|
|
@@ -11898,7 +11934,7 @@ function _extractValModules() {
|
|
|
11898
11934
|
* The one answer to that question. There used to be two — `hasRemoteFileSchema`
|
|
11899
11935
|
* in the server, gating whether `/save` demands remote credentials, and
|
|
11900
11936
|
* `findRequiredRemoteFiles` in the Studio, gating the `/remote/settings` fetch —
|
|
11901
|
-
* and they disagreed about `s.
|
|
11937
|
+
* and they disagreed about `s.imageset({ ... }).remote()`: the Studio's version
|
|
11902
11938
|
* counted a remote media record, the server's did not, because a media
|
|
11903
11939
|
* collection serializes as a `record` of metadata rather than as an image
|
|
11904
11940
|
* schema.
|
|
@@ -11938,7 +11974,7 @@ function hasRemoteFileSchema(schema) {
|
|
|
11938
11974
|
return hasRemoteFileSchema(schema.item);
|
|
11939
11975
|
} else if (schema.type === "record") {
|
|
11940
11976
|
/**
|
|
11941
|
-
* A media collection — `s.
|
|
11977
|
+
* A media collection — `s.imageset()` / `s.fileset()` — is the case both of the
|
|
11942
11978
|
* old functions were written around, and the one they disagreed on.
|
|
11943
11979
|
*
|
|
11944
11980
|
* It has no file or image schema inside it to find: `item` is an object of
|
|
@@ -11998,8 +12034,8 @@ function hasRemoteFileSchema(schema) {
|
|
|
11998
12034
|
*
|
|
11999
12035
|
* It is a walk over the SERIALIZED schema for the reasons given above, and for
|
|
12000
12036
|
* one more that is specific to this question: the two cases most likely to be
|
|
12001
|
-
* missed are invisible to a value type. A media collection (`s.
|
|
12002
|
-
* `s.
|
|
12037
|
+
* missed are invisible to a value type. A media collection (`s.imageset()` /
|
|
12038
|
+
* `s.fileset()`) serializes as a record of metadata with no image schema inside
|
|
12003
12039
|
* it, and a richtext inline image lives in a constructor argument. A check
|
|
12004
12040
|
* written against the item TYPE would silently pass both — and the gallery case
|
|
12005
12041
|
* already has a data-loss incident attached to it (see above).
|
|
@@ -12382,7 +12418,7 @@ function deserializeSchema(serialized) {
|
|
|
12382
12418
|
return schema;
|
|
12383
12419
|
}
|
|
12384
12420
|
function deserializeSchemaImpl(serialized) {
|
|
12385
|
-
var _serialized$options, _serialized$options2, _serialized$render, _serialized$multiline, _serialized$render2, _serialized$render3, _serialized$render4, _serialized$render5, _serialized$render6, _serialized$render7, _serialized$render8, _serialized$accept, _serialized$
|
|
12421
|
+
var _serialized$options, _serialized$options2, _serialized$render, _serialized$multiline, _serialized$render2, _serialized$render3, _serialized$render4, _serialized$render5, _serialized$render6, _serialized$render7, _serialized$render8, _serialized$accept, _serialized$dir, _serialized$remote, _serialized$jsonValue, _serialized$render0, _serialized$external, _serialized$render1, _serialized$render12, _serialized$render13, _serialized$render14, _serialized$render15, _serialized$render16, _serialized$render17;
|
|
12386
12422
|
switch (serialized.type) {
|
|
12387
12423
|
case "string":
|
|
12388
12424
|
return new StringSchema(_objectSpread2(_objectSpread2({}, serialized.options), {}, {
|
|
@@ -12442,7 +12478,7 @@ function deserializeSchemaImpl(serialized) {
|
|
|
12442
12478
|
return new RecordSchema(deserializeSchema(serialized.item), serialized.opt, [], null, serialized.key ? deserializeSchema(serialized.key) : null, serialized.mediaType ? {
|
|
12443
12479
|
type: serialized.mediaType,
|
|
12444
12480
|
accept: (_serialized$accept = serialized.accept) !== null && _serialized$accept !== void 0 ? _serialized$accept : "*/*",
|
|
12445
|
-
|
|
12481
|
+
dir: (_serialized$dir = serialized.dir) !== null && _serialized$dir !== void 0 ? _serialized$dir : "/public/val",
|
|
12446
12482
|
remote: (_serialized$remote = serialized.remote) !== null && _serialized$remote !== void 0 ? _serialized$remote : false,
|
|
12447
12483
|
altSchema: serialized.alt ? deserializeSchema(serialized.alt) : undefined
|
|
12448
12484
|
} : undefined, false, false, serialized.description, (_serialized$jsonValue = serialized.jsonValues) !== null && _serialized$jsonValue !== void 0 ? _serialized$jsonValue : false,
|
|
@@ -13145,7 +13181,7 @@ function isPageRouter(routerId) {
|
|
|
13145
13181
|
|
|
13146
13182
|
var corePackageJson = {
|
|
13147
13183
|
name: "@valbuild/core",
|
|
13148
|
-
version: "0.
|
|
13184
|
+
version: "0.128.0",
|
|
13149
13185
|
"private": false,
|
|
13150
13186
|
description: "Val - supercharged hard-coded content",
|
|
13151
13187
|
repository: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { t as ASSISTANT_SETTINGS_MAX_LENGTH, A as ArraySchema, B as BooleanSchema, Q as CODE_LANGUAGES, T as COLOR_FORMATS, K as CodeSchema, J as ColorSchema, e as DEFAULT_APP_HOST, U as DEFAULT_COLOR_FORMAT, D as DEFAULT_CONTENT_HOST, k as DEFAULT_VAL_REMOTE_HOST, q as DateSchema, W as DateTimeSchema, $ as DiscriminatedUnionSchema, a0 as EnumSchema, F as FATAL_ERROR_TYPES, p as FileSchema, G as GenericSelector, o as ImageSchema, I as Internal, X as KeyOfSchema, a1 as LiteralSchema, L as LocaleSchema, M as ModuleFilePathSep, N as NumberSchema, O as ObjectSchema, R as RecordSchema, Z as RichTextSchema, Y as RouteSchema, v as SETTINGS_MODULE_CONVENTION, S as Schema, r as SettingsSchema, n as StringSchema, V as VAL_EXTENSION, u as assistantAvailability, g as computeValModuleShas, C as declaredKeySetOf, l as derefPatch, a2 as deserializeSchema, H as discriminatedUnionBranchOf, f as extractValModules, a9 as getSourcePathFromRoute, j as hasMediaSchema, h as hasRemoteFileSchema, i as initVal, a4 as isInlineRender, aa as isPageRouter, w as isRootModuleFilePath, z as localeOfValue, y as localeTagError, E as missingDeclaredKeys, m as modules, a5 as parseNextJsRoutePattern, a6 as parseTanStackRoutePattern, a3 as previewScope, x as resolveSettingsModule, a7 as tanStackSegmentsOfRoutePath, a8 as validateUrlAgainstPattern } from './index-
|
|
1
|
+
export { t as ASSISTANT_SETTINGS_MAX_LENGTH, A as ArraySchema, B as BooleanSchema, Q as CODE_LANGUAGES, T as COLOR_FORMATS, K as CodeSchema, J as ColorSchema, e as DEFAULT_APP_HOST, U as DEFAULT_COLOR_FORMAT, D as DEFAULT_CONTENT_HOST, k as DEFAULT_VAL_REMOTE_HOST, q as DateSchema, W as DateTimeSchema, $ as DiscriminatedUnionSchema, a0 as EnumSchema, F as FATAL_ERROR_TYPES, p as FileSchema, G as GenericSelector, o as ImageSchema, I as Internal, X as KeyOfSchema, a1 as LiteralSchema, L as LocaleSchema, M as ModuleFilePathSep, N as NumberSchema, O as ObjectSchema, R as RecordSchema, Z as RichTextSchema, Y as RouteSchema, v as SETTINGS_MODULE_CONVENTION, S as Schema, r as SettingsSchema, n as StringSchema, V as VAL_EXTENSION, u as assistantAvailability, g as computeValModuleShas, C as declaredKeySetOf, l as derefPatch, a2 as deserializeSchema, H as discriminatedUnionBranchOf, f as extractValModules, a9 as getSourcePathFromRoute, j as hasMediaSchema, h as hasRemoteFileSchema, i as initVal, a4 as isInlineRender, aa as isPageRouter, w as isRootModuleFilePath, z as localeOfValue, y as localeTagError, E as missingDeclaredKeys, m as modules, a5 as parseNextJsRoutePattern, a6 as parseTanStackRoutePattern, a3 as previewScope, x as resolveSettingsModule, a7 as tanStackSegmentsOfRoutePath, a8 as validateUrlAgainstPattern } from './index-db41de3c.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-c3ae637d.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-053ccde2.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-db41de3c.esm.js';
|
|
2
|
+
export { P as PatchError } from '../../dist/index-db41de3c.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
|
|