@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dfosco/storyboard-core",
3
- "version": "3.8.1",
3
+ "version": "3.8.2",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -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={() => { open = false; window.location.href = action.url }}
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
  }
@@ -584,6 +584,8 @@
584
584
  background-color: var(--bgColor-default, #0d1117);
585
585
  color: var(--fgColor-default, #e6edf3);
586
586
  padding: 80px 32px 48px;
587
+ max-width: 960px;
588
+ margin: 0 auto;
587
589
  }
588
590
 
589
591
  .header {