@officexapp/catalogs-cli 0.4.2 → 0.4.3
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/index.js +51 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -322,6 +322,7 @@ function deepValidateCatalog(schema) {
|
|
|
322
322
|
const edges = routing.edges || [];
|
|
323
323
|
const entry = routing.entry;
|
|
324
324
|
const KNOWN_TYPES = /* @__PURE__ */ new Set([
|
|
325
|
+
// Display / layout
|
|
325
326
|
"heading",
|
|
326
327
|
"paragraph",
|
|
327
328
|
"image",
|
|
@@ -333,23 +334,50 @@ function deepValidateCatalog(schema) {
|
|
|
333
334
|
"pricing_card",
|
|
334
335
|
"testimonial",
|
|
335
336
|
"faq",
|
|
337
|
+
"accordion",
|
|
336
338
|
"timeline",
|
|
337
339
|
"file_download",
|
|
338
340
|
"iframe",
|
|
341
|
+
"table",
|
|
342
|
+
"social_links",
|
|
343
|
+
"tabs",
|
|
344
|
+
"countdown",
|
|
345
|
+
"comparison_table",
|
|
346
|
+
"progress_bar",
|
|
347
|
+
"modal",
|
|
348
|
+
"section_collapse",
|
|
349
|
+
"subform",
|
|
350
|
+
// Inputs
|
|
339
351
|
"short_text",
|
|
352
|
+
"long_text",
|
|
353
|
+
"rich_text",
|
|
340
354
|
"email",
|
|
341
355
|
"phone",
|
|
342
356
|
"url",
|
|
357
|
+
"address",
|
|
343
358
|
"number",
|
|
344
|
-
"
|
|
345
|
-
"
|
|
359
|
+
"currency",
|
|
360
|
+
"date",
|
|
361
|
+
"datetime",
|
|
362
|
+
"time",
|
|
363
|
+
"date_range",
|
|
364
|
+
"dropdown",
|
|
365
|
+
"multiselect",
|
|
346
366
|
"multiple_choice",
|
|
347
367
|
"checkboxes",
|
|
348
|
-
"
|
|
349
|
-
"slider",
|
|
350
|
-
"star_rating",
|
|
368
|
+
"picture_choice",
|
|
351
369
|
"switch",
|
|
352
370
|
"checkbox",
|
|
371
|
+
"choice_matrix",
|
|
372
|
+
"ranking",
|
|
373
|
+
"star_rating",
|
|
374
|
+
"slider",
|
|
375
|
+
"opinion_scale",
|
|
376
|
+
"file_upload",
|
|
377
|
+
"signature",
|
|
378
|
+
"password",
|
|
379
|
+
"location",
|
|
380
|
+
// Special
|
|
353
381
|
"payment"
|
|
354
382
|
]);
|
|
355
383
|
if (entry && !pageIds.has(entry)) {
|
|
@@ -4376,6 +4404,24 @@ async function whoami() {
|
|
|
4376
4404
|
}
|
|
4377
4405
|
|
|
4378
4406
|
// src/index.ts
|
|
4407
|
+
var NODE_MIN = 18;
|
|
4408
|
+
var NODE_MAX = 22;
|
|
4409
|
+
var nodeMajor = parseInt(process.versions.node.split(".")[0], 10);
|
|
4410
|
+
if (nodeMajor < NODE_MIN || nodeMajor > NODE_MAX) {
|
|
4411
|
+
console.error(`
|
|
4412
|
+
\x1B[31m\u2716 Unsupported Node.js version: v${process.versions.node}\x1B[0m`);
|
|
4413
|
+
console.error(` Catalog Kit CLI requires Node.js ${NODE_MIN}\u2013${NODE_MAX} (LTS recommended).`);
|
|
4414
|
+
if (nodeMajor > NODE_MAX) {
|
|
4415
|
+
console.error(` Node ${nodeMajor}+ breaks the tsx ESM loader hooks used to load TypeScript catalog files.`);
|
|
4416
|
+
}
|
|
4417
|
+
console.error(`
|
|
4418
|
+
\x1B[1mFix:\x1B[0m Install a compatible version with NVM (Node Version Manager):`);
|
|
4419
|
+
console.error(` curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash`);
|
|
4420
|
+
console.error(` nvm install 22`);
|
|
4421
|
+
console.error(` nvm use 22
|
|
4422
|
+
`);
|
|
4423
|
+
process.exit(1);
|
|
4424
|
+
}
|
|
4379
4425
|
var __dirname = dirname3(fileURLToPath(import.meta.url));
|
|
4380
4426
|
var { version } = JSON.parse(readFileSync5(join4(__dirname, "../package.json"), "utf-8"));
|
|
4381
4427
|
var program = new Command();
|