@dfosco/storyboard-react 1.18.0 → 1.20.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dfosco/storyboard-react",
3
- "version": "1.18.0",
3
+ "version": "1.20.0",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@dfosco/storyboard-core": "*",
@@ -98,6 +98,12 @@ function generateModule(index, root) {
98
98
  initCalls.push(`initFeatureFlags(${JSON.stringify(config.featureFlags)})`)
99
99
  }
100
100
 
101
+ // Plugin configuration from storyboard.config.json
102
+ if (config?.plugins && Object.keys(config.plugins).length > 0) {
103
+ imports.push(`import { initPlugins } from '@dfosco/storyboard-core'`)
104
+ initCalls.push(`initPlugins(${JSON.stringify(config.plugins)})`)
105
+ }
106
+
101
107
  return [
102
108
  imports.join('\n'),
103
109
  '',