@riverbankcms/sdk 0.128.0 → 0.129.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/README.md +52 -256
- package/dist/{PreviewEditorSidebar-Dbvb7GIr.mjs → PreviewEditorSidebar-DceRseRV.mjs} +3 -3
- package/dist/{PreviewEditorUI-e9O9l20X.mjs → PreviewEditorUI-BNunq3kk.mjs} +2 -2
- package/dist/{SdkPreviewModeRuntime-BZHt6e9w.mjs → SdkPreviewModeRuntime-Bt87-62u.mjs} +495 -292
- package/dist/{SiteChromeCustomizeContext-CvuGbHJX.mjs → SiteChromeCustomizeContext-BLl-OlL4.mjs} +600 -533
- package/dist/_dts/ai/src/contracts/commandExposure.d.ts +1 -1
- package/dist/_dts/ai/src/contracts/proposals.d.ts +4897 -4897
- package/dist/_dts/api/src/index.d.ts +2 -1
- package/dist/_dts/api/src/sdk-event-management.d.ts +53 -0
- package/dist/_dts/api/src/sdk-event-schedule.d.ts +3 -6
- package/dist/_dts/api/src/sdkContracts.d.ts +37 -50
- package/dist/_dts/api/src/sdkThemeWire.d.ts +2595 -0
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +13 -29
- package/dist/_dts/blocks/src/PageRenderer.d.ts +20 -10
- package/dist/_dts/blocks/src/index.d.ts +2 -1
- package/dist/_dts/blocks/src/pageRendererBoundaries.d.ts +30 -0
- package/dist/_dts/blocks/src/pageRenderingMode.d.ts +37 -0
- package/dist/_dts/blocks/src/server.d.ts +1 -1
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +14 -0
- package/dist/_dts/media-core/src/index.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/blocks/pageDesignRuntimePreview.d.ts +2 -0
- package/dist/_dts/preview-next/src/client/index.d.ts +47 -47
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +18 -6
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +30 -21
- package/dist/_dts/preview-next/src/client/preview/PreviewThemedSiteDocument.d.ts +18 -5
- package/dist/_dts/preview-next/src/client/preview/themeRuntime.d.ts +9 -0
- package/dist/_dts/preview-next/src/client/sdk/SdkPreviewMode.d.ts +21 -6
- package/dist/_dts/preview-next/src/client/sdk-runtime.d.ts +8 -8
- package/dist/_dts/sdk/src/config/types.d.ts +4 -4
- package/dist/_dts/sdk/src/next/catch-all.d.ts +6 -0
- package/dist/_dts/sdk/src/next/index.d.ts +2 -1
- package/dist/_dts/sdk/src/next/renderSdkContent.d.ts +33 -0
- package/dist/_dts/sdk/src/next/types.d.ts +23 -9
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +4 -6
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +3 -3
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +25 -3
- package/dist/_dts/sdk/src/rendering/components/Block.shared.d.ts +13 -2
- package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +31 -18
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +20 -9
- package/dist/_dts/sdk/src/rendering/index.d.ts +4 -2
- package/dist/_dts/sdk/src/rendering/renderingMode.d.ts +23 -0
- package/dist/_dts/sdk/src/rendering/server.d.ts +5 -3
- package/dist/_dts/sdk/src/rendering/themeRuntime.d.ts +6 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/palette/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/site-styles/headerLayoutStyleCatalog.d.ts +254 -0
- package/dist/_dts/theme-core/src/site-styles/headerLegacyLooks.d.ts +372 -0
- package/dist/_dts/theme-core/src/site-styles/headerLookBranding.d.ts +106 -0
- package/dist/_dts/theme-core/src/site-styles/headerLookSelection.d.ts +2 -0
- package/dist/_dts/theme-core/src/site-styles/headerLookTypes.d.ts +212 -0
- package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +7 -841
- package/dist/_dts/theme-core/src/site-styles/headerStyleCompiler.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/headerStyleCompilerPrimitives.d.ts +23 -0
- package/dist/client/client.mjs +911 -762
- package/dist/client/hooks.mjs +59 -36
- package/dist/client/rendering/client.mjs +593 -547
- package/dist/client/rendering.mjs +994 -783
- package/dist/preview-next/before-render.mjs +10 -3
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/{sdk-runtime-Cn_QSCOg.mjs → sdk-runtime-C20CVWbb.mjs} +1 -1
- package/dist/{separator-CEoGABRc.mjs → separator-BE3NCquy.mjs} +1 -1
- package/dist/server/components.mjs +549 -399
- package/dist/server/config-validation.mjs +59 -36
- package/dist/server/config.mjs +59 -36
- package/dist/server/data.mjs +59 -36
- package/dist/server/index.mjs +1 -1
- package/dist/server/manifest.mjs +4966 -0
- package/dist/server/next.mjs +700 -537
- package/dist/server/page-converter.mjs +40 -36
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +571 -404
- package/dist/server/rendering.mjs +571 -404
- package/dist/server/routing.mjs +472 -402
- package/dist/server/server.mjs +60 -37
- package/dist/server/theme-bridge.mjs +70 -66
- package/package.json +9 -12
- package/dist/_dts/api/src/event-presentation.d.ts +0 -14
- package/dist/_dts/blocks/src/definitions.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/canonical-entry-policy.d.ts +0 -53
- package/dist/_dts/sdk/src/cli/commands/audit.d.ts +0 -101
- package/dist/_dts/sdk/src/cli/commands/block.d.ts +0 -24
- package/dist/_dts/sdk/src/cli/commands/compare.d.ts +0 -62
- package/dist/_dts/sdk/src/cli/commands/content-type.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/commands/content.d.ts +0 -56
- package/dist/_dts/sdk/src/cli/commands/delete.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/commands/deploy.d.ts +0 -43
- package/dist/_dts/sdk/src/cli/commands/drafts.d.ts +0 -18
- package/dist/_dts/sdk/src/cli/commands/entry.d.ts +0 -55
- package/dist/_dts/sdk/src/cli/commands/env.d.ts +0 -31
- package/dist/_dts/sdk/src/cli/commands/event.d.ts +0 -23
- package/dist/_dts/sdk/src/cli/commands/eventOccurrenceSchedule.d.ts +0 -12
- package/dist/_dts/sdk/src/cli/commands/identifiers.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/commands/init-docs.d.ts +0 -13
- package/dist/_dts/sdk/src/cli/commands/manifest.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/commands/media-validation.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/commands/migrate.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/commands/navigation.d.ts +0 -12
- package/dist/_dts/sdk/src/cli/commands/page.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/commands/publish-all.d.ts +0 -50
- package/dist/_dts/sdk/src/cli/commands/pull-dated-offering-scope.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/commands/pull-dry-run.d.ts +0 -70
- package/dist/_dts/sdk/src/cli/commands/pull-scope-diff.d.ts +0 -8
- package/dist/_dts/sdk/src/cli/commands/pull.d.ts +0 -43
- package/dist/_dts/sdk/src/cli/commands/push/consts.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/commands/push/execute/diff.d.ts +0 -19
- package/dist/_dts/sdk/src/cli/commands/push/execute/footer.d.ts +0 -42
- package/dist/_dts/sdk/src/cli/commands/push/execute/localMediaReporting.d.ts +0 -23
- package/dist/_dts/sdk/src/cli/commands/push/execute/media.d.ts +0 -22
- package/dist/_dts/sdk/src/cli/commands/push/execute/metadata.d.ts +0 -1
- package/dist/_dts/sdk/src/cli/commands/push/execute/reporting.d.ts +0 -7
- package/dist/_dts/sdk/src/cli/commands/push/execute/theme.d.ts +0 -63
- package/dist/_dts/sdk/src/cli/commands/push/filter.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/commands/push/metadata.d.ts +0 -29
- package/dist/_dts/sdk/src/cli/commands/push/normalizeLocalContent.d.ts +0 -2
- package/dist/_dts/sdk/src/cli/commands/push/options.d.ts +0 -32
- package/dist/_dts/sdk/src/cli/commands/push/publishGuidance.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/commands/push/pushAllExtras.d.ts +0 -25
- package/dist/_dts/sdk/src/cli/commands/push/scopes/commandBackedDatedOfferingScope.d.ts +0 -83
- package/dist/_dts/sdk/src/cli/commands/push/scopes/eventCategories.d.ts +0 -4
- package/dist/_dts/sdk/src/cli/commands/push/scopes/events.d.ts +0 -4
- package/dist/_dts/sdk/src/cli/commands/push/scopes/mediaPrep.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/commands/push/scopes/pushScopeGeneric.d.ts +0 -6
- package/dist/_dts/sdk/src/cli/commands/push/scopes/types.d.ts +0 -87
- package/dist/_dts/sdk/src/cli/commands/push/scopes/venues.d.ts +0 -4
- package/dist/_dts/sdk/src/cli/commands/push/stale-resolution.d.ts +0 -48
- package/dist/_dts/sdk/src/cli/commands/push/stale.d.ts +0 -17
- package/dist/_dts/sdk/src/cli/commands/push/verification.d.ts +0 -56
- package/dist/_dts/sdk/src/cli/commands/push/workflowPlan.d.ts +0 -34
- package/dist/_dts/sdk/src/cli/commands/push-execute.d.ts +0 -54
- package/dist/_dts/sdk/src/cli/commands/push.d.ts +0 -40
- package/dist/_dts/sdk/src/cli/commands/setup.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/commands/style.d.ts +0 -60
- package/dist/_dts/sdk/src/cli/commands/verify.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/commands/webhooks.d.ts +0 -44
- package/dist/_dts/sdk/src/cli/config-loader.d.ts +0 -47
- package/dist/_dts/sdk/src/cli/content/collectionWriters.d.ts +0 -23
- package/dist/_dts/sdk/src/cli/content/edit/format.d.ts +0 -2
- package/dist/_dts/sdk/src/cli/content/edit/path.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/content/edit/planner.d.ts +0 -46
- package/dist/_dts/sdk/src/cli/content/entryPaths.d.ts +0 -6
- package/dist/_dts/sdk/src/cli/content/footerFile.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/content/fs-utils.d.ts +0 -39
- package/dist/_dts/sdk/src/cli/content/legacyEventScheduleShapeError.d.ts +0 -5
- package/dist/_dts/sdk/src/cli/content/localEventSchedule.d.ts +0 -17
- package/dist/_dts/sdk/src/cli/content/media-manifest.d.ts +0 -13
- package/dist/_dts/sdk/src/cli/content/metadataAfterPush.d.ts +0 -25
- package/dist/_dts/sdk/src/cli/content/metadataStore.d.ts +0 -29
- package/dist/_dts/sdk/src/cli/content/reader.d.ts +0 -488
- package/dist/_dts/sdk/src/cli/content/writer.d.ts +0 -142
- package/dist/_dts/sdk/src/cli/env-scope.d.ts +0 -2
- package/dist/_dts/sdk/src/cli/env.d.ts +0 -71
- package/dist/_dts/sdk/src/cli/errors.d.ts +0 -62
- package/dist/_dts/sdk/src/cli/helpers/ai-runtime.d.ts +0 -2
- package/dist/_dts/sdk/src/cli/helpers.d.ts +0 -399
- package/dist/_dts/sdk/src/cli/index.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/init-docs/constants.d.ts +0 -16
- package/dist/_dts/sdk/src/cli/init-docs/index.d.ts +0 -12
- package/dist/_dts/sdk/src/cli/init-docs/templates.d.ts +0 -18
- package/dist/_dts/sdk/src/cli/init-docs/zod-to-markdown.d.ts +0 -28
- package/dist/_dts/sdk/src/cli/load-config.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/media/identifiers.d.ts +0 -18
- package/dist/_dts/sdk/src/cli/media/local-media.d.ts +0 -14
- package/dist/_dts/sdk/src/cli/media/local-sync.d.ts +0 -91
- package/dist/_dts/sdk/src/cli/media/portable.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/media/rich-text.d.ts +0 -12
- package/dist/_dts/sdk/src/cli/media/value-utils.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/media/write-guard.d.ts +0 -52
- package/dist/_dts/sdk/src/cli/merge-remote/entryLocal.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/merge-remote/entryMerge.d.ts +0 -78
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergePlan.d.ts +0 -45
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergePush.d.ts +0 -24
- package/dist/_dts/sdk/src/cli/merge-remote/entryMergeReport.d.ts +0 -18
- package/dist/_dts/sdk/src/cli/merge-remote/entryRemote.d.ts +0 -9
- package/dist/_dts/sdk/src/cli/merge-remote/entrySnapshots.d.ts +0 -48
- package/dist/_dts/sdk/src/cli/merge-remote/mergeFieldChanges.d.ts +0 -22
- package/dist/_dts/sdk/src/cli/merge-remote/pageLocal.d.ts +0 -3
- package/dist/_dts/sdk/src/cli/merge-remote/pageMerge.d.ts +0 -78
- package/dist/_dts/sdk/src/cli/merge-remote/pageMergePlan.d.ts +0 -36
- package/dist/_dts/sdk/src/cli/merge-remote/pageMergePush.d.ts +0 -23
- package/dist/_dts/sdk/src/cli/merge-remote/pageMergeReport.d.ts +0 -17
- package/dist/_dts/sdk/src/cli/merge-remote/pageSnapshots.d.ts +0 -46
- package/dist/_dts/sdk/src/cli/merge-remote/sharedBaseSnapshots.d.ts +0 -32
- package/dist/_dts/sdk/src/cli/merge-remote/sharedMergePlan.d.ts +0 -27
- package/dist/_dts/sdk/src/cli/merge-remote/sharedMergeReport.d.ts +0 -63
- package/dist/_dts/sdk/src/cli/migrations/entries.d.ts +0 -28
- package/dist/_dts/sdk/src/cli/migrations/events.d.ts +0 -73
- package/dist/_dts/sdk/src/cli/navigationIdentity.d.ts +0 -11
- package/dist/_dts/sdk/src/cli/output.d.ts +0 -133
- package/dist/_dts/sdk/src/cli/program.d.ts +0 -29
- package/dist/_dts/sdk/src/cli/push-config.d.ts +0 -49
- package/dist/_dts/sdk/src/cli/setup/setupPlan.d.ts +0 -51
- package/dist/_dts/sdk/src/cli/site-commands/commandKeys.d.ts +0 -13
- package/dist/_dts/sdk/src/cli/site-commands/commandRuntime.d.ts +0 -170
- package/dist/_dts/sdk/src/cli/site-commands/commandRuntimeCompat.d.ts +0 -21
- package/dist/_dts/sdk/src/cli/site-commands/commandSurfaceDispatch.d.ts +0 -32
- package/dist/_dts/sdk/src/cli/site-commands/datedOfferingCommands.d.ts +0 -53
- package/dist/_dts/sdk/src/cli/site-commands/entryCommands.d.ts +0 -65
- package/dist/_dts/sdk/src/cli/site-commands/eventScheduleCompiler.d.ts +0 -24
- package/dist/_dts/sdk/src/cli/site-commands/footerCommands.d.ts +0 -68
- package/dist/_dts/sdk/src/cli/site-commands/formCommands.d.ts +0 -53
- package/dist/_dts/sdk/src/cli/site-commands/index.d.ts +0 -8
- package/dist/_dts/sdk/src/cli/site-commands/localBlockManifestResolver.d.ts +0 -31
- package/dist/_dts/sdk/src/cli/site-commands/navigationCommands.d.ts +0 -57
- package/dist/_dts/sdk/src/cli/site-commands/oneOffCommands.d.ts +0 -82
- package/dist/_dts/sdk/src/cli/site-commands/pageCommands.d.ts +0 -84
- package/dist/_dts/sdk/src/cli/site-commands/pushExecution.d.ts +0 -39
- package/dist/_dts/sdk/src/cli/site-commands/pushExecutionPlan.d.ts +0 -8
- package/dist/_dts/sdk/src/cli/site-commands/pushExecutionTypes.d.ts +0 -97
- package/dist/_dts/sdk/src/cli/site-commands/residualSettingsTrimming.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/sync/diff.d.ts +0 -222
- package/dist/_dts/sdk/src/cli/sync/executor.d.ts +0 -84
- package/dist/_dts/sdk/src/cli/sync/field-diff.d.ts +0 -39
- package/dist/_dts/sdk/src/cli/sync/index.d.ts +0 -10
- package/dist/_dts/sdk/src/cli/sync/mapper.d.ts +0 -41
- package/dist/_dts/sdk/src/cli/sync/media-sync.d.ts +0 -15
- package/dist/_dts/sdk/src/cli/sync/media.d.ts +0 -158
- package/dist/_dts/sdk/src/cli/sync/syncResultAggregation.d.ts +0 -4
- package/dist/_dts/sdk/src/cli/sync/validation.d.ts +0 -68
- package/dist/_dts/sdk/src/cli/utils/checksum.d.ts +0 -1
- package/dist/_dts/sdk/src/client/management/blocks.d.ts +0 -19
- package/dist/_dts/sdk/src/client/management/catalog.d.ts +0 -10
- package/dist/_dts/sdk/src/client/management/entries.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/eventCategories.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/events.d.ts +0 -7
- package/dist/_dts/sdk/src/client/management/footer.d.ts +0 -9
- package/dist/_dts/sdk/src/client/management/forms.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/http.d.ts +0 -79
- package/dist/_dts/sdk/src/client/management/identifiers.d.ts +0 -11
- package/dist/_dts/sdk/src/client/management/index.d.ts +0 -41
- package/dist/_dts/sdk/src/client/management/media.d.ts +0 -72
- package/dist/_dts/sdk/src/client/management/navigation.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/pages.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/pull.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/settings-branding.d.ts +0 -32
- package/dist/_dts/sdk/src/client/management/settings.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/theme.d.ts +0 -8
- package/dist/_dts/sdk/src/client/management/types.d.ts +0 -1069
- package/dist/_dts/sdk/src/client/management/venues.d.ts +0 -6
- package/dist/_dts/sdk/src/client/management/webhooks.d.ts +0 -3
- package/dist/_dts/sdk/src/test/env.d.ts +0 -4
- package/dist/_dts/site-commands/src/adapter.d.ts +0 -23
- package/dist/_dts/site-commands/src/appointmentCommandSchemas.d.ts +0 -100
- package/dist/_dts/site-commands/src/capabilityGaps.d.ts +0 -8
- package/dist/_dts/site-commands/src/commandContract.d.ts +0 -1277
- package/dist/_dts/site-commands/src/commandDomain.d.ts +0 -20
- package/dist/_dts/site-commands/src/commandIdentifiers.d.ts +0 -7
- package/dist/_dts/site-commands/src/commandValidation.d.ts +0 -10
- package/dist/_dts/site-commands/src/commands.d.ts +0 -1983
- package/dist/_dts/site-commands/src/domain.d.ts +0 -104
- package/dist/_dts/site-commands/src/eventCommandContent.d.ts +0 -11
- package/dist/_dts/site-commands/src/exposure.d.ts +0 -41
- package/dist/_dts/site-commands/src/guards.d.ts +0 -1
- package/dist/_dts/site-commands/src/index.d.ts +0 -18
- package/dist/_dts/site-commands/src/metadata.d.ts +0 -555
- package/dist/_dts/site-commands/src/pagePaths.d.ts +0 -6
- package/dist/_dts/site-commands/src/planner.d.ts +0 -58
- package/dist/_dts/site-commands/src/refContributions.d.ts +0 -11
- package/dist/_dts/site-commands/src/refs.d.ts +0 -90
- package/dist/_dts/site-commands/src/siteStyleCommandSchema.d.ts +0 -405
- package/dist/_dts/site-commands/src/siteStyleSelectionSchemaBuilder.d.ts +0 -46
- package/dist/_dts/site-commands/src/stableJson.d.ts +0 -5
- package/dist/_dts/site-commands/src/staticExecutionGaps.d.ts +0 -10
- package/dist/_dts/site-commands/src/venueCommandMapping.d.ts +0 -21
- package/dist/_dts/theme-core/src/data.d.ts +0 -12
- package/dist/_dts/theme-core/src/site-styles/headerStyleParts.d.ts +0 -4
- package/dist/cli/index.mjs +0 -162962
- package/dist/cli/init-docs/content/agents-section.md +0 -67
- package/dist/cli/init-docs/content/cli-reference.md +0 -1238
- package/dist/cli/init-docs/content/content-management.md +0 -792
- package/dist/cli/init-docs/content/context-brand.md +0 -125
- package/dist/cli/init-docs/content/context-brief.md +0 -77
- package/dist/cli/init-docs/content/context-knowledge.md +0 -111
- package/dist/cli/init-docs/content/getting-started.md +0 -171
- package/dist/cli/init-docs/content/site-workflows-readme.md +0 -96
- package/dist/cli/init-docs/content/workflow-add-block.md +0 -299
- package/dist/cli/init-docs/content/workflow-agent-safe-sync.md +0 -83
- package/dist/cli/init-docs/content/workflow-block-extensions.md +0 -370
- package/dist/cli/init-docs/content/workflow-cmsify-page.md +0 -357
- package/dist/cli/init-docs/content/workflow-content-types.md +0 -330
- package/dist/cli/init-docs/content/workflow-create-page.md +0 -212
- package/dist/cli/init-docs/content/workflow-custom-block.md +0 -470
- package/dist/cli/init-docs/content/workflow-editor-workflows.md +0 -130
- package/dist/cli/init-docs/content/workflow-isr-revalidation.md +0 -158
- package/dist/cli/init-docs/content/workflow-preview-mode.md +0 -239
- package/dist/cli/init-docs/content/workflow-publish.md +0 -285
- package/dist/cli/init-docs/content/workflow-remote-setup.md +0 -51
- package/dist/cli/init-docs/content/workflow-templates.md +0 -381
- /package/dist/_dts/{sdk/src/cli/utils/mime.d.ts → media-core/src/mimeType.d.ts} +0 -0
|
@@ -1,299 +0,0 @@
|
|
|
1
|
-
# Workflow: Add a Block
|
|
2
|
-
|
|
3
|
-
This workflow guides you through adding a block to an existing page.
|
|
4
|
-
|
|
5
|
-
## Prerequisites
|
|
6
|
-
|
|
7
|
-
- Page already exists in the CMS
|
|
8
|
-
- Latest content pulled: `riverbankcms pull`
|
|
9
|
-
|
|
10
|
-
## Steps
|
|
11
|
-
|
|
12
|
-
### 1. Check Available Block Types
|
|
13
|
-
|
|
14
|
-
View built-in blocks in `block-types.md`. Common block kinds:
|
|
15
|
-
|
|
16
|
-
| Kind | Description |
|
|
17
|
-
|------|-------------|
|
|
18
|
-
| `block.hero` | Hero sections with heading, subheading, image, CTA |
|
|
19
|
-
| `block.body-text` | Rich text content |
|
|
20
|
-
| `block.image` | Image with caption |
|
|
21
|
-
| `block.cta` | Call-to-action buttons |
|
|
22
|
-
| `block.embed` | Embedded content (videos, iframes) |
|
|
23
|
-
| `block.image-gallery` | Image gallery (grid/carousel/masonry/marquee variants) |
|
|
24
|
-
| `block.quote` | Blockquote with attribution |
|
|
25
|
-
|
|
26
|
-
Check `schema.md` for custom blocks specific to this site.
|
|
27
|
-
|
|
28
|
-
Prefer built-in blocks before creating a custom block. For a simple policy/terms/about page, use `block.body-text` and put the page title, intro, and section headings in the rich text body. Only create a custom block when the needed structure or behavior cannot be represented by built-in blocks plus styling.
|
|
29
|
-
|
|
30
|
-
### 2. List Existing Blocks
|
|
31
|
-
|
|
32
|
-
See what blocks are already on the page:
|
|
33
|
-
|
|
34
|
-
```bash
|
|
35
|
-
riverbankcms block list <page-identifier>
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
**Example:**
|
|
39
|
-
|
|
40
|
-
```bash
|
|
41
|
-
riverbankcms block list home
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
### 3. Add the Block
|
|
45
|
-
|
|
46
|
-
**Basic usage:**
|
|
47
|
-
|
|
48
|
-
```bash
|
|
49
|
-
riverbankcms block upsert <page-id> <block-id> --kind <block-kind> --data '<json>'
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
### Authoring Block JSON
|
|
53
|
-
|
|
54
|
-
Use `block-types.md` and `block-types-site.md` as the source of truth for fields.
|
|
55
|
-
|
|
56
|
-
- Fields marked `required` must be present with a valid value.
|
|
57
|
-
- Fields not marked `required` may be omitted. You do not need to include every optional key or set unused optional values to `null`.
|
|
58
|
-
- Defaults shown in the block reference are applied by the editor/rendering contract. Include an optional field only when you want to override that default.
|
|
59
|
-
- For nested objects and repeaters, required child fields apply once you include the parent value. For example, an omitted `images` repeater is valid, but `images: [{}]` is not because the item is present and its required `image` field is missing.
|
|
60
|
-
- `null` is only valid for field types that explicitly accept clearing to no value. When in doubt, omit optional fields instead of sending `null`.
|
|
61
|
-
|
|
62
|
-
**Examples:**
|
|
63
|
-
|
|
64
|
-
Add a hero block:
|
|
65
|
-
|
|
66
|
-
```bash
|
|
67
|
-
riverbankcms block upsert home main-hero \
|
|
68
|
-
--kind block.hero \
|
|
69
|
-
--data '{"heading": "Welcome", "subheading": "to our website"}'
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
Add a minimal media and text block:
|
|
73
|
-
|
|
74
|
-
`block.media-text` has many display and carousel fields, but most are optional controls with defaults. A minimal content-only block only needs rich text:
|
|
75
|
-
|
|
76
|
-
```json
|
|
77
|
-
{
|
|
78
|
-
"text": {
|
|
79
|
-
"type": "doc",
|
|
80
|
-
"content": [
|
|
81
|
-
{
|
|
82
|
-
"type": "paragraph",
|
|
83
|
-
"content": [{ "type": "text", "text": "Welcome to our space." }]
|
|
84
|
-
}
|
|
85
|
-
]
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
Add media only when you have a complete media item:
|
|
91
|
-
|
|
92
|
-
```json
|
|
93
|
-
{
|
|
94
|
-
"text": {
|
|
95
|
-
"type": "doc",
|
|
96
|
-
"content": [{ "type": "paragraph", "content": [] }]
|
|
97
|
-
},
|
|
98
|
-
"images": [
|
|
99
|
-
{
|
|
100
|
-
"image": {
|
|
101
|
-
"type": "image",
|
|
102
|
-
"src": "/images/studio.jpg",
|
|
103
|
-
"alt": "A bright studio room"
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
]
|
|
107
|
-
}
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
Add a body text block:
|
|
111
|
-
|
|
112
|
-
```bash
|
|
113
|
-
riverbankcms block upsert home intro-content \
|
|
114
|
-
--kind block.body-text \
|
|
115
|
-
--data '{"body": {"type": "doc", "content": [{"type": "paragraph", "content": [{"type": "text", "text": "Welcome to our site. We offer..."}]}]}}'
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
Add an image block:
|
|
119
|
-
|
|
120
|
-
```bash
|
|
121
|
-
riverbankcms block upsert home feature-image \
|
|
122
|
-
--kind block.image \
|
|
123
|
-
--data '{"src": "/images/feature.jpg", "alt": "Feature image", "caption": "Our latest product"}'
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
Add a CTA block:
|
|
127
|
-
|
|
128
|
-
```bash
|
|
129
|
-
riverbankcms block upsert home main-cta \
|
|
130
|
-
--kind block.cta \
|
|
131
|
-
--data '{"text": "Get Started", "url": "/signup", "style": "primary"}'
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
### 4. Specify Position (Optional)
|
|
135
|
-
|
|
136
|
-
Add the block at a specific position (0-indexed):
|
|
137
|
-
|
|
138
|
-
```bash
|
|
139
|
-
riverbankcms block upsert home new-section \
|
|
140
|
-
--kind block.body-text \
|
|
141
|
-
--data '{"content": "<p>...</p>"}' \
|
|
142
|
-
--position 0
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
- `--position 0` places it first
|
|
146
|
-
- `--position 1` places it second
|
|
147
|
-
- Omitting position adds it at the end
|
|
148
|
-
|
|
149
|
-
### 5. Preview the Block
|
|
150
|
-
|
|
151
|
-
Preview how the block will render:
|
|
152
|
-
|
|
153
|
-
```bash
|
|
154
|
-
riverbankcms preview block.hero \
|
|
155
|
-
--data '{"heading": "Welcome", "subheading": "to our website"}' \
|
|
156
|
-
--open
|
|
157
|
-
```
|
|
158
|
-
|
|
159
|
-
### 6. Verify the Block
|
|
160
|
-
|
|
161
|
-
Confirm the block was added:
|
|
162
|
-
|
|
163
|
-
```bash
|
|
164
|
-
riverbankcms block get home main-hero
|
|
165
|
-
```
|
|
166
|
-
|
|
167
|
-
List all blocks to see the order:
|
|
168
|
-
|
|
169
|
-
```bash
|
|
170
|
-
riverbankcms block list home
|
|
171
|
-
```
|
|
172
|
-
|
|
173
|
-
## Complex Block Content
|
|
174
|
-
|
|
175
|
-
For blocks with nested or complex content, use a JSON file.
|
|
176
|
-
|
|
177
|
-
### Example: Hero with Background and CTA
|
|
178
|
-
|
|
179
|
-
**hero-content.json:**
|
|
180
|
-
|
|
181
|
-
```json
|
|
182
|
-
{
|
|
183
|
-
"heading": "Welcome to Our Platform",
|
|
184
|
-
"subheading": "Build amazing things with us",
|
|
185
|
-
"backgroundImage": {
|
|
186
|
-
"src": "/images/hero-bg.jpg",
|
|
187
|
-
"alt": "Abstract background"
|
|
188
|
-
},
|
|
189
|
-
"cta": {
|
|
190
|
-
"text": "Get Started",
|
|
191
|
-
"url": "/signup"
|
|
192
|
-
},
|
|
193
|
-
"alignment": "center"
|
|
194
|
-
}
|
|
195
|
-
```
|
|
196
|
-
|
|
197
|
-
```bash
|
|
198
|
-
riverbankcms block upsert home main-hero \
|
|
199
|
-
--kind block.hero \
|
|
200
|
-
--file ./hero-content.json
|
|
201
|
-
```
|
|
202
|
-
|
|
203
|
-
### Example: Gallery Block
|
|
204
|
-
|
|
205
|
-
**gallery-content.json:**
|
|
206
|
-
|
|
207
|
-
```json
|
|
208
|
-
{
|
|
209
|
-
"images": [
|
|
210
|
-
{ "image": { "type": "image", "src": "/images/project-1.jpg", "alt": "Project 1" }, "caption": "E-commerce redesign" },
|
|
211
|
-
{ "image": { "type": "image", "src": "/images/project-2.jpg", "alt": "Project 2" }, "caption": "Mobile app" },
|
|
212
|
-
{ "image": { "type": "image", "src": "/images/project-3.jpg", "alt": "Project 3" }, "caption": "Brand identity" }
|
|
213
|
-
],
|
|
214
|
-
"variant": "grid"
|
|
215
|
-
}
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
```bash
|
|
219
|
-
riverbankcms block upsert home portfolio-gallery \
|
|
220
|
-
--kind block.image-gallery \
|
|
221
|
-
--file ./gallery-content.json
|
|
222
|
-
```
|
|
223
|
-
|
|
224
|
-
### Example: Marquee Gallery (infinite scroll)
|
|
225
|
-
|
|
226
|
-
```json
|
|
227
|
-
{
|
|
228
|
-
"variant": "marquee",
|
|
229
|
-
"marqueeDirection": "left",
|
|
230
|
-
"marqueeSpeed": "medium",
|
|
231
|
-
"marqueePauseOnHover": true,
|
|
232
|
-
"marqueeImageSize": "md",
|
|
233
|
-
"images": [
|
|
234
|
-
{ "image": { "type": "image", "src": "/images/project-1.jpg", "alt": "Project 1" }, "caption": "E-commerce redesign" }
|
|
235
|
-
]
|
|
236
|
-
}
|
|
237
|
-
```
|
|
238
|
-
|
|
239
|
-
## Updating Existing Blocks
|
|
240
|
-
|
|
241
|
-
To update a block, use the same `upsert` command with the same block ID:
|
|
242
|
-
|
|
243
|
-
```bash
|
|
244
|
-
riverbankcms block upsert home main-hero \
|
|
245
|
-
--kind block.hero \
|
|
246
|
-
--data '{"heading": "New Heading", "subheading": "Updated content"}'
|
|
247
|
-
```
|
|
248
|
-
|
|
249
|
-
The block is replaced with the new content.
|
|
250
|
-
|
|
251
|
-
## Reordering Blocks
|
|
252
|
-
|
|
253
|
-
Change the order of blocks on the page:
|
|
254
|
-
|
|
255
|
-
```bash
|
|
256
|
-
riverbankcms block reorder home main-hero intro-content feature-image main-cta
|
|
257
|
-
```
|
|
258
|
-
|
|
259
|
-
Blocks appear in the order listed.
|
|
260
|
-
|
|
261
|
-
## Deleting Blocks
|
|
262
|
-
|
|
263
|
-
Remove a block:
|
|
264
|
-
|
|
265
|
-
```bash
|
|
266
|
-
riverbankcms delete block home old-section --yes
|
|
267
|
-
```
|
|
268
|
-
|
|
269
|
-
## Troubleshooting
|
|
270
|
-
|
|
271
|
-
### "Invalid block kind"
|
|
272
|
-
|
|
273
|
-
- Check the kind matches exactly (e.g., `block.hero` not `hero`)
|
|
274
|
-
- See `block-types.md` for valid system blocks
|
|
275
|
-
- See `schema.md` for custom blocks (e.g., `custom.my-block`)
|
|
276
|
-
|
|
277
|
-
### Block not rendering correctly
|
|
278
|
-
|
|
279
|
-
- Verify the data structure matches what the block expects
|
|
280
|
-
- Preview the block: `riverbankcms preview <kind> --data '...' --open`
|
|
281
|
-
- Check for required fields in `block-types.md`
|
|
282
|
-
|
|
283
|
-
### JSON parsing error
|
|
284
|
-
|
|
285
|
-
- Ensure JSON is properly quoted in the shell
|
|
286
|
-
- Use single quotes around the JSON string
|
|
287
|
-
- For complex content, use `--file` instead of `--data`
|
|
288
|
-
|
|
289
|
-
### Block at wrong position
|
|
290
|
-
|
|
291
|
-
- Use `riverbankcms block reorder` to fix the order
|
|
292
|
-
- Or delete and re-add with `--position`
|
|
293
|
-
|
|
294
|
-
## Related Workflows
|
|
295
|
-
|
|
296
|
-
- **Block Extensions** - Add layout variants to system blocks: see `block-extensions.md`
|
|
297
|
-
- **Custom Blocks** - Create site-specific blocks: see `custom-block.md`
|
|
298
|
-
- **Content Types** - Embed content entries on pages: see `content-types.md`
|
|
299
|
-
- **CMS-ify a Page** - Convert hard-coded pages to CMS-driven: see `cmsify-page.md`
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
# Workflow: Agent-Safe Sync
|
|
2
|
-
|
|
3
|
-
Use this workflow when an agent needs to push a narrow CMS change without overwriting unrelated dashboard edits.
|
|
4
|
-
|
|
5
|
-
## Golden Rules
|
|
6
|
-
|
|
7
|
-
1. Prefer the CLI `--env` flag over shell environment overrides.
|
|
8
|
-
2. Dry-run the exact scope you plan to apply.
|
|
9
|
-
3. Push the narrowest possible content scope.
|
|
10
|
-
4. Treat stale-content warnings as evidence of unrelated remote edits.
|
|
11
|
-
5. Use `push-config` for schema/config only; use `push` for pages, entries, navigation, settings, and other content files.
|
|
12
|
-
|
|
13
|
-
## Environment Targeting
|
|
14
|
-
|
|
15
|
-
Use the CLI environment flag:
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
riverbankcms pull --env=remote
|
|
19
|
-
riverbankcms push pages privacy-policy --env=remote --dry-run
|
|
20
|
-
riverbankcms push-config --env=remote --dry-run
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
Do not rely on `RIVERBANK_ENV=remote riverbankcms ...` for CLI sync commands. Site projects often load `.env.local`, and an existing `RIVERBANK_ENV=local` value can override the shell value in config-loading paths. The CLI `--env` flag is explicit and survives project env defaults.
|
|
24
|
-
|
|
25
|
-
## Narrow Page Push
|
|
26
|
-
|
|
27
|
-
For a single page, push the page identifier rather than all pages:
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
riverbankcms push pages privacy-policy --env=remote --dry-run --force
|
|
31
|
-
riverbankcms push pages privacy-policy --env=remote --yes --force
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
If you need to isolate a local file snapshot from the rest of `content/pages`, use a temporary content directory:
|
|
35
|
-
|
|
36
|
-
```bash
|
|
37
|
-
tmpdir=$(mktemp -d)
|
|
38
|
-
mkdir -p "$tmpdir/pages"
|
|
39
|
-
cp content/pages/privacy-policy.json "$tmpdir/pages/privacy-policy.json"
|
|
40
|
-
|
|
41
|
-
riverbankcms push pages --content-dir "$tmpdir" --env=remote --dry-run --force
|
|
42
|
-
riverbankcms push pages --content-dir "$tmpdir" --env=remote --yes --force
|
|
43
|
-
|
|
44
|
-
rm -rf "$tmpdir"
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
This is useful when local content files include older or unrelated page differences that should not be pushed.
|
|
48
|
-
|
|
49
|
-
## Stale Content
|
|
50
|
-
|
|
51
|
-
If a push aborts because unrelated remote content is newer:
|
|
52
|
-
|
|
53
|
-
- Do not blindly run a broad `push --force`.
|
|
54
|
-
- Prefer pushing the exact changed page, entry, or navigation scope.
|
|
55
|
-
- Use `--force` only after a dry-run confirms the planned changes are limited to the intended objects.
|
|
56
|
-
- If you truly need the latest remote state, run a scoped pull first, for example `riverbankcms pull pages privacy-policy --env=remote`.
|
|
57
|
-
|
|
58
|
-
## Content vs Config
|
|
59
|
-
|
|
60
|
-
Use these commands for different surfaces:
|
|
61
|
-
|
|
62
|
-
```bash
|
|
63
|
-
# Pages, entries, navigation, settings, forms, footer content, themes
|
|
64
|
-
riverbankcms push <scope> ...
|
|
65
|
-
|
|
66
|
-
# Custom blocks, block extensions/options, content type schemas/templates,
|
|
67
|
-
# SDK-managed settings, footer blocks/layout config
|
|
68
|
-
riverbankcms push-config ...
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
`push-config` does not replace `push pages` or `push entries`; it syncs schema/config surfaces. If config validation fails, read the field errors as schema feedback before working around them in the site.
|
|
72
|
-
|
|
73
|
-
Run `riverbankcms push-config --dry-run` before applying schema/config changes to validate the config and preview the config surfaces without mutating the dashboard.
|
|
74
|
-
|
|
75
|
-
## Before Applying
|
|
76
|
-
|
|
77
|
-
Checklist:
|
|
78
|
-
|
|
79
|
-
- [ ] I used `--env=local`, `--env=remote`, or `--env=both` explicitly.
|
|
80
|
-
- [ ] I ran a dry-run for the same scope and target environment.
|
|
81
|
-
- [ ] The dry-run contains only intended creates/updates/deletes.
|
|
82
|
-
- [ ] I understand any stale-content warnings.
|
|
83
|
-
- [ ] For remote writes, I included `--yes` only after reviewing the dry-run.
|