laif-ds 1.1.1 → 1.1.3

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/index.d.ts CHANGED
@@ -310,7 +310,7 @@ export declare interface AppDialogProps extends Omit<DialogContentProps, "title"
310
310
  preventClose?: "overlay" | "all";
311
311
  }
312
312
 
313
- export declare function AppEditor({ defaultValue, onMarkdownEdit, onValueChange, plugins, toolbars, placeholder, onlyMarkdown, className, wrpClassName, mentions, mentionTrigger, }: AppEditorProps): JSX.Element;
313
+ export declare const AppEditor: ForwardRefExoticComponent<AppEditorProps & RefAttributes<AppEditorHandle>>;
314
314
 
315
315
  /** Metadata emitted alongside the markdown on every change. */
316
316
  export declare interface AppEditorChangeMeta {
@@ -318,6 +318,16 @@ export declare interface AppEditorChangeMeta {
318
318
  mentions: MentionItem[];
319
319
  }
320
320
 
321
+ /** Imperative API exposed through the `ref` of `AppEditor`. */
322
+ export declare interface AppEditorHandle {
323
+ /**
324
+ * Inserts a hyperlink at the caret (or at the end of the text when the editor
325
+ * has no selection) and leaves the caret right after it. Serializes to
326
+ * `[text](url)`; `text` defaults to the URL itself.
327
+ */
328
+ insertLink: (url: string, text?: string) => void;
329
+ }
330
+
321
331
  export declare type AppEditorPlugin = "clear" | "counter";
322
332
 
323
333
  export declare interface AppEditorProps {
@@ -352,7 +362,7 @@ export declare interface AppEditorProps {
352
362
  mentionTrigger?: string;
353
363
  }
354
364
 
355
- export declare type AppEditorToolbar = "block-format" | "font-format" | "history";
365
+ export declare type AppEditorToolbar = "block-format" | "font-format" | "history" | "link";
356
366
 
357
367
  export declare const AppForm: <TFormValues extends FieldValues = FieldValues, TAsyncOption = unknown>({ items, cols, form, submitText, onSubmit, isSubmitting, showSubmitButton, }: AppFormProps<TFormValues, TAsyncOption>) => JSX.Element;
358
368
 
@@ -8071,6 +8081,12 @@ export declare interface InputProps extends Omit<React_2.ComponentProps<"input">
8071
8081
  iconRight?: IconName;
8072
8082
  startContent?: React_2.ReactNode;
8073
8083
  endContent?: React_2.ReactNode;
8084
+ /**
8085
+ * Only for `type="search"`: renders the built-in clear «×» when the field has
8086
+ * a value. Pass `false` when the caller renders its own clear control in
8087
+ * `endContent`, otherwise the field shows two «×».
8088
+ */
8089
+ clearable?: boolean;
8074
8090
  validityI18n?: InputValidityI18n;
8075
8091
  showValidMessage?: boolean;
8076
8092
  showValidityMessage?: boolean;
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { __module as x } from "../../_virtual/index6.js";
2
+ import { __module as x } from "../../_virtual/index7.js";
3
3
  var w;
4
4
  function O() {
5
5
  return w ? x.exports : (w = 1, (function(d) {
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { __exports as r } from "../../../_virtual/index7.js";
2
+ import { __exports as r } from "../../../_virtual/index6.js";
3
3
  import { __require as c } from "../../inline-style-parser/index.js";
4
4
  var f;
5
5
  function j() {