@livetiles/reach-plugin-types 0.5.0-preview.1193 → 0.5.0-preview.1195
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/lib/index.d.ts +7 -2
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -5255,7 +5255,9 @@ declare module "libs/reach/ui/common/src/common/containers/ListItemsContainer" {
|
|
|
5255
5255
|
declare module "libs/reach/ui/common/src/common/Utils" {
|
|
5256
5256
|
import { CurrentUser, PublishableItem } from "libs/reach/util/common/src/index";
|
|
5257
5257
|
import { SubscriptionIdentifier } from "libs/reach/util/context/src/index";
|
|
5258
|
-
export function isValidUrl(url: string
|
|
5258
|
+
export function isValidUrl(url: string, options?: {
|
|
5259
|
+
forceProtocol?: boolean;
|
|
5260
|
+
}): boolean;
|
|
5259
5261
|
export function getGoogleMapsSearchLink(name: string): string;
|
|
5260
5262
|
export function tryGetInternalLink(url: string, appUrls: string[]): string;
|
|
5261
5263
|
export function getExternalContentUrl(item: PublishableItem, language: string): string;
|
|
@@ -12209,7 +12211,9 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/hooks/useEd
|
|
|
12209
12211
|
createList: (type: 'bulletList' | 'orderedList', placeholder: string, isNodeChange: boolean) => void;
|
|
12210
12212
|
getActiveNodeType: () => string;
|
|
12211
12213
|
getSelectionAttrs: (nodeType?: string) => Record<string, any>;
|
|
12212
|
-
getSelectionText: (
|
|
12214
|
+
getSelectionText: ({ trimEmpty }?: {
|
|
12215
|
+
trimEmpty?: boolean;
|
|
12216
|
+
}) => string;
|
|
12213
12217
|
selectActiveNodeText: (markType: MarkType) => void;
|
|
12214
12218
|
};
|
|
12215
12219
|
export default useEditorActions;
|
|
@@ -12249,6 +12253,7 @@ declare module "libs/reach/feature/content/src/reach-2/common/editor/editors/Lin
|
|
|
12249
12253
|
interface ILinkEditorProps {
|
|
12250
12254
|
className?: string;
|
|
12251
12255
|
editor: Editor;
|
|
12256
|
+
isShown?: boolean;
|
|
12252
12257
|
onDismiss(): void;
|
|
12253
12258
|
}
|
|
12254
12259
|
const LinkEditor: FC<ILinkEditorProps>;
|