@riverbankcms/sdk 0.62.2 → 0.62.4
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/_dts/api/src/accessAdmin.d.ts +7 -0
- package/dist/_dts/api/src/bookingClosures.d.ts +106 -0
- package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +18 -0
- package/dist/_dts/api/src/bookingRecords.d.ts +1 -1
- package/dist/_dts/api/src/calendar.d.ts +11 -1
- package/dist/_dts/api/src/contentRuntime.d.ts +2 -0
- package/dist/_dts/api/src/contentVersionHistory.d.ts +52 -0
- package/dist/_dts/api/src/contentVersionHistoryClient.d.ts +45 -0
- package/dist/_dts/api/src/endpoints.d.ts +110 -6
- package/dist/_dts/api/src/index.d.ts +4 -1
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +31 -7
- package/dist/_dts/api/src/siteMembers.d.ts +10 -1
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +33 -12
- package/dist/_dts/api/src/types.d.ts +2 -1
- package/dist/_dts/api/src/url.d.ts +3 -3
- package/dist/_dts/blocks/src/bindings/index.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/newsletter-form.client.state.d.ts +12 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/FieldValidationMessage.d.ts +19 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/TerminalPanel.d.ts +8 -2
- package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/shared/index.d.ts +2 -2
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/themeColorResolution.d.ts +7 -0
- package/dist/_dts/content-editor/src/hooks/useDebouncedLatestSave.d.ts +24 -0
- package/dist/_dts/content-editor/src/index.d.ts +1 -0
- package/dist/_dts/content-editor/src/ui/stores/autosaveStore.d.ts +1 -0
- package/dist/_dts/content-editor/src/ui/stores/types.d.ts +1 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +208 -0
- package/dist/_dts/db/src/schemas/forms.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/blocks/BlockToolbar.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/blocks/composer/composePageFromBlocks.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/blocks/composer/index.d.ts +2 -2
- package/dist/_dts/preview-next/src/client/blocks/composer/mergeDrafts.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/blocks/composer/types.d.ts +31 -8
- package/dist/_dts/preview-next/src/client/blocks/pageDesignRuntimePreview.d.ts +6 -5
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/aiProposalProjection.d.ts +7 -0
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/applyPreviewProjections.d.ts +7 -0
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/index.d.ts +4 -0
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/runtimeContentDecoration.d.ts +5 -0
- package/dist/_dts/preview-next/src/client/blocks/previewProjection/types.d.ts +72 -0
- package/dist/_dts/preview-next/src/client/index.d.ts +1 -1
- package/dist/_dts/preview-next/src/client/layout/PreviewLayoutContext.d.ts +6 -5
- package/dist/_dts/preview-next/src/client/preview/PageDesignEditorStateContext.d.ts +2 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +11 -1
- package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +9 -5
- package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +6 -1
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +13 -2
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +7 -1
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeControlStyles.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeHistory.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeRuntimePatch.d.ts +9 -1
- package/dist/_dts/preview-next/src/client/preview/previewCustomizeWorkflowState.d.ts +13 -0
- package/dist/_dts/preview-next/src/client/preview/sidebarTabPreference.d.ts +8 -2
- package/dist/_dts/preview-next/src/client/preview/siteChromeLookRows.d.ts +49 -0
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +3 -1
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/surfaces/src/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/index.d.ts +1 -1
- package/dist/_dts/theme-core/src/palette/variants/types.d.ts +2 -21
- package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +3 -67
- package/dist/_dts/theme-core/src/site-styles/appearancePresetTypes.d.ts +4 -62
- package/dist/_dts/theme-core/src/site-styles/appearancePresets.d.ts +1 -1
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +24 -0
- package/dist/_dts/theme-core/src/site-styles/customizableSurfaces.d.ts +94 -0
- package/dist/_dts/theme-core/src/site-styles/footerLooks.d.ts +59 -0
- package/dist/_dts/theme-core/src/site-styles/generatedDesignPipeline.d.ts +4 -0
- package/dist/_dts/theme-core/src/site-styles/headerCtaVariants.d.ts +3 -0
- package/dist/_dts/theme-core/src/site-styles/headerLooks.d.ts +155 -0
- package/dist/_dts/theme-core/src/site-styles/headerOpeningSection.d.ts +15 -0
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +6 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignAuthority.d.ts +7 -0
- package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +25 -0
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +15 -1
- package/dist/_dts/theme-core/src/site-styles/records.d.ts +1 -0
- package/dist/_dts/theme-core/src/site-styles/siteStyleBlockPolicies.d.ts +96 -0
- package/dist/_dts/theme-core/src/site-styles/types.d.ts +1 -2
- package/dist/_dts/theme-core/src/siteChrome.d.ts +44 -2
- package/dist/_dts/theme-core/src/tokens/colorTokenParts.d.ts +13 -0
- package/dist/_dts/theme-core/src/tokens/index.d.ts +2 -0
- package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +29 -0
- package/dist/_dts/theme-core/src/utils/tokenOrColor.d.ts +27 -1
- package/dist/cli/index.mjs +1139 -471
- package/dist/client/bookings.mjs +519 -368
- package/dist/client/client.mjs +4507 -3535
- package/dist/client/hooks.mjs +2634 -2035
- package/dist/client/rendering/client.mjs +4413 -3549
- package/dist/client/rendering/islands.mjs +3456 -2589
- package/dist/client/rendering.mjs +4921 -3949
- package/dist/preview-next/before-render.mjs +138 -6
- package/dist/preview-next/client/runtime.mjs +3541 -1573
- package/dist/preview-next/editor-base.css +31 -0
- package/dist/preview-next/middleware.mjs +131 -6
- package/dist/server/components.mjs +3214 -2560
- package/dist/server/config-validation.mjs +2859 -2260
- package/dist/server/config.mjs +2859 -2260
- package/dist/server/data.mjs +2634 -2035
- package/dist/server/index.mjs +132 -7
- package/dist/server/next.mjs +2983 -2329
- package/dist/server/page-converter.mjs +2478 -2029
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +3214 -2560
- package/dist/server/rendering.mjs +3233 -2579
- package/dist/server/routing.mjs +2725 -2028
- package/dist/server/server.mjs +2636 -2037
- package/dist/server/theme-bridge.mjs +1250 -767
- package/dist/server/theme.mjs +623 -498
- package/dist/styles/index.css +33 -0
- package/package.json +1 -1
- package/dist/_dts/blocks/src/system/transforms/registry/_utils/colorResolution.d.ts +0 -13
- package/dist/_dts/preview-next/src/client/blocks/overlay.d.ts +0 -30
- package/dist/_dts/theme-core/src/site-styles/siteChromeAppearancePresets.d.ts +0 -67
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
var PREVIEW_COOKIE_NAME = "preview_token";
|
|
3
3
|
var PREVIEW_COOKIE_MAX_AGE = 60 * 60 * 12;
|
|
4
4
|
|
|
5
|
+
// ../surfaces/src/index.ts
|
|
6
|
+
var SURFACE_IDS = ["core", "macadamia"];
|
|
7
|
+
var DEFAULT_SURFACE_ID = "core";
|
|
8
|
+
var NAMED_SURFACE_IDS = SURFACE_IDS.filter(
|
|
9
|
+
(surfaceId) => surfaceId !== DEFAULT_SURFACE_ID
|
|
10
|
+
);
|
|
11
|
+
|
|
5
12
|
// ../preview-next/src/auth-contract.ts
|
|
6
13
|
function resolvePreviewAuthMode(previewAuthModeClaim) {
|
|
7
14
|
return previewAuthModeClaim === "onboardingGrant" ? "onboardingGrant" : "userSession";
|
|
@@ -443,6 +450,46 @@ var ENDPOINT_DEFINITIONS = {
|
|
|
443
450
|
"server:internal_error"
|
|
444
451
|
]
|
|
445
452
|
},
|
|
453
|
+
listBookingClosures: {
|
|
454
|
+
path: "/sites/{siteId}/bookings/closures",
|
|
455
|
+
method: "GET",
|
|
456
|
+
auth: "user",
|
|
457
|
+
tags: ["site-{siteId}", "bookings", "closures-{siteId}"],
|
|
458
|
+
responseKind: "json",
|
|
459
|
+
errors: ["auth:forbidden", "server:internal_error"]
|
|
460
|
+
},
|
|
461
|
+
previewBookingClosure: {
|
|
462
|
+
path: "/sites/{siteId}/bookings/closures/preview",
|
|
463
|
+
method: "POST",
|
|
464
|
+
auth: "user",
|
|
465
|
+
tags: ["site-{siteId}", "bookings", "closures-{siteId}"],
|
|
466
|
+
responseKind: "json",
|
|
467
|
+
errors: ["validation:invalid_input", "auth:forbidden", "server:internal_error"]
|
|
468
|
+
},
|
|
469
|
+
createBookingClosure: {
|
|
470
|
+
path: "/sites/{siteId}/bookings/closures",
|
|
471
|
+
method: "POST",
|
|
472
|
+
auth: "user",
|
|
473
|
+
tags: ["site-{siteId}", "bookings", "closures-{siteId}"],
|
|
474
|
+
responseKind: "json",
|
|
475
|
+
errors: ["validation:invalid_input", "resource:conflict", "auth:forbidden", "server:internal_error"]
|
|
476
|
+
},
|
|
477
|
+
getBookingClosure: {
|
|
478
|
+
path: "/sites/{siteId}/bookings/closures/{closureId}",
|
|
479
|
+
method: "GET",
|
|
480
|
+
auth: "user",
|
|
481
|
+
tags: ["site-{siteId}", "bookings", "closures-{siteId}"],
|
|
482
|
+
responseKind: "json",
|
|
483
|
+
errors: ["resource:not_found", "server:internal_error"]
|
|
484
|
+
},
|
|
485
|
+
deleteBookingClosure: {
|
|
486
|
+
path: "/sites/{siteId}/bookings/closures/{closureId}",
|
|
487
|
+
method: "DELETE",
|
|
488
|
+
auth: "user",
|
|
489
|
+
tags: ["site-{siteId}", "bookings", "closures-{siteId}"],
|
|
490
|
+
responseKind: "json",
|
|
491
|
+
errors: ["resource:not_found", "server:internal_error"]
|
|
492
|
+
},
|
|
446
493
|
// Ops (event hosts/admins)
|
|
447
494
|
opsListUpcomingEventOccurrences: {
|
|
448
495
|
path: "/ops/sites/{siteId}/events",
|
|
@@ -860,7 +907,7 @@ var ENDPOINT_DEFINITIONS = {
|
|
|
860
907
|
method: "POST",
|
|
861
908
|
auth: "user",
|
|
862
909
|
responseKind: "json",
|
|
863
|
-
errors: ["validation:invalid_input", "server:internal_error"]
|
|
910
|
+
errors: ["validation:invalid_input", "billing:plan_limit_exceeded", "server:internal_error"]
|
|
864
911
|
},
|
|
865
912
|
getAppointmentResource: {
|
|
866
913
|
path: "/sites/{siteId}/bookings/resources/{resourceId}",
|
|
@@ -1525,6 +1572,31 @@ var ENDPOINT_DEFINITIONS = {
|
|
|
1525
1572
|
auth: "user",
|
|
1526
1573
|
responseKind: "json"
|
|
1527
1574
|
},
|
|
1575
|
+
linkCurrentUserPractitioner: {
|
|
1576
|
+
path: "/sites/{siteId}/members/practitioner-link",
|
|
1577
|
+
method: "POST",
|
|
1578
|
+
tags: ["site-{siteId}", "site-members-{siteId}"],
|
|
1579
|
+
auth: "user",
|
|
1580
|
+
responseKind: "json",
|
|
1581
|
+
errors: [
|
|
1582
|
+
"validation:invalid_input",
|
|
1583
|
+
"auth:forbidden",
|
|
1584
|
+
"resource:not_found",
|
|
1585
|
+
"resource:already_exists",
|
|
1586
|
+
"server:internal_error"
|
|
1587
|
+
]
|
|
1588
|
+
},
|
|
1589
|
+
unlinkCurrentUserPractitioner: {
|
|
1590
|
+
path: "/sites/{siteId}/members/practitioner-link",
|
|
1591
|
+
method: "DELETE",
|
|
1592
|
+
tags: ["site-{siteId}", "site-members-{siteId}"],
|
|
1593
|
+
auth: "user",
|
|
1594
|
+
responseKind: "json",
|
|
1595
|
+
errors: [
|
|
1596
|
+
"auth:forbidden",
|
|
1597
|
+
"server:internal_error"
|
|
1598
|
+
]
|
|
1599
|
+
},
|
|
1528
1600
|
authLogin: {
|
|
1529
1601
|
path: "/auth/login/submit",
|
|
1530
1602
|
method: "POST",
|
|
@@ -1720,6 +1792,42 @@ var ENDPOINT_DEFINITIONS = {
|
|
|
1720
1792
|
auth: "user",
|
|
1721
1793
|
responseKind: "json"
|
|
1722
1794
|
},
|
|
1795
|
+
listContentEntryVersions: {
|
|
1796
|
+
path: "/sites/{siteId}/content/{type}/{entryId}/versions",
|
|
1797
|
+
method: "GET",
|
|
1798
|
+
errors: ["validation:invalid_input", "resource:not_found"],
|
|
1799
|
+
tags: [
|
|
1800
|
+
"site-{siteId}",
|
|
1801
|
+
"content-{siteId}-{type}",
|
|
1802
|
+
"content-entry-{entryId}"
|
|
1803
|
+
],
|
|
1804
|
+
auth: "user",
|
|
1805
|
+
responseKind: "json"
|
|
1806
|
+
},
|
|
1807
|
+
getContentEntryVersion: {
|
|
1808
|
+
path: "/sites/{siteId}/content/{type}/{entryId}/versions/{versionId}",
|
|
1809
|
+
method: "GET",
|
|
1810
|
+
errors: ["validation:invalid_input", "resource:not_found"],
|
|
1811
|
+
tags: [
|
|
1812
|
+
"site-{siteId}",
|
|
1813
|
+
"content-{siteId}-{type}",
|
|
1814
|
+
"content-entry-{entryId}"
|
|
1815
|
+
],
|
|
1816
|
+
auth: "user",
|
|
1817
|
+
responseKind: "json"
|
|
1818
|
+
},
|
|
1819
|
+
restoreContentEntryVersion: {
|
|
1820
|
+
path: "/sites/{siteId}/content/{type}/{entryId}/versions/{versionId}/restore",
|
|
1821
|
+
method: "POST",
|
|
1822
|
+
errors: ["validation:invalid_input", "resource:not_found", "resource:conflict", "server:internal_error"],
|
|
1823
|
+
tags: [
|
|
1824
|
+
"site-{siteId}",
|
|
1825
|
+
"content-{siteId}-{type}",
|
|
1826
|
+
"content-entry-{entryId}"
|
|
1827
|
+
],
|
|
1828
|
+
auth: "user",
|
|
1829
|
+
responseKind: "json"
|
|
1830
|
+
},
|
|
1723
1831
|
updateContentEntryContent: {
|
|
1724
1832
|
path: "/sites/{siteId}/content/{type}/{entryId}/content",
|
|
1725
1833
|
method: "PUT",
|
|
@@ -3090,6 +3198,30 @@ var ENDPOINT_DEFINITIONS = {
|
|
|
3090
3198
|
"server:internal_error"
|
|
3091
3199
|
]
|
|
3092
3200
|
},
|
|
3201
|
+
listPageVersions: {
|
|
3202
|
+
path: "/sites/{siteId}/pages/{pageId}/versions",
|
|
3203
|
+
method: "GET",
|
|
3204
|
+
errors: ["validation:invalid_input", "resource:not_found"],
|
|
3205
|
+
tags: [TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.pageById],
|
|
3206
|
+
auth: "user",
|
|
3207
|
+
responseKind: "json"
|
|
3208
|
+
},
|
|
3209
|
+
getPageVersion: {
|
|
3210
|
+
path: "/sites/{siteId}/pages/{pageId}/versions/{versionId}",
|
|
3211
|
+
method: "GET",
|
|
3212
|
+
errors: ["validation:invalid_input", "resource:not_found"],
|
|
3213
|
+
tags: [TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.pageById],
|
|
3214
|
+
auth: "user",
|
|
3215
|
+
responseKind: "json"
|
|
3216
|
+
},
|
|
3217
|
+
restorePageVersion: {
|
|
3218
|
+
path: "/sites/{siteId}/pages/{pageId}/versions/{versionId}/restore",
|
|
3219
|
+
method: "POST",
|
|
3220
|
+
errors: ["validation:invalid_input", "resource:not_found", "resource:conflict", "server:internal_error"],
|
|
3221
|
+
tags: [TAG_TEMPLATES.siteRoutableContent, TAG_TEMPLATES.pageById],
|
|
3222
|
+
auth: "user",
|
|
3223
|
+
responseKind: "json"
|
|
3224
|
+
},
|
|
3093
3225
|
applyPageDesignEditorAction: {
|
|
3094
3226
|
path: "/sites/{siteId}/pages/{pageId}/design/actions",
|
|
3095
3227
|
method: "POST",
|
|
@@ -3140,21 +3272,21 @@ var ENDPOINT_DEFINITIONS = {
|
|
|
3140
3272
|
responseKind: "json"
|
|
3141
3273
|
},
|
|
3142
3274
|
updateForm: {
|
|
3143
|
-
path: "/sites/{siteId}/forms/{
|
|
3275
|
+
path: "/sites/{siteId}/forms/{formId}",
|
|
3144
3276
|
method: "PATCH",
|
|
3145
3277
|
tags: [TAG_TEMPLATES.siteForms],
|
|
3146
3278
|
auth: "user",
|
|
3147
3279
|
responseKind: "json"
|
|
3148
3280
|
},
|
|
3149
3281
|
deleteForm: {
|
|
3150
|
-
path: "/sites/{siteId}/forms/{
|
|
3282
|
+
path: "/sites/{siteId}/forms/{formId}",
|
|
3151
3283
|
method: "DELETE",
|
|
3152
3284
|
tags: [TAG_TEMPLATES.siteForms],
|
|
3153
3285
|
auth: "user",
|
|
3154
3286
|
responseKind: "json"
|
|
3155
3287
|
},
|
|
3156
3288
|
listFormSubmissions: {
|
|
3157
|
-
path: "/sites/{siteId}/forms/{
|
|
3289
|
+
path: "/sites/{siteId}/forms/{formId}/submissions",
|
|
3158
3290
|
method: "GET",
|
|
3159
3291
|
revalidate: 30,
|
|
3160
3292
|
tags: [TAG_TEMPLATES.siteForms, TAG_TEMPLATES.formSubmissionsBySlug],
|
|
@@ -3162,7 +3294,7 @@ var ENDPOINT_DEFINITIONS = {
|
|
|
3162
3294
|
responseKind: "json"
|
|
3163
3295
|
},
|
|
3164
3296
|
createFormSubmissionRectificationAnnotation: {
|
|
3165
|
-
path: "/sites/{siteId}/forms/{
|
|
3297
|
+
path: "/sites/{siteId}/forms/{formId}/submissions/{submissionId}/annotations",
|
|
3166
3298
|
method: "POST",
|
|
3167
3299
|
tags: [TAG_TEMPLATES.siteForms, TAG_TEMPLATES.formSubmissionsBySlug],
|
|
3168
3300
|
auth: "user",
|
|
@@ -3175,7 +3307,7 @@ var ENDPOINT_DEFINITIONS = {
|
|
|
3175
3307
|
]
|
|
3176
3308
|
},
|
|
3177
3309
|
exportFormSubmissionsCsv: {
|
|
3178
|
-
path: "/sites/{siteId}/forms/{
|
|
3310
|
+
path: "/sites/{siteId}/forms/{formId}/submissions/export.csv",
|
|
3179
3311
|
method: "GET",
|
|
3180
3312
|
tags: [TAG_TEMPLATES.siteForms, TAG_TEMPLATES.formSubmissionsBySlug],
|
|
3181
3313
|
auth: "user",
|