@spatial-elements/sveltekit 1.0.0-beta.10 → 1.0.0-beta.11

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 (29) hide show
  1. package/dist/spatial-element/BrandStageShell.svelte +1 -1
  2. package/dist/spatial-element/BrandStageShell.svelte.d.ts +1 -1
  3. package/dist/spatial-element/CarouselSpatialElement.svelte +3 -4
  4. package/dist/spatial-element/OverflowControls.svelte +5 -1
  5. package/dist/spatial-element/SpaceMouseControl.svelte +159 -0
  6. package/dist/spatial-element/SpaceMouseControl.svelte.d.ts +7 -0
  7. package/dist/spatial-element/SpaceMouseIcon.svelte +12 -0
  8. package/dist/spatial-element/SpaceMouseIcon.svelte.d.ts +26 -0
  9. package/dist/spatial-element/SpatialCarouselSection.svelte +4 -2
  10. package/dist/spatial-element/SpatialElementHelp.svelte +18 -10
  11. package/dist/spatial-element/SpatialElementMediaRail.svelte +4 -3
  12. package/dist/spatial-element/SpatialElementPage.svelte +8 -3
  13. package/dist/spatial-element/SpatialElementPage.svelte.d.ts +4 -0
  14. package/dist/spatial-element/SpatialElementStickyHeader.svelte +17 -5
  15. package/dist/spatial-element/SpatialElementStickyHeader.svelte.d.ts +3 -0
  16. package/dist/spatial-element/SpatialElementSummaryContent.svelte +21 -8
  17. package/dist/spatial-element/SpatialElementSummaryContent.svelte.d.ts +5 -0
  18. package/dist/spatial-element/SpatialIconButton.svelte +11 -4
  19. package/dist/spatial-element/SpatialIconButton.svelte.d.ts +3 -0
  20. package/dist/spatial-element/SpatialNavigationShell.svelte +4 -2
  21. package/dist/spatial-element/SpatialSummaryRoot.svelte +4 -2
  22. package/dist/spatial-element/SpatialViewIcon.svelte +1 -1
  23. package/dist/spatial-element/index.d.ts +1 -0
  24. package/dist/spatial-element/index.js +1 -0
  25. package/dist/spatial-element/layout.generated.css +1 -1
  26. package/dist/stage/ButtonGroup.svelte +2 -1
  27. package/dist/stage/Stage.svelte +70 -7
  28. package/logo.svg +90 -53
  29. package/package.json +2 -2
@@ -16,7 +16,7 @@
16
16
  import type { SpatialTheme } from '@spatial-elements/core/spatial-element/types';
17
17
 
