@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
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
var TEMPLATE_BINDING_TRANSFORMS = {
|
|
3
3
|
RICHTEXT_FIRST_PARAGRAPH: "richtext.firstParagraph",
|
|
4
4
|
DATE_FORMAT_SHORT: "date.formatShort",
|
|
5
|
-
DATE_FORMAT_LONG: "date.formatLong"
|
|
5
|
+
DATE_FORMAT_LONG: "date.formatLong",
|
|
6
|
+
TEXT_INLINE_TEXT: "text.inlineText"
|
|
6
7
|
};
|
|
7
8
|
|
|
8
9
|
// ../content-model/src/templates/bindingTypeCompatibility.ts
|
|
9
10
|
var SCALAR_BLOCK_FIELD_TYPES = [
|
|
10
11
|
"text",
|
|
12
|
+
"inlineText",
|
|
11
13
|
"number",
|
|
12
14
|
"slug",
|
|
13
15
|
"url",
|
|
@@ -26,15 +28,15 @@ function isScalarBlockFieldType(type) {
|
|
|
26
28
|
}
|
|
27
29
|
var CONTENT_TO_BLOCK_COMPATIBILITY = {
|
|
28
30
|
// Simple text fields
|
|
29
|
-
text: ["text", "slug", "url"],
|
|
31
|
+
text: ["text", "inlineText", "slug", "url"],
|
|
30
32
|
// Multi-line text
|
|
31
|
-
textarea: ["text"],
|
|
33
|
+
textarea: ["text", "inlineText"],
|
|
32
34
|
// Numeric fields can bind to number inputs or text display fields.
|
|
33
|
-
number: ["number", "text"],
|
|
35
|
+
number: ["number", "text", "inlineText"],
|
|
34
36
|
// Date fields can bind to date/datetime inputs or text display fields.
|
|
35
|
-
date: ["date", "datetime", "text"],
|
|
37
|
+
date: ["date", "datetime", "text", "inlineText"],
|
|
36
38
|
// URL fields can bind to URL inputs or text display fields.
|
|
37
|
-
url: ["url", "text"],
|
|
39
|
+
url: ["url", "text", "inlineText"],
|
|
38
40
|
// Rich text (requires exact match or transform)
|
|
39
41
|
richText: ["richText"],
|
|
40
42
|
// Media fields
|
|
@@ -44,7 +46,7 @@ var CONTENT_TO_BLOCK_COMPATIBILITY = {
|
|
|
44
46
|
// Boolean fields
|
|
45
47
|
boolean: ["boolean"],
|
|
46
48
|
// Select dropdowns (can map to text or select)
|
|
47
|
-
select: ["text", "select"],
|
|
49
|
+
select: ["text", "inlineText", "select"],
|
|
48
50
|
// Reference fields (object or link)
|
|
49
51
|
reference: ["reference", "link"],
|
|
50
52
|
// Link fields (CTA links, etc.)
|
|
@@ -56,7 +58,7 @@ var CONTENT_TO_BLOCK_COMPATIBILITY = {
|
|
|
56
58
|
// Repeater fields (list structure - not directly bindable)
|
|
57
59
|
repeater: ["repeater"],
|
|
58
60
|
// Datetime fields can map to datetime/date inputs or text display fields.
|
|
59
|
-
datetime: ["datetime", "date", "text"]
|
|
61
|
+
datetime: ["datetime", "date", "text", "inlineText"]
|
|
60
62
|
};
|
|
61
63
|
var META_FIELDS = {
|
|
62
64
|
title: "text",
|
|
@@ -76,26 +78,26 @@ function isMetaFieldPath(path) {
|
|
|
76
78
|
var META_FIELD_COMPATIBILITY = {
|
|
77
79
|
// Text meta fields — title/slug carry the alias targets so editors can bind
|
|
78
80
|
// them where the generic 'text' → ['text','slug','url'] would allow.
|
|
79
|
-
title: ["text", "slug", "url"],
|
|
80
|
-
slug: ["text", "slug", "url"],
|
|
81
|
+
title: ["text", "inlineText", "slug", "url"],
|
|
82
|
+
slug: ["text", "inlineText", "slug", "url"],
|
|
81
83
|
// Enum/status fields
|
|
82
|
-
status: ["text", "select"],
|
|
84
|
+
status: ["text", "inlineText", "select"],
|
|
83
85
|
// Date meta fields
|
|
84
|
-
publishedAt: ["text", "date", "datetime"],
|
|
85
|
-
createdAt: ["text", "date", "datetime"],
|
|
86
|
-
updatedAt: ["text", "date", "datetime"]
|
|
86
|
+
publishedAt: ["text", "inlineText", "date", "datetime"],
|
|
87
|
+
createdAt: ["text", "inlineText", "date", "datetime"],
|
|
88
|
+
updatedAt: ["text", "inlineText", "date", "datetime"]
|
|
87
89
|
};
|
|
88
90
|
var NESTED_PATH_COMPATIBILITY = {
|
|
89
91
|
// richText nested paths
|
|
90
92
|
"richText.doc": ["richText"],
|
|
91
|
-
"richText.html": ["text"],
|
|
92
|
-
"richText.plain": ["text"],
|
|
93
|
+
"richText.html": ["text", "inlineText"],
|
|
94
|
+
"richText.plain": ["text", "inlineText"],
|
|
93
95
|
// media nested paths
|
|
94
|
-
"media.url": ["text", "url"],
|
|
95
|
-
"media.alt": ["text"],
|
|
96
|
+
"media.url": ["text", "inlineText", "url"],
|
|
97
|
+
"media.alt": ["text", "inlineText"],
|
|
96
98
|
// file nested paths
|
|
97
|
-
"file.url": ["text", "url"],
|
|
98
|
-
"file.filename": ["text"]
|
|
99
|
+
"file.url": ["text", "inlineText", "url"],
|
|
100
|
+
"file.filename": ["text", "inlineText"]
|
|
99
101
|
};
|
|
100
102
|
function isCompatibleBinding(sourceType, targetType) {
|
|
101
103
|
if (targetType === "repeater") {
|
|
@@ -331,6 +333,10 @@ var TRANSFORM_IO = {
|
|
|
331
333
|
[TEMPLATE_BINDING_TRANSFORMS.DATE_FORMAT_LONG]: {
|
|
332
334
|
acceptsInputTypes: ["date", "datetime"],
|
|
333
335
|
outputType: "text"
|
|
336
|
+
},
|
|
337
|
+
[TEMPLATE_BINDING_TRANSFORMS.TEXT_INLINE_TEXT]: {
|
|
338
|
+
acceptsInputTypes: ["text", "textarea", "select"],
|
|
339
|
+
outputType: "text"
|
|
334
340
|
}
|
|
335
341
|
};
|
|
336
342
|
function getTransformIO(name) {
|
|
@@ -728,6 +734,7 @@ function bindingValidationErrorMessage(error) {
|
|
|
728
734
|
var FIELD_TYPE_CLASSIFICATION = {
|
|
729
735
|
// Leaves — bindable, type maps cleanly into BlockFieldType.
|
|
730
736
|
text: "leaf",
|
|
737
|
+
inlineText: "leaf",
|
|
731
738
|
number: "leaf",
|
|
732
739
|
slug: "leaf",
|
|
733
740
|
url: "leaf",
|
|
@@ -852,6 +859,7 @@ function nestedSdkFields(field) {
|
|
|
852
859
|
return field.tabs.flatMap((tab) => tab.fields);
|
|
853
860
|
case "text":
|
|
854
861
|
case "richText":
|
|
862
|
+
case "inlineText":
|
|
855
863
|
case "media":
|
|
856
864
|
case "file":
|
|
857
865
|
case "boolean":
|
|
@@ -891,6 +899,7 @@ function toContentFieldType(type) {
|
|
|
891
899
|
return type;
|
|
892
900
|
case "slug":
|
|
893
901
|
case "time":
|
|
902
|
+
case "inlineText":
|
|
894
903
|
case "presetOrCustom":
|
|
895
904
|
case "contentTypeSelect":
|
|
896
905
|
case "entryPicker":
|
|
@@ -7348,6 +7348,11 @@ var textFieldSchema = baseFieldSchema.extend({
|
|
|
7348
7348
|
var richTextFieldSchema = baseFieldSchema.extend({
|
|
7349
7349
|
type: z4.literal("richText")
|
|
7350
7350
|
});
|
|
7351
|
+
var inlineTextFieldSchema = baseFieldSchema.extend({
|
|
7352
|
+
type: z4.literal("inlineText"),
|
|
7353
|
+
maxLength: z4.number().int().positive().optional(),
|
|
7354
|
+
plainTextField: z4.string().min(1).optional()
|
|
7355
|
+
});
|
|
7351
7356
|
var mediaFieldSchema = baseFieldSchema.extend({
|
|
7352
7357
|
type: z4.literal("media"),
|
|
7353
7358
|
// Keep full MEDIA_KINDS parse compatibility for pre-file-field manifests.
|
|
@@ -7670,6 +7675,7 @@ function getFieldSchemaInternal() {
|
|
|
7670
7675
|
_fieldSchemaInternal = z4.discriminatedUnion("type", [
|
|
7671
7676
|
textFieldSchema,
|
|
7672
7677
|
richTextFieldSchema,
|
|
7678
|
+
inlineTextFieldSchema,
|
|
7673
7679
|
mediaFieldSchema,
|
|
7674
7680
|
fileFieldSchema,
|
|
7675
7681
|
booleanFieldSchema,
|
|
@@ -20118,8 +20124,16 @@ var heroCopyFragment = defineFragment({
|
|
|
20118
20124
|
id: "headline",
|
|
20119
20125
|
type: "text",
|
|
20120
20126
|
label: "Headline",
|
|
20127
|
+
maxLength: 120,
|
|
20128
|
+
ui: { hidden: true }
|
|
20129
|
+
},
|
|
20130
|
+
{
|
|
20131
|
+
id: "headlineInline",
|
|
20132
|
+
type: "inlineText",
|
|
20133
|
+
label: "Headline",
|
|
20121
20134
|
required: true,
|
|
20122
|
-
maxLength: 120
|
|
20135
|
+
maxLength: 120,
|
|
20136
|
+
plainTextField: "headline"
|
|
20123
20137
|
},
|
|
20124
20138
|
{
|
|
20125
20139
|
id: "subheadline",
|
|
@@ -20144,9 +20158,12 @@ var heroCopyFragment = defineFragment({
|
|
|
20144
20158
|
as: "h1",
|
|
20145
20159
|
// heading-display: uses fluid typography from theme (--fs-h1-display-fluid)
|
|
20146
20160
|
// Color in blocks-static/index.css (.hero-headline)
|
|
20147
|
-
className: "hero-headline heading-display"
|
|
20161
|
+
className: "hero-headline heading-display",
|
|
20162
|
+
// Resolved against top-level block content; keep this beside the sibling headline field.
|
|
20163
|
+
inlineTextFallbackPath: "headline",
|
|
20164
|
+
maxLength: 120
|
|
20148
20165
|
},
|
|
20149
|
-
bind("content.
|
|
20166
|
+
bind("content.headlineInline")
|
|
20150
20167
|
),
|
|
20151
20168
|
text(
|
|
20152
20169
|
{
|
|
@@ -39438,7 +39455,8 @@ function isUnsupportedDynamicSegment(segment) {
|
|
|
39438
39455
|
var BINDING_TRANSFORMS = {
|
|
39439
39456
|
RICHTEXT_FIRST_PARAGRAPH: "richtext.firstParagraph",
|
|
39440
39457
|
DATE_FORMAT_SHORT: "date.formatShort",
|
|
39441
|
-
DATE_FORMAT_LONG: "date.formatLong"
|
|
39458
|
+
DATE_FORMAT_LONG: "date.formatLong",
|
|
39459
|
+
TEXT_INLINE_TEXT: "text.inlineText"
|
|
39442
39460
|
};
|
|
39443
39461
|
var BINDING_TRANSFORM_VALUES = Object.values(BINDING_TRANSFORMS);
|
|
39444
39462
|
var BINDING_TRANSFORM_LIST = BINDING_TRANSFORM_VALUES.join(", ");
|
package/dist/server/config.mjs
CHANGED
|
@@ -7393,6 +7393,11 @@ var textFieldSchema = baseFieldSchema.extend({
|
|
|
7393
7393
|
var richTextFieldSchema = baseFieldSchema.extend({
|
|
7394
7394
|
type: z4.literal("richText")
|
|
7395
7395
|
});
|
|
7396
|
+
var inlineTextFieldSchema = baseFieldSchema.extend({
|
|
7397
|
+
type: z4.literal("inlineText"),
|
|
7398
|
+
maxLength: z4.number().int().positive().optional(),
|
|
7399
|
+
plainTextField: z4.string().min(1).optional()
|
|
7400
|
+
});
|
|
7396
7401
|
var mediaFieldSchema = baseFieldSchema.extend({
|
|
7397
7402
|
type: z4.literal("media"),
|
|
7398
7403
|
// Keep full MEDIA_KINDS parse compatibility for pre-file-field manifests.
|
|
@@ -7715,6 +7720,7 @@ function getFieldSchemaInternal() {
|
|
|
7715
7720
|
_fieldSchemaInternal = z4.discriminatedUnion("type", [
|
|
7716
7721
|
textFieldSchema,
|
|
7717
7722
|
richTextFieldSchema,
|
|
7723
|
+
inlineTextFieldSchema,
|
|
7718
7724
|
mediaFieldSchema,
|
|
7719
7725
|
fileFieldSchema,
|
|
7720
7726
|
booleanFieldSchema,
|
|
@@ -20163,8 +20169,16 @@ var heroCopyFragment = defineFragment({
|
|
|
20163
20169
|
id: "headline",
|
|
20164
20170
|
type: "text",
|
|
20165
20171
|
label: "Headline",
|
|
20172
|
+
maxLength: 120,
|
|
20173
|
+
ui: { hidden: true }
|
|
20174
|
+
},
|
|
20175
|
+
{
|
|
20176
|
+
id: "headlineInline",
|
|
20177
|
+
type: "inlineText",
|
|
20178
|
+
label: "Headline",
|
|
20166
20179
|
required: true,
|
|
20167
|
-
maxLength: 120
|
|
20180
|
+
maxLength: 120,
|
|
20181
|
+
plainTextField: "headline"
|
|
20168
20182
|
},
|
|
20169
20183
|
{
|
|
20170
20184
|
id: "subheadline",
|
|
@@ -20189,9 +20203,12 @@ var heroCopyFragment = defineFragment({
|
|
|
20189
20203
|
as: "h1",
|
|
20190
20204
|
// heading-display: uses fluid typography from theme (--fs-h1-display-fluid)
|
|
20191
20205
|
// Color in blocks-static/index.css (.hero-headline)
|
|
20192
|
-
className: "hero-headline heading-display"
|
|
20206
|
+
className: "hero-headline heading-display",
|
|
20207
|
+
// Resolved against top-level block content; keep this beside the sibling headline field.
|
|
20208
|
+
inlineTextFallbackPath: "headline",
|
|
20209
|
+
maxLength: 120
|
|
20193
20210
|
},
|
|
20194
|
-
bind("content.
|
|
20211
|
+
bind("content.headlineInline")
|
|
20195
20212
|
),
|
|
20196
20213
|
text(
|
|
20197
20214
|
{
|
|
@@ -39471,7 +39488,8 @@ function isUnsupportedDynamicSegment(segment) {
|
|
|
39471
39488
|
var BINDING_TRANSFORMS = {
|
|
39472
39489
|
RICHTEXT_FIRST_PARAGRAPH: "richtext.firstParagraph",
|
|
39473
39490
|
DATE_FORMAT_SHORT: "date.formatShort",
|
|
39474
|
-
DATE_FORMAT_LONG: "date.formatLong"
|
|
39491
|
+
DATE_FORMAT_LONG: "date.formatLong",
|
|
39492
|
+
TEXT_INLINE_TEXT: "text.inlineText"
|
|
39475
39493
|
};
|
|
39476
39494
|
var BINDING_TRANSFORM_VALUES = Object.values(BINDING_TRANSFORMS);
|
|
39477
39495
|
var BINDING_TRANSFORM_LIST = BINDING_TRANSFORM_VALUES.join(", ");
|
package/dist/server/data.mjs
CHANGED
|
@@ -7248,6 +7248,11 @@ var textFieldSchema = baseFieldSchema.extend({
|
|
|
7248
7248
|
var richTextFieldSchema = baseFieldSchema.extend({
|
|
7249
7249
|
type: z4.literal("richText")
|
|
7250
7250
|
});
|
|
7251
|
+
var inlineTextFieldSchema = baseFieldSchema.extend({
|
|
7252
|
+
type: z4.literal("inlineText"),
|
|
7253
|
+
maxLength: z4.number().int().positive().optional(),
|
|
7254
|
+
plainTextField: z4.string().min(1).optional()
|
|
7255
|
+
});
|
|
7251
7256
|
var mediaFieldSchema = baseFieldSchema.extend({
|
|
7252
7257
|
type: z4.literal("media"),
|
|
7253
7258
|
// Keep full MEDIA_KINDS parse compatibility for pre-file-field manifests.
|
|
@@ -7570,6 +7575,7 @@ function getFieldSchemaInternal() {
|
|
|
7570
7575
|
_fieldSchemaInternal = z4.discriminatedUnion("type", [
|
|
7571
7576
|
textFieldSchema,
|
|
7572
7577
|
richTextFieldSchema,
|
|
7578
|
+
inlineTextFieldSchema,
|
|
7573
7579
|
mediaFieldSchema,
|
|
7574
7580
|
fileFieldSchema,
|
|
7575
7581
|
booleanFieldSchema,
|
|
@@ -20099,8 +20105,16 @@ var heroCopyFragment = defineFragment({
|
|
|
20099
20105
|
id: "headline",
|
|
20100
20106
|
type: "text",
|
|
20101
20107
|
label: "Headline",
|
|
20108
|
+
maxLength: 120,
|
|
20109
|
+
ui: { hidden: true }
|
|
20110
|
+
},
|
|
20111
|
+
{
|
|
20112
|
+
id: "headlineInline",
|
|
20113
|
+
type: "inlineText",
|
|
20114
|
+
label: "Headline",
|
|
20102
20115
|
required: true,
|
|
20103
|
-
maxLength: 120
|
|
20116
|
+
maxLength: 120,
|
|
20117
|
+
plainTextField: "headline"
|
|
20104
20118
|
},
|
|
20105
20119
|
{
|
|
20106
20120
|
id: "subheadline",
|
|
@@ -20125,9 +20139,12 @@ var heroCopyFragment = defineFragment({
|
|
|
20125
20139
|
as: "h1",
|
|
20126
20140
|
// heading-display: uses fluid typography from theme (--fs-h1-display-fluid)
|
|
20127
20141
|
// Color in blocks-static/index.css (.hero-headline)
|
|
20128
|
-
className: "hero-headline heading-display"
|
|
20142
|
+
className: "hero-headline heading-display",
|
|
20143
|
+
// Resolved against top-level block content; keep this beside the sibling headline field.
|
|
20144
|
+
inlineTextFallbackPath: "headline",
|
|
20145
|
+
maxLength: 120
|
|
20129
20146
|
},
|
|
20130
|
-
bind("content.
|
|
20147
|
+
bind("content.headlineInline")
|
|
20131
20148
|
),
|
|
20132
20149
|
text(
|
|
20133
20150
|
{
|
package/dist/server/index.mjs
CHANGED