riverbankcms 0.19.0 → 0.21.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/README.md +23 -0
- package/dist/acceptance/matrix.mjs +4 -4
- package/dist/cli/index.mjs +62492 -104568
- package/dist/cli/init-docs/content/getting-started.md +27 -0
- package/dist/cli/init-docs/content/workflow-content-types.md +25 -0
- package/dist/entryCommands-DSQZqznu.mjs +23110 -0
- package/dist/{eventUpsertInputSchema-Bkafrrjw.mjs → eventUpsertInputSchema-zCTx0fdF.mjs} +337 -325
- package/dist/{load-config-CErro6mj.mjs → load-config-B68gtN45.mjs} +3 -3
- package/dist/load-config-ghkXBKim.mjs +4 -0
- package/dist/{plan-DW5O751d.mjs → plan-CkMANumv.mjs} +36 -3
- package/dist/scaffold/index.mjs +2 -2
- package/dist/{sdk-event-upsert-BdvfnCyV.mjs → sdk-event-upsert-CrOuJrxo.mjs} +1033 -123
- package/dist/{src-yL0DBH7S.mjs → src-BENi4Q5k.mjs} +134 -29
- package/dist/testing.mjs +5 -4
- package/package.json +2 -2
- package/dist/load-config-rPaisrdG.mjs +0 -4
- package/dist/local-sync-CWLEhMZ-.mjs +0 -4635
|
@@ -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.
|
|
11
|
-
var peerDependencies = { "@riverbankcms/sdk": ">=0.
|
|
10
|
+
var version = "0.21.0";
|
|
11
|
+
var peerDependencies = { "@riverbankcms/sdk": ">=0.156.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.
|
|
86
|
+
const CLI_VERSION = typeof "0.21.0" === "string" ? "0.21.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 {
|
|
2
|
+
import { In as err, Ln as ok, in as parseSiteId } from "./src-BENi4Q5k.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";
|
|
@@ -1199,10 +1199,16 @@ function globalsCssTemplate(config) {
|
|
|
1199
1199
|
@import "@riverbankcms/sdk/preview-next/tailwind-sources.css";
|
|
1200
1200
|
@import "@riverbankcms/sdk/preview-next/chrome.css";
|
|
1201
1201
|
|
|
1202
|
+
` : "";
|
|
1203
|
+
const portalBlock = config.withPortalAuth ? `/* Customer portal pages (layout, tabs, modals, tickets) use Riverbank's
|
|
1204
|
+
* packaged styles. The portal route helpers supply the site theme scope.
|
|
1205
|
+
*/
|
|
1206
|
+
@import "@riverbankcms/sdk/styles.css";
|
|
1207
|
+
|
|
1202
1208
|
` : "";
|
|
1203
1209
|
return {
|
|
1204
1210
|
path: "src/app/globals.css",
|
|
1205
|
-
content: `${previewBlock}/* Add host-owned styles below. */
|
|
1211
|
+
content: `${previewBlock}${portalBlock}/* Add host-owned styles below. */
|
|
1206
1212
|
`
|
|
1207
1213
|
};
|
|
1208
1214
|
}
|
|
@@ -1311,6 +1317,29 @@ export default function NotFound() {
|
|
|
1311
1317
|
};
|
|
1312
1318
|
}
|
|
1313
1319
|
|
|
1320
|
+
//#endregion
|
|
1321
|
+
//#region src/scaffold/templates/portal-pages.ts
|
|
1322
|
+
function portalPageTemplate(path$1, helper, configPath) {
|
|
1323
|
+
return {
|
|
1324
|
+
path: `src/app/${path$1}/page.tsx`,
|
|
1325
|
+
content: `import { ${helper} } from '@riverbankcms/sdk/next';
|
|
1326
|
+
import { getRiverbankClient } from '@/lib/riverbank-client';
|
|
1327
|
+
import config from '${configPath}';
|
|
1328
|
+
|
|
1329
|
+
export const dynamic = 'force-dynamic';
|
|
1330
|
+
export default ${helper}({ getClient: getRiverbankClient, config });
|
|
1331
|
+
`
|
|
1332
|
+
};
|
|
1333
|
+
}
|
|
1334
|
+
function portalPageTemplates() {
|
|
1335
|
+
return [
|
|
1336
|
+
portalPageTemplate("portal", "createPortalPage", "../../../riverbank.config"),
|
|
1337
|
+
portalPageTemplate("portal/tickets/[registrationId]", "createPortalTicketPage", "../../../../../riverbank.config"),
|
|
1338
|
+
portalPageTemplate("portal/digital-products/[entitlementId]", "createPortalDigitalProductPage", "../../../../../riverbank.config"),
|
|
1339
|
+
portalPageTemplate("portal/digital-products/[entitlementId]/files/[assetId]", "createPortalDigitalProductFilePage", "../../../../../../../riverbank.config")
|
|
1340
|
+
];
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1314
1343
|
//#endregion
|
|
1315
1344
|
//#region src/scaffold/templates/portal-callback-route.ts
|
|
1316
1345
|
function portalCallbackRouteTemplate() {
|
|
@@ -2050,7 +2079,11 @@ function starterContentTemplates(config) {
|
|
|
2050
2079
|
//#region src/scaffold/templates/index.ts
|
|
2051
2080
|
function generateAllTemplates(config) {
|
|
2052
2081
|
const preview = config.withPreviewMode ? [previewKeepAliveRouteTemplate(), previewModeClientTemplate()] : [];
|
|
2053
|
-
const portal = config.withPortalAuth ? [
|
|
2082
|
+
const portal = config.withPortalAuth ? [
|
|
2083
|
+
portalCallbackRouteTemplate(),
|
|
2084
|
+
portalLogoutRouteTemplate(),
|
|
2085
|
+
...portalPageTemplates()
|
|
2086
|
+
] : [];
|
|
2054
2087
|
return [
|
|
2055
2088
|
gitignoreTemplate(),
|
|
2056
2089
|
envConfigTemplate(config),
|
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-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";
|
|
4
4
|
|
|
5
5
|
export { deriveGeneratedPackageRanges, deriveScaffoldLocalManifest, deriveScaffoldPlan, findPackageManifestPath, loadGeneratedPackageRanges, preflightScaffoldPlan, preflightScaffoldTargets, prepareScaffoldExecution, writeScaffoldFiles };
|