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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import { A as defaultPaletteForSiteStyle, At as typographySchema, B as parsePersistedHeaderLayoutId, D as curatedSiteStyles, E as concretePaletteToTheme, F as findFooterLook, I as guaranteedFallbackFooterLookId, Jn as featuresFromHex, K as findCuratedPalette, L as parsePersistedFooterLookId, M as headerLayoutChoicesForSiteStyle, N as headerStyleChoicesForLayout, O as defaultButtonStyleSelectionForSiteStyle, R as getHeaderLayout, S as eventBookingOfferIntentSchema, V as parsePersistedHeaderStyleId, Xn as oklchToHexGamut, at as createDefaultButtonStyleSelection, c as stableStringify, in as asAppearancePresetId, it as buttonStyleSelectionSchema, j as getCuratedSiteStyle, k as defaultHeaderSelectionForSiteStyle, kt as themeSchema, n as sdkEventOccurrenceInputSchema, on as asSiteStyleId, or as paletteSchema, ot as isButtonStyleId, qn as contrastRatio, rt as findButtonStyleRecipe, z as getHeaderStyle } from "./sdk-event-upsert-CvFCbzNc.mjs";
3
- import { $ as fromArray, At as unsafeAsStorageBucketName, Ct as unsafeAsPositiveSeconds, Dt as unsafeAsSiteId, Et as unsafeAsSiteFontId, Ft as ok, Mt as unsafeAsUploadSessionId, Nt as unsafeAsUserId, Ot as unsafeAsSiteScopedStoragePath, Pt as err, St as unsafeAsPositiveByteCount, Tt as unsafeAsSafeDownloadFilename, V as parseUtcIsoDateTimeString, _ as parseManagementKey, _t as unsafeAsEventSeriesId, a as parseVerticalPresetId, b as parseFooterCompositionV1, bt as unsafeAsOccurrenceId, c as EVENT_PRESET_VALUES, dt as unsafeAsBookingSessionId, et as mapNonEmptyArray, ft as unsafeAsDeclaredMimeType, g as exposeSecret, gt as unsafeAsEventOfferingId, h as createSecret, ht as unsafeAsEntitlementId, i as parseVerticalId, jt as unsafeAsStoragePath, mt as unsafeAsDetectedMimeType, n as canonicalizeConfiguredBookingVerticalConfig, nt as assertNever, o as resolveSiteVerticalBookingConfig, st as parseSiteId, ut as unsafeAsBookingRequirementId, vt as unsafeAsFileChecksumSha256, wt as unsafeAsProductId, xt as unsafeAsOriginalFilename, yt as unsafeAsMediaAssetId } from "./src-X9oZOIoK.mjs";
4
- import { t as CliSdkPeerError } from "./sdk-peer-CyQ2so48.mjs";
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
- identifier: z.string().nullable(),
590
- name: z.string(),
591
- isPrimary: z.boolean(),
592
- isFooter: z.boolean(),
593
- footerRole: z.enum(["main", "legal-policy"]).nullable(),
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
- identifier: menu.identifier,
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(name) {
1536
+ async get(location$1) {
1541
1537
  const result = await http.get("/pull/navigation");
1542
- const menu = result.menus.find((entry) => entry.name === name);
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-CvFCbzNc.mjs";
3
- import "./src-X9oZOIoK.mjs";
4
- import { a as syncLocalMediaForPull, i as syncLocalMediaForPush, t as buildStyleSelectionInitializeCommandFromOptions, x as writeMediaManifest } from "./style-aixm8BXi.mjs";
5
- import "./sdk-peer-CyQ2so48.mjs";
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.6.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.130.0 <1.0.0"
46
+ "@riverbankcms/sdk": ">=0.139.0 <1.0.0"
47
47
  },
48
48
  "optionalDependencies": {
49
49
  "@napi-rs/keyring": "1.3.0"
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env node
2
- import "./sdk-peer-CyQ2so48.mjs";
3
- import { t as loadConfigFile } from "./load-config-DbMjs6df.mjs";
4
-
5
- export { loadConfigFile };