@valbuild/core 0.65.3 → 0.67.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/index.d.ts +0 -2
- package/dist/declarations/src/initSchema.d.ts +18 -0
- package/dist/declarations/src/initVal.d.ts +2 -7
- package/dist/declarations/src/schema/image.d.ts +1 -0
- package/dist/declarations/src/selector/index.d.ts +2 -2
- package/dist/declarations/src/source/image.d.ts +14 -2
- package/dist/declarations/src/source/richtext.d.ts +0 -7
- package/dist/{index-e38a9dcf.esm.js → index-062f9388.esm.js} +58 -260
- package/dist/{index-4145963f.cjs.dev.js → index-38cd75f9.cjs.dev.js} +59 -282
- package/dist/{index-09f6e387.cjs.prod.js → index-55eeef93.cjs.prod.js} +59 -282
- package/dist/valbuild-core.cjs.dev.js +1 -4
- package/dist/valbuild-core.cjs.prod.js +1 -4
- package/dist/valbuild-core.esm.js +1 -3
- package/expr/dist/valbuild-core-expr.cjs.dev.js +1 -3
- package/expr/dist/valbuild-core-expr.cjs.prod.js +1 -3
- package/expr/dist/valbuild-core-expr.esm.js +1 -3
- package/package.json +1 -2
- package/patch/dist/valbuild-core-patch.cjs.dev.js +1 -3
- package/patch/dist/valbuild-core-patch.cjs.prod.js +1 -3
- package/patch/dist/valbuild-core-patch.esm.js +2 -4
- package/dist/declarations/src/source/link.d.ts +0 -9
@@ -1,28 +1,6 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
var result = require('./result-787e35f6.cjs.prod.js');
|
4
|
-
var marked = require('marked');
|
5
|
-
var core = require('@valbuild/core');
|
6
|
-
|
7
|
-
function _interopNamespace(e) {
|
8
|
-
if (e && e.__esModule) return e;
|
9
|
-
var n = Object.create(null);
|
10
|
-
if (e) {
|
11
|
-
Object.keys(e).forEach(function (k) {
|
12
|
-
if (k !== 'default') {
|
13
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
14
|
-
Object.defineProperty(n, k, d.get ? d : {
|
15
|
-
enumerable: true,
|
16
|
-
get: function () { return e[k]; }
|
17
|
-
});
|
18
|
-
}
|
19
|
-
});
|
20
|
-
}
|
21
|
-
n["default"] = e;
|
22
|
-
return Object.freeze(n);
|
23
|
-
}
|
24
|
-
|
25
|
-
var marked__namespace = /*#__PURE__*/_interopNamespace(marked);
|
26
4
|
|
27
5
|
function _arrayWithHoles(r) {
|
28
6
|
if (Array.isArray(r)) return r;
|
@@ -1079,7 +1057,7 @@ var ParserError = /*#__PURE__*/_createClass(function ParserError(message, span)
|
|
1079
1057
|
this.message = message;
|
1080
1058
|
this.span = span;
|
1081
1059
|
});
|
1082
|
-
function parseTokens
|
1060
|
+
function parseTokens(inputTokens) {
|
1083
1061
|
var tokens = inputTokens.slice();
|
1084
1062
|
function slurpCall(first, isAnon) {
|
1085
1063
|
var _tokens$, _tokens$2, _tokens$3, _tokens$7, _tokens$8, _args$slice$0$span;
|
@@ -1215,7 +1193,7 @@ function parse(input) {
|
|
1215
1193
|
_tokenize2 = _slicedToArray(_tokenize, 2),
|
1216
1194
|
tokens = _tokenize2[0];
|
1217
1195
|
_tokenize2[1]; // TODO: we can use cursor to improve error messages / spans
|
1218
|
-
return parseTokens
|
1196
|
+
return parseTokens(tokens);
|
1219
1197
|
}
|
1220
1198
|
|
1221
1199
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
@@ -2282,7 +2260,7 @@ var RichTextSchema = /*#__PURE__*/function (_Schema) {
|
|
2282
2260
|
}
|
2283
2261
|
}]);
|
2284
2262
|
}(Schema);
|
2285
|
-
var richtext
|
2263
|
+
var richtext = function richtext(options) {
|
2286
2264
|
return new RichTextSchema(options !== null && options !== void 0 ? options : {});
|
2287
2265
|
};
|
2288
2266
|
|
@@ -2453,7 +2431,7 @@ var ImageSchema = /*#__PURE__*/function (_Schema) {
|
|
2453
2431
|
}
|
2454
2432
|
}]);
|
2455
2433
|
}(Schema);
|
2456
|
-
var image
|
2434
|
+
var image = function image(options) {
|
2457
2435
|
return new ImageSchema(options);
|
2458
2436
|
};
|
2459
2437
|
|
@@ -3421,8 +3399,8 @@ function initSchema() {
|
|
3421
3399
|
number: number,
|
3422
3400
|
union: union,
|
3423
3401
|
// oneOf,
|
3424
|
-
richtext: richtext
|
3425
|
-
image: image
|
3402
|
+
richtext: richtext,
|
3403
|
+
image: image,
|
3426
3404
|
literal: literal,
|
3427
3405
|
keyOf: keyOf,
|
3428
3406
|
record: record,
|
@@ -3432,257 +3410,61 @@ function initSchema() {
|
|
3432
3410
|
};
|
3433
3411
|
}
|
3434
3412
|
|
3435
|
-
var VAL_START_TAG_PREFIX = '<val value="';
|
3436
|
-
var VAL_START_TAG_SUFFIX = '">';
|
3437
|
-
var VAL_END_TAG = "</val>";
|
3438
|
-
function parseTokens(tokens, sourceNodes, cursor) {
|
3439
|
-
var insideList = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
3440
|
-
var children = [];
|
3441
|
-
function merge(token, clazz) {
|
3442
|
-
var parsedTokens = parseTokens(token.tokens ? token.tokens : [], sourceNodes, 0);
|
3443
|
-
children.push({
|
3444
|
-
tag: "span",
|
3445
|
-
styles: [clazz].concat(parsedTokens.children.flatMap(function (child) {
|
3446
|
-
return typeof child === "string" ? [] : child.styles;
|
3447
|
-
})),
|
3448
|
-
children: parsedTokens.children.flatMap(function (child) {
|
3449
|
-
return typeof child === "string" ? child : child.children;
|
3450
|
-
})
|
3451
|
-
});
|
3452
|
-
}
|
3453
|
-
var _loop = function _loop() {
|
3454
|
-
var token = tokens[cursor];
|
3455
|
-
if (token.type === "heading") {
|
3456
|
-
children.push({
|
3457
|
-
tag: "h".concat(token.depth),
|
3458
|
-
children: parseTokens(token.tokens ? token.tokens : [], sourceNodes, 0).children
|
3459
|
-
});
|
3460
|
-
} else if (token.type === "paragraph") {
|
3461
|
-
children.push({
|
3462
|
-
tag: "p",
|
3463
|
-
children: parseTokens(token.tokens ? token.tokens : [], sourceNodes, 0).children
|
3464
|
-
});
|
3465
|
-
} else if (token.type === "strong") {
|
3466
|
-
merge(token, "bold");
|
3467
|
-
} else if (token.type === "em") {
|
3468
|
-
merge(token, "italic");
|
3469
|
-
} else if (token.type === "del") {
|
3470
|
-
merge(token, "line-through");
|
3471
|
-
} else if (token.type === "text") {
|
3472
|
-
if ("tokens" in token && Array.isArray(token.tokens)) {
|
3473
|
-
children.push.apply(children, _toConsumableArray(parseTokens(token.tokens, sourceNodes, cursor, insideList).children));
|
3474
|
-
} else {
|
3475
|
-
if (insideList && typeof token.raw === "string") {
|
3476
|
-
var lines = token.raw.split("\n");
|
3477
|
-
var tags = lines.flatMap(function (line, i) {
|
3478
|
-
if (i === lines.length - 1) return [line];
|
3479
|
-
if (i === lines.length - 1 && line === "") return [];
|
3480
|
-
if (line === "") return [{
|
3481
|
-
tag: "p",
|
3482
|
-
children: [{
|
3483
|
-
tag: "br"
|
3484
|
-
}]
|
3485
|
-
}];
|
3486
|
-
return [line, {
|
3487
|
-
tag: "p",
|
3488
|
-
children: [{
|
3489
|
-
tag: "br"
|
3490
|
-
}]
|
3491
|
-
}];
|
3492
|
-
});
|
3493
|
-
children.push.apply(children, _toConsumableArray(tags));
|
3494
|
-
} else {
|
3495
|
-
children.push(token.raw);
|
3496
|
-
}
|
3497
|
-
}
|
3498
|
-
} else if (token.type === "list") {
|
3499
|
-
children.push({
|
3500
|
-
tag: token.ordered ? "ol" : "ul",
|
3501
|
-
children: parseTokens(token.items, sourceNodes, 0).children
|
3502
|
-
});
|
3503
|
-
} else if (token.type === "list_item") {
|
3504
|
-
children.push({
|
3505
|
-
tag: "li",
|
3506
|
-
children: [{
|
3507
|
-
tag: "p",
|
3508
|
-
children: parseTokens(token.tokens ? token.tokens : [], sourceNodes, 0, true).children
|
3509
|
-
}]
|
3510
|
-
});
|
3511
|
-
} else if (token.type === "space") ; else if (token.type === "html") {
|
3512
|
-
if (token.text === VAL_END_TAG) {
|
3513
|
-
return {
|
3514
|
-
v: {
|
3515
|
-
children: children,
|
3516
|
-
cursor: cursor
|
3517
|
-
}
|
3518
|
-
};
|
3519
|
-
}
|
3520
|
-
var suffixIndex = token.text.indexOf(VAL_START_TAG_SUFFIX);
|
3521
|
-
if (token.text.startsWith(VAL_START_TAG_PREFIX) && suffixIndex > -1) {
|
3522
|
-
var number = Number(token.text.slice(VAL_START_TAG_PREFIX.length, suffixIndex));
|
3523
|
-
if (Number.isNaN(number)) {
|
3524
|
-
throw Error("Illegal val intermediate node: ".concat(JSON.stringify(token)));
|
3525
|
-
}
|
3526
|
-
var _parseTokens = parseTokens(tokens.map(function (token) {
|
3527
|
-
if (token.type === "link" || token.type === "list") {
|
3528
|
-
return {
|
3529
|
-
type: "text",
|
3530
|
-
raw: token.raw,
|
3531
|
-
text: token.raw
|
3532
|
-
};
|
3533
|
-
}
|
3534
|
-
return token;
|
3535
|
-
}), sourceNodes, cursor + 1),
|
3536
|
-
subChildren = _parseTokens.children,
|
3537
|
-
subCursor = _parseTokens.cursor;
|
3538
|
-
var sourceNode = sourceNodes[number];
|
3539
|
-
if (sourceNode._type === "link") {
|
3540
|
-
children.push({
|
3541
|
-
tag: "a",
|
3542
|
-
href: sourceNode.href,
|
3543
|
-
children: subChildren
|
3544
|
-
});
|
3545
|
-
} else if (sourceNode._type === "file") {
|
3546
|
-
// @ts-expect-error We are transitioning from markdown to structured objects, with structured objects we no longer want c.rt.image
|
3547
|
-
delete sourceNode[core.FILE_REF_SUBTYPE_TAG];
|
3548
|
-
children.push({
|
3549
|
-
tag: "img",
|
3550
|
-
src: sourceNode
|
3551
|
-
});
|
3552
|
-
}
|
3553
|
-
cursor = subCursor;
|
3554
|
-
}
|
3555
|
-
var br_html_regex = /<br\s*\/?>/gi; // matches <br>, <br/>, <br />; case insensitive
|
3556
|
-
if (token.text.trim().match(br_html_regex)) {
|
3557
|
-
var _tokens;
|
3558
|
-
children.push({
|
3559
|
-
tag: "p",
|
3560
|
-
children: [{
|
3561
|
-
tag: "br"
|
3562
|
-
}]
|
3563
|
-
});
|
3564
|
-
if (((_tokens = tokens[cursor + 1]) === null || _tokens === void 0 ? void 0 : _tokens.raw.trim()) === "") {
|
3565
|
-
// if next token is a new line or white-spaces, skip it
|
3566
|
-
// this typically means we have a <br> AND a new line, which, semantically, is just a <br>
|
3567
|
-
cursor++;
|
3568
|
-
}
|
3569
|
-
}
|
3570
|
-
} else if (token.type === "link") {
|
3571
|
-
if (token.raw === token.href) {
|
3572
|
-
// avoid auto-linking (provided by github flavoured markdown, but we want strikethrough so keep it enabled)
|
3573
|
-
children.push(token.raw);
|
3574
|
-
} else {
|
3575
|
-
children.push({
|
3576
|
-
tag: "a",
|
3577
|
-
href: token.href,
|
3578
|
-
children: parseTokens(token.tokens ? token.tokens : [], sourceNodes, 0).children
|
3579
|
-
});
|
3580
|
-
}
|
3581
|
-
} else if (token.type === "br") {
|
3582
|
-
children.push({
|
3583
|
-
tag: "p",
|
3584
|
-
children: [{
|
3585
|
-
tag: "br"
|
3586
|
-
}]
|
3587
|
-
});
|
3588
|
-
} else {
|
3589
|
-
console.error("Could not parse markdown: unsupported token type: ".concat(token.type, ". Found: ").concat(token.raw));
|
3590
|
-
}
|
3591
|
-
cursor++;
|
3592
|
-
},
|
3593
|
-
_ret;
|
3594
|
-
while (cursor < tokens.length) {
|
3595
|
-
_ret = _loop();
|
3596
|
-
if (_ret) return _ret.v;
|
3597
|
-
}
|
3598
|
-
return {
|
3599
|
-
children: children,
|
3600
|
-
cursor: cursor
|
3601
|
-
};
|
3602
|
-
}
|
3603
|
-
function parseRichTextSource(_ref) {
|
3604
|
-
var templateStrings = _ref.templateStrings,
|
3605
|
-
nodes = _ref.exprs;
|
3606
|
-
// TODO: validate that templateStrings does not contain VAL_NODE_PREFIX
|
3607
|
-
var inputText = templateStrings.flatMap(function (templateString, i) {
|
3608
|
-
var node = nodes[i];
|
3609
|
-
if (node) {
|
3610
|
-
if (node[core.VAL_EXTENSION] === "link") {
|
3611
|
-
return templateString.concat("".concat(VAL_START_TAG_PREFIX).concat(i).concat(VAL_START_TAG_SUFFIX).concat(node.children[0]).concat(VAL_END_TAG));
|
3612
|
-
} else {
|
3613
|
-
return templateString.concat("".concat(VAL_START_TAG_PREFIX).concat(i).concat(VAL_START_TAG_SUFFIX).concat(VAL_END_TAG));
|
3614
|
-
}
|
3615
|
-
}
|
3616
|
-
return templateString;
|
3617
|
-
}).join("");
|
3618
|
-
var tokenList = marked__namespace.lexer(inputText, {
|
3619
|
-
gfm: true
|
3620
|
-
});
|
3621
|
-
var _parseTokens2 = parseTokens(tokenList, nodes, 0),
|
3622
|
-
children = _parseTokens2.children,
|
3623
|
-
cursor = _parseTokens2.cursor;
|
3624
|
-
if (cursor !== tokenList.length) {
|
3625
|
-
throw Error("Unexpectedly terminated markdown parsing. Possible reason: unclosed html tag?");
|
3626
|
-
}
|
3627
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
3628
|
-
children.markdownish = true; // Markdown is an intermediate format - we are planning on replacing it with a structured object format
|
3629
|
-
return children;
|
3630
|
-
}
|
3631
|
-
|
3632
|
-
//#region Classes
|
3633
|
-
|
3634
|
-
//#region Paragraph
|
3635
|
-
|
3636
|
-
//#region Break
|
3637
|
-
|
3638
|
-
//#region Span
|
3639
|
-
|
3640
|
-
//#region Image
|
3641
|
-
|
3642
|
-
//#region Link
|
3643
|
-
|
3644
|
-
//#region List
|
3645
|
-
|
3646
|
-
//#region Heading
|
3647
|
-
|
3648
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
3649
|
-
|
3650
|
-
// export type CustomInlineNode<O extends RichTextOptions> = NonNullable<
|
3651
|
-
// NonNullable<O["inline"]>["custom"]
|
3652
|
-
// >[keyof NonNullable<NonNullable<O["inline"]>["custom"]>] extends Schema<
|
3653
|
-
// infer Src
|
3654
|
-
// >
|
3655
|
-
// ? ReplaceRawStringWithString<Src>
|
3656
|
-
// : never;
|
3657
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
3658
|
-
|
3659
|
-
//#region Block and Inline nodes:
|
3660
|
-
|
3661
|
-
//#region Main types
|
3662
|
-
|
3663
3413
|
/**
|
3664
|
-
*
|
3665
|
-
|
3414
|
+
* A image source represents the path to a (local) image.
|
3415
|
+
*
|
3416
|
+
*/
|
3666
3417
|
|
3667
|
-
function
|
3668
|
-
|
3669
|
-
|
3670
|
-
}
|
3671
|
-
return parseRichTextSource({
|
3672
|
-
templateStrings: templateStrings,
|
3673
|
-
exprs: nodes
|
3674
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
3675
|
-
});
|
3676
|
-
}
|
3677
|
-
var RT_IMAGE_TAG = "rt_image";
|
3678
|
-
function image(ref, metadata) {
|
3679
|
-
return _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, FILE_REF_PROP, ref), FILE_REF_SUBTYPE_TAG, RT_IMAGE_TAG), VAL_EXTENSION, "file"), "metadata", metadata);
|
3680
|
-
}
|
3418
|
+
var initImage = function initImage(config) {
|
3419
|
+
var _config$files$directo, _config$files;
|
3420
|
+
(_config$files$directo = config === null || config === void 0 || (_config$files = config.files) === null || _config$files === void 0 ? void 0 : _config$files.directory) !== null && _config$files$directo !== void 0 ? _config$files$directo : "/public/val";
|
3681
3421
|
|
3682
|
-
|
3683
|
-
|
3684
|
-
|
3685
|
-
|
3422
|
+
/**
|
3423
|
+
* Define the source of an image file.
|
3424
|
+
*
|
3425
|
+
* @example
|
3426
|
+
* c.image("/public/val/example.png", {
|
3427
|
+
* width: 944,
|
3428
|
+
* height: 944,
|
3429
|
+
* mimeType: "image/png",
|
3430
|
+
*})
|
3431
|
+
*
|
3432
|
+
* @param ref /public/val/example.png
|
3433
|
+
* @param metadata Image metadata: width, height, mimeType and optionally a hotspot.
|
3434
|
+
*/
|
3435
|
+
|
3436
|
+
/**
|
3437
|
+
* Define the source of an image file.
|
3438
|
+
*
|
3439
|
+
* NOTE: this will **not** validate since metadata has not been defined.
|
3440
|
+
*
|
3441
|
+
* Run `npx -p @valbuild/cli val validate --fix` to automatically add metadata.
|
3442
|
+
*
|
3443
|
+
* @example
|
3444
|
+
* c.image("/public/val/example.png")
|
3445
|
+
*
|
3446
|
+
* @param ref /public/val/example.png
|
3447
|
+
* @param metadata Image metadata: width, height, mimeType and optionally a hotspot.
|
3448
|
+
*/
|
3449
|
+
|
3450
|
+
/**
|
3451
|
+
* Define the source of an image file.
|
3452
|
+
*
|
3453
|
+
* @example
|
3454
|
+
* c.image("/public/val/example.png", {
|
3455
|
+
* width: 944,
|
3456
|
+
* height: 944,
|
3457
|
+
* mimeType: "image/png",
|
3458
|
+
*})
|
3459
|
+
*
|
3460
|
+
* @param ref /public/val/example.png
|
3461
|
+
* @param metadata Image metadata: width, height, mimeType and optionally a hotspot.
|
3462
|
+
*/
|
3463
|
+
function image(ref, metadata) {
|
3464
|
+
return _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, FILE_REF_PROP, ref), VAL_EXTENSION, "file"), FILE_REF_SUBTYPE_TAG, "image"), "metadata", metadata);
|
3465
|
+
}
|
3466
|
+
return image;
|
3467
|
+
};
|
3686
3468
|
|
3687
3469
|
/* eslint-disable @typescript-eslint/ban-types */
|
3688
3470
|
// import { i18n, I18n } from "./source/future/i18n";
|
@@ -3723,11 +3505,7 @@ var initVal = function initVal(config) {
|
|
3723
3505
|
define: define,
|
3724
3506
|
// remote,
|
3725
3507
|
file: initFile(config),
|
3726
|
-
|
3727
|
-
rt: {
|
3728
|
-
image: image,
|
3729
|
-
link: link
|
3730
|
-
}
|
3508
|
+
image: initImage(config)
|
3731
3509
|
},
|
3732
3510
|
s: s,
|
3733
3511
|
config: config
|
@@ -5228,7 +5006,6 @@ exports.NilSym = NilSym;
|
|
5228
5006
|
exports.NumberSchema = NumberSchema;
|
5229
5007
|
exports.ObjectSchema = ObjectSchema;
|
5230
5008
|
exports.PatchError = PatchError;
|
5231
|
-
exports.RT_IMAGE_TAG = RT_IMAGE_TAG;
|
5232
5009
|
exports.RecordSchema = RecordSchema;
|
5233
5010
|
exports.RichTextSchema = RichTextSchema;
|
5234
5011
|
exports.Schema = Schema;
|
@@ -2,10 +2,8 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var expr_dist_valbuildCoreExpr = require('./index-
|
5
|
+
var expr_dist_valbuildCoreExpr = require('./index-38cd75f9.cjs.dev.js');
|
6
6
|
require('./result-bb1f436e.cjs.dev.js');
|
7
|
-
require('marked');
|
8
|
-
require('@valbuild/core');
|
9
7
|
|
10
8
|
|
11
9
|
|
@@ -24,7 +22,6 @@ exports.LiteralSchema = expr_dist_valbuildCoreExpr.LiteralSchema;
|
|
24
22
|
exports.ModuleFilePathSep = expr_dist_valbuildCoreExpr.ModuleFilePathSep;
|
25
23
|
exports.NumberSchema = expr_dist_valbuildCoreExpr.NumberSchema;
|
26
24
|
exports.ObjectSchema = expr_dist_valbuildCoreExpr.ObjectSchema;
|
27
|
-
exports.RT_IMAGE_TAG = expr_dist_valbuildCoreExpr.RT_IMAGE_TAG;
|
28
25
|
exports.RecordSchema = expr_dist_valbuildCoreExpr.RecordSchema;
|
29
26
|
exports.RichTextSchema = expr_dist_valbuildCoreExpr.RichTextSchema;
|
30
27
|
exports.Schema = expr_dist_valbuildCoreExpr.Schema;
|
@@ -2,10 +2,8 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var expr_dist_valbuildCoreExpr = require('./index-
|
5
|
+
var expr_dist_valbuildCoreExpr = require('./index-55eeef93.cjs.prod.js');
|
6
6
|
require('./result-787e35f6.cjs.prod.js');
|
7
|
-
require('marked');
|
8
|
-
require('@valbuild/core');
|
9
7
|
|
10
8
|
|
11
9
|
|
@@ -24,7 +22,6 @@ exports.LiteralSchema = expr_dist_valbuildCoreExpr.LiteralSchema;
|
|
24
22
|
exports.ModuleFilePathSep = expr_dist_valbuildCoreExpr.ModuleFilePathSep;
|
25
23
|
exports.NumberSchema = expr_dist_valbuildCoreExpr.NumberSchema;
|
26
24
|
exports.ObjectSchema = expr_dist_valbuildCoreExpr.ObjectSchema;
|
27
|
-
exports.RT_IMAGE_TAG = expr_dist_valbuildCoreExpr.RT_IMAGE_TAG;
|
28
25
|
exports.RecordSchema = expr_dist_valbuildCoreExpr.RecordSchema;
|
29
26
|
exports.RichTextSchema = expr_dist_valbuildCoreExpr.RichTextSchema;
|
30
27
|
exports.Schema = expr_dist_valbuildCoreExpr.Schema;
|
@@ -1,4 +1,2 @@
|
|
1
|
-
export { A as ArraySchema, B as BooleanSchema, D as DateSchema, F as FATAL_ERROR_TYPES, k as FILE_REF_PROP, l as FILE_REF_SUBTYPE_TAG,
|
1
|
+
export { A as ArraySchema, B as BooleanSchema, D as DateSchema, F as FATAL_ERROR_TYPES, k as FILE_REF_PROP, l as FILE_REF_SUBTYPE_TAG, t as FileSchema, G as GenericSelector, r as ImageSchema, I as Internal, K as KeyOfSchema, L as LiteralSchema, M as ModuleFilePathSep, q as NumberSchema, O as ObjectSchema, R as RecordSchema, u as RichTextSchema, j as Schema, o as StringSchema, U as UnionSchema, V as VAL_EXTENSION, n as derefPatch, v as deserializeSchema, i as expr, h as initVal, m as modules } from './index-062f9388.esm.js';
|
2
2
|
import './result-168dfc1d.esm.js';
|
3
|
-
import 'marked';
|
4
|
-
import '@valbuild/core';
|
@@ -2,10 +2,8 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var expr_dist_valbuildCoreExpr = require('../../dist/index-
|
5
|
+
var expr_dist_valbuildCoreExpr = require('../../dist/index-38cd75f9.cjs.dev.js');
|
6
6
|
require('../../dist/result-bb1f436e.cjs.dev.js');
|
7
|
-
require('marked');
|
8
|
-
require('@valbuild/core');
|
9
7
|
|
10
8
|
|
11
9
|
|
@@ -2,10 +2,8 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var expr_dist_valbuildCoreExpr = require('../../dist/index-
|
5
|
+
var expr_dist_valbuildCoreExpr = require('../../dist/index-55eeef93.cjs.prod.js');
|
6
6
|
require('../../dist/result-787e35f6.cjs.prod.js');
|
7
|
-
require('marked');
|
8
|
-
require('@valbuild/core');
|
9
7
|
|
10
8
|
|
11
9
|
|
@@ -1,4 +1,2 @@
|
|
1
|
-
export { C as Call, E as Expr, N as NilSym, S as StringLiteral, e as StringTemplate, f as Sym, g as evaluate, p as parse } from '../../dist/index-
|
1
|
+
export { C as Call, E as Expr, N as NilSym, S as StringLiteral, e as StringTemplate, f as Sym, g as evaluate, p as parse } from '../../dist/index-062f9388.esm.js';
|
2
2
|
import '../../dist/result-168dfc1d.esm.js';
|
3
|
-
import 'marked';
|
4
|
-
import '@valbuild/core';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@valbuild/core",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.67.0",
|
4
4
|
"private": false,
|
5
5
|
"description": "Val - supercharged hard-coded content",
|
6
6
|
"scripts": {
|
@@ -41,7 +41,6 @@
|
|
41
41
|
},
|
42
42
|
"devDependencies": {},
|
43
43
|
"dependencies": {
|
44
|
-
"marked": "^9.0.3",
|
45
44
|
"ts-toolbelt": "^9.6.0"
|
46
45
|
},
|
47
46
|
"files": [
|
@@ -2,11 +2,9 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var expr_dist_valbuildCoreExpr = require('../../dist/index-
|
5
|
+
var expr_dist_valbuildCoreExpr = require('../../dist/index-38cd75f9.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
|
-
require('marked');
|
9
|
-
require('@valbuild/core');
|
10
8
|
|
11
9
|
function isNotRoot(path) {
|
12
10
|
return result.isNonEmpty(path);
|
@@ -2,11 +2,9 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var expr_dist_valbuildCoreExpr = require('../../dist/index-
|
5
|
+
var expr_dist_valbuildCoreExpr = require('../../dist/index-55eeef93.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
|
-
require('marked');
|
9
|
-
require('@valbuild/core');
|
10
8
|
|
11
9
|
function isNotRoot(path) {
|
12
10
|
return result.isNonEmpty(path);
|
@@ -1,9 +1,7 @@
|
|
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-062f9388.esm.js';
|
2
|
+
export { P as PatchError } from '../../dist/index-062f9388.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-168dfc1d.esm.js';
|
4
4
|
import { p as pipe } from '../../dist/util-18613e99.esm.js';
|
5
|
-
import 'marked';
|
6
|
-
import '@valbuild/core';
|
7
5
|
|
8
6
|
function isNotRoot(path) {
|
9
7
|
return isNonEmpty(path);
|