@atlaskit/editor-core 190.1.26 → 190.1.28

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.
Files changed (48) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/afm-cc/tsconfig.json +3 -0
  3. package/dist/cjs/plugins/index.js +0 -7
  4. package/dist/cjs/presets/universal.js +6 -2
  5. package/dist/cjs/ui/ToolbarFeedback/index.js +20 -17
  6. package/dist/cjs/version-wrapper.js +1 -1
  7. package/dist/es2019/plugins/index.js +0 -1
  8. package/dist/es2019/presets/universal.js +7 -2
  9. package/dist/es2019/ui/ToolbarFeedback/index.js +23 -8
  10. package/dist/es2019/version-wrapper.js +1 -1
  11. package/dist/esm/plugins/index.js +0 -1
  12. package/dist/esm/presets/universal.js +6 -2
  13. package/dist/esm/ui/ToolbarFeedback/index.js +20 -17
  14. package/dist/esm/version-wrapper.js +1 -1
  15. package/dist/types/editor.d.ts +2 -1
  16. package/dist/types/plugins/index.d.ts +0 -1
  17. package/dist/types/types/editor-props.d.ts +1 -10
  18. package/dist/types/types/index.d.ts +1 -1
  19. package/dist/types-ts4.5/editor.d.ts +2 -1
  20. package/dist/types-ts4.5/plugins/index.d.ts +0 -1
  21. package/dist/types-ts4.5/types/editor-props.d.ts +1 -10
  22. package/dist/types-ts4.5/types/index.d.ts +1 -1
  23. package/package.json +6 -9
  24. package/dist/cjs/plugins/feedback-dialog/getBrowserInfo.js +0 -70
  25. package/dist/cjs/plugins/feedback-dialog/getDeviceInfo.js +0 -118
  26. package/dist/cjs/plugins/feedback-dialog/index.js +0 -127
  27. package/dist/cjs/plugins/feedback-dialog/loadJiraCollectorDialogScript.js +0 -67
  28. package/dist/cjs/utils/pick-by.js +0 -16
  29. package/dist/es2019/plugins/feedback-dialog/getBrowserInfo.js +0 -64
  30. package/dist/es2019/plugins/feedback-dialog/getDeviceInfo.js +0 -112
  31. package/dist/es2019/plugins/feedback-dialog/index.js +0 -82
  32. package/dist/es2019/plugins/feedback-dialog/loadJiraCollectorDialogScript.js +0 -47
  33. package/dist/es2019/utils/pick-by.js +0 -5
  34. package/dist/esm/plugins/feedback-dialog/getBrowserInfo.js +0 -64
  35. package/dist/esm/plugins/feedback-dialog/getDeviceInfo.js +0 -112
  36. package/dist/esm/plugins/feedback-dialog/index.js +0 -120
  37. package/dist/esm/plugins/feedback-dialog/loadJiraCollectorDialogScript.js +0 -60
  38. package/dist/esm/utils/pick-by.js +0 -9
  39. package/dist/types/plugins/feedback-dialog/getBrowserInfo.d.ts +0 -6
  40. package/dist/types/plugins/feedback-dialog/getDeviceInfo.d.ts +0 -6
  41. package/dist/types/plugins/feedback-dialog/index.d.ts +0 -10
  42. package/dist/types/plugins/feedback-dialog/loadJiraCollectorDialogScript.d.ts +0 -8
  43. package/dist/types/utils/pick-by.d.ts +0 -2
  44. package/dist/types-ts4.5/plugins/feedback-dialog/getBrowserInfo.d.ts +0 -6
  45. package/dist/types-ts4.5/plugins/feedback-dialog/getDeviceInfo.d.ts +0 -6
  46. package/dist/types-ts4.5/plugins/feedback-dialog/index.d.ts +0 -12
  47. package/dist/types-ts4.5/plugins/feedback-dialog/loadJiraCollectorDialogScript.d.ts +0 -8
  48. package/dist/types-ts4.5/utils/pick-by.d.ts +0 -2
