@dfosco/storyboard-core 4.2.0-beta.24 → 4.2.0-beta.25
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 +1 -1
- package/src/index.js +2 -2
- package/src/mountStoryboardCore.js +12 -10
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -82,7 +82,7 @@ export { initUIConfig, isMenuHidden, getHiddenItems } from './uiConfig.js'
|
|
|
82
82
|
export { initToolRegistry, registerToolModule, setToolComponent, setToolGuardResult, getToolComponent, getToolModule, getToolsForToolbar, getToolConfig, getAllToolConfigs, subscribeToToolRegistry, getToolRegistrySnapshot } from './toolRegistry.js'
|
|
83
83
|
|
|
84
84
|
// Toolbar config store (reactive layered overrides: core → custom → prototype → user)
|
|
85
|
-
export { initToolbarConfig, setPrototypeToolbarConfig, clearPrototypeToolbarConfig, getToolbarConfig, subscribeToToolbarConfig, getToolbarConfigSnapshot, setClientToolbarOverrides } from './toolbarConfigStore.js'
|
|
85
|
+
export { initToolbarConfig, setPrototypeToolbarConfig, clearPrototypeToolbarConfig, getToolbarConfig, subscribeToToolbarConfig, getToolbarConfigSnapshot, setClientToolbarOverrides, consumeClientToolbarOverrides } from './toolbarConfigStore.js'
|
|
86
86
|
|
|
87
87
|
// Toolbar tool state management (runtime state for toolbar tools)
|
|
88
88
|
export { TOOL_STATES, initToolbarToolStates, setToolbarToolState, getToolbarToolState, isToolbarToolLocalOnly, subscribeToToolbarToolStates, getToolbarToolStatesSnapshot } from './toolStateStore.js'
|
|
@@ -92,7 +92,7 @@ export { initCommentsConfig, getCommentsConfig, isCommentsEnabled } from './comm
|
|
|
92
92
|
|
|
93
93
|
// Canvas config (paste rules, canvas-level overrides)
|
|
94
94
|
export { initCanvasConfig, getPasteRules, getTerminalConfig, getAgentsConfig, isTerminalResizable, getTerminalDimensions, getCanvasZoom } from './canvasConfig.js'
|
|
95
|
-
export { getCommandPaletteConfig } from './commandPaletteConfig.js'
|
|
95
|
+
export { getCommandPaletteConfig, initCommandPaletteConfig } from './commandPaletteConfig.js'
|
|
96
96
|
|
|
97
97
|
// Unified config store
|
|
98
98
|
export { initConfig, getConfig, setOverrides, clearOverrides, clearAllOverrides, subscribeToConfig, getConfigSnapshot } from './configStore.js'
|
|
@@ -13,15 +13,17 @@
|
|
|
13
13
|
import { installHideParamListener } from './interceptHideParams.js'
|
|
14
14
|
import { installHistorySync } from './hideMode.js'
|
|
15
15
|
import { installBodyClassSync } from './bodyClasses.js'
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
import {
|
|
17
|
+
initCommentsConfig, isCommentsEnabled,
|
|
18
|
+
initFeatureFlags,
|
|
19
|
+
initPlugins,
|
|
20
|
+
initUIConfig,
|
|
21
|
+
initCanvasConfig,
|
|
22
|
+
initCommandPaletteConfig,
|
|
23
|
+
initToolbarConfig, consumeClientToolbarOverrides,
|
|
24
|
+
initCustomerModeConfig,
|
|
25
|
+
getConfig,
|
|
26
|
+
} from '@dfosco/storyboard-core'
|
|
25
27
|
|
|
26
28
|
let _mounted = false
|
|
27
29
|
|
|
@@ -269,7 +271,7 @@ export async function mountStoryboardCore(config = {}, options = {}) {
|
|
|
269
271
|
// Load toolbar config from the unified store.
|
|
270
272
|
// The unified store already has core defaults merged with client overrides.
|
|
271
273
|
// Fall back to legacy merging if unified store wasn't seeded.
|
|
272
|
-
const { deepMerge } = await import('
|
|
274
|
+
const { deepMerge } = await import('@dfosco/storyboard-core')
|
|
273
275
|
let toolbarConfig = uc.toolbar && Object.keys(uc.toolbar).length > 0
|
|
274
276
|
? { ...uc.toolbar }
|
|
275
277
|
: null
|