@spatial-elements/sveltekit 0.1.0-beta.1 → 1.0.0-beta.10
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/README.md +19 -9
- package/dist/catalog/ScrollNavigationBridge.svelte +172 -47
- package/dist/catalog/ScrollNavigationBridge.svelte.d.ts +9 -2
- package/dist/catalog/catalogNavigation.js +3 -2
- package/dist/catalog/catalogSummaryTransfer.d.ts +16 -0
- package/dist/catalog/catalogSummaryTransfer.js +79 -0
- package/dist/catalog/catalogTransition.css +58 -3
- package/dist/catalog/interruptedPresentation.d.ts +10 -0
- package/dist/catalog/interruptedPresentation.js +29 -0
- package/dist/catalog/presentationCleanup.d.ts +4 -0
- package/dist/catalog/presentationCleanup.js +20 -0
- package/dist/catalog/stagedCatalogNavigation.d.ts +44 -0
- package/dist/catalog/stagedCatalogNavigation.js +403 -0
- package/dist/catalog/stagedDomReveal.d.ts +8 -0
- package/dist/catalog/stagedDomReveal.js +76 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +3 -0
- package/dist/spatial-element/BrandStageShell.svelte +52 -71
- package/dist/spatial-element/BrandStageShell.svelte.d.ts +31 -4
- package/dist/spatial-element/CarouselSpatialElement.svelte +150 -197
- package/dist/spatial-element/CarouselSpatialElement.svelte.d.ts +5 -1
- package/dist/spatial-element/ContentBlock.svelte +7 -0
- package/dist/spatial-element/ContentBlock.svelte.d.ts +9 -0
- package/dist/spatial-element/ContentGrid.svelte +7 -0
- package/dist/spatial-element/ContentGrid.svelte.d.ts +8 -0
- package/dist/spatial-element/ContentPage.svelte +51 -55
- package/dist/spatial-element/ContentPage.svelte.d.ts +14 -3
- package/dist/spatial-element/InteractionGesture.svelte +39 -0
- package/dist/spatial-element/InteractionGesture.svelte.d.ts +7 -0
- package/dist/spatial-element/OverflowControls.svelte +125 -0
- package/dist/spatial-element/OverflowControls.svelte.d.ts +9 -0
- package/dist/spatial-element/PointerHint.svelte +80 -0
- package/dist/spatial-element/PointerHint.svelte.d.ts +3 -0
- package/dist/spatial-element/Section.svelte +25 -106
- package/dist/spatial-element/Section.svelte.d.ts +1 -0
- package/dist/spatial-element/SectionSurfaceGroup.svelte +8 -0
- package/dist/spatial-element/SectionSurfaceGroup.svelte.d.ts +8 -0
- package/dist/spatial-element/SpatialCardGridSection.svelte +79 -0
- package/dist/spatial-element/SpatialCardGridSection.svelte.d.ts +11 -0
- package/dist/spatial-element/SpatialCardPresentation.svelte +311 -0
- package/dist/spatial-element/SpatialCardPresentation.svelte.d.ts +19 -0
- package/dist/spatial-element/SpatialCardSlot.svelte +33 -0
- package/dist/spatial-element/SpatialCardSlot.svelte.d.ts +8 -0
- package/dist/spatial-element/SpatialCarouselSection.svelte +752 -0
- package/dist/spatial-element/{CarouselSection.svelte.d.ts → SpatialCarouselSection.svelte.d.ts} +5 -5
- package/dist/spatial-element/SpatialElementBreadcrumbs.svelte +12 -65
- package/dist/spatial-element/SpatialElementCard.svelte +54 -238
- package/dist/spatial-element/SpatialElementCard.svelte.d.ts +9 -0
- package/dist/spatial-element/SpatialElementHelp.svelte +292 -0
- package/dist/spatial-element/SpatialElementHelp.svelte.d.ts +6 -0
- package/dist/spatial-element/SpatialElementMediaRail.svelte +321 -52
- package/dist/spatial-element/SpatialElementMediaRail.svelte.d.ts +4 -1
- package/dist/spatial-element/SpatialElementNativeMedia.svelte +101 -0
- package/dist/spatial-element/SpatialElementNativeMedia.svelte.d.ts +9 -0
- package/dist/spatial-element/SpatialElementPage.svelte +150 -70
- package/dist/spatial-element/SpatialElementPage.svelte.d.ts +6 -3
- package/dist/spatial-element/SpatialElementStickyHeader.svelte +76 -104
- package/dist/spatial-element/SpatialElementStickyHeader.svelte.d.ts +3 -1
- package/dist/spatial-element/SpatialElementSummaryContent.svelte +185 -0
- package/dist/spatial-element/SpatialElementSummaryContent.svelte.d.ts +18 -0
- package/dist/spatial-element/SpatialElementSummaryPanel.svelte +48 -380
- package/dist/spatial-element/SpatialElementSummaryPanel.svelte.d.ts +2 -1
- package/dist/spatial-element/SpatialElementTabList.svelte +40 -17
- package/dist/spatial-element/SpatialElementTabList.svelte.d.ts +2 -1
- package/dist/spatial-element/SpatialElementTabs.svelte +61 -18
- package/dist/spatial-element/SpatialElementTabs.svelte.d.ts +3 -1
- package/dist/spatial-element/SpatialElementViewToggle.svelte +54 -0
- package/dist/spatial-element/SpatialElementViewToggle.svelte.d.ts +8 -0
- package/dist/spatial-element/SpatialIconButton.svelte +59 -0
- package/dist/spatial-element/SpatialIconButton.svelte.d.ts +14 -0
- package/dist/spatial-element/SpatialListPage.svelte +37 -8
- package/dist/spatial-element/SpatialListPage.svelte.d.ts +4 -1
- package/dist/spatial-element/SpatialMediaIndicator.svelte +16 -0
- package/dist/spatial-element/SpatialMediaIndicator.svelte.d.ts +26 -0
- package/dist/spatial-element/SpatialNavigationShell.svelte +136 -0
- package/dist/spatial-element/SpatialNavigationShell.svelte.d.ts +15 -0
- package/dist/spatial-element/SpatialSummaryHost.svelte +19 -0
- package/dist/spatial-element/SpatialSummaryHost.svelte.d.ts +9 -0
- package/dist/spatial-element/SpatialSummaryRoot.svelte +78 -0
- package/dist/spatial-element/SpatialSummaryRoot.svelte.d.ts +8 -0
- package/dist/spatial-element/SpatialSummarySlot.svelte +39 -0
- package/dist/spatial-element/SpatialSummarySlot.svelte.d.ts +9 -0
- package/dist/spatial-element/SpatialViewIcon.svelte +29 -0
- package/dist/spatial-element/SpatialViewIcon.svelte.d.ts +6 -0
- package/dist/spatial-element/brandContext.d.ts +1 -1
- package/dist/spatial-element/brandContext.js +1 -1
- package/dist/spatial-element/cardAppearanceFreeze.d.ts +5 -0
- package/dist/spatial-element/cardAppearanceFreeze.js +72 -0
- package/dist/spatial-element/carouselTextHit.d.ts +2 -0
- package/dist/spatial-element/carouselTextHit.js +17 -0
- package/dist/spatial-element/contentSidebars.d.ts +3 -0
- package/dist/spatial-element/contentSidebars.js +56 -0
- package/dist/spatial-element/index.d.ts +18 -3
- package/dist/spatial-element/index.js +11 -2
- package/dist/spatial-element/layout.generated.css +363 -0
- package/dist/spatial-element/messagesContext.d.ts +3 -0
- package/dist/spatial-element/messagesContext.js +10 -0
- package/dist/spatial-element/presentationBoxFreeze.d.ts +8 -0
- package/dist/spatial-element/presentationBoxFreeze.js +35 -0
- package/dist/spatial-element/spatialCardGrid.d.ts +12 -0
- package/dist/spatial-element/spatialCardGrid.js +1 -0
- package/dist/spatial-element/spatialPageContext.d.ts +4 -0
- package/dist/spatial-element/spatialPageContext.js +9 -0
- package/dist/spatial-element/spatialPresentationOwner.d.ts +6 -0
- package/dist/spatial-element/spatialPresentationOwner.js +2 -0
- package/dist/spatial-element/spatialSummary.d.ts +43 -0
- package/dist/spatial-element/spatialSummary.js +1 -0
- package/dist/spatial-element/spatialSummaryHost.svelte.d.ts +60 -0
- package/dist/spatial-element/spatialSummaryHost.svelte.js +233 -0
- package/dist/spatial-element/spatialThemeStyle.d.ts +3 -0
- package/dist/spatial-element/spatialThemeStyle.js +69 -0
- package/dist/spatial-element/truncatedTitle.d.ts +5 -0
- package/dist/spatial-element/truncatedTitle.js +28 -0
- package/dist/stage/ButtonGroup.svelte +151 -0
- package/dist/stage/ButtonGroup.svelte.d.ts +24 -0
- package/dist/stage/Panel.svelte +72 -14
- package/dist/stage/Panel.svelte.d.ts +14 -2
- package/dist/stage/Stage.svelte +405 -48
- package/dist/stage/Stage.svelte.d.ts +8 -1
- package/dist/stage/StageViewport.svelte +15 -2
- package/dist/stage/authoredStyle.d.ts +4 -0
- package/dist/stage/authoredStyle.js +17 -0
- package/dist/stage/buttonGroup.d.ts +9 -0
- package/dist/stage/buttonGroup.js +1 -0
- package/logo.svg +188 -0
- package/package.json +9 -6
- package/dist/spatial-element/CarouselSection.svelte +0 -350
- package/dist/spatial-element/ListSection.svelte +0 -30
- package/dist/spatial-element/ListSection.svelte.d.ts +0 -8
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/** Keep semantic ownership beyond a cancelled visual overlay, never beyond its route. */
|
|
2
|
+
export function finishInterruptedPresentation(options) {
|
|
3
|
+
let cancelled = false, released = false;
|
|
4
|
+
const release = () => {
|
|
5
|
+
if (released)
|
|
6
|
+
return;
|
|
7
|
+
released = true;
|
|
8
|
+
options.release();
|
|
9
|
+
};
|
|
10
|
+
const finished = (async () => {
|
|
11
|
+
try {
|
|
12
|
+
await options.settle();
|
|
13
|
+
if (cancelled)
|
|
14
|
+
return;
|
|
15
|
+
const slot = options.adopt();
|
|
16
|
+
await options.settle();
|
|
17
|
+
if (cancelled)
|
|
18
|
+
return;
|
|
19
|
+
slot.dispatchEvent(new Event('spatial-summary-measure'));
|
|
20
|
+
await options.settle();
|
|
21
|
+
}
|
|
22
|
+
finally {
|
|
23
|
+
release();
|
|
24
|
+
}
|
|
25
|
+
})();
|
|
26
|
+
// Destination model loading can still be pending before Stage joins this task.
|
|
27
|
+
void finished.catch(() => { });
|
|
28
|
+
return { finished, cancel() { cancelled = true; release(); } };
|
|
29
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Release independent presentation owners even if another owner fails to clean up.
|
|
2
|
+
* DOM/registry release stays synchronous; asynchronous component teardown is observed.
|
|
3
|
+
*/
|
|
4
|
+
export declare function releasePresentationResources(message: string, cleanups: readonly (() => unknown)[]): void;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** Release independent presentation owners even if another owner fails to clean up.
|
|
2
|
+
* DOM/registry release stays synchronous; asynchronous component teardown is observed.
|
|
3
|
+
*/
|
|
4
|
+
export function releasePresentationResources(message, cleanups) {
|
|
5
|
+
const failures = [];
|
|
6
|
+
for (const cleanup of cleanups) {
|
|
7
|
+
try {
|
|
8
|
+
const pending = cleanup();
|
|
9
|
+
if (pending && typeof pending.then === 'function') {
|
|
10
|
+
void Promise.resolve(pending).catch(error => { console.error(message, error); });
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
catch (error) {
|
|
14
|
+
failures.push(error);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
// A diagnostic must not precede release of the remaining synchronous owners.
|
|
18
|
+
for (const error of failures)
|
|
19
|
+
console.error(message, error);
|
|
20
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { BeforeNavigate } from '@sveltejs/kit';
|
|
2
|
+
import type { StageExperience } from '@spatial-elements/core/stage/StageExperience';
|
|
3
|
+
import type { CatalogEndpointRegistry } from '@spatial-elements/core/catalog/CatalogEndpointRegistry';
|
|
4
|
+
import type { EarlyNavigationCancelReason } from '@spatial-elements/core/catalog/EarlyNavigationCoordinator';
|
|
5
|
+
import { type ResponsiveLayoutInput } from '@spatial-elements/core/spatial-element/responsiveLayout';
|
|
6
|
+
import type { SpatialSummaryHostController } from '../spatial-element/spatialSummaryHost.svelte.js';
|
|
7
|
+
import type { SpatialListItem } from '@spatial-elements/core/spatial-element/types';
|
|
8
|
+
import { type InterruptedCatalogPresentation } from './interruptedPresentation.js';
|
|
9
|
+
export type { InterruptedCatalogPresentation } from './interruptedPresentation.js';
|
|
10
|
+
/** Source ownership stays in the persistent shell; Kit only replaces its placement. */
|
|
11
|
+
export declare function startStagedCatalogNavigation(options: {
|
|
12
|
+
root: HTMLElement;
|
|
13
|
+
navigation: BeforeNavigate;
|
|
14
|
+
endpoints: CatalogEndpointRegistry;
|
|
15
|
+
host: SpatialSummaryHostController;
|
|
16
|
+
experience: StageExperience;
|
|
17
|
+
metrics: ResponsiveLayoutInput;
|
|
18
|
+
items: readonly SpatialListItem[];
|
|
19
|
+
diagnostics?: boolean;
|
|
20
|
+
onFinish(): void;
|
|
21
|
+
}): {
|
|
22
|
+
handle: import("@spatial-elements/core/catalog/EarlyNavigationCoordinator").EarlyNavigationHandle;
|
|
23
|
+
destination: string;
|
|
24
|
+
readonly phase: import("@spatial-elements/core/catalog/StagedCatalogTransition").StagedCatalogTransitionPhase;
|
|
25
|
+
readonly timings: {
|
|
26
|
+
started: number;
|
|
27
|
+
entered: number;
|
|
28
|
+
captured: number;
|
|
29
|
+
prepared: number;
|
|
30
|
+
firstMotion: number;
|
|
31
|
+
firstSubmitted: number;
|
|
32
|
+
motionEnded: number;
|
|
33
|
+
holdStarted: number;
|
|
34
|
+
held: number;
|
|
35
|
+
committed: number;
|
|
36
|
+
revealStarted: number;
|
|
37
|
+
revealEnded: number;
|
|
38
|
+
revealed: number;
|
|
39
|
+
};
|
|
40
|
+
commit(): void;
|
|
41
|
+
cancel(reason?: EarlyNavigationCancelReason): void;
|
|
42
|
+
cancelCommitted(reason: EarlyNavigationCancelReason): InterruptedCatalogPresentation | undefined;
|
|
43
|
+
reveal(rebind: () => void): Promise<void>;
|
|
44
|
+
} | undefined;
|
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
import { tick } from 'svelte';
|
|
2
|
+
import { STAGE_PANEL_LAYOUT_EVENT } from '@spatial-elements/core/stage/panelContext';
|
|
3
|
+
import { resolveCatalogIntent } from '@spatial-elements/core/catalog/catalogRecipes';
|
|
4
|
+
import { captureCardElement, captureElementPlane } from '@spatial-elements/core/catalog/cardProjection';
|
|
5
|
+
import { captureCarouselElement } from '@spatial-elements/core/catalog/carouselPanelProjection';
|
|
6
|
+
import { readCatalogViewContext } from '@spatial-elements/core/catalog/catalogViewLink';
|
|
7
|
+
import { StagedCatalogTransition } from '@spatial-elements/core/catalog/StagedCatalogTransition';
|
|
8
|
+
import { createSourceDomMotion } from '@spatial-elements/core/catalog/SourceDomMotion';
|
|
9
|
+
import { releaseSourceDomClipping } from '@spatial-elements/core/catalog/SourceDomClipping';
|
|
10
|
+
import { resolveDetailLayout } from '@spatial-elements/core/spatial-element/responsiveLayout';
|
|
11
|
+
import { getStageVisualScrollPosition } from '@spatial-elements/core/stage/scrollFrame';
|
|
12
|
+
import { finishInterruptedPresentation } from './interruptedPresentation.js';
|
|
13
|
+
import { releasePresentationResources } from './presentationCleanup.js';
|
|
14
|
+
import { createStagedDomReveal } from './stagedDomReveal.js';
|
|
15
|
+
import { freezeCardAppearance } from '../spatial-element/cardAppearanceFreeze.js';
|
|
16
|
+
/** Leave a real paint opportunity between destination raster preparation and fade. */
|
|
17
|
+
function destinationPainted(signal) {
|
|
18
|
+
return new Promise(resolve => {
|
|
19
|
+
if (signal.aborted) {
|
|
20
|
+
resolve();
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
let frame = 0;
|
|
24
|
+
const finish = () => {
|
|
25
|
+
cancelAnimationFrame(frame);
|
|
26
|
+
signal.removeEventListener('abort', finish);
|
|
27
|
+
resolve();
|
|
28
|
+
};
|
|
29
|
+
signal.addEventListener('abort', finish, { once: true });
|
|
30
|
+
frame = requestAnimationFrame(() => { frame = requestAnimationFrame(finish); });
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
/** Source ownership stays in the persistent shell; Kit only replaces its placement. */
|
|
34
|
+
export function startStagedCatalogNavigation(options) {
|
|
35
|
+
const { root, navigation, endpoints, host, experience } = options;
|
|
36
|
+
const diagnostics = Boolean(options.diagnostics);
|
|
37
|
+
const now = () => diagnostics ? performance.now() : 0;
|
|
38
|
+
const entered = now();
|
|
39
|
+
let decision;
|
|
40
|
+
const decline = (reason) => { decision = reason; if (diagnostics)
|
|
41
|
+
root.dataset.catalogStagedDecision = reason; };
|
|
42
|
+
if (!navigation.from || !navigation.to)
|
|
43
|
+
return;
|
|
44
|
+
const intent = resolveCatalogIntent(navigation.from.url, navigation.to.url, navigation.type, endpoints?.navigation);
|
|
45
|
+
const declaredDock = Boolean(navigation.to.url.hash && navigation.to.url.hash !== '#overview' &&
|
|
46
|
+
readCatalogViewContext(navigation.to.url).targetPresentation === 'dock');
|
|
47
|
+
if (intent?.direction !== 'list-to-detail' || intent.history ||
|
|
48
|
+
(navigation.to.url.hash && navigation.to.url.hash !== '#overview' && !declaredDock))
|
|
49
|
+
return;
|
|
50
|
+
if (diagnostics)
|
|
51
|
+
delete root.dataset.catalogStagedError;
|
|
52
|
+
const slot = endpoints.getContentSlot(intent.identity);
|
|
53
|
+
if (slot !== 'catalog.card' && slot !== 'carousel.front') {
|
|
54
|
+
decline('source-slot');
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
const container = endpoints.resolve({ ...intent.identity, slot, role: 'container' });
|
|
58
|
+
const surface = endpoints.resolve({ ...intent.identity, slot, role: 'summary-surface' });
|
|
59
|
+
if (!container || !surface) {
|
|
60
|
+
decline('source-endpoints');
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
const retained = host.retainByElement(surface);
|
|
64
|
+
if (!retained) {
|
|
65
|
+
decline('source-island');
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
const layout = resolveDetailLayout(options.metrics);
|
|
69
|
+
const geometryKind = declaredDock && layout.composition === 'flow' ? 'dock' : 'hero';
|
|
70
|
+
const occurrence = container.dataset.catalogOccurrence;
|
|
71
|
+
const item = options.items.find(item => item.id === intent.identity.spatialElementId && (!occurrence || item.occurrence === occurrence));
|
|
72
|
+
const capture = slot === 'catalog.card' ? captureCardElement : captureCarouselElement;
|
|
73
|
+
const actors = [];
|
|
74
|
+
if (declaredDock) {
|
|
75
|
+
const destination = layout.dock?.surface ?? layout.pane?.header;
|
|
76
|
+
const paint = slot === 'catalog.card' ? surface : retained.record.root.querySelector('.spatial-summary-surface');
|
|
77
|
+
const title = endpoints.resolve({ ...intent.identity, slot, occurrence, role: 'title' });
|
|
78
|
+
const eyebrow = endpoints.resolve({ ...intent.identity, slot, occurrence, role: 'eyebrow' });
|
|
79
|
+
const paintProjection = paint && capture(paint), titleProjection = title && capture(title);
|
|
80
|
+
const eyebrowProjection = eyebrow && capture(eyebrow);
|
|
81
|
+
if (!destination || !paint || !paintProjection || !title || !titleProjection) {
|
|
82
|
+
decline('dock-source-presentation');
|
|
83
|
+
retained.restore() || retained.release();
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
actors.push({ element: paint, projection: paintProjection,
|
|
87
|
+
target: { left: destination.x, top: destination.y, width: destination.width, height: destination.height } });
|
|
88
|
+
const textLeft = layout.dock?.titleLeft ?? destination.x + 16;
|
|
89
|
+
const availableWidth = Math.max(1, destination.x + destination.width - 64 - textLeft);
|
|
90
|
+
const gap = eyebrowProjection ? 4 : 0;
|
|
91
|
+
const height = titleProjection.height + (eyebrowProjection?.height ?? 0) + gap;
|
|
92
|
+
const scale = Math.min(1, Math.max(1, destination.height - 16) / height, availableWidth / Math.max(titleProjection.width, eyebrowProjection?.width ?? 0));
|
|
93
|
+
let top = destination.y + (destination.height - height * scale) / 2;
|
|
94
|
+
if (eyebrow && eyebrowProjection) {
|
|
95
|
+
actors.push({ element: eyebrow, projection: eyebrowProjection,
|
|
96
|
+
target: { left: textLeft, top, width: eyebrowProjection.width * scale } });
|
|
97
|
+
top += (eyebrowProjection.height + gap) * scale;
|
|
98
|
+
}
|
|
99
|
+
actors.push({ element: title, projection: titleProjection,
|
|
100
|
+
target: { left: textLeft, top, width: titleProjection.width * scale } });
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
const actor = slot === 'catalog.card' ? container : retained.record.root;
|
|
104
|
+
const projection = capture(actor);
|
|
105
|
+
if (!projection) {
|
|
106
|
+
decline('source-projection');
|
|
107
|
+
retained.restore() || retained.release();
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
actors.push({ element: actor, projection,
|
|
111
|
+
target: { left: layout.summary.x, top: layout.summary.anchor.y, width: layout.summary.width } });
|
|
112
|
+
}
|
|
113
|
+
const captured = now();
|
|
114
|
+
const destination = navigation.to.url.href;
|
|
115
|
+
// Include Kit's own post-click scheduling in the acknowledgement measurement.
|
|
116
|
+
const started = diagnostics && navigation.type === 'link' ? navigation.event.timeStamp : now();
|
|
117
|
+
let prepared = 0, firstMotion = 0, firstSubmitted = 0, motionEnded = 0, holdStarted = 0, heldAt = 0, committedAt = 0, revealedAt = 0;
|
|
118
|
+
let revealStarted = 0, revealEnded = 0;
|
|
119
|
+
let holdingHost;
|
|
120
|
+
const holdingMotions = [];
|
|
121
|
+
let adopted = false, committed = false, cleaned = false;
|
|
122
|
+
let retainInterruptedSummary = false;
|
|
123
|
+
let domReveal;
|
|
124
|
+
let restoreClipping;
|
|
125
|
+
let restoreCardAppearance;
|
|
126
|
+
const savedShells = [];
|
|
127
|
+
const exiting = [];
|
|
128
|
+
// Fade disjoint sibling branches without flattening the live source's ancestors.
|
|
129
|
+
const paths = new Set();
|
|
130
|
+
for (const { element } of actors)
|
|
131
|
+
for (let branch = element; branch && branch !== root; branch = branch.parentElement) {
|
|
132
|
+
paths.add(branch);
|
|
133
|
+
if (branch.tagName === 'MAIN')
|
|
134
|
+
break;
|
|
135
|
+
}
|
|
136
|
+
for (const branch of paths) {
|
|
137
|
+
for (const sibling of branch.parentElement?.children ?? []) {
|
|
138
|
+
if (sibling instanceof HTMLElement && !paths.has(sibling) && !sibling.matches('[data-catalog-shell], [data-catalog-shell-continuous], canvas, [data-spatial-viewport-metrics]') && !sibling.querySelector('[data-catalog-shell]'))
|
|
139
|
+
exiting.push(sibling);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
// The flow-layout Mini-Dock replaces the main menu. Real 3XL keeps its fixed
|
|
143
|
+
// menu even when the declared section destination uses the pane header.
|
|
144
|
+
if (geometryKind === 'dock')
|
|
145
|
+
exiting.push(...root.querySelectorAll('[data-catalog-shell]'));
|
|
146
|
+
const presentation = (exit, reveal = 0) => {
|
|
147
|
+
experience.setCatalogTransitionPresentation({ active: true, enterOpacity: reveal,
|
|
148
|
+
exitOpacity: exit, sharedOpacity: committed ? reveal : 1,
|
|
149
|
+
backgroundOpacity: reveal, geometryOpacity: reveal });
|
|
150
|
+
};
|
|
151
|
+
const clear = (cancelled) => {
|
|
152
|
+
if (cleaned)
|
|
153
|
+
return;
|
|
154
|
+
cleaned = true;
|
|
155
|
+
const clipping = restoreClipping;
|
|
156
|
+
restoreClipping = undefined;
|
|
157
|
+
const appearance = restoreCardAppearance;
|
|
158
|
+
restoreCardAppearance = undefined;
|
|
159
|
+
const held = holdingHost;
|
|
160
|
+
holdingHost = undefined;
|
|
161
|
+
releasePresentationResources('Unable to release staged catalog presentation', [
|
|
162
|
+
...holdingMotions.splice(0).map(motion => () => motion?.restore()),
|
|
163
|
+
// Both moving and held Dock actors save the pinned appearance transform.
|
|
164
|
+
// Release their motion before restoring the original authored values.
|
|
165
|
+
() => appearance?.(),
|
|
166
|
+
() => clipping?.(),
|
|
167
|
+
() => {
|
|
168
|
+
if (retainInterruptedSummary)
|
|
169
|
+
return;
|
|
170
|
+
let restored = false;
|
|
171
|
+
try {
|
|
172
|
+
if (cancelled && !adopted)
|
|
173
|
+
restored = retained.restore();
|
|
174
|
+
}
|
|
175
|
+
finally {
|
|
176
|
+
if (!restored)
|
|
177
|
+
retained.release();
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
() => held?.remove(),
|
|
181
|
+
() => {
|
|
182
|
+
for (const name of ['catalog-transition', 'catalog-direction', 'catalog-recipe', 'catalog-enter-hidden', 'catalog-shared-hidden', 'catalog-staged-phase'])
|
|
183
|
+
root.removeAttribute(`data-${name}`);
|
|
184
|
+
for (const name of ['enter', 'shared', 'exit'])
|
|
185
|
+
root.style.removeProperty(`--catalog-${name}-opacity`);
|
|
186
|
+
for (const shell of savedShells)
|
|
187
|
+
shell.removeAttribute('data-catalog-shell-continuous');
|
|
188
|
+
},
|
|
189
|
+
() => { domReveal?.restore(); domReveal = undefined; },
|
|
190
|
+
() => experience.finishCatalogGeometry(),
|
|
191
|
+
() => experience.setCatalogTransitionPresentation({ active: false, enterOpacity: 1, exitOpacity: 1, sharedOpacity: 1 }),
|
|
192
|
+
() => experience.flushCatalogFrame(),
|
|
193
|
+
// Never leave Stage pointing at a terminal owner because GPU cleanup failed.
|
|
194
|
+
() => options.onFinish()
|
|
195
|
+
]);
|
|
196
|
+
};
|
|
197
|
+
const transition = new StagedCatalogTransition({
|
|
198
|
+
actors, exiting,
|
|
199
|
+
reducedMotion: matchMedia('(prefers-reduced-motion: reduce)').matches,
|
|
200
|
+
hooks: {
|
|
201
|
+
begin() {
|
|
202
|
+
if (!experience.beginStagedDetailMotion({ ...intent.identity, slot, occurrence, role: 'geometry' }, layout.mediaFit, declaredDock ? { kind: 'dock', layout: options.metrics, minimap: item?.minimap } : undefined)) {
|
|
203
|
+
decline('geometry-not-ready');
|
|
204
|
+
return false;
|
|
205
|
+
}
|
|
206
|
+
if (slot === 'catalog.card')
|
|
207
|
+
restoreCardAppearance = freezeCardAppearance(container);
|
|
208
|
+
retained.freeze();
|
|
209
|
+
if (declaredDock) {
|
|
210
|
+
retained.record.root.inert = true;
|
|
211
|
+
restoreClipping = releaseSourceDomClipping(actors.map(actor => actor.element), retained.record.root);
|
|
212
|
+
if (!restoreClipping) {
|
|
213
|
+
decline('source-clipping');
|
|
214
|
+
return false;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
decline('accepted');
|
|
218
|
+
root.dataset.catalogStagedPhase = 'moving';
|
|
219
|
+
prepared = now();
|
|
220
|
+
return true;
|
|
221
|
+
},
|
|
222
|
+
frame({ progress, exit, quads }) {
|
|
223
|
+
if (diagnostics && progress > 0 && !firstMotion)
|
|
224
|
+
firstMotion = now();
|
|
225
|
+
experience.setStagedDetailProgress(progress);
|
|
226
|
+
const panel = quads[0];
|
|
227
|
+
if (!experience.setStagedDetailPanel(container, panel.quad, panel.width, panel.height))
|
|
228
|
+
throw new Error('Source panel is not prepared');
|
|
229
|
+
presentation(exit);
|
|
230
|
+
if (progress > 0)
|
|
231
|
+
experience.flushCatalogFrame();
|
|
232
|
+
if (diagnostics && progress > 0 && !firstSubmitted)
|
|
233
|
+
firstSubmitted = now();
|
|
234
|
+
if (diagnostics && progress === 1)
|
|
235
|
+
motionEnded = now();
|
|
236
|
+
},
|
|
237
|
+
hold({ releaseDomStyles }) {
|
|
238
|
+
holdStarted = now();
|
|
239
|
+
root.dataset.catalogStagedPhase = 'holding';
|
|
240
|
+
if (!experience.holdStagedDetail(intent.identity.spatialElementId, geometryKind))
|
|
241
|
+
return false;
|
|
242
|
+
releaseDomStyles();
|
|
243
|
+
holdingHost = document.createElement('div');
|
|
244
|
+
holdingHost.dataset.catalogStagedHold = '';
|
|
245
|
+
holdingHost.style.cssText = 'position:fixed;inset:0;z-index:20;pointer-events:none;overflow:visible;';
|
|
246
|
+
document.body.append(holdingHost);
|
|
247
|
+
retained.hold(holdingHost);
|
|
248
|
+
for (const actor of actors) {
|
|
249
|
+
const heldProjection = captureElementPlane(actor.element, retained.record.root);
|
|
250
|
+
if (!heldProjection)
|
|
251
|
+
return false;
|
|
252
|
+
const motion = createSourceDomMotion(actor.element, heldProjection, actor.target);
|
|
253
|
+
if (!motion?.update(1))
|
|
254
|
+
return false;
|
|
255
|
+
holdingMotions.push(motion);
|
|
256
|
+
}
|
|
257
|
+
root.dataset.catalogTransition = 'holding';
|
|
258
|
+
root.dataset.catalogDirection = 'forward';
|
|
259
|
+
root.dataset.catalogRecipe = `${slot === 'catalog.card' ? 'list' : 'carousel'}-to-${geometryKind}`;
|
|
260
|
+
root.dataset.catalogEnterHidden = '';
|
|
261
|
+
root.dataset.catalogSharedHidden = '';
|
|
262
|
+
root.dataset.catalogStagedPhase = 'held';
|
|
263
|
+
root.style.setProperty('--catalog-enter-opacity', '0');
|
|
264
|
+
root.style.setProperty('--catalog-shared-opacity', '0');
|
|
265
|
+
for (const shell of geometryKind === 'dock' ? [] : root.querySelectorAll('[data-catalog-shell]')) {
|
|
266
|
+
if (!shell.hasAttribute('data-catalog-shell-continuous') && shell.getBoundingClientRect().top >= 0) {
|
|
267
|
+
shell.setAttribute('data-catalog-shell-continuous', '');
|
|
268
|
+
savedShells.push(shell);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
heldAt = now();
|
|
272
|
+
return true;
|
|
273
|
+
},
|
|
274
|
+
reveal(progress) {
|
|
275
|
+
if (diagnostics && !revealStarted)
|
|
276
|
+
revealStarted = now();
|
|
277
|
+
domReveal ??= createStagedDomReveal(root);
|
|
278
|
+
domReveal.setProgress(progress);
|
|
279
|
+
if (root.dataset.catalogStagedPhase !== 'revealing') {
|
|
280
|
+
root.dataset.catalogStagedPhase = 'revealing';
|
|
281
|
+
root.removeAttribute('data-catalog-enter-hidden');
|
|
282
|
+
root.removeAttribute('data-catalog-shared-hidden');
|
|
283
|
+
}
|
|
284
|
+
if (!adopted)
|
|
285
|
+
retained.record.root.style.opacity = String(1 - progress);
|
|
286
|
+
experience.setStagedPanelOpacity(1 - progress);
|
|
287
|
+
presentation(0, progress);
|
|
288
|
+
experience.flushCatalogFrame();
|
|
289
|
+
if (diagnostics && progress === 1)
|
|
290
|
+
revealEnded = now();
|
|
291
|
+
},
|
|
292
|
+
finish() { revealedAt = now(); clear(false); },
|
|
293
|
+
cancel(reason) { if (decision === 'accepted')
|
|
294
|
+
decline(`cancelled:${reason}`); clear(true); },
|
|
295
|
+
error(error, phase) {
|
|
296
|
+
if (!diagnostics)
|
|
297
|
+
return;
|
|
298
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
299
|
+
// Persist the original exception before cleanup alters the endpoint inventory.
|
|
300
|
+
root.dataset.catalogStagedError = JSON.stringify({ phase, message });
|
|
301
|
+
const detail = root.querySelector('[data-spatial-element-root]');
|
|
302
|
+
const header = root.querySelector('[data-spatial-element-sticky-header]');
|
|
303
|
+
root.dataset.catalogStagedError = JSON.stringify({ phase, message,
|
|
304
|
+
name: error instanceof Error ? error.name : typeof error,
|
|
305
|
+
geometryKind, declaredDock, identity: intent.identity, committed, adopted,
|
|
306
|
+
composition: endpoints.getComposition(intent.identity), scroll: getStageVisualScrollPosition(),
|
|
307
|
+
dockActive: detail?.hasAttribute('data-spatial-element-dock-active'),
|
|
308
|
+
dockProgress: header?.getAttribute('data-spatial-element-dock-progress'),
|
|
309
|
+
endpoints: endpoints.getSnapshot().entries.filter(entry => entry.brandId === intent.identity.brandId &&
|
|
310
|
+
entry.spatialElementId === intent.identity.spatialElementId && entry.slot.startsWith('detail.'))
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
});
|
|
315
|
+
const handle = transition.start();
|
|
316
|
+
if (!handle)
|
|
317
|
+
return;
|
|
318
|
+
return {
|
|
319
|
+
handle, destination,
|
|
320
|
+
get phase() { return transition.phase; },
|
|
321
|
+
get timings() { return { started, entered, captured, prepared, firstMotion, firstSubmitted, motionEnded, holdStarted, held: heldAt, committed: committedAt, revealStarted, revealEnded, revealed: revealedAt }; },
|
|
322
|
+
commit() { committed = true; committedAt = now(); presentation(0); },
|
|
323
|
+
cancel(reason = 'cancelled') { transition.cancel(reason); },
|
|
324
|
+
cancelCommitted(reason) {
|
|
325
|
+
// Scroll/resize cancels the visual overlay, not the already committed
|
|
326
|
+
// forward navigation or the source component's semantic state.
|
|
327
|
+
const transferSummary = committed && retained.record.kind === 'summary';
|
|
328
|
+
retainInterruptedSummary = transferSummary && !adopted;
|
|
329
|
+
transition.cancel(reason);
|
|
330
|
+
if (!transferSummary)
|
|
331
|
+
return;
|
|
332
|
+
return finishInterruptedPresentation({
|
|
333
|
+
settle: tick,
|
|
334
|
+
release: retained.release,
|
|
335
|
+
adopt() {
|
|
336
|
+
const destinationSurface = endpoints.resolve({ ...intent.identity, slot: 'detail.summary', role: 'summary-surface' });
|
|
337
|
+
const destinationSlot = destinationSurface?.querySelector('[data-spatial-summary-slot]');
|
|
338
|
+
if (!destinationSlot)
|
|
339
|
+
throw new Error('Interrupted summary destination did not bind');
|
|
340
|
+
if (!adopted) {
|
|
341
|
+
adopted = retained.adopt(destinationSlot);
|
|
342
|
+
if (!adopted)
|
|
343
|
+
throw new Error('Interrupted summary ownership transfer failed');
|
|
344
|
+
retained.unfreeze();
|
|
345
|
+
}
|
|
346
|
+
return destinationSlot;
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
},
|
|
350
|
+
async reveal(rebind) {
|
|
351
|
+
const adoptSummary = async (signal) => {
|
|
352
|
+
if (signal.aborted || cleaned)
|
|
353
|
+
return;
|
|
354
|
+
const destinationSurface = endpoints.resolve({ ...intent.identity, slot: 'detail.summary', role: 'summary-surface' });
|
|
355
|
+
const destinationSlot = destinationSurface?.querySelector('[data-spatial-summary-slot]');
|
|
356
|
+
if (retained.record.kind === 'summary' && !destinationSlot)
|
|
357
|
+
throw new Error('Summary destination did not bind');
|
|
358
|
+
if (retained.record.kind === 'summary' && destinationSlot) {
|
|
359
|
+
for (const motion of holdingMotions.splice(0))
|
|
360
|
+
motion?.restore();
|
|
361
|
+
restoreClipping?.();
|
|
362
|
+
restoreClipping = undefined;
|
|
363
|
+
adopted = retained.adopt(destinationSlot);
|
|
364
|
+
if (!adopted)
|
|
365
|
+
throw new Error('Summary ownership transfer failed');
|
|
366
|
+
retained.unfreeze();
|
|
367
|
+
await tick();
|
|
368
|
+
if (signal.aborted)
|
|
369
|
+
return;
|
|
370
|
+
destinationSlot.dispatchEvent(new Event('spatial-summary-measure'));
|
|
371
|
+
await tick();
|
|
372
|
+
if (signal.aborted)
|
|
373
|
+
return;
|
|
374
|
+
rebind();
|
|
375
|
+
window.dispatchEvent(new Event(STAGE_PANEL_LAYOUT_EVENT));
|
|
376
|
+
experience.flushCatalogFrame();
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
await transition.reveal([], async (signal) => {
|
|
380
|
+
if (geometryKind === 'dock' && endpoints.getComposition(intent.identity) !== 'dock')
|
|
381
|
+
throw new Error('Declared dock endpoint is not fully docked');
|
|
382
|
+
if (!experience.prepareGeometryDestination({ spatialElementId: intent.identity.spatialElementId, kind: geometryKind }))
|
|
383
|
+
throw new Error('Detail endpoint did not bind');
|
|
384
|
+
experience.beginCatalogMotion();
|
|
385
|
+
experience.setCatalogGeometryProgress(1);
|
|
386
|
+
if (!declaredDock)
|
|
387
|
+
await adoptSummary(signal);
|
|
388
|
+
if (signal.aborted)
|
|
389
|
+
return;
|
|
390
|
+
if (!await experience.prepareStagedReveal(signal) && !signal.aborted)
|
|
391
|
+
throw new Error('Detail reveal could not be prepared');
|
|
392
|
+
// held CSS rasterizes the real incoming DOM at negligible opacity.
|
|
393
|
+
// GPU readiness alone does not warm the browser's separate compositor.
|
|
394
|
+
await destinationPainted(signal);
|
|
395
|
+
}, declaredDock ? async (signal) => {
|
|
396
|
+
if (signal.aborted || cleaned)
|
|
397
|
+
return;
|
|
398
|
+
root.dataset.catalogStagedPhase = 'committing';
|
|
399
|
+
await adoptSummary(signal);
|
|
400
|
+
} : undefined);
|
|
401
|
+
}
|
|
402
|
+
};
|
|
403
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const STAGED_REVEAL_OPACITY = "--catalog-reveal-opacity";
|
|
2
|
+
/** The existing paint formula owns the fade; panel frame wrappers never do. */
|
|
3
|
+
export declare function isStagedRevealPaintOwner(element: HTMLElement): boolean;
|
|
4
|
+
/** One staged reveal owns only a non-inherited property on real paint targets. */
|
|
5
|
+
export declare function createStagedDomReveal(root: HTMLElement): {
|
|
6
|
+
setProgress(progress: number): void;
|
|
7
|
+
restore(): void;
|
|
8
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export const STAGED_REVEAL_OPACITY = '--catalog-reveal-opacity';
|
|
2
|
+
const CANDIDATES = '[data-catalog-transition-dom="enter"], [data-stage-panel-content], [data-stage-panel-css-surface]';
|
|
3
|
+
const OBSERVED_ATTRIBUTES = ['data-catalog-transition-dom', 'data-catalog-transition-group',
|
|
4
|
+
'data-stage-panel-content', 'data-stage-panel-css-surface', 'data-catalog-shell-continuous'];
|
|
5
|
+
/** The existing paint formula owns the fade; panel frame wrappers never do. */
|
|
6
|
+
export function isStagedRevealPaintOwner(element) {
|
|
7
|
+
if (element.closest('[data-catalog-shell-continuous]'))
|
|
8
|
+
return false;
|
|
9
|
+
if (element.getAttribute('data-catalog-transition-dom') === 'enter')
|
|
10
|
+
return true;
|
|
11
|
+
if (!element.hasAttribute('data-stage-panel-content') && !element.hasAttribute('data-stage-panel-css-surface'))
|
|
12
|
+
return false;
|
|
13
|
+
// Nested panels can inherit the original transition factor without carrying
|
|
14
|
+
// a group marker of their own. Keep that existing multiplicative behavior.
|
|
15
|
+
const group = element.closest('[data-catalog-transition-group]')?.getAttribute('data-catalog-transition-group');
|
|
16
|
+
return group === 'enter' || group === 'shared';
|
|
17
|
+
}
|
|
18
|
+
/** One staged reveal owns only a non-inherited property on real paint targets. */
|
|
19
|
+
export function createStagedDomReveal(root) {
|
|
20
|
+
const receivers = new Map();
|
|
21
|
+
let disposed = false, opacity = '0';
|
|
22
|
+
const restoreProperty = (element, original) => {
|
|
23
|
+
if (original.value)
|
|
24
|
+
element.style.setProperty(STAGED_REVEAL_OPACITY, original.value, original.priority);
|
|
25
|
+
else
|
|
26
|
+
element.style.removeProperty(STAGED_REVEAL_OPACITY);
|
|
27
|
+
};
|
|
28
|
+
const write = (element, original) => {
|
|
29
|
+
if (original.written === opacity)
|
|
30
|
+
return;
|
|
31
|
+
element.style.setProperty(STAGED_REVEAL_OPACITY, opacity);
|
|
32
|
+
original.written = opacity;
|
|
33
|
+
};
|
|
34
|
+
const refresh = () => {
|
|
35
|
+
if (disposed)
|
|
36
|
+
return;
|
|
37
|
+
const current = new Set(Array.from(root.querySelectorAll(CANDIDATES)).filter(isStagedRevealPaintOwner));
|
|
38
|
+
for (const [element, original] of receivers)
|
|
39
|
+
if (!current.has(element)) {
|
|
40
|
+
restoreProperty(element, original);
|
|
41
|
+
receivers.delete(element);
|
|
42
|
+
}
|
|
43
|
+
for (const element of current) {
|
|
44
|
+
let original = receivers.get(element);
|
|
45
|
+
if (!original) {
|
|
46
|
+
original = { value: element.style.getPropertyValue(STAGED_REVEAL_OPACITY),
|
|
47
|
+
priority: element.style.getPropertyPriority(STAGED_REVEAL_OPACITY) };
|
|
48
|
+
receivers.set(element, original);
|
|
49
|
+
}
|
|
50
|
+
write(element, original);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
// Child and marker changes are reconciled before the next paint. No style
|
|
54
|
+
// observation, computed-style reads or layout measurements occur per frame.
|
|
55
|
+
const observer = new MutationObserver(refresh);
|
|
56
|
+
observer.observe(root, { childList: true, subtree: true, attributes: true, attributeFilter: OBSERVED_ATTRIBUTES });
|
|
57
|
+
refresh();
|
|
58
|
+
return {
|
|
59
|
+
setProgress(progress) {
|
|
60
|
+
if (disposed)
|
|
61
|
+
return;
|
|
62
|
+
opacity = String(Number.isFinite(progress) ? Math.min(1, Math.max(0, progress)) : 0);
|
|
63
|
+
for (const [element, original] of receivers)
|
|
64
|
+
write(element, original);
|
|
65
|
+
},
|
|
66
|
+
restore() {
|
|
67
|
+
if (disposed)
|
|
68
|
+
return;
|
|
69
|
+
disposed = true;
|
|
70
|
+
observer.disconnect();
|
|
71
|
+
for (const [element, original] of receivers)
|
|
72
|
+
restoreProperty(element, original);
|
|
73
|
+
receivers.clear();
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -3,4 +3,8 @@ export { default as Panel } from './stage/Panel.svelte';
|
|
|
3
3
|
export { default as Stage } from './stage/Stage.svelte';
|
|
4
4
|
export { default as StageViewport } from './stage/StageViewport.svelte';
|
|
5
5
|
export { catalogViewLink } from '@spatial-elements/core';
|
|
6
|
+
export { createCatalogEndpointAction } from './catalog/catalogEndpointAction.js';
|
|
6
7
|
export { default as ScrollNavigationBridge } from './catalog/ScrollNavigationBridge.svelte';
|
|
8
|
+
export { default as ButtonGroup } from './stage/ButtonGroup.svelte';
|
|
9
|
+
export type { ButtonGroupItem } from './stage/buttonGroup.js';
|
|
10
|
+
export { getSpatialThemeStyle } from './spatial-element/spatialThemeStyle.js';
|
package/dist/index.js
CHANGED
|
@@ -3,4 +3,7 @@ export { default as Panel } from './stage/Panel.svelte';
|
|
|
3
3
|
export { default as Stage } from './stage/Stage.svelte';
|
|
4
4
|
export { default as StageViewport } from './stage/StageViewport.svelte';
|
|
5
5
|
export { catalogViewLink } from '@spatial-elements/core';
|
|
6
|
+
export { createCatalogEndpointAction } from './catalog/catalogEndpointAction.js';
|
|
6
7
|
export { default as ScrollNavigationBridge } from './catalog/ScrollNavigationBridge.svelte';
|
|
8
|
+
export { default as ButtonGroup } from './stage/ButtonGroup.svelte';
|
|
9
|
+
export { getSpatialThemeStyle } from './spatial-element/spatialThemeStyle.js';
|