storybook-addon-sdc 0.5.5 → 0.5.7
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 +2 -2
- package/dist/preset.js +6917 -5010
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -329,7 +329,7 @@ $schema: https://git.drupalcode.org/project/drupal/-/raw/HEAD/core/assets/schema
|
|
|
329
329
|
|
|
330
330
|
- **Validation Warnings:** Validation errors or warnings are logged to the console, helping developers identify any issues with component configurations. **Note:** Validation will not break the rendering of the components. Even if a validation error occurs, the component will still appear in Storybook, and the warning will be logged for review.
|
|
331
331
|
|
|
332
|
-
To
|
|
332
|
+
To enable validation, set `validate: URL of schema`:
|
|
333
333
|
|
|
334
334
|
```js
|
|
335
335
|
const config = {
|
|
@@ -339,7 +339,7 @@ const config = {
|
|
|
339
339
|
name: 'storybook-addon-sdc',
|
|
340
340
|
options: {
|
|
341
341
|
sdcStorybookOptions: {
|
|
342
|
-
validate:
|
|
342
|
+
validate: 'https://git.drupalcode.org/project/drupal/-/raw/HEAD/core/assets/schemas/v1/metadata.schema.json',
|
|
343
343
|
},
|
|
344
344
|
},
|
|
345
345
|
},
|