@intentface/chat 0.1.1 → 0.1.2

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.
@@ -1,7 +1,7 @@
1
1
  // Vendored from @base-ui/utils v1.6.0 (MIT) — packages/utils/src/getReactElementRef.ts
2
2
  // https://github.com/mui/base-ui — exact copy.
3
3
  import * as React from 'react';
4
- import { isReactVersionAtLeast } from './reactVersion';
4
+ import { isReactVersionAtLeast } from './reactVersion.js';
5
5
  /**
6
6
  * Extracts the `ref` from a React element, handling different React versions.
7
7
  */
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { BaseUIEvent, WithBaseUIEvent } from './types';
2
+ import type { BaseUIEvent, WithBaseUIEvent } from './types.js';
3
3
  type ElementType = React.ElementType;
4
4
  type PropsOf<T extends React.ElementType> = WithBaseUIEvent<React.ComponentPropsWithRef<T>>;
5
5
  type InputProps<T extends React.ElementType> = PropsOf<T> | ((otherProps: PropsOf<T>) => PropsOf<T>) | undefined;
@@ -1,7 +1,7 @@
1
1
  // Vendored from @base-ui/react v1.6.0 (MIT) — packages/react/src/merge-props/mergeProps.ts
2
2
  // https://github.com/mui/base-ui — exact copy; only import specifiers rewired.
3
3
  import * as React from 'react';
4
- import { mergeObjects } from './mergeObjects';
4
+ import { mergeObjects } from './mergeObjects.js';
5
5
  const EMPTY_PROPS = {};
6
6
  export function mergeProps(a, b, c, d, e) {
7
7
  if (!c && !d && !e && !a) {
@@ -1,5 +1,5 @@
1
1
  import type * as React from 'react';
2
- import type { BaseUIEvent, ComponentRenderFn, HTMLProps } from './baseTypes';
2
+ import type { BaseUIEvent, ComponentRenderFn, HTMLProps } from './baseTypes.js';
3
3
  export type { HTMLProps, BaseUIEvent, ComponentRenderFn };
4
4
  export type MaybeBaseUIEvent<E extends React.SyntheticEvent<Element, Event>> = E & Partial<Pick<BaseUIEvent<E>, 'preventBaseUIHandler' | 'baseUIHandlerPrevented'>>;
5
5
  export interface FloatingUIOpenChangeDetails {
@@ -1,7 +1,7 @@
1
1
  // Vendored from @base-ui/utils v1.6.0 (MIT) — packages/utils/src/useMergedRefs.ts
2
2
  // https://github.com/mui/base-ui — exact copy.
3
3
  import * as React from 'react';
4
- import { useRefWithInit } from './useRefWithInit';
4
+ import { useRefWithInit } from './useRefWithInit.js';
5
5
  export function useMergedRefs(a, b, c, d) {
6
6
  const forkRef = useRefWithInit((createForkRef)).current;
7
7
  if (didChange(forkRef, a, b, c, d)) {
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
- import type { ComponentRenderFn } from './types';
3
- import type { HTMLProps } from './types';
4
- import type { StateAttributesMapping } from './getStateAttributesProps';
2
+ import type { ComponentRenderFn } from './types.js';
3
+ import type { HTMLProps } from './types.js';
4
+ import type { StateAttributesMapping } from './getStateAttributesProps.js';
5
5
  /**
6
6
  * Renders a Base UI element.
7
7
  *
@@ -1,7 +1,7 @@
1
1
  // Vendored from @base-ui/react v1.6.0 (MIT) — packages/react/src/use-render/useRender.ts
2
2
  // https://github.com/mui/base-ui — exact copy; only import specifiers rewired.
3
3
  import * as React from 'react';
4
- import { useRenderElement } from './useRenderElement';
4
+ import { useRenderElement } from './useRenderElement.js';
5
5
  /**
6
6
  * Renders a Base UI element.
7
7
  *
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
- import type { ComponentRenderFn, HTMLProps } from './types';
3
- import type { WithDataAttributes } from './baseTypes';
4
- import { type StateAttributesMapping } from './getStateAttributesProps';
2
+ import type { ComponentRenderFn, HTMLProps } from './types.js';
3
+ import type { WithDataAttributes } from './baseTypes.js';
4
+ import { type StateAttributesMapping } from './getStateAttributesProps.js';
5
5
  type IntrinsicTagName = keyof React.JSX.IntrinsicElements;
6
6
  /**
7
7
  * Renders a Base UI element.
@@ -3,15 +3,15 @@ import { createElement as _createElement } from "react";
3
3
  // https://github.com/mui/base-ui — import specifiers rewired; one local departure:
4
4
  // the `props` config accepts bespoke data-* part attributes (WithDataAttributes).
5
5
  import * as React from 'react';
6
- import { useMergedRefs, useMergedRefsN } from './useMergedRefs';
7
- import { getReactElementRef } from './getReactElementRef';
8
- import { mergeObjects } from './mergeObjects';
9
- import { warn } from './warn';
10
- import { EMPTY_OBJECT } from './empty';
11
- import { getStateAttributesProps } from './getStateAttributesProps';
12
- import { resolveClassName } from './resolveClassName';
13
- import { resolveStyle } from './resolveStyle';
14
- import { mergeProps, mergePropsN, mergeClassNames } from './mergeProps';
6
+ import { useMergedRefs, useMergedRefsN } from './useMergedRefs.js';
7
+ import { getReactElementRef } from './getReactElementRef.js';
8
+ import { mergeObjects } from './mergeObjects.js';
9
+ import { warn } from './warn.js';
10
+ import { EMPTY_OBJECT } from './empty.js';
11
+ import { getStateAttributesProps } from './getStateAttributesProps.js';
12
+ import { resolveClassName } from './resolveClassName.js';
13
+ import { resolveStyle } from './resolveStyle.js';
14
+ import { mergeProps, mergePropsN, mergeClassNames } from './mergeProps.js';
15
15
  /**
16
16
  * Renders a Base UI element.
17
17
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intentface/chat",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Headless chat UI primitives — unstyled compound components, hooks, and wire formats for building AI chat interfaces.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -77,7 +77,7 @@
77
77
  }
78
78
  },
79
79
  "scripts": {
80
- "build": "rm -rf dist && tsc -p tsconfig.build.json && node scripts/add-dist-extensions.mjs",
80
+ "build": "rm -rf dist && tsc -p tsconfig.build.json && node scripts/add-dist-extensions.mjs && node scripts/smoke-dist.mjs",
81
81
  "test": "bun test",
82
82
  "typecheck": "tsc --noEmit",
83
83
  "prepack": "bun run build && node scripts/swap-exports.mjs pre",