@atlaskit/link-create 2.14.0 → 2.15.1
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/CHANGELOG.md +14 -0
- package/dist/cjs/common/constants.js +4 -1
- package/dist/cjs/common/ui/error-boundary-modal/index.js +13 -10
- package/dist/cjs/common/ui/error-boundary-modal/old/index.js +34 -0
- package/dist/cjs/common/ui/error-boundary-ui/error-svg/index.compiled.css +6 -0
- package/dist/cjs/common/ui/error-boundary-ui/error-svg/index.js +32 -25
- package/dist/cjs/common/ui/error-boundary-ui/error-svg/old/index.js +67 -0
- package/dist/cjs/common/ui/icon/index.compiled.css +7 -0
- package/dist/cjs/common/ui/icon/index.js +25 -20
- package/dist/cjs/common/ui/icon/old/index.js +26 -0
- package/dist/cjs/common/ui/message/index.compiled.css +11 -0
- package/dist/cjs/common/ui/message/index.js +33 -40
- package/dist/cjs/common/ui/message/old/index.js +81 -0
- package/dist/cjs/common/ui/modal-hero/index.js +11 -3
- package/dist/cjs/common/ui/modal-hero/old/index.js +27 -0
- package/dist/cjs/controllers/create-field/main.compiled.css +1 -0
- package/dist/cjs/controllers/create-field/main.js +30 -21
- package/dist/cjs/controllers/create-field/old/main.js +76 -0
- package/dist/cjs/ui/create-form/async-select/main.js +15 -10
- package/dist/cjs/ui/create-form/async-select/old/main.js +195 -0
- package/dist/cjs/ui/create-form/form-footer/main.compiled.css +5 -0
- package/dist/cjs/ui/create-form/form-footer/main.js +28 -28
- package/dist/cjs/ui/create-form/form-footer/old/main.js +64 -0
- package/dist/cjs/ui/create-form/form-loader/main.compiled.css +4 -0
- package/dist/cjs/ui/create-form/form-loader/main.js +22 -21
- package/dist/cjs/ui/create-form/form-loader/old/main.js +39 -0
- package/dist/cjs/ui/create-form/main.compiled.css +9 -0
- package/dist/cjs/ui/create-form/main.js +26 -21
- package/dist/cjs/ui/create-form/old/main.js +177 -0
- package/dist/cjs/ui/create-form/select/main.js +41 -20
- package/dist/cjs/ui/create-form/select/old/main.js +127 -0
- package/dist/cjs/ui/create-form/textfield/main.js +14 -13
- package/dist/cjs/ui/create-form/textfield/old/main.js +55 -0
- package/dist/cjs/ui/create-form/user-picker/main.js +14 -13
- package/dist/cjs/ui/create-form/user-picker/old/main.js +72 -0
- package/dist/cjs/ui/inline-create/index.js +17 -14
- package/dist/cjs/ui/inline-create/main.js +21 -19
- package/dist/cjs/ui/inline-create/old/index.js +38 -0
- package/dist/cjs/ui/inline-create/old/main.js +120 -0
- package/dist/cjs/ui/modal-create/index.js +19 -16
- package/dist/cjs/ui/modal-create/main.js +26 -23
- package/dist/cjs/ui/modal-create/old/index.js +44 -0
- package/dist/cjs/ui/modal-create/old/main.js +164 -0
- package/dist/es2019/common/constants.js +4 -1
- package/dist/es2019/common/ui/error-boundary-modal/index.js +12 -9
- package/dist/es2019/common/ui/error-boundary-modal/old/index.js +26 -0
- package/dist/es2019/common/ui/error-boundary-ui/error-svg/index.compiled.css +6 -0
- package/dist/es2019/common/ui/error-boundary-ui/error-svg/index.js +24 -23
- package/dist/es2019/common/ui/error-boundary-ui/error-svg/old/index.js +58 -0
- package/dist/es2019/common/ui/icon/index.compiled.css +7 -0
- package/dist/es2019/common/ui/icon/index.js +23 -18
- package/dist/es2019/common/ui/icon/old/index.js +18 -0
- package/dist/es2019/common/ui/message/index.compiled.css +11 -0
- package/dist/es2019/common/ui/message/index.js +30 -39
- package/dist/es2019/common/ui/message/old/index.js +74 -0
- package/dist/es2019/common/ui/modal-hero/index.js +10 -2
- package/dist/es2019/common/ui/modal-hero/old/index.js +19 -0
- package/dist/es2019/controllers/create-field/main.compiled.css +1 -0
- package/dist/es2019/controllers/create-field/main.js +26 -23
- package/dist/es2019/controllers/create-field/old/main.js +74 -0
- package/dist/es2019/ui/create-form/async-select/main.js +12 -11
- package/dist/es2019/ui/create-form/async-select/old/main.js +137 -0
- package/dist/es2019/ui/create-form/form-footer/main.compiled.css +5 -0
- package/dist/es2019/ui/create-form/form-footer/main.js +25 -27
- package/dist/es2019/ui/create-form/form-footer/old/main.js +57 -0
- package/dist/es2019/ui/create-form/form-loader/main.compiled.css +4 -0
- package/dist/es2019/ui/create-form/form-loader/main.js +19 -20
- package/dist/es2019/ui/create-form/form-loader/old/main.js +31 -0
- package/dist/es2019/ui/create-form/main.compiled.css +9 -0
- package/dist/es2019/ui/create-form/main.js +23 -23
- package/dist/es2019/ui/create-form/old/main.js +145 -0
- package/dist/es2019/ui/create-form/select/main.js +42 -22
- package/dist/es2019/ui/create-form/select/old/main.js +106 -0
- package/dist/es2019/ui/create-form/textfield/main.js +14 -12
- package/dist/es2019/ui/create-form/textfield/old/main.js +45 -0
- package/dist/es2019/ui/create-form/user-picker/main.js +14 -12
- package/dist/es2019/ui/create-form/user-picker/old/main.js +59 -0
- package/dist/es2019/ui/inline-create/index.js +14 -13
- package/dist/es2019/ui/inline-create/main.js +21 -18
- package/dist/es2019/ui/inline-create/old/index.js +30 -0
- package/dist/es2019/ui/inline-create/old/main.js +96 -0
- package/dist/es2019/ui/modal-create/index.js +16 -15
- package/dist/es2019/ui/modal-create/main.js +23 -22
- package/dist/es2019/ui/modal-create/old/index.js +36 -0
- package/dist/es2019/ui/modal-create/old/main.js +137 -0
- package/dist/esm/common/constants.js +4 -1
- package/dist/esm/common/ui/error-boundary-modal/index.js +12 -9
- package/dist/esm/common/ui/error-boundary-modal/old/index.js +25 -0
- package/dist/esm/common/ui/error-boundary-ui/error-svg/index.compiled.css +6 -0
- package/dist/esm/common/ui/error-boundary-ui/error-svg/index.js +28 -24
- package/dist/esm/common/ui/error-boundary-ui/error-svg/old/index.js +60 -0
- package/dist/esm/common/ui/icon/index.compiled.css +7 -0
- package/dist/esm/common/ui/icon/index.js +23 -18
- package/dist/esm/common/ui/icon/old/index.js +18 -0
- package/dist/esm/common/ui/message/index.compiled.css +11 -0
- package/dist/esm/common/ui/message/index.js +30 -39
- package/dist/esm/common/ui/message/old/index.js +73 -0
- package/dist/esm/common/ui/modal-hero/index.js +10 -2
- package/dist/esm/common/ui/modal-hero/old/index.js +18 -0
- package/dist/esm/controllers/create-field/main.compiled.css +1 -0
- package/dist/esm/controllers/create-field/main.js +25 -22
- package/dist/esm/controllers/create-field/old/main.js +72 -0
- package/dist/esm/ui/create-form/async-select/main.js +12 -11
- package/dist/esm/ui/create-form/async-select/old/main.js +188 -0
- package/dist/esm/ui/create-form/form-footer/main.compiled.css +5 -0
- package/dist/esm/ui/create-form/form-footer/main.js +24 -26
- package/dist/esm/ui/create-form/form-footer/old/main.js +56 -0
- package/dist/esm/ui/create-form/form-loader/main.compiled.css +4 -0
- package/dist/esm/ui/create-form/form-loader/main.js +18 -19
- package/dist/esm/ui/create-form/form-loader/old/main.js +31 -0
- package/dist/esm/ui/create-form/main.compiled.css +9 -0
- package/dist/esm/ui/create-form/main.js +23 -23
- package/dist/esm/ui/create-form/old/main.js +174 -0
- package/dist/esm/ui/create-form/select/main.js +41 -21
- package/dist/esm/ui/create-form/select/old/main.js +117 -0
- package/dist/esm/ui/create-form/textfield/main.js +13 -11
- package/dist/esm/ui/create-form/textfield/old/main.js +47 -0
- package/dist/esm/ui/create-form/user-picker/main.js +13 -11
- package/dist/esm/ui/create-form/user-picker/old/main.js +64 -0
- package/dist/esm/ui/inline-create/index.js +14 -13
- package/dist/esm/ui/inline-create/main.js +21 -18
- package/dist/esm/ui/inline-create/old/index.js +30 -0
- package/dist/esm/ui/inline-create/old/main.js +112 -0
- package/dist/esm/ui/modal-create/index.js +16 -15
- package/dist/esm/ui/modal-create/main.js +23 -22
- package/dist/esm/ui/modal-create/old/index.js +36 -0
- package/dist/esm/ui/modal-create/old/main.js +156 -0
- package/dist/types/common/constants.d.ts +3 -0
- package/dist/types/common/ui/ModalDialog/index.d.ts +1 -1
- package/dist/types/common/ui/confirm-dismiss-dialog/main.d.ts +2 -2
- package/dist/types/common/ui/edit-modal/index.d.ts +1 -1
- package/dist/types/common/ui/error-boundary/error-boundary-base/index.d.ts +1 -1
- package/dist/types/common/ui/error-boundary/index.d.ts +2 -2
- package/dist/types/common/ui/error-boundary-modal/index.d.ts +2 -2
- package/dist/types/common/ui/error-boundary-modal/old/index.d.ts +11 -0
- package/dist/types/common/ui/error-boundary-ui/error-svg/index.d.ts +2 -6
- package/dist/types/common/ui/error-boundary-ui/error-svg/old/index.d.ts +7 -0
- package/dist/types/common/ui/error-boundary-ui/index.d.ts +2 -2
- package/dist/types/common/ui/experience-tracker/index.d.ts +1 -1
- package/dist/types/common/ui/icon/index.d.ts +10 -6
- package/dist/types/common/ui/icon/old/index.d.ts +7 -0
- package/dist/types/common/ui/link-create-content/index.d.ts +2 -2
- package/dist/types/common/ui/message/index.d.ts +1 -2
- package/dist/types/common/ui/message/old/index.d.ts +15 -0
- package/dist/types/common/ui/modal-hero/index.d.ts +4 -2
- package/dist/types/common/ui/modal-hero/old/index.d.ts +4 -0
- package/dist/types/controllers/callback-context/main.d.ts +2 -2
- package/dist/types/controllers/create-field/main.d.ts +2 -2
- package/dist/types/controllers/create-field/old/main.d.ts +7 -0
- package/dist/types/controllers/edit-post-create-context/index.d.ts +1 -1
- package/dist/types/controllers/exit-warning-modal-context/index.d.ts +1 -1
- package/dist/types/controllers/form-context/main.d.ts +2 -2
- package/dist/types/controllers/plugin-context/index.d.ts +1 -1
- package/dist/types/ui/create-form/async-select/main.d.ts +2 -8
- package/dist/types/ui/create-form/async-select/old/main.d.ts +11 -0
- package/dist/types/ui/create-form/form-footer/edit-button/index.d.ts +2 -2
- package/dist/types/ui/create-form/form-footer/main.d.ts +2 -11
- package/dist/types/ui/create-form/form-footer/old/main.d.ts +16 -0
- package/dist/types/ui/create-form/form-footer/submit-button/index.d.ts +2 -2
- package/dist/types/ui/create-form/form-loader/main.d.ts +2 -10
- package/dist/types/ui/create-form/form-loader/old/main.d.ts +11 -0
- package/dist/types/ui/create-form/form-spy/index.d.ts +1 -1
- package/dist/types/ui/create-form/main.d.ts +1 -2
- package/dist/types/ui/create-form/old/main.d.ts +54 -0
- package/dist/types/ui/create-form/select/main.d.ts +5 -16
- package/dist/types/ui/create-form/select/old/main.d.ts +24 -0
- package/dist/types/ui/create-form/textfield/main.d.ts +2 -12
- package/dist/types/ui/create-form/textfield/old/main.d.ts +14 -0
- package/dist/types/ui/create-form/user-picker/main.d.ts +2 -9
- package/dist/types/ui/create-form/user-picker/old/main.d.ts +11 -0
- package/dist/types/ui/inline-create/index.d.ts +2 -3
- package/dist/types/ui/inline-create/inline-analytics/index.d.ts +2 -2
- package/dist/types/ui/inline-create/main.d.ts +2 -6
- package/dist/types/ui/inline-create/old/index.d.ts +5 -0
- package/dist/types/ui/inline-create/old/main.d.ts +8 -0
- package/dist/types/ui/modal-create/index.d.ts +2 -3
- package/dist/types/ui/modal-create/main.d.ts +2 -2
- package/dist/types/ui/modal-create/old/index.d.ts +5 -0
- package/dist/types/ui/modal-create/old/main.d.ts +4 -0
- package/dist/types-ts4.5/common/constants.d.ts +3 -0
- package/dist/types-ts4.5/common/ui/ModalDialog/index.d.ts +1 -1
- package/dist/types-ts4.5/common/ui/confirm-dismiss-dialog/main.d.ts +2 -2
- package/dist/types-ts4.5/common/ui/edit-modal/index.d.ts +1 -1
- package/dist/types-ts4.5/common/ui/error-boundary/error-boundary-base/index.d.ts +1 -1
- package/dist/types-ts4.5/common/ui/error-boundary/index.d.ts +2 -2
- package/dist/types-ts4.5/common/ui/error-boundary-modal/index.d.ts +2 -2
- package/dist/types-ts4.5/common/ui/error-boundary-modal/old/index.d.ts +11 -0
- package/dist/types-ts4.5/common/ui/error-boundary-ui/error-svg/index.d.ts +2 -6
- package/dist/types-ts4.5/common/ui/error-boundary-ui/error-svg/old/index.d.ts +7 -0
- package/dist/types-ts4.5/common/ui/error-boundary-ui/index.d.ts +2 -2
- package/dist/types-ts4.5/common/ui/experience-tracker/index.d.ts +1 -1
- package/dist/types-ts4.5/common/ui/icon/index.d.ts +10 -6
- package/dist/types-ts4.5/common/ui/icon/old/index.d.ts +7 -0
- package/dist/types-ts4.5/common/ui/link-create-content/index.d.ts +2 -2
- package/dist/types-ts4.5/common/ui/message/index.d.ts +1 -2
- package/dist/types-ts4.5/common/ui/message/old/index.d.ts +15 -0
- package/dist/types-ts4.5/common/ui/modal-hero/index.d.ts +4 -2
- package/dist/types-ts4.5/common/ui/modal-hero/old/index.d.ts +4 -0
- package/dist/types-ts4.5/controllers/callback-context/main.d.ts +2 -2
- package/dist/types-ts4.5/controllers/create-field/main.d.ts +2 -2
- package/dist/types-ts4.5/controllers/create-field/old/main.d.ts +7 -0
- package/dist/types-ts4.5/controllers/edit-post-create-context/index.d.ts +1 -1
- package/dist/types-ts4.5/controllers/exit-warning-modal-context/index.d.ts +1 -1
- package/dist/types-ts4.5/controllers/form-context/main.d.ts +2 -2
- package/dist/types-ts4.5/controllers/plugin-context/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/create-form/async-select/main.d.ts +2 -8
- package/dist/types-ts4.5/ui/create-form/async-select/old/main.d.ts +11 -0
- package/dist/types-ts4.5/ui/create-form/form-footer/edit-button/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/create-form/form-footer/main.d.ts +2 -11
- package/dist/types-ts4.5/ui/create-form/form-footer/old/main.d.ts +16 -0
- package/dist/types-ts4.5/ui/create-form/form-footer/submit-button/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/create-form/form-loader/main.d.ts +2 -10
- package/dist/types-ts4.5/ui/create-form/form-loader/old/main.d.ts +11 -0
- package/dist/types-ts4.5/ui/create-form/form-spy/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/create-form/main.d.ts +1 -2
- package/dist/types-ts4.5/ui/create-form/old/main.d.ts +56 -0
- package/dist/types-ts4.5/ui/create-form/select/main.d.ts +5 -16
- package/dist/types-ts4.5/ui/create-form/select/old/main.d.ts +24 -0
- package/dist/types-ts4.5/ui/create-form/textfield/main.d.ts +2 -12
- package/dist/types-ts4.5/ui/create-form/textfield/old/main.d.ts +14 -0
- package/dist/types-ts4.5/ui/create-form/user-picker/main.d.ts +2 -9
- package/dist/types-ts4.5/ui/create-form/user-picker/old/main.d.ts +11 -0
- package/dist/types-ts4.5/ui/inline-create/index.d.ts +2 -3
- package/dist/types-ts4.5/ui/inline-create/inline-analytics/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/inline-create/main.d.ts +2 -6
- package/dist/types-ts4.5/ui/inline-create/old/index.d.ts +5 -0
- package/dist/types-ts4.5/ui/inline-create/old/main.d.ts +8 -0
- package/dist/types-ts4.5/ui/modal-create/index.d.ts +2 -3
- package/dist/types-ts4.5/ui/modal-create/main.d.ts +2 -2
- package/dist/types-ts4.5/ui/modal-create/old/index.d.ts +5 -0
- package/dist/types-ts4.5/ui/modal-create/old/main.d.ts +4 -0
- package/example-helpers/mock-disclaimer.tsx +1 -1
- package/package.json +18 -7
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
import React from 'react';
|
|
3
2
|
import { type LinkCreateWithModalProps } from '../../common/types';
|
|
4
|
-
declare const ComposedLinkCreate:
|
|
3
|
+
declare const ComposedLinkCreate: React.MemoExoticComponent<(props: LinkCreateWithModalProps) => React.JSX.Element>;
|
|
5
4
|
export default ComposedLinkCreate;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { LinkCreateWithModalProps } from '../../common/types';
|
|
3
|
-
declare const LinkCreateModal: (props: LinkCreateWithModalProps) =>
|
|
3
|
+
declare const LinkCreateModal: (props: LinkCreateWithModalProps) => React.JSX.Element;
|
|
4
4
|
export default LinkCreateModal;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
3
|
+
import { type LinkCreateWithModalProps } from '../../../common/types';
|
|
4
|
+
declare const ComposedLinkCreateOld: import("react").MemoExoticComponent<(props: LinkCreateWithModalProps) => jsx.JSX.Element>;
|
|
5
|
+
export default ComposedLinkCreateOld;
|
|
@@ -4,6 +4,9 @@ export declare const COMPONENT_NAME = "linkCreate";
|
|
|
4
4
|
export declare const SCREEN_ID = "linkCreateScreen";
|
|
5
5
|
export declare const DEFAULT_TEST_ID = "link-create";
|
|
6
6
|
export declare const CREATE_FORM_MAX_WIDTH_IN_PX = "480";
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Remove on FF clean up platform_bandicoots-link-create-css
|
|
9
|
+
*/
|
|
7
10
|
export declare const CREATE_FORM_MIN_HEIGHT_IN_PX = "200";
|
|
8
11
|
export declare const LINK_CREATE_FORM_POST_CREATE_FIELD = "__post_create__";
|
|
9
12
|
export declare const PACKAGE_DATA: PackageMetaDataType;
|
|
@@ -9,5 +9,5 @@ type ModalProps = React.ComponentProps<typeof ModalDialog> & {
|
|
|
9
9
|
/**
|
|
10
10
|
* AkModal component with built-in analytics for screen event + open + close events + source context
|
|
11
11
|
*/
|
|
12
|
-
export declare const Modal: ({ screen, children, ...props }: ModalProps) => JSX.Element;
|
|
12
|
+
export declare const Modal: ({ screen, children, ...props }: ModalProps) => React.JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export type ConfirmDismissDialogProps = {
|
|
3
3
|
active: boolean;
|
|
4
4
|
onClose: () => void;
|
|
5
5
|
onCancel?: () => void;
|
|
6
6
|
};
|
|
7
|
-
export declare const ConfirmDismissDialog: ({ active, onClose, onCancel }: ConfirmDismissDialogProps) => JSX.Element;
|
|
7
|
+
export declare const ConfirmDismissDialog: ({ active, onClose, onCancel }: ConfirmDismissDialogProps) => React.JSX.Element;
|
|
@@ -7,5 +7,5 @@ type EditModalProps = {
|
|
|
7
7
|
editViewPayload?: CreatePayload;
|
|
8
8
|
activePlugin?: LinkCreatePlugin<string> | null;
|
|
9
9
|
};
|
|
10
|
-
export declare const EditModal: ({ onClose, onCloseComplete, editViewPayload, activePlugin, }: EditModalProps) => JSX.Element;
|
|
10
|
+
export declare const EditModal: ({ onClose, onCloseComplete, editViewPayload, activePlugin, }: EditModalProps) => React.JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -13,6 +13,6 @@ interface BaseErrorBoundaryProps {
|
|
|
13
13
|
export declare class BaseErrorBoundary extends Component<BaseErrorBoundaryProps, BaseErrorBoundaryState> {
|
|
14
14
|
constructor(props: BaseErrorBoundaryProps);
|
|
15
15
|
componentDidCatch(error: Error, info?: ErrorInfo): void;
|
|
16
|
-
render(): string | number | boolean |
|
|
16
|
+
render(): string | number | boolean | Iterable<ReactNode> | JSX.Element | null | undefined;
|
|
17
17
|
}
|
|
18
18
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type PropsWithChildren } from 'react';
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
|
2
2
|
type ErrorBoundaryProps = PropsWithChildren<{
|
|
3
3
|
errorComponent?: JSX.Element;
|
|
4
4
|
}>;
|
|
5
|
-
export declare const ErrorBoundary: ({ children, errorComponent }: ErrorBoundaryProps) => JSX.Element;
|
|
5
|
+
export declare const ErrorBoundary: ({ children, errorComponent }: ErrorBoundaryProps) => React.JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* ErrorBoundaryModal props are the same as those passed to LinkCreate, which
|
|
4
4
|
* are used to control its active state
|
|
@@ -7,5 +7,5 @@ type ErrorBoundaryModalProps = {
|
|
|
7
7
|
active?: boolean;
|
|
8
8
|
onClose?: () => void;
|
|
9
9
|
};
|
|
10
|
-
export declare const ErrorBoundaryModal: (
|
|
10
|
+
export declare const ErrorBoundaryModal: (props: ErrorBoundaryModalProps) => React.JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* ErrorBoundaryModal props are the same as those passed to LinkCreate, which
|
|
4
|
+
* are used to control its active state
|
|
5
|
+
*/
|
|
6
|
+
type ErrorBoundaryModalProps = {
|
|
7
|
+
active?: boolean;
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const ErrorBoundaryModalOld: ({ active, onClose, }: ErrorBoundaryModalProps) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare const CONTACT_SUPPORT_LINK = "https://support.atlassian.com/contact/";
|
|
3
3
|
export declare const CONTACT_SUPPORT_LINK_FEDRAMP = "https://gcs.atlassian-us-gov-mod.net/servicedesk/customer/portals";
|
|
4
|
-
export declare const ErrorBoundaryUI: () => JSX.Element;
|
|
4
|
+
export declare const ErrorBoundaryUI: () => React.JSX.Element;
|
|
@@ -17,6 +17,6 @@ type ExperienceContextValue = {
|
|
|
17
17
|
* Experience provider that simply keeps track of the state of the experience.
|
|
18
18
|
* Fires an operational event when experience state changes to FAILED.
|
|
19
19
|
*/
|
|
20
|
-
export declare const Experience: ({ children }: ExperienceProps) => JSX.Element;
|
|
20
|
+
export declare const Experience: ({ children }: ExperienceProps) => React.JSX.Element;
|
|
21
21
|
export declare const useExperience: () => ExperienceContextValue;
|
|
22
22
|
export {};
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
1
5
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
+
type UrlIconProps = {
|
|
7
|
+
url?: string;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
};
|
|
10
|
+
export declare const UrlIcon: (props: UrlIconProps) => JSX.Element;
|
|
8
11
|
export declare const PageIcon: () => JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const UrlIconOld: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
|
+
} & {
|
|
6
|
+
url?: string | undefined;
|
|
7
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { LinkCreatePlugin } from '../../types';
|
|
3
3
|
type LinkCreateContentProps = {
|
|
4
4
|
plugins: LinkCreatePlugin[];
|
|
5
5
|
entityKey: string;
|
|
6
6
|
};
|
|
7
|
-
export declare const LinkCreateContent: ({ plugins, entityKey }: LinkCreateContentProps) => JSX.Element;
|
|
7
|
+
export declare const LinkCreateContent: ({ plugins, entityKey }: LinkCreateContentProps) => React.JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import { type ReactNode } from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
6
|
type MessageAppearance = 'default' | 'error' | 'valid';
|
|
8
7
|
type MessageProps = {
|
|
9
8
|
id?: string;
|
|
@@ -11,5 +10,5 @@ type MessageProps = {
|
|
|
11
10
|
testId?: string;
|
|
12
11
|
children: ReactNode;
|
|
13
12
|
};
|
|
14
|
-
export declare const Message: (
|
|
13
|
+
export declare const Message: (props: MessageProps) => JSX.Element;
|
|
15
14
|
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type ReactNode } from 'react';
|
|
6
|
+
import { jsx } from '@emotion/react';
|
|
7
|
+
type MessageAppearance = 'default' | 'error' | 'valid';
|
|
8
|
+
type MessageProps = {
|
|
9
|
+
id?: string;
|
|
10
|
+
appearance?: MessageAppearance;
|
|
11
|
+
testId?: string;
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
};
|
|
14
|
+
export declare const MessageOld: ({ children, appearance, id, testId }: MessageProps) => jsx.JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type PropsWithChildren } from 'react';
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
|
2
2
|
import { type CreatePayload } from '../../common/types';
|
|
3
3
|
interface LinkCreateCallbackProviderProps {
|
|
4
4
|
/**
|
|
@@ -14,6 +14,6 @@ interface LinkCreateCallbackProviderProps {
|
|
|
14
14
|
*/
|
|
15
15
|
onCancel?: () => void;
|
|
16
16
|
}
|
|
17
|
-
declare const LinkCreateCallbackProvider: ({ children, onCreate, onFailure, onCancel, }: PropsWithChildren<LinkCreateCallbackProviderProps>) => JSX.Element;
|
|
17
|
+
declare const LinkCreateCallbackProvider: ({ children, onCreate, onFailure, onCancel, }: PropsWithChildren<LinkCreateCallbackProviderProps>) => React.JSX.Element;
|
|
18
18
|
declare const useLinkCreateCallback: () => LinkCreateCallbackProviderProps;
|
|
19
19
|
export { LinkCreateCallbackProvider, useLinkCreateCallback };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
/**
|
|
2
3
|
* @jsxRuntime classic
|
|
3
4
|
* @jsx jsx
|
|
4
5
|
*/
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
6
6
|
import { type CreateFieldProps } from './types';
|
|
7
|
-
export declare
|
|
7
|
+
export declare const CreateField: (props: CreateFieldProps) => JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { jsx } from '@emotion/react';
|
|
6
|
+
import { type CreateFieldProps } from '../types';
|
|
7
|
+
export declare function CreateFieldOld({ id, name, label, isRequired, validators, validationHelpText, testId, children, }: CreateFieldProps): jsx.JSX.Element;
|
|
@@ -27,6 +27,6 @@ type EditPostCreateModalProviderProps = {
|
|
|
27
27
|
active: boolean;
|
|
28
28
|
children: React.ReactNode | ((value: EditPostCreateModalContextValue) => React.ReactNode);
|
|
29
29
|
};
|
|
30
|
-
export declare const EditPostCreateModalProvider: ({ active, children, }: EditPostCreateModalProviderProps) => JSX.Element;
|
|
30
|
+
export declare const EditPostCreateModalProvider: ({ active, children, }: EditPostCreateModalProviderProps) => React.JSX.Element;
|
|
31
31
|
export declare const useEditPostCreateModal: () => EditPostCreateModalContextValue;
|
|
32
32
|
export {};
|
|
@@ -8,7 +8,7 @@ type ExitWarningModalContextValue = {
|
|
|
8
8
|
};
|
|
9
9
|
export declare const ExitWarningModalProvider: ({ children }: {
|
|
10
10
|
children: React.ReactNode;
|
|
11
|
-
}) => JSX.Element;
|
|
11
|
+
}) => React.JSX.Element;
|
|
12
12
|
export declare const useExitWarningModal: () => ExitWarningModalContextValue;
|
|
13
13
|
export declare const useWithExitWarning: () => (callback?: () => void) => () => boolean;
|
|
14
14
|
export {};
|
|
@@ -13,7 +13,7 @@ interface FormContextType {
|
|
|
13
13
|
export declare const FormContext: React.Context<FormContextType>;
|
|
14
14
|
declare const FormContextProvider: ({ enableEditView, children, }: React.PropsWithChildren<{
|
|
15
15
|
enableEditView?: ((editButtonClicked: boolean) => void) | undefined;
|
|
16
|
-
}>) => JSX.Element;
|
|
16
|
+
}>) => React.JSX.Element;
|
|
17
17
|
declare const useFormContext: () => FormContextType;
|
|
18
18
|
export { FormContextProvider, useFormContext };
|
|
19
|
-
export declare const withLinkCreateFormContext: <P extends LinkCreateProps>(WrappedComponent: React.ComponentType<P>) => (props: P) => JSX.Element;
|
|
19
|
+
export declare const withLinkCreateFormContext: <P extends LinkCreateProps>(WrappedComponent: React.ComponentType<P>) => (props: P) => React.JSX.Element;
|
|
@@ -14,7 +14,7 @@ type LinkCreatePluginsProviderProps = {
|
|
|
14
14
|
entityKey: string;
|
|
15
15
|
children: React.ReactNode | ((value: LinkCreatePluginsContextValue) => React.ReactNode);
|
|
16
16
|
};
|
|
17
|
-
export declare const LinkCreatePluginsProvider: ({ plugins, entityKey: propEntityKey, children, }: LinkCreatePluginsProviderProps) => JSX.Element;
|
|
17
|
+
export declare const LinkCreatePluginsProvider: ({ plugins, entityKey: propEntityKey, children, }: LinkCreatePluginsProviderProps) => React.JSX.Element;
|
|
18
18
|
export declare const useLinkCreatePlugins: () => {
|
|
19
19
|
activePlugin: LinkCreatePlugin | null;
|
|
20
20
|
};
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type OptionType } from '@atlaskit/select';
|
|
3
3
|
import { type AsyncSelectProps } from './types';
|
|
4
4
|
export declare const TEST_ID = "link-create-async-select";
|
|
5
|
-
|
|
6
|
-
* An async select utilising the Atlaskit AsyncSelect and CreateField.
|
|
7
|
-
* Validation is handled by the form on form submission. Any
|
|
8
|
-
* errors returned by the handleSubmit function passed to the form <Form> that
|
|
9
|
-
* have a key matching the `name` of this field are shown below the field.
|
|
10
|
-
*/
|
|
11
|
-
export declare function AsyncSelect<T = OptionType>({ id, name, label, isRequired, validators, validationHelpText, testId, defaultOption: propsDefaultValue, loadOptions: loadOptionsFn, ...restProps }: AsyncSelectProps<T>): jsx.JSX.Element;
|
|
5
|
+
export declare function AsyncSelect<T = OptionType>(props: AsyncSelectProps<T>): React.JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
2
|
+
import { type OptionType } from '@atlaskit/select';
|
|
3
|
+
import { type AsyncSelectProps } from '../types';
|
|
4
|
+
export declare const TEST_ID = "link-create-async-select";
|
|
5
|
+
/**
|
|
6
|
+
* An async select utilising the Atlaskit AsyncSelect and CreateField.
|
|
7
|
+
* Validation is handled by the form on form submission. Any
|
|
8
|
+
* errors returned by the handleSubmit function passed to the form <Form> that
|
|
9
|
+
* have a key matching the `name` of this field are shown below the field.
|
|
10
|
+
*/
|
|
11
|
+
export declare function AsyncSelectOld<T = OptionType>({ id, name, label, isRequired, validators, validationHelpText, testId, defaultOption: propsDefaultValue, loadOptions: loadOptionsFn, ...restProps }: AsyncSelectProps<T>): jsx.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const EditButton: () => JSX.Element | null;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const EditButton: () => React.JSX.Element | null;
|
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
/// <reference types="react" />
|
|
6
2
|
export interface CreateFormFooterProps {
|
|
7
3
|
formErrorMessage: string | undefined;
|
|
8
4
|
handleCancel: () => void;
|
|
9
5
|
testId?: string;
|
|
10
6
|
}
|
|
11
|
-
|
|
12
|
-
* Footer for the Create Form, used as a wrapper for action buttons
|
|
13
|
-
* and form error messages. This component is unmounted if
|
|
14
|
-
* hideFooter is true in the Create Form.
|
|
15
|
-
*/
|
|
16
|
-
export declare function CreateFormFooter({ formErrorMessage, handleCancel, testId, }: CreateFormFooterProps): jsx.JSX.Element;
|
|
7
|
+
export declare const CreateFormFooter: (props: CreateFormFooterProps) => JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { jsx } from '@emotion/react';
|
|
6
|
+
export interface CreateFormFooterProps {
|
|
7
|
+
formErrorMessage: string | undefined;
|
|
8
|
+
handleCancel: () => void;
|
|
9
|
+
testId?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Footer for the Create Form, used as a wrapper for action buttons
|
|
13
|
+
* and form error messages. This component is unmounted if
|
|
14
|
+
* hideFooter is true in the Create Form.
|
|
15
|
+
*/
|
|
16
|
+
export declare function CreateFormFooterOld({ formErrorMessage, handleCancel, testId, }: CreateFormFooterProps): jsx.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const SubmitButton: () => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const SubmitButton: () => React.JSX.Element;
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
/// <reference types="react" />
|
|
6
2
|
import { type SpinnerProps } from '@atlaskit/spinner';
|
|
7
|
-
|
|
8
|
-
* Wrapper component for the Spinner, shows while the form
|
|
9
|
-
* performs async functions on load.
|
|
10
|
-
*/
|
|
11
|
-
export declare function CreateFormLoader({ size }: Partial<SpinnerProps>): jsx.JSX.Element;
|
|
3
|
+
export declare const CreateFormLoader: (props: Partial<SpinnerProps>) => JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { jsx } from '@emotion/react';
|
|
6
|
+
import { type SpinnerProps } from '@atlaskit/spinner';
|
|
7
|
+
/**
|
|
8
|
+
* Wrapper component for the Spinner, shows while the form
|
|
9
|
+
* performs async functions on load.
|
|
10
|
+
*/
|
|
11
|
+
export declare function CreateFormLoaderOld({ size }: Partial<SpinnerProps>): jsx.JSX.Element;
|
|
@@ -9,4 +9,4 @@ export type FormSpyProps<T> = {
|
|
|
9
9
|
* FormSpy component so that we can control selectively
|
|
10
10
|
* how much of the API we are commited to.
|
|
11
11
|
*/
|
|
12
|
-
export declare const FormSpy: <T extends Record<string, unknown>>({ children }: FormSpyProps<T>) => JSX.Element;
|
|
12
|
+
export declare const FormSpy: <T extends Record<string, unknown>>({ children }: FormSpyProps<T>) => React.JSX.Element;
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import { type ReactNode } from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
6
|
type ReservedFields = {
|
|
8
7
|
[Field in (typeof RESERVED_FIELDS)[number]]?: unknown;
|
|
9
8
|
};
|
|
@@ -52,5 +51,5 @@ export interface CreateFormProps<FormData> {
|
|
|
52
51
|
initialValues?: DisallowReservedFields<FormData>;
|
|
53
52
|
}
|
|
54
53
|
export declare const TEST_ID = "link-create-form";
|
|
55
|
-
export declare const CreateForm: <FormData extends Record<string, any> = {}>(
|
|
54
|
+
export declare const CreateForm: <FormData extends Record<string, any> = {}>(props: CreateFormProps<FormData>) => JSX.Element;
|
|
56
55
|
export {};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type ReactNode } from 'react';
|
|
6
|
+
import { jsx } from '@emotion/react';
|
|
7
|
+
type ReservedFields = {
|
|
8
|
+
[Field in (typeof RESERVED_FIELDS)[number]]?: unknown;
|
|
9
|
+
};
|
|
10
|
+
declare const RESERVED_FIELDS: readonly [
|
|
11
|
+
"__post_create__"
|
|
12
|
+
];
|
|
13
|
+
type DisallowReservedFields<T> = T & {
|
|
14
|
+
[Field in (typeof RESERVED_FIELDS)[number]]?: never;
|
|
15
|
+
};
|
|
16
|
+
type OmitReservedFields<T> = Omit<T, keyof ReservedFields>;
|
|
17
|
+
type Errors = Record<string, string>;
|
|
18
|
+
export interface CreateFormProps<FormData> {
|
|
19
|
+
/**
|
|
20
|
+
* Should resolve to void, or resolve to an object of
|
|
21
|
+
* keys (field names) with error messages (key values)
|
|
22
|
+
*/
|
|
23
|
+
onSubmit: (data: OmitReservedFields<FormData>) => void | Errors | Promise<void | Errors>;
|
|
24
|
+
/**
|
|
25
|
+
* Children to render in the form (form fields)
|
|
26
|
+
*/
|
|
27
|
+
children: ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* Test id to render on the form element
|
|
30
|
+
*/
|
|
31
|
+
testId?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Callback when the cancel button is fired
|
|
34
|
+
*/
|
|
35
|
+
onCancel?: () => void;
|
|
36
|
+
/**
|
|
37
|
+
* Renders a spinner when true
|
|
38
|
+
*/
|
|
39
|
+
isLoading?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Hides the rendering of the footer buttons
|
|
42
|
+
*/
|
|
43
|
+
hideFooter?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Hides the "Required fields are marked with an asterisk" message
|
|
46
|
+
*/
|
|
47
|
+
hideRequiredFieldMessage?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Values to initialise the forms initial state with
|
|
50
|
+
* Should not include values for reserved fields
|
|
51
|
+
*/
|
|
52
|
+
initialValues?: DisallowReservedFields<FormData>;
|
|
53
|
+
}
|
|
54
|
+
export declare const TEST_ID = "link-create-form";
|
|
55
|
+
export declare const CreateFormOld: <FormData extends Record<string, any> = {}>({ children, testId, onSubmit, onCancel, isLoading, hideFooter, hideRequiredFieldMessage, initialValues, }: CreateFormProps<FormData>) => jsx.JSX.Element;
|
|
56
|
+
export {};
|
|
@@ -1,24 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type PropsWithChildren } from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
|
7
2
|
import { type OptionProps, type OptionType, type SingleValueProps } from '@atlaskit/select';
|
|
8
3
|
import { type SelectProps, type SitePickerOptionType } from './types';
|
|
9
4
|
export declare const TEST_ID = "link-create-select";
|
|
10
|
-
|
|
11
|
-
* A select component utilising the Atlaskit Select and CreateField.
|
|
12
|
-
* Validation is handled by the form on form submission. Any
|
|
13
|
-
* errors returned by the handleSubmit function passed to the form <Form> that
|
|
14
|
-
* have a key matching the `name` of this field are shown below the field.
|
|
15
|
-
*/
|
|
16
|
-
export declare function Select<T = OptionType>({ id, name, label, isRequired, validators, validationHelpText, testId, ...restProps }: SelectProps<T>): jsx.JSX.Element;
|
|
5
|
+
export declare function Select<T = OptionType>(props: SelectProps<T>): React.JSX.Element;
|
|
17
6
|
export type SiteSelectProps = {
|
|
18
7
|
testId?: string;
|
|
19
8
|
options?: SitePickerOptionType[];
|
|
20
9
|
name?: string;
|
|
21
10
|
};
|
|
22
|
-
export declare const SiteSelect: (
|
|
23
|
-
export declare const SitePickerOption: (
|
|
24
|
-
export declare const SitePickerSingleValue: (
|
|
11
|
+
export declare const SiteSelect: (props: SiteSelectProps) => React.JSX.Element;
|
|
12
|
+
export declare const SitePickerOption: (props: PropsWithChildren<OptionProps<SitePickerOptionType, false>>) => React.JSX.Element;
|
|
13
|
+
export declare const SitePickerSingleValue: (props: PropsWithChildren<SingleValueProps<SitePickerOptionType, false>>) => React.JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type PropsWithChildren } from 'react';
|
|
6
|
+
import { jsx } from '@emotion/react';
|
|
7
|
+
import { type OptionProps, type OptionType, type SingleValueProps } from '@atlaskit/select';
|
|
8
|
+
import { type SelectProps, type SitePickerOptionType } from '../types';
|
|
9
|
+
export declare const TEST_ID = "link-create-select";
|
|
10
|
+
/**
|
|
11
|
+
* A select component utilising the Atlaskit Select and CreateField.
|
|
12
|
+
* Validation is handled by the form on form submission. Any
|
|
13
|
+
* errors returned by the handleSubmit function passed to the form <Form> that
|
|
14
|
+
* have a key matching the `name` of this field are shown below the field.
|
|
15
|
+
*/
|
|
16
|
+
export declare function SelectOld<T = OptionType>({ id, name, label, isRequired, validators, validationHelpText, testId, ...restProps }: SelectProps<T>): jsx.JSX.Element;
|
|
17
|
+
export type SiteSelectProps = {
|
|
18
|
+
testId?: string;
|
|
19
|
+
options?: SitePickerOptionType[];
|
|
20
|
+
name?: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const SiteSelectOld: ({ options, name, testId }: SiteSelectProps) => jsx.JSX.Element;
|
|
23
|
+
export declare const SitePickerOptionOld: ({ children, ...props }: PropsWithChildren<OptionProps<SitePickerOptionType, false>>) => JSX.Element;
|
|
24
|
+
export declare const SitePickerSingleValueOld: ({ children, ...props }: PropsWithChildren<SingleValueProps<SitePickerOptionType, false>>) => JSX.Element;
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
import React from 'react';
|
|
6
2
|
import { type TextFieldProps } from './types';
|
|
7
3
|
export declare const TEST_ID = "link-create-text-field";
|
|
8
|
-
|
|
9
|
-
* A text field utilising the Atlaskit Textfield and CreateField.
|
|
10
|
-
* Validation is handled by the form as it is on form submission. Any errors returned by
|
|
11
|
-
* the handleSubmit function passed to the form <Form> that have a key matching the `name`
|
|
12
|
-
* of this text field are shown above the field.
|
|
13
|
-
*/
|
|
14
|
-
export declare function TextField({ id, name, label, isRequired, validators, validationHelpText, testId, ...restProps }: TextFieldProps): jsx.JSX.Element;
|
|
4
|
+
export declare const TextField: (props: TextFieldProps) => React.JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { jsx } from '@emotion/react';
|
|
6
|
+
import { type TextFieldProps } from '../types';
|
|
7
|
+
export declare const TEST_ID = "link-create-text-field";
|
|
8
|
+
/**
|
|
9
|
+
* A text field utilising the Atlaskit Textfield and CreateField.
|
|
10
|
+
* Validation is handled by the form as it is on form submission. Any errors returned by
|
|
11
|
+
* the handleSubmit function passed to the form <Form> that have a key matching the `name`
|
|
12
|
+
* of this text field are shown above the field.
|
|
13
|
+
*/
|
|
14
|
+
export declare function TextFieldOld({ id, name, label, isRequired, validators, validationHelpText, testId, ...restProps }: TextFieldProps): jsx.JSX.Element;
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
import React from 'react';
|
|
6
2
|
import { type UserPickerProps } from './types';
|
|
7
3
|
export declare const TEST_ID = "link-create-user-picker";
|
|
8
|
-
|
|
9
|
-
* A user picker utilising the SmartUserPicker.
|
|
10
|
-
*/
|
|
11
|
-
export declare function UserPicker({ productKey, siteId, name, label, placeholder, validators, testId, defaultValue, }: UserPickerProps): jsx.JSX.Element;
|
|
4
|
+
export declare const UserPicker: (props: UserPickerProps) => React.JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { jsx } from '@emotion/react';
|
|
6
|
+
import { type UserPickerProps } from '../types';
|
|
7
|
+
export declare const TEST_ID = "link-create-user-picker";
|
|
8
|
+
/**
|
|
9
|
+
* A user picker utilising the SmartUserPicker.
|
|
10
|
+
*/
|
|
11
|
+
export declare function UserPickerOld({ productKey, siteId, name, label, placeholder, validators, testId, defaultValue, }: UserPickerProps): jsx.JSX.Element;
|