@valbuild/shared 0.150.10 → 0.150.12
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 +33 -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 +35 -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 +94 -34
- package/internal/dist/valbuild-shared-internal.cjs.prod.js +94 -34
- package/internal/dist/valbuild-shared-internal.esm.js +52 -6
- package/package.json +2 -2
- 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-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 }; }
|
|
@@ -1960,6 +1960,47 @@ var Api = {
|
|
|
1960
1960
|
})])
|
|
1961
1961
|
}
|
|
1962
1962
|
},
|
|
1963
|
+
/**
|
|
1964
|
+
* The versions of Val's packages the server runs, for the list at the foot
|
|
1965
|
+
* of the Studio's account panel.
|
|
1966
|
+
*/
|
|
1967
|
+
"/versions": {
|
|
1968
|
+
GET: {
|
|
1969
|
+
req: {
|
|
1970
|
+
cookies: {
|
|
1971
|
+
val_session: zod.z.string().optional()
|
|
1972
|
+
}
|
|
1973
|
+
},
|
|
1974
|
+
res: zod.z.union([zod.z.object({
|
|
1975
|
+
status: zod.z.literal(200),
|
|
1976
|
+
json: zod.z.object({
|
|
1977
|
+
/** Null where no binding said: the demo, a test. */
|
|
1978
|
+
framework: zod.z.object({
|
|
1979
|
+
name: zod.z.union([zod.z.literal("next"), zod.z.literal("tanstack")]),
|
|
1980
|
+
version: zod.z.string()
|
|
1981
|
+
}).nullable(),
|
|
1982
|
+
core: zod.z.string(),
|
|
1983
|
+
server: zod.z.string()
|
|
1984
|
+
})
|
|
1985
|
+
}), zod.z.object({
|
|
1986
|
+
status: zod.z.literal(401),
|
|
1987
|
+
json: zod.z.object({
|
|
1988
|
+
message: zod.z.string()
|
|
1989
|
+
})
|
|
1990
|
+
}),
|
|
1991
|
+
/*
|
|
1992
|
+
* A server older than the Studio, which has no such route: it answers
|
|
1993
|
+
* "Route not found". Listed so the Studio can tell that apart from a
|
|
1994
|
+
* request that failed, since only the second is worth retrying.
|
|
1995
|
+
*/
|
|
1996
|
+
zod.z.object({
|
|
1997
|
+
status: zod.z.literal(404),
|
|
1998
|
+
json: zod.z.object({
|
|
1999
|
+
message: zod.z.string()
|
|
2000
|
+
})
|
|
2001
|
+
})])
|
|
2002
|
+
}
|
|
2003
|
+
},
|
|
1963
2004
|
"/stat": {
|
|
1964
2005
|
POST: {
|
|
1965
2006
|
req: {
|
|
@@ -3606,7 +3647,12 @@ var Api = {
|
|
|
3606
3647
|
width: zod.z.number(),
|
|
3607
3648
|
height: zod.z.number(),
|
|
3608
3649
|
mimeType: zod.z.string()
|
|
3609
|
-
})
|
|
3650
|
+
}),
|
|
3651
|
+
/**
|
|
3652
|
+
* SHA-256 of the bytes, hex: what a remote file's ref names.
|
|
3653
|
+
* Absent from a content service that predates it.
|
|
3654
|
+
*/
|
|
3655
|
+
sha256: zod.z.string().optional()
|
|
3610
3656
|
}))
|
|
3611
3657
|
})
|
|
3612
3658
|
}), zod.z.object({
|
|
@@ -3781,10 +3827,10 @@ var createValClient = function createValClient(host, config, options) {
|
|
|
3781
3827
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3782
3828
|
var anyApi = Api;
|
|
3783
3829
|
return /*#__PURE__*/function () {
|
|
3784
|
-
var _ref =
|
|
3830
|
+
var _ref = createForOfIteratorHelper._asyncToGenerator(/*#__PURE__*/createForOfIteratorHelper._regenerator().m(function _callee2(path, method, req) {
|
|
3785
3831
|
var _anyApi$path, _apiEndpoint$req$body;
|
|
3786
3832
|
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
|
|
3833
|
+
return createForOfIteratorHelper._regenerator().w(function (_context2) {
|
|
3788
3834
|
while (1) switch (_context2.p = _context2.n) {
|
|
3789
3835
|
case 0:
|
|
3790
3836
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -3871,7 +3917,7 @@ var createValClient = function createValClient(host, config, options) {
|
|
|
3871
3917
|
};
|
|
3872
3918
|
if (anyReq !== null && anyReq !== void 0 && anyReq.headers) {
|
|
3873
3919
|
for (_i2 = 0, _Object$entries = Object.entries(anyReq.headers); _i2 < _Object$entries.length; _i2++) {
|
|
3874
|
-
_Object$entries$_i =
|
|
3920
|
+
_Object$entries$_i = createForOfIteratorHelper._slicedToArray(_Object$entries[_i2], 2), name = _Object$entries$_i[0], _value = _Object$entries$_i[1];
|
|
3875
3921
|
if (typeof _value === "string") {
|
|
3876
3922
|
headers[name] = _value;
|
|
3877
3923
|
}
|
|
@@ -3884,10 +3930,10 @@ var createValClient = function createValClient(host, config, options) {
|
|
|
3884
3930
|
headers: headers,
|
|
3885
3931
|
body: anyReq.body !== undefined ? JSON.stringify(anyReq.body) : undefined
|
|
3886
3932
|
}).then(/*#__PURE__*/function () {
|
|
3887
|
-
var _ref2 =
|
|
3933
|
+
var _ref2 = createForOfIteratorHelper._asyncToGenerator(/*#__PURE__*/createForOfIteratorHelper._regenerator().m(function _callee(res) {
|
|
3888
3934
|
var _apiEndpoint$res;
|
|
3889
3935
|
var contentTypeHeaders, json, valClientResult, message, responseResult;
|
|
3890
|
-
return
|
|
3936
|
+
return createForOfIteratorHelper._regenerator().w(function (_context) {
|
|
3891
3937
|
while (1) switch (_context.n) {
|
|
3892
3938
|
case 0:
|
|
3893
3939
|
contentTypeHeaders = res.headers.get("content-type");
|
|
@@ -4091,7 +4137,7 @@ var urlOf = function urlOf() {
|
|
|
4091
4137
|
var query = arguments.length <= 1 ? undefined : arguments[1];
|
|
4092
4138
|
if (query) {
|
|
4093
4139
|
var params = Object.entries(query).flatMap(function (_ref) {
|
|
4094
|
-
var _ref2 =
|
|
4140
|
+
var _ref2 = createForOfIteratorHelper._slicedToArray(_ref, 2),
|
|
4095
4141
|
key = _ref2[0],
|
|
4096
4142
|
value = _ref2[1];
|
|
4097
4143
|
if (!value) {
|
|
@@ -4350,7 +4396,7 @@ function checkCompatibility(from, to) {
|
|
|
4350
4396
|
var unknown = null;
|
|
4351
4397
|
for (var _i = 0, _Object$entries = Object.entries(target); _i < _Object$entries.length; _i++) {
|
|
4352
4398
|
var _fromValue$_key;
|
|
4353
|
-
var _Object$entries$_i =
|
|
4399
|
+
var _Object$entries$_i = createForOfIteratorHelper._slicedToArray(_Object$entries[_i], 2),
|
|
4354
4400
|
_key = _Object$entries$_i[0],
|
|
4355
4401
|
targetItem = _Object$entries$_i[1];
|
|
4356
4402
|
var sourceItem = source[_key];
|
|
@@ -4679,7 +4725,7 @@ function getRoutesWithModulePaths(schemas, sources) {
|
|
|
4679
4725
|
}
|
|
4680
4726
|
}
|
|
4681
4727
|
var routes = Array.from(routeMap.entries()).map(function (_ref) {
|
|
4682
|
-
var _ref2 =
|
|
4728
|
+
var _ref2 = createForOfIteratorHelper._slicedToArray(_ref, 2),
|
|
4683
4729
|
route = _ref2[0],
|
|
4684
4730
|
moduleFilePath = _ref2[1];
|
|
4685
4731
|
return {
|
|
@@ -4741,7 +4787,7 @@ function findSimilar(key, targets) {
|
|
|
4741
4787
|
*/
|
|
4742
4788
|
function getKeyOfRecordAt(sourcePath, snapshot) {
|
|
4743
4789
|
var _Internal$splitModule = core.Internal.splitModuleFilePathAndModulePath(sourcePath),
|
|
4744
|
-
_Internal$splitModule2 =
|
|
4790
|
+
_Internal$splitModule2 = createForOfIteratorHelper._slicedToArray(_Internal$splitModule, 2),
|
|
4745
4791
|
moduleFilePath = _Internal$splitModule2[0],
|
|
4746
4792
|
modulePath = _Internal$splitModule2[1];
|
|
4747
4793
|
var moduleSource = snapshot.sources[moduleFilePath];
|
|
@@ -4842,7 +4888,7 @@ function checkRouteIsValid(route, includePattern, excludePattern, snapshot) {
|
|
|
4842
4888
|
var moduleEntries = Object.entries(routerModules);
|
|
4843
4889
|
var foundInModule = null;
|
|
4844
4890
|
for (var _i = 0, _moduleEntries = moduleEntries; _i < _moduleEntries.length; _i++) {
|
|
4845
|
-
var _moduleEntries$_i =
|
|
4891
|
+
var _moduleEntries$_i = createForOfIteratorHelper._slicedToArray(_moduleEntries[_i], 2),
|
|
4846
4892
|
_moduleFilePath = _moduleEntries$_i[0],
|
|
4847
4893
|
routes = _moduleEntries$_i[1];
|
|
4848
4894
|
if (routes.includes(route)) {
|
|
@@ -4852,7 +4898,7 @@ function checkRouteIsValid(route, includePattern, excludePattern, snapshot) {
|
|
|
4852
4898
|
}
|
|
4853
4899
|
if (!foundInModule) {
|
|
4854
4900
|
var allRoutes = moduleEntries.flatMap(function (_ref4) {
|
|
4855
|
-
var _ref5 =
|
|
4901
|
+
var _ref5 = createForOfIteratorHelper._slicedToArray(_ref4, 2),
|
|
4856
4902
|
routes = _ref5[1];
|
|
4857
4903
|
return routes;
|
|
4858
4904
|
});
|
|
@@ -5332,7 +5378,7 @@ function localeAt(path, snapshot) {
|
|
|
5332
5378
|
return null;
|
|
5333
5379
|
}
|
|
5334
5380
|
var _Internal$splitModule = core.Internal.splitModuleFilePathAndModulePath(path),
|
|
5335
|
-
_Internal$splitModule2 =
|
|
5381
|
+
_Internal$splitModule2 = createForOfIteratorHelper._slicedToArray(_Internal$splitModule, 2),
|
|
5336
5382
|
moduleFilePath = _Internal$splitModule2[0],
|
|
5337
5383
|
modulePath = _Internal$splitModule2[1];
|
|
5338
5384
|
var schema = snapshot.schemas[moduleFilePath];
|
|
@@ -5406,7 +5452,7 @@ function localeOfRouteKey(schema, moduleFilePath, key, available) {
|
|
|
5406
5452
|
return null;
|
|
5407
5453
|
}
|
|
5408
5454
|
for (var _i = 0, _Object$entries = Object.entries(schema.params); _i < _Object$entries.length; _i++) {
|
|
5409
|
-
var _Object$entries$_i =
|
|
5455
|
+
var _Object$entries$_i = createForOfIteratorHelper._slicedToArray(_Object$entries[_i], 2),
|
|
5410
5456
|
name = _Object$entries$_i[0],
|
|
5411
5457
|
param = _Object$entries$_i[1];
|
|
5412
5458
|
if (isLocaleSchema(param) && Object.prototype.hasOwnProperty.call(values, name)) {
|
|
@@ -5513,7 +5559,7 @@ function localeOfObjectField(schema, source, available) {
|
|
|
5513
5559
|
return null;
|
|
5514
5560
|
}
|
|
5515
5561
|
for (var _i2 = 0, _Object$entries2 = Object.entries(schema.items); _i2 < _Object$entries2.length; _i2++) {
|
|
5516
|
-
var _Object$entries2$_i =
|
|
5562
|
+
var _Object$entries2$_i = createForOfIteratorHelper._slicedToArray(_Object$entries2[_i2], 2),
|
|
5517
5563
|
key = _Object$entries2$_i[0],
|
|
5518
5564
|
item = _Object$entries2$_i[1];
|
|
5519
5565
|
if (!isLocaleSchema(item)) {
|
|
@@ -7179,7 +7225,7 @@ function indexModule(searchIndex, moduleFilePath, source, schema) {
|
|
|
7179
7225
|
// Add to index if we have search text
|
|
7180
7226
|
if (searchText) {
|
|
7181
7227
|
var _Internal$splitModule = core.Internal.splitModuleFilePathAndModulePath(path),
|
|
7182
|
-
_Internal$splitModule2 =
|
|
7228
|
+
_Internal$splitModule2 = createForOfIteratorHelper._slicedToArray(_Internal$splitModule, 2),
|
|
7183
7229
|
modulePath = _Internal$splitModule2[1];
|
|
7184
7230
|
var cleanPath = fastRemoveNonWordChars(modulePath) + " ";
|
|
7185
7231
|
index.add(path, cleanPath + " " + path + " " + searchText);
|
|
@@ -7505,7 +7551,7 @@ function accentRamp(accent) {
|
|
|
7505
7551
|
return null;
|
|
7506
7552
|
}
|
|
7507
7553
|
var _rgbToOklch = rgbToOklch(rgb),
|
|
7508
|
-
_rgbToOklch2 =
|
|
7554
|
+
_rgbToOklch2 = createForOfIteratorHelper._slicedToArray(_rgbToOklch, 3),
|
|
7509
7555
|
accentChroma = _rgbToOklch2[1],
|
|
7510
7556
|
accentHue = _rgbToOklch2[2];
|
|
7511
7557
|
var anchor = GREEN_PROFILE.find(function (entry) {
|
|
@@ -7524,7 +7570,7 @@ function accentRamp(accent) {
|
|
|
7524
7570
|
}
|
|
7525
7571
|
// Green's lightness and chroma, the accent's hue. Green's own hue is the
|
|
7526
7572
|
// one thing a generated ramp does not keep.
|
|
7527
|
-
var _entry$lch =
|
|
7573
|
+
var _entry$lch = createForOfIteratorHelper._slicedToArray(entry.lch, 2),
|
|
7528
7574
|
lightness = _entry$lch[0],
|
|
7529
7575
|
chroma = _entry$lch[1];
|
|
7530
7576
|
return rgbToHex(oklchToRgb(clampChromaToGamut([lightness, chroma * chromaScale, accentHue])));
|
|
@@ -7674,7 +7720,7 @@ function relativeLuminance(hex) {
|
|
|
7674
7720
|
throw new Error("Not a six-digit hex colour: ".concat(hex));
|
|
7675
7721
|
}
|
|
7676
7722
|
var _rgb$map = rgb.map(srgbToLinear),
|
|
7677
|
-
_rgb$map2 =
|
|
7723
|
+
_rgb$map2 = createForOfIteratorHelper._slicedToArray(_rgb$map, 3),
|
|
7678
7724
|
r = _rgb$map2[0],
|
|
7679
7725
|
g = _rgb$map2[1],
|
|
7680
7726
|
b = _rgb$map2[2];
|
|
@@ -7954,7 +8000,7 @@ function isInsidePatchSetPath(inner, outer) {
|
|
|
7954
8000
|
}
|
|
7955
8001
|
var PatchSets = /*#__PURE__*/function () {
|
|
7956
8002
|
function PatchSets() {
|
|
7957
|
-
|
|
8003
|
+
wrapNativeSuper._classCallCheck(this, PatchSets);
|
|
7958
8004
|
createForOfIteratorHelper._defineProperty(this, "insertedPatches", void 0);
|
|
7959
8005
|
createForOfIteratorHelper._defineProperty(this, "patchSetMetadata", void 0);
|
|
7960
8006
|
createForOfIteratorHelper._defineProperty(this, "orderedInsertKeys", void 0);
|
|
@@ -7962,7 +8008,7 @@ var PatchSets = /*#__PURE__*/function () {
|
|
|
7962
8008
|
this.orderedInsertKeys = [];
|
|
7963
8009
|
this.insertedPatches = new Set();
|
|
7964
8010
|
}
|
|
7965
|
-
return
|
|
8011
|
+
return wrapNativeSuper._createClass(PatchSets, [{
|
|
7966
8012
|
key: "reset",
|
|
7967
8013
|
value: function reset() {
|
|
7968
8014
|
this.patchSetMetadata = {};
|
|
@@ -8404,7 +8450,7 @@ function sideFiles(trees, side) {
|
|
|
8404
8450
|
for (var _i = 0, _layers = layers; _i < _layers.length; _i++) {
|
|
8405
8451
|
var layer = _layers[_i];
|
|
8406
8452
|
for (var _i2 = 0, _Object$entries = Object.entries(layer); _i2 < _Object$entries.length; _i2++) {
|
|
8407
|
-
var _Object$entries$_i =
|
|
8453
|
+
var _Object$entries$_i = createForOfIteratorHelper._slicedToArray(_Object$entries[_i2], 2),
|
|
8408
8454
|
path = _Object$entries$_i[0],
|
|
8409
8455
|
text = _Object$entries$_i[1];
|
|
8410
8456
|
if (text === null) delete files[path];else files[path] = text;
|
|
@@ -8430,11 +8476,11 @@ function schemaErrorsOf(schema, moduleFilePath, source) {
|
|
|
8430
8476
|
if (res === false) return [];
|
|
8431
8477
|
var errors = [];
|
|
8432
8478
|
for (var _i3 = 0, _Object$entries2 = Object.entries(res); _i3 < _Object$entries2.length; _i3++) {
|
|
8433
|
-
var _Object$entries2$_i =
|
|
8479
|
+
var _Object$entries2$_i = createForOfIteratorHelper._slicedToArray(_Object$entries2[_i3], 2),
|
|
8434
8480
|
sourcePath = _Object$entries2$_i[0],
|
|
8435
8481
|
list = _Object$entries2$_i[1];
|
|
8436
8482
|
var _Internal$splitModule = core.Internal.splitModuleFilePathAndModulePath(sourcePath),
|
|
8437
|
-
_Internal$splitModule2 =
|
|
8483
|
+
_Internal$splitModule2 = createForOfIteratorHelper._slicedToArray(_Internal$splitModule, 2),
|
|
8438
8484
|
modulePath = _Internal$splitModule2[1];
|
|
8439
8485
|
var path = modulePath ? core.Internal.createPatchPath(modulePath) : [];
|
|
8440
8486
|
var _iterator = createForOfIteratorHelper._createForOfIteratorHelper(list),
|
|
@@ -8483,7 +8529,7 @@ function selfCheck(_x) {
|
|
|
8483
8529
|
return _selfCheck.apply(this, arguments);
|
|
8484
8530
|
}
|
|
8485
8531
|
function _selfCheck() {
|
|
8486
|
-
_selfCheck =
|
|
8532
|
+
_selfCheck = createForOfIteratorHelper._asyncToGenerator(/*#__PURE__*/createForOfIteratorHelper._regenerator().m(function _callee(valModules) {
|
|
8487
8533
|
var options,
|
|
8488
8534
|
errors,
|
|
8489
8535
|
found,
|
|
@@ -8531,7 +8577,7 @@ function _selfCheck() {
|
|
|
8531
8577
|
_t2,
|
|
8532
8578
|
_t3,
|
|
8533
8579
|
_t4;
|
|
8534
|
-
return
|
|
8580
|
+
return createForOfIteratorHelper._regenerator().w(function (_context) {
|
|
8535
8581
|
while (1) switch (_context.p = _context.n) {
|
|
8536
8582
|
case 0:
|
|
8537
8583
|
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
|
@@ -8547,7 +8593,7 @@ function _selfCheck() {
|
|
|
8547
8593
|
_context.n = 17;
|
|
8548
8594
|
break;
|
|
8549
8595
|
}
|
|
8550
|
-
_step$value =
|
|
8596
|
+
_step$value = createForOfIteratorHelper._slicedToArray(_step.value, 2), index = _step$value[0], entry = _step$value[1];
|
|
8551
8597
|
module = void 0;
|
|
8552
8598
|
_context.p = 3;
|
|
8553
8599
|
_context.n = 4;
|
|
@@ -8624,7 +8670,7 @@ function _selfCheck() {
|
|
|
8624
8670
|
return _context.a(3, 16);
|
|
8625
8671
|
case 15:
|
|
8626
8672
|
for (_i2 = 0, _Object$entries2 = Object.entries(result); _i2 < _Object$entries2.length; _i2++) {
|
|
8627
|
-
_Object$entries2$_i =
|
|
8673
|
+
_Object$entries2$_i = createForOfIteratorHelper._slicedToArray(_Object$entries2[_i2], 2), _sourcePath = _Object$entries2$_i[0], _list = _Object$entries2$_i[1];
|
|
8628
8674
|
(_found = (_found$_ref = found[_ref = _sourcePath]) !== null && _found$_ref !== void 0 ? _found$_ref : found[_ref] = []).push.apply(_found, createForOfIteratorHelper._toConsumableArray(_list));
|
|
8629
8675
|
}
|
|
8630
8676
|
case 16:
|
|
@@ -8650,8 +8696,8 @@ function _selfCheck() {
|
|
|
8650
8696
|
sources: sources
|
|
8651
8697
|
})), surfaced = _partitionValidationE.surfaced, skipped = _partitionValidationE.skipped;
|
|
8652
8698
|
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 =
|
|
8699
|
+
_Object$entries$_i = createForOfIteratorHelper._slicedToArray(_Object$entries[_i], 2), sourcePath = _Object$entries$_i[0], list = _Object$entries$_i[1];
|
|
8700
|
+
_Internal$splitModule = core.Internal.splitModuleFilePathAndModulePath(sourcePath), _Internal$splitModule2 = createForOfIteratorHelper._slicedToArray(_Internal$splitModule, 2), moduleFilePath = _Internal$splitModule2[0], modulePath = _Internal$splitModule2[1];
|
|
8655
8701
|
path = modulePath ? core.Internal.createPatchPath(modulePath) : [];
|
|
8656
8702
|
_iterator2 = createForOfIteratorHelper._createForOfIteratorHelper(list);
|
|
8657
8703
|
try {
|
|
@@ -8707,6 +8753,10 @@ exports.parseUpdateTarget = protocol.parseUpdateTarget;
|
|
|
8707
8753
|
exports.parseVerify = protocol.parseVerify;
|
|
8708
8754
|
exports.DEFAULT_CANVAS_SELECTION = getSitemapTree.DEFAULT_CANVAS_SELECTION;
|
|
8709
8755
|
exports.DEFAULT_CANVAS_SELECTION_SOFT = getSitemapTree.DEFAULT_CANVAS_SELECTION_SOFT;
|
|
8756
|
+
exports.QUICK_PREVIEW_PARAM = getSitemapTree.QUICK_PREVIEW_PARAM;
|
|
8757
|
+
exports.QUICK_PREVIEW_SERVICE_WORKER_PATH = getSitemapTree.QUICK_PREVIEW_SERVICE_WORKER_PATH;
|
|
8758
|
+
exports.QUICK_PREVIEW_SERVICE_WORKER_SOURCE = getSitemapTree.QUICK_PREVIEW_SERVICE_WORKER_SOURCE;
|
|
8759
|
+
exports.QUICK_PREVIEW_STORE_MESSAGE = getSitemapTree.QUICK_PREVIEW_STORE_MESSAGE;
|
|
8710
8760
|
exports.VAL_AI_SESSION_STORAGE_KEY = getSitemapTree.VAL_AI_SESSION_STORAGE_KEY;
|
|
8711
8761
|
exports.VAL_CANVAS_MESSAGE = getSitemapTree.VAL_CANVAS_MESSAGE;
|
|
8712
8762
|
exports.VAL_CANVAS_PARAM = getSitemapTree.VAL_CANVAS_PARAM;
|
|
@@ -8716,19 +8766,29 @@ exports.attachElementPicker = getSitemapTree.attachElementPicker;
|
|
|
8716
8766
|
exports.createPickerOverlay = getSitemapTree.createPickerOverlay;
|
|
8717
8767
|
exports.describeElement = getSitemapTree.describeElement;
|
|
8718
8768
|
exports.elementLabel = getSitemapTree.elementLabel;
|
|
8769
|
+
exports.findBySelector = getSitemapTree.findBySelector;
|
|
8719
8770
|
exports.formatRoutePattern = getSitemapTree.formatRoutePattern;
|
|
8720
8771
|
exports.getNextAppRouterSourceFolder = getSitemapTree.getNextAppRouterSourceFolder;
|
|
8721
8772
|
exports.getPageRouterSitemapTree = getSitemapTree.getPageRouterSitemapTree;
|
|
8722
8773
|
exports.getPageRouterSourceFolder = getSitemapTree.getPageRouterSourceFolder;
|
|
8723
8774
|
exports.getPatternFromModuleFilePath = getSitemapTree.getPatternFromModuleFilePath;
|
|
8724
8775
|
exports.getTanStackRouterSourceFolder = getSitemapTree.getTanStackRouterSourceFolder;
|
|
8776
|
+
exports.isDesignTabOrigin = getSitemapTree.isDesignTabOrigin;
|
|
8777
|
+
exports.isQuickPreviewFiles = getSitemapTree.isQuickPreviewFiles;
|
|
8725
8778
|
exports.isTanStackRoutesFolder = getSitemapTree.isTanStackRoutesFolder;
|
|
8726
8779
|
exports.isValCanvasFrame = getSitemapTree.isValCanvasFrame;
|
|
8727
8780
|
exports.isValCanvasPageMessage = getSitemapTree.isValCanvasPageMessage;
|
|
8728
8781
|
exports.isValCanvasStudioMessage = getSitemapTree.isValCanvasStudioMessage;
|
|
8729
8782
|
exports.modifierLabel = getSitemapTree.modifierLabel;
|
|
8783
|
+
exports.pageLocationOf = getSitemapTree.pageLocationOf;
|
|
8730
8784
|
exports.parseRoutePattern = getSitemapTree.parseRoutePattern;
|
|
8785
|
+
exports.quickPreviewSiteOrigin = getSitemapTree.quickPreviewSiteOrigin;
|
|
8786
|
+
exports.readPageSnapshot = getSitemapTree.readPageSnapshot;
|
|
8787
|
+
exports.restoreScroll = getSitemapTree.restoreScroll;
|
|
8731
8788
|
exports.startElementPicking = getSitemapTree.startElementPicking;
|
|
8789
|
+
exports.storeQuickPreview = getSitemapTree.storeQuickPreview;
|
|
8790
|
+
exports.watchPageLocation = getSitemapTree.watchPageLocation;
|
|
8791
|
+
exports.withQuickPreviewParam = getSitemapTree.withQuickPreviewParam;
|
|
8732
8792
|
exports.withValCanvasParam = getSitemapTree.withValCanvasParam;
|
|
8733
8793
|
exports.AA_LARGE = AA_LARGE;
|
|
8734
8794
|
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) {
|
|
@@ -1953,6 +1953,47 @@ var Api = {
|
|
|
1953
1953
|
})])
|
|
1954
1954
|
}
|
|
1955
1955
|
},
|
|
1956
|
+
/**
|
|
1957
|
+
* The versions of Val's packages the server runs, for the list at the foot
|
|
1958
|
+
* of the Studio's account panel.
|
|
1959
|
+
*/
|
|
1960
|
+
"/versions": {
|
|
1961
|
+
GET: {
|
|
1962
|
+
req: {
|
|
1963
|
+
cookies: {
|
|
1964
|
+
val_session: z.string().optional()
|
|
1965
|
+
}
|
|
1966
|
+
},
|
|
1967
|
+
res: z.union([z.object({
|
|
1968
|
+
status: z.literal(200),
|
|
1969
|
+
json: z.object({
|
|
1970
|
+
/** Null where no binding said: the demo, a test. */
|
|
1971
|
+
framework: z.object({
|
|
1972
|
+
name: z.union([z.literal("next"), z.literal("tanstack")]),
|
|
1973
|
+
version: z.string()
|
|
1974
|
+
}).nullable(),
|
|
1975
|
+
core: z.string(),
|
|
1976
|
+
server: z.string()
|
|
1977
|
+
})
|
|
1978
|
+
}), z.object({
|
|
1979
|
+
status: z.literal(401),
|
|
1980
|
+
json: z.object({
|
|
1981
|
+
message: z.string()
|
|
1982
|
+
})
|
|
1983
|
+
}),
|
|
1984
|
+
/*
|
|
1985
|
+
* A server older than the Studio, which has no such route: it answers
|
|
1986
|
+
* "Route not found". Listed so the Studio can tell that apart from a
|
|
1987
|
+
* request that failed, since only the second is worth retrying.
|
|
1988
|
+
*/
|
|
1989
|
+
z.object({
|
|
1990
|
+
status: z.literal(404),
|
|
1991
|
+
json: z.object({
|
|
1992
|
+
message: z.string()
|
|
1993
|
+
})
|
|
1994
|
+
})])
|
|
1995
|
+
}
|
|
1996
|
+
},
|
|
1956
1997
|
"/stat": {
|
|
1957
1998
|
POST: {
|
|
1958
1999
|
req: {
|
|
@@ -3599,7 +3640,12 @@ var Api = {
|
|
|
3599
3640
|
width: z.number(),
|
|
3600
3641
|
height: z.number(),
|
|
3601
3642
|
mimeType: z.string()
|
|
3602
|
-
})
|
|
3643
|
+
}),
|
|
3644
|
+
/**
|
|
3645
|
+
* SHA-256 of the bytes, hex: what a remote file's ref names.
|
|
3646
|
+
* Absent from a content service that predates it.
|
|
3647
|
+
*/
|
|
3648
|
+
sha256: z.string().optional()
|
|
3603
3649
|
}))
|
|
3604
3650
|
})
|
|
3605
3651
|
}), z.object({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valbuild/shared",
|
|
3
|
-
"version": "0.150.
|
|
3
|
+
"version": "0.150.12",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Val shared types and utilities",
|
|
6
6
|
"repository": {
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
],
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"typescript": "^6.0.3",
|
|
74
|
-
"@valbuild/tanstack-build": "0.150.
|
|
74
|
+
"@valbuild/tanstack-build": "0.150.12"
|
|
75
75
|
},
|
|
76
76
|
"sideEffects": false,
|
|
77
77
|
"scripts": {
|