riverbankcms 0.21.0 → 0.22.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 { _ as normalizeLinkValue, a as classifySdkEventSchedule, g as linkSchema, i as sdkEventUpsertOptionalFieldSchemas, n as sdkCourseBookingSettingsSchema, o as classifySdkEventBookingOffer } from "./sdk-event-upsert-CrOuJrxo.mjs";
3
- import { u as EVENT_PRESET_VALUES } from "./src-BENi4Q5k.mjs";
2
+ import { _ as normalizeLinkValue, a as classifySdkEventSchedule, g as linkSchema, i as sdkEventUpsertOptionalFieldSchemas, n as sdkCourseBookingSettingsSchema, o as classifySdkEventBookingOffer } from "./sdk-event-upsert-BqjzK2zT.mjs";
3
+ import { u as EVENT_PRESET_VALUES } from "./src-zzwJUef5.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region ../blocks/src/lib/typeGuards.ts
@@ -1765,6 +1765,10 @@ function parseContentTypeSchema(input) {
1765
1765
  function isManualEntryOrderingEnabled(schema) {
1766
1766
  return schema?.ordering?.mode === "manual";
1767
1767
  }
1768
+ /** Default list order shared by management lists and public entry loaders. */
1769
+ function resolveContentEntryOrder(schema, explicitOrder) {
1770
+ return explicitOrder ?? (isManualEntryOrderingEnabled(schema) ? "manual.asc" : undefined);
1771
+ }
1768
1772
  function normalizeContentFields(fields) {
1769
1773
  return fields.map((field) => {
1770
1774
  const schemaFields = field.schema?.fields ?? undefined;
@@ -1908,6 +1912,7 @@ function applyContentTypeDefaults(schema) {
1908
1912
  return {
1909
1913
  version: schema.version ?? 1,
1910
1914
  fields: cloneFieldCollection(schema.fields ?? []),
1915
+ ordering: schema.ordering ? { ...schema.ordering } : undefined,
1911
1916
  routing: schema.routing ? { ...schema.routing } : undefined,
1912
1917
  widgets: schema.widgets ? { ...schema.widgets } : undefined,
1913
1918
  labels: schema.labels ? { ...schema.labels } : {
@@ -2121,6 +2126,7 @@ const PRODUCT_CONTENT_TYPE_SCHEMA = {
2121
2126
  };
2122
2127
  const TESTIMONIAL_CONTENT_TYPE_SCHEMA = {
2123
2128
  version: 1,
2129
+ ordering: { mode: "manual" },
2124
2130
  fields: [
2125
2131
  {
2126
2132
  id: "name",
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import { t as loadConfigFile } from "./load-config-j58KSqxl.mjs";
3
+
4
+ export { loadConfigFile };
@@ -7,8 +7,8 @@ import { existsSync as existsSync$1 } from "fs";
7
7
  import { fileURLToPath } from "url";
8
8
 
9
9
  //#region package.json
10
- var version = "0.21.0";
11
- var peerDependencies = { "@riverbankcms/sdk": ">=0.156.0 <1.0.0" };
10
+ var version = "0.22.0";
11
+ var peerDependencies = { "@riverbankcms/sdk": ">=0.157.0 <1.0.0" };
12
12
  var package_default = {
13
13
  name: "riverbankcms",
14
14
  version,
@@ -83,7 +83,7 @@ var package_default = {
83
83
  //#endregion
84
84
  //#region src/version.ts
85
85
  /** The package manifest is the source-run fallback; builds inject this value. */
86
- const CLI_VERSION = typeof "0.21.0" === "string" ? "0.21.0" : version;
86
+ const CLI_VERSION = typeof "0.22.0" === "string" ? "0.22.0" : version;
87
87
  /**
88
88
  * The CLI's SDK peer range is bundled from the CLI manifest alongside its
89
89
  * version. Runtime config loading uses this value as the single compatibility
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { In as err, Ln as ok, in as parseSiteId } from "./src-BENi4Q5k.mjs";
2
+ import { Bn as ok, sn as parseSiteId, zn as err } from "./src-zzwJUef5.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";
@@ -1255,6 +1255,9 @@ function nextConfigTemplate() {
1255
1255
  content: `import type { NextConfig } from "next";
1256
1256
 
1257
1257
  const nextConfig: NextConfig = {
1258
+ async headers() {
1259
+ return [{ source: "/redeem", headers: [{ key: "Referrer-Policy", value: "no-referrer" }] }];
1260
+ },
1258
1261
  // Transpile workspace packages (needed for linked packages / local development).
1259
1262
  transpilePackages: ${JSON.stringify(["@riverbankcms/sdk"])},
1260
1263
 
@@ -1319,20 +1322,21 @@ export default function NotFound() {
1319
1322
 
1320
1323
  //#endregion
1321
1324
  //#region src/scaffold/templates/portal-pages.ts
1322
- function portalPageTemplate(path$1, helper, configPath) {
1325
+ function portalPageTemplate(path$1, helper, configPath, metadata = "") {
1323
1326
  return {
1324
1327
  path: `src/app/${path$1}/page.tsx`,
1325
1328
  content: `import { ${helper} } from '@riverbankcms/sdk/next';
1326
1329
  import { getRiverbankClient } from '@/lib/riverbank-client';
1327
1330
  import config from '${configPath}';
1328
1331
 
1329
- export const dynamic = 'force-dynamic';
1332
+ ${metadata}export const dynamic = 'force-dynamic';
1330
1333
  export default ${helper}({ getClient: getRiverbankClient, config });
1331
1334
  `
1332
1335
  };
1333
1336
  }
1334
1337
  function portalPageTemplates() {
1335
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"),
1336
1340
  portalPageTemplate("portal", "createPortalPage", "../../../riverbank.config"),
1337
1341
  portalPageTemplate("portal/tickets/[registrationId]", "createPortalTicketPage", "../../../../../riverbank.config"),
1338
1342
  portalPageTemplate("portal/digital-products/[entitlementId]", "createPortalDigitalProductPage", "../../../../../riverbank.config"),
@@ -1355,6 +1359,7 @@ function portalCallbackRouteTemplate() {
1355
1359
  import { handlePortalCallback } from '@riverbankcms/sdk/portal';
1356
1360
 
1357
1361
  export const GET = handlePortalCallback();
1362
+ export const POST = handlePortalCallback();
1358
1363
  `
1359
1364
  };
1360
1365
  }
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import "../src-BENi4Q5k.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-CkMANumv.mjs";
2
+ import "../src-zzwJUef5.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-C4IphkPc.mjs";
4
4
 
5
5
  export { deriveGeneratedPackageRanges, deriveScaffoldLocalManifest, deriveScaffoldPlan, findPackageManifestPath, loadGeneratedPackageRanges, preflightScaffoldPlan, preflightScaffoldTargets, prepareScaffoldExecution, writeScaffoldFiles };