@atlaskit/editor-core 231.0.4 → 231.0.5

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,35 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 231.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`a034f535638cc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a034f535638cc) -
8
+ Add structured Quick Insert previews with localised title, description and attribution under
9
+ platform_editor_slash_command.
10
+
11
+ Exclude footer and category navigation actions from previews. Left-align attribution, use subtle
12
+ title and attribution text, and default description text.
13
+
14
+ Show text previews even without preview metadata, and reserve a fixed image area while images load
15
+ or when they fail. Keep previews within the viewport, flipping left when needed, with compact
16
+ panel dimensions and typography.
17
+
18
+ Replace baked panel screenshots with image-only assets. Remove image fields from text-only legacy
19
+ previews while preserving their attribution.
20
+
21
+ Let extension providers own their preview images and attribution. Pass preview metadata through
22
+ the Company Hub manifest factory and remove Editor's fallback preview registry.
23
+
24
+ Localize provider attribution names and display Confluence and Jira product icons instead of the
25
+ attribution prefix when an icon is present. Allow the Dropbox manifest to receive the host's
26
+ message formatter.
27
+
28
+ - [`f0e0122d5fb61`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f0e0122d5fb61) -
29
+ Handle array-valued extension actions when inserting Rovo Skills with
30
+ platform_editor_slash_command enabled.
31
+ - Updated dependencies
32
+
3
33
  ## 231.0.4
4
34
 
5
35
  ### Patch Changes
@@ -10,7 +10,6 @@ var _menuItem = require("@atlaskit/editor-common/quick-insert/menu-item");
10
10
  var _useQuickInsertContext = require("@atlaskit/editor-common/quick-insert/use-quick-insert-context");
11
11
  var _executeExtensionQuickInsertItem = require("./executeExtensionQuickInsertItem");
12
12
  var _ExtensionQuickInsertIcon = require("./ExtensionQuickInsertIcon");
13
- var _getExtensionQuickInsertPreviewImageUrls = require("./getExtensionQuickInsertPreviewImageUrls");
14
13
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
15
14
  var ExtensionQuickInsertMenuItem = exports.ExtensionQuickInsertMenuItem = function ExtensionQuickInsertMenuItem(_ref) {
16
15
  var apiRef = _ref.apiRef,
@@ -46,7 +45,8 @@ var ExtensionQuickInsertMenuItem = exports.ExtensionQuickInsertMenuItem = functi
46
45
  }),
47
46
  isDisabled: isOffline,
48
47
  onSelect: onSelect,
49
- previewImageUrls: (0, _getExtensionQuickInsertPreviewImageUrls.getExtensionQuickInsertPreviewImageUrls)(item),
48
+ preview: item.preview,
49
+ description: item.description,
50
50
  title: item.title
51
51
  });
52
52
  };
@@ -87,7 +87,7 @@ var executeExtensionQuickInsertItem = exports.executeExtensionQuickInsertItem =
87
87
  }
88
88
  api.core.actions.execute(function (_ref2) {
89
89
  var tr = _ref2.tr;
90
- var content = (0, _processRawValue.processRawValue)(tr.doc.type.schema, node);
90
+ var content = Array.isArray(node) ? (0, _processRawValue.processRawFragmentValue)(tr.doc.type.schema, node) : (0, _processRawValue.processRawValue)(tr.doc.type.schema, node);
91
91
  return content ? (0, _utils.safeInsert)(content)(tr).scrollIntoView() : null;
92
92
  });
93
93
  }
@@ -140,7 +140,7 @@ function _extensionProviderToQuickInsertProvider() {
140
140
  return Promise.resolve([]);
141
141
  }
142
142
  var quickInsertItems = (0, _extensions.getQuickInsertItemsFromModule)(extensions, function (item) {
143
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_slash_app_category_analytics') || (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_slash_command')) && item.app ? {
143
+ return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_slash_app_category_analytics') || (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_slash_command')) && item.app ? {
144
144
  app: item.app
145
145
  } : {}), {}, {
146
146
  // Add module key so typeahead/quick-insert can identify items
@@ -148,7 +148,10 @@ function _extensionProviderToQuickInsertProvider() {
148
148
  // events, this standardises and makes our items more predictable.
149
149
  key: item.key,
150
150
  title: item.title,
151
- description: item.description,
151
+ description: item.description
152
+ }, item.preview ? {
153
+ preview: item.preview
154
+ } : {}), {}, {
152
155
  icon: function icon() {
153
156
  if ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_loosely_lazy_migration')) {
154
157
  return /*#__PURE__*/_react.default.createElement(LazyExtensionIcon, {
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
8
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
9
- var version = exports.version = "231.0.3";
9
+ var version = exports.version = "231.0.4";
@@ -3,7 +3,6 @@ import { QuickInsertMenuItem } from '@atlaskit/editor-common/quick-insert/menu-i
3
3
  import { useQuickInsertContext } from '@atlaskit/editor-common/quick-insert/use-quick-insert-context';
4
4
  import { executeExtensionQuickInsertItem } from './executeExtensionQuickInsertItem';
5
5
  import { ExtensionQuickInsertIcon } from './ExtensionQuickInsertIcon';
6
- import { getExtensionQuickInsertPreviewImageUrls } from './getExtensionQuickInsertPreviewImageUrls';
7
6
  export const ExtensionQuickInsertMenuItem = ({
8
7
  apiRef,
9
8
  createAnalyticsEvent,
@@ -41,7 +40,8 @@ export const ExtensionQuickInsertMenuItem = ({
41
40
  }),
42
41
  isDisabled: isOffline,
43
42
  onSelect: onSelect,
44
- previewImageUrls: getExtensionQuickInsertPreviewImageUrls(item),
43
+ preview: item.preview,
44
+ description: item.description,
45
45
  title: item.title
46
46
  });
47
47
  };
@@ -1,7 +1,7 @@
1
1
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, fireAnalyticsEvent, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
2
2
  import { resolveImport } from '@atlaskit/editor-common/extensions';
3
3
  import { logException } from '@atlaskit/editor-common/monitoring';
4
- import { processRawValue } from '@atlaskit/editor-common/process-raw-value';
4
+ import { processRawFragmentValue, processRawValue } from '@atlaskit/editor-common/process-raw-value';
5
5
  import { findInsertLocation } from '@atlaskit/editor-common/utils/analytics';
6
6
  import { safeInsert } from '@atlaskit/editor-prosemirror/utils';
7
7
  const sendAnalytics = (item, selection, createAnalyticsEvent, source) => {
@@ -68,7 +68,7 @@ export const executeExtensionQuickInsertItem = ({
68
68
  api.core.actions.execute(({
69
69
  tr
70
70
  }) => {
71
- const content = processRawValue(tr.doc.type.schema, node);
71
+ const content = Array.isArray(node) ? processRawFragmentValue(tr.doc.type.schema, node) : processRawValue(tr.doc.type.schema, node);
72
72
  return content ? safeInsert(content)(tr).scrollIntoView() : null;
73
73
  });
74
74
  }
@@ -113,6 +113,9 @@ export async function extensionProviderToQuickInsertProvider(extensionProvider,
113
113
  key: item.key,
114
114
  title: item.title,
115
115
  description: item.description,
116
+ ...(item.preview ? {
117
+ preview: item.preview
118
+ } : {}),
116
119
  icon: () => {
117
120
  if (isExperimentEnabled('platform_editor_loosely_lazy_migration')) {
118
121
  return /*#__PURE__*/React.createElement(LazyExtensionIcon, {
@@ -1,3 +1,3 @@
1
1
  export const name = "@atlaskit/editor-core";
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export const version = "231.0.3";
3
+ export const version = "231.0.4";
@@ -3,7 +3,6 @@ import { QuickInsertMenuItem } from '@atlaskit/editor-common/quick-insert/menu-i
3
3
  import { useQuickInsertContext } from '@atlaskit/editor-common/quick-insert/use-quick-insert-context';
4
4
  import { executeExtensionQuickInsertItem } from './executeExtensionQuickInsertItem';
5
5
  import { ExtensionQuickInsertIcon } from './ExtensionQuickInsertIcon';
6
- import { getExtensionQuickInsertPreviewImageUrls } from './getExtensionQuickInsertPreviewImageUrls';
7
6
  export var ExtensionQuickInsertMenuItem = function ExtensionQuickInsertMenuItem(_ref) {
8
7
  var apiRef = _ref.apiRef,
9
8
  createAnalyticsEvent = _ref.createAnalyticsEvent,
@@ -38,7 +37,8 @@ export var ExtensionQuickInsertMenuItem = function ExtensionQuickInsertMenuItem(
38
37
  }),
39
38
  isDisabled: isOffline,
40
39
  onSelect: onSelect,
41
- previewImageUrls: getExtensionQuickInsertPreviewImageUrls(item),
40
+ preview: item.preview,
41
+ description: item.description,
42
42
  title: item.title
43
43
  });
44
44
  };
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, fireAnalyticsEvent, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
5
5
  import { resolveImport } from '@atlaskit/editor-common/extensions';
6
6
  import { logException } from '@atlaskit/editor-common/monitoring';
7
- import { processRawValue } from '@atlaskit/editor-common/process-raw-value';
7
+ import { processRawFragmentValue, processRawValue } from '@atlaskit/editor-common/process-raw-value';
8
8
  import { findInsertLocation } from '@atlaskit/editor-common/utils/analytics';
9
9
  import { safeInsert } from '@atlaskit/editor-prosemirror/utils';
10
10
  var sendAnalytics = function sendAnalytics(item, selection, createAnalyticsEvent, source) {
@@ -80,7 +80,7 @@ export var executeExtensionQuickInsertItem = function executeExtensionQuickInser
80
80
  }
81
81
  api.core.actions.execute(function (_ref2) {
82
82
  var tr = _ref2.tr;
83
- var content = processRawValue(tr.doc.type.schema, node);
83
+ var content = Array.isArray(node) ? processRawFragmentValue(tr.doc.type.schema, node) : processRawValue(tr.doc.type.schema, node);
84
84
  return content ? safeInsert(content)(tr).scrollIntoView() : null;
85
85
  });
86
86
  }
@@ -135,7 +135,7 @@ function _extensionProviderToQuickInsertProvider() {
135
135
  return Promise.resolve([]);
136
136
  }
137
137
  var quickInsertItems = getQuickInsertItemsFromModule(extensions, function (item) {
138
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, (isExperimentEnabled('platform_editor_slash_app_category_analytics') || isExperimentEnabled('platform_editor_slash_command')) && item.app ? {
138
+ return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, (isExperimentEnabled('platform_editor_slash_app_category_analytics') || isExperimentEnabled('platform_editor_slash_command')) && item.app ? {
139
139
  app: item.app
140
140
  } : {}), {}, {
141
141
  // Add module key so typeahead/quick-insert can identify items
@@ -143,7 +143,10 @@ function _extensionProviderToQuickInsertProvider() {
143
143
  // events, this standardises and makes our items more predictable.
144
144
  key: item.key,
145
145
  title: item.title,
146
- description: item.description,
146
+ description: item.description
147
+ }, item.preview ? {
148
+ preview: item.preview
149
+ } : {}), {}, {
147
150
  icon: function icon() {
148
151
  if (isExperimentEnabled('platform_editor_loosely_lazy_migration')) {
149
152
  return /*#__PURE__*/React.createElement(LazyExtensionIcon, {
@@ -1,3 +1,3 @@
1
1
  export var name = "@atlaskit/editor-core";
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export var version = "231.0.3";
3
+ export var version = "231.0.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "231.0.4",
3
+ "version": "231.0.5",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -59,7 +59,7 @@
59
59
  "@atlaskit/editor-prosemirror": "^9.0.0",
60
60
  "@atlaskit/editor-shared-styles": "^4.3.0",
61
61
  "@atlaskit/editor-ssr-renderer": "^16.0.0",
62
- "@atlaskit/editor-toolbar": "^2.7.0",
62
+ "@atlaskit/editor-toolbar": "^2.8.0",
63
63
  "@atlaskit/editor-toolbar-model": "^1.2.0",
64
64
  "@atlaskit/emoji": "^72.4.0",
65
65
  "@atlaskit/feature-gate-js-client": "^7.0.0",
@@ -76,8 +76,8 @@
76
76
  "@atlaskit/primitives": "^22.5.0",
77
77
  "@atlaskit/react-compiler-gating": "^0.2.0",
78
78
  "@atlaskit/react-ufo": "^8.0.0",
79
- "@atlaskit/task-decision": "^21.10.0",
80
- "@atlaskit/tmp-editor-statsig": "^208.0.0",
79
+ "@atlaskit/task-decision": "^21.11.0",
80
+ "@atlaskit/tmp-editor-statsig": "^209.0.0",
81
81
  "@atlaskit/tokens": "^20.0.0",
82
82
  "@atlaskit/tooltip": "^24.3.0",
83
83
  "@atlaskit/width-detector": "^7.2.0",
@@ -96,7 +96,7 @@
96
96
  "uuid": "^11.1.1"
97
97
  },
98
98
  "peerDependencies": {
99
- "@atlaskit/editor-common": "^125.2.0",
99
+ "@atlaskit/editor-common": "^125.4.0",
100
100
  "@atlaskit/link-provider": "^6.0.0",
101
101
  "@atlaskit/media-core": "^39.0.0",
102
102
  "react": "^18.2.0 || ^19.2.0",
package/tsconfig.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "extends": "./tsconfig.dev.json",
2
+ "extends": "./tsconfig.app.json",
3
3
  "compilerOptions": {
4
4
  "disableReferencedProjectLoad": true,
5
5
  "disableSolutionSearching": true
@@ -1,365 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.getExtensionQuickInsertPreviewImageUrls = void 0;
8
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _snippetPreviewImageUrls = require("@atlaskit/editor-common/quick-insert/snippet-preview-image-urls");
10
- var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
11
- 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; }
12
- 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; }
13
- var embedPreviewImageUrlsByKey = {
14
- 'third-party-quick-insert-embeds:third-party-embed-amplitude': {
15
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/7v8shu6n3wd15644f3ys785628dkt632.png',
16
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/2r34o120k40e0us4w66oqpud63o4lef4.png'
17
- },
18
- 'dropbox:item': {
19
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/83f1773ur08qm4t3bqaabpwb173313tg.png',
20
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/37v2dk5n1ltwc82j1w76dv1tyr8puwq0.png'
21
- },
22
- 'third-party-quick-insert-embeds:third-party-embed-figma': {
23
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/svedc2lju60bgq3r43kfmi7213wj46as.png',
24
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/u80s30071b4c10vdjr5rw0uje8cu2pk7.png'
25
- },
26
- 'third-party-quick-insert-embeds:third-party-embed-google-drive': {
27
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/y01wj4t58w86byx86l6k81a22axud131.png',
28
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/wi413m0837rjykg23r6y0256b7377185.png'
29
- },
30
- 'iframe:iframe': {
31
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/77p6d5rb343gue8580bacbl0xf82u5jv.png',
32
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/72a0j8eddxg82rnp8j48bipi8sq8g0ke.png'
33
- }
34
- };
35
- var dataAndChartsPreviewImageUrlsByKey = {
36
- 'quick-insert-assets-menu-item': {
37
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/64d41r462m2343iomn821ver0g4ohh37.png',
38
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/0w58rc60jh54m68224qqinuk52d6lldt.png'
39
- },
40
- 'blog-posts': {
41
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/syvwj7cg10q6n1586u2l64q78o2dc54d.png',
42
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/5n54qb4j1pn588ud6604eh4c8hj5422v.png'
43
- },
44
- 'change-history': {
45
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/623tjta5b2flb1b7lf3t0dp6r4c858v5.png',
46
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/u83vu4k3if5kh4a12e34pr5jf833e71l.png'
47
- },
48
- children: {
49
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/a0qd7lp8011o238rmf3m872hb765y2g1.png',
50
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/ttbt2qi6tkl6cgdyig1th4x837g3c018.png'
51
- },
52
- details: {
53
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/11j376ovg761h7o2vfr0l6n8okxf22m4.png',
54
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/857b0i4hxk3pxeq3h5v2ykfav4niv5hx.png'
55
- },
56
- detailssummary: {
57
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/566j328lm7022fx64cv77w8xtyodre44.png',
58
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/07k170i7odd417hvcpkp800353211gwi.png'
59
- },
60
- 'content-report-table': {
61
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/ewhj8d8216yc6lyny58l2w4h3nikbs06.png',
62
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/060xk53i83jkbc5m5op8v44887tv3038.png'
63
- },
64
- pagetree: {
65
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/8g3qkn50t2m3n05465s783f54517su0j.png',
66
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/kji77816l70343e211ll54222q3i0m57.png'
67
- },
68
- contributors: {
69
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/f115sn7v8x2oo65outd1g7124u03dfj1.png',
70
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/22801wwe6yf82mcfcrd7vg54620p5e0g.png'
71
- },
72
- 'database-extension:create-database': {
73
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/65m57812l47f0a55qpm51t8glk24vsne.png',
74
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/lqqxkx57ue3ws60m642br54ss6m3neow.png'
75
- },
76
- 'decisionreport:decisionreport': {
77
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/1w6a5k5f1yndoy2g3j158n151020v71y.png',
78
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/3347ejx66xy7y375s232mbeg0ia1rdm8.png'
79
- },
80
- 'database-extension:reference-database': {
81
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/5b815435xso5xv248niy0dg3m3yr2w6c.png',
82
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/he1vu1p7ngbjcy6lw8i8vh601aw14ct1.png'
83
- },
84
- contentbylabel: {
85
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/3i6n45of3ks7lm5v65k74r0580mqya62.png',
86
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/8hy8d25516esmq4q267bf15483851454.png'
87
- },
88
- 'quick-insert-confluence-list-menu-item': {
89
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/8jh31f0k143b475y5tun230v166c7087.png',
90
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/6co68akkw56t83fql3m823qi21k8776u.png'
91
- },
92
- 'quick-insert-jira-work-items-menu-item': {
93
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/m284qw5066530tr5yd11473uq1l8t86t.png',
94
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/4b1455q46emetd0jxv70xuo7i7lwo574.png'
95
- },
96
- listlabels: {
97
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/3k50k14u80g034t323q3m13m6820ag70.png',
98
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/1a51b87u6bvsq84pup1wy1n32pg2s6c7.png'
99
- },
100
- livesearch: {
101
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/80v4vx47y130st85qx46432fo18g0sbx.png',
102
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/0n8ie724cnnvl62w1m521k8eq5v73u76.png'
103
- },
104
- pagetreesearch: {
105
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/g32sx54apgb3yt844qi4y28gu835q682.png',
106
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/w7o6smtuy41bg08327dy2ai0fht2lc6m.png'
107
- },
108
- 'popular-labels': {
109
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/oqgl5347hqmx6u3v837q1bh2q70ls7bd.png',
110
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/a2x44n7aasba646mlmqht7cqfq6k8783.png'
111
- },
112
- 'questionslist-macro-native:questionslist-macro-native': {
113
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/37x027653yfd01ik041qnf005f1j5867.png',
114
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/4f6f51758m5m6nu06x557nm115613233.png'
115
- },
116
- 'recently-updated': {
117
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/g4y1gsehg600ge0nem6r2xv4b0ga7106.png',
118
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/g2vqf86yj16fi74mny6b265mw5l181fx.png'
119
- },
120
- 'gadget:spaces': {
121
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/jw8r2233444raq4p3v56obq230hh5a8n.png',
122
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/b3py8prmf21tl73nb42gc67a0i437o1q.png'
123
- },
124
- 'tasks-report-macro': {
125
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/n2lm728m8n7au2q455wy57m407a8i74b.png',
126
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/e7qda5xter48ao38ieq82jgv3m7j3g8c.png'
127
- },
128
- calendar: {
129
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/01d5gi6lifcsu5el861v8p7kw84ja8it.png',
130
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/g7v75uv8mw0i7hw36181xx2nly2674pi.png'
131
- },
132
- userlister: {
133
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/5cy6l23fwmo2820uce5m50g1222l0hpb.png',
134
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/4883g3sm4pdy8w3mmphdqj81588c37gf.png'
135
- },
136
- profile: {
137
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/evx8rg04mer8binf15e8ao0imm5kv7ek.png',
138
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/o2kexap23ijq8jeqhpvi8lgc51dex3wj.png'
139
- }
140
- };
141
- var otherPreviewImageUrlsByKey = {
142
- 'excerpt:excerpt': {
143
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/1h408wk0e4x6efhby84hbc583nx5b0b5.png',
144
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/0j5s4a60jjbrq3yoa7kfnkft28403127.png'
145
- },
146
- 'excerpt-include:excerpt-include': {
147
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/dg718ggxcx60dj7ng86fpqmwbv7vauny.png',
148
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/y373d21g768gmvjao5db38kw4460m72r.png'
149
- },
150
- 'include:include': {
151
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/s12155hkaoc81aa0eh58y54402s8t346.png',
152
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/61yskd00re82i80b8r6pfxp60pi4852s.png'
153
- },
154
- 'jirachart:jirachart': {
155
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/30g82ea1p64616h40s110ysud47dnof6.png',
156
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/114de8qe6dy877s65xh1a2dil1r86x73.png'
157
- },
158
- 'jira:jira': {
159
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/8ttib573524136b5lffq3a1go05x507d.png',
160
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/pdnn81xj6e8v56nye6rnft3rd4yhnc05.png'
161
- },
162
- 'portfolioforjiraplan:portfolioforjiraplan': {
163
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/24g0yt8c54671463162f5q455qcki3id.png',
164
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/c2hy8b245yg1dt2776ol5sx57n045nv0.png'
165
- },
166
- 'opsgenie-incident-timeline-eu-macro:opsgenie-incident-timeline-eu-macro': {
167
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/qo0u146811738ixd6l13nud48pv57510.png',
168
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/qnq1bn07a3k0v4m10hoi487p837obx53.png'
169
- },
170
- 'sharelinks-urlmacro:sharelinks-urlmacro': {
171
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/0028h1741o411uw4qi8icbg138kus32e.png',
172
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/myhw531c3748qn4ro51vf450vk0qg481.png'
173
- },
174
- 'toc-zone:toc-zone': {
175
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/1p16277ig16wc6kelloa542k33b18mm2.png',
176
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/s4q2ap8q4135r0r3i1tym1d5koxdonb1.png'
177
- },
178
- 'viewpdf:viewpdf': {
179
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/jt685rp527nfo8jqp6o5o0r31l3rpfux.png',
180
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/30u3v86x652ah52ruhqj1ap0s0ve4ey2.png'
181
- },
182
- 'viewxls:viewxls': {
183
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/b11p6ksb8r6j6g2604p67ab53f23u6f5.png',
184
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/r426m140lbp7gs2gxbe015e21kf23j8l.png'
185
- },
186
- 'gadget:activity stream': {
187
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/7v3a1rvva7gxr874o5qah5k61365hod5.png',
188
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/nh7404rduyw5tbne4143426evuk7hvg8.png'
189
- },
190
- 'gadget:agile wallboard gadget': {
191
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/n611u81ca8fkyv5nk6cl6j1081e805tr.png',
192
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/3o7vtt14rtpe3sna7mras6oih86nssb6.png'
193
- },
194
- 'gadget:assigned to me': {
195
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/d72jy2r18q6v06s13k2f6x3fymrr4on7.png',
196
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/5c62343jh3411ido38440xx0007cx6ls.png'
197
- },
198
- 'gadget:average age chart': {
199
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/i53kn1igq64m5dip4eg1030j15yd7xxe.png',
200
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/t136146lvs3x60456gnsghtv730uaftn.png'
201
- },
202
- 'gadget:average number of times in status': {
203
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/u4v77u1lwcy5g08y047q33dbiv42dkit.png',
204
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/16v2eq2c1df0mrf2jo6xic526527nfh1.png'
205
- },
206
- 'gadget:days remaining in sprint gadget': {
207
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/805320gvqd6cbr23yrv271oas2u061s5.png',
208
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/41j35y64652g06uru332kt2a0pk77j03.png'
209
- },
210
- 'gadget:filter results': {
211
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/w0n60p750b2275k226gri2j6i366jt0e.png',
212
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/j706ug0u5nk40i1lhrt05j63grc36x0u.png'
213
- },
214
- 'gadget:heat map': {
215
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/qoepx85h21t4u00cht35nc3ssl4i72j5.png',
216
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/w574xrh77oxbmb18f0ro1bd80x417426.png'
217
- },
218
- 'gadget:issues in progress': {
219
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/666u7h3tp16ad4k8u24d4u1155n1v7hg.png',
220
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/go2d8b1qs7h07b17326lx8r8p28jm011.png'
221
- },
222
- 'gadget:jira issues calendar': {
223
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/13o0sk45vlf25x1m3w14gsy146k25b14.png',
224
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/j23063ot2a014a2a51y6i0o1keo0kanr.png'
225
- },
226
- 'gadget:jira road map': {
227
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/h6u3kb7116jr12w3f586stmc850827h3.png',
228
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/q23v3a23018y2856kew3fsork63bg6p2.png'
229
- },
230
- 'gadget:labels gadget': {
231
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/7u8gpvv82s3e2833204nm6m1k3301c46.png',
232
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/42hjlte7y364o8y4e5udkl11o22a2ac3.png'
233
- },
234
- 'gadget:pie chart': {
235
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/v4b6d7to551136834oe1a0xx66n7mv5e.png',
236
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/pdq60d803b655il4x3m0co608guc56ub.png'
237
- },
238
- 'gadget:quick links': {
239
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/onlh3rc6p0qj15rsysxa3ep5b183hk40.png',
240
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/k51qkw636t010l5h1vrs05c7i073y0xp.png'
241
- },
242
- 'gadget:recently created chart': {
243
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/t5in18tcubtbr18yv1gr0ap26x7d6bh3.png',
244
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/ia4jrrsg4mw8tu0gtj88d2yr5w6s20fm.png'
245
- },
246
- 'gadget:resolution time': {
247
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/3dek0066jn31qfkk2l2hn011um087y72.png',
248
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/msw0hn3462vvai4l4jkp50xcm87741j6.png'
249
- },
250
- 'gadget:sprint burndown gadget': {
251
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/2qqrp3vl4rv2p443566826jadj38rfrj.png',
252
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/qic3bcq5sqhd7r00qpj3i6240n3uw3fp.png'
253
- },
254
- 'gadget:sprint health gadget': {
255
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/uoqla656675p5wwc3a8v824768lip528.png',
256
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/pnngo5y00g18eos4je3r20ga0c666c68.png'
257
- },
258
- 'gadget:time since chart': {
259
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/f7g8053ww4deogfid2h2pj2nw6n8582u.png',
260
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/20wj0kb8mjjj7in0hu62j4ska17ug5s3.png'
261
- },
262
- 'gadget:time to first response': {
263
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/l4cy50n75hr166cpohxpd3h5038e8sl7.png',
264
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/8kkdphd2l3gb7w06dboc82rmtm86xk7r.png'
265
- },
266
- 'gadget:two dimensional filter statistics': {
267
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/6s1x266h56m7p4q758jem2k03hbu15gb.png',
268
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/hjt70wg3tds43ev34nxv1r7l50170f4l.png'
269
- },
270
- 'gadget:version report': {
271
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/2143nj51e834657316q5n5j6kbq3h3m7.png',
272
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/rgi5il8d845k40f65w0f8a678c1rf51q.png'
273
- },
274
- 'gadget:voted work items': {
275
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/0n262m847lgjj174x658ps04k6j513r6.png',
276
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/rcn6qrr638k1v5y6xrw8g512f2530244.png'
277
- },
278
- 'gadget:watched issues': {
279
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/v418o500l40ga5gtq6m23x5t17k47wbe.png',
280
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/mv0w504r53gvkx38g3y74pd65k5hktop.png'
281
- },
282
- 'gadget:work item statistics': {
283
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/4315hi70mlh4eqbn6215p10s4il7os34.png',
284
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/l3120n2755pw6r2o2q24tmsgu6658533.png'
285
- },
286
- 'gadget:workload pie chart': {
287
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/v5j8p100viey44g61cdc61d53465gda5.png',
288
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/84tce4xo2nqe0712oil1f08n5160a11v.png'
289
- }
290
- };
291
- var previewImageUrlsByKey = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, dataAndChartsPreviewImageUrlsByKey), embedPreviewImageUrlsByKey), otherPreviewImageUrlsByKey), {}, {
292
- 'profile-picture:profile-picture': {
293
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/35rb2mbxc2dt8p7op8u8lyss5h220428.png',
294
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/4o3lpe2eh4nlakav375621i73do50kyx.png'
295
- },
296
- 'whiteboard-extension:create-brainstorming': {
297
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/6t0pky2s6s802i85x3xrl2jkliln4k10.png',
298
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/5i7opmkn02g8a163v0udjrn15723ti65.png'
299
- },
300
- 'whiteboard-extension:create-diagram': {
301
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/b53mwb352cu4m2ic376r3a7l8xcb2lp8.png',
302
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/3qcyi8f2l7020lf8t2630h76psa8sef2.png'
303
- },
304
- 'whiteboard-extension:create-flowchart': {
305
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/7wnhq0ag04nnvr555538abm5uln826r5.png',
306
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/3mq78tb8481m3axkf16qp24pv16s0n37.png'
307
- },
308
- 'whiteboard-extension:create-retrospective': {
309
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/ha5g3fvhi18174t4ua8v3f1xbgg5aqle.png',
310
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/0ya7355442s42m56283l5q1erekh4278.png'
311
- },
312
- 'whiteboard-extension:create-roadmap': {
313
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/q86286x2vfn2dly7sajy32iaj4o506iy.png',
314
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/8nqml2m2w0n3jeah3x5y8ydr7u8dmn7t.png'
315
- },
316
- 'whiteboard-extension:create-whiteboard': {
317
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/4u6tb8343dv71eotl5462nydlq3544ut.png',
318
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/k177s112506n0bn788227s0ig45nko57.png'
319
- },
320
- 'anchor:anchor': {
321
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/5f440bb8m37yig3u77s6c8200re8mto0.png',
322
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/y42w6i56fk22vb3g5120d43qfwte8a78.png'
323
- },
324
- 'cards:quick-insert': {
325
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/20cikbp248b6uuagmv870057c46b546m.png',
326
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/1jdjwc5fe5q64gf4f6i6i66tp361fv86.png'
327
- },
328
- 'carousel:quick-insert': {
329
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/20g273op21fx0t521ap2xg3b36125vpa.png',
330
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/d5t273i2jkax3c2223172a15kpqxww35.png'
331
- },
332
- 'com.atlassian.linking-platform.create:linking-platform-create-confluence-page': {
333
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/3n23b6b5h222r3v068bt32dvx54l5f21.png',
334
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/bo85x7j087bjb2q45rb14nx2yf18k6l7.png'
335
- },
336
- 'com.atlassian.linking-platform.create:linking-platform-create-jira-issue': {
337
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/r8200b630kethcrda0fbs4nt7j180715.png',
338
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/0n02x8u7ip23y371rkval1ggq5qk738i.png'
339
- },
340
- 'native-tabs:native-tabs': {
341
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/hvdl25h7i4xrv1gfxc8yo04nkfk63acq.png',
342
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/n857jlk2ahk2ymsh6derrt3sy75l026j.png'
343
- },
344
- 'smart-button:quick-insert': {
345
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/101m1324u46r06ksvg8ak64s2u0vm7l7.png',
346
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/3cqw35441m20336hn04h731532i1x2pe.png'
347
- },
348
- 'spotlight:quick-insert': {
349
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/x2qdma2vfrd7h55vp5i4x66fr42b877w.png',
350
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/ngi4osf40j5e37flt8e1pqw345pc346v.png'
351
- },
352
- 'toc:toc': {
353
- dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/7jj541q4pq1joqf0ar53j42kr6371t1t.png',
354
- light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/v8eyy0fvu61fb8a4b4teea4pjs7g2842.png'
355
- }
356
- });
357
- var getExtensionQuickInsertPreviewImageUrls = exports.getExtensionQuickInsertPreviewImageUrls = function getExtensionQuickInsertPreviewImageUrls(item) {
358
- var _item$key, _ref, _ref2, _dataAndChartsPreview;
359
- var snippetKeyPrefix = 'snippet-extension:snippet-';
360
- if ((_item$key = item.key) !== null && _item$key !== void 0 && _item$key.startsWith(snippetKeyPrefix)) {
361
- return (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_slash_command') ? (0, _snippetPreviewImageUrls.getSnippetPreviewImageUrls)(item.key.slice(snippetKeyPrefix.length)) : undefined;
362
- }
363
- var normalizedTitle = item.title.toLowerCase();
364
- return (_ref = (_ref2 = item.key ? previewImageUrlsByKey[item.key] : undefined) !== null && _ref2 !== void 0 ? _ref2 : item.extensionKey === 'gadget' ? (_dataAndChartsPreview = dataAndChartsPreviewImageUrlsByKey["".concat(item.extensionKey, ":").concat(normalizedTitle)]) !== null && _dataAndChartsPreview !== void 0 ? _dataAndChartsPreview : otherPreviewImageUrlsByKey["".concat(item.extensionKey, ":").concat(normalizedTitle)] : undefined) !== null && _ref !== void 0 ? _ref : item.extensionKey ? dataAndChartsPreviewImageUrlsByKey[item.extensionKey] : undefined;
365
- };