@riverbankcms/sdk 0.5.0 → 0.5.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/cli/index.js +568 -209
- package/dist/cli/index.js.map +1 -1
- package/dist/client/client.d.mts +2 -2
- package/dist/client/client.d.ts +2 -2
- package/dist/client/client.js +23 -1
- package/dist/client/client.js.map +1 -1
- package/dist/client/client.mjs +23 -1
- package/dist/client/client.mjs.map +1 -1
- package/dist/client/hooks.d.mts +2 -2
- package/dist/client/hooks.d.ts +2 -2
- package/dist/client/usePage-BXjk8BhD.d.mts +6704 -0
- package/dist/client/usePage-BiOReg0_.d.ts +6704 -0
- package/dist/server/{Layout-Cc5HUXAH.d.mts → Layout-BClXUTsd.d.mts} +1 -1
- package/dist/server/{Layout-B-q2Py4v.d.ts → Layout-UXGjXv8M.d.ts} +1 -1
- package/dist/server/{chunk-4HIRA33Z.mjs → chunk-CMABGYGI.mjs} +24 -2
- package/dist/server/{chunk-6OSNCH4F.js.map → chunk-CMABGYGI.mjs.map} +1 -1
- package/dist/server/{chunk-6OSNCH4F.js → chunk-KA74YRK6.js} +24 -2
- package/dist/server/chunk-KA74YRK6.js.map +1 -0
- package/dist/server/{components-CU46ZkAv.d.mts → components-BmaJxgCV.d.mts} +3 -3
- package/dist/server/{components-DvozDwRN.d.ts → components-DppHY5oD.d.ts} +3 -3
- package/dist/server/components.d.mts +5 -5
- package/dist/server/components.d.ts +5 -5
- package/dist/server/data.d.mts +2 -2
- package/dist/server/data.d.ts +2 -2
- package/dist/server/{index-Q7RLMAQ6.d.mts → index-Bucs6UqG.d.mts} +1 -1
- package/dist/server/{index-CJfMXZQr.d.ts → index-Cp7tJuRt.d.ts} +1 -1
- package/dist/server/index.d.mts +24 -3
- package/dist/server/index.d.ts +24 -3
- package/dist/server/index.js +2 -2
- package/dist/server/index.mjs +1 -1
- package/dist/server/{loadContent-DgpSKWqY.d.mts → loadContent-BS-3wesN.d.mts} +3 -3
- package/dist/server/{loadContent-GPvUI1bN.d.ts → loadContent-Buvmudee.d.ts} +3 -3
- package/dist/server/{loadPage-DGnIK7s4.d.mts → loadPage-B8mQUUSo.d.mts} +2 -2
- package/dist/server/{loadPage-DW9WB-u9.d.ts → loadPage-DP3nrHBi.d.ts} +2 -2
- package/dist/server/metadata.d.mts +3 -3
- package/dist/server/metadata.d.ts +3 -3
- package/dist/server/navigation.d.mts +2 -2
- package/dist/server/navigation.d.ts +2 -2
- package/dist/server/rendering/server.d.mts +4 -4
- package/dist/server/rendering/server.d.ts +4 -4
- package/dist/server/rendering.d.mts +7 -7
- package/dist/server/rendering.d.ts +7 -7
- package/dist/server/routing.d.mts +3 -3
- package/dist/server/routing.d.ts +3 -3
- package/dist/server/server.d.mts +5 -5
- package/dist/server/server.d.ts +5 -5
- package/dist/server/server.js +2 -2
- package/dist/server/server.mjs +1 -1
- package/dist/server/{types-0f4PIlgx.d.mts → types-1cLz0vnq.d.mts} +1 -1
- package/dist/server/{types-kOQyCFXO.d.ts → types-BvcJU7zk.d.ts} +1 -1
- package/dist/server/{types-C28kMfa1.d.ts → types-CVykEqXN.d.ts} +35 -1
- package/dist/server/{types-DuzJZKJI.d.mts → types-Dsu9wsUh.d.mts} +35 -1
- package/package.json +3 -1
- package/dist/server/chunk-4HIRA33Z.mjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { T as Theme } from './types-
|
|
1
|
+
import { T as Theme } from './types-Dsu9wsUh.mjs';
|
|
2
2
|
import './schema-Z6-afHJG.mjs';
|
|
3
|
-
import { R as RiverbankClient } from './types-
|
|
4
|
-
import { P as PageProps } from './loadPage-
|
|
3
|
+
import { R as RiverbankClient } from './types-1cLz0vnq.mjs';
|
|
4
|
+
import { P as PageProps } from './loadPage-B8mQUUSo.mjs';
|
|
5
5
|
import { R as ResolvedBlockData } from './types-CbagRQ_7.mjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { T as Theme } from './types-
|
|
1
|
+
import { T as Theme } from './types-CVykEqXN.js';
|
|
2
2
|
import './schema-Z6-afHJG.js';
|
|
3
|
-
import { R as RiverbankClient } from './types-
|
|
4
|
-
import { P as PageProps } from './loadPage-
|
|
3
|
+
import { R as RiverbankClient } from './types-BvcJU7zk.js';
|
|
4
|
+
import { P as PageProps } from './loadPage-DP3nrHBi.js';
|
|
5
5
|
import { R as ResolvedBlockData } from './types-DuQCNVV0.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { R as RiverbankClient, S as SiteResponse } from './types-
|
|
1
|
+
import { R as RiverbankClient, S as SiteResponse } from './types-1cLz0vnq.mjs';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import React__default from 'react';
|
|
5
5
|
import { P as PageOutline, S as SdkCustomBlock } from './schema-Z6-afHJG.mjs';
|
|
6
6
|
import { T as TransformRegistry, a as ThemeTokens, R as RouteMap } from './core-DsNWrl3o.mjs';
|
|
7
|
-
import { T as Theme } from './types-
|
|
7
|
+
import { T as Theme } from './types-Dsu9wsUh.mjs';
|
|
8
8
|
import { R as ResolvedBlockData, D as DataLoaderOverrides } from './types-CbagRQ_7.mjs';
|
|
9
9
|
|
|
10
10
|
type ViewModel = Record<string, unknown>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { R as RiverbankClient, S as SiteResponse } from './types-
|
|
1
|
+
import { R as RiverbankClient, S as SiteResponse } from './types-BvcJU7zk.js';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import React__default from 'react';
|
|
5
5
|
import { P as PageOutline, S as SdkCustomBlock } from './schema-Z6-afHJG.js';
|
|
6
6
|
import { T as TransformRegistry, a as ThemeTokens, R as RouteMap } from './core-DsNWrl3o.js';
|
|
7
|
-
import { T as Theme } from './types-
|
|
7
|
+
import { T as Theme } from './types-CVykEqXN.js';
|
|
8
8
|
import { R as ResolvedBlockData, D as DataLoaderOverrides } from './types-DuQCNVV0.js';
|
|
9
9
|
|
|
10
10
|
type ViewModel = Record<string, unknown>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as LoadPageResult } from './loadPage-
|
|
2
|
-
import { S as SiteResponse } from './types-
|
|
1
|
+
import { a as LoadPageResult } from './loadPage-B8mQUUSo.mjs';
|
|
2
|
+
import { S as SiteResponse } from './types-1cLz0vnq.mjs';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
import './schema-Z6-afHJG.mjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import './core-DsNWrl3o.mjs';
|
|
8
|
-
import './types-
|
|
8
|
+
import './types-Dsu9wsUh.mjs';
|
|
9
9
|
import '@riverbankcms/ai';
|
|
10
10
|
import './link-DjxLyC82.mjs';
|
|
11
11
|
import '@riverbankcms/media-storage-supabase';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as LoadPageResult } from './loadPage-
|
|
2
|
-
import { S as SiteResponse } from './types-
|
|
1
|
+
import { a as LoadPageResult } from './loadPage-DP3nrHBi.js';
|
|
2
|
+
import { S as SiteResponse } from './types-BvcJU7zk.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
import './schema-Z6-afHJG.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import './core-DsNWrl3o.js';
|
|
8
|
-
import './types-
|
|
8
|
+
import './types-CVykEqXN.js';
|
|
9
9
|
import '@riverbankcms/ai';
|
|
10
10
|
import './link-DjxLyC82.js';
|
|
11
11
|
import '@riverbankcms/media-storage-supabase';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { N as NavigationMenuWithItems } from './types-
|
|
2
|
-
export { L as LinkPayload, a as NavigationItemRecord } from './types-
|
|
1
|
+
import { N as NavigationMenuWithItems } from './types-Dsu9wsUh.mjs';
|
|
2
|
+
export { L as LinkPayload, a as NavigationItemRecord } from './types-Dsu9wsUh.mjs';
|
|
3
3
|
import { R as RouteMap } from './core-DsNWrl3o.mjs';
|
|
4
4
|
import './schema-Z6-afHJG.mjs';
|
|
5
5
|
import '@riverbankcms/ai';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { N as NavigationMenuWithItems } from './types-
|
|
2
|
-
export { L as LinkPayload, a as NavigationItemRecord } from './types-
|
|
1
|
+
import { N as NavigationMenuWithItems } from './types-CVykEqXN.js';
|
|
2
|
+
export { L as LinkPayload, a as NavigationItemRecord } from './types-CVykEqXN.js';
|
|
3
3
|
import { R as RouteMap } from './core-DsNWrl3o.js';
|
|
4
4
|
import './schema-Z6-afHJG.js';
|
|
5
5
|
import '@riverbankcms/ai';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { b as Page, P as PageProps } from '../loadPage-
|
|
2
|
-
export { H as HeaderData, L as Layout, a as LayoutProps } from '../Layout-
|
|
1
|
+
export { b as Page, P as PageProps } from '../loadPage-B8mQUUSo.mjs';
|
|
2
|
+
export { H as HeaderData, L as Layout, a as LayoutProps } from '../Layout-BClXUTsd.mjs';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import { T as Theme } from '../types-
|
|
5
|
+
import { T as Theme } from '../types-Dsu9wsUh.mjs';
|
|
6
6
|
import '../schema-Z6-afHJG.mjs';
|
|
7
|
-
import { R as RiverbankClient } from '../types-
|
|
7
|
+
import { R as RiverbankClient } from '../types-1cLz0vnq.mjs';
|
|
8
8
|
import { B as BlockKind } from '../blockKinds-B6MWzNWp.mjs';
|
|
9
9
|
import '../core-DsNWrl3o.mjs';
|
|
10
10
|
import 'zod';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { b as Page, P as PageProps } from '../loadPage-
|
|
2
|
-
export { H as HeaderData, L as Layout, a as LayoutProps } from '../Layout-
|
|
1
|
+
export { b as Page, P as PageProps } from '../loadPage-DP3nrHBi.js';
|
|
2
|
+
export { H as HeaderData, L as Layout, a as LayoutProps } from '../Layout-UXGjXv8M.js';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import { T as Theme } from '../types-
|
|
5
|
+
import { T as Theme } from '../types-CVykEqXN.js';
|
|
6
6
|
import '../schema-Z6-afHJG.js';
|
|
7
|
-
import { R as RiverbankClient } from '../types-
|
|
7
|
+
import { R as RiverbankClient } from '../types-BvcJU7zk.js';
|
|
8
8
|
import { B as BlockKind } from '../blockKinds-B6MWzNWp.js';
|
|
9
9
|
import '../core-DsNWrl3o.js';
|
|
10
10
|
import 'zod';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export { d as BlockOverrideComponent, e as BlockOverrideProps, B as BlockOverrides, L as LoadPageParams, a as LoadPageResult, b as Page, P as PageProps, c as PageRenderer, l as loadPage } from './loadPage-
|
|
2
|
-
export { H as HeaderData, L as Layout, a as LayoutProps } from './Layout-
|
|
1
|
+
export { d as BlockOverrideComponent, e as BlockOverrideProps, B as BlockOverrides, L as LoadPageParams, a as LoadPageResult, b as Page, P as PageProps, c as PageRenderer, l as loadPage } from './loadPage-B8mQUUSo.mjs';
|
|
2
|
+
export { H as HeaderData, L as Layout, a as LayoutProps } from './Layout-BClXUTsd.mjs';
|
|
3
3
|
export { Block, BlockProps } from './rendering/server.mjs';
|
|
4
|
-
export { C as ContentEntryData, L as LoadContentParams, b as LoadContentResult, a as isEntryContent, i as isPageContent, l as loadContent } from './loadContent-
|
|
5
|
-
export { c as SiteFooterContent, S as SiteHeaderContent, T as Theme } from './types-
|
|
4
|
+
export { C as ContentEntryData, L as LoadContentParams, b as LoadContentResult, a as isEntryContent, i as isPageContent, l as loadContent } from './loadContent-BS-3wesN.mjs';
|
|
5
|
+
export { c as SiteFooterContent, S as SiteHeaderContent, T as Theme } from './types-Dsu9wsUh.mjs';
|
|
6
6
|
export { P as PageOutline } from './schema-Z6-afHJG.mjs';
|
|
7
|
-
import { G as GradientConfig } from './components-
|
|
8
|
-
export { f as BackgroundInput, B as BodyTextContent, H as HeroContent, a as HeroMedia, g as ResolvedBackground, R as RichText, c as RichTextPrimitiveProps, e as SectionBackground, h as SectionBackgroundProps, S as SystemBlockComponentProps, b as buildThemeRuntime, d as resolveBackground, r as resolveImageUrl } from './components-
|
|
7
|
+
import { G as GradientConfig } from './components-BmaJxgCV.mjs';
|
|
8
|
+
export { f as BackgroundInput, B as BodyTextContent, H as HeroContent, a as HeroMedia, g as ResolvedBackground, R as RichText, c as RichTextPrimitiveProps, e as SectionBackground, h as SectionBackgroundProps, S as SystemBlockComponentProps, b as buildThemeRuntime, d as resolveBackground, r as resolveImageUrl } from './components-BmaJxgCV.mjs';
|
|
9
9
|
export { R as RouteMap, a as ThemeTokens } from './core-DsNWrl3o.mjs';
|
|
10
10
|
import { M as Media } from './richTextSchema-DURiozvD.mjs';
|
|
11
11
|
export { T as TipTapNode } from './richTextSchema-DURiozvD.mjs';
|
|
12
12
|
export { C as CustomLinkValue, E as ExternalLinkValue, I as InternalLinkValue, L as LinkValue } from './link-DjxLyC82.mjs';
|
|
13
|
-
import './types-
|
|
13
|
+
import './types-1cLz0vnq.mjs';
|
|
14
14
|
import 'react/jsx-runtime';
|
|
15
15
|
import 'react';
|
|
16
16
|
import './types-CbagRQ_7.mjs';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export { d as BlockOverrideComponent, e as BlockOverrideProps, B as BlockOverrides, L as LoadPageParams, a as LoadPageResult, b as Page, P as PageProps, c as PageRenderer, l as loadPage } from './loadPage-
|
|
2
|
-
export { H as HeaderData, L as Layout, a as LayoutProps } from './Layout-
|
|
1
|
+
export { d as BlockOverrideComponent, e as BlockOverrideProps, B as BlockOverrides, L as LoadPageParams, a as LoadPageResult, b as Page, P as PageProps, c as PageRenderer, l as loadPage } from './loadPage-DP3nrHBi.js';
|
|
2
|
+
export { H as HeaderData, L as Layout, a as LayoutProps } from './Layout-UXGjXv8M.js';
|
|
3
3
|
export { Block, BlockProps } from './rendering/server.js';
|
|
4
|
-
export { C as ContentEntryData, L as LoadContentParams, b as LoadContentResult, a as isEntryContent, i as isPageContent, l as loadContent } from './loadContent-
|
|
5
|
-
export { c as SiteFooterContent, S as SiteHeaderContent, T as Theme } from './types-
|
|
4
|
+
export { C as ContentEntryData, L as LoadContentParams, b as LoadContentResult, a as isEntryContent, i as isPageContent, l as loadContent } from './loadContent-Buvmudee.js';
|
|
5
|
+
export { c as SiteFooterContent, S as SiteHeaderContent, T as Theme } from './types-CVykEqXN.js';
|
|
6
6
|
export { P as PageOutline } from './schema-Z6-afHJG.js';
|
|
7
|
-
import { G as GradientConfig } from './components-
|
|
8
|
-
export { f as BackgroundInput, B as BodyTextContent, H as HeroContent, a as HeroMedia, g as ResolvedBackground, R as RichText, c as RichTextPrimitiveProps, e as SectionBackground, h as SectionBackgroundProps, S as SystemBlockComponentProps, b as buildThemeRuntime, d as resolveBackground, r as resolveImageUrl } from './components-
|
|
7
|
+
import { G as GradientConfig } from './components-DppHY5oD.js';
|
|
8
|
+
export { f as BackgroundInput, B as BodyTextContent, H as HeroContent, a as HeroMedia, g as ResolvedBackground, R as RichText, c as RichTextPrimitiveProps, e as SectionBackground, h as SectionBackgroundProps, S as SystemBlockComponentProps, b as buildThemeRuntime, d as resolveBackground, r as resolveImageUrl } from './components-DppHY5oD.js';
|
|
9
9
|
export { R as RouteMap, a as ThemeTokens } from './core-DsNWrl3o.js';
|
|
10
10
|
import { M as Media } from './richTextSchema-DURiozvD.js';
|
|
11
11
|
export { T as TipTapNode } from './richTextSchema-DURiozvD.js';
|
|
12
12
|
export { C as CustomLinkValue, E as ExternalLinkValue, I as InternalLinkValue, L as LinkValue } from './link-DjxLyC82.js';
|
|
13
|
-
import './types-
|
|
13
|
+
import './types-BvcJU7zk.js';
|
|
14
14
|
import 'react/jsx-runtime';
|
|
15
15
|
import 'react';
|
|
16
16
|
import './types-DuQCNVV0.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { R as RiverbankClient, e as ResolveEventOccurrenceResponse } from './types-
|
|
2
|
-
import { a as LoadPageResult } from './loadPage-
|
|
1
|
+
import { R as RiverbankClient, e as ResolveEventOccurrenceResponse } from './types-1cLz0vnq.mjs';
|
|
2
|
+
import { a as LoadPageResult } from './loadPage-B8mQUUSo.mjs';
|
|
3
3
|
import { R as RiverbankSiteConfig } from './types-BjgZt8xJ.mjs';
|
|
4
4
|
import './schema-Z6-afHJG.mjs';
|
|
5
|
-
import './types-
|
|
5
|
+
import './types-Dsu9wsUh.mjs';
|
|
6
6
|
import '@riverbankcms/ai';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import './link-DjxLyC82.mjs';
|
package/dist/server/routing.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { R as RiverbankClient, e as ResolveEventOccurrenceResponse } from './types-
|
|
2
|
-
import { a as LoadPageResult } from './loadPage-
|
|
1
|
+
import { R as RiverbankClient, e as ResolveEventOccurrenceResponse } from './types-BvcJU7zk.js';
|
|
2
|
+
import { a as LoadPageResult } from './loadPage-DP3nrHBi.js';
|
|
3
3
|
import { R as RiverbankSiteConfig } from './types-DLBhEPSt.js';
|
|
4
4
|
import './schema-Z6-afHJG.js';
|
|
5
|
-
import './types-
|
|
5
|
+
import './types-CVykEqXN.js';
|
|
6
6
|
import '@riverbankcms/ai';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import './link-DjxLyC82.js';
|
package/dist/server/server.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { c as createRiverbankClient } from './index-
|
|
2
|
-
export { E as EntriesResponse, b as EntryResponse, P as PageResponse, R as RiverbankClient, a as RiverbankClientConfig, S as SiteResponse } from './types-
|
|
3
|
-
export { L as LoadPageParams, a as LoadPageResult, R as RuntimeSdkConfig, l as loadPage } from './loadPage-
|
|
4
|
-
export { C as ContentEntryData, E as EntryContentResult, L as LoadContentParams, b as LoadContentResult, P as PageContentResult, a as isEntryContent, i as isPageContent, l as loadContent } from './loadContent-
|
|
1
|
+
export { c as createRiverbankClient } from './index-Bucs6UqG.mjs';
|
|
2
|
+
export { E as EntriesResponse, b as EntryResponse, P as PageResponse, R as RiverbankClient, a as RiverbankClientConfig, S as SiteResponse } from './types-1cLz0vnq.mjs';
|
|
3
|
+
export { L as LoadPageParams, a as LoadPageResult, R as RuntimeSdkConfig, l as loadPage } from './loadPage-B8mQUUSo.mjs';
|
|
4
|
+
export { C as ContentEntryData, E as EntryContentResult, L as LoadContentParams, b as LoadContentResult, P as PageContentResult, a as isEntryContent, i as isPageContent, l as loadContent } from './loadContent-BS-3wesN.mjs';
|
|
5
5
|
import './schema-Z6-afHJG.mjs';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import './types-
|
|
7
|
+
import './types-Dsu9wsUh.mjs';
|
|
8
8
|
import '@riverbankcms/ai';
|
|
9
9
|
import './link-DjxLyC82.mjs';
|
|
10
10
|
import '@riverbankcms/media-storage-supabase';
|
package/dist/server/server.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { c as createRiverbankClient } from './index-
|
|
2
|
-
export { E as EntriesResponse, b as EntryResponse, P as PageResponse, R as RiverbankClient, a as RiverbankClientConfig, S as SiteResponse } from './types-
|
|
3
|
-
export { L as LoadPageParams, a as LoadPageResult, R as RuntimeSdkConfig, l as loadPage } from './loadPage-
|
|
4
|
-
export { C as ContentEntryData, E as EntryContentResult, L as LoadContentParams, b as LoadContentResult, P as PageContentResult, a as isEntryContent, i as isPageContent, l as loadContent } from './loadContent-
|
|
1
|
+
export { c as createRiverbankClient } from './index-Cp7tJuRt.js';
|
|
2
|
+
export { E as EntriesResponse, b as EntryResponse, P as PageResponse, R as RiverbankClient, a as RiverbankClientConfig, S as SiteResponse } from './types-BvcJU7zk.js';
|
|
3
|
+
export { L as LoadPageParams, a as LoadPageResult, R as RuntimeSdkConfig, l as loadPage } from './loadPage-DP3nrHBi.js';
|
|
4
|
+
export { C as ContentEntryData, E as EntryContentResult, L as LoadContentParams, b as LoadContentResult, P as PageContentResult, a as isEntryContent, i as isPageContent, l as loadContent } from './loadContent-Buvmudee.js';
|
|
5
5
|
import './schema-Z6-afHJG.js';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import './types-
|
|
7
|
+
import './types-CVykEqXN.js';
|
|
8
8
|
import '@riverbankcms/ai';
|
|
9
9
|
import './link-DjxLyC82.js';
|
|
10
10
|
import '@riverbankcms/media-storage-supabase';
|
package/dist/server/server.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkKA74YRK6js = require('./chunk-KA74YRK6.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -19,5 +19,5 @@ require('./chunk-DGUM43GV.js');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
exports.createRiverbankClient =
|
|
22
|
+
exports.createRiverbankClient = _chunkKA74YRK6js.createRiverbankClient; exports.isEntryContent = _chunkI2D7KOEAjs.isEntryContent; exports.isPageContent = _chunkI2D7KOEAjs.isPageContent; exports.loadContent = _chunkI2D7KOEAjs.loadContent; exports.loadPage = _chunkP3NNN73Gjs.loadPage;
|
|
23
23
|
//# sourceMappingURL=server.js.map
|
package/dist/server/server.mjs
CHANGED
|
@@ -3505,6 +3505,15 @@ type APIEndpoints = {
|
|
|
3505
3505
|
getSiteApiKeyAccessLogs: APIEndpoint<never, {
|
|
3506
3506
|
siteId: string;
|
|
3507
3507
|
}, GetSiteApiKeyAccessLogsResponse>;
|
|
3508
|
+
listManagementKeys: APIEndpoint<never, {
|
|
3509
|
+
siteId: string;
|
|
3510
|
+
}, ListManagementKeysResponse>;
|
|
3511
|
+
createManagementKey: APIEndpoint<CreateManagementKeyRequest, {
|
|
3512
|
+
siteId: string;
|
|
3513
|
+
}, CreateManagementKeyResponse>;
|
|
3514
|
+
revokeManagementKey: APIEndpoint<RevokeManagementKeyRequest, {
|
|
3515
|
+
siteId: string;
|
|
3516
|
+
}, RevokeManagementKeyResponse>;
|
|
3508
3517
|
getBookingSettings: APIEndpoint<never, {
|
|
3509
3518
|
siteId: string;
|
|
3510
3519
|
}, BookingSettingsResponse>;
|
|
@@ -4011,7 +4020,7 @@ type CreateRedirectRuleResponse = {
|
|
|
4011
4020
|
type DeleteRedirectRuleResponse = {
|
|
4012
4021
|
redirects: RedirectRuleRecord[];
|
|
4013
4022
|
};
|
|
4014
|
-
type ApiKeyType = 'content' | 'preview';
|
|
4023
|
+
type ApiKeyType = 'content' | 'preview' | 'management';
|
|
4015
4024
|
type ApiKeyRecord = {
|
|
4016
4025
|
id: string;
|
|
4017
4026
|
name: string;
|
|
@@ -4086,6 +4095,31 @@ type RegenerateSitePreviewKeyResponse = {
|
|
|
4086
4095
|
keyId: string;
|
|
4087
4096
|
message: string;
|
|
4088
4097
|
};
|
|
4098
|
+
type ManagementKeyRecord = {
|
|
4099
|
+
id: string;
|
|
4100
|
+
name: string | null;
|
|
4101
|
+
keyPrefix: string;
|
|
4102
|
+
keyHint: string | null;
|
|
4103
|
+
createdAt: string;
|
|
4104
|
+
lastUsedAt: string | null;
|
|
4105
|
+
};
|
|
4106
|
+
type ListManagementKeysResponse = {
|
|
4107
|
+
managementKeys: ManagementKeyRecord[];
|
|
4108
|
+
};
|
|
4109
|
+
type CreateManagementKeyRequest = {
|
|
4110
|
+
name?: string;
|
|
4111
|
+
};
|
|
4112
|
+
type CreateManagementKeyResponse = {
|
|
4113
|
+
key: string;
|
|
4114
|
+
keyId: string;
|
|
4115
|
+
message: string;
|
|
4116
|
+
};
|
|
4117
|
+
type RevokeManagementKeyRequest = {
|
|
4118
|
+
keyId: string;
|
|
4119
|
+
};
|
|
4120
|
+
type RevokeManagementKeyResponse = {
|
|
4121
|
+
message: string;
|
|
4122
|
+
};
|
|
4089
4123
|
type ApiKeyAccessLogsPagination = {
|
|
4090
4124
|
limit: number;
|
|
4091
4125
|
offset: number;
|
|
@@ -3505,6 +3505,15 @@ type APIEndpoints = {
|
|
|
3505
3505
|
getSiteApiKeyAccessLogs: APIEndpoint<never, {
|
|
3506
3506
|
siteId: string;
|
|
3507
3507
|
}, GetSiteApiKeyAccessLogsResponse>;
|
|
3508
|
+
listManagementKeys: APIEndpoint<never, {
|
|
3509
|
+
siteId: string;
|
|
3510
|
+
}, ListManagementKeysResponse>;
|
|
3511
|
+
createManagementKey: APIEndpoint<CreateManagementKeyRequest, {
|
|
3512
|
+
siteId: string;
|
|
3513
|
+
}, CreateManagementKeyResponse>;
|
|
3514
|
+
revokeManagementKey: APIEndpoint<RevokeManagementKeyRequest, {
|
|
3515
|
+
siteId: string;
|
|
3516
|
+
}, RevokeManagementKeyResponse>;
|
|
3508
3517
|
getBookingSettings: APIEndpoint<never, {
|
|
3509
3518
|
siteId: string;
|
|
3510
3519
|
}, BookingSettingsResponse>;
|
|
@@ -4011,7 +4020,7 @@ type CreateRedirectRuleResponse = {
|
|
|
4011
4020
|
type DeleteRedirectRuleResponse = {
|
|
4012
4021
|
redirects: RedirectRuleRecord[];
|
|
4013
4022
|
};
|
|
4014
|
-
type ApiKeyType = 'content' | 'preview';
|
|
4023
|
+
type ApiKeyType = 'content' | 'preview' | 'management';
|
|
4015
4024
|
type ApiKeyRecord = {
|
|
4016
4025
|
id: string;
|
|
4017
4026
|
name: string;
|
|
@@ -4086,6 +4095,31 @@ type RegenerateSitePreviewKeyResponse = {
|
|
|
4086
4095
|
keyId: string;
|
|
4087
4096
|
message: string;
|
|
4088
4097
|
};
|
|
4098
|
+
type ManagementKeyRecord = {
|
|
4099
|
+
id: string;
|
|
4100
|
+
name: string | null;
|
|
4101
|
+
keyPrefix: string;
|
|
4102
|
+
keyHint: string | null;
|
|
4103
|
+
createdAt: string;
|
|
4104
|
+
lastUsedAt: string | null;
|
|
4105
|
+
};
|
|
4106
|
+
type ListManagementKeysResponse = {
|
|
4107
|
+
managementKeys: ManagementKeyRecord[];
|
|
4108
|
+
};
|
|
4109
|
+
type CreateManagementKeyRequest = {
|
|
4110
|
+
name?: string;
|
|
4111
|
+
};
|
|
4112
|
+
type CreateManagementKeyResponse = {
|
|
4113
|
+
key: string;
|
|
4114
|
+
keyId: string;
|
|
4115
|
+
message: string;
|
|
4116
|
+
};
|
|
4117
|
+
type RevokeManagementKeyRequest = {
|
|
4118
|
+
keyId: string;
|
|
4119
|
+
};
|
|
4120
|
+
type RevokeManagementKeyResponse = {
|
|
4121
|
+
message: string;
|
|
4122
|
+
};
|
|
4089
4123
|
type ApiKeyAccessLogsPagination = {
|
|
4090
4124
|
limit: number;
|
|
4091
4125
|
offset: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riverbankcms/sdk",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Riverbank CMS SDK for headless content consumption",
|
|
5
5
|
"main": "./dist/server/index.js",
|
|
6
6
|
"module": "./dist/server/index.mjs",
|
|
@@ -119,6 +119,7 @@
|
|
|
119
119
|
"dotenv": "^16.4.5",
|
|
120
120
|
"fast-deep-equal": "^3.1.3",
|
|
121
121
|
"jiti": "^2.6.1",
|
|
122
|
+
"prompts": "^2.4.2",
|
|
122
123
|
"zod": "^4.1.1"
|
|
123
124
|
},
|
|
124
125
|
"peerDependencies": {
|
|
@@ -131,6 +132,7 @@
|
|
|
131
132
|
"@riverbankcms/site-renderer": "workspace:*",
|
|
132
133
|
"@types/dotenv": "^8.2.3",
|
|
133
134
|
"@types/node": "^22.0.0",
|
|
135
|
+
"@types/prompts": "^2.4.9",
|
|
134
136
|
"@types/react": "^19.1.0",
|
|
135
137
|
"@types/react-dom": "^19.1.0",
|
|
136
138
|
"eslint": "^9.15.0",
|