From 98b83da2435cff732775891fdda14c79fc7cae9a Mon Sep 17 00:00:00 2001 From: Garvish Panchal <85312938+Gxrvish@users.noreply.github.com> Date: Mon, 20 Jul 2026 16:08:17 +0530 Subject: [PATCH] docs: update DataSources examples to dataResolver format (#6787) Component-level data-variable props moved into the dataResolver object in #6495, but the docs still showed the old flat shape, which now fails silently (no render, no updates on record change). Style and trait data variables keep the flat shape, so those examples are left untouched. --- docs/modules/DataSources.md | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/docs/modules/DataSources.md b/docs/modules/DataSources.md index aaec2243c..188f86b4e 100644 --- a/docs/modules/DataSources.md +++ b/docs/modules/DataSources.md @@ -52,8 +52,10 @@ editor.addComponents([ components: [ { type: 'data-variable', - defaultValue: 'default', - path: 'my-datasource.id1.content', + dataResolver: { + defaultValue: 'default', + path: 'my-datasource.id1.content', + }, }, ], }, @@ -76,8 +78,10 @@ editor.addComponents([ components: [ { type: 'data-variable', - defaultValue: 'default', - path: 'my-datasource.id1.content', + dataResolver: { + defaultValue: 'default', + path: 'my-datasource.id1.content', + }, }, ], style: { @@ -261,8 +265,10 @@ editor.addComponents([ components: [ { type: 'data-variable', - defaultValue: 'default', - path: 'my-datasource.id1.counter', + dataResolver: { + defaultValue: 'default', + path: 'my-datasource.id1.counter', + }, }, ], },