@valbuild/shared 0.150.10 → 0.150.11
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 +22 -0
- package/client/dist/valbuild-shared-client.cjs.dev.js +16 -2
- package/client/dist/valbuild-shared-client.cjs.prod.js +16 -2
- package/client/dist/valbuild-shared-client.esm.js +2 -2
- package/dist/{acquireTypes-dd976839.cjs.prod.js → acquireTypes-6250a305.cjs.prod.js} +46 -46
- package/dist/{acquireTypes-6e2f7961.esm.js → acquireTypes-c2227b23.esm.js} +2 -2
- package/dist/{acquireTypes-84a4077a.cjs.dev.js → acquireTypes-c9e757a1.cjs.dev.js} +46 -46
- package/dist/{slicedToArray-22567815.esm.js → createForOfIteratorHelper-9b80f1a2.esm.js} +136 -106
- package/dist/{slicedToArray-d99b4e2e.cjs.prod.js → createForOfIteratorHelper-9ca2078d.cjs.prod.js} +142 -111
- package/dist/{slicedToArray-c8a29f6b.cjs.dev.js → createForOfIteratorHelper-f2d7ac6d.cjs.dev.js} +142 -111
- package/dist/declarations/src/client/index.d.ts +2 -0
- package/dist/declarations/src/internal/ApiRoutes.d.ts +1 -0
- package/dist/declarations/src/internal/index.d.ts +2 -0
- package/dist/declarations/src/internal/pageInspection.d.ts +117 -0
- package/dist/declarations/src/internal/quickPreview.d.ts +91 -0
- package/dist/declarations/src/internal/valCanvasProtocol.d.ts +53 -0
- package/dist/declarations/src/publish/buildProposal.d.ts +16 -1
- package/dist/declarations/src/publish/buildQuickPreview.d.ts +46 -0
- package/dist/declarations/src/publish/index.d.ts +3 -2
- package/dist/declarations/src/publish/runStudioDeploy.d.ts +10 -0
- package/dist/getSitemapTree-5354ce90.cjs.prod.js +1421 -0
- package/dist/getSitemapTree-97b3166f.esm.js +1381 -0
- package/dist/getSitemapTree-d934ff9c.cjs.dev.js +1421 -0
- package/dist/{proposalProject-689c24cc.esm.js → proposalProject-5da177d5.esm.js} +1 -2
- package/dist/{proposalProject-926f2c68.cjs.dev.js → proposalProject-76caa377.cjs.prod.js} +2 -3
- package/dist/{proposalProject-fab0c026.cjs.prod.js → proposalProject-81fee08f.cjs.dev.js} +2 -3
- package/dist/{protocol-7ddc1a71.esm.js → protocol-55cfa3cf.esm.js} +1 -1
- package/dist/{protocol-4e2a455b.cjs.prod.js → protocol-b1055ef0.cjs.prod.js} +6 -6
- package/dist/{protocol-ac1c3ec7.cjs.dev.js → protocol-d0efb8cd.cjs.dev.js} +6 -6
- package/dist/wrapNativeSuper-639b12b7.esm.js +107 -0
- package/dist/wrapNativeSuper-8673414f.cjs.prod.js +113 -0
- package/dist/wrapNativeSuper-933f991e.cjs.dev.js +113 -0
- package/internal/dist/valbuild-shared-internal.cjs.dev.js +53 -34
- package/internal/dist/valbuild-shared-internal.cjs.prod.js +53 -34
- package/internal/dist/valbuild-shared-internal.esm.js +11 -6
- package/package.json +1 -1
- package/publish/dist/valbuild-shared-publish.cjs.dev.js +589 -237
- package/publish/dist/valbuild-shared-publish.cjs.prod.js +589 -237
- package/publish/dist/valbuild-shared-publish.esm.js +504 -155
- package/typecheck/dist/valbuild-shared-typecheck.cjs.dev.js +34 -34
- package/typecheck/dist/valbuild-shared-typecheck.cjs.prod.js +34 -34
- package/typecheck/dist/valbuild-shared-typecheck.esm.js +5 -5
- package/typecheck/testing/dist/valbuild-shared-typecheck-testing.cjs.dev.js +7 -7
- package/typecheck/testing/dist/valbuild-shared-typecheck-testing.cjs.prod.js +7 -7
- package/typecheck/testing/dist/valbuild-shared-typecheck-testing.esm.js +3 -3
- package/dist/createForOfIteratorHelper-666a6d17.esm.js +0 -137
- package/dist/createForOfIteratorHelper-87a33eff.cjs.dev.js +0 -145
- package/dist/createForOfIteratorHelper-fef4fa7d.cjs.prod.js +0 -145
- package/dist/getSitemapTree-873f7266.cjs.prod.js +0 -743
- package/dist/getSitemapTree-b6161fd8.esm.js +0 -717
- package/dist/getSitemapTree-be70d9fc.cjs.dev.js +0 -743
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var createForOfIteratorHelper = require('../../dist/createForOfIteratorHelper-
|
|
5
|
+
var createForOfIteratorHelper = require('../../dist/createForOfIteratorHelper-f2d7ac6d.cjs.dev.js');
|
|
6
6
|
var core = require('@valbuild/core');
|
|
7
|
-
var slicedToArray = require('../../dist/slicedToArray-c8a29f6b.cjs.dev.js');
|
|
8
7
|
var zod = require('zod');
|
|
9
|
-
var protocol = require('../../dist/protocol-
|
|
8
|
+
var protocol = require('../../dist/protocol-d0efb8cd.cjs.dev.js');
|
|
10
9
|
var zodValidationError = require('zod-validation-error');
|
|
11
|
-
var getSitemapTree = require('../../dist/getSitemapTree-
|
|
10
|
+
var getSitemapTree = require('../../dist/getSitemapTree-d934ff9c.cjs.dev.js');
|
|
12
11
|
var FlexSearch = require('flexsearch');
|
|
12
|
+
var wrapNativeSuper = require('../../dist/wrapNativeSuper-933f991e.cjs.dev.js');
|
|
13
13
|
var utils = require('../../dist/utils-d3d8b4b5.cjs.dev.js');
|
|
14
14
|
|
|
15
15
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
@@ -3606,7 +3606,12 @@ var Api = {
|
|
|
3606
3606
|
width: zod.z.number(),
|
|
3607
3607
|
height: zod.z.number(),
|
|
3608
3608
|
mimeType: zod.z.string()
|
|
3609
|
-
})
|
|
3609
|
+
}),
|
|
3610
|
+
/**
|
|
3611
|
+
* SHA-256 of the bytes, hex: what a remote file's ref names.
|
|
3612
|
+
* Absent from a content service that predates it.
|
|
3613
|
+
*/
|
|
3614
|
+
sha256: zod.z.string().optional()
|
|
3610
3615
|
}))
|
|
3611
3616
|
})
|
|
3612
3617
|
}), zod.z.object({
|
|
@@ -3781,10 +3786,10 @@ var createValClient = function createValClient(host, config, options) {
|
|
|
3781
3786
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3782
3787
|
var anyApi = Api;
|
|
3783
3788
|
return /*#__PURE__*/function () {
|
|
3784
|
-
var _ref =
|
|
3789
|
+
var _ref = createForOfIteratorHelper._asyncToGenerator(/*#__PURE__*/createForOfIteratorHelper._regenerator().m(function _callee2(path, method, req) {
|
|
3785
3790
|
var _anyApi$path, _apiEndpoint$req$body;
|
|
3786
3791
|
var anyReq, fullPath, params, _i, _Object$keys, _anyReq$query, key, _anyReq$query2, _iterator, _step, value, _anyReq$query3, _anyReq$query4, apiEndpoint, reqBodyResult, headers, _i2, _Object$entries, _Object$entries$_i, name, _value, res, _t;
|
|
3787
|
-
return
|
|
3792
|
+
return createForOfIteratorHelper._regenerator().w(function (_context2) {
|
|
3788
3793
|
while (1) switch (_context2.p = _context2.n) {
|
|
3789
3794
|
case 0:
|
|
3790
3795
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -3871,7 +3876,7 @@ var createValClient = function createValClient(host, config, options) {
|
|
|
3871
3876
|
};
|
|
3872
3877
|
if (anyReq !== null && anyReq !== void 0 && anyReq.headers) {
|
|
3873
3878
|
for (_i2 = 0, _Object$entries = Object.entries(anyReq.headers); _i2 < _Object$entries.length; _i2++) {
|
|
3874
|
-
_Object$entries$_i =
|
|
3879
|
+
_Object$entries$_i = createForOfIteratorHelper._slicedToArray(_Object$entries[_i2], 2), name = _Object$entries$_i[0], _value = _Object$entries$_i[1];
|
|
3875
3880
|
if (typeof _value === "string") {
|
|
3876
3881
|
headers[name] = _value;
|
|
3877
3882
|
}
|
|
@@ -3884,10 +3889,10 @@ var createValClient = function createValClient(host, config, options) {
|
|
|
3884
3889
|
headers: headers,
|
|
3885
3890
|
body: anyReq.body !== undefined ? JSON.stringify(anyReq.body) : undefined
|
|
3886
3891
|
}).then(/*#__PURE__*/function () {
|
|
3887
|
-
var _ref2 =
|
|
3892
|
+
var _ref2 = createForOfIteratorHelper._asyncToGenerator(/*#__PURE__*/createForOfIteratorHelper._regenerator().m(function _callee(res) {
|
|
3888
3893
|
var _apiEndpoint$res;
|
|
3889
3894
|
var contentTypeHeaders, json, valClientResult, message, responseResult;
|
|
3890
|
-
return
|
|
3895
|
+
return createForOfIteratorHelper._regenerator().w(function (_context) {
|
|
3891
3896
|
while (1) switch (_context.n) {
|
|
3892
3897
|
case 0:
|
|
3893
3898
|
contentTypeHeaders = res.headers.get("content-type");
|
|
@@ -4091,7 +4096,7 @@ var urlOf = function urlOf() {
|
|
|
4091
4096
|
var query = arguments.length <= 1 ? undefined : arguments[1];
|
|
4092
4097
|
if (query) {
|
|
4093
4098
|
var params = Object.entries(query).flatMap(function (_ref) {
|
|
4094
|
-
var _ref2 =
|
|
4099
|
+
var _ref2 = createForOfIteratorHelper._slicedToArray(_ref, 2),
|
|
4095
4100
|
key = _ref2[0],
|
|
4096
4101
|
value = _ref2[1];
|
|
4097
4102
|
if (!value) {
|
|
@@ -4350,7 +4355,7 @@ function checkCompatibility(from, to) {
|
|
|
4350
4355
|
var unknown = null;
|
|
4351
4356
|
for (var _i = 0, _Object$entries = Object.entries(target); _i < _Object$entries.length; _i++) {
|
|
4352
4357
|
var _fromValue$_key;
|
|
4353
|
-
var _Object$entries$_i =
|
|
4358
|
+
var _Object$entries$_i = createForOfIteratorHelper._slicedToArray(_Object$entries[_i], 2),
|
|
4354
4359
|
_key = _Object$entries$_i[0],
|
|
4355
4360
|
targetItem = _Object$entries$_i[1];
|
|
4356
4361
|
var sourceItem = source[_key];
|
|
@@ -4679,7 +4684,7 @@ function getRoutesWithModulePaths(schemas, sources) {
|
|
|
4679
4684
|
}
|
|
4680
4685
|
}
|
|
4681
4686
|
var routes = Array.from(routeMap.entries()).map(function (_ref) {
|
|
4682
|
-
var _ref2 =
|
|
4687
|
+
var _ref2 = createForOfIteratorHelper._slicedToArray(_ref, 2),
|
|
4683
4688
|
route = _ref2[0],
|
|
4684
4689
|
moduleFilePath = _ref2[1];
|
|
4685
4690
|
return {
|
|
@@ -4741,7 +4746,7 @@ function findSimilar(key, targets) {
|
|
|
4741
4746
|
*/
|
|
4742
4747
|
function getKeyOfRecordAt(sourcePath, snapshot) {
|
|
4743
4748
|
var _Internal$splitModule = core.Internal.splitModuleFilePathAndModulePath(sourcePath),
|
|
4744
|
-
_Internal$splitModule2 =
|
|
4749
|
+
_Internal$splitModule2 = createForOfIteratorHelper._slicedToArray(_Internal$splitModule, 2),
|
|
4745
4750
|
moduleFilePath = _Internal$splitModule2[0],
|
|
4746
4751
|
modulePath = _Internal$splitModule2[1];
|
|
4747
4752
|
var moduleSource = snapshot.sources[moduleFilePath];
|
|
@@ -4842,7 +4847,7 @@ function checkRouteIsValid(route, includePattern, excludePattern, snapshot) {
|
|
|
4842
4847
|
var moduleEntries = Object.entries(routerModules);
|
|
4843
4848
|
var foundInModule = null;
|
|
4844
4849
|
for (var _i = 0, _moduleEntries = moduleEntries; _i < _moduleEntries.length; _i++) {
|
|
4845
|
-
var _moduleEntries$_i =
|
|
4850
|
+
var _moduleEntries$_i = createForOfIteratorHelper._slicedToArray(_moduleEntries[_i], 2),
|
|
4846
4851
|
_moduleFilePath = _moduleEntries$_i[0],
|
|
4847
4852
|
routes = _moduleEntries$_i[1];
|
|
4848
4853
|
if (routes.includes(route)) {
|
|
@@ -4852,7 +4857,7 @@ function checkRouteIsValid(route, includePattern, excludePattern, snapshot) {
|
|
|
4852
4857
|
}
|
|
4853
4858
|
if (!foundInModule) {
|
|
4854
4859
|
var allRoutes = moduleEntries.flatMap(function (_ref4) {
|
|
4855
|
-
var _ref5 =
|
|
4860
|
+
var _ref5 = createForOfIteratorHelper._slicedToArray(_ref4, 2),
|
|
4856
4861
|
routes = _ref5[1];
|
|
4857
4862
|
return routes;
|
|
4858
4863
|
});
|
|
@@ -5332,7 +5337,7 @@ function localeAt(path, snapshot) {
|
|
|
5332
5337
|
return null;
|
|
5333
5338
|
}
|
|
5334
5339
|
var _Internal$splitModule = core.Internal.splitModuleFilePathAndModulePath(path),
|
|
5335
|
-
_Internal$splitModule2 =
|
|
5340
|
+
_Internal$splitModule2 = createForOfIteratorHelper._slicedToArray(_Internal$splitModule, 2),
|
|
5336
5341
|
moduleFilePath = _Internal$splitModule2[0],
|
|
5337
5342
|
modulePath = _Internal$splitModule2[1];
|
|
5338
5343
|
var schema = snapshot.schemas[moduleFilePath];
|
|
@@ -5406,7 +5411,7 @@ function localeOfRouteKey(schema, moduleFilePath, key, available) {
|
|
|
5406
5411
|
return null;
|
|
5407
5412
|
}
|
|
5408
5413
|
for (var _i = 0, _Object$entries = Object.entries(schema.params); _i < _Object$entries.length; _i++) {
|
|
5409
|
-
var _Object$entries$_i =
|
|
5414
|
+
var _Object$entries$_i = createForOfIteratorHelper._slicedToArray(_Object$entries[_i], 2),
|
|
5410
5415
|
name = _Object$entries$_i[0],
|
|
5411
5416
|
param = _Object$entries$_i[1];
|
|
5412
5417
|
if (isLocaleSchema(param) && Object.prototype.hasOwnProperty.call(values, name)) {
|
|
@@ -5513,7 +5518,7 @@ function localeOfObjectField(schema, source, available) {
|
|
|
5513
5518
|
return null;
|
|
5514
5519
|
}
|
|
5515
5520
|
for (var _i2 = 0, _Object$entries2 = Object.entries(schema.items); _i2 < _Object$entries2.length; _i2++) {
|
|
5516
|
-
var _Object$entries2$_i =
|
|
5521
|
+
var _Object$entries2$_i = createForOfIteratorHelper._slicedToArray(_Object$entries2[_i2], 2),
|
|
5517
5522
|
key = _Object$entries2$_i[0],
|
|
5518
5523
|
item = _Object$entries2$_i[1];
|
|
5519
5524
|
if (!isLocaleSchema(item)) {
|
|
@@ -7179,7 +7184,7 @@ function indexModule(searchIndex, moduleFilePath, source, schema) {
|
|
|
7179
7184
|
// Add to index if we have search text
|
|
7180
7185
|
if (searchText) {
|
|
7181
7186
|
var _Internal$splitModule = core.Internal.splitModuleFilePathAndModulePath(path),
|
|
7182
|
-
_Internal$splitModule2 =
|
|
7187
|
+
_Internal$splitModule2 = createForOfIteratorHelper._slicedToArray(_Internal$splitModule, 2),
|
|
7183
7188
|
modulePath = _Internal$splitModule2[1];
|
|
7184
7189
|
var cleanPath = fastRemoveNonWordChars(modulePath) + " ";
|
|
7185
7190
|
index.add(path, cleanPath + " " + path + " " + searchText);
|
|
@@ -7505,7 +7510,7 @@ function accentRamp(accent) {
|
|
|
7505
7510
|
return null;
|
|
7506
7511
|
}
|
|
7507
7512
|
var _rgbToOklch = rgbToOklch(rgb),
|
|
7508
|
-
_rgbToOklch2 =
|
|
7513
|
+
_rgbToOklch2 = createForOfIteratorHelper._slicedToArray(_rgbToOklch, 3),
|
|
7509
7514
|
accentChroma = _rgbToOklch2[1],
|
|
7510
7515
|
accentHue = _rgbToOklch2[2];
|
|
7511
7516
|
var anchor = GREEN_PROFILE.find(function (entry) {
|
|
@@ -7524,7 +7529,7 @@ function accentRamp(accent) {
|
|
|
7524
7529
|
}
|
|
7525
7530
|
// Green's lightness and chroma, the accent's hue. Green's own hue is the
|
|
7526
7531
|
// one thing a generated ramp does not keep.
|
|
7527
|
-
var _entry$lch =
|
|
7532
|
+
var _entry$lch = createForOfIteratorHelper._slicedToArray(entry.lch, 2),
|
|
7528
7533
|
lightness = _entry$lch[0],
|
|
7529
7534
|
chroma = _entry$lch[1];
|
|
7530
7535
|
return rgbToHex(oklchToRgb(clampChromaToGamut([lightness, chroma * chromaScale, accentHue])));
|
|
@@ -7674,7 +7679,7 @@ function relativeLuminance(hex) {
|
|
|
7674
7679
|
throw new Error("Not a six-digit hex colour: ".concat(hex));
|
|
7675
7680
|
}
|
|
7676
7681
|
var _rgb$map = rgb.map(srgbToLinear),
|
|
7677
|
-
_rgb$map2 =
|
|
7682
|
+
_rgb$map2 = createForOfIteratorHelper._slicedToArray(_rgb$map, 3),
|
|
7678
7683
|
r = _rgb$map2[0],
|
|
7679
7684
|
g = _rgb$map2[1],
|
|
7680
7685
|
b = _rgb$map2[2];
|
|
@@ -7954,7 +7959,7 @@ function isInsidePatchSetPath(inner, outer) {
|
|
|
7954
7959
|
}
|
|
7955
7960
|
var PatchSets = /*#__PURE__*/function () {
|
|
7956
7961
|
function PatchSets() {
|
|
7957
|
-
|
|
7962
|
+
wrapNativeSuper._classCallCheck(this, PatchSets);
|
|
7958
7963
|
createForOfIteratorHelper._defineProperty(this, "insertedPatches", void 0);
|
|
7959
7964
|
createForOfIteratorHelper._defineProperty(this, "patchSetMetadata", void 0);
|
|
7960
7965
|
createForOfIteratorHelper._defineProperty(this, "orderedInsertKeys", void 0);
|
|
@@ -7962,7 +7967,7 @@ var PatchSets = /*#__PURE__*/function () {
|
|
|
7962
7967
|
this.orderedInsertKeys = [];
|
|
7963
7968
|
this.insertedPatches = new Set();
|
|
7964
7969
|
}
|
|
7965
|
-
return
|
|
7970
|
+
return wrapNativeSuper._createClass(PatchSets, [{
|
|
7966
7971
|
key: "reset",
|
|
7967
7972
|
value: function reset() {
|
|
7968
7973
|
this.patchSetMetadata = {};
|
|
@@ -8404,7 +8409,7 @@ function sideFiles(trees, side) {
|
|
|
8404
8409
|
for (var _i = 0, _layers = layers; _i < _layers.length; _i++) {
|
|
8405
8410
|
var layer = _layers[_i];
|
|
8406
8411
|
for (var _i2 = 0, _Object$entries = Object.entries(layer); _i2 < _Object$entries.length; _i2++) {
|
|
8407
|
-
var _Object$entries$_i =
|
|
8412
|
+
var _Object$entries$_i = createForOfIteratorHelper._slicedToArray(_Object$entries[_i2], 2),
|
|
8408
8413
|
path = _Object$entries$_i[0],
|
|
8409
8414
|
text = _Object$entries$_i[1];
|
|
8410
8415
|
if (text === null) delete files[path];else files[path] = text;
|
|
@@ -8430,11 +8435,11 @@ function schemaErrorsOf(schema, moduleFilePath, source) {
|
|
|
8430
8435
|
if (res === false) return [];
|
|
8431
8436
|
var errors = [];
|
|
8432
8437
|
for (var _i3 = 0, _Object$entries2 = Object.entries(res); _i3 < _Object$entries2.length; _i3++) {
|
|
8433
|
-
var _Object$entries2$_i =
|
|
8438
|
+
var _Object$entries2$_i = createForOfIteratorHelper._slicedToArray(_Object$entries2[_i3], 2),
|
|
8434
8439
|
sourcePath = _Object$entries2$_i[0],
|
|
8435
8440
|
list = _Object$entries2$_i[1];
|
|
8436
8441
|
var _Internal$splitModule = core.Internal.splitModuleFilePathAndModulePath(sourcePath),
|
|
8437
|
-
_Internal$splitModule2 =
|
|
8442
|
+
_Internal$splitModule2 = createForOfIteratorHelper._slicedToArray(_Internal$splitModule, 2),
|
|
8438
8443
|
modulePath = _Internal$splitModule2[1];
|
|
8439
8444
|
var path = modulePath ? core.Internal.createPatchPath(modulePath) : [];
|
|
8440
8445
|
var _iterator = createForOfIteratorHelper._createForOfIteratorHelper(list),
|
|
@@ -8483,7 +8488,7 @@ function selfCheck(_x) {
|
|
|
8483
8488
|
return _selfCheck.apply(this, arguments);
|
|
8484
8489
|
}
|
|
8485
8490
|
function _selfCheck() {
|
|
8486
|
-
_selfCheck =
|
|
8491
|
+
_selfCheck = createForOfIteratorHelper._asyncToGenerator(/*#__PURE__*/createForOfIteratorHelper._regenerator().m(function _callee(valModules) {
|
|
8487
8492
|
var options,
|
|
8488
8493
|
errors,
|
|
8489
8494
|
found,
|
|
@@ -8531,7 +8536,7 @@ function _selfCheck() {
|
|
|
8531
8536
|
_t2,
|
|
8532
8537
|
_t3,
|
|
8533
8538
|
_t4;
|
|
8534
|
-
return
|
|
8539
|
+
return createForOfIteratorHelper._regenerator().w(function (_context) {
|
|
8535
8540
|
while (1) switch (_context.p = _context.n) {
|
|
8536
8541
|
case 0:
|
|
8537
8542
|
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
|
@@ -8547,7 +8552,7 @@ function _selfCheck() {
|
|
|
8547
8552
|
_context.n = 17;
|
|
8548
8553
|
break;
|
|
8549
8554
|
}
|
|
8550
|
-
_step$value =
|
|
8555
|
+
_step$value = createForOfIteratorHelper._slicedToArray(_step.value, 2), index = _step$value[0], entry = _step$value[1];
|
|
8551
8556
|
module = void 0;
|
|
8552
8557
|
_context.p = 3;
|
|
8553
8558
|
_context.n = 4;
|
|
@@ -8624,7 +8629,7 @@ function _selfCheck() {
|
|
|
8624
8629
|
return _context.a(3, 16);
|
|
8625
8630
|
case 15:
|
|
8626
8631
|
for (_i2 = 0, _Object$entries2 = Object.entries(result); _i2 < _Object$entries2.length; _i2++) {
|
|
8627
|
-
_Object$entries2$_i =
|
|
8632
|
+
_Object$entries2$_i = createForOfIteratorHelper._slicedToArray(_Object$entries2[_i2], 2), _sourcePath = _Object$entries2$_i[0], _list = _Object$entries2$_i[1];
|
|
8628
8633
|
(_found = (_found$_ref = found[_ref = _sourcePath]) !== null && _found$_ref !== void 0 ? _found$_ref : found[_ref] = []).push.apply(_found, createForOfIteratorHelper._toConsumableArray(_list));
|
|
8629
8634
|
}
|
|
8630
8635
|
case 16:
|
|
@@ -8650,8 +8655,8 @@ function _selfCheck() {
|
|
|
8650
8655
|
sources: sources
|
|
8651
8656
|
})), surfaced = _partitionValidationE.surfaced, skipped = _partitionValidationE.skipped;
|
|
8652
8657
|
for (_i = 0, _Object$entries = Object.entries(surfaced); _i < _Object$entries.length; _i++) {
|
|
8653
|
-
_Object$entries$_i =
|
|
8654
|
-
_Internal$splitModule = core.Internal.splitModuleFilePathAndModulePath(sourcePath), _Internal$splitModule2 =
|
|
8658
|
+
_Object$entries$_i = createForOfIteratorHelper._slicedToArray(_Object$entries[_i], 2), sourcePath = _Object$entries$_i[0], list = _Object$entries$_i[1];
|
|
8659
|
+
_Internal$splitModule = core.Internal.splitModuleFilePathAndModulePath(sourcePath), _Internal$splitModule2 = createForOfIteratorHelper._slicedToArray(_Internal$splitModule, 2), moduleFilePath = _Internal$splitModule2[0], modulePath = _Internal$splitModule2[1];
|
|
8655
8660
|
path = modulePath ? core.Internal.createPatchPath(modulePath) : [];
|
|
8656
8661
|
_iterator2 = createForOfIteratorHelper._createForOfIteratorHelper(list);
|
|
8657
8662
|
try {
|
|
@@ -8707,6 +8712,10 @@ exports.parseUpdateTarget = protocol.parseUpdateTarget;
|
|
|
8707
8712
|
exports.parseVerify = protocol.parseVerify;
|
|
8708
8713
|
exports.DEFAULT_CANVAS_SELECTION = getSitemapTree.DEFAULT_CANVAS_SELECTION;
|
|
8709
8714
|
exports.DEFAULT_CANVAS_SELECTION_SOFT = getSitemapTree.DEFAULT_CANVAS_SELECTION_SOFT;
|
|
8715
|
+
exports.QUICK_PREVIEW_PARAM = getSitemapTree.QUICK_PREVIEW_PARAM;
|
|
8716
|
+
exports.QUICK_PREVIEW_SERVICE_WORKER_PATH = getSitemapTree.QUICK_PREVIEW_SERVICE_WORKER_PATH;
|
|
8717
|
+
exports.QUICK_PREVIEW_SERVICE_WORKER_SOURCE = getSitemapTree.QUICK_PREVIEW_SERVICE_WORKER_SOURCE;
|
|
8718
|
+
exports.QUICK_PREVIEW_STORE_MESSAGE = getSitemapTree.QUICK_PREVIEW_STORE_MESSAGE;
|
|
8710
8719
|
exports.VAL_AI_SESSION_STORAGE_KEY = getSitemapTree.VAL_AI_SESSION_STORAGE_KEY;
|
|
8711
8720
|
exports.VAL_CANVAS_MESSAGE = getSitemapTree.VAL_CANVAS_MESSAGE;
|
|
8712
8721
|
exports.VAL_CANVAS_PARAM = getSitemapTree.VAL_CANVAS_PARAM;
|
|
@@ -8716,19 +8725,29 @@ exports.attachElementPicker = getSitemapTree.attachElementPicker;
|
|
|
8716
8725
|
exports.createPickerOverlay = getSitemapTree.createPickerOverlay;
|
|
8717
8726
|
exports.describeElement = getSitemapTree.describeElement;
|
|
8718
8727
|
exports.elementLabel = getSitemapTree.elementLabel;
|
|
8728
|
+
exports.findBySelector = getSitemapTree.findBySelector;
|
|
8719
8729
|
exports.formatRoutePattern = getSitemapTree.formatRoutePattern;
|
|
8720
8730
|
exports.getNextAppRouterSourceFolder = getSitemapTree.getNextAppRouterSourceFolder;
|
|
8721
8731
|
exports.getPageRouterSitemapTree = getSitemapTree.getPageRouterSitemapTree;
|
|
8722
8732
|
exports.getPageRouterSourceFolder = getSitemapTree.getPageRouterSourceFolder;
|
|
8723
8733
|
exports.getPatternFromModuleFilePath = getSitemapTree.getPatternFromModuleFilePath;
|
|
8724
8734
|
exports.getTanStackRouterSourceFolder = getSitemapTree.getTanStackRouterSourceFolder;
|
|
8735
|
+
exports.isDesignTabOrigin = getSitemapTree.isDesignTabOrigin;
|
|
8736
|
+
exports.isQuickPreviewFiles = getSitemapTree.isQuickPreviewFiles;
|
|
8725
8737
|
exports.isTanStackRoutesFolder = getSitemapTree.isTanStackRoutesFolder;
|
|
8726
8738
|
exports.isValCanvasFrame = getSitemapTree.isValCanvasFrame;
|
|
8727
8739
|
exports.isValCanvasPageMessage = getSitemapTree.isValCanvasPageMessage;
|
|
8728
8740
|
exports.isValCanvasStudioMessage = getSitemapTree.isValCanvasStudioMessage;
|
|
8729
8741
|
exports.modifierLabel = getSitemapTree.modifierLabel;
|
|
8742
|
+
exports.pageLocationOf = getSitemapTree.pageLocationOf;
|
|
8730
8743
|
exports.parseRoutePattern = getSitemapTree.parseRoutePattern;
|
|
8744
|
+
exports.quickPreviewSiteOrigin = getSitemapTree.quickPreviewSiteOrigin;
|
|
8745
|
+
exports.readPageSnapshot = getSitemapTree.readPageSnapshot;
|
|
8746
|
+
exports.restoreScroll = getSitemapTree.restoreScroll;
|
|
8731
8747
|
exports.startElementPicking = getSitemapTree.startElementPicking;
|
|
8748
|
+
exports.storeQuickPreview = getSitemapTree.storeQuickPreview;
|
|
8749
|
+
exports.watchPageLocation = getSitemapTree.watchPageLocation;
|
|
8750
|
+
exports.withQuickPreviewParam = getSitemapTree.withQuickPreviewParam;
|
|
8732
8751
|
exports.withValCanvasParam = getSitemapTree.withValCanvasParam;
|
|
8733
8752
|
exports.AA_LARGE = AA_LARGE;
|
|
8734
8753
|
exports.AA_TEXT = AA_TEXT;
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var createForOfIteratorHelper = require('../../dist/createForOfIteratorHelper-
|
|
5
|
+
var createForOfIteratorHelper = require('../../dist/createForOfIteratorHelper-9ca2078d.cjs.prod.js');
|
|
6
6
|
var core = require('@valbuild/core');
|
|
7
|
-
var slicedToArray = require('../../dist/slicedToArray-d99b4e2e.cjs.prod.js');
|
|
8
7
|
var zod = require('zod');
|
|
9
|
-
var protocol = require('../../dist/protocol-
|
|
8
|
+
var protocol = require('../../dist/protocol-b1055ef0.cjs.prod.js');
|
|
10
9
|
var zodValidationError = require('zod-validation-error');
|
|
11
|
-
var getSitemapTree = require('../../dist/getSitemapTree-
|
|
10
|
+
var getSitemapTree = require('../../dist/getSitemapTree-5354ce90.cjs.prod.js');
|
|
12
11
|
var FlexSearch = require('flexsearch');
|
|
12
|
+
var wrapNativeSuper = require('../../dist/wrapNativeSuper-8673414f.cjs.prod.js');
|
|
13
13
|
var utils = require('../../dist/utils-32bcaca2.cjs.prod.js');
|
|
14
14
|
|
|
15
15
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
@@ -3606,7 +3606,12 @@ var Api = {
|
|
|
3606
3606
|
width: zod.z.number(),
|
|
3607
3607
|
height: zod.z.number(),
|
|
3608
3608
|
mimeType: zod.z.string()
|
|
3609
|
-
})
|
|
3609
|
+
}),
|
|
3610
|
+
/**
|
|
3611
|
+
* SHA-256 of the bytes, hex: what a remote file's ref names.
|
|
3612
|
+
* Absent from a content service that predates it.
|
|
3613
|
+
*/
|
|
3614
|
+
sha256: zod.z.string().optional()
|
|
3610
3615
|
}))
|
|
3611
3616
|
})
|
|
3612
3617
|
}), zod.z.object({
|
|
@@ -3781,10 +3786,10 @@ var createValClient = function createValClient(host, config, options) {
|
|
|
3781
3786
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3782
3787
|
var anyApi = Api;
|
|
3783
3788
|
return /*#__PURE__*/function () {
|
|
3784
|
-
var _ref =
|
|
3789
|
+
var _ref = createForOfIteratorHelper._asyncToGenerator(/*#__PURE__*/createForOfIteratorHelper._regenerator().m(function _callee2(path, method, req) {
|
|
3785
3790
|
var _anyApi$path, _apiEndpoint$req$body;
|
|
3786
3791
|
var anyReq, fullPath, params, _i, _Object$keys, _anyReq$query, key, _anyReq$query2, _iterator, _step, value, _anyReq$query3, _anyReq$query4, apiEndpoint, reqBodyResult, headers, _i2, _Object$entries, _Object$entries$_i, name, _value, res, _t;
|
|
3787
|
-
return
|
|
3792
|
+
return createForOfIteratorHelper._regenerator().w(function (_context2) {
|
|
3788
3793
|
while (1) switch (_context2.p = _context2.n) {
|
|
3789
3794
|
case 0:
|
|
3790
3795
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -3871,7 +3876,7 @@ var createValClient = function createValClient(host, config, options) {
|
|
|
3871
3876
|
};
|
|
3872
3877
|
if (anyReq !== null && anyReq !== void 0 && anyReq.headers) {
|
|
3873
3878
|
for (_i2 = 0, _Object$entries = Object.entries(anyReq.headers); _i2 < _Object$entries.length; _i2++) {
|
|
3874
|
-
_Object$entries$_i =
|
|
3879
|
+
_Object$entries$_i = createForOfIteratorHelper._slicedToArray(_Object$entries[_i2], 2), name = _Object$entries$_i[0], _value = _Object$entries$_i[1];
|
|
3875
3880
|
if (typeof _value === "string") {
|
|
3876
3881
|
headers[name] = _value;
|
|
3877
3882
|
}
|
|
@@ -3884,10 +3889,10 @@ var createValClient = function createValClient(host, config, options) {
|
|
|
3884
3889
|
headers: headers,
|
|
3885
3890
|
body: anyReq.body !== undefined ? JSON.stringify(anyReq.body) : undefined
|
|
3886
3891
|
}).then(/*#__PURE__*/function () {
|
|
3887
|
-
var _ref2 =
|
|
3892
|
+
var _ref2 = createForOfIteratorHelper._asyncToGenerator(/*#__PURE__*/createForOfIteratorHelper._regenerator().m(function _callee(res) {
|
|
3888
3893
|
var _apiEndpoint$res;
|
|
3889
3894
|
var contentTypeHeaders, json, valClientResult, message, responseResult;
|
|
3890
|
-
return
|
|
3895
|
+
return createForOfIteratorHelper._regenerator().w(function (_context) {
|
|
3891
3896
|
while (1) switch (_context.n) {
|
|
3892
3897
|
case 0:
|
|
3893
3898
|
contentTypeHeaders = res.headers.get("content-type");
|
|
@@ -4091,7 +4096,7 @@ var urlOf = function urlOf() {
|
|
|
4091
4096
|
var query = arguments.length <= 1 ? undefined : arguments[1];
|
|
4092
4097
|
if (query) {
|
|
4093
4098
|
var params = Object.entries(query).flatMap(function (_ref) {
|
|
4094
|
-
var _ref2 =
|
|
4099
|
+
var _ref2 = createForOfIteratorHelper._slicedToArray(_ref, 2),
|
|
4095
4100
|
key = _ref2[0],
|
|
4096
4101
|
value = _ref2[1];
|
|
4097
4102
|
if (!value) {
|
|
@@ -4350,7 +4355,7 @@ function checkCompatibility(from, to) {
|
|
|
4350
4355
|
var unknown = null;
|
|
4351
4356
|
for (var _i = 0, _Object$entries = Object.entries(target); _i < _Object$entries.length; _i++) {
|
|
4352
4357
|
var _fromValue$_key;
|
|
4353
|
-
var _Object$entries$_i =
|
|
4358
|
+
var _Object$entries$_i = createForOfIteratorHelper._slicedToArray(_Object$entries[_i], 2),
|
|
4354
4359
|
_key = _Object$entries$_i[0],
|
|
4355
4360
|
targetItem = _Object$entries$_i[1];
|
|
4356
4361
|
var sourceItem = source[_key];
|
|
@@ -4679,7 +4684,7 @@ function getRoutesWithModulePaths(schemas, sources) {
|
|
|
4679
4684
|
}
|
|
4680
4685
|
}
|
|
4681
4686
|
var routes = Array.from(routeMap.entries()).map(function (_ref) {
|
|
4682
|
-
var _ref2 =
|
|
4687
|
+
var _ref2 = createForOfIteratorHelper._slicedToArray(_ref, 2),
|
|
4683
4688
|
route = _ref2[0],
|
|
4684
4689
|
moduleFilePath = _ref2[1];
|
|
4685
4690
|
return {
|
|
@@ -4741,7 +4746,7 @@ function findSimilar(key, targets) {
|
|
|
4741
4746
|
*/
|
|
4742
4747
|
function getKeyOfRecordAt(sourcePath, snapshot) {
|
|
4743
4748
|
var _Internal$splitModule = core.Internal.splitModuleFilePathAndModulePath(sourcePath),
|
|
4744
|
-
_Internal$splitModule2 =
|
|
4749
|
+
_Internal$splitModule2 = createForOfIteratorHelper._slicedToArray(_Internal$splitModule, 2),
|
|
4745
4750
|
moduleFilePath = _Internal$splitModule2[0],
|
|
4746
4751
|
modulePath = _Internal$splitModule2[1];
|
|
4747
4752
|
var moduleSource = snapshot.sources[moduleFilePath];
|
|
@@ -4842,7 +4847,7 @@ function checkRouteIsValid(route, includePattern, excludePattern, snapshot) {
|
|
|
4842
4847
|
var moduleEntries = Object.entries(routerModules);
|
|
4843
4848
|
var foundInModule = null;
|
|
4844
4849
|
for (var _i = 0, _moduleEntries = moduleEntries; _i < _moduleEntries.length; _i++) {
|
|
4845
|
-
var _moduleEntries$_i =
|
|
4850
|
+
var _moduleEntries$_i = createForOfIteratorHelper._slicedToArray(_moduleEntries[_i], 2),
|
|
4846
4851
|
_moduleFilePath = _moduleEntries$_i[0],
|
|
4847
4852
|
routes = _moduleEntries$_i[1];
|
|
4848
4853
|
if (routes.includes(route)) {
|
|
@@ -4852,7 +4857,7 @@ function checkRouteIsValid(route, includePattern, excludePattern, snapshot) {
|
|
|
4852
4857
|
}
|
|
4853
4858
|
if (!foundInModule) {
|
|
4854
4859
|
var allRoutes = moduleEntries.flatMap(function (_ref4) {
|
|
4855
|
-
var _ref5 =
|
|
4860
|
+
var _ref5 = createForOfIteratorHelper._slicedToArray(_ref4, 2),
|
|
4856
4861
|
routes = _ref5[1];
|
|
4857
4862
|
return routes;
|
|
4858
4863
|
});
|
|
@@ -5332,7 +5337,7 @@ function localeAt(path, snapshot) {
|
|
|
5332
5337
|
return null;
|
|
5333
5338
|
}
|
|
5334
5339
|
var _Internal$splitModule = core.Internal.splitModuleFilePathAndModulePath(path),
|
|
5335
|
-
_Internal$splitModule2 =
|
|
5340
|
+
_Internal$splitModule2 = createForOfIteratorHelper._slicedToArray(_Internal$splitModule, 2),
|
|
5336
5341
|
moduleFilePath = _Internal$splitModule2[0],
|
|
5337
5342
|
modulePath = _Internal$splitModule2[1];
|
|
5338
5343
|
var schema = snapshot.schemas[moduleFilePath];
|
|
@@ -5406,7 +5411,7 @@ function localeOfRouteKey(schema, moduleFilePath, key, available) {
|
|
|
5406
5411
|
return null;
|
|
5407
5412
|
}
|
|
5408
5413
|
for (var _i = 0, _Object$entries = Object.entries(schema.params); _i < _Object$entries.length; _i++) {
|
|
5409
|
-
var _Object$entries$_i =
|
|
5414
|
+
var _Object$entries$_i = createForOfIteratorHelper._slicedToArray(_Object$entries[_i], 2),
|
|
5410
5415
|
name = _Object$entries$_i[0],
|
|
5411
5416
|
param = _Object$entries$_i[1];
|
|
5412
5417
|
if (isLocaleSchema(param) && Object.prototype.hasOwnProperty.call(values, name)) {
|
|
@@ -5513,7 +5518,7 @@ function localeOfObjectField(schema, source, available) {
|
|
|
5513
5518
|
return null;
|
|
5514
5519
|
}
|
|
5515
5520
|
for (var _i2 = 0, _Object$entries2 = Object.entries(schema.items); _i2 < _Object$entries2.length; _i2++) {
|
|
5516
|
-
var _Object$entries2$_i =
|
|
5521
|
+
var _Object$entries2$_i = createForOfIteratorHelper._slicedToArray(_Object$entries2[_i2], 2),
|
|
5517
5522
|
key = _Object$entries2$_i[0],
|
|
5518
5523
|
item = _Object$entries2$_i[1];
|
|
5519
5524
|
if (!isLocaleSchema(item)) {
|
|
@@ -7179,7 +7184,7 @@ function indexModule(searchIndex, moduleFilePath, source, schema) {
|
|
|
7179
7184
|
// Add to index if we have search text
|
|
7180
7185
|
if (searchText) {
|
|
7181
7186
|
var _Internal$splitModule = core.Internal.splitModuleFilePathAndModulePath(path),
|
|
7182
|
-
_Internal$splitModule2 =
|
|
7187
|
+
_Internal$splitModule2 = createForOfIteratorHelper._slicedToArray(_Internal$splitModule, 2),
|
|
7183
7188
|
modulePath = _Internal$splitModule2[1];
|
|
7184
7189
|
var cleanPath = fastRemoveNonWordChars(modulePath) + " ";
|
|
7185
7190
|
index.add(path, cleanPath + " " + path + " " + searchText);
|
|
@@ -7505,7 +7510,7 @@ function accentRamp(accent) {
|
|
|
7505
7510
|
return null;
|
|
7506
7511
|
}
|
|
7507
7512
|
var _rgbToOklch = rgbToOklch(rgb),
|
|
7508
|
-
_rgbToOklch2 =
|
|
7513
|
+
_rgbToOklch2 = createForOfIteratorHelper._slicedToArray(_rgbToOklch, 3),
|
|
7509
7514
|
accentChroma = _rgbToOklch2[1],
|
|
7510
7515
|
accentHue = _rgbToOklch2[2];
|
|
7511
7516
|
var anchor = GREEN_PROFILE.find(function (entry) {
|
|
@@ -7524,7 +7529,7 @@ function accentRamp(accent) {
|
|
|
7524
7529
|
}
|
|
7525
7530
|
// Green's lightness and chroma, the accent's hue. Green's own hue is the
|
|
7526
7531
|
// one thing a generated ramp does not keep.
|
|
7527
|
-
var _entry$lch =
|
|
7532
|
+
var _entry$lch = createForOfIteratorHelper._slicedToArray(entry.lch, 2),
|
|
7528
7533
|
lightness = _entry$lch[0],
|
|
7529
7534
|
chroma = _entry$lch[1];
|
|
7530
7535
|
return rgbToHex(oklchToRgb(clampChromaToGamut([lightness, chroma * chromaScale, accentHue])));
|
|
@@ -7674,7 +7679,7 @@ function relativeLuminance(hex) {
|
|
|
7674
7679
|
throw new Error("Not a six-digit hex colour: ".concat(hex));
|
|
7675
7680
|
}
|
|
7676
7681
|
var _rgb$map = rgb.map(srgbToLinear),
|
|
7677
|
-
_rgb$map2 =
|
|
7682
|
+
_rgb$map2 = createForOfIteratorHelper._slicedToArray(_rgb$map, 3),
|
|
7678
7683
|
r = _rgb$map2[0],
|
|
7679
7684
|
g = _rgb$map2[1],
|
|
7680
7685
|
b = _rgb$map2[2];
|
|
@@ -7954,7 +7959,7 @@ function isInsidePatchSetPath(inner, outer) {
|
|
|
7954
7959
|
}
|
|
7955
7960
|
var PatchSets = /*#__PURE__*/function () {
|
|
7956
7961
|
function PatchSets() {
|
|
7957
|
-
|
|
7962
|
+
wrapNativeSuper._classCallCheck(this, PatchSets);
|
|
7958
7963
|
createForOfIteratorHelper._defineProperty(this, "insertedPatches", void 0);
|
|
7959
7964
|
createForOfIteratorHelper._defineProperty(this, "patchSetMetadata", void 0);
|
|
7960
7965
|
createForOfIteratorHelper._defineProperty(this, "orderedInsertKeys", void 0);
|
|
@@ -7962,7 +7967,7 @@ var PatchSets = /*#__PURE__*/function () {
|
|
|
7962
7967
|
this.orderedInsertKeys = [];
|
|
7963
7968
|
this.insertedPatches = new Set();
|
|
7964
7969
|
}
|
|
7965
|
-
return
|
|
7970
|
+
return wrapNativeSuper._createClass(PatchSets, [{
|
|
7966
7971
|
key: "reset",
|
|
7967
7972
|
value: function reset() {
|
|
7968
7973
|
this.patchSetMetadata = {};
|
|
@@ -8404,7 +8409,7 @@ function sideFiles(trees, side) {
|
|
|
8404
8409
|
for (var _i = 0, _layers = layers; _i < _layers.length; _i++) {
|
|
8405
8410
|
var layer = _layers[_i];
|
|
8406
8411
|
for (var _i2 = 0, _Object$entries = Object.entries(layer); _i2 < _Object$entries.length; _i2++) {
|
|
8407
|
-
var _Object$entries$_i =
|
|
8412
|
+
var _Object$entries$_i = createForOfIteratorHelper._slicedToArray(_Object$entries[_i2], 2),
|
|
8408
8413
|
path = _Object$entries$_i[0],
|
|
8409
8414
|
text = _Object$entries$_i[1];
|
|
8410
8415
|
if (text === null) delete files[path];else files[path] = text;
|
|
@@ -8430,11 +8435,11 @@ function schemaErrorsOf(schema, moduleFilePath, source) {
|
|
|
8430
8435
|
if (res === false) return [];
|
|
8431
8436
|
var errors = [];
|
|
8432
8437
|
for (var _i3 = 0, _Object$entries2 = Object.entries(res); _i3 < _Object$entries2.length; _i3++) {
|
|
8433
|
-
var _Object$entries2$_i =
|
|
8438
|
+
var _Object$entries2$_i = createForOfIteratorHelper._slicedToArray(_Object$entries2[_i3], 2),
|
|
8434
8439
|
sourcePath = _Object$entries2$_i[0],
|
|
8435
8440
|
list = _Object$entries2$_i[1];
|
|
8436
8441
|
var _Internal$splitModule = core.Internal.splitModuleFilePathAndModulePath(sourcePath),
|
|
8437
|
-
_Internal$splitModule2 =
|
|
8442
|
+
_Internal$splitModule2 = createForOfIteratorHelper._slicedToArray(_Internal$splitModule, 2),
|
|
8438
8443
|
modulePath = _Internal$splitModule2[1];
|
|
8439
8444
|
var path = modulePath ? core.Internal.createPatchPath(modulePath) : [];
|
|
8440
8445
|
var _iterator = createForOfIteratorHelper._createForOfIteratorHelper(list),
|
|
@@ -8483,7 +8488,7 @@ function selfCheck(_x) {
|
|
|
8483
8488
|
return _selfCheck.apply(this, arguments);
|
|
8484
8489
|
}
|
|
8485
8490
|
function _selfCheck() {
|
|
8486
|
-
_selfCheck =
|
|
8491
|
+
_selfCheck = createForOfIteratorHelper._asyncToGenerator(/*#__PURE__*/createForOfIteratorHelper._regenerator().m(function _callee(valModules) {
|
|
8487
8492
|
var options,
|
|
8488
8493
|
errors,
|
|
8489
8494
|
found,
|
|
@@ -8531,7 +8536,7 @@ function _selfCheck() {
|
|
|
8531
8536
|
_t2,
|
|
8532
8537
|
_t3,
|
|
8533
8538
|
_t4;
|
|
8534
|
-
return
|
|
8539
|
+
return createForOfIteratorHelper._regenerator().w(function (_context) {
|
|
8535
8540
|
while (1) switch (_context.p = _context.n) {
|
|
8536
8541
|
case 0:
|
|
8537
8542
|
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
|
@@ -8547,7 +8552,7 @@ function _selfCheck() {
|
|
|
8547
8552
|
_context.n = 17;
|
|
8548
8553
|
break;
|
|
8549
8554
|
}
|
|
8550
|
-
_step$value =
|
|
8555
|
+
_step$value = createForOfIteratorHelper._slicedToArray(_step.value, 2), index = _step$value[0], entry = _step$value[1];
|
|
8551
8556
|
module = void 0;
|
|
8552
8557
|
_context.p = 3;
|
|
8553
8558
|
_context.n = 4;
|
|
@@ -8624,7 +8629,7 @@ function _selfCheck() {
|
|
|
8624
8629
|
return _context.a(3, 16);
|
|
8625
8630
|
case 15:
|
|
8626
8631
|
for (_i2 = 0, _Object$entries2 = Object.entries(result); _i2 < _Object$entries2.length; _i2++) {
|
|
8627
|
-
_Object$entries2$_i =
|
|
8632
|
+
_Object$entries2$_i = createForOfIteratorHelper._slicedToArray(_Object$entries2[_i2], 2), _sourcePath = _Object$entries2$_i[0], _list = _Object$entries2$_i[1];
|
|
8628
8633
|
(_found = (_found$_ref = found[_ref = _sourcePath]) !== null && _found$_ref !== void 0 ? _found$_ref : found[_ref] = []).push.apply(_found, createForOfIteratorHelper._toConsumableArray(_list));
|
|
8629
8634
|
}
|
|
8630
8635
|
case 16:
|
|
@@ -8650,8 +8655,8 @@ function _selfCheck() {
|
|
|
8650
8655
|
sources: sources
|
|
8651
8656
|
})), surfaced = _partitionValidationE.surfaced, skipped = _partitionValidationE.skipped;
|
|
8652
8657
|
for (_i = 0, _Object$entries = Object.entries(surfaced); _i < _Object$entries.length; _i++) {
|
|
8653
|
-
_Object$entries$_i =
|
|
8654
|
-
_Internal$splitModule = core.Internal.splitModuleFilePathAndModulePath(sourcePath), _Internal$splitModule2 =
|
|
8658
|
+
_Object$entries$_i = createForOfIteratorHelper._slicedToArray(_Object$entries[_i], 2), sourcePath = _Object$entries$_i[0], list = _Object$entries$_i[1];
|
|
8659
|
+
_Internal$splitModule = core.Internal.splitModuleFilePathAndModulePath(sourcePath), _Internal$splitModule2 = createForOfIteratorHelper._slicedToArray(_Internal$splitModule, 2), moduleFilePath = _Internal$splitModule2[0], modulePath = _Internal$splitModule2[1];
|
|
8655
8660
|
path = modulePath ? core.Internal.createPatchPath(modulePath) : [];
|
|
8656
8661
|
_iterator2 = createForOfIteratorHelper._createForOfIteratorHelper(list);
|
|
8657
8662
|
try {
|
|
@@ -8707,6 +8712,10 @@ exports.parseUpdateTarget = protocol.parseUpdateTarget;
|
|
|
8707
8712
|
exports.parseVerify = protocol.parseVerify;
|
|
8708
8713
|
exports.DEFAULT_CANVAS_SELECTION = getSitemapTree.DEFAULT_CANVAS_SELECTION;
|
|
8709
8714
|
exports.DEFAULT_CANVAS_SELECTION_SOFT = getSitemapTree.DEFAULT_CANVAS_SELECTION_SOFT;
|
|
8715
|
+
exports.QUICK_PREVIEW_PARAM = getSitemapTree.QUICK_PREVIEW_PARAM;
|
|
8716
|
+
exports.QUICK_PREVIEW_SERVICE_WORKER_PATH = getSitemapTree.QUICK_PREVIEW_SERVICE_WORKER_PATH;
|
|
8717
|
+
exports.QUICK_PREVIEW_SERVICE_WORKER_SOURCE = getSitemapTree.QUICK_PREVIEW_SERVICE_WORKER_SOURCE;
|
|
8718
|
+
exports.QUICK_PREVIEW_STORE_MESSAGE = getSitemapTree.QUICK_PREVIEW_STORE_MESSAGE;
|
|
8710
8719
|
exports.VAL_AI_SESSION_STORAGE_KEY = getSitemapTree.VAL_AI_SESSION_STORAGE_KEY;
|
|
8711
8720
|
exports.VAL_CANVAS_MESSAGE = getSitemapTree.VAL_CANVAS_MESSAGE;
|
|
8712
8721
|
exports.VAL_CANVAS_PARAM = getSitemapTree.VAL_CANVAS_PARAM;
|
|
@@ -8716,19 +8725,29 @@ exports.attachElementPicker = getSitemapTree.attachElementPicker;
|
|
|
8716
8725
|
exports.createPickerOverlay = getSitemapTree.createPickerOverlay;
|
|
8717
8726
|
exports.describeElement = getSitemapTree.describeElement;
|
|
8718
8727
|
exports.elementLabel = getSitemapTree.elementLabel;
|
|
8728
|
+
exports.findBySelector = getSitemapTree.findBySelector;
|
|
8719
8729
|
exports.formatRoutePattern = getSitemapTree.formatRoutePattern;
|
|
8720
8730
|
exports.getNextAppRouterSourceFolder = getSitemapTree.getNextAppRouterSourceFolder;
|
|
8721
8731
|
exports.getPageRouterSitemapTree = getSitemapTree.getPageRouterSitemapTree;
|
|
8722
8732
|
exports.getPageRouterSourceFolder = getSitemapTree.getPageRouterSourceFolder;
|
|
8723
8733
|
exports.getPatternFromModuleFilePath = getSitemapTree.getPatternFromModuleFilePath;
|
|
8724
8734
|
exports.getTanStackRouterSourceFolder = getSitemapTree.getTanStackRouterSourceFolder;
|
|
8735
|
+
exports.isDesignTabOrigin = getSitemapTree.isDesignTabOrigin;
|
|
8736
|
+
exports.isQuickPreviewFiles = getSitemapTree.isQuickPreviewFiles;
|
|
8725
8737
|
exports.isTanStackRoutesFolder = getSitemapTree.isTanStackRoutesFolder;
|
|
8726
8738
|
exports.isValCanvasFrame = getSitemapTree.isValCanvasFrame;
|
|
8727
8739
|
exports.isValCanvasPageMessage = getSitemapTree.isValCanvasPageMessage;
|
|
8728
8740
|
exports.isValCanvasStudioMessage = getSitemapTree.isValCanvasStudioMessage;
|
|
8729
8741
|
exports.modifierLabel = getSitemapTree.modifierLabel;
|
|
8742
|
+
exports.pageLocationOf = getSitemapTree.pageLocationOf;
|
|
8730
8743
|
exports.parseRoutePattern = getSitemapTree.parseRoutePattern;
|
|
8744
|
+
exports.quickPreviewSiteOrigin = getSitemapTree.quickPreviewSiteOrigin;
|
|
8745
|
+
exports.readPageSnapshot = getSitemapTree.readPageSnapshot;
|
|
8746
|
+
exports.restoreScroll = getSitemapTree.restoreScroll;
|
|
8731
8747
|
exports.startElementPicking = getSitemapTree.startElementPicking;
|
|
8748
|
+
exports.storeQuickPreview = getSitemapTree.storeQuickPreview;
|
|
8749
|
+
exports.watchPageLocation = getSitemapTree.watchPageLocation;
|
|
8750
|
+
exports.withQuickPreviewParam = getSitemapTree.withQuickPreviewParam;
|
|
8732
8751
|
exports.withValCanvasParam = getSitemapTree.withValCanvasParam;
|
|
8733
8752
|
exports.AA_LARGE = AA_LARGE;
|
|
8734
8753
|
exports.AA_TEXT = AA_TEXT;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { f as _createForOfIteratorHelper, d as _objectSpread2, e as _toConsumableArray, _ as _typeof, g as _defineProperty, b as _asyncToGenerator, c as _regenerator, a as _slicedToArray } from '../../dist/createForOfIteratorHelper-9b80f1a2.esm.js';
|
|
2
2
|
import { Internal, CODE_LANGUAGES, resolveSettingsModule, missingDeclaredKeys, localeOfValue, discriminatedUnionBranchOf, routePatternOf, matchRoutePattern, DEFAULT_COLOR_FORMAT, declaredKeySetOf } from '@valbuild/core';
|
|
3
|
-
import { b as _asyncToGenerator, d as _regenerator, g as _slicedToArray, a as _createClass, e as _classCallCheck } from '../../dist/slicedToArray-22567815.esm.js';
|
|
4
3
|
import { z } from 'zod';
|
|
5
|
-
import { _ as _objectWithoutProperties } from '../../dist/protocol-
|
|
6
|
-
export { P as PublishProtocolError, b as parseArtifacts, p as parseBuildTarget, l as parseCancel, a as parseDeclare, m as parseDiscard, j as parseJob, n as parseNewestCiRun, h as parsePress, g as parseProblems, f as parseProjectSource, d as parsePromote, o as parsePublishToken, k as parseRenew, i as parseRequestStatus, e as parseStatus, q as parseUpdateTarget, c as parseVerify } from '../../dist/protocol-
|
|
4
|
+
import { _ as _objectWithoutProperties } from '../../dist/protocol-55cfa3cf.esm.js';
|
|
5
|
+
export { P as PublishProtocolError, b as parseArtifacts, p as parseBuildTarget, l as parseCancel, a as parseDeclare, m as parseDiscard, j as parseJob, n as parseNewestCiRun, h as parsePress, g as parseProblems, f as parseProjectSource, d as parsePromote, o as parsePublishToken, k as parseRenew, i as parseRequestStatus, e as parseStatus, q as parseUpdateTarget, c as parseVerify } from '../../dist/protocol-55cfa3cf.esm.js';
|
|
7
6
|
import { fromError } from 'zod-validation-error';
|
|
8
|
-
export { D as DEFAULT_CANVAS_SELECTION, e as DEFAULT_CANVAS_SELECTION_SOFT, b as VAL_AI_SESSION_STORAGE_KEY, d as VAL_CANVAS_MESSAGE, c as VAL_CANVAS_PARAM, V as VAL_CONFIG_SESSION_STORAGE_KEY, a as VAL_THEME_SESSION_STORAGE_KEY, j as attachElementPicker, k as createPickerOverlay, h as describeElement, l as elementLabel,
|
|
7
|
+
export { D as DEFAULT_CANVAS_SELECTION, e as DEFAULT_CANVAS_SELECTION_SOFT, Q as QUICK_PREVIEW_PARAM, t as QUICK_PREVIEW_SERVICE_WORKER_PATH, x as QUICK_PREVIEW_SERVICE_WORKER_SOURCE, u as QUICK_PREVIEW_STORE_MESSAGE, b as VAL_AI_SESSION_STORAGE_KEY, d as VAL_CANVAS_MESSAGE, c as VAL_CANVAS_PARAM, V as VAL_CONFIG_SESSION_STORAGE_KEY, a as VAL_THEME_SESSION_STORAGE_KEY, j as attachElementPicker, k as createPickerOverlay, h as describeElement, l as elementLabel, q as findBySelector, E as formatRoutePattern, F as getNextAppRouterSourceFolder, J as getPageRouterSitemapTree, H as getPageRouterSourceFolder, K as getPatternFromModuleFilePath, G as getTanStackRouterSourceFolder, B as isDesignTabOrigin, v as isQuickPreviewFiles, I as isTanStackRoutesFolder, g as isValCanvasFrame, i as isValCanvasPageMessage, f as isValCanvasStudioMessage, m as modifierLabel, p as pageLocationOf, C as parseRoutePattern, A as quickPreviewSiteOrigin, o as readPageSnapshot, r as restoreScroll, s as startElementPicking, y as storeQuickPreview, n as watchPageLocation, z as withQuickPreviewParam, w as withValCanvasParam } from '../../dist/getSitemapTree-97b3166f.esm.js';
|
|
9
8
|
import FlexSearch from 'flexsearch';
|
|
9
|
+
import { a as _createClass, c as _classCallCheck } from '../../dist/wrapNativeSuper-639b12b7.esm.js';
|
|
10
10
|
import { b as base64DataUrlToUint8Array } from '../../dist/utils-00f3e1df.esm.js';
|
|
11
11
|
|
|
12
12
|
function remirrorToRichTextSource(node, configDirectory, remoteOptions) {
|
|
@@ -3599,7 +3599,12 @@ var Api = {
|
|
|
3599
3599
|
width: z.number(),
|
|
3600
3600
|
height: z.number(),
|
|
3601
3601
|
mimeType: z.string()
|
|
3602
|
-
})
|
|
3602
|
+
}),
|
|
3603
|
+
/**
|
|
3604
|
+
* SHA-256 of the bytes, hex: what a remote file's ref names.
|
|
3605
|
+
* Absent from a content service that predates it.
|
|
3606
|
+
*/
|
|
3607
|
+
sha256: z.string().optional()
|
|
3603
3608
|
}))
|
|
3604
3609
|
})
|
|
3605
3610
|
}), z.object({
|