@valbuild/core 0.78.3 → 0.79.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/dist/declarations/src/preview.d.ts +4 -2
- package/dist/declarations/src/schema/record.d.ts +3 -1
- package/dist/{index-047950e1.cjs.prod.js → index-1e9b5668.cjs.prod.js} +1 -1
- package/dist/{index-b59ab889.esm.js → index-67e35487.esm.js} +1 -1
- package/dist/{index-2e346d06.cjs.dev.js → index-8324579e.cjs.dev.js} +1 -1
- 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
@@ -1,6 +1,8 @@
|
|
1
1
|
import { Schema } from "./schema/index.js";
|
2
|
+
import { ImageMetadata } from "./schema/image.js";
|
2
3
|
import { SelectorSource } from "./selector/index.js";
|
3
4
|
import { ImageSource } from "./source/image.js";
|
5
|
+
import { RemoteSource } from "./source/remote.js";
|
4
6
|
import { ModuleFilePath, SourcePath } from "./val/index.js";
|
5
7
|
export type ListRecordPreview = {
|
6
8
|
layout: "list";
|
@@ -10,7 +12,7 @@ export type ListRecordPreview = {
|
|
10
12
|
value: {
|
11
13
|
title: string;
|
12
14
|
subtitle?: string | null;
|
13
|
-
image?: ImageSource | null;
|
15
|
+
image?: ImageSource | RemoteSource<ImageMetadata> | null;
|
14
16
|
}
|
15
17
|
][];
|
16
18
|
};
|
@@ -20,7 +22,7 @@ export type ListArrayPreview = {
|
|
20
22
|
items: {
|
21
23
|
title: string;
|
22
24
|
subtitle?: string | null;
|
23
|
-
image?: ImageSource | null;
|
25
|
+
image?: ImageSource | RemoteSource<ImageMetadata> | null;
|
24
26
|
}[];
|
25
27
|
};
|
26
28
|
type PreviewTypes = ListRecordPreview | ListArrayPreview;
|
@@ -2,7 +2,9 @@ import { Schema, SchemaAssertResult, SelectorOfSchema, SerializedSchema } from "
|
|
2
2
|
import { PreviewSelector, ReifiedPreview } from "../preview.js";
|
3
3
|
import { SelectorSource } from "../selector/index.js";
|
4
4
|
import { ImageSource } from "../source/image.js";
|
5
|
+
import { RemoteSource } from "../source/remote.js";
|
5
6
|
import { ModuleFilePath, SourcePath } from "../val/index.js";
|
7
|
+
import { ImageMetadata } from "./image.js";
|
6
8
|
import { ValidationErrors } from "./validation/ValidationError.js";
|
7
9
|
export type SerializedRecordSchema = {
|
8
10
|
type: "record";
|
@@ -27,7 +29,7 @@ export declare class RecordSchema<T extends Schema<SelectorSource>, Src extends
|
|
27
29
|
}) => {
|
28
30
|
title: string;
|
29
31
|
subtitle?: string | null;
|
30
|
-
image?: ImageSource | null;
|
32
|
+
image?: ImageSource | RemoteSource<ImageMetadata> | null;
|
31
33
|
};
|
32
34
|
}): this;
|
33
35
|
}
|
@@ -1589,7 +1589,7 @@ var ImageSchema = /*#__PURE__*/function (_Schema) {
|
|
1589
1589
|
}, {
|
1590
1590
|
key: "nullable",
|
1591
1591
|
value: function nullable() {
|
1592
|
-
return new ImageSchema(this.options, true);
|
1592
|
+
return new ImageSchema(this.options, true, this.isRemote);
|
1593
1593
|
}
|
1594
1594
|
}, {
|
1595
1595
|
key: "serialize",
|
@@ -1587,7 +1587,7 @@ var ImageSchema = /*#__PURE__*/function (_Schema) {
|
|
1587
1587
|
}, {
|
1588
1588
|
key: "nullable",
|
1589
1589
|
value: function nullable() {
|
1590
|
-
return new ImageSchema(this.options, true);
|
1590
|
+
return new ImageSchema(this.options, true, this.isRemote);
|
1591
1591
|
}
|
1592
1592
|
}, {
|
1593
1593
|
key: "serialize",
|
@@ -1589,7 +1589,7 @@ var ImageSchema = /*#__PURE__*/function (_Schema) {
|
|
1589
1589
|
}, {
|
1590
1590
|
key: "nullable",
|
1591
1591
|
value: function nullable() {
|
1592
|
-
return new ImageSchema(this.options, true);
|
1592
|
+
return new ImageSchema(this.options, true, this.isRemote);
|
1593
1593
|
}
|
1594
1594
|
}, {
|
1595
1595
|
key: "serialize",
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export { A as ArraySchema, B as BooleanSchema, e as DEFAULT_APP_HOST, D as DEFAULT_CONTENT_HOST, f as DEFAULT_VAL_REMOTE_HOST, o as DateSchema, F as FATAL_ERROR_TYPES, g as FILE_REF_PROP, h as FILE_REF_SUBTYPE_TAG, n as FileSchema, G as GenericSelector, l as ImageSchema, I as Internal, K as KeyOfSchema, L as LiteralSchema, M as ModuleFilePathSep, N as NumberSchema, O as ObjectSchema, R as RecordSchema, p as RichTextSchema, S as Schema, k as StringSchema, U as UnionSchema, V as VAL_EXTENSION, j as derefPatch, q as deserializeSchema, i as initVal, m as modules } from './index-
|
1
|
+
export { A as ArraySchema, B as BooleanSchema, e as DEFAULT_APP_HOST, D as DEFAULT_CONTENT_HOST, f as DEFAULT_VAL_REMOTE_HOST, o as DateSchema, F as FATAL_ERROR_TYPES, g as FILE_REF_PROP, h as FILE_REF_SUBTYPE_TAG, n as FileSchema, G as GenericSelector, l as ImageSchema, I as Internal, K as KeyOfSchema, L as LiteralSchema, M as ModuleFilePathSep, N as NumberSchema, O as ObjectSchema, R as RecordSchema, p as RichTextSchema, S as Schema, k as StringSchema, U as UnionSchema, V as VAL_EXTENSION, j as derefPatch, q as deserializeSchema, i as initVal, m as modules } from './index-67e35487.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-8324579e.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-1e9b5668.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-67e35487.esm.js';
|
2
|
+
export { P as PatchError } from '../../dist/index-67e35487.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
|
|