@valbuild/core 0.141.0 → 0.144.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 (29) hide show
  1. package/CHANGELOG.md +67 -0
  2. package/dist/declarations/src/index.d.ts +13 -4
  3. package/dist/declarations/src/initSchema.d.ts +108 -18
  4. package/dist/declarations/src/initVal.d.ts +2 -2
  5. package/dist/declarations/src/mimeType/font.d.ts +36 -0
  6. package/dist/declarations/src/mimeType/index.d.ts +1 -0
  7. package/dist/declarations/src/render.d.ts +1 -1
  8. package/dist/declarations/src/schema/file.d.ts +4 -4
  9. package/dist/declarations/src/schema/filedir.d.ts +83 -0
  10. package/dist/declarations/src/schema/font.d.ts +16 -0
  11. package/dist/declarations/src/schema/fontdir.d.ts +63 -0
  12. package/dist/declarations/src/schema/hasRemoteFileSchema.d.ts +3 -3
  13. package/dist/declarations/src/schema/image.d.ts +4 -4
  14. package/dist/declarations/src/schema/{imageset.d.ts → imagedir.d.ts} +63 -29
  15. package/dist/declarations/src/schema/record.d.ts +17 -6
  16. package/dist/declarations/src/schema/video.d.ts +7 -7
  17. package/dist/declarations/src/schema/{videoset.d.ts → videodir.d.ts} +55 -27
  18. package/dist/declarations/src/source/media.d.ts +26 -3
  19. package/dist/{index-13cf45b1.cjs.prod.js → index-2d194c90.cjs.prod.js} +504 -79
  20. package/dist/{index-fae161b5.cjs.dev.js → index-8b22b2c1.cjs.dev.js} +504 -79
  21. package/dist/{index-a6c53286.esm.js → index-aa16dd90.esm.js} +503 -80
  22. package/dist/valbuild-core.cjs.dev.js +3 -1
  23. package/dist/valbuild-core.cjs.prod.js +3 -1
  24. package/dist/valbuild-core.esm.js +1 -1
  25. package/package.json +1 -1
  26. package/patch/dist/valbuild-core-patch.cjs.dev.js +1 -1
  27. package/patch/dist/valbuild-core-patch.cjs.prod.js +1 -1
  28. package/patch/dist/valbuild-core-patch.esm.js +2 -2
  29. package/dist/declarations/src/schema/fileset.d.ts +0 -57
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var dist_valbuildCore = require('./index-fae161b5.cjs.dev.js');
5
+ var dist_valbuildCore = require('./index-8b22b2c1.cjs.dev.js');
6
6
  require('./result-bb1f436e.cjs.dev.js');
7
7
 
8
8
 
@@ -17,6 +17,7 @@ exports.ColorSchema = dist_valbuildCore.ColorSchema;
17
17
  exports.DEFAULT_APP_HOST = dist_valbuildCore.DEFAULT_APP_HOST;
18
18
  exports.DEFAULT_COLOR_FORMAT = dist_valbuildCore.DEFAULT_COLOR_FORMAT;
19
19
  exports.DEFAULT_CONTENT_HOST = dist_valbuildCore.DEFAULT_CONTENT_HOST;
20
+ exports.DEFAULT_FONT_ACCEPT = dist_valbuildCore.DEFAULT_FONT_ACCEPT;
20
21
  exports.DEFAULT_STATIC_HOST = dist_valbuildCore.DEFAULT_STATIC_HOST;
21
22
  exports.DEFAULT_VAL_REMOTE_HOST = dist_valbuildCore.DEFAULT_VAL_REMOTE_HOST;
22
23
  exports.DEFAULT_VIDEO_ACCEPT = dist_valbuildCore.DEFAULT_VIDEO_ACCEPT;
@@ -27,6 +28,7 @@ exports.DateTimeSchema = dist_valbuildCore.DateTimeSchema;
27
28
  exports.DiscriminatedUnionSchema = dist_valbuildCore.DiscriminatedUnionSchema;
28
29
  exports.EnumSchema = dist_valbuildCore.EnumSchema;
29
30
  exports.FATAL_ERROR_TYPES = dist_valbuildCore.FATAL_ERROR_TYPES;
31
+ exports.FONT_MIME_TYPES = dist_valbuildCore.FONT_MIME_TYPES;
30
32
  exports.FileSchema = dist_valbuildCore.FileSchema;
31
33
  exports.GenericSelector = dist_valbuildCore.GenericSelector;
32
34
  exports.ImageSchema = dist_valbuildCore.ImageSchema;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var dist_valbuildCore = require('./index-13cf45b1.cjs.prod.js');
5
+ var dist_valbuildCore = require('./index-2d194c90.cjs.prod.js');
6
6
  require('./result-787e35f6.cjs.prod.js');
7
7
 
8
8
 
