Empty strings are incorrectly allowed as example string prop values in JavaScript component config schema
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3587211. -->
Reported by: [balintbrews](https://www.drupal.org/user/613760)
Related to !1039
>>>
<h3>Overview</h3>
<p>It's currently possible to create a JavaScript component config entity with an invalid example string prop value by using an empty string.</p>
<p>An error was reported that happened at cache clear, but there might be other cases where this causes issues:</p>
<pre><pre>In StaticPropSource.php line 242:<br><br>[LogicException]<br>Drupal\canvas\PropSource\StaticPropSource::withValue called with invalid value for field type field_item:string.</pre></pre><p><code>component.yml</code> shape to reproduce the issue:</p>
<pre><pre>name: Empty string repro<br>machineName: empty_string_repro<br>props:<br> properties:<br> delta:<br> type: string<br> title: Delta<br> examples:<br> - ''</pre></pre><h3>Proposed resolution</h3>
<h3>User interface changes</h3>
<p>n/a</p>
> Related issue: [Issue #3586958](https://www.drupal.org/node/3586958)
> Related issue: [Issue #3520484](https://www.drupal.org/node/3520484)
issue