storybook-addon-sdc 0.5.6 → 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 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 disable validation, set `validate: false`:
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: false, // Disable schema validation
342
+ validate: 'https://git.drupalcode.org/project/drupal/-/raw/HEAD/core/assets/schemas/v1/metadata.schema.json',
343
343
  },
344
344
  },
345
345
  },
package/dist/preset.js CHANGED
@@ -10660,7 +10660,9 @@ function resolveComponentPath2(namespace, component) {
10660
10660
  return resolvedPath;
10661
10661
  }
10662
10662
  var defaultOptions = {
10663
- validate: "https://git.drupalcode.org/project/drupal/-/raw/HEAD/core/assets/schemas/v1/metadata.schema.json"
10663
+ validate: false
10664
+ // validate:
10665
+ // 'https://git.drupalcode.org/project/drupal/-/raw/HEAD/core/assets/schemas/v1/metadata.schema.json',
10664
10666
  };
10665
10667
  async function viteFinal(config, options) {
10666
10668
  options.sdcStorybookOptions = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storybook-addon-sdc",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
4
4
  "description": "Drupal Single Directory Components as stories",
5
5
  "keywords": [
6
6
  "SDC",