@atlaskit/smart-card 43.26.0 → 43.26.2

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 (78) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-rovo-chat-action--default.png +2 -2
  3. package/dist/cjs/extractors/flexible/actions/extract-rovo-chat-action.js +12 -8
  4. package/dist/cjs/extractors/flexible/actions/index.js +2 -1
  5. package/dist/cjs/extractors/flexible/index.js +3 -1
  6. package/dist/cjs/messages.js +55 -0
  7. package/dist/cjs/utils/analytics/analytics.js +1 -1
  8. package/dist/cjs/view/FlexibleCard/assets/ai-chapter-icon.compiled.css +4 -0
  9. package/dist/cjs/view/FlexibleCard/assets/ai-chapter-icon.js +51 -0
  10. package/dist/cjs/view/FlexibleCard/assets/ai-edit-icon.compiled.css +4 -0
  11. package/dist/cjs/view/FlexibleCard/assets/ai-edit-icon.js +74 -0
  12. package/dist/cjs/view/FlexibleCard/assets/ai-search-icon.compiled.css +4 -0
  13. package/dist/cjs/view/FlexibleCard/assets/ai-search-icon.js +66 -0
  14. package/dist/cjs/view/FlexibleCard/components/actions/rovo-chat-action/index.js +89 -47
  15. package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
  16. package/dist/cjs/view/FlexibleCard/components/elements/common/base-badge-element/index.js +1 -1
  17. package/dist/cjs/view/FlexibleCard/index.js +4 -2
  18. package/dist/cjs/view/HoverCard/components/views/resolved/index.js +1 -1
  19. package/dist/cjs/view/LinkUrl/index.js +1 -1
  20. package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-rovo-chat-action--default.png +2 -2
  21. package/dist/es2019/extractors/flexible/actions/extract-rovo-chat-action.js +12 -8
  22. package/dist/es2019/extractors/flexible/actions/index.js +2 -1
  23. package/dist/es2019/extractors/flexible/index.js +2 -0
  24. package/dist/es2019/messages.js +55 -0
  25. package/dist/es2019/utils/analytics/analytics.js +1 -1
  26. package/dist/es2019/view/FlexibleCard/assets/ai-chapter-icon.compiled.css +4 -0
  27. package/dist/es2019/view/FlexibleCard/assets/ai-chapter-icon.js +40 -0
  28. package/dist/es2019/view/FlexibleCard/assets/ai-edit-icon.compiled.css +4 -0
  29. package/dist/es2019/view/FlexibleCard/assets/ai-edit-icon.js +63 -0
  30. package/dist/es2019/view/FlexibleCard/assets/ai-search-icon.compiled.css +4 -0
  31. package/dist/es2019/view/FlexibleCard/assets/ai-search-icon.js +55 -0
  32. package/dist/es2019/view/FlexibleCard/components/actions/rovo-chat-action/index.js +97 -36
  33. package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
  34. package/dist/es2019/view/FlexibleCard/components/elements/common/base-badge-element/index.js +1 -1
  35. package/dist/es2019/view/FlexibleCard/index.js +4 -2
  36. package/dist/es2019/view/HoverCard/components/views/resolved/index.js +1 -1
  37. package/dist/es2019/view/LinkUrl/index.js +1 -1
  38. package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-rovo-chat-action--default.png +2 -2
  39. package/dist/esm/extractors/flexible/actions/extract-rovo-chat-action.js +12 -8
  40. package/dist/esm/extractors/flexible/actions/index.js +2 -1
  41. package/dist/esm/extractors/flexible/index.js +3 -1
  42. package/dist/esm/messages.js +55 -0
  43. package/dist/esm/utils/analytics/analytics.js +1 -1
  44. package/dist/esm/view/FlexibleCard/assets/ai-chapter-icon.compiled.css +4 -0
  45. package/dist/esm/view/FlexibleCard/assets/ai-chapter-icon.js +42 -0
  46. package/dist/esm/view/FlexibleCard/assets/ai-edit-icon.compiled.css +4 -0
  47. package/dist/esm/view/FlexibleCard/assets/ai-edit-icon.js +65 -0
  48. package/dist/esm/view/FlexibleCard/assets/ai-search-icon.compiled.css +4 -0
  49. package/dist/esm/view/FlexibleCard/assets/ai-search-icon.js +57 -0
  50. package/dist/esm/view/FlexibleCard/components/actions/rovo-chat-action/index.js +89 -47
  51. package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.js +1 -1
  52. package/dist/esm/view/FlexibleCard/components/elements/common/base-badge-element/index.js +1 -1
  53. package/dist/esm/view/FlexibleCard/index.js +4 -2
  54. package/dist/esm/view/HoverCard/components/views/resolved/index.js +1 -1
  55. package/dist/esm/view/LinkUrl/index.js +1 -1
  56. package/dist/types/extractors/flexible/actions/extract-rovo-chat-action.d.ts +3 -1
  57. package/dist/types/extractors/flexible/actions/index.d.ts +3 -1
  58. package/dist/types/extractors/flexible/index.d.ts +1 -1
  59. package/dist/types/messages.d.ts +2 -1
  60. package/dist/types/state/flexible-ui-context/types.d.ts +6 -1
  61. package/dist/types/view/FlexibleCard/assets/ai-chapter-icon.d.ts +5 -0
  62. package/dist/types/view/FlexibleCard/assets/ai-edit-icon.d.ts +5 -0
  63. package/dist/types/view/FlexibleCard/assets/ai-search-icon.d.ts +5 -0
  64. package/dist/types/view/FlexibleCard/components/actions/rovo-chat-action/index.d.ts +3 -2
  65. package/dist/types/view/FlexibleCard/types.d.ts +2 -1
  66. package/dist/types/view/HoverCard/components/views/resolved/types.d.ts +1 -1
  67. package/dist/types-ts4.5/extractors/flexible/actions/extract-rovo-chat-action.d.ts +3 -1
  68. package/dist/types-ts4.5/extractors/flexible/actions/index.d.ts +3 -1
  69. package/dist/types-ts4.5/extractors/flexible/index.d.ts +1 -1
  70. package/dist/types-ts4.5/messages.d.ts +2 -1
  71. package/dist/types-ts4.5/state/flexible-ui-context/types.d.ts +6 -1
  72. package/dist/types-ts4.5/view/FlexibleCard/assets/ai-chapter-icon.d.ts +5 -0
  73. package/dist/types-ts4.5/view/FlexibleCard/assets/ai-edit-icon.d.ts +5 -0
  74. package/dist/types-ts4.5/view/FlexibleCard/assets/ai-search-icon.d.ts +5 -0
  75. package/dist/types-ts4.5/view/FlexibleCard/components/actions/rovo-chat-action/index.d.ts +3 -2
  76. package/dist/types-ts4.5/view/FlexibleCard/types.d.ts +2 -1
  77. package/dist/types-ts4.5/view/HoverCard/components/views/resolved/types.d.ts +1 -1
  78. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 43.26.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 43.26.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`e011a4c296616`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e011a4c296616) -
14
+ [ux] Add RovoChatAction prompt message on HoverCard (plaintext)
15
+
3
16
  ## 43.26.0
4
17
 
5
18
  ### Minor Changes
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:fcbce780c83b3392e29adbec723c4e5d5cfd4ee3914d89b3cb39e3f591d2dfff
3
- size 29085
2
+ oid sha256:5c49849bc1c023980074b7130bd00742db96dfd1c90593c0025b035ab12b65dc
3
+ size 33364
@@ -4,16 +4,16 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
+ var _linkExtractors = require("@atlaskit/link-extractors");
7
8
  var _helpers = require("../../../state/helpers");
9
+ var _canShowAction = require("../../../utils/actions/can-show-action");
8
10
  var _rovo = require("../../../utils/rovo");
