riverbankcms 0.6.0 → 0.7.1
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 +24 -38
- package/dist/cli/index.mjs +2903 -2093
- package/dist/cli/init-docs/content/cli-reference.md +12 -17
- package/dist/cli/init-docs/content/content-management.md +4 -5
- package/dist/cli/init-docs/content/workflow-isr-revalidation.md +2 -2
- package/dist/{eventUpsertInputSchema-CtkDnYlQ.mjs → eventUpsertInputSchema-DP8gbZJ9.mjs} +2 -2
- package/dist/{load-config-DbMjs6df.mjs → load-config-CkSoLJFY.mjs} +1 -1
- package/dist/load-config-Dgi_eByc.mjs +5 -0
- package/dist/{plan-DubdLR3N.mjs → plan-BFmMfERc.mjs} +22 -14
- package/dist/scaffold/index.mjs +2 -2
- package/dist/{sdk-event-upsert-CvFCbzNc.mjs → sdk-event-upsert-Cp043nSP.mjs} +842 -631
- package/dist/{sdk-peer-CyQ2so48.mjs → sdk-peer-CADuG9SR.mjs} +3 -3
- package/dist/{src-X9oZOIoK.mjs → src-B8fOSKJ6.mjs} +1236 -174
- package/dist/{style-aixm8BXi.mjs → style-BiosmAJm.mjs} +11 -18
- package/dist/testing.mjs +4 -4
- package/package.json +2 -2
- package/dist/load-config-NNJ0ww1N.mjs +0 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as CliSdkPeerError } from "./sdk-peer-
|
|
2
|
+
import { $t as asSiteStyleId, A as defaultPaletteForSiteStyle, B as parsePersistedHeaderLayoutId, D as curatedSiteStyles, E as concretePaletteToTheme, F as findFooterLook, I as guaranteedFallbackFooterLookId, K as findCuratedPalette, L as parsePersistedFooterLookId, M as headerLayoutChoicesForSiteStyle, N as headerStyleChoicesForLayout, O as defaultButtonStyleSelectionForSiteStyle, Ot as themeSchema, Qn as oklchToHexGamut, R as getHeaderLayout, S as eventBookingOfferIntentSchema, V as parsePersistedHeaderStyleId, Xn as featuresFromHex, Yn as contrastRatio, Zt as asAppearancePresetId, at as isButtonStyleId, c as stableStringify, it as createDefaultButtonStyleSelection, j as getCuratedSiteStyle, k as defaultHeaderSelectionForSiteStyle, kt as typographySchema, n as sdkEventOccurrenceInputSchema, nt as findButtonStyleRecipe, rt as buttonStyleSelectionSchema, sr as paletteSchema, z as getHeaderStyle } from "./sdk-event-upsert-Cp043nSP.mjs";
|
|
3
|
+
import { A as parseFooterCompositionV1, At as unsafeAsPositiveSeconds, Bt as unsafeAsUserId, Ct as unsafeAsEventOfferingId, Dt as unsafeAsOccurrenceId, Et as unsafeAsMediaAssetId, Ft as unsafeAsSiteScopedStoragePath, Ht as ok, K as parseUtcIsoDateTimeString, Lt as unsafeAsStorageBucketName, Mt as unsafeAsSafeDownloadFilename, Nt as unsafeAsSiteFontId, Ot as unsafeAsOriginalFilename, Pt as unsafeAsSiteId, Rt as unsafeAsStoragePath, St as unsafeAsEntitlementId, Tt as unsafeAsFileChecksumSha256, Vt as err, _ as createSecret, _t as unsafeAsBookingRequirementId, a as parseVerticalId, jt as unsafeAsProductId, kt as unsafeAsPositiveByteCount, l as EVENT_PRESET_VALUES, lt as assertNever, mt as parseSiteId, o as parseVerticalPresetId, ot as fromArray, r as canonicalizeConfiguredBookingVerticalConfig, s as resolveSiteVerticalBookingConfig, st as mapNonEmptyArray, v as exposeSecret, vt as unsafeAsBookingSessionId, wt as unsafeAsEventSeriesId, xt as unsafeAsDetectedMimeType, y as parseManagementKey, yt as unsafeAsDeclaredMimeType, zt as unsafeAsUploadSessionId } from "./src-B8fOSKJ6.mjs";
|
|
4
|
+
import { t as CliSdkPeerError } from "./sdk-peer-CADuG9SR.mjs";
|
|
5
5
|
import { Command } from "commander";
|
|
6
6
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
7
7
|
import * as fs from "fs/promises";
|
|
@@ -586,11 +586,11 @@ const sdkPullNavigationItemSchema = z.lazy(() => z.object({
|
|
|
586
586
|
const sdkPullNavigationMenuSchema = z.object({
|
|
587
587
|
id: sdkIdentifierSchema$1,
|
|
588
588
|
siteId: sdkIdentifierSchema$1,
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
589
|
+
location: z.enum([
|
|
590
|
+
"main",
|
|
591
|
+
"footer",
|
|
592
|
+
"legal"
|
|
593
|
+
]),
|
|
594
594
|
items: z.array(sdkPullNavigationItemSchema),
|
|
595
595
|
createdAt: sdkTimestampSchema$2,
|
|
596
596
|
updatedAt: sdkTimestampSchema$2
|
|
@@ -1521,11 +1521,7 @@ function mapPulledNavigationItem(item) {
|
|
|
1521
1521
|
function mapPulledNavigationMenu(menu) {
|
|
1522
1522
|
return {
|
|
1523
1523
|
id: menu.id,
|
|
1524
|
-
|
|
1525
|
-
name: menu.name,
|
|
1526
|
-
isPrimary: menu.isPrimary,
|
|
1527
|
-
isFooter: menu.isFooter,
|
|
1528
|
-
footerRole: menu.footerRole,
|
|
1524
|
+
location: menu.location,
|
|
1529
1525
|
items: menu.items.map(mapPulledNavigationItem),
|
|
1530
1526
|
createdAt: menu.createdAt,
|
|
1531
1527
|
updatedAt: menu.updatedAt
|
|
@@ -1537,9 +1533,9 @@ function createNavigationOperations(http) {
|
|
|
1537
1533
|
const result = await http.get("/pull/navigation");
|
|
1538
1534
|
return result.menus.map(mapPulledNavigationMenu);
|
|
1539
1535
|
},
|
|
1540
|
-
async get(
|
|
1536
|
+
async get(location$1) {
|
|
1541
1537
|
const result = await http.get("/pull/navigation");
|
|
1542
|
-
const menu = result.menus.find((entry) => entry.
|
|
1538
|
+
const menu = result.menus.find((entry) => entry.location === location$1);
|
|
1543
1539
|
return menu ? mapPulledNavigationMenu(menu) : null;
|
|
1544
1540
|
},
|
|
1545
1541
|
async upsert(input) {
|
|
@@ -1551,9 +1547,6 @@ function createNavigationOperations(http) {
|
|
|
1551
1547
|
}),
|
|
1552
1548
|
effect: result.effect
|
|
1553
1549
|
};
|
|
1554
|
-
},
|
|
1555
|
-
async delete(menuId) {
|
|
1556
|
-
return http.delete(`/navigation/${encodeURIComponent(menuId)}`);
|
|
1557
1550
|
}
|
|
1558
1551
|
};
|
|
1559
1552
|
}
|
package/dist/testing.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "./sdk-event-upsert-
|
|
3
|
-
import "./src-
|
|
4
|
-
import { a as syncLocalMediaForPull, i as syncLocalMediaForPush, t as buildStyleSelectionInitializeCommandFromOptions, x as writeMediaManifest } from "./style-
|
|
5
|
-
import "./sdk-peer-
|
|
2
|
+
import "./sdk-event-upsert-Cp043nSP.mjs";
|
|
3
|
+
import "./src-B8fOSKJ6.mjs";
|
|
4
|
+
import { a as syncLocalMediaForPull, i as syncLocalMediaForPush, t as buildStyleSelectionInitializeCommandFromOptions, x as writeMediaManifest } from "./style-BiosmAJm.mjs";
|
|
5
|
+
import "./sdk-peer-CADuG9SR.mjs";
|
|
6
6
|
|
|
7
7
|
export { buildStyleSelectionInitializeCommandFromOptions, syncLocalMediaForPull, syncLocalMediaForPush, writeMediaManifest };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "riverbankcms",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Riverbank CMS command-line tools for SDK site developers",
|
|
5
5
|
"bin": {
|
|
6
6
|
"riverbankcms": "dist/cli/index.mjs"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"zod": "^4.3.6"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@riverbankcms/sdk": ">=0.
|
|
46
|
+
"@riverbankcms/sdk": ">=0.139.0 <1.0.0"
|
|
47
47
|
},
|
|
48
48
|
"optionalDependencies": {
|
|
49
49
|
"@napi-rs/keyring": "1.3.0"
|