@atlaskit/editor-plugin-date 2.4.15 → 2.4.17

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,20 @@
1
1
  # @atlaskit/editor-plugin-date
2
2
 
3
+ ## 2.4.17
4
+
5
+ ### Patch Changes
6
+
7
+ - [#175810](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/175810)
8
+ [`f7a9d71722c78`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f7a9d71722c78) -
9
+ ED-25989 adding analytic event for date inline node
10
+ - Updated dependencies
11
+
12
+ ## 2.4.16
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 2.4.15
4
19
 
5
20
  ### Patch Changes
@@ -209,10 +209,24 @@ var datePlugin = function datePlugin(_ref3) {
209
209
  return undefined;
210
210
  }
211
211
  var onClick = function onClick(stateFromClickEvent, dispatch) {
212
- var _api$annotation;
212
+ var _api$analytics2, _api$annotation;
213
213
  if (!(api !== null && api !== void 0 && api.annotation)) {
214
214
  return true;
215
215
  }
216
+ if (api !== null && api !== void 0 && (_api$analytics2 = api.analytics) !== null && _api$analytics2 !== void 0 && _api$analytics2.actions) {
217
+ var _api$analytics3;
218
+ api === null || api === void 0 || (_api$analytics3 = api.analytics) === null || _api$analytics3 === void 0 || (_api$analytics3 = _api$analytics3.actions) === null || _api$analytics3 === void 0 || _api$analytics3.fireAnalyticsEvent({
219
+ action: _analytics.ACTION.CLICKED,
220
+ actionSubject: _analytics.ACTION_SUBJECT.BUTTON,
221
+ actionSubjectId: _analytics.ACTION_SUBJECT_ID.CREATE_INLINE_COMMENT_FROM_HIGHLIGHT_ACTIONS_MENU,
222
+ eventType: _analytics.EVENT_TYPE.UI,
223
+ attributes: {
224
+ source: 'highlightActionsMenu',
225
+ pageMode: 'edit',
226
+ sourceNode: 'date'
227
+ }
228
+ });
229
+ }
216
230
  var command = (_api$annotation = api.annotation) === null || _api$annotation === void 0 || (_api$annotation = _api$annotation.actions) === null || _api$annotation === void 0 ? void 0 : _api$annotation.setInlineCommentDraftState(true, _analytics.INPUT_METHOD.TOOLBAR);
217
231
  return command(stateFromClickEvent, dispatch);
218
232
  };
@@ -196,10 +196,24 @@ const datePlugin = ({
196
196
  return undefined;
197
197
  }
198
198
  const onClick = (stateFromClickEvent, dispatch) => {
199
- var _api$annotation, _api$annotation$actio;
199
+ var _api$analytics2, _api$annotation, _api$annotation$actio;
200
200
  if (!(api !== null && api !== void 0 && api.annotation)) {
201
201
  return true;
202
202
  }
203
+ if (api !== null && api !== void 0 && (_api$analytics2 = api.analytics) !== null && _api$analytics2 !== void 0 && _api$analytics2.actions) {
204
+ var _api$analytics3, _api$analytics3$actio;
205
+ api === null || api === void 0 ? void 0 : (_api$analytics3 = api.analytics) === null || _api$analytics3 === void 0 ? void 0 : (_api$analytics3$actio = _api$analytics3.actions) === null || _api$analytics3$actio === void 0 ? void 0 : _api$analytics3$actio.fireAnalyticsEvent({
206
+ action: ACTION.CLICKED,
207
+ actionSubject: ACTION_SUBJECT.BUTTON,
208
+ actionSubjectId: ACTION_SUBJECT_ID.CREATE_INLINE_COMMENT_FROM_HIGHLIGHT_ACTIONS_MENU,
209
+ eventType: EVENT_TYPE.UI,
210
+ attributes: {
211
+ source: 'highlightActionsMenu',
212
+ pageMode: 'edit',
213
+ sourceNode: 'date'
214
+ }
215
+ });
216
+ }
203
217
  const command = (_api$annotation = api.annotation) === null || _api$annotation === void 0 ? void 0 : (_api$annotation$actio = _api$annotation.actions) === null || _api$annotation$actio === void 0 ? void 0 : _api$annotation$actio.setInlineCommentDraftState(true, INPUT_METHOD.TOOLBAR);
204
218
  return command(stateFromClickEvent, dispatch);
205
219
  };
@@ -197,10 +197,24 @@ var datePlugin = function datePlugin(_ref3) {
197
197
  return undefined;
198
198
  }
199
199
  var onClick = function onClick(stateFromClickEvent, dispatch) {
200
- var _api$annotation;
200
+ var _api$analytics2, _api$annotation;
201
201
  if (!(api !== null && api !== void 0 && api.annotation)) {
202
202
  return true;
203
203
  }
204
+ if (api !== null && api !== void 0 && (_api$analytics2 = api.analytics) !== null && _api$analytics2 !== void 0 && _api$analytics2.actions) {
205
+ var _api$analytics3;
206
+ api === null || api === void 0 || (_api$analytics3 = api.analytics) === null || _api$analytics3 === void 0 || (_api$analytics3 = _api$analytics3.actions) === null || _api$analytics3 === void 0 || _api$analytics3.fireAnalyticsEvent({
207
+ action: ACTION.CLICKED,
208
+ actionSubject: ACTION_SUBJECT.BUTTON,
209
+ actionSubjectId: ACTION_SUBJECT_ID.CREATE_INLINE_COMMENT_FROM_HIGHLIGHT_ACTIONS_MENU,
210
+ eventType: EVENT_TYPE.UI,
211
+ attributes: {
212
+ source: 'highlightActionsMenu',
213
+ pageMode: 'edit',
214
+ sourceNode: 'date'
215
+ }
216
+ });
217
+ }
204
218
  var command = (_api$annotation = api.annotation) === null || _api$annotation === void 0 || (_api$annotation = _api$annotation.actions) === null || _api$annotation === void 0 ? void 0 : _api$annotation.setInlineCommentDraftState(true, INPUT_METHOD.TOOLBAR);
205
219
  return command(stateFromClickEvent, dispatch);
206
220
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-date",
3
- "version": "2.4.15",
3
+ "version": "2.4.17",
4
4
  "description": "Date plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,15 +34,15 @@
34
34
  "@atlaskit/adf-schema": "^46.1.0",
35
35
  "@atlaskit/calendar": "^15.1.0",
36
36
  "@atlaskit/date": "^0.11.0",
37
- "@atlaskit/editor-common": "^96.1.0",
37
+ "@atlaskit/editor-common": "^96.3.0",
38
38
  "@atlaskit/editor-plugin-analytics": "^1.10.0",
39
- "@atlaskit/editor-plugin-annotation": "1.26.0",
39
+ "@atlaskit/editor-plugin-annotation": "1.26.2",
40
40
  "@atlaskit/editor-plugin-editor-disabled": "^1.3.0",
41
41
  "@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
42
42
  "@atlaskit/editor-prosemirror": "6.2.1",
43
43
  "@atlaskit/editor-shared-styles": "^3.2.0",
44
44
  "@atlaskit/form": "^10.6.0",
45
- "@atlaskit/icon": "^23.0.1",
45
+ "@atlaskit/icon": "^23.1.0",
46
46
  "@atlaskit/locale": "^2.8.0",
47
47
  "@atlaskit/platform-feature-flags": "^0.3.0",
48
48
  "@atlaskit/textfield": "6.7.0",