9
- var extractRovoChatAction = function extractRovoChatAction(response, rovoConfig, actionOptions) {
11
+ var _types = require("../../../view/Card/types");
12
+ var extractRovoChatAction = function extractRovoChatAction(response, rovoConfig, actionOptions, product) {
10
13
  var _actionOptions$rovoCh;
11
- // Experiment cleanup note: platform_sl_3p_auth_rovo_action
12
- // If action is available by default, we need to allow RovoChatAction to be configurable to opt-out
13
- // if (!canShowAction(CardAction.RovoChatAction, actionOptions)) {
14
- // return;
15
- // }
16
-
14
+ if (!(0, _canShowAction.canShowAction)(_types.CardAction.RovoChatAction, actionOptions)) {
15
+ return;
16
+ }
17
17
  var isRovoChatEnabled = (0, _rovo.getIsRovoChatEnabled)(rovoConfig);
18
18
  if (!isRovoChatEnabled) {
19
19
  return;
@@ -23,6 +23,10 @@ var extractRovoChatAction = function extractRovoChatAction(response, rovoConfig,
23
23
  // If feature isn't support all 3P, this value should come from meta.supportedFeature
24
24
  var isSupportedFeature = (0, _helpers.getExtensionKey)(response) === 'google-object-provider';
25
25
  var isOptIn = (actionOptions === null || actionOptions === void 0 || (_actionOptions$rovoCh = actionOptions.rovoChatAction) === null || _actionOptions$rovoCh === void 0 ? void 0 : _actionOptions$rovoCh.optIn) === true;
26
- return isSupportedFeature && isOptIn ? true : undefined;
26
+ var url = (0, _linkExtractors.extractSmartLinkUrl)(response);
27
+ return isSupportedFeature && isOptIn ? {
28
+ product: product,
29
+ url: url
30
+ } : undefined;
27
31
  };
28
32
  var _default = exports.default = extractRovoChatAction;
@@ -25,6 +25,7 @@ var extractFlexibleCardActions = exports.extractFlexibleCardActions = function e
25
25
  fireEvent = _ref.fireEvent,
26
26
  id = _ref.id,
27
27
  origin = _ref.origin,
28
+ product = _ref.product,
28
29
  response = _ref.response,
29
30
  rovoConfig = _ref.rovoConfig,
30
31
  url = _ref.url,
@@ -49,7 +50,7 @@ var extractFlexibleCardActions = exports.extractFlexibleCardActions = function e
49
50
  response: response,
50
51
  isPreviewPanelAvailable: isPreviewPanelAvailable,
51
52
  openPreviewPanel: openPreviewPanel
52
- })), _constants.ActionName.AutomationAction, (0, _extractAutomationAction.extractAutomationAction)(response)), _constants.InternalActionName.AISummaryAction, (0, _extractAiSummaryAction.extractAISummaryAction)(response, url, actionOptions, aiSummaryConfig)), (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') ? (0, _defineProperty2.default)({}, _constants.InternalActionName.RovoChatAction, (0, _extractRovoChatAction.default)(response, rovoConfig, actionOptions)) : undefined), {}, (0, _defineProperty2.default)({}, _constants.InternalActionName.ViewRelatedLinksAction, (0, _extractViewRelatedLinksAction.extractViewRelatedLinksAction)(response)));
53
+ })), _constants.ActionName.AutomationAction, (0, _extractAutomationAction.extractAutomationAction)(response)), _constants.InternalActionName.AISummaryAction, (0, _extractAiSummaryAction.extractAISummaryAction)(response, url, actionOptions, aiSummaryConfig)), (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') ? (0, _defineProperty2.default)({}, _constants.InternalActionName.RovoChatAction, (0, _extractRovoChatAction.default)(response, rovoConfig, actionOptions, product)) : undefined), {}, (0, _defineProperty2.default)({}, _constants.InternalActionName.ViewRelatedLinksAction, (0, _extractViewRelatedLinksAction.extractViewRelatedLinksAction)(response)));
53
54
  return Object.values(action).some(function (value) {
54
55
  return Boolean(value);
55
56
  }) ? action : undefined;
@@ -21,7 +21,7 @@ var _icon = require("./icon");
21
21
  var _extractProviderIcon = require("./icon/extract-provider-icon");
22
22
  var _latestCommit = require("./latest-commit");
23
23
  var _utils = require("./utils");
24
- var _excluded = ["appearance", "fireEvent", "id", "onClick", "origin", "resolve", "rovoConfig", "actionOptions", "response", "status", "aiSummaryConfig", "isPreviewPanelAvailable", "openPreviewPanel"];
24
+ var _excluded = ["appearance", "fireEvent", "id", "onClick", "origin", "product", "resolve", "rovoConfig", "actionOptions", "response", "status", "aiSummaryConfig", "isPreviewPanelAvailable", "openPreviewPanel"];
25
25
  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; }
26
26
  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; }
27
27
  var extractFlexibleUiContext = function extractFlexibleUiContext() {
@@ -31,6 +31,7 @@ var extractFlexibleUiContext = function extractFlexibleUiContext() {
31
31
  id = _ref.id,
32
32
  onClick = _ref.onClick,
33
33
  origin = _ref.origin,
34
+ product = _ref.product,
34
35
  resolve = _ref.resolve,
35
36
  rovoConfig = _ref.rovoConfig,
36
37
  actionOptions = _ref.actionOptions,
@@ -55,6 +56,7 @@ var extractFlexibleUiContext = function extractFlexibleUiContext() {
55
56
  id: id,
56
57
  origin: origin
57
58
  }, (0, _platformFeatureFlags.fg)('platform_sl_3p_auth_rovo_action_kill_switch') ? {
59
+ product: product,
58
60
  rovoConfig: rovoConfig
59
61
  } : undefined), {}, {
60
62
  response: response,
@@ -850,5 +850,60 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
850
850
  id: 'fabric.linking.rovo_summary.ai_disclaimer.non-final',
851
851
  defaultMessage: 'Uses AI. Verify Results.',
852
852
  description: 'Shown on a Rovo summary to indicate that the summary was generated by AI and should be verified by the user for accuracy.'
853
+ },
854
+ rovo_prompt_context_generic: {
855
+ id: 'fabric.linking.rovo_prompt_context_confluence_page.non-final',
856
+ defaultMessage: 'page',
857
+ description: 'The location the user see Smart Link in, to be used as the {context} for Rovo prompt message'
858
+ },
859
+ rovo_prompt_context_generic_plural: {
860
+ id: 'fabric.linking.rovo_prompt_context_confluence_page.non-final',
861
+ defaultMessage: 'pages',
862
+ description: 'The site-wide location the user see Smart Link in, to be used as the {context} for Rovo prompt message'
863
+ },
864
+ rovo_prompt_context_confluence_page: {
865
+ id: 'fabric.linking.rovo_prompt_context_confluence_page.non-final',
866
+ defaultMessage: 'Confluence page',
867
+ description: 'The Confluence page the user see Smart Link in, to be used as the {context} for Rovo prompt message'
868
+ },
869
+ rovo_prompt_context_confluence_page_plural: {
870
+ id: 'fabric.linking.rovo_prompt_context_confluence_page_plural.non-final',
871
+ defaultMessage: 'Confluence pages',
872
+ description: 'The Confluence page the user see Smart Link in, to be used as the {context} for Rovo prompt message'
873
+ },
874
+ rovo_prompt_context_confluence_page_short: {
875
+ id: 'fabric.linking.rovo_prompt_context_confluence_page_short.non-final',
876
+ defaultMessage: 'page',
877
+ description: 'The Confluence page the user see Smart Link in, to be used as the {context} for Rovo prompt message'
878
+ },
879
+ rovo_prompt_context_jira_work_item: {
880
+ id: 'fabric.linking.rovo_prompt_context_jira_work_item.non-final',
881
+ defaultMessage: 'Jira work item',
882
+ description: 'The Jira work item the user see Smart Link in, to be used as the {context} for Rovo prompt message'
883
+ },
884
+ rovo_prompt_context_jira_work_item_plural: {
885
+ id: 'fabric.linking.rovo_prompt_context_jira_work_item_plural.non-final',
886
+ defaultMessage: 'Jira work items',
887
+ description: 'The Jira work item the user see Smart Link in, to be used as the {context} for Rovo prompt message'
888
+ },
889
+ rovo_prompt_context_jira_work_item_short: {
890
+ id: 'fabric.linking.rovo_prompt_context_jira_work_item_short.non-final',
891
+ defaultMessage: 'work item',
892
+ description: 'The Jira work item the user see Smart Link in, to be used as the {context} for Rovo prompt message'
893
+ },
894
+ rovo_prompt_button_recommend_other_sources: {
895
+ id: 'fabric.linking.rovo_prompt_button_recommend_other_sources.non-final',
896
+ defaultMessage: 'Recommend other sources',
897
+ description: 'The name of the action to send prompt message to Rovo Chat in relation to current Smart Link'
898
+ },
899
+ rovo_prompt_button_show_other_mentions: {
900
+ id: 'fabric.linking.rovo_prompt_button_show_other_mentions.non-final',
901
+ defaultMessage: 'Show other mentions',
902
+ description: 'The name of the action to send prompt message to Rovo Chat in relation to current Smart Link'
903
+ },
904
+ rovo_prompt_button_suggest_improvement: {
905
+ id: 'fabric.linking.rovo_prompt_button_suggest_improvement.non-final',
906
+ defaultMessage: 'Suggest {context} improvement',
907
+ description: 'The name of the action to send prompt message to Rovo Chat in relation to current Smart Link'
853
908
  }
854
909
  });
