@one2x/medeo-plugin-sdk 0.0.0-stage → 0.11.0

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,190 @@
1
+ import { METHODS } from "./registry.js";
2
+ const installations = [];
3
+ function installAPI(api) {
4
+ const entry = { api, previous: Object.getOwnPropertyDescriptor(globalThis, 'medeoPlugin'), removed: false };
5
+ Object.defineProperty(globalThis, 'medeoPlugin', { configurable: true, writable: true, value: api });
6
+ installations.push(entry);
7
+ return () => {
8
+ if (entry.removed)
9
+ return;
10
+ entry.removed = true;
11
+ while (installations.at(-1)?.removed) {
12
+ const top = installations.pop();
13
+ // Never overwrite a bridge installed by unrelated test code.
14
+ if (Object.getOwnPropertyDescriptor(globalThis, 'medeoPlugin')?.value !== top.api)
15
+ continue;
16
+ if (top.previous)
17
+ Object.defineProperty(globalThis, 'medeoPlugin', top.previous);
18
+ else
19
+ Reflect.deleteProperty(globalThis, 'medeoPlugin');
20
+ }
21
+ };
22
+ }
23
+ /** Offline bridge for real SDK calls. No OS, permissions, persistence or manifest
24
+ * validation is simulated. Channel messages loop back to this host's listeners.
25
+ * Install only within a serial test scope (globals cannot isolate concurrent tests).
26
+ * Every unimplemented capability fails unless supplied in `handlers`.
27
+ */
28
+ export function createFakeHost(options = {}) {
29
+ const clone = (value) => structuredClone(value);
30
+ const storage = new Map(Object.entries(clone(options.storage ?? {})));
31
+ const config = new Map(Object.entries(clone(options.config ?? {})));
32
+ const handlers = new Map(Object.entries(options.handlers ?? {}));
33
+ const commands = new Map();
34
+ const messages = new Set();
35
+ const events = new Set();
36
+ const locales = new Set();
37
+ const restores = new Set();
38
+ // Medeo Launcher Protocol: the provider the plugin registered, and views its commands pushed.
39
+ let launcherHandler = null;
40
+ const launcherViews = [];
41
+ let launcherAnswer = () => ({ confirmed: true });
42
+ let disposed = false;
43
+ const assertActive = () => { if (disposed)
44
+ throw new Error('fake_host_disposed'); };
45
+ const subscribe = (listeners, callback) => {
46
+ assertActive();
47
+ listeners.add(callback);
48
+ return () => { listeners.delete(callback); };
49
+ };
50
+ const emit = (listeners, value) => {
51
+ assertActive();
52
+ for (const listener of [...listeners])
53
+ listener(clone(value));
54
+ };
55
+ const key = (args) => {
56
+ if (typeof args.key !== 'string')
57
+ throw new Error('invalid_key');
58
+ return args.key;
59
+ };
60
+ const builtins = {
61
+ 'storage.get': args => clone(storage.get(key(args)) ?? null),
62
+ 'storage.set': args => { storage.set(key(args), clone(args.value)); return null; },
63
+ 'storage.remove': args => { storage.delete(key(args)); return null; },
64
+ 'config.get': args => {
65
+ if (args.key === undefined)
66
+ return Object.fromEntries(config);
67
+ const name = key(args);
68
+ if (!config.has(name))
69
+ throw new Error(`unknown_configuration: ${name}`);
70
+ return config.get(name);
71
+ },
72
+ 'config.set': args => {
73
+ const name = key(args);
74
+ if (!config.has(name))
75
+ throw new Error(`unknown_configuration: ${name}`);
76
+ config.set(name, clone(args.value));
77
+ emit(events, { type: 'signal', channel: 'config' });
78
+ return null;
79
+ },
80
+ };
81
+ const api = {
82
+ async invoke(method, args = {}) {
83
+ assertActive();
84
+ const handler = handlers.get(method) ?? (Object.hasOwn(builtins, method) ? builtins[method] : undefined);
85
+ if (!handler)
86
+ throw new Error(`${Object.hasOwn(METHODS, method) ? 'unimplemented_method' : 'unknown_method'}: ${method}`);
87
+ return clone(await handler(clone(args)));
88
+ },
89
+ async run(command, args) {
90
+ assertActive();
91
+ const handler = commands.get(command);
92
+ if (!handler)
93
+ throw new Error(`unregistered_command: ${command}`);
94
+ return clone(await handler(clone(args)));
95
+ },
96
+ async post(message) { emit(messages, message); },
97
+ onMessage: callback => subscribe(messages, callback),
98
+ onEvent: callback => subscribe(events, callback),
99
+ onLocaleChanged: callback => subscribe(locales, callback),
100
+ onLauncher: handler => { assertActive(); launcherHandler = handler; return () => { if (launcherHandler === handler)
101
+ launcherHandler = null; }; },
102
+ async launcher(op, session, view) {
103
+ assertActive();
104
+ launcherViews.push(clone({ session, op, view }));
105
+ return op === 'prompt' ? clone(await launcherAnswer(view)) : null;
106
+ },
107
+ };
108
+ const context = {
109
+ subscriptions: [],
110
+ commands: {
111
+ register(id, handler) {
112
+ assertActive();
113
+ if (commands.has(id))
114
+ throw new Error(`duplicate_command: ${id}`);
115
+ commands.set(id, handler);
116
+ const disposable = { dispose() { if (commands.get(id) === handler)
117
+ commands.delete(id); } };
118
+ context.subscriptions.push(disposable);
119
+ return disposable;
120
+ },
121
+ },
122
+ };
123
+ for (const [id, handler] of Object.entries(options.commands ?? {}))
124
+ context.commands.register(id, handler);
125
+ return {
126
+ api, context,
127
+ /** Explicit installation: importing this module never changes the global. */
128
+ install() {
129
+ assertActive();
130
+ const restore = installAPI(api);
131
+ const off = () => { restore(); restores.delete(off); };
132
+ restores.add(off);
133
+ return off;
134
+ },
135
+ emitEvent: (event) => emit(events, event),
136
+ emitMessage: (message) => emit(messages, message),
137
+ emitLocaleChanged: (state) => emit(locales, state),
138
+ /** What the plugin's `launcher.provide` answers, as a launcher would ask. */
139
+ async launcherSearch(query, options = {}) {
140
+ if (!launcherHandler)
141
+ throw new Error('no_launcher_provider');
142
+ return clone(await launcherHandler({ op: 'search', payload: { query, scoped: options.scoped ?? false, limit: options.limit ?? 20 } }));
143
+ },
144
+ async launcherAct(item, action, query = '') {
145
+ if (!launcherHandler)
146
+ throw new Error('no_launcher_provider');
147
+ return clone(await launcherHandler({ op: 'action', payload: { item, action, query } }));
148
+ },
149
+ /** Runs a command as a launcher does (with a session); its views are in `launcherViews`. */
150
+ runFromLauncher(command, args = {}, session = 'test-session') {
151
+ return api.run(command, { ...args, launcher: { session } });
152
+ },
153
+ launcherViews,
154
+ /** How prompts are answered (default: confirmed). */
155
+ answerPrompts(answer) { launcherAnswer = answer; },
156
+ async dispose() {
157
+ if (disposed)
158
+ return;
159
+ disposed = true;
160
+ for (const restore of [...restores].reverse())
161
+ restore();
162
+ messages.clear();
163
+ events.clear();
164
+ locales.clear();
165
+ commands.clear();
166
+ const errors = [];
167
+ for (const subscription of context.subscriptions.splice(0).reverse()) {
168
+ try {
169
+ await subscription.dispose();
170
+ }
171
+ catch (error) {
172
+ errors.push(error);
173
+ }
174
+ }
175
+ if (errors.length)
176
+ throw new AggregateError(errors, 'fake_host_cleanup_failed');
177
+ },
178
+ };
179
+ }
180
+ /** Installs a bridge for a callback and restores it even when the callback throws. */
181
+ export async function withFakeHost(options, run) {
182
+ const host = createFakeHost(options);
183
+ host.install();
184
+ try {
185
+ return await run(host);
186
+ }
187
+ finally {
188
+ await host.dispose();
189
+ }
190
+ }
@@ -0,0 +1,4 @@
1
+ /** Layout only: colors, type and dimensions remain owned by /_medeo/theme.css. */
2
+ export declare const uiStyles = "\n.medeo-ui{font-family:var(--font-family-plain);color:var(--color-surface-on-surface);font-size:var(--type-label-large-size);line-height:var(--type-label-large-leading)}\n.medeo-card{padding:var(--space-s5);border:1px solid var(--color-surface-outline-variant);border-radius:var(--shape-radius-16);background:var(--color-surface-surface-container-lowest);display:grid;gap:var(--space-s3)}\n.medeo-card h2,.medeo-empty h2{margin:0;font-size:var(--type-title-medium-size);line-height:var(--type-title-medium-leading);font-weight:var(--type-title-medium-weight);letter-spacing:var(--type-title-medium-tracking)}\n.medeo-description{margin:0;color:var(--color-surface-on-surface-variant)}\n.medeo-pill{display:inline-flex;align-items:center;justify-self:start;padding:var(--space-s1) var(--space-s3);border-radius:var(--shape-radius-full);background:var(--medeo-selected);font-size:var(--type-label-medium-size);line-height:var(--type-label-medium-leading);font-weight:var(--type-label-medium-prominent-weight)}\n.medeo-pill[data-tone=error]{color:var(--color-schemes-error);background:var(--medeo-error-wash)}\n.medeo-pill[data-tone=neutral]{background:var(--medeo-hover)}\n.medeo-toggle{display:inline-flex;align-items:center;gap:var(--space-s2);min-height:var(--space-s8);cursor:pointer}\n.medeo-toggle input{width:var(--space-s4);height:var(--space-s4);accent-color:var(--color-schemes-primary)}\n.medeo-toggle:has(input:disabled){opacity:.45;cursor:default}\n.medeo-segmented{display:flex;flex-wrap:wrap;gap:var(--space-s1);padding:var(--space-s1);border:1px solid var(--color-surface-outline-variant);border-radius:var(--shape-radius-12)}\n.medeo-segmented button{font:inherit;color:inherit;border:0;border-radius:var(--shape-radius-8);background:transparent;min-height:var(--space-s8);padding:var(--space-s2) var(--space-s3);cursor:pointer}\n.medeo-segmented button[aria-checked=true]{background:var(--color-schemes-primary);color:var(--color-schemes-on-primary)}\n.medeo-segmented button:hover:not(:disabled):not([aria-checked=true]){background:var(--medeo-hover)}\n.medeo-segmented button:disabled{opacity:.45;cursor:default}\n.medeo-ui :focus-visible{outline:2px solid var(--color-schemes-primary);outline-offset:2px}\n.medeo-list{list-style:none;margin:0;padding:0;display:grid;gap:var(--space-s2)}\n.medeo-list>li{padding:var(--space-s3);border-bottom:1px solid var(--color-surface-outline-variant)}\n.medeo-empty{display:grid;gap:var(--space-s2);padding:var(--space-s7);text-align:center;border:1px dashed var(--color-surface-outline);border-radius:var(--shape-radius-12)}\n";
3
+ /** Explicit and idempotent; importing this module has no DOM side effects. */
4
+ export declare function installStyles(doc?: Document): void;
@@ -0,0 +1,31 @@
1
+ /** Layout only: colors, type and dimensions remain owned by /_medeo/theme.css. */
2
+ export const uiStyles = `
3
+ .medeo-ui{font-family:var(--font-family-plain);color:var(--color-surface-on-surface);font-size:var(--type-label-large-size);line-height:var(--type-label-large-leading)}
4
+ .medeo-card{padding:var(--space-s5);border:1px solid var(--color-surface-outline-variant);border-radius:var(--shape-radius-16);background:var(--color-surface-surface-container-lowest);display:grid;gap:var(--space-s3)}
5
+ .medeo-card h2,.medeo-empty h2{margin:0;font-size:var(--type-title-medium-size);line-height:var(--type-title-medium-leading);font-weight:var(--type-title-medium-weight);letter-spacing:var(--type-title-medium-tracking)}
6
+ .medeo-description{margin:0;color:var(--color-surface-on-surface-variant)}
7
+ .medeo-pill{display:inline-flex;align-items:center;justify-self:start;padding:var(--space-s1) var(--space-s3);border-radius:var(--shape-radius-full);background:var(--medeo-selected);font-size:var(--type-label-medium-size);line-height:var(--type-label-medium-leading);font-weight:var(--type-label-medium-prominent-weight)}
8
+ .medeo-pill[data-tone=error]{color:var(--color-schemes-error);background:var(--medeo-error-wash)}
9
+ .medeo-pill[data-tone=neutral]{background:var(--medeo-hover)}
10
+ .medeo-toggle{display:inline-flex;align-items:center;gap:var(--space-s2);min-height:var(--space-s8);cursor:pointer}
11
+ .medeo-toggle input{width:var(--space-s4);height:var(--space-s4);accent-color:var(--color-schemes-primary)}
12
+ .medeo-toggle:has(input:disabled){opacity:.45;cursor:default}
13
+ .medeo-segmented{display:flex;flex-wrap:wrap;gap:var(--space-s1);padding:var(--space-s1);border:1px solid var(--color-surface-outline-variant);border-radius:var(--shape-radius-12)}
14
+ .medeo-segmented button{font:inherit;color:inherit;border:0;border-radius:var(--shape-radius-8);background:transparent;min-height:var(--space-s8);padding:var(--space-s2) var(--space-s3);cursor:pointer}
15
+ .medeo-segmented button[aria-checked=true]{background:var(--color-schemes-primary);color:var(--color-schemes-on-primary)}
16
+ .medeo-segmented button:hover:not(:disabled):not([aria-checked=true]){background:var(--medeo-hover)}
17
+ .medeo-segmented button:disabled{opacity:.45;cursor:default}
18
+ .medeo-ui :focus-visible{outline:2px solid var(--color-schemes-primary);outline-offset:2px}
19
+ .medeo-list{list-style:none;margin:0;padding:0;display:grid;gap:var(--space-s2)}
20
+ .medeo-list>li{padding:var(--space-s3);border-bottom:1px solid var(--color-surface-outline-variant)}
21
+ .medeo-empty{display:grid;gap:var(--space-s2);padding:var(--space-s7);text-align:center;border:1px dashed var(--color-surface-outline);border-radius:var(--shape-radius-12)}
22
+ `;
23
+ /** Explicit and idempotent; importing this module has no DOM side effects. */
24
+ export function installStyles(doc = document) {
25
+ if (doc.querySelector('style[data-medeo-ui]'))
26
+ return;
27
+ const style = doc.createElement('style');
28
+ style.dataset.medeoUi = '';
29
+ style.textContent = uiStyles;
30
+ doc.head.append(style);
31
+ }
package/dist/ui.d.ts ADDED
@@ -0,0 +1,50 @@
1
+ export { installStyles, uiStyles } from './ui/styles.js';
2
+ export interface Identified {
3
+ testid: string;
4
+ }
5
+ export interface CardOptions extends Identified {
6
+ title: string;
7
+ description?: string;
8
+ }
9
+ export interface PillOptions extends Identified {
10
+ label: string;
11
+ tone?: 'neutral' | 'info' | 'error';
12
+ }
13
+ export interface ToggleOptions extends Identified {
14
+ label: string;
15
+ checked: boolean;
16
+ disabled?: boolean;
17
+ onChange: (checked: boolean) => void;
18
+ }
19
+ export interface Segment<T extends string = string> {
20
+ value: T;
21
+ label: string;
22
+ disabled?: boolean;
23
+ }
24
+ export interface SegmentedOptions<T extends string = string> extends Identified {
25
+ label: string;
26
+ options: readonly Segment<T>[];
27
+ value: T;
28
+ disabled?: boolean;
29
+ onChange: (value: T) => void;
30
+ }
31
+ export interface ListOptions extends Identified {
32
+ label: string;
33
+ }
34
+ export type Child = Node | string | number | null | undefined | false;
35
+ export declare function card(options: CardOptions, ...children: Child[]): HTMLElement;
36
+ export declare function pill(options: PillOptions): HTMLSpanElement;
37
+ /** Native checkbox keyboard behavior (Space), with switch semantics. */
38
+ export declare function toggle(options: ToggleOptions): HTMLLabelElement & {
39
+ input: HTMLInputElement;
40
+ };
41
+ /** Shared radio keyboard navigation; disabled choices are skipped, edges wrap. */
42
+ export declare function segmentTarget<T extends string>(options: readonly Segment<T>[], index: number, key: string, rtl?: boolean): number | undefined;
43
+ export declare function segmentTabIndex<T extends string>(options: readonly Segment<T>[], value: T, index: number): number;
44
+ export declare function segmented<T extends string>(options: SegmentedOptions<T>): HTMLDivElement & {
45
+ setValue(value: T): void;
46
+ setDisabled(disabled: boolean): void;
47
+ };
48
+ /** Each child becomes one semantic list item; caller owns empty-state wording. */
49
+ export declare function list(options: ListOptions, ...items: Child[]): HTMLUListElement;
50
+ export declare function emptyState(options: CardOptions): HTMLElement;
package/dist/ui.js ADDED
@@ -0,0 +1,115 @@
1
+ export { installStyles, uiStyles } from './ui/styles.js';
2
+ function node(tag, className, testid, text) {
3
+ const el = document.createElement(tag);
4
+ el.className = className;
5
+ if (testid !== undefined)
6
+ el.dataset.testid = testid;
7
+ if (text !== undefined)
8
+ el.textContent = text;
9
+ return el;
10
+ }
11
+ function append(el, children) {
12
+ for (const child of children)
13
+ if (child !== null && child !== undefined && child !== false)
14
+ el.append(typeof child === 'number' ? String(child) : child);
15
+ }
16
+ export function card(options, ...children) {
17
+ const root = node('section', 'medeo-ui medeo-card', options.testid);
18
+ root.setAttribute('aria-label', options.title);
19
+ root.append(node('h2', '', `${options.testid}.title`, options.title));
20
+ if (options.description !== undefined)
21
+ root.append(node('p', 'medeo-description', undefined, options.description));
22
+ append(root, children);
23
+ return root;
24
+ }
25
+ export function pill(options) {
26
+ const root = node('span', 'medeo-ui medeo-pill', options.testid, options.label);
27
+ root.dataset.tone = options.tone ?? 'info';
28
+ return root;
29
+ }
30
+ /** Native checkbox keyboard behavior (Space), with switch semantics. */
31
+ export function toggle(options) {
32
+ const root = node('label', 'medeo-ui medeo-toggle', `${options.testid}.root`);
33
+ const input = node('input', '', options.testid);
34
+ input.type = 'checkbox';
35
+ input.setAttribute('role', 'switch');
36
+ input.checked = options.checked;
37
+ input.disabled = options.disabled ?? false;
38
+ input.addEventListener('change', () => options.onChange(input.checked));
39
+ root.append(input, node('span', '', undefined, options.label));
40
+ return Object.assign(root, { input });
41
+ }
42
+ /** Shared radio keyboard navigation; disabled choices are skipped, edges wrap. */
43
+ export function segmentTarget(options, index, key, rtl = false) {
44
+ const enabled = options.map((o, i) => o.disabled ? -1 : i).filter(i => i >= 0);
45
+ if (!enabled.length)
46
+ return undefined;
47
+ if (key === 'Home')
48
+ return enabled[0];
49
+ if (key === 'End')
50
+ return enabled[enabled.length - 1];
51
+ let direction = key === 'ArrowDown' ? 1 : key === 'ArrowUp' ? -1 : key === 'ArrowRight' ? (rtl ? -1 : 1) : key === 'ArrowLeft' ? (rtl ? 1 : -1) : 0;
52
+ if (!direction)
53
+ return undefined;
54
+ return enabled[(enabled.indexOf(index) + direction + enabled.length) % enabled.length];
55
+ }
56
+ export function segmentTabIndex(options, value, index) {
57
+ let active = options.findIndex(o => o.value === value && !o.disabled);
58
+ if (active < 0)
59
+ active = options.findIndex(o => !o.disabled);
60
+ return index === active ? 0 : -1;
61
+ }
62
+ export function segmented(options) {
63
+ const root = node('div', 'medeo-ui medeo-segmented', options.testid);
64
+ root.setAttribute('role', 'radiogroup');
65
+ root.setAttribute('aria-label', options.label);
66
+ let value = options.value, disabled = options.disabled ?? false;
67
+ const buttons = options.options.map((option, index) => {
68
+ const button = node('button', '', `${options.testid}.${index}`, option.label);
69
+ button.type = 'button';
70
+ button.setAttribute('role', 'radio');
71
+ button.addEventListener('click', () => {
72
+ if (disabled || option.disabled)
73
+ return;
74
+ value = option.value;
75
+ render();
76
+ options.onChange(value);
77
+ });
78
+ button.addEventListener('keydown', event => {
79
+ if (disabled)
80
+ return;
81
+ const target = segmentTarget(options.options, index, event.key, getComputedStyle(root).direction === 'rtl');
82
+ if (target === undefined)
83
+ return;
84
+ event.preventDefault();
85
+ buttons[target].focus();
86
+ buttons[target].click();
87
+ });
88
+ return button;
89
+ });
90
+ function render() {
91
+ buttons.forEach((button, index) => {
92
+ button.disabled = disabled || !!options.options[index].disabled;
93
+ button.tabIndex = disabled ? -1 : segmentTabIndex(options.options, value, index);
94
+ button.setAttribute('aria-checked', String(options.options[index].value === value));
95
+ });
96
+ }
97
+ root.append(...buttons);
98
+ render();
99
+ return Object.assign(root, { setValue(next) { value = next; render(); }, setDisabled(next) { disabled = next; render(); } });
100
+ }
101
+ /** Each child becomes one semantic list item; caller owns empty-state wording. */
102
+ export function list(options, ...items) {
103
+ const root = node('ul', 'medeo-ui medeo-list', options.testid);
104
+ root.setAttribute('aria-label', options.label);
105
+ items.forEach((item, index) => { const li = node('li', '', `${options.testid}.${index}`); append(li, [item]); root.append(li); });
106
+ return root;
107
+ }
108
+ export function emptyState(options) {
109
+ const root = node('section', 'medeo-ui medeo-empty', options.testid);
110
+ root.setAttribute('aria-label', options.title);
111
+ root.append(node('h2', '', undefined, options.title));
112
+ if (options.description !== undefined)
113
+ root.append(node('p', 'medeo-description', undefined, options.description));
114
+ return root;
115
+ }
package/package.json CHANGED
@@ -1,6 +1,68 @@
1
1
  {
2
2
  "name": "@one2x/medeo-plugin-sdk",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.11.0",
4
+ "description": "TypeScript SDK for Medeo desktop plugins: one import for the sandboxed worker, its windows and Node plugins.",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/one2x-ai/medeo-desktop-plugin-sdk.git",
9
+ "directory": "packages/plugin-sdk"
10
+ },
11
+ "homepage": "https://github.com/one2x-ai/medeo-desktop-plugin-sdk#readme",
12
+ "keywords": [
13
+ "medeo",
14
+ "plugin",
15
+ "sdk"
16
+ ],
17
+ "type": "module",
18
+ "sideEffects": false,
19
+ "exports": {
20
+ ".": {
21
+ "types": "./dist/index.d.ts",
22
+ "import": "./dist/index.js",
23
+ "default": "./dist/index.js"
24
+ },
25
+ "./rpc": {
26
+ "types": "./dist/rpc.d.ts",
27
+ "import": "./dist/rpc.js",
28
+ "default": "./dist/rpc.js"
29
+ },
30
+ "./testing": {
31
+ "types": "./dist/testing.d.ts",
32
+ "import": "./dist/testing.js",
33
+ "default": "./dist/testing.js"
34
+ },
35
+ "./ui": {
36
+ "types": "./dist/ui.d.ts",
37
+ "import": "./dist/ui.js",
38
+ "default": "./dist/ui.js"
39
+ },
40
+ "./ui/react": {
41
+ "types": "./dist/react.d.ts",
42
+ "import": "./dist/react.js",
43
+ "default": "./dist/react.js"
44
+ },
45
+ "./package.json": "./package.json"
46
+ },
47
+ "types": "./dist/index.d.ts",
48
+ "files": [
49
+ "dist",
50
+ "src",
51
+ "README.md"
52
+ ],
53
+ "scripts": {
54
+ "build": "tsc -p tsconfig.build.json",
55
+ "prepack": "npm run build"
56
+ },
57
+ "peerDependencies": {
58
+ "react": "^18.0.0 || ^19.0.0"
59
+ },
60
+ "peerDependenciesMeta": {
61
+ "react": {
62
+ "optional": true
63
+ }
64
+ },
65
+ "engines": {
66
+ "node": ">=22"
67
+ }
68
+ }