@drghaliasri/butex 6.1.5 → 7.0.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/dist/react.d.mts CHANGED
@@ -1146,6 +1146,9 @@ type EditorRuntimeApi = {
1146
1146
  deleteStructure: () => void;
1147
1147
  };
1148
1148
 
1149
+ /** Controls which responsive interaction workflow a React editor uses. */
1150
+ type ButexResponsiveMode = 'auto' | 'desktop' | 'compact';
1151
+
1149
1152
  declare global {
1150
1153
  interface Window {
1151
1154
  MathJax?: {
@@ -1170,16 +1173,20 @@ type ButexEditorProps = {
1170
1173
  className?: string;
1171
1174
  /** Developer panels: LaTeX dump, passive chain preview, debug log. */
1172
1175
  debug?: boolean;
1173
- /** Initial equation side. Users may still switch sides from the toolbar. */
1176
+ /** Initial equation side. Users can switch it when side controls are enabled. */
1174
1177
  defaultSide?: EditorSide;
1175
1178
  /** Human-facing editor chrome language. Independent from the active equation side. */
1176
1179
  uiLocale?: ButexUiLocale;
1177
1180
  initialSession?: EditorSession;
1178
1181
  onSessionChange?: (session: EditorSession) => void;
1182
+ /** Selects the responsive interaction workflow. Automatic mode follows the layout viewport. */
1183
+ responsiveMode?: ButexResponsiveMode;
1184
+ /** Show controls that let users switch between the Arabic and English equation sides. */
1185
+ showSideSwitcher?: boolean;
1179
1186
  };
1180
1187
  type ButexEditorHandle = {
1181
1188
  getRuntime: () => EditorRuntimeApi | null;
1182
1189
  };
1183
1190
  declare const ButexEditor: react.ForwardRefExoticComponent<ButexEditorProps & react.RefAttributes<ButexEditorHandle>>;
1184
1191
 
1185
- export { ButexEditor, type ButexEditorHandle, type ButexEditorProps, type ButexUiLocale };
1192
+ export { ButexEditor, type ButexEditorHandle, type ButexEditorProps, type ButexResponsiveMode, type ButexUiLocale };
package/dist/react.d.ts CHANGED
@@ -1146,6 +1146,9 @@ type EditorRuntimeApi = {
1146
1146
  deleteStructure: () => void;
1147
1147
  };
1148
1148
 
1149
+ /** Controls which responsive interaction workflow a React editor uses. */
1150
+ type ButexResponsiveMode = 'auto' | 'desktop' | 'compact';
1151
+
1149
1152
  declare global {
1150
1153
  interface Window {
1151
1154
  MathJax?: {
@@ -1170,16 +1173,20 @@ type ButexEditorProps = {
1170
1173
  className?: string;
1171
1174
  /** Developer panels: LaTeX dump, passive chain preview, debug log. */
1172
1175
  debug?: boolean;
1173
- /** Initial equation side. Users may still switch sides from the toolbar. */
1176
+ /** Initial equation side. Users can switch it when side controls are enabled. */
1174
1177
  defaultSide?: EditorSide;
1175
1178
  /** Human-facing editor chrome language. Independent from the active equation side. */
1176
1179
  uiLocale?: ButexUiLocale;
1177
1180
  initialSession?: EditorSession;
1178
1181
  onSessionChange?: (session: EditorSession) => void;
1182
+ /** Selects the responsive interaction workflow. Automatic mode follows the layout viewport. */
1183
+ responsiveMode?: ButexResponsiveMode;
1184
+ /** Show controls that let users switch between the Arabic and English equation sides. */
1185
+ showSideSwitcher?: boolean;
1179
1186
  };
1180
1187
  type ButexEditorHandle = {
1181
1188
  getRuntime: () => EditorRuntimeApi | null;
1182
1189
  };
1183
1190
  declare const ButexEditor: react.ForwardRefExoticComponent<ButexEditorProps & react.RefAttributes<ButexEditorHandle>>;
1184
1191
 
1185
- export { ButexEditor, type ButexEditorHandle, type ButexEditorProps, type ButexUiLocale };
1192
+ export { ButexEditor, type ButexEditorHandle, type ButexEditorProps, type ButexResponsiveMode, type ButexUiLocale };