@@ -11,7 +11,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
11
11
  var context = exports.context = {
12
12
  componentName: 'smart-cards',
13
13
  packageName: "@atlaskit/smart-card",
14
- packageVersion: "43.25.16"
14
+ packageVersion: "43.26.1"
15
15
  };
16
16
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
17
17
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -0,0 +1,4 @@
1
+ ._11q7hndj{background:conic-gradient(from 90deg,#fca700 0deg,#fca700 72.6913deg,#6a9922 72.7273deg,#6a9922 167.895deg,#1868db 167.931deg,#1868db 252.667deg,#af59e0 252.703deg,#af59e0 1turn)}
2
+ ._1bsb1osq{width:100%}
3
+ ._4t3i1osq{height:100%}
4
+ ._tzy4kb7n{opacity:1}
@@ -0,0 +1,51 @@
1
+ /* ai-chapter-icon.tsx generated by @compiled/babel-plugin v0.39.1 */
2
+ "use strict";
3
+
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+ Object.defineProperty(exports, "__esModule", {
7
+ value: true
8
+ });
9
+ exports.default = void 0;
10
+ require("./ai-chapter-icon.compiled.css");
11
+ var React = _interopRequireWildcard(require("react"));
12
+ var _runtime = require("@compiled/react/runtime");
13
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
14
+ 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
+ var style = {
16
+ foreignObject: "_11q7hndj _4t3i1osq _1bsb1osq _tzy4kb7n"
17
+ };
18
+ var AiChapterIcon = function AiChapterIcon(props) {
19
+ return /*#__PURE__*/React.createElement("svg", (0, _extends2.default)({
20
+ width: "24",
21
+ height: "24",
22
+ viewBox: "0 0 24 24",
23
+ fill: "none",
24
+ xmlns: "http://www.w3.org/2000/svg"
25
+ }, props), /*#__PURE__*/React.createElement("g", {
26
+ clipPath: "url(#paint0_angular_1804_15128_clip_path)",
27
+ "data-figma-skip-parse": "true"
28
+ }, /*#__PURE__*/React.createElement("g", {
29
+ transform: "matrix(0.008 -0.00939228 0.0100184 0.0075 12 12.5)"
30
+ }, /*#__PURE__*/React.createElement("foreignObject", {
31
+ x: "-1047.5",
32
+ y: "-1047.5",
33
+ width: "2095.01",
34
+ height: "2095.01"
35
+ }, /*#__PURE__*/React.createElement("div", {
36
+ className: (0, _runtime.ax)([style.foreignObject])
37
+ })))), /*#__PURE__*/React.createElement("path", {
38
+ fillRule: "evenodd",
39
+ clipRule: "evenodd",
40
+ d: "M5.5 6.5V16.5H11.2495V18H5.375C4.61561 18 4 17.3844 4 16.625V6.375C4 5.6175 4.61251 5 5.37379 5L8.8749 5.00001C10.1576 5.00001 11.2947 5.6232 11.9999 6.58333C12.7053 5.62319 13.8425 5.00001 15.1251 5.00001L18.6253 5C19.3874 5 20 5.61967 20 6.37637V12.25H18.5V6.50082L15.1251 6.50001C13.8134 6.50001 12.7499 7.56337 12.7499 8.87496V14H11.2499V8.87498C11.2499 7.56332 10.1866 6.50001 8.8749 6.50001L5.5 6.5ZM17.2495 10H14.4995V8.5H17.2495V10ZM6.75049 8.50001H9.50049V10H6.75049V8.50001ZM6.75049 11H9.50049V12.5H6.75049V11ZM15.7945 13.4943C15.9025 13.1982 16.184 13.0013 16.4991 13.0013C16.8142 13.0013 17.0962 13.1982 17.2042 13.4943L17.8193 15.1807L19.5057 15.7958C19.8017 15.9038 19.9987 16.1853 19.9987 16.5004C19.9987 16.8155 19.8017 17.0975 19.5057 17.2055L17.8193 17.8206L17.2042 19.507C17.0962 19.803 16.8147 20 16.4996 20C16.1845 20 15.9025 19.803 15.7945 19.507L15.1794 17.8206L13.493 17.2055C13.197 17.0975 13 16.816 13 16.5009C13 16.1858 13.197 15.9038 13.493 15.7958L15.1794 15.1807L15.7945 13.4943Z",
41
+ "data-figma-gradient-fill": "{\"type\":\"GRADIENT_ANGULAR\",\"stops\":[{\"color\":{\"r\":0.98823529481887817,\"g\":0.65490198135375977,\"b\":0.0,\"a\":1.0},\"position\":0.0},{\"color\":{\"r\":0.98823529481887817,\"g\":0.65490198135375977,\"b\":0.0,\"a\":1.0},\"position\":0.20192027091979980},{\"color\":{\"r\":0.41662007570266724,\"g\":0.60310000181198120,\"b\":0.13690000772476196,\"a\":1.0},\"position\":0.20202027261257172},{\"color\":{\"r\":0.41662007570266724,\"g\":0.60310000181198120,\"b\":0.13690000772476196,\"a\":1.0},\"position\":0.46637400984764099},{\"color\":{\"r\":0.094117648899555206,\"g\":0.40784314274787903,\"b\":0.85882353782653809,\"a\":1.0},\"position\":0.46647399663925171},{\"color\":{\"r\":0.094117648899555206,\"g\":0.40784314274787903,\"b\":0.85882353782653809,\"a\":1.0},\"position\":0.70185315608978271},{\"color\":{\"r\":0.68627452850341797,\"g\":0.34901961684226990,\"b\":0.87843137979507446,\"a\":1.0},\"position\":0.70195317268371582},{\"color\":{\"r\":0.68627452850341797,\"g\":0.34901961684226990,\"b\":0.87843137979507446,\"a\":1.0},\"position\":1.0}],\"stopsVar\":[{\"color\":{\"r\":0.98823529481887817,\"g\":0.65490198135375977,\"b\":0.0,\"a\":1.0},\"position\":0.0},{\"color\":{\"r\":0.98823529481887817,\"g\":0.65490198135375977,\"b\":0.0,\"a\":1.0},\"position\":0.20192027091979980},{\"color\":{\"r\":0.41662007570266724,\"g\":0.60310000181198120,\"b\":0.13690000772476196,\"a\":1.0},\"position\":0.20202027261257172},{\"color\":{\"r\":0.41662007570266724,\"g\":0.60310000181198120,\"b\":0.13690000772476196,\"a\":1.0},\"position\":0.46637400984764099},{\"color\":{\"r\":0.094117648899555206,\"g\":0.40784314274787903,\"b\":0.85882353782653809,\"a\":1.0},\"position\":0.46647399663925171},{\"color\":{\"r\":0.094117648899555206,\"g\":0.40784314274787903,\"b\":0.85882353782653809,\"a\":1.0},\"position\":0.70185315608978271},{\"color\":{\"r\":0.68627452850341797,\"g\":0.34901961684226990,\"b\":0.87843137979507446,\"a\":1.0},\"position\":0.70195317268371582},{\"color\":{\"r\":0.68627452850341797,\"g\":0.34901961684226990,\"b\":0.87843137979507446,\"a\":1.0},\"position\":1.0}],\"transform\":{\"m00\":16.000001907348633,\"m01\":20.036861419677734,\"m02\":-6.0184345245361328,\"m10\":-18.784559249877930,\"m11\":15.000002861022949,\"m12\":14.392276763916016},\"opacity\":1.0,\"blendMode\":\"NORMAL\",\"visible\":true}"
42
+ }), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
43
+ id: "paint0_angular_1804_15128_clip_path"
44
+ }, /*#__PURE__*/React.createElement("path", {
45
+ fillRule: "evenodd",
46
+ clipRule: "evenodd",
47
+ d: "M5.5 6.5V16.5H11.2495V18H5.375C4.61561 18 4 17.3844 4 16.625V6.375C4 5.6175 4.61251 5 5.37379 5L8.8749 5.00001C10.1576 5.00001 11.2947 5.6232 11.9999 6.58333C12.7053 5.62319 13.8425 5.00001 15.1251 5.00001L18.6253 5C19.3874 5 20 5.61967 20 6.37637V12.25H18.5V6.50082L15.1251 6.50001C13.8134 6.50001 12.7499 7.56337 12.7499 8.87496V14H11.2499V8.87498C11.2499 7.56332 10.1866 6.50001 8.8749 6.50001L5.5 6.5ZM17.2495 10H14.4995V8.5H17.2495V10ZM6.75049 8.50001H9.50049V10H6.75049V8.50001ZM6.75049 11H9.50049V12.5H6.75049V11ZM15.7945 13.4943C15.9025 13.1982 16.184 13.0013 16.4991 13.0013C16.8142 13.0013 17.0962 13.1982 17.2042 13.4943L17.8193 15.1807L19.5057 15.7958C19.8017 15.9038 19.9987 16.1853 19.9987 16.5004C19.9987 16.8155 19.8017 17.0975 19.5057 17.2055L17.8193 17.8206L17.2042 19.507C17.0962 19.803 16.8147 20 16.4996 20C16.1845 20 15.9025 19.803 15.7945 19.507L15.1794 17.8206L13.493 17.2055C13.197 17.0975 13 16.816 13 16.5009C13 16.1858 13.197 15.9038 13.493 15.7958L15.1794 15.1807L15.7945 13.4943Z"
48
+ }))));
49
+ };
50
+ AiChapterIcon.displayName = 'AiChapterIcon';
51
+ var _default = exports.default = AiChapterIcon;
@@ -0,0 +1,4 @@
1
+ ._11q7hndj{background:conic-gradient(from 90deg,#fca700 0deg,#fca700 72.6913deg,#6a9922 72.7273deg,#6a9922 167.895deg,#1868db 167.931deg,#1868db 252.667deg,#af59e0 252.703deg,#af59e0 1turn)}
2
+ ._1bsb1osq{width:100%}
3
+ ._4t3i1osq{height:100%}
4
+ ._tzy4kb7n{opacity:1}
@@ -0,0 +1,74 @@
1
+ /* ai-edit-icon.tsx generated by @compiled/babel-plugin v0.39.1 */
2
+ "use strict";
3
+
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+ Object.defineProperty(exports, "__esModule", {
7
+ value: true
8
+ });
9
+ exports.default = void 0;
10
+ require("./ai-edit-icon.compiled.css");
11
+ var React = _interopRequireWildcard(require("react"));
12
+ var _runtime = require("@compiled/react/runtime");
13
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
14
+ 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
+ var style = {
16
+ foreignObject: "_11q7hndj _4t3i1osq _1bsb1osq _tzy4kb7n"
17
+ };
18
+ var AiEditIcon = function AiEditIcon(props) {
19
+ return /*#__PURE__*/React.createElement("svg", (0, _extends2.default)({
20
+ width: "24",
21
+ height: "24",
22
+ viewBox: "0 0 24 24",
23
+ fill: "none",
24
+ xmlns: "http://www.w3.org/2000/svg"
25
+ }, props), /*#__PURE__*/React.createElement("g", {
26
+ clipPath: "url(#paint0_angular_1804_16152_clip_path)",
27
+ "data-figma-skip-parse": "true"
28
+ }, /*#__PURE__*/React.createElement("g", {
29
+ transform: "matrix(0.00799113 -0.0100185 0.0100073 0.00800004 11.9911 12)"
30
+ }, /*#__PURE__*/React.createElement("foreignObject", {
31
+ x: "-1041.51",
32
+ y: "-1041.51",
33
+ width: "2083.02",
34
+ height: "2083.02"
35
+ }, /*#__PURE__*/React.createElement("div", {
36
+ className: (0, _runtime.ax)([style.foreignObject])
37
+ })))), /*#__PURE__*/React.createElement("path", {
38
+ fillRule: "evenodd",
39
+ clipRule: "evenodd",
40
+ d: "M15.8358 9.85361C16.6169 9.07256 17.8832 9.07256 18.6642 9.85361L19.3965 10.5858C20.1775 11.3669 20.1775 12.6332 19.3965 13.4143L14.2594 18.5513C14.019 18.7917 13.7214 18.9668 13.3946 19.0602L10.2061 19.9712C9.94416 20.046 9.66229 19.973 9.46969 19.7804C9.27709 19.5878 9.20405 19.3059 9.27888 19.044L10.1899 15.8555C10.2833 15.5286 10.4584 15.231 10.6987 14.9907L15.8358 9.85361ZM17.6036 10.9143C17.4083 10.719 17.0917 10.719 16.8965 10.9143L16.3107 11.5001L17.75 12.9394L18.3358 12.3536C18.5311 12.1583 18.5311 11.8418 18.3358 11.6465L17.6036 10.9143ZM16.6894 14.0001L15.25 12.5607L11.7594 16.0513C11.6993 16.1114 11.6555 16.1858 11.6322 16.2675L11.092 18.158L12.9825 17.6179C13.0642 17.5946 13.1386 17.5508 13.1987 17.4907L16.6894 14.0001Z",
41
+ "data-figma-gradient-fill": "{\"type\":\"GRADIENT_ANGULAR\",\"stops\":[{\"color\":{\"r\":0.98823529481887817,\"g\":0.65490198135375977,\"b\":0.0,\"a\":1.0},\"position\":0.0},{\"color\":{\"r\":0.98823529481887817,\"g\":0.65490198135375977,\"b\":0.0,\"a\":1.0},\"position\":0.20192027091979980},{\"color\":{\"r\":0.41662007570266724,\"g\":0.60310000181198120,\"b\":0.13690000772476196,\"a\":1.0},\"position\":0.20202027261257172},{\"color\":{\"r\":0.41662007570266724,\"g\":0.60310000181198120,\"b\":0.13690000772476196,\"a\":1.0},\"position\":0.46637400984764099},{\"color\":{\"r\":0.094117648899555206,\"g\":0.40784314274787903,\"b\":0.85882353782653809,\"a\":1.0},\"position\":0.46647399663925171},{\"color\":{\"r\":0.094117648899555206,\"g\":0.40784314274787903,\"b\":0.85882353782653809,\"a\":1.0},\"position\":0.70185315608978271},{\"color\":{\"r\":0.68627452850341797,\"g\":0.34901961684226990,\"b\":0.87843137979507446,\"a\":1.0},\"position\":0.70195317268371582},{\"color\":{\"r\":0.68627452850341797,\"g\":0.34901961684226990,\"b\":0.87843137979507446,\"a\":1.0},\"position\":1.0}],\"stopsVar\":[{\"color\":{\"r\":0.98823529481887817,\"g\":0.65490198135375977,\"b\":0.0,\"a\":1.0},\"position\":0.0},{\"color\":{\"r\":0.98823529481887817,\"g\":0.65490198135375977,\"b\":0.0,\"a\":1.0},\"position\":0.20192027091979980},{\"color\":{\"r\":0.41662007570266724,\"g\":0.60310000181198120,\"b\":0.13690000772476196,\"a\":1.0},\"position\":0.20202027261257172},{\"color\":{\"r\":0.41662007570266724,\"g\":0.60310000181198120,\"b\":0.13690000772476196,\"a\":1.0},\"position\":0.46637400984764099},{\"color\":{\"r\":0.094117648899555206,\"g\":0.40784314274787903,\"b\":0.85882353782653809,\"a\":1.0},\"position\":0.46647399663925171},{\"color\":{\"r\":0.094117648899555206,\"g\":0.40784314274787903,\"b\":0.85882353782653809,\"a\":1.0},\"position\":0.70185315608978271},{\"color\":{\"r\":0.68627452850341797,\"g\":0.34901961684226990,\"b\":0.87843137979507446,\"a\":1.0},\"position\":0.70195317268371582},{\"color\":{\"r\":0.68627452850341797,\"g\":0.34901961684226990,\"b\":0.87843137979507446,\"a\":1.0},\"position\":1.0}],\"transform\":{\"m00\":15.982254981994629,\"m01\":20.014636993408203,\"m02\":-6.0073223114013672,\"m10\":-20.036954879760742,\"m11\":16.000076293945312,\"m12\":14.018474578857422},\"opacity\":1.0,\"blendMode\":\"NORMAL\",\"visible\":true}"
42
+ }), /*#__PURE__*/React.createElement("g", {
43
+ clipPath: "url(#paint1_angular_1804_16152_clip_path)",
44
+ "data-figma-skip-parse": "true"
45
+ }, /*#__PURE__*/React.createElement("g", {
46
+ transform: "matrix(0.00799113 -0.0100185 0.0100073 0.00800004 11.9911 12)"
47
+ }, /*#__PURE__*/React.createElement("foreignObject", {
48
+ x: "-1041.51",
49
+ y: "-1041.51",
50
+ width: "2083.02",
51
+ height: "2083.02"
52
+ }, /*#__PURE__*/React.createElement("div", {
53
+ className: (0, _runtime.ax)([style.foreignObject])
54
+ })))), /*#__PURE__*/React.createElement("path", {
55
+ fillRule: "evenodd",
56
+ clipRule: "evenodd",
57
+ d: "M8.75 4C9.05931 4 9.3369 4.18989 9.449 4.47817L10.4494 7.0506L13.0218 8.051C13.3101 8.16311 13.5 8.44069 13.5 8.75C13.5 9.05931 13.3101 9.3369 13.0218 9.449L10.4494 10.4494L9.449 13.0218C9.3369 13.3101 9.05931 13.5 8.75 13.5C8.44069 13.5 8.16311 13.3101 8.051 13.0218L7.0506 10.4494L4.47817 9.449C4.18989 9.3369 4 9.05931 4 8.75C4 8.44069 4.18989 8.16311 4.47817 8.051L7.0506 7.0506L8.051 4.47817C8.16311 4.18989 8.44069 4 8.75 4ZM8.75 6.81927L8.329 7.90183C8.25279 8.09781 8.09781 8.25279 7.90183 8.329L6.81927 8.75L7.90183 9.171C8.09781 9.24721 8.25279 9.40219 8.329 9.59817L8.75 10.6807L9.171 9.59817C9.24721 9.40219 9.40219 9.24721 9.59817 9.171L10.6807 8.75L9.59817 8.329C9.40219 8.25279 9.24721 8.09781 9.171 7.90183L8.75 6.81927Z",
58
+ "data-figma-gradient-fill": "{\"type\":\"GRADIENT_ANGULAR\",\"stops\":[{\"color\":{\"r\":0.98823529481887817,\"g\":0.65490198135375977,\"b\":0.0,\"a\":1.0},\"position\":0.0},{\"color\":{\"r\":0.98823529481887817,\"g\":0.65490198135375977,\"b\":0.0,\"a\":1.0},\"position\":0.20192027091979980},{\"color\":{\"r\":0.41662007570266724,\"g\":0.60310000181198120,\"b\":0.13690000772476196,\"a\":1.0},\"position\":0.20202027261257172},{\"color\":{\"r\":0.41662007570266724,\"g\":0.60310000181198120,\"b\":0.13690000772476196,\"a\":1.0},\"position\":0.46637400984764099},{\"color\":{\"r\":0.094117648899555206,\"g\":0.40784314274787903,\"b\":0.85882353782653809,\"a\":1.0},\"position\":0.46647399663925171},{\"color\":{\"r\":0.094117648899555206,\"g\":0.40784314274787903,\"b\":0.85882353782653809,\"a\":1.0},\"position\":0.70185315608978271},{\"color\":{\"r\":0.68627452850341797,\"g\":0.34901961684226990,\"b\":0.87843137979507446,\"a\":1.0},\"position\":0.70195317268371582},{\"color\":{\"r\":0.68627452850341797,\"g\":0.34901961684226990,\"b\":0.87843137979507446,\"a\":1.0},\"position\":1.0}],\"stopsVar\":[{\"color\":{\"r\":0.98823529481887817,\"g\":0.65490198135375977,\"b\":0.0,\"a\":1.0},\"position\":0.0},{\"color\":{\"r\":0.98823529481887817,\"g\":0.65490198135375977,\"b\":0.0,\"a\":1.0},\"position\":0.20192027091979980},{\"color\":{\"r\":0.41662007570266724,\"g\":0.60310000181198120,\"b\":0.13690000772476196,\"a\":1.0},\"position\":0.20202027261257172},{\"color\":{\"r\":0.41662007570266724,\"g\":0.60310000181198120,\"b\":0.13690000772476196,\"a\":1.0},\"position\":0.46637400984764099},{\"color\":{\"r\":0.094117648899555206,\"g\":0.40784314274787903,\"b\":0.85882353782653809,\"a\":1.0},\"position\":0.46647399663925171},{\"color\":{\"r\":0.094117648899555206,\"g\":0.40784314274787903,\"b\":0.85882353782653809,\"a\":1.0},\"position\":0.70185315608978271},{\"color\":{\"r\":0.68627452850341797,\"g\":0.34901961684226990,\"b\":0.87843137979507446,\"a\":1.0},\"position\":0.70195317268371582},{\"color\":{\"r\":0.68627452850341797,\"g\":0.34901961684226990,\"b\":0.87843137979507446,\"a\":1.0},\"position\":1.0}],\"transform\":{\"m00\":15.982254981994629,\"m01\":20.014636993408203,\"m02\":-6.0073223114013672,\"m10\":-20.036954879760742,\"m11\":16.000076293945312,\"m12\":14.018474578857422},\"opacity\":1.0,\"blendMode\":\"NORMAL\",\"visible\":true}"
59
+ }), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
60
+ id: "paint0_angular_1804_16152_clip_path"
61
+ }, /*#__PURE__*/React.createElement("path", {
62
+ fillRule: "evenodd",
63
+ clipRule: "evenodd",
64
+ d: "M15.8358 9.85361C16.6169 9.07256 17.8832 9.07256 18.6642 9.85361L19.3965 10.5858C20.1775 11.3669 20.1775 12.6332 19.3965 13.4143L14.2594 18.5513C14.019 18.7917 13.7214 18.9668 13.3946 19.0602L10.2061 19.9712C9.94416 20.046 9.66229 19.973 9.46969 19.7804C9.27709 19.5878 9.20405 19.3059 9.27888 19.044L10.1899 15.8555C10.2833 15.5286 10.4584 15.231 10.6987 14.9907L15.8358 9.85361ZM17.6036 10.9143C17.4083 10.719 17.0917 10.719 16.8965 10.9143L16.3107 11.5001L17.75 12.9394L18.3358 12.3536C18.5311 12.1583 18.5311 11.8418 18.3358 11.6465L17.6036 10.9143ZM16.6894 14.0001L15.25 12.5607L11.7594 16.0513C11.6993 16.1114 11.6555 16.1858 11.6322 16.2675L11.092 18.158L12.9825 17.6179C13.0642 17.5946 13.1386 17.5508 13.1987 17.4907L16.6894 14.0001Z"
65
+ })), /*#__PURE__*/React.createElement("clipPath", {
66
+ id: "paint1_angular_1804_16152_clip_path"
67
+ }, /*#__PURE__*/React.createElement("path", {
68
+ fillRule: "evenodd",
69
+ clipRule: "evenodd",
70
+ d: "M8.75 4C9.05931 4 9.3369 4.18989 9.449 4.47817L10.4494 7.0506L13.0218 8.051C13.3101 8.16311 13.5 8.44069 13.5 8.75C13.5 9.05931 13.3101 9.3369 13.0218 9.449L10.4494 10.4494L9.449 13.0218C9.3369 13.3101 9.05931 13.5 8.75 13.5C8.44069 13.5 8.16311 13.3101 8.051 13.0218L7.0506 10.4494L4.47817 9.449C4.18989 9.3369 4 9.05931 4 8.75C4 8.44069 4.18989 8.16311 4.47817 8.051L7.0506 7.0506L8.051 4.47817C8.16311 4.18989 8.44069 4 8.75 4ZM8.75 6.81927L8.329 7.90183C8.25279 8.09781 8.09781 8.25279 7.90183 8.329L6.81927 8.75L7.90183 9.171C8.09781 9.24721 8.25279 9.40219 8.329 9.59817L8.75 10.6807L9.171 9.59817C9.24721 9.40219 9.40219 9.24721 9.59817 9.171L10.6807 8.75L9.59817 8.329C9.40219 8.25279 9.24721 8.09781 9.171 7.90183L8.75 6.81927Z"
71
+ }))));
72
+ };
73
+ AiEditIcon.displayName = 'AiEditIcon';
74
+ var _default = exports.default = AiEditIcon;
@@ -0,0 +1,4 @@
1
+ ._11q7hndj{background:conic-gradient(from 90deg,#fca700 0deg,#fca700 72.6913deg,#6a9922 72.7273deg,#6a9922 167.895deg,#1868db 167.931deg,#1868db 252.667deg,#af59e0 252.703deg,#af59e0 1turn)}
2
+ ._1bsb1osq{width:100%}
3
+ ._4t3i1osq{height:100%}
4
+ ._tzy4kb7n{opacity:1}
@@ -0,0 +1,66 @@
1
+ /* ai-search-icon.tsx generated by @compiled/babel-plugin v0.39.1 */
2
+ "use strict";
3
+
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+ Object.defineProperty(exports, "__esModule", {
7
+ value: true
8
+ });
9
+ exports.default = void 0;
10
+ require("./ai-search-icon.compiled.css");
11
+ var React = _interopRequireWildcard(require("react"));
12
+ var _runtime = require("@compiled/react/runtime");
13
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
14
+ 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
+ var style = {
16
+ foreignObject: "_11q7hndj _4t3i1osq _1bsb1osq _tzy4kb7n"
17
+ };
18
+ var AiSearchIcon = function AiSearchIcon(props) {
19
+ return /*#__PURE__*/React.createElement("svg", (0, _extends2.default)({
20
+ width: "24",
21
+ height: "24",
22
+ viewBox: "0 0 24 24",
23
+ fill: "none",
24
+ xmlns: "http://www.w3.org/2000/svg"
25
+ }, props), /*#__PURE__*/React.createElement("g", {
26
+ clipPath: "url(#paint0_angular_1804_8080_clip_path)",
27
+ "data-figma-skip-parse": "true"
28
+ }, /*#__PURE__*/React.createElement("g", {
29
+ transform: "matrix(0.00701514 -0.00941124 0.00878508 0.00751514 12.0151 11.5151)"
30
+ }, /*#__PURE__*/React.createElement("foreignObject", {
31
+ x: "-1058.95",
32
+ y: "-1058.95",
33
+ width: "2117.91",
34
+ height: "2117.91"
35
+ }, /*#__PURE__*/React.createElement("div", {
36
+ className: (0, _runtime.ax)([style.foreignObject])
37
+ })))), /*#__PURE__*/React.createElement("path", {
38
+ d: "M10 6.6123C7.9961 7.0671 6.5 8.85847 6.5 11C6.5 13.4853 8.51472 15.5 11 15.5C12.2428 15.5 13.3665 14.9968 14.1816 14.1816C14.7712 13.5921 15.1959 12.8407 15.3867 12H16.917C16.7489 12.9977 16.3336 13.9117 15.7383 14.6777L19.0303 17.9697L17.9697 19.0303L14.6777 15.7383C13.662 16.5276 12.3862 17 11 17C7.68629 17 5 14.3137 5 11C5 8.02706 7.16237 5.56013 10 5.08398V6.6123Z",
39
+ "data-figma-gradient-fill": "{\"type\":\"GRADIENT_ANGULAR\",\"stops\":[{\"color\":{\"r\":0.98823529481887817,\"g\":0.65490198135375977,\"b\":0.0,\"a\":1.0},\"position\":0.0},{\"color\":{\"r\":0.98823529481887817,\"g\":0.65490198135375977,\"b\":0.0,\"a\":1.0},\"position\":0.20192027091979980},{\"color\":{\"r\":0.41662007570266724,\"g\":0.60310000181198120,\"b\":0.13690000772476196,\"a\":1.0},\"position\":0.20202027261257172},{\"color\":{\"r\":0.41662007570266724,\"g\":0.60310000181198120,\"b\":0.13690000772476196,\"a\":1.0},\"position\":0.46637400984764099},{\"color\":{\"r\":0.094117648899555206,\"g\":0.40784314274787903,\"b\":0.85882353782653809,\"a\":1.0},\"position\":0.46647399663925171},{\"color\":{\"r\":0.094117648899555206,\"g\":0.40784314274787903,\"b\":0.85882353782653809,\"a\":1.0},\"position\":0.70185315608978271},{\"color\":{\"r\":0.68627452850341797,\"g\":0.34901961684226990,\"b\":0.87843137979507446,\"a\":1.0},\"position\":0.70195317268371582},{\"color\":{\"r\":0.68627452850341797,\"g\":0.34901961684226990,\"b\":0.87843137979507446,\"a\":1.0},\"position\":1.0}],\"stopsVar\":[{\"color\":{\"r\":0.98823529481887817,\"g\":0.65490198135375977,\"b\":0.0,\"a\":1.0},\"position\":0.0},{\"color\":{\"r\":0.98823529481887817,\"g\":0.65490198135375977,\"b\":0.0,\"a\":1.0},\"position\":0.20192027091979980},{\"color\":{\"r\":0.41662007570266724,\"g\":0.60310000181198120,\"b\":0.13690000772476196,\"a\":1.0},\"position\":0.20202027261257172},{\"color\":{\"r\":0.41662007570266724,\"g\":0.60310000181198120,\"b\":0.13690000772476196,\"a\":1.0},\"position\":0.46637400984764099},{\"color\":{\"r\":0.094117648899555206,\"g\":0.40784314274787903,\"b\":0.85882353782653809,\"a\":1.0},\"position\":0.46647399663925171},{\"color\":{\"r\":0.094117648899555206,\"g\":0.40784314274787903,\"b\":0.85882353782653809,\"a\":1.0},\"position\":0.70185315608978271},{\"color\":{\"r\":0.68627452850341797,\"g\":0.34901961684226990,\"b\":0.87843137979507446,\"a\":1.0},\"position\":0.70195317268371582},{\"color\":{\"r\":0.68627452850341797,\"g\":0.34901961684226990,\"b\":0.87843137979507446,\"a\":1.0},\"position\":1.0}],\"transform\":{\"m00\":14.030276298522949,\"m01\":17.570167541503906,\"m02\":-3.7850868701934814,\"m10\":-18.822471618652344,\"m11\":15.030277252197266,\"m12\":13.411232948303223},\"opacity\":1.0,\"blendMode\":\"NORMAL\",\"visible\":true}"
40
+ }), /*#__PURE__*/React.createElement("g", {
41
+ clipPath: "url(#paint1_angular_1804_8080_clip_path)",
42
+ "data-figma-skip-parse": "true"
43
+ }, /*#__PURE__*/React.createElement("g", {
44
+ transform: "matrix(0.00701514 -0.00941124 0.00878508 0.00751514 12.0151 11.5151)"
45
+ }, /*#__PURE__*/React.createElement("foreignObject", {
46
+ x: "-1058.95",
47
+ y: "-1058.95",
48
+ width: "2117.91",
49
+ height: "2117.91"
50
+ }, /*#__PURE__*/React.createElement("div", {
51
+ className: (0, _runtime.ax)([style.foreignObject])
52
+ })))), /*#__PURE__*/React.createElement("path", {
53
+ d: "M18 7.25C18 7.56523 17.803 7.84705 17.5068 7.95508L16.2217 8.42383C16.0833 8.4744 15.9744 8.58332 15.9238 8.72168L15.4551 10.0068C15.3471 10.3029 15.0653 10.5 14.75 10.5C14.4348 10.5 14.1529 10.303 14.0449 10.0068L13.5762 8.72168C13.5256 8.58332 13.4167 8.4744 13.2783 8.42383L11.9932 7.95508C11.7338 7.86049 11.5505 7.63274 11.5088 7.36621L11.5 7.25L11.5088 7.13379C11.5505 6.86715 11.734 6.63947 11.9932 6.54492L13.2783 6.07617C13.4167 6.0256 13.5256 5.91668 13.5762 5.77832L14.0449 4.49316L14.0938 4.38672C14.2242 4.15114 14.4736 4.00036 14.749 4L14.8652 4.00879C15.0941 4.04428 15.2941 4.18415 15.4062 4.38672L15.4551 4.49316L15.9238 5.77832C15.9744 5.91668 16.0833 6.0256 16.2217 6.07617L17.5068 6.54492C17.8031 6.65301 18 6.93494 18 7.25Z",
54
+ "data-figma-gradient-fill": "{\"type\":\"GRADIENT_ANGULAR\",\"stops\":[{\"color\":{\"r\":0.98823529481887817,\"g\":0.65490198135375977,\"b\":0.0,\"a\":1.0},\"position\":0.0},{\"color\":{\"r\":0.98823529481887817,\"g\":0.65490198135375977,\"b\":0.0,\"a\":1.0},\"position\":0.20192027091979980},{\"color\":{\"r\":0.41662007570266724,\"g\":0.60310000181198120,\"b\":0.13690000772476196,\"a\":1.0},\"position\":0.20202027261257172},{\"color\":{\"r\":0.41662007570266724,\"g\":0.60310000181198120,\"b\":0.13690000772476196,\"a\":1.0},\"position\":0.46637400984764099},{\"color\":{\"r\":0.094117648899555206,\"g\":0.40784314274787903,\"b\":0.85882353782653809,\"a\":1.0},\"position\":0.46647399663925171},{\"color\":{\"r\":0.094117648899555206,\"g\":0.40784314274787903,\"b\":0.85882353782653809,\"a\":1.0},\"position\":0.70185315608978271},{\"color\":{\"r\":0.68627452850341797,\"g\":0.34901961684226990,\"b\":0.87843137979507446,\"a\":1.0},\"position\":0.70195317268371582},{\"color\":{\"r\":0.68627452850341797,\"g\":0.34901961684226990,\"b\":0.87843137979507446,\"a\":1.0},\"position\":1.0}],\"stopsVar\":[{\"color\":{\"r\":0.98823529481887817,\"g\":0.65490198135375977,\"b\":0.0,\"a\":1.0},\"position\":0.0},{\"color\":{\"r\":0.98823529481887817,\"g\":0.65490198135375977,\"b\":0.0,\"a\":1.0},\"position\":0.20192027091979980},{\"color\":{\"r\":0.41662007570266724,\"g\":0.60310000181198120,\"b\":0.13690000772476196,\"a\":1.0},\"position\":0.20202027261257172},{\"color\":{\"r\":0.41662007570266724,\"g\":0.60310000181198120,\"b\":0.13690000772476196,\"a\":1.0},\"position\":0.46637400984764099},{\"color\":{\"r\":0.094117648899555206,\"g\":0.40784314274787903,\"b\":0.85882353782653809,\"a\":1.0},\"position\":0.46647399663925171},{\"color\":{\"r\":0.094117648899555206,\"g\":0.40784314274787903,\"b\":0.85882353782653809,\"a\":1.0},\"position\":0.70185315608978271},{\"color\":{\"r\":0.68627452850341797,\"g\":0.34901961684226990,\"b\":0.87843137979507446,\"a\":1.0},\"position\":0.70195317268371582},{\"color\":{\"r\":0.68627452850341797,\"g\":0.34901961684226990,\"b\":0.87843137979507446,\"a\":1.0},\"position\":1.0}],\"transform\":{\"m00\":14.030276298522949,\"m01\":17.570167541503906,\"m02\":-3.7850868701934814,\"m10\":-18.822471618652344,\"m11\":15.030277252197266,\"m12\":13.411232948303223},\"opacity\":1.0,\"blendMode\":\"NORMAL\",\"visible\":true}"
55
+ }), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
56
+ id: "paint0_angular_1804_8080_clip_path"
57
+ }, /*#__PURE__*/React.createElement("path", {
58
+ d: "M10 6.6123C7.9961 7.0671 6.5 8.85847 6.5 11C6.5 13.4853 8.51472 15.5 11 15.5C12.2428 15.5 13.3665 14.9968 14.1816 14.1816C14.7712 13.5921 15.1959 12.8407 15.3867 12H16.917C16.7489 12.9977 16.3336 13.9117 15.7383 14.6777L19.0303 17.9697L17.9697 19.0303L14.6777 15.7383C13.662 16.5276 12.3862 17 11 17C7.68629 17 5 14.3137 5 11C5 8.02706 7.16237 5.56013 10 5.08398V6.6123Z"
59
+ })), /*#__PURE__*/React.createElement("clipPath", {
60
+ id: "paint1_angular_1804_8080_clip_path"
61
+ }, /*#__PURE__*/React.createElement("path", {
62
+ d: "M18 7.25C18 7.56523 17.803 7.84705 17.5068 7.95508L16.2217 8.42383C16.0833 8.4744 15.9744 8.58332 15.9238 8.72168L15.4551 10.0068C15.3471 10.3029 15.0653 10.5 14.75 10.5C14.4348 10.5 14.1529 10.303 14.0449 10.0068L13.5762 8.72168C13.5256 8.58332 13.4167 8.4744 13.2783 8.42383L11.9932 7.95508C11.7338 7.86049 11.5505 7.63274 11.5088 7.36621L11.5 7.25L11.5088 7.13379C11.5505 6.86715 11.734 6.63947 11.9932 6.54492L13.2783 6.07617C13.4167 6.0256 13.5256 5.91668 13.5762 5.77832L14.0449 4.49316L14.0938 4.38672C14.2242 4.15114 14.4736 4.00036 14.749 4L14.8652 4.00879C15.0941 4.04428 15.2941 4.18415 15.4062 4.38672L15.4551 4.49316L15.9238 5.77832C15.9744 5.91668 16.0833 6.0256 16.2217 6.07617L17.5068 6.54492C17.8031 6.65301 18 6.93494 18 7.25Z"
63
+ }))));
64
+ };
65
+ AiSearchIcon.displayName = 'AiChapterIcon';
66
+ var _default = exports.default = AiSearchIcon;
@@ -9,69 +9,111 @@ exports.default = exports.RovoChatPromptKey = void 0;
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
10
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
11
  var _react = _interopRequireWildcard(require("react"));
