@texturehq/edges 1.28.2 → 1.29.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.
@@ -359,6 +359,7 @@ interface FileUploadProps {
359
359
  */
360
360
  declare function FileUpload({ value, onChange, onUrlChange, accept, maxSize, isDisabled, onUpload, className, showPreview, placeholder, }: FileUploadProps): react_jsx_runtime.JSX.Element;
361
361
 
362
+ type HeadingLevel = 1 | 2;
362
363
  interface RichTextEditorProps {
363
364
  /**
364
365
  * The initial content of the editor
@@ -384,6 +385,15 @@ interface RichTextEditorProps {
384
385
  * ID for the editor element for label association
385
386
  */
386
387
  id?: string;
388
+ /**
389
+ * Size variant controlling toolbar padding, content area height, and typography scale
390
+ */
391
+ size?: Size;
392
+ /**
393
+ * Which heading levels to enable in the toolbar and editor.
394
+ * @default [1, 2]
395
+ */
396
+ headingLevels?: HeadingLevel[];
387
397
  }
388
398
  /**
389
399
  * RichTextEditor
@@ -391,6 +401,6 @@ interface RichTextEditorProps {
391
401
  * A rich text editor with formatting capabilities including headings, bold, italic, lists, and links.
392
402
  * Built on top of TipTap/ProseMirror.
393
403
  */
394
- declare function RichTextEditor({ initialContent, onChange, className, isDisabled, placeholder, id, }: RichTextEditorProps): react_jsx_runtime.JSX.Element | null;
404
+ declare function RichTextEditor({ initialContent, onChange, className, isDisabled, placeholder, id, size, headingLevels, }: RichTextEditorProps): react_jsx_runtime.JSX.Element | null;
395
405
 
396
406
  export { type BaseInputProps as B, ClearButton as C, type DateFieldProps as D, type FileUploadProps as F, Icon as I, Label as L, type RichTextEditorProps as R, type Size as S, DateField as a, FileUpload as b, RichTextEditor as c, type IconName as d, type BaseProps as e, Description as f, type DescriptionPlacement as g, type DescriptionProps as h, FieldError as i, type FieldErrorProps as j, FieldGroup as k, type FieldGroupProps as l, Input as m, type InputProps as n, type InputStyleProps as o, InputWrapper as p, type LabelProps as q, getFieldGroupStyles as r, getInputBackgroundStyles as s, getInputBaseStyles as t, getInputStateStyles as u, useInputFocus as v };
@@ -359,6 +359,7 @@ interface FileUploadProps {
359
359
  */
360
360
  declare function FileUpload({ value, onChange, onUrlChange, accept, maxSize, isDisabled, onUpload, className, showPreview, placeholder, }: FileUploadProps): react_jsx_runtime.JSX.Element;
361
361
 
362
+ type HeadingLevel = 1 | 2;
362
363
  interface RichTextEditorProps {
363
364
  /**
364
365
  * The initial content of the editor
@@ -384,6 +385,15 @@ interface RichTextEditorProps {
384
385
  * ID for the editor element for label association
385
386
  */
386
387
  id?: string;
388
+ /**
389
+ * Size variant controlling toolbar padding, content area height, and typography scale
390
+ */
391
+ size?: Size;
392
+ /**
393
+ * Which heading levels to enable in the toolbar and editor.
394
+ * @default [1, 2]
395
+ */
396
+ headingLevels?: HeadingLevel[];
387
397
  }
388
398
  /**
389
399
  * RichTextEditor
@@ -391,6 +401,6 @@ interface RichTextEditorProps {
391
401
  * A rich text editor with formatting capabilities including headings, bold, italic, lists, and links.
392
402
  * Built on top of TipTap/ProseMirror.
393
403
  */
394
- declare function RichTextEditor({ initialContent, onChange, className, isDisabled, placeholder, id, }: RichTextEditorProps): react_jsx_runtime.JSX.Element | null;
404
+ declare function RichTextEditor({ initialContent, onChange, className, isDisabled, placeholder, id, size, headingLevels, }: RichTextEditorProps): react_jsx_runtime.JSX.Element | null;
395
405
 
396
406
  export { type BaseInputProps as B, ClearButton as C, type DateFieldProps as D, type FileUploadProps as F, Icon as I, Label as L, type RichTextEditorProps as R, type Size as S, DateField as a, FileUpload as b, RichTextEditor as c, type IconName as d, type BaseProps as e, Description as f, type DescriptionPlacement as g, type DescriptionProps as h, FieldError as i, type FieldErrorProps as j, FieldGroup as k, type FieldGroupProps as l, Input as m, type InputProps as n, type InputStyleProps as o, InputWrapper as p, type LabelProps as q, getFieldGroupStyles as r, getInputBackgroundStyles as s, getInputBaseStyles as t, getInputStateStyles as u, useInputFocus as v };
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import React__default, { ComponentProps, ReactNode } from 'react';
3
3
  import { Key, ValidationResult, ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, CheckboxRenderProps, CheckboxGroupProps as CheckboxGroupProps$1, TextFieldProps as TextFieldProps$1, NumberFieldProps as NumberFieldProps$1, RadioProps, RadioGroupProps as RadioGroupProps$1, SelectProps as SelectProps$1, SwitchProps as SwitchProps$1, TimeFieldProps as TimeFieldProps$1, TimeValue } from 'react-aria-components';
4
- import { S as Size, I as Icon, B as BaseInputProps } from './RichTextEditor-7jc4jO7e.js';
4
+ import { S as Size, I as Icon, B as BaseInputProps } from './RichTextEditor-CxrunTg7.js';
5
5
 
6
6
  interface Item {
7
7
  id: string;
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import React__default, { ComponentProps, ReactNode } from 'react';
3
3
  import { Key, ValidationResult, ButtonProps as ButtonProps$1, CheckboxProps as CheckboxProps$1, CheckboxRenderProps, CheckboxGroupProps as CheckboxGroupProps$1, TextFieldProps as TextFieldProps$1, NumberFieldProps as NumberFieldProps$1, RadioProps, RadioGroupProps as RadioGroupProps$1, SelectProps as SelectProps$1, SwitchProps as SwitchProps$1, TimeFieldProps as TimeFieldProps$1, TimeValue } from 'react-aria-components';
4
- import { S as Size, I as Icon, B as BaseInputProps } from './RichTextEditor-7jc4jO7e.cjs';
4
+ import { S as Size, I as Icon, B as BaseInputProps } from './RichTextEditor-CxrunTg7.cjs';
5
5
 
6
6
  interface Item {
7
7
  id: string;
@@ -3,7 +3,7 @@ import * as React$1 from 'react';
3
3
  import React__default, { ReactNode, ComponentType } from 'react';
4
4
  import { ScaleTime, ScaleLinear } from 'd3-scale';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
- import { d as IconName } from './RichTextEditor-7jc4jO7e.cjs';
6
+ import { d as IconName } from './RichTextEditor-CxrunTg7.cjs';
7
7
  import * as react_map_gl from 'react-map-gl';
8
8
  import { ViewState, MapRef } from 'react-map-gl';
9
9
  import { MeterProps as MeterProps$1 } from 'react-aria-components';
@@ -527,7 +527,7 @@ interface AvatarProps {
527
527
  */
528
528
  declare function Avatar({ src, alt, firstName, lastName, fullName, onClick, size, shape, variant, className, status, bordered, piiEntity, }: AvatarProps): react_jsx_runtime.JSX.Element;
529
529
 
530
- type DeviceState = "unknown" | "on" | "off" | "idle" | "charging" | "discharging" | "heat" | "eco" | "cool" | "auto";
530
+ type DeviceState = "unknown" | "on" | "off" | "idle" | "charging" | "discharging" | "heat" | "eco" | "cool" | "auto" | "connected" | "disconnected";
531
531
  type MetricFormat = "percentage" | "kW" | "temperature";
532
532
  declare const deviceStateMetricFormats: Record<DeviceState, MetricFormat | undefined>;
533
533
  /**
@@ -3,7 +3,7 @@ import * as React$1 from 'react';
3
3
  import React__default, { ReactNode, ComponentType } from 'react';
4
4
  import { ScaleTime, ScaleLinear } from 'd3-scale';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
- import { d as IconName } from './RichTextEditor-7jc4jO7e.js';
6
+ import { d as IconName } from './RichTextEditor-CxrunTg7.js';
7
7
  import * as react_map_gl from 'react-map-gl';
8
8
  import { ViewState, MapRef } from 'react-map-gl';
9
9
  import { MeterProps as MeterProps$1 } from 'react-aria-components';
@@ -527,7 +527,7 @@ interface AvatarProps {
527
527
  */
528
528
  declare function Avatar({ src, alt, firstName, lastName, fullName, onClick, size, shape, variant, className, status, bordered, piiEntity, }: AvatarProps): react_jsx_runtime.JSX.Element;
529
529
 
530
- type DeviceState = "unknown" | "on" | "off" | "idle" | "charging" | "discharging" | "heat" | "eco" | "cool" | "auto";
530
+ type DeviceState = "unknown" | "on" | "off" | "idle" | "charging" | "discharging" | "heat" | "eco" | "cool" | "auto" | "connected" | "disconnected";
531
531
  type MetricFormat = "percentage" | "kW" | "temperature";
532
532
  declare const deviceStateMetricFormats: Record<DeviceState, MetricFormat | undefined>;
533
533
  /**
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.28.2",
2
+ "version": "1.29.0",
3
3
  "components": [
4
4
  {
5
5
  "name": "ActionCell",