@atlaskit/analytics-next 9.1.4 → 9.2.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 +42 -30
- package/afm-cc/tsconfig.json +26 -0
- package/build/tsconfig.json +2 -1
- package/dist/cjs/components/AnalyticsContext/LegacyAnalyticsContext.js +4 -5
- package/dist/cjs/components/AnalyticsContext/ModernAnalyticsContext.js +3 -4
- package/dist/cjs/components/AnalyticsContext/index.js +8 -9
- package/dist/cjs/components/AnalyticsErrorBoundary.js +5 -6
- package/dist/cjs/components/AnalyticsListener/LegacyAnalyticsListener.js +4 -5
- package/dist/cjs/components/AnalyticsListener/ModernAnalyticsListener.js +3 -4
- package/dist/cjs/components/AnalyticsListener/index.js +8 -9
- package/dist/cjs/events/AnalyticsEvent.js +6 -8
- package/dist/cjs/events/UIAnalyticsEvent.js +5 -7
- package/dist/cjs/hocs/withAnalyticsContext.js +5 -6
- package/dist/cjs/hocs/withAnalyticsEvents.js +3 -4
- package/dist/cjs/hooks/useAnalyticsContext.js +2 -3
- package/dist/cjs/hooks/useCallbackWithAnalytics.js +2 -3
- package/dist/cjs/hooks/usePatchedProps.js +2 -2
- package/dist/cjs/hooks/usePlatformLeafEventHandler.js +2 -2
- package/dist/cjs/hooks/usePlatformLeafSyntheticEventHandler.js +2 -2
- package/dist/cjs/hooks/useTrackedRef.js +2 -3
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/test-utils/useRenderCounter.js +2 -3
- package/dist/cjs/utils/createAndFireEvent.js +2 -3
- package/dist/es2019/components/AnalyticsContext/index.js +7 -7
- package/dist/es2019/components/AnalyticsErrorBoundary.js +2 -1
- package/dist/es2019/components/AnalyticsListener/index.js +7 -7
- package/dist/esm/components/AnalyticsContext/LegacyAnalyticsContext.js +1 -1
- package/dist/esm/components/AnalyticsContext/index.js +7 -7
- package/dist/esm/components/AnalyticsErrorBoundary.js +1 -1
- package/dist/esm/components/AnalyticsListener/LegacyAnalyticsListener.js +1 -1
- package/dist/esm/components/AnalyticsListener/index.js +7 -7
- package/dist/esm/events/AnalyticsEvent.js +3 -3
- package/dist/esm/events/UIAnalyticsEvent.js +2 -2
- package/dist/esm/hocs/withAnalyticsContext.js +2 -2
- package/dist/esm/hooks/usePatchedProps.js +2 -2
- package/dist/esm/hooks/usePlatformLeafEventHandler.js +2 -2
- package/dist/esm/hooks/usePlatformLeafSyntheticEventHandler.js +2 -2
- package/dist/types/components/AnalyticsContext/LegacyAnalyticsContext.d.ts +1 -0
- package/dist/types/components/AnalyticsContext/index.d.ts +1 -1
- package/dist/types/components/AnalyticsListener/LegacyAnalyticsListener.d.ts +1 -0
- package/dist/types/components/AnalyticsListener/index.d.ts +1 -1
- package/dist/types-ts4.5/components/AnalyticsContext/LegacyAnalyticsContext.d.ts +1 -0
- package/dist/types-ts4.5/components/AnalyticsContext/index.d.ts +1 -1
- package/dist/types-ts4.5/components/AnalyticsListener/LegacyAnalyticsListener.d.ts +1 -0
- package/dist/types-ts4.5/components/AnalyticsListener/index.d.ts +1 -1
- package/package.json +10 -3
- package/dist/types/performance/examples.d.ts +0 -5
- package/dist/types-ts4.5/performance/examples.d.ts +0 -5
- package/tmp/api-report-tmp.d.ts +0 -225
package/CHANGELOG.md
CHANGED
|
@@ -1,136 +1,148 @@
|
|
|
1
1
|
# @atlaskit/analytics-next
|
|
2
2
|
|
|
3
|
+
## 9.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#80085](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80085) [`7febfed958dd`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7febfed958dd) - Update usage of `React.FC` to explicity include `children`
|
|
8
|
+
|
|
9
|
+
## 9.2.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#69804](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69804) [`0443b2194bd9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0443b2194bd9) - Allow using modern react context via platform feature flags
|
|
14
|
+
|
|
3
15
|
## 9.1.4
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
6
18
|
|
|
7
|
-
- [`9af31f3c1ae`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9af31f3c1ae) - Delete version.json
|
|
19
|
+
- [#38731](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38731) [`9af31f3c1ae`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9af31f3c1ae) - Delete version.json
|
|
8
20
|
|
|
9
21
|
## 9.1.3
|
|
10
22
|
|
|
11
23
|
### Patch Changes
|
|
12
24
|
|
|
13
|
-
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
25
|
+
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793) [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
14
26
|
|
|
15
27
|
## 9.1.2
|
|
16
28
|
|
|
17
29
|
### Patch Changes
|
|
18
30
|
|
|
19
|
-
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
31
|
+
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649) [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
20
32
|
|
|
21
33
|
## 9.1.1
|
|
22
34
|
|
|
23
35
|
### Patch Changes
|
|
24
36
|
|
|
25
|
-
- [`7cc1e8f18ec`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7cc1e8f18ec) - Move analytics-next to maintenance mode
|
|
37
|
+
- [#33292](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33292) [`7cc1e8f18ec`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7cc1e8f18ec) - Move analytics-next to maintenance mode
|
|
26
38
|
|
|
27
39
|
## 9.1.0
|
|
28
40
|
|
|
29
41
|
### Minor Changes
|
|
30
42
|
|
|
31
|
-
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
43
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
32
44
|
|
|
33
45
|
## 9.0.2
|
|
34
46
|
|
|
35
47
|
### Patch Changes
|
|
36
48
|
|
|
37
|
-
- [`7caf968e4cf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7caf968e4cf) - Move analytics-next to maintenance mode
|
|
49
|
+
- [#33013](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33013) [`7caf968e4cf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7caf968e4cf) - Move analytics-next to maintenance mode
|
|
38
50
|
|
|
39
51
|
## 9.0.1
|
|
40
52
|
|
|
41
53
|
### Patch Changes
|
|
42
54
|
|
|
43
|
-
- [`fbff320b423`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fbff320b423) - Move package to continuous model and to push model consumption
|
|
55
|
+
- [#32312](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32312) [`fbff320b423`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fbff320b423) - Move package to continuous model and to push model consumption
|
|
44
56
|
|
|
45
57
|
## 9.0.0
|
|
46
58
|
|
|
47
59
|
### Major Changes
|
|
48
60
|
|
|
49
|
-
- [`cf21f06ff72`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cf21f06ff72) - Bugfix, removed sending event fn and deprecated AnalyticErrorBoundary
|
|
61
|
+
- [#29470](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/29470) [`cf21f06ff72`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cf21f06ff72) - Bugfix, removed sending event fn and deprecated AnalyticErrorBoundary
|
|
50
62
|
|
|
51
63
|
## 8.3.5
|
|
52
64
|
|
|
53
65
|
### Patch Changes
|
|
54
66
|
|
|
55
|
-
- [`ccdc8e150f9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ccdc8e150f9) - AFO-771 Analytics next - fix node process check
|
|
67
|
+
- [#26436](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26436) [`ccdc8e150f9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ccdc8e150f9) - AFO-771 Analytics next - fix node process check
|
|
56
68
|
|
|
57
69
|
## 8.3.4
|
|
58
70
|
|
|
59
71
|
### Patch Changes
|
|
60
72
|
|
|
61
|
-
- [`2cbb787f8b3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2cbb787f8b3) - AFO-711 Analytics-next: nullable check for context
|
|
73
|
+
- [#26220](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26220) [`2cbb787f8b3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2cbb787f8b3) - AFO-711 Analytics-next: nullable check for context
|
|
62
74
|
|
|
63
75
|
## 8.3.3
|
|
64
76
|
|
|
65
77
|
### Patch Changes
|
|
66
78
|
|
|
67
|
-
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
79
|
+
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874) [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
68
80
|
|
|
69
81
|
## 8.3.2
|
|
70
82
|
|
|
71
83
|
### Patch Changes
|
|
72
84
|
|
|
73
|
-
- [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
85
|
+
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492) [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
74
86
|
|
|
75
87
|
## 8.3.1
|
|
76
88
|
|
|
77
89
|
### Patch Changes
|
|
78
90
|
|
|
79
|
-
- [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
91
|
+
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650) [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
80
92
|
|
|
81
93
|
## 8.3.0
|
|
82
94
|
|
|
83
95
|
### Minor Changes
|
|
84
96
|
|
|
85
|
-
- [`37fd554209e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/37fd554209e) - Add instance checks for analytics events in analytics-next. Update check in mpt-analytics for events too.
|
|
97
|
+
- [#14012](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/14012) [`37fd554209e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/37fd554209e) - Add instance checks for analytics events in analytics-next. Update check in mpt-analytics for events too.
|
|
86
98
|
|
|
87
99
|
## 8.2.1
|
|
88
100
|
|
|
89
101
|
### Patch Changes
|
|
90
102
|
|
|
91
|
-
- [`a4420ad5104`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a4420ad5104) - Improves referential stability of analytics-next wrapped callbacks
|
|
103
|
+
- [#12837](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12837) [`a4420ad5104`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a4420ad5104) - Improves referential stability of analytics-next wrapped callbacks
|
|
92
104
|
|
|
93
105
|
## 8.2.0
|
|
94
106
|
|
|
95
107
|
### Minor Changes
|
|
96
108
|
|
|
97
|
-
- [`0dbf0427287`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0dbf0427287) - [ux] Added new optional props to allow executing on catching error and rendering an error screen on error
|
|
109
|
+
- [#12328](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12328) [`0dbf0427287`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0dbf0427287) - [ux] Added new optional props to allow executing on catching error and rendering an error screen on error
|
|
98
110
|
|
|
99
111
|
## 8.1.4
|
|
100
112
|
|
|
101
113
|
### Patch Changes
|
|
102
114
|
|
|
103
|
-
- [`d6f7ff383cf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6f7ff383cf) - Updates to development dependency `storybook-addon-performance`
|
|
115
|
+
- [#12167](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12167) [`d6f7ff383cf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6f7ff383cf) - Updates to development dependency `storybook-addon-performance`
|
|
104
116
|
|
|
105
117
|
## 8.1.3
|
|
106
118
|
|
|
107
119
|
### Patch Changes
|
|
108
120
|
|
|
109
|
-
- [`5a9b102eef0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5a9b102eef0) - Add optional actionSubject parameter to usePlatformLeafHandlerHook
|
|
121
|
+
- [#10230](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10230) [`5a9b102eef0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5a9b102eef0) - Add optional actionSubject parameter to usePlatformLeafHandlerHook
|
|
110
122
|
|
|
111
123
|
## 8.1.2
|
|
112
124
|
|
|
113
125
|
### Patch Changes
|
|
114
126
|
|
|
115
|
-
- [`b290f591719`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b290f591719) - Add process type check in analytics next
|
|
127
|
+
- [#9083](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9083) [`b290f591719`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b290f591719) - Add process type check in analytics next
|
|
116
128
|
|
|
117
129
|
## 8.1.1
|
|
118
130
|
|
|
119
131
|
### Patch Changes
|
|
120
132
|
|
|
121
|
-
- [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
133
|
+
- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857) [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
122
134
|
|
|
123
135
|
## 8.1.0
|
|
124
136
|
|
|
125
137
|
### Minor Changes
|
|
126
138
|
|
|
127
|
-
- [`4eb71695b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4eb71695b5) - Added usePlatformLeafSyntheticEventHandler, which acts similarly to usePlatformLeafEventHandler but is used for synthetic events where the event handler takes no `value` prop
|
|
139
|
+
- [#5693](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5693) [`4eb71695b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4eb71695b5) - Added usePlatformLeafSyntheticEventHandler, which acts similarly to usePlatformLeafEventHandler but is used for synthetic events where the event handler takes no `value` prop
|
|
128
140
|
|
|
129
141
|
## 8.0.2
|
|
130
142
|
|
|
131
143
|
### Patch Changes
|
|
132
144
|
|
|
133
|
-
- [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
|
|
145
|
+
- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497) [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
|
|
134
146
|
This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
|
|
135
147
|
Also add `typescript` to `devDependencies` to denote version that the package was built with.
|
|
136
148
|
|
|
@@ -138,13 +150,13 @@
|
|
|
138
150
|
|
|
139
151
|
### Patch Changes
|
|
140
152
|
|
|
141
|
-
- [`b6af9198dd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b6af9198dd) - Restructure back to original lite mode file structure
|
|
153
|
+
- [#5412](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5412) [`b6af9198dd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b6af9198dd) - Restructure back to original lite mode file structure
|
|
142
154
|
|
|
143
155
|
## 8.0.0
|
|
144
156
|
|
|
145
157
|
### Major Changes
|
|
146
158
|
|
|
147
|
-
- [`b485472340`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b485472340) - Export WithContextProps type to prevent deep import path references in dependent packages declaration output.
|
|
159
|
+
- [#5344](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5344) [`b485472340`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b485472340) - Export WithContextProps type to prevent deep import path references in dependent packages declaration output.
|
|
148
160
|
|
|
149
161
|
Released as a major to prevent existing Atlaskit dependencies that use analytics-next from breaking when analytics-next file structure changes in the future.
|
|
150
162
|
|
|
@@ -152,13 +164,13 @@
|
|
|
152
164
|
|
|
153
165
|
### Patch Changes
|
|
154
166
|
|
|
155
|
-
- [`2ac834240e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2ac834240e) - Undo analytics-next file restructure to allow external ts definitions to continue working
|
|
167
|
+
- [#5164](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5164) [`2ac834240e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2ac834240e) - Undo analytics-next file restructure to allow external ts definitions to continue working
|
|
156
168
|
|
|
157
169
|
## 7.1.0
|
|
158
170
|
|
|
159
171
|
### Minor Changes
|
|
160
172
|
|
|
161
|
-
- [`0e2a914932`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0e2a914932) - ### Additions
|
|
173
|
+
- [#4749](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4749) [`0e2a914932`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0e2a914932) - ### Additions
|
|
162
174
|
|
|
163
175
|
- Added a new hook `useAnalyticsEventHandler` for sole use in Atlaskit components
|
|
164
176
|
|
|
@@ -213,7 +225,7 @@
|
|
|
213
225
|
|
|
214
226
|
### Patch Changes
|
|
215
227
|
|
|
216
|
-
- [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
228
|
+
- [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885) [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
217
229
|
|
|
218
230
|
Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
|
|
219
231
|
to prevent duplicates of tslib being bundled.
|
|
@@ -224,19 +236,19 @@
|
|
|
224
236
|
|
|
225
237
|
### Patch Changes
|
|
226
238
|
|
|
227
|
-
- [`723a322186`](https://bitbucket.org/atlassian/atlassian-frontend/commits/723a322186) - Hotfix to have a stable react context across multiple versions of @atlaskit/analytics-next
|
|
239
|
+
- [#4344](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4344) [`723a322186`](https://bitbucket.org/atlassian/atlassian-frontend/commits/723a322186) - Hotfix to have a stable react context across multiple versions of @atlaskit/analytics-next
|
|
228
240
|
|
|
229
241
|
## 7.0.1
|
|
230
242
|
|
|
231
243
|
### Patch Changes
|
|
232
244
|
|
|
233
|
-
- [`bff2f273bf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bff2f273bf) - useAnalyticsEvents will no longer log errors when used without an AnalyticsListerner or AnalyticsContext
|
|
245
|
+
- [#3428](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3428) [`bff2f273bf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bff2f273bf) - useAnalyticsEvents will no longer log errors when used without an AnalyticsListerner or AnalyticsContext
|
|
234
246
|
|
|
235
247
|
## 7.0.0
|
|
236
248
|
|
|
237
249
|
### Major Changes
|
|
238
250
|
|
|
239
|
-
- [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
|
|
251
|
+
- [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335) [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
|
|
240
252
|
For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
241
253
|
|
|
242
254
|
## 6.3.6
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.entry-points.confluence.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"target": "es5",
|
|
6
|
+
"composite": true,
|
|
7
|
+
"outDir": "../dist",
|
|
8
|
+
"rootDir": "../",
|
|
9
|
+
"baseUrl": "../"
|
|
10
|
+
},
|
|
11
|
+
"include": [
|
|
12
|
+
"../src/**/*.ts",
|
|
13
|
+
"../src/**/*.tsx"
|
|
14
|
+
],
|
|
15
|
+
"exclude": [
|
|
16
|
+
"../src/**/__tests__/*",
|
|
17
|
+
"../src/**/*.test.*",
|
|
18
|
+
"../src/**/test.*",
|
|
19
|
+
"../src/performance/examples.tsx"
|
|
20
|
+
],
|
|
21
|
+
"references": [
|
|
22
|
+
{
|
|
23
|
+
"path": "../../../platform/feature-flags/afm-cc/tsconfig.json"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
package/build/tsconfig.json
CHANGED
|
@@ -17,10 +17,10 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
17
17
|
var _react = _interopRequireWildcard(require("react"));
|
|
18
18
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
19
19
|
var _analyticsNextStableReactContext = _interopRequireDefault(require("@atlaskit/analytics-next-stable-react-context"));
|
|
20
|
-
function _getRequireWildcardCache(
|
|
21
|
-
function _interopRequireWildcard(
|
|
20
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
21
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
22
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
23
|
-
function _isNativeReflectConstruct() {
|
|
23
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
24
24
|
var ContextTypes = {
|
|
25
25
|
getAtlaskitAnalyticsContext: _propTypes.default.func,
|
|
26
26
|
getAtlaskitAnalyticsEventHandlers: _propTypes.default.func
|
|
@@ -72,5 +72,4 @@ var AnalyticsContext = /*#__PURE__*/function (_Component) {
|
|
|
72
72
|
}(_react.Component);
|
|
73
73
|
(0, _defineProperty2.default)(AnalyticsContext, "contextTypes", ContextTypes);
|
|
74
74
|
(0, _defineProperty2.default)(AnalyticsContext, "childContextTypes", ContextTypes);
|
|
75
|
-
var _default = AnalyticsContext;
|
|
76
|
-
exports.default = _default;
|
|
75
|
+
var _default = exports.default = AnalyticsContext;
|
|
@@ -11,8 +11,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
var _analyticsNextStableReactContext = _interopRequireDefault(require("@atlaskit/analytics-next-stable-react-context"));
|
|
12
12
|
var _useAnalyticsContext = require("../../hooks/useAnalyticsContext");
|
|
13
13
|
var _useTrackedRef = require("../../hooks/useTrackedRef");
|
|
14
|
-
function _getRequireWildcardCache(
|
|
15
|
-
function _interopRequireWildcard(
|
|
14
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
15
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
16
|
var AnalyticsContext = function AnalyticsContext(_ref) {
|
|
17
17
|
var data = _ref.data,
|
|
18
18
|
children = _ref.children;
|
|
@@ -31,5 +31,4 @@ var AnalyticsContext = function AnalyticsContext(_ref) {
|
|
|
31
31
|
value: value
|
|
32
32
|
}, children);
|
|
33
33
|
};
|
|
34
|
-
var _default = AnalyticsContext;
|
|
35
|
-
exports.default = _default;
|
|
34
|
+
var _default = exports.default = AnalyticsContext;
|
|
@@ -5,14 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
8
10
|
var _LegacyAnalyticsContext = _interopRequireDefault(require("./LegacyAnalyticsContext"));
|
|
9
11
|
var _ModernAnalyticsContext = _interopRequireDefault(require("./ModernAnalyticsContext"));
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
var _default = ExportedAnalyticsContext;
|
|
18
|
-
exports.default = _default;
|
|
12
|
+
var ExportedAnalyticsContext = function ExportedAnalyticsContext(props) {
|
|
13
|
+
var _process$env;
|
|
14
|
+
var isModernContextEnabledEnv = typeof process !== 'undefined' && process !== null && ((_process$env = process.env) === null || _process$env === void 0 ? void 0 : _process$env['ANALYTICS_NEXT_MODERN_CONTEXT']);
|
|
15
|
+
return isModernContextEnabledEnv || (0, _platformFeatureFlags.getBooleanFF)('platform.analytics-next-use-modern-context_fqgbx') ? /*#__PURE__*/_react.default.createElement(_ModernAnalyticsContext.default, props) : /*#__PURE__*/_react.default.createElement(_LegacyAnalyticsContext.default, props);
|
|
16
|
+
};
|
|
17
|
+
var _default = exports.default = ExportedAnalyticsContext;
|
|
@@ -13,15 +13,15 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
|
13
13
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
15
|
var _LegacyAnalyticsContext = _interopRequireDefault(require("./AnalyticsContext/LegacyAnalyticsContext"));
|
|
16
|
-
function _getRequireWildcardCache(
|
|
17
|
-
function _interopRequireWildcard(
|
|
16
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
17
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
19
|
-
function _isNativeReflectConstruct() {
|
|
19
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
20
20
|
/**
|
|
21
21
|
* @deprecated
|
|
22
22
|
*/
|
|
23
23
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
24
|
-
var AnalyticsErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
24
|
+
var AnalyticsErrorBoundary = exports.default = /*#__PURE__*/function (_Component) {
|
|
25
25
|
(0, _inherits2.default)(AnalyticsErrorBoundary, _Component);
|
|
26
26
|
var _super = _createSuper(AnalyticsErrorBoundary);
|
|
27
27
|
function AnalyticsErrorBoundary(props) {
|
|
@@ -61,5 +61,4 @@ var AnalyticsErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
|
61
61
|
}
|
|
62
62
|
}]);
|
|
63
63
|
return AnalyticsErrorBoundary;
|
|
64
|
-
}(_react.Component);
|
|
65
|
-
exports.default = AnalyticsErrorBoundary;
|
|
64
|
+
}(_react.Component);
|
|
@@ -17,10 +17,10 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
17
17
|
var _react = _interopRequireWildcard(require("react"));
|
|
18
18
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
19
19
|
var _analyticsNextStableReactContext = _interopRequireDefault(require("@atlaskit/analytics-next-stable-react-context"));
|
|
20
|
-
function _getRequireWildcardCache(
|
|
21
|
-
function _interopRequireWildcard(
|
|
20
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
21
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
22
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
23
|
-
function _isNativeReflectConstruct() {
|
|
23
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
24
24
|
var ContextTypes = {
|
|
25
25
|
getAtlaskitAnalyticsEventHandlers: _propTypes.default.func,
|
|
26
26
|
getAtlaskitAnalyticsContext: _propTypes.default.func
|
|
@@ -80,5 +80,4 @@ var AnalyticsListener = /*#__PURE__*/function (_Component) {
|
|
|
80
80
|
}(_react.Component);
|
|
81
81
|
(0, _defineProperty2.default)(AnalyticsListener, "contextTypes", ContextTypes);
|
|
82
82
|
(0, _defineProperty2.default)(AnalyticsListener, "childContextTypes", ContextTypes);
|
|
83
|
-
var _default = AnalyticsListener;
|
|
84
|
-
exports.default = _default;
|
|
83
|
+
var _default = exports.default = AnalyticsListener;
|
|
@@ -11,8 +11,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
var _analyticsNextStableReactContext = _interopRequireDefault(require("@atlaskit/analytics-next-stable-react-context"));
|
|
12
12
|
var _useAnalyticsContext = require("../../hooks/useAnalyticsContext");
|
|
13
13
|
var _useTrackedRef = require("../../hooks/useTrackedRef");
|
|
14
|
-
function _getRequireWildcardCache(
|
|
15
|
-
function _interopRequireWildcard(
|
|
14
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
15
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
16
|
var AnalyticsListener = function AnalyticsListener(_ref) {
|
|
17
17
|
var children = _ref.children,
|
|
18
18
|
channel = _ref.channel,
|
|
@@ -38,5 +38,4 @@ var AnalyticsListener = function AnalyticsListener(_ref) {
|
|
|
38
38
|
value: value
|
|
39
39
|
}, children);
|
|
40
40
|
};
|
|
41
|
-
var _default = AnalyticsListener;
|
|
42
|
-
exports.default = _default;
|
|
41
|
+
var _default = exports.default = AnalyticsListener;
|
|
@@ -5,14 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
8
10
|
var _LegacyAnalyticsListener = _interopRequireDefault(require("./LegacyAnalyticsListener"));
|
|
9
11
|
var _ModernAnalyticsListener = _interopRequireDefault(require("./ModernAnalyticsListener"));
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
var _default = ExportedAnalyticsListener;
|
|
18
|
-
exports.default = _default;
|
|
12
|
+
var ExportedAnalyticsListener = function ExportedAnalyticsListener(props) {
|
|
13
|
+
var _process$env;
|
|
14
|
+
var isModernContextEnabledEnv = typeof process !== 'undefined' && process !== null && ((_process$env = process.env) === null || _process$env === void 0 ? void 0 : _process$env['ANALYTICS_NEXT_MODERN_CONTEXT']);
|
|
15
|
+
return isModernContextEnabledEnv || (0, _platformFeatureFlags.getBooleanFF)('platform.analytics-next-use-modern-context_fqgbx') ? /*#__PURE__*/_react.default.createElement(_ModernAnalyticsListener.default, props) : /*#__PURE__*/_react.default.createElement(_LegacyAnalyticsListener.default, props);
|
|
16
|
+
};
|
|
17
|
+
var _default = exports.default = ExportedAnalyticsListener;
|
|
@@ -9,16 +9,15 @@ var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
|
9
9
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
10
10
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
11
11
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
12
|
-
function ownKeys(
|
|
13
|
-
function _objectSpread(
|
|
14
|
-
var isAnalyticsEvent = function isAnalyticsEvent(obj) {
|
|
12
|
+
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; }
|
|
13
|
+
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) { (0, _defineProperty2.default)(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; }
|
|
14
|
+
var isAnalyticsEvent = exports.isAnalyticsEvent = function isAnalyticsEvent(obj) {
|
|
15
15
|
var _obj$constructor;
|
|
16
16
|
return obj instanceof AnalyticsEvent || !!(obj !== null && obj !== void 0 && obj._isAnalyticsEvent) ||
|
|
17
17
|
// Backwards compatibility with older analytics-next packages
|
|
18
|
-
(obj === null || obj === void 0
|
|
18
|
+
(obj === null || obj === void 0 || (_obj$constructor = obj.constructor) === null || _obj$constructor === void 0 ? void 0 : _obj$constructor.name) === 'AnalyticsEvent';
|
|
19
19
|
};
|
|
20
|
-
exports.
|
|
21
|
-
var AnalyticsEvent = /*#__PURE__*/function () {
|
|
20
|
+
var AnalyticsEvent = exports.default = /*#__PURE__*/function () {
|
|
22
21
|
function AnalyticsEvent(props) {
|
|
23
22
|
var _this = this;
|
|
24
23
|
(0, _classCallCheck2.default)(this, AnalyticsEvent);
|
|
@@ -46,5 +45,4 @@ var AnalyticsEvent = /*#__PURE__*/function () {
|
|
|
46
45
|
}
|
|
47
46
|
}]);
|
|
48
47
|
return AnalyticsEvent;
|
|
49
|
-
}();
|
|
50
|
-
exports.default = AnalyticsEvent;
|
|
48
|
+
}();
|
|
@@ -16,15 +16,14 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
16
16
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
17
17
|
var _AnalyticsEvent2 = _interopRequireDefault(require("./AnalyticsEvent"));
|
|
18
18
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
19
|
-
function _isNativeReflectConstruct() {
|
|
20
|
-
var isUIAnalyticsEvent = function isUIAnalyticsEvent(obj) {
|
|
19
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
20
|
+
var isUIAnalyticsEvent = exports.isUIAnalyticsEvent = function isUIAnalyticsEvent(obj) {
|
|
21
21
|
var _obj$constructor;
|
|
22
22
|
return obj instanceof UIAnalyticsEvent || !!(obj !== null && obj !== void 0 && obj._isUIAnalyticsEvent) ||
|
|
23
23
|
// Backwards compatibility with older analytics-next packages
|
|
24
|
-
(obj === null || obj === void 0
|
|
24
|
+
(obj === null || obj === void 0 || (_obj$constructor = obj.constructor) === null || _obj$constructor === void 0 ? void 0 : _obj$constructor.name) === 'UIAnalyticsEvent';
|
|
25
25
|
};
|
|
26
|
-
exports.
|
|
27
|
-
var UIAnalyticsEvent = /*#__PURE__*/function (_AnalyticsEvent) {
|
|
26
|
+
var UIAnalyticsEvent = exports.default = /*#__PURE__*/function (_AnalyticsEvent) {
|
|
28
27
|
(0, _inherits2.default)(UIAnalyticsEvent, _AnalyticsEvent);
|
|
29
28
|
var _super = _createSuper(UIAnalyticsEvent);
|
|
30
29
|
function UIAnalyticsEvent(props) {
|
|
@@ -87,5 +86,4 @@ var UIAnalyticsEvent = /*#__PURE__*/function (_AnalyticsEvent) {
|
|
|
87
86
|
}
|
|
88
87
|
}]);
|
|
89
88
|
return UIAnalyticsEvent;
|
|
90
|
-
}(_AnalyticsEvent2.default);
|
|
91
|
-
exports.default = UIAnalyticsEvent;
|
|
89
|
+
}(_AnalyticsEvent2.default);
|
|
@@ -12,10 +12,10 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _AnalyticsContext = _interopRequireDefault(require("../components/AnalyticsContext"));
|
|
14
14
|
var _excluded = ["analyticsContext"];
|
|
15
|
-
function _getRequireWildcardCache(
|
|
16
|
-
function _interopRequireWildcard(
|
|
17
|
-
function ownKeys(
|
|
18
|
-
function _objectSpread(
|
|
15
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
|
+
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; }
|
|
18
|
+
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) { (0, _defineProperty2.default)(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; }
|
|
19
19
|
var withAnalyticsContext = function withAnalyticsContext(defaultData) {
|
|
20
20
|
return function (WrappedComponent) {
|
|
21
21
|
var WithAnalyticsContext = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
@@ -38,5 +38,4 @@ var withAnalyticsContext = function withAnalyticsContext(defaultData) {
|
|
|
38
38
|
return WithAnalyticsContext;
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
|
-
var _default = withAnalyticsContext;
|
|
42
|
-
exports.default = _default;
|
|
41
|
+
var _default = exports.default = withAnalyticsContext;
|
|
@@ -10,8 +10,8 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _useAnalyticsEvents2 = require("../hooks/useAnalyticsEvents");
|
|
12
12
|
var _usePatchedProps2 = require("../hooks/usePatchedProps");
|
|
13
|
-
function _getRequireWildcardCache(
|
|
14
|
-
function _interopRequireWildcard(
|
|
13
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
15
|
var withAnalyticsEvents = function withAnalyticsEvents() {
|
|
16
16
|
var createEventMap = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
17
17
|
return function (WrappedComponent) {
|
|
@@ -33,5 +33,4 @@ var withAnalyticsEvents = function withAnalyticsEvents() {
|
|
|
33
33
|
return WithAnalyticsEvents;
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
|
-
var _default = withAnalyticsEvents;
|
|
37
|
-
exports.default = _default;
|
|
36
|
+
var _default = exports.default = withAnalyticsEvents;
|
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.useAnalyticsContext = void 0;
|
|
8
8
|
var _react = require("react");
|
|
9
9
|
var _analyticsNextStableReactContext = _interopRequireDefault(require("@atlaskit/analytics-next-stable-react-context"));
|
|
10
|
-
var useAnalyticsContext = function useAnalyticsContext() {
|
|
10
|
+
var useAnalyticsContext = exports.useAnalyticsContext = function useAnalyticsContext() {
|
|
11
11
|
return (0, _react.useContext)(_analyticsNextStableReactContext.default);
|
|
12
|
-
};
|
|
13
|
-
exports.useAnalyticsContext = useAnalyticsContext;
|
|
12
|
+
};
|