12
- var _rovoChat = _interopRequireDefault(require("@atlaskit/icon/core/rovo-chat"));
12
+ var _reactIntlNext = require("react-intl-next");
13
+ var _constants = require("../../../../../constants");
14
+ var _messages = require("../../../../../messages");
15
+ var _flexibleUiContext = require("../../../../../state/flexible-ui-context");
13
16
  var _useRovoChat2 = _interopRequireDefault(require("../../../../../state/hooks/use-rovo-chat"));
17
+ var _aiChapterIcon = _interopRequireDefault(require("../../../assets/ai-chapter-icon"));
18
+ var _aiEditIcon = _interopRequireDefault(require("../../../assets/ai-edit-icon"));
19
+ var _aiSearchIcon = _interopRequireDefault(require("../../../assets/ai-search-icon"));
14
20
  var _action = _interopRequireDefault(require("../action"));
15
21
  var _excluded = ["onClick", "prompts", "testId"];
16
22
  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); }
17
- // Replace this with actual message key, e.g. link-relevancy, link-summary, etc.
18
23
  var RovoChatPromptKey = exports.RovoChatPromptKey = /*#__PURE__*/function (RovoChatPromptKey) {
19
- RovoChatPromptKey["MESSAGE_1"] = "message-1";
20
- RovoChatPromptKey["MESSAGE_2"] = "message-2";
24
+ RovoChatPromptKey["RECOMMEND_OTHER_SOURCES"] = "recommend-other-sources";
25
+ RovoChatPromptKey["SHOW_OTHER_MENTIONS"] = "show-other-mentions";
26
+ RovoChatPromptKey["SUGGEST_IMPROVEMENT"] = "suggest-improvement";
21
27
  return RovoChatPromptKey;
22
28
  }({});
