@atlaskit/link-create 1.15.9 → 2.1.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/CHANGELOG.md +357 -310
- package/CONTRIBUTING.md +3 -0
- package/dist/cjs/common/constants.js +8 -2
- package/dist/cjs/{ui/link-create → common/ui}/confirm-dismiss-dialog/main.js +4 -6
- package/dist/cjs/{ui/link-create → common/ui}/edit-modal/index.js +4 -8
- package/dist/cjs/{ui/link-create → common/ui}/error-boundary/index.js +6 -15
- package/dist/cjs/{controllers → common/ui}/experience-tracker/index.js +3 -3
- package/dist/cjs/common/ui/link-create-content/index.js +21 -0
- package/dist/cjs/{ui/link-create → common/ui}/modal-hero/index.js +1 -3
- package/dist/cjs/controllers/callback-context/main.js +8 -15
- package/dist/cjs/ui/create-form/async-select/main.js +2 -5
- package/dist/cjs/ui/create-form/main.js +3 -4
- package/dist/cjs/ui/index.js +11 -4
- package/dist/cjs/ui/inline-create/index.js +38 -0
- package/dist/cjs/ui/inline-create/main.js +125 -0
- package/dist/cjs/ui/modal-create/index.js +38 -0
- package/dist/cjs/ui/{link-create → modal-create}/main.js +45 -81
- package/dist/es2019/common/constants.js +7 -1
- package/dist/es2019/{ui/link-create → common/ui}/confirm-dismiss-dialog/main.js +4 -7
- package/dist/es2019/{ui/link-create → common/ui}/edit-modal/index.js +4 -10
- package/dist/es2019/{ui/link-create → common/ui}/error-boundary/index.js +6 -15
- package/dist/es2019/{controllers → common/ui}/experience-tracker/index.js +3 -3
- package/dist/es2019/common/ui/link-create-content/index.js +11 -0
- package/dist/es2019/{ui/link-create → common/ui}/modal-hero/index.js +1 -3
- package/dist/es2019/controllers/callback-context/main.js +8 -15
- package/dist/es2019/index.js +4 -1
- package/dist/es2019/ui/create-form/async-select/main.js +2 -5
- package/dist/es2019/ui/create-form/main.js +3 -4
- package/dist/es2019/ui/index.js +2 -1
- package/dist/es2019/ui/inline-create/index.js +30 -0
- package/dist/es2019/ui/inline-create/main.js +100 -0
- package/dist/es2019/ui/modal-create/index.js +30 -0
- package/dist/es2019/ui/{link-create → modal-create}/main.js +22 -40
- package/dist/esm/common/constants.js +7 -1
- package/dist/esm/{ui/link-create → common/ui}/confirm-dismiss-dialog/main.js +4 -6
- package/dist/esm/{ui/link-create → common/ui}/edit-modal/index.js +4 -8
- package/dist/esm/{ui/link-create → common/ui}/error-boundary/index.js +6 -15
- package/dist/esm/{controllers → common/ui}/experience-tracker/index.js +3 -3
- package/dist/esm/common/ui/link-create-content/index.js +12 -0
- package/dist/esm/{ui/link-create → common/ui}/modal-hero/index.js +1 -3
- package/dist/esm/controllers/callback-context/main.js +8 -15
- package/dist/esm/index.js +4 -1
- package/dist/esm/ui/create-form/async-select/main.js +2 -5
- package/dist/esm/ui/create-form/main.js +3 -4
- package/dist/esm/ui/index.js +2 -1
- package/dist/esm/ui/inline-create/index.js +30 -0
- package/dist/esm/ui/inline-create/main.js +119 -0
- package/dist/esm/ui/modal-create/index.js +30 -0
- package/dist/esm/ui/{link-create → modal-create}/main.js +48 -84
- package/dist/types/common/constants.d.ts +2 -0
- package/dist/types/common/types.d.ts +2 -2
- package/dist/types/common/ui/Button/index.d.ts +2 -2
- package/dist/types/common/ui/ModalDialog/index.d.ts +1 -1
- package/dist/types/common/ui/confirm-dismiss-dialog/main.d.ts +7 -0
- package/dist/types/common/ui/edit-modal/index.d.ts +11 -0
- package/dist/types/{ui/link-create → common/ui}/error-boundary/error-boundary-base/index.d.ts +1 -1
- package/dist/types/{ui/link-create → common/ui}/error-boundary/index.d.ts +1 -1
- package/dist/types/common/ui/link-create-content/index.d.ts +8 -0
- package/dist/types/common/utils/analytics/components.d.ts +1 -1
- package/dist/types/common/utils/analytics/context.d.ts +2 -2
- package/dist/types/common/utils/form/index.d.ts +1 -1
- package/dist/types/common/utils/locale/fetch-messages-for-locale.d.ts +1 -1
- package/dist/types/controllers/callback-context/main.d.ts +2 -2
- package/dist/types/controllers/create-field/main.d.ts +1 -1
- package/dist/types/controllers/create-field/types.d.ts +2 -2
- package/dist/types/controllers/edit-post-create-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 -2
- package/dist/types/ui/create-form/async-select/types.d.ts +2 -2
- package/dist/types/ui/create-form/form-loader/main.d.ts +1 -1
- package/dist/types/ui/create-form/main.d.ts +1 -1
- package/dist/types/ui/create-form/select/main.d.ts +2 -2
- package/dist/types/ui/create-form/select/types.d.ts +2 -2
- package/dist/types/ui/create-form/textfield/main.d.ts +1 -1
- package/dist/types/ui/create-form/textfield/types.d.ts +2 -2
- package/dist/types/ui/create-form/utils/index.d.ts +1 -1
- package/dist/types/ui/index.d.ts +2 -1
- package/dist/types/ui/inline-create/index.d.ts +5 -0
- package/dist/types/ui/inline-create/main.d.ts +5 -0
- package/dist/types/ui/modal-create/index.d.ts +5 -0
- package/dist/{types-ts4.5/ui/link-create → types/ui/modal-create}/main.d.ts +1 -1
- package/dist/types-ts4.5/common/constants.d.ts +2 -0
- package/dist/types-ts4.5/common/types.d.ts +2 -2
- package/dist/types-ts4.5/common/ui/Button/index.d.ts +2 -2
- 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 +7 -0
- package/dist/types-ts4.5/common/ui/edit-modal/index.d.ts +11 -0
- package/dist/types-ts4.5/{ui/link-create → common/ui}/error-boundary/error-boundary-base/index.d.ts +1 -1
- package/dist/types-ts4.5/{ui/link-create → common/ui}/error-boundary/index.d.ts +1 -1
- package/dist/types-ts4.5/common/ui/link-create-content/index.d.ts +8 -0
- package/dist/types-ts4.5/common/utils/analytics/components.d.ts +1 -1
- package/dist/types-ts4.5/common/utils/analytics/context.d.ts +2 -2
- package/dist/types-ts4.5/common/utils/form/index.d.ts +1 -1
- package/dist/types-ts4.5/common/utils/locale/fetch-messages-for-locale.d.ts +1 -1
- package/dist/types-ts4.5/controllers/callback-context/main.d.ts +2 -2
- package/dist/types-ts4.5/controllers/create-field/main.d.ts +1 -1
- package/dist/types-ts4.5/controllers/create-field/types.d.ts +2 -2
- package/dist/types-ts4.5/controllers/edit-post-create-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 -2
- package/dist/types-ts4.5/ui/create-form/async-select/types.d.ts +2 -2
- package/dist/types-ts4.5/ui/create-form/form-loader/main.d.ts +1 -1
- package/dist/types-ts4.5/ui/create-form/main.d.ts +1 -1
- package/dist/types-ts4.5/ui/create-form/select/main.d.ts +2 -2
- package/dist/types-ts4.5/ui/create-form/select/types.d.ts +2 -2
- package/dist/types-ts4.5/ui/create-form/textfield/main.d.ts +1 -1
- package/dist/types-ts4.5/ui/create-form/textfield/types.d.ts +2 -2
- package/dist/types-ts4.5/ui/create-form/utils/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/index.d.ts +2 -1
- package/dist/types-ts4.5/ui/{main.d.ts → inline-create/index.d.ts} +1 -3
- package/dist/types-ts4.5/ui/inline-create/main.d.ts +5 -0
- package/dist/{types/ui/main.d.ts → types-ts4.5/ui/modal-create/index.d.ts} +1 -3
- package/dist/{types/ui/link-create → types-ts4.5/ui/modal-create}/main.d.ts +1 -1
- package/example-helpers/mock-plugin-form.tsx +2 -2
- package/package.json +9 -19
- package/dist/cjs/ui/link-create/index.js +0 -13
- package/dist/cjs/ui/main.js +0 -46
- package/dist/es2019/ui/link-create/index.js +0 -1
- package/dist/es2019/ui/main.js +0 -38
- package/dist/esm/ui/link-create/index.js +0 -1
- package/dist/esm/ui/main.js +0 -38
- package/dist/types/ui/link-create/confirm-dismiss-dialog/main.d.ts +0 -6
- package/dist/types/ui/link-create/edit-modal/index.d.ts +0 -8
- package/dist/types/ui/link-create/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/link-create/confirm-dismiss-dialog/main.d.ts +0 -6
- package/dist/types-ts4.5/ui/link-create/edit-modal/index.d.ts +0 -8
- package/dist/types-ts4.5/ui/link-create/index.d.ts +0 -1
- /package/dist/cjs/{ui/link-create → common/ui}/confirm-dismiss-dialog/index.js +0 -0
- /package/dist/cjs/{ui/link-create → common/ui}/confirm-dismiss-dialog/messages.js +0 -0
- /package/dist/cjs/{ui/link-create → common/ui}/error-boundary/error-boundary-base/index.js +0 -0
- /package/dist/cjs/ui/{link-create → modal-create}/messages.js +0 -0
- /package/dist/es2019/{ui/link-create → common/ui}/confirm-dismiss-dialog/index.js +0 -0
- /package/dist/es2019/{ui/link-create → common/ui}/confirm-dismiss-dialog/messages.js +0 -0
- /package/dist/es2019/{ui/link-create → common/ui}/error-boundary/error-boundary-base/index.js +0 -0
- /package/dist/es2019/ui/{link-create → modal-create}/messages.js +0 -0
- /package/dist/esm/{ui/link-create → common/ui}/confirm-dismiss-dialog/index.js +0 -0
- /package/dist/esm/{ui/link-create → common/ui}/confirm-dismiss-dialog/messages.js +0 -0
- /package/dist/esm/{ui/link-create → common/ui}/error-boundary/error-boundary-base/index.js +0 -0
- /package/dist/esm/ui/{link-create → modal-create}/messages.js +0 -0
- /package/dist/types/{ui/link-create → common/ui}/confirm-dismiss-dialog/index.d.ts +0 -0
- /package/dist/types/{ui/link-create → common/ui}/confirm-dismiss-dialog/messages.d.ts +0 -0
- /package/dist/types/{controllers → common/ui}/experience-tracker/index.d.ts +0 -0
- /package/dist/types/{ui/link-create → common/ui}/modal-hero/index.d.ts +0 -0
- /package/dist/types/ui/{link-create → modal-create}/messages.d.ts +0 -0
- /package/dist/types-ts4.5/{ui/link-create → common/ui}/confirm-dismiss-dialog/index.d.ts +0 -0
- /package/dist/types-ts4.5/{ui/link-create → common/ui}/confirm-dismiss-dialog/messages.d.ts +0 -0
- /package/dist/types-ts4.5/{controllers → common/ui}/experience-tracker/index.d.ts +0 -0
- /package/dist/types-ts4.5/{ui/link-create → common/ui}/modal-hero/index.d.ts +0 -0
- /package/dist/types-ts4.5/ui/{link-create → modal-create}/messages.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { FieldInputProps } from 'react-final-form';
|
|
3
|
-
import { Validator } from '../../common/types';
|
|
2
|
+
import { type FieldInputProps } from 'react-final-form';
|
|
3
|
+
import { type Validator } from '../../common/types';
|
|
4
4
|
type FieldProps = FieldInputProps<any, HTMLElement> & {
|
|
5
5
|
fieldId: string;
|
|
6
6
|
isInvalid: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import { LinkCreateProps } from '../../common/types';
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
|
2
|
+
import { type LinkCreateProps } from '../../common/types';
|
|
3
3
|
interface FormContextType {
|
|
4
4
|
setFormErrorMessage: (errorMessage?: string) => void;
|
|
5
5
|
formErrorMessage?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import { OptionType } from '@atlaskit/select';
|
|
3
|
-
import { AsyncSelectProps } from './types';
|
|
2
|
+
import { type OptionType } from '@atlaskit/select';
|
|
3
|
+
import { type AsyncSelectProps } from './types';
|
|
4
4
|
export declare const TEST_ID = "link-create-async-select";
|
|
5
5
|
/**
|
|
6
6
|
* An async select utilising the Atlaskit AsyncSelect and CreateField.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AsyncSelectProps as AKAsyncSelectProps, GroupType, OptionType } from '@atlaskit/select';
|
|
2
|
-
import { Validator } from '../../../common/types';
|
|
1
|
+
import { type AsyncSelectProps as AKAsyncSelectProps, type GroupType, type OptionType } from '@atlaskit/select';
|
|
2
|
+
import { type Validator } from '../../../common/types';
|
|
3
3
|
export type AsyncSelectProps<T = OptionType> = Omit<AKAsyncSelectProps<T>, 'loadOptions'> & {
|
|
4
4
|
/** Name passed to the <Field> */
|
|
5
5
|
name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { SpinnerProps } from '@atlaskit/spinner';
|
|
3
|
+
import { type SpinnerProps } from '@atlaskit/spinner';
|
|
4
4
|
/**
|
|
5
5
|
* Wrapper component for the Spinner, shows while the form
|
|
6
6
|
* performs async functions on load.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { OptionType } from '@atlaskit/select';
|
|
4
|
-
import { SelectProps } from './types';
|
|
3
|
+
import { type OptionType } from '@atlaskit/select';
|
|
4
|
+
import { type SelectProps } from './types';
|
|
5
5
|
export declare const TEST_ID = "link-create-select";
|
|
6
6
|
/**
|
|
7
7
|
* A select component utilising the Atlaskit Select and CreateField.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SelectProps as AKSelectProps, OptionType } from '@atlaskit/select';
|
|
2
|
-
import { Validator } from '../../../common/types';
|
|
1
|
+
import { type SelectProps as AKSelectProps, type OptionType } from '@atlaskit/select';
|
|
2
|
+
import { type Validator } from '../../../common/types';
|
|
3
3
|
export type SelectProps<T = OptionType> = AKSelectProps<T> & {
|
|
4
4
|
/** Name passed to the <Field> */
|
|
5
5
|
name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { TextFieldProps } from './types';
|
|
3
|
+
import { type TextFieldProps } from './types';
|
|
4
4
|
export declare const TEST_ID = "link-create-text-field";
|
|
5
5
|
/**
|
|
6
6
|
* A text field utilising the Atlaskit Textfield and CreateField.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TextFieldProps as AKTextFieldProps } from '@atlaskit/textfield';
|
|
2
|
-
import { Validator } from '../../../common/types';
|
|
1
|
+
import { type TextFieldProps as AKTextFieldProps } from '@atlaskit/textfield';
|
|
2
|
+
import { type Validator } from '../../../common/types';
|
|
3
3
|
export type TextFieldProps = Omit<AKTextFieldProps, 'name'> & {
|
|
4
4
|
/** Name passed to the <Field>.*/
|
|
5
5
|
name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ValidatorMap } from '../../../common/types';
|
|
1
|
+
import { type ValidatorMap } from '../../../common/types';
|
|
2
2
|
/** Map of field names to errors for that field (or undefined if no error for that field) */
|
|
3
3
|
export type ValidatorResults = {
|
|
4
4
|
[name: string]: string | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { default } from './
|
|
1
|
+
export { default } from './modal-create';
|
|
2
|
+
export { default as InlineCreate } from './inline-create';
|
|
2
3
|
export { TextField } from './create-form/textfield';
|
|
3
4
|
export { CreateForm } from './create-form/main';
|
|
4
5
|
export { CreateFormLoader } from './create-form/form-loader';
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { LinkCreateWithModalProps } from '
|
|
4
|
-
import { PackageMetaDataType } from '../common/utils/analytics/analytics.codegen';
|
|
5
|
-
export declare const PACKAGE_DATA: PackageMetaDataType;
|
|
3
|
+
import type { LinkCreateWithModalProps } from '../../common/types';
|
|
6
4
|
declare const ComposedLinkCreate: import("react").MemoExoticComponent<(props: LinkCreateWithModalProps) => jsx.JSX.Element>;
|
|
7
5
|
export default ComposedLinkCreate;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { LinkCreateWithModalProps } from '
|
|
4
|
-
import { PackageMetaDataType } from '../common/utils/analytics/analytics.codegen';
|
|
5
|
-
export declare const PACKAGE_DATA: PackageMetaDataType;
|
|
3
|
+
import { type LinkCreateWithModalProps } from '../../common/types';
|
|
6
4
|
declare const ComposedLinkCreate: import("react").MemoExoticComponent<(props: LinkCreateWithModalProps) => jsx.JSX.Element>;
|
|
7
5
|
export default ComposedLinkCreate;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import { LinkCreateWithModalProps } from '../../common/types';
|
|
2
|
+
import type { LinkCreateWithModalProps } from '../../common/types';
|
|
3
3
|
export declare const TEST_ID = "link-create";
|
|
4
4
|
declare const LinkCreateModal: (props: LinkCreateWithModalProps) => jsx.JSX.Element;
|
|
5
5
|
export default LinkCreateModal;
|
|
@@ -3,10 +3,10 @@ import React, { useCallback, useMemo } from 'react';
|
|
|
3
3
|
import {
|
|
4
4
|
AsyncSelect,
|
|
5
5
|
CreateForm,
|
|
6
|
-
CreateFormProps,
|
|
6
|
+
type CreateFormProps,
|
|
7
7
|
TextField,
|
|
8
8
|
useLinkCreateCallback,
|
|
9
|
-
Validator,
|
|
9
|
+
type Validator,
|
|
10
10
|
} from '../src';
|
|
11
11
|
|
|
12
12
|
import { MockDisclaimer } from './mock-disclaimer';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-create",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "The driver component of meta creation flow",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -39,19 +39,18 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
42
|
-
"@atlaskit/button": "^17.
|
|
42
|
+
"@atlaskit/button": "^17.17.0",
|
|
43
43
|
"@atlaskit/empty-state": "^7.8.0",
|
|
44
|
-
"@atlaskit/form": "^10.
|
|
45
|
-
"@atlaskit/icon": "^22.
|
|
44
|
+
"@atlaskit/form": "^10.3.0",
|
|
45
|
+
"@atlaskit/icon": "^22.3.0",
|
|
46
46
|
"@atlaskit/intl-messages-provider": "^1.0.2",
|
|
47
|
-
"@atlaskit/linking-common": "^5.
|
|
47
|
+
"@atlaskit/linking-common": "^5.7.0",
|
|
48
48
|
"@atlaskit/modal-dialog": "^12.13.0",
|
|
49
|
-
"@atlaskit/
|
|
50
|
-
"@atlaskit/
|
|
51
|
-
"@atlaskit/select": "^17.9.0",
|
|
49
|
+
"@atlaskit/primitives": "^6.4.0",
|
|
50
|
+
"@atlaskit/select": "^17.10.0",
|
|
52
51
|
"@atlaskit/spinner": "^16.1.0",
|
|
53
52
|
"@atlaskit/textfield": "^6.3.0",
|
|
54
|
-
"@atlaskit/tokens": "^1.
|
|
53
|
+
"@atlaskit/tokens": "^1.49.0",
|
|
55
54
|
"@babel/runtime": "^7.0.0",
|
|
56
55
|
"@emotion/react": "^11.7.1",
|
|
57
56
|
"debounce-promise": "^3.1.2",
|
|
@@ -67,7 +66,6 @@
|
|
|
67
66
|
"@af/visual-regression": "*",
|
|
68
67
|
"@atlaskit/link-test-helpers": "^7.0.0",
|
|
69
68
|
"@atlaskit/visual-regression": "*",
|
|
70
|
-
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
71
69
|
"@atlassian/feature-flags-test-utils": "*",
|
|
72
70
|
"@testing-library/react": "^12.1.5",
|
|
73
71
|
"@testing-library/user-event": "^14.4.3",
|
|
@@ -116,13 +114,5 @@
|
|
|
116
114
|
]
|
|
117
115
|
}
|
|
118
116
|
},
|
|
119
|
-
"
|
|
120
|
-
"platform-feature-flags": {
|
|
121
|
-
"platform.linking-platform.link-create.better-observability": {
|
|
122
|
-
"type": "boolean"
|
|
123
|
-
},
|
|
124
|
-
"platform.linking-platform.link-create.enable-expected-field-errors": {
|
|
125
|
-
"type": "boolean"
|
|
126
|
-
}
|
|
127
|
-
}
|
|
117
|
+
"platform-feature-flags": {}
|
|
128
118
|
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
Object.defineProperty(exports, "default", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function get() {
|
|
10
|
-
return _main.default;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
var _main = _interopRequireDefault(require("./main"));
|
package/dist/cjs/ui/main.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = exports.PACKAGE_DATA = void 0;
|
|
8
|
-
var _react = require("react");
|
|
9
|
-
var _react2 = require("@emotion/react");
|
|
10
|
-
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
11
|
-
var _intlMessagesProvider = require("@atlaskit/intl-messages-provider");
|
|
12
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
|
-
var _constants = require("../common/constants");
|
|
14
|
-
var _errorBoundaryModal = require("../common/ui/error-boundary-modal");
|
|
15
|
-
var _analytics = require("../common/utils/analytics");
|
|
16
|
-
var _fetchMessagesForLocale = require("../common/utils/locale/fetch-messages-for-locale");
|
|
17
|
-
var _experienceTracker = require("../controllers/experience-tracker");
|
|
18
|
-
var _en = _interopRequireDefault(require("../i18n/en"));
|
|
19
|
-
var _linkCreate = _interopRequireDefault(require("./link-create"));
|
|
20
|
-
var _errorBoundary = require("./link-create/error-boundary");
|
|
21
|
-
/** @jsx jsx */
|
|
22
|
-
|
|
23
|
-
var LinkCreateWithAnalyticsContext = (0, _analytics.withLinkCreateAnalyticsContext)( /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
24
|
-
var ExperienceProvider = (0, _platformFeatureFlags.getBooleanFF)('platform.linking-platform.link-create.better-observability') ? _experienceTracker.Experience : _react.Fragment;
|
|
25
|
-
return (0, _react2.jsx)(ExperienceProvider, null, (0, _react2.jsx)(_errorBoundary.ErrorBoundary, {
|
|
26
|
-
errorComponent: (0, _react2.jsx)(_errorBoundaryModal.ErrorBoundaryModal, {
|
|
27
|
-
active: props.active,
|
|
28
|
-
onClose: props.onCancel
|
|
29
|
-
})
|
|
30
|
-
}, (0, _react2.jsx)(_linkCreate.default, props)));
|
|
31
|
-
}));
|
|
32
|
-
var PACKAGE_DATA = exports.PACKAGE_DATA = {
|
|
33
|
-
packageName: "@atlaskit/link-create" || '',
|
|
34
|
-
packageVersion: "1.15.9" || '',
|
|
35
|
-
component: _constants.COMPONENT_NAME,
|
|
36
|
-
componentName: _constants.COMPONENT_NAME
|
|
37
|
-
};
|
|
38
|
-
var ComposedLinkCreate = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
39
|
-
return (0, _react2.jsx)(_analyticsNext.AnalyticsContext, {
|
|
40
|
-
data: PACKAGE_DATA
|
|
41
|
-
}, (0, _react2.jsx)(_intlMessagesProvider.IntlMessagesProvider, {
|
|
42
|
-
defaultMessages: _en.default,
|
|
43
|
-
loaderFn: _fetchMessagesForLocale.fetchMessagesForLocale
|
|
44
|
-
}, (0, _react2.jsx)(LinkCreateWithAnalyticsContext, props)));
|
|
45
|
-
});
|
|
46
|
-
var _default = exports.default = ComposedLinkCreate;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './main';
|
package/dist/es2019/ui/main.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import { Fragment, memo } from 'react';
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
4
|
-
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
5
|
-
import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
|
|
6
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
7
|
-
import { COMPONENT_NAME } from '../common/constants';
|
|
8
|
-
import { ErrorBoundaryModal } from '../common/ui/error-boundary-modal';
|
|
9
|
-
import { withLinkCreateAnalyticsContext } from '../common/utils/analytics';
|
|
10
|
-
import { fetchMessagesForLocale } from '../common/utils/locale/fetch-messages-for-locale';
|
|
11
|
-
import { Experience } from '../controllers/experience-tracker';
|
|
12
|
-
import i18nEN from '../i18n/en';
|
|
13
|
-
import LinkCreate from './link-create';
|
|
14
|
-
import { ErrorBoundary } from './link-create/error-boundary';
|
|
15
|
-
const LinkCreateWithAnalyticsContext = withLinkCreateAnalyticsContext( /*#__PURE__*/memo(props => {
|
|
16
|
-
const ExperienceProvider = getBooleanFF('platform.linking-platform.link-create.better-observability') ? Experience : Fragment;
|
|
17
|
-
return jsx(ExperienceProvider, null, jsx(ErrorBoundary, {
|
|
18
|
-
errorComponent: jsx(ErrorBoundaryModal, {
|
|
19
|
-
active: props.active,
|
|
20
|
-
onClose: props.onCancel
|
|
21
|
-
})
|
|
22
|
-
}, jsx(LinkCreate, props)));
|
|
23
|
-
}));
|
|
24
|
-
export const PACKAGE_DATA = {
|
|
25
|
-
packageName: "@atlaskit/link-create" || '',
|
|
26
|
-
packageVersion: "1.15.9" || '',
|
|
27
|
-
component: COMPONENT_NAME,
|
|
28
|
-
componentName: COMPONENT_NAME
|
|
29
|
-
};
|
|
30
|
-
const ComposedLinkCreate = /*#__PURE__*/memo(props => {
|
|
31
|
-
return jsx(AnalyticsContext, {
|
|
32
|
-
data: PACKAGE_DATA
|
|
33
|
-
}, jsx(IntlMessagesProvider, {
|
|
34
|
-
defaultMessages: i18nEN,
|
|
35
|
-
loaderFn: fetchMessagesForLocale
|
|
36
|
-
}, jsx(LinkCreateWithAnalyticsContext, props)));
|
|
37
|
-
});
|
|
38
|
-
export default ComposedLinkCreate;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './main';
|
package/dist/esm/ui/main.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import { Fragment, memo } from 'react';
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
4
|
-
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
5
|
-
import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
|
|
6
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
7
|
-
import { COMPONENT_NAME } from '../common/constants';
|
|
8
|
-
import { ErrorBoundaryModal } from '../common/ui/error-boundary-modal';
|
|
9
|
-
import { withLinkCreateAnalyticsContext } from '../common/utils/analytics';
|
|
10
|
-
import { fetchMessagesForLocale } from '../common/utils/locale/fetch-messages-for-locale';
|
|
11
|
-
import { Experience } from '../controllers/experience-tracker';
|
|
12
|
-
import i18nEN from '../i18n/en';
|
|
13
|
-
import LinkCreate from './link-create';
|
|
14
|
-
import { ErrorBoundary } from './link-create/error-boundary';
|
|
15
|
-
var LinkCreateWithAnalyticsContext = withLinkCreateAnalyticsContext( /*#__PURE__*/memo(function (props) {
|
|
16
|
-
var ExperienceProvider = getBooleanFF('platform.linking-platform.link-create.better-observability') ? Experience : Fragment;
|
|
17
|
-
return jsx(ExperienceProvider, null, jsx(ErrorBoundary, {
|
|
18
|
-
errorComponent: jsx(ErrorBoundaryModal, {
|
|
19
|
-
active: props.active,
|
|
20
|
-
onClose: props.onCancel
|
|
21
|
-
})
|
|
22
|
-
}, jsx(LinkCreate, props)));
|
|
23
|
-
}));
|
|
24
|
-
export var PACKAGE_DATA = {
|
|
25
|
-
packageName: "@atlaskit/link-create" || '',
|
|
26
|
-
packageVersion: "1.15.9" || '',
|
|
27
|
-
component: COMPONENT_NAME,
|
|
28
|
-
componentName: COMPONENT_NAME
|
|
29
|
-
};
|
|
30
|
-
var ComposedLinkCreate = /*#__PURE__*/memo(function (props) {
|
|
31
|
-
return jsx(AnalyticsContext, {
|
|
32
|
-
data: PACKAGE_DATA
|
|
33
|
-
}, jsx(IntlMessagesProvider, {
|
|
34
|
-
defaultMessages: i18nEN,
|
|
35
|
-
loaderFn: fetchMessagesForLocale
|
|
36
|
-
}, jsx(LinkCreateWithAnalyticsContext, props)));
|
|
37
|
-
});
|
|
38
|
-
export default ComposedLinkCreate;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Modal } from '../../../common/ui/ModalDialog';
|
|
3
|
-
type EditModalProps = {
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
onCloseComplete?: React.ComponentProps<typeof Modal>['onCloseComplete'];
|
|
6
|
-
};
|
|
7
|
-
export declare const EditModal: ({ onClose, onCloseComplete }: EditModalProps) => JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './main';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Modal } from '../../../common/ui/ModalDialog';
|
|
3
|
-
type EditModalProps = {
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
onCloseComplete?: React.ComponentProps<typeof Modal>['onCloseComplete'];
|
|
6
|
-
};
|
|
7
|
-
export declare const EditModal: ({ onClose, onCloseComplete }: EditModalProps) => JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './main';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/es2019/{ui/link-create → common/ui}/error-boundary/error-boundary-base/index.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|