@atlaskit/link-create 6.4.0 → 6.5.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 +20 -0
- package/dist/cjs/common/constants.js +1 -1
- package/dist/cjs/common/ui/Button/index.js +6 -5
- package/dist/cjs/common/ui/ModalDialog/index.js +5 -4
- package/dist/cjs/common/ui/confirm-dismiss-dialog/main.js +9 -5
- package/dist/cjs/common/ui/edit-modal/index.js +2 -2
- package/dist/cjs/common/ui/error-boundary/index.js +2 -2
- package/dist/cjs/common/ui/error-boundary-modal/index.js +7 -6
- package/dist/cjs/common/ui/error-boundary-ui/index.js +2 -2
- package/dist/cjs/common/ui/experience-tracker/index.js +2 -2
- package/dist/cjs/common/utils/analytics/components.js +2 -2
- package/dist/cjs/common/utils/analytics/context.js +2 -2
- package/dist/cjs/controllers/callback-context/main.js +2 -2
- package/dist/cjs/controllers/create-field/main.js +6 -5
- package/dist/cjs/ui/create-form/async-select/main.js +2 -2
- package/dist/cjs/ui/create-form/form-footer/edit-button/index.js +2 -2
- package/dist/cjs/ui/create-form/form-footer/main.js +2 -2
- package/dist/cjs/ui/create-form/form-footer/submit-button/index.js +2 -2
- package/dist/cjs/ui/create-form/form-loader/main.js +1 -1
- package/dist/cjs/ui/create-form/main.js +2 -2
- package/dist/cjs/ui/create-form/select/main.js +5 -6
- package/dist/cjs/ui/create-form/textfield/main.js +2 -2
- package/dist/cjs/ui/inline-create/index.js +2 -2
- package/dist/cjs/ui/inline-create/inline-analytics/index.js +2 -2
- package/dist/cjs/ui/modal-create/index.js +2 -2
- package/dist/cjs/ui/modal-create/main.js +7 -4
- package/dist/es2019/common/constants.js +1 -1
- package/dist/es2019/common/ui/Button/index.js +3 -2
- package/dist/es2019/common/ui/ModalDialog/index.js +3 -2
- package/dist/es2019/common/ui/confirm-dismiss-dialog/main.js +6 -2
- package/dist/es2019/common/ui/edit-modal/index.js +1 -1
- package/dist/es2019/common/ui/error-boundary/index.js +1 -1
- package/dist/es2019/common/ui/error-boundary-modal/index.js +4 -1
- package/dist/es2019/common/ui/error-boundary-ui/index.js +2 -2
- package/dist/es2019/common/ui/experience-tracker/index.js +1 -1
- package/dist/es2019/common/utils/analytics/components.js +1 -1
- package/dist/es2019/common/utils/analytics/context.js +1 -1
- package/dist/es2019/controllers/callback-context/main.js +1 -1
- package/dist/es2019/controllers/create-field/main.js +2 -1
- package/dist/es2019/ui/create-form/async-select/main.js +1 -1
- package/dist/es2019/ui/create-form/form-footer/edit-button/index.js +1 -1
- package/dist/es2019/ui/create-form/form-footer/main.js +1 -1
- package/dist/es2019/ui/create-form/form-footer/submit-button/index.js +1 -1
- package/dist/es2019/ui/create-form/form-loader/main.js +1 -1
- package/dist/es2019/ui/create-form/main.js +1 -1
- package/dist/es2019/ui/create-form/select/main.js +2 -1
- package/dist/es2019/ui/create-form/textfield/main.js +1 -1
- package/dist/es2019/ui/inline-create/index.js +1 -1
- package/dist/es2019/ui/inline-create/inline-analytics/index.js +1 -1
- package/dist/es2019/ui/modal-create/index.js +1 -1
- package/dist/es2019/ui/modal-create/main.js +4 -1
- package/dist/esm/common/constants.js +1 -1
- package/dist/esm/common/ui/Button/index.js +3 -2
- package/dist/esm/common/ui/ModalDialog/index.js +3 -2
- package/dist/esm/common/ui/confirm-dismiss-dialog/main.js +6 -2
- package/dist/esm/common/ui/edit-modal/index.js +1 -1
- package/dist/esm/common/ui/error-boundary/index.js +1 -1
- package/dist/esm/common/ui/error-boundary-modal/index.js +4 -1
- package/dist/esm/common/ui/error-boundary-ui/index.js +2 -2
- package/dist/esm/common/ui/experience-tracker/index.js +1 -1
- package/dist/esm/common/utils/analytics/components.js +1 -1
- package/dist/esm/common/utils/analytics/context.js +1 -1
- package/dist/esm/controllers/callback-context/main.js +1 -1
- package/dist/esm/controllers/create-field/main.js +2 -1
- package/dist/esm/ui/create-form/async-select/main.js +1 -1
- package/dist/esm/ui/create-form/form-footer/edit-button/index.js +1 -1
- package/dist/esm/ui/create-form/form-footer/main.js +1 -1
- package/dist/esm/ui/create-form/form-footer/submit-button/index.js +1 -1
- package/dist/esm/ui/create-form/form-loader/main.js +1 -1
- package/dist/esm/ui/create-form/main.js +1 -1
- package/dist/esm/ui/create-form/select/main.js +2 -1
- package/dist/esm/ui/create-form/textfield/main.js +1 -1
- package/dist/esm/ui/inline-create/index.js +1 -1
- package/dist/esm/ui/inline-create/inline-analytics/index.js +1 -1
- package/dist/esm/ui/modal-create/index.js +1 -1
- package/dist/esm/ui/modal-create/main.js +4 -1
- package/dist/types/common/types.d.ts +1 -1
- package/dist/types/common/ui/Button/index.d.ts +1 -1
- package/dist/types/common/ui/ModalDialog/index.d.ts +1 -1
- package/dist/types/ui/create-form/async-select/main.d.ts +1 -1
- package/dist/types/ui/create-form/async-select/types.d.ts +1 -1
- package/dist/types/ui/create-form/form-loader/main.d.ts +1 -1
- package/dist/types/ui/create-form/select/main.d.ts +1 -1
- package/dist/types/ui/create-form/select/types.d.ts +1 -1
- package/dist/types/ui/create-form/textfield/types.d.ts +1 -1
- package/package.json +21 -19
|
@@ -10,7 +10,7 @@ export const CREATE_FORM_MIN_HEIGHT_IN_PX = '200';
|
|
|
10
10
|
export const LINK_CREATE_FORM_POST_CREATE_FIELD = '__post_create__';
|
|
11
11
|
export const PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/link-create" || '',
|
|
13
|
-
packageVersion: "6.
|
|
13
|
+
packageVersion: "6.4.0" || '',
|
|
14
14
|
component: COMPONENT_NAME,
|
|
15
15
|
componentName: COMPONENT_NAME
|
|
16
16
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import UIAnalyticsEvent from '@atlaskit/analytics-next/UIAnalyticsEvent';
|
|
4
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
5
|
+
import AkButton from '@atlaskit/button/default/button';
|
|
5
6
|
import { ANALYTICS_CHANNEL } from '../../../common/constants';
|
|
6
7
|
import createEventPayload from '../../../common/utils/analytics/analytics.codegen';
|
|
7
8
|
export const Button = /*#__PURE__*/forwardRef(({
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
3
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
4
|
+
import ModalDialog from '@atlaskit/modal-dialog/modal-dialog';
|
|
4
5
|
import { ANALYTICS_CHANNEL } from '../../constants';
|
|
5
6
|
import createEventPayload from '../../utils/analytics/analytics.codegen';
|
|
6
7
|
import { ScreenViewedEvent } from '../../utils/analytics/components';
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
4
|
+
import ModalBody from '@atlaskit/modal-dialog/modal-body';
|
|
5
|
+
import ModalFooter from '@atlaskit/modal-dialog/modal-footer';
|
|
6
|
+
import ModalHeader from '@atlaskit/modal-dialog/modal-header';
|
|
7
|
+
import ModalTitle from '@atlaskit/modal-dialog/modal-title';
|
|
8
|
+
import ModalTransition from '@atlaskit/modal-dialog/modal-transition';
|
|
5
9
|
import { Button } from '../Button';
|
|
6
10
|
import { Modal } from '../ModalDialog';
|
|
7
11
|
import messages from './messages';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import ModalTransition from '@atlaskit/modal-dialog/modal-transition';
|
|
3
3
|
import { Modal } from '../ModalDialog';
|
|
4
4
|
const SCREEN = 'linkCreateEditScreen';
|
|
5
5
|
export const EditModal = ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
2
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
3
3
|
import { ANALYTICS_CHANNEL } from '../../../common/constants';
|
|
4
4
|
import { ErrorBoundaryUI } from '../../../common/ui/error-boundary-ui';
|
|
5
5
|
import createEventPayload from '../../../common/utils/analytics/analytics.codegen';
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import Modal
|
|
2
|
+
import Modal from '@atlaskit/modal-dialog/modal-dialog';
|
|
3
|
+
import ModalBody from '@atlaskit/modal-dialog/modal-body';
|
|
4
|
+
import ModalHeader from '@atlaskit/modal-dialog/modal-header';
|
|
5
|
+
import ModalTransition from '@atlaskit/modal-dialog/modal-transition';
|
|
3
6
|
import { CREATE_FORM_MAX_WIDTH_IN_PX } from '../../constants';
|
|
4
7
|
import { ErrorBoundaryUI } from '../error-boundary-ui';
|
|
5
8
|
|
|
@@ -2,8 +2,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
4
4
|
import { isFedRamp } from '@atlaskit/atlassian-context/is-fedramp';
|
|
5
|
-
import EmptyState from '@atlaskit/empty-state';
|
|
6
|
-
import Link from '@atlaskit/link';
|
|
5
|
+
import EmptyState from '@atlaskit/empty-state/empty-state';
|
|
6
|
+
import Link from '@atlaskit/link/link';
|
|
7
7
|
import commonMessages from '../../messages';
|
|
8
8
|
import ErrorSVG from './error-svg';
|
|
9
9
|
import messages from './messages';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { createContext, useContext, useMemo, useRef } from 'react';
|
|
2
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
2
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
3
3
|
import { captureException } from '@atlaskit/linking-common/sentry';
|
|
4
4
|
import { ANALYTICS_CHANNEL } from '../../constants';
|
|
5
5
|
import createEventPayload from '../../utils/analytics/analytics.codegen';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
2
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
3
3
|
import { ANALYTICS_CHANNEL } from '../../../common/constants';
|
|
4
4
|
import createEventPayload from './analytics.codegen';
|
|
5
5
|
export const ScreenViewedEvent = ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useCallback, useContext, useMemo, useRef, useState } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import AnalyticsListener from '@atlaskit/analytics-next/AnalyticsListener';
|
|
3
3
|
import { ANALYTICS_CHANNEL } from '../../constants';
|
|
4
4
|
const UNKNOWN = 'unknown';
|
|
5
5
|
const DEFAULT_CONTEXT_ATTRIBUTES = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useContext, useMemo } from 'react';
|
|
2
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
2
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
4
|
import { ANALYTICS_CHANNEL } from '../../common/constants';
|
|
5
5
|
import { useExperience } from '../../common/ui/experience-tracker';
|
|
@@ -3,7 +3,8 @@ import "./main.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { Field } from 'react-final-form';
|
|
6
|
-
import { Label
|
|
6
|
+
import { Label } from '@atlaskit/form/label/default';
|
|
7
|
+
import { RequiredAsterisk } from '@atlaskit/form/required-asterisk';
|
|
7
8
|
import { Message } from '../../common/ui/message';
|
|
8
9
|
import { shouldShowValidationErrors } from '../../common/utils/form';
|
|
9
10
|
const fieldWrapperStyles = null;
|
|
@@ -3,7 +3,7 @@ import React, { useEffect, useMemo, useState } from 'react';
|
|
|
3
3
|
import debounce from 'debounce-promise';
|
|
4
4
|
import { useForm } from 'react-final-form';
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
|
-
import
|
|
6
|
+
import AkAsyncSelect from '@atlaskit/select/async-select';
|
|
7
7
|
import messages from '../../../common/messages';
|
|
8
8
|
import { useLinkCreateCallback } from '../../../controllers/callback-context/main';
|
|
9
9
|
import { CreateField } from '../../../controllers/create-field/main';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useForm, useFormState } from 'react-final-form';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
4
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
5
5
|
import LoadingButton from '@atlaskit/button/loading-button';
|
|
6
6
|
import { ANALYTICS_CHANNEL, LINK_CREATE_FORM_POST_CREATE_FIELD } from '../../../../common/constants';
|
|
7
7
|
import createEventPayload from '../../../../common/utils/analytics/analytics.codegen';
|
|
@@ -3,7 +3,7 @@ import "./main.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
|
-
import
|
|
6
|
+
import ButtonGroup from '@atlaskit/button/button-group';
|
|
7
7
|
import ErrorIcon from '@atlaskit/icon/core/status-error';
|
|
8
8
|
import { Button } from '../../../common/ui/Button';
|
|
9
9
|
import { EditButton } from './edit-button';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useForm, useFormState } from 'react-final-form';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
4
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
5
5
|
import LoadingButton from '@atlaskit/button/loading-button';
|
|
6
6
|
import { ANALYTICS_CHANNEL, LINK_CREATE_FORM_POST_CREATE_FIELD } from '../../../../common/constants';
|
|
7
7
|
import createEventPayload from '../../../../common/utils/analytics/analytics.codegen';
|
|
@@ -6,7 +6,7 @@ import { useCallback } from 'react';
|
|
|
6
6
|
import { FORM_ERROR } from 'final-form';
|
|
7
7
|
import { Form, FormSpy } from 'react-final-form';
|
|
8
8
|
import { useIntl } from 'react-intl';
|
|
9
|
-
import { RequiredAsterisk } from '@atlaskit/form';
|
|
9
|
+
import { RequiredAsterisk } from '@atlaskit/form/required-asterisk';
|
|
10
10
|
import { Box, Text } from '@atlaskit/primitives/compiled';
|
|
11
11
|
import { LINK_CREATE_FORM_POST_CREATE_FIELD } from '../../common/constants';
|
|
12
12
|
import messages from '../../common/messages';
|
|
@@ -2,7 +2,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
4
|
import { Inline } from '@atlaskit/primitives/compiled';
|
|
5
|
-
import AkSelect
|
|
5
|
+
import AkSelect from '@atlaskit/select/default';
|
|
6
|
+
import { components } from '@atlaskit/react-select/components';
|
|
6
7
|
import { layers } from '@atlaskit/theme/constants';
|
|
7
8
|
import { UrlIcon } from '../../../common/ui/icon';
|
|
8
9
|
import { CreateField } from '../../../controllers/create-field/main';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import AkTextfield from '@atlaskit/textfield';
|
|
3
|
+
import AkTextfield from '@atlaskit/textfield/text-field';
|
|
4
4
|
import { CreateField } from '../../../controllers/create-field/main';
|
|
5
5
|
export const TEST_ID = 'link-create-text-field';
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
3
3
|
import IntlMessagesProvider from '@atlaskit/intl-messages-provider/main';
|
|
4
4
|
import { PACKAGE_DATA } from '../../common/constants';
|
|
5
5
|
import { ErrorBoundary } from '../../common/ui/error-boundary';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
3
3
|
import { ScreenViewedEvent } from '../../..//common/utils/analytics/components';
|
|
4
4
|
export const InlineAnalytics = ({
|
|
5
5
|
screen,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
3
3
|
import IntlMessagesProvider from '@atlaskit/intl-messages-provider/main';
|
|
4
4
|
import { PACKAGE_DATA } from '../../common/constants';
|
|
5
5
|
import { ErrorBoundary } from '../../common/ui/error-boundary';
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useLayoutEffect, useRef } from 'react';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
|
-
import
|
|
4
|
+
import ModalBody from '@atlaskit/modal-dialog/modal-body';
|
|
5
|
+
import ModalHeader from '@atlaskit/modal-dialog/modal-header';
|
|
6
|
+
import ModalTitle from '@atlaskit/modal-dialog/modal-title';
|
|
7
|
+
import ModalTransition from '@atlaskit/modal-dialog/modal-transition';
|
|
5
8
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
6
9
|
import { CREATE_FORM_MAX_WIDTH_IN_PX, DEFAULT_TEST_ID, SCREEN_ID } from '../../common/constants';
|
|
7
10
|
import { ConfirmDismissDialog } from '../../common/ui/confirm-dismiss-dialog/main';
|
|
@@ -10,7 +10,7 @@ export var CREATE_FORM_MIN_HEIGHT_IN_PX = '200';
|
|
|
10
10
|
export var LINK_CREATE_FORM_POST_CREATE_FIELD = '__post_create__';
|
|
11
11
|
export var PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/link-create" || '',
|
|
13
|
-
packageVersion: "6.
|
|
13
|
+
packageVersion: "6.4.0" || '',
|
|
14
14
|
component: COMPONENT_NAME,
|
|
15
15
|
componentName: COMPONENT_NAME
|
|
16
16
|
};
|
|
@@ -2,8 +2,9 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["actionSubjectId"];
|
|
4
4
|
import React, { forwardRef } from 'react';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import UIAnalyticsEvent from '@atlaskit/analytics-next/UIAnalyticsEvent';
|
|
6
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
7
|
+
import AkButton from '@atlaskit/button/default/button';
|
|
7
8
|
import { ANALYTICS_CHANNEL } from '../../../common/constants';
|
|
8
9
|
import createEventPayload from '../../../common/utils/analytics/analytics.codegen';
|
|
9
10
|
export var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
2
2
|
var _excluded = ["screen", "children"];
|
|
3
3
|
import React, { useEffect } from 'react';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
5
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
6
|
+
import ModalDialog from '@atlaskit/modal-dialog/modal-dialog';
|
|
6
7
|
import { ANALYTICS_CHANNEL } from '../../constants';
|
|
7
8
|
import createEventPayload from '../../utils/analytics/analytics.codegen';
|
|
8
9
|
import { ScreenViewedEvent } from '../../utils/analytics/components';
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
4
|
+
import ModalBody from '@atlaskit/modal-dialog/modal-body';
|
|
5
|
+
import ModalFooter from '@atlaskit/modal-dialog/modal-footer';
|
|
6
|
+
import ModalHeader from '@atlaskit/modal-dialog/modal-header';
|
|
7
|
+
import ModalTitle from '@atlaskit/modal-dialog/modal-title';
|
|
8
|
+
import ModalTransition from '@atlaskit/modal-dialog/modal-transition';
|
|
5
9
|
import { Button } from '../Button';
|
|
6
10
|
import { Modal } from '../ModalDialog';
|
|
7
11
|
import messages from './messages';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import ModalTransition from '@atlaskit/modal-dialog/modal-transition';
|
|
3
3
|
import { Modal } from '../ModalDialog';
|
|
4
4
|
var SCREEN = 'linkCreateEditScreen';
|
|
5
5
|
export var EditModal = function EditModal(_ref) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
2
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
3
3
|
import { ANALYTICS_CHANNEL } from '../../../common/constants';
|
|
4
4
|
import { ErrorBoundaryUI } from '../../../common/ui/error-boundary-ui';
|
|
5
5
|
import createEventPayload from '../../../common/utils/analytics/analytics.codegen';
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import Modal
|
|
2
|
+
import Modal from '@atlaskit/modal-dialog/modal-dialog';
|
|
3
|
+
import ModalBody from '@atlaskit/modal-dialog/modal-body';
|
|
4
|
+
import ModalHeader from '@atlaskit/modal-dialog/modal-header';
|
|
5
|
+
import ModalTransition from '@atlaskit/modal-dialog/modal-transition';
|
|
3
6
|
import { CREATE_FORM_MAX_WIDTH_IN_PX } from '../../constants';
|
|
4
7
|
import { ErrorBoundaryUI } from '../error-boundary-ui';
|
|
5
8
|
|
|
@@ -2,8 +2,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
4
4
|
import { isFedRamp } from '@atlaskit/atlassian-context/is-fedramp';
|
|
5
|
-
import EmptyState from '@atlaskit/empty-state';
|
|
6
|
-
import Link from '@atlaskit/link';
|
|
5
|
+
import EmptyState from '@atlaskit/empty-state/empty-state';
|
|
6
|
+
import Link from '@atlaskit/link/link';
|
|
7
7
|
import commonMessages from '../../messages';
|
|
8
8
|
import ErrorSVG from './error-svg';
|
|
9
9
|
import messages from './messages';
|
|
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import React, { createContext, useContext, useMemo, useRef } from 'react';
|
|
5
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
5
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
6
6
|
import { captureException } from '@atlaskit/linking-common/sentry';
|
|
7
7
|
import { ANALYTICS_CHANNEL } from '../../constants';
|
|
8
8
|
import createEventPayload from '../../utils/analytics/analytics.codegen';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
2
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
3
3
|
import { ANALYTICS_CHANNEL } from '../../../common/constants';
|
|
4
4
|
import createEventPayload from './analytics.codegen';
|
|
5
5
|
export var ScreenViewedEvent = function ScreenViewedEvent(_ref) {
|
|
@@ -3,7 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
import React, { useCallback, useContext, useMemo, useRef, useState } from 'react';
|
|
6
|
-
import
|
|
6
|
+
import AnalyticsListener from '@atlaskit/analytics-next/AnalyticsListener';
|
|
7
7
|
import { ANALYTICS_CHANNEL } from '../../constants';
|
|
8
8
|
var UNKNOWN = 'unknown';
|
|
9
9
|
var DEFAULT_CONTEXT_ATTRIBUTES = {
|
|
@@ -4,7 +4,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
6
6
|
import React, { useContext, useMemo } from 'react';
|
|
7
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
7
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
8
8
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
9
9
|
import { ANALYTICS_CHANNEL } from '../../common/constants';
|
|
10
10
|
import { useExperience } from '../../common/ui/experience-tracker';
|
|
@@ -6,7 +6,8 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
6
6
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7
7
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8
8
|
import { Field } from 'react-final-form';
|
|
9
|
-
import { Label
|
|
9
|
+
import { Label } from '@atlaskit/form/label/default';
|
|
10
|
+
import { RequiredAsterisk } from '@atlaskit/form/required-asterisk';
|
|
10
11
|
import { Message } from '../../common/ui/message';
|
|
11
12
|
import { shouldShowValidationErrors } from '../../common/utils/form';
|
|
12
13
|
var fieldWrapperStyles = null;
|
|
@@ -9,7 +9,7 @@ import React, { useEffect, useMemo, useState } from 'react';
|
|
|
9
9
|
import debounce from 'debounce-promise';
|
|
10
10
|
import { useForm } from 'react-final-form';
|
|
11
11
|
import { useIntl } from 'react-intl';
|
|
12
|
-
import
|
|
12
|
+
import AkAsyncSelect from '@atlaskit/select/async-select';
|
|
13
13
|
import messages from '../../../common/messages';
|
|
14
14
|
import { useLinkCreateCallback } from '../../../controllers/callback-context/main';
|
|
15
15
|
import { CreateField } from '../../../controllers/create-field/main';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useForm, useFormState } from 'react-final-form';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
4
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
5
5
|
import LoadingButton from '@atlaskit/button/loading-button';
|
|
6
6
|
import { ANALYTICS_CHANNEL, LINK_CREATE_FORM_POST_CREATE_FIELD } from '../../../../common/constants';
|
|
7
7
|
import createEventPayload from '../../../../common/utils/analytics/analytics.codegen';
|
|
@@ -3,7 +3,7 @@ import "./main.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
|
-
import
|
|
6
|
+
import ButtonGroup from '@atlaskit/button/button-group';
|
|
7
7
|
import ErrorIcon from '@atlaskit/icon/core/status-error';
|
|
8
8
|
import { Button } from '../../../common/ui/Button';
|
|
9
9
|
import { EditButton } from './edit-button';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useForm, useFormState } from 'react-final-form';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
4
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
5
5
|
import LoadingButton from '@atlaskit/button/loading-button';
|
|
6
6
|
import { ANALYTICS_CHANNEL, LINK_CREATE_FORM_POST_CREATE_FIELD } from '../../../../common/constants';
|
|
7
7
|
import createEventPayload from '../../../../common/utils/analytics/analytics.codegen';
|
|
@@ -14,7 +14,7 @@ import { useCallback } from 'react';
|
|
|
14
14
|
import { FORM_ERROR } from 'final-form';
|
|
15
15
|
import { Form, FormSpy } from 'react-final-form';
|
|
16
16
|
import { useIntl } from 'react-intl';
|
|
17
|
-
import { RequiredAsterisk } from '@atlaskit/form';
|
|
17
|
+
import { RequiredAsterisk } from '@atlaskit/form/required-asterisk';
|
|
18
18
|
import { Box, Text } from '@atlaskit/primitives/compiled';
|
|
19
19
|
import { LINK_CREATE_FORM_POST_CREATE_FIELD } from '../../common/constants';
|
|
20
20
|
import messages from '../../common/messages';
|
|
@@ -10,7 +10,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { useIntl } from 'react-intl';
|
|
12
12
|
import { Inline } from '@atlaskit/primitives/compiled';
|
|
13
|
-
import AkSelect
|
|
13
|
+
import AkSelect from '@atlaskit/select/default';
|
|
14
|
+
import { components } from '@atlaskit/react-select/components';
|
|
14
15
|
import { layers } from '@atlaskit/theme/constants';
|
|
15
16
|
import { UrlIcon } from '../../../common/ui/icon';
|
|
16
17
|
import { CreateField } from '../../../controllers/create-field/main';
|
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["id", "name", "label", "isRequired", "validators", "validationHelpText", "testId"],
|
|
4
4
|
_excluded2 = ["fieldId"];
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import AkTextfield from '@atlaskit/textfield';
|
|
6
|
+
import AkTextfield from '@atlaskit/textfield/text-field';
|
|
7
7
|
import { CreateField } from '../../../controllers/create-field/main';
|
|
8
8
|
export var TEST_ID = 'link-create-text-field';
|
|
9
9
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
3
3
|
import IntlMessagesProvider from '@atlaskit/intl-messages-provider/main';
|
|
4
4
|
import { PACKAGE_DATA } from '../../common/constants';
|
|
5
5
|
import { ErrorBoundary } from '../../common/ui/error-boundary';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
3
3
|
import { ScreenViewedEvent } from '../../..//common/utils/analytics/components';
|
|
4
4
|
export var InlineAnalytics = function InlineAnalytics(_ref) {
|
|
5
5
|
var screen = _ref.screen,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
3
3
|
import IntlMessagesProvider from '@atlaskit/intl-messages-provider/main';
|
|
4
4
|
import { PACKAGE_DATA } from '../../common/constants';
|
|
5
5
|
import { ErrorBoundary } from '../../common/ui/error-boundary';
|
|
@@ -3,7 +3,10 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
4
|
import React, { useLayoutEffect, useRef } from 'react';
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
|
-
import
|
|
6
|
+
import ModalBody from '@atlaskit/modal-dialog/modal-body';
|
|
7
|
+
import ModalHeader from '@atlaskit/modal-dialog/modal-header';
|
|
8
|
+
import ModalTitle from '@atlaskit/modal-dialog/modal-title';
|
|
9
|
+
import ModalTransition from '@atlaskit/modal-dialog/modal-transition';
|
|
7
10
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
8
11
|
import { CREATE_FORM_MAX_WIDTH_IN_PX, DEFAULT_TEST_ID, SCREEN_ID } from '../../common/constants';
|
|
9
12
|
import { ConfirmDismissDialog } from '../../common/ui/confirm-dismiss-dialog/main';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import AkButton from '@atlaskit/button/
|
|
2
|
+
import AkButton from '@atlaskit/button/default/button';
|
|
3
3
|
import { type AnalyticsEventAttributes } from '../../../common/utils/analytics/analytics.codegen';
|
|
4
4
|
type ButtonProps = React.ComponentProps<typeof AkButton> & {
|
|
5
5
|
actionSubjectId: keyof {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import ModalDialog from '@atlaskit/modal-dialog';
|
|
2
|
+
import ModalDialog from '@atlaskit/modal-dialog/modal-dialog';
|
|
3
3
|
import { type AnalyticsEventAttributes } from '../../utils/analytics/analytics.codegen';
|
|
4
4
|
type ModalProps = React.ComponentProps<typeof ModalDialog> & {
|
|
5
5
|
screen: keyof {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { AsyncSelectProps as AKAsyncSelectProps, GroupType, OptionType } from '@atlaskit/select/types';
|
|
2
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> */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type PropsWithChildren } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { OptionProps, OptionType, SingleValueProps } from '@atlaskit/select/types';
|
|
3
3
|
import { type SelectProps, type SitePickerOptionType } from './types';
|
|
4
4
|
export declare const TEST_ID = "link-create-select";
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { SelectProps as AKSelectProps, OptionType } from '@atlaskit/select/types';
|
|
2
2
|
import { type Validator } from '../../../common/types';
|
|
3
3
|
export type SelectProps<T = OptionType> = AKSelectProps<T> & {
|
|
4
4
|
/** Name passed to the <Field> */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { TextfieldProps as AKTextFieldProps } from '@atlaskit/textfield/types';
|
|
2
2
|
import { type Validator } from '../../../common/types';
|
|
3
3
|
export type TextFieldProps = Omit<AKTextFieldProps, 'name'> & {
|
|
4
4
|
/** Name passed to the <Field>.*/
|