@drghaliasri/butex 8.0.2 → 8.1.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.
@@ -162,12 +162,14 @@ type MathObject2Json = {
162
162
  source_owner?: 'imported-structured' | 'editor';
163
163
  label_enabled?: boolean;
164
164
  label?: string;
165
+ numbered?: boolean;
165
166
  };
166
167
  /** Positional metadata for a raw-only span that has no structured equation AST. */
167
168
  type RawMathObject2Json = {
168
169
  node_type: 'RawMathObject';
169
170
  label_enabled?: boolean;
170
171
  label?: string;
172
+ numbered?: boolean;
171
173
  };
172
174
  type DocumentMathObjectJson = MathObject2Json | RawMathObject2Json;
173
175
  type ReferenceFieldSeparator = ',' | '،';
@@ -299,6 +301,8 @@ type MathToken2 = {
299
301
  /** When true on display math, export as equation env with \\label. */
300
302
  labelEnabled?: boolean;
301
303
  label?: string;
304
+ /** Independent display-equation numbering override; absent means legacy semantics. */
305
+ numbered?: boolean;
302
306
  };
303
307
  type CiteToken2 = {
304
308
  id: string;
@@ -400,6 +404,7 @@ type PreviewInline2 = {
400
404
  display: boolean;
401
405
  output: DocumentMathOutput;
402
406
  editable: boolean;
407
+ numberLabel?: string;
403
408
  } | {
404
409
  kind: 'cite';
405
410
  id: string;
@@ -682,6 +687,8 @@ type EquationDrawerProps = {
682
687
  responsiveMode?: ButexResponsiveMode;
683
688
  labelEnabled?: boolean;
684
689
  label?: string;
690
+ numbered?: boolean;
691
+ onNumberedChange?: (numbered: boolean) => void;
685
692
  labels?: DocumentLabelEntry[];
686
693
  references?: Reference2[];
687
694
  ownerId?: string;
@@ -692,7 +699,7 @@ type EquationDrawerProps = {
692
699
  onSave: (session: EditorSession) => void;
693
700
  onDelete?: () => void;
694
701
  };
695
- declare function EquationDrawer({ debug, session, reason, mathMode, canDelete, equationSide, uiLocale, responsiveMode, labelEnabled, label, labels, references, ownerId, onLabelEnabledChange, onLabelChange, onMathModeChange, onClose, onSave, onDelete, }: EquationDrawerProps): react_jsx_runtime.JSX.Element;
702
+ declare function EquationDrawer({ debug, session, reason, mathMode, canDelete, equationSide, uiLocale, responsiveMode, labelEnabled, label, numbered, onNumberedChange, labels, references, ownerId, onLabelEnabledChange, onLabelChange, onMathModeChange, onClose, onSave, onDelete, }: EquationDrawerProps): react_jsx_runtime.JSX.Element;
696
703
 
697
704
  type InlineFieldProps = {
698
705
  field: InlineField2;
@@ -162,12 +162,14 @@ type MathObject2Json = {
162
162
  source_owner?: 'imported-structured' | 'editor';
163
163
  label_enabled?: boolean;
164
164
  label?: string;
165
+ numbered?: boolean;
165
166
  };
166
167
  /** Positional metadata for a raw-only span that has no structured equation AST. */
167
168
  type RawMathObject2Json = {
168
169
  node_type: 'RawMathObject';
169
170
  label_enabled?: boolean;
170
171
  label?: string;
172
+ numbered?: boolean;
171
173
  };
172
174
  type DocumentMathObjectJson = MathObject2Json | RawMathObject2Json;
173
175
  type ReferenceFieldSeparator = ',' | '،';
@@ -299,6 +301,8 @@ type MathToken2 = {
299
301
  /** When true on display math, export as equation env with \\label. */
300
302
  labelEnabled?: boolean;
301
303
  label?: string;
304
+ /** Independent display-equation numbering override; absent means legacy semantics. */
305
+ numbered?: boolean;
302
306
  };
303
307
  type CiteToken2 = {
304
308
  id: string;
@@ -400,6 +404,7 @@ type PreviewInline2 = {
400
404
  display: boolean;
401
405
  output: DocumentMathOutput;
402
406
  editable: boolean;
407
+ numberLabel?: string;
403
408
  } | {
404
409
  kind: 'cite';
405
410
  id: string;
@@ -682,6 +687,8 @@ type EquationDrawerProps = {
682
687
  responsiveMode?: ButexResponsiveMode;
683
688
  labelEnabled?: boolean;
684
689
  label?: string;
690
+ numbered?: boolean;
691
+ onNumberedChange?: (numbered: boolean) => void;
685
692
  labels?: DocumentLabelEntry[];
686
693
  references?: Reference2[];
687
694
  ownerId?: string;
@@ -692,7 +699,7 @@ type EquationDrawerProps = {
692
699
  onSave: (session: EditorSession) => void;
693
700
  onDelete?: () => void;
694
701
  };
695
- declare function EquationDrawer({ debug, session, reason, mathMode, canDelete, equationSide, uiLocale, responsiveMode, labelEnabled, label, labels, references, ownerId, onLabelEnabledChange, onLabelChange, onMathModeChange, onClose, onSave, onDelete, }: EquationDrawerProps): react_jsx_runtime.JSX.Element;
702
+ declare function EquationDrawer({ debug, session, reason, mathMode, canDelete, equationSide, uiLocale, responsiveMode, labelEnabled, label, numbered, onNumberedChange, labels, references, ownerId, onLabelEnabledChange, onLabelChange, onMathModeChange, onClose, onSave, onDelete, }: EquationDrawerProps): react_jsx_runtime.JSX.Element;
696
703
 
697
704
  type InlineFieldProps = {
698
705
  field: InlineField2;