@apolitical/component-library 4.1.1 → 4.1.2
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/form/components/rich-text-editor/components/toolbar/components/link-editor/link-editor.helpers.d.ts +1 -0
- package/form/components/rich-text-editor/plugins/index.d.ts +1 -0
- package/form/components/rich-text-editor/plugins/without-empty-links/index.d.ts +1 -0
- package/form/components/rich-text-editor/plugins/without-empty-links/without-empty-links.d.ts +5 -0
- package/index.js +40 -40
- package/index.mjs +5098 -4859
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseEditor } from 'slate';
|
|
2
2
|
export declare const isLinkActive: (editor: BaseEditor) => boolean;
|
|
3
3
|
export declare const insertLink: (editor: BaseEditor, url: string, id: string) => void;
|
|
4
|
+
export declare const editLink: (editor: BaseEditor, url: string, id: string) => void;
|
|
4
5
|
export declare const wrapLink: (editor: BaseEditor, url: string, id: string) => void;
|
|
5
6
|
export declare const unwrapLink: (editor: BaseEditor) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as withoutEmptyLinks } from './without-empty-links';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BaseEditor } from 'slate';
|
|
2
|
+
import { HistoryEditor } from 'slate-history';
|
|
3
|
+
import { ReactEditor } from 'slate-react';
|
|
4
|
+
declare const withoutEmptyLinks: (editor: BaseEditor & ReactEditor & HistoryEditor) => BaseEditor & ReactEditor & HistoryEditor;
|
|
5
|
+
export default withoutEmptyLinks;
|