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.
- package/dist/acceptance/matrix.mjs +3 -3
- package/dist/cli/index.mjs +6849 -3337
- package/dist/cli/init-docs/content/getting-started.md +10 -10
- package/dist/{entryCommands-Cx1aj859.mjs → entryCommands-Db_o9w2r.mjs} +5179 -1336
- package/dist/{eventUpsertInputSchema-Dj2LtxCt.mjs → eventUpsertInputSchema-CHMFsN8M.mjs} +2 -2
- package/dist/load-config-CkNUO_cn.mjs +4 -0
- package/dist/{load-config-k3XF8V97.mjs → load-config-aVpLIpK_.mjs} +2 -2
- package/dist/{plan-D-bOngd3.mjs → plan-CNisrgzZ.mjs} +9 -12
- package/dist/scaffold/index.mjs +2 -2
- package/dist/{sdk-event-upsert-n4in1E4v.mjs → sdk-event-upsert-CLqEh-D2.mjs} +207 -125
- package/dist/{src-DHIn60_q.mjs → src-CE4CDO3T.mjs} +396 -29
- package/dist/testing.mjs +4 -4
- package/package.json +1 -1
- package/dist/load-config-D7f6MXJV.mjs +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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
|
|
@@ -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.
|
|
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.
|
|
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 {
|
|
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,
|
|
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 { ${
|
|
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
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
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
|
package/dist/scaffold/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "../src-
|
|
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-
|
|
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 };
|