@atlaskit/link-create 1.11.0 → 1.11.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/link-create
2
2
 
3
+ ## 1.11.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#56657](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56657) [`3d2d5c5602fb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3d2d5c5602fb) - remove actionSubjectId from operational analytics event
8
+
3
9
  ## 1.11.0
4
10
 
5
11
  ### Minor Changes
@@ -129,7 +129,7 @@ events:
129
129
  type: string
130
130
  description: the name of the failure
131
131
 
132
- - operation failed (linkCreate):
132
+ - linkCreateExperience failed:
133
133
  type: operational
134
134
  description: fired when a failure has occured in the link create experience
135
135
  attributes:
@@ -11,7 +11,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
11
11
  *
12
12
  * Generates Typescript types for analytics events from analytics.spec.yaml
13
13
  *
14
- * @codegen <<SignedSource::20562f2db603daab7d5b7a5c5ba1c04b>>
14
+ * @codegen <<SignedSource::510281cade5c7b1a8dec8b382c8d4b86>>
15
15
  * @codegenCommand yarn workspace @atlaskit/link-create run codegen-analytics
16
16
  */
17
17
 
@@ -49,7 +49,7 @@ var Experience = exports.Experience = function Experience(_ref) {
49
49
  /**
50
50
  * Always capture an event to Splunk
51
51
  */
52
- createAnalyticsEvent((0, _analytics.default)('operational.operation.failed.linkCreate', _objectSpread({
52
+ createAnalyticsEvent((0, _analytics.default)('operational.linkCreateExperience.failed', _objectSpread({
53
53
  /**
54
54
  * The type of error that has failed the experience
55
55
  */
@@ -31,7 +31,7 @@ var LinkCreateWithAnalyticsContext = (0, _analytics.withLinkCreateAnalyticsConte
31
31
  }));
32
32
  var PACKAGE_DATA = exports.PACKAGE_DATA = {
33
33
  packageName: "@atlaskit/link-create" || '',
34
- packageVersion: "1.11.0" || '',
34
+ packageVersion: "1.11.1" || '',
35
35
  component: _constants.COMPONENT_NAME,
36
36
  componentName: _constants.COMPONENT_NAME
37
37
  };
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::20562f2db603daab7d5b7a5c5ba1c04b>>
6
+ * @codegen <<SignedSource::510281cade5c7b1a8dec8b382c8d4b86>>
7
7
  * @codegenCommand yarn workspace @atlaskit/link-create run codegen-analytics
8
8
  */
9
9
 
@@ -37,7 +37,7 @@ export const Experience = ({
37
37
  /**
38
38
  * Always capture an event to Splunk
39
39
  */
40
- createAnalyticsEvent(createEventPayload('operational.operation.failed.linkCreate', {
40
+ createAnalyticsEvent(createEventPayload('operational.linkCreateExperience.failed', {
41
41
  /**
42
42
  * The type of error that has failed the experience
43
43
  */
@@ -23,7 +23,7 @@ const LinkCreateWithAnalyticsContext = withLinkCreateAnalyticsContext( /*#__PURE
23
23
  }));
24
24
  export const PACKAGE_DATA = {
25
25
  packageName: "@atlaskit/link-create" || '',
26
- packageVersion: "1.11.0" || '',
26
+ packageVersion: "1.11.1" || '',
27
27
  component: COMPONENT_NAME,
28
28
  componentName: COMPONENT_NAME
29
29
  };
@@ -4,7 +4,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  *
5
5
  * Generates Typescript types for analytics events from analytics.spec.yaml
6
6
  *
7
- * @codegen <<SignedSource::20562f2db603daab7d5b7a5c5ba1c04b>>
7
+ * @codegen <<SignedSource::510281cade5c7b1a8dec8b382c8d4b86>>
8
8
  * @codegenCommand yarn workspace @atlaskit/link-create run codegen-analytics
9
9
  */
10
10
 
@@ -39,7 +39,7 @@ export var Experience = function Experience(_ref) {
39
39
  /**
40
40
  * Always capture an event to Splunk
41
41
  */
42
- createAnalyticsEvent(createEventPayload('operational.operation.failed.linkCreate', _objectSpread({
42
+ createAnalyticsEvent(createEventPayload('operational.linkCreateExperience.failed', _objectSpread({
43
43
  /**
44
44
  * The type of error that has failed the experience
45
45
  */
@@ -23,7 +23,7 @@ var LinkCreateWithAnalyticsContext = withLinkCreateAnalyticsContext( /*#__PURE__
23
23
  }));
24
24
  export var PACKAGE_DATA = {
25
25
  packageName: "@atlaskit/link-create" || '',
26
- packageVersion: "1.11.0" || '',
26
+ packageVersion: "1.11.1" || '',
27
27
  component: COMPONENT_NAME,
28
28
  componentName: COMPONENT_NAME
29
29
  };
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::20562f2db603daab7d5b7a5c5ba1c04b>>
6
+ * @codegen <<SignedSource::510281cade5c7b1a8dec8b382c8d4b86>>
7
7
  * @codegenCommand yarn workspace @atlaskit/link-create run codegen-analytics
8
8
  */
9
9
  export type PackageMetaDataType = {
@@ -38,7 +38,7 @@ export type ObjectCreatedLinkCreateAttributesType = {
38
38
  export type ObjectCreateFailedLinkCreateAttributesType = {
39
39
  failureType: string;
40
40
  };
41
- export type OperationFailedLinkCreateAttributesType = {
41
+ export type LinkCreateExperienceFailedAttributesType = {
42
42
  errorType: string | null;
43
43
  experienceStatus: 'SUCCEEDED' | 'FAILED';
44
44
  previousExperienceStatus: 'STARTED' | 'SUCCEEDED' | 'FAILED';
@@ -59,7 +59,7 @@ export type AnalyticsEventAttributes = {
59
59
  'operational.linkCreate.unhandledErrorCaught': LinkCreateUnhandledErrorCaughtAttributesType;
60
60
  'track.object.created.linkCreate': ObjectCreatedLinkCreateAttributesType;
61
61
  'track.object.createFailed.linkCreate': ObjectCreateFailedLinkCreateAttributesType;
62
- 'operational.operation.failed.linkCreate': OperationFailedLinkCreateAttributesType;
62
+ 'operational.linkCreateExperience.failed': LinkCreateExperienceFailedAttributesType;
63
63
  };
64
64
  declare function createEventPayload<K extends keyof AnalyticsEventAttributes>(eventKey: K, attributes: AnalyticsEventAttributes[K]): {
65
65
  eventType: string;
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::20562f2db603daab7d5b7a5c5ba1c04b>>
6
+ * @codegen <<SignedSource::510281cade5c7b1a8dec8b382c8d4b86>>
7
7
  * @codegenCommand yarn workspace @atlaskit/link-create run codegen-analytics
8
8
  */
9
9
  export type PackageMetaDataType = {
@@ -38,7 +38,7 @@ export type ObjectCreatedLinkCreateAttributesType = {
38
38
  export type ObjectCreateFailedLinkCreateAttributesType = {
39
39
  failureType: string;
40
40
  };
41
- export type OperationFailedLinkCreateAttributesType = {
41
+ export type LinkCreateExperienceFailedAttributesType = {
42
42
  errorType: string | null;
43
43
  experienceStatus: 'SUCCEEDED' | 'FAILED';
44
44
  previousExperienceStatus: 'STARTED' | 'SUCCEEDED' | 'FAILED';
@@ -59,7 +59,7 @@ export type AnalyticsEventAttributes = {
59
59
  'operational.linkCreate.unhandledErrorCaught': LinkCreateUnhandledErrorCaughtAttributesType;
60
60
  'track.object.created.linkCreate': ObjectCreatedLinkCreateAttributesType;
61
61
  'track.object.createFailed.linkCreate': ObjectCreateFailedLinkCreateAttributesType;
62
- 'operational.operation.failed.linkCreate': OperationFailedLinkCreateAttributesType;
62
+ 'operational.linkCreateExperience.failed': LinkCreateExperienceFailedAttributesType;
63
63
  };
64
64
  declare function createEventPayload<K extends keyof AnalyticsEventAttributes>(eventKey: K, attributes: AnalyticsEventAttributes[K]): {
65
65
  eventType: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-create",
3
- "version": "1.11.0",
3
+ "version": "1.11.1",
4
4
  "description": "The driver component of meta creation flow",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -1,188 +0,0 @@
1
- ## API Report File for "@atlaskit/link-create"
2
-
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
-
5
- ```ts
6
-
7
- /// <reference types="react" />
8
-
9
- import { AsyncSelectProps as AsyncSelectProps_2 } from '@atlaskit/select';
10
- import { FORM_ERROR } from 'final-form';
11
- import { GroupType } from '@atlaskit/select';
12
- import { jsx } from '@emotion/react';
13
- import { MemoExoticComponent } from 'react';
14
- import { ModalDialogProps } from '@atlaskit/modal-dialog';
15
- import { OptionType } from '@atlaskit/select';
16
- import { default as React_2 } from 'react';
17
- import { ReactNode } from 'react';
18
- import { SelectProps as SelectProps_2 } from '@atlaskit/select';
19
- import { SpinnerProps } from '@atlaskit/spinner';
20
- import { TextFieldProps as TextFieldProps_2 } from '@atlaskit/textfield';
21
-
22
- // @public
23
- export function AsyncSelect<T = OptionType>({ id, name, label, isRequired, validators, validationHelpText, testId, defaultOption: propsDefaultValue, loadOptions: loadOptionsFn, ...restProps }: AsyncSelectProps<T>): jsx.JSX.Element;
24
-
25
- // @public (undocumented)
26
- type AsyncSelectProps<T = OptionType> = Omit<AsyncSelectProps_2<T>, 'loadOptions'> & {
27
- name: string;
28
- label: string;
29
- validationHelpText?: string;
30
- testId?: string;
31
- isRequired?: boolean;
32
- validators?: Validator[];
33
- loadOptions?: (inputValue: string) => Promise<GroupType<T>[] | T[]>;
34
- };
35
-
36
- // @public (undocumented)
37
- const ComposedLinkCreate: MemoExoticComponent<(props: LinkCreateWithModalProps) => jsx.JSX.Element>;
38
- export default ComposedLinkCreate;
39
-
40
- // @public (undocumented)
41
- export const CreateForm: <FormData_1 extends Record<string, any> = {}>({ children, testId, onSubmit, onCancel, isLoading, hideFooter, initialValues, }: CreateFormProps<FormData_1>) => jsx.JSX.Element;
42
-
43
- // @public
44
- export function CreateFormLoader({ size }: Partial<SpinnerProps>): jsx.JSX.Element;
45
-
46
- // @public (undocumented)
47
- export interface CreateFormProps<FormData> {
48
- children: ReactNode;
49
- hideFooter?: boolean;
50
- initialValues?: DisallowReservedFields<FormData>;
51
- isLoading?: boolean;
52
- onCancel?: () => void;
53
- onSubmit: (data: OmitReservedFields<FormData>) => Errors | Promise<Errors | void> | void;
54
- testId?: string;
55
- }
56
-
57
- // @public
58
- export type CreatePayload = {
59
- url: string;
60
- ari?: string | undefined;
61
- objectId: string;
62
- objectType: string;
63
- data?: Record<string, unknown>;
64
- };
65
-
66
- // @public (undocumented)
67
- type DisallowReservedFields<T> = T & {
68
- [Field in (typeof RESERVED_FIELDS)[number]]?: never;
69
- };
70
-
71
- // @public (undocumented)
72
- export type EditViewProps = {
73
- payload: CreatePayload;
74
- onClose: () => void;
75
- };
76
-
77
- // @public (undocumented)
78
- type Errors = Record<string, string>;
79
-
80
- export { FORM_ERROR }
81
-
82
- // @public
83
- export const FormSpy: <T extends Record<string, unknown>>({ children, }: FormSpyProps<T>) => JSX.Element;
84
-
85
- // @public (undocumented)
86
- type FormSpyProps<T> = {
87
- children: ({ values }: {
88
- values: T;
89
- }) => React_2.ReactNode;
90
- };
91
-
92
- // @public (undocumented)
93
- interface Group {
94
- icon: string;
95
- key: string;
96
- label: string;
97
- }
98
-
99
- // @public (undocumented)
100
- export const LinkCreateCallbackProvider: React_2.FC<LinkCreateCallbackProviderProps>;
101
-
102
- // @public (undocumented)
103
- interface LinkCreateCallbackProviderProps {
104
- onCancel?: () => void;
105
- onCreate?: (result: CreatePayload) => Promise<void> | void;
106
- onFailure?: (error: unknown) => void;
107
- }
108
-
109
- // @public (undocumented)
110
- export interface LinkCreatePlugin {
111
- editView?: ({ payload, onClose }: EditViewProps) => JSX.Element;
112
- form: ReactNode;
113
- group: Group;
114
- icon: string;
115
- key: string;
116
- label: string;
117
- }
118
-
119
- // @public (undocumented)
120
- export interface LinkCreateProps {
121
- entityKey: string;
122
- groupKey?: string;
123
- onCancel?: () => void;
124
- onComplete?: () => void;
125
- onCreate?: (payload: CreatePayload) => Promise<void> | void;
126
- onFailure?: (error: unknown) => void;
127
- // (undocumented)
128
- plugins: LinkCreatePlugin[];
129
- testId?: string;
130
- triggeredFrom?: string;
131
- }
132
-
133
- // @public (undocumented)
134
- export interface LinkCreateWithModalProps extends LinkCreateProps, Partial<Pick<ModalDialogProps, 'onCloseComplete' | 'onOpenComplete'>> {
135
- active?: boolean;
136
- modalTitle?: string;
137
- }
138
-
139
- // @public (undocumented)
140
- type OmitReservedFields<T> = Omit<T, keyof ReservedFields>;
141
-
142
- // @public (undocumented)
143
- const RESERVED_FIELDS: readonly ["__post_create__"];
144
-
145
- // @public (undocumented)
146
- type ReservedFields = {
147
- [Field in (typeof RESERVED_FIELDS)[number]]?: unknown;
148
- };
149
-
150
- // @public
151
- export function Select<T = OptionType>({ id, name, label, isRequired, validators, validationHelpText, testId, ...restProps }: SelectProps<T>): jsx.JSX.Element;
152
-
153
- // @public (undocumented)
154
- type SelectProps<T = OptionType> = SelectProps_2<T> & {
155
- name: string;
156
- label: string;
157
- validationHelpText?: string;
158
- testId?: string;
159
- isRequired?: boolean;
160
- validators?: Validator[];
161
- };
162
-
163
- // @public
164
- export function TextField({ id, name, label, isRequired, validators, validationHelpText, testId, ...restProps }: TextFieldProps): jsx.JSX.Element;
165
-
166
- // @public (undocumented)
167
- type TextFieldProps = Omit<TextFieldProps_2, 'name'> & {
168
- name: string;
169
- label?: string;
170
- validationHelpText?: string;
171
- validators?: Validator[];
172
- };
173
-
174
- // @public (undocumented)
175
- export const useLinkCreateCallback: () => LinkCreateCallbackProviderProps;
176
-
177
- // @public (undocumented)
178
- export type Validator = {
179
- isValid: (val: unknown) => boolean;
180
- errorMessage: string;
181
- };
182
-
183
- // @public
184
- export type ValidatorMap = Record<string, Validator[]>;
185
-
186
- // (No @packageDocumentation comment for this package)
187
-
188
- ```