riverbankcms 0.36.0 → 0.38.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.
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { En as sdkEntrySlotBlocksInputSchema, a as classifySdkEventSchedule, i as sdkEventUpsertOptionalFieldSchemas, n as sdkCourseBookingSettingsSchema, o as classifySdkEventBookingOffer } from "./sdk-event-upsert-n4in1E4v.mjs";
3
- import { S as EVENT_PRESET_VALUES } from "./src-DHIn60_q.mjs";
2
+ import { Dn as sdkEntrySlotBlocksInputSchema, a as classifySdkEventSchedule, i as sdkEventUpsertOptionalFieldSchemas, n as sdkCourseBookingSettingsSchema, o as classifySdkEventBookingOffer } from "./sdk-event-upsert-CLqEh-D2.mjs";
3
+ import { w as EVENT_PRESET_VALUES } from "./src-CE4CDO3T.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/commands/eventUpsertInputSchema.ts
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import { t as loadConfigFile } from "./load-config-aVpLIpK_.mjs";
3
+
4
+ export { loadConfigFile };
@@ -7,7 +7,7 @@ import { existsSync as existsSync$1 } from "fs";
7
7
  import { fileURLToPath } from "url";
8
8
 
9
9
  //#region package.json
10
- var version = "0.36.0";
10
+ var version = "0.38.0";
11
11
  var peerDependencies = { "@riverbankcms/sdk": ">=0.157.0 <1.0.0" };
12
12
  var package_default = {
13
13
  name: "riverbankcms",
@@ -94,7 +94,7 @@ var package_default = {
94
94
  //#endregion
95
95
  //#region src/version.ts
96
96
  /** The package manifest is the source-run fallback; builds inject this value. */
97
- const CLI_VERSION = typeof "0.36.0" === "string" ? "0.36.0" : version;
97
+ const CLI_VERSION = typeof "0.38.0" === "string" ? "0.38.0" : version;
98
98
  /**
99
99
  * The CLI's SDK peer range is bundled from the CLI manifest alongside its
100
100
  * version. Runtime config loading uses this value as the single compatibility
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { Nr as err, Pr as ok, xr as parseSiteId } from "./src-DHIn60_q.mjs";
2
+ import { Kr as err, Nr as parseSiteId, qr as ok } from "./src-CE4CDO3T.mjs";
3
3
  import { existsSync, readFileSync } from "node:fs";
4
4
  import { dirname, isAbsolute, join, parse, relative, resolve, sep } from "node:path";
5
5
  import { fileURLToPath } from "node:url";
@@ -1322,27 +1322,24 @@ export default function NotFound() {
1322
1322
 
1323
1323
  //#endregion
1324
1324
  //#region src/scaffold/templates/portal-pages.ts
1325
- function portalPageTemplate(path$1, helper, configPath, metadata = "") {
1325
+ function portalPageTemplate(path$1, page, configPath, metadata) {
1326
+ const imports = page.alsoImport ? `${page.helper}, ${page.alsoImport}` : page.helper;
1326
1327
  return {
1327
1328
  path: `src/app/${path$1}/page.tsx`,
1328
- content: `import { ${helper} } from '@riverbankcms/sdk/next';
1329
+ content: `import { ${imports} } from '@riverbankcms/sdk/next';
1329
1330
  import { getRiverbankClient } from '@/lib/riverbank-client';
1330
1331
  import config from '${configPath}';
1331
1332
 
1332
1333
  ${metadata}export const dynamic = 'force-dynamic';
1333
- export default ${helper}({ getClient: getRiverbankClient, config });
1334
+ export default ${page.helper}({ getClient: getRiverbankClient, config });
1334
1335
  `
1335
1336
  };
1336
1337
  }
1337
1338
  function portalPageTemplates() {
1338
- return [
1339
- portalPageTemplate("redeem", "createRedeemPage", "../../../riverbank.config", "export const metadata = { title: 'Redeem a gift card', referrer: 'no-referrer', robots: { index: false, follow: false } };\n"),
1340
- portalPageTemplate("portal", "createPortalPage", "../../../riverbank.config"),
1341
- portalPageTemplate("portal/continue", "createPortalContinuePage", "../../../../riverbank.config", "export const metadata = { title: 'Continue', robots: { index: false, follow: false } };\n"),
1342
- portalPageTemplate("portal/tickets/[registrationId]", "createPortalTicketPage", "../../../../../riverbank.config"),
1343
- portalPageTemplate("portal/digital-products/[entitlementId]", "createPortalDigitalProductPage", "../../../../../riverbank.config"),
1344
- portalPageTemplate("portal/digital-products/[entitlementId]/files/[assetId]", "createPortalDigitalProductFilePage", "../../../../../../../riverbank.config")
1345
- ];
1339
+ return [portalPageTemplate("redeem", { helper: "createRedeemPage" }, "../../../riverbank.config", "export const metadata = { title: 'Redeem a gift card', referrer: 'no-referrer', robots: { index: false, follow: false } };\n"), portalPageTemplate("portal/[[...path]]", {
1340
+ helper: "createPortalPage",
1341
+ alsoImport: "generatePortalPageMetadata"
1342
+ }, "../../../../riverbank.config", "export const generateMetadata = generatePortalPageMetadata;\n")];
1346
1343
  }
1347
1344
 
1348
1345
  //#endregion
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import "../src-DHIn60_q.mjs";
3
- import { a as prepareScaffoldExecution, d as loadGeneratedPackageRanges, i as preflightScaffoldTargets, l as deriveGeneratedPackageRanges, o as writeScaffoldFiles, r as preflightScaffoldPlan, s as deriveScaffoldLocalManifest, t as deriveScaffoldPlan, u as findPackageManifestPath } from "../plan-D-bOngd3.mjs";
2
+ import "../src-CE4CDO3T.mjs";
3
+ import { a as prepareScaffoldExecution, d as loadGeneratedPackageRanges, i as preflightScaffoldTargets, l as deriveGeneratedPackageRanges, o as writeScaffoldFiles, r as preflightScaffoldPlan, s as deriveScaffoldLocalManifest, t as deriveScaffoldPlan, u as findPackageManifestPath } from "../plan-CNisrgzZ.mjs";
4
4
 
5
5
  export { deriveGeneratedPackageRanges, deriveScaffoldLocalManifest, deriveScaffoldPlan, findPackageManifestPath, loadGeneratedPackageRanges, preflightScaffoldPlan, preflightScaffoldTargets, prepareScaffoldExecution, writeScaffoldFiles };