@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 45.19.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 45.19.6
4
10
 
5
11
  ### Patch Changes
@@ -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 _themeStateTransformer = require("@atlaskit/tokens/theme-state-transformer");
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, _themeStateTransformer.themeStringToObject)(decodeURIComponent(themeState));
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.5" || ''
14
+ packageVersion: "45.19.6" || ''
15
15
  };
16
16
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
17
17
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -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 _themeStateTransformer = require("@atlaskit/tokens/theme-state-transformer");
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, _themeStateTransformer.themeObjectToString)(themeState));
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.5",
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-state-transformer';
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" || ''
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-state-transformer';
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.5",
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-state-transformer';
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.5" || ''
7
+ packageVersion: "45.19.6" || ''
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -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-state-transformer';
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.5",
15
+ packageVersion: "45.19.6",
16
16
  componentName: 'linkUrl'
17
17
  };
18
18
  var LinkUrl = function LinkUrl(_ref) {
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * Support: p, ul, li, text, b, strong, code, inlineCard (replace a hyperlink)
7
7
  */
8
- import type { DocNode } from '@atlaskit/adf-schema';
8
+ import type { DocNode } from '@atlaskit/adf-schema/doc';
9
9
  /**
10
10
  * Convert HTML string to ADF format
11
11
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "45.19.6",
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": "^27.3.0",
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.7.0",
83
- "@atlaskit/rovo-triggers": "^10.24.0",
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": "^172.0.0",
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",