@riverbankcms/sdk 0.95.0 → 0.96.0
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 +27 -4
- package/dist/{PreviewEditorSidebar-6FQYKOSB.mjs → PreviewEditorSidebar-46VT4QVU.mjs} +2 -2
- package/dist/{PreviewEditorUI-NPO2XMFB.mjs → PreviewEditorUI-JD75GE5F.mjs} +2 -2
- package/dist/SdkPreviewModeRuntime-MJUSYUFB.mjs +8 -0
- package/dist/_dts/ai/src/contracts/proposals.d.ts +10 -10
- package/dist/_dts/block-form/src/client/index.d.ts +1 -1
- package/dist/_dts/block-form/src/fields/types.d.ts +9 -1
- package/dist/_dts/block-form/src/registry/schemas.d.ts +4 -0
- package/dist/_dts/block-form/src/registry/widgets.d.ts +1 -0
- package/dist/_dts/block-form/src/widgets/InlineTextField/InlineTextField.d.ts +4 -0
- package/dist/_dts/block-form/src/widgets/InlineTextField/index.d.ts +3 -0
- package/dist/_dts/block-form/src/widgets/InlineTextField/inlineTextFieldDefaults.d.ts +2 -0
- package/dist/_dts/block-form/src/widgets/InlineTextField/inlineTextFieldSchema.d.ts +3 -0
- package/dist/_dts/blocks/src/bindings/index.d.ts +1 -0
- package/dist/_dts/blocks/src/bindings/types.d.ts +1 -0
- package/dist/_dts/blocks/src/index.d.ts +2 -0
- package/dist/_dts/blocks/src/system/blocks/appointment-booking.d.ts +2 -29631
- package/dist/_dts/blocks/src/system/blocks/blog-listing.d.ts +2 -29614
- package/dist/_dts/blocks/src/system/blocks/cart.d.ts +2 -29634
- package/dist/_dts/blocks/src/system/blocks/checkout.d.ts +2 -29627
- package/dist/_dts/blocks/src/system/blocks/collection.d.ts +2 -29585
- package/dist/_dts/blocks/src/system/blocks/faq.d.ts +2 -29677
- package/dist/_dts/blocks/src/system/blocks/gifting.d.ts +2 -29655
- package/dist/_dts/blocks/src/system/blocks/media-text.d.ts +220 -0
- package/dist/_dts/blocks/src/system/blocks/product-detail.d.ts +2 -29655
- package/dist/_dts/blocks/src/system/blocks/product-list.d.ts +2 -29685
- package/dist/_dts/blocks/src/system/blocks/shop.d.ts +2 -29761
- package/dist/_dts/blocks/src/system/fragments/library/heroCopy.d.ts +9 -0
- package/dist/_dts/blocks/src/system/inlineText.d.ts +78 -0
- package/dist/_dts/blocks/src/system/manifest/derivedContent.d.ts +3 -1
- package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +15 -3
- package/dist/_dts/blocks/src/system/manifest/schema.d.ts +188 -7
- package/dist/_dts/blocks/src/system/runtime/nodes/basic.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/renderInlineText.d.ts +3 -0
- package/dist/_dts/content-editor/src/index.d.ts +1 -0
- package/dist/_dts/content-editor/src/primitives/PreviewInlineTextEditor.d.ts +9 -0
- package/dist/_dts/content-model/src/templates/bindingTypeCompatibility.d.ts +1 -1
- package/dist/_dts/content-model/src/templates/defaults.d.ts +30 -0
- package/dist/_dts/content-model/src/templates/types.d.ts +1 -0
- package/dist/_dts/editor/src/inline/FloatingToolbar.d.ts +18 -0
- package/dist/_dts/editor/src/inline/InlineTextEditor.d.ts +18 -1
- package/dist/_dts/editor/src/inline/InlineTextEditorStyles.d.ts +1 -0
- package/dist/_dts/editor/src/inline/domParse.d.ts +3 -0
- package/dist/_dts/editor/src/inline/presentation.d.ts +48 -0
- package/dist/_dts/editor/src/inline/selection.d.ts +12 -0
- package/dist/_dts/editor-blocks/src/widgets/index.d.ts +1 -0
- package/dist/_dts/editor-blocks/src/widgets/inline-text/InlineTextField.d.ts +3 -0
- package/dist/_dts/editor-blocks/src/widgets/inline-text/index.d.ts +1 -0
- package/dist/_dts/path-utils/src/index.d.ts +1 -0
- package/dist/_dts/preview-next/src/client/widgets/widgetOverrides.d.ts +1 -0
- package/dist/_dts/sdk/src/cli/commands/content.d.ts +56 -0
- package/dist/_dts/sdk/src/cli/commands/push/options.d.ts +4 -0
- package/dist/_dts/sdk/src/cli/commands/push/scopes/commandBackedDatedOfferingScope.d.ts +2 -6
- package/dist/_dts/sdk/src/cli/commands/push/scopes/types.d.ts +2 -0
- package/dist/_dts/sdk/src/cli/commands/push/verification.d.ts +56 -0
- package/dist/_dts/sdk/src/cli/commands/push-execute.d.ts +2 -1
- package/dist/_dts/sdk/src/cli/content/edit/format.d.ts +2 -0
- package/dist/_dts/sdk/src/cli/content/edit/path.d.ts +14 -0
- package/dist/_dts/sdk/src/cli/content/edit/planner.d.ts +46 -0
- package/dist/_dts/sdk/src/cli/content/fs-utils.d.ts +4 -0
- package/dist/_dts/sdk/src/cli/content/writer.d.ts +2 -0
- package/dist/_dts/sdk/src/cli/merge-remote/mergeFieldChanges.d.ts +22 -0
- package/dist/_dts/sdk/src/cli/merge-remote/pageLocal.d.ts +3 -0
- package/dist/_dts/sdk/src/cli/merge-remote/pageMerge.d.ts +78 -0
- package/dist/_dts/sdk/src/cli/merge-remote/pageMergePlan.d.ts +36 -0
- package/dist/_dts/sdk/src/cli/merge-remote/pageMergePush.d.ts +21 -0
- package/dist/_dts/sdk/src/cli/merge-remote/pageMergeReport.d.ts +29 -0
- package/dist/_dts/sdk/src/cli/merge-remote/pageSnapshots.d.ts +48 -0
- package/dist/_dts/sdk/src/cli/sync/diff.d.ts +3 -6
- package/dist/_dts/sdk/src/cli/sync/field-diff.d.ts +39 -0
- package/dist/_dts/sdk/src/cli/sync/index.d.ts +1 -0
- package/dist/_dts/sdk/src/config/field-definitions.d.ts +8 -3
- package/dist/_dts/sdk/src/config/typed-entries.d.ts +5 -3
- package/dist/_dts/sdk/src/contracts/bindings.d.ts +1 -0
- package/dist/_dts/sdk/src/contracts/content.d.ts +18 -0
- package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +3 -2
- package/dist/_dts/sdk/src/rendering/helpers/bindings.d.ts +1 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/accordions/types.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/types.d.ts +1 -1
- package/dist/_dts/theme-core/src/cards/types.d.ts +15 -15
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/inputs/types.d.ts +1 -1
- package/dist/_dts/theme-core/src/mock-themes/all.d.ts +42 -42
- package/dist/_dts/theme-core/src/palette/variants/types.d.ts +2 -2
- package/dist/_dts/theme-core/src/schema.d.ts +44 -44
- package/dist/_dts/theme-core/src/site-styles/backgroundAppearance.d.ts +2 -2
- package/dist/_dts/theme-core/src/site-styles/designState.d.ts +16 -16
- package/dist/_dts/theme-core/src/site-styles/pageDesignIntent.d.ts +4 -4
- package/dist/_dts/theme-core/src/site-styles/tokenRecipes.d.ts +1 -1
- package/dist/_dts/theme-core/src/tokens/themeColorTokens.d.ts +1 -1
- package/dist/{chunk-K2SJTZMX.mjs → chunk-4TLTV7OB.mjs} +1 -1
- package/dist/{chunk-4A6NWO3X.mjs → chunk-EL55VV6Q.mjs} +47 -7
- package/dist/{chunk-PJPFTVZG.mjs → chunk-VHIMXQ7Z.mjs} +105 -3
- package/dist/{chunk-VZBSD4AJ.mjs → chunk-XMATDBXO.mjs} +1633 -225
- package/dist/cli/index.mjs +2691 -772
- package/dist/cli/init-docs/content/cli-reference.md +43 -4
- package/dist/cli/init-docs/content/content-management.md +22 -0
- package/dist/client/{accordion-LGO4IO5U.mjs → accordion-GUNXIIZR.mjs} +1 -1
- package/dist/client/{bookingForm-MWLS4LGU.mjs → bookingForm-AOU4VHP5.mjs} +3 -3
- package/dist/client/{carousel-6AHNP5HA.mjs → carousel-4QSX2JPC.mjs} +1 -1
- package/dist/client/{cart-CIXGYAZB.mjs → cart-JKN6C4ZB.mjs} +4 -4
- package/dist/client/{checkout-OTX6O3DN.mjs → checkout-YY6YMITW.mjs} +4 -4
- package/dist/client/{chunk-Y2PMKCXO.mjs → chunk-6H27K6AA.mjs} +1 -1
- package/dist/client/{chunk-R3NQTBWE.mjs → chunk-A3YN7M3G.mjs} +1 -1
- package/dist/client/{chunk-TREIML53.mjs → chunk-BFCJZODD.mjs} +3 -3
- package/dist/client/{chunk-INRIT6DP.mjs → chunk-CPKMJVBD.mjs} +5 -5
- package/dist/client/{chunk-V67AT7ZW.mjs → chunk-GWCRCJLB.mjs} +6 -0
- package/dist/client/{chunk-AVBQSUIS.mjs → chunk-H7A6PUGM.mjs} +1 -1
- package/dist/client/{chunk-HOP7MKAZ.mjs → chunk-SY543WZ3.mjs} +1 -1
- package/dist/client/{chunk-MYCXAKWP.mjs → chunk-VJROUYOQ.mjs} +2 -2
- package/dist/client/client.mjs +4007 -3687
- package/dist/client/{courseRegistration-2LU6C3JL.mjs → courseRegistration-UU2KMPSQ.mjs} +3 -3
- package/dist/client/{eventCalendar-OKUSISBZ.mjs → eventCalendar-WIVNS2TM.mjs} +6 -6
- package/dist/client/{eventCombined-CMF6CD4S.mjs → eventCombined-P3G5MW4J.mjs} +6 -6
- package/dist/client/{eventDetails-XYWH7WXI.mjs → eventDetails-2VHJ2RDG.mjs} +6 -6
- package/dist/client/{eventListing-EK5DJTAH.mjs → eventListing-TGO6JI3R.mjs} +6 -6
- package/dist/client/{eventRegistration-XDOSICV6.mjs → eventRegistration-B46HEJES.mjs} +6 -6
- package/dist/client/{form-J6GOHKYG.mjs → form-VKRTFUNQ.mjs} +1 -1
- package/dist/client/{headerSection-C5SYJTRW.mjs → headerSection-XUX4ZJLO.mjs} +2 -2
- package/dist/client/hooks.mjs +20 -3
- package/dist/client/{locationMap-QSQIFVVT.mjs → locationMap-NQFI5MJO.mjs} +2 -2
- package/dist/client/{newsletterForm-47VXJRWK.mjs → newsletterForm-P2GETCQK.mjs} +1 -1
- package/dist/client/{productDetail-5U6ISCC2.mjs → productDetail-7NQ7O5IF.mjs} +4 -4
- package/dist/client/{productList-XDZUMR3P.mjs → productList-RX6ZJ7BL.mjs} +4 -4
- package/dist/client/rendering/client.mjs +3822 -3600
- package/dist/client/rendering/islands.mjs +18 -18
- package/dist/client/rendering.mjs +1211 -883
- package/dist/client/{shop-ZSZKIY3R.mjs → shop-BHN5AKY6.mjs} +4 -4
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/{sdk-runtime-PHNM7MRD.mjs → sdk-runtime-X2LXQ5IC.mjs} +4 -4
- package/dist/server/components.mjs +3144 -2827
- package/dist/server/config-template-validation.mjs +29 -20
- package/dist/server/config-validation.mjs +22 -4
- package/dist/server/config.mjs +22 -4
- package/dist/server/data.mjs +20 -3
- package/dist/server/index.mjs +1 -1
- package/dist/server/next.mjs +3181 -2858
- package/dist/server/page-converter.mjs +20 -3
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +3153 -2837
- package/dist/server/rendering.mjs +3168 -2844
- package/dist/server/routing.mjs +21 -4
- package/dist/server/server.mjs +2299 -2188
- package/dist/server/theme-bridge.mjs +43 -0
- package/dist/styles/index.css +44 -0
- package/package.json +1 -1
- package/dist/SdkPreviewModeRuntime-PBEFH5AL.mjs +0 -8
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export type FieldPathSegment = Readonly<{
|
|
2
|
+
type: 'property';
|
|
3
|
+
key: string;
|
|
4
|
+
}> | Readonly<{
|
|
5
|
+
type: 'index';
|
|
6
|
+
index: number;
|
|
7
|
+
}> | Readonly<{
|
|
8
|
+
type: 'item';
|
|
9
|
+
key: string;
|
|
10
|
+
}>;
|
|
11
|
+
export type FieldDiffKind = 'added' | 'removed' | 'changed' | 'list_reordered';
|
|
12
|
+
export type FieldDiff = Readonly<{
|
|
13
|
+
kind: FieldDiffKind;
|
|
14
|
+
path: readonly FieldPathSegment[];
|
|
15
|
+
before: unknown;
|
|
16
|
+
after: unknown;
|
|
17
|
+
}>;
|
|
18
|
+
export type FieldChange = Readonly<{
|
|
19
|
+
kind: FieldDiffKind;
|
|
20
|
+
path: string;
|
|
21
|
+
before: unknown;
|
|
22
|
+
after: unknown;
|
|
23
|
+
redacted?: true;
|
|
24
|
+
}>;
|
|
25
|
+
export type FieldDiffIdentityInput = Readonly<{
|
|
26
|
+
path: readonly FieldPathSegment[];
|
|
27
|
+
item: unknown;
|
|
28
|
+
index: number;
|
|
29
|
+
}>;
|
|
30
|
+
export type FieldDiffIdentity = (input: FieldDiffIdentityInput) => string | null | undefined;
|
|
31
|
+
export type BuildFieldDiffOptions = Readonly<{
|
|
32
|
+
identifyArrayItem?: FieldDiffIdentity;
|
|
33
|
+
}>;
|
|
34
|
+
export declare function buildFieldDiffs(local: Record<string, unknown>, remote: Record<string, unknown>, options?: BuildFieldDiffOptions): FieldDiff[];
|
|
35
|
+
export declare function formatFieldPath(path: readonly FieldPathSegment[]): string;
|
|
36
|
+
export declare function fieldDiffToChange(diff: FieldDiff): FieldChange;
|
|
37
|
+
export declare function buildFieldChanges(local: Record<string, unknown>, remote: Record<string, unknown>, options?: BuildFieldDiffOptions): FieldChange[];
|
|
38
|
+
export declare function formatFieldDiffValue(value: unknown, maxChars?: number): string;
|
|
39
|
+
export declare function formatFieldChange(change: FieldChange): string;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* Provides content synchronization between local files and CMS.
|
|
5
5
|
*/
|
|
6
6
|
export { calculateDiff, calculatePullDiff, hasPendingChanges, formatDiffSummary, formatDiffDetail, buildJsonDiff, type ContentDiff, type EntryDiff, type PageDiff, type BlockDiff, type NavigationDiff, type DiffType, type DiffOptions, type JsonDiff, type JsonDiffMode, type JsonDiffChange, type JsonDiffChangeType, type JsonDiffOperation, type PullJsonDiff, type PullJsonDiffChange, type FieldChange, findChangedFieldsWithValues, formatValue, formatHumanDiff, } from './diff';
|
|
7
|
+
export { buildFieldDiffs, buildFieldChanges, formatFieldPath, formatFieldChange, formatFieldDiffValue, type FieldDiff, type FieldDiffKind, type FieldDiffIdentity, type FieldDiffIdentityInput, type FieldPathSegment, type BuildFieldDiffOptions, } from './field-diff';
|
|
7
8
|
export { executeResidualSettingsSyncPlan, createEmptySyncResult, formatSyncResult, type SyncOptions, type SyncResult, type ResidualSettingsDiff, type ResidualSettingsLocalContent, } from './executor';
|
|
8
9
|
export { addCounters, mergeManySyncResults, mergeSyncResults, } from './syncResultAggregation';
|
|
9
10
|
export { extractMediaPaths, buildStorageUrl, downloadMedia, syncMedia, type MediaSyncResult, type MediaSyncSummary, type MediaSyncOptions, type MediaUploadClient, } from './media';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* and executed by the blocks runtime without leaking blocks types into the SDK
|
|
7
7
|
* public `.d.ts`.
|
|
8
8
|
*/
|
|
9
|
-
import type { LinkValue, Media, TipTapNode } from '../contracts';
|
|
9
|
+
import type { InlineText, LinkValue, Media, TipTapNode } from '../contracts';
|
|
10
10
|
export type VisibilityLevel = 'admin' | 'designer' | 'author';
|
|
11
11
|
export type ReferenceValueFrom = 'id' | 'identifier' | 'slug';
|
|
12
12
|
export declare const SDK_ICON_PICKER_PRESETS: readonly ["cta", "feature"];
|
|
@@ -114,6 +114,11 @@ export type TextFieldDefinition = FieldBase & {
|
|
|
114
114
|
export type RichTextFieldDefinition = FieldBase & {
|
|
115
115
|
type: 'richText';
|
|
116
116
|
};
|
|
117
|
+
export type InlineTextFieldDefinition = FieldBase & {
|
|
118
|
+
type: 'inlineText';
|
|
119
|
+
maxLength?: number;
|
|
120
|
+
plainTextField?: string;
|
|
121
|
+
};
|
|
117
122
|
export type MediaFieldDefinition = FieldBase & {
|
|
118
123
|
type: 'media';
|
|
119
124
|
mediaKinds?: Array<'image' | 'video' | 'audio'>;
|
|
@@ -237,5 +242,5 @@ export type EntryPickerFieldDefinition = FieldBase & {
|
|
|
237
242
|
/** Which entry field to store as the value: 'id' (UUID), 'identifier', or 'slug'. */
|
|
238
243
|
valueFrom?: 'id' | 'identifier' | 'slug';
|
|
239
244
|
};
|
|
240
|
-
export type FieldDefinition = TextFieldDefinition | RichTextFieldDefinition | MediaFieldDefinition | FileFieldDefinition | BooleanFieldDefinition | NumberFieldDefinition | DateFieldDefinition | TimeFieldDefinition | DateTimeFieldDefinition | SlugFieldDefinition | UrlFieldDefinition | LinkFieldDefinition | SelectFieldDefinition | ReferenceFieldDefinition | RepeaterFieldDefinition | GroupFieldDefinition | ModalFieldDefinition | TabGroupFieldDefinition | PresetOrCustomFieldDefinition | ContentTypeSelectFieldDefinition | EntryPickerFieldDefinition;
|
|
241
|
-
export type { TipTapNode, Media, LinkValue };
|
|
245
|
+
export type FieldDefinition = TextFieldDefinition | RichTextFieldDefinition | InlineTextFieldDefinition | MediaFieldDefinition | FileFieldDefinition | BooleanFieldDefinition | NumberFieldDefinition | DateFieldDefinition | TimeFieldDefinition | DateTimeFieldDefinition | SlugFieldDefinition | UrlFieldDefinition | LinkFieldDefinition | SelectFieldDefinition | ReferenceFieldDefinition | RepeaterFieldDefinition | GroupFieldDefinition | ModalFieldDefinition | TabGroupFieldDefinition | PresetOrCustomFieldDefinition | ContentTypeSelectFieldDefinition | EntryPickerFieldDefinition;
|
|
246
|
+
export type { InlineText, TipTapNode, Media, LinkValue };
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
* });
|
|
31
31
|
* ```
|
|
32
32
|
*/
|
|
33
|
-
import type { BooleanFieldDefinition, ContentTypeSelectFieldDefinition, DateFieldDefinition, DateTimeFieldDefinition, EntryPickerFieldDefinition, FileFieldDefinition, FieldDefinition, GroupFieldDefinition, LinkFieldDefinition, MediaFieldDefinition, ModalFieldDefinition, NumberFieldDefinition, PresetOrCustomFieldDefinition, ReferenceFieldDefinition, RepeaterFieldDefinition, RichTextFieldDefinition, SelectFieldDefinition, SlugFieldDefinition, TabGroupFieldDefinition, TextFieldDefinition, TimeFieldDefinition, UrlFieldDefinition } from './field-definitions';
|
|
34
|
-
import type { LinkValue, Media, TipTapNode } from '../contracts';
|
|
33
|
+
import type { BooleanFieldDefinition, ContentTypeSelectFieldDefinition, DateFieldDefinition, DateTimeFieldDefinition, EntryPickerFieldDefinition, FileFieldDefinition, FieldDefinition, GroupFieldDefinition, InlineTextFieldDefinition, LinkFieldDefinition, MediaFieldDefinition, ModalFieldDefinition, NumberFieldDefinition, PresetOrCustomFieldDefinition, ReferenceFieldDefinition, RepeaterFieldDefinition, RichTextFieldDefinition, SelectFieldDefinition, SlugFieldDefinition, TabGroupFieldDefinition, TextFieldDefinition, TimeFieldDefinition, UrlFieldDefinition } from './field-definitions';
|
|
34
|
+
import type { InlineText, LinkValue, Media, TipTapNode } from '../contracts';
|
|
35
35
|
import type { ContentTypeConfig, EntryConfig } from './content-types';
|
|
36
36
|
export type { TipTapNode, Media, LinkValue, InternalLinkValue, ExternalLinkValue, CustomLinkValue, } from '../contracts';
|
|
37
37
|
/**
|
|
@@ -65,6 +65,8 @@ export type FieldValueType<F extends FieldDefinition> = F extends {
|
|
|
65
65
|
} ? number : F extends {
|
|
66
66
|
type: 'richText';
|
|
67
67
|
} ? TipTapNode : F extends {
|
|
68
|
+
type: 'inlineText';
|
|
69
|
+
} ? InlineText : F extends {
|
|
68
70
|
type: 'media';
|
|
69
71
|
} ? Media | null : F extends {
|
|
70
72
|
type: 'file';
|
|
@@ -93,7 +95,7 @@ export type FieldValueType<F extends FieldDefinition> = F extends {
|
|
|
93
95
|
type: 'select';
|
|
94
96
|
} ? string : F extends {
|
|
95
97
|
type: 'entryPicker';
|
|
96
|
-
} ? string | null : F extends TextFieldDefinition ? string : F extends BooleanFieldDefinition ? boolean : F extends NumberFieldDefinition ? number : F extends RichTextFieldDefinition ? TipTapNode : F extends MediaFieldDefinition ? Media | null : F extends FileFieldDefinition ? Media | null : F extends LinkFieldDefinition ? LinkValue | null : F extends DateFieldDefinition ? string : F extends TimeFieldDefinition ? string : F extends DateTimeFieldDefinition ? string : F extends SlugFieldDefinition ? string : F extends UrlFieldDefinition ? string : F extends ReferenceFieldDefinition ? string : F extends PresetOrCustomFieldDefinition ? string : F extends ContentTypeSelectFieldDefinition ? string : F extends SelectFieldDefinition & {
|
|
98
|
+
} ? string | null : F extends TextFieldDefinition ? string : F extends BooleanFieldDefinition ? boolean : F extends NumberFieldDefinition ? number : F extends RichTextFieldDefinition ? TipTapNode : F extends InlineTextFieldDefinition ? InlineText : F extends MediaFieldDefinition ? Media | null : F extends FileFieldDefinition ? Media | null : F extends LinkFieldDefinition ? LinkValue | null : F extends DateFieldDefinition ? string : F extends TimeFieldDefinition ? string : F extends DateTimeFieldDefinition ? string : F extends SlugFieldDefinition ? string : F extends UrlFieldDefinition ? string : F extends ReferenceFieldDefinition ? string : F extends PresetOrCustomFieldDefinition ? string : F extends ContentTypeSelectFieldDefinition ? string : F extends SelectFieldDefinition & {
|
|
97
99
|
multiple: true;
|
|
98
100
|
} ? string[] : F extends SelectFieldDefinition ? string : F extends EntryPickerFieldDefinition ? string | null : F extends GroupFieldDefinition & {
|
|
99
101
|
schema: {
|
|
@@ -16,6 +16,7 @@ export declare const BINDING_TRANSFORMS: {
|
|
|
16
16
|
readonly RICHTEXT_FIRST_PARAGRAPH: "richtext.firstParagraph";
|
|
17
17
|
readonly DATE_FORMAT_SHORT: "date.formatShort";
|
|
18
18
|
readonly DATE_FORMAT_LONG: "date.formatLong";
|
|
19
|
+
readonly TEXT_INLINE_TEXT: "text.inlineText";
|
|
19
20
|
};
|
|
20
21
|
export type BindingTransformName = typeof BINDING_TRANSFORMS[keyof typeof BINDING_TRANSFORMS];
|
|
21
22
|
export declare const BINDING_TRANSFORM_VALUES: [BindingTransformName, ...BindingTransformName[]];
|
|
@@ -17,6 +17,24 @@ export type TipTapNode = {
|
|
|
17
17
|
attrs?: Record<string, unknown>;
|
|
18
18
|
marks?: TipTapMark[];
|
|
19
19
|
};
|
|
20
|
+
export type InlineTextAccentTone = 'accent' | 'brand' | 'contrast';
|
|
21
|
+
export type InlineTextHighlightTone = 'soft' | 'accent' | 'brand';
|
|
22
|
+
export type InlineTextMark = Readonly<{
|
|
23
|
+
kind: 'strong';
|
|
24
|
+
}> | Readonly<{
|
|
25
|
+
kind: 'emphasis';
|
|
26
|
+
}> | Readonly<{
|
|
27
|
+
kind: 'accent';
|
|
28
|
+
tone: InlineTextAccentTone;
|
|
29
|
+
}> | Readonly<{
|
|
30
|
+
kind: 'highlight';
|
|
31
|
+
tone: InlineTextHighlightTone;
|
|
32
|
+
}>;
|
|
33
|
+
export type InlineTextRun = Readonly<{
|
|
34
|
+
text: string;
|
|
35
|
+
marks?: readonly InlineTextMark[];
|
|
36
|
+
}>;
|
|
37
|
+
export type InlineText = readonly InlineTextRun[];
|
|
20
38
|
export type InternalRouteOnlyLinkValue = {
|
|
21
39
|
kind: 'internal';
|
|
22
40
|
routeId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { TipTapNode, TipTapMark, Media, LinkValue, InternalRouteOnlyLinkValue, InternalResolvedLinkValue, InternalLinkValue, ExternalLinkValue, CustomLinkValue, PageLinkValue, EntryLinkValue, RichTextPrimitiveProps, RichTextVariant, } from './content';
|
|
1
|
+
export type { TipTapNode, TipTapMark, InlineText, InlineTextAccentTone, InlineTextHighlightTone, InlineTextMark, InlineTextRun, Media, LinkValue, InternalRouteOnlyLinkValue, InternalResolvedLinkValue, InternalLinkValue, ExternalLinkValue, CustomLinkValue, PageLinkValue, EntryLinkValue, RichTextPrimitiveProps, RichTextVariant, } from './content';
|
|
2
2
|
export type { AppointmentBookingContent, BlogListingContent, BlogPostContent, BodyTextAlignment, BodyTextContent, ButtonVariant, CalendarTabViews, CartContent, CardStylesContent, CheckoutContent, CollectionContent, ColumnsContent, ColumnOption, ContainerStylesContent, CourseDetailsContent, CourseRegistrationContent, CtaFullContent, DisplayMode, EmbedContent, EventCalendarContent, EventDetailsContent, EventLayout, EventListingContent, EventRegistrationContent, EventSpotlightContent, FaqContent, FaqItem, FilterAutoShow, FormBlockContent, GiftingContent, HeroContent, HeroCta, HeroCtaInput, HeroMedia, ImageColSize, ImageGalleryContent, LocationMapContent, LayoutAlign, LayoutWidth, MediaTextAlignment, MediaTextAspectRatio, MediaTextContent, MediaTextImagePosition, NewsletterSignupContent, NewsletterSignupPreset, ProductDetailContent, ProductListContent, SectionStylesContent, SemanticIconId, SemanticSpacing, ShopContent, SingleButtonContent, SiteFooterContent, SiteHeaderContent, StackContentAlignment, StackImagePosition, SystemBlockContentByFullKind, SystemBlockContentByKind, SystemBlockContentFor, SystemBlockShortKind, TeamMembersContent, TestimonialEntryContent, TestimonialsBlockContent, ThumbnailPadding, ThumbnailShape, VideoGridContent, WeekStart, BlockIconValue, FeatureCardIconTreatment, } from './system-block-content';
|
|
3
3
|
export type { PageOutline, BlockOutline, RouteMap, RouteMapEntry, OccurrenceContextData, EntrySubrouteContextData, } from './page';
|
|
4
4
|
export type { Theme, ThemeTokens } from './theme';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* These are SDK-owned copies for SDK consumers so override typing does not
|
|
5
5
|
* require importing internal blocks package types.
|
|
6
6
|
*/
|
|
7
|
-
import type { LinkValue, Media, TipTapNode } from './content';
|
|
7
|
+
import type { InlineText, LinkValue, Media, TipTapNode } from './content';
|
|
8
8
|
import type { Brand, EventCategoryId, VenueId } from '../../../core/src/index';
|
|
9
9
|
type UnknownRecord = Record<string, unknown>;
|
|
10
10
|
type ImageMedia = Omit<Media, 'type'> & {
|
|
@@ -386,7 +386,8 @@ export type HeroCta = {
|
|
|
386
386
|
export type HeroCtaInput = HeroCta;
|
|
387
387
|
export type HeroContent = {
|
|
388
388
|
eyebrow?: string;
|
|
389
|
-
headline
|
|
389
|
+
headline?: string;
|
|
390
|
+
headlineInline: InlineText;
|
|
390
391
|
subheadline?: string;
|
|
391
392
|
contentAlignment?: 'left' | 'center' | 'right';
|
|
392
393
|
verticalAlignment?: 'top' | 'center' | 'bottom';
|
|
@@ -12,6 +12,7 @@ export declare const TRANSFORMS: {
|
|
|
12
12
|
RICHTEXT_FIRST_PARAGRAPH: "richtext.firstParagraph";
|
|
13
13
|
DATE_FORMAT_SHORT: "date.formatShort";
|
|
14
14
|
DATE_FORMAT_LONG: "date.formatLong";
|
|
15
|
+
TEXT_INLINE_TEXT: "text.inlineText";
|
|
15
16
|
};
|
|
16
17
|
export declare const BINDING_SOURCES: BindingSource[];
|
|
17
18
|
export declare const isRecord: typeof blocksIsRecord;
|
|
@@ -33,10 +33,10 @@ export declare const accordionSystemSchema: z.ZodObject<{
|
|
|
33
33
|
spacious: "spacious";
|
|
34
34
|
}>;
|
|
35
35
|
corners: z.ZodNullable<z.ZodEnum<{
|
|
36
|
+
soft: "soft";
|
|
36
37
|
square: "square";
|
|
37
38
|
rounded: "rounded";
|
|
38
39
|
pill: "pill";
|
|
39
|
-
soft: "soft";
|
|
40
40
|
}>>;
|
|
41
41
|
border: z.ZodNullable<z.ZodObject<{
|
|
42
42
|
widthClass: z.ZodString;
|
|
@@ -152,11 +152,11 @@ export declare const gradientSharpnessSchema: z.ZodEnum<{
|
|
|
152
152
|
}>;
|
|
153
153
|
export declare const prioritySchema: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
154
154
|
export declare const variantRoleSchema: z.ZodEnum<{
|
|
155
|
+
accent: "accent";
|
|
155
156
|
link: "link";
|
|
156
157
|
primary: "primary";
|
|
157
158
|
secondary: "secondary";
|
|
158
159
|
outline: "outline";
|
|
159
|
-
accent: "accent";
|
|
160
160
|
ghost: "ghost";
|
|
161
161
|
tertiary: "tertiary";
|
|
162
162
|
}>;
|
|
@@ -93,10 +93,10 @@ export declare const cardBorderSchema: z.ZodObject<{
|
|
|
93
93
|
}, z.core.$strip>;
|
|
94
94
|
/** Per-corner radius value. `expressive` is a large block-radius multiple. */
|
|
95
95
|
export declare const cardCornerValueSchema: z.ZodEnum<{
|
|
96
|
+
soft: "soft";
|
|
96
97
|
square: "square";
|
|
97
98
|
rounded: "rounded";
|
|
98
99
|
pill: "pill";
|
|
99
|
-
soft: "soft";
|
|
100
100
|
expressive: "expressive";
|
|
101
101
|
}>;
|
|
102
102
|
export type CardCornerValue = z.infer<typeof cardCornerValueSchema>;
|
|
@@ -122,31 +122,31 @@ export declare const cardAccentEdgeSchema: z.ZodObject<{
|
|
|
122
122
|
export type CardAccentEdge = z.infer<typeof cardAccentEdgeSchema>;
|
|
123
123
|
export declare const cardCornerRadiiSchema: z.ZodObject<{
|
|
124
124
|
topLeft: z.ZodOptional<z.ZodEnum<{
|
|
125
|
+
soft: "soft";
|
|
125
126
|
square: "square";
|
|
126
127
|
rounded: "rounded";
|
|
127
128
|
pill: "pill";
|
|
128
|
-
soft: "soft";
|
|
129
129
|
expressive: "expressive";
|
|
130
130
|
}>>;
|
|
131
131
|
topRight: z.ZodOptional<z.ZodEnum<{
|
|
132
|
+
soft: "soft";
|
|
132
133
|
square: "square";
|
|
133
134
|
rounded: "rounded";
|
|
134
135
|
pill: "pill";
|
|
135
|
-
soft: "soft";
|
|
136
136
|
expressive: "expressive";
|
|
137
137
|
}>>;
|
|
138
138
|
bottomLeft: z.ZodOptional<z.ZodEnum<{
|
|
139
|
+
soft: "soft";
|
|
139
140
|
square: "square";
|
|
140
141
|
rounded: "rounded";
|
|
141
142
|
pill: "pill";
|
|
142
|
-
soft: "soft";
|
|
143
143
|
expressive: "expressive";
|
|
144
144
|
}>>;
|
|
145
145
|
bottomRight: z.ZodOptional<z.ZodEnum<{
|
|
146
|
+
soft: "soft";
|
|
146
147
|
square: "square";
|
|
147
148
|
rounded: "rounded";
|
|
148
149
|
pill: "pill";
|
|
149
|
-
soft: "soft";
|
|
150
150
|
expressive: "expressive";
|
|
151
151
|
}>>;
|
|
152
152
|
}, z.core.$strip>;
|
|
@@ -203,38 +203,38 @@ export declare const cardVariantSchema: z.ZodObject<{
|
|
|
203
203
|
}>>;
|
|
204
204
|
}, z.core.$strip>>;
|
|
205
205
|
corners: z.ZodOptional<z.ZodEnum<{
|
|
206
|
+
soft: "soft";
|
|
206
207
|
square: "square";
|
|
207
208
|
rounded: "rounded";
|
|
208
209
|
pill: "pill";
|
|
209
|
-
soft: "soft";
|
|
210
210
|
}>>;
|
|
211
211
|
cornerRadii: z.ZodOptional<z.ZodObject<{
|
|
212
212
|
topLeft: z.ZodOptional<z.ZodEnum<{
|
|
213
|
+
soft: "soft";
|
|
213
214
|
square: "square";
|
|
214
215
|
rounded: "rounded";
|
|
215
216
|
pill: "pill";
|
|
216
|
-
soft: "soft";
|
|
217
217
|
expressive: "expressive";
|
|
218
218
|
}>>;
|
|
219
219
|
topRight: z.ZodOptional<z.ZodEnum<{
|
|
220
|
+
soft: "soft";
|
|
220
221
|
square: "square";
|
|
221
222
|
rounded: "rounded";
|
|
222
223
|
pill: "pill";
|
|
223
|
-
soft: "soft";
|
|
224
224
|
expressive: "expressive";
|
|
225
225
|
}>>;
|
|
226
226
|
bottomLeft: z.ZodOptional<z.ZodEnum<{
|
|
227
|
+
soft: "soft";
|
|
227
228
|
square: "square";
|
|
228
229
|
rounded: "rounded";
|
|
229
230
|
pill: "pill";
|
|
230
|
-
soft: "soft";
|
|
231
231
|
expressive: "expressive";
|
|
232
232
|
}>>;
|
|
233
233
|
bottomRight: z.ZodOptional<z.ZodEnum<{
|
|
234
|
+
soft: "soft";
|
|
234
235
|
square: "square";
|
|
235
236
|
rounded: "rounded";
|
|
236
237
|
pill: "pill";
|
|
237
|
-
soft: "soft";
|
|
238
238
|
expressive: "expressive";
|
|
239
239
|
}>>;
|
|
240
240
|
}, z.core.$strip>>;
|
|
@@ -311,38 +311,38 @@ export declare const cardSystemSchema: z.ZodObject<{
|
|
|
311
311
|
}>>;
|
|
312
312
|
}, z.core.$strip>>;
|
|
313
313
|
corners: z.ZodOptional<z.ZodEnum<{
|
|
314
|
+
soft: "soft";
|
|
314
315
|
square: "square";
|
|
315
316
|
rounded: "rounded";
|
|
316
317
|
pill: "pill";
|
|
317
|
-
soft: "soft";
|
|
318
318
|
}>>;
|
|
319
319
|
cornerRadii: z.ZodOptional<z.ZodObject<{
|
|
320
320
|
topLeft: z.ZodOptional<z.ZodEnum<{
|
|
321
|
+
soft: "soft";
|
|
321
322
|
square: "square";
|
|
322
323
|
rounded: "rounded";
|
|
323
324
|
pill: "pill";
|
|
324
|
-
soft: "soft";
|
|
325
325
|
expressive: "expressive";
|
|
326
326
|
}>>;
|
|
327
327
|
topRight: z.ZodOptional<z.ZodEnum<{
|
|
328
|
+
soft: "soft";
|
|
328
329
|
square: "square";
|
|
329
330
|
rounded: "rounded";
|
|
330
331
|
pill: "pill";
|
|
331
|
-
soft: "soft";
|
|
332
332
|
expressive: "expressive";
|
|
333
333
|
}>>;
|
|
334
334
|
bottomLeft: z.ZodOptional<z.ZodEnum<{
|
|
335
|
+
soft: "soft";
|
|
335
336
|
square: "square";
|
|
336
337
|
rounded: "rounded";
|
|
337
338
|
pill: "pill";
|
|
338
|
-
soft: "soft";
|
|
339
339
|
expressive: "expressive";
|
|
340
340
|
}>>;
|
|
341
341
|
bottomRight: z.ZodOptional<z.ZodEnum<{
|
|
342
|
+
soft: "soft";
|
|
342
343
|
square: "square";
|
|
343
344
|
rounded: "rounded";
|
|
344
345
|
pill: "pill";
|
|
345
|
-
soft: "soft";
|
|
346
346
|
expressive: "expressive";
|
|
347
347
|
}>>;
|
|
348
348
|
}, z.core.$strip>>;
|