@@ -17,6 +17,7 @@ exports.ColorSchema = dist_valbuildCore.ColorSchema;
17
17
  exports.DEFAULT_APP_HOST = dist_valbuildCore.DEFAULT_APP_HOST;
18
18
  exports.DEFAULT_COLOR_FORMAT = dist_valbuildCore.DEFAULT_COLOR_FORMAT;
19
19
  exports.DEFAULT_CONTENT_HOST = dist_valbuildCore.DEFAULT_CONTENT_HOST;
20
+ exports.DEFAULT_FONT_ACCEPT = dist_valbuildCore.DEFAULT_FONT_ACCEPT;
20
21
  exports.DEFAULT_STATIC_HOST = dist_valbuildCore.DEFAULT_STATIC_HOST;
21
22
  exports.DEFAULT_VAL_REMOTE_HOST = dist_valbuildCore.DEFAULT_VAL_REMOTE_HOST;
22
23
  exports.DEFAULT_VIDEO_ACCEPT = dist_valbuildCore.DEFAULT_VIDEO_ACCEPT;
@@ -27,6 +28,7 @@ exports.DateTimeSchema = dist_valbuildCore.DateTimeSchema;
27
28
  exports.DiscriminatedUnionSchema = dist_valbuildCore.DiscriminatedUnionSchema;
28
29
  exports.EnumSchema = dist_valbuildCore.EnumSchema;
29
30
  exports.FATAL_ERROR_TYPES = dist_valbuildCore.FATAL_ERROR_TYPES;
31
+ exports.FONT_MIME_TYPES = dist_valbuildCore.FONT_MIME_TYPES;
30
32
  exports.FileSchema = dist_valbuildCore.FileSchema;
31
33
  exports.GenericSelector = dist_valbuildCore.GenericSelector;
32
34
  exports.ImageSchema = dist_valbuildCore.ImageSchema;
@@ -1,2 +1,2 @@
1
- export { C as ASSISTANT_SETTINGS_MAX_LENGTH, A as ArraySchema, B as BooleanSchema, a2 as CODE_LANGUAGES, a3 as COLOR_FORMATS, a1 as CodeSchema, a0 as ColorSchema, e as DEFAULT_APP_HOST, a4 as DEFAULT_COLOR_FORMAT, D as DEFAULT_CONTENT_HOST, f as DEFAULT_STATIC_HOST, o as DEFAULT_VAL_REMOTE_HOST, v as DEFAULT_VIDEO_ACCEPT, w as DEFAULT_VIDEO_RENDITIONS, x as DEFAULT_VIDEO_SEGMENT_DURATION, y as DateSchema, a5 as DateTimeSchema, ab as DiscriminatedUnionSchema, ac as EnumSchema, F as FATAL_ERROR_TYPES, t as FileSchema, G as GenericSelector, r as ImageSchema, I as Internal, a6 as KeyOfSchema, ad as LiteralSchema, X as LocaleSchema, M as ModuleFilePathSep, N as NumberSchema, O as ObjectSchema, R as RecordSchema, aa as RichTextSchema, a9 as RouteSchema, K as SETTINGS_MODULE_CONVENTION, S as Schema, z as SettingsSchema, q as StringSchema, T as THEME_LOGO_DIRECTORY, H as THEME_RADIUS_LENGTHS, E as THEME_RADIUS_STEPS, ar as UNSAFE_URL_SCHEMES, V as VAL_EXTENSION, a7 as ValViewSchema, u as VideoSchema, J as assistantAvailability, k as computeSchemaSha, j as computeSourcesSha, h as computeValModuleShas, Y as declaredKeySetOf, p as derefPatch, an as describeSchemeRejection, ae as deserializeSchema, $ as discriminatedUnionBranchOf, g as extractValModules, al as getSourcePathFromRoute, n as hasMediaSchema, l as hasRemoteFileSchema, i as initVal, ao as isCheckableScheme, ag as isInlineRender, am as isPageRouter, L as isRootModuleFilePath, a8 as isValViewSource, W as localeOfValue, U as localeTagError, Z as missingDeclaredKeys, m as modules, ah as parseNextJsRoutePattern, ai as parseTanStackRoutePattern, af as previewScope, ap as rejectScheme, Q as resolveSettingsModule, aq as schemeOf, aj as tanStackSegmentsOfRoutePath, ak as validateUrlAgainstPattern } from './index-a6c53286.esm.js';
1
+ export { H as ASSISTANT_SETTINGS_MAX_LENGTH, A as ArraySchema, B as BooleanSchema, a4 as CODE_LANGUAGES, a5 as COLOR_FORMATS, a3 as CodeSchema, a2 as ColorSchema, e as DEFAULT_APP_HOST, a6 as DEFAULT_COLOR_FORMAT, D as DEFAULT_CONTENT_HOST, u as DEFAULT_FONT_ACCEPT, f as DEFAULT_STATIC_HOST, o as DEFAULT_VAL_REMOTE_HOST, x as DEFAULT_VIDEO_ACCEPT, y as DEFAULT_VIDEO_RENDITIONS, z as DEFAULT_VIDEO_SEGMENT_DURATION, C as DateSchema, a7 as DateTimeSchema, ad as DiscriminatedUnionSchema, ae as EnumSchema, F as FATAL_ERROR_TYPES, v as FONT_MIME_TYPES, t as FileSchema, G as GenericSelector, r as ImageSchema, I as Internal, a8 as KeyOfSchema, af as LiteralSchema, Z as LocaleSchema, M as ModuleFilePathSep, N as NumberSchema, O as ObjectSchema, R as RecordSchema, ac as RichTextSchema, ab as RouteSchema, Q as SETTINGS_MODULE_CONVENTION, S as Schema, E as SettingsSchema, q as StringSchema, T as THEME_LOGO_DIRECTORY, K as THEME_RADIUS_LENGTHS, J as THEME_RADIUS_STEPS, at as UNSAFE_URL_SCHEMES, V as VAL_EXTENSION, a9 as ValViewSchema, w as VideoSchema, L as assistantAvailability, k as computeSchemaSha, j as computeSourcesSha, h as computeValModuleShas, $ as declaredKeySetOf, p as derefPatch, ap as describeSchemeRejection, ag as deserializeSchema, a1 as discriminatedUnionBranchOf, g as extractValModules, an as getSourcePathFromRoute, n as hasMediaSchema, l as hasRemoteFileSchema, i as initVal, aq as isCheckableScheme, ai as isInlineRender, ao as isPageRouter, U as isRootModuleFilePath, aa as isValViewSource, Y as localeOfValue, X as localeTagError, a0 as missingDeclaredKeys, m as modules, aj as parseNextJsRoutePattern, ak as parseTanStackRoutePattern, ah as previewScope, ar as rejectScheme, W as resolveSettingsModule, as as schemeOf, al as tanStackSegmentsOfRoutePath, am as validateUrlAgainstPattern } from './index-aa16dd90.esm.js';
2
2
  import './result-daff1cae.esm.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valbuild/core",
