@apolitical/component-library 9.1.0-pla.1 → 10.0.0-pla.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/discussion/discussion.helpers.d.ts +1 -1
- package/discussion/feeds/replies-feed/components/add-reply-form/add-reply-form.d.ts +1 -1
- package/discussion/feeds/replies-feed/components/load-more-replies-button/load-more-replies-button.d.ts +1 -1
- package/discussion/feeds/replies-feed/components/reply-item/reply-item.d.ts +1 -1
- package/form/components/form/components/fields/input/input.d.ts +2 -2
- package/form/components/form/form.types.d.ts +1 -1
- package/form/components/rich-text-editor/hooks/use-positioned-element/use-positioned-element.d.ts +1 -1
- package/general/tooltip/tooltip.d.ts +1 -1
- package/helpers/pass-props-to-children.d.ts +1 -1
- package/hooks/use-auto-resize/use-auto-resize.d.ts +2 -2
- package/index.js +132 -113
- package/index.mjs +15839 -15450
- package/layout/content-layout/columns/columns.d.ts +1 -1
- package/modals/components/modal/modal.d.ts +1 -1
- package/navigation/more-menu/more-menu.d.ts +2 -2
- package/package.json +6 -6
- package/text/markdown-text/components/div/div.d.ts +1 -1
- package/text/markdown-text/components/empty-component/empty-component.d.ts +3 -1
- package/text/markdown-text/components/link/link.d.ts +1 -1
|
@@ -4,7 +4,7 @@ export declare const transformSlugs: (slugs: {
|
|
|
4
4
|
}) => {
|
|
5
5
|
[key: string]: string;
|
|
6
6
|
};
|
|
7
|
-
export declare const getAuthorData: (author: IUser, isAnonymous?: boolean) => "
|
|
7
|
+
export declare const getAuthorData: (author: IUser, isAnonymous?: boolean) => "anonymous" | "deleted" | {
|
|
8
8
|
id: string;
|
|
9
9
|
name: string;
|
|
10
10
|
organization: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type JSX } from 'react';
|
|
2
1
|
import { ILikesFeedQueryFns } from '../../../../../discussion/feeds/likes-feed';
|
|
3
2
|
import { DiscussionType, type IDiscussionFormFns } from '../../../../../discussion/shared';
|
|
4
3
|
import type { IParsedReplies, IQueryFns } from '../../cache';
|
|
4
|
+
import type { JSX } from "react";
|
|
5
5
|
interface IMutations {
|
|
6
6
|
edit: (params: {
|
|
7
7
|
replyId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IField, InputTypes, InputValues } from '../../../form.types';
|
|
3
|
-
export declare const Input: ({ className, element, id, inputRef: ref, functions, name, placeholder, type, value, autoFocus, label, styling, ...props }: IField) => React.
|
|
3
|
+
export declare const Input: ({ className, element, id, inputRef: ref, functions, name, placeholder, type, value, autoFocus, label, styling, ...props }: IField) => React.ReactElement<{
|
|
4
4
|
onChange: (e: React.FormEvent<HTMLInputElement>) => void;
|
|
5
5
|
onMultiSelectSubmit?: ((arg1: import("../../../form.types").FormValues) => void) | undefined;
|
|
6
6
|
onBlur?: (() => void) | undefined;
|
|
@@ -61,5 +61,5 @@ export declare const Input: ({ className, element, id, inputRef: ref, functions,
|
|
|
61
61
|
submitOnEnter?: boolean | undefined;
|
|
62
62
|
validation?: import("../../../form.types").IFieldValidation[] | undefined;
|
|
63
63
|
ref: React.RefObject<HTMLInputElement | null>;
|
|
64
|
-
},
|
|
64
|
+
}, string | React.JSXElementConstructor<any>>;
|
|
65
65
|
export default Input;
|
|
@@ -131,7 +131,7 @@ export interface IField {
|
|
|
131
131
|
/** The initial value of the field, for dropdown fields */
|
|
132
132
|
initialValue?: FormValues;
|
|
133
133
|
/** An optional `ref` for the field, in case we need to interact with it in another file */
|
|
134
|
-
inputRef?: React.RefObject<HTMLInputElement
|
|
134
|
+
inputRef?: React.RefObject<HTMLInputElement>;
|
|
135
135
|
/** The internationalisation path for the field */
|
|
136
136
|
intlPath?: string | false;
|
|
137
137
|
/** The label for the field */
|
package/form/components/rich-text-editor/hooks/use-positioned-element/use-positioned-element.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BaseEditor } from 'slate';
|
|
3
|
-
declare const usePositionedElement: (editor: BaseEditor, element: string, fallback: string) => import("react").
|
|
3
|
+
declare const usePositionedElement: (editor: BaseEditor, element: string, fallback: string) => import("react").MutableRefObject<HTMLElement | null>;
|
|
4
4
|
export default usePositionedElement;
|
|
@@ -38,5 +38,5 @@ interface Props {
|
|
|
38
38
|
/** The id of the tooltip */
|
|
39
39
|
id?: string;
|
|
40
40
|
}
|
|
41
|
-
declare const _default: React.
|
|
41
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLElement | null>>>;
|
|
42
42
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const passPropsToChildren: (children: React.
|
|
2
|
+
declare const passPropsToChildren: (children: React.ReactNode, props: Record<string, unknown>) => (string | number | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode>)[] | null | undefined;
|
|
3
3
|
export default passPropsToChildren;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _default: (shouldResize: boolean, inputRef?:
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
|
+
declare const _default: (shouldResize: boolean, inputRef?: MutableRefObject<HTMLTextAreaElement | HTMLInputElement | null>) => false | MutableRefObject<HTMLTextAreaElement | HTMLInputElement | null>;
|
|
3
3
|
export default _default;
|