@atlaskit/smart-card 45.19.6 → 45.19.7
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 +6 -0
- package/dist/cjs/hooks/useConfluencePageData.js +2 -2
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/utils/index.js +2 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/hooks/useConfluencePageData.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/utils/index.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/hooks/useConfluencePageData.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/utils/index.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/view/FlexibleCard/components/actions/rovo-chat-action/html-to-adf.d.ts +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.userType = exports.useConfluencePageData = exports.EMBEDDED_CONFLUENCE_MODE = exports.CONFLUENCE_EXTENSION_KEYS = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _setGlobalTheme = require("@atlaskit/tokens/set-global-theme");
|
|
9
|
-
var
|
|
9
|
+
var _themeStringToObject = require("@atlaskit/tokens/theme-string-to-object");
|
|
10
10
|
var userType = exports.userType = /*#__PURE__*/function (userType) {
|
|
11
11
|
userType["ATLASSIAN_ACCOUNT"] = "atlassianAccount";
|
|
12
12
|
userType["HASHED_EMAIL"] = "hashedEmail";
|
|
@@ -64,7 +64,7 @@ var useConfluencePageData = exports.useConfluencePageData = function useConfluen
|
|
|
64
64
|
// Calculate theme state object here
|
|
65
65
|
var calculatedThemeStateObject;
|
|
66
66
|
if (themeState) {
|
|
67
|
-
calculatedThemeStateObject = (0,
|
|
67
|
+
calculatedThemeStateObject = (0, _themeStringToObject.themeStringToObject)(decodeURIComponent(themeState));
|
|
68
68
|
} else if (themeMode) {
|
|
69
69
|
calculatedThemeStateObject = {
|
|
70
70
|
colorMode: themeMode
|
|
@@ -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: "45.19.
|
|
14
|
+
packageVersion: "45.19.6" || ''
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
package/dist/cjs/utils/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
15
|
var _reactLoadable = _interopRequireDefault(require("react-loadable"));
|
|
16
16
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
17
|
-
var
|
|
17
|
+
var _themeObjectToString = require("@atlaskit/tokens/theme-object-to-string");
|
|
18
18
|
var _constants = require("../constants");
|
|
19
19
|
var _extractFileFormatIcon = _interopRequireDefault(require("../extractors/flexible/icon/extract-file-formatIcon"));
|
|
20
20
|
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 _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
@@ -903,7 +903,7 @@ var openUrl = exports.openUrl = /*#__PURE__*/function () {
|
|
|
903
903
|
var getPreviewUrlWithTheme = exports.getPreviewUrlWithTheme = function getPreviewUrlWithTheme(previewUrl, themeState) {
|
|
904
904
|
try {
|
|
905
905
|
var url = new URL(previewUrl);
|
|
906
|
-
url.searchParams.append('themeState', (0,
|
|
906
|
+
url.searchParams.append('themeState', (0, _themeObjectToString.themeObjectToString)(themeState));
|
|
907
907
|
return url.href;
|
|
908
908
|
} catch (_unused) {
|
|
909
909
|
return previewUrl;
|
|
@@ -19,7 +19,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
|
|
|
19
19
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
20
20
|
var PACKAGE_DATA = {
|
|
21
21
|
packageName: "@atlaskit/smart-card",
|
|
22
|
-
packageVersion: "45.19.
|
|
22
|
+
packageVersion: "45.19.6",
|
|
23
23
|
componentName: 'linkUrl'
|
|
24
24
|
};
|
|
25
25
|
var LinkUrl = function LinkUrl(_ref) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect, useMemo } from 'react';
|
|
2
2
|
import { setGlobalTheme } from '@atlaskit/tokens/set-global-theme';
|
|
3
|
-
import { themeStringToObject } from '@atlaskit/tokens/theme-
|
|
3
|
+
import { themeStringToObject } from '@atlaskit/tokens/theme-string-to-object';
|
|
4
4
|
export let userType = /*#__PURE__*/function (userType) {
|
|
5
5
|
userType["ATLASSIAN_ACCOUNT"] = "atlassianAccount";
|
|
6
6
|
userType["HASHED_EMAIL"] = "hashedEmail";
|
|
@@ -2,7 +2,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
2
2
|
export const context = {
|
|
3
3
|
componentName: 'smart-cards',
|
|
4
4
|
packageName: "@atlaskit/smart-card" || '',
|
|
5
|
-
packageVersion: "45.19.
|
|
5
|
+
packageVersion: "45.19.6" || ''
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import Loadable from 'react-loadable';
|
|
4
4
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
|
-
import { themeObjectToString } from '@atlaskit/tokens/theme-
|
|
5
|
+
import { themeObjectToString } from '@atlaskit/tokens/theme-object-to-string';
|
|
6
6
|
import { IconType, SmartLinkSize } from '../constants';
|
|
7
7
|
import extractFileFormatIcon from '../extractors/flexible/icon/extract-file-formatIcon';
|
|
8
8
|
export const isSpecialEvent = evt => evt.isDefaultPrevented() && (isIframe() || isSpecialKey(evt) || isSpecialClick(evt));
|
|
@@ -9,7 +9,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
9
9
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
10
10
|
const PACKAGE_DATA = {
|
|
11
11
|
packageName: "@atlaskit/smart-card",
|
|
12
|
-
packageVersion: "45.19.
|
|
12
|
+
packageVersion: "45.19.6",
|
|
13
13
|
componentName: 'linkUrl'
|
|
14
14
|
};
|
|
15
15
|
const LinkUrl = ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect, useMemo } from 'react';
|
|
2
2
|
import { setGlobalTheme } from '@atlaskit/tokens/set-global-theme';
|
|
3
|
-
import { themeStringToObject } from '@atlaskit/tokens/theme-
|
|
3
|
+
import { themeStringToObject } from '@atlaskit/tokens/theme-string-to-object';
|
|
4
4
|
export var userType = /*#__PURE__*/function (userType) {
|
|
5
5
|
userType["ATLASSIAN_ACCOUNT"] = "atlassianAccount";
|
|
6
6
|
userType["HASHED_EMAIL"] = "hashedEmail";
|
|
@@ -4,7 +4,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
4
4
|
export var context = {
|
|
5
5
|
componentName: 'smart-cards',
|
|
6
6
|
packageName: "@atlaskit/smart-card" || '',
|
|
7
|
-
packageVersion: "45.19.
|
|
7
|
+
packageVersion: "45.19.6" || ''
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
package/dist/esm/utils/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import Loadable from 'react-loadable';
|
|
8
8
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
9
|
-
import { themeObjectToString } from '@atlaskit/tokens/theme-
|
|
9
|
+
import { themeObjectToString } from '@atlaskit/tokens/theme-object-to-string';
|
|
10
10
|
import { IconType, SmartLinkSize } from '../constants';
|
|
11
11
|
import extractFileFormatIcon from '../extractors/flexible/icon/extract-file-formatIcon';
|
|
12
12
|
export var isSpecialEvent = function isSpecialEvent(evt) {
|
|
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
12
12
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
13
13
|
var PACKAGE_DATA = {
|
|
14
14
|
packageName: "@atlaskit/smart-card",
|
|
15
|
-
packageVersion: "45.19.
|
|
15
|
+
packageVersion: "45.19.6",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
var LinkUrl = function LinkUrl(_ref) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "45.19.
|
|
3
|
+
"version": "45.19.7",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@atlaskit/analytics-cross-product": "^2.1.0",
|
|
41
41
|
"@atlaskit/analytics-gas-types": "^6.2.0",
|
|
42
42
|
"@atlaskit/analytics-next": "^12.5.0",
|
|
43
|
-
"@atlaskit/avatar": "^
|
|
43
|
+
"@atlaskit/avatar": "^28.0.0",
|
|
44
44
|
"@atlaskit/avatar-group": "^14.3.0",
|
|
45
45
|
"@atlaskit/badge": "^21.2.0",
|
|
46
46
|
"@atlaskit/browser-apis": "^1.2.0",
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"@atlaskit/popup": "^6.3.0",
|
|
80
80
|
"@atlaskit/primitives": "^22.5.0",
|
|
81
81
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
82
|
-
"@atlaskit/react-ufo": "^7.
|
|
83
|
-
"@atlaskit/rovo-triggers": "^10.
|
|
82
|
+
"@atlaskit/react-ufo": "^7.8.0",
|
|
83
|
+
"@atlaskit/rovo-triggers": "^10.26.0",
|
|
84
84
|
"@atlaskit/section-message": "^10.2.0",
|
|
85
85
|
"@atlaskit/select": "^22.11.0",
|
|
86
86
|
"@atlaskit/spinner": "^20.4.0",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"@atlaskit/textfield": "^10.2.0",
|
|
91
91
|
"@atlaskit/theme": "^28.2.0",
|
|
92
92
|
"@atlaskit/tile": "^4.1.0",
|
|
93
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
93
|
+
"@atlaskit/tmp-editor-statsig": "^173.0.0",
|
|
94
94
|
"@atlaskit/tokens": "^16.11.0",
|
|
95
95
|
"@atlaskit/tooltip": "^24.3.0",
|
|
96
96
|
"@atlaskit/ufo": "^1.2.0",
|