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/CHANGELOG.md +20 -0
- package/dist/_virtual/index6.js +2 -2
- package/dist/_virtual/index7.js +2 -2
- package/dist/agent-docs/adoption-report.json +3 -3
- package/dist/agent-docs/components/AppEditor.md +51 -13
- package/dist/agent-docs/components/Input.md +11 -10
- package/dist/agent-docs/manifest.json +13 -10
- package/dist/components/editor/plugins/toolbar/font-format-toolbar-plugin.js +34 -30
- package/dist/components/editor/plugins/toolbar/link-toolbar-plugin.js +99 -0
- package/dist/components/editor/themes/editor-theme.js +5 -2
- package/dist/components/ui/app-data-grid/app-data-grid.js +1 -0
- package/dist/components/ui/app-editor.js +162 -138
- package/dist/components/ui/input.js +63 -62
- package/dist/index.d.ts +18 -2
- package/dist/node_modules/eventemitter3/index2.js +1 -1
- package/dist/node_modules/style-to-object/cjs/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.v3.css +1 -1
- package/package.json +2 -1
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
|
|
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;
|