@atlaskit/editor-plugin-card 0.14.12 → 0.14.13

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,11 @@
1
1
  # @atlaskit/editor-plugin-card
2
2
 
3
+ ## 0.14.13
4
+
5
+ ### Patch Changes
6
+
7
+ - [#57192](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/57192) [`cb7776f514cb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cb7776f514cb) - Fix issue like table and assets editor plugin card not translated issue
8
+
3
9
  ## 0.14.12
4
10
 
5
11
  ### Patch Changes
@@ -8,11 +8,11 @@ exports.cardPlugin = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  var _adfSchema = require("@atlaskit/adf-schema");
11
+ var _messages = require("@atlaskit/editor-common/messages");
11
12
  var _quickInsert = require("@atlaskit/editor-common/quick-insert");
12
13
  var _utils = require("@atlaskit/editor-common/utils");
13
14
  var _linkDatasource = require("@atlaskit/link-datasource");
14
15
  var _createEventsQueue = require("./analytics/create-events-queue");
15
- var _messages = require("./messages");
16
16
  var _actions = require("./pm-plugins/actions");
17
17
  var _doc = require("./pm-plugins/doc");
18
18
  var _keymap = require("./pm-plugins/keymap");
@@ -135,8 +135,8 @@ var cardPlugin = exports.cardPlugin = function cardPlugin(_ref) {
135
135
  if ((0, _utils.canRenderDatasource)(_linkDatasource.JIRA_LIST_OF_LINKS_DATASOURCE_ID)) {
136
136
  quickInsertArray.push({
137
137
  id: 'datasource',
138
- title: formatMessage(_messages.messages.datasourceJiraIssue),
139
- description: formatMessage(_messages.messages.datasourceJiraIssueDescription),
138
+ title: formatMessage(_messages.cardMessages.datasourceJiraIssue),
139
+ description: formatMessage(_messages.cardMessages.datasourceJiraIssueDescription),
140
140
  categories: ['external-content', 'development'],
141
141
  keywords: ['jira'],
142
142
  icon: function icon() {
@@ -152,8 +152,8 @@ var cardPlugin = exports.cardPlugin = function cardPlugin(_ref) {
152
152
  if ((0, _utils.canRenderDatasource)(_linkDatasource.ASSETS_LIST_OF_LINKS_DATASOURCE_ID)) {
153
153
  quickInsertArray.push({
154
154
  id: 'datasource',
155
- title: formatMessage(_messages.messages.datasourceAssetsObjects),
156
- description: formatMessage(_messages.messages.datasourceAssetsObjectsDescription),
155
+ title: formatMessage(_messages.cardMessages.datasourceAssetsObjects),
156
+ description: formatMessage(_messages.cardMessages.datasourceAssetsObjectsDescription),
157
157
  categories: ['external-content', 'development'],
158
158
  keywords: ['assets'],
159
159
  icon: function icon() {
@@ -14,11 +14,11 @@ var _react = _interopRequireWildcard(require("react"));
14
14
  var _react2 = require("@emotion/react");
15
15
  var _debounce = _interopRequireDefault(require("lodash/debounce"));
16
16
  var _reactIntlNext = require("react-intl-next");
17
+ var _messages = require("@atlaskit/editor-common/messages");
17
18
  var _utils = require("@atlaskit/editor-common/utils");
18
19
  var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/glyph/hipchat/chevron-down"));
19
20
  var _chevronUp = _interopRequireDefault(require("@atlaskit/icon/glyph/hipchat/chevron-up"));
20
21
  var _colors = require("@atlaskit/theme/colors");
21
- var _messages = require("../../messages");
22
22
  var _utils2 = require("./utils");
23
23
  var _excluded = ["children", "isSelected", "isVisible", "testId", "url"];
24
24
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -228,7 +228,7 @@ var InlineCardOverlay = function InlineCardOverlay(_ref) {
228
228
  };
229
229
  }, [isVisible, setVisibility]);
230
230
  var intl = (0, _reactIntlNext.useIntl)();
231
- var label = intl.formatMessage(_messages.messages.inlineOverlay);
231
+ var label = intl.formatMessage(_messages.cardMessages.inlineOverlay);
232
232
  var icon = (0, _react.useMemo)(function () {
233
233
  var IconComponent = isSelected ? _chevronUp.default : _chevronDown.default;
234
234
  return (0, _react2.jsx)(IconComponent, {
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import { blockCard, embedCard, inlineCard } from '@atlaskit/adf-schema';
3
+ import { cardMessages as messages } from '@atlaskit/editor-common/messages';
3
4
  import { IconDatasourceAssetsObjects, IconDatasourceJiraIssue } from '@atlaskit/editor-common/quick-insert';
4
5
  import { canRenderDatasource } from '@atlaskit/editor-common/utils';
5
6
  import { ASSETS_LIST_OF_LINKS_DATASOURCE_ID, JIRA_LIST_OF_LINKS_DATASOURCE_ID } from '@atlaskit/link-datasource';
6
7
  import { createEventsQueue } from './analytics/create-events-queue';
7
- import { messages } from './messages';
8
8
  import { hideLinkToolbar, showDatasourceModal } from './pm-plugins/actions';
9
9
  import { changeSelectedCardToLink, queueCardsFromChangedTr, setSelectedCardAppearance } from './pm-plugins/doc';
10
10
  import { cardKeymap } from './pm-plugins/keymap';
@@ -5,11 +5,11 @@ import React, { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useSta
5
5
  import { css, jsx } from '@emotion/react';
6
6
  import debounce from 'lodash/debounce';
7
7
  import { useIntl } from 'react-intl-next';
8
+ import { cardMessages as messages } from '@atlaskit/editor-common/messages';
8
9
  import { browser, ZERO_WIDTH_JOINER } from '@atlaskit/editor-common/utils';
9
10
  import HipchatChevronDownIcon from '@atlaskit/icon/glyph/hipchat/chevron-down';
10
11
  import HipchatChevronUpIcon from '@atlaskit/icon/glyph/hipchat/chevron-up';
11
12
  import { N20A, N800 } from '@atlaskit/theme/colors';
12
- import { messages } from '../../messages';
13
13
  import { getChildElement, getInlineCardAvailableWidth, getOverlayWidths, isOneLine } from './utils';
14
14
  const DEBOUNCE_IN_MS = 5;
15
15
  const ESTIMATED_MIN_WIDTH_IN_PX = 16;
@@ -3,11 +3,11 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  import React from 'react';
5
5
  import { blockCard, embedCard, inlineCard } from '@atlaskit/adf-schema';
6
+ import { cardMessages as messages } from '@atlaskit/editor-common/messages';
6
7
  import { IconDatasourceAssetsObjects, IconDatasourceJiraIssue } from '@atlaskit/editor-common/quick-insert';
7
8
  import { canRenderDatasource } from '@atlaskit/editor-common/utils';
8
9
  import { ASSETS_LIST_OF_LINKS_DATASOURCE_ID, JIRA_LIST_OF_LINKS_DATASOURCE_ID } from '@atlaskit/link-datasource';
9
10
  import { createEventsQueue } from './analytics/create-events-queue';
10
- import { messages } from './messages';
11
11
  import { hideLinkToolbar, showDatasourceModal } from './pm-plugins/actions';
12
12
  import { changeSelectedCardToLink, queueCardsFromChangedTr, setSelectedCardAppearance } from './pm-plugins/doc';
13
13
  import { cardKeymap } from './pm-plugins/keymap';
@@ -11,11 +11,11 @@ import React, { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useSta
11
11
  import { css, jsx } from '@emotion/react';
12
12
  import debounce from 'lodash/debounce';
13
13
  import { useIntl } from 'react-intl-next';
14
+ import { cardMessages as messages } from '@atlaskit/editor-common/messages';
14
15
  import { browser, ZERO_WIDTH_JOINER } from '@atlaskit/editor-common/utils';
15
16
  import HipchatChevronDownIcon from '@atlaskit/icon/glyph/hipchat/chevron-down';
16
17
  import HipchatChevronUpIcon from '@atlaskit/icon/glyph/hipchat/chevron-up';
17
18
  import { N20A, N800 } from '@atlaskit/theme/colors';
18
- import { messages } from '../../messages';
19
19
  import { getChildElement, getInlineCardAvailableWidth, getOverlayWidths, isOneLine } from './utils';
20
20
  var DEBOUNCE_IN_MS = 5;
21
21
  var ESTIMATED_MIN_WIDTH_IN_PX = 16;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "0.14.12",
3
+ "version": "0.14.13",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -1,34 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.messages = void 0;
7
- var _reactIntlNext = require("react-intl-next");
8
- var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
9
- datasourceJiraIssue: {
10
- id: 'fabric.editor.datasource.jiraIssue',
11
- defaultMessage: 'Jira Issues',
12
- description: 'Insert a jira datasource table'
13
- },
14
- datasourceJiraIssueDescription: {
15
- id: 'fabric.editor.datasource.jiraIssue.description',
16
- defaultMessage: 'Insert Jira issues from Jira Cloud with enhanced search, filtering, and configuration.',
17
- description: 'Insert a jira datasource table'
18
- },
19
- datasourceAssetsObjects: {
20
- id: 'fabric.editor.datasource.assetsObjects',
21
- defaultMessage: 'Assets (Beta)',
22
- description: 'Text displayed when selecting the type of data to include onto the page, in this case: JSM Assets objects. This feature is currently in Beta release, so we also include messaging for that.'
23
- },
24
- datasourceAssetsObjectsDescription: {
25
- id: 'fabric.editor.datasource.assetsObjects.description',
26
- defaultMessage: 'Insert objects from Assets in Jira Service Management with search and filtering',
27
- description: 'Description text displayed when selecting the type of data to include onto the page, in this case: JSM Assets objects'
28
- },
29
- inlineOverlay: {
30
- id: 'fabric.editor.inlineOverlay',
31
- defaultMessage: 'Change view',
32
- description: 'An overlay shown when hover over inline smart link to inform user that they can change link view to card and/or embed.'
33
- }
34
- });
@@ -1,28 +0,0 @@
1
- import { defineMessages } from 'react-intl-next';
2
- export const messages = defineMessages({
3
- datasourceJiraIssue: {
4
- id: 'fabric.editor.datasource.jiraIssue',
5
- defaultMessage: 'Jira Issues',
6
- description: 'Insert a jira datasource table'
7
- },
8
- datasourceJiraIssueDescription: {
9
- id: 'fabric.editor.datasource.jiraIssue.description',
10
- defaultMessage: 'Insert Jira issues from Jira Cloud with enhanced search, filtering, and configuration.',
11
- description: 'Insert a jira datasource table'
12
- },
13
- datasourceAssetsObjects: {
14
- id: 'fabric.editor.datasource.assetsObjects',
15
- defaultMessage: 'Assets (Beta)',
16
- description: 'Text displayed when selecting the type of data to include onto the page, in this case: JSM Assets objects. This feature is currently in Beta release, so we also include messaging for that.'
17
- },
18
- datasourceAssetsObjectsDescription: {
19
- id: 'fabric.editor.datasource.assetsObjects.description',
20
- defaultMessage: 'Insert objects from Assets in Jira Service Management with search and filtering',
21
- description: 'Description text displayed when selecting the type of data to include onto the page, in this case: JSM Assets objects'
22
- },
23
- inlineOverlay: {
24
- id: 'fabric.editor.inlineOverlay',
25
- defaultMessage: 'Change view',
26
- description: 'An overlay shown when hover over inline smart link to inform user that they can change link view to card and/or embed.'
27
- }
28
- });
@@ -1,28 +0,0 @@
1
- import { defineMessages } from 'react-intl-next';
2
- export var messages = defineMessages({
3
- datasourceJiraIssue: {
4
- id: 'fabric.editor.datasource.jiraIssue',
5
- defaultMessage: 'Jira Issues',
6
- description: 'Insert a jira datasource table'
7
- },
8
- datasourceJiraIssueDescription: {
9
- id: 'fabric.editor.datasource.jiraIssue.description',
10
- defaultMessage: 'Insert Jira issues from Jira Cloud with enhanced search, filtering, and configuration.',
11
- description: 'Insert a jira datasource table'
12
- },
13
- datasourceAssetsObjects: {
14
- id: 'fabric.editor.datasource.assetsObjects',
15
- defaultMessage: 'Assets (Beta)',
16
- description: 'Text displayed when selecting the type of data to include onto the page, in this case: JSM Assets objects. This feature is currently in Beta release, so we also include messaging for that.'
17
- },
18
- datasourceAssetsObjectsDescription: {
19
- id: 'fabric.editor.datasource.assetsObjects.description',
20
- defaultMessage: 'Insert objects from Assets in Jira Service Management with search and filtering',
21
- description: 'Description text displayed when selecting the type of data to include onto the page, in this case: JSM Assets objects'
22
- },
23
- inlineOverlay: {
24
- id: 'fabric.editor.inlineOverlay',
25
- defaultMessage: 'Change view',
26
- description: 'An overlay shown when hover over inline smart link to inform user that they can change link view to card and/or embed.'
27
- }
28
- });
@@ -1,27 +0,0 @@
1
- export declare const messages: {
2
- datasourceJiraIssue: {
3
- id: string;
4
- defaultMessage: string;
5
- description: string;
6
- };
7
- datasourceJiraIssueDescription: {
8
- id: string;
9
- defaultMessage: string;
10
- description: string;
11
- };
12
- datasourceAssetsObjects: {
13
- id: string;
14
- defaultMessage: string;
15
- description: string;
16
- };
17
- datasourceAssetsObjectsDescription: {
18
- id: string;
19
- defaultMessage: string;
20
- description: string;
21
- };
22
- inlineOverlay: {
23
- id: string;
24
- defaultMessage: string;
25
- description: string;
26
- };
27
- };
@@ -1,27 +0,0 @@
1
- export declare const messages: {
2
- datasourceJiraIssue: {
3
- id: string;
4
- defaultMessage: string;
5
- description: string;
6
- };
7
- datasourceJiraIssueDescription: {
8
- id: string;
9
- defaultMessage: string;
10
- description: string;
11
- };
12
- datasourceAssetsObjects: {
13
- id: string;
14
- defaultMessage: string;
15
- description: string;
16
- };
17
- datasourceAssetsObjectsDescription: {
18
- id: string;
19
- defaultMessage: string;
20
- description: string;
21
- };
22
- inlineOverlay: {
23
- id: string;
24
- defaultMessage: string;
25
- description: string;
26
- };
27
- };