...ce_builder.component.experience_builder+image.yml | 8 +++----- .../experience_builder.component.sdc_test+my-cta.yml | 20 +++++++++++--------- ...experience_builder.prop_shape_input.ref+image.yml | 10 ++++++++++ .../experience_builder.prop_shape_input.string.yml | 6 ++++++ ...xperience_builder.prop_share_input.string+uri.yml | 6 ++++++ 5 files changed, 36 insertions(+), 14 deletions(-) diff --git a/config/optional/experience_builder.component.experience_builder+image.yml b/config/optional/experience_builder.component.experience_builder+image.yml index 308aa4a..f43ac82 100644 --- a/config/optional/experience_builder.component.experience_builder+image.yml +++ b/config/optional/experience_builder.component.experience_builder+image.yml @@ -1,14 +1,12 @@ langcode: en status: true dependencies: + config: + - experience_builder.prop_shape_input.ref+image module: - image label: 'My Test Image Component' component: experience_builder+image defaults: props: - image: - field_type: image - field_widget: image_image - default_value: ~ - expression: ℹ︎image␟image + image: '' diff --git a/config/optional/experience_builder.component.sdc_test+my-cta.yml b/config/optional/experience_builder.component.sdc_test+my-cta.yml index 878b047..92e4e02 100644 --- a/config/optional/experience_builder.component.sdc_test+my-cta.yml +++ b/config/optional/experience_builder.component.sdc_test+my-cta.yml @@ -1,22 +1,24 @@ langcode: en status: true dependencies: + config: + - experience_builder.prop_shape_input.string + - experience_builder.prop_shape_input.string+uri module: - sdc_test label: 'My Test CTA Component' component: sdc_test+my-cta defaults: props: + # Inherit *most* of the default input experience for `text` — only override the `default_value`. text: - field_type: string - field_widget: string_textfield - default_value: { value: 'Hello, world!' } - expression: ℹ︎string␟text - href: - field_type: uri - field_widget: uri - default_value: { value: 'https://drupal.org' } - expression: ℹ︎uri␟href + field_type: '' + field_widget: '' + expression: '' + default_value: { value: 'Call to action!' } + # Inherit the complete default input experience for `href`. + href: '' + # Nothing to inherit for `target` — no PropShapeInput config entity exists for that shape. target: field_type: ~ field_widget: ~ diff --git a/config/optional/experience_builder.prop_shape_input.ref+image.yml b/config/optional/experience_builder.prop_shape_input.ref+image.yml new file mode 100644 index 0000000..d834209 --- /dev/null +++ b/config/optional/experience_builder.prop_shape_input.ref+image.yml @@ -0,0 +1,10 @@ +json_schema_type: $ref +$ref: json-schema-definitions://experience_builder.module/image +dependencies: + # This config entity must depend on whichever module provides the JSON schema definition. + module: + - experience_builder +field_type: image +field_widget: image_image +structured_data_prop_expression: ℹ︎image␟image +default_value: ~ diff --git a/config/optional/experience_builder.prop_shape_input.string.yml b/config/optional/experience_builder.prop_shape_input.string.yml new file mode 100644 index 0000000..bc25812 --- /dev/null +++ b/config/optional/experience_builder.prop_shape_input.string.yml @@ -0,0 +1,6 @@ +json_schema_type: string +format: ~ +field_type: string +field_widget: string_textfield +structured_data_prop_expression: ℹ︎string␟value +default_value: { value: 'Hello, world!' } diff --git a/config/optional/experience_builder.prop_share_input.string+uri.yml b/config/optional/experience_builder.prop_share_input.string+uri.yml new file mode 100644 index 0000000..ad55792 --- /dev/null +++ b/config/optional/experience_builder.prop_share_input.string+uri.yml @@ -0,0 +1,6 @@ +json_schema_type: string +format: uri +field_type: uri +field_widget: uri +structured_data_prop_expression: ℹ︎uri␟href +default_value: { value: 'https://drupal.org' }