@unofficialbox/box-open-elements-react 0.7.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Kyle @ Unofficial Box
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,72 @@
1
+ # @unofficialbox/box-open-elements-react
2
+
3
+ Optional React wrappers for [`box-open-elements`](../..) Web Components.
4
+
5
+ The core package stays framework-agnostic. This adapter is a thin layer that:
6
+
7
+ 1. imports the automatically registered custom element
8
+ 2. syncs React props onto element **properties** (not fragile attribute stringification)
9
+ 3. forwards refs and DOM events
10
+
11
+ See [`docs/integration/react.md`](../../docs/integration/react.md) for the React
12
+ boundary and the [framework adapter tracker](../../docs/integration/framework-adapters.md)
13
+ for cross-framework milestones.
14
+
15
+ ## Install
16
+
17
+ ```bash
18
+ npm install @unofficialbox/box-open-elements @unofficialbox/box-open-elements-react react react-dom
19
+ ```
20
+
21
+ ```ts
22
+ import { Button, Dialog, Select, TextField } from "@unofficialbox/box-open-elements-react";
23
+ import {
24
+ applyDesignTokens,
25
+ registerBoxDefaultDesignSystem,
26
+ } from "@unofficialbox/box-open-elements/foundations/tokens";
27
+
28
+ registerBoxDefaultDesignSystem({ setActive: true });
29
+ applyDesignTokens(document.documentElement, "box-default");
30
+
31
+ export function SaveAction() {
32
+ return (
33
+ <>
34
+ <TextField label="Project" value="Apollo" />
35
+ <Select
36
+ label="Status"
37
+ value="draft"
38
+ options={[{ label: "Draft", value: "draft" }]}
39
+ />
40
+ <Button label="Save" tone="primary" onClick={() => console.log("saved")} />
41
+ </>
42
+ );
43
+ }
44
+ ```
45
+
46
+ The release-candidate surface also includes a controlled `Dialog` wrapper and
47
+ `useExplorerSelectionController`, which subscribes React to the existing
48
+ headless selection controller without duplicating its state.
49
+
50
+ ## Status
51
+
52
+ **Release candidate** — `Button`, `TextField`, `Select`, and `Dialog` prove native and
53
+ composed events, value and structured property synchronization, latest callback
54
+ routing, forwarded refs, controlled overlay focus behavior, and server-safe host
55
+ rendering. `useExplorerSelectionController` proves headless controller
56
+ composition. Package exports, version contracts, the Next.js hydration fixture,
57
+ and CI validation are release-ready. Supported status follows the first public
58
+ npm publication and a clean registry-install verification. React releases in
59
+ lockstep with the Angular, Vue, and Svelte adapters under `adapters-vX.Y.Z`.
60
+
61
+ ## Supported versions
62
+
63
+ | Dependency | Contract |
64
+ | --- | --- |
65
+ | React / React DOM | `^19.0.0` |
66
+ | `@unofficialbox/box-open-elements` | `^0.5.0` |
67
+ | Node.js for SSR | `>=20.9.0` |
68
+ | Next.js validation host | `16.2.12` |
69
+
70
+ The package ships ESM JavaScript and declarations from `dist/`. The Next.js
71
+ fixture in `examples/frameworks/react-ssr` proves server prerendering, browser
72
+ upgrade, hydration, events, controller subscriptions, and overlay focus.
@@ -0,0 +1,30 @@
1
+ import type { MouseEventHandler } from "react";
2
+ import { Button as ButtonElement } from "@unofficialbox/box-open-elements/button";
3
+ import { type WebComponentProps } from "./create-web-component.js";
4
+ export type ButtonProps = WebComponentProps & {
5
+ /** Button label text (maps to the `label` property / attribute). */
6
+ label?: string;
7
+ /** Visual tone: `primary` (default), `neutral`, `danger`. */
8
+ tone?: string;
9
+ /** Control size: `small`, `medium` (default), `large`. */
10
+ size?: string;
11
+ disabled?: boolean;
12
+ onClick?: MouseEventHandler<ButtonElement>;
13
+ };
14
+ /**
15
+ * React wrapper for `<box-button>`. Registers the custom element on first render
16
+ * and syncs props as element properties for the supported React 19 contract.
17
+ */
18
+ export declare const Button: import("react").ForwardRefExoticComponent<{
19
+ className?: string;
20
+ style?: import("react").CSSProperties;
21
+ } & Omit<import("react").HTMLAttributes<HTMLElement>, "className" | "style" | "children" | "onCancel"> & {
22
+ /** Button label text (maps to the `label` property / attribute). */
23
+ label?: string;
24
+ /** Visual tone: `primary` (default), `neutral`, `danger`. */
25
+ tone?: string;
26
+ /** Control size: `small`, `medium` (default), `large`. */
27
+ size?: string;
28
+ disabled?: boolean;
29
+ onClick?: MouseEventHandler<ButtonElement>;
30
+ } & import("react").RefAttributes<ButtonElement>>;
package/dist/button.js ADDED
@@ -0,0 +1,24 @@
1
+ import { Button as ButtonElement } from "@unofficialbox/box-open-elements/button";
2
+ import { createWebComponent } from "./create-web-component.js";
3
+ ButtonElement.register();
4
+ /**
5
+ * React wrapper for `<box-button>`. Registers the custom element on first render
6
+ * and syncs props as element properties for the supported React 19 contract.
7
+ */
8
+ export const Button = createWebComponent({
9
+ tagName: "box-button",
10
+ displayName: "Button",
11
+ propertyNames: ["label", "tone", "size", "disabled"],
12
+ sync: (element, props) => {
13
+ if (props.label !== undefined) {
14
+ element.label = props.label;
15
+ }
16
+ if (props.tone !== undefined) {
17
+ element.tone = props.tone;
18
+ }
19
+ if (props.size !== undefined) {
20
+ element.size = props.size;
21
+ }
22
+ element.disabled = Boolean(props.disabled);
23
+ },
24
+ });
@@ -0,0 +1,24 @@
1
+ import { type CSSProperties, type HTMLAttributes } from "react";
2
+ export type WebComponentProps = {
3
+ className?: string;
4
+ style?: CSSProperties;
5
+ } & Omit<HTMLAttributes<HTMLElement>, "className" | "style" | "children" | "onCancel">;
6
+ type CreateWebComponentOptions<E extends HTMLElement, P extends WebComponentProps> = {
7
+ tagName: string;
8
+ /** Sync React props onto the custom element instance (prefer properties over attributes). */
9
+ sync: (element: E, props: P) => void;
10
+ /** Props assigned by `sync`; omit them from React's host-attribute spread. */
11
+ propertyNames?: ReadonlyArray<keyof P & string>;
12
+ /** Map React callback props to composed custom-element event names. */
13
+ events?: ReadonlyArray<{
14
+ propName: keyof P & string;
15
+ eventName: string;
16
+ }>;
17
+ displayName: string;
18
+ };
19
+ /**
20
+ * Thin React adapter factory for a box-open-elements custom element.
21
+ * Defines the element once, syncs props via properties, and forwards refs/events.
22
+ */
23
+ export declare const createWebComponent: <E extends HTMLElement, P extends WebComponentProps>(options: CreateWebComponentOptions<E, P>) => import("react").ForwardRefExoticComponent<import("react").PropsWithoutRef<P> & import("react").RefAttributes<E>>;
24
+ export {};
@@ -0,0 +1,70 @@
1
+ import { createElement, forwardRef, useCallback, useLayoutEffect, useRef, } from "react";
2
+ const assignRef = (ref, value) => {
3
+ if (typeof ref === "function") {
4
+ ref(value);
5
+ return;
6
+ }
7
+ if (ref) {
8
+ ref.current = value;
9
+ }
10
+ };
11
+ /**
12
+ * Thin React adapter factory for a box-open-elements custom element.
13
+ * Defines the element once, syncs props via properties, and forwards refs/events.
14
+ */
15
+ export const createWebComponent = (options) => {
16
+ const Component = forwardRef(function WebComponent(props, forwardedRef) {
17
+ const localRef = useRef(null);
18
+ const latestPropsRef = useRef(props);
19
+ const setRefs = useCallback(node => {
20
+ localRef.current = node;
21
+ assignRef(forwardedRef, node);
22
+ }, [forwardedRef]);
23
+ useLayoutEffect(() => {
24
+ latestPropsRef.current = props;
25
+ const element = localRef.current;
26
+ if (!element) {
27
+ return;
28
+ }
29
+ options.sync(element, props);
30
+ });
31
+ useLayoutEffect(() => {
32
+ const element = localRef.current;
33
+ if (!element || !options.events) {
34
+ return;
35
+ }
36
+ const subscriptions = options.events.map(binding => {
37
+ const listener = (event) => {
38
+ const handler = latestPropsRef.current[binding.propName];
39
+ if (typeof handler === "function") {
40
+ handler(event);
41
+ }
42
+ };
43
+ element.addEventListener(binding.eventName, listener);
44
+ return { eventName: binding.eventName, listener };
45
+ });
46
+ return () => {
47
+ for (const { eventName, listener } of subscriptions) {
48
+ element.removeEventListener(eventName, listener);
49
+ }
50
+ };
51
+ }, []);
52
+ const { className, style, ...rest } = props;
53
+ const hostProps = { ...rest };
54
+ for (const propertyName of options.propertyNames ?? []) {
55
+ delete hostProps[propertyName];
56
+ }
57
+ for (const { propName } of options.events ?? []) {
58
+ delete hostProps[propName];
59
+ }
60
+ return createElement(options.tagName, {
61
+ ...hostProps,
62
+ ref: setRefs,
63
+ className,
64
+ style,
65
+ suppressHydrationWarning: true,
66
+ });
67
+ });
68
+ Component.displayName = options.displayName;
69
+ return Component;
70
+ };
@@ -0,0 +1,35 @@
1
+ import type { ReactNode } from "react";
2
+ import { Dialog as DialogElement } from "@unofficialbox/box-open-elements/dialog";
3
+ import { type WebComponentProps } from "./create-web-component.js";
4
+ import type { CustomEventHandler } from "./events.js";
5
+ export type DialogSize = "small" | "medium" | "large" | "fullscreen";
6
+ export type DialogProps = WebComponentProps & {
7
+ children?: ReactNode;
8
+ open?: boolean;
9
+ heading?: string;
10
+ description?: string;
11
+ confirmLabel?: string;
12
+ size?: DialogSize;
13
+ onOpenChanged?: CustomEventHandler<DialogElement, {
14
+ open: boolean;
15
+ }>;
16
+ onConfirm?: CustomEventHandler<DialogElement, null>;
17
+ onCancel?: CustomEventHandler<DialogElement, null>;
18
+ };
19
+ /** React wrapper for the controlled `<box-dialog>` overlay. */
20
+ export declare const Dialog: import("react").ForwardRefExoticComponent<{
21
+ className?: string;
22
+ style?: import("react").CSSProperties;
23
+ } & Omit<import("react").HTMLAttributes<HTMLElement>, "className" | "style" | "children" | "onCancel"> & {
24
+ children?: ReactNode;
25
+ open?: boolean;
26
+ heading?: string;
27
+ description?: string;
28
+ confirmLabel?: string;
29
+ size?: DialogSize;
30
+ onOpenChanged?: CustomEventHandler<DialogElement, {
31
+ open: boolean;
32
+ }>;
33
+ onConfirm?: CustomEventHandler<DialogElement, null>;
34
+ onCancel?: CustomEventHandler<DialogElement, null>;
35
+ } & import("react").RefAttributes<DialogElement>>;
package/dist/dialog.js ADDED
@@ -0,0 +1,31 @@
1
+ import { Dialog as DialogElement } from "@unofficialbox/box-open-elements/dialog";
2
+ import { createWebComponent } from "./create-web-component.js";
3
+ DialogElement.register();
4
+ /** React wrapper for the controlled `<box-dialog>` overlay. */
5
+ export const Dialog = createWebComponent({
6
+ tagName: "box-dialog",
7
+ displayName: "Dialog",
8
+ propertyNames: ["open", "heading", "description", "confirmLabel", "size"],
9
+ events: [
10
+ { propName: "onOpenChanged", eventName: "open-changed" },
11
+ { propName: "onConfirm", eventName: "confirm" },
12
+ { propName: "onCancel", eventName: "cancel" },
13
+ ],
14
+ sync: (element, props) => {
15
+ if (props.heading !== undefined) {
16
+ element.heading = props.heading;
17
+ }
18
+ if (props.description !== undefined) {
19
+ element.description = props.description;
20
+ }
21
+ if (props.confirmLabel !== undefined) {
22
+ element.confirmLabel = props.confirmLabel;
23
+ }
24
+ if (props.size !== undefined) {
25
+ element.size = props.size;
26
+ }
27
+ if (props.open !== undefined) {
28
+ element.open = props.open;
29
+ }
30
+ },
31
+ });
@@ -0,0 +1,6 @@
1
+ export type CustomEventHandler<E extends HTMLElement, Detail> = (event: CustomEvent<Detail> & {
2
+ currentTarget: E;
3
+ }) => void;
4
+ export type ValueChangedDetail = {
5
+ value: string;
6
+ };
package/dist/events.js ADDED
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ExplorerSelectionController, type ExplorerSelectionState } from "@unofficialbox/box-open-elements/patterns/content-explorer/selection";
2
+ export { ExplorerSelectionController };
3
+ export type { ExplorerSelectionState };
4
+ /**
5
+ * Subscribes React to the framework-neutral explorer selection controller.
6
+ * Selection behavior remains owned entirely by the controller.
7
+ */
8
+ export declare const useExplorerSelectionController: (controller: ExplorerSelectionController) => Readonly<ExplorerSelectionState>;
@@ -0,0 +1,17 @@
1
+ import { useCallback, useSyncExternalStore } from "react";
2
+ import { ExplorerSelectionController, } from "@unofficialbox/box-open-elements/patterns/content-explorer/selection";
3
+ // Re-exported so a React host can construct the controller through this
4
+ // package and hand it straight to the hook. Classes with private fields are
5
+ // nominally typed, so a host that imports the class from a differently
6
+ // resolved copy of the core package gets an incompatible identity — one
7
+ // import path sidesteps that whole class of version-skew errors.
8
+ export { ExplorerSelectionController };
9
+ /**
10
+ * Subscribes React to the framework-neutral explorer selection controller.
11
+ * Selection behavior remains owned entirely by the controller.
12
+ */
13
+ export const useExplorerSelectionController = (controller) => {
14
+ const subscribe = useCallback((onStoreChange) => controller.subscribe("selectionChanged", () => onStoreChange()), [controller]);
15
+ const getSnapshot = useCallback(() => controller.getState(), [controller]);
16
+ return useSyncExternalStore(subscribe, getSnapshot, getSnapshot);
17
+ };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `@unofficialbox/box-open-elements-react` — optional React wrappers for box-open-elements
3
+ * Web Components. Core stays framework-agnostic; this package is an adapter
4
+ * layer only.
5
+ */
6
+ export { createWebComponent, type WebComponentProps } from "./create-web-component.js";
7
+ export type { CustomEventHandler, ValueChangedDetail } from "./events.js";
8
+ export { Button, type ButtonProps } from "./button.js";
9
+ export { Dialog, type DialogProps, type DialogSize } from "./dialog.js";
10
+ export { ExplorerSelectionController, useExplorerSelectionController, type ExplorerSelectionState, } from "./explorer-selection.js";
11
+ export { Select, type SelectOption, type SelectProps } from "./select.js";
12
+ export { TextField, type TextFieldProps } from "./text-field.js";
package/dist/index.js ADDED
@@ -0,0 +1,11 @@
1
+ /**
2
+ * `@unofficialbox/box-open-elements-react` — optional React wrappers for box-open-elements
3
+ * Web Components. Core stays framework-agnostic; this package is an adapter
4
+ * layer only.
5
+ */
6
+ export { createWebComponent } from "./create-web-component.js";
7
+ export { Button } from "./button.js";
8
+ export { Dialog } from "./dialog.js";
9
+ export { ExplorerSelectionController, useExplorerSelectionController, } from "./explorer-selection.js";
10
+ export { Select } from "./select.js";
11
+ export { TextField } from "./text-field.js";
@@ -0,0 +1,31 @@
1
+ import { Select as SelectElement } from "@unofficialbox/box-open-elements/select";
2
+ import { type WebComponentProps } from "./create-web-component.js";
3
+ import type { CustomEventHandler, ValueChangedDetail } from "./events.js";
4
+ export type SelectOption = {
5
+ label: string;
6
+ value: string;
7
+ };
8
+ export type SelectProps = WebComponentProps & {
9
+ label?: string;
10
+ value?: string;
11
+ options?: SelectOption[];
12
+ disabled?: boolean;
13
+ name?: string;
14
+ invalid?: boolean;
15
+ errorMessage?: string;
16
+ onValueChanged?: CustomEventHandler<SelectElement, ValueChangedDetail>;
17
+ };
18
+ /** React wrapper for `<box-select>`, including its structured `options` property. */
19
+ export declare const Select: import("react").ForwardRefExoticComponent<{
20
+ className?: string;
21
+ style?: import("react").CSSProperties;
22
+ } & Omit<import("react").HTMLAttributes<HTMLElement>, "className" | "style" | "children" | "onCancel"> & {
23
+ label?: string;
24
+ value?: string;
25
+ options?: SelectOption[];
26
+ disabled?: boolean;
27
+ name?: string;
28
+ invalid?: boolean;
29
+ errorMessage?: string;
30
+ onValueChanged?: CustomEventHandler<SelectElement, ValueChangedDetail>;
31
+ } & import("react").RefAttributes<SelectElement>>;
package/dist/select.js ADDED
@@ -0,0 +1,37 @@
1
+ import { Select as SelectElement } from "@unofficialbox/box-open-elements/select";
2
+ import { createWebComponent } from "./create-web-component.js";
3
+ SelectElement.register();
4
+ /** React wrapper for `<box-select>`, including its structured `options` property. */
5
+ export const Select = createWebComponent({
6
+ tagName: "box-select",
7
+ displayName: "Select",
8
+ propertyNames: [
9
+ "label",
10
+ "value",
11
+ "options",
12
+ "disabled",
13
+ "name",
14
+ "invalid",
15
+ "errorMessage",
16
+ ],
17
+ events: [{ propName: "onValueChanged", eventName: "value-changed" }],
18
+ sync: (element, props) => {
19
+ if (props.label !== undefined) {
20
+ element.label = props.label;
21
+ }
22
+ if (props.value !== undefined) {
23
+ element.value = props.value;
24
+ }
25
+ if (props.options !== undefined) {
26
+ element.options = props.options;
27
+ }
28
+ if (props.name !== undefined) {
29
+ element.name = props.name;
30
+ }
31
+ if (props.errorMessage !== undefined) {
32
+ element.errorMessage = props.errorMessage;
33
+ }
34
+ element.disabled = Boolean(props.disabled);
35
+ element.invalid = Boolean(props.invalid);
36
+ },
37
+ });
@@ -0,0 +1,27 @@
1
+ import { TextField as TextFieldElement } from "@unofficialbox/box-open-elements/text-field";
2
+ import { type WebComponentProps } from "./create-web-component.js";
3
+ import type { CustomEventHandler, ValueChangedDetail } from "./events.js";
4
+ export type TextFieldProps = WebComponentProps & {
5
+ label?: string;
6
+ value?: string;
7
+ placeholder?: string;
8
+ disabled?: boolean;
9
+ name?: string;
10
+ invalid?: boolean;
11
+ errorMessage?: string;
12
+ onValueChanged?: CustomEventHandler<TextFieldElement, ValueChangedDetail>;
13
+ };
14
+ /** React wrapper for the value-bearing `<box-text-field>` form control. */
15
+ export declare const TextField: import("react").ForwardRefExoticComponent<{
16
+ className?: string;
17
+ style?: import("react").CSSProperties;
18
+ } & Omit<import("react").HTMLAttributes<HTMLElement>, "className" | "style" | "children" | "onCancel"> & {
19
+ label?: string;
20
+ value?: string;
21
+ placeholder?: string;
22
+ disabled?: boolean;
23
+ name?: string;
24
+ invalid?: boolean;
25
+ errorMessage?: string;
26
+ onValueChanged?: CustomEventHandler<TextFieldElement, ValueChangedDetail>;
27
+ } & import("react").RefAttributes<TextFieldElement>>;
@@ -0,0 +1,37 @@
1
+ import { TextField as TextFieldElement } from "@unofficialbox/box-open-elements/text-field";
2
+ import { createWebComponent } from "./create-web-component.js";
3
+ TextFieldElement.register();
4
+ /** React wrapper for the value-bearing `<box-text-field>` form control. */
5
+ export const TextField = createWebComponent({
6
+ tagName: "box-text-field",
7
+ displayName: "TextField",
8
+ propertyNames: [
9
+ "label",
10
+ "value",
11
+ "placeholder",
12
+ "disabled",
13
+ "name",
14
+ "invalid",
15
+ "errorMessage",
16
+ ],
17
+ events: [{ propName: "onValueChanged", eventName: "value-changed" }],
18
+ sync: (element, props) => {
19
+ if (props.label !== undefined) {
20
+ element.label = props.label;
21
+ }
22
+ if (props.value !== undefined) {
23
+ element.value = props.value;
24
+ }
25
+ if (props.placeholder !== undefined) {
26
+ element.placeholder = props.placeholder;
27
+ }
28
+ if (props.name !== undefined) {
29
+ element.name = props.name;
30
+ }
31
+ if (props.errorMessage !== undefined) {
32
+ element.errorMessage = props.errorMessage;
33
+ }
34
+ element.disabled = Boolean(props.disabled);
35
+ element.invalid = Boolean(props.invalid);
36
+ },
37
+ });
package/package.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "@unofficialbox/box-open-elements-react",
3
+ "version": "0.7.0",
4
+ "description": "Optional React wrappers for box-open-elements Web Components. Thin adapters — core stays framework-agnostic.",
5
+ "license": "MIT",
6
+ "homepage": "https://unofficialbox.github.io/box-open-elements",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/unofficialbox/box-open-elements.git",
10
+ "directory": "packages/react"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/unofficialbox/box-open-elements/issues"
14
+ },
15
+ "keywords": [
16
+ "react",
17
+ "web-components",
18
+ "design-system",
19
+ "box"
20
+ ],
21
+ "type": "module",
22
+ "main": "dist/index.js",
23
+ "types": "dist/index.d.ts",
24
+ "exports": {
25
+ ".": {
26
+ "types": "./dist/index.d.ts",
27
+ "import": "./dist/index.js"
28
+ }
29
+ },
30
+ "files": [
31
+ "dist"
32
+ ],
33
+ "publishConfig": {
34
+ "access": "public"
35
+ },
36
+ "engines": {
37
+ "node": ">=20.9.0"
38
+ },
39
+ "peerDependencies": {
40
+ "@unofficialbox/box-open-elements": "^0.7.0",
41
+ "react": "^19.0.0",
42
+ "react-dom": "^19.0.0"
43
+ },
44
+ "scripts": {
45
+ "build": "tsc -p tsconfig.build.json",
46
+ "prepublishOnly": "bun run build",
47
+ "typecheck": "tsc -p tsconfig.json --noEmit"
48
+ }
49
+ }