@@ -1,47 +0,0 @@
1
- import getDeviceInfo from './getDeviceInfo';
2
- import getBrowserInfo from './getBrowserInfo';
3
- const JIRA_ISSUE_COLLECTOR_URL = 'https://product-fabric.atlassian.net/s/d41d8cd98f00b204e9800998ecf8427e-T/-w0bwo4/b/14/e73395c53c3b10fde2303f4bf74ffbf6/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector-embededjs/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector-embededjs.js?locale=en-US&collectorId=98644b9c';
4
- const loadJiraCollectorDialogScript = (labels, packageName, coreVersion, packageVersion, sessionId, contentId, tabId) => {
5
- return new Promise(async (resolve, reject) => {
6
- if (window.jQuery) {
7
- window.ATL_JQ_PAGE_PROPS = {
8
- triggerFunction: showCollectorDialog => {
9
- if (typeof showCollectorDialog === 'function') {
10
- resolve(showCollectorDialog);
11
- } else {
12
- reject('Failed to initialize showCollectorDialog');
13
- }
14
- },
15
- fieldValues: {
16
- description: `Please describe the problem you're having or feature you'd like to see:\n\n\n`,
17
- // 11711 is the field ID for the Feedback Labels field on Product Fabric.
18
- // this is found by clicking "configure" on the field and inspecting the URL
19
- customfield_11711: labels || [],
20
- customfield_11712: `version: ${packageName}@${packageVersion} (${coreVersion})
21
- Browser: ${getBrowserInfo(navigator.userAgent)}
22
- OS: ${getDeviceInfo(navigator.userAgent, navigator.appVersion)}`
23
- },
24
- environment: {
25
- 'Editor Package': packageName,
26
- 'Editor Version': packageVersion,
27
- 'Editor Core Version': coreVersion,
28
- sessionId,
29
- contentId,
30
- tabId
31
- },
32
- priority: '1',
33
- components: '15306' // Fix here
34
- };
35
-
36
- window.jQuery.ajax({
37
- url: JIRA_ISSUE_COLLECTOR_URL,
38
- type: 'get',
39
- cache: true,
40
- dataType: 'script'
41
- });
42
- } else {
43
- reject('jQuery is not defined');
44
- }
45
- });
46
- };
47
- export default loadJiraCollectorDialogScript;
@@ -1,5 +0,0 @@
1
- const pickBy = (test, object) => Object.keys(object).reduce((obj, key) => test(String(key), object[key]) ? {
2
- ...obj,
3
- [key]: object[key]
4
- } : obj, {});
5
- export default pickBy;
@@ -1,64 +0,0 @@
1
- /**
2
- * Inspired from:
3
- * https://stackoverflow.com/questions/11219582/how-to-detect-my-browser-version-and-operating-system-using-javascript
4
- */
5
- var getBrowserInfo = function getBrowserInfo(nAgt) {
6
- var browserName;
7
- var browserVersion;
8
- var nameOffset;
9
- var verOffset;
10
- var index;
11
-
12
- // In Opera 15+, version is after "OPR/"
13
- if ((verOffset = nAgt.indexOf('OPR/')) !== -1) {
14
- browserName = 'Opera';
15
- browserVersion = nAgt.substring(verOffset + 4);
16
- } else if ((verOffset = nAgt.indexOf('Opera')) !== -1) {
17
- // In older Opera, version is after "Opera" or after "Version"
18
- browserName = 'Opera';
19
- if ((verOffset = nAgt.indexOf('Version')) !== -1) {
20
- browserVersion = nAgt.substring(verOffset + 8);
21
- } else {
22
- browserVersion = nAgt.substring(verOffset + 6);
23
- }
24
- } else if ((verOffset = nAgt.indexOf('MSIE')) !== -1) {
25
- // In MSIE, version is after "MSIE" in userAgent
26
- browserName = 'Microsoft Internet Explorer';
27
- browserVersion = nAgt.substring(verOffset + 5);
28
- } else if ((verOffset = nAgt.indexOf('Chrome')) !== -1) {
29
- // In Chrome, version is after "Chrome"
30
- browserName = 'Chrome';
31
- browserVersion = nAgt.substring(verOffset + 7);
32
- } else if ((verOffset = nAgt.indexOf('Safari')) !== -1) {
33
- // In Safari, version is after "Safari" or after "Version"
34
- browserName = 'Safari';
35
- if ((verOffset = nAgt.indexOf('Version')) !== -1) {
36
- browserVersion = nAgt.substring(verOffset + 8);
37
- } else {
38
- browserVersion = nAgt.substring(verOffset + 7);
39
- }
40
- } else if ((verOffset = nAgt.indexOf('Firefox')) !== -1) {
41
- // In Firefox, version is after "Firefox"
42
- browserName = 'Firefox';
43
- browserVersion = nAgt.substring(verOffset + 8);
44
- } else if ((nameOffset = nAgt.lastIndexOf(' ') + 1) < (verOffset = nAgt.lastIndexOf('/'))) {
45
- // In most other browsers, "name/version" is at the end of userAgent
46
- browserName = nAgt.substring(nameOffset, verOffset);
47
- browserVersion = nAgt.substring(verOffset + 1);
48
- if (browserName.toLowerCase() === browserName.toUpperCase()) {
49
- browserName = navigator.appName;
50
- }
51
- } else {
52
- browserName = navigator.appName;
53
- browserVersion = '' + parseFloat(navigator.appVersion);
54
- }
55
- // trim the versionStr string at semicolon/space if present
56
- if ((index = browserVersion.indexOf(';')) !== -1) {
57
- browserVersion = browserVersion.substring(0, index);
58
- }
59
- if ((index = browserVersion.indexOf(' ')) !== -1) {
60
- browserVersion = browserVersion.substring(0, index);
61
- }
62
- return "".concat(browserName, " ").concat(browserVersion);
63
- };
64
- export default getBrowserInfo;
@@ -1,112 +0,0 @@
1
- /**
2
- * Inspired from:
3
- * https://stackoverflow.com/questions/9514179/how-to-find-the-operating-system-version-using-javascript
4
- */
5
- var getDeviceInfo = function getDeviceInfo(nAgt, nVersion) {
6
- var os = '';
7
- var osVersion = '';
8
- var clientStrings = [{
9
- s: 'Windows 3.11',
10
- r: /Win16/
11
- }, {
12
- s: 'Windows 95',
13
- r: /(Windows 95|Win95|Windows_95)/
14
- }, {
15
- s: 'Windows ME',
16
- r: /(Win 9x 4.90|Windows ME)/
17
- }, {
18
- s: 'Windows 98',
19
- r: /(Windows 98|Win98)/
20
- }, {
21
- s: 'Windows CE',
22
- r: /Windows CE/
23
- }, {
24
- s: 'Windows 2000',
25
- r: /(Windows NT 5.0|Windows 2000)/
26
- }, {
27
- s: 'Windows XP',
28
- r: /(Windows NT 5.1|Windows XP)/
29
- }, {
30
- s: 'Windows Server 2003',
31
- r: /Windows NT 5.2/
32
- }, {
33
- s: 'Windows Vista',
34
- r: /Windows NT 6.0/
35
- }, {
36
- s: 'Windows 7',
37
- r: /(Windows 7|Windows NT 6.1)/
38
- }, {
39
- s: 'Windows 8.1',
40
- r: /(Windows 8.1|Windows NT 6.3)/
41
- }, {
42
- s: 'Windows 8',
43
- r: /(Windows 8|Windows NT 6.2)/
44
- }, {
45
- s: 'Windows NT 4.0',
46
- r: /(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/
47
- }, {
48
- s: 'Android',
49
- r: /Android/
50
- }, {
51
- s: 'Open BSD',
52
- r: /OpenBSD/
53
- }, {
54
- s: 'Sun OS',
55
- r: /SunOS/
56
- }, {
57
- s: 'Linux',
58
- r: /(Linux|X11)/
59
- }, {
60
- s: 'iOS',
61
- r: /(iPhone|iPad|iPod)/
62
- }, {
63
- s: 'Mac OS X',
64
- r: /Mac OS X/
65
- }, {
66
- s: 'Mac OS',
67
- r: /(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/
68
- }, {
69
- s: 'QNX',
70
- r: /QNX/
71
- }, {
72
- s: 'UNIX',
73
- r: /UNIX/
74
- }, {
75
- s: 'BeOS',
76
- r: /BeOS/
77
- }, {
78
- s: 'OS/2',
79
- r: /OS\/2/
80
- }, {
81
- s: 'Search Bot',
82
- r: /(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver)/
83
- }];
84
- for (var client in clientStrings) {
85
- var clientObj = clientStrings[client];
86
- if (clientObj.r.test(nAgt)) {
87
- os = clientObj.s;
88
- break;
89
- }
90
- }
91
- var match;
92
- if (/Windows/.test(os)) {
93
- match = /Windows (.*)/.exec(os);
94
- osVersion = match && match[1];
95
- os = 'Windows';
96
- }
97
- switch (os) {
98
- case 'Mac OS X':
99
- match = /Mac OS X (10[\.\_\d]+)/.exec(nAgt);
100
- osVersion = match && match[1];
101
- break;
102
- case 'Android':
103
- match = /Android ([\.\_\d]+)/.exec(nAgt);
104
- osVersion = match && match[1];
105
- break;
106
- case 'iOS':
107
- match = /OS (\d+)_(\d+)_?(\d+)?/.exec(nVersion);
108
- osVersion = match && match[1] + '.' + match[2] + '.' + (match[3] || 0);
109
- }
110
- return "".concat(os, " ").concat(osVersion);
111
- };
112
- export default getDeviceInfo;
@@ -1,120 +0,0 @@
1
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
- import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
4
- import _regeneratorRuntime from "@babel/runtime/regenerator";
5
- 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; }
6
- 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; }
7
- import React from 'react';
8
- import { IconFeedback } from '@atlaskit/editor-common/quick-insert';
9
- import { version as coreVersion } from '../../version-wrapper';
10
- import { ACTION, ACTION_SUBJECT, INPUT_METHOD, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
11
- import loadJiraCollectorDialogScript from './loadJiraCollectorDialogScript';
12
- import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
13
- var showJiraCollectorDialog;
14
- var feedbackInfoHash;
15
- var defaultFeedbackInfo;
16
- var hashFeedbackInfo = function hashFeedbackInfo(feedbackInfo) {
17
- var product = feedbackInfo.product,
18
- packageName = feedbackInfo.packageName,
19
- packageVersion = feedbackInfo.packageVersion,
20
- labels = feedbackInfo.labels;
21
- return [product, packageName, packageVersion].concat(_toConsumableArray(labels || [])).join('|');
22
- };
23
- export var openFeedbackDialog = /*#__PURE__*/function () {
24
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(feedbackInfo) {
25
- return _regeneratorRuntime.wrap(function _callee2$(_context2) {
26
- while (1) switch (_context2.prev = _context2.next) {
27
- case 0:
28
- return _context2.abrupt("return", new Promise( /*#__PURE__*/function () {
29
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(resolve, reject) {
30
- var combinedFeedbackInfo, newFeedbackInfoHash, timeoutId;
31
- return _regeneratorRuntime.wrap(function _callee$(_context) {
32
- while (1) switch (_context.prev = _context.next) {
33
- case 0:
34
- combinedFeedbackInfo = _objectSpread(_objectSpread(_objectSpread({}, {
35
- product: 'n/a',
36
- labels: [],
37
- packageName: '',
38
- packageVersion: '',
39
- sessionId: '',
40
- contentId: '',
41
- tabId: ''
42
- }), defaultFeedbackInfo), feedbackInfo);
43
- newFeedbackInfoHash = hashFeedbackInfo(combinedFeedbackInfo);
44
- if (!(!showJiraCollectorDialog || feedbackInfoHash !== newFeedbackInfoHash)) {
45
- _context.next = 13;
46
- break;
47
- }
48
- _context.prev = 3;
49
- _context.next = 6;
50
- return loadJiraCollectorDialogScript([combinedFeedbackInfo.product].concat(_toConsumableArray(combinedFeedbackInfo.labels)), combinedFeedbackInfo.packageName, coreVersion, combinedFeedbackInfo.packageVersion, combinedFeedbackInfo.sessionId, combinedFeedbackInfo.contentId, combinedFeedbackInfo.tabId);
51
- case 6:
52
- showJiraCollectorDialog = _context.sent;
53
- feedbackInfoHash = newFeedbackInfoHash;
54
- _context.next = 13;
55
- break;
56
- case 10:
57
- _context.prev = 10;
58
- _context.t0 = _context["catch"](3);
59
- reject(_context.t0);
60
- case 13:
61
- timeoutId = window.setTimeout(showJiraCollectorDialog, 0); // Return the timoutId for consumers to call clearTimeout if they need to.
62
- resolve(timeoutId);
63
- case 15:
64
- case "end":
65
- return _context.stop();
66
- }
67
- }, _callee, null, [[3, 10]]);
68
- }));
69
- return function (_x2, _x3) {
70
- return _ref2.apply(this, arguments);
71
- };
72
- }()));
73
- case 1:
74
- case "end":
75
- return _context2.stop();
76
- }
77
- }, _callee2);
78
- }));
79
- return function openFeedbackDialog(_x) {
80
- return _ref.apply(this, arguments);
81
- };
82
- }();
83
- var feedbackDialog = function feedbackDialog(_ref3) {
84
- var feedbackInfo = _ref3.config,
85
- api = _ref3.api;
86
- defaultFeedbackInfo = feedbackInfo !== null && feedbackInfo !== void 0 ? feedbackInfo : {};
87
- return {
88
- name: 'feedbackDialog',
89
- pluginsOptions: {
90
- quickInsert: function quickInsert(_ref4) {
91
- var formatMessage = _ref4.formatMessage;
92
- return [{
93
- id: 'feedbackdialog',
94
- title: formatMessage(messages.feedbackDialog),
95
- description: formatMessage(messages.feedbackDialogDescription),
96
- priority: 400,
97
- keywords: ['bug'],
98
- icon: function icon() {
99
- return /*#__PURE__*/React.createElement(IconFeedback, null);
100
- },
101
- action: function action(insert, state) {
102
- var _api$analytics;
103
- var tr = insert('');
104
- openFeedbackDialog(feedbackInfo);
105
- api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 || _api$analytics.actions.attachAnalyticsEvent({
106
- action: ACTION.OPENED,
107
- actionSubject: ACTION_SUBJECT.FEEDBACK_DIALOG,
108
- attributes: {
109
- inputMethod: INPUT_METHOD.QUICK_INSERT
110
- },
111
- eventType: EVENT_TYPE.UI
112
- })(tr);
113
- return tr;
114
- }
115
- }];
116
- }
117
- }
118
- };
119
- };
120
- export default feedbackDialog;
@@ -1,60 +0,0 @@
1
- import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
- import _regeneratorRuntime from "@babel/runtime/regenerator";
3
- import getDeviceInfo from './getDeviceInfo';
4
- import getBrowserInfo from './getBrowserInfo';
5
- var JIRA_ISSUE_COLLECTOR_URL = 'https://product-fabric.atlassian.net/s/d41d8cd98f00b204e9800998ecf8427e-T/-w0bwo4/b/14/e73395c53c3b10fde2303f4bf74ffbf6/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector-embededjs/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector-embededjs.js?locale=en-US&collectorId=98644b9c';
6
- var loadJiraCollectorDialogScript = function loadJiraCollectorDialogScript(labels, packageName, coreVersion, packageVersion, sessionId, contentId, tabId) {
7
- return new Promise( /*#__PURE__*/function () {
8
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(resolve, reject) {
9
- return _regeneratorRuntime.wrap(function _callee$(_context) {
10
- while (1) switch (_context.prev = _context.next) {
11
- case 0:
12
- if (window.jQuery) {
13
- window.ATL_JQ_PAGE_PROPS = {
14
- triggerFunction: function triggerFunction(showCollectorDialog) {
15
- if (typeof showCollectorDialog === 'function') {
16
- resolve(showCollectorDialog);
17
- } else {
18
- reject('Failed to initialize showCollectorDialog');
19
- }
20
- },
21
- fieldValues: {
22
- description: "Please describe the problem you're having or feature you'd like to see:\n\n\n",
23
- // 11711 is the field ID for the Feedback Labels field on Product Fabric.
24
- // this is found by clicking "configure" on the field and inspecting the URL
25
- customfield_11711: labels || [],
26
- customfield_11712: "version: ".concat(packageName, "@").concat(packageVersion, " (").concat(coreVersion, ")\n Browser: ").concat(getBrowserInfo(navigator.userAgent), "\n OS: ").concat(getDeviceInfo(navigator.userAgent, navigator.appVersion))
27
- },
28
- environment: {
29
- 'Editor Package': packageName,
30
- 'Editor Version': packageVersion,
31
- 'Editor Core Version': coreVersion,
32
- sessionId: sessionId,
33
- contentId: contentId,
34
- tabId: tabId
35
- },
36
- priority: '1',
37
- components: '15306' // Fix here
38
- };
39
-
40
- window.jQuery.ajax({
41
- url: JIRA_ISSUE_COLLECTOR_URL,
42
- type: 'get',
43
- cache: true,
44
- dataType: 'script'
45
- });
46
- } else {
47
- reject('jQuery is not defined');
48
- }
49
- case 1:
50
- case "end":
51
- return _context.stop();
52
- }
53
- }, _callee);
54
- }));
55
- return function (_x, _x2) {
56
- return _ref.apply(this, arguments);
57
- };
58
- }());
59
- };
60
- export default loadJiraCollectorDialogScript;
@@ -1,9 +0,0 @@
1
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
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
- 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
- var pickBy = function pickBy(test, object) {
5
- return Object.keys(object).reduce(function (obj, key) {
6
- return test(String(key), object[key]) ? _objectSpread(_objectSpread({}, obj), {}, _defineProperty({}, key, object[key])) : obj;
7
- }, {});
8
- };
9
- export default pickBy;
@@ -1,6 +0,0 @@
1
- /**
2
- * Inspired from:
3
- * https://stackoverflow.com/questions/11219582/how-to-detect-my-browser-version-and-operating-system-using-javascript
4
- */
5
- declare const getBrowserInfo: (nAgt: string) => string;
6
- export default getBrowserInfo;
@@ -1,6 +0,0 @@
1
- /**
2
- * Inspired from:
3
- * https://stackoverflow.com/questions/9514179/how-to-find-the-operating-system-version-using-javascript
4
- */
5
- declare const getDeviceInfo: (nAgt: string, nVersion: string) => string;
6
- export default getDeviceInfo;
@@ -1,10 +0,0 @@
1
- import type { FeedbackInfo } from '../../types';
2
- import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
3
- import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
4
- export declare const openFeedbackDialog: (feedbackInfo?: FeedbackInfo) => Promise<unknown>;
5
- export type FeedbackDialogPlugin = NextEditorPlugin<'feedbackDialog', {
6
- pluginConfiguration: FeedbackInfo;
7
- dependencies: [OptionalPlugin<AnalyticsPlugin>];
8
- }>;
9
- declare const feedbackDialog: FeedbackDialogPlugin;
10
- export default feedbackDialog;
@@ -1,8 +0,0 @@
1
- declare global {
2
- interface Window {
3
- jQuery: any;
4
- ATL_JQ_PAGE_PROPS: any;
5
- }
6
- }
7
- declare const loadJiraCollectorDialogScript: (labels: Array<string>, packageName: string, coreVersion: string, packageVersion: string, sessionId: string, contentId: string, tabId: string) => Promise<() => void>;
8
- export default loadJiraCollectorDialogScript;
@@ -1,2 +0,0 @@
1
- declare const pickBy: (test: (key: string, value: any) => boolean, object: any) => any;
2
- export default pickBy;
@@ -1,6 +0,0 @@
1
- /**
2
- * Inspired from:
3
- * https://stackoverflow.com/questions/11219582/how-to-detect-my-browser-version-and-operating-system-using-javascript
4
- */
5
- declare const getBrowserInfo: (nAgt: string) => string;
6
- export default getBrowserInfo;
@@ -1,6 +0,0 @@
1
- /**
2
- * Inspired from:
3
- * https://stackoverflow.com/questions/9514179/how-to-find-the-operating-system-version-using-javascript
4
- */
5
- declare const getDeviceInfo: (nAgt: string, nVersion: string) => string;
6
- export default getDeviceInfo;
@@ -1,12 +0,0 @@
1
- import type { FeedbackInfo } from '../../types';
2
- import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
3
- import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
4
- export declare const openFeedbackDialog: (feedbackInfo?: FeedbackInfo) => Promise<unknown>;
5
- export type FeedbackDialogPlugin = NextEditorPlugin<'feedbackDialog', {
6
- pluginConfiguration: FeedbackInfo;
7
- dependencies: [
8
- OptionalPlugin<AnalyticsPlugin>
9
- ];
10
- }>;
11
- declare const feedbackDialog: FeedbackDialogPlugin;
12
- export default feedbackDialog;
@@ -1,8 +0,0 @@
1
- declare global {
2
- interface Window {
3
- jQuery: any;
4
- ATL_JQ_PAGE_PROPS: any;
5
- }
6
- }
7
- declare const loadJiraCollectorDialogScript: (labels: Array<string>, packageName: string, coreVersion: string, packageVersion: string, sessionId: string, contentId: string, tabId: string) => Promise<() => void>;
8
- export default loadJiraCollectorDialogScript;
@@ -1,2 +0,0 @@
1
- declare const pickBy: (test: (key: string, value: any) => boolean, object: any) => any;
2
- export default pickBy;