storybook-addon-sdc 0.0.17 → 0.0.18

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.
Files changed (2) hide show
  1. package/README.md +6 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -36,6 +36,12 @@ Here’s why:
36
36
  - With __SDC Storybook__, you can embed __Drupal behaviors__ like `Drupal.attachBehaviors()` directly into the component preview. This ensures the component behaves the same way as it would on the actual site.
37
37
  - Support for `drupalSettings` and `once.js` within Storybook ensures components behave identically during testing as they will on the Drupal site.
38
38
 
39
+ #### 7. Twig.js vs Drupal Twig
40
+ While using __Drupal to render components__ offers tighter integration, there are strong reasons to continue using Twig.js in many scenarios:
41
+
42
+ - Many Components __Don’t Need Full Drupal Logic__. Basic components (buttons, cards, lists) rely on simple HTML and CSS, not on complex template logic. For such components, Twig.js provides sufficient rendering without the need for full Drupal preprocessing.
43
+ - Twig.js Works Well for Frontend-Focused Use Cases.
44
+ - Styling and Behavior Mismatches Can Be Managed Separately in Drupal implelentation phase.
39
45
 
40
46
  ## The addon includes:
41
47
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storybook-addon-sdc",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "description": "Drupal Single Directory Components as stories",
5
5
  "keywords": [
6
6
  "SDC",