@dfosco/storyboard-core 3.8.1 → 3.8.2
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
package/src/CommandMenu.svelte
CHANGED
|
@@ -169,7 +169,15 @@
|
|
|
169
169
|
{@const itemState = action.toolKey ? getToolbarToolState(action.toolKey) : 'active'}
|
|
170
170
|
{@const itemLocalOnly = action.toolKey ? isToolbarToolLocalOnly(action.toolKey) : false}
|
|
171
171
|
<DropdownMenu.Item
|
|
172
|
-
onclick={() => {
|
|
172
|
+
onclick={() => {
|
|
173
|
+
open = false
|
|
174
|
+
if (action.url.startsWith('/') && !action.url.startsWith('//')) {
|
|
175
|
+
const base = (basePath || '/').replace(/\/+$/, '')
|
|
176
|
+
window.location.href = (base === '/' ? '' : base) + action.url
|
|
177
|
+
} else {
|
|
178
|
+
window.location.href = action.url
|
|
179
|
+
}
|
|
180
|
+
}}
|
|
173
181
|
disabled={itemState === 'inactive'}
|
|
174
182
|
class={itemState === 'dimmed' ? 'opacity-50' : ''}
|
|
175
183
|
>
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import Icon from './svelte-plugin-ui/components/Icon.svelte'
|
|
10
10
|
import { inspectElement, inspectElementChain } from './inspector/fiberWalker.js'
|
|
11
11
|
import { createMouseMode } from './inspector/mouseMode.js'
|
|
12
|
-
import { getColors } from './inspector/highlighter.js'
|
|
12
|
+
import { getColors, createInspectorHighlighter } from './inspector/highlighter.js'
|
|
13
13
|
|
|
14
14
|
/** @type {{ name: string, props: object, source: { fileName: string, lineNumber: number, columnNumber?: number } | null, owner: string | null } | null} */
|
|
15
15
|
let componentInfo = $state(null)
|
|
@@ -255,7 +255,6 @@
|
|
|
255
255
|
|
|
256
256
|
async function getHighlighter() {
|
|
257
257
|
if (highlighter) return highlighter
|
|
258
|
-
const { createInspectorHighlighter } = await import('./inspector/highlighter.js')
|
|
259
258
|
highlighter = await createInspectorHighlighter()
|
|
260
259
|
return highlighter
|
|
261
260
|
}
|