18
18
  interface Props {
19
- /** Enable automatic sensor access / permission on internal navigation for opted-in lists. */
19
+ /** Enable sensor motion on detail geometry and minimaps. Lists opt in independently. */
20
20
  deviceOrientation?: boolean;
21
21
  /** Shared appearance and namespace. Use createSpatialTheme for defaults. */
22
22
  theme: SpatialTheme;
@@ -6,7 +6,7 @@ import type { StageRenderSettings } from '@spatial-elements/core';
6
6
  import type { SpatialMessagesInput } from '@spatial-elements/core/spatial-element/messages';
7
7
  import type { SpatialTheme } from '@spatial-elements/core/spatial-element/types';
8
8
  interface Props {
9
- /** Enable automatic sensor access / permission on internal navigation for opted-in lists. */
9
+ /** Enable sensor motion on detail geometry and minimaps. Lists opt in independently. */
10
10
  deviceOrientation?: boolean;
11
11
  /** Shared appearance and namespace. Use createSpatialTheme for defaults. */
12
12
  theme: SpatialTheme;
@@ -124,7 +124,7 @@
124
124
  data-carousel-theme={JSON.stringify({
125
125
  ...brand.panelTheme,
126
126
  radius: radii.panel,
127
- tintOpacity: Math.min(brand.panelTheme.tintOpacity ?? 0.28, 0.72)
127
+ tintOpacity: Math.max(0, Math.min(brand.panelTheme.tintOpacity ?? 0.28, 1))
128
128
  })}
129
129
  data-catalog-occurrence={occurrence}
130
130
  >
@@ -196,10 +196,10 @@
196
196
  : typeof brand.panelTheme.tint === 'object'
197
197
  ? brand.panelTheme.tint.getStyle()
198
198
  : (brand.panelTheme.tint ?? '#ffffff')}
199
- style:--carousel-panel-tint-opacity={Math.min(brand.panelTheme.tintOpacity ?? 0.28, 0.72) *
199
+ style:--carousel-panel-tint-opacity={Math.max(0, Math.min(brand.panelTheme.tintOpacity ?? 0.28, 1)) *
200
200
  100 +
201
201
  '%'}
202
- style:--carousel-panel-blur={(brand.panelTheme.backdropBlur ?? 5) + 'px'}
202
+ style:--carousel-panel-backdrop={brand.panelTheme.surface === 'solid' ? 'none' : `blur(${Math.max(0, Math.min(brand.panelTheme.backdropBlur ?? 5, 100))}px)`}
203
203
  style:--carousel-focus-blur={interactive && pose.panelOpacity < 1 ? `blur(${(1 - pose.panelOpacity) * 6}px)` : 'none'}
204
204
  style:--carousel-panel-radius={radii.panel + 'px'}
205
205
  use:catalogEndpoint={address('summary-surface')}
@@ -318,7 +318,6 @@
318
318
  margin: 0;
319
319
  --spatial-carousel-compact-height: 40px;
320
320
  box-sizing: border-box;
321
- filter: var(--carousel-focus-blur, none);
322
321
 
323
322
  border-radius: var(--carousel-panel-radius, 14px);
324
323
  padding: 0;
@@ -92,7 +92,7 @@
92
92
  height: 100%;
93
93
  padding: 0;
94
94
  border: 1px solid var(--ps-border, transparent);
95
- border-radius: var(--spatial-element-control-radius, 12px);
95
+ --scroll-button-radius: var(--spatial-element-control-radius, 12px);
96
96
  background: var(--ps-section-standard, #fff);
97
97
  color: var(--spatial-element-navigation-ink, var(--spatial-element-ink));
98
98
  box-shadow: 0 2px 8px #0003;
@@ -101,9 +101,11 @@
101
101
  }
102
102
  .before {
103
103
  left: 0;
104
+ border-radius: 0 var(--scroll-button-radius) var(--scroll-button-radius) 0;
104
105
  }
105
106
  .after {
106
107
  right: 0;
108
+ border-radius: var(--scroll-button-radius) 0 0 var(--scroll-button-radius);
107
109
  }
108
110
  .vertical button {
109
111
  left: 0;
@@ -113,10 +115,12 @@
113
115
  }
114
116
  .vertical .before {
115
117
  top: 0;
118
+ border-radius: 0 0 var(--scroll-button-radius) var(--scroll-button-radius);
116
119
  }
117
120
  .vertical .after {
118
121
  top: auto;
119
122
  bottom: 0;
123
+ border-radius: var(--scroll-button-radius) var(--scroll-button-radius) 0 0;
120
124
  }
121
125
  button:focus-visible {
122
126
  outline: 2px solid var(--spatial-element-accent);
@@ -0,0 +1,159 @@
1
+ <script lang="ts">
2
+ import { getContext, onMount } from 'svelte';
3
+ import { STAGE_CONTEXT_KEY, type StageContext } from '@spatial-elements/core/stage/panelContext';
4
+ import SpatialIconButton from './SpatialIconButton.svelte';
5
+ import SpaceMouseIcon from './SpaceMouseIcon.svelte';
6
+ import { useSpatialMessages } from './messagesContext.js';
7
+
8
+ let { focusAnchor, enabled = true }: { focusAnchor?: HTMLElement; enabled?: boolean } = $props();
9
+ const stage = getContext<StageContext>(STAGE_CONTEXT_KEY);
10
+ const readMessages = useSpatialMessages();
11
+ const copy = $derived(readMessages().interactionHelp);
12
+ const connectionState = $derived(stage.getSpaceMouseState?.() ?? 'idle');
13
+ const connected = $derived(connectionState === 'connected');
14
+ const connecting = $derived(connectionState === 'connecting');
15
+ const label = $derived(
16
+ connected
17
+ ? copy.spaceMouseConnected
18
+ : connecting
19
+ ? copy.spaceMouseConnecting
20
+ : copy.spaceMouseTitle
21
+ );
22
+ const id = $props.id();
23
+ let dialog: HTMLDialogElement;
24
+ let toast: HTMLDivElement;
25
+ let failure = $state<'permission-required' | 'unavailable'>('unavailable');
26
+ let requested = $state(false);
27
+ let toastTimer: ReturnType<typeof setTimeout> | undefined;
28
+
29
+ function connect() {
30
+ dialog.close();
31
+ requested = true;
32
+ stage.setSpaceMouseEnabled?.(true);
33
+ }
34
+ function toggle() {
35
+ if (connected || connecting) {
36
+ requested = false;
37
+ toast.hidePopover();
38
+ stage.setSpaceMouseEnabled?.(false);
39
+ } else connect();
40
+ }
41
+ $effect(() => {
42
+ if (!requested) return;
43
+ if (connectionState === 'connected') {
44
+ requested = false;
45
+ toast.showPopover();
46
+ clearTimeout(toastTimer);
47
+ toastTimer = setTimeout(() => toast.hidePopover(), 3500);
48
+ } else if (connectionState === 'permission-required' || connectionState === 'unavailable') {
49
+ requested = false;
50
+ failure = connectionState;
51
+ dialog.showModal();
52
+ }
53
+ });
54
+ $effect(() => {
55
+ if (!enabled) {
56
+ requested = false;
57
+ dialog?.close();
58
+ toast?.hidePopover();
59
+ }
60
+ });
61
+ onMount(() => () => {
62
+ clearTimeout(toastTimer);
63
+ dialog.close();
64
+ toast.hidePopover();
65
+ });
66
+ </script>
67
+
68
+ <SpatialIconButton
69
+ {label}
70
+ {focusAnchor}
71
+ {enabled}
72
+ pressed={connected}
73
+ busy={connecting}
74
+ onclick={toggle}
75
+ >
76
+ <SpaceMouseIcon />
77
+ </SpatialIconButton>
78
+ <dialog bind:this={dialog} aria-labelledby={`${id}-title`} aria-describedby={`${id}-description`}>
79
+ <h2 id={`${id}-title`}>
80
+ {failure === 'permission-required'
81
+ ? copy.spaceMousePermissionTitle
82
+ : copy.spaceMouseUnavailableTitle}
83
+ </h2>
84
+ <p id={`${id}-description`}>
85
+ {failure === 'permission-required' ? copy.spaceMousePermission : copy.spaceMouseUnavailable}
86
+ </p>
87
+ {#if failure === 'permission-required'}
88
+ <p>{copy.spaceMouseDenied}</p>
89
+ {:else}
90
+ <p>
91
+ <a href="https://3dconnexion.com/" target="_blank" rel="noopener noreferrer"
92
+ >{copy.spaceMouseDiscover}</a
93
+ >
94
+ </p>
95
+ {/if}
96
+ <div class="actions">
97
+ <button type="button" onclick={() => dialog.close()}>{copy.spaceMouseClose}</button>
98
+ {#if failure === 'permission-required'}<button type="button" onclick={connect}
99
+ >{copy.spaceMouseConfirm}</button
100
+ >{/if}
101
+ </div>
102
+ </dialog>
103
+ <div bind:this={toast} popover="manual" role="status" class="connection-toast">
104
+ {copy.spaceMouseReady}
105
+ </div>
106
+
107
+ <style>
108
+ dialog,
109
+ .connection-toast {
110
+ box-sizing: border-box;
111
+ padding: 24px;
112
+ border: 1px solid color-mix(in srgb, var(--spatial-element-ink) 15%, transparent);
113
+ border-radius: var(--spatial-element-panel-radius, 12px);
114
+ color: var(--spatial-element-ink);
115
+ background: var(--ps-section-standard, var(--ps-background, #fff));
116
+ font: inherit;
117
+ box-shadow: 0 8px 32px #0003;
118
+ max-width: min(440px, calc(100vw - 32px));
119
+ }
120
+ dialog::backdrop {
121
+ background: #0006;
122
+ }
123
+ h2 {
124
+ margin: 0 0 12px;
125
+ font-size: 20px;
126
+ }
127
+ p {
128
+ line-height: 1.5;
129
+ }
130
+ a {
131
+ color: var(--spatial-element-accent);
132
+ }
133
+ .actions {
134
+ display: flex;
135
+ justify-content: flex-end;
136
+ gap: 12px;
137
+ }
138
+ button {
139
+ padding: 10px 16px;
140
+ border: 1px solid currentColor;
141
+ border-radius: var(--spatial-element-control-radius);
142
+ background: transparent;
143
+ color: var(--spatial-element-accent);
144
+ font: inherit;
145
+ cursor: pointer;
146
+ }
147
+ button:focus-visible,
148
+ a:focus-visible {
149
+ outline: 2px solid var(--spatial-element-accent);
150
+ outline-offset: 3px;
151
+ }
152
+ .connection-toast {
153
+ position: fixed;
154
+ inset: auto 16px 24px auto;
155
+ margin: 0;
156
+ padding: 12px 20px;
157
+ pointer-events: none;
158
+ }
159
+ </style>
@@ -0,0 +1,7 @@
1
+ type $$ComponentProps = {
2
+ focusAnchor?: HTMLElement;
3
+ enabled?: boolean;
4
+ };
5
+ declare const SpaceMouseControl: import("svelte").Component<$$ComponentProps, {}, "">;
6
+ type SpaceMouseControl = ReturnType<typeof SpaceMouseControl>;
7
+ export default SpaceMouseControl;
@@ -0,0 +1,12 @@
1
+ <svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ width="24"
4
+ height="24"
5
+ viewBox="0 0 583.92242 514.26245"
6
+ fill="currentColor"
7
+ aria-hidden="true"
8
+ >
9
+ <g transform="translate(-296.70282,-553.67371)">
10
+ <path d="m 554.50876,1067.6884 c -93.63185,-2.4763 -146.89661,-15.1443 -196.80245,-38.3441 -7.90309,-3.6739 -27.52684,-14.2376 -35.3451,-20.7389 -4.95526,-4.1206 -14.71558,-18.74412 -17.55026,-24.37032 -5.92473,-11.7593 -9.3009,-29.15544 -7.71932,-46.08693 2.36538,-25.32251 6.44223,-53.71222 18.92407,-78.71134 9.73392,-19.49545 20.41716,-34.58715 34.37139,-49.07913 10.5443,-10.95065 10.69779,-8.84994 21.69314,-30.19782 12.47546,-24.22156 15.81707,-30.34236 21.53714,-46.8922 7.3483,-21.26079 8.32574,-24.71626 8.27719,-46.66914 -0.037,-16.72496 -0.49572,-22.4716 -3.22349,-40.38116 -3.62645,-23.80995 -2.97533,-29.43781 -0.88867,-36.46437 6.5133,-21.93265 43.21203,-41.8034 96.59305,-49.75993 63.22017,-9.42308 150.55274,-8.19971 204.88476,2.94671 20.34811,4.17449 37.59715,12.05695 51.3195,18.78692 8.69396,4.26386 12.60226,9.57588 18.88783,15.85633 12.25097,12.24102 15.62703,20.71188 10.36093,49.50345 -4.28226,23.412 -5.50427,34.51885 -4.84541,50.95065 1.06092,26.45901 9.3427,42.53016 26.7819,79.11957 5.80302,12.1754 9.0665,20.24676 12.40184,25.44166 1.95606,3.04663 3.54243,5.62169 7.19828,10.81369 28.09231,34.17855 56.62782,78.7844 58.98322,124.68648 1.3425,26.16237 -1.80727,47.24235 -18.09957,62.78268 -7.6188,7.267 -34.86364,27.4573 -46.99304,32.9935 -29.7177,13.5642 -74.87319,24.4254 -117.64816,28.9585 -35.67214,3.7804 -105.54271,5.8484 -143.09877,4.8552 z m 90.69755,-38.0949 c 70.82211,-4.1061 118.77643,-13.1562 155.09299,-29.2696 21.33,-9.46391 37.8697,-22.38891 43.9127,-34.31581 2.9678,-5.8573 2.9942,-6.0556 2.983,-22.40957 -0.01,-13.58453 -0.4224,-18.3459 -2.3384,-26.94685 -2.3199,-10.41466 -9.2648,-27.56768 -10.9016,-29.20445 -0.4826,-0.48264 -4.29247,5.29345 -10.13987,9.17095 -29.9304,19.84723 -83.01812,34.12709 -152.10882,41.51302 -32.49802,3.47411 -112.52172,5.58253 -151.04609,3.31354 -75.70697,-4.45897 -138.88983,-23.56148 -169.55491,-47.55525 -3.90755,-3.05745 -7.64708,-6.58224 -7.84719,-6.38213 -0.8514,0.85141 -6.39699,13.16119 -8.32201,19.59117 -4.91445,16.41534 -7.25836,38.47752 -5.25225,49.43697 1.64962,9.012 4.79609,14.5195 12.69442,22.2201 28.73775,28.01821 93.93343,45.97661 184.32803,50.77381 21.65526,1.1493 99.06135,1.1911 118.5,0.064 z m 13.50323,-118.93733 c 66.25435,-5.40349 110.85716,-15.87706 144.99676,-34.04792 7.822,-4.16328 18.4492,-14.39664 17.5053,-16.85657 -1.2386,-3.22803 -9.7907,-15.02599 -13.5602,-18.70678 l -3.8275,-3.73745 -5.2156,4.68931 c -17.8432,16.04255 -61.14455,29.20966 -116.90199,35.54766 -32.68241,3.71503 -40.74089,5.52674 -84.27469,6.10276 -85.11311,1.12619 -133.3187,-5.59297 -178.0884,-21.0407 -18.21254,-6.28421 -30.36824,-12.93498 -39.84774,-21.80194 l -5.0238,-4.69918 -3.47374,3.99658 c -3.98669,4.58674 -14.29163,18.97702 -14.29163,19.95748 0,2.11283 7.6121,9.47996 14.5,14.03338 10.85483,7.17586 20.15195,11.68977 33.64754,16.33644 37.58018,12.93924 85.59881,20.47138 143.85246,22.5645 24.84493,0.8927 86.44606,-0.41632 110.00323,-2.33757 z m -15.00323,-61.14426 c 38.44955,-3.47429 59.23004,-4.62776 83.05247,-10.45744 35.05906,-8.57943 56.94752,-15.0978 56.94752,-26.37364 0,-3.77132 -1.4615,-6.77743 -8.7331,-17.96221 -29.81029,-45.85289 -38.52647,-80.88959 -32.11078,-129.07679 0.66049,-4.96081 0.95768,0.73715 0.66043,0.43989 -0.29726,-0.29725 -4.09008,0.82734 -8.4285,2.49908 -30.96294,11.93111 -72.03027,17.90377 -134.88804,19.61756 -32.99059,0.89947 -80.16875,-1.59543 -107,-5.65844 -21.28658,-3.22339 -40.67307,-8.24791 -52.34294,-13.56604 -4.10531,-1.87085 -7.64259,-3.22316 -7.86061,-3.00514 -0.21803,0.21803 0.11941,-2.85998 0.74985,5.3822 1.92899,25.2187 -1.1048,48.62117 -9.56029,73.74758 -5.53968,16.46177 -12.6948,32.69141 -21.16164,48 -5.42984,9.81751 -6.71998,12.47816 -7.09359,17.10042 -0.44456,5.50002 3.63006,6.09288 8.41974,9.99466 8.4948,6.92005 22.92895,12.35681 41.95683,17.60119 29.25057,8.06192 52.38104,11.51515 89.89265,13.90721 23.06044,1.47052 89.15096,-0.53208 107.5,-2.19009 z m -194.5,-39.70054 c -3.64277,-0.74189 -7.5,-5.30401 -7.5,-8.87058 0,-1.80596 2.01373,-9.48427 4.47496,-17.06291 6.73739,-20.74588 11.52504,-47.64223 11.52504,-64.7461 0,-13.77713 2.57089,-18.53326 10.01799,-18.53326 8.64078,0 15.37711,4.25797 15.37711,17.94526 0,13.66799 -1.26717,33.00559 -3.5596,44.43435 -3.50968,17.4972 -12.0748,41.64092 -16.12242,44.96179 -2.07803,1.70492 -11.71298,2.38062 -14.21308,1.87145 z m 266.70408,-1.78246 c -4.8138,-3.37172 -12.4686,-23.53165 -16.73901,-44.08443 -2.13811,-10.29035 -2.77647,-16.64339 -3.20876,-31.93401 -0.60771,-21.49525 -0.14435,-25.61482 3.26451,-29.02368 3.65917,-3.65917 12.94024,-3.92811 16.26115,0.0186 2.24429,2.66718 3.9192,4.10941 4.45644,14.75 1.49052,29.52084 4.50334,48.8841 12.24616,69.5536 4.56098,12.17555 2.94134,16.74601 -1.50845,20.24622 -3.15846,2.48444 -11.55363,2.72798 -14.77204,0.47372 z M 640.20631,652.02656 c 38.14469,-3.0218 61.92896,-7.58298 84.6279,-16.22932 8.91632,-3.39635 19.20802,-9.41252 21.36167,-12.4873 5.33323,-7.61424 -4.11685,-15.5743 -27.98957,-23.57639 -30.48608,-10.21887 -71.881,-15.08883 -128.51707,-15.11956 -31.99271,-0.0174 -52.93487,1.08506 -76.48293,4.02614 -50.09323,6.25648 -87.0664,20.64883 -82.59726,32.15219 2.1636,5.56899 12.24618,11.77731 27.99203,17.236 40.35152,13.98886 112.00482,19.51194 181.60523,13.99824 z" />
11
+ </g>
12
+ </svg>
@@ -0,0 +1,26 @@
1
+ export default SpaceMouseIcon;
2
+ type SpaceMouseIcon = SvelteComponent<{
3
+ [x: string]: never;
4
+ }, {
5
+ [evt: string]: CustomEvent<any>;
6
+ }, {}> & {
7
+ $$bindings?: string | undefined;
8
+ };
9
+ declare const SpaceMouseIcon: $$__sveltets_2_IsomorphicComponent<{
10
+ [x: string]: never;
11
+ }, {
12
+ [evt: string]: CustomEvent<any>;
13
+ }, {}, {}, string>;
14
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
15
+ new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
16
+ $$bindings?: Bindings;
17
+ } & Exports;
18
+ (internal: unknown, props: {
19
+ $$events?: Events;
20
+ $$slots?: Slots;
21
+ }): Exports & {
22
+ $set?: any;
23
+ $on?: any;
24
+ };
25
+ z_$$bindings?: Bindings;
26
+ }
@@ -587,10 +587,12 @@
587
587
  /* Clip projected DOM hit regions to the same surface as the GPU models. */
588
588
  :global(.carousel-drag-section) {
589
589
  position: relative;
590
- clip-path: inset(0);
590
+ /* clip-path creates a Backdrop Root and prevents frosted panels from
591
+ sampling the stage canvas. Overflow clipping preserves that backdrop. */
592
+ overflow: clip;
591
593
  }
592
594
  :global(.carousel-drag-section[data-section-background-size='full']) {
593
- clip-path: inset(0 calc(50% - 50vw));
595
+ overflow-x: visible;
594
596
  }
595
597
  :global(.carousel-drag-section:has(.interactive)) {
596
598
  touch-action: pan-y pinch-zoom;
@@ -11,6 +11,7 @@
11
11
  import SpatialElementViewToggle from './SpatialElementViewToggle.svelte';
12
12
  import Panel from '../stage/Panel.svelte';
13
13
  import SpatialIconButton from './SpatialIconButton.svelte';
14
+ import SpaceMouseControl from './SpaceMouseControl.svelte';
14
15
  import { useSpatialTheme } from './brandContext.js';
15
16
  import { useSpatialMessages } from './messagesContext.js';
16
17
 
@@ -19,6 +20,7 @@
19
20
  const radii = $derived(resolveSpatialThemeRadii(theme));
20
21
  const stageContext = getContext<StageContext>(STAGE_CONTEXT_KEY);
21
22
  const fullscreen = $derived(stageContext.isFullscreen?.() ?? false);
23
+ const spaceMouseDesktop = $derived(stageContext.isSpaceMouseDesktop?.() ?? false);
22
24
  const readMessages = useSpatialMessages();
23
25
  const messages = $derived(readMessages());
24
26
  const help = $derived(messages.interactionHelp);
@@ -60,7 +62,7 @@
60
62
  open = false;
61
63
  manual = false;
62
64
  helpHovered = false;
63
- if (restoreFocus) button.focus({ preventScroll: true });
65
+ if (restoreFocus) button?.focus({ preventScroll: true });
64
66
  }
65
67
  function position() {
66
68
  if (!open) return;
@@ -94,7 +96,12 @@
94
96
  await tick();
95
97
  if (!open || !enhanced) return;
96
98
  requestPosition();
97
- if (keyboard) closeButton.focus({ preventScroll: true });
99
+ if (keyboard) {
100
+ // The stage restores the native panel's visibility on its next layout frame.
101
+ // Focusing immediately after Svelte's tick still targets a hidden button.
102
+ await new Promise<void>(resolve => requestAnimationFrame(() => resolve()));
103
+ if (open && enhanced) closeButton.focus({ preventScroll: true });
104
+ }
98
105
  }
99
106
  function toggleHelp(event: MouseEvent) {
100
107
  if (open) close();
@@ -206,11 +213,14 @@
206
213
  });
207
214
  </script>
208
215
 
209
- <div bind:this={root} class="model-tools" class:enhanced style={surfaceStyle} style:visibility={active ? undefined : 'hidden'} inert={!active} data-spatial-element-tools data-spatial-model-controls>
216
+ <div bind:this={root} class="model-tools" class:enhanced class:with-spacemouse={spaceMouseDesktop} style={surfaceStyle} style:visibility={active ? undefined : 'hidden'} inert={!active} data-spatial-element-tools data-spatial-model-controls>
210
217
  <div class="model-tools-buttons">
211
218
  <SpatialIconButton bind:element={button} {focusAnchor} label={messages.controls.help} onclick={toggleHelp} expanded={open} controls={id} enabled={enhanced && active}>
212
219
  <CircleHelp size={21} strokeWidth={1.8} aria-hidden="true" />
213
220
  </SpatialIconButton>
221
+ {#if spaceMouseDesktop}
222
+ <SpaceMouseControl {focusAnchor} enabled={enhanced && active} />
223
+ {/if}
214
224
  <SpatialElementViewToggle enabled={enhanced && active} {focusAnchor} onchange={() => close()} />
215
225
  </div>
216
226
  {#if active && enhanced && touchInput && !interacted && !open && !fullscreen}
@@ -238,13 +248,10 @@
238
248
  <div><InteractionGesture action="zoom" touch={touchInput} /><dt>{help.zoom}</dt><dd>{touchInput ? help.touchZoom : help.mouseZoom}</dd></div>
239
249
  <div><InteractionGesture action="pan" touch={touchInput} /><dt>{help.pan}</dt><dd>{touchInput ? help.touchPan : help.mousePan}</dd></div>
240
250
  </dl>
241
- <p class="navigation-hint">
242
- {#if touchInput}
243
- {#if !fullscreen}{help.touchScrollHint}{/if}
244
- {:else}
245
- {#each help.mouseNavigationHint.split('{spacemouse}') as part, index}{#if index > 0}<a href="https://3dconnexion.com/" target="_blank" rel="noopener noreferrer">SpaceMouse</a>{/if}{part}{/each}
246
- {/if}
247
- </p>
251
+ {#if touchInput && !fullscreen}<p class="navigation-hint">{help.touchScrollHint}</p>{/if}
252
+ {#if spaceMouseDesktop}
253
+ <p class="navigation-hint">{#each help.mouseNavigationHint.split('{spacemouse}') as part, index}{#if index > 0}<a href="https://3dconnexion.com/" target="_blank" rel="noopener noreferrer">SpaceMouse</a>{/if}{part}{/each}</p>
254
+ {/if}
248
255
  </div>
249
256
  </Panel>
250
257
  </div>
@@ -257,6 +264,7 @@
257
264
  width: 128px; height: 40px; z-index: 6; visibility: hidden; pointer-events: none;
258
265
  }
259
266
  .model-tools.enhanced { visibility: visible; pointer-events: auto; }
267
+ .model-tools.with-spacemouse { width: 176px; }
260
268
  .model-tools-buttons { display: flex; gap: 8px; justify-content: flex-end; }
261
269
  .touch-hint {
262
270
  position: absolute; right: 0; top: 48px; width: max-content; max-width: min(260px, calc(100vw - 48px));
@@ -260,7 +260,7 @@
260
260
  position: absolute;
261
261
  inset: 0;
262
262
  border-radius: inherit;
263
- box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--spatial-element-accent) 96%, transparent);
263
+ box-shadow: inset 0 0 0 3px var(--spatial-element-accent);
264
264
  pointer-events: none;
265
265
  }
266
266
  :global(.stage-enhanced[data-stage-page-ready]) .thumb-minimap.active::after {
@@ -268,8 +268,9 @@
268
268
  }
269
269
  .media-indicator {
270
270
  position: absolute;
271
- bottom: 4px;
272
- right: 4px;
271
+ /* Inset along the rounded corner's diagonal; retain a 4px safety margin. */
272
+ bottom: calc(4px + var(--spatial-element-control-radius) * 0.293);
273
+ right: calc(4px + var(--spatial-element-control-radius) * 0.293);
273
274
  display: grid;
274
275
  color: color-mix(in srgb, var(--spatial-element-ink) 45%, transparent);
275
276
  opacity: var(--stage-panel-surface-opacity, 1);
@@ -42,10 +42,14 @@
42
42
  interface Props {
43
43
  /** Complete element document from this page's load function. Registers assets with the enclosing shell. */
44
44
  spatialElement: SpatialElementData;
45
+ /** Optional compact controls beside the action in both scroll and 3XL pane headers. */
46
+ headerDetails?: Snippet;
47
+ /** Shared header action icon. Use the same snippet as the summary actionIcon. */
48
+ actionIcon?: Snippet;
45
49
  /** Detail sections; Section components automatically populate the tab navigation. */
46
50
  children?: Snippet;
47
51
  }
48
- let { spatialElement: element, children }: Props = $props();
52
+ let { spatialElement: element, children, headerDetails, actionIcon }: Props = $props();
49
53
  const readTheme = useSpatialTheme();
50
54
  const brand = $derived(readTheme());
51
55
  const spatialElement = $derived.by(() => {
@@ -204,15 +208,16 @@
204
208
  <div class="spatial-element-pane-title-row">
205
209
  <p class="spatial-element-pane-title">{spatialElement.title}</p>
206
210
  {#if spatialElement.eyebrow}<p class="spatial-element-pane-eyebrow">{spatialElement.eyebrow}</p>{/if}
211
+ {@render headerDetails?.()}
207
212
  {#if spatialElement.action}
208
213
  <button type="button" class="spatial-element-pane-action" onclick={invokePaneAction}
209
214
  aria-label={spatialElement.action.ariaLabel ?? spatialElement.action.label}>
210
- <ShoppingCart size={24} aria-hidden="true" />
215
+ {#if actionIcon}{@render actionIcon()}{:else}<ShoppingCart size={24} aria-hidden="true" />{/if}
211
216
  </button>
212
217
  {/if}
213
218
  </div>
214
219
  </div>
215
- <SpatialElementStickyHeader {activeSectionId} {spatialElement} sections={navigationSections} />
220
+ <SpatialElementStickyHeader {headerDetails} {actionIcon} {activeSectionId} {spatialElement} sections={navigationSections} />
216
221
  <div class="spatial-element-pane-surface" data-spatial-detail-pane-surface data-spatial-detail-fixed aria-hidden="true"></div>
217
222
  <div class="spatial-element-pane-cover spatial-element-pane-cover-top" data-spatial-detail-fixed aria-hidden="true"></div>
218
223
  <div class="spatial-element-pane-cover spatial-element-pane-cover-bottom" data-spatial-detail-fixed aria-hidden="true"></div>
@@ -4,6 +4,10 @@ import type { SpatialElementData } from '@spatial-elements/core/spatial-element/
4
4
  interface Props {
5
5
  /** Complete element document from this page's load function. Registers assets with the enclosing shell. */
6
6
  spatialElement: SpatialElementData;
7
+ /** Optional compact controls beside the action in both scroll and 3XL pane headers. */
8
+ headerDetails?: Snippet;
9
+ /** Shared header action icon. Use the same snippet as the summary actionIcon. */
10
+ actionIcon?: Snippet;
7
11
  /** Detail sections; Section components automatically populate the tab navigation. */
8
12
  children?: Snippet;
9
13
  }
@@ -1,4 +1,5 @@
1
1
  <script lang="ts">
2
+ import type { Snippet } from 'svelte';
2
3
  import type { ResolvedSpatialElementData as SpatialElementData } from '@spatial-elements/core/spatial-element/spatialElement';
3
4
  import { catalogActionSemantic } from '@spatial-elements/core/catalog/catalogAction';
4
5
  import ShoppingCart from 'lucide-svelte/icons/shopping-cart';
@@ -8,9 +9,11 @@
8
9
  import type { SpatialElementSectionNavigationItem } from '@spatial-elements/core/spatial-element/types';
9
10
 
10
11
  let {
11
- spatialElement,
12
+ spatialElement, headerDetails, actionIcon
12
13
  }: {
13
14
  activeSectionId?: string;
15
+ headerDetails?: Snippet;
16
+ actionIcon?: Snippet;
14
17
  spatialElement: SpatialElementData;
15
18
  sections: SpatialElementSectionNavigationItem[];
16
19
  } = $props();
@@ -51,6 +54,7 @@
51
54
  ></a>
52
55
 
53
56
  <div class="sticky-header-layout">
57
+ <div class="sticky-header-content" class:has-details={!!headerDetails}>
54
58
  <div class="sticky-header-copy">
55
59
  {#if spatialElement.eyebrow}
56
60
  <p
@@ -78,6 +82,8 @@
78
82
  </p>
79
83
  </div>
80
84
 
85
+ {#if headerDetails}<div class="sticky-header-details">{@render headerDetails()}</div>{/if}
86
+ </div>
81
87
  {#if spatialElement.action}
82
88
  {#if spatialElement.action.href}
83
89
  <a
@@ -95,7 +101,7 @@
95
101
  rel="external"
96
102
  aria-label={spatialElement.action.ariaLabel ?? spatialElement.action.label}
97
103
  >
98
- <ShoppingCart size={29} strokeWidth={2} aria-hidden="true" />
104
+ {#if actionIcon}{@render actionIcon()}{:else}<ShoppingCart size={29} strokeWidth={2} aria-hidden="true" />{/if}
99
105
  </a>
100
106
  {:else}
101
107
  <button
@@ -112,7 +118,7 @@
112
118
  type="button"
113
119
  aria-label={spatialElement.action.ariaLabel ?? spatialElement.action.label}
114
120
  >
115
- <ShoppingCart size={29} strokeWidth={2} aria-hidden="true" />
121
+ {#if actionIcon}{@render actionIcon()}{:else}<ShoppingCart size={29} strokeWidth={2} aria-hidden="true" />{/if}
116
122
  </button>
117
123
  {/if}
118
124
  {/if}
@@ -266,7 +272,10 @@
266
272
  z-index: 1;
267
273
  }
268
274
 
275
+ .sticky-header-content { display: flex; align-items: center; gap: 16px; min-width: 0; }
276
+ .sticky-header-details { flex: none; }
269
277
  .sticky-header-copy {
278
+ flex: 1;
270
279
  display: grid;
271
280
  gap: 0;
272
281
  min-width: 0;
@@ -300,8 +309,8 @@
300
309
  visibility: hidden;
301
310
  display: grid;
302
311
  place-items: center;
303
- width: 40px;
304
- height: 40px;
312
+ width: 54px;
313
+ height: 54px;
305
314
  padding: 0;
306
315
  border: 0;
307
316
  border-radius: var(--spatial-element-control-radius);
@@ -313,6 +322,9 @@
313
322
  .spatial-element-sticky-header:global([data-action-active]) .sticky-header-action { visibility: visible; }
314
323
 
315
324
  @media (width < 840px) {
325
+ .sticky-header-content.has-details { display: grid; gap: 2px; }
326
+ .has-details .sticky-header-kicker { display: none; }
327
+ .has-details .sticky-header-title { font-size: 14px; line-height: 18px; }
316
328
  .sticky-header-layout {
317
329
  gap: 8px;
318
330
  padding-right: 8px;
@@ -1,8 +1,11 @@
1
+ import type { Snippet } from 'svelte';
1
2
  import type { ResolvedSpatialElementData as SpatialElementData } from '@spatial-elements/core/spatial-element/spatialElement';
2
3
  import './layout.generated.css';
3
4
  import type { SpatialElementSectionNavigationItem } from '@spatial-elements/core/spatial-element/types';
4
5
  type $$ComponentProps = {
5
6
  activeSectionId?: string;
7
+ headerDetails?: Snippet;
8
+ actionIcon?: Snippet;
6
9
  spatialElement: SpatialElementData;
7
10
  sections: SpatialElementSectionNavigationItem[];
8
11
  };
@@ -1,19 +1,28 @@
1
1
  <script lang="ts">
2
+ import type { Snippet } from "svelte";
2
3
  import { catalogActionSemantic } from '@spatial-elements/core/catalog/catalogAction';
3
4
  import type { CatalogEndpointAddress, CatalogEndpointRole } from '@spatial-elements/core/catalog/CatalogEndpointRegistry';
4
5
  import type { SpatialElementFeature, SpatialElementAction } from '@spatial-elements/core/spatial-element/types';
5
6
  import ShoppingCart from 'lucide-svelte/icons/shopping-cart';
6
7
  import { createCatalogEndpointAction } from '../catalog/catalogEndpointAction.js';
7
- let { spatialElement, address, contentInset, heading = 'h3', element = $bindable() }: {
8
+ let { spatialElement, address, contentInset, heading = 'h3', leading, beforeAction, actionIcon, element = $bindable() }: {
8
9
  spatialElement: { id: string; eyebrow: string; title: string; features: SpatialElementFeature[]; action?: SpatialElementAction };
9
10
  address: (role: CatalogEndpointRole) => CatalogEndpointAddress | undefined;
10
11
  contentInset: number;
11
12
  heading?: 'h1' | 'h3';
13
+ leading?: Snippet;
14
+ /** Optional content above the CTA, for example a price and quantity field. */
15
+ beforeAction?: Snippet;
16
+ actionIcon?: Snippet;
12
17
  element?: HTMLDivElement;
13
18
  } = $props();
14
19
  const catalogEndpoint = createCatalogEndpointAction();
15
20
  </script>
16
21
  <div bind:this={element} class="summary-presentation">
22
+ {#if leading}<div use:catalogEndpoint={address('leading')}
23
+ data-catalog-rich-shared="leading" data-catalog-semantic={spatialElement.id}>
24
+ {@render leading()}
25
+ </div>{/if}
17
26
  <div class="panel-copy">
18
27
  {#if spatialElement.eyebrow}
19
28
  <p
@@ -53,6 +62,10 @@
53
62
  {/each}
54
63
  </ul>{/if}
55
64
 
65
+ {#if beforeAction}<div use:catalogEndpoint={address('action-details')}
66
+ data-catalog-rich-shared="action-details" data-catalog-semantic={spatialElement.id}>
67
+ {@render beforeAction()}
68
+ </div>{/if}
56
69
  {#if spatialElement.action}
57
70
  {#if spatialElement.action.href}
58
71
  <a
@@ -65,12 +78,12 @@
65
78
  aria-label={spatialElement.action.ariaLabel}
66
79
  >
67
80
  <span class="spatial-element-action-surface" data-catalog-secondary>
68
- <ShoppingCart
81
+ {#if actionIcon}{@render actionIcon()}{:else}<ShoppingCart
69
82
  class="spatial-element-action-icon"
70
83
  size={27}
71
84
  strokeWidth={2}
72
85
  aria-hidden="true"
73
- />
86
+ />{/if}
74
87
  <span class="spatial-element-action-label">{spatialElement.action.label}</span>
75
88
  </span>
76
89
  </a>
@@ -84,12 +97,12 @@
84
97
  aria-label={spatialElement.action.ariaLabel}
85
98
  >
86
99
  <span class="spatial-element-action-surface" data-catalog-secondary>
87
- <ShoppingCart
100
+ {#if actionIcon}{@render actionIcon()}{:else}<ShoppingCart
88
101
  class="spatial-element-action-icon"
89
102
  size={27}
90
103
  strokeWidth={2}
91
104
  aria-hidden="true"
92
- />
105
+ />{/if}
93
106
  <span class="spatial-element-action-label">{spatialElement.action.label}</span>
94
107
  </span>
95
108
  </button>
@@ -148,7 +161,7 @@
148
161
  display: block;
149
162
  box-sizing: border-box;
150
163
  width: 100%;
151
- min-height: 62px;
164
+ min-height: 54px;
152
165
  border: 0;
153
166
  padding: 0;
154
167
  color: inherit;
@@ -164,8 +177,8 @@
164
177
  gap: 10px;
165
178
  box-sizing: border-box;
166
179
  width: 100%;
167
- min-height: 62px;
168
- border-radius: 7px;
180
+ min-height: 54px;
181
+ border-radius: var(--spatial-element-control-radius, 7px);
169
182
  color: var(--spatial-element-on-accent);
170
183
  background: var(--spatial-element-accent);
171
184
  font:
@@ -1,3 +1,4 @@
1
+ import type { Snippet } from "svelte";
1
2
  import type { CatalogEndpointAddress, CatalogEndpointRole } from '@spatial-elements/core/catalog/CatalogEndpointRegistry';
2
3
  import type { SpatialElementFeature, SpatialElementAction } from '@spatial-elements/core/spatial-element/types';
3
4
  type $$ComponentProps = {
@@ -11,6 +12,10 @@ type $$ComponentProps = {
11
12
  address: (role: CatalogEndpointRole) => CatalogEndpointAddress | undefined;
12
13
  contentInset: number;
13
14
  heading?: 'h1' | 'h3';
15
+ leading?: Snippet;
16
+ /** Optional content above the CTA, for example a price and quantity field. */
17
+ beforeAction?: Snippet;
18
+ actionIcon?: Snippet;
14
19
  element?: HTMLDivElement;
15
20
  };
16
21
  declare const SpatialElementSummaryContent: import("svelte").Component<$$ComponentProps, {}, "element">;
@@ -5,13 +5,16 @@
5
5
  import Panel from '../stage/Panel.svelte';
6
6
  import { useSpatialTheme } from './brandContext.js';
7
7
 
8
- let { label, children, onclick, expanded, controls, focusAnchor, enabled = true, element = $bindable() }: {
8
+ let { label, children, onclick, pressed, busy, expanded, controls, focusAnchor, wide = false, enabled = true, element = $bindable() }: {
9
9
  label: string;
10
10
  children: Snippet;
11
11
  onclick: (event: MouseEvent) => void;
12
+ pressed?: boolean;
13
+ busy?: boolean;
12
14
  expanded?: boolean;
13
15
  controls?: string;
14
16
  focusAnchor?: HTMLElement;
17
+ wide?: boolean;
15
18
  enabled?: boolean;
16
19
  element?: HTMLButtonElement;
17
20
  } = $props();
@@ -20,7 +23,7 @@
20
23
  const radii = $derived(resolveSpatialThemeRadii(theme));
21
24
  </script>
22
25
 
23
- <div class="icon-frame">
26
+ <div class="icon-frame" class:wide data-spatial-control={label}>
24
27
  <Panel
25
28
  class="spatial-icon-panel"
26
29
  shape={{ radius: radii.control, contentInset: 0 }}
@@ -34,8 +37,8 @@
34
37
  <button bind:this={element} use:mouseHover type="button" {onclick} aria-label={label} title={label}
35
38
  disabled={!enabled}
36
39
  style:visibility={enabled ? 'visible' : 'hidden'}
37
- aria-expanded={expanded} aria-controls={controls} aria-haspopup={controls ? 'dialog' : undefined}
38
- class="spatial-icon-button">
40
+ aria-pressed={pressed} aria-busy={busy || undefined} aria-expanded={expanded} aria-controls={controls} aria-haspopup={controls ? 'dialog' : undefined}
41
+ class="spatial-icon-button" class:wide>
39
42
  {@render children()}
40
43
  </button>
41
44
  </Panel>
@@ -43,17 +46,21 @@
43
46
 
44
47
  <style>
45
48
  .icon-frame { width: 40px; height: 40px; flex: 0 0 40px; }
49
+ .icon-frame.wide { width: 104px; flex-basis: 104px; }
50
+ .icon-frame.wide :global(.spatial-icon-panel), .spatial-icon-button.wide { width: 104px; }
46
51
  /* The renderer moves panel contents into its projection layer; retain the anchor size. */
47
52
  .icon-frame :global(.spatial-icon-panel) { width: 40px; height: 40px; }
48
53
  .spatial-icon-button {
49
54
  box-sizing: border-box; display: grid; place-items: center; width: 40px; height: 40px;
50
55
  padding: 0; border: 0; border-radius: var(--spatial-element-control-radius); background: transparent;
56
+ font: inherit; font-size: 13px;
51
57
  color: var(--spatial-element-ink); cursor: pointer; touch-action: manipulation;
52
58
  transition: background-color 180ms ease;
53
59
  }
54
60
  .spatial-icon-button:global([data-mouse-hover]):hover {
55
61
  background: color-mix(in srgb, var(--spatial-element-body) 8%, transparent);
56
62
  }
63
+ .spatial-icon-button[aria-pressed="true"] { color: var(--spatial-element-accent); background: var(--ps-selection, var(--ps-section-muted, #eeeeee)); }
57
64
  .spatial-icon-button:focus-visible { outline: 2px solid var(--spatial-element-accent); outline-offset: 3px; }
58
65
  @media (prefers-reduced-motion: reduce) { .spatial-icon-button { transition: none; } }
59
66
  </style>
@@ -3,9 +3,12 @@ type $$ComponentProps = {
3
3
  label: string;
4
4
  children: Snippet;
5
5
  onclick: (event: MouseEvent) => void;
6
+ pressed?: boolean;
7
+ busy?: boolean;
6
8
  expanded?: boolean;
7
9
  controls?: string;
8
10
  focusAnchor?: HTMLElement;
11
+ wide?: boolean;
9
12
  enabled?: boolean;
10
13
  element?: HTMLButtonElement;
11
14
  };
@@ -97,7 +97,7 @@
97
97
  getNativeContent: () => true, getVisible: () => role === 'menu' || satellitesVisible,
98
98
  getMinimapOptions: () => undefined, getMinimapDockProgress: () => 0,
99
99
  getMinimapModelScale: () => 1, getMinimapModelTop: () => undefined,
100
- getSurface: () => fixedDetail ? theme.panelTheme.surface ?? 'glass' : 'frosted',
100
+ getSurface: () => theme.panelTheme.surface ?? 'frosted',
101
101
  getSurfaceOpacity: () => 1,
102
102
  getOptions: () => ({ ...theme.panelTheme, radius: role === 'menu' ? radii.panel : radii.control })
103
103
  });
@@ -114,7 +114,7 @@
114
114
  </script>
115
115
 
116
116
  <div class="spatial-shell-track" style:--ps-sticky-range={`${spatialLayoutTokens.menu.scrollThreshold}px`} data-spatial-navigation-shell>
117
- <div bind:this={rack} class="spatial-shell-rack" data-stage-scroll-shell data-catalog-shell data-spatial-navigation-glass={fixedDetail && theme.panelTheme.surface === 'glass' ? '' : undefined}>
117
+ <div bind:this={rack} class="spatial-shell-rack" data-stage-scroll-shell data-catalog-shell data-spatial-navigation-glass={theme.panelTheme.surface === 'glass' ? '' : undefined}>
118
118
  {#if navigation}{@render navigation()}{:else}<Navigation {menu} {items} {brand} {tools} {left} {right} />{/if}
119
119
  </div>
120
120
  </div>
@@ -131,6 +131,8 @@
131
131
  backdrop-filter: blur(var(--spatial-element-panel-backdrop-blur));
132
132
  box-shadow: var(--spatial-element-panel-box-shadow);
133
133
  }
134
+ .spatial-shell-rack :global(.header) { border-radius: var(--spatial-element-panel-radius); }
135
+ .spatial-shell-rack :global(.satellite) { border-radius: var(--spatial-element-control-radius); }
134
136
  :global(.stage-virtual-scroll-active) .spatial-shell-rack { position: relative; transform: translateY(var(--spatial-shell-scroll-compensation, 0px)); }
135
137
  [data-spatial-navigation-glass] :global([data-stage-panel-bound]) { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
136
138
  </style>
@@ -54,10 +54,12 @@
54
54
  max-height: max(0px, calc(var(--spatial-detail-summary-max-height, 100000px) - var(--spatial-summary-content-inset, 0px) * 2 - var(--spatial-summary-height-reserve, 0px)));
55
55
  overflow: auto; overscroll-behavior: auto;
56
56
  }
57
- :global(.spatial-summary-island[data-presentation-mode='carousel']) { height: 100%; border-radius: var(--carousel-panel-radius, 14px); opacity: var(--carousel-panel-opacity, 1); }
57
+ :global(.spatial-summary-island[data-presentation-mode='carousel']) { height: 100%; border-radius: var(--carousel-panel-radius, 14px); }
58
+ /* Fade paint owners, not the backdrop ancestor. Theme opacity must not isolate the canvas. */
59
+ :global(.spatial-summary-island[data-presentation-mode='carousel']) > * { opacity: var(--carousel-panel-opacity, 1); filter: var(--carousel-focus-blur, none); }
58
60
  .spatial-summary-surface {
59
61
  position: absolute; inset: 0; border-radius: inherit; background: color-mix(in srgb, var(--carousel-panel-tint, white) var(--carousel-panel-tint-opacity, 65%), transparent);
60
- border: 1px solid color-mix(in srgb, var(--spatial-element-accent) 12%, transparent); backdrop-filter: blur(var(--carousel-panel-blur, 5px)); box-shadow: var(--carousel-panel-shadow); pointer-events: none;
62
+ border: 1px solid color-mix(in srgb, var(--spatial-element-accent) 12%, transparent); backdrop-filter: var(--carousel-panel-backdrop, blur(5px)); box-shadow: var(--carousel-panel-shadow); pointer-events: none;
61
63
  }
62
64
  .spatial-summary-surface[hidden] { display: none; }
63
65
  :global([data-carousel-glass-ready]) .spatial-summary-surface,
@@ -23,7 +23,7 @@
23
23
  </script>
24
24
 
25
25
  <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor"
26
- stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" data-spatial-view-icon={kind}>
26
+ stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" data-spatial-view-icon={kind}>
27
27
  {#each kind === 'detail' ? detail : fullscreen as path}<path d={path} />{/each}
28
28
  <rect x="1" y="2" width="22" height="20" rx="2" />
29
29
  </svg>
@@ -1,4 +1,5 @@
1
1
  export { default as BrandStageShell } from './BrandStageShell.svelte';
2
+ export { default as SpatialElementSummaryContent } from './SpatialElementSummaryContent.svelte';
2
3
  export type { SpatialSummaryContext, SpatialSummarySnippet } from './spatialSummary.js';
3
4
  export { defaultSpatialMessages, resolveSpatialMessages, type SpatialMessages, type SpatialMessagesInput } from '@spatial-elements/core/spatial-element/messages';
4
5
  export { default as SpatialElementPage } from './SpatialElementPage.svelte';
@@ -1,4 +1,5 @@
1
1
  export { default as BrandStageShell } from './BrandStageShell.svelte';
2
+ export { default as SpatialElementSummaryContent } from './SpatialElementSummaryContent.svelte';
2
3
  export { defaultSpatialMessages, resolveSpatialMessages } from '@spatial-elements/core/spatial-element/messages';
3
4
  export { default as SpatialElementPage } from './SpatialElementPage.svelte';
4
5
  export { default as SpatialListPage } from './SpatialListPage.svelte';
@@ -292,7 +292,7 @@
292
292
  .stage [data-spatial-element-root]:not([data-spatial-detail-flow]) .spatial-element-pane-heading .breadcrumbs { width: 100%; }
293
293
  .stage [data-spatial-element-root]:not([data-spatial-detail-flow]) .spatial-element-pane-title { min-width: 0; flex: 1; margin: 0; font-size: 24px; line-height: 32px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
294
294
  .stage [data-spatial-element-root]:not([data-spatial-detail-flow]) .spatial-element-pane-eyebrow { margin: 0; font-size: 14px; line-height: 20px; white-space: nowrap; }
295
- .stage [data-spatial-element-root]:not([data-spatial-detail-flow]) .spatial-element-pane-action { visibility: hidden; display: grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--spatial-element-control-radius); color: var(--spatial-element-on-accent); background: var(--spatial-element-accent); cursor: pointer; }
295
+ .stage [data-spatial-element-root]:not([data-spatial-detail-flow]) .spatial-element-pane-action { visibility: hidden; display: grid; place-items: center; flex: none; width: 54px; height: 54px; padding: 0; border: 0; border-radius: var(--spatial-element-control-radius); color: var(--spatial-element-on-accent); background: var(--spatial-element-accent); cursor: pointer; }
296
296
  .stage [data-spatial-element-root]:not([data-spatial-detail-flow])[data-spatial-detail-pane-action] .spatial-element-pane-action { visibility: visible; }
297
297
  .stage [data-spatial-element-root]:not([data-spatial-detail-flow]) .spatial-element-pane-cover { display: block; position: fixed; z-index: 2; left: var(--spatial-pane-left); width: var(--spatial-pane-width); background: var(--stage-page-background, var(--spatial-element-background)); pointer-events: none; transform: translateY(var(--spatial-pane-fixed-compensation, 0px)); }
298
298
  .stage [data-spatial-element-root]:not([data-spatial-detail-flow]) .spatial-element-pane-cover-top { top: 0; height: var(--spatial-pane-body-top); }
@@ -106,6 +106,7 @@
106
106
  width: max-content;
107
107
  height: 40px;
108
108
  border-radius: var(--control-radius);
109
+ overflow: clip;
109
110
  }
110
111
  button {
111
112
  box-sizing: border-box;
@@ -131,7 +132,7 @@
131
132
  width: 40px;
132
133
  padding: 0;
133
134
  }
134
- button { border-radius: max(0px, calc(var(--control-radius) - 2px)); }
135
+ button { border-radius: 0; }
135
136
  .button-group:global([data-mouse-hover]) button:enabled:hover {
136
137
  background: color-mix(in srgb, var(--spatial-element-body, currentColor) 8%, transparent);
137
138
  }
@@ -1,7 +1,15 @@
1
1
  <script lang="ts">
2
+ import { isSpaceMouseDesktop, type SpaceMouseState } from '@spatial-elements/core/stage/spaceMousePlatform';
3
+ import { hasUsableWebGPU } from '@spatial-elements/core/stage/webgpuSupport';
2
4
  import type { SpatialElementLodPair } from '@spatial-elements/core/catalog/spatialElementLodPair';
3
5
  import { DEFAULT_BACKGROUND } from '@spatial-elements/core/stage/stageConstants';
4
6
  import { onMount, setContext, tick } from 'svelte';
7
+ import {
8
+ observeSpaceMousePermission,
9
+ rememberSpaceMouseConnection,
10
+ shouldReconnectSpaceMouse,
11
+ type SpaceMousePermission
12
+ } from '@spatial-elements/core/stage/spaceMousePermission';
5
13
  import { ResponsiveViewportMetrics } from '@spatial-elements/core/spatial-element/ResponsiveViewportMetrics';
6
14
  import { SPATIAL_PRESENTATION_OWNER, type SpatialPresentationOwner } from '../spatial-element/spatialPresentationOwner.js';
7
15
  import type { SpatialSummaryHostController } from '../spatial-element/spatialSummaryHost.svelte.js';
@@ -26,7 +34,7 @@
26
34
  import { VirtualScrollController } from '@spatial-elements/core/stage/VirtualScrollController';
27
35
  import { StageFullscreenController } from '@spatial-elements/core/stage/StageFullscreenController';
28
36
  import ScrollNavigationBridge from '../catalog/ScrollNavigationBridge.svelte';
29
- import { startStagedCatalogNavigation, type InterruptedCatalogPresentation } from '../catalog/stagedCatalogNavigation.js';
37
+ import type { startStagedCatalogNavigation as StartStagedCatalogNavigation, InterruptedCatalogPresentation } from '../catalog/stagedCatalogNavigation.js';
30
38
  import { prepareCatalogSummaryTransfer } from '../catalog/catalogSummaryTransfer.js';
31
39
  import type { EarlyNavigationCancelReason } from '@spatial-elements/core/catalog/EarlyNavigationCoordinator';
32
40
  import { NavigationFeedback } from '@spatial-elements/core/catalog/NavigationFeedback';
@@ -159,6 +167,32 @@
159
167
  let domLayerHidden = $state(false);
160
168
  let domLayerOpacity = $state(1);
161
169
  let experience = $state<StageExperience | null>(null);
170
+ let spaceMouseEnabled = $state(false);
171
+ let spaceMousePermission = $state<SpaceMousePermission>('unknown');
172
+ let spaceMouseDisabledByUser = false;
173
+ let spaceMouseDesktop = $state(false);
174
+ let spaceMouseState = $state<SpaceMouseState>('idle');
175
+ onMount(() => {
176
+ spaceMouseDesktop = isSpaceMouseDesktop(navigator);
177
+ if (!spaceMouseDesktop) return;
178
+ let first = true;
179
+ return observeSpaceMousePermission((state) => {
180
+ const newlyGranted = state === 'granted' && spaceMousePermission !== 'granted';
181
+ spaceMousePermission = state;
182
+ if (
183
+ (first || newlyGranted) && shouldReconnectSpaceMouse(state) &&
184
+ !spaceMouseDisabledByUser && !spaceMouseEnabled
185
+ ) {
186
+ spaceMouseEnabled = true;
187
+ experience?.setSpaceMouseEnabled(true);
188
+ } else if (state === 'denied' && spaceMouseEnabled) {
189
+ spaceMouseEnabled = false;
190
+ experience?.setSpaceMouseEnabled(false);
191
+ spaceMouseState = 'permission-required';
192
+ }
193
+ first = false;
194
+ });
195
+ });
162
196
  let layoutMetrics: ResponsiveViewportMetrics | undefined;
163
197
  let presentationHost: SpatialSummaryHostController | undefined;
164
198
  setContext<SpatialPresentationOwner>(SPATIAL_PRESENTATION_OWNER, {
@@ -180,7 +214,8 @@
180
214
  let visualTestController: StageVisualTestController | undefined;
181
215
  let virtualScroll = $state<VirtualScrollController>();
182
216
  let transition: CatalogTransition | undefined;
183
- let earlyTransition: ReturnType<typeof startStagedCatalogNavigation>;
217
+ let startStagedCatalogNavigation: typeof StartStagedCatalogNavigation | undefined;
218
+ let earlyTransition: ReturnType<typeof StartStagedCatalogNavigation>;
184
219
  let interruptedPresentation: InterruptedCatalogPresentation | undefined;
185
220
  let summaryTransfer: ReturnType<typeof prepareCatalogSummaryTransfer>;
186
221
  let lastEarlyTimings: NonNullable<typeof earlyTransition>['timings'] | undefined;
@@ -219,6 +254,18 @@
219
254
  },
220
255
  getLayoutMetrics: (mode) => layoutMetrics?.read(mode),
221
256
  isEnhanced: () => isEnhanced,
257
+ isSpaceMouseEnabled: () => spaceMouseState === 'connected',
258
+ isSpaceMouseDesktop: () => spaceMouseDesktop,
259
+ getSpaceMouseState: () => spaceMouseState,
260
+ getSpaceMousePermission: () => spaceMousePermission,
261
+ setSpaceMouseEnabled(enabled) {
262
+ if (!spaceMouseDesktop) return;
263
+ experience?.setSpaceMouseEnabled(false);
264
+ spaceMouseState = enabled ? 'connecting' : 'idle';
265
+ spaceMouseDisabledByUser = !enabled;
266
+ spaceMouseEnabled = enabled;
267
+ experience?.setSpaceMouseEnabled(enabled);
268
+ },
222
269
  updatePanelAppearance: scheduleAppearanceUpdate,
223
270
  prefetchSpatialElement: (config) => experience?.prefetchSpatialElement(config),
224
271
  registerPanel(panel) {
@@ -260,7 +307,7 @@
260
307
  document.body.classList.add('stage-route');
261
308
  virtualScroll = new VirtualScrollController(stage, domLayer, virtualScrollSpacer);
262
309
  // Native fallback pages keep native document scrolling and browser anchor behavior.
263
- if (navigator.gpu) virtualScroll.start();
310
+ // Start virtual scrolling only after the WebGPU capability probe.
264
311
  navigationFeedback = new NavigationFeedback(stage);
265
312
  transition = new CatalogTransition(stage, catalogEndpoints, {
266
313
  diagnose: reason => { if (visualTestController) stage.dataset.catalogTransitionDecision = reason; },
@@ -300,14 +347,20 @@
300
347
  const init = async () => {
301
348
  await tick();
302
349
  if (disposed) return;
303
- if (!navigator.gpu) {
350
+ if (!await hasUsableWebGPU()) {
304
351
  stageState = 'fallback';
305
352
  showStatus = false;
306
353
  return;
307
354
  }
308
355
 
309
- const { StageExperience } = await import('@spatial-elements/core/stage/StageExperience');
310
356
  if (disposed) return;
357
+ const [{ StageExperience }, navigationModule] = await Promise.all([
358
+ import('@spatial-elements/core/stage/StageExperience'),
359
+ import('../catalog/stagedCatalogNavigation.js')
360
+ ]);
361
+ startStagedCatalogNavigation = navigationModule.startStagedCatalogNavigation;
362
+ if (disposed) return;
363
+ virtualScroll?.start();
311
364
  const panels = getPanelTargets();
312
365
  const viewport = getViewportTarget();
313
366
  const instance = new StageExperience(stage, {
@@ -333,7 +386,17 @@
333
386
  interactionTheme,
334
387
  panels,
335
388
  viewport,
336
- enableSpaceMouse: !isStageVisualTestMode(),
389
+ enableSpaceMouse: spaceMouseEnabled,
390
+ onSpaceMouseStateChange: (state) => {
391
+ if (disposed) return;
392
+ if (state === 'connected') rememberSpaceMouseConnection();
393
+ if (state === 'permission-required' || state === 'unavailable') {
394
+ // A failed attempt must not keep reconnecting on every route change.
395
+ spaceMouseEnabled = false;
396
+ instance.setSpaceMouseEnabled(false);
397
+ }
398
+ spaceMouseState = state;
399
+ },
337
400
  onDeviceLost: () => {
338
401
  if (disposed || experience !== instance) return;
339
402
  fullscreenController?.setFullscreen(false);
@@ -510,7 +573,7 @@
510
573
  const metrics = layoutMetrics?.read();
511
574
  if (!metrics) return;
512
575
  earlyTransition?.cancel('superseded');
513
- const candidate = startStagedCatalogNavigation({ root: stage, navigation, endpoints: catalogEndpoints,
576
+ const candidate = startStagedCatalogNavigation?.({ root: stage, navigation, endpoints: catalogEndpoints,
514
577
  host: presentationHost, experience, metrics, items: catalogSpatialElements, diagnostics: Boolean(visualTestController),
515
578
  onFinish() {
516
579
  if (earlyTransition) lastEarlyTimings = earlyTransition.timings;
package/logo.svg CHANGED
@@ -2,14 +2,14 @@
2
2
  <!-- Created with Inkscape (http://www.inkscape.org/) -->
3
3
 
4
4
  <svg
5
- width="44.490986mm"
6
- height="40.392185mm"
7
- viewBox="0 0 44.490985 40.392186"
5
+ width="48.572624mm"
6
+ height="43.54723mm"
7
+ viewBox="0 0 48.572623 43.54723"
8
8
  version="1.1"
9
9
  id="svg1"
10
10
  xml:space="preserve"
11
11
  inkscape:version="1.4.4 (dcaf3e7, 2026-05-05)"
12
- sodipodi:docname="spatial-elements-logo.svg"
12
+ sodipodi:docname="logo-light.svg"
13
13
  xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
14
14
  xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
15
15
  xmlns:xlink="http://www.w3.org/1999/xlink"
@@ -25,52 +25,46 @@
25
25
  inkscape:deskcolor="#d1d1d1"
26
26
  inkscape:document-units="mm"
27
27
  inkscape:zoom="1.0167041"
28
- inkscape:cx="329.49606"
29
- inkscape:cy="266.05578"
30
- inkscape:window-width="1920"
31
- inkscape:window-height="1009"
32
- inkscape:window-x="4912"
33
- inkscape:window-y="443"
28
+ inkscape:cx="329.98785"
29
+ inkscape:cy="266.54756"
30
+ inkscape:window-width="1500"
31
+ inkscape:window-height="930"
32
+ inkscape:window-x="-6"
33
+ inkscape:window-y="-6"
34
34
  inkscape:window-maximized="1"
35
- inkscape:current-layer="g3"><inkscape:page
35
+ inkscape:current-layer="layer1"><inkscape:page
36
36
  x="0"
37
37
  y="0"
38
- width="44.490986"
39
- height="40.392185"
38
+ width="48.572624"
39
+ height="43.54723"
40
40
  id="page1"
41
41
  margin="0"
42
42
  bleed="0" /></sodipodi:namedview><defs
43
43
  id="defs1"><linearGradient
44
- id="linearGradient9"
45
- x1="594.448"
46
- y1="603.10071"
47
- x2="826.05109"
48
- y2="834.7038"
49
- gradientTransform="scale(0.77719164,1.2866839)"
44
+ id="gBack"
45
+ x1="72.83886"
46
+ y1="51.401131"
47
+ x2="331.8215"
48
+ y2="310.38376"
49
+ gradientTransform="scale(0.9884833,1.0116509)"
50
50
  gradientUnits="userSpaceOnUse"><stop
51
51
  offset="0"
52
- stop-color="#029A80"
53
- id="stop8"
54
- style="stop-color:#00a982;stop-opacity:0.93333334;" /><stop
52
+ stop-color="#0c55b8"
53
+ id="stop1-0"
54
+ style="stop-color:#004737;stop-opacity:1;" /><stop
55
55
  offset="1"
56
- stop-color="#006A57"
57
- id="stop9"
58
- style="stop-color:#004a39;stop-opacity:1;" /></linearGradient><linearGradient
59
- id="linearGradient7"
60
- x1="360.55801"
61
- y1="604.77368"
62
- x2="592.80359"
63
- y2="837.01923"
64
- gradientTransform="scale(0.77934752,1.2831246)"
65
- gradientUnits="userSpaceOnUse"><stop
66
- offset="0"
67
- stop-color="#16CBB2"
68
- id="stop6"
69
- style="stop-color:#00ba90;stop-opacity:1;" /><stop
70
- offset="1"
71
- stop-color="#05957B"
72
- id="stop7"
73
- style="stop-color:#00795d;stop-opacity:1;" /></linearGradient><linearGradient
56
+ stop-color="#073474"
57
+ id="stop2-9"
58
+ style="stop-color:#004d3b;stop-opacity:1;" /></linearGradient><linearGradient
59
+ inkscape:collect="always"
60
+ xlink:href="#linearGradient5"
61
+ id="linearGradient1"
62
+ gradientUnits="userSpaceOnUse"
63
+ gradientTransform="scale(1.3435029,0.74432293)"
64
+ x1="209.15474"
65
+ y1="909.55145"
66
+ x2="477.85532"
67
+ y2="1178.252" /><linearGradient
74
68
  id="linearGradient5"
75
69
  x1="209.15474"
76
70
  y1="909.55145"
@@ -87,15 +81,6 @@
87
81
  id="stop5"
88
82
  style="stop-color:#00cd9b;stop-opacity:1;" /></linearGradient><linearGradient
89
83
  inkscape:collect="always"
90
- xlink:href="#linearGradient5"
91
- id="linearGradient1"
92
- gradientUnits="userSpaceOnUse"
93
- gradientTransform="scale(1.3435029,0.74432293)"
94
- x1="209.15474"
95
- y1="909.55145"
96
- x2="477.85532"
97
- y2="1178.252" /><linearGradient
98
- inkscape:collect="always"
99
84
  xlink:href="#linearGradient7"
100
85
  id="linearGradient3"
101
86
  gradientUnits="userSpaceOnUse"
@@ -104,6 +89,21 @@
104
89
  y1="604.77368"
105
90
  x2="592.80359"
106
91
  y2="837.01923" /><linearGradient
92
+ id="linearGradient7"
93
+ x1="360.55801"
94
+ y1="604.77368"
95
+ x2="592.80359"
96
+ y2="837.01923"
97
+ gradientTransform="scale(0.77934752,1.2831246)"
98
+ gradientUnits="userSpaceOnUse"><stop
99
+ offset="0"
100
+ stop-color="#16CBB2"
101
+ id="stop6"
102
+ style="stop-color:#00ba90;stop-opacity:1;" /><stop
103
+ offset="1"
104
+ stop-color="#05957B"
105
+ id="stop7"
106
+ style="stop-color:#00795d;stop-opacity:1;" /></linearGradient><linearGradient
107
107
  inkscape:collect="always"
108
108
  xlink:href="#linearGradient9"
109
109
  id="linearGradient4"
@@ -112,13 +112,50 @@
112
112
  x1="594.448"
113
113
  y1="603.10071"
114
114
  x2="826.05109"
115
- y2="834.7038" /></defs><g
115
+ y2="834.7038" /><linearGradient
116
+ id="linearGradient9"
117
+ x1="594.448"
118
+ y1="603.10071"
119
+ x2="826.05109"
120
+ y2="834.7038"
121
+ gradientTransform="scale(0.77719164,1.2866839)"
122
+ gradientUnits="userSpaceOnUse"><stop
123
+ offset="0"
124
+ stop-color="#029A80"
125
+ id="stop8"
126
+ style="stop-color:#00a982;stop-opacity:0.93333334;" /><stop
127
+ offset="1"
128
+ stop-color="#006A57"
129
+ id="stop9"
130
+ style="stop-color:#004a39;stop-opacity:1;" /></linearGradient><linearGradient
131
+ inkscape:collect="always"
132
+ xlink:href="#gBack"
133
+ id="linearGradient6"
134
+ gradientUnits="userSpaceOnUse"
135
+ gradientTransform="scale(0.9884833,1.0116509)"
136
+ x1="72.83886"
137
+ y1="51.401131"
138
+ x2="331.8215"
139
+ y2="310.38376" /></defs><g
116
140
  inkscape:label="Ebene 1"
117
141
  inkscape:groupmode="layer"
118
142
  id="layer1"
119
- transform="translate(-5.6997991,-4.2593934)"><g
143
+ transform="translate(-91.637966,-1.254395)"><g
144
+ transform="matrix(0.10951629,-0.04302037,0,0.10951629,83.752789,8.6950704)"
145
+ id="g8-7"><rect
146
+ x="74"
147
+ y="54"
148
+ width="252"
149
+ height="258"
150
+ rx="26"
151
+ ry="26"
152
+ fill="url(#gBack)"
153
+ stroke="#0c5ac5"
154
+ stroke-width="4"
155
+ id="rect8-6"
156
+ style="fill:url(#linearGradient6);stroke:#00e5b0;stroke-opacity:1" /></g><g
120
157
  id="g10"
121
- transform="translate(-49.560711,-0.44665427)"
158
+ transform="matrix(1,-0.09282164,0,1,40.459088,6.133947)"
122
159
  inkscape:export-filename="g10.svg"
123
160
  inkscape:export-xdpi="96"
124
161
  inkscape:export-ydpi="96"><g
@@ -170,7 +207,7 @@
170
207
  transform="matrix(0.9578263,-0.28734785,0,1,0,0)"
171
208
  style="stroke-width:0.111902" /></g><g
172
209
  id="g11"
173
- transform="translate(-53.594374,3.5870086)"><polygon
210
+ transform="translate(36.425425,3.7370574)"><polygon
174
211
  points="462,877 281,776 461,677 642,776 "
175
212
  fill="url(#gCubeTop)"
176
213
  id="polygon24-5"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spatial-elements/sveltekit",
3
- "version": "1.0.0-beta.10",
3
+ "version": "1.0.0-beta.11",
4
4
  "description": "SvelteKit components and navigation for Spatial Elements.",
5
5
  "license": "MPL-2.0",
6
6
  "type": "module",
@@ -42,7 +42,7 @@
42
42
  "dependencies": {
43
43
  "@page-sections/core": "0.4.1",
44
44
  "@page-sections/svelte": "0.4.1",
45
- "@spatial-elements/core": "1.0.0-beta.10",
45
+ "@spatial-elements/core": "1.0.0-beta.11",
46
46
  "lucide-svelte": "^1.0.1"
47
47
  },
48
48
  "peerDependencies": {