@motionstudies/web 0.1.0-alpha.17 → 0.1.0-alpha.18

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.
@@ -0,0 +1,2 @@
1
+ /** Button help in its own Suspense boundary, so the application never waits for it. */
2
+ export declare function LazyButtonTooltips(): import("react").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Suspense, lazy } from 'react';
3
+ // Desktop button help is not needed for the first view; keep it out of the opening bundle.
4
+ const ButtonTooltips = lazy(() => import('./ButtonTooltips.js').then((module) => ({ default: module.ButtonTooltips })));
5
+ /** Button help in its own Suspense boundary, so the application never waits for it. */
6
+ export function LazyButtonTooltips() {
7
+ return _jsx(Suspense, { fallback: null, children: _jsx(ButtonTooltips, {}) });
8
+ }
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { StrictMode } from 'react';
3
3
  import { createRoot } from 'react-dom/client';
4
- import { ButtonTooltips } from './components/ButtonTooltips.js';
4
+ import { LazyButtonTooltips } from './components/LazyButtonTooltips.js';
5
5
  import { applyVisualTheme } from './visual-theme.js';
6
6
  export function mountMotionStudy(edition, application) {
7
7
  const root = document.getElementById('root');
@@ -10,5 +10,5 @@ export function mountMotionStudy(edition, application) {
10
10
  document.documentElement.classList.add('motion-study');
11
11
  document.documentElement.dataset.edition = edition.id;
12
12
  applyVisualTheme(edition.theme);
13
- createRoot(root).render(_jsxs(StrictMode, { children: [application, _jsx(ButtonTooltips, {})] }));
13
+ createRoot(root).render(_jsxs(StrictMode, { children: [application, _jsx(LazyButtonTooltips, {})] }));
14
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@motionstudies/web",
3
- "version": "0.1.0-alpha.17",
3
+ "version": "0.1.0-alpha.18",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Browser controls and loaders for Motion Studies.",
@@ -168,7 +168,7 @@
168
168
  "**/*.css"
169
169
  ],
170
170
  "dependencies": {
171
- "@motionstudies/core": "0.1.0-alpha.17"
171
+ "@motionstudies/core": "0.1.0-alpha.18"
172
172
  },
173
173
  "peerDependencies": {
174
174
  "react": "^19.2.8",