23
- var DEFAULT_PROMPTS = [RovoChatPromptKey.MESSAGE_1, RovoChatPromptKey.MESSAGE_2];
24
- var getPromptAction = function getPromptAction(promptKey) {
25
- // NAVX-3581: Replace this with real prompt message
29
+ var DEFAULT_PROMPTS = [RovoChatPromptKey.RECOMMEND_OTHER_SOURCES, RovoChatPromptKey.SHOW_OTHER_MENTIONS, RovoChatPromptKey.SUGGEST_IMPROVEMENT];
30
+ var getContext = function getContext(intl, product) {
31
+ switch (product) {
32
+ case 'CONFLUENCE':
33
+ return {
34
+ contextLong: intl.formatMessage(_messages.messages.rovo_prompt_context_confluence_page),
35
+ contextLongPlural: intl.formatMessage(_messages.messages.rovo_prompt_context_confluence_page_plural),
36
+ contextShort: intl.formatMessage(_messages.messages.rovo_prompt_context_confluence_page_short)
37
+ };
38
+ case 'JSW':
39
+ case 'JWM':
40
+ case 'JSM':
41
+ case 'JPD':
42
+ return {
43
+ contextLong: intl.formatMessage(_messages.messages.rovo_prompt_context_jira_work_item),
44
+ contextLongPlural: intl.formatMessage(_messages.messages.rovo_prompt_context_jira_work_item_plural),
45
+ contextShort: intl.formatMessage(_messages.messages.rovo_prompt_context_jira_work_item_short)
46
+ };
47
+ }
48
+ };
49
+ var getPromptAction = function getPromptAction(promptKey, intl, url, product) {
50
+ var _getContext;
51
+ var _ref = (_getContext = getContext(intl, product)) !== null && _getContext !== void 0 ? _getContext : {
52
+ contextLong: intl.formatMessage(_messages.messages.rovo_prompt_context_generic),
53
+ contextLongPlural: intl.formatMessage(_messages.messages.rovo_prompt_context_generic_plural),
54
+ contextShort: intl.formatMessage(_messages.messages.rovo_prompt_context_generic)
55
+ },
56
+ contextLong = _ref.contextLong,
57
+ contextLongPlural = _ref.contextLongPlural,
58
+ contextShort = _ref.contextShort;
26
59
  switch (promptKey) {
27
- case RovoChatPromptKey.MESSAGE_1:
60
+ case RovoChatPromptKey.RECOMMEND_OTHER_SOURCES:
61
+ var label_recommend = intl.formatMessage(_messages.messages.rovo_prompt_button_recommend_other_sources);
62
+ return {
63
+ icon: /*#__PURE__*/_react.default.createElement(_aiEditIcon.default, null),
64
+ content: label_recommend,
65
+ tooltipMessage: label_recommend,
66
+ data: {
67
+ name: label_recommend,
68
+ dialogues: [],
69
+ // NAVX-3581: To be translated and converted to ADF
70
+ prompt: "From this ".concat(url, " and the ").concat(contextLong, " I\u2019m viewing now as context:\n- Search across all sources I can access for items that discuss similar concepts, themes, or problems, or that reference similar or closely related sources (including links to the same or related pages, issues, or docs).\n- Return the results as a list or table with columns: Item, Type, Short summary, and Why it\u2019s similar.\n- For each result, give a one\u2011sentence Short summary of what the item is about.\n- In Why it\u2019s similar, briefly explain (in a phrase or short sentence) what makes it related to this Smart Link and/or the item I\u2019m viewing (for example: same project, similar decision, shared requirements, overlapping stakeholders, similar metrics, or referencing related docs).\n- Order the list from most to least relevant based on Rovo\u2019s assessment of semantic similarity to both the Smart Link target and the current item. Prioritize items that I do not own or have not contributed to.\n- If there are more than 5 results, show the 5 most relevant and state how many additional items you found.")
71
+ }
72
+ };
73
+ case RovoChatPromptKey.SHOW_OTHER_MENTIONS:
74
+ var label_other_mentions = intl.formatMessage(_messages.messages.rovo_prompt_button_show_other_mentions);
28
75
  return {
29
- icon: /*#__PURE__*/_react.default.createElement(_rovoChat.default, {
30
- label: "",
31
- spacing: "spacious"
32
- }),
33
- content: 'Action title 1',
34
- tooltipMessage: 'Action tooltip 1',
76
+ icon: /*#__PURE__*/_react.default.createElement(_aiChapterIcon.default, null),
77
+ content: label_other_mentions,
78
+ tooltipMessage: label_other_mentions,
35
79
  data: {
36
- name: 'Chat title 1',
80
+ name: label_other_mentions,
37
81
  dialogues: [],
38
- prompt: {
39
- version: 1,
40
- type: 'doc',
41
- content: []
42
- }
82
+ // NAVX-3581: To be translated and converted to ADF
83
+ prompt: "From this ".concat(url, " and the ").concat(contextLong, " I\u2019m viewing now:\n- Search across all ").concat(contextLongPlural, " I can access for other items that contain this exact Smart Link (same underlying URL/resource).\n- List all matching items in a table with columns: Item, Type, Short summary, How this item uses the link, and Relevance to current item.\n- For Short summary, give a one\u2011sentence description of what the page/issue is about.\n- For How this item uses the link, briefly explain the role this link plays there (e.g., decision doc, background context, implementation details, status update).\n- For Relevance to current item, compare each item to the page/issue I\u2019m viewing now and label it High, Medium, or Low relevance, with a short reason (a phrase or single clause).\n- If there are more than 15 matches, show the 15 most relevant and tell me how many additional matches exist.")
43
84
  }
44
85
  };
45
- case RovoChatPromptKey.MESSAGE_2:
86
+ case RovoChatPromptKey.SUGGEST_IMPROVEMENT:
87
+ var label_improvement = intl.formatMessage(_messages.messages.rovo_prompt_button_suggest_improvement, {
88
+ context: contextShort
89
+ });
46
90
  return {
47
- icon: /*#__PURE__*/_react.default.createElement(_rovoChat.default, {
48
- label: "",
49
- spacing: "spacious"
50
- }),
51
- content: 'Action title 2',
52
- tooltipMessage: 'Action tooltip 2',
91
+ icon: /*#__PURE__*/_react.default.createElement(_aiSearchIcon.default, null),
92
+ content: label_improvement,
93
+ tooltipMessage: label_improvement,
53
94
  data: {
54
- name: 'Chat title 2',
95
+ name: label_improvement,
55
96
  dialogues: [],
56
- prompt: {
57
- version: 1,
58
- type: 'doc',
59
- content: []
60
- }
97
+ // NAVX-3581: To be translated and converted to ADF
98
+ prompt: "Using the ".concat(contextLong, " I\u2019m viewing now, plus all files and links referenced in it (including this ").concat(url, "):\n- Identify unclear reasoning, missing context, or contradictions between the item and its linked files.\n- Call out any places where assumptions are not backed up by data or prior docs.\n- Stay concise: summarize your findings in no more than three short paragraphs of content listed as bullets of no more than a couple of sentences long focused only on the two points above.\n- After presenting that summary, ask me explicitly if I want you to go deeper. Only if I say yes, then:\n- Suggest concrete rewrites (bullets or short paragraphs) to make the argument clearer, more concise, and better aligned with the supporting files.\n- Propose 3\u20135 follow\u2011up edits or additions that would make this item and its linked docs \u201Cshare\u2011ready\u201D for stakeholders.")
61
99
  }
62
100
  };
63
101
  }
64
102
  };
65
- var RovoChatAction = function RovoChatAction(_ref) {
66
- var onClickCallback = _ref.onClick,
67
- _ref$prompts = _ref.prompts,
68
- prompts = _ref$prompts === void 0 ? DEFAULT_PROMPTS : _ref$prompts,
69
- _ref$testId = _ref.testId,
70
- testId = _ref$testId === void 0 ? 'smart-action-rovo-chat-action' : _ref$testId,
71
- props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
103
+ var RovoChatAction = function RovoChatAction(_ref2) {
104
+ var _context$actions;
105
+ var onClickCallback = _ref2.onClick,
106
+ _ref2$prompts = _ref2.prompts,
107
+ prompts = _ref2$prompts === void 0 ? DEFAULT_PROMPTS : _ref2$prompts,
108
+ _ref2$testId = _ref2.testId,
109
+ testId = _ref2$testId === void 0 ? 'smart-action-rovo-chat-action' : _ref2$testId,
110
+ props = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
111
+ var intl = (0, _reactIntlNext.useIntl)();
72
112
  var _useRovoChat = (0, _useRovoChat2.default)(),
73
113
  isRovoChatEnabled = _useRovoChat.isRovoChatEnabled,
74
114
  sendPromptMessage = _useRovoChat.sendPromptMessage;
115
+ var context = (0, _flexibleUiContext.useFlexibleUiContext)();
116
+ var data = context === null || context === void 0 || (_context$actions = context.actions) === null || _context$actions === void 0 ? void 0 : _context$actions[_constants.InternalActionName.RovoChatAction];
75
117
  var _onClick = (0, _react.useCallback)(function (promptData) {
76
118
  if (promptData) {
77
119
  sendPromptMessage(promptData);
@@ -83,11 +125,11 @@ var RovoChatAction = function RovoChatAction(_ref) {
83
125
  }, [onClickCallback, sendPromptMessage]);
84
126
  var promptActions = (0, _react.useMemo)(function () {
85
127
  return prompts.map(function (promptKey, idx) {
86
- var _ref2 = getPromptAction(promptKey) || {},
87
- icon = _ref2.icon,
88
- content = _ref2.content,
89
- tooltipMessage = _ref2.tooltipMessage,
90
- promptData = _ref2.data;
128
+ var _ref3 = getPromptAction(promptKey, intl, data === null || data === void 0 ? void 0 : data.url, data === null || data === void 0 ? void 0 : data.product) || {},
129
+ icon = _ref3.icon,
130
+ content = _ref3.content,
131
+ tooltipMessage = _ref3.tooltipMessage,
132
+ promptData = _ref3.data;
91
133
  return promptData ? /*#__PURE__*/_react.default.createElement(_action.default, (0, _extends2.default)({
92
134
  content: content,
93
135
  icon: icon,
@@ -99,7 +141,7 @@ var RovoChatAction = function RovoChatAction(_ref) {
99
141
  tooltipMessage: tooltipMessage
100
142
  }, props)) : null;
101
143
  });
102
- }, [_onClick, prompts, props, testId]);
103
- return isRovoChatEnabled && (promptActions === null || promptActions === void 0 ? void 0 : promptActions.length) > 0 ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, promptActions) : null;
144
+ }, [data, intl, _onClick, prompts, props, testId]);
145
+ return isRovoChatEnabled && data && (promptActions === null || promptActions === void 0 ? void 0 : promptActions.length) > 0 ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, promptActions) : null;
104
146
  };
105
147
  var _default = exports.default = RovoChatAction;