@industry-theme/file-city-panel 0.2.72 → 0.2.73
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/panels.bundle.js
CHANGED
|
@@ -53265,7 +53265,12 @@ function parseTour(jsonString) {
|
|
|
53265
53265
|
}
|
|
53266
53266
|
}
|
|
53267
53267
|
function findTourInFileTree(fileTree) {
|
|
53268
|
-
const
|
|
53268
|
+
const tourFiles = fileTree.allFiles.filter((file) => {
|
|
53269
|
+
const normalizedPath = file.path.startsWith("./") ? file.path.slice(2) : file.path;
|
|
53270
|
+
return normalizedPath.endsWith(".tour.json") && !normalizedPath.includes("/");
|
|
53271
|
+
});
|
|
53272
|
+
tourFiles.sort((a, b) => a.path.localeCompare(b.path));
|
|
53273
|
+
const tourFile = tourFiles[0];
|
|
53269
53274
|
if (tourFile && tourFile.content) {
|
|
53270
53275
|
return tourFile.content;
|
|
53271
53276
|
}
|
|
@@ -53276,7 +53281,7 @@ function loadTourFromFileTree(fileTree) {
|
|
|
53276
53281
|
if (!tourContent) {
|
|
53277
53282
|
return {
|
|
53278
53283
|
success: false,
|
|
53279
|
-
errors: [new TourValidationError("No tour.json file found in repository root")]
|
|
53284
|
+
errors: [new TourValidationError("No *.tour.json file found in repository root")]
|
|
53280
53285
|
};
|
|
53281
53286
|
}
|
|
53282
53287
|
return parseTour(tourContent);
|