3
- "version": "0.141.0",
3
+ "version": "0.144.0",
4
4
  "private": false,
5
5
  "description": "Val - supercharged hard-coded content",
6
6
  "repository": {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var dist_valbuildCore = require('../../dist/index-fae161b5.cjs.dev.js');
5
+ var dist_valbuildCore = require('../../dist/index-8b22b2c1.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-13cf45b1.cjs.prod.js');
5
+ var dist_valbuildCore = require('../../dist/index-2d194c90.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-a6c53286.esm.js';
2
- export { P as PatchError } from '../../dist/index-a6c53286.esm.js';
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-aa16dd90.esm.js';
2
+ export { P as PatchError } from '../../dist/index-aa16dd90.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
 
@@ -1,57 +0,0 @@
1
- import { Schema } from "./index.js";
2
- import type { SerializedRecordSchema } from "./record.js";
3
- import { RecordSchema } from "./record.js";
4
- import { ObjectSchema } from "./object.js";
5
- import { StringSchema } from "./string.js";
6
- /**
7
- * Options for s.fileset()
8
- */
9
- export type FilesetOptions = {
10
- /**
11
- * The accepted mime type pattern (e.g., "application/pdf", "text/*", "*\/*")
12
- */
13
- accept: string;
14
- /**
15
- * The directory where files should be stored.
16
- * Must start with "/public" (e.g., "/public/val/files")
17
- *
18
- * Required, and deliberately so: it decides where every uploaded file in this
19
- * collection lands, and it used to default to "/public/val" — which meant a
20
- * collection that had simply not said where it wanted its files silently shared
21
- * a directory with every other one.
22
- */
23
- dir: "/public" | `/public/${string}`;
24
- };
25
- /**
26
- * Metadata for a file entry in the files record
27
- */
28
- export type FilesetEntryMetadata = {
29
- mimeType: string;
30
- };
31
- export type SerializedFilesetSchema = SerializedRecordSchema;
32
- type FilesetItemProps = {
33
- mimeType: StringSchema<string>;
34
- };
35
- type FilesetItemSrc = {
36
- mimeType: string;
37
- };
38
- /**
39
- * Define a collection of files.
40
- *
41
- * Remote is off by default: call `.remote()` on the result to allow remote files.
42
- *
43
- * @example
44
- * ```typescript
45
- * const schema = s.fileset({
46
- * accept: "application/pdf",
47
- * dir: "/public/val/documents",
48
- * });
49
- * export default c.define("/content/documents.val.ts", schema, {
50
- * "/public/val/documents/report.pdf": {
51
- * mimeType: "application/pdf",
52
- * },
53
- * });
54
- * ```
55
- */
56
- export declare const fileset: (options: FilesetOptions) => RecordSchema<ObjectSchema<FilesetItemProps, FilesetItemSrc>, Schema<string>, Record<string, FilesetEntryMetadata>>;
57
- export {};